@lettuceai/crisp 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -233,6 +233,10 @@ var ft = {
233
233
  datePickerPlaceholder: "Pick a date",
234
234
  datePickerPreviousMonth: "Previous month",
235
235
  datePickerNextMonth: "Next month",
236
+ datePickerChooseMonth: "Choose month and year",
237
+ datePickerPreviousYear: "Previous year",
238
+ datePickerNextYear: "Next year",
239
+ datePickerYear: "Year",
236
240
  datePickerTime: "Time",
237
241
  dialogClose: "Close",
238
242
  diffBefore: "Theirs",
@@ -480,7 +484,8 @@ function gt({ tone: e = "info", title: t, description: n, meta: r, details: i, a
480
484
  var _t = {
481
485
  ghost: "text-fg-2 hover:bg-fill-2 hover:text-fg active:bg-fill-3",
482
486
  secondary: "border border-line bg-fill text-fg-2 hover:border-line-3 hover:bg-fill-2 hover:text-fg active:bg-fill-3",
483
- tonal: "border border-accent/30 bg-accent/15 text-accent hover:border-accent/55 hover:bg-accent/28 active:bg-accent/38"
487
+ tonal: "border border-accent/30 bg-accent/15 text-accent hover:border-accent/55 hover:bg-accent/28 active:bg-accent/38",
488
+ overlay: "border border-line-2 bg-surface-el/90 text-fg shadow-raised backdrop-blur-sm hover:bg-surface-2 active:bg-surface-2"
484
489
  }, vt = {
485
490
  sm: "control-sm w-8",
486
491
  md: "control-md w-10",
@@ -768,7 +773,7 @@ var Pt = {
768
773
  left: { x: 4 },
769
774
  right: { x: -4 }
770
775
  };
771
- function X({ content: e, placement: t = "top", delay: r = 300, disabled: i = !1, className: a, children: o }) {
776
+ function Ft({ content: e, placement: t = "top", delay: r = 300, disabled: i = !1, className: a, children: o }) {
772
777
  let [s, c] = m(!1), [d, f] = m(null), h = p(null), _ = p(null), v = Ot(), b = u(), x = () => {
773
778
  i || (h.current && window.clearTimeout(h.current), h.current = window.setTimeout(() => c(!0), r));
774
779
  }, S = () => {
@@ -840,13 +845,13 @@ function X({ content: e, placement: t = "top", delay: r = 300, disabled: i = !1,
840
845
  }
841
846
  //#endregion
842
847
  //#region src/components/TabBar.tsx
843
- function Ft({ badge: e }) {
848
+ function It({ badge: e }) {
844
849
  return /* @__PURE__ */ H("span", {
845
850
  className: W("absolute -right-1.5 -top-1 flex items-center justify-center rounded-full bg-accent text-on-accent", typeof e == "number" ? "h-4 min-w-4 px-1 text-2xs font-semibold tabular-nums" : "h-2 w-2"),
846
851
  children: typeof e == "number" ? e > 99 ? "99+" : e : null
847
852
  });
848
853
  }
849
- function It({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, showLabels: a = !1, className: o }) {
854
+ function Lt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, showLabels: a = !1, className: o }) {
850
855
  let { strings: s } = K(), c = u(), l = Math.ceil(e.length / 2), d = (e) => {
851
856
  let r = e.id === t;
852
857
  return /* @__PURE__ */ U("button", {
@@ -863,7 +868,7 @@ function It({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, show
863
868
  }),
864
869
  /* @__PURE__ */ U("span", {
865
870
  className: "relative",
866
- children: [e.icon, e.badge ? /* @__PURE__ */ H(Ft, { badge: e.badge }) : null]
871
+ children: [e.icon, e.badge ? /* @__PURE__ */ H(It, { badge: e.badge }) : null]
867
872
  }),
868
873
  a ? /* @__PURE__ */ H("span", {
869
874
  className: "relative text-2xs font-medium leading-none",
@@ -903,14 +908,14 @@ function It({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, show
903
908
  }
904
909
  //#endregion
905
910
  //#region src/components/Dock.tsx
906
- function Lt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, edge: a = "bottom", className: o }) {
911
+ function Rt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, edge: a = "bottom", className: o }) {
907
912
  let { strings: s } = K(), c = u();
908
913
  return /* @__PURE__ */ U("nav", {
909
914
  "aria-label": s.navPrimary,
910
915
  className: W("z-30 flex items-center gap-1 rounded-full border border-line bg-nav/95 p-1.5 shadow-raised backdrop-blur-md", o),
911
916
  children: [e.map((e) => {
912
917
  let r = e.id === t;
913
- return /* @__PURE__ */ H(X, {
918
+ return /* @__PURE__ */ H(Ft, {
914
919
  content: e.label,
915
920
  placement: a === "bottom" ? "top" : "bottom",
916
921
  children: /* @__PURE__ */ U("button", {
@@ -925,14 +930,14 @@ function Lt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, edge
925
930
  className: "absolute inset-0 rounded-full bg-fill-2"
926
931
  }), /* @__PURE__ */ U("span", {
927
932
  className: "relative",
928
- children: [e.icon, e.badge ? /* @__PURE__ */ H(Ft, { badge: e.badge }) : null]
933
+ children: [e.icon, e.badge ? /* @__PURE__ */ H(It, { badge: e.badge }) : null]
929
934
  })]
930
935
  })
931
936
  }, e.id);
932
937
  }), r && /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H("span", {
933
938
  "aria-hidden": "true",
934
939
  className: "mx-0.5 h-6 w-px bg-line"
935
- }), /* @__PURE__ */ H(X, {
940
+ }), /* @__PURE__ */ H(Ft, {
936
941
  content: i ?? s.navCreate,
937
942
  placement: a === "bottom" ? "top" : "bottom",
938
943
  children: /* @__PURE__ */ H(y.button, {
@@ -951,29 +956,29 @@ function Lt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, edge
951
956
  }
952
957
  //#endregion
953
958
  //#region src/components/NavRail.tsx
954
- var Rt = {
959
+ var zt = {
955
960
  start: "justify-start",
956
961
  center: "justify-center",
957
962
  end: "justify-end"
958
- }, zt = r(!0);
959
- function Bt() {
960
- return c(zt);
963
+ }, Bt = r(!0);
964
+ function Vt() {
965
+ return c(Bt);
961
966
  }
962
- var Vt = "flex w-11 shrink-0 items-center justify-center";
963
- function Ht({ children: e, className: t }) {
964
- let n = Bt();
967
+ var Ht = "flex w-11 shrink-0 items-center justify-center";
968
+ function Ut({ children: e, className: t }) {
969
+ let n = Vt();
965
970
  return /* @__PURE__ */ H("span", {
966
971
  className: W("relative min-w-0 flex-1 overflow-hidden whitespace-nowrap text-left transition-opacity", "mask-[linear-gradient(to_right,black_calc(100%-14px),transparent)]", n ? "opacity-100 duration-200 delay-100" : "opacity-0 duration-100", t),
967
972
  children: e
968
973
  });
969
974
  }
970
- function Ut(e) {
971
- return e.floating ? /* @__PURE__ */ H(Gt, { ...e }) : /* @__PURE__ */ H(Wt, { ...e });
975
+ function Wt(e) {
976
+ return e.floating ? /* @__PURE__ */ H(Kt, { ...e }) : /* @__PURE__ */ H(Gt, { ...e });
972
977
  }
973
- function Wt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, footerItems: a, side: o = "left", variant: s = "rail", section: c, onToggle: l, className: d }) {
978
+ function Gt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, footerItems: a, side: o = "left", variant: s = "rail", section: c, onToggle: l, className: d }) {
974
979
  let { strings: f } = K(), p = u(), m = C(), h = s === "sidebar", _ = h ? c ? 256 : 224 : 64, v = o === "left" ? "right" : "left", b = (e) => {
975
980
  let r = e.id === t;
976
- return /* @__PURE__ */ H(X, {
981
+ return /* @__PURE__ */ H(Ft, {
977
982
  content: e.label,
978
983
  placement: v,
979
984
  disabled: h,
@@ -991,10 +996,10 @@ function Wt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, foot
991
996
  className: "absolute inset-0 rounded-xl bg-fill-2"
992
997
  }),
993
998
  /* @__PURE__ */ U("span", {
994
- className: W(Vt, "relative"),
995
- children: [e.icon, e.badge ? /* @__PURE__ */ H(Ft, { badge: e.badge }) : null]
999
+ className: W(Ht, "relative"),
1000
+ children: [e.icon, e.badge ? /* @__PURE__ */ H(It, { badge: e.badge }) : null]
996
1001
  }),
997
- /* @__PURE__ */ H(Ht, {
1002
+ /* @__PURE__ */ H(Ut, {
998
1003
  className: "text-base font-medium",
999
1004
  children: e.label
1000
1005
  })
@@ -1005,7 +1010,7 @@ function Wt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, foot
1005
1010
  "aria-hidden": "true",
1006
1011
  className: "mx-1 my-1 h-px shrink-0 bg-line"
1007
1012
  });
1008
- return /* @__PURE__ */ H(zt.Provider, {
1013
+ return /* @__PURE__ */ H(Bt.Provider, {
1009
1014
  value: h,
1010
1015
  children: /* @__PURE__ */ U(y.nav, {
1011
1016
  "aria-label": f.navPrimary,
@@ -1014,7 +1019,7 @@ function Wt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, foot
1014
1019
  transition: m ? { duration: 0 } : G.sidebar,
1015
1020
  className: W("z-30 flex h-full shrink-0 flex-col gap-1 bg-nav px-2.5 py-3 text-fg", o === "left" ? "border-r border-line" : "border-l border-line", d),
1016
1021
  children: [
1017
- r && /* @__PURE__ */ H(X, {
1022
+ r && /* @__PURE__ */ H(Ft, {
1018
1023
  content: i ?? f.navCreate,
1019
1024
  placement: v,
1020
1025
  disabled: h,
@@ -1026,12 +1031,12 @@ function Wt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, foot
1026
1031
  "aria-label": i ?? f.navCreate,
1027
1032
  className: "flex h-10 w-full shrink-0 items-center overflow-hidden rounded-xl bg-accent text-on-accent transition-colors hover:bg-accent/90",
1028
1033
  children: [/* @__PURE__ */ H("span", {
1029
- className: Vt,
1034
+ className: Ht,
1030
1035
  children: /* @__PURE__ */ H(z, {
1031
1036
  size: 18,
1032
1037
  strokeWidth: 2.5
1033
1038
  })
1034
- }), /* @__PURE__ */ H(Ht, {
1039
+ }), /* @__PURE__ */ H(Ut, {
1035
1040
  className: "text-base font-medium",
1036
1041
  children: i ?? f.navCreate
1037
1042
  })]
@@ -1058,7 +1063,7 @@ function Wt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, foot
1058
1063
  className: "flex-1"
1059
1064
  }),
1060
1065
  (a?.length || l) && x,
1061
- l && /* @__PURE__ */ H(X, {
1066
+ l && /* @__PURE__ */ H(Ft, {
1062
1067
  content: f.navExpandSidebar,
1063
1068
  placement: v,
1064
1069
  disabled: h,
@@ -1070,7 +1075,7 @@ function Wt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, foot
1070
1075
  "aria-expanded": h,
1071
1076
  className: "flex h-10 w-full shrink-0 items-center overflow-hidden rounded-xl text-fg-3 transition-colors hover:bg-fill hover:text-fg",
1072
1077
  children: [/* @__PURE__ */ H("span", {
1073
- className: Vt,
1078
+ className: Ht,
1074
1079
  children: /* @__PURE__ */ H(y.span, {
1075
1080
  animate: { rotate: h ? 0 : 180 },
1076
1081
  transition: m ? { duration: 0 } : G.sidebar,
@@ -1080,7 +1085,7 @@ function Wt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, foot
1080
1085
  className: o === "right" ? "-scale-x-100" : void 0
1081
1086
  })
1082
1087
  })
1083
- }), /* @__PURE__ */ H(Ht, {
1088
+ }), /* @__PURE__ */ H(Ut, {
1084
1089
  className: "text-base font-medium",
1085
1090
  children: f.navCollapse
1086
1091
  })]
@@ -1091,7 +1096,7 @@ function Wt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, foot
1091
1096
  })
1092
1097
  });
1093
1098
  }
1094
- function Gt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, footerItems: a, side: o = "left", variant: s = "rail", floating: c = !1, align: l = "start", className: d }) {
1099
+ function Kt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, footerItems: a, side: o = "left", variant: s = "rail", floating: c = !1, align: l = "start", className: d }) {
1095
1100
  let { strings: f } = K(), p = u(), m = s === "sidebar", h = (e) => {
1096
1101
  let r = e.id === t, i = /* @__PURE__ */ U("button", {
1097
1102
  type: "button",
@@ -1107,7 +1112,7 @@ function Gt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, foot
1107
1112
  }),
1108
1113
  /* @__PURE__ */ U("span", {
1109
1114
  className: "relative shrink-0",
1110
- children: [e.icon, e.badge ? /* @__PURE__ */ H(Ft, { badge: e.badge }) : null]
1115
+ children: [e.icon, e.badge ? /* @__PURE__ */ H(It, { badge: e.badge }) : null]
1111
1116
  }),
1112
1117
  m && /* @__PURE__ */ H("span", {
1113
1118
  className: "relative min-w-0 flex-1 truncate text-left text-base font-medium",
@@ -1119,7 +1124,7 @@ function Gt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, foot
1119
1124
  })
1120
1125
  ]
1121
1126
  }, e.id);
1122
- return m ? i : /* @__PURE__ */ H(X, {
1127
+ return m ? i : /* @__PURE__ */ H(Ft, {
1123
1128
  content: e.label,
1124
1129
  placement: o === "left" ? "right" : "left",
1125
1130
  children: i
@@ -1132,7 +1137,7 @@ function Gt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, foot
1132
1137
  size: 18,
1133
1138
  strokeWidth: 2.5
1134
1139
  }), i ?? f.navCreate]
1135
- }) : /* @__PURE__ */ H(X, {
1140
+ }) : /* @__PURE__ */ H(Ft, {
1136
1141
  content: i ?? f.navCreate,
1137
1142
  placement: o === "left" ? "right" : "left",
1138
1143
  children: /* @__PURE__ */ H(y.button, {
@@ -1149,7 +1154,7 @@ function Gt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, foot
1149
1154
  }));
1150
1155
  return /* @__PURE__ */ U("nav", {
1151
1156
  "aria-label": f.navPrimary,
1152
- className: W("z-30 flex flex-col text-fg", m ? "w-56 gap-1 p-3" : "w-16 items-center gap-1.5 py-3", c ? "gap-1.5 rounded-2xl border border-line bg-nav/95 p-2 shadow-raised backdrop-blur-md" : W("h-full bg-nav", o === "left" ? "border-r border-line" : "border-l border-line"), !c && Rt[l], d),
1157
+ className: W("z-30 flex flex-col text-fg", m ? "w-56 gap-1 p-3" : "w-16 items-center gap-1.5 py-3", c ? "gap-1.5 rounded-2xl border border-line bg-nav/95 p-2 shadow-raised backdrop-blur-md" : W("h-full bg-nav", o === "left" ? "border-r border-line" : "border-l border-line"), !c && zt[l], d),
1153
1158
  children: [
1154
1159
  g,
1155
1160
  g && /* @__PURE__ */ H("span", {
@@ -1173,7 +1178,7 @@ function Gt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, foot
1173
1178
  }
1174
1179
  //#endregion
1175
1180
  //#region src/components/AppShell.tsx
1176
- function Kt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, footerItems: a, navStyle: o = "auto", side: s = "left", dockEdge: c = "bottom", titleBar: l, header: u, mainRef: d, navSection: f, onNavToggle: p, children: m, className: h }) {
1181
+ function qt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, footerItems: a, navStyle: o = "auto", side: s = "left", dockEdge: c = "bottom", titleBar: l, header: u, mainRef: d, navSection: f, onNavToggle: p, children: m, className: h }) {
1177
1182
  let g = At(), _ = o === "auto" ? g ? "tabs" : "rail" : o, v = g && (_ === "rail" || _ === "sidebar" || _ === "floatingRail" || _ === "dock") ? "tabs" : _, y = {
1178
1183
  items: e,
1179
1184
  value: t,
@@ -1190,12 +1195,12 @@ function Kt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, foot
1190
1195
  className: W("flex min-h-0 flex-1", s === "right" && "flex-row-reverse"),
1191
1196
  children: [b && (v === "floatingRail" ? /* @__PURE__ */ H("div", {
1192
1197
  className: W("absolute top-1/2 z-30 -translate-y-1/2", s === "left" ? "left-4" : "right-4"),
1193
- children: /* @__PURE__ */ H(Ut, {
1198
+ children: /* @__PURE__ */ H(Wt, {
1194
1199
  ...y,
1195
1200
  side: s,
1196
1201
  floating: !0
1197
1202
  })
1198
- }) : /* @__PURE__ */ H(Ut, {
1203
+ }) : /* @__PURE__ */ H(Wt, {
1199
1204
  ...y,
1200
1205
  side: s,
1201
1206
  variant: v === "sidebar" ? "sidebar" : "rail",
@@ -1214,13 +1219,13 @@ function Kt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, foot
1214
1219
  className: W("pointer-events-none absolute inset-x-0 z-30 flex justify-center", c === "bottom" ? "bottom-4" : "top-4"),
1215
1220
  children: /* @__PURE__ */ H("div", {
1216
1221
  className: "pointer-events-auto",
1217
- children: /* @__PURE__ */ H(Lt, {
1222
+ children: /* @__PURE__ */ H(Rt, {
1218
1223
  ...y,
1219
1224
  edge: c
1220
1225
  })
1221
1226
  })
1222
1227
  }),
1223
- (v === "tabs" || v === "tabsLabelled") && /* @__PURE__ */ H(It, {
1228
+ (v === "tabs" || v === "tabsLabelled") && /* @__PURE__ */ H(Lt, {
1224
1229
  ...y,
1225
1230
  showLabels: v === "tabsLabelled"
1226
1231
  })
@@ -1229,10 +1234,10 @@ function Kt({ items: e, value: t, onChange: n, onCreate: r, createLabel: i, foot
1229
1234
  }
1230
1235
  //#endregion
1231
1236
  //#region src/components/AudioItem.tsx
1232
- function qt(e) {
1237
+ function Jt(e) {
1233
1238
  return (!Number.isFinite(e) || e < 0) && (e = 0), `${Math.floor(e / 60)}:${String(Math.floor(e % 60)).padStart(2, "0")}`;
1234
1239
  }
1235
- function Jt({ title: e, description: t, src: n, onLoadSrc: r, badge: i, actions: a, className: o }) {
1240
+ function Yt({ title: e, description: t, src: n, onLoadSrc: r, badge: i, actions: a, className: o }) {
1236
1241
  let { strings: c } = K(), u = p(null), d = p(!1), [f, h] = m(n ?? null), [g, _] = m(!1), [v, y] = m(!1), [b, x] = m(0), [S, C] = m(0);
1237
1242
  l(() => {
1238
1243
  n !== void 0 && h(n);
@@ -1316,14 +1321,14 @@ function Jt({ title: e, description: t, src: n, onLoadSrc: r, badge: i, actions:
1316
1321
  value: b,
1317
1322
  onChange: (e) => T(Number(e.target.value)),
1318
1323
  "aria-label": c.audioItemSeek(e),
1319
- "aria-valuetext": `${qt(b)} of ${qt(S)}`,
1324
+ "aria-valuetext": `${Jt(b)} of ${Jt(S)}`,
1320
1325
  style: { "--slider-fill": `${D}%` }
1321
1326
  }), /* @__PURE__ */ U("span", {
1322
1327
  className: "shrink-0 text-2xs tabular-nums text-fg-3",
1323
1328
  children: [
1324
- qt(b),
1329
+ Jt(b),
1325
1330
  " / ",
1326
- qt(S)
1331
+ Jt(S)
1327
1332
  ]
1328
1333
  })]
1329
1334
  }) : t && /* @__PURE__ */ H("p", {
@@ -1340,34 +1345,34 @@ function Jt({ title: e, description: t, src: n, onLoadSrc: r, badge: i, actions:
1340
1345
  }
1341
1346
  //#endregion
1342
1347
  //#region src/components/Avatar.tsx
1343
- var Yt = {
1348
+ var Xt = {
1344
1349
  xs: "h-6 w-6 text-2xs",
1345
1350
  sm: "h-8 w-8 text-xs",
1346
1351
  md: "h-10 w-10 text-sm",
1347
1352
  lg: "h-14 w-14 text-lg",
1348
1353
  xl: "h-24 w-24 text-2xl"
1349
1354
  };
1350
- function Xt(e) {
1355
+ function Zt(e) {
1351
1356
  return e.trim().split(/\s+/).slice(0, 2).map((e) => e[0]?.toUpperCase() ?? "").join("");
1352
1357
  }
1353
- function Zt({ src: e, name: t, size: n = "md", ring: r, className: i, style: a }) {
1358
+ function Qt({ src: e, name: t, size: n = "md", ring: r, className: i, style: a }) {
1354
1359
  let [o, s] = m(!1), c = !!e && !o;
1355
1360
  return /* @__PURE__ */ H("span", {
1356
1361
  role: "img",
1357
1362
  "aria-label": t,
1358
1363
  style: a,
1359
- className: W("relative inline-flex shrink-0 select-none items-center justify-center overflow-hidden rounded-full", "border border-line bg-fill-2 font-semibold text-fg-2", r && "ring-2 ring-accent ring-offset-2 ring-offset-surface", Yt[n], i),
1364
+ className: W("relative inline-flex shrink-0 select-none items-center justify-center overflow-hidden rounded-full", "border border-line bg-fill-2 font-semibold text-fg-2", r && "ring-2 ring-accent ring-offset-2 ring-offset-surface", Xt[n], i),
1360
1365
  children: c ? /* @__PURE__ */ H("img", {
1361
1366
  src: e,
1362
1367
  alt: "",
1363
1368
  onError: () => s(!0),
1364
1369
  className: "h-full w-full object-cover"
1365
- }) : Xt(t)
1370
+ }) : Zt(t)
1366
1371
  });
1367
1372
  }
1368
1373
  //#endregion
1369
1374
  //#region src/components/AvatarGroup.tsx
1370
- var Qt = {
1375
+ var $t = {
1371
1376
  xs: {
1372
1377
  size: 24,
1373
1378
  pull: "-ml-2",
@@ -1404,15 +1409,15 @@ var Qt = {
1404
1409
  chip: "h-24 w-24 text-lg"
1405
1410
  }
1406
1411
  };
1407
- function $t({ people: e, max: t = 4, size: n = "sm", interactive: r, overflow: i, className: a }) {
1408
- let { strings: o } = K(), s = e.slice(0, t), c = e.length - s.length, l = Qt[n ?? "sm"], u = c > 0 || !!i, d = `radial-gradient(circle ${l.cut}px at ${l.cx}px 50%, transparent 100%, black 100%)`;
1412
+ function en({ people: e, max: t = 4, size: n = "sm", interactive: r, overflow: i, className: a }) {
1413
+ let { strings: o } = K(), s = e.slice(0, t), c = e.length - s.length, l = $t[n ?? "sm"], u = c > 0 || !!i, d = `radial-gradient(circle ${l.cut}px at ${l.cx}px 50%, transparent 100%, black 100%)`;
1409
1414
  return /* @__PURE__ */ U("div", {
1410
1415
  className: W("flex items-center", a),
1411
1416
  role: "group",
1412
1417
  "aria-label": o.avatarGroupPeople(e.length),
1413
1418
  children: [s.map((e, t) => {
1414
1419
  let i = t < s.length - 1 || u;
1415
- return /* @__PURE__ */ H(Zt, {
1420
+ return /* @__PURE__ */ H(Qt, {
1416
1421
  name: e.name,
1417
1422
  src: e.src,
1418
1423
  size: n,
@@ -1430,26 +1435,26 @@ function $t({ people: e, max: t = 4, size: n = "sm", interactive: r, overflow: i
1430
1435
  }
1431
1436
  //#endregion
1432
1437
  //#region src/components/Banner.tsx
1433
- var en = {
1438
+ var tn = {
1434
1439
  info: "bg-info/15 text-info",
1435
1440
  warning: "bg-warning/15 text-warning",
1436
1441
  danger: "bg-danger/15 text-danger",
1437
1442
  offline: "bg-fill-3 text-fg-2"
1438
- }, tn = {
1443
+ }, nn = {
1439
1444
  info: /* @__PURE__ */ H(R, { size: 16 }),
1440
1445
  warning: /* @__PURE__ */ H(T, { size: 16 }),
1441
1446
  danger: /* @__PURE__ */ H(je, { size: 16 }),
1442
1447
  offline: /* @__PURE__ */ H(Ae, { size: 16 })
1443
1448
  };
1444
- function nn({ tone: e = "info", children: t, action: n, onDismiss: r, sticky: i, className: a }) {
1449
+ function rn({ tone: e = "info", children: t, action: n, onDismiss: r, sticky: i, className: a }) {
1445
1450
  let { strings: o } = K();
1446
1451
  return /* @__PURE__ */ U("div", {
1447
1452
  role: e === "danger" ? "alert" : "status",
1448
- className: W("flex items-center gap-2.5 px-4 py-2 text-sm", en[e], i && "sticky top-0 z-30", a),
1453
+ className: W("flex items-center gap-2.5 px-4 py-2 text-sm", tn[e], i && "sticky top-0 z-30", a),
1449
1454
  children: [
1450
1455
  /* @__PURE__ */ H("span", {
1451
1456
  className: "shrink-0",
1452
- children: tn[e]
1457
+ children: nn[e]
1453
1458
  }),
1454
1459
  /* @__PURE__ */ H("span", {
1455
1460
  className: "min-w-0 flex-1 truncate font-medium",
@@ -1471,29 +1476,29 @@ function nn({ tone: e = "info", children: t, action: n, onDismiss: r, sticky: i,
1471
1476
  }
1472
1477
  //#endregion
1473
1478
  //#region src/lib/ref.ts
1474
- function rn(...e) {
1479
+ function an(...e) {
1475
1480
  return (t) => {
1476
1481
  for (let n of e) n && (typeof n == "function" ? n(t) : typeof n == "object" && "current" in n && (n.current = t));
1477
1482
  };
1478
1483
  }
1479
- function an(e) {
1484
+ function on(e) {
1480
1485
  if (!e || typeof e != "object") return;
1481
1486
  let t = e;
1482
1487
  return t.props?.ref ?? t.ref;
1483
1488
  }
1484
1489
  //#endregion
1485
1490
  //#region src/components/Popover.tsx
1486
- var on = r(null);
1487
- function sn() {
1488
- let e = c(on);
1491
+ var sn = r(null);
1492
+ function cn() {
1493
+ let e = c(sn);
1489
1494
  if (!e) throw Error("Popover parts must be used inside <Popover>");
1490
1495
  return e;
1491
1496
  }
1492
- function cn({ open: e, onOpenChange: t, children: n }) {
1497
+ function ln({ open: e, onOpenChange: t, children: n }) {
1493
1498
  let [r, i] = m(!1), a = e ?? r, o = p(null), c = u(), l = s((n) => {
1494
1499
  e === void 0 && i(n), t?.(n);
1495
1500
  }, [e, t]);
1496
- return /* @__PURE__ */ H(on.Provider, {
1501
+ return /* @__PURE__ */ H(sn.Provider, {
1497
1502
  value: {
1498
1503
  open: a,
1499
1504
  setOpen: l,
@@ -1503,10 +1508,10 @@ function cn({ open: e, onOpenChange: t, children: n }) {
1503
1508
  children: n
1504
1509
  });
1505
1510
  }
1506
- function ln({ children: e }) {
1507
- let { open: t, setOpen: r, id: i, anchorRef: a } = sn(), o = e.props, s = an(e);
1511
+ function un({ children: e }) {
1512
+ let { open: t, setOpen: r, id: i, anchorRef: a } = cn(), o = e.props, s = on(e);
1508
1513
  return n(e, {
1509
- ref: rn(a, s),
1514
+ ref: an(a, s),
1510
1515
  "aria-haspopup": "dialog",
1511
1516
  "aria-expanded": t,
1512
1517
  "aria-controls": t ? i : void 0,
@@ -1515,11 +1520,11 @@ function ln({ children: e }) {
1515
1520
  }
1516
1521
  });
1517
1522
  }
1518
- function un({ children: e }) {
1519
- let { anchorRef: t } = sn(), r = an(e);
1520
- return n(e, { ref: rn(t, r) });
1523
+ function dn({ children: e }) {
1524
+ let { anchorRef: t } = cn(), r = on(e);
1525
+ return n(e, { ref: an(t, r) });
1521
1526
  }
1522
- function dn(e, t, { open: n, side: r, align: i, offset: a, portal: o }) {
1527
+ function fn(e, t, { open: n, side: r, align: i, offset: a, portal: o }) {
1523
1528
  let [s, c] = m({
1524
1529
  top: 0,
1525
1530
  left: 0
@@ -1551,8 +1556,8 @@ function dn(e, t, { open: n, side: r, align: i, offset: a, portal: o }) {
1551
1556
  t
1552
1557
  ]), s;
1553
1558
  }
1554
- function fn({ side: e = "bottom", align: t = "start", offset: n = 6, matchWidth: r, className: i, children: a }) {
1555
- let { open: o, setOpen: s, id: c, anchorRef: u } = sn(), d = p(null), f = dn(u, d, {
1559
+ function pn({ side: e = "bottom", align: t = "start", offset: n = 6, matchWidth: r, className: i, children: a }) {
1560
+ let { open: o, setOpen: s, id: c, anchorRef: u } = cn(), d = p(null), f = fn(u, d, {
1556
1561
  open: o,
1557
1562
  side: e,
1558
1563
  align: t,
@@ -1601,8 +1606,8 @@ function fn({ side: e = "bottom", align: t = "start", offset: n = 6, matchWidth:
1601
1606
  }
1602
1607
  //#endregion
1603
1608
  //#region src/components/Menu.tsx
1604
- var pn = r(null);
1605
- function mn({ children: e }) {
1609
+ var mn = r(null);
1610
+ function hn({ children: e }) {
1606
1611
  let [t, n] = m(!1), r = u(), i = p(null), a = p(null), o = p(null);
1607
1612
  return l(() => {
1608
1613
  if (!t) return;
@@ -1615,7 +1620,7 @@ function mn({ children: e }) {
1615
1620
  return document.addEventListener("pointerdown", e), document.addEventListener("keydown", r, !0), () => {
1616
1621
  document.removeEventListener("pointerdown", e), document.removeEventListener("keydown", r, !0);
1617
1622
  };
1618
- }, [t]), /* @__PURE__ */ H(pn.Provider, {
1623
+ }, [t]), /* @__PURE__ */ H(mn.Provider, {
1619
1624
  value: {
1620
1625
  open: t,
1621
1626
  setOpen: n,
@@ -1630,15 +1635,15 @@ function mn({ children: e }) {
1630
1635
  })
1631
1636
  });
1632
1637
  }
1633
- function hn() {
1634
- let e = c(pn);
1638
+ function gn() {
1639
+ let e = c(mn);
1635
1640
  if (!e) throw Error("Menu parts must be used inside <Menu>");
1636
1641
  return e;
1637
1642
  }
1638
- function gn({ children: e }) {
1639
- let { open: t, setOpen: r, id: i, triggerRef: a } = hn(), o = an(e), s = e.props;
1643
+ function _n({ children: e }) {
1644
+ let { open: t, setOpen: r, id: i, triggerRef: a } = gn(), o = on(e), s = e.props;
1640
1645
  return n(e, {
1641
- ref: rn(a, o),
1646
+ ref: an(a, o),
1642
1647
  "aria-haspopup": "menu",
1643
1648
  "aria-expanded": t,
1644
1649
  "aria-controls": i,
@@ -1647,8 +1652,8 @@ function gn({ children: e }) {
1647
1652
  }
1648
1653
  });
1649
1654
  }
1650
- function _n({ align: e = "start", side: t = "bottom", className: n, children: r }) {
1651
- let { open: i, setOpen: a, id: o, triggerRef: c, panelRef: u } = hn(), d = Ot(), f = dn(c, u, {
1655
+ function vn({ align: e = "start", side: t = "bottom", className: n, children: r }) {
1656
+ let { open: i, setOpen: a, id: o, triggerRef: c, panelRef: u } = gn(), d = Ot(), f = fn(c, u, {
1652
1657
  open: i,
1653
1658
  side: t,
1654
1659
  align: e,
@@ -1691,8 +1696,8 @@ function _n({ align: e = "start", side: t = "bottom", className: n, children: r
1691
1696
  children: r
1692
1697
  }) }), d) : null;
1693
1698
  }
1694
- function vn({ icon: e, shortcut: t, danger: n, disabled: r, selected: i, onSelect: a, children: o }) {
1695
- let { setOpen: s } = hn();
1699
+ function yn({ icon: e, shortcut: t, danger: n, disabled: r, selected: i, onSelect: a, children: o }) {
1700
+ let { setOpen: s } = gn();
1696
1701
  return /* @__PURE__ */ U("button", {
1697
1702
  type: "button",
1698
1703
  role: "menuitem",
@@ -1722,13 +1727,13 @@ function vn({ icon: e, shortcut: t, danger: n, disabled: r, selected: i, onSelec
1722
1727
  ]
1723
1728
  });
1724
1729
  }
1725
- function yn() {
1730
+ function bn() {
1726
1731
  return /* @__PURE__ */ H("div", {
1727
1732
  role: "separator",
1728
1733
  className: "my-1 h-px bg-line"
1729
1734
  });
1730
1735
  }
1731
- function bn({ children: e }) {
1736
+ function xn({ children: e }) {
1732
1737
  return /* @__PURE__ */ H("div", {
1733
1738
  className: "px-2.5 pb-1 pt-2 text-2xs font-medium text-fg-3",
1734
1739
  children: e
@@ -1736,7 +1741,7 @@ function bn({ children: e }) {
1736
1741
  }
1737
1742
  //#endregion
1738
1743
  //#region src/components/Breadcrumb.tsx
1739
- function xn({ crumb: e, current: t }) {
1744
+ function Sn({ crumb: e, current: t }) {
1740
1745
  let n = /* @__PURE__ */ U(V, { children: [e.icon && /* @__PURE__ */ H("span", {
1741
1746
  className: "shrink-0",
1742
1747
  children: e.icon
@@ -1759,7 +1764,7 @@ function xn({ crumb: e, current: t }) {
1759
1764
  children: n
1760
1765
  });
1761
1766
  }
1762
- function Sn({ items: e, maxVisible: n = 1, className: r }) {
1767
+ function Cn({ items: e, maxVisible: n = 1, className: r }) {
1763
1768
  let { strings: i } = K();
1764
1769
  if (e.length === 0) return null;
1765
1770
  let a = Math.max(1, n), o = e.length > a + 2, s = o ? e[0] : null, c = o ? e.slice(1, e.length - a) : [], l = o ? e.slice(e.length - a) : e, u = /* @__PURE__ */ H(F, {
@@ -1771,23 +1776,23 @@ function Sn({ items: e, maxVisible: n = 1, className: r }) {
1771
1776
  "aria-label": i.breadcrumbLabel,
1772
1777
  className: W("flex min-w-0 items-center gap-1", r),
1773
1778
  children: [s && /* @__PURE__ */ U(V, { children: [
1774
- /* @__PURE__ */ H(xn, {
1779
+ /* @__PURE__ */ H(Sn, {
1775
1780
  crumb: s,
1776
1781
  current: !1
1777
1782
  }),
1778
1783
  u,
1779
- /* @__PURE__ */ U(mn, { children: [/* @__PURE__ */ H(gn, { children: /* @__PURE__ */ H("button", {
1784
+ /* @__PURE__ */ U(hn, { children: [/* @__PURE__ */ H(_n, { children: /* @__PURE__ */ H("button", {
1780
1785
  type: "button",
1781
1786
  "aria-label": i.breadcrumbMore(c.length),
1782
1787
  className: "tap-target flex h-6 w-6 shrink-0 items-center justify-center rounded-md text-fg-3 transition-colors hover:bg-fill-2 hover:text-fg",
1783
1788
  children: /* @__PURE__ */ H(ge, { size: 14 })
1784
- }) }), /* @__PURE__ */ H(_n, { children: c.map((e) => /* @__PURE__ */ H(vn, {
1789
+ }) }), /* @__PURE__ */ H(vn, { children: c.map((e) => /* @__PURE__ */ H(yn, {
1785
1790
  icon: e.icon,
1786
1791
  onSelect: e.onClick,
1787
1792
  children: e.label
1788
1793
  }, e.label)) })] }),
1789
1794
  u
1790
- ] }), l.map((e, n) => /* @__PURE__ */ U(t, { children: [n > 0 && u, /* @__PURE__ */ H(xn, {
1795
+ ] }), l.map((e, n) => /* @__PURE__ */ U(t, { children: [n > 0 && u, /* @__PURE__ */ H(Sn, {
1791
1796
  crumb: e,
1792
1797
  current: n === l.length - 1
1793
1798
  })] }, e.label))]
@@ -1795,45 +1800,47 @@ function Sn({ items: e, maxVisible: n = 1, className: r }) {
1795
1800
  }
1796
1801
  //#endregion
1797
1802
  //#region src/lib/icon.ts
1798
- var Z = {
1803
+ var X = {
1799
1804
  xs: 12,
1800
1805
  sm: 14,
1801
1806
  md: 16,
1802
1807
  lg: 18,
1803
1808
  xl: 20
1804
- }, Cn = {
1809
+ }, wn = {
1805
1810
  primary: "bg-accent text-on-accent hover:bg-accent/82 active:bg-accent/68",
1806
1811
  tonal: "border border-accent/30 bg-accent/15 text-accent hover:border-accent/55 hover:bg-accent/28 active:bg-accent/38",
1807
1812
  secondary: "border border-line bg-fill-2 text-fg hover:border-line-3 hover:bg-fill-3 active:bg-line-2",
1808
1813
  ghost: "text-fg-2 hover:bg-fill-2 hover:text-fg active:bg-fill-3",
1809
- danger: "border border-danger/25 bg-danger/12 text-danger hover:border-danger/55 hover:bg-danger/22 active:bg-danger/32"
1810
- }, wn = {
1814
+ danger: "border border-danger/25 bg-danger/12 text-danger hover:border-danger/55 hover:bg-danger/22 active:bg-danger/32",
1815
+ overlay: "border border-line-2 bg-surface-el/90 text-fg shadow-raised backdrop-blur-sm hover:bg-surface-2 active:bg-surface-2"
1816
+ }, Tn = {
1811
1817
  primary: "focus-visible:outline-fg",
1812
1818
  tonal: "focus-visible:outline-accent",
1813
1819
  secondary: "focus-visible:outline-fg-2",
1814
1820
  ghost: "focus-visible:outline-fg-2",
1815
- danger: "focus-visible:outline-danger"
1816
- }, Tn = {
1821
+ danger: "focus-visible:outline-danger",
1822
+ overlay: "focus-visible:outline-fg"
1823
+ }, En = {
1817
1824
  sm: "control-sm gap-1.5 rounded-lg px-3 text-sm",
1818
1825
  md: "control-md gap-2 rounded-xl px-4 text-base",
1819
1826
  lg: "control-lg gap-2 rounded-xl px-5 text-base"
1820
- }, En = {
1821
- sm: Z.sm,
1822
- md: Z.md,
1823
- lg: Z.lg
1824
- }, Q = a(function({ variant: e = "secondary", size: t = "md", loading: n = !1, leading: r, trailing: i, block: a, className: o, children: s, disabled: c, type: l = "button", ...u }, d) {
1827
+ }, Dn = {
1828
+ sm: X.sm,
1829
+ md: X.md,
1830
+ lg: X.lg
1831
+ }, Z = a(function({ variant: e = "secondary", size: t = "md", loading: n = !1, leading: r, trailing: i, block: a, className: o, children: s, disabled: c, type: l = "button", ...u }, d) {
1825
1832
  return /* @__PURE__ */ U("button", {
1826
1833
  ref: d,
1827
1834
  type: l,
1828
1835
  disabled: c,
1829
1836
  "aria-busy": n || void 0,
1830
1837
  "aria-disabled": c || n || void 0,
1831
- className: W("touch-target relative inline-flex shrink-0 select-none items-center justify-center whitespace-nowrap font-medium", e === "ghost" ? "raise-flat" : "raise", "focus-visible:outline-1 focus-visible:outline-offset-2", wn[e], "disabled:opacity-45", (n || c) && "pointer-events-none", Cn[e], Tn[t], a && "w-full", o),
1838
+ className: W("touch-target relative inline-flex shrink-0 select-none items-center justify-center whitespace-nowrap font-medium", e === "ghost" ? "raise-flat" : "raise", "focus-visible:outline-1 focus-visible:outline-offset-2", Tn[e], "disabled:opacity-45", (n || c) && "pointer-events-none", wn[e], En[t], a && "w-full", o),
1832
1839
  ...u,
1833
1840
  children: [n && /* @__PURE__ */ H("span", {
1834
1841
  className: "absolute inset-0 flex items-center justify-center",
1835
1842
  children: /* @__PURE__ */ H(pe, {
1836
- size: En[t],
1843
+ size: Dn[t],
1837
1844
  className: "animate-spin"
1838
1845
  })
1839
1846
  }), /* @__PURE__ */ U("span", {
@@ -1846,10 +1853,10 @@ var Z = {
1846
1853
  })]
1847
1854
  });
1848
1855
  });
1849
- Q.displayName = "Button";
1856
+ Z.displayName = "Button";
1850
1857
  //#endregion
1851
1858
  //#region src/components/ButtonGroup.tsx
1852
- function Dn({ attached: t = !0, className: r, children: i }) {
1859
+ function On({ attached: t = !0, className: r, children: i }) {
1853
1860
  let a = e.toArray(i).filter(o);
1854
1861
  return /* @__PURE__ */ H("div", {
1855
1862
  role: "group",
@@ -1857,23 +1864,23 @@ function Dn({ attached: t = !0, className: r, children: i }) {
1857
1864
  children: a.map((e, r) => n(e, { className: W(e.props.className, t && r > 0 && "rounded-l-none", t && r < a.length - 1 && "rounded-r-none", t && "relative focus-visible:z-10") }))
1858
1865
  });
1859
1866
  }
1860
- function On({ children: e, menu: t, menuLabel: n, variant: r = "primary", size: i = "md", ...a }) {
1867
+ function kn({ children: e, menu: t, menuLabel: n, variant: r = "primary", size: i = "md", ...a }) {
1861
1868
  let { strings: o } = K();
1862
1869
  return /* @__PURE__ */ U("div", {
1863
1870
  className: "inline-flex -space-x-px",
1864
- children: [/* @__PURE__ */ H(Q, {
1871
+ children: [/* @__PURE__ */ H(Z, {
1865
1872
  variant: r,
1866
1873
  size: i,
1867
1874
  className: "rounded-r-none",
1868
1875
  ...a,
1869
1876
  children: e
1870
- }), /* @__PURE__ */ U(mn, { children: [/* @__PURE__ */ H(gn, { children: /* @__PURE__ */ H(Q, {
1877
+ }), /* @__PURE__ */ U(hn, { children: [/* @__PURE__ */ H(_n, { children: /* @__PURE__ */ H(Z, {
1871
1878
  variant: r,
1872
1879
  size: i,
1873
1880
  "aria-label": n ?? o.splitButtonMore,
1874
1881
  className: "rounded-l-none px-2",
1875
1882
  children: /* @__PURE__ */ H(N, { size: 16 })
1876
- }) }), /* @__PURE__ */ H(_n, {
1883
+ }) }), /* @__PURE__ */ H(vn, {
1877
1884
  align: "end",
1878
1885
  children: t
1879
1886
  })] })]
@@ -1881,33 +1888,33 @@ function On({ children: e, menu: t, menuLabel: n, variant: r = "primary", size:
1881
1888
  }
1882
1889
  //#endregion
1883
1890
  //#region src/components/Card.tsx
1884
- var kn = "rounded-xl bg-surface-1", An = {
1891
+ var An = "rounded-xl bg-surface-1", jn = {
1885
1892
  none: "",
1886
1893
  sm: "p-3",
1887
1894
  md: "p-4"
1888
- }, jn = a(function({ level: e = "flat", padding: t = "md", className: n, ...r }, i) {
1895
+ }, Mn = a(function({ level: e = "flat", padding: t = "md", className: n, ...r }, i) {
1889
1896
  return /* @__PURE__ */ H("div", {
1890
1897
  ref: i,
1891
- className: W(kn, e === "raised" && "bg-surface-el shadow-raised", An[t], n),
1898
+ className: W(An, e === "raised" && "bg-surface-el shadow-raised", jn[t], n),
1892
1899
  ...r
1893
1900
  });
1894
1901
  });
1895
- jn.displayName = "Card";
1896
- var Mn = a(function({ selected: e, padding: t = "md", className: n, type: r = "button", ...i }, a) {
1902
+ Mn.displayName = "Card";
1903
+ var Nn = a(function({ selected: e, padding: t = "md", className: n, type: r = "button", ...i }, a) {
1897
1904
  return /* @__PURE__ */ H(y.button, {
1898
1905
  ref: a,
1899
1906
  type: r,
1900
1907
  "aria-pressed": e,
1901
1908
  whileTap: { scale: .99 },
1902
1909
  transition: G.instant,
1903
- className: W(kn, "touch-target block w-full text-left transition-[background-color,box-shadow] motion-instant", "hover:bg-fill-2", e && "ring-2 ring-inset ring-fg/30", An[t], n),
1910
+ className: W(An, "touch-target block w-full text-left transition-[background-color,box-shadow] motion-instant", "hover:bg-fill-2", e && "ring-2 ring-inset ring-fg/30", jn[t], n),
1904
1911
  ...i
1905
1912
  });
1906
1913
  });
1907
- Mn.displayName = "CardButton";
1914
+ Nn.displayName = "CardButton";
1908
1915
  //#endregion
1909
1916
  //#region src/components/Carousel.tsx
1910
- function Nn({ children: e, controls: t = !0, className: n, slideClassName: r, ...i }) {
1917
+ function Pn({ children: e, controls: t = !0, className: n, slideClassName: r, ...i }) {
1911
1918
  let { strings: a } = K(), o = p(null), [c, u] = m(0), d = e.length, f = s((e) => {
1912
1919
  let t = o.current;
1913
1920
  if (!t) return;
@@ -1975,7 +1982,7 @@ function Nn({ children: e, controls: t = !0, className: n, slideClassName: r, ..
1975
1982
  }
1976
1983
  //#endregion
1977
1984
  //#region src/lib/tint.ts
1978
- function Pn(e) {
1985
+ function Fn(e) {
1979
1986
  let t = 0;
1980
1987
  for (let n = 0; n < e.length; n++) t = t * 31 + e.charCodeAt(n) | 0;
1981
1988
  let n = Math.abs(t) % 360;
@@ -1986,7 +1993,7 @@ function Pn(e) {
1986
1993
  }
1987
1994
  //#endregion
1988
1995
  //#region src/lib/imageBrightness.ts
1989
- function Fn(e) {
1996
+ function In(e) {
1990
1997
  let [t, n] = m(null);
1991
1998
  return l(() => {
1992
1999
  if (!e) {
@@ -2021,14 +2028,14 @@ function Fn(e) {
2021
2028
  }
2022
2029
  //#endregion
2023
2030
  //#region src/components/Surface.tsx
2024
- var In = r({
2031
+ var Ln = r({
2025
2032
  hasBackground: !1,
2026
2033
  tone: "dark"
2027
2034
  });
2028
- function Ln() {
2029
- return c(In);
2035
+ function Rn() {
2036
+ return c(Ln);
2030
2037
  }
2031
- var Rn = {
2038
+ var zn = {
2032
2039
  dark: {
2033
2040
  none: null,
2034
2041
  soft: "bg-black/20",
@@ -2041,8 +2048,8 @@ var Rn = {
2041
2048
  auto: "bg-white/50",
2042
2049
  strong: "bg-white/70"
2043
2050
  }
2044
- }, zn = .42, Bn = a(function({ image: e, imagePosition: t, tint: n, fg: r, fgMuted: i, scrim: a = "auto", tone: o, as: s, className: c, style: l, children: u }, d) {
2045
- let f = s ?? "div", p = !!(e || n), m = Fn(o || r ? null : e), h = o ?? (m !== null && m > zn ? "light" : "dark"), g = r ?? (e && h === "light" ? "#111112" : e ? "#ffffff" : null), _ = g ? {
2051
+ }, Bn = .42, Vn = a(function({ image: e, imagePosition: t, tint: n, fg: r, fgMuted: i, scrim: a = "auto", tone: o, as: s, className: c, style: l, children: u }, d) {
2052
+ let f = s ?? "div", p = !!(e || n), m = In(o || r ? null : e), h = o ?? (m !== null && m > Bn ? "light" : "dark"), g = r ?? (e && h === "light" ? "#111112" : e ? "#ffffff" : null), _ = g ? {
2046
2053
  "--color-fg": g,
2047
2054
  "--color-fg-2": i ?? `color-mix(in oklab, ${g} 78%, transparent)`,
2048
2055
  "--color-fg-3": `color-mix(in oklab, ${g} 58%, transparent)`,
@@ -2057,7 +2064,7 @@ var Rn = {
2057
2064
  "--color-surface-2": h === "light" ? "rgb(255 255 255 / 0.7)" : "rgb(0 0 0 / 0.6)",
2058
2065
  "--color-surface-el": h === "light" ? "rgb(255 255 255 / 0.55)" : "rgb(0 0 0 / 0.45)"
2059
2066
  } : void 0;
2060
- return /* @__PURE__ */ H(In.Provider, {
2067
+ return /* @__PURE__ */ H(Ln.Provider, {
2061
2068
  value: {
2062
2069
  hasBackground: p,
2063
2070
  tone: h
@@ -2081,19 +2088,19 @@ var Rn = {
2081
2088
  ...n ? { backgroundColor: n } : void 0
2082
2089
  }
2083
2090
  }),
2084
- p && Rn[h][a] && /* @__PURE__ */ H("span", {
2091
+ p && zn[h][a] && /* @__PURE__ */ H("span", {
2085
2092
  "aria-hidden": "true",
2086
- className: W("pointer-events-none absolute inset-0 -z-10", Rn[h][a])
2093
+ className: W("pointer-events-none absolute inset-0 -z-10", zn[h][a])
2087
2094
  }),
2088
2095
  u
2089
2096
  ]
2090
2097
  })
2091
2098
  });
2092
2099
  });
2093
- Bn.displayName = "Surface";
2100
+ Vn.displayName = "Surface";
2094
2101
  //#endregion
2095
2102
  //#region src/components/Skeleton.tsx
2096
- function $({ shape: e = "text", width: t, height: n, className: r }) {
2103
+ function Q({ shape: e = "text", width: t, height: n, className: r }) {
2097
2104
  return /* @__PURE__ */ H("div", {
2098
2105
  "aria-hidden": "true",
2099
2106
  className: W("skeleton", e === "text" && "h-3.5 rounded-md", e === "circle" && "rounded-full", e === "block" && "rounded-xl", r),
@@ -2103,16 +2110,16 @@ function $({ shape: e = "text", width: t, height: n, className: r }) {
2103
2110
  }
2104
2111
  });
2105
2112
  }
2106
- function Vn({ className: e }) {
2113
+ function Hn({ className: e }) {
2107
2114
  return /* @__PURE__ */ U("div", {
2108
2115
  className: W("flex items-center gap-3 px-4 py-3", e),
2109
- children: [/* @__PURE__ */ H($, {
2116
+ children: [/* @__PURE__ */ H(Q, {
2110
2117
  shape: "circle",
2111
2118
  width: 36,
2112
2119
  height: 36
2113
2120
  }), /* @__PURE__ */ U("div", {
2114
2121
  className: "flex-1 space-y-2",
2115
- children: [/* @__PURE__ */ H($, { width: "45%" }), /* @__PURE__ */ H($, {
2122
+ children: [/* @__PURE__ */ H(Q, { width: "45%" }), /* @__PURE__ */ H(Q, {
2116
2123
  width: "70%",
2117
2124
  className: "h-3"
2118
2125
  })]
@@ -2121,8 +2128,8 @@ function Vn({ className: e }) {
2121
2128
  }
2122
2129
  //#endregion
2123
2130
  //#region src/components/CharacterCard.tsx
2124
- var Hn = a(function({ name: e, description: t, avatar: n, gradient: r, fg: i, fgMuted: a, variant: o = "row", trailing: s, selected: c, initials: l, className: u, type: d = "button", ...f }, p) {
2125
- let [h, g] = m(!1), _ = r ?? Pn(e).background, v = !!n && !h, b = W("group relative w-full overflow-hidden text-left", "rounded-2xl @3xl:rounded-3xl", "ring-1 ring-inset ring-line-2 transition-[box-shadow,transform] motion-instant", c && "ring-2 ring-accent", u);
2131
+ var Un = a(function({ name: e, description: t, avatar: n, gradient: r, fg: i, fgMuted: a, variant: o = "row", trailing: s, selected: c, initials: l, className: u, type: d = "button", ...f }, p) {
2132
+ let [h, g] = m(!1), _ = r ?? Fn(e).background, v = !!n && !h, b = W("group relative w-full overflow-hidden text-left", "rounded-2xl @3xl:rounded-3xl", "ring-1 ring-inset ring-line-2 transition-[box-shadow,transform] motion-instant", c && "ring-2 ring-accent", u);
2126
2133
  return o === "banner" ? /* @__PURE__ */ H(y.button, {
2127
2134
  ref: p,
2128
2135
  type: d,
@@ -2131,7 +2138,7 @@ var Hn = a(function({ name: e, description: t, avatar: n, gradient: r, fg: i, fg
2131
2138
  transition: G.instant,
2132
2139
  className: b,
2133
2140
  ...f,
2134
- children: /* @__PURE__ */ U(Bn, {
2141
+ children: /* @__PURE__ */ U(Vn, {
2135
2142
  tint: _,
2136
2143
  fg: i,
2137
2144
  fgMuted: a,
@@ -2178,7 +2185,7 @@ var Hn = a(function({ name: e, description: t, avatar: n, gradient: r, fg: i, fg
2178
2185
  transition: G.instant,
2179
2186
  className: b,
2180
2187
  ...f,
2181
- children: /* @__PURE__ */ U(Bn, {
2188
+ children: /* @__PURE__ */ U(Vn, {
2182
2189
  tint: _,
2183
2190
  fg: i,
2184
2191
  fgMuted: a,
@@ -2217,22 +2224,22 @@ var Hn = a(function({ name: e, description: t, avatar: n, gradient: r, fg: i, fg
2217
2224
  })
2218
2225
  });
2219
2226
  });
2220
- Hn.displayName = "CharacterCard";
2221
- function Un({ variant: e = "row" }) {
2222
- return e === "banner" ? /* @__PURE__ */ H($, {
2227
+ Un.displayName = "CharacterCard";
2228
+ function Wn({ variant: e = "row" }) {
2229
+ return e === "banner" ? /* @__PURE__ */ H(Q, {
2223
2230
  shape: "block",
2224
2231
  className: "h-24 w-full rounded-2xl @3xl:h-36 @3xl:rounded-3xl"
2225
2232
  }) : /* @__PURE__ */ U("div", {
2226
2233
  className: "flex w-full items-center gap-3.5 rounded-2xl border border-line p-3.5 @3xl:gap-6 @3xl:rounded-3xl @3xl:p-6",
2227
- children: [/* @__PURE__ */ H($, {
2234
+ children: [/* @__PURE__ */ H(Q, {
2228
2235
  shape: "circle",
2229
2236
  className: "h-14 w-14 shrink-0 @3xl:h-24 @3xl:w-24"
2230
2237
  }), /* @__PURE__ */ U("div", {
2231
2238
  className: "flex-1 space-y-2",
2232
- children: [/* @__PURE__ */ H($, {
2239
+ children: [/* @__PURE__ */ H(Q, {
2233
2240
  width: "40%",
2234
2241
  className: "h-4"
2235
- }), /* @__PURE__ */ H($, {
2242
+ }), /* @__PURE__ */ H(Q, {
2236
2243
  width: "70%",
2237
2244
  className: "h-3"
2238
2245
  })]
@@ -2241,13 +2248,13 @@ function Un({ variant: e = "row" }) {
2241
2248
  }
2242
2249
  //#endregion
2243
2250
  //#region src/components/Chart.tsx
2244
- var Wn = [
2251
+ var Gn = [
2245
2252
  "var(--color-accent)",
2246
2253
  "var(--color-info)",
2247
2254
  "var(--color-secondary)",
2248
2255
  "var(--color-warning)",
2249
2256
  "var(--color-danger)"
2250
- ], Gn = {
2257
+ ], Kn = {
2251
2258
  stroke: "var(--color-fg-4)",
2252
2259
  tickLine: !1,
2253
2260
  axisLine: !1,
@@ -2256,7 +2263,7 @@ var Wn = [
2256
2263
  fill: "var(--color-fg-3)"
2257
2264
  }
2258
2265
  };
2259
- function Kn({ active: e, payload: t, label: n, format: r }) {
2266
+ function qn({ active: e, payload: t, label: n, format: r }) {
2260
2267
  return !e || !t?.length ? null : /* @__PURE__ */ U("div", {
2261
2268
  className: "rounded-lg border border-line bg-surface-el px-2.5 py-2 shadow-raised",
2262
2269
  children: [/* @__PURE__ */ H("p", {
@@ -2281,7 +2288,7 @@ function Kn({ active: e, payload: t, label: n, format: r }) {
2281
2288
  }, e.dataKey))]
2282
2289
  });
2283
2290
  }
2284
- function qn({ data: e, x: t, series: n, kind: r = "area", height: i = 200, format: a, minimal: o, className: s }) {
2291
+ function Jn({ data: e, x: t, series: n, kind: r = "area", height: i = 200, format: a, minimal: o, className: s }) {
2285
2292
  let c = u(), l = r === "bar" ? Be : r === "line" ? We : Re;
2286
2293
  return /* @__PURE__ */ H("div", {
2287
2294
  className: W("w-full", s),
@@ -2306,11 +2313,11 @@ function qn({ data: e, x: t, series: n, kind: r = "area", height: i = 200, forma
2306
2313
  y2: "1",
2307
2314
  children: [/* @__PURE__ */ H("stop", {
2308
2315
  offset: "0%",
2309
- stopColor: e.color ?? Wn[t % Wn.length],
2316
+ stopColor: e.color ?? Gn[t % Gn.length],
2310
2317
  stopOpacity: .35
2311
2318
  }), /* @__PURE__ */ H("stop", {
2312
2319
  offset: "100%",
2313
- stopColor: e.color ?? Wn[t % Wn.length],
2320
+ stopColor: e.color ?? Gn[t % Gn.length],
2314
2321
  stopOpacity: 0
2315
2322
  })]
2316
2323
  }, e.key)) }),
@@ -2320,20 +2327,20 @@ function qn({ data: e, x: t, series: n, kind: r = "area", height: i = 200, forma
2320
2327
  }),
2321
2328
  /* @__PURE__ */ H(qe, {
2322
2329
  dataKey: t,
2323
- ...Gn,
2330
+ ...Kn,
2324
2331
  hide: o
2325
2332
  }),
2326
2333
  !o && /* @__PURE__ */ H(Je, {
2327
- ...Gn,
2334
+ ...Kn,
2328
2335
  width: 48,
2329
2336
  tickFormatter: a
2330
2337
  }),
2331
2338
  /* @__PURE__ */ H(Ke, {
2332
2339
  cursor: { stroke: "var(--color-line-2)" },
2333
- content: /* @__PURE__ */ H(Kn, { format: a })
2340
+ content: /* @__PURE__ */ H(qn, { format: a })
2334
2341
  }),
2335
2342
  n.map((e, t) => {
2336
- let n = e.color ?? Wn[t % Wn.length];
2343
+ let n = e.color ?? Gn[t % Gn.length];
2337
2344
  return r === "bar" ? /* @__PURE__ */ H(ze, {
2338
2345
  dataKey: e.key,
2339
2346
  name: e.label,
@@ -2365,7 +2372,7 @@ function qn({ data: e, x: t, series: n, kind: r = "area", height: i = 200, forma
2365
2372
  })
2366
2373
  });
2367
2374
  }
2368
- function Jn({ data: e, color: t = "var(--color-accent)", height: n = 32, className: r }) {
2375
+ function Yn({ data: e, color: t = "var(--color-accent)", height: n = 32, className: r }) {
2369
2376
  let i = e.map((e, t) => ({
2370
2377
  index: t,
2371
2378
  value: e
@@ -2398,10 +2405,10 @@ function Jn({ data: e, color: t = "var(--color-accent)", height: n = 32, classNa
2398
2405
  }
2399
2406
  //#endregion
2400
2407
  //#region src/components/Checkbox.tsx
2401
- var Yn = {
2408
+ var Xn = {
2402
2409
  sm: "h-4 w-4 rounded-[5px]",
2403
2410
  md: "h-5 w-5 rounded-md"
2404
- }, Xn = a(function({ checked: e, onChange: t, indeterminate: n, label: r, size: i = "md", disabled: a, className: o, id: s, ...c }, l) {
2411
+ }, Zn = a(function({ checked: e, onChange: t, indeterminate: n, label: r, size: i = "md", disabled: a, className: o, id: s, ...c }, l) {
2405
2412
  let u = J(), d = e || n, f = /* @__PURE__ */ H("button", {
2406
2413
  ref: l,
2407
2414
  type: "button",
@@ -2411,7 +2418,7 @@ var Yn = {
2411
2418
  "aria-describedby": u?.describedBy,
2412
2419
  disabled: a,
2413
2420
  onClick: () => t(!e),
2414
- className: W("inline-flex shrink-0 items-center justify-center border transition-colors motion-instant", Yn[i], d ? "border-accent bg-accent text-on-accent" : "border-line-3 bg-fill hover:border-fg-3", a && !r && "cursor-not-allowed opacity-40", a && "cursor-not-allowed", o),
2421
+ className: W("inline-flex shrink-0 items-center justify-center border transition-colors motion-instant", Xn[i], d ? "border-accent bg-accent text-on-accent" : "border-line-3 bg-fill hover:border-fg-3", a && !r && "cursor-not-allowed opacity-40", a && "cursor-not-allowed", o),
2415
2422
  ...c,
2416
2423
  children: /* @__PURE__ */ H("svg", {
2417
2424
  viewBox: "0 0 16 16",
@@ -2449,10 +2456,10 @@ var Yn = {
2449
2456
  children: [f, /* @__PURE__ */ H("span", { children: r })]
2450
2457
  }) : f;
2451
2458
  });
2452
- Xn.displayName = "Checkbox";
2459
+ Zn.displayName = "Checkbox";
2453
2460
  //#endregion
2454
2461
  //#region src/components/Chip.tsx
2455
- function Zn({ selected: e, onRemove: t, icon: n, className: r, children: i, ...a }) {
2462
+ function Qn({ selected: e, onRemove: t, icon: n, className: r, children: i, ...a }) {
2456
2463
  let { strings: o } = K(), s = W("inline-flex h-8 items-center gap-1.5 rounded-full border px-3 text-sm font-medium transition-colors motion-instant", e ? "border-accent/40 bg-accent/15 text-accent" : "border-line-2 bg-fill text-fg-2 hover:border-line-3 hover:bg-fill-2 hover:text-fg", r);
2457
2464
  return t ? /* @__PURE__ */ U("span", {
2458
2465
  className: W(s, "pr-1"),
@@ -2477,7 +2484,7 @@ function Zn({ selected: e, onRemove: t, icon: n, className: r, children: i, ...a
2477
2484
  }
2478
2485
  //#endregion
2479
2486
  //#region src/components/CopyButton.tsx
2480
- function Qn({ value: e, children: t, label: n, copiedLabel: r, className: i, ...a }) {
2487
+ function $n({ value: e, children: t, label: n, copiedLabel: r, className: i, ...a }) {
2481
2488
  let { strings: o } = K(), [s, c] = m(!1), u = p(null);
2482
2489
  l(() => () => {
2483
2490
  u.current && window.clearTimeout(u.current);
@@ -2490,7 +2497,7 @@ function Qn({ value: e, children: t, label: n, copiedLabel: r, className: i, ...
2490
2497
  }
2491
2498
  c(!0), u.current && window.clearTimeout(u.current), u.current = window.setTimeout(() => c(!1), 1600);
2492
2499
  };
2493
- return t ? /* @__PURE__ */ H(Q, {
2500
+ return t ? /* @__PURE__ */ H(Z, {
2494
2501
  onClick: d,
2495
2502
  leading: s ? /* @__PURE__ */ H(M, {
2496
2503
  size: 16,
@@ -2511,8 +2518,8 @@ function Qn({ value: e, children: t, label: n, copiedLabel: r, className: i, ...
2511
2518
  }
2512
2519
  //#endregion
2513
2520
  //#region src/components/ScrollArea.tsx
2514
- var $n = 28;
2515
- function er({ axis: e = "y", fade: t = !0, bar: n = !1, className: r, children: i }) {
2521
+ var er = 28;
2522
+ function tr({ axis: e = "y", fade: t = !0, bar: n = !1, className: r, children: i }) {
2516
2523
  let a = p(null), [o, s] = m({
2517
2524
  start: !1,
2518
2525
  end: !1
@@ -2533,7 +2540,7 @@ function er({ axis: e = "y", fade: t = !0, bar: n = !1, className: r, children:
2533
2540
  n.removeEventListener("scroll", r), i.disconnect();
2534
2541
  };
2535
2542
  }, [e, t]);
2536
- let c = e === "y" ? "to bottom" : "to right", u = !t || !o.start && !o.end ? void 0 : o.start && o.end ? `linear-gradient(${c}, transparent, black ${$n}px, black calc(100% - ${$n}px), transparent)` : o.end ? `linear-gradient(${c}, black calc(100% - ${$n}px), transparent)` : `linear-gradient(${c}, transparent, black ${$n}px)`;
2543
+ let c = e === "y" ? "to bottom" : "to right", u = !t || !o.start && !o.end ? void 0 : o.start && o.end ? `linear-gradient(${c}, transparent, black ${er}px, black calc(100% - ${er}px), transparent)` : o.end ? `linear-gradient(${c}, black calc(100% - ${er}px), transparent)` : `linear-gradient(${c}, transparent, black ${er}px)`;
2537
2544
  return /* @__PURE__ */ H("div", {
2538
2545
  ref: a,
2539
2546
  className: W(e === "y" ? "overflow-y-auto" : "overflow-x-auto", n ? "scrollbar-thin" : "scrollbar-none", r),
@@ -2546,7 +2553,7 @@ function er({ axis: e = "y", fade: t = !0, bar: n = !1, className: r, children:
2546
2553
  }
2547
2554
  //#endregion
2548
2555
  //#region src/components/CodeBlock.tsx
2549
- function tr({ code: e, label: t, wrap: n, lineNumbers: r, maxHeight: i = 320, className: a }) {
2556
+ function nr({ code: e, label: t, wrap: n, lineNumbers: r, maxHeight: i = 320, className: a }) {
2550
2557
  let o = e.split("\n");
2551
2558
  return /* @__PURE__ */ U("div", {
2552
2559
  className: W("overflow-hidden rounded-xl border border-line bg-surface-1", a),
@@ -2555,8 +2562,8 @@ function tr({ code: e, label: t, wrap: n, lineNumbers: r, maxHeight: i = 320, cl
2555
2562
  children: [/* @__PURE__ */ H("span", {
2556
2563
  className: "min-w-0 flex-1 truncate font-mono text-2xs text-fg-3",
2557
2564
  children: t
2558
- }), /* @__PURE__ */ H(Qn, { value: e })]
2559
- }), /* @__PURE__ */ H(er, {
2565
+ }), /* @__PURE__ */ H($n, { value: e })]
2566
+ }), /* @__PURE__ */ H(tr, {
2560
2567
  axis: n ? "y" : "x",
2561
2568
  bar: !0,
2562
2569
  className: "max-w-full",
@@ -2579,7 +2586,7 @@ function tr({ code: e, label: t, wrap: n, lineNumbers: r, maxHeight: i = 320, cl
2579
2586
  }
2580
2587
  //#endregion
2581
2588
  //#region src/components/Collapsible.tsx
2582
- function nr({ title: e, description: t, defaultOpen: n = !1, open: r, onOpenChange: i, trailing: a, variant: o = "panel", className: s, children: c }) {
2589
+ function rr({ title: e, description: t, defaultOpen: n = !1, open: r, onOpenChange: i, trailing: a, variant: o = "panel", className: s, children: c }) {
2583
2590
  let l = u(), [d, f] = m(n), p = r ?? d, h = (e) => {
2584
2591
  r === void 0 && f(e), i?.(e);
2585
2592
  };
@@ -2641,7 +2648,7 @@ function nr({ title: e, description: t, defaultOpen: n = !1, open: r, onOpenChan
2641
2648
  }
2642
2649
  //#endregion
2643
2650
  //#region src/components/ColorPicker.tsx
2644
- var rr = [
2651
+ var ir = [
2645
2652
  "#65c789",
2646
2653
  "#22d3ee",
2647
2654
  "#3b82f6",
@@ -2653,21 +2660,21 @@ var rr = [
2653
2660
  "#e5e7eb",
2654
2661
  "#71717a"
2655
2662
  ];
2656
- function ir(e) {
2663
+ function ar(e) {
2657
2664
  let t = e.trim().replace(/^#?/, "");
2658
2665
  return /^[0-9a-f]{3}$/i.test(t) ? `#${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`.toLowerCase() : /^[0-9a-f]{6}$/i.test(t) ? `#${t.toLowerCase()}` : null;
2659
2666
  }
2660
- function ar({ value: e, onChange: t, swatches: n = rr, disabled: r, id: i, className: a }) {
2667
+ function or({ value: e, onChange: t, swatches: n = ir, disabled: r, id: i, className: a }) {
2661
2668
  let { strings: o } = K(), s = J(), [c, l] = m(e), [u, d] = m(!1), f = (n) => {
2662
- let r = ir(n);
2669
+ let r = ar(n);
2663
2670
  r ? t(r) : l(e);
2664
2671
  };
2665
- return /* @__PURE__ */ U(cn, {
2672
+ return /* @__PURE__ */ U(ln, {
2666
2673
  open: u,
2667
2674
  onOpenChange: (t) => {
2668
2675
  d(t), t && l(e);
2669
2676
  },
2670
- children: [/* @__PURE__ */ H(ln, { children: /* @__PURE__ */ U("button", {
2677
+ children: [/* @__PURE__ */ H(un, { children: /* @__PURE__ */ U("button", {
2671
2678
  type: "button",
2672
2679
  id: i ?? s?.id,
2673
2680
  disabled: r,
@@ -2680,7 +2687,7 @@ function ar({ value: e, onChange: t, swatches: n = rr, disabled: r, id: i, class
2680
2687
  className: "font-mono text-sm uppercase text-fg-2",
2681
2688
  children: e
2682
2689
  })]
2683
- }) }), /* @__PURE__ */ U(fn, {
2690
+ }) }), /* @__PURE__ */ U(pn, {
2684
2691
  className: "w-60 p-3",
2685
2692
  children: [/* @__PURE__ */ H("div", {
2686
2693
  className: "grid grid-cols-5 gap-2",
@@ -2725,26 +2732,26 @@ function ar({ value: e, onChange: t, swatches: n = rr, disabled: r, id: i, class
2725
2732
  }
2726
2733
  //#endregion
2727
2734
  //#region src/components/Spinner.tsx
2728
- var or = {
2735
+ var sr = {
2729
2736
  sm: 14,
2730
2737
  md: 18,
2731
2738
  lg: 24
2732
2739
  };
2733
- function sr({ size: e = "md", label: t, className: n }) {
2740
+ function cr({ size: e = "md", label: t, className: n }) {
2734
2741
  return /* @__PURE__ */ H(pe, {
2735
- size: or[e],
2742
+ size: sr[e],
2736
2743
  role: t ? "status" : void 0,
2737
2744
  "aria-label": t,
2738
2745
  "aria-hidden": !t || void 0,
2739
2746
  className: W("animate-spin text-fg-3", n)
2740
2747
  });
2741
2748
  }
2742
- function cr({ label: e, className: t }) {
2749
+ function lr({ label: e, className: t }) {
2743
2750
  let { strings: n } = K();
2744
2751
  return /* @__PURE__ */ U("div", {
2745
2752
  className: W("flex flex-col items-center justify-center gap-3 px-6 py-12", t),
2746
2753
  role: "status",
2747
- children: [/* @__PURE__ */ H(sr, { size: "lg" }), /* @__PURE__ */ H("p", {
2754
+ children: [/* @__PURE__ */ H(cr, { size: "lg" }), /* @__PURE__ */ H("p", {
2748
2755
  className: "text-sm text-fg-3",
2749
2756
  children: e ?? n.loadingState
2750
2757
  })]
@@ -2752,7 +2759,7 @@ function cr({ label: e, className: t }) {
2752
2759
  }
2753
2760
  //#endregion
2754
2761
  //#region src/components/Combobox.tsx
2755
- function lr({ options: e, value: t, onChange: n, placeholder: r, searchPlaceholder: i, onSearch: a, loading: o, emptyMessage: s, clearable: c, disabled: u, id: d, className: h }) {
2762
+ function ur({ options: e, value: t, onChange: n, placeholder: r, searchPlaceholder: i, onSearch: a, loading: o, emptyMessage: s, clearable: c, disabled: u, id: d, className: h }) {
2756
2763
  let { strings: g } = K(), _ = J(), [v, y] = m(!1), [b, x] = m(""), [S, C] = m(0), w = p(null), T = p(null), E = f(() => {
2757
2764
  if (a || !b.trim()) return e;
2758
2765
  let t = b.toLowerCase();
@@ -2788,10 +2795,10 @@ function lr({ options: e, value: t, onChange: n, placeholder: r, searchPlacehold
2788
2795
  }
2789
2796
  e.key === "Enter" && O[S] && (e.preventDefault(), A(O[S])), e.key === "Home" && (e.preventDefault(), C(0)), e.key === "End" && (e.preventDefault(), C(O.length - 1));
2790
2797
  }, j = -1;
2791
- return /* @__PURE__ */ U(cn, {
2798
+ return /* @__PURE__ */ U(ln, {
2792
2799
  open: v,
2793
2800
  onOpenChange: y,
2794
- children: [/* @__PURE__ */ H(ln, { children: /* @__PURE__ */ U("button", {
2801
+ children: [/* @__PURE__ */ H(un, { children: /* @__PURE__ */ U("button", {
2795
2802
  type: "button",
2796
2803
  id: d ?? _?.id,
2797
2804
  role: "combobox",
@@ -2824,7 +2831,7 @@ function lr({ options: e, value: t, onChange: n, placeholder: r, searchPlacehold
2824
2831
  className: "shrink-0 text-fg-3"
2825
2832
  })
2826
2833
  ]
2827
- }) }), /* @__PURE__ */ U(fn, {
2834
+ }) }), /* @__PURE__ */ U(pn, {
2828
2835
  matchWidth: !0,
2829
2836
  className: "p-0",
2830
2837
  children: [/* @__PURE__ */ U("div", {
@@ -2845,7 +2852,7 @@ function lr({ options: e, value: t, onChange: n, placeholder: r, searchPlacehold
2845
2852
  "aria-label": i ?? g.comboboxSearch,
2846
2853
  className: "min-w-0 flex-1 bg-transparent text-base text-fg outline-none placeholder:text-fg-4"
2847
2854
  }),
2848
- o && /* @__PURE__ */ H(sr, { size: "sm" })
2855
+ o && /* @__PURE__ */ H(cr, { size: "sm" })
2849
2856
  ]
2850
2857
  }), /* @__PURE__ */ U("div", {
2851
2858
  ref: T,
@@ -2897,14 +2904,14 @@ function lr({ options: e, value: t, onChange: n, placeholder: r, searchPlacehold
2897
2904
  }
2898
2905
  //#endregion
2899
2906
  //#region src/components/Highlight.tsx
2900
- function ur(e) {
2907
+ function dr(e) {
2901
2908
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2902
2909
  }
2903
- function dr({ children: e, query: t, words: n, className: r, markClassName: i }) {
2910
+ function fr({ children: e, query: t, words: n, className: r, markClassName: i }) {
2904
2911
  let a = f(() => {
2905
2912
  let r = t.trim();
2906
2913
  if (!r) return [e];
2907
- let a = n ? r.split(/\s+/).filter(Boolean) : [r], o = RegExp(`(${a.map(ur).join("|")})`, "gi");
2914
+ let a = n ? r.split(/\s+/).filter(Boolean) : [r], o = RegExp(`(${a.map(dr).join("|")})`, "gi");
2908
2915
  return e.split(o).map((e, t) => t % 2 == 1 ? /* @__PURE__ */ H("mark", {
2909
2916
  className: W("rounded-[3px] bg-accent/25 px-0.5 text-fg", i),
2910
2917
  children: e
@@ -2922,7 +2929,7 @@ function dr({ children: e, query: t, words: n, className: r, markClassName: i })
2922
2929
  }
2923
2930
  //#endregion
2924
2931
  //#region src/components/Kbd.tsx
2925
- function fr({ children: e, className: t }) {
2932
+ function pr({ children: e, className: t }) {
2926
2933
  return /* @__PURE__ */ H("kbd", {
2927
2934
  className: W("inline-flex h-5 min-w-5 items-center justify-center rounded-md border border-line-2 bg-fill px-1.5 font-sans text-2xs font-medium text-fg-2", t),
2928
2935
  children: e
@@ -2930,7 +2937,7 @@ function fr({ children: e, className: t }) {
2930
2937
  }
2931
2938
  //#endregion
2932
2939
  //#region src/components/CommandPalette.tsx
2933
- function pr({ open: e, onOpenChange: t, commands: n, placeholder: r, onQueryChange: i, loading: a, emptyMessage: o }) {
2940
+ function mr({ open: e, onOpenChange: t, commands: n, placeholder: r, onQueryChange: i, loading: a, emptyMessage: o }) {
2934
2941
  let { strings: s } = K(), [c, u] = m(""), [d, h] = m(0), _ = p(null), v = p(null), b = f(() => {
2935
2942
  if (i || !c.trim()) return n;
2936
2943
  let e = c.toLowerCase();
@@ -3012,8 +3019,8 @@ function pr({ open: e, onOpenChange: t, commands: n, placeholder: r, onQueryChan
3012
3019
  "aria-label": r ?? s.commandPalettePlaceholder,
3013
3020
  className: "min-w-0 flex-1 bg-transparent text-lg text-fg outline-none placeholder:text-fg-4"
3014
3021
  }),
3015
- a && /* @__PURE__ */ H(sr, { size: "sm" }),
3016
- /* @__PURE__ */ H(fr, { children: s.commandPaletteEscape })
3022
+ a && /* @__PURE__ */ H(cr, { size: "sm" }),
3023
+ /* @__PURE__ */ H(pr, { children: s.commandPaletteEscape })
3017
3024
  ]
3018
3025
  }), /* @__PURE__ */ U("div", {
3019
3026
  ref: _,
@@ -3044,7 +3051,7 @@ function pr({ open: e, onOpenChange: t, commands: n, placeholder: r, onQueryChan
3044
3051
  className: "min-w-0 flex-1",
3045
3052
  children: [/* @__PURE__ */ H("span", {
3046
3053
  className: "block truncate text-base text-fg",
3047
- children: /* @__PURE__ */ H(dr, {
3054
+ children: /* @__PURE__ */ H(fr, {
3048
3055
  query: c,
3049
3056
  children: e.label
3050
3057
  })
@@ -3053,7 +3060,7 @@ function pr({ open: e, onOpenChange: t, commands: n, placeholder: r, onQueryChan
3053
3060
  children: e.description
3054
3061
  })]
3055
3062
  }),
3056
- e.shortcut && /* @__PURE__ */ H(fr, { children: e.shortcut }),
3063
+ e.shortcut && /* @__PURE__ */ H(pr, { children: e.shortcut }),
3057
3064
  t && /* @__PURE__ */ H(oe, {
3058
3065
  size: 14,
3059
3066
  className: "shrink-0 text-fg-4"
@@ -3065,7 +3072,7 @@ function pr({ open: e, onOpenChange: t, commands: n, placeholder: r, onQueryChan
3065
3072
  })]
3066
3073
  }) }), document.body);
3067
3074
  }
3068
- function mr() {
3075
+ function hr() {
3069
3076
  let [e, t] = m(!1);
3070
3077
  return l(() => {
3071
3078
  let e = (e) => {
@@ -3079,7 +3086,7 @@ function mr() {
3079
3086
  }
3080
3087
  //#endregion
3081
3088
  //#region src/lib/useLongPress.ts
3082
- function hr(e, { delay: t = 450, enabled: n = !0 } = {}) {
3089
+ function gr(e, { delay: t = 450, enabled: n = !0 } = {}) {
3083
3090
  let r = p(null), i = p(!1), a = p(null), o = s(() => {
3084
3091
  r.current !== null && window.clearTimeout(r.current), r.current = null;
3085
3092
  }, []), c = s((s) => {
@@ -3125,13 +3132,13 @@ function hr(e, { delay: t = 450, enabled: n = !0 } = {}) {
3125
3132
  }
3126
3133
  //#endregion
3127
3134
  //#region src/components/Composer.tsx
3128
- function gr({ value: e, onChange: t, onSend: n, onStop: r, onContinue: i, onSendAsSystem: a, onAttach: o, attachments: s = [], onRemoveAttachment: c, mic: u, sending: d = !1, disabled: f = !1, placeholder: m, enterSends: h = !0, notice: _, topSlot: v, className: b }) {
3135
+ function _r({ value: e, onChange: t, onSend: n, onStop: r, onContinue: i, onSendAsSystem: a, onAttach: o, attachments: s = [], onRemoveAttachment: c, mic: u, sending: d = !1, disabled: f = !1, placeholder: m, enterSends: h = !0, notice: _, topSlot: v, className: b }) {
3129
3136
  let { strings: x } = K(), S = p(null), C = e.trim().length > 0 || s.length > 0, w = !!u?.active, T = d ? r ? "stop" : "busy" : C ? "send" : "continue", E = f || T === "busy" || T === "continue" && !i;
3130
3137
  l(() => {
3131
3138
  let e = S.current;
3132
3139
  e && (e.style.height = "auto", e.style.height = `${Math.min(e.scrollHeight, 160)}px`);
3133
3140
  }, [e]);
3134
- let D = hr(a, { enabled: T === "send" && !f }), k = () => {
3141
+ let D = gr(a, { enabled: T === "send" && !f }), k = () => {
3135
3142
  T === "stop" ? r?.() : T === "send" ? n() : T === "continue" && i?.();
3136
3143
  }, A = (e) => {
3137
3144
  !h || e.key !== "Enter" || e.shiftKey || e.nativeEvent.isComposing || (e.preventDefault(), !d && !f && C && n());
@@ -3203,7 +3210,7 @@ function gr({ value: e, onChange: t, onSend: n, onStop: r, onContinue: i, onSend
3203
3210
  disabled: f || d || w,
3204
3211
  children: /* @__PURE__ */ H(z, { size: 18 })
3205
3212
  }),
3206
- w && u ? /* @__PURE__ */ H(vr, {
3213
+ w && u ? /* @__PURE__ */ H(yr, {
3207
3214
  elapsedMs: u.elapsedMs,
3208
3215
  analyser: u.analyser,
3209
3216
  level: u.level,
@@ -3285,11 +3292,11 @@ function gr({ value: e, onChange: t, onSend: n, onStop: r, onContinue: i, onSend
3285
3292
  })]
3286
3293
  });
3287
3294
  }
3288
- function _r(e) {
3295
+ function vr(e) {
3289
3296
  let t = Math.max(0, Math.floor(e / 1e3));
3290
3297
  return `${Math.floor(t / 60)}:${String(t % 60).padStart(2, "0")}`;
3291
3298
  }
3292
- function vr({ elapsedMs: e, analyser: t, level: n, frozen: r = !1 }) {
3299
+ function yr({ elapsedMs: e, analyser: t, level: n, frozen: r = !1 }) {
3293
3300
  let { strings: i } = K(), a = p(null), o = p(null), s = p([]), c = p(null), [u, d] = m({
3294
3301
  w: 0,
3295
3302
  h: 0
@@ -3346,7 +3353,7 @@ function vr({ elapsedMs: e, analyser: t, level: n, frozen: r = !1 }) {
3346
3353
  className: "flex min-h-[var(--composer-row)] min-w-0 flex-1 items-center gap-2.5 px-2",
3347
3354
  role: "status",
3348
3355
  "aria-live": "polite",
3349
- "aria-label": r ? i.composerTranscribing : i.composerRecording(_r(e)),
3356
+ "aria-label": r ? i.composerTranscribing : i.composerRecording(vr(e)),
3350
3357
  children: [
3351
3358
  /* @__PURE__ */ U("span", {
3352
3359
  className: "relative flex h-2 w-2 shrink-0",
@@ -3371,14 +3378,14 @@ function vr({ elapsedMs: e, analyser: t, level: n, frozen: r = !1 }) {
3371
3378
  }),
3372
3379
  /* @__PURE__ */ H("span", {
3373
3380
  className: "shrink-0 text-xs tabular-nums text-fg-2",
3374
- children: _r(e)
3381
+ children: vr(e)
3375
3382
  })
3376
3383
  ]
3377
3384
  });
3378
3385
  }
3379
3386
  //#endregion
3380
3387
  //#region src/lib/useModal.ts
3381
- function yr(e, t, n, { lockScroll: r = !0 } = {}) {
3388
+ function br(e, t, n, { lockScroll: r = !0 } = {}) {
3382
3389
  l(() => {
3383
3390
  if (!e) return;
3384
3391
  let i = document.activeElement, a = document.body.style.overflow;
@@ -3408,20 +3415,20 @@ function yr(e, t, n, { lockScroll: r = !0 } = {}) {
3408
3415
  }
3409
3416
  //#endregion
3410
3417
  //#region src/components/Sheet.tsx
3411
- var br = {
3418
+ var xr = {
3412
3419
  sm: "max-w-sm",
3413
3420
  md: "max-w-md",
3414
3421
  lg: "max-w-xl"
3415
- }, xr = {
3422
+ }, Sr = {
3416
3423
  sm: "max-w-sm",
3417
3424
  md: "max-w-lg",
3418
3425
  lg: "max-w-2xl"
3419
- }, Sr = {
3426
+ }, Cr = {
3420
3427
  sm: "max-w-md",
3421
3428
  md: "max-w-xl",
3422
3429
  lg: "max-w-3xl"
3423
- }, Cr = 4e3, wr = 4;
3424
- function Tr({ onExit: e, children: t }) {
3430
+ }, wr = 4e3, Tr = 4;
3431
+ function Er({ onExit: e, children: t }) {
3425
3432
  let [n, r] = S(), i = p(n);
3426
3433
  return i.current = n, l(() => {
3427
3434
  n || e().then(() => {
@@ -3429,11 +3436,11 @@ function Tr({ onExit: e, children: t }) {
3429
3436
  });
3430
3437
  }, [n]), /* @__PURE__ */ H(V, { children: t });
3431
3438
  }
3432
- function Er({ open: e, onClose: t, title: n, description: r, leftAction: i, rightAction: a, closeButton: o, dismissible: s = !0, footer: c, placement: h = "bottom", size: _ = "md", detents: b, defaultDetent: S = 0, className: T, scrollRef: E, children: D }) {
3433
- let { strings: O } = K(), k = u(), A = u(), ee = p(null), j = p(null), M = f(() => rn(j, E), [E]), te = At(), N = C(), [P, F] = m(S), ne = Ot(), re = !!Dt().portal, ie = re ? "%" : "dvh", ae = () => {
3439
+ function Dr({ open: e, onClose: t, title: n, description: r, leftAction: i, rightAction: a, closeButton: o, dismissible: s = !0, footer: c, placement: h = "bottom", size: _ = "md", detents: b, defaultDetent: S = 0, className: T, scrollRef: E, children: D }) {
3440
+ let { strings: O } = K(), k = u(), A = u(), ee = p(null), j = p(null), M = f(() => an(j, E), [E]), te = At(), N = C(), [P, F] = m(S), ne = Ot(), re = !!Dt().portal, ie = re ? "%" : "dvh", ae = () => {
3434
3441
  s && t();
3435
3442
  };
3436
- yr(e, ae, ee, { lockScroll: !re }), l(() => {
3443
+ br(e, ae, ee, { lockScroll: !re }), l(() => {
3437
3444
  e && F(S);
3438
3445
  }, [e, S]);
3439
3446
  let oe = h === "auto" ? te ? "bottom" : "side" : h, I = oe === "bottom", L = b?.length ? b : null, se = L ? `${Math.round(L[Math.min(P, L.length - 1)] * 100)}${ie}` : void 0, ce = x(0), le = p(0), ue = p(null), de = p(!1), R = p(null), [fe, pe] = m(!1), me = w(ce, (e) => Math.max(0, e)), he = w(ce, (e) => {
@@ -3443,7 +3450,7 @@ function Er({ open: e, onClose: t, title: n, description: r, leftAction: i, righ
3443
3450
  ...t,
3444
3451
  velocity: n
3445
3452
  }), ue.current), _e = p(!1);
3446
- I && e && !_e.current && (de.current = !1, ce.jump(Cr)), _e.current = e, d(() => {
3453
+ I && e && !_e.current && (de.current = !1, ce.jump(wr)), _e.current = e, d(() => {
3447
3454
  if (!e || !I) return;
3448
3455
  let t = ee.current;
3449
3456
  if (!t) return;
@@ -3476,7 +3483,7 @@ function Er({ open: e, onClose: t, title: n, description: r, leftAction: i, righ
3476
3483
  if (!t || t.pointerId !== e.pointerId) return;
3477
3484
  let n = e.clientY - t.startY;
3478
3485
  if (!t.active) {
3479
- if (Math.abs(n) < wr) return;
3486
+ if (Math.abs(n) < Tr) return;
3480
3487
  let r = j.current;
3481
3488
  if (t.fromBody && fe && (n < 0 || (r?.scrollTop ?? 0) > 0)) {
3482
3489
  R.current = null;
@@ -3565,7 +3572,7 @@ function Er({ open: e, onClose: t, title: n, description: r, leftAction: i, righ
3565
3572
  "aria-describedby": r ? A : void 0,
3566
3573
  tabIndex: -1
3567
3574
  }, De = null;
3568
- if (e && I) De = /* @__PURE__ */ H(Tr, {
3575
+ if (e && I) De = /* @__PURE__ */ H(Er, {
3569
3576
  onExit: () => ge(le.current, G.sheetOut).finished,
3570
3577
  children: /* @__PURE__ */ U("div", {
3571
3578
  className: "fixed inset-0 z-50",
@@ -3582,7 +3589,7 @@ function Er({ open: e, onClose: t, title: n, description: r, leftAction: i, righ
3582
3589
  boxShadow: "var(--shadow-sheet), 0 120px 0 0 var(--color-surface-2)",
3583
3590
  transition: L ? "height 0.4s cubic-bezier(0.32, 0.72, 0, 1)" : void 0
3584
3591
  },
3585
- className: W(Ce, "absolute inset-x-0 bottom-0 mx-auto w-full rounded-t-2xl border border-b-0 will-change-transform", "pb-[var(--safe-bottom)]", !L && (re ? "max-h-[85%]" : "max-h-[85dvh]"), Sr[_], T),
3592
+ className: W(Ce, "absolute inset-x-0 bottom-0 mx-auto w-full rounded-t-2xl border border-b-0 will-change-transform", "pb-[var(--safe-bottom)]", !L && (re ? "max-h-[85%]" : "max-h-[85dvh]"), Cr[_], T),
3586
3593
  children: [
3587
3594
  we,
3588
3595
  Te,
@@ -3618,7 +3625,7 @@ function Er({ open: e, onClose: t, title: n, description: r, leftAction: i, righ
3618
3625
  transition: G.instant
3619
3626
  },
3620
3627
  transition: e ? G.sheetIn : G.settle,
3621
- className: W(Ce, e ? W("fixed inset-y-0 right-0 z-50 w-full border-l shadow-sheet pb-[var(--safe-bottom)]", br[_]) : W("relative z-50 w-full rounded-2xl border shadow-raised", re ? "max-h-[85%]" : "max-h-[85dvh]", xr[_]), T),
3628
+ className: W(Ce, e ? W("fixed inset-y-0 right-0 z-50 w-full border-l shadow-sheet pb-[var(--safe-bottom)]", xr[_]) : W("relative z-50 w-full rounded-2xl border shadow-raised", re ? "max-h-[85%]" : "max-h-[85dvh]", Sr[_]), T),
3622
3629
  children: [
3623
3630
  we,
3624
3631
  Te,
@@ -3645,41 +3652,41 @@ function Er({ open: e, onClose: t, title: n, description: r, leftAction: i, righ
3645
3652
  }
3646
3653
  return ne ? Ie(/* @__PURE__ */ H(g, { children: De }), ne) : null;
3647
3654
  }
3648
- var Dr = Er, Or = null;
3649
- function kr(e) {
3655
+ var Or = Dr, kr = null;
3656
+ function Ar(e) {
3650
3657
  return new Promise((t) => {
3651
- if (!Or) {
3658
+ if (!kr) {
3652
3659
  t(!1);
3653
3660
  return;
3654
3661
  }
3655
- Or({
3662
+ kr({
3656
3663
  options: e,
3657
3664
  resolve: t
3658
3665
  });
3659
3666
  });
3660
3667
  }
3661
- function Ar() {
3668
+ function jr() {
3662
3669
  let { strings: e } = K(), [t, n] = m(null), [r, i] = m(!1);
3663
- l(() => (Or = (e) => {
3670
+ l(() => (kr = (e) => {
3664
3671
  n(e), i(!0);
3665
3672
  }, () => {
3666
- Or = null;
3673
+ kr = null;
3667
3674
  }), []);
3668
3675
  let a = (e) => {
3669
3676
  t?.resolve(e), i(!1);
3670
3677
  }, o = t?.options;
3671
- return /* @__PURE__ */ H(Er, {
3678
+ return /* @__PURE__ */ H(Dr, {
3672
3679
  open: r,
3673
3680
  onClose: () => a(!1),
3674
3681
  size: "sm",
3675
3682
  title: o?.title ?? e.confirmTitle,
3676
3683
  footer: /* @__PURE__ */ U("div", {
3677
3684
  className: "flex justify-end gap-2",
3678
- children: [/* @__PURE__ */ H(Q, {
3685
+ children: [/* @__PURE__ */ H(Z, {
3679
3686
  variant: "ghost",
3680
3687
  onClick: () => a(!1),
3681
3688
  children: o?.cancelLabel ?? e.confirmCancel
3682
- }), /* @__PURE__ */ H(Q, {
3689
+ }), /* @__PURE__ */ H(Z, {
3683
3690
  variant: o?.destructive ? "danger" : "primary",
3684
3691
  onClick: () => a(!0),
3685
3692
  "data-autofocus": !0,
@@ -3711,7 +3718,7 @@ function Ar() {
3711
3718
  }
3712
3719
  //#endregion
3713
3720
  //#region src/components/ContextMenu.tsx
3714
- function jr({ menu: e, longPressDelay: t = 450, onOpenChange: n, disabled: r, className: i, children: a }) {
3721
+ function Mr({ menu: e, longPressDelay: t = 450, onOpenChange: n, disabled: r, className: i, children: a }) {
3715
3722
  let [o, c] = m(null), u = p(null), d = p(null), f = p(null), h = s(() => {
3716
3723
  d.current && window.clearTimeout(d.current), d.current = null;
3717
3724
  }, []);
@@ -3777,83 +3784,145 @@ function jr({ menu: e, longPressDelay: t = 450, onOpenChange: n, disabled: r, cl
3777
3784
  }) }), document.body)] });
3778
3785
  }
3779
3786
  //#endregion
3787
+ //#region src/lib/calendar.ts
3788
+ function Nr(e, t, n) {
3789
+ let r = new Date(2e3, 0, 1);
3790
+ return r.setFullYear(e, t, n), r.setHours(0, 0, 0, 0), r;
3791
+ }
3792
+ function Pr(e, t) {
3793
+ return Nr(e, t + 1, 0).getDate();
3794
+ }
3795
+ //#endregion
3780
3796
  //#region src/components/DatePicker.tsx
3781
- function Mr(e) {
3797
+ function Fr(e) {
3782
3798
  let t = new Date(e);
3783
3799
  return t.setHours(0, 0, 0, 0), t;
3784
3800
  }
3785
- function Nr(e, t) {
3786
- return Mr(e).getTime() === Mr(t).getTime();
3801
+ function Ir(e, t) {
3802
+ return Fr(e).getTime() === Fr(t).getTime();
3787
3803
  }
3788
- function Pr({ value: e, onChange: t, min: n, max: r, weekStartsOn: i = 1, locale: a, className: o }) {
3789
- let { strings: s, locale: c } = K(), l = a ?? c, [u, d] = m(() => Mr(e ?? /* @__PURE__ */ new Date())), p = Mr(/* @__PURE__ */ new Date()), { days: h, monthLabel: g, weekdays: _ } = f(() => {
3790
- let e = u.getFullYear(), t = u.getMonth(), n = new Date(e, t, 1), r = (n.getDay() - i + 7) % 7, a = new Date(e, t + 1, 0).getDate(), o = Array.from({ length: r }, () => null);
3791
- for (let n = 1; n <= a; n++) o.push(new Date(e, t, n));
3792
- let s = new Intl.DateTimeFormat(l, { weekday: "narrow" }), c = Array.from({ length: 7 }, (e, t) => s.format(new Date(2024, 0, 7 + (t + i) % 7)));
3804
+ function Lr({ value: e, onChange: t, min: n, max: r, weekStartsOn: i = 1, locale: a, className: o }) {
3805
+ let { strings: s, locale: c } = K(), l = a ?? c, [u, d] = m(() => Fr(e ?? /* @__PURE__ */ new Date())), [p, h] = m("days"), [g, _] = m(() => String(u.getFullYear())), v = Fr(/* @__PURE__ */ new Date()), y = u.getFullYear(), { days: b, monthLabel: x, weekdays: S, monthNames: C } = f(() => {
3806
+ let e = u.getMonth(), t = Nr(y, e, 1), n = (t.getDay() - i + 7) % 7, r = Pr(y, e), a = Array.from({ length: n }, () => null);
3807
+ for (let t = 1; t <= r; t++) a.push(Nr(y, e, t));
3808
+ let o = new Intl.DateTimeFormat(l, { weekday: "narrow" }), s = Array.from({ length: 7 }, (e, t) => o.format(new Date(2024, 0, 7 + (t + i) % 7))), c = new Intl.DateTimeFormat(l, { month: "short" });
3793
3809
  return {
3794
- days: o,
3810
+ days: a,
3795
3811
  monthLabel: new Intl.DateTimeFormat(l, {
3796
3812
  month: "long",
3797
3813
  year: "numeric"
3798
- }).format(n),
3799
- weekdays: c
3814
+ }).format(t),
3815
+ weekdays: s,
3816
+ monthNames: Array.from({ length: 12 }, (e, t) => c.format(new Date(2024, t, 1)))
3800
3817
  };
3801
3818
  }, [
3802
3819
  u,
3820
+ y,
3803
3821
  i,
3804
3822
  l
3805
- ]), v = (e) => n && e < Mr(n) || r && e > Mr(r);
3806
- return /* @__PURE__ */ U("div", {
3823
+ ]), w = (e) => n && e < Fr(n) || r && e > Fr(r), T = (e) => {
3824
+ d(Nr(e, u.getMonth(), 1)), _(String(e));
3825
+ }, E = "touch-target flex h-7 w-7 items-center justify-center rounded-lg text-fg-3 hover:bg-fill-2 hover:text-fg";
3826
+ return /* @__PURE__ */ H("div", {
3807
3827
  className: W("w-64 select-none [@media(pointer:coarse)]:w-[21rem]", o),
3808
- children: [/* @__PURE__ */ U("div", {
3828
+ children: p === "days" ? /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ U("div", {
3809
3829
  className: "mb-2 flex items-center gap-1",
3810
3830
  children: [
3811
3831
  /* @__PURE__ */ H("button", {
3812
3832
  type: "button",
3813
- onClick: () => d(new Date(u.getFullYear(), u.getMonth() - 1, 1)),
3833
+ onClick: () => d(Nr(y, u.getMonth() - 1, 1)),
3814
3834
  "aria-label": s.datePickerPreviousMonth,
3815
- className: "touch-target flex h-7 w-7 items-center justify-center rounded-lg text-fg-3 hover:bg-fill-2 hover:text-fg",
3835
+ className: E,
3816
3836
  children: /* @__PURE__ */ H(P, { size: 16 })
3817
3837
  }),
3818
- /* @__PURE__ */ H("span", {
3819
- "aria-live": "polite",
3820
- className: "flex-1 text-center text-sm font-medium text-fg",
3821
- children: g
3838
+ /* @__PURE__ */ H("button", {
3839
+ type: "button",
3840
+ onClick: () => {
3841
+ _(String(y)), h("months");
3842
+ },
3843
+ "aria-label": s.datePickerChooseMonth,
3844
+ className: "flex h-7 flex-1 items-center justify-center rounded-lg text-sm font-medium text-fg hover:bg-fill-2",
3845
+ children: /* @__PURE__ */ H("span", {
3846
+ "aria-live": "polite",
3847
+ children: x
3848
+ })
3822
3849
  }),
3823
3850
  /* @__PURE__ */ H("button", {
3824
3851
  type: "button",
3825
- onClick: () => d(new Date(u.getFullYear(), u.getMonth() + 1, 1)),
3852
+ onClick: () => d(Nr(y, u.getMonth() + 1, 1)),
3826
3853
  "aria-label": s.datePickerNextMonth,
3827
- className: "touch-target flex h-7 w-7 items-center justify-center rounded-lg text-fg-3 hover:bg-fill-2 hover:text-fg",
3854
+ className: E,
3828
3855
  children: /* @__PURE__ */ H(F, { size: 16 })
3829
3856
  })
3830
3857
  ]
3831
3858
  }), /* @__PURE__ */ U("div", {
3832
3859
  className: "grid grid-cols-7 gap-0.5",
3833
- children: [_.map((e, t) => /* @__PURE__ */ H("span", {
3860
+ children: [S.map((e, t) => /* @__PURE__ */ H("span", {
3834
3861
  className: "flex h-7 items-center justify-center text-2xs font-medium text-fg-3",
3835
3862
  children: e
3836
- }, t)), h.map((n, r) => n ? /* @__PURE__ */ H("button", {
3863
+ }, t)), b.map((n, r) => n ? /* @__PURE__ */ H("button", {
3837
3864
  type: "button",
3838
- disabled: v(n),
3865
+ disabled: w(n),
3839
3866
  onClick: () => t(n),
3840
- "aria-current": Nr(n, p) ? "date" : void 0,
3841
- "aria-pressed": e ? Nr(n, e) : !1,
3842
- className: W("flex h-8 items-center justify-center rounded-lg text-sm tabular-nums transition-colors [@media(pointer:coarse)]:h-11", e && Nr(n, e) ? "bg-accent font-medium text-on-accent" : Nr(n, p) ? "text-accent hover:bg-fill-2" : "text-fg-2 hover:bg-fill-2 hover:text-fg", v(n) && "pointer-events-none opacity-25"),
3867
+ "aria-current": Ir(n, v) ? "date" : void 0,
3868
+ "aria-pressed": e ? Ir(n, e) : !1,
3869
+ className: W("flex h-8 items-center justify-center rounded-lg text-sm tabular-nums transition-colors [@media(pointer:coarse)]:h-11", e && Ir(n, e) ? "bg-accent font-medium text-on-accent" : Ir(n, v) ? "text-accent hover:bg-fill-2" : "text-fg-2 hover:bg-fill-2 hover:text-fg", w(n) && "pointer-events-none opacity-25"),
3843
3870
  children: n.getDate()
3844
3871
  }, r) : /* @__PURE__ */ H("span", {}, r))]
3845
- })]
3872
+ })] }) : /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ U("div", {
3873
+ className: "mb-2 flex items-center gap-1",
3874
+ children: [
3875
+ /* @__PURE__ */ H("button", {
3876
+ type: "button",
3877
+ onClick: () => T(y - 1),
3878
+ "aria-label": s.datePickerPreviousYear,
3879
+ className: E,
3880
+ children: /* @__PURE__ */ H(P, { size: 16 })
3881
+ }),
3882
+ /* @__PURE__ */ H("input", {
3883
+ inputMode: "numeric",
3884
+ value: g,
3885
+ "aria-label": s.datePickerYear,
3886
+ onChange: (e) => {
3887
+ let t = e.target.value.replace(/[^0-9]/g, "").slice(0, 4);
3888
+ _(t);
3889
+ let n = Number(t);
3890
+ t && n >= 1 && d(Nr(n, u.getMonth(), 1));
3891
+ },
3892
+ onBlur: () => _(String(y)),
3893
+ className: "h-7 min-w-0 flex-1 rounded-lg border border-line bg-fill text-center text-sm font-medium tabular-nums text-fg outline-none focus:border-accent focus:ring-1 focus:ring-accent/35"
3894
+ }),
3895
+ /* @__PURE__ */ H("button", {
3896
+ type: "button",
3897
+ onClick: () => T(y + 1),
3898
+ "aria-label": s.datePickerNextYear,
3899
+ className: E,
3900
+ children: /* @__PURE__ */ H(F, { size: 16 })
3901
+ })
3902
+ ]
3903
+ }), /* @__PURE__ */ H("div", {
3904
+ className: "grid grid-cols-3 gap-1",
3905
+ children: C.map((e, t) => /* @__PURE__ */ H("button", {
3906
+ type: "button",
3907
+ onClick: () => {
3908
+ d(Nr(y, t, 1)), h("days");
3909
+ },
3910
+ "aria-pressed": u.getMonth() === t,
3911
+ className: W("flex h-10 items-center justify-center rounded-lg text-sm transition-colors [@media(pointer:coarse)]:h-11", u.getMonth() === t ? "bg-fill-3 font-medium text-fg" : "text-fg-2 hover:bg-fill-2 hover:text-fg"),
3912
+ children: e
3913
+ }, t))
3914
+ })] })
3846
3915
  });
3847
3916
  }
3848
- function Fr({ value: e, onChange: t, placeholder: n, withTime: r, disabled: i, id: a, className: o, ...s }) {
3917
+ function Rr({ value: e, onChange: t, placeholder: n, withTime: r, disabled: i, id: a, className: o, ...s }) {
3849
3918
  let { strings: c, locale: l } = K(), u = J(), [d, f] = m(!1), p = e ? new Intl.DateTimeFormat(s.locale ?? l, {
3850
3919
  dateStyle: "medium",
3851
3920
  ...r ? { timeStyle: "short" } : {}
3852
3921
  }).format(e) : n ?? c.datePickerPlaceholder;
3853
- return /* @__PURE__ */ U(cn, {
3922
+ return /* @__PURE__ */ U(ln, {
3854
3923
  open: d,
3855
3924
  onOpenChange: f,
3856
- children: [/* @__PURE__ */ H(ln, { children: /* @__PURE__ */ U("button", {
3925
+ children: [/* @__PURE__ */ H(un, { children: /* @__PURE__ */ U("button", {
3857
3926
  type: "button",
3858
3927
  id: a ?? u?.id,
3859
3928
  disabled: i,
@@ -3866,9 +3935,9 @@ function Fr({ value: e, onChange: t, placeholder: n, withTime: r, disabled: i, i
3866
3935
  className: W("min-w-0 flex-1 truncate", e ? "text-fg" : "text-fg-4"),
3867
3936
  children: p
3868
3937
  })]
3869
- }) }), /* @__PURE__ */ U(fn, {
3938
+ }) }), /* @__PURE__ */ U(pn, {
3870
3939
  className: "p-3",
3871
- children: [/* @__PURE__ */ H(Pr, {
3940
+ children: [/* @__PURE__ */ H(Lr, {
3872
3941
  value: e,
3873
3942
  onChange: (n) => {
3874
3943
  r && e && n.setHours(e.getHours(), e.getMinutes()), t(n), r || f(!1);
@@ -3892,14 +3961,14 @@ function Fr({ value: e, onChange: t, placeholder: n, withTime: r, disabled: i, i
3892
3961
  }
3893
3962
  //#endregion
3894
3963
  //#region src/components/Dialog.tsx
3895
- var Ir = {
3964
+ var zr = {
3896
3965
  sm: "max-w-sm",
3897
3966
  md: "max-w-md",
3898
3967
  lg: "max-w-2xl"
3899
3968
  };
3900
- function Lr({ open: e, onClose: t, title: n, description: r, footer: i, size: a = "md", dismissible: o = !0, className: s, children: c }) {
3969
+ function Br({ open: e, onClose: t, title: n, description: r, footer: i, size: a = "md", dismissible: o = !0, className: s, children: c }) {
3901
3970
  let { strings: l } = K(), d = u(), f = u(), m = p(null);
3902
- return yr(e, t, m), typeof document > "u" ? null : Ie(/* @__PURE__ */ H(g, { children: e && /* @__PURE__ */ U("div", {
3971
+ return br(e, t, m), typeof document > "u" ? null : Ie(/* @__PURE__ */ H(g, { children: e && /* @__PURE__ */ U("div", {
3903
3972
  className: "fixed inset-0 z-50 flex items-end justify-center p-4 sm:items-center",
3904
3973
  children: [/* @__PURE__ */ H(y.div, {
3905
3974
  className: "absolute inset-0 bg-black/50 backdrop-blur-sm",
@@ -3915,7 +3984,7 @@ function Lr({ open: e, onClose: t, title: n, description: r, footer: i, size: a
3915
3984
  "aria-labelledby": n ? d : void 0,
3916
3985
  "aria-describedby": r ? f : void 0,
3917
3986
  tabIndex: -1,
3918
- className: W("relative flex max-h-[85dvh] w-full flex-col overflow-hidden outline-none", "rounded-2xl border border-line bg-surface-2 shadow-raised", Ir[a], s),
3987
+ className: W("relative flex max-h-[85dvh] w-full flex-col overflow-hidden outline-none", "rounded-2xl border border-line bg-surface-2 shadow-raised", zr[a], s),
3919
3988
  initial: {
3920
3989
  opacity: 0,
3921
3990
  scale: .96,
@@ -3971,7 +4040,7 @@ function Lr({ open: e, onClose: t, title: n, description: r, footer: i, size: a
3971
4040
  }
3972
4041
  //#endregion
3973
4042
  //#region src/components/Diff.tsx
3974
- function Rr(e, t) {
4043
+ function Vr(e, t) {
3975
4044
  let n = e.split("\n"), r = t.split("\n"), i = Array.from({ length: n.length + 1 }, () => Array.from({ length: r.length + 1 }, () => 0));
3976
4045
  for (let e = n.length - 1; e >= 0; e--) for (let t = r.length - 1; t >= 0; t--) i[e][t] = n[e] === r[t] ? i[e + 1][t + 1] + 1 : Math.max(i[e + 1][t], i[e][t + 1]);
3977
4046
  let a = [], o = 0, s = 0;
@@ -4001,13 +4070,13 @@ function Rr(e, t) {
4001
4070
  });
4002
4071
  return a;
4003
4072
  }
4004
- var zr = {
4073
+ var Hr = {
4005
4074
  same: "text-fg-3",
4006
4075
  add: "bg-accent/10 text-fg",
4007
4076
  remove: "bg-danger/10 text-fg"
4008
4077
  };
4009
- function Br({ before: e, after: t, beforeLabel: n, afterLabel: r, view: i = "unified", context: a = 3, className: o }) {
4010
- let { strings: s } = K(), c = n ?? s.diffBefore, l = r ?? s.diffAfter, u = f(() => Rr(e, t), [e, t]), d = f(() => {
4078
+ function Ur({ before: e, after: t, beforeLabel: n, afterLabel: r, view: i = "unified", context: a = 3, className: o }) {
4079
+ let { strings: s } = K(), c = n ?? s.diffBefore, l = r ?? s.diffAfter, u = f(() => Vr(e, t), [e, t]), d = f(() => {
4011
4080
  if (!a) return u.map((e) => ({
4012
4081
  line: e,
4013
4082
  elided: 0
@@ -4056,7 +4125,7 @@ function Br({ before: e, after: t, beforeLabel: n, afterLabel: r, view: i = "uni
4056
4125
  className: "border-b border-line px-3 py-1 text-2xs font-medium text-fg-3",
4057
4126
  children: e === "remove" ? c : l
4058
4127
  }), u.map((t, n) => t.op === "same" || t.op === e ? /* @__PURE__ */ H("p", {
4059
- className: W("whitespace-pre px-3 py-0.5 font-mono text-xs", t.op === "same" ? "text-fg-3" : zr[t.op]),
4128
+ className: W("whitespace-pre px-3 py-0.5 font-mono text-xs", t.op === "same" ? "text-fg-3" : Hr[t.op]),
4060
4129
  children: t.text || " "
4061
4130
  }, n) : /* @__PURE__ */ H("p", {
4062
4131
  "aria-hidden": "true",
@@ -4067,7 +4136,7 @@ function Br({ before: e, after: t, beforeLabel: n, afterLabel: r, view: i = "uni
4067
4136
  }) : /* @__PURE__ */ H("div", {
4068
4137
  className: "scrollbar-thin overflow-x-auto py-1",
4069
4138
  children: d.map((e, t) => e.line ? /* @__PURE__ */ U("p", {
4070
- className: W("flex gap-3 whitespace-pre px-3 py-0.5 font-mono text-xs", zr[e.line.op]),
4139
+ className: W("flex gap-3 whitespace-pre px-3 py-0.5 font-mono text-xs", Hr[e.line.op]),
4071
4140
  children: [/* @__PURE__ */ H("span", {
4072
4141
  "aria-hidden": "true",
4073
4142
  className: "w-3 shrink-0 select-none text-fg-4",
@@ -4087,13 +4156,13 @@ function Br({ before: e, after: t, beforeLabel: n, afterLabel: r, view: i = "uni
4087
4156
  }
4088
4157
  //#endregion
4089
4158
  //#region src/components/Progress.tsx
4090
- var Vr = {
4159
+ var Wr = {
4091
4160
  accent: "bg-accent",
4092
4161
  info: "bg-info",
4093
4162
  warning: "bg-warning",
4094
4163
  danger: "bg-danger"
4095
4164
  };
4096
- function Hr({ value: e, size: t = "md", tone: n = "accent", label: r, className: i }) {
4165
+ function Gr({ value: e, size: t = "md", tone: n = "accent", label: r, className: i }) {
4097
4166
  let a = e === void 0;
4098
4167
  return /* @__PURE__ */ H("div", {
4099
4168
  role: "progressbar",
@@ -4103,17 +4172,17 @@ function Hr({ value: e, size: t = "md", tone: n = "accent", label: r, className:
4103
4172
  "aria-valuenow": a ? void 0 : Math.round(e),
4104
4173
  className: W("relative w-full overflow-hidden rounded-full bg-fill-3", t === "sm" ? "h-1" : "h-1.5", i),
4105
4174
  children: /* @__PURE__ */ H("div", {
4106
- className: W("h-full rounded-full transition-[width] motion-slow ease-out", Vr[n], a && "w-1/3 animate-[indeterminate_1.4s_ease-in-out_infinite]"),
4175
+ className: W("h-full rounded-full transition-[width] motion-slow ease-out", Wr[n], a && "w-1/3 animate-[indeterminate_1.4s_ease-in-out_infinite]"),
4107
4176
  style: a ? void 0 : { width: `${Math.max(0, Math.min(100, e))}%` }
4108
4177
  })
4109
4178
  });
4110
4179
  }
4111
4180
  //#endregion
4112
4181
  //#region src/lib/format.ts
4113
- var Ur = (e) => /^en(-|$)/i.test(e);
4114
- function Wr(e, t = Date.now(), n = "en") {
4182
+ var Kr = (e) => /^en(-|$)/i.test(e);
4183
+ function qr(e, t = Date.now(), n = "en") {
4115
4184
  let r = +t - e, i = Math.round(r / 6e4);
4116
- if (Ur(n)) {
4185
+ if (Kr(n)) {
4117
4186
  if (i < 1) return "Just now";
4118
4187
  if (i < 60) return `${i} min ago`;
4119
4188
  let e = Math.floor(i / 60);
@@ -4132,8 +4201,8 @@ function Wr(e, t = Date.now(), n = "en") {
4132
4201
  let s = Math.floor(o / 24);
4133
4202
  return s < 7 ? a.format(-s, "day") : s < 30 ? a.format(-Math.floor(s / 7), "week") : s < 365 ? a.format(-Math.floor(s / 30), "month") : a.format(-Math.floor(s / 365), "year");
4134
4203
  }
4135
- function Gr(e, t = "en") {
4136
- if (!Ur(t)) return new Intl.NumberFormat(t, { notation: "compact" }).format(e);
4204
+ function Jr(e, t = "en") {
4205
+ if (!Kr(t)) return new Intl.NumberFormat(t, { notation: "compact" }).format(e);
4137
4206
  let n = Math.abs(e);
4138
4207
  if (n < 1e3) return String(e);
4139
4208
  for (let [t, r] of [
@@ -4146,14 +4215,14 @@ function Gr(e, t = "en") {
4146
4215
  }
4147
4216
  return String(e);
4148
4217
  }
4149
- var Kr = [
4218
+ var Yr = [
4150
4219
  "byte",
4151
4220
  "kilobyte",
4152
4221
  "megabyte",
4153
4222
  "gigabyte",
4154
4223
  "terabyte"
4155
4224
  ];
4156
- function qr(e, t = "en") {
4225
+ function Xr(e, t = "en") {
4157
4226
  let n = [
4158
4227
  "B",
4159
4228
  "KB",
@@ -4162,12 +4231,12 @@ function qr(e, t = "en") {
4162
4231
  "TB"
4163
4232
  ], r = 0, i = e;
4164
4233
  for (; i >= 1024 && r < n.length - 1;) i /= 1024, r++;
4165
- if (r === 0 && (i = Math.round(i)), Ur(t)) return `${r === 0 ? i : i.toFixed(i >= 10 ? 0 : 1)} ${n[r]}`;
4234
+ if (r === 0 && (i = Math.round(i)), Kr(t)) return `${r === 0 ? i : i.toFixed(i >= 10 ? 0 : 1)} ${n[r]}`;
4166
4235
  let a = r === 0 || i >= 10 ? 0 : 1;
4167
4236
  try {
4168
4237
  return new Intl.NumberFormat(t, {
4169
4238
  style: "unit",
4170
- unit: Kr[r],
4239
+ unit: Yr[r],
4171
4240
  unitDisplay: "short",
4172
4241
  maximumFractionDigits: a
4173
4242
  }).format(i);
@@ -4177,7 +4246,7 @@ function qr(e, t = "en") {
4177
4246
  }
4178
4247
  //#endregion
4179
4248
  //#region src/components/DownloadItem.tsx
4180
- function Jr(e, t, n) {
4249
+ function Zr(e, t, n) {
4181
4250
  if (n === void 0 || !Number.isFinite(n)) return "";
4182
4251
  if (n < 60) return e.downloadLeftSeconds(Math.round(n));
4183
4252
  if (n < 3600) return e.downloadLeftMinutes(Math.round(n / 60));
@@ -4187,18 +4256,18 @@ function Jr(e, t, n) {
4187
4256
  }).format(n / 3600);
4188
4257
  return e.downloadLeftHours(r);
4189
4258
  }
4190
- function Yr({ name: e, detail: t, status: n, progress: r, speed: i, eta: a, size: o, error: s, onPause: c, onResume: l, onCancel: u, onRetry: d, className: f }) {
4191
- let { strings: p, locale: m } = K(), h = (e) => e === void 0 ? "" : qr(e, m), g = r === void 0 ? void 0 : Math.round(r * 100), _ = n === "done", v = n === "failed", y = v ? s ?? p.downloadFailed : _ ? h(o) : n === "queued" ? p.downloadWaiting : n === "verifying" ? p.downloadVerifying : n === "paused" ? `${p.downloadPaused}${o ? ` · ${p.downloadProgress(h((r ?? 0) * o), h(o))}` : ""}` : [
4259
+ function Qr({ name: e, detail: t, status: n, progress: r, speed: i, eta: a, size: o, error: s, onPause: c, onResume: l, onCancel: u, onRetry: d, className: f }) {
4260
+ let { strings: p, locale: m } = K(), h = (e) => e === void 0 ? "" : Xr(e, m), g = r === void 0 ? void 0 : Math.round(r * 100), _ = n === "done", v = n === "failed", y = v ? s ?? p.downloadFailed : _ ? h(o) : n === "queued" ? p.downloadWaiting : n === "verifying" ? p.downloadVerifying : n === "paused" ? `${p.downloadPaused}${o ? ` · ${p.downloadProgress(h((r ?? 0) * o), h(o))}` : ""}` : [
4192
4261
  o ? p.downloadProgress(h((r ?? 0) * o), h(o)) : void 0,
4193
4262
  i ? p.downloadSpeed(h(i)) : void 0,
4194
- Jr(p, m, a)
4263
+ Zr(p, m, a)
4195
4264
  ].filter(Boolean).join(" · ");
4196
4265
  return /* @__PURE__ */ U("div", {
4197
4266
  className: W("flex items-center gap-3 rounded-xl border border-line bg-surface-1 p-3", f),
4198
4267
  children: [
4199
4268
  /* @__PURE__ */ H("span", {
4200
4269
  className: W("flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border", _ ? "border-accent/30 bg-accent/12 text-accent" : v ? "border-danger/30 bg-danger/12 text-danger" : "border-line bg-fill-2 text-fg-3"),
4201
- children: _ ? /* @__PURE__ */ H(M, { size: 18 }) : v ? /* @__PURE__ */ H(T, { size: 18 }) : n === "verifying" ? /* @__PURE__ */ H(sr, { size: "md" }) : /* @__PURE__ */ H(L, { size: 18 })
4270
+ children: _ ? /* @__PURE__ */ H(M, { size: 18 }) : v ? /* @__PURE__ */ H(T, { size: 18 }) : n === "verifying" ? /* @__PURE__ */ H(cr, { size: "md" }) : /* @__PURE__ */ H(L, { size: 18 })
4202
4271
  }),
4203
4272
  /* @__PURE__ */ U("div", {
4204
4273
  className: "min-w-0 flex-1 space-y-1.5",
@@ -4217,7 +4286,7 @@ function Yr({ name: e, detail: t, status: n, progress: r, speed: i, eta: a, size
4217
4286
  className: "truncate text-sm text-fg-3",
4218
4287
  children: t
4219
4288
  }),
4220
- !_ && !v && /* @__PURE__ */ H(Hr, {
4289
+ !_ && !v && /* @__PURE__ */ H(Gr, {
4221
4290
  value: n === "queued" || n === "verifying" ? void 0 : g,
4222
4291
  size: "sm"
4223
4292
  }),
@@ -4261,7 +4330,7 @@ function Yr({ name: e, detail: t, status: n, progress: r, speed: i, eta: a, size
4261
4330
  }
4262
4331
  //#endregion
4263
4332
  //#region src/components/Dropzone.tsx
4264
- function Xr({ onFiles: e, accept: t, multiple: n, maxSize: r, onReject: i, disabled: a, children: o, hint: s, className: c }) {
4333
+ function $r({ onFiles: e, accept: t, multiple: n, maxSize: r, onReject: i, disabled: a, children: o, hint: s, className: c }) {
4265
4334
  let { strings: l } = K(), u = J(), d = p(null), [f, h] = m(!1), g = (e) => !t || t.split(",").some((t) => {
4266
4335
  let n = t.trim();
4267
4336
  return n.endsWith("/*") ? e.type.startsWith(n.slice(0, -1)) : n.startsWith(".") ? e.name.toLowerCase().endsWith(n.toLowerCase()) : e.type === n;
@@ -4310,7 +4379,7 @@ function Xr({ onFiles: e, accept: t, multiple: n, maxSize: r, onReject: i, disab
4310
4379
  }
4311
4380
  //#endregion
4312
4381
  //#region src/components/EmptyState.tsx
4313
- function Zr({ icon: e, title: t, description: n, action: r, size: i = "md", className: a }) {
4382
+ function ei({ icon: e, title: t, description: n, action: r, size: i = "md", className: a }) {
4314
4383
  return /* @__PURE__ */ U("div", {
4315
4384
  className: W("flex flex-col items-center text-center", i === "md" ? "px-6 py-14" : "px-4 py-8", a),
4316
4385
  children: [
@@ -4333,14 +4402,14 @@ function Zr({ icon: e, title: t, description: n, action: r, size: i = "md", clas
4333
4402
  ]
4334
4403
  });
4335
4404
  }
4336
- function Qr({ title: e, description: t, onRetry: n, retryLabel: r, size: i = "md", className: a }) {
4405
+ function ti({ title: e, description: t, onRetry: n, retryLabel: r, size: i = "md", className: a }) {
4337
4406
  let { strings: o } = K(), s = e ?? o.errorStateTitle;
4338
4407
  return /* @__PURE__ */ U("div", {
4339
4408
  className: W("flex flex-col items-center text-center", i === "md" ? "px-6 py-14" : "px-4 py-8", a),
4340
4409
  children: [
4341
4410
  /* @__PURE__ */ H("div", {
4342
4411
  className: W("mb-4 flex items-center justify-center rounded-2xl border border-danger/25 bg-danger/10 text-danger", i === "md" ? "h-14 w-14" : "h-11 w-11"),
4343
- children: /* @__PURE__ */ H(T, { size: i === "md" ? Z.xl : Z.lg })
4412
+ children: /* @__PURE__ */ H(T, { size: i === "md" ? X.xl : X.lg })
4344
4413
  }),
4345
4414
  /* @__PURE__ */ H("p", {
4346
4415
  className: W("font-semibold text-fg", i === "md" ? "text-lg" : "text-base"),
@@ -4350,10 +4419,10 @@ function Qr({ title: e, description: t, onRetry: n, retryLabel: r, size: i = "md
4350
4419
  className: W("mt-1 max-w-xs text-fg-3", i === "md" ? "text-base" : "text-sm"),
4351
4420
  children: t
4352
4421
  }),
4353
- n && /* @__PURE__ */ H(Q, {
4422
+ n && /* @__PURE__ */ H(Z, {
4354
4423
  variant: "secondary",
4355
4424
  className: "mt-5",
4356
- leading: /* @__PURE__ */ H(Se, { size: Z.sm }),
4425
+ leading: /* @__PURE__ */ H(Se, { size: X.sm }),
4357
4426
  onClick: n,
4358
4427
  children: r ?? o.errorStateRetry
4359
4428
  })
@@ -4362,8 +4431,8 @@ function Qr({ title: e, description: t, onRetry: n, retryLabel: r, size: i = "md
4362
4431
  }
4363
4432
  //#endregion
4364
4433
  //#region src/components/FilterBar.tsx
4365
- var $r = 28;
4366
- function ei({ options: e, value: t, onChange: n, className: r, ...i }) {
4434
+ var ni = 28;
4435
+ function ri({ options: e, value: t, onChange: n, className: r, ...i }) {
4367
4436
  let a = p(null), [o, s] = m({
4368
4437
  start: !1,
4369
4438
  end: !1
@@ -4384,7 +4453,7 @@ function ei({ options: e, value: t, onChange: n, className: r, ...i }) {
4384
4453
  e.removeEventListener("scroll", t), n.disconnect();
4385
4454
  };
4386
4455
  }, [e.length]);
4387
- let c = o.start && o.end ? `linear-gradient(to right, transparent, black ${$r}px, black calc(100% - ${$r}px), transparent)` : o.end ? `linear-gradient(to right, black calc(100% - ${$r}px), transparent)` : o.start ? `linear-gradient(to right, transparent, black ${$r}px)` : void 0;
4456
+ let c = o.start && o.end ? `linear-gradient(to right, transparent, black ${ni}px, black calc(100% - ${ni}px), transparent)` : o.end ? `linear-gradient(to right, black calc(100% - ${ni}px), transparent)` : o.start ? `linear-gradient(to right, transparent, black ${ni}px)` : void 0;
4388
4457
  return /* @__PURE__ */ H("div", {
4389
4458
  ref: a,
4390
4459
  role: "radiogroup",
@@ -4396,7 +4465,7 @@ function ei({ options: e, value: t, onChange: n, className: r, ...i }) {
4396
4465
  } : void 0,
4397
4466
  children: e.map((e) => {
4398
4467
  let r = e.value === t;
4399
- return /* @__PURE__ */ U(Zn, {
4468
+ return /* @__PURE__ */ U(Qn, {
4400
4469
  role: "radio",
4401
4470
  "aria-checked": r,
4402
4471
  selected: r,
@@ -4413,13 +4482,13 @@ function ei({ options: e, value: t, onChange: n, className: r, ...i }) {
4413
4482
  }
4414
4483
  //#endregion
4415
4484
  //#region src/components/Form.tsx
4416
- var ti = r(null);
4417
- function ni() {
4418
- let e = c(ti);
4485
+ var ii = r(null);
4486
+ function ai() {
4487
+ let e = c(ii);
4419
4488
  if (!e) throw Error("useForm must be used inside <Form>");
4420
4489
  return e;
4421
4490
  }
4422
- function ri({ initial: e, onSubmit: t, validate: n, guardUnload: r = !0, children: i, className: a }) {
4491
+ function oi({ initial: e, onSubmit: t, validate: n, guardUnload: r = !0, children: i, className: a }) {
4423
4492
  let [o, c] = m(e), [u, d] = m({}), [h, g] = m(!1), _ = p(e), v = f(() => JSON.stringify(o) !== JSON.stringify(_.current), [o]);
4424
4493
  l(() => {
4425
4494
  if (!r || !v) return;
@@ -4463,7 +4532,7 @@ function ri({ initial: e, onSubmit: t, validate: n, guardUnload: r = !0, childre
4463
4532
  patch: b,
4464
4533
  reset: x
4465
4534
  };
4466
- return /* @__PURE__ */ H(ti.Provider, {
4535
+ return /* @__PURE__ */ H(ii.Provider, {
4467
4536
  value: C,
4468
4537
  children: /* @__PURE__ */ H("form", {
4469
4538
  onSubmit: S,
@@ -4473,8 +4542,8 @@ function ri({ initial: e, onSubmit: t, validate: n, guardUnload: r = !0, childre
4473
4542
  })
4474
4543
  });
4475
4544
  }
4476
- function ii({ submitLabel: e, cancelLabel: t, onCancel: n, sticky: r, children: i }) {
4477
- let { strings: a } = K(), { dirty: o, submitting: s, reset: c } = ni();
4545
+ function si({ submitLabel: e, cancelLabel: t, onCancel: n, sticky: r, children: i }) {
4546
+ let { strings: a } = K(), { dirty: o, submitting: s, reset: c } = ai();
4478
4547
  return /* @__PURE__ */ U("div", {
4479
4548
  className: W("flex items-center gap-2 border-t border-line pt-4", r && "sticky bottom-0 -mx-4 mt-0 bg-surface/90 px-4 pb-[calc(var(--safe-bottom)+12px)] backdrop-blur-md"),
4480
4549
  children: [
@@ -4484,7 +4553,7 @@ function ii({ submitLabel: e, cancelLabel: t, onCancel: n, sticky: r, children:
4484
4553
  }),
4485
4554
  /* @__PURE__ */ H("span", { className: "flex-1" }),
4486
4555
  i,
4487
- /* @__PURE__ */ H(Q, {
4556
+ /* @__PURE__ */ H(Z, {
4488
4557
  type: "button",
4489
4558
  variant: "ghost",
4490
4559
  disabled: !o || s,
@@ -4493,7 +4562,7 @@ function ii({ submitLabel: e, cancelLabel: t, onCancel: n, sticky: r, children:
4493
4562
  },
4494
4563
  children: t ?? a.formCancel
4495
4564
  }),
4496
- /* @__PURE__ */ H(Q, {
4565
+ /* @__PURE__ */ H(Z, {
4497
4566
  type: "submit",
4498
4567
  variant: "primary",
4499
4568
  disabled: !o,
@@ -4503,9 +4572,9 @@ function ii({ submitLabel: e, cancelLabel: t, onCancel: n, sticky: r, children:
4503
4572
  ]
4504
4573
  });
4505
4574
  }
4506
- function ai(e) {
4575
+ function ci(e) {
4507
4576
  let { strings: t } = K();
4508
- return s(async () => !e || kr({
4577
+ return s(async () => !e || Ar({
4509
4578
  title: t.formDiscardTitle,
4510
4579
  message: t.formDiscardMessage,
4511
4580
  confirmLabel: t.formDiscardConfirm,
@@ -4515,7 +4584,7 @@ function ai(e) {
4515
4584
  }
4516
4585
  //#endregion
4517
4586
  //#region src/components/HoverCard.tsx
4518
- function oi({ content: e, openDelay: t = 400, closeDelay: r = 150, side: i = "top", children: a }) {
4587
+ function li({ content: e, openDelay: t = 400, closeDelay: r = 150, side: i = "top", children: a }) {
4519
4588
  let [o, s] = m(!1), c = p(null);
4520
4589
  l(() => () => {
4521
4590
  c.current && window.clearTimeout(c.current);
@@ -4530,10 +4599,10 @@ function oi({ content: e, openDelay: t = 400, closeDelay: r = 150, side: i = "to
4530
4599
  d.onPointerLeave?.(e), u(!1);
4531
4600
  }
4532
4601
  });
4533
- return /* @__PURE__ */ U(cn, {
4602
+ return /* @__PURE__ */ U(ln, {
4534
4603
  open: o,
4535
4604
  onOpenChange: s,
4536
- children: [/* @__PURE__ */ H(un, { children: f }), /* @__PURE__ */ H(fn, {
4605
+ children: [/* @__PURE__ */ H(dn, { children: f }), /* @__PURE__ */ H(pn, {
4537
4606
  side: i,
4538
4607
  align: "center",
4539
4608
  className: "w-72 p-0",
@@ -4547,15 +4616,15 @@ function oi({ content: e, openDelay: t = 400, closeDelay: r = 150, side: i = "to
4547
4616
  }
4548
4617
  //#endregion
4549
4618
  //#region src/components/Icon.tsx
4550
- var si = {
4619
+ var ui = {
4551
4620
  sm: 14,
4552
4621
  md: 16,
4553
4622
  lg: 18,
4554
4623
  xl: 22
4555
4624
  };
4556
- function ci({ as: e, size: t = "md", label: n, strokeWidth: r = 2, className: a }) {
4625
+ function di({ as: e, size: t = "md", label: n, strokeWidth: r = 2, className: a }) {
4557
4626
  return i(e, {
4558
- size: si[t],
4627
+ size: ui[t],
4559
4628
  strokeWidth: r,
4560
4629
  "aria-hidden": !n || void 0,
4561
4630
  ...n ? {
@@ -4567,7 +4636,7 @@ function ci({ as: e, size: t = "md", label: n, strokeWidth: r = 2, className: a
4567
4636
  }
4568
4637
  //#endregion
4569
4638
  //#region src/components/ImageViewer.tsx
4570
- function li({ images: e, index: t, onIndexChange: n }) {
4639
+ function fi({ images: e, index: t, onIndexChange: n }) {
4571
4640
  let { strings: r } = K(), [i, a] = m(1), o = t !== null, c = o ? e[t] : null, u = p(null), d = s((r) => {
4572
4641
  t !== null && (n(Math.min(e.length - 1, Math.max(0, t + r))), a(1));
4573
4642
  }, [
@@ -4684,7 +4753,7 @@ function li({ images: e, index: t, onIndexChange: n }) {
4684
4753
  }
4685
4754
  //#endregion
4686
4755
  //#region src/components/InfiniteScroll.tsx
4687
- function ui({ onLoadMore: e, disabled: t = !1, loading: n = !1, endMessage: r, rootMargin: i = "600px", className: a }) {
4756
+ function pi({ onLoadMore: e, disabled: t = !1, loading: n = !1, endMessage: r, rootMargin: i = "600px", className: a }) {
4688
4757
  let { strings: o } = K(), s = p(null), c = p(e);
4689
4758
  return c.current = e, l(() => {
4690
4759
  let e = s.current;
@@ -4701,7 +4770,7 @@ function ui({ onLoadMore: e, disabled: t = !1, loading: n = !1, endMessage: r, r
4701
4770
  className: "h-px w-px",
4702
4771
  "aria-hidden": "true"
4703
4772
  }),
4704
- n && /* @__PURE__ */ H(sr, { label: o.infiniteScrollLoading }),
4773
+ n && /* @__PURE__ */ H(cr, { label: o.infiniteScrollLoading }),
4705
4774
  !n && t && r && /* @__PURE__ */ H("p", {
4706
4775
  className: "text-sm text-fg-3",
4707
4776
  children: r
@@ -4711,7 +4780,7 @@ function ui({ onLoadMore: e, disabled: t = !1, loading: n = !1, endMessage: r, r
4711
4780
  }
4712
4781
  //#endregion
4713
4782
  //#region src/components/List.tsx
4714
- function di({ label: e, className: t, children: n, ...r }) {
4783
+ function mi({ label: e, className: t, children: n, ...r }) {
4715
4784
  return /* @__PURE__ */ U("section", {
4716
4785
  className: W("space-y-2", t),
4717
4786
  ...r,
@@ -4724,7 +4793,7 @@ function di({ label: e, className: t, children: n, ...r }) {
4724
4793
  })]
4725
4794
  });
4726
4795
  }
4727
- var fi = {
4796
+ var hi = {
4728
4797
  neutral: "border-line text-fg-3",
4729
4798
  accent: "border-line text-accent",
4730
4799
  danger: "border-line text-danger",
@@ -4732,10 +4801,10 @@ var fi = {
4732
4801
  info: "border-line text-info",
4733
4802
  secondary: "border-line text-secondary"
4734
4803
  };
4735
- function pi({ icon: e, tone: t = "neutral", title: n, description: r, trailing: i, chevron: a }) {
4804
+ function gi({ icon: e, tone: t = "neutral", title: n, description: r, trailing: i, chevron: a }) {
4736
4805
  return /* @__PURE__ */ U(V, { children: [
4737
4806
  e && /* @__PURE__ */ H("span", {
4738
- className: W("flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border", fi[t]),
4807
+ className: W("flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border", hi[t]),
4739
4808
  children: e
4740
4809
  }),
4741
4810
  /* @__PURE__ */ U("span", {
@@ -4758,12 +4827,12 @@ function pi({ icon: e, tone: t = "neutral", title: n, description: r, trailing:
4758
4827
  })
4759
4828
  ] });
4760
4829
  }
4761
- var mi = "group row-py flex w-full items-center gap-3 px-4 text-left";
4762
- function hi({ icon: e, tone: t, title: n, description: r, trailing: i, chevron: a, className: o, ...s }) {
4830
+ var _i = "group row-py flex w-full items-center gap-3 px-4 text-left";
4831
+ function vi({ icon: e, tone: t, title: n, description: r, trailing: i, chevron: a, className: o, ...s }) {
4763
4832
  return /* @__PURE__ */ H("div", {
4764
- className: W(mi, o),
4833
+ className: W(_i, o),
4765
4834
  ...s,
4766
- children: /* @__PURE__ */ H(pi, {
4835
+ children: /* @__PURE__ */ H(gi, {
4767
4836
  icon: e,
4768
4837
  tone: t,
4769
4838
  title: n,
@@ -4773,15 +4842,15 @@ function hi({ icon: e, tone: t, title: n, description: r, trailing: i, chevron:
4773
4842
  })
4774
4843
  });
4775
4844
  }
4776
- var gi = a(function({ icon: e, tone: t, title: n, description: r, trailing: i, chevron: a = !0, className: o, type: s = "button", ...c }, l) {
4845
+ var yi = a(function({ icon: e, tone: t, title: n, description: r, trailing: i, chevron: a = !0, className: o, type: s = "button", ...c }, l) {
4777
4846
  return /* @__PURE__ */ H(y.button, {
4778
4847
  ref: l,
4779
4848
  type: s,
4780
4849
  whileTap: { scale: .995 },
4781
4850
  transition: G.instant,
4782
- className: W(mi, "touch-target transition-colors motion-instant hover:bg-fill-2 disabled:pointer-events-none disabled:opacity-40", o),
4851
+ className: W(_i, "touch-target transition-colors motion-instant hover:bg-fill-2 disabled:pointer-events-none disabled:opacity-40", o),
4783
4852
  ...c,
4784
- children: /* @__PURE__ */ H(pi, {
4853
+ children: /* @__PURE__ */ H(gi, {
4785
4854
  icon: e,
4786
4855
  tone: t,
4787
4856
  title: n,
@@ -4791,10 +4860,10 @@ var gi = a(function({ icon: e, tone: t, title: n, description: r, trailing: i, c
4791
4860
  })
4792
4861
  });
4793
4862
  });
4794
- gi.displayName = "ListRowButton";
4863
+ yi.displayName = "ListRowButton";
4795
4864
  //#endregion
4796
4865
  //#region src/components/Masonry.tsx
4797
- function _i({ children: t, minColumnWidth: n = 180, maxColumns: r = 6, gap: i = 8, className: a }) {
4866
+ function bi({ children: t, minColumnWidth: n = 180, maxColumns: r = 6, gap: i = 8, className: a }) {
4798
4867
  let o = p(null), [s, c] = m(0);
4799
4868
  l(() => {
4800
4869
  let e = o.current;
@@ -4821,14 +4890,14 @@ function _i({ children: t, minColumnWidth: n = 180, maxColumns: r = 6, gap: i =
4821
4890
  }
4822
4891
  //#endregion
4823
4892
  //#region src/components/MediaCard.tsx
4824
- var vi = {
4893
+ var xi = {
4825
4894
  accent: "bg-accent",
4826
4895
  info: "bg-info",
4827
4896
  warning: "bg-warning",
4828
4897
  secondary: "bg-secondary",
4829
4898
  neutral: "bg-fg-3"
4830
- }, yi = a(function({ title: e, description: t, image: n, kind: r, tone: i = "neutral", tag: a, meta: o, selected: s, className: c, type: l = "button", ...u }, d) {
4831
- let [f, p] = m(!1), h = Pn(e), g = !!n && !f;
4899
+ }, Si = a(function({ title: e, description: t, image: n, kind: r, tone: i = "neutral", tag: a, meta: o, selected: s, className: c, type: l = "button", ...u }, d) {
4900
+ let [f, p] = m(!1), h = Fn(e), g = !!n && !f;
4832
4901
  return /* @__PURE__ */ U(y.button, {
4833
4902
  ref: d,
4834
4903
  type: l,
@@ -4857,7 +4926,7 @@ var vi = {
4857
4926
  }),
4858
4927
  r && /* @__PURE__ */ U("span", {
4859
4928
  className: "absolute left-2.5 top-2.5 z-10 inline-flex items-center gap-1.5 rounded-full border border-white/12 bg-black/55 px-2 py-1 text-2xs font-medium text-white/90 backdrop-blur-md",
4860
- children: [/* @__PURE__ */ H("span", { className: W("h-1.5 w-1.5 rounded-full", vi[i]) }), r]
4929
+ children: [/* @__PURE__ */ H("span", { className: W("h-1.5 w-1.5 rounded-full", xi[i]) }), r]
4861
4930
  }),
4862
4931
  o && /* @__PURE__ */ H("span", {
4863
4932
  className: "absolute right-2.5 top-2.5 z-10 rounded-full border border-white/12 bg-black/55 px-2 py-1 text-2xs font-medium tabular-nums text-white/90 backdrop-blur-md",
@@ -4882,19 +4951,19 @@ var vi = {
4882
4951
  ]
4883
4952
  });
4884
4953
  });
4885
- yi.displayName = "MediaCard";
4886
- function bi() {
4954
+ Si.displayName = "MediaCard";
4955
+ function Ci() {
4887
4956
  return /* @__PURE__ */ U("div", {
4888
4957
  className: "relative aspect-3/4 w-full overflow-hidden rounded-2xl border border-line",
4889
- children: [/* @__PURE__ */ H($, {
4958
+ children: [/* @__PURE__ */ H(Q, {
4890
4959
  shape: "block",
4891
4960
  className: "h-full w-full rounded-none"
4892
4961
  }), /* @__PURE__ */ U("div", {
4893
4962
  className: "absolute inset-x-0 bottom-0 space-y-2 p-3",
4894
- children: [/* @__PURE__ */ H($, {
4963
+ children: [/* @__PURE__ */ H(Q, {
4895
4964
  width: "65%",
4896
4965
  className: "h-4"
4897
- }), /* @__PURE__ */ H($, {
4966
+ }), /* @__PURE__ */ H(Q, {
4898
4967
  width: "90%",
4899
4968
  className: "h-3"
4900
4969
  })]
@@ -4903,7 +4972,7 @@ function bi() {
4903
4972
  }
4904
4973
  //#endregion
4905
4974
  //#region src/components/MediaTile.tsx
4906
- var xi = a(function({ src: e, alt: t, kind: n, variantCount: r, selected: i, aspect: a = "square", className: o, type: s = "button", ...c }, l) {
4975
+ var wi = a(function({ src: e, alt: t, kind: n, variantCount: r, selected: i, aspect: a = "square", className: o, type: s = "button", ...c }, l) {
4907
4976
  let [u, d] = m(!1);
4908
4977
  return /* @__PURE__ */ U(y.button, {
4909
4978
  ref: l,
@@ -4937,41 +5006,41 @@ var xi = a(function({ src: e, alt: t, kind: n, variantCount: r, selected: i, asp
4937
5006
  ]
4938
5007
  });
4939
5008
  });
4940
- xi.displayName = "MediaTile";
4941
- function Si({ aspect: e = "square" }) {
4942
- return /* @__PURE__ */ H($, {
5009
+ wi.displayName = "MediaTile";
5010
+ function Ti({ aspect: e = "square" }) {
5011
+ return /* @__PURE__ */ H(Q, {
4943
5012
  shape: "block",
4944
5013
  className: W("w-full rounded-xl", e === "square" ? "aspect-square" : "aspect-3/4")
4945
5014
  });
4946
5015
  }
4947
5016
  //#endregion
4948
5017
  //#region src/components/Message.tsx
4949
- var Ci = {
5018
+ var Ei = {
4950
5019
  small: "text-sm",
4951
5020
  medium: "text-base",
4952
5021
  large: "text-lg",
4953
5022
  xlarge: "text-xl"
4954
- }, wi = {
5023
+ }, Di = {
4955
5024
  tight: "leading-snug",
4956
5025
  normal: "leading-normal",
4957
5026
  relaxed: "leading-relaxed"
4958
- }, Ti = {
5027
+ }, Oi = {
4959
5028
  sharp: "rounded-md",
4960
5029
  rounded: "rounded-xl",
4961
5030
  pill: "rounded-2xl"
4962
- }, Ei = {
5031
+ }, ki = {
4963
5032
  compact: "max-w-[min(calc(100%-3rem),30rem)]",
4964
5033
  normal: "max-w-[min(calc(100%-1.5rem),36rem)]",
4965
5034
  wide: "max-w-[min(100%,44rem)]"
4966
- }, Di = {
5035
+ }, Ai = {
4967
5036
  compact: "px-3 py-2",
4968
5037
  normal: "px-4 py-2.5",
4969
5038
  spacious: "px-5 py-3.5"
4970
- }, Oi = {
5039
+ }, ji = {
4971
5040
  small: "xs",
4972
5041
  medium: "sm",
4973
5042
  large: "md"
4974
- }, ki = {
5043
+ }, Mi = {
4975
5044
  fontSize: "medium",
4976
5045
  lineSpacing: "relaxed",
4977
5046
  radius: "rounded",
@@ -4982,11 +5051,11 @@ var Ci = {
4982
5051
  avatarSize: "medium",
4983
5052
  headerPlacement: "below"
4984
5053
  };
4985
- function Ai({ role: e, children: t, author: n, timestamp: r, state: i = "idle", reasoning: a, attachments: o, variants: s, group: c = "only", pinned: l, held: u, menu: d, menuTitle: f, onMenu: p, appearance: h, className: g }) {
5054
+ function Ni({ role: e, children: t, author: n, timestamp: r, state: i = "idle", reasoning: a, attachments: o, variants: s, group: c = "only", pinned: l, held: u, menu: d, menuTitle: f, onMenu: p, appearance: h, className: g }) {
4986
5055
  let { strings: _ } = K(), v = {
4987
- ...ki,
5056
+ ...Mi,
4988
5057
  ...h
4989
- }, b = e === "user", { hasBackground: x, tone: S } = Ln(), C = c === "only" || c === "start", w = c === "only" || c === (v.headerPlacement === "below" ? "end" : "start"), [T, E] = m(!1), D = u || T, O = p ?? (d ? () => E(!0) : void 0), k = hr(O, { enabled: !!O }), A = !!(s && s.total > 1), ee = (e, t) => {
5058
+ }, b = e === "user", { hasBackground: x, tone: S } = Rn(), C = c === "only" || c === "start", w = c === "only" || c === (v.headerPlacement === "below" ? "end" : "start"), [T, E] = m(!1), D = u || T, O = p ?? (d ? () => E(!0) : void 0), k = gr(O, { enabled: !!O }), A = !!(s && s.total > 1), ee = (e, t) => {
4990
5059
  if (!s) return;
4991
5060
  let n = Math.abs(t.offset.x) > 40, r = Math.abs(t.velocity.x) > 320;
4992
5061
  (n || r) && (t.offset.x < 0 ? s.index < s.total - 1 && s.onNext() : s.index > 0 && s.onPrev());
@@ -5031,7 +5100,7 @@ function Ai({ role: e, children: t, author: n, timestamp: r, state: i = "idle",
5031
5100
  whileDrag: { cursor: "grabbing" },
5032
5101
  onDragEnd: ee
5033
5102
  } : {},
5034
- className: W("relative min-w-0", Ci[v.fontSize], wi[v.lineSpacing], j ? W("w-fit text-fg-2", Ei[v.maxWidth], v.style !== "minimal" && Di[v.padding], e === "system" && "text-sm leading-normal", e === "system" && v.style !== "minimal" && "px-3 py-2", v.style !== "minimal" && Ti[v.radius], x && v.style !== "minimal" && "backdrop-blur-md", v.style === "filled" && (x ? S === "light" ? "border border-black/10 bg-white/45" : "border border-white/10 bg-black/45" : "border border-line bg-fill"), v.style === "bordered" && "border border-line-2") : W("w-fit", Ei[v.maxWidth], v.style !== "minimal" && Di[v.padding], v.style !== "minimal" && Ti[v.radius], v.style === "minimal" && "text-fg", v.style === "filled" && (b ? "bg-accent/22 text-fg" : "bg-fill-2 text-fg"), x && v.style !== "minimal" && "backdrop-blur-md", x && v.style === "filled" && S === "dark" && (b ? "bg-accent/35" : "border border-white/10 bg-black/35"), x && v.style === "filled" && S === "light" && (b ? "bg-accent/40" : "border border-black/10 bg-white/55"), v.style === "bordered" && (b ? "border border-accent/40 text-fg" : "border border-line-2 text-fg"), b && "ml-auto"), A && "pb-6", D && "ring-2 ring-accent/50"),
5103
+ className: W("relative min-w-0", Ei[v.fontSize], Di[v.lineSpacing], j ? W("w-fit text-fg-2", ki[v.maxWidth], v.style !== "minimal" && Ai[v.padding], e === "system" && "text-sm leading-normal", e === "system" && v.style !== "minimal" && "px-3 py-2", v.style !== "minimal" && Oi[v.radius], x && v.style !== "minimal" && "backdrop-blur-md", v.style === "filled" && (x ? S === "light" ? "border border-black/10 bg-white/45" : "border border-white/10 bg-black/45" : "border border-line bg-fill"), v.style === "bordered" && "border border-line-2") : W("w-fit", ki[v.maxWidth], v.style !== "minimal" && Ai[v.padding], v.style !== "minimal" && Oi[v.radius], v.style === "minimal" && "text-fg", v.style === "filled" && (b ? "bg-accent/22 text-fg" : "bg-fill-2 text-fg"), x && v.style !== "minimal" && "backdrop-blur-md", x && v.style === "filled" && S === "dark" && (b ? "bg-accent/35" : "border border-white/10 bg-black/35"), x && v.style === "filled" && S === "light" && (b ? "bg-accent/40" : "border border-black/10 bg-white/55"), v.style === "bordered" && (b ? "border border-accent/40 text-fg" : "border border-line-2 text-fg"), b && "ml-auto"), A && "pb-6", D && "ring-2 ring-accent/50"),
5035
5104
  children: [
5036
5105
  v.headerPlacement === "inside" && P && /* @__PURE__ */ H("div", {
5037
5106
  className: "mb-1.5",
@@ -5041,7 +5110,7 @@ function Ai({ role: e, children: t, author: n, timestamp: r, state: i = "idle",
5041
5110
  className: "mb-2",
5042
5111
  children: o
5043
5112
  }),
5044
- i === "typing" ? /* @__PURE__ */ H(Mi, {}) : t,
5113
+ i === "typing" ? /* @__PURE__ */ H(Fi, {}) : t,
5045
5114
  i === "streaming" && /* @__PURE__ */ H("span", {
5046
5115
  "aria-hidden": "true",
5047
5116
  className: "ml-0.5 inline-block h-[1em] w-[2px] translate-y-[0.15em] animate-pulse bg-accent"
@@ -5059,10 +5128,10 @@ function Ai({ role: e, children: t, author: n, timestamp: r, state: i = "idle",
5059
5128
  }), ne = /* @__PURE__ */ U("div", {
5060
5129
  ...O ? k.handlers : {},
5061
5130
  className: W("group/message flex w-full gap-2", c === "start" || c === "only" ? "mt-5 first:mt-0" : "mt-1", b ? "flex-row-reverse" : "flex-row", g),
5062
- children: [te ? /* @__PURE__ */ H(Zt, {
5131
+ children: [te ? /* @__PURE__ */ H(Qt, {
5063
5132
  name: n.name,
5064
5133
  src: n.avatar,
5065
- size: Oi[v.avatarSize],
5134
+ size: ji[v.avatarSize],
5066
5135
  className: W("mt-0.5", v.avatar === "rounded" && "rounded-lg")
5067
5136
  }) : j && v.avatar !== "hidden" && C ? /* @__PURE__ */ H("span", {
5068
5137
  "aria-hidden": "true",
@@ -5075,7 +5144,7 @@ function Ai({ role: e, children: t, author: n, timestamp: r, state: i = "idle",
5075
5144
  className: W("flex min-w-0 flex-1 flex-col gap-0.5", b && "items-end"),
5076
5145
  children: [
5077
5146
  v.headerPlacement === "outside" && P,
5078
- a && /* @__PURE__ */ H(ji, {
5147
+ a && /* @__PURE__ */ H(Pi, {
5079
5148
  label: a.label,
5080
5149
  align: b ? "end" : "start",
5081
5150
  children: a.text
@@ -5098,7 +5167,7 @@ function Ai({ role: e, children: t, author: n, timestamp: r, state: i = "idle",
5098
5167
  ]
5099
5168
  })]
5100
5169
  });
5101
- return !d || p ? ne : /* @__PURE__ */ U(V, { children: [ne, /* @__PURE__ */ H(Er, {
5170
+ return !d || p ? ne : /* @__PURE__ */ U(V, { children: [ne, /* @__PURE__ */ H(Dr, {
5102
5171
  open: T,
5103
5172
  onClose: () => E(!1),
5104
5173
  title: f ?? _.messageMenuTitle,
@@ -5109,7 +5178,7 @@ function Ai({ role: e, children: t, author: n, timestamp: r, state: i = "idle",
5109
5178
  })
5110
5179
  })] });
5111
5180
  }
5112
- function ji({ label: e, align: t = "start", children: n }) {
5181
+ function Pi({ label: e, align: t = "start", children: n }) {
5113
5182
  let { strings: r } = K(), [i, a] = m(!1);
5114
5183
  return /* @__PURE__ */ U("div", {
5115
5184
  className: W("flex w-full flex-col", t === "end" ? "items-end" : "items-start"),
@@ -5154,7 +5223,7 @@ function ji({ label: e, align: t = "start", children: n }) {
5154
5223
  })]
5155
5224
  });
5156
5225
  }
5157
- function Mi({ className: e }) {
5226
+ function Fi({ className: e }) {
5158
5227
  let { strings: t } = K();
5159
5228
  return /* @__PURE__ */ H("span", {
5160
5229
  className: W("flex items-center gap-1 py-1", e),
@@ -5185,7 +5254,7 @@ function Mi({ className: e }) {
5185
5254
  }, e))
5186
5255
  });
5187
5256
  }
5188
- function Ni({ children: e }) {
5257
+ function Ii({ children: e }) {
5189
5258
  return /* @__PURE__ */ U("div", {
5190
5259
  className: "flex items-center gap-3 py-3",
5191
5260
  children: [
@@ -5200,7 +5269,7 @@ function Ni({ children: e }) {
5200
5269
  }
5201
5270
  //#endregion
5202
5271
  //#region src/components/Meter.tsx
5203
- function Pi({ value: e, max: t = 100, label: n, valueLabel: r, thresholds: i = {
5272
+ function Li({ value: e, max: t = 100, label: n, valueLabel: r, thresholds: i = {
5204
5273
  warning: .75,
5205
5274
  danger: .9
5206
5275
  }, size: a = "md", className: o }) {
@@ -5240,7 +5309,7 @@ function Pi({ value: e, max: t = 100, label: n, valueLabel: r, thresholds: i = {
5240
5309
  }
5241
5310
  //#endregion
5242
5311
  //#region src/components/MultiItemDownloadCard.tsx
5243
- function Fi(e, t, n) {
5312
+ function Ri(e, t, n) {
5244
5313
  if (n === void 0 || !Number.isFinite(n) || n <= 0) return "";
5245
5314
  if (n < 60) return e.downloadLeftSeconds(Math.round(n));
5246
5315
  if (n < 3600) return e.downloadLeftMinutes(Math.round(n / 60));
@@ -5250,7 +5319,7 @@ function Fi(e, t, n) {
5250
5319
  }).format(n / 3600);
5251
5320
  return e.downloadLeftHours(r);
5252
5321
  }
5253
- function Ii({ title: e, detail: t, items: n, onPauseAll: r, onResumeAll: i, onCancelAll: a, onItemPause: o, onItemResume: s, onItemCancel: c, onItemRetry: l, defaultExpanded: u = !1, className: d }) {
5322
+ function zi({ title: e, detail: t, items: n, onPauseAll: r, onResumeAll: i, onCancelAll: a, onItemPause: o, onItemResume: s, onItemCancel: c, onItemRetry: l, defaultExpanded: u = !1, className: d }) {
5254
5323
  let { strings: p, locale: h } = K(), [_, v] = m(u), b = f(() => {
5255
5324
  let e = n.filter((e) => e.status === "failed"), t = n.filter((e) => e.status === "done"), r = n.filter((e) => e.status === "downloading"), i = n.filter((e) => e.status === "paused"), a = n.filter((e) => e.status === "verifying"), o = e.length ? "failed" : t.length === n.length ? "done" : r.length ? "downloading" : a.length ? "verifying" : i.length && i.length + t.length === n.length ? "paused" : "queued", s = n.every((e) => e.size !== void 0), c = n.reduce((e, t) => e + (t.size ?? 0), 0), l = n.reduce((e, t) => e + (t.status === "done" ? t.size ?? 0 : (t.progress ?? 0) * (t.size ?? 0)), 0), u = s && c > 0 ? l / c : n.reduce((e, t) => e + (t.status === "done" ? 1 : t.progress ?? 0), 0) / Math.max(1, n.length), d = r.reduce((e, t) => e + (t.speed ?? 0), 0);
5256
5325
  return {
@@ -5264,11 +5333,11 @@ function Ii({ title: e, detail: t, items: n, onPauseAll: r, onResumeAll: i, onCa
5264
5333
  doneCount: t.length,
5265
5334
  failedCount: e.length
5266
5335
  };
5267
- }, [n]), x = (e) => e === void 0 ? "" : qr(e, h), S = Math.round(b.progress * 100), C = b.status === "done", w = b.status === "failed", E = w ? p.downloadFailedCount(b.failedCount, n.length) : C ? `${p.downloadFileCount(n.length)} · ${b.knownSizes ? x(b.total) : ""}`.trim() : [
5336
+ }, [n]), x = (e) => e === void 0 ? "" : Xr(e, h), S = Math.round(b.progress * 100), C = b.status === "done", w = b.status === "failed", E = w ? p.downloadFailedCount(b.failedCount, n.length) : C ? `${p.downloadFileCount(n.length)} · ${b.knownSizes ? x(b.total) : ""}`.trim() : [
5268
5337
  p.downloadFilesDone(b.doneCount, n.length),
5269
5338
  b.knownSizes ? p.downloadProgress(x(b.transferred), x(b.total)) : void 0,
5270
5339
  b.speed ? p.downloadSpeed(x(b.speed)) : void 0,
5271
- Fi(p, h, b.eta)
5340
+ Ri(p, h, b.eta)
5272
5341
  ].filter(Boolean).join(" · ");
5273
5342
  return /* @__PURE__ */ U("div", {
5274
5343
  className: W("overflow-hidden rounded-xl border border-line bg-surface-1", d),
@@ -5278,7 +5347,7 @@ function Ii({ title: e, detail: t, items: n, onPauseAll: r, onResumeAll: i, onCa
5278
5347
  children: [
5279
5348
  /* @__PURE__ */ H("span", {
5280
5349
  className: W("flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border", C ? "border-accent/30 bg-accent/12 text-accent" : w ? "border-danger/30 bg-danger/12 text-danger" : "border-line bg-fill-2 text-fg-3"),
5281
- children: C ? /* @__PURE__ */ H(M, { size: 18 }) : w ? /* @__PURE__ */ H(T, { size: 18 }) : b.status === "verifying" ? /* @__PURE__ */ H(sr, { size: "md" }) : /* @__PURE__ */ H(L, { size: 18 })
5350
+ children: C ? /* @__PURE__ */ H(M, { size: 18 }) : w ? /* @__PURE__ */ H(T, { size: 18 }) : b.status === "verifying" ? /* @__PURE__ */ H(cr, { size: "md" }) : /* @__PURE__ */ H(L, { size: 18 })
5282
5351
  }),
5283
5352
  /* @__PURE__ */ U("div", {
5284
5353
  className: "min-w-0 flex-1 space-y-1.5",
@@ -5297,7 +5366,7 @@ function Ii({ title: e, detail: t, items: n, onPauseAll: r, onResumeAll: i, onCa
5297
5366
  className: "truncate text-sm text-fg-3",
5298
5367
  children: t
5299
5368
  }),
5300
- !C && !w && /* @__PURE__ */ H(Hr, {
5369
+ !C && !w && /* @__PURE__ */ H(Gr, {
5301
5370
  value: b.status === "queued" ? void 0 : S,
5302
5371
  size: "sm"
5303
5372
  }),
@@ -5368,7 +5437,7 @@ function Ii({ title: e, detail: t, items: n, onPauseAll: r, onResumeAll: i, onCa
5368
5437
  className: "overflow-hidden",
5369
5438
  children: /* @__PURE__ */ H("div", {
5370
5439
  className: "space-y-1.5 border-t border-line bg-surface/40 p-2",
5371
- children: n.map((e) => /* @__PURE__ */ H(Yr, {
5440
+ children: n.map((e) => /* @__PURE__ */ H(Qr, {
5372
5441
  name: e.name,
5373
5442
  detail: e.detail,
5374
5443
  status: e.status,
@@ -5391,7 +5460,7 @@ function Ii({ title: e, detail: t, items: n, onPauseAll: r, onResumeAll: i, onCa
5391
5460
  }
5392
5461
  //#endregion
5393
5462
  //#region src/components/NumberInput.tsx
5394
- function Li({ value: e, onChange: t, min: n = -Infinity, max: r = Infinity, step: i = 1, precision: a, suffix: o, disabled: s, id: c, className: l }) {
5463
+ function Bi({ value: e, onChange: t, min: n = -Infinity, max: r = Infinity, step: i = 1, precision: a, suffix: o, disabled: s, id: c, className: l }) {
5395
5464
  let { strings: u } = K(), d = J(), f = p(null), m = a ?? String(i).split(".")[1]?.length ?? 0, h = (e) => Math.min(r, Math.max(n, e)), g = (e) => {
5396
5465
  Number.isNaN(e) || t(Number(h(e).toFixed(m)));
5397
5466
  };
@@ -5438,16 +5507,16 @@ function Li({ value: e, onChange: t, min: n = -Infinity, max: r = Infinity, step
5438
5507
  }
5439
5508
  //#endregion
5440
5509
  //#region src/components/Pagination.tsx
5441
- function Ri(e, t) {
5510
+ function Vi(e, t) {
5442
5511
  return Array.from({ length: Math.max(0, t - e + 1) }, (t, n) => e + n);
5443
5512
  }
5444
- function zi({ page: e, pageCount: t, onChange: n, siblings: r = 1, className: i }) {
5513
+ function Hi({ page: e, pageCount: t, onChange: n, siblings: r = 1, className: i }) {
5445
5514
  let { strings: a } = K();
5446
5515
  if (t <= 1) return null;
5447
5516
  let o = Math.max(2, e - r), s = Math.min(t - 1, e + r), c = [
5448
5517
  1,
5449
5518
  ...o > 2 ? ["gap"] : [],
5450
- ...Ri(o, s),
5519
+ ...Vi(o, s),
5451
5520
  ...s < t - 1 ? ["gap"] : [],
5452
5521
  ...t > 1 ? [t] : []
5453
5522
  ], l = (r) => n(Math.min(t, Math.max(1, e + r)));
@@ -5488,7 +5557,7 @@ function zi({ page: e, pageCount: t, onChange: n, siblings: r = 1, className: i
5488
5557
  }
5489
5558
  //#endregion
5490
5559
  //#region src/components/Panel.tsx
5491
- var Bi = {
5560
+ var Ui = {
5492
5561
  neutral: "border-line bg-surface-1",
5493
5562
  subtle: "border-line bg-surface-1/60",
5494
5563
  accent: "border-accent/30 bg-accent/8",
@@ -5496,7 +5565,7 @@ var Bi = {
5496
5565
  warning: "border-warning/30 bg-warning/8",
5497
5566
  danger: "border-danger/30 bg-danger/8",
5498
5567
  secondary: "border-secondary/30 bg-secondary/8"
5499
- }, Vi = {
5568
+ }, Wi = {
5500
5569
  neutral: "text-fg",
5501
5570
  subtle: "text-fg-2",
5502
5571
  accent: "text-accent",
@@ -5505,16 +5574,16 @@ var Bi = {
5505
5574
  danger: "text-danger",
5506
5575
  secondary: "text-secondary"
5507
5576
  };
5508
- function Hi({ title: e, description: t, tone: n = "neutral", action: r, onSurface: i, className: a, children: o, ...s }) {
5577
+ function Gi({ title: e, description: t, tone: n = "neutral", action: r, onSurface: i, className: a, children: o, ...s }) {
5509
5578
  return /* @__PURE__ */ U("section", {
5510
- className: W("flex flex-col gap-2 rounded-xl border px-3.5 py-3", Bi[n], i && "backdrop-blur-md", a),
5579
+ className: W("flex flex-col gap-2 rounded-xl border px-3.5 py-3", Ui[n], i && "backdrop-blur-md", a),
5511
5580
  ...s,
5512
5581
  children: [(e || t || r) && /* @__PURE__ */ U("header", {
5513
5582
  className: "flex items-start gap-2",
5514
5583
  children: [/* @__PURE__ */ U("div", {
5515
5584
  className: "min-w-0 flex-1 space-y-0.5",
5516
5585
  children: [e && /* @__PURE__ */ H("h3", {
5517
- className: W("truncate text-base font-semibold", Vi[n]),
5586
+ className: W("truncate text-base font-semibold", Wi[n]),
5518
5587
  children: e
5519
5588
  }), t && /* @__PURE__ */ H("p", {
5520
5589
  className: "text-sm leading-snug text-fg-3",
@@ -5529,27 +5598,27 @@ function Hi({ title: e, description: t, tone: n = "neutral", action: r, onSurfac
5529
5598
  }
5530
5599
  //#endregion
5531
5600
  //#region src/components/PartitionBar.tsx
5532
- var Ui = {
5601
+ var Ki = {
5533
5602
  accent: "var(--color-accent)",
5534
5603
  info: "var(--color-info)",
5535
5604
  secondary: "var(--color-secondary)",
5536
5605
  warning: "var(--color-warning)",
5537
5606
  danger: "var(--color-danger)",
5538
5607
  neutral: "var(--color-fg-3)"
5539
- }, Wi = {
5608
+ }, qi = {
5540
5609
  sm: "h-1.5",
5541
5610
  md: "h-2.5",
5542
5611
  lg: "h-3.5"
5543
5612
  };
5544
- function Gi({ segments: e, total: t, format: n, labels: r = "below", minLabelShare: i = .12, size: a = "md", showRemainder: o, className: s, ...c }) {
5545
- let { strings: l } = K(), d = u(), f = e.reduce((e, t) => e + Math.max(0, t.value), 0), p = t ?? f, m = (e) => p > 0 ? Math.max(0, e) / p : 0, h = Math.max(0, p - f), g = e.some((e) => m(e.value) > 0 && m(e.value) < i), _ = r === "below" && g ? "legend" : r, v = (e) => n ? n(e.value, m(e.value)) : `${Math.round(m(e.value) * 100)}%`, y = (e) => e.color ?? Ui[e.tone ?? "neutral"];
5613
+ function Ji({ segments: e, total: t, format: n, labels: r = "below", minLabelShare: i = .12, size: a = "md", showRemainder: o, className: s, ...c }) {
5614
+ let { strings: l } = K(), d = u(), f = e.reduce((e, t) => e + Math.max(0, t.value), 0), p = t ?? f, m = (e) => p > 0 ? Math.max(0, e) / p : 0, h = Math.max(0, p - f), g = e.some((e) => m(e.value) > 0 && m(e.value) < i), _ = r === "below" && g ? "legend" : r, v = (e) => n ? n(e.value, m(e.value)) : `${Math.round(m(e.value) * 100)}%`, y = (e) => e.color ?? Ki[e.tone ?? "neutral"];
5546
5615
  return /* @__PURE__ */ U("div", {
5547
5616
  className: W("w-full", s),
5548
5617
  children: [
5549
5618
  /* @__PURE__ */ U("div", {
5550
5619
  role: "img",
5551
5620
  "aria-label": c["aria-label"] ?? e.map((e) => `${typeof e.label == "string" ? e.label : e.id} ${v(e)}`).join(", "),
5552
- className: W("flex w-full items-stretch gap-1", Wi[a]),
5621
+ className: W("flex w-full items-stretch gap-1", qi[a]),
5553
5622
  children: [e.map((e) => {
5554
5623
  let t = m(e.value);
5555
5624
  return t <= 0 ? null : /* @__PURE__ */ H("div", {
@@ -5627,13 +5696,13 @@ function Gi({ segments: e, total: t, format: n, labels: r = "below", minLabelSha
5627
5696
  }
5628
5697
  //#endregion
5629
5698
  //#region src/components/primitives.tsx
5630
- function Ki({ children: e }) {
5699
+ function Yi({ children: e }) {
5631
5700
  return /* @__PURE__ */ H("span", {
5632
5701
  className: "absolute -m-px h-px w-px overflow-hidden whitespace-nowrap border-0 p-0 [clip:rect(0,0,0,0)]",
5633
5702
  children: e
5634
5703
  });
5635
5704
  }
5636
- var qi = a(function({ ratio: e = 1, className: t, style: n, ...r }, i) {
5705
+ var Xi = a(function({ ratio: e = 1, className: t, style: n, ...r }, i) {
5637
5706
  return /* @__PURE__ */ H("div", {
5638
5707
  ref: i,
5639
5708
  className: W("relative w-full overflow-hidden", t),
@@ -5644,10 +5713,10 @@ var qi = a(function({ ratio: e = 1, className: t, style: n, ...r }, i) {
5644
5713
  ...r
5645
5714
  });
5646
5715
  });
5647
- qi.displayName = "AspectRatio";
5716
+ Xi.displayName = "AspectRatio";
5648
5717
  //#endregion
5649
5718
  //#region src/components/InlineMarkdown.tsx
5650
- var Ji = [
5719
+ var Zi = [
5651
5720
  "p",
5652
5721
  "strong",
5653
5722
  "em",
@@ -5660,23 +5729,23 @@ var Ji = [
5660
5729
  "li",
5661
5730
  "blockquote"
5662
5731
  ];
5663
- function Yi(e) {
5732
+ function Qi(e) {
5664
5733
  return e.replace(/^( {0,3})#(?=#{0,5}(?:\s|$))/gm, "$1\\#");
5665
5734
  }
5666
- var Xi = ({ children: e }) => /* @__PURE__ */ U("span", { children: [e, " "] });
5667
- function Zi({ children: e, className: t }) {
5735
+ var $i = ({ children: e }) => /* @__PURE__ */ U("span", { children: [e, " "] });
5736
+ function ea({ children: e, className: t }) {
5668
5737
  return /* @__PURE__ */ H("span", {
5669
5738
  className: W(t),
5670
5739
  children: /* @__PURE__ */ H(Ye, {
5671
5740
  remarkPlugins: [Xe],
5672
- allowedElements: Ji,
5741
+ allowedElements: Zi,
5673
5742
  unwrapDisallowed: !0,
5674
5743
  components: {
5675
- p: Xi,
5676
- ul: Xi,
5677
- ol: Xi,
5678
- li: Xi,
5679
- blockquote: Xi,
5744
+ p: $i,
5745
+ ul: $i,
5746
+ ol: $i,
5747
+ li: $i,
5748
+ blockquote: $i,
5680
5749
  a: ({ children: e }) => /* @__PURE__ */ H("span", { children: e }),
5681
5750
  strong: ({ children: e }) => /* @__PURE__ */ H("strong", {
5682
5751
  className: "font-semibold",
@@ -5690,13 +5759,13 @@ function Zi({ children: e, className: t }) {
5690
5759
  }),
5691
5760
  br: () => /* @__PURE__ */ H(V, { children: " " })
5692
5761
  },
5693
- children: Yi(e)
5762
+ children: Qi(e)
5694
5763
  })
5695
5764
  });
5696
5765
  }
5697
5766
  //#endregion
5698
5767
  //#region src/components/Prose.tsx
5699
- function Qi({ children: e, size: t = "md", className: n }) {
5768
+ function ta({ children: e, size: t = "md", className: n }) {
5700
5769
  return /* @__PURE__ */ H("div", {
5701
5770
  className: W(t === "sm" ? "text-sm" : "text-base", "leading-relaxed text-fg", n),
5702
5771
  children: /* @__PURE__ */ H(Ye, {
@@ -5751,7 +5820,7 @@ function Qi({ children: e, size: t = "md", className: n }) {
5751
5820
  return !e && !n.includes("\n") ? /* @__PURE__ */ H("code", {
5752
5821
  className: "rounded-md border border-line bg-fill px-1 py-0.5 font-mono text-[0.9em] text-fg-2",
5753
5822
  children: n
5754
- }) : /* @__PURE__ */ H(tr, {
5823
+ }) : /* @__PURE__ */ H(nr, {
5755
5824
  code: n,
5756
5825
  label: e?.replace("language-", ""),
5757
5826
  className: "my-3"
@@ -5789,10 +5858,10 @@ function Qi({ children: e, size: t = "md", className: n }) {
5789
5858
  }
5790
5859
  //#endregion
5791
5860
  //#region src/components/Radio.tsx
5792
- var $i = r(null);
5793
- function ea({ value: e, onChange: t, disabled: n, orientation: r = "vertical", className: i, children: a, ...o }) {
5861
+ var na = r(null);
5862
+ function ra({ value: e, onChange: t, disabled: n, orientation: r = "vertical", className: i, children: a, ...o }) {
5794
5863
  let s = u();
5795
- return /* @__PURE__ */ H($i.Provider, {
5864
+ return /* @__PURE__ */ H(na.Provider, {
5796
5865
  value: {
5797
5866
  name: s,
5798
5867
  value: e,
@@ -5807,8 +5876,8 @@ function ea({ value: e, onChange: t, disabled: n, orientation: r = "vertical", c
5807
5876
  })
5808
5877
  });
5809
5878
  }
5810
- function ta({ value: e, label: t, description: n, disabled: r }) {
5811
- let i = c($i);
5879
+ function ia({ value: e, label: t, description: n, disabled: r }) {
5880
+ let i = c(na);
5812
5881
  if (!i) throw Error("Radio must be used inside <RadioGroup>");
5813
5882
  let a = i.value === e, o = r || i.disabled;
5814
5883
  return /* @__PURE__ */ U("label", {
@@ -5842,7 +5911,7 @@ function ta({ value: e, label: t, description: n, disabled: r }) {
5842
5911
  }
5843
5912
  //#endregion
5844
5913
  //#region src/components/Resizable.tsx
5845
- function na({ panel: e, children: t, side: n = "left", defaultSize: r = 320, minSize: i = 200, maxSize: a = 640, storageKey: o, className: c }) {
5914
+ function aa({ panel: e, children: t, side: n = "left", defaultSize: r = 320, minSize: i = 200, maxSize: a = 640, storageKey: o, className: c }) {
5846
5915
  let { strings: u } = K(), [d, f] = m(() => {
5847
5916
  if (!o || typeof localStorage > "u") return r;
5848
5917
  try {
@@ -5907,7 +5976,7 @@ function na({ panel: e, children: t, side: n = "left", defaultSize: r = 320, min
5907
5976
  }
5908
5977
  //#endregion
5909
5978
  //#region src/components/SearchField.tsx
5910
- var ra = a(function({ value: e, onChange: t, loading: n, shortcut: r, size: i = "md", placeholder: a, className: o, ...s }, c) {
5979
+ var oa = a(function({ value: e, onChange: t, loading: n, shortcut: r, size: i = "md", placeholder: a, className: o, ...s }, c) {
5911
5980
  let { strings: l } = K(), u = p(null);
5912
5981
  return /* @__PURE__ */ U("div", {
5913
5982
  className: "relative",
@@ -5940,18 +6009,18 @@ var ra = a(function({ value: e, onChange: t, loading: n, shortcut: r, size: i =
5940
6009
  children: /* @__PURE__ */ H(B, { size: 14 })
5941
6010
  }) : n ? /* @__PURE__ */ H("span", {
5942
6011
  className: "absolute right-3 top-1/2 -translate-y-1/2",
5943
- children: /* @__PURE__ */ H(sr, { size: "sm" })
6012
+ children: /* @__PURE__ */ H(cr, { size: "sm" })
5944
6013
  }) : r ? /* @__PURE__ */ H("span", {
5945
6014
  className: "absolute right-2 top-1/2 hidden -translate-y-1/2 hoverable:block",
5946
- children: /* @__PURE__ */ H(fr, { children: r })
6015
+ children: /* @__PURE__ */ H(pr, { children: r })
5947
6016
  }) : null
5948
6017
  ]
5949
6018
  });
5950
6019
  });
5951
- ra.displayName = "SearchField";
6020
+ oa.displayName = "SearchField";
5952
6021
  //#endregion
5953
6022
  //#region src/components/Segmented.tsx
5954
- function ia({ options: e, value: t, onChange: n, size: r = "md", block: i, className: a, ...o }) {
6023
+ function sa({ options: e, value: t, onChange: n, size: r = "md", block: i, className: a, ...o }) {
5955
6024
  let s = u();
5956
6025
  return /* @__PURE__ */ H("div", {
5957
6026
  role: "radiogroup",
@@ -5990,7 +6059,7 @@ function ia({ options: e, value: t, onChange: n, size: r = "md", block: i, class
5990
6059
  }
5991
6060
  //#endregion
5992
6061
  //#region src/components/Select.tsx
5993
- var aa = a(function({ options: e, placeholder: t, className: n, id: r, value: i, defaultValue: a, ...o }, s) {
6062
+ var ca = a(function({ options: e, placeholder: t, className: n, id: r, value: i, defaultValue: a, ...o }, s) {
5994
6063
  let c = J(), l = (i ?? a ?? "") === "";
5995
6064
  return /* @__PURE__ */ U("div", {
5996
6065
  className: "relative",
@@ -6019,10 +6088,10 @@ var aa = a(function({ options: e, placeholder: t, className: n, id: r, value: i,
6019
6088
  })]
6020
6089
  });
6021
6090
  });
6022
- aa.displayName = "Select";
6091
+ ca.displayName = "Select";
6023
6092
  //#endregion
6024
6093
  //#region src/components/SelectMenu.tsx
6025
- function oa(e) {
6094
+ function la(e) {
6026
6095
  let { strings: t } = K(), { options: n, placeholder: r, triggerIcon: i = !0, disabled: a, id: o, className: c, menuClassName: d } = e, h = e.multiple === !0, g = J(), _ = u(), [v, y] = m(!1), [b, x] = m(0), S = p(null), C = p({
6027
6096
  query: "",
6028
6097
  at: 0
@@ -6092,10 +6161,10 @@ function oa(e) {
6092
6161
  }
6093
6162
  }
6094
6163
  }, A = n.filter((e) => w.includes(e.value)), ee = h ? e.maxLabels ?? 2 : 1, j = A.length === 0 ? r ?? t.selectMenuPlaceholder : h && A.length > ee ? t.selectMenuSelected(A.length) : A.map((e) => e.label).join(", "), te = -1;
6095
- return /* @__PURE__ */ U(cn, {
6164
+ return /* @__PURE__ */ U(ln, {
6096
6165
  open: v,
6097
6166
  onOpenChange: y,
6098
- children: [/* @__PURE__ */ H(ln, { children: /* @__PURE__ */ U("button", {
6167
+ children: [/* @__PURE__ */ H(un, { children: /* @__PURE__ */ U("button", {
6099
6168
  type: "button",
6100
6169
  id: o ?? g?.id,
6101
6170
  role: "combobox",
@@ -6132,7 +6201,7 @@ function oa(e) {
6132
6201
  className: W("shrink-0 text-fg-3 transition-transform motion-instant", v && "rotate-180")
6133
6202
  })
6134
6203
  ]
6135
- }) }), /* @__PURE__ */ H(fn, {
6204
+ }) }), /* @__PURE__ */ H(pn, {
6136
6205
  matchWidth: !0,
6137
6206
  className: W("p-0", d),
6138
6207
  children: /* @__PURE__ */ U("div", {
@@ -6192,7 +6261,7 @@ function oa(e) {
6192
6261
  }
6193
6262
  //#endregion
6194
6263
  //#region src/components/Slider.tsx
6195
- var sa = a(function({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, showValue: a, className: o, id: s, style: c, ...l }, u) {
6264
+ var ua = a(function({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, showValue: a, className: o, id: s, style: c, ...l }, u) {
6196
6265
  let d = J(), f = (e - n) / (r - n) * 100, p = typeof a == "function" ? a(e) : a ? String(e) : null;
6197
6266
  return /* @__PURE__ */ U("div", {
6198
6267
  className: W("flex items-center gap-3", o),
@@ -6218,10 +6287,10 @@ var sa = a(function({ value: e, onChange: t, min: n = 0, max: r = 100, step: i =
6218
6287
  })]
6219
6288
  });
6220
6289
  });
6221
- sa.displayName = "Slider";
6290
+ ua.displayName = "Slider";
6222
6291
  //#endregion
6223
6292
  //#region src/components/StatTile.tsx
6224
- function ca({ label: e, value: t, sub: n, trend: r, goodDirection: i = "up", icon: a, highlight: o, className: s }) {
6293
+ function da({ label: e, value: t, sub: n, trend: r, goodDirection: i = "up", icon: a, highlight: o, className: s }) {
6225
6294
  let c = r ? r.direction === i : void 0;
6226
6295
  return /* @__PURE__ */ U("div", {
6227
6296
  className: W("rounded-xl border px-3.5 py-3", o ? "border-accent/30 bg-accent/8" : "border-line bg-surface-1", s),
@@ -6257,7 +6326,7 @@ function ca({ label: e, value: t, sub: n, trend: r, goodDirection: i = "up", ico
6257
6326
  ]
6258
6327
  });
6259
6328
  }
6260
- function la({ items: e, layout: t = "inline", className: n }) {
6329
+ function fa({ items: e, layout: t = "inline", className: n }) {
6261
6330
  return /* @__PURE__ */ H("dl", {
6262
6331
  className: W("divide-y divide-line", n),
6263
6332
  children: e.map((e, n) => /* @__PURE__ */ U("div", {
@@ -6274,7 +6343,7 @@ function la({ items: e, layout: t = "inline", className: n }) {
6274
6343
  }
6275
6344
  //#endregion
6276
6345
  //#region src/components/Stepper.tsx
6277
- function ua({ steps: e, current: t, onStepClick: n, variant: r = "bar", className: i }) {
6346
+ function pa({ steps: e, current: t, onStepClick: n, variant: r = "bar", className: i }) {
6278
6347
  let { strings: a } = K(), o = Math.max(0, Math.min(t, e.length - 1));
6279
6348
  return r === "dots" ? /* @__PURE__ */ H("div", {
6280
6349
  className: W("flex items-center gap-1.5", i),
@@ -6320,7 +6389,7 @@ function ua({ steps: e, current: t, onStepClick: n, variant: r = "bar", classNam
6320
6389
  }
6321
6390
  //#endregion
6322
6391
  //#region src/components/Switch.tsx
6323
- function da({ checked: e, onChange: t, disabled: n, id: r, className: i, ...a }) {
6392
+ function ma({ checked: e, onChange: t, disabled: n, id: r, className: i, ...a }) {
6324
6393
  let o = J();
6325
6394
  return /* @__PURE__ */ H("button", {
6326
6395
  type: "button",
@@ -6343,7 +6412,7 @@ function da({ checked: e, onChange: t, disabled: n, id: r, className: i, ...a })
6343
6412
  }
6344
6413
  //#endregion
6345
6414
  //#region src/components/Table.tsx
6346
- function fa({ columns: e, rows: t, rowKey: n, sort: r, onSortChange: i, onRowClick: a, empty: o, caption: s, className: c }) {
6415
+ function ha({ columns: e, rows: t, rowKey: n, sort: r, onSortChange: i, onRowClick: a, empty: o, caption: s, className: c }) {
6347
6416
  let { strings: l } = K(), u = (e) => {
6348
6417
  i && i({
6349
6418
  key: e,
@@ -6352,7 +6421,7 @@ function fa({ columns: e, rows: t, rowKey: n, sort: r, onSortChange: i, onRowCli
6352
6421
  };
6353
6422
  return /* @__PURE__ */ H("div", {
6354
6423
  className: W("overflow-hidden rounded-xl border border-line", c),
6355
- children: /* @__PURE__ */ H(er, {
6424
+ children: /* @__PURE__ */ H(tr, {
6356
6425
  axis: "x",
6357
6426
  bar: !0,
6358
6427
  children: /* @__PURE__ */ U("table", {
@@ -6404,15 +6473,15 @@ function fa({ columns: e, rows: t, rowKey: n, sort: r, onSortChange: i, onRowCli
6404
6473
  }
6405
6474
  //#endregion
6406
6475
  //#region src/components/Tabs.tsx
6407
- var pa = r(null);
6408
- function ma() {
6409
- let e = c(pa);
6476
+ var ga = r(null);
6477
+ function _a() {
6478
+ let e = c(ga);
6410
6479
  if (!e) throw Error("Tabs parts must be used inside <Tabs>");
6411
6480
  return e;
6412
6481
  }
6413
- function ha({ value: e, onChange: t, className: n, children: r }) {
6482
+ function va({ value: e, onChange: t, className: n, children: r }) {
6414
6483
  let i = u();
6415
- return /* @__PURE__ */ H(pa.Provider, {
6484
+ return /* @__PURE__ */ H(ga.Provider, {
6416
6485
  value: {
6417
6486
  value: e,
6418
6487
  onChange: t,
@@ -6424,7 +6493,7 @@ function ha({ value: e, onChange: t, className: n, children: r }) {
6424
6493
  })
6425
6494
  });
6426
6495
  }
6427
- function ga({ children: e, className: t, "aria-label": n }) {
6496
+ function ya({ children: e, className: t, "aria-label": n }) {
6428
6497
  return /* @__PURE__ */ H("div", {
6429
6498
  role: "tablist",
6430
6499
  "aria-label": n,
@@ -6441,8 +6510,8 @@ function ga({ children: e, className: t, "aria-label": n }) {
6441
6510
  children: e
6442
6511
  });
6443
6512
  }
6444
- function _a({ value: e, icon: t, count: n, children: r }) {
6445
- let i = ma(), a = i.value === e;
6513
+ function ba({ value: e, icon: t, count: n, children: r }) {
6514
+ let i = _a(), a = i.value === e;
6446
6515
  return /* @__PURE__ */ U("button", {
6447
6516
  type: "button",
6448
6517
  role: "tab",
@@ -6467,8 +6536,8 @@ function _a({ value: e, icon: t, count: n, children: r }) {
6467
6536
  ]
6468
6537
  });
6469
6538
  }
6470
- function va({ value: e, className: t, children: n }) {
6471
- let r = ma();
6539
+ function xa({ value: e, className: t, children: n }) {
6540
+ let r = _a();
6472
6541
  return r.value === e ? /* @__PURE__ */ H("div", {
6473
6542
  role: "tabpanel",
6474
6543
  id: `${r.id}-panel-${e}`,
@@ -6480,7 +6549,7 @@ function va({ value: e, className: t, children: n }) {
6480
6549
  }
6481
6550
  //#endregion
6482
6551
  //#region src/components/TagInput.tsx
6483
- function ya({ value: e, onChange: t, placeholder: n, max: r, separators: i = [","], disabled: a, id: o, className: s }) {
6552
+ function Sa({ value: e, onChange: t, placeholder: n, max: r, separators: i = [","], disabled: a, id: o, className: s }) {
6484
6553
  let { strings: c } = K(), l = J(), u = p(null), [d, f] = m(""), h = (n) => {
6485
6554
  let i = n.trim();
6486
6555
  if (!i || e.includes(i)) return f("");
@@ -6522,7 +6591,7 @@ function ya({ value: e, onChange: t, placeholder: n, max: r, separators: i = [",
6522
6591
  }
6523
6592
  //#endregion
6524
6593
  //#region src/components/Text.tsx
6525
- var ba = {
6594
+ var Ca = {
6526
6595
  hero: "text-5xl font-bold leading-[1.05] tracking-[-0.03em] text-fg @3xl:text-6xl",
6527
6596
  display: "text-4xl font-bold leading-[1.1] tracking-tight text-fg",
6528
6597
  page: "text-3xl font-bold tracking-tight text-fg",
@@ -6533,7 +6602,7 @@ var ba = {
6533
6602
  label: "text-sm font-medium text-fg-2",
6534
6603
  hint: "text-sm text-fg-3",
6535
6604
  caption: "text-2xs text-fg-3"
6536
- }, xa = {
6605
+ }, wa = {
6537
6606
  hero: "h1",
6538
6607
  display: "h1",
6539
6608
  page: "h1",
@@ -6545,15 +6614,15 @@ var ba = {
6545
6614
  hint: "p",
6546
6615
  caption: "span"
6547
6616
  };
6548
- function Sa({ variant: e = "body", as: t, className: n, ...r }) {
6549
- return i(t ?? xa[e], {
6550
- className: W(ba[e], n),
6617
+ function Ta({ variant: e = "body", as: t, className: n, ...r }) {
6618
+ return i(t ?? wa[e], {
6619
+ className: W(Ca[e], n),
6551
6620
  ...r
6552
6621
  });
6553
6622
  }
6554
6623
  //#endregion
6555
6624
  //#region src/lib/color.ts
6556
- function Ca(e) {
6625
+ function Ea(e) {
6557
6626
  let t = e.trim().replace(/^#/, ""), n = t.length === 3 ? t.split("").map((e) => e + e).join("") : t;
6558
6627
  return /^[0-9a-f]{6}$/i.test(n) ? {
6559
6628
  r: parseInt(n.slice(0, 2), 16),
@@ -6561,16 +6630,16 @@ function Ca(e) {
6561
6630
  b: parseInt(n.slice(4, 6), 16)
6562
6631
  } : null;
6563
6632
  }
6564
- function wa(e) {
6565
- let t = Ca(e);
6633
+ function Da(e) {
6634
+ let t = Ea(e);
6566
6635
  return t ? `#${[
6567
6636
  t.r,
6568
6637
  t.g,
6569
6638
  t.b
6570
6639
  ].map((e) => e.toString(16).padStart(2, "0")).join("")}` : null;
6571
6640
  }
6572
- function Ta(e) {
6573
- let t = Ca(e);
6641
+ function Oa(e) {
6642
+ let t = Ea(e);
6574
6643
  if (!t) return 0;
6575
6644
  let n = (e) => {
6576
6645
  let t = e / 255;
@@ -6578,18 +6647,18 @@ function Ta(e) {
6578
6647
  };
6579
6648
  return .2126 * n(t.r) + .7152 * n(t.g) + .0722 * n(t.b);
6580
6649
  }
6581
- function Ea(e, t) {
6582
- let n = Ta(e), r = Ta(t);
6650
+ function ka(e, t) {
6651
+ let n = Oa(e), r = Oa(t);
6583
6652
  return (Math.max(n, r) + .05) / (Math.min(n, r) + .05);
6584
6653
  }
6585
- function Da(e) {
6586
- return Ta(e) > .4;
6654
+ function Aa(e) {
6655
+ return Oa(e) > .4;
6587
6656
  }
6588
- function Oa(e) {
6589
- return Ea(e, "#ffffff") >= Ea(e, "#000000") ? "#ffffff" : "#0a0a0a";
6657
+ function ja(e) {
6658
+ return ka(e, "#ffffff") >= ka(e, "#000000") ? "#ffffff" : "#0a0a0a";
6590
6659
  }
6591
- function ka(e, t, n) {
6592
- let r = Ca(e), i = Ca(t);
6660
+ function Ma(e, t, n) {
6661
+ let r = Ea(e), i = Ea(t);
6593
6662
  if (!r || !i) return e;
6594
6663
  let a = Math.min(1, Math.max(0, n)), o = (e, t) => Math.round(e + (t - e) * a);
6595
6664
  return `#${[
@@ -6600,7 +6669,7 @@ function ka(e, t, n) {
6600
6669
  }
6601
6670
  //#endregion
6602
6671
  //#region src/theme/theme.ts
6603
- var Aa = {
6672
+ var Na = {
6604
6673
  sharp: {
6605
6674
  sm: "2px",
6606
6675
  md: "3px",
@@ -6622,21 +6691,21 @@ var Aa = {
6622
6691
  xl: "18px",
6623
6692
  "2xl": "24px"
6624
6693
  }
6625
- }, ja = {
6694
+ }, Pa = {
6626
6695
  fg2: 72,
6627
6696
  fg3: 50,
6628
6697
  fg4: 34
6629
- }, Ma = {
6698
+ }, Fa = {
6630
6699
  fill: 5,
6631
6700
  fill2: 8,
6632
6701
  fill3: 12
6633
- }, Na = {
6702
+ }, Ia = {
6634
6703
  line: 10,
6635
6704
  line2: 16,
6636
6705
  line3: 26
6637
6706
  };
6638
- function Pa(e) {
6639
- let { surface: t, fg: n, accent: r, danger: i, warning: a, info: o, secondary: s, nav: c } = e.colors, l = Da(t), u = l ? ka(t, "#ffffff", .6) : ka(t, "#ffffff", .075), d = l ? "#ffffff" : ka(t, "#ffffff", .13), f = l ? .12 : .45, p = (e, t) => `color-mix(in oklab, ${e} ${t}%, transparent)`;
6707
+ function La(e) {
6708
+ let { surface: t, fg: n, accent: r, danger: i, warning: a, info: o, secondary: s, nav: c } = e.colors, l = Aa(t), u = l ? Ma(t, "#ffffff", .6) : Ma(t, "#ffffff", .075), d = l ? "#ffffff" : Ma(t, "#ffffff", .13), f = l ? .12 : .45, p = (e, t) => `color-mix(in oklab, ${e} ${t}%, transparent)`;
6640
6709
  return {
6641
6710
  "--color-surface": t,
6642
6711
  "--color-surface-1": u,
@@ -6644,36 +6713,36 @@ function Pa(e) {
6644
6713
  "--color-surface-el": u,
6645
6714
  "--color-nav": c ?? u,
6646
6715
  "--color-fg": n,
6647
- "--color-fg-2": p(n, ja.fg2),
6648
- "--color-fg-3": p(n, ja.fg3),
6649
- "--color-fg-4": p(n, ja.fg4),
6650
- "--color-fill": p(n, Ma.fill),
6651
- "--color-fill-2": p(n, Ma.fill2),
6652
- "--color-fill-3": p(n, Ma.fill3),
6653
- "--color-line": p(n, Na.line),
6654
- "--color-line-2": p(n, Na.line2),
6655
- "--color-line-3": p(n, Na.line3),
6716
+ "--color-fg-2": p(n, Pa.fg2),
6717
+ "--color-fg-3": p(n, Pa.fg3),
6718
+ "--color-fg-4": p(n, Pa.fg4),
6719
+ "--color-fill": p(n, Fa.fill),
6720
+ "--color-fill-2": p(n, Fa.fill2),
6721
+ "--color-fill-3": p(n, Fa.fill3),
6722
+ "--color-line": p(n, Ia.line),
6723
+ "--color-line-2": p(n, Ia.line2),
6724
+ "--color-line-3": p(n, Ia.line3),
6656
6725
  "--color-accent": r,
6657
6726
  "--color-danger": i,
6658
6727
  "--color-warning": a,
6659
6728
  "--color-info": o,
6660
6729
  "--color-secondary": s,
6661
- "--color-on-accent": Oa(r),
6730
+ "--color-on-accent": ja(r),
6662
6731
  "--color-knob": l ? "#ffffff" : n,
6663
6732
  "--edge-light": l ? "rgb(255 255 255 / 0.9)" : "rgb(255 255 255 / 0.08)",
6664
6733
  "--edge-dark": l ? "rgb(0 0 0 / 0.16)" : "rgb(0 0 0 / 0.55)",
6665
6734
  "--edge-ambient": l ? "rgb(0 0 0 / 0.08)" : "rgb(0 0 0 / 0.35)",
6666
6735
  "--shadow-raised": `0 8px 24px rgb(0 0 0 / ${f})`,
6667
6736
  "--shadow-sheet": `0 -12px 40px rgb(0 0 0 / ${f + .1})`,
6668
- ...Object.fromEntries(Object.entries(Aa[e.radius ?? "default"]).map(([e, t]) => [`--radius-${e}`, t]))
6737
+ ...Object.fromEntries(Object.entries(Na[e.radius ?? "default"]).map(([e, t]) => [`--radius-${e}`, t]))
6669
6738
  };
6670
6739
  }
6671
- function Fa(e, t = document.documentElement) {
6672
- let n = Pa(e);
6740
+ function Ra(e, t = document.documentElement) {
6741
+ let n = La(e);
6673
6742
  for (let [e, r] of Object.entries(n)) t.style.setProperty(e, r);
6674
- t.style.colorScheme = Da(e.colors.surface) ? "light" : "dark", t.dataset.theme = Da(e.colors.surface) ? "light" : "dark", t.dataset.density = e.density ?? "default";
6743
+ t.style.colorScheme = Aa(e.colors.surface) ? "light" : "dark", t.dataset.theme = Aa(e.colors.surface) ? "light" : "dark", t.dataset.density = e.density ?? "default";
6675
6744
  }
6676
- var Ia = [
6745
+ var za = [
6677
6746
  {
6678
6747
  id: "midnight",
6679
6748
  name: "Midnight",
@@ -6752,29 +6821,29 @@ var Ia = [
6752
6821
  secondary: "#e879f9"
6753
6822
  }
6754
6823
  }
6755
- ], La = Ia[0], Ra = "crisp.theme", za = r(null);
6756
- function Ba() {
6757
- let e = c(za);
6824
+ ], Ba = za[0], Va = "crisp.theme", Ha = r(null);
6825
+ function Ua() {
6826
+ let e = c(Ha);
6758
6827
  if (!e) throw Error("useTheme must be used inside <ThemeProvider>");
6759
6828
  return e;
6760
6829
  }
6761
- function Va() {
6762
- if (typeof localStorage > "u") return La;
6830
+ function Wa() {
6831
+ if (typeof localStorage > "u") return Ba;
6763
6832
  try {
6764
- let e = localStorage.getItem(Ra);
6765
- if (!e) return La;
6833
+ let e = localStorage.getItem(Va);
6834
+ if (!e) return Ba;
6766
6835
  let t = JSON.parse(e);
6767
- return !t?.colors?.surface || !t.colors.fg ? La : t;
6836
+ return !t?.colors?.surface || !t.colors.fg ? Ba : t;
6768
6837
  } catch {
6769
- return La;
6838
+ return Ba;
6770
6839
  }
6771
6840
  }
6772
- function Ha({ children: e, initial: t }) {
6773
- let [n, r] = m(() => t ?? Va());
6774
- m(() => (typeof document < "u" && Fa(t ?? Va()), null)), l(() => {
6775
- Fa(n);
6841
+ function Ga({ children: e, initial: t }) {
6842
+ let [n, r] = m(() => t ?? Wa());
6843
+ m(() => (typeof document < "u" && Ra(t ?? Wa()), null)), l(() => {
6844
+ Ra(n);
6776
6845
  try {
6777
- localStorage.setItem(Ra, JSON.stringify(n));
6846
+ localStorage.setItem(Va, JSON.stringify(n));
6778
6847
  } catch {}
6779
6848
  }, [n]);
6780
6849
  let i = s((e, t) => {
@@ -6799,12 +6868,12 @@ function Ha({ children: e, initial: t }) {
6799
6868
  }));
6800
6869
  }, []), c = f(() => ({
6801
6870
  theme: n,
6802
- presets: Ia,
6871
+ presets: za,
6803
6872
  setTheme: r,
6804
6873
  setColor: i,
6805
6874
  setRadius: a,
6806
6875
  setDensity: o,
6807
- reset: () => r(La),
6876
+ reset: () => r(Ba),
6808
6877
  isCustom: n.id === "custom"
6809
6878
  }), [
6810
6879
  n,
@@ -6812,14 +6881,14 @@ function Ha({ children: e, initial: t }) {
6812
6881
  a,
6813
6882
  o
6814
6883
  ]);
6815
- return /* @__PURE__ */ H(za.Provider, {
6884
+ return /* @__PURE__ */ H(Ha.Provider, {
6816
6885
  value: c,
6817
6886
  children: e
6818
6887
  });
6819
6888
  }
6820
6889
  //#endregion
6821
6890
  //#region src/components/ThemeEditor.tsx
6822
- var Ua = (e) => [
6891
+ var Ka = (e) => [
6823
6892
  {
6824
6893
  key: "surface",
6825
6894
  label: e.themeEditorSurface,
@@ -6855,7 +6924,7 @@ var Ua = (e) => [
6855
6924
  label: e.themeEditorSecondary,
6856
6925
  hint: e.themeEditorSecondaryHint
6857
6926
  }
6858
- ], Wa = [
6927
+ ], qa = [
6859
6928
  {
6860
6929
  var: "--color-surface-1",
6861
6930
  label: "surface-1"
@@ -6905,9 +6974,9 @@ var Ua = (e) => [
6905
6974
  label: "on-accent"
6906
6975
  }
6907
6976
  ];
6908
- function Ga({ ratio: e, need: t = 4.5, label: n }) {
6977
+ function Ja({ ratio: e, need: t = 4.5, label: n }) {
6909
6978
  let { strings: r } = K(), i = e >= t;
6910
- return /* @__PURE__ */ H(X, {
6979
+ return /* @__PURE__ */ H(Ft, {
6911
6980
  content: r.themeEditorContrast(n, e.toFixed(2), t),
6912
6981
  children: /* @__PURE__ */ U("span", {
6913
6982
  className: W("inline-flex h-6 items-center gap-1 rounded-full border px-2 text-2xs font-medium tabular-nums", i ? "border-accent/25 bg-accent/12 text-accent" : "border-danger/25 bg-danger/12 text-danger"),
@@ -6920,13 +6989,13 @@ function Ga({ ratio: e, need: t = 4.5, label: n }) {
6920
6989
  })
6921
6990
  });
6922
6991
  }
6923
- function Ka({ className: e }) {
6924
- let { strings: t } = K(), { theme: n, presets: r, setTheme: i, setColor: a, setRadius: o, setDensity: s, reset: c, isCustom: l } = Ba(), { surface: u, fg: d, accent: p } = n.colors, m = f(() => {
6925
- let e = Ea(d, u);
6992
+ function Ya({ className: e }) {
6993
+ let { strings: t } = K(), { theme: n, presets: r, setTheme: i, setColor: a, setRadius: o, setDensity: s, reset: c, isCustom: l } = Ua(), { surface: u, fg: d, accent: p } = n.colors, m = f(() => {
6994
+ let e = ka(d, u);
6926
6995
  return {
6927
6996
  body: e,
6928
6997
  muted: (e + 1) / 2,
6929
- accent: Ea(p, u)
6998
+ accent: ka(p, u)
6930
6999
  };
6931
7000
  }, [
6932
7001
  d,
@@ -6939,7 +7008,7 @@ function Ka({ className: e }) {
6939
7008
  /* @__PURE__ */ U("div", {
6940
7009
  className: "flex flex-wrap items-center gap-2",
6941
7010
  children: [
6942
- /* @__PURE__ */ H(ia, {
7011
+ /* @__PURE__ */ H(sa, {
6943
7012
  "aria-label": t.themeEditorPreset,
6944
7013
  size: "sm",
6945
7014
  value: l ? "custom" : n.id,
@@ -6956,7 +7025,7 @@ function Ka({ className: e }) {
6956
7025
  }] : []]
6957
7026
  }),
6958
7027
  /* @__PURE__ */ H("span", { className: "flex-1" }),
6959
- /* @__PURE__ */ H(ia, {
7028
+ /* @__PURE__ */ H(sa, {
6960
7029
  "aria-label": t.themeEditorDensity,
6961
7030
  size: "sm",
6962
7031
  value: n.density ?? "default",
@@ -6969,7 +7038,7 @@ function Ka({ className: e }) {
6969
7038
  label: t.themeEditorDensityCompact
6970
7039
  }]
6971
7040
  }),
6972
- /* @__PURE__ */ H(ia, {
7041
+ /* @__PURE__ */ H(sa, {
6973
7042
  "aria-label": t.themeEditorRadius,
6974
7043
  size: "sm",
6975
7044
  value: n.radius ?? "default",
@@ -6989,7 +7058,7 @@ function Ka({ className: e }) {
6989
7058
  }
6990
7059
  ]
6991
7060
  }),
6992
- /* @__PURE__ */ H(Q, {
7061
+ /* @__PURE__ */ H(Z, {
6993
7062
  size: "sm",
6994
7063
  variant: "ghost",
6995
7064
  leading: /* @__PURE__ */ H(Se, { size: 16 }),
@@ -7000,7 +7069,7 @@ function Ka({ className: e }) {
7000
7069
  }),
7001
7070
  /* @__PURE__ */ H("div", {
7002
7071
  className: "grid gap-3 sm:grid-cols-2 lg:grid-cols-3",
7003
- children: Ua(t).map((e) => /* @__PURE__ */ U("div", {
7072
+ children: Ka(t).map((e) => /* @__PURE__ */ U("div", {
7004
7073
  className: "space-y-1.5",
7005
7074
  children: [
7006
7075
  /* @__PURE__ */ U("div", {
@@ -7013,7 +7082,7 @@ function Ka({ className: e }) {
7013
7082
  children: n.colors[e.key]
7014
7083
  })]
7015
7084
  }),
7016
- /* @__PURE__ */ H(ar, {
7085
+ /* @__PURE__ */ H(or, {
7017
7086
  value: n.colors[e.key] ?? "#000000",
7018
7087
  onChange: (t) => a(e.key, t),
7019
7088
  className: "w-full"
@@ -7028,16 +7097,16 @@ function Ka({ className: e }) {
7028
7097
  /* @__PURE__ */ U("div", {
7029
7098
  className: "flex flex-wrap items-center gap-2",
7030
7099
  children: [
7031
- /* @__PURE__ */ H(Ga, {
7100
+ /* @__PURE__ */ H(Ja, {
7032
7101
  ratio: m.body,
7033
7102
  label: t.themeEditorBody
7034
7103
  }),
7035
- /* @__PURE__ */ H(Ga, {
7104
+ /* @__PURE__ */ H(Ja, {
7036
7105
  ratio: m.muted,
7037
7106
  need: 4.5,
7038
7107
  label: t.themeEditorMuted
7039
7108
  }),
7040
- /* @__PURE__ */ H(Ga, {
7109
+ /* @__PURE__ */ H(Ja, {
7041
7110
  ratio: m.accent,
7042
7111
  need: 3,
7043
7112
  label: t.themeEditorAccent
@@ -7057,7 +7126,7 @@ function Ka({ className: e }) {
7057
7126
  }),
7058
7127
  /* @__PURE__ */ H("div", {
7059
7128
  className: "flex flex-wrap gap-2 pt-1",
7060
- children: Wa.map((e) => /* @__PURE__ */ U("div", {
7129
+ children: qa.map((e) => /* @__PURE__ */ U("div", {
7061
7130
  className: "flex items-center gap-2 rounded-lg border border-line bg-fill px-2 py-1.5",
7062
7131
  children: [/* @__PURE__ */ H("span", {
7063
7132
  className: "h-5 w-5 shrink-0 rounded-md ring-1 ring-inset ring-line-2",
@@ -7075,7 +7144,7 @@ function Ka({ className: e }) {
7075
7144
  }
7076
7145
  //#endregion
7077
7146
  //#region src/components/Timeline.tsx
7078
- var qa = {
7147
+ var Xa = {
7079
7148
  neutral: "border-line-3 bg-fill-2 text-fg-3",
7080
7149
  accent: "border-accent/45 bg-accent/18 text-accent",
7081
7150
  info: "border-info/40 bg-info/15 text-info",
@@ -7083,7 +7152,7 @@ var qa = {
7083
7152
  danger: "border-danger/40 bg-danger/15 text-danger",
7084
7153
  secondary: "border-secondary/40 bg-secondary/15 text-secondary"
7085
7154
  };
7086
- function Ja({ items: e, className: t }) {
7155
+ function Za({ items: e, className: t }) {
7087
7156
  return /* @__PURE__ */ H("ol", {
7088
7157
  className: W("relative", t),
7089
7158
  children: e.map((t, n) => /* @__PURE__ */ U("li", {
@@ -7094,7 +7163,7 @@ function Ja({ items: e, className: t }) {
7094
7163
  className: "absolute left-3.5 top-8 h-[calc(100%-2rem)] w-px bg-line"
7095
7164
  }),
7096
7165
  /* @__PURE__ */ U("span", {
7097
- className: W("relative z-10 flex h-7 w-7 shrink-0 items-center justify-center rounded-full border", qa[t.tone ?? "neutral"]),
7166
+ className: W("relative z-10 flex h-7 w-7 shrink-0 items-center justify-center rounded-full border", Xa[t.tone ?? "neutral"]),
7098
7167
  children: [t.active && /* @__PURE__ */ H("span", {
7099
7168
  "aria-hidden": "true",
7100
7169
  className: "absolute inset-0 animate-ping rounded-full bg-current opacity-25 motion-reduce:hidden"
@@ -7122,7 +7191,7 @@ function Ja({ items: e, className: t }) {
7122
7191
  }
7123
7192
  //#endregion
7124
7193
  //#region src/components/TitleBar.tsx
7125
- function Ya({ title: e, platform: t = "linux", onMinimize: n, onMaximize: r, onClose: i, children: a, className: o }) {
7194
+ function Qa({ title: e, platform: t = "linux", onMinimize: n, onMaximize: r, onClose: i, children: a, className: o }) {
7126
7195
  let { strings: s } = K(), c = t === "macos";
7127
7196
  return /* @__PURE__ */ U("div", {
7128
7197
  "data-tauri-drag-region": !0,
@@ -7168,7 +7237,7 @@ function Ya({ title: e, platform: t = "linux", onMinimize: n, onMaximize: r, onC
7168
7237
  }
7169
7238
  //#endregion
7170
7239
  //#region src/components/Toast.tsx
7171
- var Xa = {
7240
+ var $a = {
7172
7241
  info: /* @__PURE__ */ H(R, {
7173
7242
  size: 16,
7174
7243
  className: "text-info"
@@ -7185,24 +7254,24 @@ var Xa = {
7185
7254
  size: 16,
7186
7255
  className: "text-danger"
7187
7256
  })
7188
- }, Za = {
7257
+ }, eo = {
7189
7258
  info: "bg-info",
7190
7259
  success: "bg-accent",
7191
7260
  warning: "bg-warning",
7192
7261
  error: "bg-danger"
7193
- }, Qa = "pointer-events-auto relative flex w-full items-start gap-3 overflow-hidden rounded-xl border border-line bg-surface-2 py-3 pl-4 pr-3 shadow-raised";
7194
- function $a({ tone: e, title: t, description: n, action: r, secondary: i, onDismiss: a }) {
7262
+ }, to = "pointer-events-auto relative flex w-full items-start gap-3 overflow-hidden rounded-xl border border-line bg-surface-2 py-3 pl-4 pr-3 shadow-raised";
7263
+ function no({ tone: e, title: t, description: n, action: r, secondary: i, onDismiss: a }) {
7195
7264
  let { strings: o } = K(), s = (e) => (t) => {
7196
7265
  t.preventDefault(), t.stopPropagation(), e(), a();
7197
7266
  };
7198
7267
  return /* @__PURE__ */ U(V, { children: [
7199
7268
  /* @__PURE__ */ H("span", {
7200
7269
  "aria-hidden": "true",
7201
- className: W("absolute inset-y-0 left-0 w-0.5", Za[e])
7270
+ className: W("absolute inset-y-0 left-0 w-0.5", eo[e])
7202
7271
  }),
7203
7272
  /* @__PURE__ */ H("span", {
7204
7273
  className: "mt-0.5 shrink-0",
7205
- children: Xa[e]
7274
+ children: $a[e]
7206
7275
  }),
7207
7276
  /* @__PURE__ */ U("div", {
7208
7277
  className: "min-w-0 flex-1",
@@ -7245,10 +7314,10 @@ function $a({ tone: e, title: t, description: n, action: r, secondary: i, onDism
7245
7314
  })
7246
7315
  ] });
7247
7316
  }
7248
- function eo(e, t, n, r) {
7317
+ function ro(e, t, n, r) {
7249
7318
  return Qe.custom((i) => /* @__PURE__ */ H("div", {
7250
- className: Qa,
7251
- children: /* @__PURE__ */ H($a, {
7319
+ className: to,
7320
+ children: /* @__PURE__ */ H(no, {
7252
7321
  tone: e,
7253
7322
  title: t,
7254
7323
  description: n,
@@ -7261,10 +7330,10 @@ function eo(e, t, n, r) {
7261
7330
  id: r?.id
7262
7331
  });
7263
7332
  }
7264
- function to({ id: e, title: t, description: n, progress: r, duration: i }) {
7333
+ function io({ id: e, title: t, description: n, progress: r, duration: i }) {
7265
7334
  let a = r === void 0 ? void 0 : Math.round(Math.min(1, Math.max(0, r)) * 100);
7266
7335
  return Qe.custom(() => /* @__PURE__ */ U("div", {
7267
- className: W(Qa, "items-center"),
7336
+ className: W(to, "items-center"),
7268
7337
  children: [
7269
7338
  /* @__PURE__ */ H("span", {
7270
7339
  "aria-hidden": "true",
@@ -7313,16 +7382,16 @@ function to({ id: e, title: t, description: n, progress: r, duration: i }) {
7313
7382
  id: e
7314
7383
  });
7315
7384
  }
7316
- var no = {
7317
- info: (e, t, n) => eo("info", e, t, n),
7318
- success: (e, t, n) => eo("success", e, t, n),
7319
- warning: (e, t, n) => eo("warning", e, t, n),
7320
- error: (e, t, n) => eo("error", e, t, n),
7321
- progress: to,
7385
+ var ao = {
7386
+ info: (e, t, n) => ro("info", e, t, n),
7387
+ success: (e, t, n) => ro("success", e, t, n),
7388
+ warning: (e, t, n) => ro("warning", e, t, n),
7389
+ error: (e, t, n) => ro("error", e, t, n),
7390
+ progress: io,
7322
7391
  dismiss: (e) => Qe.dismiss(e),
7323
7392
  isVisible: (e) => Qe.getToasts().some((t) => t.id === e)
7324
7393
  };
7325
- function ro({ position: e = "bottom-center", bottomInset: t = 0 } = {}) {
7394
+ function oo({ position: e = "bottom-center", bottomInset: t = 0 } = {}) {
7326
7395
  return /* @__PURE__ */ H(Ze, {
7327
7396
  position: e,
7328
7397
  gap: 8,
@@ -7343,7 +7412,7 @@ function ro({ position: e = "bottom-center", bottomInset: t = 0 } = {}) {
7343
7412
  }
7344
7413
  //#endregion
7345
7414
  //#region src/components/ToggleGroup.tsx
7346
- function io({ options: e, value: t, onChange: n, min: r = 0, size: i = "md", className: a, ...o }) {
7415
+ function so({ options: e, value: t, onChange: n, min: r = 0, size: i = "md", className: a, ...o }) {
7347
7416
  let s = (e) => {
7348
7417
  if (e.disabled) return;
7349
7418
  let i = t.includes(e.value);
@@ -7374,7 +7443,7 @@ function io({ options: e, value: t, onChange: n, min: r = 0, size: i = "md", cla
7374
7443
  }
7375
7444
  //#endregion
7376
7445
  //#region src/components/Toolbar.tsx
7377
- function ao({ variant: e = "bar", className: t, children: n, ...r }) {
7446
+ function co({ variant: e = "bar", className: t, children: n, ...r }) {
7378
7447
  return /* @__PURE__ */ H("div", {
7379
7448
  role: "toolbar",
7380
7449
  "aria-label": r["aria-label"],
@@ -7388,13 +7457,13 @@ function ao({ variant: e = "bar", className: t, children: n, ...r }) {
7388
7457
  children: n
7389
7458
  });
7390
7459
  }
7391
- function oo() {
7460
+ function lo() {
7392
7461
  return /* @__PURE__ */ H("span", {
7393
7462
  "aria-hidden": "true",
7394
7463
  className: "mx-1 h-5 w-px shrink-0 bg-line"
7395
7464
  });
7396
7465
  }
7397
- function so({ children: e, className: t }) {
7466
+ function uo({ children: e, className: t }) {
7398
7467
  return /* @__PURE__ */ H("div", {
7399
7468
  className: W("flex items-center gap-0.5", t),
7400
7469
  children: e
@@ -7402,8 +7471,8 @@ function so({ children: e, className: t }) {
7402
7471
  }
7403
7472
  //#endregion
7404
7473
  //#region src/components/Tour.tsx
7405
- var co = 8;
7406
- function lo({ steps: e, open: t, onClose: n, onFinish: r, finishLabel: i }) {
7474
+ var fo = 8;
7475
+ function po({ steps: e, open: t, onClose: n, onFinish: r, finishLabel: i }) {
7407
7476
  let { strings: a } = K(), [o, c] = m(0), [u, f] = m(null), p = e[o];
7408
7477
  l(() => {
7409
7478
  t && c(0);
@@ -7458,8 +7527,8 @@ function lo({ steps: e, open: t, onClose: n, onFinish: r, finishLabel: i }) {
7458
7527
  layout: !0,
7459
7528
  transition: G.surface,
7460
7529
  style: {
7461
- top: u.top - co,
7462
- left: u.left - co,
7530
+ top: u.top - fo,
7531
+ left: u.left - fo,
7463
7532
  width: u.width + 16,
7464
7533
  height: u.height + 16
7465
7534
  },
@@ -7504,7 +7573,7 @@ function lo({ steps: e, open: t, onClose: n, onFinish: r, finishLabel: i }) {
7504
7573
  /* @__PURE__ */ U("div", {
7505
7574
  className: "mt-4 flex items-center gap-3",
7506
7575
  children: [
7507
- /* @__PURE__ */ H(ua, {
7576
+ /* @__PURE__ */ H(pa, {
7508
7577
  steps: e.map((e, t) => ({
7509
7578
  id: String(t),
7510
7579
  label: String(e.title)
@@ -7513,13 +7582,13 @@ function lo({ steps: e, open: t, onClose: n, onFinish: r, finishLabel: i }) {
7513
7582
  variant: "dots"
7514
7583
  }),
7515
7584
  /* @__PURE__ */ H("span", { className: "flex-1" }),
7516
- o > 0 && /* @__PURE__ */ H(Q, {
7585
+ o > 0 && /* @__PURE__ */ H(Z, {
7517
7586
  size: "sm",
7518
7587
  variant: "ghost",
7519
7588
  onClick: () => c((e) => e - 1),
7520
7589
  children: a.tourBack
7521
7590
  }),
7522
- /* @__PURE__ */ H(Q, {
7591
+ /* @__PURE__ */ H(Z, {
7523
7592
  size: "sm",
7524
7593
  variant: "primary",
7525
7594
  onClick: () => o === e.length - 1 ? h() : c((e) => e + 1),
@@ -7532,7 +7601,7 @@ function lo({ steps: e, open: t, onClose: n, onFinish: r, finishLabel: i }) {
7532
7601
  }
7533
7602
  //#endregion
7534
7603
  //#region src/components/Tree.tsx
7535
- function uo({ nodes: e, selectedId: t, onSelect: n, defaultExpanded: r = [], className: i }) {
7604
+ function mo({ nodes: e, selectedId: t, onSelect: n, defaultExpanded: r = [], className: i }) {
7536
7605
  let { strings: a } = K(), [o, s] = m(() => new Set(r)), c = (e) => s((t) => {
7537
7606
  let n = new Set(t);
7538
7607
  return n.has(e) ? n.delete(e) : n.add(e), n;
@@ -7590,7 +7659,7 @@ function uo({ nodes: e, selectedId: t, onSelect: n, defaultExpanded: r = [], cla
7590
7659
  }
7591
7660
  //#endregion
7592
7661
  //#region src/components/VirtualList.tsx
7593
- function fo({ items: e, children: t, estimateSize: n = 56, overscan: r = 8, itemKey: i, className: a, scrollRef: o, gap: s = 0 }) {
7662
+ function ho({ items: e, children: t, estimateSize: n = 56, overscan: r = 8, itemKey: i, className: a, scrollRef: o, gap: s = 0 }) {
7594
7663
  let c = p(null), [l, u] = m(0);
7595
7664
  d(() => {
7596
7665
  let e = c.current, t = o?.current;
@@ -7645,7 +7714,7 @@ function fo({ items: e, children: t, estimateSize: n = 56, overscan: r = 8, item
7645
7714
  }
7646
7715
  //#endregion
7647
7716
  //#region src/components/WindowControls.tsx
7648
- var po = [
7717
+ var go = [
7649
7718
  {
7650
7719
  dir: "North",
7651
7720
  className: "left-2 right-2 top-0 h-1 cursor-n-resize"
@@ -7679,8 +7748,8 @@ var po = [
7679
7748
  className: "bottom-0 right-0 h-2.5 w-2.5 cursor-se-resize"
7680
7749
  }
7681
7750
  ];
7682
- function mo({ onResizeStart: e, disabled: t }) {
7683
- return t ? null : /* @__PURE__ */ H(V, { children: po.map(({ dir: t, className: n }) => /* @__PURE__ */ H("div", {
7751
+ function _o({ onResizeStart: e, disabled: t }) {
7752
+ return t ? null : /* @__PURE__ */ H(V, { children: go.map(({ dir: t, className: n }) => /* @__PURE__ */ H("div", {
7684
7753
  "aria-hidden": "true",
7685
7754
  "data-tauri-drag-region": "false",
7686
7755
  onPointerDown: (n) => {
@@ -7691,14 +7760,14 @@ function mo({ onResizeStart: e, disabled: t }) {
7691
7760
  }
7692
7761
  //#endregion
7693
7762
  //#region src/components/ActionBar.tsx
7694
- function ho({ primary: e, secondary: t, onBack: n, backLabel: r, leading: i, pinned: a, className: o }) {
7763
+ function vo({ primary: e, secondary: t, onBack: n, backLabel: r, leading: i, pinned: a, className: o }) {
7695
7764
  let { strings: s } = K(), c = At(), l = a ?? c;
7696
7765
  return /* @__PURE__ */ U("div", {
7697
7766
  className: W("flex items-center gap-2", l ? "sticky bottom-0 z-20 border-t border-line bg-surface/90 px-4 pt-3 pb-[calc(var(--safe-bottom,0px)+0.75rem)] backdrop-blur-md" : "pt-8", o),
7698
7767
  children: [
7699
- n && !l && /* @__PURE__ */ H(Q, {
7768
+ n && !l && /* @__PURE__ */ H(Z, {
7700
7769
  variant: "ghost",
7701
- leading: /* @__PURE__ */ H(D, { size: Z.md }),
7770
+ leading: /* @__PURE__ */ H(D, { size: X.md }),
7702
7771
  onClick: n,
7703
7772
  children: r ?? s.actionBarBack
7704
7773
  }),
@@ -7711,7 +7780,7 @@ function ho({ primary: e, secondary: t, onBack: n, backLabel: r, leading: i, pin
7711
7780
  }
7712
7781
  //#endregion
7713
7782
  //#region src/components/ChoiceCard.tsx
7714
- var go = a(function({ selected: e, title: t, description: n, icon: r, meta: i, indicator: a = "radio", children: o, layout: s = "row", className: c, type: l = "button", ...u }, d) {
7783
+ var yo = a(function({ selected: e, title: t, description: n, icon: r, meta: i, indicator: a = "radio", children: o, layout: s = "row", className: c, type: l = "button", ...u }, d) {
7715
7784
  let f = a === "none" ? null : /* @__PURE__ */ H("span", {
7716
7785
  "aria-hidden": "true",
7717
7786
  className: W("flex h-5 w-5 shrink-0 items-center justify-center border transition-colors motion-instant", a === "radio" ? "rounded-full" : "rounded-md", e ? "border-accent bg-accent text-on-accent" : "border-line-3"),
@@ -7761,10 +7830,10 @@ var go = a(function({ selected: e, title: t, description: n, icon: r, meta: i, i
7761
7830
  })]
7762
7831
  });
7763
7832
  });
7764
- go.displayName = "ChoiceCard";
7833
+ yo.displayName = "ChoiceCard";
7765
7834
  //#endregion
7766
7835
  //#region src/components/Shelf.tsx
7767
- function _o({ children: e, itemClassName: t = "w-40", bleed: n = !0, className: r, ...i }) {
7836
+ function bo({ children: e, itemClassName: t = "w-40", bleed: n = !0, className: r, ...i }) {
7768
7837
  let { strings: a } = K(), o = p(null), [s, c] = m({
7769
7838
  start: !1,
7770
7839
  end: !1
@@ -7811,7 +7880,7 @@ function _o({ children: e, itemClassName: t = "w-40", bleed: n = !0, className:
7811
7880
  className: W("pointer-events-auto -ml-2 shadow-raised transition-opacity", s.start ? "opacity-0 group-hover/shelf:opacity-100" : "opacity-0"),
7812
7881
  onClick: () => u(-1),
7813
7882
  tabIndex: s.start ? 0 : -1,
7814
- children: /* @__PURE__ */ H(P, { size: Z.lg })
7883
+ children: /* @__PURE__ */ H(P, { size: X.lg })
7815
7884
  }), /* @__PURE__ */ H(q, {
7816
7885
  label: a.shelfForward,
7817
7886
  variant: "secondary",
@@ -7819,14 +7888,14 @@ function _o({ children: e, itemClassName: t = "w-40", bleed: n = !0, className:
7819
7888
  className: W("pointer-events-auto -mr-2 shadow-raised transition-opacity", s.end ? "opacity-0 group-hover/shelf:opacity-100" : "opacity-0"),
7820
7889
  onClick: () => u(1),
7821
7890
  tabIndex: s.end ? 0 : -1,
7822
- children: /* @__PURE__ */ H(F, { size: Z.lg })
7891
+ children: /* @__PURE__ */ H(F, { size: X.lg })
7823
7892
  })]
7824
7893
  })]
7825
7894
  });
7826
7895
  }
7827
7896
  //#endregion
7828
7897
  //#region src/components/Wizard.tsx
7829
- function vo(e, t = 0) {
7898
+ function xo(e, t = 0) {
7830
7899
  let [n, r] = m(t), i = (t) => Math.max(0, Math.min(e.length - 1, t));
7831
7900
  return {
7832
7901
  index: n,
@@ -7838,11 +7907,11 @@ function vo(e, t = 0) {
7838
7907
  goTo: (e) => r(i(e))
7839
7908
  };
7840
7909
  }
7841
- function yo({ steps: e, index: t, onStepClick: n, title: r, description: i, progress: a = "bar", className: o, children: s }) {
7910
+ function So({ steps: e, index: t, onStepClick: n, title: r, description: i, progress: a = "bar", className: o, children: s }) {
7842
7911
  let c = C(), [l, u] = m(t), d = t >= l ? 1 : -1;
7843
7912
  return l !== t && u(t), /* @__PURE__ */ U("div", {
7844
7913
  className: W("space-y-6", o),
7845
- children: [a !== "none" && /* @__PURE__ */ H(ua, {
7914
+ children: [a !== "none" && /* @__PURE__ */ H(pa, {
7846
7915
  steps: e,
7847
7916
  current: t,
7848
7917
  onStepClick: n,
@@ -7882,7 +7951,7 @@ function yo({ steps: e, index: t, onStepClick: n, title: r, description: i, prog
7882
7951
  }
7883
7952
  //#endregion
7884
7953
  //#region src/components/SecretInput.tsx
7885
- var bo = a(function({ value: e, onChange: t, status: n = { state: "idle" }, paste: r = !0, className: i, id: a, disabled: o, ...s }, c) {
7954
+ var Co = a(function({ value: e, onChange: t, status: n = { state: "idle" }, paste: r = !0, className: i, id: a, disabled: o, ...s }, c) {
7886
7955
  let { strings: l } = K(), u = J(), [d, f] = m(!1), p = r && typeof navigator < "u" && !!navigator.clipboard?.readText, h = async () => {
7887
7956
  try {
7888
7957
  let e = (await navigator.clipboard.readText()).trim();
@@ -7913,14 +7982,14 @@ var bo = a(function({ value: e, onChange: t, status: n = { state: "idle" }, past
7913
7982
  size: "sm",
7914
7983
  disabled: o,
7915
7984
  onClick: h,
7916
- children: /* @__PURE__ */ H(ie, { size: Z.sm })
7985
+ children: /* @__PURE__ */ H(ie, { size: X.sm })
7917
7986
  }),
7918
7987
  e && /* @__PURE__ */ H(q, {
7919
7988
  label: l.secretInputClear,
7920
7989
  size: "sm",
7921
7990
  disabled: o,
7922
7991
  onClick: () => t(""),
7923
- children: /* @__PURE__ */ H(B, { size: Z.sm })
7992
+ children: /* @__PURE__ */ H(B, { size: X.sm })
7924
7993
  }),
7925
7994
  /* @__PURE__ */ H(q, {
7926
7995
  label: d ? l.secretInputHide : l.secretInputShow,
@@ -7928,7 +7997,7 @@ var bo = a(function({ value: e, onChange: t, status: n = { state: "idle" }, past
7928
7997
  active: d,
7929
7998
  disabled: o,
7930
7999
  onClick: () => f((e) => !e),
7931
- children: H(d ? le : ce, { size: Z.sm })
8000
+ children: H(d ? le : ce, { size: X.sm })
7932
8001
  })
7933
8002
  ]
7934
8003
  })]
@@ -7937,16 +8006,16 @@ var bo = a(function({ value: e, onChange: t, status: n = { state: "idle" }, past
7937
8006
  className: W("mt-1.5 flex items-center gap-1.5 text-sm", n.state === "ok" ? "text-accent" : n.state === "error" ? "text-danger" : "text-fg-3"),
7938
8007
  children: [
7939
8008
  n.state === "checking" && /* @__PURE__ */ H("span", { className: "h-3.5 w-3.5 animate-spin rounded-full border-2 border-current border-t-transparent" }),
7940
- n.state === "ok" && /* @__PURE__ */ H(M, { size: Z.sm }),
7941
- n.state === "error" && /* @__PURE__ */ H(B, { size: Z.sm }),
8009
+ n.state === "ok" && /* @__PURE__ */ H(M, { size: X.sm }),
8010
+ n.state === "error" && /* @__PURE__ */ H(B, { size: X.sm }),
7942
8011
  n.state === "checking" ? l.secretInputChecking : n.state === "ok" ? n.message ?? l.secretInputConnected : n.message
7943
8012
  ]
7944
8013
  })] });
7945
8014
  });
7946
- bo.displayName = "SecretInput";
8015
+ Co.displayName = "SecretInput";
7947
8016
  //#endregion
7948
8017
  //#region src/components/ReorderableList.tsx
7949
- function xo({ items: e, onReorder: t, keyOf: n, children: r, axis: i = "y", handleOnly: a = !0, className: o, itemClassName: s, ...c }) {
8018
+ function wo({ items: e, onReorder: t, keyOf: n, children: r, axis: i = "y", handleOnly: a = !0, className: o, itemClassName: s, ...c }) {
7950
8019
  let l = (n, r) => {
7951
8020
  if (r < 0 || r >= e.length || n === r) return;
7952
8021
  let i = [...e], [a] = i.splice(n, 1);
@@ -7958,7 +8027,7 @@ function xo({ items: e, onReorder: t, keyOf: n, children: r, axis: i = "y", hand
7958
8027
  onReorder: t,
7959
8028
  "aria-label": c["aria-label"],
7960
8029
  className: W("flex", i === "y" ? "flex-col gap-2" : "flex-row gap-2", o),
7961
- children: e.map((t, o) => /* @__PURE__ */ H(So, {
8030
+ children: e.map((t, o) => /* @__PURE__ */ H(To, {
7962
8031
  item: t,
7963
8032
  index: o,
7964
8033
  count: e.length,
@@ -7970,7 +8039,7 @@ function xo({ items: e, onReorder: t, keyOf: n, children: r, axis: i = "y", hand
7970
8039
  }, n(t)))
7971
8040
  });
7972
8041
  }
7973
- function So({ item: e, index: t, count: n, handleOnly: r, axis: i, onMove: a, className: o, children: s }) {
8042
+ function To({ item: e, index: t, count: n, handleOnly: r, axis: i, onMove: a, className: o, children: s }) {
7974
8043
  let { strings: c } = K(), l = b(), u = C(), d = /* @__PURE__ */ H("button", {
7975
8044
  type: "button",
7976
8045
  "aria-label": c.reorderableHandle(t + 1, n),
@@ -7981,7 +8050,7 @@ function So({ item: e, index: t, count: n, handleOnly: r, axis: i, onMove: a, cl
7981
8050
  },
7982
8051
  onPointerDown: (e) => l.start(e),
7983
8052
  className: "tap-target flex h-8 w-6 shrink-0 cursor-grab touch-none items-center justify-center rounded-md text-fg-4 hover:bg-fill-2 hover:text-fg-2 active:cursor-grabbing",
7984
- children: /* @__PURE__ */ H(de, { size: Z.md })
8053
+ children: /* @__PURE__ */ H(de, { size: X.md })
7985
8054
  });
7986
8055
  return /* @__PURE__ */ H(_.Item, {
7987
8056
  value: e,
@@ -8000,21 +8069,21 @@ function So({ item: e, index: t, count: n, handleOnly: r, axis: i, onMove: a, cl
8000
8069
  }
8001
8070
  //#endregion
8002
8071
  //#region src/components/AvatarPicker.tsx
8003
- function Co({ value: e, onChange: t, name: n = "?", size: r = "xl", output: i = 512, crop: a = !0, disabled: o, className: s }) {
8072
+ function Eo({ value: e, onChange: t, name: n = "?", size: r = "xl", output: i = 512, crop: a = !0, disabled: o, className: s }) {
8004
8073
  let { strings: c } = K(), [l, u] = m(null), d = (e) => {
8005
8074
  let n = new FileReader();
8006
8075
  n.onload = () => a ? u(String(n.result)) : t(String(n.result)), n.readAsDataURL(e);
8007
8076
  };
8008
8077
  return /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ U("div", {
8009
8078
  className: W("relative w-fit", s),
8010
- children: [/* @__PURE__ */ H(Xr, {
8079
+ children: [/* @__PURE__ */ H($r, {
8011
8080
  accept: "image/*",
8012
8081
  disabled: o,
8013
8082
  onFiles: ([e]) => e && d(e),
8014
8083
  className: "rounded-full p-0",
8015
8084
  children: /* @__PURE__ */ U("div", {
8016
8085
  className: "relative",
8017
- children: [/* @__PURE__ */ H(Zt, {
8086
+ children: [/* @__PURE__ */ H(Qt, {
8018
8087
  src: e ?? void 0,
8019
8088
  name: n,
8020
8089
  size: r,
@@ -8022,7 +8091,7 @@ function Co({ value: e, onChange: t, name: n = "?", size: r = "xl", output: i =
8022
8091
  }), /* @__PURE__ */ H("span", {
8023
8092
  "aria-hidden": "true",
8024
8093
  className: "absolute -bottom-1 -right-1 flex h-9 w-9 items-center justify-center rounded-full border border-line-2 bg-surface-2 text-fg shadow-raised",
8025
- children: /* @__PURE__ */ H(j, { size: Z.md })
8094
+ children: /* @__PURE__ */ H(j, { size: X.md })
8026
8095
  })]
8027
8096
  })
8028
8097
  }), e && !o && /* @__PURE__ */ H("button", {
@@ -8030,9 +8099,9 @@ function Co({ value: e, onChange: t, name: n = "?", size: r = "xl", output: i =
8030
8099
  "aria-label": c.avatarPickerRemove,
8031
8100
  onClick: () => t(null),
8032
8101
  className: "absolute -left-1 -top-1 flex h-7 w-7 items-center justify-center rounded-full border border-line-2 bg-surface-2 text-fg-3 shadow-raised hover:text-danger",
8033
- children: /* @__PURE__ */ H(Oe, { size: Z.xs })
8102
+ children: /* @__PURE__ */ H(Oe, { size: X.xs })
8034
8103
  })]
8035
- }), /* @__PURE__ */ H(To, {
8104
+ }), /* @__PURE__ */ H(Do, {
8036
8105
  src: l,
8037
8106
  output: i,
8038
8107
  onClose: () => u(null),
@@ -8041,8 +8110,8 @@ function Co({ value: e, onChange: t, name: n = "?", size: r = "xl", output: i =
8041
8110
  }
8042
8111
  })] });
8043
8112
  }
8044
- var wo = 288;
8045
- function To({ src: e, output: t, onClose: n, onDone: r }) {
8113
+ var $ = 288;
8114
+ function Do({ src: e, output: t, onClose: n, onDone: r }) {
8046
8115
  let { strings: i } = K(), [a, o] = m(null), [s, c] = m(1), [u, d] = m({
8047
8116
  x: 0,
8048
8117
  y: 0
@@ -8060,12 +8129,12 @@ function To({ src: e, output: t, onClose: n, onDone: r }) {
8060
8129
  });
8061
8130
  }, t.src = e;
8062
8131
  }, [e]);
8063
- let h = (a ? Math.max(wo / a.width, wo / a.height) : 1) * s, g = (a?.width ?? 0) * h, _ = (a?.height ?? 0) * h, v = ((e) => ({
8064
- x: Math.min(Math.max(e.x, wo - g), 0),
8065
- y: Math.min(Math.max(e.y, wo - _), 0)
8132
+ let h = (a ? Math.max($ / a.width, $ / a.height) : 1) * s, g = (a?.width ?? 0) * h, _ = (a?.height ?? 0) * h, v = ((e) => ({
8133
+ x: Math.min(Math.max(e.x, $ - g), 0),
8134
+ y: Math.min(Math.max(e.y, $ - _), 0)
8066
8135
  }))({
8067
- x: u.x + (wo - g) / 2,
8068
- y: u.y + (wo - _) / 2
8136
+ x: u.x + ($ - g) / 2,
8137
+ y: u.y + ($ - _) / 2
8069
8138
  }), y = (e) => {
8070
8139
  f.current = {
8071
8140
  x: e.clientX,
@@ -8081,25 +8150,25 @@ function To({ src: e, output: t, onClose: n, onDone: r }) {
8081
8150
  }, x = () => {
8082
8151
  f.current = null;
8083
8152
  };
8084
- return /* @__PURE__ */ H(Lr, {
8153
+ return /* @__PURE__ */ H(Br, {
8085
8154
  open: !!e,
8086
8155
  onClose: n,
8087
8156
  title: i.avatarPickerTitle,
8088
8157
  description: i.avatarPickerDescription,
8089
8158
  footer: /* @__PURE__ */ U("div", {
8090
8159
  className: "flex justify-end gap-2",
8091
- children: [/* @__PURE__ */ H(Q, {
8160
+ children: [/* @__PURE__ */ H(Z, {
8092
8161
  variant: "ghost",
8093
8162
  onClick: n,
8094
8163
  children: i.avatarPickerCancel
8095
- }), /* @__PURE__ */ H(Q, {
8164
+ }), /* @__PURE__ */ H(Z, {
8096
8165
  variant: "primary",
8097
8166
  disabled: !a,
8098
8167
  onClick: () => {
8099
8168
  if (!a) return;
8100
8169
  let e = document.createElement("canvas");
8101
8170
  e.width = t, e.height = t;
8102
- let n = e.getContext("2d"), i = t / wo;
8171
+ let n = e.getContext("2d"), i = t / $;
8103
8172
  n.drawImage(a, v.x * i, v.y * i, g * i, _ * i), r(e.toDataURL("image/webp", .9));
8104
8173
  },
8105
8174
  children: i.avatarPickerUse
@@ -8114,8 +8183,8 @@ function To({ src: e, output: t, onClose: n, onDone: r }) {
8114
8183
  onPointerCancel: x,
8115
8184
  className: "relative cursor-grab touch-none select-none overflow-hidden rounded-2xl bg-black active:cursor-grabbing",
8116
8185
  style: {
8117
- width: wo,
8118
- height: wo
8186
+ width: $,
8187
+ height: $
8119
8188
  },
8120
8189
  children: [
8121
8190
  a && /* @__PURE__ */ H("img", {
@@ -8142,9 +8211,9 @@ function To({ src: e, output: t, onClose: n, onDone: r }) {
8142
8211
  }), /* @__PURE__ */ U("div", {
8143
8212
  className: "flex w-full items-center gap-3",
8144
8213
  children: [/* @__PURE__ */ H(Me, {
8145
- size: Z.md,
8214
+ size: X.md,
8146
8215
  className: "shrink-0 text-fg-3"
8147
- }), /* @__PURE__ */ H(sa, {
8216
+ }), /* @__PURE__ */ H(ua, {
8148
8217
  "aria-label": i.avatarPickerZoom,
8149
8218
  value: s,
8150
8219
  onChange: c,
@@ -8159,7 +8228,7 @@ function To({ src: e, output: t, onClose: n, onDone: r }) {
8159
8228
  }
8160
8229
  //#endregion
8161
8230
  //#region src/components/Page.tsx
8162
- function Eo({ footer: e, mainRef: t, padding: n = "default", contentClassName: r, className: i, children: a, ...o }) {
8231
+ function Oo({ footer: e, mainRef: t, padding: n = "default", contentClassName: r, className: i, children: a, ...o }) {
8163
8232
  let s = p(null);
8164
8233
  return d(() => {
8165
8234
  let e = s.current, t = e?.previousElementSibling;
@@ -8186,7 +8255,7 @@ function Eo({ footer: e, mainRef: t, padding: n = "default", contentClassName: r
8186
8255
  }
8187
8256
  //#endregion
8188
8257
  //#region src/components/ModelSelect.tsx
8189
- var Do = (e, t) => /* @__PURE__ */ U("span", {
8258
+ var ko = (e, t) => /* @__PURE__ */ U("span", {
8190
8259
  className: "flex items-center gap-1",
8191
8260
  children: [e.vision && /* @__PURE__ */ H(dt, {
8192
8261
  tone: "info",
@@ -8196,23 +8265,23 @@ var Do = (e, t) => /* @__PURE__ */ U("span", {
8196
8265
  children: t.modelSelectAudio
8197
8266
  })]
8198
8267
  });
8199
- function Oo({ models: e, value: t, onChange: n, placeholder: r, defaultId: i, footer: a, disabled: o, id: s, className: c, ...l }) {
8268
+ function Ao({ models: e, value: t, onChange: n, placeholder: r, defaultId: i, footer: a, disabled: o, id: s, className: c, ...l }) {
8200
8269
  let { strings: u } = K(), d = At(), [p, h] = m(!1), g = e.find((e) => e.id === t) ?? null, _ = f(() => e.map((e) => ({
8201
8270
  value: e.id,
8202
8271
  label: e.name,
8203
8272
  description: e.meta,
8204
8273
  group: e.provider,
8205
- icon: e.local ? /* @__PURE__ */ H(I, { size: Z.md }) : /* @__PURE__ */ H(ue, { size: Z.md }),
8274
+ icon: e.local ? /* @__PURE__ */ H(I, { size: X.md }) : /* @__PURE__ */ H(ue, { size: X.md }),
8206
8275
  meta: /* @__PURE__ */ U("span", {
8207
8276
  className: "flex items-center gap-1",
8208
- children: [Do(e, u), e.id === i && /* @__PURE__ */ H(dt, {
8277
+ children: [ko(e, u), e.id === i && /* @__PURE__ */ H(dt, {
8209
8278
  tone: "accent",
8210
8279
  dot: !0,
8211
8280
  children: u.modelSelectDefault
8212
8281
  })]
8213
8282
  })
8214
8283
  })), [e, i]);
8215
- if (!d) return /* @__PURE__ */ H(oa, {
8284
+ if (!d) return /* @__PURE__ */ H(la, {
8216
8285
  id: s,
8217
8286
  options: _,
8218
8287
  value: t,
@@ -8234,7 +8303,7 @@ function Oo({ models: e, value: t, onChange: n, placeholder: r, defaultId: i, fo
8234
8303
  children: [
8235
8304
  /* @__PURE__ */ H("span", {
8236
8305
  className: "shrink-0 text-fg-3",
8237
- children: g?.local ? /* @__PURE__ */ H(I, { size: Z.md }) : /* @__PURE__ */ H(ue, { size: Z.md })
8306
+ children: g?.local ? /* @__PURE__ */ H(I, { size: X.md }) : /* @__PURE__ */ H(ue, { size: X.md })
8238
8307
  }),
8239
8308
  /* @__PURE__ */ H("span", {
8240
8309
  className: W("min-w-0 flex-1 truncate", !g && "text-fg-4"),
@@ -8242,31 +8311,31 @@ function Oo({ models: e, value: t, onChange: n, placeholder: r, defaultId: i, fo
8242
8311
  }),
8243
8312
  g && /* @__PURE__ */ H("span", {
8244
8313
  className: "hidden @sm:flex",
8245
- children: Do(g, u)
8314
+ children: ko(g, u)
8246
8315
  }),
8247
8316
  /* @__PURE__ */ H(N, {
8248
- size: Z.md,
8317
+ size: X.md,
8249
8318
  className: "shrink-0 text-fg-3"
8250
8319
  })
8251
8320
  ]
8252
- }), /* @__PURE__ */ H(Er, {
8321
+ }), /* @__PURE__ */ H(Dr, {
8253
8322
  open: p,
8254
8323
  onClose: () => h(!1),
8255
8324
  title: l["aria-label"] ?? u.modelSelectTitle,
8256
8325
  detents: [.6, .92],
8257
8326
  children: /* @__PURE__ */ U("div", {
8258
8327
  className: "space-y-5",
8259
- children: [v.map((r) => /* @__PURE__ */ H(di, {
8328
+ children: [v.map((r) => /* @__PURE__ */ H(mi, {
8260
8329
  label: r,
8261
- children: e.filter((e) => e.provider === r).map((e) => /* @__PURE__ */ H(gi, {
8262
- icon: e.local ? /* @__PURE__ */ H(I, { size: Z.lg }) : /* @__PURE__ */ H(ue, { size: Z.lg }),
8330
+ children: e.filter((e) => e.provider === r).map((e) => /* @__PURE__ */ H(yi, {
8331
+ icon: e.local ? /* @__PURE__ */ H(I, { size: X.lg }) : /* @__PURE__ */ H(ue, { size: X.lg }),
8263
8332
  tone: e.local ? "accent" : "info",
8264
8333
  title: e.name,
8265
8334
  description: /* @__PURE__ */ U("span", {
8266
8335
  className: "flex flex-wrap items-center gap-1.5",
8267
8336
  children: [
8268
8337
  e.meta,
8269
- Do(e, u),
8338
+ ko(e, u),
8270
8339
  e.id === i && /* @__PURE__ */ H(dt, {
8271
8340
  tone: "accent",
8272
8341
  dot: !0,
@@ -8276,7 +8345,7 @@ function Oo({ models: e, value: t, onChange: n, placeholder: r, defaultId: i, fo
8276
8345
  }),
8277
8346
  chevron: !1,
8278
8347
  trailing: e.id === t ? /* @__PURE__ */ H(M, {
8279
- size: Z.md,
8348
+ size: X.md,
8280
8349
  className: "text-accent"
8281
8350
  }) : void 0,
8282
8351
  onClick: () => {
@@ -8289,7 +8358,7 @@ function Oo({ models: e, value: t, onChange: n, placeholder: r, defaultId: i, fo
8289
8358
  }
8290
8359
  //#endregion
8291
8360
  //#region src/components/Citation.tsx
8292
- function ko({ index: e, title: t, url: n, snippet: r, domain: i, favicon: a, className: o }) {
8361
+ function jo({ index: e, title: t, url: n, snippet: r, domain: i, favicon: a, className: o }) {
8293
8362
  let { strings: s } = K(), c = At(), [l, u] = m(!1), d = i ?? (n ? (() => {
8294
8363
  try {
8295
8364
  return new URL(n).hostname.replace(/^www\./, "");
@@ -8313,7 +8382,7 @@ function ko({ index: e, title: t, url: n, snippet: r, domain: i, favicon: a, cla
8313
8382
  src: a,
8314
8383
  alt: "",
8315
8384
  className: "h-4 w-4 rounded-sm object-contain"
8316
- }) : /* @__PURE__ */ H(ue, { size: Z.xs })
8385
+ }) : /* @__PURE__ */ H(ue, { size: X.xs })
8317
8386
  }), /* @__PURE__ */ U("div", {
8318
8387
  className: "min-w-0 flex-1",
8319
8388
  children: [/* @__PURE__ */ H("p", {
@@ -8342,7 +8411,7 @@ function ko({ index: e, title: t, url: n, snippet: r, domain: i, favicon: a, cla
8342
8411
  })
8343
8412
  ]
8344
8413
  });
8345
- return c ? /* @__PURE__ */ U(V, { children: [f, /* @__PURE__ */ H(Er, {
8414
+ return c ? /* @__PURE__ */ U(V, { children: [f, /* @__PURE__ */ H(Dr, {
8346
8415
  open: l,
8347
8416
  onClose: () => u(!1),
8348
8417
  title: `[${e}] ${d ?? "Source"}`,
@@ -8350,7 +8419,7 @@ function ko({ index: e, title: t, url: n, snippet: r, domain: i, favicon: a, cla
8350
8419
  className: "pb-2",
8351
8420
  children: p
8352
8421
  })
8353
- })] }) : /* @__PURE__ */ H(oi, {
8422
+ })] }) : /* @__PURE__ */ H(li, {
8354
8423
  content: /* @__PURE__ */ H("div", {
8355
8424
  className: "w-72",
8356
8425
  children: p
@@ -8358,10 +8427,10 @@ function ko({ index: e, title: t, url: n, snippet: r, domain: i, favicon: a, cla
8358
8427
  children: f
8359
8428
  });
8360
8429
  }
8361
- ko.displayName = "Citation";
8430
+ jo.displayName = "Citation";
8362
8431
  //#endregion
8363
8432
  //#region src/components/FeedbackAction.tsx
8364
- function Ao({ sentiment: e = null, onLike: t, onDislike: n, onCopy: r, copyText: i, onRetry: a, children: o, className: s }) {
8433
+ function Mo({ sentiment: e = null, onLike: t, onDislike: n, onCopy: r, copyText: i, onRetry: a, children: o, className: s }) {
8365
8434
  let { strings: c } = K(), [l, u] = m(!1);
8366
8435
  return /* @__PURE__ */ U("div", {
8367
8436
  className: W("inline-flex items-center gap-1 text-fg-3", s),
@@ -8374,7 +8443,7 @@ function Ao({ sentiment: e = null, onLike: t, onDislike: n, onCopy: r, copyText:
8374
8443
  onClick: t,
8375
8444
  className: W(e === "like" && "text-accent bg-accent/15 hover:bg-accent/20"),
8376
8445
  children: /* @__PURE__ */ H(De, {
8377
- size: Z.xs,
8446
+ size: X.xs,
8378
8447
  className: e === "like" ? "fill-current" : void 0
8379
8448
  })
8380
8449
  }),
@@ -8386,7 +8455,7 @@ function Ao({ sentiment: e = null, onLike: t, onDislike: n, onCopy: r, copyText:
8386
8455
  onClick: n,
8387
8456
  className: W(e === "dislike" && "text-danger bg-danger/15 hover:bg-danger/20"),
8388
8457
  children: /* @__PURE__ */ H(Ee, {
8389
- size: Z.xs,
8458
+ size: X.xs,
8390
8459
  className: e === "dislike" ? "fill-current" : void 0
8391
8460
  })
8392
8461
  }),
@@ -8404,40 +8473,40 @@ function Ao({ sentiment: e = null, onLike: t, onDislike: n, onCopy: r, copyText:
8404
8473
  } catch {}
8405
8474
  },
8406
8475
  className: W(l && "text-accent"),
8407
- children: H(l ? M : ae, { size: Z.xs })
8476
+ children: H(l ? M : ae, { size: X.xs })
8408
8477
  }),
8409
8478
  a && /* @__PURE__ */ H(q, {
8410
8479
  size: "sm",
8411
8480
  variant: "ghost",
8412
8481
  label: c.feedbackRetry,
8413
8482
  onClick: a,
8414
- children: /* @__PURE__ */ H(Se, { size: Z.xs })
8483
+ children: /* @__PURE__ */ H(Se, { size: X.xs })
8415
8484
  }),
8416
8485
  o
8417
8486
  ]
8418
8487
  });
8419
8488
  }
8420
- Ao.displayName = "FeedbackAction";
8489
+ Mo.displayName = "FeedbackAction";
8421
8490
  //#endregion
8422
8491
  //#region src/components/PromptSuggestions.tsx
8423
- var jo = {
8492
+ var No = {
8424
8493
  1: "grid-cols-1",
8425
8494
  2: "grid-cols-1 @sm:grid-cols-2",
8426
8495
  3: "grid-cols-1 @sm:grid-cols-2 @lg:grid-cols-3",
8427
8496
  4: "grid-cols-1 @sm:grid-cols-2 @lg:grid-cols-4"
8428
8497
  };
8429
- function Mo({ prompts: e, onSelect: t, title: n, columns: r = 2, className: i }) {
8498
+ function Po({ prompts: e, onSelect: t, title: n, columns: r = 2, className: i }) {
8430
8499
  let { strings: a } = K(), o = n ?? /* @__PURE__ */ U("span", {
8431
8500
  className: "flex items-center gap-1.5 text-xs font-semibold uppercase tracking-wider text-fg-3",
8432
8501
  children: [/* @__PURE__ */ H(we, {
8433
- size: Z.xs,
8502
+ size: X.xs,
8434
8503
  className: "text-accent"
8435
8504
  }), /* @__PURE__ */ H("span", { children: a.promptSuggestionsTitle })]
8436
8505
  });
8437
8506
  return /* @__PURE__ */ U("div", {
8438
8507
  className: W("@container w-full space-y-3", i),
8439
8508
  children: [o && /* @__PURE__ */ H("div", { children: o }), /* @__PURE__ */ H("div", {
8440
- className: W("grid gap-2.5", jo[r]),
8509
+ className: W("grid gap-2.5", No[r]),
8441
8510
  children: e.map((e) => /* @__PURE__ */ U("button", {
8442
8511
  type: "button",
8443
8512
  onClick: () => t(e.prompt, e),
@@ -8446,7 +8515,7 @@ function Mo({ prompts: e, onSelect: t, title: n, columns: r = 2, className: i })
8446
8515
  className: "flex w-full items-center justify-between gap-2",
8447
8516
  children: [/* @__PURE__ */ H("span", {
8448
8517
  className: "flex h-7 w-7 items-center justify-center rounded-lg border border-line bg-surface-2 text-fg-2 transition-colors group-hover:border-accent/40 group-hover:text-accent",
8449
- children: e.icon ?? /* @__PURE__ */ H(we, { size: Z.sm })
8518
+ children: e.icon ?? /* @__PURE__ */ H(we, { size: X.sm })
8450
8519
  }), e.badge && /* @__PURE__ */ H(dt, {
8451
8520
  tone: "secondary",
8452
8521
  className: "shrink-0",
@@ -8466,10 +8535,10 @@ function Mo({ prompts: e, onSelect: t, title: n, columns: r = 2, className: i })
8466
8535
  })]
8467
8536
  });
8468
8537
  }
8469
- Mo.displayName = "PromptSuggestions";
8538
+ Po.displayName = "PromptSuggestions";
8470
8539
  //#endregion
8471
8540
  //#region src/components/OtpInput.tsx
8472
- var No = a(function({ length: e = 6, value: t = "", onChange: n, onComplete: r, type: i = "number", mask: a = !1, disabled: o = !1, autoFocus: c = !1, className: l, id: u }, d) {
8541
+ var Fo = a(function({ length: e = 6, value: t = "", onChange: n, onComplete: r, type: i = "number", mask: a = !1, disabled: o = !1, autoFocus: c = !1, className: l, id: u }, d) {
8473
8542
  let { strings: f } = K(), m = J(), h = p([]), g = Array.from({ length: e }, (e, n) => t[n] ?? ""), _ = s((t) => {
8474
8543
  let n = Math.max(0, Math.min(e - 1, t));
8475
8544
  h.current[n]?.focus(), h.current[n]?.select();
@@ -8529,39 +8598,39 @@ var No = a(function({ length: e = 6, value: t = "", onChange: n, onComplete: r,
8529
8598
  }, n))
8530
8599
  });
8531
8600
  });
8532
- No.displayName = "OtpInput";
8601
+ Fo.displayName = "OtpInput";
8533
8602
  //#endregion
8534
8603
  //#region src/layout/Box.tsx
8535
- var Po = a(function({ as: e, className: t, ...n }, r) {
8604
+ var Io = a(function({ as: e, className: t, ...n }, r) {
8536
8605
  return /* @__PURE__ */ H(e ?? "div", {
8537
8606
  ref: r,
8538
8607
  className: W(t),
8539
8608
  ...n
8540
8609
  });
8541
- }), Fo = a(function({ as: e, className: t, ...n }, r) {
8610
+ }), Lo = a(function({ as: e, className: t, ...n }, r) {
8542
8611
  return /* @__PURE__ */ H(e ?? "div", {
8543
8612
  ref: r,
8544
8613
  className: W("flex items-center justify-center", t),
8545
8614
  ...n
8546
8615
  });
8547
- }), Io = {
8616
+ }), Ro = {
8548
8617
  sm: "max-w-screen-sm",
8549
8618
  md: "max-w-screen-md",
8550
8619
  lg: "max-w-screen-lg",
8551
8620
  xl: "max-w-screen-xl",
8552
8621
  prose: "max-w-prose"
8553
- }, Lo = a(function({ as: e, size: t = "lg", flush: n, className: r, ...i }, a) {
8622
+ }, zo = a(function({ as: e, size: t = "lg", flush: n, className: r, ...i }, a) {
8554
8623
  return /* @__PURE__ */ H(e ?? "div", {
8555
8624
  ref: a,
8556
- className: W("mx-auto w-full", Io[t], !n && "px-4 sm:px-6", r),
8625
+ className: W("mx-auto w-full", Ro[t], !n && "px-4 sm:px-6", r),
8557
8626
  ...i
8558
8627
  });
8559
- }), Ro = {
8628
+ }), Bo = {
8560
8629
  none: "",
8561
8630
  sm: "my-2",
8562
8631
  md: "my-4",
8563
8632
  lg: "my-8"
8564
- }, zo = a(function({ orientation: e = "horizontal", label: t, spacing: n = "none", className: r, ...i }, a) {
8633
+ }, Vo = a(function({ orientation: e = "horizontal", label: t, spacing: n = "none", className: r, ...i }, a) {
8565
8634
  return e === "vertical" ? /* @__PURE__ */ H("div", {
8566
8635
  ref: a,
8567
8636
  role: "separator",
@@ -8571,7 +8640,7 @@ var Po = a(function({ as: e, className: t, ...n }, r) {
8571
8640
  }) : t ? /* @__PURE__ */ U("div", {
8572
8641
  ref: a,
8573
8642
  role: "separator",
8574
- className: W("flex items-center gap-3", Ro[n], r),
8643
+ className: W("flex items-center gap-3", Bo[n], r),
8575
8644
  ...i,
8576
8645
  children: [
8577
8646
  /* @__PURE__ */ H("span", { className: "h-px flex-1 bg-line" }),
@@ -8584,10 +8653,10 @@ var Po = a(function({ as: e, className: t, ...n }, r) {
8584
8653
  }) : /* @__PURE__ */ H("div", {
8585
8654
  ref: a,
8586
8655
  role: "separator",
8587
- className: W("h-px w-full bg-line", Ro[n], r),
8656
+ className: W("h-px w-full bg-line", Bo[n], r),
8588
8657
  ...i
8589
8658
  });
8590
- }), Bo = {
8659
+ }), Ho = {
8591
8660
  0: "gap-0",
8592
8661
  .5: "gap-0.5",
8593
8662
  1: "gap-1",
@@ -8602,31 +8671,31 @@ var Po = a(function({ as: e, className: t, ...n }, r) {
8602
8671
  10: "gap-10",
8603
8672
  12: "gap-12",
8604
8673
  16: "gap-16"
8605
- }, Vo = {
8674
+ }, Uo = {
8606
8675
  start: "items-start",
8607
8676
  center: "items-center",
8608
8677
  end: "items-end",
8609
8678
  stretch: "items-stretch",
8610
8679
  baseline: "items-baseline"
8611
- }, Ho = {
8680
+ }, Wo = {
8612
8681
  start: "justify-start",
8613
8682
  center: "justify-center",
8614
8683
  end: "justify-end",
8615
8684
  between: "justify-between",
8616
8685
  around: "justify-around",
8617
8686
  evenly: "justify-evenly"
8618
- }, Uo = {
8687
+ }, Go = {
8619
8688
  row: "flex-row",
8620
8689
  column: "flex-col",
8621
8690
  "row-reverse": "flex-row-reverse",
8622
8691
  "column-reverse": "flex-col-reverse"
8623
- }, Wo = a(function({ as: e, direction: t = "row", align: n, justify: r, wrap: i, gap: a, inline: o, className: s, ...c }, l) {
8692
+ }, Ko = a(function({ as: e, direction: t = "row", align: n, justify: r, wrap: i, gap: a, inline: o, className: s, ...c }, l) {
8624
8693
  return /* @__PURE__ */ H(e ?? "div", {
8625
8694
  ref: l,
8626
- className: W(o ? "inline-flex" : "flex", Uo[t], n && Vo[n], r && Ho[r], i && "flex-wrap", a !== void 0 && Bo[a], s),
8695
+ className: W(o ? "inline-flex" : "flex", Go[t], n && Uo[n], r && Wo[r], i && "flex-wrap", a !== void 0 && Ho[a], s),
8627
8696
  ...c
8628
8697
  });
8629
- }), Go = {
8698
+ }), qo = {
8630
8699
  base: {
8631
8700
  1: "grid-cols-1",
8632
8701
  2: "grid-cols-2",
@@ -8672,11 +8741,11 @@ var Po = a(function({ as: e, className: t, ...n }, r) {
8672
8741
  6: "xl:grid-cols-6",
8673
8742
  12: "xl:grid-cols-12"
8674
8743
  }
8675
- }, Ko = a(function({ as: e, columns: t, gap: n = 4, minChildWidth: r, className: i, style: a, ...o }, s) {
8676
- let c = e ?? "div", l = t === void 0 ? null : typeof t == "number" ? Go.base[t] : Object.entries(t).map(([e, t]) => Go[e][t]);
8744
+ }, Jo = a(function({ as: e, columns: t, gap: n = 4, minChildWidth: r, className: i, style: a, ...o }, s) {
8745
+ let c = e ?? "div", l = t === void 0 ? null : typeof t == "number" ? qo.base[t] : Object.entries(t).map(([e, t]) => qo[e][t]);
8677
8746
  return /* @__PURE__ */ H(c, {
8678
8747
  ref: s,
8679
- className: W("grid", Bo[n], l, i),
8748
+ className: W("grid", Ho[n], l, i),
8680
8749
  style: r ? {
8681
8750
  gridTemplateColumns: `repeat(auto-fit, minmax(min(${r}, 100%), 1fr))`,
8682
8751
  ...a
@@ -8686,7 +8755,7 @@ var Po = a(function({ as: e, className: t, ...n }, r) {
8686
8755
  });
8687
8756
  //#endregion
8688
8757
  //#region src/layout/Spacer.tsx
8689
- function qo({ className: e }) {
8758
+ function Yo({ className: e }) {
8690
8759
  return /* @__PURE__ */ H("div", {
8691
8760
  "aria-hidden": "true",
8692
8761
  className: W("flex-1", e)
@@ -8694,21 +8763,21 @@ function qo({ className: e }) {
8694
8763
  }
8695
8764
  //#endregion
8696
8765
  //#region src/layout/Stack.tsx
8697
- function Jo(e, t, n) {
8766
+ function Xo(e, t, n) {
8698
8767
  let r = a(function({ as: e, gap: r = n.gap, align: i = n.align, justify: a, wrap: o, className: s, ...c }, l) {
8699
8768
  return /* @__PURE__ */ H(e ?? "div", {
8700
8769
  ref: l,
8701
- className: W("flex", t === "column" ? "flex-col" : "flex-row", Bo[r], i && Vo[i], a && Ho[a], o && "flex-wrap", s),
8770
+ className: W("flex", t === "column" ? "flex-col" : "flex-row", Ho[r], i && Uo[i], a && Wo[a], o && "flex-wrap", s),
8702
8771
  ...c
8703
8772
  });
8704
8773
  });
8705
8774
  return r.displayName = e, r;
8706
8775
  }
8707
- var Yo = Jo("Stack", "column", { gap: 4 }), Xo = Yo, Zo = Jo("HStack", "row", {
8776
+ var Zo = Xo("Stack", "column", { gap: 4 }), Qo = Zo, $o = Xo("HStack", "row", {
8708
8777
  gap: 3,
8709
8778
  align: "center"
8710
8779
  });
8711
8780
  //#endregion
8712
- export { ct as Accordion, lt as AccordionItem, ho as ActionBar, gt as Alert, wt as AppBar, Kt as AppShell, qi as AspectRatio, Jt as AudioItem, Zt as Avatar, $t as AvatarGroup, Co as AvatarPicker, dt as Badge, nn as Banner, Dr as BottomMenu, Po as Box, Sn as Breadcrumb, Q as Button, Dn as ButtonGroup, Wn as CHART_SERIES, Pr as Calendar, jn as Card, Mn as CardButton, Nn as Carousel, Fo as Center, Hn as CharacterCard, Un as CharacterCardSkeleton, qn as Chart, He as ChartCell, Xn as Checkbox, Zn as Chip, go as ChoiceCard, ko as Citation, tr as CodeBlock, nr as Collapsible, ar as ColorPicker, lr as Combobox, pr as CommandPalette, gr as Composer, Ar as ConfirmHost, Lo as Container, jr as ContextMenu, Qn as CopyButton, mt as CrispStringsProvider, La as DEFAULT_THEME, Fr as DatePicker, Lr as Dialog, Br as Diff, zo as Divider, Lt as Dock, Yr as DownloadItem, Xr as Dropzone, Zr as EmptyState, Qr as ErrorState, Ao as FeedbackAction, xt as Field, ei as FilterBar, Wo as Flex, ri as Form, ii as FormActions, Et as FrameProvider, Ko as Grid, Zo as HStack, dr as Highlight, oi as HoverCard, si as ICON_SIZE, ci as Icon, q as IconButton, li as ImageViewer, ui as InfiniteScroll, Zi as InlineMarkdown, St as Input, fr as Kbd, la as KeyValue, di as ListGroup, hi as ListRow, gi as ListRowButton, cr as LoadingState, _i as Masonry, yi as MediaCard, bi as MediaCardSkeleton, xi as MediaTile, Si as MediaTileSkeleton, mn as Menu, _n as MenuContent, vn as MenuItem, bn as MenuLabel, yn as MenuSeparator, gn as MenuTrigger, Ai as Message, Ni as MessageDivider, Pi as Meter, Oo as ModelSelect, Ii as MultiItemDownloadCard, Ft as NavBadge, Ht as NavLabel, Ut as NavRail, Li as NumberInput, No as OtpInput, Ia as PRESETS, Eo as Page, zi as Pagination, Hi as Panel, Gi as PartitionBar, cn as Popover, un as PopoverAnchor, fn as PopoverContent, ln as PopoverTrigger, Hr as Progress, Mo as PromptSuggestions, Qi as Prose, ta as Radio, ea as RadioGroup, vr as RecordingWave, xo as ReorderableList, na as Resizable, er as ScrollArea, ra as SearchField, bo as SecretInput, ia as Segmented, aa as Select, oa as SelectMenu, Er as Sheet, _o as Shelf, $ as Skeleton, Vn as SkeletonRow, sa as Slider, qo as Spacer, Jn as Sparkline, sr as Spinner, On as SplitButton, Yo as Stack, ca as StatTile, ua as Stepper, Bn as Surface, da as Switch, _a as Tab, It as TabBar, ga as TabList, va as TabPanel, fa as Table, ha as Tabs, ya as TagInput, Sa as Text, Ct as Textarea, Ka as ThemeEditor, Ha as ThemeProvider, Ja as Timeline, Ya as TitleBar, ro as Toaster, io as ToggleGroup, ao as Toolbar, so as ToolbarGroup, oo as ToolbarSeparator, X as Tooltip, lo as Tour, uo as Tree, Mi as TypingDots, Xo as VStack, fo as VirtualList, Ki as VisuallyHidden, mo as WindowResizeHandles, yo as Wizard, Vo as alignClass, Fa as applyTheme, W as cn, Gr as compactNumber, kr as confirm, Ea as contrastRatio, Rr as diffLines, ft as englishStrings, Yi as escapeHeadings, qr as fileSize, Bo as gapClass, an as getElementRef, Ca as hexToRgb, Z as icon, En as iconSize, Y as inputSurface, Da as isLight, Ho as justifyClass, Ta as luminance, rn as mergeRefs, ka as mixHex, G as motion, wa as normaliseHex, Oa as readableOn, Wr as relativeTime, Pa as themeToVars, Pn as tintFromName, no as toast, mr as useCommandPalette, At as useCompactLayout, K as useCrispStrings, J as useFieldContext, ni as useForm, Dt as useFrame, Fn as useImageBrightness, hr as useLongPress, kt as useMediaQuery, yr as useModal, Bt as useNavExpanded, Ln as useOnSurface, dn as usePopoverPosition, Ot as usePortalTarget, Ba as useTheme, ai as useUnsavedGuard, vo as useWizard };
8781
+ export { ct as Accordion, lt as AccordionItem, vo as ActionBar, gt as Alert, wt as AppBar, qt as AppShell, Xi as AspectRatio, Yt as AudioItem, Qt as Avatar, en as AvatarGroup, Eo as AvatarPicker, dt as Badge, rn as Banner, Or as BottomMenu, Io as Box, Cn as Breadcrumb, Z as Button, On as ButtonGroup, Gn as CHART_SERIES, Lr as Calendar, Mn as Card, Nn as CardButton, Pn as Carousel, Lo as Center, Un as CharacterCard, Wn as CharacterCardSkeleton, Jn as Chart, He as ChartCell, Zn as Checkbox, Qn as Chip, yo as ChoiceCard, jo as Citation, nr as CodeBlock, rr as Collapsible, or as ColorPicker, ur as Combobox, mr as CommandPalette, _r as Composer, jr as ConfirmHost, zo as Container, Mr as ContextMenu, $n as CopyButton, mt as CrispStringsProvider, Ba as DEFAULT_THEME, Rr as DatePicker, Br as Dialog, Ur as Diff, Vo as Divider, Rt as Dock, Qr as DownloadItem, $r as Dropzone, ei as EmptyState, ti as ErrorState, Mo as FeedbackAction, xt as Field, ri as FilterBar, Ko as Flex, oi as Form, si as FormActions, Et as FrameProvider, Jo as Grid, $o as HStack, fr as Highlight, li as HoverCard, ui as ICON_SIZE, di as Icon, q as IconButton, fi as ImageViewer, pi as InfiniteScroll, ea as InlineMarkdown, St as Input, pr as Kbd, fa as KeyValue, mi as ListGroup, vi as ListRow, yi as ListRowButton, lr as LoadingState, bi as Masonry, Si as MediaCard, Ci as MediaCardSkeleton, wi as MediaTile, Ti as MediaTileSkeleton, hn as Menu, vn as MenuContent, yn as MenuItem, xn as MenuLabel, bn as MenuSeparator, _n as MenuTrigger, Ni as Message, Ii as MessageDivider, Li as Meter, Ao as ModelSelect, zi as MultiItemDownloadCard, It as NavBadge, Ut as NavLabel, Wt as NavRail, Bi as NumberInput, Fo as OtpInput, za as PRESETS, Oo as Page, Hi as Pagination, Gi as Panel, Ji as PartitionBar, ln as Popover, dn as PopoverAnchor, pn as PopoverContent, un as PopoverTrigger, Gr as Progress, Po as PromptSuggestions, ta as Prose, ia as Radio, ra as RadioGroup, yr as RecordingWave, wo as ReorderableList, aa as Resizable, tr as ScrollArea, oa as SearchField, Co as SecretInput, sa as Segmented, ca as Select, la as SelectMenu, Dr as Sheet, bo as Shelf, Q as Skeleton, Hn as SkeletonRow, ua as Slider, Yo as Spacer, Yn as Sparkline, cr as Spinner, kn as SplitButton, Zo as Stack, da as StatTile, pa as Stepper, Vn as Surface, ma as Switch, ba as Tab, Lt as TabBar, ya as TabList, xa as TabPanel, ha as Table, va as Tabs, Sa as TagInput, Ta as Text, Ct as Textarea, Ya as ThemeEditor, Ga as ThemeProvider, Za as Timeline, Qa as TitleBar, oo as Toaster, so as ToggleGroup, co as Toolbar, uo as ToolbarGroup, lo as ToolbarSeparator, Ft as Tooltip, po as Tour, mo as Tree, Fi as TypingDots, Qo as VStack, ho as VirtualList, Yi as VisuallyHidden, _o as WindowResizeHandles, So as Wizard, Uo as alignClass, Ra as applyTheme, W as cn, Jr as compactNumber, Ar as confirm, ka as contrastRatio, Vr as diffLines, ft as englishStrings, Qi as escapeHeadings, Xr as fileSize, Ho as gapClass, on as getElementRef, Ea as hexToRgb, X as icon, Dn as iconSize, Y as inputSurface, Aa as isLight, Wo as justifyClass, Oa as luminance, an as mergeRefs, Ma as mixHex, G as motion, Da as normaliseHex, ja as readableOn, qr as relativeTime, La as themeToVars, Fn as tintFromName, ao as toast, hr as useCommandPalette, At as useCompactLayout, K as useCrispStrings, J as useFieldContext, ai as useForm, Dt as useFrame, In as useImageBrightness, gr as useLongPress, kt as useMediaQuery, br as useModal, Vt as useNavExpanded, Rn as useOnSurface, fn as usePopoverPosition, Ot as usePortalTarget, Ua as useTheme, ci as useUnsavedGuard, xo as useWizard };
8713
8782
 
8714
8783
  //# sourceMappingURL=index.js.map