@handamade/psi-react 0.21.0 → 0.22.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.
Files changed (71) hide show
  1. package/dist/Field/Field.d.ts +5 -1
  2. package/dist/Field/Field.d.ts.map +1 -1
  3. package/dist/NavTree/NavItem.d.ts +12 -8
  4. package/dist/NavTree/NavItem.d.ts.map +1 -1
  5. package/dist/Tabs/Tab.d.ts.map +1 -1
  6. package/dist/Tabs/Tabs.d.ts +20 -1
  7. package/dist/Tabs/Tabs.d.ts.map +1 -1
  8. package/dist/Toast/Announcement.d.ts +12 -4
  9. package/dist/Toast/Announcement.d.ts.map +1 -1
  10. package/dist/Toast/ToastProvider.d.ts +27 -4
  11. package/dist/Toast/ToastProvider.d.ts.map +1 -1
  12. package/dist/Toast/ToastRegion.d.ts +11 -2
  13. package/dist/Toast/ToastRegion.d.ts.map +1 -1
  14. package/dist/Toast/useToast.d.ts +11 -2
  15. package/dist/Toast/useToast.d.ts.map +1 -1
  16. package/dist/Toolbar/Toolbar.d.ts +16 -6
  17. package/dist/Toolbar/Toolbar.d.ts.map +1 -1
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +1050 -1015
  21. package/dist/manifest.json +32 -11
  22. package/dist/patterns.json +4 -4
  23. package/dist/styles.css +1 -1
  24. package/docs/Announcement.md +3 -3
  25. package/docs/AppShell.md +1 -1
  26. package/docs/AspectRatio.md +1 -1
  27. package/docs/Banner.md +1 -1
  28. package/docs/Button.md +1 -1
  29. package/docs/Card.md +1 -1
  30. package/docs/Checkbox.md +1 -1
  31. package/docs/CopyButton.md +1 -1
  32. package/docs/CursorPagination.md +1 -1
  33. package/docs/DescriptionItem.md +1 -1
  34. package/docs/DescriptionList.md +1 -1
  35. package/docs/Dialog.md +1 -1
  36. package/docs/Field.md +2 -2
  37. package/docs/IconButton.md +1 -1
  38. package/docs/InlineAlert.md +1 -1
  39. package/docs/Input.md +1 -1
  40. package/docs/Menu.md +1 -1
  41. package/docs/MenuItem.md +1 -1
  42. package/docs/MenuSeparator.md +1 -1
  43. package/docs/NavBar.md +1 -1
  44. package/docs/NavGroup.md +1 -1
  45. package/docs/NavItem.md +5 -5
  46. package/docs/NavTree.md +1 -1
  47. package/docs/Pagination.md +1 -1
  48. package/docs/Panel.md +1 -1
  49. package/docs/Select.md +1 -1
  50. package/docs/Skeleton.md +1 -1
  51. package/docs/SkipLink.md +1 -1
  52. package/docs/Switch.md +1 -1
  53. package/docs/Tab.md +1 -1
  54. package/docs/TabList.md +1 -1
  55. package/docs/TabPanel.md +1 -1
  56. package/docs/Table.md +1 -1
  57. package/docs/TableBody.md +1 -1
  58. package/docs/TableCaption.md +1 -1
  59. package/docs/TableCell.md +1 -1
  60. package/docs/TableHead.md +1 -1
  61. package/docs/TableHeaderCell.md +1 -1
  62. package/docs/TableRow.md +1 -1
  63. package/docs/Tabs.md +3 -3
  64. package/docs/Tag.md +1 -1
  65. package/docs/Toast.md +1 -1
  66. package/docs/ToastProvider.md +6 -3
  67. package/docs/ToastRegion.md +4 -4
  68. package/docs/Toolbar.md +2 -2
  69. package/docs/Tooltip.md +1 -1
  70. package/llms.txt +7 -5
  71. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,353 +1,353 @@
1
- import { jsx as t, jsxs as _, Fragment as ne } from "react/jsx-runtime";
2
- import { Children as W, useId as q, createContext as K, useContext as L, useRef as N, useEffect as C, useState as Ne, useCallback as b, cloneElement as de, isValidElement as X, useMemo as ue, Fragment as ve } from "react";
3
- const Ae = "_button_a3yli_3", Me = "_disabled_a3yli_30", We = "_size24_a3yli_50", qe = "_size32_a3yli_63", Pe = "_size40_a3yli_76", De = "_size48_a3yli_89", Re = "_accent_a3yli_105", He = "_accentSubtle_a3yli_117", Ve = "_neutral_a3yli_129", Fe = "_neutralSubtle_a3yli_141", Ke = "_ghost_a3yli_153", Oe = "_danger_a3yli_165", Ue = "_dangerSubtle_a3yli_177", Ye = "_outline_a3yli_189", x = {
4
- button: Ae,
5
- disabled: Me,
6
- size24: We,
7
- size32: qe,
8
- size40: Pe,
9
- size48: De,
10
- accent: Re,
11
- accentSubtle: He,
12
- neutral: Ve,
13
- neutralSubtle: Fe,
14
- ghost: Ke,
15
- danger: Oe,
16
- dangerSubtle: Ue,
17
- outline: Ye
18
- }, Ze = {
19
- accent: x.accent,
20
- "accent-subtle": x.accentSubtle,
21
- neutral: x.neutral,
22
- "neutral-subtle": x.neutralSubtle,
23
- ghost: x.ghost,
24
- danger: x.danger,
25
- "danger-subtle": x.dangerSubtle,
26
- outline: x.outline
27
- }, Ge = {
28
- 24: x.size24,
29
- 32: x.size32,
30
- 40: x.size40,
31
- 48: x.size48
1
+ import { jsx as t, jsxs as _, Fragment as ie } from "react/jsx-runtime";
2
+ import { Children as q, useId as R, isValidElement as Y, Fragment as pe, cloneElement as de, createContext as Z, useContext as j, useRef as L, useEffect as C, useState as se, useCallback as w, useMemo as ae, useLayoutEffect as qe } from "react";
3
+ const Re = "_button_a3yli_3", He = "_disabled_a3yli_30", Ve = "_size24_a3yli_50", Oe = "_size32_a3yli_63", Fe = "_size40_a3yli_76", Ke = "_size48_a3yli_89", Ue = "_accent_a3yli_105", Ge = "_accentSubtle_a3yli_117", Ye = "_neutral_a3yli_129", Ze = "_neutralSubtle_a3yli_141", Xe = "_ghost_a3yli_153", Je = "_danger_a3yli_165", Qe = "_dangerSubtle_a3yli_177", en = "_outline_a3yli_189", B = {
4
+ button: Re,
5
+ disabled: He,
6
+ size24: Ve,
7
+ size32: Oe,
8
+ size40: Fe,
9
+ size48: Ke,
10
+ accent: Ue,
11
+ accentSubtle: Ge,
12
+ neutral: Ye,
13
+ neutralSubtle: Ze,
14
+ ghost: Xe,
15
+ danger: Je,
16
+ dangerSubtle: Qe,
17
+ outline: en
18
+ }, nn = {
19
+ accent: B.accent,
20
+ "accent-subtle": B.accentSubtle,
21
+ neutral: B.neutral,
22
+ "neutral-subtle": B.neutralSubtle,
23
+ ghost: B.ghost,
24
+ danger: B.danger,
25
+ "danger-subtle": B.dangerSubtle,
26
+ outline: B.outline
27
+ }, tn = {
28
+ 24: B.size24,
29
+ 32: B.size32,
30
+ 40: B.size40,
31
+ 48: B.size48
32
32
  };
33
- function te({
33
+ function ce({
34
34
  variant: e = "neutral",
35
35
  size: n = 32,
36
- href: r,
36
+ href: i,
37
37
  target: a,
38
38
  rel: s,
39
- disabled: i,
39
+ disabled: r,
40
40
  className: o,
41
41
  onClick: c,
42
- ref: l,
43
- ...d
42
+ ref: d,
43
+ ...l
44
44
  }) {
45
45
  const u = [
46
- x.button,
47
- Ze[e],
48
- Ge[n],
49
- r !== void 0 && i ? x.disabled : void 0,
46
+ B.button,
47
+ nn[e],
48
+ tn[n],
49
+ i !== void 0 && r ? B.disabled : void 0,
50
50
  o
51
51
  ].filter(Boolean).join(" ");
52
- return r !== void 0 ? /* @__PURE__ */ t(
52
+ return i !== void 0 ? /* @__PURE__ */ t(
53
53
  "a",
54
54
  {
55
- ref: l,
55
+ ref: d,
56
56
  className: u,
57
- href: i ? void 0 : r,
57
+ href: r ? void 0 : i,
58
58
  target: a,
59
59
  rel: s,
60
- "aria-disabled": i || void 0,
61
- onClick: i ? void 0 : c,
62
- ...d
60
+ "aria-disabled": r || void 0,
61
+ onClick: r ? void 0 : c,
62
+ ...l
63
63
  }
64
64
  ) : /* @__PURE__ */ t(
65
65
  "button",
66
66
  {
67
- ref: l,
67
+ ref: d,
68
68
  className: u,
69
- disabled: i,
69
+ disabled: r,
70
70
  onClick: c,
71
- ...d
71
+ ...l
72
72
  }
73
73
  );
74
74
  }
75
- const Xe = "_iconButton_1q4hx_3", Je = "_disabled_1q4hx_29", Qe = "_size24_1q4hx_37", en = "_size32_1q4hx_42", nn = "_size40_1q4hx_47", tn = "_size48_1q4hx_52", on = "_accent_1q4hx_60", rn = "_neutral_1q4hx_72", sn = "_ghost_1q4hx_84", an = "_danger_1q4hx_96", T = {
76
- iconButton: Xe,
77
- disabled: Je,
78
- size24: Qe,
79
- size32: en,
80
- size40: nn,
81
- size48: tn,
82
- accent: on,
83
- neutral: rn,
84
- ghost: sn,
85
- danger: an
86
- }, cn = {
87
- accent: T.accent,
88
- neutral: T.neutral,
89
- ghost: T.ghost,
90
- danger: T.danger
91
- }, ln = {
92
- 24: T.size24,
93
- 32: T.size32,
94
- 40: T.size40,
95
- 48: T.size48
75
+ const on = "_iconButton_1q4hx_3", rn = "_disabled_1q4hx_29", sn = "_size24_1q4hx_37", an = "_size32_1q4hx_42", cn = "_size40_1q4hx_47", ln = "_size48_1q4hx_52", dn = "_accent_1q4hx_60", un = "_neutral_1q4hx_72", hn = "_ghost_1q4hx_84", _n = "_danger_1q4hx_96", E = {
76
+ iconButton: on,
77
+ disabled: rn,
78
+ size24: sn,
79
+ size32: an,
80
+ size40: cn,
81
+ size48: ln,
82
+ accent: dn,
83
+ neutral: un,
84
+ ghost: hn,
85
+ danger: _n
86
+ }, fn = {
87
+ accent: E.accent,
88
+ neutral: E.neutral,
89
+ ghost: E.ghost,
90
+ danger: E.danger
91
+ }, pn = {
92
+ 24: E.size24,
93
+ 32: E.size32,
94
+ 40: E.size40,
95
+ 48: E.size48
96
96
  };
97
- function J({
97
+ function te({
98
98
  variant: e = "neutral",
99
99
  size: n = 32,
100
- href: r,
100
+ href: i,
101
101
  target: a,
102
102
  rel: s,
103
- disabled: i,
103
+ disabled: r,
104
104
  className: o,
105
105
  onClick: c,
106
- ref: l,
107
- ...d
106
+ ref: d,
107
+ ...l
108
108
  }) {
109
109
  const u = [
110
- T.iconButton,
111
- cn[e],
112
- ln[n],
113
- r !== void 0 && i ? T.disabled : void 0,
110
+ E.iconButton,
111
+ fn[e],
112
+ pn[n],
113
+ i !== void 0 && r ? E.disabled : void 0,
114
114
  o
115
115
  ].filter(Boolean).join(" ");
116
- return r !== void 0 ? /* @__PURE__ */ t(
116
+ return i !== void 0 ? /* @__PURE__ */ t(
117
117
  "a",
118
118
  {
119
- ref: l,
119
+ ref: d,
120
120
  className: u,
121
- href: i ? void 0 : r,
121
+ href: r ? void 0 : i,
122
122
  target: a,
123
123
  rel: s,
124
- "aria-disabled": i || void 0,
125
- onClick: i ? void 0 : c,
126
- ...d
124
+ "aria-disabled": r || void 0,
125
+ onClick: r ? void 0 : c,
126
+ ...l
127
127
  }
128
128
  ) : /* @__PURE__ */ t(
129
129
  "button",
130
130
  {
131
- ref: l,
131
+ ref: d,
132
132
  className: u,
133
- disabled: i,
133
+ disabled: r,
134
134
  onClick: c,
135
- ...d
135
+ ...l
136
136
  }
137
137
  );
138
138
  }
139
- const dn = "_card_1btb3_1", un = "_stacked_1btb3_8", hn = "_featured_1btb3_10", _n = "_media_1btb3_22", fn = "_body_1btb3_23", pn = "_hoverLift_1btb3_31", P = {
140
- card: dn,
141
- stacked: un,
142
- featured: hn,
143
- media: _n,
144
- body: fn,
145
- hoverLift: pn
139
+ const gn = "_card_1btb3_1", mn = "_stacked_1btb3_8", bn = "_featured_1btb3_10", vn = "_media_1btb3_22", yn = "_body_1btb3_23", wn = "_hoverLift_1btb3_31", H = {
140
+ card: gn,
141
+ stacked: mn,
142
+ featured: bn,
143
+ media: vn,
144
+ body: yn,
145
+ hoverLift: wn
146
146
  };
147
- function Mi({
147
+ function Or({
148
148
  variant: e = "stacked",
149
149
  media: n,
150
- hoverLift: r = !1,
150
+ hoverLift: i = !1,
151
151
  className: a,
152
152
  children: s,
153
- ref: i,
153
+ ref: r,
154
154
  ...o
155
155
  }) {
156
156
  const c = [
157
- P.card,
158
- e === "featured" ? P.featured : P.stacked,
159
- r ? P.hoverLift : void 0,
157
+ H.card,
158
+ e === "featured" ? H.featured : H.stacked,
159
+ i ? H.hoverLift : void 0,
160
160
  a
161
161
  ].filter(Boolean).join(" ");
162
- return /* @__PURE__ */ _("div", { ref: i, className: c, ...o, children: [
163
- n != null && /* @__PURE__ */ t("div", { className: P.media, children: n }),
164
- /* @__PURE__ */ t("div", { className: P.body, children: s })
162
+ return /* @__PURE__ */ _("div", { ref: r, className: c, ...o, children: [
163
+ n != null && /* @__PURE__ */ t("div", { className: H.media, children: n }),
164
+ /* @__PURE__ */ t("div", { className: H.body, children: s })
165
165
  ] });
166
166
  }
167
- const gn = "_panel_jn8w4_1", mn = "_padding16_jn8w4_8", be = {
168
- panel: gn,
169
- padding16: mn
167
+ const xn = "_panel_jn8w4_1", kn = "_padding16_jn8w4_8", ke = {
168
+ panel: xn,
169
+ padding16: kn
170
170
  };
171
- function Wi({ padding: e = 24, className: n, children: r, ref: a, ...s }) {
172
- const i = [be.panel, e === 16 ? be.padding16 : void 0, n].filter(Boolean).join(" ");
173
- return /* @__PURE__ */ t("div", { ref: a, className: i, ...s, children: r });
174
- }
175
- const vn = "_list_1lh3q_8", bn = "_item_1lh3q_26", yn = "_term_1lh3q_44", wn = "_value_1lh3q_50", ee = {
176
- list: vn,
177
- item: bn,
178
- term: yn,
179
- value: wn
171
+ function Fr({ padding: e = 24, className: n, children: i, ref: a, ...s }) {
172
+ const r = [ke.panel, e === 16 ? ke.padding16 : void 0, n].filter(Boolean).join(" ");
173
+ return /* @__PURE__ */ t("div", { ref: a, className: r, ...s, children: i });
174
+ }
175
+ const Nn = "_list_1lh3q_8", $n = "_item_1lh3q_26", Bn = "_term_1lh3q_44", Ln = "_value_1lh3q_50", re = {
176
+ list: Nn,
177
+ item: $n,
178
+ term: Bn,
179
+ value: Ln
180
180
  };
181
- function qi({
181
+ function Kr({
182
182
  layout: e = "stacked",
183
183
  gap: n = 12,
184
- className: r,
184
+ className: i,
185
185
  children: a,
186
186
  ref: s,
187
- ...i
187
+ ...r
188
188
  }) {
189
189
  return /* @__PURE__ */ t(
190
190
  "dl",
191
191
  {
192
192
  ref: s,
193
- className: [ee.list, r].filter(Boolean).join(" "),
193
+ className: [re.list, i].filter(Boolean).join(" "),
194
194
  "data-layout": e,
195
195
  "data-gap": n,
196
- ...i,
196
+ ...r,
197
197
  children: a
198
198
  }
199
199
  );
200
200
  }
201
- function Pi({ term: e, className: n, children: r, ref: a, ...s }) {
202
- return /* @__PURE__ */ _("div", { ref: a, className: [ee.item, n].filter(Boolean).join(" "), ...s, children: [
203
- /* @__PURE__ */ t("dt", { className: ee.term, children: e }),
204
- /* @__PURE__ */ t("dd", { className: ee.value, children: r })
201
+ function Ur({ term: e, className: n, children: i, ref: a, ...s }) {
202
+ return /* @__PURE__ */ _("div", { ref: a, className: [re.item, n].filter(Boolean).join(" "), ...s, children: [
203
+ /* @__PURE__ */ t("dt", { className: re.term, children: e }),
204
+ /* @__PURE__ */ t("dd", { className: re.value, children: i })
205
205
  ] });
206
206
  }
207
- const xn = "_navbar_1w24e_1", kn = "_inner_1w24e_12", Nn = "_fluid_1w24e_20", $n = "_brand_1w24e_22", Bn = "_links_1w24e_23", Ln = "_actions_1w24e_53", D = {
208
- navbar: xn,
209
- inner: kn,
210
- fluid: Nn,
211
- brand: $n,
212
- links: Bn,
213
- actions: Ln
207
+ const Cn = "_navbar_1w24e_1", Sn = "_inner_1w24e_12", jn = "_fluid_1w24e_20", Tn = "_brand_1w24e_22", zn = "_links_1w24e_23", In = "_actions_1w24e_53", V = {
208
+ navbar: Cn,
209
+ inner: Sn,
210
+ fluid: jn,
211
+ brand: Tn,
212
+ links: zn,
213
+ actions: In
214
214
  };
215
- function Di({ brand: e, actions: n, children: r, navLabel: a, fluid: s = !1, className: i, ref: o, ...c }) {
216
- const l = [D.navbar, i].filter(Boolean).join(" "), d = W.toArray(r).length > 0;
217
- return /* @__PURE__ */ t("header", { ref: o, className: l, ...c, children: /* @__PURE__ */ _("div", { className: `${s ? D.fluid : "psi-container"} ${D.inner}`, children: [
218
- e != null && /* @__PURE__ */ t("div", { className: D.brand, children: e }),
219
- d && /* @__PURE__ */ t("nav", { className: D.links, "aria-label": a, children: r }),
220
- n != null && /* @__PURE__ */ t("div", { className: D.actions, children: n })
215
+ function Gr({ brand: e, actions: n, children: i, navLabel: a, fluid: s = !1, className: r, ref: o, ...c }) {
216
+ const d = [V.navbar, r].filter(Boolean).join(" "), l = q.toArray(i).length > 0;
217
+ return /* @__PURE__ */ t("header", { ref: o, className: d, ...c, children: /* @__PURE__ */ _("div", { className: `${s ? V.fluid : "psi-container"} ${V.inner}`, children: [
218
+ e != null && /* @__PURE__ */ t("div", { className: V.brand, children: e }),
219
+ l && /* @__PURE__ */ t("nav", { className: V.links, "aria-label": a, children: i }),
220
+ n != null && /* @__PURE__ */ t("div", { className: V.actions, children: n })
221
221
  ] }) });
222
222
  }
223
- const Cn = "_skipLink_1fn0y_4", Sn = {
224
- skipLink: Cn
223
+ const En = "_skipLink_1fn0y_4", An = {
224
+ skipLink: En
225
225
  };
226
- function Ri({ className: e, ref: n, children: r, ...a }) {
227
- const s = [Sn.skipLink, e].filter(Boolean).join(" ");
228
- return /* @__PURE__ */ t("a", { ref: n, className: s, ...a, children: r });
229
- }
230
- const jn = "_navTree_y5m3t_7", zn = "_list_y5m3t_11", Tn = "_groupList_y5m3t_12", In = "_item_y5m3t_23", En = "_groupButton_y5m3t_70", An = "_groupLabel_y5m3t_99", Mn = "_chevron_y5m3t_103", A = {
231
- navTree: jn,
232
- list: zn,
233
- groupList: Tn,
234
- item: In,
235
- groupButton: En,
236
- groupLabel: An,
237
- chevron: Mn
226
+ function Yr({ className: e, ref: n, children: i, ...a }) {
227
+ const s = [An.skipLink, e].filter(Boolean).join(" ");
228
+ return /* @__PURE__ */ t("a", { ref: n, className: s, ...a, children: i });
229
+ }
230
+ const Mn = "_navTree_y5m3t_7", Wn = "_list_y5m3t_11", Dn = "_groupList_y5m3t_12", Pn = "_item_y5m3t_23", qn = "_groupButton_y5m3t_70", Rn = "_groupLabel_y5m3t_99", Hn = "_chevron_y5m3t_103", D = {
231
+ navTree: Mn,
232
+ list: Wn,
233
+ groupList: Dn,
234
+ item: Pn,
235
+ groupButton: qn,
236
+ groupLabel: Rn,
237
+ chevron: Hn
238
238
  };
239
- function Hi({ children: e, className: n, ref: r, ...a }) {
240
- const s = [A.navTree, n].filter(Boolean).join(" ");
241
- return /* @__PURE__ */ t("nav", { ref: r, className: s, ...a, children: /* @__PURE__ */ t("ul", { className: A.list, children: e }) });
239
+ function Zr({ children: e, className: n, ref: i, ...a }) {
240
+ const s = [D.navTree, n].filter(Boolean).join(" ");
241
+ return /* @__PURE__ */ t("nav", { ref: i, className: s, ...a, children: /* @__PURE__ */ t("ul", { className: D.list, children: e }) });
242
242
  }
243
- function Wn({ size: e = 20, ...n }) {
243
+ function Vn({ size: e = 20, ...n }) {
244
244
  return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("polyline", { points: "6 9 12 15 18 9" }) });
245
245
  }
246
- function Vi({ label: e, open: n, onOpenChange: r, children: a, className: s }) {
247
- const i = q(), o = [A.group, s].filter(Boolean).join(" ");
246
+ function Xr({ label: e, open: n, onOpenChange: i, children: a, className: s }) {
247
+ const r = R(), o = [D.group, s].filter(Boolean).join(" ");
248
248
  return /* @__PURE__ */ _("li", { className: o, children: [
249
249
  /* @__PURE__ */ _(
250
250
  "button",
251
251
  {
252
252
  type: "button",
253
- className: A.groupButton,
253
+ className: D.groupButton,
254
254
  "aria-expanded": n,
255
- "aria-controls": i,
256
- onClick: () => r(!n),
255
+ "aria-controls": r,
256
+ onClick: () => i(!n),
257
257
  children: [
258
- /* @__PURE__ */ t("span", { className: A.groupLabel, children: e }),
259
- /* @__PURE__ */ t(Wn, { size: 16, className: A.chevron, "aria-hidden": "true" })
258
+ /* @__PURE__ */ t("span", { className: D.groupLabel, children: e }),
259
+ /* @__PURE__ */ t(Vn, { size: 16, className: D.chevron, "aria-hidden": "true" })
260
260
  ]
261
261
  }
262
262
  ),
263
- /* @__PURE__ */ t("ul", { id: i, className: A.groupList, hidden: !n, children: a })
263
+ /* @__PURE__ */ t("ul", { id: r, className: D.groupList, hidden: !n, children: a })
264
264
  ] });
265
265
  }
266
- function Fi({ children: e, href: n, current: r, className: a, ref: s, ...i }) {
267
- const o = [A.item, a].filter(Boolean).join(" ");
268
- return /* @__PURE__ */ t("li", { ref: s, className: o, ...i, children: n !== void 0 ? /* @__PURE__ */ t("a", { href: n, "aria-current": r ? "page" : void 0, children: e }) : e });
266
+ function Jr({ children: e, href: n, current: i, className: a, ref: s, ...r }) {
267
+ const o = [D.item, a].filter(Boolean).join(" "), c = n === void 0 && i && Y(e) && e.type !== pe ? e : null;
268
+ return /* @__PURE__ */ t("li", { ref: s, className: o, ...r, children: n !== void 0 ? /* @__PURE__ */ t("a", { href: n, "aria-current": i ? "page" : void 0, children: e }) : c ? de(c, { "aria-current": "page" }) : e });
269
269
  }
270
- const qn = "_appShell_i1tds_10", Pn = "_sidebarClosed_i1tds_18", Dn = "_header_i1tds_22", Rn = "_sidebar_i1tds_18", Hn = "_main_i1tds_45", U = {
271
- appShell: qn,
272
- sidebarClosed: Pn,
273
- header: Dn,
274
- sidebar: Rn,
275
- main: Hn
270
+ const On = "_appShell_i1tds_10", Fn = "_sidebarClosed_i1tds_18", Kn = "_header_i1tds_22", Un = "_sidebar_i1tds_18", Gn = "_main_i1tds_45", Q = {
271
+ appShell: On,
272
+ sidebarClosed: Fn,
273
+ header: Kn,
274
+ sidebar: Un,
275
+ main: Gn
276
276
  };
277
- function Ki({
277
+ function Qr({
278
278
  skipLink: e,
279
279
  header: n,
280
- sidebar: r,
280
+ sidebar: i,
281
281
  children: a,
282
282
  sidebarOpen: s = !0,
283
- sidebarTheme: i,
283
+ sidebarTheme: r,
284
284
  sidebarId: o = "sidebar",
285
285
  mainId: c = "main",
286
- className: l,
287
- ref: d,
286
+ className: d,
287
+ ref: l,
288
288
  ...u
289
289
  }) {
290
- const h = s && r != null, p = [U.appShell, !h && U.sidebarClosed, l].filter(Boolean).join(" ");
291
- return /* @__PURE__ */ _("div", { ref: d, className: p, ...u, children: [
290
+ const h = s && i != null, f = [Q.appShell, !h && Q.sidebarClosed, d].filter(Boolean).join(" ");
291
+ return /* @__PURE__ */ _("div", { ref: l, className: f, ...u, children: [
292
292
  e,
293
- n != null && /* @__PURE__ */ t("div", { className: U.header, children: n }),
294
- /* @__PURE__ */ t("div", { id: o, className: U.sidebar, hidden: !h, "data-psi-theme": i, children: r }),
295
- /* @__PURE__ */ t("main", { id: c, className: U.main, tabIndex: -1, children: a })
293
+ n != null && /* @__PURE__ */ t("div", { className: Q.header, children: n }),
294
+ /* @__PURE__ */ t("div", { id: o, className: Q.sidebar, hidden: !h, "data-psi-theme": r, children: i }),
295
+ /* @__PURE__ */ t("main", { id: c, className: Q.main, tabIndex: -1, children: a })
296
296
  ] });
297
297
  }
298
- const Vn = "_frame_et4fc_1", Fn = {
299
- frame: Vn
298
+ const Yn = "_frame_et4fc_1", Zn = {
299
+ frame: Yn
300
300
  };
301
- function Oi({ ratio: e, className: n, style: r, children: a, ref: s, ...i }) {
302
- const o = [Fn.frame, n].filter(Boolean).join(" ");
303
- return /* @__PURE__ */ t("div", { ref: s, className: o, style: { aspectRatio: String(e), ...r }, ...i, children: a });
304
- }
305
- const Kn = "_field_1xhfz_1", On = "_label_1xhfz_10", Un = "_marker_1xhfz_16", Yn = "_requiredText_1xhfz_22", Zn = "_message_1xhfz_27", Gn = "_invalid_1xhfz_33", M = {
306
- field: Kn,
307
- label: On,
308
- marker: Un,
309
- requiredText: Yn,
310
- message: Zn,
311
- invalid: Gn
312
- }, ie = K(null);
313
- function Ui({
301
+ function ei({ ratio: e, className: n, style: i, children: a, ref: s, ...r }) {
302
+ const o = [Zn.frame, n].filter(Boolean).join(" ");
303
+ return /* @__PURE__ */ t("div", { ref: s, className: o, style: { aspectRatio: String(e), ...i }, ...r, children: a });
304
+ }
305
+ const Xn = "_field_x989o_1", Jn = "_label_x989o_10", Qn = "_marker_x989o_19", et = "_requiredText_x989o_25", nt = "_message_x989o_30", tt = "_invalid_x989o_36", P = {
306
+ field: Xn,
307
+ label: Jn,
308
+ marker: Qn,
309
+ requiredText: et,
310
+ message: nt,
311
+ invalid: tt
312
+ }, ue = Z(null);
313
+ function ni({
314
314
  label: e,
315
315
  description: n,
316
- error: r,
316
+ error: i,
317
317
  required: a = !1,
318
318
  requiredText: s,
319
- group: i = !1,
319
+ group: r = !1,
320
320
  htmlFor: o,
321
321
  announce: c = !0,
322
- className: l,
323
- children: d,
322
+ className: d,
323
+ children: l,
324
324
  ref: u,
325
325
  ...h
326
326
  }) {
327
- const p = q(), v = o ?? p, w = !!r, $ = w ? r : n, k = $ != null && $ !== !1 ? `${v}-message` : void 0, m = e != null && !i ? `${v}-label` : void 0, f = [M.field, w && M.invalid, l].filter(Boolean).join(" "), g = e != null ? /* @__PURE__ */ _(ne, { children: [
327
+ const f = R(), g = o ?? f, b = !!i, v = b ? i : n, N = v != null && v !== !1 ? `${g}-message` : void 0, y = e != null && !r ? `${g}-label` : void 0, x = [P.field, b && P.invalid, d].filter(Boolean).join(" "), A = e != null ? /* @__PURE__ */ _(ie, { children: [
328
328
  e,
329
- a && (s !== void 0 ? /* @__PURE__ */ _("span", { "aria-hidden": "true", className: M.requiredText, children: [
329
+ a && (s !== void 0 ? /* @__PURE__ */ _("span", { "aria-hidden": "true", className: P.requiredText, children: [
330
330
  " ",
331
331
  s
332
- ] }) : /* @__PURE__ */ t("span", { "aria-hidden": "true", className: M.marker, children: " *" }))
333
- ] }) : null, S = /* @__PURE__ */ _(ne, { children: [
334
- g != null && (i ? /* @__PURE__ */ t("legend", { className: M.label, children: g }) : /* @__PURE__ */ t("label", { id: m, className: M.label, htmlFor: v, children: g })),
335
- /* @__PURE__ */ t(ie.Provider, { value: { id: v, labelId: m, describedBy: k, invalid: w, required: a }, children: d }),
336
- k && /* @__PURE__ */ t("p", { id: k, className: M.message, "aria-live": c ? "polite" : void 0, children: $ })
332
+ ] }) : /* @__PURE__ */ t("span", { "aria-hidden": "true", className: P.marker, children: " *" }))
333
+ ] }) : null, J = /* @__PURE__ */ _(ie, { children: [
334
+ A != null && (r ? /* @__PURE__ */ t("legend", { className: P.label, children: A }) : /* @__PURE__ */ t("label", { id: y, className: P.label, htmlFor: g, children: A })),
335
+ /* @__PURE__ */ t(ue.Provider, { value: { id: g, labelId: y, describedBy: N, invalid: b, required: a }, children: l }),
336
+ N && /* @__PURE__ */ t("p", { id: N, className: P.message, "aria-live": c ? "polite" : void 0, children: v })
337
337
  ] });
338
- return i ? /* @__PURE__ */ t(
338
+ return r ? /* @__PURE__ */ t(
339
339
  "fieldset",
340
340
  {
341
341
  ref: u,
342
- className: f,
343
- "aria-describedby": k,
342
+ className: x,
343
+ "aria-describedby": N,
344
344
  ...h,
345
- children: S
345
+ children: J
346
346
  }
347
- ) : /* @__PURE__ */ t("div", { ref: u, className: f, ...h, children: S });
347
+ ) : /* @__PURE__ */ t("div", { ref: u, className: x, ...h, children: J });
348
348
  }
349
- function Yi() {
350
- const e = L(ie);
349
+ function ti() {
350
+ const e = j(ue);
351
351
  return e ? {
352
352
  id: e.id,
353
353
  ...e.labelId ? { "aria-labelledby": e.labelId } : {},
@@ -356,80 +356,80 @@ function Yi() {
356
356
  ...e.required ? { "aria-required": !0, required: !0 } : {}
357
357
  } : {};
358
358
  }
359
- function Zi({ size: e = 20, ...n }) {
359
+ function oi({ size: e = 20, ...n }) {
360
360
  return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
361
361
  /* @__PURE__ */ t("line", { x1: "12", y1: "5", x2: "12", y2: "19" }),
362
362
  /* @__PURE__ */ t("line", { x1: "5", y1: "12", x2: "19", y2: "12" })
363
363
  ] });
364
364
  }
365
- function Gi({ size: e = 20, ...n }) {
365
+ function ri({ size: e = 20, ...n }) {
366
366
  return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("line", { x1: "5", y1: "12", x2: "19", y2: "12" }) });
367
367
  }
368
- function he({ size: e = 20, ...n }) {
368
+ function me({ size: e = 20, ...n }) {
369
369
  return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
370
370
  /* @__PURE__ */ t("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
371
371
  /* @__PURE__ */ t("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
372
372
  ] });
373
373
  }
374
- function Xn({ size: e = 20, ...n }) {
374
+ function ot({ size: e = 20, ...n }) {
375
375
  return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("polyline", { points: "20 6 9 17 4 12" }) });
376
376
  }
377
- function Jn({ size: e = 20, ...n }) {
377
+ function rt({ size: e = 20, ...n }) {
378
378
  return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("polyline", { points: "9 18 15 12 9 6" }) });
379
379
  }
380
- function Qn({ size: e = 20, ...n }) {
380
+ function it({ size: e = 20, ...n }) {
381
381
  return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("polyline", { points: "15 18 9 12 15 6" }) });
382
382
  }
383
- function Xi({ size: e = 20, ...n }) {
383
+ function ii({ size: e = 20, ...n }) {
384
384
  return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
385
385
  /* @__PURE__ */ t("circle", { cx: "11", cy: "11", r: "8" }),
386
386
  /* @__PURE__ */ t("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
387
387
  ] });
388
388
  }
389
- function Ji({ size: e = 20, ...n }) {
389
+ function si({ size: e = 20, ...n }) {
390
390
  return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
391
391
  /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "3" }),
392
392
  /* @__PURE__ */ t("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z" })
393
393
  ] });
394
394
  }
395
- function Qi({ size: e = 20, ...n }) {
395
+ function ai({ size: e = 20, ...n }) {
396
396
  return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
397
397
  /* @__PURE__ */ t("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }),
398
398
  /* @__PURE__ */ t("circle", { cx: "12", cy: "7", r: "4" })
399
399
  ] });
400
400
  }
401
- function er({ size: e = 20, ...n }) {
401
+ function ci({ size: e = 20, ...n }) {
402
402
  return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
403
403
  /* @__PURE__ */ t("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
404
404
  /* @__PURE__ */ t("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })
405
405
  ] });
406
406
  }
407
- function nr({ size: e = 20, ...n }) {
407
+ function li({ size: e = 20, ...n }) {
408
408
  return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
409
409
  /* @__PURE__ */ t("polyline", { points: "3 6 5 6 21 6" }),
410
410
  /* @__PURE__ */ t("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
411
411
  ] });
412
412
  }
413
- function et({ size: e = 20, ...n }) {
413
+ function st({ size: e = 20, ...n }) {
414
414
  return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
415
415
  /* @__PURE__ */ t("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
416
416
  /* @__PURE__ */ t("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
417
417
  ] });
418
418
  }
419
- function tr({ size: e = 20, ...n }) {
419
+ function di({ size: e = 20, ...n }) {
420
420
  return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
421
421
  /* @__PURE__ */ t("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
422
422
  /* @__PURE__ */ t("polyline", { points: "15 3 21 3 21 9" }),
423
423
  /* @__PURE__ */ t("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
424
424
  ] });
425
425
  }
426
- function or({ size: e = 20, ...n }) {
426
+ function ui({ size: e = 20, ...n }) {
427
427
  return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
428
428
  /* @__PURE__ */ t("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
429
429
  /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "3" })
430
430
  ] });
431
431
  }
432
- function ir({ size: e = 20, ...n }) {
432
+ function hi({ size: e = 20, ...n }) {
433
433
  return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
434
434
  /* @__PURE__ */ t("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94" }),
435
435
  /* @__PURE__ */ t("path", { d: "M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19" }),
@@ -437,7 +437,7 @@ function ir({ size: e = 20, ...n }) {
437
437
  /* @__PURE__ */ t("line", { x1: "1", y1: "1", x2: "23", y2: "23" })
438
438
  ] });
439
439
  }
440
- function rr({ size: e = 20, ...n }) {
440
+ function _i({ size: e = 20, ...n }) {
441
441
  return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
442
442
  /* @__PURE__ */ t("line", { x1: "12", y1: "2", x2: "12", y2: "6" }),
443
443
  /* @__PURE__ */ t("line", { x1: "12", y1: "18", x2: "12", y2: "22" }),
@@ -449,341 +449,341 @@ function rr({ size: e = 20, ...n }) {
449
449
  /* @__PURE__ */ t("line", { x1: "16.24", y1: "7.76", x2: "19.07", y2: "4.93" })
450
450
  ] });
451
451
  }
452
- function sr({ size: e = 20, ...n }) {
452
+ function fi({ size: e = 20, ...n }) {
453
453
  return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
454
454
  /* @__PURE__ */ t("line", { x1: "12", y1: "5", x2: "12", y2: "19" }),
455
455
  /* @__PURE__ */ t("polyline", { points: "19 12 12 19 5 12" })
456
456
  ] });
457
457
  }
458
- function ar({ size: e = 20, ...n }) {
458
+ function pi({ size: e = 20, ...n }) {
459
459
  return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
460
460
  /* @__PURE__ */ t("line", { x1: "7", y1: "17", x2: "17", y2: "7" }),
461
461
  /* @__PURE__ */ t("polyline", { points: "7 7 17 7 17 17" })
462
462
  ] });
463
463
  }
464
- function cr({ size: e = 20, ...n }) {
464
+ function gi({ size: e = 20, ...n }) {
465
465
  return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("path", { d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" }) });
466
466
  }
467
- function lr({ size: e = 20, ...n }) {
467
+ function mi({ size: e = 20, ...n }) {
468
468
  return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("path", { d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" }) });
469
469
  }
470
- function dr({ size: e = 20, ...n }) {
470
+ function bi({ size: e = 20, ...n }) {
471
471
  return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("path", { d: "M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z" }) });
472
472
  }
473
- function ur({ size: e = 20, ...n }) {
473
+ function vi({ size: e = 20, ...n }) {
474
474
  return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
475
475
  /* @__PURE__ */ t("rect", { x: "2", y: "2", width: "20", height: "20", rx: "5", ry: "5" }),
476
476
  /* @__PURE__ */ t("path", { d: "M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z" }),
477
477
  /* @__PURE__ */ t("line", { x1: "17.5", y1: "6.5", x2: "17.51", y2: "6.5" })
478
478
  ] });
479
479
  }
480
- function nt({ size: e = 20, ...n }) {
480
+ function at({ size: e = 20, ...n }) {
481
481
  return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
482
482
  /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "10" }),
483
483
  /* @__PURE__ */ t("line", { x1: "12", y1: "11", x2: "12", y2: "16" }),
484
484
  /* @__PURE__ */ t("line", { x1: "12", y1: "8", x2: "12", y2: "8" })
485
485
  ] });
486
486
  }
487
- function tt({ size: e = 20, ...n }) {
487
+ function ct({ size: e = 20, ...n }) {
488
488
  return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
489
489
  /* @__PURE__ */ t("path", { d: "M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z" }),
490
490
  /* @__PURE__ */ t("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
491
491
  /* @__PURE__ */ t("line", { x1: "12", y1: "17", x2: "12", y2: "17" })
492
492
  ] });
493
493
  }
494
- function ot({ size: e = 20, ...n }) {
494
+ function lt({ size: e = 20, ...n }) {
495
495
  return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
496
496
  /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "10" }),
497
497
  /* @__PURE__ */ t("line", { x1: "12", y1: "8", x2: "12", y2: "12" }),
498
498
  /* @__PURE__ */ t("line", { x1: "12", y1: "16", x2: "12", y2: "16" })
499
499
  ] });
500
500
  }
501
- function hr({ size: e = 20, ...n }) {
501
+ function yi({ size: e = 20, ...n }) {
502
502
  return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
503
503
  /* @__PURE__ */ t("circle", { cx: "5", cy: "12", r: "1.5", fill: "currentColor", stroke: "none" }),
504
504
  /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "1.5", fill: "currentColor", stroke: "none" }),
505
505
  /* @__PURE__ */ t("circle", { cx: "19", cy: "12", r: "1.5", fill: "currentColor", stroke: "none" })
506
506
  ] });
507
507
  }
508
- function _r({ size: e = 20, ...n }) {
508
+ function wi({ size: e = 20, ...n }) {
509
509
  return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
510
510
  /* @__PURE__ */ t("line", { x1: "3", y1: "6", x2: "21", y2: "6" }),
511
511
  /* @__PURE__ */ t("line", { x1: "3", y1: "12", x2: "21", y2: "12" }),
512
512
  /* @__PURE__ */ t("line", { x1: "3", y1: "18", x2: "21", y2: "18" })
513
513
  ] });
514
514
  }
515
- function fr({ size: e = 20, ...n }) {
515
+ function xi({ size: e = 20, ...n }) {
516
516
  return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
517
517
  /* @__PURE__ */ t("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }),
518
518
  /* @__PURE__ */ t("polyline", { points: "16 17 21 12 16 7" }),
519
519
  /* @__PURE__ */ t("line", { x1: "21", y1: "12", x2: "9", y2: "12" })
520
520
  ] });
521
521
  }
522
- function pr({ size: e = 20, ...n }) {
522
+ function ki({ size: e = 20, ...n }) {
523
523
  return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
524
524
  /* @__PURE__ */ t("path", { d: "M6 2h9l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z" }),
525
525
  /* @__PURE__ */ t("rect", { x: "8", y: "11", width: "8", height: "7", rx: "1" }),
526
526
  /* @__PURE__ */ t("line", { x1: "12", y1: "11", x2: "12", y2: "18" })
527
527
  ] });
528
528
  }
529
- const it = "_dialog_qg38y_2", rt = "_panel_qg38y_20", st = "_center_qg38y_42", at = "_inlineStart_qg38y_50", ct = "_inlineEnd_qg38y_51", lt = "_w400_qg38y_100", dt = "_w560_qg38y_101", ut = "_w720_qg38y_102", ht = "_header_qg38y_124", _t = "_title_qg38y_131", ft = "_footer_qg38y_137", j = {
530
- dialog: it,
531
- panel: rt,
532
- center: st,
533
- inlineStart: at,
534
- inlineEnd: ct,
535
- w400: lt,
536
- w560: dt,
537
- w720: ut,
538
- header: ht,
539
- title: _t,
540
- footer: ft
541
- }, pt = {
542
- 400: j.w400,
543
- 560: j.w560,
544
- 720: j.w720
545
- }, gt = {
546
- center: j.center,
547
- "inline-start": j.inlineStart,
548
- "inline-end": j.inlineEnd
529
+ const dt = "_dialog_qg38y_2", ut = "_panel_qg38y_20", ht = "_center_qg38y_42", _t = "_inlineStart_qg38y_50", ft = "_inlineEnd_qg38y_51", pt = "_w400_qg38y_100", gt = "_w560_qg38y_101", mt = "_w720_qg38y_102", bt = "_header_qg38y_124", vt = "_title_qg38y_131", yt = "_footer_qg38y_137", z = {
530
+ dialog: dt,
531
+ panel: ut,
532
+ center: ht,
533
+ inlineStart: _t,
534
+ inlineEnd: ft,
535
+ w400: pt,
536
+ w560: gt,
537
+ w720: mt,
538
+ header: bt,
539
+ title: vt,
540
+ footer: yt
541
+ }, wt = {
542
+ 400: z.w400,
543
+ 560: z.w560,
544
+ 720: z.w720
545
+ }, xt = {
546
+ center: z.center,
547
+ "inline-start": z.inlineStart,
548
+ "inline-end": z.inlineEnd
549
549
  };
550
- function gr({
550
+ function Ni({
551
551
  open: e,
552
552
  onClose: n,
553
- title: r,
553
+ title: i,
554
554
  footer: a,
555
555
  width: s = 560,
556
- placement: i = "center",
556
+ placement: r = "center",
557
557
  dismissible: o = !0,
558
558
  className: c,
559
- children: l,
560
- ref: d,
559
+ children: d,
560
+ ref: l,
561
561
  ...u
562
562
  }) {
563
- const h = N(null), p = q(), v = (m) => {
564
- h.current = m, typeof d == "function" ? d(m) : d && (d.current = m);
563
+ const h = L(null), f = R(), g = (y) => {
564
+ h.current = y, typeof l == "function" ? l(y) : l && (l.current = y);
565
565
  };
566
566
  C(() => {
567
- const m = h.current;
568
- m && (e && !m.open ? m.showModal() : !e && m.open && m.close());
567
+ const y = h.current;
568
+ y && (e && !y.open ? y.showModal() : !e && y.open && y.close());
569
569
  }, [e]), C(() => {
570
570
  if (!e) return;
571
- const m = document.body.style.overflow;
571
+ const y = document.body.style.overflow;
572
572
  return document.body.style.overflow = "hidden", () => {
573
- document.body.style.overflow = m;
573
+ document.body.style.overflow = y;
574
574
  };
575
575
  }, [e]);
576
- const w = (m) => {
577
- m.preventDefault(), o && n("esc");
578
- }, $ = (m) => {
579
- o && m.target === h.current && n("backdrop");
580
- }, k = [j.dialog, pt[s], gt[i], c].filter(Boolean).join(" ");
576
+ const b = (y) => {
577
+ y.preventDefault(), o && n("esc");
578
+ }, v = (y) => {
579
+ o && y.target === h.current && n("backdrop");
580
+ }, N = [z.dialog, wt[s], xt[r], c].filter(Boolean).join(" ");
581
581
  return /* @__PURE__ */ t(
582
582
  "dialog",
583
583
  {
584
- ref: v,
585
- className: k,
586
- "data-placement": i,
587
- "aria-labelledby": r != null ? p : void 0,
588
- onCancel: w,
589
- onClick: $,
584
+ ref: g,
585
+ className: N,
586
+ "data-placement": r,
587
+ "aria-labelledby": i != null ? f : void 0,
588
+ onCancel: b,
589
+ onClick: v,
590
590
  ...u,
591
- children: /* @__PURE__ */ _("div", { className: j.panel, children: [
592
- (r != null || o) && /* @__PURE__ */ _("div", { className: j.header, children: [
593
- r != null && /* @__PURE__ */ t("h2", { id: p, className: j.title, children: r }),
591
+ children: /* @__PURE__ */ _("div", { className: z.panel, children: [
592
+ (i != null || o) && /* @__PURE__ */ _("div", { className: z.header, children: [
593
+ i != null && /* @__PURE__ */ t("h2", { id: f, className: z.title, children: i }),
594
594
  o && /* @__PURE__ */ t(
595
- J,
595
+ te,
596
596
  {
597
597
  variant: "ghost",
598
598
  size: 32,
599
599
  "aria-label": "Close dialog",
600
600
  onClick: () => n("close-button"),
601
- children: /* @__PURE__ */ t(he, { "aria-hidden": "true" })
601
+ children: /* @__PURE__ */ t(me, { "aria-hidden": "true" })
602
602
  }
603
603
  )
604
604
  ] }),
605
- l,
606
- a != null && /* @__PURE__ */ t("div", { className: j.footer, children: a })
605
+ d,
606
+ a != null && /* @__PURE__ */ t("div", { className: z.footer, children: a })
607
607
  ] })
608
608
  }
609
609
  );
610
610
  }
611
- const mt = "_input_pmr7w_3", vt = "_size24_pmr7w_43", bt = "_size32_pmr7w_49", yt = "_size40_pmr7w_55", wt = "_size48_pmr7w_61", xt = "_error_pmr7w_69", H = {
612
- input: mt,
613
- size24: vt,
614
- size32: bt,
615
- size40: yt,
616
- size48: wt,
617
- error: xt
618
- }, kt = {
619
- 24: H.size24,
620
- 32: H.size32,
621
- 40: H.size40,
622
- 48: H.size48
611
+ const kt = "_input_pmr7w_3", Nt = "_size24_pmr7w_43", $t = "_size32_pmr7w_49", Bt = "_size40_pmr7w_55", Lt = "_size48_pmr7w_61", Ct = "_error_pmr7w_69", F = {
612
+ input: kt,
613
+ size24: Nt,
614
+ size32: $t,
615
+ size40: Bt,
616
+ size48: Lt,
617
+ error: Ct
618
+ }, St = {
619
+ 24: F.size24,
620
+ 32: F.size32,
621
+ 40: F.size40,
622
+ 48: F.size48
623
623
  };
624
- function mr({ size: e = 32, error: n = !1, type: r = "text", className: a, ref: s, ...i }) {
625
- const o = L(ie), c = n || ((o == null ? void 0 : o.invalid) ?? !1), l = [o == null ? void 0 : o.describedBy, i["aria-describedby"]].filter(Boolean).join(" ") || void 0, d = [H.input, kt[e], c && H.error, a].filter(Boolean).join(" ");
624
+ function $i({ size: e = 32, error: n = !1, type: i = "text", className: a, ref: s, ...r }) {
625
+ const o = j(ue), c = n || ((o == null ? void 0 : o.invalid) ?? !1), d = [o == null ? void 0 : o.describedBy, r["aria-describedby"]].filter(Boolean).join(" ") || void 0, l = [F.input, St[e], c && F.error, a].filter(Boolean).join(" ");
626
626
  return /* @__PURE__ */ t(
627
627
  "input",
628
628
  {
629
629
  ref: s,
630
- className: d,
631
- id: i.id ?? (o == null ? void 0 : o.id),
632
- required: i.required ?? ((o == null ? void 0 : o.required) || void 0),
630
+ className: l,
631
+ id: r.id ?? (o == null ? void 0 : o.id),
632
+ required: r.required ?? ((o == null ? void 0 : o.required) || void 0),
633
633
  "aria-invalid": (o == null ? void 0 : o.invalid) || void 0,
634
- type: r,
635
- ...i,
636
- "aria-describedby": l
634
+ type: i,
635
+ ...r,
636
+ "aria-describedby": d
637
637
  }
638
638
  );
639
639
  }
640
- const Nt = "_select_1eqz1_3", $t = "_size24_1eqz1_57", Bt = "_size32_1eqz1_67", Lt = "_size40_1eqz1_77", Ct = "_size48_1eqz1_87", St = "_error_1eqz1_99", V = {
641
- select: Nt,
642
- size24: $t,
643
- size32: Bt,
644
- size40: Lt,
645
- size48: Ct,
646
- error: St
647
- }, jt = {
648
- 24: V.size24,
649
- 32: V.size32,
650
- 40: V.size40,
651
- 48: V.size48
640
+ const jt = "_select_1eqz1_3", Tt = "_size24_1eqz1_57", zt = "_size32_1eqz1_67", It = "_size40_1eqz1_77", Et = "_size48_1eqz1_87", At = "_error_1eqz1_99", K = {
641
+ select: jt,
642
+ size24: Tt,
643
+ size32: zt,
644
+ size40: It,
645
+ size48: Et,
646
+ error: At
647
+ }, Mt = {
648
+ 24: K.size24,
649
+ 32: K.size32,
650
+ 40: K.size40,
651
+ 48: K.size48
652
652
  };
653
- function vr({
653
+ function Bi({
654
654
  size: e = 32,
655
655
  error: n = !1,
656
- className: r,
656
+ className: i,
657
657
  ref: a,
658
658
  children: s,
659
- ...i
659
+ ...r
660
660
  }) {
661
- const o = L(ie), c = n || ((o == null ? void 0 : o.invalid) ?? !1), l = [o == null ? void 0 : o.describedBy, i["aria-describedby"]].filter(Boolean).join(" ") || void 0, d = [
662
- V.select,
663
- jt[e],
664
- c && V.error,
665
- r
661
+ const o = j(ue), c = n || ((o == null ? void 0 : o.invalid) ?? !1), d = [o == null ? void 0 : o.describedBy, r["aria-describedby"]].filter(Boolean).join(" ") || void 0, l = [
662
+ K.select,
663
+ Mt[e],
664
+ c && K.error,
665
+ i
666
666
  ].filter(Boolean).join(" ");
667
667
  return /* @__PURE__ */ t(
668
668
  "select",
669
669
  {
670
670
  ref: a,
671
- className: d,
672
- id: i.id ?? (o == null ? void 0 : o.id),
673
- required: i.required ?? ((o == null ? void 0 : o.required) || void 0),
671
+ className: l,
672
+ id: r.id ?? (o == null ? void 0 : o.id),
673
+ required: r.required ?? ((o == null ? void 0 : o.required) || void 0),
674
674
  "aria-invalid": (o == null ? void 0 : o.invalid) || void 0,
675
- ...i,
676
- "aria-describedby": l,
675
+ ...r,
676
+ "aria-describedby": d,
677
677
  children: s
678
678
  }
679
679
  );
680
680
  }
681
- const zt = "_label_1jm35_3", Tt = "_disabled_1jm35_13", It = "_indicator_1jm35_26", Et = "_input_1jm35_42", At = "_text_1jm35_67", Y = {
682
- label: zt,
683
- disabled: Tt,
684
- indicator: It,
685
- input: Et,
686
- text: At
681
+ const Wt = "_label_1jm35_3", Dt = "_disabled_1jm35_13", Pt = "_indicator_1jm35_26", qt = "_input_1jm35_42", Rt = "_text_1jm35_67", ee = {
682
+ label: Wt,
683
+ disabled: Dt,
684
+ indicator: Pt,
685
+ input: qt,
686
+ text: Rt
687
687
  };
688
- function $e({
688
+ function Ce({
689
689
  children: e,
690
690
  className: n,
691
- disabled: r,
691
+ disabled: i,
692
692
  ref: a,
693
693
  ...s
694
694
  }) {
695
- const i = [Y.label, r && Y.disabled, n].filter(Boolean).join(" ");
696
- return /* @__PURE__ */ _("label", { className: i, children: [
695
+ const r = [ee.label, i && ee.disabled, n].filter(Boolean).join(" ");
696
+ return /* @__PURE__ */ _("label", { className: r, children: [
697
697
  /* @__PURE__ */ t(
698
698
  "input",
699
699
  {
700
700
  ref: a,
701
701
  type: "checkbox",
702
- className: `psi-sr-only ${Y.input}`,
703
- disabled: r,
702
+ className: `psi-sr-only ${ee.input}`,
703
+ disabled: i,
704
704
  ...s
705
705
  }
706
706
  ),
707
- /* @__PURE__ */ t("span", { className: Y.indicator, "aria-hidden": "true" }),
708
- e && /* @__PURE__ */ t("span", { className: Y.text, children: e })
707
+ /* @__PURE__ */ t("span", { className: ee.indicator, "aria-hidden": "true" }),
708
+ e && /* @__PURE__ */ t("span", { className: ee.text, children: e })
709
709
  ] });
710
710
  }
711
- const Mt = "_label_yv464_3", Wt = "_disabled_yv464_13", qt = "_track_yv464_26", Pt = "_input_yv464_38", Dt = "_thumb_yv464_50", Rt = "_text_yv464_67", R = {
712
- label: Mt,
713
- disabled: Wt,
714
- track: qt,
715
- input: Pt,
716
- thumb: Dt,
717
- text: Rt
711
+ const Ht = "_label_yv464_3", Vt = "_disabled_yv464_13", Ot = "_track_yv464_26", Ft = "_input_yv464_38", Kt = "_thumb_yv464_50", Ut = "_text_yv464_67", O = {
712
+ label: Ht,
713
+ disabled: Vt,
714
+ track: Ot,
715
+ input: Ft,
716
+ thumb: Kt,
717
+ text: Ut
718
718
  };
719
- function br({
719
+ function Li({
720
720
  children: e,
721
721
  className: n,
722
- disabled: r,
722
+ disabled: i,
723
723
  ref: a,
724
724
  ...s
725
725
  }) {
726
- const i = [R.label, r && R.disabled, n].filter(Boolean).join(" ");
727
- return /* @__PURE__ */ _("label", { className: i, children: [
726
+ const r = [O.label, i && O.disabled, n].filter(Boolean).join(" ");
727
+ return /* @__PURE__ */ _("label", { className: r, children: [
728
728
  /* @__PURE__ */ t(
729
729
  "input",
730
730
  {
731
731
  ref: a,
732
732
  type: "checkbox",
733
733
  role: "switch",
734
- className: `psi-sr-only ${R.input}`,
735
- disabled: r,
734
+ className: `psi-sr-only ${O.input}`,
735
+ disabled: i,
736
736
  ...s
737
737
  }
738
738
  ),
739
- /* @__PURE__ */ t("span", { className: R.track, "aria-hidden": "true", children: /* @__PURE__ */ t("span", { className: R.thumb }) }),
740
- e && /* @__PURE__ */ t("span", { className: R.text, children: e })
739
+ /* @__PURE__ */ t("span", { className: O.track, "aria-hidden": "true", children: /* @__PURE__ */ t("span", { className: O.thumb }) }),
740
+ e && /* @__PURE__ */ t("span", { className: O.text, children: e })
741
741
  ] });
742
742
  }
743
- const Ht = "_tag_1r2xw_3", Vt = "_dismiss_1r2xw_17", Ft = "_neutral_1r2xw_43", Kt = "_accent_1r2xw_48", Ot = "_success_1r2xw_53", Ut = "_warning_1r2xw_58", Yt = "_danger_1r2xw_63", Zt = "_neutralSubtle_1r2xw_70", Gt = "_accentSubtle_1r2xw_75", Xt = "_successSubtle_1r2xw_80", Jt = "_warningSubtle_1r2xw_85", Qt = "_dangerSubtle_1r2xw_90", B = {
744
- tag: Ht,
745
- dismiss: Vt,
746
- neutral: Ft,
747
- accent: Kt,
748
- success: Ot,
749
- warning: Ut,
750
- danger: Yt,
751
- neutralSubtle: Zt,
752
- accentSubtle: Gt,
753
- successSubtle: Xt,
754
- warningSubtle: Jt,
755
- dangerSubtle: Qt
756
- }, eo = {
757
- neutral: B.neutral,
758
- accent: B.accent,
759
- success: B.success,
760
- warning: B.warning,
761
- danger: B.danger
762
- }, no = {
763
- neutral: B.neutralSubtle,
764
- accent: B.accentSubtle,
765
- success: B.successSubtle,
766
- warning: B.warningSubtle,
767
- danger: B.dangerSubtle
743
+ const Gt = "_tag_1r2xw_3", Yt = "_dismiss_1r2xw_17", Zt = "_neutral_1r2xw_43", Xt = "_accent_1r2xw_48", Jt = "_success_1r2xw_53", Qt = "_warning_1r2xw_58", eo = "_danger_1r2xw_63", no = "_neutralSubtle_1r2xw_70", to = "_accentSubtle_1r2xw_75", oo = "_successSubtle_1r2xw_80", ro = "_warningSubtle_1r2xw_85", io = "_dangerSubtle_1r2xw_90", S = {
744
+ tag: Gt,
745
+ dismiss: Yt,
746
+ neutral: Zt,
747
+ accent: Xt,
748
+ success: Jt,
749
+ warning: Qt,
750
+ danger: eo,
751
+ neutralSubtle: no,
752
+ accentSubtle: to,
753
+ successSubtle: oo,
754
+ warningSubtle: ro,
755
+ dangerSubtle: io
756
+ }, so = {
757
+ neutral: S.neutral,
758
+ accent: S.accent,
759
+ success: S.success,
760
+ warning: S.warning,
761
+ danger: S.danger
762
+ }, ao = {
763
+ neutral: S.neutralSubtle,
764
+ accent: S.accentSubtle,
765
+ success: S.successSubtle,
766
+ warning: S.warningSubtle,
767
+ danger: S.dangerSubtle
768
768
  };
769
- function yr({
769
+ function Ci({
770
770
  variant: e = "neutral",
771
771
  subtle: n = !1,
772
- onDismiss: r,
772
+ onDismiss: i,
773
773
  className: a,
774
774
  children: s,
775
- ref: i,
775
+ ref: r,
776
776
  ...o
777
777
  }) {
778
- const c = n ? no : eo, l = [B.tag, c[e], a].filter(Boolean).join(" ");
779
- return /* @__PURE__ */ _("span", { ref: i, className: l, ...o, children: [
778
+ const c = n ? ao : so, d = [S.tag, c[e], a].filter(Boolean).join(" ");
779
+ return /* @__PURE__ */ _("span", { ref: r, className: d, ...o, children: [
780
780
  s,
781
- r && /* @__PURE__ */ t(
781
+ i && /* @__PURE__ */ t(
782
782
  "button",
783
783
  {
784
784
  type: "button",
785
- className: B.dismiss,
786
- onClick: r,
785
+ className: S.dismiss,
786
+ onClick: i,
787
787
  "aria-label": "Dismiss",
788
788
  children: /* @__PURE__ */ _(
789
789
  "svg",
@@ -807,83 +807,88 @@ function yr({
807
807
  )
808
808
  ] });
809
809
  }
810
- const to = "_wrapper_1eu6z_3", oo = "_tooltip_1eu6z_10", io = "_top_1eu6z_24", ro = "_bottom_1eu6z_31", so = "_left_1eu6z_38", ao = "_right_1eu6z_45", F = {
811
- wrapper: to,
812
- tooltip: oo,
813
- top: io,
814
- bottom: ro,
815
- left: so,
816
- right: ao
817
- }, co = {
818
- top: F.top,
819
- bottom: F.bottom,
820
- left: F.left,
821
- right: F.right
822
- }, lo = 150;
823
- function wr({
810
+ const co = "_wrapper_1eu6z_3", lo = "_tooltip_1eu6z_10", uo = "_top_1eu6z_24", ho = "_bottom_1eu6z_31", _o = "_left_1eu6z_38", fo = "_right_1eu6z_45", U = {
811
+ wrapper: co,
812
+ tooltip: lo,
813
+ top: uo,
814
+ bottom: ho,
815
+ left: _o,
816
+ right: fo
817
+ }, po = {
818
+ top: U.top,
819
+ bottom: U.bottom,
820
+ left: U.left,
821
+ right: U.right
822
+ }, go = 150;
823
+ function Si({
824
824
  content: e,
825
825
  children: n,
826
- placement: r = "top"
826
+ placement: i = "top"
827
827
  }) {
828
- const [a, s] = Ne(!1), i = q(), o = N(void 0), c = b(() => {
828
+ const [a, s] = se(!1), r = R(), o = L(void 0), c = w(() => {
829
829
  o.current !== void 0 && (window.clearTimeout(o.current), o.current = void 0);
830
- }, []), l = b(() => s(!0), []), d = b(() => s(!1), []);
830
+ }, []), d = w(() => s(!0), []), l = w(() => s(!1), []);
831
831
  C(() => c, [c]), C(() => {
832
832
  if (!a) return;
833
- const h = (p) => {
834
- p.key === "Escape" && d();
833
+ const h = (f) => {
834
+ f.key === "Escape" && l();
835
835
  };
836
836
  return document.addEventListener("keydown", h), () => document.removeEventListener("keydown", h);
837
- }, [a, d]);
837
+ }, [a, l]);
838
838
  const u = de(n, {
839
- "aria-describedby": a ? i : void 0,
839
+ "aria-describedby": a ? r : void 0,
840
840
  onMouseEnter: (h) => {
841
- c(), o.current = window.setTimeout(l, lo);
842
- const p = n.props.onMouseEnter;
843
- p == null || p(h);
841
+ c(), o.current = window.setTimeout(d, go);
842
+ const f = n.props.onMouseEnter;
843
+ f == null || f(h);
844
844
  },
845
845
  onMouseLeave: (h) => {
846
- c(), d();
847
- const p = n.props.onMouseLeave;
848
- p == null || p(h);
846
+ c(), l();
847
+ const f = n.props.onMouseLeave;
848
+ f == null || f(h);
849
849
  },
850
850
  onFocus: (h) => {
851
- l();
852
- const p = n.props.onFocus;
853
- p == null || p(h);
851
+ d();
852
+ const f = n.props.onFocus;
853
+ f == null || f(h);
854
854
  },
855
855
  onBlur: (h) => {
856
- c(), d();
857
- const p = n.props.onBlur;
858
- p == null || p(h);
856
+ c(), l();
857
+ const f = n.props.onBlur;
858
+ f == null || f(h);
859
859
  }
860
860
  });
861
- return /* @__PURE__ */ _("span", { className: F.wrapper, children: [
861
+ return /* @__PURE__ */ _("span", { className: U.wrapper, children: [
862
862
  u,
863
863
  a && /* @__PURE__ */ t(
864
864
  "span",
865
865
  {
866
- id: i,
866
+ id: r,
867
867
  role: "tooltip",
868
- className: [F.tooltip, co[r]].filter(Boolean).join(" "),
868
+ className: [U.tooltip, po[i]].filter(Boolean).join(" "),
869
869
  children: e
870
870
  }
871
871
  )
872
872
  ] });
873
873
  }
874
- const uo = "_toolbar_oljum_1", ho = "_gap8_oljum_7", _o = "_gap12_oljum_8", fo = "_gap16_oljum_9", po = "_alignEnd_oljum_13", G = {
875
- toolbar: uo,
876
- gap8: ho,
877
- gap12: _o,
878
- gap16: fo,
879
- alignEnd: po
880
- }, go = { 8: G.gap8, 12: G.gap12, 16: G.gap16 };
881
- function xr({ gap: e = 8, align: n = "center", as: r = "div", className: a, children: s, ref: i, ...o }) {
882
- const c = [G.toolbar, go[e], n === "end" ? G.alignEnd : void 0, a].filter(Boolean).join(" ");
883
- return r === "form" ? /* @__PURE__ */ t("form", { ref: i, className: c, ...o, children: s }) : /* @__PURE__ */ t(
874
+ const mo = "_toolbar_8bwkv_1", bo = "_gap8_8bwkv_7", vo = "_gap12_8bwkv_8", yo = "_gap16_8bwkv_9", wo = "_alignEnd_8bwkv_13", xo = "_alignStart_8bwkv_19", G = {
875
+ toolbar: mo,
876
+ gap8: bo,
877
+ gap12: vo,
878
+ gap16: yo,
879
+ alignEnd: wo,
880
+ alignStart: xo
881
+ }, ko = { 8: G.gap8, 12: G.gap12, 16: G.gap16 }, No = {
882
+ center: void 0,
883
+ end: G.alignEnd,
884
+ start: G.alignStart
885
+ };
886
+ function ji({ gap: e = 8, align: n = "center", as: i = "div", className: a, children: s, ref: r, ...o }) {
887
+ const c = [G.toolbar, ko[e], No[n], a].filter(Boolean).join(" ");
888
+ return i === "form" ? /* @__PURE__ */ t("form", { ref: r, className: c, ...o, children: s }) : /* @__PURE__ */ t(
884
889
  "div",
885
890
  {
886
- ref: i,
891
+ ref: r,
887
892
  role: o["aria-label"] != null ? "group" : void 0,
888
893
  className: c,
889
894
  ...o,
@@ -891,175 +896,175 @@ function xr({ gap: e = 8, align: n = "center", as: r = "div", className: a, chil
891
896
  }
892
897
  );
893
898
  }
894
- const mo = "_trigger_uxpyi_4", vo = "_menu_uxpyi_16", bo = "_item_uxpyi_37", yo = "_separator_uxpyi_82", oe = {
895
- trigger: mo,
896
- menu: vo,
897
- item: bo,
898
- separator: yo
899
- }, wo = 500;
900
- function xo({ popoverRef: e, triggerRef: n, open: r, onEsc: a }) {
901
- const s = N(""), i = N(0), o = b(() => {
902
- const d = e.current;
903
- return d ? Array.from(
904
- d.querySelectorAll('[data-psi-menu-item]:not([aria-disabled="true"])')
899
+ const $o = "_trigger_uxpyi_4", Bo = "_menu_uxpyi_16", Lo = "_item_uxpyi_37", Co = "_separator_uxpyi_82", le = {
900
+ trigger: $o,
901
+ menu: Bo,
902
+ item: Lo,
903
+ separator: Co
904
+ }, So = 500;
905
+ function jo({ popoverRef: e, triggerRef: n, open: i, onEsc: a }) {
906
+ const s = L(""), r = L(0), o = w(() => {
907
+ const l = e.current;
908
+ return l ? Array.from(
909
+ l.querySelectorAll('[data-psi-menu-item]:not([aria-disabled="true"])')
905
910
  ) : [];
906
- }, [e]), c = b(
907
- (d) => {
908
- if (d) {
909
- for (const u of o()) u.tabIndex = u === d ? 0 : -1;
910
- d.focus();
911
+ }, [e]), c = w(
912
+ (l) => {
913
+ if (l) {
914
+ for (const u of o()) u.tabIndex = u === l ? 0 : -1;
915
+ l.focus();
911
916
  }
912
917
  },
913
918
  [o]
914
- ), l = b(() => {
919
+ ), d = w(() => {
915
920
  var u;
916
- const d = (u = n.current) == null ? void 0 : u.querySelector("button, a, [tabindex]");
917
- d == null || d.focus();
921
+ const l = (u = n.current) == null ? void 0 : u.querySelector("button, a, [tabindex]");
922
+ l == null || l.focus();
918
923
  }, [n]);
919
924
  return C(() => {
920
- if (!r) return;
921
- const d = o();
922
- return c(d[0]), () => {
925
+ if (!i) return;
926
+ const l = o();
927
+ return c(l[0]), () => {
923
928
  var u;
924
- (u = e.current) != null && u.contains(document.activeElement) && l();
929
+ (u = e.current) != null && u.contains(document.activeElement) && d();
925
930
  };
926
- }, [r, e, o, c, l]), b(
927
- (d) => {
928
- if (d.key === "Escape") {
929
- d.preventDefault(), a();
931
+ }, [i, e, o, c, d]), w(
932
+ (l) => {
933
+ if (l.key === "Escape") {
934
+ l.preventDefault(), a();
930
935
  return;
931
936
  }
932
937
  const u = o();
933
938
  if (u.length === 0) return;
934
939
  const h = u.indexOf(document.activeElement);
935
- switch (d.key) {
940
+ switch (l.key) {
936
941
  case "ArrowDown":
937
- d.preventDefault(), c(u[(h + 1 + u.length) % u.length]);
942
+ l.preventDefault(), c(u[(h + 1 + u.length) % u.length]);
938
943
  return;
939
944
  case "ArrowUp":
940
- d.preventDefault(), c(u[h <= 0 ? u.length - 1 : h - 1]);
945
+ l.preventDefault(), c(u[h <= 0 ? u.length - 1 : h - 1]);
941
946
  return;
942
947
  case "Home":
943
- d.preventDefault(), c(u[0]);
948
+ l.preventDefault(), c(u[0]);
944
949
  return;
945
950
  case "End":
946
- d.preventDefault(), c(u[u.length - 1]);
951
+ l.preventDefault(), c(u[u.length - 1]);
947
952
  return;
948
953
  }
949
- if (d.key.length !== 1 || d.metaKey || d.ctrlKey || d.altKey) return;
950
- const p = Date.now();
951
- s.current = p - i.current > wo ? d.key.toLowerCase() : s.current + d.key.toLowerCase(), i.current = p;
952
- const v = u.find(
953
- (w) => (w.textContent ?? "").trim().toLowerCase().startsWith(s.current)
954
+ if (l.key.length !== 1 || l.metaKey || l.ctrlKey || l.altKey) return;
955
+ const f = Date.now();
956
+ s.current = f - r.current > So ? l.key.toLowerCase() : s.current + l.key.toLowerCase(), r.current = f;
957
+ const g = u.find(
958
+ (b) => (b.textContent ?? "").trim().toLowerCase().startsWith(s.current)
954
959
  );
955
- v && (d.preventDefault(), c(v));
960
+ g && (l.preventDefault(), c(g));
956
961
  },
957
962
  [o, c, a]
958
963
  );
959
964
  }
960
- function ko() {
965
+ function To() {
961
966
  return typeof CSS < "u" && CSS.supports("anchor-name", "--x");
962
967
  }
963
- function No({ popoverRef: e, triggerRef: n, open: r, placement: a, anchorName: s }) {
968
+ function zo({ popoverRef: e, triggerRef: n, open: i, placement: a, anchorName: s }) {
964
969
  C(() => {
965
- const i = n.current, o = e.current;
966
- !i || !o || (i.style.setProperty("anchor-name", s), o.style.setProperty("position-anchor", s));
970
+ const r = n.current, o = e.current;
971
+ !r || !o || (r.style.setProperty("anchor-name", s), o.style.setProperty("position-anchor", s));
967
972
  }, [e, n, s]), C(() => {
968
- if (!r || ko()) return;
969
- const i = n.current, o = e.current;
970
- if (!i || !o) return;
973
+ if (!i || To()) return;
974
+ const r = n.current, o = e.current;
975
+ if (!r || !o) return;
971
976
  const c = () => {
972
- const l = i.getBoundingClientRect(), d = a.startsWith("bottom"), u = a.endsWith("end"), h = getComputedStyle(i).direction === "rtl", p = u !== h;
973
- o.style.position = "fixed", o.style.top = d ? `${l.bottom}px` : "", o.style.bottom = d ? "" : `${window.innerHeight - l.top}px`, o.style.left = p ? "" : `${l.left}px`, o.style.right = p ? `${window.innerWidth - l.right}px` : "";
977
+ const d = r.getBoundingClientRect(), l = a.startsWith("bottom"), u = a.endsWith("end"), h = getComputedStyle(r).direction === "rtl", f = u !== h;
978
+ o.style.position = "fixed", o.style.top = l ? `${d.bottom}px` : "", o.style.bottom = l ? "" : `${window.innerHeight - d.top}px`, o.style.left = f ? "" : `${d.left}px`, o.style.right = f ? `${window.innerWidth - d.right}px` : "";
974
979
  };
975
980
  return c(), window.addEventListener("scroll", c, !0), window.addEventListener("resize", c), () => {
976
981
  window.removeEventListener("scroll", c, !0), window.removeEventListener("resize", c);
977
982
  };
978
- }, [r, a, e, n]);
983
+ }, [i, a, e, n]);
979
984
  }
980
- const Be = K({ close: () => {
985
+ const Se = Z({ close: () => {
981
986
  } });
982
- function ye(e) {
987
+ function Ne(e) {
983
988
  return e.hasAttribute("data-open") || e.matches(":popover-open");
984
989
  }
985
- function kr({
990
+ function Ti({
986
991
  open: e,
987
992
  onClose: n,
988
- trigger: r,
993
+ trigger: i,
989
994
  placement: a = "bottom-start",
990
995
  children: s,
991
- className: i,
996
+ className: r,
992
997
  ref: o,
993
998
  ...c
994
999
  }) {
995
- const l = N(null), d = N(null), u = N(!1), h = `--psi-menu-${q().replace(/:/g, "")}`;
996
- No({ popoverRef: l, triggerRef: d, open: e, placement: a, anchorName: h });
997
- const p = (f) => {
998
- l.current = f, typeof o == "function" ? o(f) : o && (o.current = f);
1000
+ const d = L(null), l = L(null), u = L(!1), h = `--psi-menu-${R().replace(/:/g, "")}`;
1001
+ zo({ popoverRef: d, triggerRef: l, open: e, placement: a, anchorName: h });
1002
+ const f = (x) => {
1003
+ d.current = x, typeof o == "function" ? o(x) : o && (o.current = x);
999
1004
  };
1000
1005
  C(() => {
1001
- const f = l.current;
1002
- if (!f) return;
1003
- const g = ye(f);
1004
- e && !g ? f.showPopover() : !e && g && (u.current = !0, f.hidePopover());
1006
+ const x = d.current;
1007
+ if (!x) return;
1008
+ const A = Ne(x);
1009
+ e && !A ? x.showPopover() : !e && A && (u.current = !0, x.hidePopover());
1005
1010
  }, [e]);
1006
- const v = b(() => {
1007
- const f = l.current;
1008
- if (f) {
1011
+ const g = w(() => {
1012
+ const x = d.current;
1013
+ if (x) {
1009
1014
  if (u.current) {
1010
1015
  u.current = !1;
1011
1016
  return;
1012
1017
  }
1013
- ye(f) || e && n("outside");
1018
+ Ne(x) || e && n("outside");
1014
1019
  }
1015
- }, [n, e]), w = xo({
1016
- popoverRef: l,
1017
- triggerRef: d,
1020
+ }, [n, e]), b = jo({
1021
+ popoverRef: d,
1022
+ triggerRef: l,
1018
1023
  open: e,
1019
1024
  onEsc: () => n("esc")
1020
- }), $ = b(
1021
- (f) => {
1022
- n(f);
1025
+ }), v = w(
1026
+ (x) => {
1027
+ n(x);
1023
1028
  },
1024
1029
  [n]
1025
- ), k = X(r);
1030
+ ), N = Y(i);
1026
1031
  C(() => {
1027
- k || console.warn(
1032
+ N || console.warn(
1028
1033
  "Psi Menu: `trigger` must be a single React element that forwards props to a focusable node. Menu clones it to attach aria-haspopup and aria-expanded; a string, fragment or array cannot carry them, so the menu renders without its trigger ARIA."
1029
1034
  );
1030
- }, [k]);
1031
- const m = k ? de(r, { "aria-haspopup": "menu", "aria-expanded": e }) : r;
1032
- return /* @__PURE__ */ _(ne, { children: [
1033
- /* @__PURE__ */ t("div", { ref: d, className: oe.trigger, "data-psi-menu-trigger": !0, children: m }),
1035
+ }, [N]);
1036
+ const y = N ? de(i, { "aria-haspopup": "menu", "aria-expanded": e }) : i;
1037
+ return /* @__PURE__ */ _(ie, { children: [
1038
+ /* @__PURE__ */ t("div", { ref: l, className: le.trigger, "data-psi-menu-trigger": !0, children: y }),
1034
1039
  /* @__PURE__ */ t(
1035
1040
  "div",
1036
1041
  {
1037
1042
  ...c,
1038
- ref: p,
1043
+ ref: f,
1039
1044
  popover: "auto",
1040
1045
  role: "menu",
1041
1046
  "data-psi-menu": !0,
1042
1047
  "data-placement": a,
1043
- className: [oe.menu, i].filter(Boolean).join(" "),
1044
- onToggle: v,
1045
- onKeyDown: w,
1046
- children: /* @__PURE__ */ t(Be.Provider, { value: { close: $ }, children: s })
1048
+ className: [le.menu, r].filter(Boolean).join(" "),
1049
+ onToggle: g,
1050
+ onKeyDown: b,
1051
+ children: /* @__PURE__ */ t(Se.Provider, { value: { close: v }, children: s })
1047
1052
  }
1048
1053
  )
1049
1054
  ] });
1050
1055
  }
1051
- function Nr({ children: e, onSelect: n, variant: r = "neutral", disabled: a = !1 }) {
1052
- const { close: s } = L(Be);
1056
+ function zi({ children: e, onSelect: n, variant: i = "neutral", disabled: a = !1 }) {
1057
+ const { close: s } = j(Se);
1053
1058
  return /* @__PURE__ */ t(
1054
1059
  "button",
1055
1060
  {
1056
1061
  type: "button",
1057
1062
  role: "menuitem",
1058
1063
  "data-psi-menu-item": !0,
1059
- "data-variant": r,
1064
+ "data-variant": i,
1060
1065
  "aria-disabled": a || void 0,
1061
1066
  tabIndex: -1,
1062
- className: oe.item,
1067
+ className: le.item,
1063
1068
  onClick: () => {
1064
1069
  a || (n(), s("item-select"));
1065
1070
  },
@@ -1067,588 +1072,600 @@ function Nr({ children: e, onSelect: n, variant: r = "neutral", disabled: a = !1
1067
1072
  }
1068
1073
  );
1069
1074
  }
1070
- function $r() {
1071
- return /* @__PURE__ */ t("div", { role: "separator", "data-psi-menu-separator": !0, className: oe.separator });
1072
- }
1073
- const $o = "_table_1maek_3", Bo = "_caption_1maek_19", Lo = "_captionDetail_1maek_27", Co = "_headerCell_1maek_38", So = "_cell_1maek_44", jo = "_rowHeader_1maek_51", zo = "_sortButton_1maek_62", To = "_sortIndicator_1maek_79", Io = "_selectCell_1maek_123", Eo = "_body_1maek_130", Ao = "_row_1maek_51", Mo = "_sticky_1maek_155", y = {
1074
- table: $o,
1075
- caption: Bo,
1076
- captionDetail: Lo,
1077
- headerCell: Co,
1078
- cell: So,
1079
- rowHeader: jo,
1080
- sortButton: zo,
1081
- sortIndicator: To,
1082
- selectCell: Io,
1083
- body: Eo,
1084
- row: Ao,
1085
- sticky: Mo
1086
- }, Le = /* @__PURE__ */ new Set(), O = K({
1075
+ function Ii() {
1076
+ return /* @__PURE__ */ t("div", { role: "separator", "data-psi-menu-separator": !0, className: le.separator });
1077
+ }
1078
+ const Io = "_table_1maek_3", Eo = "_caption_1maek_19", Ao = "_captionDetail_1maek_27", Mo = "_headerCell_1maek_38", Wo = "_cell_1maek_44", Do = "_rowHeader_1maek_51", Po = "_sortButton_1maek_62", qo = "_sortIndicator_1maek_79", Ro = "_selectCell_1maek_123", Ho = "_body_1maek_130", Vo = "_row_1maek_51", Oo = "_sticky_1maek_155", $ = {
1079
+ table: Io,
1080
+ caption: Eo,
1081
+ captionDetail: Ao,
1082
+ headerCell: Mo,
1083
+ cell: Wo,
1084
+ rowHeader: Do,
1085
+ sortButton: Po,
1086
+ sortIndicator: qo,
1087
+ selectCell: Ro,
1088
+ body: Ho,
1089
+ row: Vo,
1090
+ sticky: Oo
1091
+ }, je = /* @__PURE__ */ new Set(), X = Z({
1087
1092
  size: 40,
1088
1093
  sortable: !1,
1089
1094
  sort: null,
1090
1095
  selectable: !1,
1091
- selected: Le
1092
- }), Ce = K([]);
1093
- function Wo({ children: e, className: n, ref: r, ...a }) {
1094
- return /* @__PURE__ */ t("tbody", { ...a, ref: r, className: [y.body, n].filter(Boolean).join(" "), children: e });
1096
+ selected: je
1097
+ }), Te = Z([]);
1098
+ function Fo({ children: e, className: n, ref: i, ...a }) {
1099
+ return /* @__PURE__ */ t("tbody", { ...a, ref: i, className: [$.body, n].filter(Boolean).join(" "), children: e });
1095
1100
  }
1096
- function qo(e) {
1101
+ function Ko(e) {
1097
1102
  const n = [];
1098
- let r = !1, a = !1;
1099
- const s = (i) => {
1100
- W.forEach(i, function o(c) {
1101
- if (!X(c)) return;
1102
- if (c.type === ve) {
1103
- W.forEach(c.props.children, o);
1103
+ let i = !1, a = !1;
1104
+ const s = (r) => {
1105
+ q.forEach(r, function o(c) {
1106
+ if (!Y(c)) return;
1107
+ if (c.type === pe) {
1108
+ q.forEach(c.props.children, o);
1104
1109
  return;
1105
1110
  }
1106
- const l = c.props.rowId;
1107
- typeof l == "string" ? n.push(l) : a = !0;
1111
+ const d = c.props.rowId;
1112
+ typeof d == "string" ? n.push(d) : a = !0;
1108
1113
  });
1109
1114
  };
1110
- return W.forEach(e, function i(o) {
1111
- if (X(o)) {
1112
- if (o.type === ve) {
1113
- W.forEach(o.props.children, i);
1115
+ return q.forEach(e, function r(o) {
1116
+ if (Y(o)) {
1117
+ if (o.type === pe) {
1118
+ q.forEach(o.props.children, r);
1114
1119
  return;
1115
1120
  }
1116
- o.type === Wo && (r = !0, s(o.props.children));
1121
+ o.type === Fo && (i = !0, s(o.props.children));
1117
1122
  }
1118
- }), { ids: n, sawBody: r, hasRowWithoutId: a };
1123
+ }), { ids: n, sawBody: i, hasRowWithoutId: a };
1119
1124
  }
1120
- function Br({
1125
+ function Ei({
1121
1126
  size: e = 40,
1122
1127
  stickyHeader: n,
1123
- sortable: r = !1,
1128
+ sortable: i = !1,
1124
1129
  sort: a = null,
1125
1130
  onSortChange: s,
1126
- selectable: i = !1,
1127
- selected: o = Le,
1131
+ selectable: r = !1,
1132
+ selected: o = je,
1128
1133
  onSelectionChange: c,
1129
- children: l,
1130
- className: d,
1134
+ children: d,
1135
+ className: l,
1131
1136
  ref: u,
1132
1137
  ...h
1133
1138
  }) {
1134
- const p = [y.table, n && y.sticky, d].filter(Boolean).join(" "), { ids: v, sawBody: w, hasRowWithoutId: $ } = ue(() => qo(l), [l]);
1135
- return process.env.NODE_ENV !== "production" && (r && !s && console.warn("Psi Table: `sortable` is set without `onSortChange`; sorting will not respond."), i && !c && console.warn("Psi Table: `selectable` is set without `onSelectionChange`; selection will not respond."), i && !w && console.warn("Psi Table: `selectable` is set but no `TableBody` is visible to `Table`. Wrapping `TableBody` in a component other than a Fragment hides its rows, and select-all will clear the selection instead of filling it."), i && $ && console.warn("Psi Table: `selectable` is set but a row in `TableBody` has no `rowId`. That row will render without a selection checkbox and select-all will not include it.")), /* @__PURE__ */ t(O.Provider, { value: { size: e, sortable: r, sort: a, onSortChange: s, selectable: i, selected: o, onSelectionChange: c }, children: /* @__PURE__ */ t(Ce.Provider, { value: v, children: /* @__PURE__ */ t("table", { ...h, ref: u, className: p, "data-size": e, children: l }) }) });
1139
+ const f = [$.table, n && $.sticky, l].filter(Boolean).join(" "), { ids: g, sawBody: b, hasRowWithoutId: v } = ae(() => Ko(d), [d]);
1140
+ return process.env.NODE_ENV !== "production" && (i && !s && console.warn("Psi Table: `sortable` is set without `onSortChange`; sorting will not respond."), r && !c && console.warn("Psi Table: `selectable` is set without `onSelectionChange`; selection will not respond."), r && !b && console.warn("Psi Table: `selectable` is set but no `TableBody` is visible to `Table`. Wrapping `TableBody` in a component other than a Fragment hides its rows, and select-all will clear the selection instead of filling it."), r && v && console.warn("Psi Table: `selectable` is set but a row in `TableBody` has no `rowId`. That row will render without a selection checkbox and select-all will not include it.")), /* @__PURE__ */ t(X.Provider, { value: { size: e, sortable: i, sort: a, onSortChange: s, selectable: r, selected: o, onSelectionChange: c }, children: /* @__PURE__ */ t(Te.Provider, { value: g, children: /* @__PURE__ */ t("table", { ...h, ref: u, className: f, "data-size": e, children: d }) }) });
1136
1141
  }
1137
- function Po({ rowId: e, label: n }) {
1138
- const { selected: r, onSelectionChange: a } = L(O), s = () => {
1139
- const i = new Set(r);
1140
- i.has(e) ? i.delete(e) : i.add(e), a == null || a(i);
1142
+ function Uo({ rowId: e, label: n }) {
1143
+ const { selected: i, onSelectionChange: a } = j(X), s = () => {
1144
+ const r = new Set(i);
1145
+ r.has(e) ? r.delete(e) : r.add(e), a == null || a(r);
1141
1146
  };
1142
- return /* @__PURE__ */ t("td", { className: `${y.cell} ${y.selectCell}`, children: /* @__PURE__ */ t($e, { "aria-label": n, checked: r.has(e), onChange: s }) });
1147
+ return /* @__PURE__ */ t("td", { className: `${$.cell} ${$.selectCell}`, children: /* @__PURE__ */ t(Ce, { "aria-label": n, checked: i.has(e), onChange: s }) });
1143
1148
  }
1144
- function Do() {
1145
- const { selected: e, onSelectionChange: n } = L(O), r = L(Ce), a = N(null), s = r.length > 0 && r.every((c) => e.has(c)), i = r.some((c) => e.has(c));
1149
+ function Go() {
1150
+ const { selected: e, onSelectionChange: n } = j(X), i = j(Te), a = L(null), s = i.length > 0 && i.every((c) => e.has(c)), r = i.some((c) => e.has(c));
1146
1151
  C(() => {
1147
- a.current && (a.current.indeterminate = i && !s);
1148
- }, [i, s]);
1152
+ a.current && (a.current.indeterminate = r && !s);
1153
+ }, [r, s]);
1149
1154
  const o = () => {
1150
1155
  const c = new Set(e);
1151
- s ? r.forEach((l) => c.delete(l)) : r.forEach((l) => c.add(l)), n == null || n(c);
1156
+ s ? i.forEach((d) => c.delete(d)) : i.forEach((d) => c.add(d)), n == null || n(c);
1152
1157
  };
1153
- return /* @__PURE__ */ t("th", { scope: "col", className: `${y.headerCell} ${y.selectCell}`, children: /* @__PURE__ */ t($e, { ref: a, "aria-label": "Select all rows", checked: s, onChange: o }) });
1154
- }
1155
- function Lr({ children: e, className: n, ref: r, ...a }) {
1156
- const { selectable: s } = L(O);
1157
- let i = !1;
1158
- const o = s ? W.map(e, (c) => {
1159
- if (i || !X(c)) return c;
1160
- i = !0;
1161
- const l = c;
1158
+ return /* @__PURE__ */ t("th", { scope: "col", className: `${$.headerCell} ${$.selectCell}`, children: /* @__PURE__ */ t(Ce, { ref: a, "aria-label": "Select all rows", checked: s, onChange: o }) });
1159
+ }
1160
+ function Ai({ children: e, className: n, ref: i, ...a }) {
1161
+ const { selectable: s } = j(X);
1162
+ let r = !1;
1163
+ const o = s ? q.map(e, (c) => {
1164
+ if (r || !Y(c)) return c;
1165
+ r = !0;
1166
+ const d = c;
1162
1167
  return de(
1163
- l,
1168
+ d,
1164
1169
  void 0,
1165
- /* @__PURE__ */ _(ne, { children: [
1166
- /* @__PURE__ */ t(Do, {}),
1167
- l.props.children
1170
+ /* @__PURE__ */ _(ie, { children: [
1171
+ /* @__PURE__ */ t(Go, {}),
1172
+ d.props.children
1168
1173
  ] })
1169
1174
  );
1170
1175
  }) : e;
1171
- return /* @__PURE__ */ t("thead", { ...a, ref: r, className: [y.head, n].filter(Boolean).join(" "), children: o });
1176
+ return /* @__PURE__ */ t("thead", { ...a, ref: i, className: [$.head, n].filter(Boolean).join(" "), children: o });
1172
1177
  }
1173
- function Cr({ rowId: e, selectLabel: n, children: r, className: a, ref: s, ...i }) {
1174
- const { selectable: o, selected: c } = L(O), l = e !== void 0 && c.has(e);
1178
+ function Mi({ rowId: e, selectLabel: n, children: i, className: a, ref: s, ...r }) {
1179
+ const { selectable: o, selected: c } = j(X), d = e !== void 0 && c.has(e);
1175
1180
  return /* @__PURE__ */ _(
1176
1181
  "tr",
1177
1182
  {
1178
- ...i,
1183
+ ...r,
1179
1184
  ref: s,
1180
- className: [y.row, a].filter(Boolean).join(" "),
1185
+ className: [$.row, a].filter(Boolean).join(" "),
1181
1186
  "data-row-id": e,
1182
- "data-selected": l || void 0,
1187
+ "data-selected": d || void 0,
1183
1188
  children: [
1184
- o && e !== void 0 && /* @__PURE__ */ t(Po, { rowId: e, label: n ?? `Select row ${e}` }),
1185
- r
1189
+ o && e !== void 0 && /* @__PURE__ */ t(Uo, { rowId: e, label: n ?? `Select row ${e}` }),
1190
+ i
1186
1191
  ]
1187
1192
  }
1188
1193
  );
1189
1194
  }
1190
- function Sr({ sortKey: e, numeric: n, children: r, className: a, ref: s, ...i }) {
1191
- const { sortable: o, sort: c, onSortChange: l } = L(O), d = o && e !== void 0, u = d && (c == null ? void 0 : c.key) === e, h = d ? u ? c.direction === "asc" ? "ascending" : "descending" : "none" : void 0, p = () => {
1195
+ function Wi({ sortKey: e, numeric: n, children: i, className: a, ref: s, ...r }) {
1196
+ const { sortable: o, sort: c, onSortChange: d } = j(X), l = o && e !== void 0, u = l && (c == null ? void 0 : c.key) === e, h = l ? u ? c.direction === "asc" ? "ascending" : "descending" : "none" : void 0, f = () => {
1192
1197
  if (!e) return;
1193
- const v = u && c.direction === "asc" ? "desc" : "asc";
1194
- l == null || l({ key: e, direction: v });
1198
+ const g = u && c.direction === "asc" ? "desc" : "asc";
1199
+ d == null || d({ key: e, direction: g });
1195
1200
  };
1196
1201
  return /* @__PURE__ */ t(
1197
1202
  "th",
1198
1203
  {
1199
- ...i,
1204
+ ...r,
1200
1205
  ref: s,
1201
1206
  scope: "col",
1202
- className: [y.headerCell, a].filter(Boolean).join(" "),
1207
+ className: [$.headerCell, a].filter(Boolean).join(" "),
1203
1208
  "data-numeric": n || void 0,
1204
1209
  "aria-sort": h,
1205
- children: d ? /* @__PURE__ */ _("button", { type: "button", className: y.sortButton, onClick: p, children: [
1206
- r,
1207
- /* @__PURE__ */ t("span", { className: y.sortIndicator, "aria-hidden": "true", children: u ? c.direction === "asc" ? "↑" : "↓" : "" })
1208
- ] }) : r
1210
+ children: l ? /* @__PURE__ */ _("button", { type: "button", className: $.sortButton, onClick: f, children: [
1211
+ i,
1212
+ /* @__PURE__ */ t("span", { className: $.sortIndicator, "aria-hidden": "true", children: u ? c.direction === "asc" ? "↑" : "↓" : "" })
1213
+ ] }) : i
1209
1214
  }
1210
1215
  );
1211
1216
  }
1212
- function jr({ numeric: e, colSpan: n, rowHeader: r, children: a, className: s, ref: i, ...o }) {
1213
- const c = [y.cell, r && y.rowHeader, s].filter(Boolean).join(" ");
1214
- return r ? /* @__PURE__ */ t("th", { ...o, ref: i, scope: "row", colSpan: n, className: c, "data-numeric": e || void 0, children: a }) : /* @__PURE__ */ t("td", { ...o, ref: i, colSpan: n, className: c, "data-numeric": e || void 0, children: a });
1217
+ function Di({ numeric: e, colSpan: n, rowHeader: i, children: a, className: s, ref: r, ...o }) {
1218
+ const c = [$.cell, i && $.rowHeader, s].filter(Boolean).join(" ");
1219
+ return i ? /* @__PURE__ */ t("th", { ...o, ref: r, scope: "row", colSpan: n, className: c, "data-numeric": e || void 0, children: a }) : /* @__PURE__ */ t("td", { ...o, ref: r, colSpan: n, className: c, "data-numeric": e || void 0, children: a });
1215
1220
  }
1216
- function zr({ children: e, detail: n, className: r, ref: a, ...s }) {
1217
- return /* @__PURE__ */ _("caption", { ...s, ref: a, className: [y.caption, r].filter(Boolean).join(" "), children: [
1221
+ function Pi({ children: e, detail: n, className: i, ref: a, ...s }) {
1222
+ return /* @__PURE__ */ _("caption", { ...s, ref: a, className: [$.caption, i].filter(Boolean).join(" "), children: [
1218
1223
  e,
1219
- n != null && /* @__PURE__ */ t("span", { className: y.captionDetail, children: n })
1224
+ n != null && /* @__PURE__ */ t("span", { className: $.captionDetail, children: n })
1220
1225
  ] });
1221
1226
  }
1222
- const Ro = "_nav_166vs_6", Ho = "_ellipsis_166vs_12", we = {
1223
- nav: Ro,
1224
- ellipsis: Ho
1227
+ const Yo = "_nav_166vs_6", Zo = "_ellipsis_166vs_12", $e = {
1228
+ nav: Yo,
1229
+ ellipsis: Zo
1225
1230
  };
1226
- function Z(e, n) {
1227
- return Array.from({ length: n - e + 1 }, (r, a) => e + a);
1228
- }
1229
- function Vo(e, n, r) {
1230
- const a = Math.max(0, r), s = a * 2 + 1, i = s + 4;
1231
- if (n <= i)
1232
- return Z(1, n);
1233
- const o = Math.max(e - a, 1), c = Math.min(e + a, n), l = o > 3, d = c < n - 2;
1234
- if (!l && d) {
1231
+ function ne(e, n) {
1232
+ return Array.from({ length: n - e + 1 }, (i, a) => e + a);
1233
+ }
1234
+ function Xo(e, n, i) {
1235
+ const a = Math.max(0, i), s = a * 2 + 1, r = s + 4;
1236
+ if (n <= r)
1237
+ return ne(1, n);
1238
+ const o = Math.max(e - a, 1), c = Math.min(e + a, n), d = o > 3, l = c < n - 2;
1239
+ if (!d && l) {
1235
1240
  const u = Math.max(c, s);
1236
- return [...Z(1, u), "ellipsis", n];
1241
+ return [...ne(1, u), "ellipsis", n];
1237
1242
  }
1238
- if (l && !d) {
1243
+ if (d && !l) {
1239
1244
  const u = Math.min(o, n - s + 1);
1240
- return [1, "ellipsis", ...Z(u, n)];
1245
+ return [1, "ellipsis", ...ne(u, n)];
1241
1246
  }
1242
- return l && d ? [1, "ellipsis", ...Z(o, c), "ellipsis", n] : Z(1, n);
1247
+ return d && l ? [1, "ellipsis", ...ne(o, c), "ellipsis", n] : ne(1, n);
1243
1248
  }
1244
- function Tr({
1249
+ function qi({
1245
1250
  page: e,
1246
1251
  pageCount: n,
1247
- onPageChange: r,
1252
+ onPageChange: i,
1248
1253
  siblingCount: a = 1,
1249
1254
  "aria-label": s = "Pagination",
1250
- className: i
1255
+ className: r
1251
1256
  }) {
1252
- const o = n >= 1, c = Number.isFinite(e) ? e : 1, l = o ? Math.min(Math.max(c, 1), n) : 0;
1253
- process.env.NODE_ENV !== "production" && (!o || e !== l) && console.warn(
1254
- `Psi Pagination: \`page\` ${e} is out of range for \`pageCount\` ${n}; rendering page ${o ? l : "none"}. Clamp \`page\` when \`pageCount\` shrinks — e.g. after filtering.`
1257
+ const o = n >= 1, c = Number.isFinite(e) ? e : 1, d = o ? Math.min(Math.max(c, 1), n) : 0;
1258
+ process.env.NODE_ENV !== "production" && (!o || e !== d) && console.warn(
1259
+ `Psi Pagination: \`page\` ${e} is out of range for \`pageCount\` ${n}; rendering page ${o ? d : "none"}. Clamp \`page\` when \`pageCount\` shrinks — e.g. after filtering.`
1255
1260
  );
1256
- const d = o ? Vo(l, n, a) : [];
1257
- return /* @__PURE__ */ _("nav", { "aria-label": s, className: [we.nav, i].filter(Boolean).join(" "), children: [
1261
+ const l = o ? Xo(d, n, a) : [];
1262
+ return /* @__PURE__ */ _("nav", { "aria-label": s, className: [$e.nav, r].filter(Boolean).join(" "), children: [
1258
1263
  /* @__PURE__ */ t(
1259
- J,
1264
+ te,
1260
1265
  {
1261
1266
  "aria-label": "Previous page",
1262
1267
  size: 32,
1263
1268
  variant: "ghost",
1264
- disabled: !o || l <= 1,
1265
- onClick: () => r(l - 1),
1269
+ disabled: !o || d <= 1,
1270
+ onClick: () => i(d - 1),
1266
1271
  children: /* @__PURE__ */ t("svg", { "aria-hidden": "true", viewBox: "0 0 16 16", width: "16", height: "16", children: /* @__PURE__ */ t("path", { d: "M10 3 5 8l5 5", fill: "none", stroke: "currentColor", strokeWidth: "1.5" }) })
1267
1272
  }
1268
1273
  ),
1269
- d.map(
1270
- (u, h) => u === "ellipsis" ? /* @__PURE__ */ t("span", { className: we.ellipsis, "aria-hidden": "true", children: "…" }, `e${h}`) : /* @__PURE__ */ t(
1271
- te,
1274
+ l.map(
1275
+ (u, h) => u === "ellipsis" ? /* @__PURE__ */ t("span", { className: $e.ellipsis, "aria-hidden": "true", children: "…" }, `e${h}`) : /* @__PURE__ */ t(
1276
+ ce,
1272
1277
  {
1273
1278
  size: 32,
1274
- variant: u === l ? "accent-subtle" : "ghost",
1275
- "aria-current": u === l ? "page" : void 0,
1276
- onClick: () => r(u),
1279
+ variant: u === d ? "accent-subtle" : "ghost",
1280
+ "aria-current": u === d ? "page" : void 0,
1281
+ onClick: () => i(u),
1277
1282
  children: String(u)
1278
1283
  },
1279
1284
  u
1280
1285
  )
1281
1286
  ),
1282
1287
  /* @__PURE__ */ t(
1283
- J,
1288
+ te,
1284
1289
  {
1285
1290
  "aria-label": "Next page",
1286
1291
  size: 32,
1287
1292
  variant: "ghost",
1288
- disabled: !o || l >= n,
1289
- onClick: () => r(l + 1),
1293
+ disabled: !o || d >= n,
1294
+ onClick: () => i(d + 1),
1290
1295
  children: /* @__PURE__ */ t("svg", { "aria-hidden": "true", viewBox: "0 0 16 16", width: "16", height: "16", children: /* @__PURE__ */ t("path", { d: "m6 3 5 5-5 5", fill: "none", stroke: "currentColor", strokeWidth: "1.5" }) })
1291
1296
  }
1292
1297
  )
1293
1298
  ] });
1294
1299
  }
1295
- const Fo = "_nav_jbhk1_5", Ko = {
1296
- nav: Fo
1300
+ const Jo = "_nav_jbhk1_5", Qo = {
1301
+ nav: Jo
1297
1302
  };
1298
- function Ir({
1303
+ function Ri({
1299
1304
  hasPrevious: e,
1300
1305
  hasNext: n,
1301
- onPrevious: r,
1306
+ onPrevious: i,
1302
1307
  onNext: a,
1303
1308
  previousLabel: s = "Previous",
1304
- nextLabel: i = "Next",
1309
+ nextLabel: r = "Next",
1305
1310
  size: o = 32,
1306
1311
  "aria-label": c = "Pagination",
1307
- className: l
1312
+ className: d
1308
1313
  }) {
1309
- return /* @__PURE__ */ _("nav", { "aria-label": c, className: [Ko.nav, l].filter(Boolean).join(" "), children: [
1310
- /* @__PURE__ */ _(te, { variant: "ghost", size: o, disabled: !e, onClick: r, children: [
1311
- /* @__PURE__ */ t(Qn, { size: 16, "aria-hidden": "true" }),
1314
+ return /* @__PURE__ */ _("nav", { "aria-label": c, className: [Qo.nav, d].filter(Boolean).join(" "), children: [
1315
+ /* @__PURE__ */ _(ce, { variant: "ghost", size: o, disabled: !e, onClick: i, children: [
1316
+ /* @__PURE__ */ t(it, { size: 16, "aria-hidden": "true" }),
1312
1317
  /* @__PURE__ */ t("span", { children: s })
1313
1318
  ] }),
1314
- /* @__PURE__ */ _(te, { variant: "ghost", size: o, disabled: !n, onClick: a, children: [
1315
- /* @__PURE__ */ t("span", { children: i }),
1316
- /* @__PURE__ */ t(Jn, { size: 16, "aria-hidden": "true" })
1319
+ /* @__PURE__ */ _(ce, { variant: "ghost", size: o, disabled: !n, onClick: a, children: [
1320
+ /* @__PURE__ */ t("span", { children: r }),
1321
+ /* @__PURE__ */ t(rt, { size: 16, "aria-hidden": "true" })
1317
1322
  ] })
1318
1323
  ] });
1319
1324
  }
1320
- const _e = {
1321
- neutral: nt,
1322
- success: Xn,
1323
- warning: tt,
1324
- danger: ot
1325
- }, Oo = {
1325
+ const be = {
1326
+ neutral: at,
1327
+ success: ot,
1328
+ warning: ct,
1329
+ danger: lt
1330
+ }, er = {
1326
1331
  neutral: null,
1327
1332
  success: "Success:",
1328
1333
  warning: "Warning:",
1329
1334
  danger: "Error:"
1330
1335
  };
1331
- function fe(e, n) {
1332
- return n === void 0 ? Oo[e] : n;
1333
- }
1334
- const Uo = "_toast_1gxg8_10", Yo = "_icon_1gxg8_39", Zo = "_iconNeutral_1gxg8_44", Go = "_iconSuccess_1gxg8_45", Xo = "_iconWarning_1gxg8_46", Jo = "_iconDanger_1gxg8_47", Qo = "_body_1gxg8_51", ei = "_action_1gxg8_55", ni = "_region_1gxg8_61", ti = "_live_1gxg8_91", z = {
1335
- toast: Uo,
1336
- icon: Yo,
1337
- iconNeutral: Zo,
1338
- iconSuccess: Go,
1339
- iconWarning: Xo,
1340
- iconDanger: Jo,
1341
- body: Qo,
1342
- action: ei,
1343
- region: ni,
1344
- live: ti
1345
- }, oi = {
1346
- neutral: z.iconNeutral,
1347
- success: z.iconSuccess,
1348
- warning: z.iconWarning,
1349
- danger: z.iconDanger
1336
+ function ve(e, n) {
1337
+ return n === void 0 ? er[e] : n;
1338
+ }
1339
+ const nr = "_toast_1gxg8_10", tr = "_icon_1gxg8_39", or = "_iconNeutral_1gxg8_44", rr = "_iconSuccess_1gxg8_45", ir = "_iconWarning_1gxg8_46", sr = "_iconDanger_1gxg8_47", ar = "_body_1gxg8_51", cr = "_action_1gxg8_55", lr = "_region_1gxg8_61", dr = "_live_1gxg8_91", I = {
1340
+ toast: nr,
1341
+ icon: tr,
1342
+ iconNeutral: or,
1343
+ iconSuccess: rr,
1344
+ iconWarning: ir,
1345
+ iconDanger: sr,
1346
+ body: ar,
1347
+ action: cr,
1348
+ region: lr,
1349
+ live: dr
1350
+ }, ur = {
1351
+ neutral: I.iconNeutral,
1352
+ success: I.iconSuccess,
1353
+ warning: I.iconWarning,
1354
+ danger: I.iconDanger
1350
1355
  };
1351
- function le({
1356
+ function ge({
1352
1357
  variant: e = "neutral",
1353
1358
  children: n,
1354
- action: r,
1359
+ action: i,
1355
1360
  onDismiss: a,
1356
1361
  statusLabel: s,
1357
- className: i,
1362
+ className: r,
1358
1363
  ref: o
1359
1364
  }) {
1360
- const c = _e[e], l = fe(e, s), d = [z.toast, i].filter(Boolean).join(" ");
1361
- return /* @__PURE__ */ _("div", { ref: o, className: d, "data-variant": e, "data-psi-toast": !0, children: [
1362
- /* @__PURE__ */ t("span", { className: [z.icon, oi[e]].join(" "), children: /* @__PURE__ */ t(c, { size: 20, "aria-hidden": "true" }) }),
1363
- /* @__PURE__ */ _("div", { className: z.body, children: [
1364
- l && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: l }),
1365
+ const c = be[e], d = ve(e, s), l = [I.toast, r].filter(Boolean).join(" ");
1366
+ return /* @__PURE__ */ _("div", { ref: o, className: l, "data-variant": e, "data-psi-toast": !0, children: [
1367
+ /* @__PURE__ */ t("span", { className: [I.icon, ur[e]].join(" "), children: /* @__PURE__ */ t(c, { size: 20, "aria-hidden": "true" }) }),
1368
+ /* @__PURE__ */ _("div", { className: I.body, children: [
1369
+ d && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: d }),
1365
1370
  n
1366
1371
  ] }),
1367
- r != null && /* @__PURE__ */ t("div", { className: z.action, children: r }),
1372
+ i != null && /* @__PURE__ */ t("div", { className: I.action, children: i }),
1368
1373
  a && /* @__PURE__ */ t(
1369
- J,
1374
+ te,
1370
1375
  {
1371
1376
  variant: "ghost",
1372
1377
  size: 32,
1373
1378
  "aria-label": "Dismiss notification",
1374
1379
  onClick: a,
1375
- children: /* @__PURE__ */ t(he, { "aria-hidden": "true" })
1380
+ children: /* @__PURE__ */ t(me, { "aria-hidden": "true" })
1376
1381
  }
1377
1382
  )
1378
1383
  ] });
1379
1384
  }
1380
- function ii({ children: e }) {
1385
+ function ze({ children: e }) {
1381
1386
  return /* @__PURE__ */ t("div", { className: "psi-sr-only", "data-psi-announcement": !0, children: e });
1382
1387
  }
1383
- const ri = /* @__PURE__ */ new Set(["warning", "danger"]);
1384
- function xe(e) {
1385
- if (!X(e) || e.type !== le && e.type !== ii) return !1;
1386
- const { politeness: n, variant: r } = e.props;
1387
- return n !== void 0 ? n === "assertive" : e.type === le && ri.has(r ?? "neutral");
1388
+ const hr = /* @__PURE__ */ new Set(["warning", "danger"]);
1389
+ function Be(e) {
1390
+ if (!Y(e) || e.type !== ge && e.type !== ze) return !1;
1391
+ const { politeness: n, variant: i } = e.props;
1392
+ return n !== void 0 ? n === "assertive" : e.type === ge && hr.has(i ?? "neutral");
1388
1393
  }
1389
- function si({
1394
+ function _r({
1390
1395
  placement: e = "bottom-end",
1391
1396
  "aria-label": n = "Notifications",
1392
- children: r,
1397
+ children: i,
1393
1398
  className: a,
1394
1399
  ref: s,
1395
- ...i
1400
+ ...r
1396
1401
  }) {
1397
- const o = N(null), c = (h) => {
1402
+ const o = L(null), c = (h) => {
1398
1403
  o.current = h, typeof s == "function" ? s(h) : s && (s.current = h);
1399
1404
  };
1400
1405
  C(() => {
1401
- var p;
1406
+ var f;
1402
1407
  const h = o.current;
1403
1408
  if (h)
1404
- return (p = h.showPopover) == null || p.call(h), () => {
1405
- var v;
1406
- (v = h.hidePopover) == null || v.call(h);
1409
+ return (f = h.showPopover) == null || f.call(h), () => {
1410
+ var g;
1411
+ (g = h.hidePopover) == null || g.call(h);
1407
1412
  };
1408
1413
  }, []);
1409
- const l = W.toArray(r), d = l.filter(xe), u = l.filter((h) => !xe(h));
1414
+ const d = q.toArray(i), l = d.filter(Be), u = d.filter((h) => !Be(h));
1410
1415
  return /* @__PURE__ */ _(
1411
1416
  "div",
1412
1417
  {
1413
- ...i,
1418
+ ...r,
1414
1419
  ref: c,
1420
+ role: "region",
1415
1421
  popover: "manual",
1416
1422
  "aria-label": n,
1417
1423
  "data-placement": e,
1418
1424
  "data-psi-toast-region": !0,
1419
- className: [z.region, a].filter(Boolean).join(" "),
1425
+ className: [I.region, a].filter(Boolean).join(" "),
1420
1426
  children: [
1421
- /* @__PURE__ */ t("div", { role: "status", "aria-live": "polite", className: z.live, children: u }),
1422
- /* @__PURE__ */ t("div", { role: "alert", "aria-live": "assertive", className: z.live, children: d })
1427
+ /* @__PURE__ */ t("div", { role: "status", "aria-live": "polite", "aria-atomic": "false", className: I.live, children: u }),
1428
+ /* @__PURE__ */ t("div", { role: "alert", "aria-live": "assertive", "aria-atomic": "false", className: I.live, children: l })
1423
1429
  ]
1424
1430
  }
1425
1431
  );
1426
1432
  }
1427
- const Se = K(null);
1428
- function Er() {
1429
- const e = L(Se);
1433
+ const Ie = Z(null);
1434
+ function Hi() {
1435
+ const e = j(Ie);
1430
1436
  if (!e)
1431
1437
  throw new Error(
1432
1438
  "Psi useToast: no ToastProvider found. Wrap your app (or the subtree that raises toasts) in <ToastProvider> — it owns the queue, the auto-dismiss timers and the single ToastRegion."
1433
1439
  );
1434
1440
  return e;
1435
1441
  }
1436
- function Ar({
1442
+ const fr = 1e3;
1443
+ function Vi({
1437
1444
  limit: e = 3,
1438
1445
  duration: n = 5e3,
1439
- actionDuration: r = 1e4,
1446
+ actionDuration: i = 1e4,
1440
1447
  placement: a = "bottom-end",
1441
- children: s
1448
+ children: s,
1449
+ ...r
1442
1450
  }) {
1443
- const [i, o] = Ne([]), c = N(/* @__PURE__ */ new Map()), l = N(!1), d = N(0), u = q(), h = b((f) => {
1444
- const g = c.current.get(f);
1445
- (g == null ? void 0 : g.handle) !== void 0 && clearTimeout(g.handle), c.current.delete(f), o((S) => S.filter((se) => se.id !== f));
1446
- }, []), p = b(
1447
- (f, g) => {
1448
- const S = l.current ? { handle: void 0, remaining: g, startedAt: void 0 } : { handle: setTimeout(() => h(f), g), remaining: g, startedAt: Date.now() };
1449
- c.current.set(f, S);
1451
+ const [o, c] = se([]), [d, l] = se([]), u = L(/* @__PURE__ */ new Map()), h = L(!1), f = L(0), g = R(), b = w((p) => {
1452
+ const m = u.current.get(p);
1453
+ (m == null ? void 0 : m.handle) !== void 0 && clearTimeout(m.handle), u.current.delete(p), c((k) => k.some((T) => T.id === p) ? k.filter((T) => T.id !== p) : k), l((k) => k.some((T) => T.id === p) ? k.filter((T) => T.id !== p) : k);
1454
+ }, []), v = w(
1455
+ (p, m) => {
1456
+ const k = h.current ? { handle: void 0, remaining: m, startedAt: void 0 } : { handle: setTimeout(() => b(p), m), remaining: m, startedAt: Date.now() };
1457
+ u.current.set(p, k);
1450
1458
  },
1451
- [h]
1452
- ), v = b(
1453
- ({ variant: f = "neutral", message: g, action: S, politeness: se, statusLabel: Ie }) => {
1454
- const ae = `${u}-${d.current++}`, ge = S != null ? r : n;
1455
- return o((Ee) => {
1456
- const ce = [
1457
- ...Ee,
1458
- { id: ae, variant: f, message: g, action: S, politeness: se, statusLabel: Ie, duration: ge }
1459
+ [b]
1460
+ ), N = w(
1461
+ ({ variant: p = "neutral", message: m, action: k, politeness: T, statusLabel: De }) => {
1462
+ const _e = `${g}-${f.current++}`, we = k != null ? i : n;
1463
+ return c((Pe) => {
1464
+ const fe = [
1465
+ ...Pe,
1466
+ { id: _e, variant: p, message: m, action: k, politeness: T, statusLabel: De, duration: we }
1459
1467
  ];
1460
- for (; ce.length > e; ) {
1461
- const me = ce.shift(), Q = c.current.get(me.id);
1462
- (Q == null ? void 0 : Q.handle) !== void 0 && clearTimeout(Q.handle), c.current.delete(me.id);
1468
+ for (; fe.length > e; ) {
1469
+ const xe = fe.shift(), oe = u.current.get(xe.id);
1470
+ (oe == null ? void 0 : oe.handle) !== void 0 && clearTimeout(oe.handle), u.current.delete(xe.id);
1463
1471
  }
1464
- return ce;
1465
- }), p(ae, ge), ae;
1472
+ return fe;
1473
+ }), v(_e, we), _e;
1474
+ },
1475
+ [i, v, n, g, e]
1476
+ ), y = w(
1477
+ (p, { politeness: m = "polite" } = {}) => {
1478
+ const k = `${g}-${f.current++}`;
1479
+ return l((T) => [...T, { id: k, message: p, politeness: m }]), v(k, fr), k;
1466
1480
  },
1467
- [r, p, n, u, e]
1468
- ), w = b(() => {
1469
- for (const f of c.current.values())
1470
- f.handle !== void 0 && clearTimeout(f.handle);
1471
- c.current.clear(), o([]);
1472
- }, []), $ = b(() => {
1473
- if (!l.current) {
1474
- l.current = !0;
1475
- for (const [f, g] of c.current) {
1476
- if (g.handle === void 0) continue;
1477
- clearTimeout(g.handle);
1478
- const S = g.startedAt === void 0 ? 0 : Date.now() - g.startedAt;
1479
- c.current.set(f, {
1481
+ [v, g]
1482
+ ), x = w(() => {
1483
+ for (const p of u.current.values())
1484
+ p.handle !== void 0 && clearTimeout(p.handle);
1485
+ u.current.clear(), c([]), l([]);
1486
+ }, []), A = w(() => {
1487
+ if (!h.current) {
1488
+ h.current = !0;
1489
+ for (const [p, m] of u.current) {
1490
+ if (m.handle === void 0) continue;
1491
+ clearTimeout(m.handle);
1492
+ const k = m.startedAt === void 0 ? 0 : Date.now() - m.startedAt;
1493
+ u.current.set(p, {
1480
1494
  handle: void 0,
1481
- remaining: Math.max(0, g.remaining - S),
1495
+ remaining: Math.max(0, m.remaining - k),
1482
1496
  startedAt: void 0
1483
1497
  });
1484
1498
  }
1485
1499
  }
1486
- }, []), k = b(() => {
1487
- if (l.current) {
1488
- l.current = !1;
1489
- for (const [f, g] of c.current)
1490
- g.handle === void 0 && c.current.set(f, {
1491
- handle: setTimeout(() => h(f), g.remaining),
1492
- remaining: g.remaining,
1500
+ }, []), J = w(() => {
1501
+ if (h.current) {
1502
+ h.current = !1;
1503
+ for (const [p, m] of u.current)
1504
+ m.handle === void 0 && u.current.set(p, {
1505
+ handle: setTimeout(() => b(p), m.remaining),
1506
+ remaining: m.remaining,
1493
1507
  startedAt: Date.now()
1494
1508
  });
1495
1509
  }
1496
- }, [h]);
1510
+ }, [b]);
1497
1511
  C(() => {
1498
- const f = c.current;
1512
+ const p = u.current;
1499
1513
  return () => {
1500
- for (const g of f.values())
1501
- g.handle !== void 0 && clearTimeout(g.handle);
1502
- f.clear();
1514
+ for (const m of p.values())
1515
+ m.handle !== void 0 && clearTimeout(m.handle);
1516
+ p.clear();
1503
1517
  };
1504
1518
  }, []);
1505
- const m = ue(
1506
- () => ({ show: v, dismiss: h, clear: w }),
1507
- [v, h, w]
1519
+ const We = ae(
1520
+ () => ({ show: N, announce: y, dismiss: b, clear: x }),
1521
+ [N, y, b, x]
1508
1522
  );
1509
- return /* @__PURE__ */ _(Se.Provider, { value: m, children: [
1523
+ return /* @__PURE__ */ _(Ie.Provider, { value: We, children: [
1510
1524
  s,
1511
1525
  /* @__PURE__ */ t(
1512
1526
  "div",
1513
1527
  {
1514
- onPointerEnter: $,
1515
- onPointerLeave: k,
1516
- onFocusCapture: $,
1517
- onBlurCapture: k,
1518
- children: /* @__PURE__ */ t(si, { placement: a, children: i.map((f) => /* @__PURE__ */ t(
1519
- le,
1520
- {
1521
- variant: f.variant,
1522
- action: f.action,
1523
- politeness: f.politeness,
1524
- statusLabel: f.statusLabel,
1525
- onDismiss: () => h(f.id),
1526
- children: f.message
1527
- },
1528
- f.id
1529
- )) })
1528
+ onPointerEnter: A,
1529
+ onPointerLeave: J,
1530
+ onFocusCapture: A,
1531
+ onBlurCapture: J,
1532
+ children: /* @__PURE__ */ _(_r, { ...r, placement: a, children: [
1533
+ o.map((p) => /* @__PURE__ */ t(
1534
+ ge,
1535
+ {
1536
+ variant: p.variant,
1537
+ action: p.action,
1538
+ politeness: p.politeness,
1539
+ statusLabel: p.statusLabel,
1540
+ onDismiss: () => b(p.id),
1541
+ children: p.message
1542
+ },
1543
+ p.id
1544
+ )),
1545
+ d.map((p) => /* @__PURE__ */ t(ze, { politeness: p.politeness, children: p.message }, p.id))
1546
+ ] })
1530
1547
  }
1531
1548
  )
1532
1549
  ] });
1533
1550
  }
1534
- const ai = "_banner_pco49_7", ci = "_icon_pco49_26", li = "_iconNeutral_pco49_31", di = "_iconSuccess_pco49_32", ui = "_iconWarning_pco49_33", hi = "_iconDanger_pco49_34", _i = "_body_pco49_36", fi = "_title_pco49_40", pi = "_action_pco49_45", I = {
1535
- banner: ai,
1536
- icon: ci,
1537
- iconNeutral: li,
1538
- iconSuccess: di,
1539
- iconWarning: ui,
1540
- iconDanger: hi,
1541
- body: _i,
1542
- title: fi,
1543
- action: pi
1544
- }, gi = {
1545
- neutral: I.iconNeutral,
1546
- success: I.iconSuccess,
1547
- warning: I.iconWarning,
1548
- danger: I.iconDanger
1551
+ const pr = "_banner_pco49_7", gr = "_icon_pco49_26", mr = "_iconNeutral_pco49_31", br = "_iconSuccess_pco49_32", vr = "_iconWarning_pco49_33", yr = "_iconDanger_pco49_34", wr = "_body_pco49_36", xr = "_title_pco49_40", kr = "_action_pco49_45", M = {
1552
+ banner: pr,
1553
+ icon: gr,
1554
+ iconNeutral: mr,
1555
+ iconSuccess: br,
1556
+ iconWarning: vr,
1557
+ iconDanger: yr,
1558
+ body: wr,
1559
+ title: xr,
1560
+ action: kr
1561
+ }, Nr = {
1562
+ neutral: M.iconNeutral,
1563
+ success: M.iconSuccess,
1564
+ warning: M.iconWarning,
1565
+ danger: M.iconDanger
1549
1566
  };
1550
- function Mr({
1567
+ function Oi({
1551
1568
  variant: e = "neutral",
1552
1569
  title: n,
1553
- children: r,
1570
+ children: i,
1554
1571
  action: a,
1555
1572
  onDismiss: s,
1556
- statusLabel: i,
1573
+ statusLabel: r,
1557
1574
  className: o,
1558
1575
  ref: c,
1559
- ...l
1576
+ ...d
1560
1577
  }) {
1561
- const d = _e[e], u = fe(e, i), h = [I.banner, o].filter(Boolean).join(" ");
1562
- return /* @__PURE__ */ _("div", { ...l, ref: c, className: h, "data-variant": e, "data-psi-banner": !0, children: [
1563
- /* @__PURE__ */ t("span", { className: [I.icon, gi[e]].join(" "), children: /* @__PURE__ */ t(d, { size: 20, "aria-hidden": "true" }) }),
1564
- /* @__PURE__ */ _("div", { className: I.body, children: [
1578
+ const l = be[e], u = ve(e, r), h = [M.banner, o].filter(Boolean).join(" ");
1579
+ return /* @__PURE__ */ _("div", { ...d, ref: c, className: h, "data-variant": e, "data-psi-banner": !0, children: [
1580
+ /* @__PURE__ */ t("span", { className: [M.icon, Nr[e]].join(" "), children: /* @__PURE__ */ t(l, { size: 20, "aria-hidden": "true" }) }),
1581
+ /* @__PURE__ */ _("div", { className: M.body, children: [
1565
1582
  u && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: u }),
1566
- n != null && /* @__PURE__ */ t("strong", { className: I.title, children: n }),
1567
- r
1583
+ n != null && /* @__PURE__ */ t("strong", { className: M.title, children: n }),
1584
+ i
1568
1585
  ] }),
1569
- a != null && /* @__PURE__ */ t("div", { className: I.action, children: a }),
1570
- s && /* @__PURE__ */ t(J, { variant: "ghost", size: 32, "aria-label": "Dismiss", onClick: s, children: /* @__PURE__ */ t(he, { "aria-hidden": "true" }) })
1586
+ a != null && /* @__PURE__ */ t("div", { className: M.action, children: a }),
1587
+ s && /* @__PURE__ */ t(te, { variant: "ghost", size: 32, "aria-label": "Dismiss", onClick: s, children: /* @__PURE__ */ t(me, { "aria-hidden": "true" }) })
1571
1588
  ] });
1572
1589
  }
1573
- const mi = "_inlineAlert_1tt2h_7", vi = "_icon_1tt2h_38", bi = "_iconNeutral_1tt2h_43", yi = "_iconSuccess_1tt2h_44", wi = "_iconWarning_1tt2h_45", xi = "_iconDanger_1tt2h_46", ki = "_body_1tt2h_48", Ni = "_title_1tt2h_52", $i = "_action_1tt2h_57", E = {
1574
- inlineAlert: mi,
1575
- icon: vi,
1576
- iconNeutral: bi,
1577
- iconSuccess: yi,
1578
- iconWarning: wi,
1579
- iconDanger: xi,
1580
- body: ki,
1581
- title: Ni,
1582
- action: $i
1583
- }, Bi = {
1584
- neutral: E.iconNeutral,
1585
- success: E.iconSuccess,
1586
- warning: E.iconWarning,
1587
- danger: E.iconDanger
1590
+ const $r = "_inlineAlert_1tt2h_7", Br = "_icon_1tt2h_38", Lr = "_iconNeutral_1tt2h_43", Cr = "_iconSuccess_1tt2h_44", Sr = "_iconWarning_1tt2h_45", jr = "_iconDanger_1tt2h_46", Tr = "_body_1tt2h_48", zr = "_title_1tt2h_52", Ir = "_action_1tt2h_57", W = {
1591
+ inlineAlert: $r,
1592
+ icon: Br,
1593
+ iconNeutral: Lr,
1594
+ iconSuccess: Cr,
1595
+ iconWarning: Sr,
1596
+ iconDanger: jr,
1597
+ body: Tr,
1598
+ title: zr,
1599
+ action: Ir
1600
+ }, Er = {
1601
+ neutral: W.iconNeutral,
1602
+ success: W.iconSuccess,
1603
+ warning: W.iconWarning,
1604
+ danger: W.iconDanger
1588
1605
  };
1589
- function Wr({
1606
+ function Fi({
1590
1607
  variant: e = "neutral",
1591
1608
  title: n,
1592
- children: r,
1609
+ children: i,
1593
1610
  action: a,
1594
1611
  statusLabel: s,
1595
- className: i,
1612
+ className: r,
1596
1613
  ref: o,
1597
1614
  ...c
1598
1615
  }) {
1599
- const l = _e[e], d = fe(e, s), u = [E.inlineAlert, i].filter(Boolean).join(" ");
1616
+ const d = be[e], l = ve(e, s), u = [W.inlineAlert, r].filter(Boolean).join(" ");
1600
1617
  return /* @__PURE__ */ _("div", { ...c, ref: o, className: u, "data-variant": e, "data-psi-inline-alert": !0, children: [
1601
- /* @__PURE__ */ t("span", { className: [E.icon, Bi[e]].join(" "), children: /* @__PURE__ */ t(l, { size: 20, "aria-hidden": "true" }) }),
1602
- /* @__PURE__ */ _("div", { className: E.body, children: [
1603
- d && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: d }),
1604
- n != null && /* @__PURE__ */ t("strong", { className: E.title, children: n }),
1605
- r
1618
+ /* @__PURE__ */ t("span", { className: [W.icon, Er[e]].join(" "), children: /* @__PURE__ */ t(d, { size: 20, "aria-hidden": "true" }) }),
1619
+ /* @__PURE__ */ _("div", { className: W.body, children: [
1620
+ l && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: l }),
1621
+ n != null && /* @__PURE__ */ t("strong", { className: W.title, children: n }),
1622
+ i
1606
1623
  ] }),
1607
- a != null && /* @__PURE__ */ t("div", { className: E.action, children: a })
1624
+ a != null && /* @__PURE__ */ t("div", { className: W.action, children: a })
1608
1625
  ] });
1609
1626
  }
1610
- const Li = "_skeleton_1yo7t_12", Ci = "_line_1yo7t_28", ke = {
1611
- skeleton: Li,
1612
- line: Ci
1627
+ const Ar = "_skeleton_1yo7t_12", Mr = "_line_1yo7t_28", Le = {
1628
+ skeleton: Ar,
1629
+ line: Mr
1613
1630
  };
1614
- function qr({
1631
+ function Ki({
1615
1632
  variant: e = "text",
1616
1633
  lines: n = 1,
1617
- size: r = 40,
1634
+ size: i = 40,
1618
1635
  className: a,
1619
1636
  ref: s,
1620
- ...i
1637
+ ...r
1621
1638
  }) {
1622
- const o = [ke.skeleton, a].filter(Boolean).join(" "), c = Math.max(1, Math.floor(n));
1639
+ const o = [Le.skeleton, a].filter(Boolean).join(" "), c = Math.max(1, Math.floor(n));
1623
1640
  return /* @__PURE__ */ t(
1624
1641
  "div",
1625
1642
  {
1626
- ...i,
1643
+ ...r,
1627
1644
  ref: s,
1628
1645
  className: o,
1629
1646
  "aria-hidden": "true",
1630
1647
  "data-psi-skeleton": !0,
1631
1648
  "data-variant": e,
1632
- "data-size": e === "block" ? r : void 0,
1633
- children: e === "text" && Array.from({ length: c }, (l, d) => /* @__PURE__ */ t("span", { className: ke.line }, d))
1649
+ "data-size": e === "block" ? i : void 0,
1650
+ children: e === "text" && Array.from({ length: c }, (d, l) => /* @__PURE__ */ t("span", { className: Le.line }, l))
1634
1651
  }
1635
1652
  );
1636
1653
  }
1637
- function Pr({
1654
+ function Ui({
1638
1655
  value: e,
1639
1656
  label: n = "Copy",
1640
- size: r = 32,
1657
+ size: i = 32,
1641
1658
  variant: a = "ghost",
1642
1659
  onCopy: s,
1643
- className: i
1660
+ className: r
1644
1661
  }) {
1645
1662
  return /* @__PURE__ */ _(
1646
- te,
1663
+ ce,
1647
1664
  {
1648
1665
  type: "button",
1649
1666
  variant: a,
1650
- size: r,
1651
- className: i,
1667
+ size: i,
1668
+ className: r,
1652
1669
  onClick: () => {
1653
1670
  const o = typeof navigator < "u" ? navigator.clipboard : void 0;
1654
1671
  if (!(o != null && o.writeText)) {
@@ -1661,97 +1678,110 @@ function Pr({
1661
1678
  );
1662
1679
  },
1663
1680
  children: [
1664
- /* @__PURE__ */ t(et, { size: 16, "aria-hidden": "true" }),
1681
+ /* @__PURE__ */ t(st, { size: 16, "aria-hidden": "true" }),
1665
1682
  /* @__PURE__ */ t("span", { children: n })
1666
1683
  ]
1667
1684
  }
1668
1685
  );
1669
1686
  }
1670
- const Si = "_tabs_1x9om_8", ji = "_list_1x9om_21", zi = "_tab_1x9om_8", Ti = "_panel_1x9om_99", re = {
1671
- tabs: Si,
1672
- list: ji,
1673
- tab: zi,
1674
- panel: Ti
1675
- }, je = K(null);
1676
- function pe(e) {
1677
- const n = L(je);
1687
+ const Wr = "_tabs_1x9om_8", Dr = "_list_1x9om_21", Pr = "_tab_1x9om_8", qr = "_panel_1x9om_99", he = {
1688
+ tabs: Wr,
1689
+ list: Dr,
1690
+ tab: Pr,
1691
+ panel: qr
1692
+ }, Ee = Z(null);
1693
+ function ye(e) {
1694
+ const n = j(Ee);
1678
1695
  if (!n)
1679
1696
  throw new Error(
1680
1697
  `Psi ${e}: must be rendered inside <Tabs>. Tabs owns the selected value, the orientation and the ids that wire aria-controls and aria-labelledby together.`
1681
1698
  );
1682
1699
  return n;
1683
1700
  }
1684
- function Dr({
1701
+ function Gi({
1685
1702
  value: e,
1686
1703
  onValueChange: n,
1687
- orientation: r = "horizontal",
1704
+ orientation: i = "horizontal",
1688
1705
  children: a,
1689
1706
  className: s,
1690
- ref: i
1707
+ ref: r
1691
1708
  }) {
1692
- const o = q(), c = ue(
1693
- () => ({ value: e, onValueChange: n, orientation: r, idPrefix: o }),
1694
- [e, n, r, o]
1709
+ const o = R(), [c, d] = se([]), l = w((g) => (d((b) => [...b, g]), () => d((b) => b.filter((v) => v !== g))), []), { tabStop: u, unmatched: h } = ae(() => {
1710
+ if (c.length === 0) return { tabStop: e, unmatched: !1 };
1711
+ if (c.some((v) => v.value === e)) return { tabStop: e, unmatched: !1 };
1712
+ const g = [...c].sort(
1713
+ (v, N) => v.el && N.el && v.el !== N.el ? v.el.compareDocumentPosition(N.el) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1 : 0
1714
+ );
1715
+ return { tabStop: (g.find((v) => !v.disabled) ?? g[0]).value, unmatched: !0 };
1716
+ }, [c, e]);
1717
+ C(() => {
1718
+ !h || process.env.NODE_ENV === "production" || console.warn(
1719
+ `Tabs: value "${e}" matches no tab; the first enabled tab takes the tab stop.`
1720
+ );
1721
+ }, [h, e]);
1722
+ const f = ae(
1723
+ () => ({ value: e, onValueChange: n, orientation: i, idPrefix: o, tabStop: u, registerTab: l }),
1724
+ [e, n, i, o, u, l]
1695
1725
  );
1696
- return /* @__PURE__ */ t(je.Provider, { value: c, children: /* @__PURE__ */ t(
1726
+ return /* @__PURE__ */ t(Ee.Provider, { value: f, children: /* @__PURE__ */ t(
1697
1727
  "div",
1698
1728
  {
1699
- ref: i,
1700
- className: [re.tabs, s].filter(Boolean).join(" "),
1701
- "data-orientation": r,
1729
+ ref: r,
1730
+ className: [he.tabs, s].filter(Boolean).join(" "),
1731
+ "data-orientation": i,
1702
1732
  children: a
1703
1733
  }
1704
1734
  ) });
1705
1735
  }
1706
- function ze(e, n) {
1736
+ function Ae(e, n) {
1707
1737
  return `${e}tab-${n}`;
1708
1738
  }
1709
- function Te(e, n) {
1739
+ function Me(e, n) {
1710
1740
  return `${e}panel-${n}`;
1711
1741
  }
1712
- function Ii({ listRef: e, orientation: n, onValueChange: r }) {
1713
- const a = b(() => {
1714
- const i = e.current;
1715
- return i ? Array.from(
1716
- i.querySelectorAll('[data-psi-tab]:not([aria-disabled="true"])')
1742
+ function Rr({ listRef: e, orientation: n, onValueChange: i }) {
1743
+ const a = w(() => {
1744
+ const r = e.current;
1745
+ return r ? Array.from(
1746
+ r.querySelectorAll('[data-psi-tab]:not([aria-disabled="true"])')
1717
1747
  ) : [];
1718
- }, [e]), s = b(
1719
- (i) => {
1720
- if (!i) return;
1721
- for (const c of a()) c.tabIndex = c === i ? 0 : -1;
1722
- i.focus();
1723
- const o = i.dataset.value;
1724
- o != null && r(o);
1748
+ }, [e]), s = w(
1749
+ (r) => {
1750
+ if (!r) return;
1751
+ for (const c of a()) c.tabIndex = c === r ? 0 : -1;
1752
+ r.focus();
1753
+ const o = r.dataset.value;
1754
+ o != null && i(o);
1725
1755
  },
1726
- [a, r]
1756
+ [a, i]
1727
1757
  );
1728
- return b(
1729
- (i) => {
1758
+ return w(
1759
+ (r) => {
1730
1760
  const o = a();
1731
1761
  if (o.length === 0) return;
1732
- const [c, l] = n === "vertical" ? ["ArrowUp", "ArrowDown"] : ["ArrowLeft", "ArrowRight"], d = o.indexOf(document.activeElement);
1733
- switch (i.key) {
1734
- case l:
1735
- i.preventDefault(), s(o[(d + 1 + o.length) % o.length]);
1762
+ const [c, d] = n === "vertical" ? ["ArrowUp", "ArrowDown"] : ["ArrowLeft", "ArrowRight"], l = o.indexOf(document.activeElement);
1763
+ switch (r.key) {
1764
+ case d:
1765
+ r.preventDefault(), s(o[(l + 1 + o.length) % o.length]);
1736
1766
  break;
1737
1767
  case c:
1738
- i.preventDefault(), s(o[(d - 1 + o.length) % o.length]);
1768
+ r.preventDefault(), s(o[(l - 1 + o.length) % o.length]);
1739
1769
  break;
1740
1770
  case "Home":
1741
- i.preventDefault(), s(o[0]);
1771
+ r.preventDefault(), s(o[0]);
1742
1772
  break;
1743
1773
  case "End":
1744
- i.preventDefault(), s(o[o.length - 1]);
1774
+ r.preventDefault(), s(o[o.length - 1]);
1745
1775
  break;
1746
1776
  }
1747
1777
  },
1748
1778
  [s, a, n]
1749
1779
  );
1750
1780
  }
1751
- function Rr({ "aria-label": e, children: n, className: r, ref: a }) {
1752
- const { orientation: s, onValueChange: i } = pe("TabList"), o = N(null), c = (d) => {
1753
- o.current = d, typeof a == "function" ? a(d) : a && (a.current = d);
1754
- }, l = Ii({ listRef: o, orientation: s, onValueChange: i });
1781
+ function Yi({ "aria-label": e, children: n, className: i, ref: a }) {
1782
+ const { orientation: s, onValueChange: r } = ye("TabList"), o = L(null), c = (l) => {
1783
+ o.current = l, typeof a == "function" ? a(l) : a && (a.current = l);
1784
+ }, d = Rr({ listRef: o, orientation: s, onValueChange: r });
1755
1785
  return /* @__PURE__ */ t(
1756
1786
  "div",
1757
1787
  {
@@ -1759,132 +1789,137 @@ function Rr({ "aria-label": e, children: n, className: r, ref: a }) {
1759
1789
  role: "tablist",
1760
1790
  "aria-label": e,
1761
1791
  "aria-orientation": s,
1762
- className: [re.list, r].filter(Boolean).join(" "),
1763
- onKeyDown: l,
1792
+ className: [he.list, i].filter(Boolean).join(" "),
1793
+ onKeyDown: d,
1764
1794
  children: n
1765
1795
  }
1766
1796
  );
1767
1797
  }
1768
- function Hr({ value: e, children: n, disabled: r = !1, className: a, ref: s }) {
1769
- const i = pe("Tab"), o = i.value === e;
1770
- return /* @__PURE__ */ t(
1798
+ function Zi({ value: e, children: n, disabled: i = !1, className: a, ref: s }) {
1799
+ const r = ye("Tab"), o = r.value === e, c = L(null), { registerTab: d } = r, l = (u) => {
1800
+ c.current = u, typeof s == "function" ? s(u) : s && (s.current = u);
1801
+ };
1802
+ return qe(
1803
+ () => d == null ? void 0 : d({ value: e, disabled: i, el: c.current }),
1804
+ [d, e, i]
1805
+ ), /* @__PURE__ */ t(
1771
1806
  "button",
1772
1807
  {
1773
- ref: s,
1808
+ ref: l,
1774
1809
  type: "button",
1775
1810
  role: "tab",
1776
- id: ze(i.idPrefix, e),
1811
+ id: Ae(r.idPrefix, e),
1777
1812
  "data-psi-tab": !0,
1778
1813
  "data-value": e,
1779
1814
  "aria-selected": o,
1780
- "aria-controls": Te(i.idPrefix, e),
1781
- "aria-disabled": r || void 0,
1782
- tabIndex: o ? 0 : -1,
1783
- className: [re.tab, a].filter(Boolean).join(" "),
1815
+ "aria-controls": Me(r.idPrefix, e),
1816
+ "aria-disabled": i || void 0,
1817
+ tabIndex: (r.tabStop ?? r.value) === e ? 0 : -1,
1818
+ className: [he.tab, a].filter(Boolean).join(" "),
1784
1819
  onClick: () => {
1785
- r || i.onValueChange(e);
1820
+ i || r.onValueChange(e);
1786
1821
  },
1787
1822
  children: n
1788
1823
  }
1789
1824
  );
1790
1825
  }
1791
- function Vr({ value: e, children: n, className: r, ref: a }) {
1792
- const s = pe("TabPanel"), i = s.value === e;
1826
+ function Xi({ value: e, children: n, className: i, ref: a }) {
1827
+ const s = ye("TabPanel"), r = s.value === e;
1793
1828
  return /* @__PURE__ */ t(
1794
1829
  "div",
1795
1830
  {
1796
1831
  ref: a,
1797
1832
  role: "tabpanel",
1798
- id: Te(s.idPrefix, e),
1799
- "aria-labelledby": ze(s.idPrefix, e),
1800
- hidden: !i,
1833
+ id: Me(s.idPrefix, e),
1834
+ "aria-labelledby": Ae(s.idPrefix, e),
1835
+ hidden: !r,
1801
1836
  tabIndex: 0,
1802
- className: [re.panel, r].filter(Boolean).join(" "),
1837
+ className: [he.panel, i].filter(Boolean).join(" "),
1803
1838
  children: n
1804
1839
  }
1805
1840
  );
1806
1841
  }
1807
1842
  export {
1808
- ii as Announcement,
1809
- Ki as AppShell,
1810
- Oi as AspectRatio,
1811
- Mr as Banner,
1812
- te as Button,
1813
- Mi as Card,
1814
- $e as Checkbox,
1815
- Pr as CopyButton,
1816
- Ir as CursorPagination,
1817
- Pi as DescriptionItem,
1818
- qi as DescriptionList,
1819
- gr as Dialog,
1820
- Ui as Field,
1821
- ie as FieldContext,
1822
- ot as IconAlertCircle,
1823
- tt as IconAlertTriangle,
1824
- sr as IconArrowDown,
1825
- ar as IconArrowUpRight,
1826
- J as IconButton,
1827
- Xn as IconCheck,
1828
- Wn as IconChevronDown,
1829
- Qn as IconChevronLeft,
1830
- Jn as IconChevronRight,
1831
- he as IconClose,
1832
- et as IconCopy,
1833
- er as IconEdit,
1834
- tr as IconExternalLink,
1835
- or as IconEye,
1836
- ir as IconEyeOff,
1837
- lr as IconGitHub,
1838
- nt as IconInfo,
1839
- ur as IconInstagram,
1840
- cr as IconLinkedIn,
1841
- rr as IconLoader,
1842
- fr as IconLogOut,
1843
- _r as IconMenu,
1844
- Gi as IconMinus,
1845
- hr as IconMoreHorizontal,
1846
- Zi as IconPlus,
1847
- Xi as IconSearch,
1848
- Ji as IconSettings,
1849
- pr as IconSimCard,
1850
- nr as IconTrash,
1851
- Qi as IconUser,
1852
- dr as IconX,
1853
- Wr as InlineAlert,
1854
- mr as Input,
1855
- kr as Menu,
1856
- Be as MenuContext,
1857
- Nr as MenuItem,
1858
- $r as MenuSeparator,
1859
- Di as NavBar,
1860
- Vi as NavGroup,
1861
- Fi as NavItem,
1862
- Hi as NavTree,
1863
- Tr as Pagination,
1864
- Wi as Panel,
1865
- vr as Select,
1866
- qr as Skeleton,
1867
- Ri as SkipLink,
1868
- br as Switch,
1869
- Hr as Tab,
1870
- Rr as TabList,
1871
- Vr as TabPanel,
1872
- Br as Table,
1873
- Wo as TableBody,
1874
- zr as TableCaption,
1875
- jr as TableCell,
1876
- Lr as TableHead,
1877
- Sr as TableHeaderCell,
1878
- Cr as TableRow,
1879
- Dr as Tabs,
1880
- je as TabsContext,
1881
- yr as Tag,
1882
- le as Toast,
1883
- Se as ToastContext,
1884
- Ar as ToastProvider,
1885
- si as ToastRegion,
1886
- xr as Toolbar,
1887
- wr as Tooltip,
1888
- Yi as useFieldControl,
1889
- Er as useToast
1843
+ ze as Announcement,
1844
+ Qr as AppShell,
1845
+ ei as AspectRatio,
1846
+ Oi as Banner,
1847
+ ce as Button,
1848
+ Or as Card,
1849
+ Ce as Checkbox,
1850
+ Ui as CopyButton,
1851
+ Ri as CursorPagination,
1852
+ Ur as DescriptionItem,
1853
+ Kr as DescriptionList,
1854
+ Ni as Dialog,
1855
+ ni as Field,
1856
+ ue as FieldContext,
1857
+ lt as IconAlertCircle,
1858
+ ct as IconAlertTriangle,
1859
+ fi as IconArrowDown,
1860
+ pi as IconArrowUpRight,
1861
+ te as IconButton,
1862
+ ot as IconCheck,
1863
+ Vn as IconChevronDown,
1864
+ it as IconChevronLeft,
1865
+ rt as IconChevronRight,
1866
+ me as IconClose,
1867
+ st as IconCopy,
1868
+ ci as IconEdit,
1869
+ di as IconExternalLink,
1870
+ ui as IconEye,
1871
+ hi as IconEyeOff,
1872
+ mi as IconGitHub,
1873
+ at as IconInfo,
1874
+ vi as IconInstagram,
1875
+ gi as IconLinkedIn,
1876
+ _i as IconLoader,
1877
+ xi as IconLogOut,
1878
+ wi as IconMenu,
1879
+ ri as IconMinus,
1880
+ yi as IconMoreHorizontal,
1881
+ oi as IconPlus,
1882
+ ii as IconSearch,
1883
+ si as IconSettings,
1884
+ ki as IconSimCard,
1885
+ li as IconTrash,
1886
+ ai as IconUser,
1887
+ bi as IconX,
1888
+ Fi as InlineAlert,
1889
+ $i as Input,
1890
+ Ti as Menu,
1891
+ Se as MenuContext,
1892
+ zi as MenuItem,
1893
+ Ii as MenuSeparator,
1894
+ Gr as NavBar,
1895
+ Xr as NavGroup,
1896
+ Jr as NavItem,
1897
+ Zr as NavTree,
1898
+ qi as Pagination,
1899
+ Fr as Panel,
1900
+ Bi as Select,
1901
+ Ki as Skeleton,
1902
+ Yr as SkipLink,
1903
+ Li as Switch,
1904
+ Zi as Tab,
1905
+ Yi as TabList,
1906
+ Xi as TabPanel,
1907
+ Ei as Table,
1908
+ Fo as TableBody,
1909
+ Pi as TableCaption,
1910
+ Di as TableCell,
1911
+ Ai as TableHead,
1912
+ Wi as TableHeaderCell,
1913
+ Mi as TableRow,
1914
+ Gi as Tabs,
1915
+ Ee as TabsContext,
1916
+ Ci as Tag,
1917
+ ge as Toast,
1918
+ Ie as ToastContext,
1919
+ Vi as ToastProvider,
1920
+ _r as ToastRegion,
1921
+ ji as Toolbar,
1922
+ Si as Tooltip,
1923
+ ti as useFieldControl,
1924
+ Hi as useToast
1890
1925
  };