@minimalstuff/ui 3.0.1 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
2
- import * as r from "react";
3
- import i, { cloneElement as a, createContext as o, createElement as s, isValidElement as c, useCallback as l, useContext as u, useEffect as d, useId as f, useLayoutEffect as p, useMemo as m, useRef as h, useState as g, useSyncExternalStore as _ } from "react";
1
+ import * as e from "react";
2
+ import t, { cloneElement as n, createContext as r, createElement as i, isValidElement as a, useCallback as o, useContext as s, useEffect as c, useId as l, useLayoutEffect as u, useMemo as d, useRef as f, useState as p, useSyncExternalStore as m } from "react";
3
+ import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
4
4
  import * as v from "react-dom";
5
5
  import { createPortal as y } from "react-dom";
6
6
  //#region node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
@@ -65,100 +65,185 @@ var S = {
65
65
  focusOutline: "focus-visible:outline-yellow-500"
66
66
  }
67
67
  }, k = "inline-flex items-center justify-center disabled:opacity-50 disabled:cursor-not-allowed", A = `cursor-pointer transition-[color,background-color,border-color,transform] duration-200 enabled:active:duration-75 enabled:active:scale-[0.95] ${C}`, j = {
68
+ xs: "h-6 w-6 text-xs",
69
+ sm: "h-8 w-8 text-sm",
70
+ md: "h-10 w-10 text-base",
71
+ lg: "h-12 w-12 text-xl"
72
+ }, M = new Intl.Segmenter(void 0, { granularity: "grapheme" });
73
+ function N(e) {
74
+ let t = e.trim();
75
+ if (t.length === 0) return "";
76
+ let [n] = M.segment(t);
77
+ return n.segment.toUpperCase();
78
+ }
79
+ function P({ name: e, src: t, size: n = "sm", color: r = "primary", radius: i = "full", unstyled: a = !1, className: o }) {
80
+ let [s, c] = p(null), l = t !== void 0 && t !== s, u = e.trim().length > 0, d = l ? /* @__PURE__ */ g("img", {
81
+ src: t,
82
+ alt: "",
83
+ onError: () => c(t ?? null),
84
+ className: "h-full w-full object-cover"
85
+ }) : /* @__PURE__ */ g("span", {
86
+ "aria-hidden": "true",
87
+ children: N(e)
88
+ });
89
+ return /* @__PURE__ */ g("span", {
90
+ role: u ? "img" : void 0,
91
+ "aria-label": u ? e : void 0,
92
+ "aria-hidden": !u || void 0,
93
+ className: x("inline-flex flex-shrink-0 items-center justify-center overflow-hidden", j[n], !a && S[i], !a && !l && ["border font-semibold", O[r].solid], o),
94
+ children: d
95
+ });
96
+ }
97
+ //#endregion
98
+ //#region src/components/badge/badge.tsx
99
+ var F = {
68
100
  xs: "px-1.5 py-0.5 text-xs",
69
101
  sm: "px-2.5 py-1 text-sm",
70
102
  md: "px-3 py-1 text-base",
71
103
  lg: "px-3.5 py-1.5 text-lg"
72
- }, M = ({ children: e, color: n = "primary", variant: r = "subtle", size: i = "sm", radius: a = "md", className: o, ...s }) => /* @__PURE__ */ t("span", {
73
- className: x("inline-flex items-center gap-1 border", S[a], j[i], O[n][r], o),
74
- ...s,
104
+ }, I = ({ children: e, color: t = "primary", variant: n = "subtle", size: r = "sm", radius: i = "md", className: a, ...o }) => /* @__PURE__ */ g("span", {
105
+ className: x("inline-flex items-center gap-1 border", S[i], F[r], O[t][n], a),
106
+ ...o,
75
107
  children: e
76
- }), N = {
108
+ }), ee = {
77
109
  xs: "px-2 py-1 text-xs",
78
110
  sm: "px-3 py-1.5 text-sm",
79
111
  md: "px-4 py-2 text-sm",
80
112
  lg: "px-4 py-3 text-base"
81
- }, P = {
113
+ }, L = {
82
114
  xs: "w-3.5 h-3.5",
83
115
  sm: "w-4 h-4",
84
116
  md: "w-4 h-4",
85
117
  lg: "w-5 h-5"
86
118
  };
87
- function F(e) {
88
- let { unstyled: r = !1, variant: i = "solid", color: a = "primary", size: o = "md", radius: s = "md", children: c, className: l, fullWidth: u = !1, loading: d = !1, startIcon: f, endIcon: p, disabled: m, ...h } = e, g = O[a], _ = P[o];
89
- return /* @__PURE__ */ n("button", {
119
+ function R(e) {
120
+ let { unstyled: t = !1, variant: n = "solid", color: r = "primary", size: i = "md", radius: a = "md", children: o, className: s, fullWidth: c = !1, loading: l = !1, startIcon: u, endIcon: d, disabled: f, ...p } = e, m = O[r], h = L[i];
121
+ return /* @__PURE__ */ _("button", {
90
122
  type: "button",
91
- className: x(k, !r && [
123
+ className: x(k, !t && [
92
124
  A,
93
125
  "gap-2 font-medium border",
94
- S[s],
95
- N[o],
96
- g[i],
97
- g.focusOutline
98
- ], u && "w-full", l),
99
- disabled: m ?? d,
100
- "aria-busy": d || void 0,
101
- ...h,
126
+ S[a],
127
+ ee[i],
128
+ m[n],
129
+ m.focusOutline
130
+ ], c && "w-full", s),
131
+ disabled: f ?? l,
132
+ "aria-busy": l || void 0,
133
+ ...p,
102
134
  children: [
103
- d && /* @__PURE__ */ t("span", {
104
- className: x("i-svg-spinners-3-dots-fade", _),
135
+ l && /* @__PURE__ */ g("span", {
136
+ className: x("i-svg-spinners-3-dots-fade", h),
105
137
  "aria-hidden": "true"
106
138
  }),
107
- !d && f && /* @__PURE__ */ t("span", {
108
- className: x(f, _),
139
+ !l && u && /* @__PURE__ */ g("span", {
140
+ className: x(u, h),
109
141
  "aria-hidden": "true"
110
142
  }),
111
- c,
112
- !d && p && /* @__PURE__ */ t("span", {
113
- className: x(p, _),
143
+ o,
144
+ !l && d && /* @__PURE__ */ g("span", {
145
+ className: x(d, h),
114
146
  "aria-hidden": "true"
115
147
  })
116
148
  ]
117
149
  });
118
150
  }
119
151
  //#endregion
152
+ //#region src/components/shared/surface_tokens.ts
153
+ var te = "border-gray-300 dark:border-gray-600", ne = "bg-white dark:bg-gray-800", re = "border-gray-100 dark:border-gray-800", z = "bg-white dark:bg-gray-900", ie = {
154
+ 2: "h2",
155
+ 3: "h3",
156
+ 4: "h4"
157
+ };
158
+ function ae({ title: e, titleId: t, level: n, description: r, actions: i }) {
159
+ let a = ie[n];
160
+ return /* @__PURE__ */ _("div", {
161
+ className: "mb-4",
162
+ children: [/* @__PURE__ */ _("div", {
163
+ className: "flex items-center justify-between gap-4",
164
+ children: [/* @__PURE__ */ g(a, {
165
+ id: t,
166
+ className: "text-lg font-medium text-gray-900 dark:text-gray-100",
167
+ children: e
168
+ }), i]
169
+ }), r && /* @__PURE__ */ g("p", {
170
+ className: "mt-1 text-sm text-gray-500 dark:text-gray-400",
171
+ children: r
172
+ })]
173
+ });
174
+ }
175
+ //#endregion
176
+ //#region src/components/card/card.tsx
177
+ var oe = {
178
+ none: "",
179
+ sm: "p-4",
180
+ md: "p-6",
181
+ lg: "p-8"
182
+ };
183
+ function se({ children: e, title: t, description: n, actions: r, headingLevel: i = 2, padding: a = "md", radius: o = "lg", unstyled: s = !1, className: c }) {
184
+ let u = l(), d = !!t;
185
+ return /* @__PURE__ */ _("div", {
186
+ role: d ? "region" : void 0,
187
+ "aria-labelledby": d ? u : void 0,
188
+ className: x(!s && [
189
+ "border",
190
+ "bg-white dark:bg-gray-800",
191
+ "border-gray-200 dark:border-gray-700",
192
+ S[o],
193
+ oe[a]
194
+ ], c),
195
+ children: [d && /* @__PURE__ */ g(ae, {
196
+ title: t,
197
+ titleId: u,
198
+ level: i,
199
+ description: n,
200
+ actions: r
201
+ }), e]
202
+ });
203
+ }
204
+ //#endregion
120
205
  //#region src/components/character_count/character_count.tsx
121
- var I = "text-xs text-gray-500 dark:text-gray-400 mt-1 text-right";
122
- function L(e, t) {
206
+ var ce = "text-xs text-gray-500 dark:text-gray-400 mt-1 text-right";
207
+ function le(e, t) {
123
208
  return t ? "" : e === "overLimit" ? "text-red-600 dark:text-red-400" : e === "atLimit" ? "text-amber-600 dark:text-amber-400" : "";
124
209
  }
125
- function R({ current: e, min: r, max: i, showMin: a, showMax: o, unstyled: s = !1, className: c }) {
126
- let l = a === !0 || o === !0, u = r !== void 0 && e <= r ? "atLimit" : "ok", d = i !== void 0 && e > i ? "overLimit" : i !== void 0 && e >= i ? "atLimit" : "ok", f = l ? `${e}/${r} min` : `${e} (min ${r})`, p = l ? `${e}/${i} max` : `${e}/${i}`;
127
- return /* @__PURE__ */ n("div", {
128
- className: x(!s && I, c),
210
+ function ue({ current: e, min: t, max: n, showMin: r, showMax: i, unstyled: a = !1, className: o }) {
211
+ let s = r === !0 || i === !0, c = t !== void 0 && e <= t ? "atLimit" : "ok", l = n !== void 0 && e > n ? "overLimit" : n !== void 0 && e >= n ? "atLimit" : "ok", u = s ? `${e}/${t} min` : `${e} (min ${t})`, d = s ? `${e}/${n} max` : `${e}/${n}`;
212
+ return /* @__PURE__ */ _("div", {
213
+ className: x(!a && ce, o),
129
214
  children: [
130
- a && r !== void 0 && /* @__PURE__ */ t("span", {
131
- className: L(u, s),
132
- children: f
215
+ r && t !== void 0 && /* @__PURE__ */ g("span", {
216
+ className: le(c, a),
217
+ children: u
133
218
  }),
134
- a && o && " · ",
135
- o && i !== void 0 && /* @__PURE__ */ t("span", {
136
- className: L(d, s),
137
- children: p
219
+ r && i && " · ",
220
+ i && n !== void 0 && /* @__PURE__ */ g("span", {
221
+ className: le(l, a),
222
+ children: d
138
223
  }),
139
- !a && !o && i !== void 0 && /* @__PURE__ */ t("span", {
140
- className: L(d, s),
141
- children: p
224
+ !r && !i && n !== void 0 && /* @__PURE__ */ g("span", {
225
+ className: le(l, a),
226
+ children: d
142
227
  }),
143
- !a && !o && r !== void 0 && i === void 0 && /* @__PURE__ */ t("span", {
144
- className: L(u, s),
145
- children: f
228
+ !r && !i && t !== void 0 && n === void 0 && /* @__PURE__ */ g("span", {
229
+ className: le(c, a),
230
+ children: u
146
231
  })
147
232
  ]
148
233
  });
149
234
  }
150
235
  //#endregion
151
- //#region src/components/shared/surface_tokens.ts
152
- var z = "border-gray-300 dark:border-gray-600", ee = "bg-white dark:bg-gray-800", te = "border-gray-100 dark:border-gray-800", ne = "bg-white dark:bg-gray-900", B = `w-full border ${z} ${ee} text-gray-900 dark:text-gray-100 placeholder-gray-500 dark:placeholder-gray-400 ${w} transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed`, re = "text-xs text-gray-500 dark:text-gray-400", ie = "text-xs text-red-600 dark:text-red-400", ae = "border-red-500 dark:border-red-400", oe = ({ id: e, error: n, className: r }) => n ? /* @__PURE__ */ t("p", {
236
+ //#region src/components/shared/field_styles.ts
237
+ var de = `w-full border ${te} ${ne} text-gray-900 dark:text-gray-100 placeholder-gray-500 dark:placeholder-gray-400 ${w} transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed`, fe = "text-xs text-gray-500 dark:text-gray-400", pe = "text-xs text-red-600 dark:text-red-400", me = "border-red-500 dark:border-red-400", he = ({ id: e, error: t, className: n }) => t ? /* @__PURE__ */ g("p", {
153
238
  id: e,
154
- className: x(ie, r),
239
+ className: x(pe, n),
155
240
  role: "alert",
156
- children: n
241
+ children: t
157
242
  }) : null;
158
243
  //#endregion
159
244
  //#region src/components/shared/use_field_ids.ts
160
- function V(e) {
161
- let t = f(), n = e ?? t;
245
+ function B(e) {
246
+ let t = l(), n = e ?? t;
162
247
  return {
163
248
  fieldId: n,
164
249
  errorId: `${n}-error`,
@@ -167,55 +252,55 @@ function V(e) {
167
252
  }
168
253
  //#endregion
169
254
  //#region src/components/shared/field_description.tsx
170
- var se = ({ id: e, description: n, className: r }) => n ? typeof n == "string" ? /* @__PURE__ */ t("p", {
255
+ var ge = ({ id: e, description: t, className: n }) => t ? typeof t == "string" ? /* @__PURE__ */ g("p", {
171
256
  id: e,
172
- className: x(re, r),
173
- children: n
174
- }) : /* @__PURE__ */ t("span", {
257
+ className: x(fe, n),
258
+ children: t
259
+ }) : /* @__PURE__ */ g("span", {
175
260
  id: e,
176
- className: x(re, "block", r),
177
- children: n
261
+ className: x(fe, "block", n),
262
+ children: t
178
263
  }) : null;
179
264
  //#endregion
180
265
  //#region src/components/shared/use_controlled_state.ts
181
- function H(e, t) {
182
- let [n, r] = g(t), i = e !== void 0, a = l((e) => {
266
+ function _e(e, t) {
267
+ let [n, r] = p(t), i = e !== void 0, a = o((e) => {
183
268
  i || r(e);
184
269
  }, [i]);
185
270
  return [i ? e : n, a];
186
271
  }
187
272
  //#endregion
188
273
  //#region src/components/checkbox/checkbox.tsx
189
- function ce({ label: r, description: i, error: a, radius: o = "sm", unstyled: s = !1, className: c, wrapperClassName: l, checked: u, defaultChecked: d = !1, onChange: f, id: p, ...m }) {
190
- let { fieldId: h, errorId: g, descriptionId: _ } = V(p), [v, y] = H(u, d), b = [i && _, a && g].filter(Boolean).join(" ") || void 0;
191
- return /* @__PURE__ */ n("div", {
192
- className: x("w-full", l),
274
+ function ve({ label: e, description: t, error: n, radius: r = "sm", unstyled: i = !1, className: a, wrapperClassName: o, checked: s, defaultChecked: c = !1, onChange: l, id: u, ...d }) {
275
+ let { fieldId: f, errorId: p, descriptionId: m } = B(u), [v, y] = _e(s, c), b = [t && m, n && p].filter(Boolean).join(" ") || void 0;
276
+ return /* @__PURE__ */ _("div", {
277
+ className: x("w-full", o),
193
278
  children: [
194
- /* @__PURE__ */ n("label", {
195
- htmlFor: h,
196
- className: x("flex items-start gap-3 cursor-pointer", m.disabled && "cursor-not-allowed opacity-50"),
197
- children: [/* @__PURE__ */ n("span", {
198
- className: x("relative shrink-0", S[o], T, a ? D : E),
199
- children: [/* @__PURE__ */ t("input", {
279
+ /* @__PURE__ */ _("label", {
280
+ htmlFor: f,
281
+ className: x("flex items-start gap-3 cursor-pointer", d.disabled && "cursor-not-allowed opacity-50"),
282
+ children: [/* @__PURE__ */ _("span", {
283
+ className: x("relative shrink-0", S[r], T, n ? D : E),
284
+ children: [/* @__PURE__ */ g("input", {
200
285
  type: "checkbox",
201
- id: h,
286
+ id: f,
202
287
  className: "sr-only",
203
288
  checked: v,
204
289
  onChange: (e) => {
205
- y(e.target.checked), f?.(e);
290
+ y(e.target.checked), l?.(e);
206
291
  },
207
- "aria-invalid": !!a,
292
+ "aria-invalid": !!n,
208
293
  "aria-describedby": b,
209
- ...m
210
- }), /* @__PURE__ */ t("span", {
211
- className: x("flex h-5 w-5 items-center justify-center transition-all duration-200", !s && [
212
- S[o],
294
+ ...d
295
+ }), /* @__PURE__ */ g("span", {
296
+ className: x("flex h-5 w-5 items-center justify-center transition-all duration-200", !i && [
297
+ S[r],
213
298
  "border-2",
214
299
  v ? x("border-blue-600 dark:border-blue-500", "bg-blue-600 dark:bg-blue-500") : x("border-gray-300 dark:border-gray-600", "bg-white dark:bg-gray-800"),
215
- a && "border-red-500 dark:border-red-400"
216
- ], c),
300
+ n && "border-red-500 dark:border-red-400"
301
+ ], a),
217
302
  "aria-hidden": !0,
218
- children: v && /* @__PURE__ */ t("svg", {
303
+ children: v && /* @__PURE__ */ g("svg", {
219
304
  className: "h-3 w-3 text-white",
220
305
  viewBox: "0 0 12 12",
221
306
  fill: "none",
@@ -223,28 +308,28 @@ function ce({ label: r, description: i, error: a, radius: o = "sm", unstyled: s
223
308
  strokeWidth: "2.5",
224
309
  strokeLinecap: "round",
225
310
  strokeLinejoin: "round",
226
- children: /* @__PURE__ */ t("polyline", { points: "2 6 5 9 10 3" })
311
+ children: /* @__PURE__ */ g("polyline", { points: "2 6 5 9 10 3" })
227
312
  })
228
313
  })]
229
- }), r !== void 0 && (typeof r == "string" ? /* @__PURE__ */ n("span", {
314
+ }), e !== void 0 && (typeof e == "string" ? /* @__PURE__ */ _("span", {
230
315
  className: x("text-sm font-medium text-gray-700 dark:text-gray-300", "select-none"),
231
- children: [r, m.required && /* @__PURE__ */ t("span", {
316
+ children: [e, d.required && /* @__PURE__ */ g("span", {
232
317
  className: "text-red-500 dark:text-red-400 ml-1",
233
318
  children: "*"
234
319
  })]
235
- }) : /* @__PURE__ */ n(e, { children: [r, m.required && /* @__PURE__ */ t("span", {
320
+ }) : /* @__PURE__ */ _(h, { children: [e, d.required && /* @__PURE__ */ g("span", {
236
321
  className: "text-red-500 dark:text-red-400 ml-1",
237
322
  children: "*"
238
323
  })] }))]
239
324
  }),
240
- /* @__PURE__ */ t(se, {
241
- id: _,
242
- description: i,
325
+ /* @__PURE__ */ g(ge, {
326
+ id: m,
327
+ description: t,
243
328
  className: "mt-1 ml-8"
244
329
  }),
245
- /* @__PURE__ */ t(oe, {
246
- id: g,
247
- error: a,
330
+ /* @__PURE__ */ g(he, {
331
+ id: p,
332
+ error: n,
248
333
  className: "mt-1 ml-8"
249
334
  })
250
335
  ]
@@ -252,9 +337,9 @@ function ce({ label: r, description: i, error: a, radius: o = "sm", unstyled: s
252
337
  }
253
338
  //#endregion
254
339
  //#region src/hooks/use_is_client/use_is_client.tsx
255
- var le = () => {
256
- let [e, t] = g(!1);
257
- return d(() => {
340
+ var ye = () => {
341
+ let [e, t] = p(!1);
342
+ return c(() => {
258
343
  requestAnimationFrame(() => {
259
344
  t(!0);
260
345
  });
@@ -262,144 +347,144 @@ var le = () => {
262
347
  };
263
348
  //#endregion
264
349
  //#region src/components/client_only/client_only.tsx
265
- function ue({ children: n, fallback: r }) {
266
- return le() ? /* @__PURE__ */ t(e, { children: n }) : r ?? null;
350
+ function be({ children: e, fallback: t }) {
351
+ return ye() ? /* @__PURE__ */ g(h, { children: e }) : t ?? null;
267
352
  }
268
353
  //#endregion
269
354
  //#region src/components/shared/field.tsx
270
- var de = ({ fieldId: r, errorId: i, label: a, error: o, required: s = !1, wrapperClassName: c, children: l }) => /* @__PURE__ */ n("div", {
271
- className: x("w-full", c),
355
+ var xe = ({ fieldId: e, errorId: t, label: n, error: r, required: i = !1, wrapperClassName: a, children: o }) => /* @__PURE__ */ _("div", {
356
+ className: x("w-full", a),
272
357
  children: [
273
- a !== void 0 && (typeof a == "string" ? /* @__PURE__ */ n("label", {
358
+ n !== void 0 && (typeof n == "string" ? /* @__PURE__ */ _("label", {
274
359
  className: x("text-sm font-medium text-gray-700 dark:text-gray-300", "block mb-1"),
275
- htmlFor: r,
276
- children: [a, s && /* @__PURE__ */ t("span", {
360
+ htmlFor: e,
361
+ children: [n, i && /* @__PURE__ */ g("span", {
277
362
  className: "text-red-500 dark:text-red-400 ml-1",
278
363
  children: "*"
279
364
  })]
280
- }) : /* @__PURE__ */ n(e, { children: [a, s && /* @__PURE__ */ t("span", {
365
+ }) : /* @__PURE__ */ _(h, { children: [n, i && /* @__PURE__ */ g("span", {
281
366
  className: "text-red-500 dark:text-red-400 ml-1",
282
367
  children: "*"
283
368
  })] })),
284
- l,
285
- /* @__PURE__ */ t(oe, {
286
- id: i,
287
- error: o,
369
+ o,
370
+ /* @__PURE__ */ g(he, {
371
+ id: t,
372
+ error: r,
288
373
  className: "mt-1"
289
374
  })
290
375
  ]
291
376
  });
292
377
  //#endregion
293
378
  //#region src/components/combobox/combobox.tsx
294
- function fe({ options: e, label: r, error: i, placeholder: a, noResultsText: o = "No results found", clearLabel: s = "Clear selection", radius: c = "md", unstyled: l = !1, disabled: u = !1, required: d = !1, className: f, wrapperClassName: p, value: h, defaultValue: _ = "", onChange: v, id: y }) {
295
- let { fieldId: b, errorId: C } = V(y), w = `${b}-listbox`, [T, E] = H(h, _), D = e.find((e) => e.value === T), [O, k] = g(""), [A, j] = g(!1), [M, N] = g(!1), [P, F] = g(-1), I = m(() => A ? e.filter((e) => e.label.toLowerCase().includes(O.toLowerCase())) : e, [
379
+ function Se({ options: e, label: t, error: n, placeholder: r, noResultsText: i = "No results found", clearLabel: a = "Clear selection", radius: o = "md", unstyled: s = !1, disabled: c = !1, required: l = !1, className: u, wrapperClassName: f, value: m, defaultValue: h = "", onChange: v, id: y }) {
380
+ let { fieldId: b, errorId: C } = B(y), w = `${b}-listbox`, [T, E] = _e(m, h), D = e.find((e) => e.value === T), [O, k] = p(""), [A, j] = p(!1), [M, N] = p(!1), [P, F] = p(-1), I = d(() => A ? e.filter((e) => e.label.toLowerCase().includes(O.toLowerCase())) : e, [
296
381
  e,
297
382
  A,
298
383
  O
299
- ]), L = M ? O : D?.label ?? "", R = () => {
300
- u || (k(D?.label ?? ""), j(!1), N(!0), F(-1));
301
- }, z = () => {
384
+ ]), ee = M ? O : D?.label ?? "", L = () => {
385
+ c || (k(D?.label ?? ""), j(!1), N(!0), F(-1));
386
+ }, R = () => {
302
387
  N(!1), j(!1), F(-1);
303
- }, ee = (e) => {
304
- E(e.value), v?.(e.value), z();
305
- }, te = () => {
388
+ }, te = (e) => {
389
+ E(e.value), v?.(e.value), R();
390
+ }, ne = () => {
306
391
  E(""), v?.(""), k("");
307
- }, ne = (e) => {
308
- k(e.target.value), j(!0), N(!0), F(0);
309
392
  }, re = (e) => {
393
+ k(e.target.value), j(!0), N(!0), F(0);
394
+ }, z = (e) => {
310
395
  I.length !== 0 && F((t) => {
311
396
  let n = t + e;
312
397
  return n < 0 ? I.length - 1 : n >= I.length ? 0 : n;
313
398
  });
314
399
  }, ie = (e) => {
315
400
  if (e.key === "ArrowDown") {
316
- e.preventDefault(), M ? re(1) : R();
401
+ e.preventDefault(), M ? z(1) : L();
317
402
  return;
318
403
  }
319
404
  if (e.key === "ArrowUp") {
320
- e.preventDefault(), M ? re(-1) : R();
405
+ e.preventDefault(), M ? z(-1) : L();
321
406
  return;
322
407
  }
323
408
  if (e.key === "Enter") {
324
409
  if (!M) return;
325
410
  e.preventDefault();
326
411
  let t = I[P];
327
- t && ee(t);
412
+ t && te(t);
328
413
  return;
329
414
  }
330
415
  if (e.key === "Escape") {
331
416
  if (!M) return;
332
- e.preventDefault(), z();
417
+ e.preventDefault(), R();
333
418
  }
334
419
  }, ae = M && P >= 0 ? `${w}-option-${P}` : void 0;
335
- return /* @__PURE__ */ t(de, {
420
+ return /* @__PURE__ */ g(xe, {
336
421
  fieldId: b,
337
422
  errorId: C,
338
- label: r,
339
- error: i,
340
- required: d,
341
- wrapperClassName: p,
342
- children: /* @__PURE__ */ n("div", {
423
+ label: t,
424
+ error: n,
425
+ required: l,
426
+ wrapperClassName: f,
427
+ children: /* @__PURE__ */ _("div", {
343
428
  className: "relative",
344
429
  children: [
345
- !l && /* @__PURE__ */ t("span", {
430
+ !s && /* @__PURE__ */ g("span", {
346
431
  className: "i-mdi-magnify absolute left-2.5 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400 dark:text-gray-500 pointer-events-none",
347
432
  "aria-hidden": !0
348
433
  }),
349
- /* @__PURE__ */ t("input", {
434
+ /* @__PURE__ */ g("input", {
350
435
  id: b,
351
436
  role: "combobox",
352
437
  type: "text",
353
438
  autoComplete: "off",
354
- disabled: u,
355
- placeholder: a,
356
- value: L,
357
- onChange: ne,
358
- onFocus: R,
359
- onBlur: z,
439
+ disabled: c,
440
+ placeholder: r,
441
+ value: ee,
442
+ onChange: re,
443
+ onFocus: L,
444
+ onBlur: R,
360
445
  onKeyDown: ie,
361
446
  "aria-expanded": M,
362
447
  "aria-controls": w,
363
448
  "aria-autocomplete": "list",
364
449
  "aria-activedescendant": ae,
365
- "aria-invalid": !!i,
366
- "aria-describedby": i ? C : void 0,
367
- className: x("w-full disabled:opacity-50 disabled:cursor-not-allowed", !l && [
368
- B,
369
- S[c],
450
+ "aria-invalid": !!n,
451
+ "aria-describedby": n ? C : void 0,
452
+ className: x("w-full disabled:opacity-50 disabled:cursor-not-allowed", !s && [
453
+ de,
454
+ S[o],
370
455
  "pl-9 pr-8 py-2 text-sm"
371
- ], !l && i && x("border-red-500 dark:border-red-400", "focus:ring-red-500"), f)
456
+ ], !s && n && x("border-red-500 dark:border-red-400", "focus:ring-red-500"), u)
372
457
  }),
373
- !l && D && !u && /* @__PURE__ */ t("button", {
458
+ !s && D && !c && /* @__PURE__ */ g("button", {
374
459
  type: "button",
375
- "aria-label": s,
460
+ "aria-label": a,
376
461
  onMouseDown: (e) => e.preventDefault(),
377
- onClick: te,
462
+ onClick: ne,
378
463
  className: "absolute right-2.5 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400 hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-300",
379
- children: /* @__PURE__ */ t("span", {
464
+ children: /* @__PURE__ */ g("span", {
380
465
  className: "i-mdi-close block w-4 h-4",
381
466
  "aria-hidden": !0
382
467
  })
383
468
  }),
384
- M && /* @__PURE__ */ t("ul", {
469
+ M && /* @__PURE__ */ g("ul", {
385
470
  id: w,
386
471
  role: "listbox",
387
- className: x("absolute z-10 mt-1 w-full max-h-60 overflow-auto py-1 text-sm shadow-lg", !l && [
472
+ className: x("absolute z-10 mt-1 w-full max-h-60 overflow-auto py-1 text-sm shadow-lg", !s && [
388
473
  "border",
389
474
  "bg-white dark:bg-gray-900",
390
475
  "border-gray-100 dark:border-gray-800",
391
- S[c]
476
+ S[o]
392
477
  ]),
393
- children: I.length === 0 ? /* @__PURE__ */ t("li", {
478
+ children: I.length === 0 ? /* @__PURE__ */ g("li", {
394
479
  className: "px-3 py-2 text-gray-500 dark:text-gray-400",
395
- children: o
396
- }) : I.map((e, n) => /* @__PURE__ */ t("li", {
397
- id: `${w}-option-${n}`,
480
+ children: i
481
+ }) : I.map((e, t) => /* @__PURE__ */ g("li", {
482
+ id: `${w}-option-${t}`,
398
483
  role: "option",
399
484
  "aria-selected": e.value === T,
400
485
  onMouseDown: (e) => e.preventDefault(),
401
- onClick: () => ee(e),
402
- className: x("px-3 py-2 cursor-pointer text-gray-900 dark:text-gray-100", n === P ? "bg-blue-50 dark:bg-blue-900/40" : "hover:bg-gray-50 dark:hover:bg-gray-800/60", e.value === T && "font-medium"),
486
+ onClick: () => te(e),
487
+ className: x("px-3 py-2 cursor-pointer text-gray-900 dark:text-gray-100", t === P ? "bg-blue-50 dark:bg-blue-900/40" : "hover:bg-gray-50 dark:hover:bg-gray-800/60", e.value === T && "font-medium"),
403
488
  children: e.label
404
489
  }, e.value))
405
490
  })
@@ -409,75 +494,75 @@ function fe({ options: e, label: r, error: i, placeholder: a, noResultsText: o =
409
494
  }
410
495
  //#endregion
411
496
  //#region node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
412
- var pe = Math.min, U = Math.max, me = Math.round, he = Math.floor, W = (e) => ({
497
+ var Ce = Math.min, V = Math.max, we = Math.round, Te = Math.floor, H = (e) => ({
413
498
  x: e,
414
499
  y: e
415
- }), ge = {
500
+ }), Ee = {
416
501
  left: "right",
417
502
  right: "left",
418
503
  bottom: "top",
419
504
  top: "bottom"
420
505
  };
421
- function _e(e, t, n) {
422
- return U(e, pe(t, n));
506
+ function De(e, t, n) {
507
+ return V(e, Ce(t, n));
423
508
  }
424
- function ve(e, t) {
509
+ function Oe(e, t) {
425
510
  return typeof e == "function" ? e(t) : e;
426
511
  }
427
- function ye(e) {
512
+ function U(e) {
428
513
  return e.split("-")[0];
429
514
  }
430
- function be(e) {
515
+ function ke(e) {
431
516
  return e.split("-")[1];
432
517
  }
433
- function xe(e) {
518
+ function Ae(e) {
434
519
  return e === "x" ? "y" : "x";
435
520
  }
436
- function Se(e) {
521
+ function je(e) {
437
522
  return e === "y" ? "height" : "width";
438
523
  }
439
- function G(e) {
524
+ function W(e) {
440
525
  let t = e[0];
441
526
  return t === "t" || t === "b" ? "y" : "x";
442
527
  }
443
- function Ce(e) {
444
- return xe(G(e));
528
+ function Me(e) {
529
+ return Ae(W(e));
445
530
  }
446
- function we(e, t, n) {
531
+ function Ne(e, t, n) {
447
532
  n === void 0 && (n = !1);
448
- let r = be(e), i = Ce(e), a = Se(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
449
- return t.reference[a] > t.floating[a] && (o = Ne(o)), [o, Ne(o)];
533
+ let r = ke(e), i = Me(e), a = je(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
534
+ return t.reference[a] > t.floating[a] && (o = He(o)), [o, He(o)];
450
535
  }
451
- function Te(e) {
452
- let t = Ne(e);
536
+ function Pe(e) {
537
+ let t = He(e);
453
538
  return [
454
- Ee(e),
539
+ Fe(e),
455
540
  t,
456
- Ee(t)
541
+ Fe(t)
457
542
  ];
458
543
  }
459
- function Ee(e) {
544
+ function Fe(e) {
460
545
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
461
546
  }
462
- var De = ["left", "right"], Oe = ["right", "left"], ke = ["top", "bottom"], Ae = ["bottom", "top"];
463
- function je(e, t, n) {
547
+ var Ie = ["left", "right"], Le = ["right", "left"], Re = ["top", "bottom"], ze = ["bottom", "top"];
548
+ function Be(e, t, n) {
464
549
  switch (e) {
465
550
  case "top":
466
- case "bottom": return n ? t ? Oe : De : t ? De : Oe;
551
+ case "bottom": return n ? t ? Le : Ie : t ? Ie : Le;
467
552
  case "left":
468
- case "right": return t ? ke : Ae;
553
+ case "right": return t ? Re : ze;
469
554
  default: return [];
470
555
  }
471
556
  }
472
- function Me(e, t, n, r) {
473
- let i = be(e), a = je(ye(e), n === "start", r);
474
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Ee)))), a;
557
+ function Ve(e, t, n, r) {
558
+ let i = ke(e), a = Be(U(e), n === "start", r);
559
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Fe)))), a;
475
560
  }
476
- function Ne(e) {
477
- let t = ye(e);
478
- return ge[t] + e.slice(t.length);
561
+ function He(e) {
562
+ let t = U(e);
563
+ return Ee[t] + e.slice(t.length);
479
564
  }
480
- function Pe(e) {
565
+ function Ue(e) {
481
566
  return {
482
567
  top: e.top ?? 0,
483
568
  right: e.right ?? 0,
@@ -485,15 +570,15 @@ function Pe(e) {
485
570
  left: e.left ?? 0
486
571
  };
487
572
  }
488
- function Fe(e) {
573
+ function We(e) {
489
574
  return typeof e == "number" ? {
490
575
  top: e,
491
576
  right: e,
492
577
  bottom: e,
493
578
  left: e
494
- } : Pe(e);
579
+ } : Ue(e);
495
580
  }
496
- function Ie(e) {
581
+ function Ge(e) {
497
582
  let { x: t, y: n, width: r, height: i } = e;
498
583
  return {
499
584
  width: r,
@@ -508,8 +593,8 @@ function Ie(e) {
508
593
  }
509
594
  //#endregion
510
595
  //#region node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
511
- function Le(e, t, n) {
512
- let { reference: r, floating: i } = e, a = G(t), o = Ce(t), s = Se(o), c = ye(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
596
+ function Ke(e, t, n) {
597
+ let { reference: r, floating: i } = e, a = W(t), o = Me(t), s = je(o), c = U(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
513
598
  switch (c) {
514
599
  case "top":
515
600
  p = {
@@ -540,12 +625,12 @@ function Le(e, t, n) {
540
625
  y: r.y
541
626
  };
542
627
  }
543
- let m = be(t);
628
+ let m = ke(t);
544
629
  return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
545
630
  }
546
- async function Re(e, t) {
631
+ async function qe(e, t) {
547
632
  t === void 0 && (t = {});
548
- let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = ve(t, e), p = Fe(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Ie(await i.getClippingRect({
633
+ let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = Oe(t, e), p = We(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Ge(await i.getClippingRect({
549
634
  element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
550
635
  boundary: c,
551
636
  rootBoundary: l,
@@ -558,7 +643,7 @@ async function Re(e, t) {
558
643
  } : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
559
644
  x: 1,
560
645
  y: 1
561
- }, y = Ie(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
646
+ }, y = Ge(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
562
647
  elements: o,
563
648
  rect: g,
564
649
  offsetParent: _,
@@ -571,15 +656,15 @@ async function Re(e, t) {
571
656
  right: (y.right - h.right + p.right) / v.x
572
657
  };
573
658
  }
574
- var ze = 50, Be = async (e, t, n) => {
659
+ var Je = 50, Ye = async (e, t, n) => {
575
660
  let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
576
661
  ...o,
577
- detectOverflow: Re
662
+ detectOverflow: qe
578
663
  }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
579
664
  reference: e,
580
665
  floating: t,
581
666
  strategy: i
582
- }), { x: u, y: d } = Le(l, r, c), f = r, p = 0, m = {};
667
+ }), { x: u, y: d } = Ke(l, r, c), f = r, p = 0, m = {};
583
668
  for (let n = 0; n < a.length; n++) {
584
669
  let h = a[n];
585
670
  if (!h) continue;
@@ -600,11 +685,11 @@ var ze = 50, Be = async (e, t, n) => {
600
685
  u = v ?? u, d = y ?? d, m[g] = {
601
686
  ...m[g],
602
687
  ...b
603
- }, x && p < ze && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
688
+ }, x && p < Je && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
604
689
  reference: e,
605
690
  floating: t,
606
691
  strategy: i
607
- }) : x.rects), {x: u, y: d} = Le(l, f, c)), n = -1);
692
+ }) : x.rects), {x: u, y: d} = Ke(l, f, c)), n = -1);
608
693
  }
609
694
  return {
610
695
  x: u,
@@ -613,18 +698,18 @@ var ze = 50, Be = async (e, t, n) => {
613
698
  strategy: i,
614
699
  middlewareData: m
615
700
  };
616
- }, Ve = (e) => ({
701
+ }, Xe = (e) => ({
617
702
  name: "arrow",
618
703
  options: e,
619
704
  async fn(t) {
620
- let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = ve(e, t) || {};
705
+ let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = Oe(e, t) || {};
621
706
  if (l == null) return {};
622
- let d = Fe(u), f = {
707
+ let d = We(u), f = {
623
708
  x: n,
624
709
  y: r
625
- }, p = Ce(i), m = Se(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
710
+ }, p = Me(i), m = je(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
626
711
  (!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
627
- let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = pe(d[_], T), D = pe(d[v], T), O = C - h[m] - D, k = C / 2 - h[m] / 2 + w, A = _e(E, k, O), j = !c.arrow && be(i) != null && k !== A && a.reference[m] / 2 - (k < E ? E : D) - h[m] / 2 < 0, M = j ? k < E ? k - E : k - O : 0;
712
+ let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Ce(d[_], T), D = Ce(d[v], T), O = C - h[m] - D, k = C / 2 - h[m] / 2 + w, A = De(E, k, O), j = !c.arrow && ke(i) != null && k !== A && a.reference[m] / 2 - (k < E ? E : D) - h[m] / 2 < 0, M = j ? k < E ? k - E : k - O : 0;
628
713
  return {
629
714
  [p]: f[p] + M,
630
715
  data: {
@@ -635,19 +720,19 @@ var ze = 50, Be = async (e, t, n) => {
635
720
  reset: j
636
721
  };
637
722
  }
638
- }), He = function(e) {
723
+ }), Ze = function(e) {
639
724
  return e === void 0 && (e = {}), {
640
725
  name: "flip",
641
726
  options: e,
642
727
  async fn(t) {
643
728
  var n;
644
- let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = ve(e, t);
729
+ let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = Oe(e, t);
645
730
  if ((n = i.arrow) != null && n.alignmentOffset) return {};
646
- let g = ye(r), _ = G(o), v = ye(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Ne(o)] : Te(o)), x = p !== "none";
647
- !d && x && b.push(...Me(o, m, p, y));
731
+ let g = U(r), _ = W(o), v = U(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [He(o)] : Pe(o)), x = p !== "none";
732
+ !d && x && b.push(...Ve(o, m, p, y));
648
733
  let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
649
734
  if (l && w.push(C[g]), u) {
650
- let e = we(r, a, y);
735
+ let e = Ne(r, a, y);
651
736
  w.push(C[e[0]], C[e[1]]);
652
737
  }
653
738
  if (T = [...T, {
@@ -655,7 +740,7 @@ var ze = 50, Be = async (e, t, n) => {
655
740
  overflows: w
656
741
  }], !w.every((e) => e <= 0)) {
657
742
  let e = (i.flip?.index || 0) + 1, t = S[e];
658
- if (t && (u !== "alignment" || _ === G(t) || T.every((e) => G(e.placement) !== _ || e.overflows[0] > 0))) return {
743
+ if (t && (u !== "alignment" || _ === W(t) || T.every((e) => W(e.placement) !== _ || e.overflows[0] > 0))) return {
659
744
  data: {
660
745
  index: e,
661
746
  overflows: T
@@ -667,7 +752,7 @@ var ze = 50, Be = async (e, t, n) => {
667
752
  case "bestFit": {
668
753
  let e = T.filter((e) => {
669
754
  if (x) {
670
- let t = G(e.placement);
755
+ let t = W(e.placement);
671
756
  return t === _ || t === "y";
672
757
  }
673
758
  return !0;
@@ -682,9 +767,9 @@ var ze = 50, Be = async (e, t, n) => {
682
767
  return {};
683
768
  }
684
769
  };
685
- }, Ue = /*#__PURE__*/ new Set(["left", "top"]);
686
- async function We(e, t) {
687
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = ye(n), s = be(n), c = G(n) === "y", l = Ue.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = ve(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
770
+ }, Qe = /*#__PURE__*/ new Set(["left", "top"]);
771
+ async function $e(e, t) {
772
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = U(n), s = ke(n), c = W(n) === "y", l = Qe.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Oe(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
688
773
  mainAxis: d,
689
774
  crossAxis: 0,
690
775
  alignmentAxis: null
@@ -701,13 +786,13 @@ async function We(e, t) {
701
786
  y: p * u
702
787
  };
703
788
  }
704
- var Ge = function(e) {
789
+ var et = function(e) {
705
790
  return e === void 0 && (e = 0), {
706
791
  name: "offset",
707
792
  options: e,
708
793
  async fn(t) {
709
794
  var n;
710
- let { x: r, y: i, placement: a, middlewareData: o } = t, s = await We(t, e);
795
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await $e(t, e);
711
796
  return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
712
797
  x: r + s.x,
713
798
  y: i + s.y,
@@ -718,7 +803,7 @@ var Ge = function(e) {
718
803
  };
719
804
  }
720
805
  };
721
- }, Ke = function(e) {
806
+ }, tt = function(e) {
722
807
  return e === void 0 && (e = {}), {
723
808
  name: "shift",
724
809
  options: e,
@@ -729,10 +814,10 @@ var Ge = function(e) {
729
814
  x: t,
730
815
  y: n
731
816
  };
732
- } }, ...l } = ve(e, t), u = {
817
+ } }, ...l } = Oe(e, t), u = {
733
818
  x: n,
734
819
  y: r
735
- }, d = await a.detectOverflow(t, l), f = G(i), p = xe(f), m = u[p], h = u[f], g = (e, t) => _e(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
820
+ }, d = await a.detectOverflow(t, l), f = W(i), p = Ae(f), m = u[p], h = u[f], g = (e, t) => De(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
736
821
  o && (m = g(p, m)), s && (h = g(f, h));
737
822
  let _ = c.fn({
738
823
  ...t,
@@ -755,39 +840,39 @@ var Ge = function(e) {
755
840
  };
756
841
  //#endregion
757
842
  //#region node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
758
- function qe() {
843
+ function nt() {
759
844
  return typeof window < "u";
760
845
  }
761
- function Je(e) {
762
- return Ye(e) ? (e.nodeName || "").toLowerCase() : "#document";
846
+ function G(e) {
847
+ return rt(e) ? (e.nodeName || "").toLowerCase() : "#document";
763
848
  }
764
849
  function K(e) {
765
850
  var t;
766
851
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
767
852
  }
768
853
  function q(e) {
769
- return ((Ye(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
854
+ return ((rt(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
770
855
  }
771
- function Ye(e) {
772
- return qe() ? e instanceof Node || e instanceof K(e).Node : !1;
856
+ function rt(e) {
857
+ return nt() ? e instanceof Node || e instanceof K(e).Node : !1;
773
858
  }
774
859
  function J(e) {
775
- return qe() ? e instanceof Element || e instanceof K(e).Element : !1;
860
+ return nt() ? e instanceof Element || e instanceof K(e).Element : !1;
776
861
  }
777
862
  function Y(e) {
778
- return qe() ? e instanceof HTMLElement || e instanceof K(e).HTMLElement : !1;
863
+ return nt() ? e instanceof HTMLElement || e instanceof K(e).HTMLElement : !1;
779
864
  }
780
- function Xe(e) {
781
- return !qe() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof K(e).ShadowRoot;
865
+ function it(e) {
866
+ return !nt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof K(e).ShadowRoot;
782
867
  }
783
- function Ze(e) {
868
+ function at(e) {
784
869
  let { overflow: t, overflowX: n, overflowY: r, display: i } = Z(e);
785
870
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
786
871
  }
787
- function Qe(e) {
788
- return /^(table|td|th)$/.test(Je(e));
872
+ function ot(e) {
873
+ return /^(table|td|th)$/.test(G(e));
789
874
  }
790
- function $e(e) {
875
+ function st(e) {
791
876
  try {
792
877
  if (e.matches(":popover-open")) return !0;
793
878
  } catch {}
@@ -797,30 +882,30 @@ function $e(e) {
797
882
  return !1;
798
883
  }
799
884
  }
800
- var et = /transform|translate|scale|rotate|perspective|filter/, tt = /paint|layout|strict|content/, X = (e) => !!e && e !== "none", nt;
801
- function rt(e) {
885
+ var ct = /transform|translate|scale|rotate|perspective|filter/, lt = /paint|layout|strict|content/, X = (e) => !!e && e !== "none", ut;
886
+ function dt(e) {
802
887
  let t = J(e) ? Z(e) : e;
803
- return X(t.transform) || X(t.translate) || X(t.scale) || X(t.rotate) || X(t.perspective) || !at() && (X(t.backdropFilter) || X(t.filter)) || et.test(t.willChange || "") || tt.test(t.contain || "");
888
+ return X(t.transform) || X(t.translate) || X(t.scale) || X(t.rotate) || X(t.perspective) || !pt() && (X(t.backdropFilter) || X(t.filter)) || ct.test(t.willChange || "") || lt.test(t.contain || "");
804
889
  }
805
- function it(e) {
890
+ function ft(e) {
806
891
  let t = Q(e);
807
- for (; Y(t) && !ot(t);) {
808
- if (rt(t)) return t;
809
- if ($e(t)) return null;
892
+ for (; Y(t) && !mt(t);) {
893
+ if (dt(t)) return t;
894
+ if (st(t)) return null;
810
895
  t = Q(t);
811
896
  }
812
897
  return null;
813
898
  }
814
- function at() {
815
- return nt ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), nt;
899
+ function pt() {
900
+ return ut ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), ut;
816
901
  }
817
- function ot(e) {
818
- return /^(html|body|#document)$/.test(Je(e));
902
+ function mt(e) {
903
+ return /^(html|body|#document)$/.test(G(e));
819
904
  }
820
905
  function Z(e) {
821
906
  return K(e).getComputedStyle(e);
822
907
  }
823
- function st(e) {
908
+ function ht(e) {
824
909
  return J(e) ? {
825
910
  scrollLeft: e.scrollLeft,
826
911
  scrollTop: e.scrollTop
@@ -830,101 +915,101 @@ function st(e) {
830
915
  };
831
916
  }
832
917
  function Q(e) {
833
- if (Je(e) === "html") return e;
834
- let t = e.assignedSlot || e.parentNode || Xe(e) && e.host || q(e);
835
- return Xe(t) ? t.host : t;
918
+ if (G(e) === "html") return e;
919
+ let t = e.assignedSlot || e.parentNode || it(e) && e.host || q(e);
920
+ return it(t) ? t.host : t;
836
921
  }
837
- function ct(e) {
922
+ function gt(e) {
838
923
  let t = Q(e);
839
- return ot(t) ? (e.ownerDocument || e).body : Y(t) && Ze(t) ? t : ct(t);
924
+ return mt(t) ? (e.ownerDocument || e).body : Y(t) && at(t) ? t : gt(t);
840
925
  }
841
- function lt(e, t, n) {
926
+ function _t(e, t, n) {
842
927
  t === void 0 && (t = []), n === void 0 && (n = !0);
843
- let r = ct(e), i = r === e.ownerDocument?.body, a = K(r);
928
+ let r = gt(e), i = r === e.ownerDocument?.body, a = K(r);
844
929
  if (i) {
845
- let e = ut(a);
846
- return t.concat(a, a.visualViewport || [], Ze(r) ? r : [], e && n ? lt(e) : []);
930
+ let e = vt(a);
931
+ return t.concat(a, a.visualViewport || [], at(r) ? r : [], e && n ? _t(e) : []);
847
932
  }
848
- return t.concat(r, lt(r, [], n));
933
+ return t.concat(r, _t(r, [], n));
849
934
  }
850
- function ut(e) {
935
+ function vt(e) {
851
936
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
852
937
  }
853
938
  //#endregion
854
939
  //#region node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
855
- function dt(e) {
856
- let t = Z(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Y(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = me(n) !== a || me(r) !== o;
940
+ function yt(e) {
941
+ let t = Z(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Y(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = we(n) !== a || we(r) !== o;
857
942
  return s && (n = a, r = o), {
858
943
  width: n,
859
944
  height: r,
860
945
  $: s
861
946
  };
862
947
  }
863
- function ft(e) {
948
+ function bt(e) {
864
949
  return J(e) ? e : e.contextElement;
865
950
  }
866
- function pt(e) {
867
- let t = ft(e);
868
- if (!Y(t)) return W(1);
869
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = dt(t), o = (a ? me(n.width) : n.width) / r, s = (a ? me(n.height) : n.height) / i;
951
+ function xt(e) {
952
+ let t = bt(e);
953
+ if (!Y(t)) return H(1);
954
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = yt(t), o = (a ? we(n.width) : n.width) / r, s = (a ? we(n.height) : n.height) / i;
870
955
  return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
871
956
  x: o,
872
957
  y: s
873
958
  };
874
959
  }
875
- var mt = /*#__PURE__*/ W(0);
876
- function ht(e) {
960
+ var St = /*#__PURE__*/ H(0);
961
+ function Ct(e) {
877
962
  let t = K(e);
878
- return !at() || !t.visualViewport ? mt : {
963
+ return !pt() || !t.visualViewport ? St : {
879
964
  x: t.visualViewport.offsetLeft,
880
965
  y: t.visualViewport.offsetTop
881
966
  };
882
967
  }
883
- function gt(e, t, n) {
968
+ function wt(e, t, n) {
884
969
  return t === void 0 && (t = !1), !!n && t && n === K(e);
885
970
  }
886
971
  function $(e, t, n, r) {
887
972
  t === void 0 && (t = !1), n === void 0 && (n = !1);
888
- let i = e.getBoundingClientRect(), a = ft(e), o = W(1);
889
- t && (r ? J(r) && (o = pt(r)) : o = pt(e));
890
- let s = gt(a, n, r) ? ht(a) : W(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
973
+ let i = e.getBoundingClientRect(), a = bt(e), o = H(1);
974
+ t && (r ? J(r) && (o = xt(r)) : o = xt(e));
975
+ let s = wt(a, n, r) ? Ct(a) : H(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
891
976
  if (a && r) {
892
- let e = K(a), t = J(r) ? K(r) : r, n = e, i = ut(n);
977
+ let e = K(a), t = J(r) ? K(r) : r, n = e, i = vt(n);
893
978
  for (; i && t !== n;) {
894
- let e = pt(i), t = i.getBoundingClientRect(), r = Z(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
895
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = K(i), i = ut(n);
979
+ let e = xt(i), t = i.getBoundingClientRect(), r = Z(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
980
+ c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = K(i), i = vt(n);
896
981
  }
897
982
  }
898
- return Ie({
983
+ return Ge({
899
984
  width: u,
900
985
  height: d,
901
986
  x: c,
902
987
  y: l
903
988
  });
904
989
  }
905
- function _t(e, t) {
906
- let n = st(e).scrollLeft;
990
+ function Tt(e, t) {
991
+ let n = ht(e).scrollLeft;
907
992
  return t ? t.left + n : $(q(e)).left + n;
908
993
  }
909
- function vt(e, t) {
994
+ function Et(e, t) {
910
995
  let n = e.getBoundingClientRect();
911
996
  return {
912
- x: n.left + t.scrollLeft - _t(e, n),
997
+ x: n.left + t.scrollLeft - Tt(e, n),
913
998
  y: n.top + t.scrollTop
914
999
  };
915
1000
  }
916
- function yt(e) {
917
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = q(r), s = t ? $e(t.floating) : !1;
1001
+ function Dt(e) {
1002
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = q(r), s = t ? st(t.floating) : !1;
918
1003
  if (r === o || s && a) return n;
919
1004
  let c = {
920
1005
  scrollLeft: 0,
921
1006
  scrollTop: 0
922
- }, l = W(1), u = W(0), d = Y(r);
923
- if ((d || !a) && ((Je(r) !== "body" || Ze(o)) && (c = st(r)), d)) {
1007
+ }, l = H(1), u = H(0), d = Y(r);
1008
+ if ((d || !a) && ((G(r) !== "body" || at(o)) && (c = ht(r)), d)) {
924
1009
  let e = $(r);
925
- l = pt(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
1010
+ l = xt(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
926
1011
  }
927
- let f = o && !d && !a ? vt(o, c) : W(0);
1012
+ let f = o && !d && !a ? Et(o, c) : H(0);
928
1013
  return {
929
1014
  width: n.width * l.x,
930
1015
  height: n.height * l.y,
@@ -932,29 +1017,29 @@ function yt(e) {
932
1017
  y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
933
1018
  };
934
1019
  }
935
- function bt(e) {
1020
+ function Ot(e) {
936
1021
  return e.getClientRects ? Array.from(e.getClientRects()) : [];
937
1022
  }
938
- function xt(e) {
939
- let t = st(e), n = e.ownerDocument.body, r = U(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = U(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + _t(e), o = -t.scrollTop;
940
- return Z(n).direction === "rtl" && (a += U(e.clientWidth, n.clientWidth) - r), {
1023
+ function kt(e) {
1024
+ let t = ht(e), n = e.ownerDocument.body, r = V(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = V(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + Tt(e), o = -t.scrollTop;
1025
+ return Z(n).direction === "rtl" && (a += V(e.clientWidth, n.clientWidth) - r), {
941
1026
  width: r,
942
1027
  height: i,
943
1028
  x: a,
944
1029
  y: o
945
1030
  };
946
1031
  }
947
- var St = 25;
948
- function Ct(e, t, n) {
1032
+ var At = 25;
1033
+ function jt(e, t, n) {
949
1034
  n === void 0 && (n = "viewport");
950
1035
  let r = n === "layoutViewport", i = K(e), a = q(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
951
1036
  if (o) {
952
- let e = !at() || t === "fixed";
1037
+ let e = !pt() || t === "fixed";
953
1038
  r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
954
1039
  }
955
- if (_t(a) <= 0) {
1040
+ if (Tt(a) <= 0) {
956
1041
  let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
957
- o <= St && (s -= o);
1042
+ o <= At && (s -= o);
958
1043
  }
959
1044
  return {
960
1045
  width: s,
@@ -963,8 +1048,8 @@ function Ct(e, t, n) {
963
1048
  y: u
964
1049
  };
965
1050
  }
966
- function wt(e, t) {
967
- let n = $(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = pt(e);
1051
+ function Mt(e, t) {
1052
+ let n = $(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = xt(e);
968
1053
  return {
969
1054
  width: e.clientWidth * a.x,
970
1055
  height: e.clientHeight * a.y,
@@ -972,13 +1057,13 @@ function wt(e, t) {
972
1057
  y: r * a.y
973
1058
  };
974
1059
  }
975
- function Tt(e, t, n) {
1060
+ function Nt(e, t, n) {
976
1061
  let r;
977
- if (t === "viewport" || t === "layoutViewport") r = Ct(e, n, t);
978
- else if (t === "document") r = xt(q(e));
979
- else if (J(t)) r = wt(t, n);
1062
+ if (t === "viewport" || t === "layoutViewport") r = jt(e, n, t);
1063
+ else if (t === "document") r = kt(q(e));
1064
+ else if (J(t)) r = Mt(t, n);
980
1065
  else {
981
- let n = ht(e);
1066
+ let n = Ct(e);
982
1067
  r = {
983
1068
  x: t.x - n.x,
984
1069
  y: t.y - n.y,
@@ -986,23 +1071,23 @@ function Tt(e, t, n) {
986
1071
  height: t.height
987
1072
  };
988
1073
  }
989
- return Ie(r);
1074
+ return Ge(r);
990
1075
  }
991
- function Et(e, t) {
1076
+ function Pt(e, t) {
992
1077
  let n = t.get(e);
993
1078
  if (n) return n;
994
- let r = lt(e, [], !1).filter((e) => J(e) && Je(e) !== "body"), i = null, a = Z(e).position === "fixed", o = a ? Q(e) : e;
995
- for (; J(o) && !ot(o);) {
996
- let e = Z(o), t = rt(o), n = i ? i.position : a ? "fixed" : "";
1079
+ let r = _t(e, [], !1).filter((e) => J(e) && G(e) !== "body"), i = null, a = Z(e).position === "fixed", o = a ? Q(e) : e;
1080
+ for (; J(o) && !mt(o);) {
1081
+ let e = Z(o), t = dt(o), n = i ? i.position : a ? "fixed" : "";
997
1082
  !t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = Q(o);
998
1083
  }
999
1084
  return t.set(e, r), r;
1000
1085
  }
1001
- function Dt(e) {
1002
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? $e(t) ? [] : Et(t, this._c) : [].concat(n), r], o = Tt(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
1086
+ function Ft(e) {
1087
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? st(t) ? [] : Pt(t, this._c) : [].concat(n), r], o = Nt(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
1003
1088
  for (let e = 1; e < a.length; e++) {
1004
- let n = Tt(t, a[e], i);
1005
- s = U(n.top, s), c = pe(n.right, c), l = pe(n.bottom, l), u = U(n.left, u);
1089
+ let n = Nt(t, a[e], i);
1090
+ s = V(n.top, s), c = Ce(n.right, c), l = Ce(n.bottom, l), u = V(n.left, u);
1006
1091
  }
1007
1092
  return {
1008
1093
  width: c - u,
@@ -1011,24 +1096,24 @@ function Dt(e) {
1011
1096
  y: s
1012
1097
  };
1013
1098
  }
1014
- function Ot(e) {
1015
- let { width: t, height: n } = dt(e);
1099
+ function It(e) {
1100
+ let { width: t, height: n } = yt(e);
1016
1101
  return {
1017
1102
  width: t,
1018
1103
  height: n
1019
1104
  };
1020
1105
  }
1021
- function kt(e, t, n) {
1106
+ function Lt(e, t, n) {
1022
1107
  let r = Y(t), i = q(t), a = n === "fixed", o = $(e, !0, a, t), s = {
1023
1108
  scrollLeft: 0,
1024
1109
  scrollTop: 0
1025
- }, c = W(0);
1026
- if ((r || !a) && ((Je(t) !== "body" || Ze(i)) && (s = st(t)), r)) {
1110
+ }, c = H(0);
1111
+ if ((r || !a) && ((G(t) !== "body" || at(i)) && (s = ht(t)), r)) {
1027
1112
  let e = $(t, !0, a, t);
1028
1113
  c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
1029
1114
  }
1030
- !r && i && (c.x = _t(i));
1031
- let l = i && !r && !a ? vt(i, s) : W(0);
1115
+ !r && i && (c.x = Tt(i));
1116
+ let l = i && !r && !a ? Et(i, s) : H(0);
1032
1117
  return {
1033
1118
  x: o.left + s.scrollLeft - c.x - l.x,
1034
1119
  y: o.top + s.scrollTop - c.y - l.y,
@@ -1036,34 +1121,34 @@ function kt(e, t, n) {
1036
1121
  height: o.height
1037
1122
  };
1038
1123
  }
1039
- function At(e) {
1124
+ function Rt(e) {
1040
1125
  return Z(e).position === "static";
1041
1126
  }
1042
- function jt(e, t) {
1127
+ function zt(e, t) {
1043
1128
  if (!Y(e) || Z(e).position === "fixed") return null;
1044
1129
  if (t) return t(e);
1045
1130
  let n = e.offsetParent;
1046
1131
  return q(e) === n && (n = n.ownerDocument.body), n;
1047
1132
  }
1048
- function Mt(e, t) {
1133
+ function Bt(e, t) {
1049
1134
  let n = K(e);
1050
- if ($e(e)) return n;
1135
+ if (st(e)) return n;
1051
1136
  if (!Y(e)) {
1052
1137
  let t = Q(e);
1053
- for (; t && !ot(t);) {
1054
- if (J(t) && !At(t)) return t;
1138
+ for (; t && !mt(t);) {
1139
+ if (J(t) && !Rt(t)) return t;
1055
1140
  t = Q(t);
1056
1141
  }
1057
1142
  return n;
1058
1143
  }
1059
- let r = jt(e, t);
1060
- for (; r && Qe(r) && At(r);) r = jt(r, t);
1061
- return r && ot(r) && At(r) && !rt(r) ? n : r || it(e) || n;
1144
+ let r = zt(e, t);
1145
+ for (; r && ot(r) && Rt(r);) r = zt(r, t);
1146
+ return r && mt(r) && Rt(r) && !dt(r) ? n : r || ft(e) || n;
1062
1147
  }
1063
- var Nt = async function(e) {
1064
- let t = this.getOffsetParent || Mt, n = this.getDimensions, r = await n(e.floating);
1148
+ var Vt = async function(e) {
1149
+ let t = this.getOffsetParent || Bt, n = this.getDimensions, r = await n(e.floating);
1065
1150
  return {
1066
- reference: kt(e.reference, await t(e.floating), e.strategy),
1151
+ reference: Lt(e.reference, await t(e.floating), e.strategy),
1067
1152
  floating: {
1068
1153
  x: 0,
1069
1154
  y: 0,
@@ -1072,25 +1157,25 @@ var Nt = async function(e) {
1072
1157
  }
1073
1158
  };
1074
1159
  };
1075
- function Pt(e) {
1160
+ function Ht(e) {
1076
1161
  return Z(e).direction === "rtl";
1077
1162
  }
1078
- var Ft = {
1079
- convertOffsetParentRelativeRectToViewportRelativeRect: yt,
1163
+ var Ut = {
1164
+ convertOffsetParentRelativeRectToViewportRelativeRect: Dt,
1080
1165
  getDocumentElement: q,
1081
- getClippingRect: Dt,
1082
- getOffsetParent: Mt,
1083
- getElementRects: Nt,
1084
- getClientRects: bt,
1085
- getDimensions: Ot,
1086
- getScale: pt,
1166
+ getClippingRect: Ft,
1167
+ getOffsetParent: Bt,
1168
+ getElementRects: Vt,
1169
+ getClientRects: Ot,
1170
+ getDimensions: It,
1171
+ getScale: xt,
1087
1172
  isElement: J,
1088
- isRTL: Pt
1173
+ isRTL: Ht
1089
1174
  };
1090
- function It(e, t) {
1175
+ function Wt(e, t) {
1091
1176
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1092
1177
  }
1093
- function Lt(e, t, n) {
1178
+ function Gt(e, t, n) {
1094
1179
  let r = null, i, a = q(e);
1095
1180
  function o() {
1096
1181
  var e;
@@ -1100,13 +1185,13 @@ function Lt(e, t, n) {
1100
1185
  n === void 0 && (n = !1), c === void 0 && (c = 1), o();
1101
1186
  let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
1102
1187
  if (n || t(), !f || !p) return;
1103
- let m = he(d), h = he(a.clientWidth - (u + f)), g = he(a.clientHeight - (d + p)), _ = he(u), v = {
1188
+ let m = Te(d), h = Te(a.clientWidth - (u + f)), g = Te(a.clientHeight - (d + p)), _ = Te(u), v = {
1104
1189
  rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
1105
- threshold: U(0, pe(1, c)) || 1
1190
+ threshold: V(0, Ce(1, c)) || 1
1106
1191
  }, y = !0;
1107
1192
  function b(t) {
1108
1193
  let n = t[0].intersectionRatio;
1109
- if (!It(l, e.getBoundingClientRect())) return s();
1194
+ if (!Wt(l, e.getBoundingClientRect())) return s();
1110
1195
  if (n !== c) {
1111
1196
  if (!y) return s();
1112
1197
  n ? s(!1, n) : i = setTimeout(() => {
@@ -1130,13 +1215,13 @@ function Lt(e, t, n) {
1130
1215
  c.removeEventListener("resize", l), o();
1131
1216
  };
1132
1217
  }
1133
- function Rt(e, t, n, r) {
1218
+ function Kt(e, t, n, r) {
1134
1219
  r === void 0 && (r = {});
1135
- let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = ft(e), u = i || a ? [...l ? lt(l) : [], ...t ? lt(t) : []] : [];
1220
+ let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = bt(e), u = i || a ? [...l ? _t(l) : [], ...t ? _t(t) : []] : [];
1136
1221
  u.forEach((e) => {
1137
1222
  i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
1138
1223
  });
1139
- let d = l && s ? Lt(l, n, a) : null, f = -1, p = null;
1224
+ let d = l && s ? Gt(l, n, a) : null, f = -1, p = null;
1140
1225
  o && (p = new ResizeObserver((e) => {
1141
1226
  let [r] = e;
1142
1227
  r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
@@ -1148,7 +1233,7 @@ function Rt(e, t, n, r) {
1148
1233
  c && g();
1149
1234
  function g() {
1150
1235
  let t = $(e);
1151
- h && !It(h, t) && n(), h = t, m = requestAnimationFrame(g);
1236
+ h && !Wt(h, t) && n(), h = t, m = requestAnimationFrame(g);
1152
1237
  }
1153
1238
  return n(), () => {
1154
1239
  var e;
@@ -1157,18 +1242,18 @@ function Rt(e, t, n, r) {
1157
1242
  }), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
1158
1243
  };
1159
1244
  }
1160
- var zt = Ge, Bt = Ke, Vt = He, Ht = Ve, Ut = (e, t, n) => {
1245
+ var qt = et, Jt = tt, Yt = Ze, Xt = Xe, Zt = (e, t, n) => {
1161
1246
  let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
1162
- ...Ft,
1247
+ ...Ut,
1163
1248
  ...i.platform,
1164
1249
  _c: r
1165
1250
  };
1166
- return Be(e, t, {
1251
+ return Ye(e, t, {
1167
1252
  ...i,
1168
1253
  platform: a
1169
1254
  });
1170
- }, Wt = typeof document < "u" ? p : function() {};
1171
- function Gt(e, t) {
1255
+ }, Qt = typeof document < "u" ? u : function() {};
1256
+ function $t(e, t) {
1172
1257
  if (e === t) return !0;
1173
1258
  if (typeof e != typeof t) return !1;
1174
1259
  if (typeof e == "function" && e.toString() === t.toString()) return !0;
@@ -1176,80 +1261,80 @@ function Gt(e, t) {
1176
1261
  if (e && t && typeof e == "object") {
1177
1262
  if (Array.isArray(e)) {
1178
1263
  if (n = e.length, n !== t.length) return !1;
1179
- for (r = n; r-- !== 0;) if (!Gt(e[r], t[r])) return !1;
1264
+ for (r = n; r-- !== 0;) if (!$t(e[r], t[r])) return !1;
1180
1265
  return !0;
1181
1266
  }
1182
1267
  if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
1183
1268
  for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
1184
1269
  for (r = n; r-- !== 0;) {
1185
1270
  let n = i[r];
1186
- if (!(n === "_owner" && e.$$typeof) && !Gt(e[n], t[n])) return !1;
1271
+ if (!(n === "_owner" && e.$$typeof) && !$t(e[n], t[n])) return !1;
1187
1272
  }
1188
1273
  return !0;
1189
1274
  }
1190
1275
  return e !== e && t !== t;
1191
1276
  }
1192
- function Kt(e) {
1277
+ function en(e) {
1193
1278
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
1194
1279
  }
1195
- function qt(e, t) {
1196
- let n = Kt(e);
1280
+ function tn(e, t) {
1281
+ let n = en(e);
1197
1282
  return Math.round(t * n) / n;
1198
1283
  }
1199
- function Jt(e) {
1200
- let t = r.useRef(e);
1201
- return Wt(() => {
1202
- t.current = e;
1203
- }), t;
1284
+ function nn(t) {
1285
+ let n = e.useRef(t);
1286
+ return Qt(() => {
1287
+ n.current = t;
1288
+ }), n;
1204
1289
  }
1205
- function Yt(e) {
1206
- e === void 0 && (e = {});
1207
- let { placement: t = "bottom", strategy: n = "absolute", middleware: i = [], platform: a, elements: { reference: o, floating: s } = {}, transform: c = !0, whileElementsMounted: l, open: u } = e, [d, f] = r.useState({
1290
+ function rn(t) {
1291
+ t === void 0 && (t = {});
1292
+ let { placement: n = "bottom", strategy: r = "absolute", middleware: i = [], platform: a, elements: { reference: o, floating: s } = {}, transform: c = !0, whileElementsMounted: l, open: u } = t, [d, f] = e.useState({
1208
1293
  x: 0,
1209
1294
  y: 0,
1210
- strategy: n,
1211
- placement: t,
1295
+ strategy: r,
1296
+ placement: n,
1212
1297
  middlewareData: {},
1213
1298
  isPositioned: !1
1214
- }), [p, m] = r.useState(i);
1215
- Gt(p, i) || m(i);
1216
- let [h, g] = r.useState(null), [_, y] = r.useState(null), b = r.useCallback((e) => {
1299
+ }), [p, m] = e.useState(i);
1300
+ $t(p, i) || m(i);
1301
+ let [h, g] = e.useState(null), [_, y] = e.useState(null), b = e.useCallback((e) => {
1217
1302
  e !== w.current && (w.current = e, g(e));
1218
- }, []), x = r.useCallback((e) => {
1303
+ }, []), x = e.useCallback((e) => {
1219
1304
  e !== T.current && (T.current = e, y(e));
1220
- }, []), S = o || h, C = s || _, w = r.useRef(null), T = r.useRef(null), E = r.useRef(d), D = l != null, O = Jt(l), k = Jt(a), A = Jt(u), j = r.useCallback(() => {
1305
+ }, []), S = o || h, C = s || _, w = e.useRef(null), T = e.useRef(null), E = e.useRef(d), D = l != null, O = nn(l), k = nn(a), A = nn(u), j = e.useCallback(() => {
1221
1306
  if (!w.current || !T.current) return;
1222
1307
  let e = {
1223
- placement: t,
1224
- strategy: n,
1308
+ placement: n,
1309
+ strategy: r,
1225
1310
  middleware: p
1226
1311
  };
1227
- k.current && (e.platform = k.current), Ut(w.current, T.current, e).then((e) => {
1312
+ k.current && (e.platform = k.current), Zt(w.current, T.current, e).then((e) => {
1228
1313
  let t = {
1229
1314
  ...e,
1230
1315
  isPositioned: A.current !== !1
1231
1316
  };
1232
- M.current && !Gt(E.current, t) && (E.current = t, v.flushSync(() => {
1317
+ M.current && !$t(E.current, t) && (E.current = t, v.flushSync(() => {
1233
1318
  f(t);
1234
1319
  }));
1235
1320
  });
1236
1321
  }, [
1237
1322
  p,
1238
- t,
1239
1323
  n,
1324
+ r,
1240
1325
  k,
1241
1326
  A
1242
1327
  ]);
1243
- Wt(() => {
1328
+ Qt(() => {
1244
1329
  u === !1 && E.current.isPositioned && (E.current.isPositioned = !1, f((e) => ({
1245
1330
  ...e,
1246
1331
  isPositioned: !1
1247
1332
  })));
1248
1333
  }, [u]);
1249
- let M = r.useRef(!1);
1250
- Wt(() => (M.current = !0, () => {
1334
+ let M = e.useRef(!1);
1335
+ Qt(() => (M.current = !0, () => {
1251
1336
  M.current = !1;
1252
- }), []), Wt(() => {
1337
+ }), []), Qt(() => {
1253
1338
  if (S && (w.current = S), C && (T.current = C), S && C) {
1254
1339
  if (O.current) return O.current(S, C, j);
1255
1340
  j();
@@ -1261,39 +1346,39 @@ function Yt(e) {
1261
1346
  O,
1262
1347
  D
1263
1348
  ]);
1264
- let N = r.useMemo(() => ({
1349
+ let N = e.useMemo(() => ({
1265
1350
  reference: w,
1266
1351
  floating: T,
1267
1352
  setReference: b,
1268
1353
  setFloating: x
1269
- }), [b, x]), P = r.useMemo(() => ({
1354
+ }), [b, x]), P = e.useMemo(() => ({
1270
1355
  reference: S,
1271
1356
  floating: C
1272
- }), [S, C]), F = r.useMemo(() => {
1357
+ }), [S, C]), F = e.useMemo(() => {
1273
1358
  let e = {
1274
- position: n,
1359
+ position: r,
1275
1360
  left: 0,
1276
1361
  top: 0
1277
1362
  };
1278
1363
  if (!P.floating) return e;
1279
- let t = qt(P.floating, d.x), r = qt(P.floating, d.y);
1364
+ let t = tn(P.floating, d.x), n = tn(P.floating, d.y);
1280
1365
  return c ? {
1281
1366
  ...e,
1282
- transform: "translate(" + t + "px, " + r + "px)",
1283
- ...Kt(P.floating) >= 1.5 && { willChange: "transform" }
1367
+ transform: "translate(" + t + "px, " + n + "px)",
1368
+ ...en(P.floating) >= 1.5 && { willChange: "transform" }
1284
1369
  } : {
1285
- position: n,
1370
+ position: r,
1286
1371
  left: t,
1287
- top: r
1372
+ top: n
1288
1373
  };
1289
1374
  }, [
1290
- n,
1375
+ r,
1291
1376
  c,
1292
1377
  P.floating,
1293
1378
  d.x,
1294
1379
  d.y
1295
1380
  ]);
1296
- return r.useMemo(() => ({
1381
+ return e.useMemo(() => ({
1297
1382
  ...d,
1298
1383
  update: j,
1299
1384
  refs: N,
@@ -1307,7 +1392,7 @@ function Yt(e) {
1307
1392
  F
1308
1393
  ]);
1309
1394
  }
1310
- var Xt = (e) => {
1395
+ var an = (e) => {
1311
1396
  function t(e) {
1312
1397
  return {}.hasOwnProperty.call(e, "current");
1313
1398
  }
@@ -1316,106 +1401,106 @@ var Xt = (e) => {
1316
1401
  options: e,
1317
1402
  fn(n) {
1318
1403
  let { element: r, padding: i } = typeof e == "function" ? e(n) : e;
1319
- return r && t(r) ? r.current == null ? {} : Ht({
1404
+ return r && t(r) ? r.current == null ? {} : Xt({
1320
1405
  element: r.current,
1321
1406
  padding: i
1322
- }).fn(n) : r ? Ht({
1407
+ }).fn(n) : r ? Xt({
1323
1408
  element: r,
1324
1409
  padding: i
1325
1410
  }).fn(n) : {};
1326
1411
  }
1327
1412
  };
1328
- }, Zt = (e, t) => {
1329
- let n = zt(e);
1413
+ }, on = (e, t) => {
1414
+ let n = qt(e);
1330
1415
  return {
1331
1416
  name: n.name,
1332
1417
  fn: n.fn,
1333
1418
  options: [e, t]
1334
1419
  };
1335
- }, Qt = (e, t) => {
1336
- let n = Bt(e);
1420
+ }, sn = (e, t) => {
1421
+ let n = Jt(e);
1337
1422
  return {
1338
1423
  name: n.name,
1339
1424
  fn: n.fn,
1340
1425
  options: [e, t]
1341
1426
  };
1342
- }, $t = (e, t) => {
1343
- let n = Vt(e);
1427
+ }, cn = (e, t) => {
1428
+ let n = Yt(e);
1344
1429
  return {
1345
1430
  name: n.name,
1346
1431
  fn: n.fn,
1347
1432
  options: [e, t]
1348
1433
  };
1349
- }, en = (e, t) => {
1350
- let n = Xt(e);
1434
+ }, ln = (e, t) => {
1435
+ let n = an(e);
1351
1436
  return {
1352
1437
  name: n.name,
1353
1438
  fn: n.fn,
1354
1439
  options: [e, t]
1355
1440
  };
1356
- }, tn = o(null);
1357
- function nn() {
1358
- return u(tn);
1441
+ }, un = r(null);
1442
+ function dn() {
1443
+ return s(un);
1359
1444
  }
1360
1445
  //#endregion
1361
1446
  //#region src/components/menu/menu_surface.tsx
1362
- var rn = "[role=\"menuitem\"]:not(:disabled)";
1363
- function an(e, t) {
1364
- let n = Array.from(e.querySelectorAll(rn));
1447
+ var fn = ":not(:disabled):not([aria-disabled=\"true\"])", pn = `[role="menuitem"]${fn}, [role="menuitemradio"]${fn}`;
1448
+ function mn(e, t) {
1449
+ let n = Array.from(e.querySelectorAll(pn));
1365
1450
  n.length !== 0 && n[(t % n.length + n.length) % n.length]?.focus({ preventScroll: !0 });
1366
1451
  }
1367
- function on({ setFloating: r, floatingStyles: i, isVisible: a, isPositioned: o, radius: s, onClose: c, children: l }) {
1368
- let u = h(null);
1369
- return d(() => {
1370
- if (!o) return;
1371
- let e = u.current;
1372
- e && e.querySelector(rn)?.focus({ preventScroll: !0 });
1373
- }, [o]), y(/* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("div", {
1452
+ function hn({ setFloating: e, floatingStyles: t, isVisible: n, isPositioned: r, radius: i, onClose: a, children: o }) {
1453
+ let s = f(null);
1454
+ return c(() => {
1455
+ if (!r) return;
1456
+ let e = s.current;
1457
+ e && e.querySelector(pn)?.focus({ preventScroll: !0 });
1458
+ }, [r]), y(/* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("div", {
1374
1459
  className: "fixed inset-0 z-40",
1375
- onClick: c,
1460
+ onClick: a,
1376
1461
  "aria-hidden": "true"
1377
- }), /* @__PURE__ */ t("div", {
1378
- ref: r,
1379
- style: i,
1462
+ }), /* @__PURE__ */ g("div", {
1463
+ ref: e,
1464
+ style: t,
1380
1465
  className: "z-50",
1381
- children: /* @__PURE__ */ t("div", {
1382
- ref: u,
1466
+ children: /* @__PURE__ */ g("div", {
1467
+ ref: s,
1383
1468
  role: "menu",
1384
1469
  tabIndex: -1,
1385
- "data-state": a ? "open" : "closed",
1470
+ "data-state": n ? "open" : "closed",
1386
1471
  onKeyDown: (e) => {
1387
- let t = u.current;
1472
+ let t = s.current;
1388
1473
  if (!t) return;
1389
- let n = Array.from(t.querySelectorAll(rn)), r = n.indexOf(document.activeElement);
1390
- e.key === "ArrowDown" ? (e.preventDefault(), an(t, r + 1)) : e.key === "ArrowUp" ? (e.preventDefault(), an(t, r - 1)) : e.key === "Home" ? (e.preventDefault(), an(t, 0)) : e.key === "End" ? (e.preventDefault(), an(t, n.length - 1)) : (e.key === "Escape" || e.key === "Tab") && c();
1474
+ let n = Array.from(t.querySelectorAll(pn)), r = n.indexOf(document.activeElement);
1475
+ e.key === "ArrowDown" ? (e.preventDefault(), mn(t, r + 1)) : e.key === "ArrowUp" ? (e.preventDefault(), mn(t, r - 1)) : e.key === "Home" ? (e.preventDefault(), mn(t, 0)) : e.key === "End" ? (e.preventDefault(), mn(t, n.length - 1)) : (e.key === "Escape" || e.key === "Tab") && a();
1391
1476
  },
1392
- className: x("w-max min-w-40 max-w-xs origin-top border py-1 shadow-lg backdrop-blur-sm", "transition-[opacity,transform] duration-150 ease-out", a ? "scale-100 opacity-100" : "scale-95 opacity-0", ne, te, S[s]),
1477
+ className: x("w-max min-w-40 max-w-xs origin-top border py-1 shadow-lg backdrop-blur-sm", "transition-[opacity,transform] duration-150 ease-out", n ? "scale-100 opacity-100" : "scale-95 opacity-0", z, re, S[i]),
1393
1478
  onClick: (e) => e.stopPropagation(),
1394
- children: /* @__PURE__ */ t(tn.Provider, {
1395
- value: c,
1396
- children: l
1479
+ children: /* @__PURE__ */ g(un.Provider, {
1480
+ value: a,
1481
+ children: o
1397
1482
  })
1398
1483
  })
1399
1484
  })] }), document.body);
1400
1485
  }
1401
1486
  //#endregion
1402
1487
  //#region src/components/shared/use_overlay_state.ts
1403
- function sn() {
1404
- let [e, t] = g(!1), [n, r] = g(!1), i = h(void 0);
1405
- return d(() => () => clearTimeout(i.current), []), {
1488
+ function gn() {
1489
+ let [e, t] = p(!1), [n, r] = p(!1), i = f(void 0);
1490
+ return c(() => () => clearTimeout(i.current), []), {
1406
1491
  isMounted: e,
1407
1492
  isVisible: n,
1408
1493
  setIsVisible: r,
1409
- open: l((e) => {
1494
+ open: o((e) => {
1410
1495
  clearTimeout(i.current), t(!0), e && r(!0);
1411
1496
  }, []),
1412
- close: l(() => {
1497
+ close: o(() => {
1413
1498
  clearTimeout(i.current), r(!1), i.current = setTimeout(() => t(!1), 150);
1414
1499
  }, [])
1415
1500
  };
1416
1501
  }
1417
- function cn(e, t, n) {
1418
- d(() => {
1502
+ function _n(e, t, n) {
1503
+ c(() => {
1419
1504
  if (!e || !t) return;
1420
1505
  let r = requestAnimationFrame(() => n(!0));
1421
1506
  return () => cancelAnimationFrame(r);
@@ -1427,8 +1512,8 @@ function cn(e, t, n) {
1427
1512
  }
1428
1513
  //#endregion
1429
1514
  //#region src/components/context_menu/context_menu.tsx
1430
- var ln = 2;
1431
- function un(e, t) {
1515
+ var vn = 2;
1516
+ function yn(e, t) {
1432
1517
  return { getBoundingClientRect: () => ({
1433
1518
  width: 0,
1434
1519
  height: 0,
@@ -1440,7 +1525,7 @@ function un(e, t) {
1440
1525
  bottom: t
1441
1526
  }) };
1442
1527
  }
1443
- function dn(e) {
1528
+ function bn(e) {
1444
1529
  if (e.clientX !== 0 || e.clientY !== 0) return {
1445
1530
  x: e.clientX,
1446
1531
  y: e.clientY
@@ -1454,43 +1539,43 @@ function dn(e) {
1454
1539
  y: 0
1455
1540
  };
1456
1541
  }
1457
- function fn({ children: e, items: r, radius: i = "md", className: a, ref: o }) {
1458
- let s = h(null), { isMounted: c, isVisible: u, setIsVisible: d, open: f, close: p } = sn(), { refs: m, floatingStyles: g, isPositioned: _ } = Yt({
1542
+ function xn({ children: e, items: t, radius: n = "md", className: r, ref: i }) {
1543
+ let a = f(null), { isMounted: s, isVisible: c, setIsVisible: l, open: u, close: d } = gn(), { refs: p, floatingStyles: m, isPositioned: h } = rn({
1459
1544
  placement: "bottom-start",
1460
- open: c,
1461
- whileElementsMounted: Rt,
1545
+ open: s,
1546
+ whileElementsMounted: Kt,
1462
1547
  middleware: [
1463
- Zt(ln),
1464
- $t(),
1465
- Qt({ padding: 8 })
1548
+ on(vn),
1549
+ cn(),
1550
+ sn({ padding: 8 })
1466
1551
  ]
1467
1552
  });
1468
- cn(c, _, d);
1469
- let v = l(() => {
1470
- p(), s.current?.focus();
1471
- }, [p]);
1472
- return /* @__PURE__ */ n("div", {
1473
- ref: o,
1474
- className: a,
1553
+ _n(s, h, l);
1554
+ let v = o(() => {
1555
+ d(), a.current?.focus();
1556
+ }, [d]);
1557
+ return /* @__PURE__ */ _("div", {
1558
+ ref: i,
1559
+ className: r,
1475
1560
  onContextMenu: (e) => {
1476
- e.preventDefault(), s.current = document.activeElement;
1477
- let { x: t, y: n } = dn(e);
1478
- m.setReference(un(t, n)), f(!1);
1561
+ e.preventDefault(), a.current = document.activeElement;
1562
+ let { x: t, y: n } = bn(e);
1563
+ p.setReference(yn(t, n)), u(!1);
1479
1564
  },
1480
- children: [e, c && /* @__PURE__ */ t(on, {
1481
- setFloating: m.setFloating,
1482
- floatingStyles: g,
1483
- isVisible: u,
1484
- isPositioned: _,
1485
- radius: i,
1565
+ children: [e, s && /* @__PURE__ */ g(hn, {
1566
+ setFloating: p.setFloating,
1567
+ floatingStyles: m,
1568
+ isVisible: c,
1569
+ isPositioned: h,
1570
+ radius: n,
1486
1571
  onClose: v,
1487
- children: r
1572
+ children: t
1488
1573
  })]
1489
1574
  });
1490
1575
  }
1491
1576
  //#endregion
1492
1577
  //#region src/lib/surface_error.ts
1493
- function pn(e, t) {
1578
+ function Sn(e, t) {
1494
1579
  if (t) {
1495
1580
  t(e);
1496
1581
  return;
@@ -1501,23 +1586,23 @@ function pn(e, t) {
1501
1586
  }
1502
1587
  //#endregion
1503
1588
  //#region src/components/copy_button/copy_button.tsx
1504
- var mn = 2e3;
1505
- function hn({ value: n, children: r, onError: i }) {
1506
- let [a, o] = g(!1), s = h(void 0);
1507
- return d(() => () => clearTimeout(s.current), []), /* @__PURE__ */ t(e, { children: r({
1508
- copied: a,
1589
+ var Cn = 2e3;
1590
+ function wn({ value: e, children: t, onError: n }) {
1591
+ let [r, i] = p(!1), a = f(void 0);
1592
+ return c(() => () => clearTimeout(a.current), []), /* @__PURE__ */ g(h, { children: t({
1593
+ copied: r,
1509
1594
  copy: async () => {
1510
1595
  try {
1511
- await navigator.clipboard.writeText(n), o(!0), clearTimeout(s.current), s.current = setTimeout(() => o(!1), mn);
1596
+ await navigator.clipboard.writeText(e), i(!0), clearTimeout(a.current), a.current = setTimeout(() => i(!1), Cn);
1512
1597
  } catch (e) {
1513
- pn(e, i);
1598
+ Sn(e, n);
1514
1599
  }
1515
1600
  }
1516
1601
  }) });
1517
1602
  }
1518
1603
  //#endregion
1519
1604
  //#region src/lib/split_into_highlight_segments.ts
1520
- function gn(e, t) {
1605
+ function Tn(e, t) {
1521
1606
  if (t.length === 0) return [{
1522
1607
  text: e,
1523
1608
  isMatch: !1
@@ -1540,56 +1625,56 @@ function gn(e, t) {
1540
1625
  }
1541
1626
  //#endregion
1542
1627
  //#region src/components/highlight/highlight.tsx
1543
- function _n({ text: n, ranges: r }) {
1544
- let i = gn(n, r), a = 0;
1545
- return /* @__PURE__ */ t(e, { children: i.map((e) => {
1546
- let n = a;
1547
- return a += e.text.length, e.isMatch ? /* @__PURE__ */ t("mark", {
1628
+ function En({ text: e, ranges: t }) {
1629
+ let n = Tn(e, t), r = 0;
1630
+ return /* @__PURE__ */ g(h, { children: n.map((e) => {
1631
+ let t = r;
1632
+ return r += e.text.length, e.isMatch ? /* @__PURE__ */ g("mark", {
1548
1633
  className: "rounded bg-yellow-200 text-yellow-900 dark:bg-yellow-800 dark:text-yellow-100",
1549
1634
  children: e.text
1550
- }, n) : /* @__PURE__ */ t("span", { children: e.text }, n);
1635
+ }, t) : /* @__PURE__ */ g("span", { children: e.text }, t);
1551
1636
  }) });
1552
1637
  }
1553
1638
  //#endregion
1554
1639
  //#region src/components/icon_button/icon_button.tsx
1555
- var vn = {
1640
+ var Dn = {
1556
1641
  xs: "p-1",
1557
1642
  sm: "p-2",
1558
1643
  md: "p-2",
1559
1644
  lg: "p-3"
1560
- }, yn = {
1645
+ }, On = {
1561
1646
  xs: "w-4 h-4",
1562
1647
  sm: "w-4 h-4",
1563
1648
  md: "w-5 h-5",
1564
1649
  lg: "w-6 h-6"
1565
1650
  };
1566
- function bn(e) {
1567
- let { icon: r, "aria-label": i, unstyled: a = !1, variant: o = "outline", color: s = "neutral", size: c = "md", radius: l = "md", className: u, children: d, ref: f, ...p } = e, m = O[s];
1568
- return /* @__PURE__ */ n("button", {
1569
- ref: f,
1651
+ function kn(e) {
1652
+ let { icon: t, "aria-label": n, unstyled: r = !1, variant: i = "outline", color: a = "neutral", size: o = "md", radius: s = "md", className: c, children: l, ref: u, ...d } = e, f = O[a];
1653
+ return /* @__PURE__ */ _("button", {
1654
+ ref: u,
1570
1655
  type: "button",
1571
- "aria-label": i,
1572
- className: x(k, !a && [
1656
+ "aria-label": n,
1657
+ className: x(k, !r && [
1573
1658
  A,
1574
1659
  "border",
1575
- S[l],
1576
- vn[c],
1577
- m[o],
1578
- m.focusOutline
1579
- ], u),
1580
- ...p,
1581
- children: [/* @__PURE__ */ t("div", { className: x(r, yn[c], d && "mr-1") }), d]
1660
+ S[s],
1661
+ Dn[o],
1662
+ f[i],
1663
+ f.focusOutline
1664
+ ], c),
1665
+ ...d,
1666
+ children: [/* @__PURE__ */ g("div", { className: x(t, On[o], l && "mr-1") }), l]
1582
1667
  });
1583
1668
  }
1584
1669
  //#endregion
1585
1670
  //#region src/components/shared/use_controlled_length.ts
1586
- function xn(e) {
1671
+ function An(e) {
1587
1672
  return typeof e == "string" ? e.length : 0;
1588
1673
  }
1589
- function Sn(e, t) {
1590
- let [n, r] = g(xn(t)), i = e !== void 0;
1674
+ function jn(e, t) {
1675
+ let [n, r] = p(An(t)), i = e !== void 0;
1591
1676
  return {
1592
- length: i ? xn(e) : n,
1677
+ length: i ? An(e) : n,
1593
1678
  trackLength: (e) => {
1594
1679
  i || r(e.length);
1595
1680
  }
@@ -1597,126 +1682,206 @@ function Sn(e, t) {
1597
1682
  }
1598
1683
  //#endregion
1599
1684
  //#region src/components/input/input.tsx
1600
- function Cn({ label: e, error: r, showCharCount: i = !1, minLength: a, maxLength: o, radius: s = "md", unstyled: c = !1, className: l, wrapperClassName: u, value: d, defaultValue: f, onChange: p, id: m, ...h }) {
1601
- let { fieldId: g, errorId: _ } = V(m), { length: v, trackLength: y } = Sn(d, f), b = i && (a !== void 0 || o !== void 0), C = (e) => {
1602
- y(e.target.value), p?.(e);
1685
+ function Mn({ label: e, error: t, showCharCount: n = !1, minLength: r, maxLength: i, radius: a = "md", unstyled: o = !1, className: s, wrapperClassName: c, value: l, defaultValue: u, onChange: d, id: f, ...p }) {
1686
+ let { fieldId: m, errorId: h } = B(f), { length: v, trackLength: y } = jn(l, u), b = n && (r !== void 0 || i !== void 0), C = (e) => {
1687
+ y(e.target.value), d?.(e);
1603
1688
  };
1604
- return /* @__PURE__ */ n(de, {
1605
- fieldId: g,
1606
- errorId: _,
1689
+ return /* @__PURE__ */ _(xe, {
1690
+ fieldId: m,
1691
+ errorId: h,
1607
1692
  label: e,
1608
- error: r,
1609
- required: h.required,
1610
- wrapperClassName: u,
1611
- children: [/* @__PURE__ */ t("input", {
1612
- id: g,
1613
- className: x("w-full disabled:opacity-50 disabled:cursor-not-allowed", !c && [
1614
- B,
1615
- S[s],
1693
+ error: t,
1694
+ required: p.required,
1695
+ wrapperClassName: c,
1696
+ children: [/* @__PURE__ */ g("input", {
1697
+ id: m,
1698
+ className: x("w-full disabled:opacity-50 disabled:cursor-not-allowed", !o && [
1699
+ de,
1700
+ S[a],
1616
1701
  "px-3 py-2 text-sm"
1617
- ], !c && r && x("border-red-500 dark:border-red-400", "focus:ring-red-500"), l),
1618
- ...d === void 0 ? { defaultValue: f } : { value: d },
1619
- minLength: a,
1620
- maxLength: o,
1702
+ ], !o && t && x("border-red-500 dark:border-red-400", "focus:ring-red-500"), s),
1703
+ ...l === void 0 ? { defaultValue: u } : { value: l },
1704
+ minLength: r,
1705
+ maxLength: i,
1621
1706
  onChange: C,
1622
- "aria-invalid": !!r,
1623
- "aria-describedby": r ? _ : void 0,
1624
- ...h
1625
- }), b && /* @__PURE__ */ t(R, {
1707
+ "aria-invalid": !!t,
1708
+ "aria-describedby": t ? h : void 0,
1709
+ ...p
1710
+ }), b && /* @__PURE__ */ g(ue, {
1626
1711
  current: v,
1627
- min: a,
1628
- max: o,
1629
- showMin: a !== void 0,
1630
- showMax: o !== void 0
1712
+ min: r,
1713
+ max: i,
1714
+ showMin: r !== void 0,
1715
+ showMax: i !== void 0
1631
1716
  })]
1632
1717
  });
1633
1718
  }
1634
1719
  //#endregion
1635
1720
  //#region src/components/kbd/kbd.tsx
1636
- var wn = {
1721
+ var Nn = {
1637
1722
  xs: "px-1.5 py-0.5 text-xs",
1638
1723
  sm: "px-2 py-0.5 text-xs",
1639
1724
  md: "px-2.5 py-1 text-sm",
1640
1725
  lg: "px-3 py-1 text-base"
1641
- }, Tn = ({ children: e, size: n = "sm", radius: r = "sm", unstyled: i = !1, className: a }) => /* @__PURE__ */ t("kbd", {
1642
- className: x("inline-flex items-center", wn[n], !i && [
1726
+ }, Pn = ({ children: e, size: t = "sm", radius: n = "sm", unstyled: r = !1, className: i }) => /* @__PURE__ */ g("kbd", {
1727
+ className: x("inline-flex items-center", Nn[t], !r && [
1643
1728
  "border font-semibold uppercase",
1644
1729
  "text-gray-500 dark:text-gray-400",
1645
1730
  "bg-gray-100 dark:bg-gray-700",
1646
1731
  "border-gray-200 dark:border-gray-600",
1647
- S[r]
1648
- ], a),
1732
+ S[n]
1733
+ ], i),
1649
1734
  children: e
1650
1735
  });
1651
1736
  //#endregion
1652
1737
  //#region src/lib/merge_refs.ts
1653
- function En(...e) {
1738
+ function Fn(...e) {
1654
1739
  return (t) => {
1655
1740
  for (let n of e) typeof n == "function" ? n(t) : n && (n.current = t);
1656
1741
  };
1657
1742
  }
1658
1743
  //#endregion
1659
1744
  //#region src/components/menu/menu.tsx
1660
- var Dn = 4;
1661
- function On(e, t) {
1745
+ var In = 4;
1746
+ function Ln(e, t) {
1662
1747
  return t === "center" ? e : `${e}-${t}`;
1663
1748
  }
1664
- function kn({ trigger: e, children: r, side: i = "bottom", align: o = "start", radius: s = "md", className: u, ref: d }) {
1665
- let f = h(null), { isMounted: p, isVisible: m, setIsVisible: g, open: _, close: v } = sn(), { refs: y, floatingStyles: b, isPositioned: S } = Yt({
1666
- placement: On(i, o),
1667
- open: p,
1668
- whileElementsMounted: Rt,
1749
+ function Rn({ trigger: e, children: t, side: r = "bottom", align: i = "start", radius: s = "md", className: c, ref: l }) {
1750
+ let u = f(null), { isMounted: d, isVisible: p, setIsVisible: m, open: h, close: v } = gn(), { refs: y, floatingStyles: b, isPositioned: S } = rn({
1751
+ placement: Ln(r, i),
1752
+ open: d,
1753
+ whileElementsMounted: Kt,
1669
1754
  middleware: [
1670
- Zt(Dn),
1671
- $t(),
1672
- Qt({ padding: 8 })
1755
+ on(In),
1756
+ cn(),
1757
+ sn({ padding: 8 })
1673
1758
  ]
1674
1759
  });
1675
- cn(p, S, g);
1676
- let C = l(() => {
1677
- v(), f.current?.querySelector("button, [href], [tabindex]")?.focus();
1678
- }, [v]), w = l((e) => En(y.setReference, f, d)(e), [y, d]), T = {
1760
+ _n(d, S, m);
1761
+ let C = o(() => {
1762
+ v(), u.current?.querySelector("button, [href], [tabindex]")?.focus();
1763
+ }, [v]), w = o((e) => Fn(y.setReference, u, l)(e), [y, l]), T = {
1679
1764
  onClick: (t) => {
1680
- t.stopPropagation(), m ? v() : _(S), c(e) && e.props.onClick?.(t);
1765
+ t.stopPropagation(), p ? v() : h(S), a(e) && e.props.onClick?.(t);
1681
1766
  },
1682
1767
  "aria-haspopup": "menu",
1683
- "aria-expanded": p
1684
- }, E = c(e) ? a(e, T) : e;
1685
- return /* @__PURE__ */ n("span", {
1768
+ "aria-expanded": d
1769
+ }, E = a(e) ? n(e, T) : e;
1770
+ return /* @__PURE__ */ _("span", {
1686
1771
  ref: w,
1687
- className: x("inline-block", u),
1688
- children: [E, p && /* @__PURE__ */ t(on, {
1772
+ className: x("inline-block", c),
1773
+ children: [E, d && /* @__PURE__ */ g(hn, {
1689
1774
  setFloating: y.setFloating,
1690
1775
  floatingStyles: b,
1691
- isVisible: m,
1776
+ isVisible: p,
1692
1777
  isPositioned: S,
1693
1778
  radius: s,
1694
1779
  onClose: C,
1695
- children: r
1780
+ children: t
1696
1781
  })]
1697
1782
  });
1698
1783
  }
1699
1784
  //#endregion
1700
- //#region src/components/menu_item/menu_item.tsx
1701
- function An({ icon: e, onClick: r, danger: i = !1, disabled: a = !1, children: o, className: s, ref: c }) {
1702
- let l = nn();
1703
- return /* @__PURE__ */ n("button", {
1785
+ //#region src/components/menu_group/menu_group.tsx
1786
+ function zn({ label: e, children: t, unstyled: n = !1, className: r, wrapperClassName: i }) {
1787
+ let a = l();
1788
+ return /* @__PURE__ */ _("div", {
1789
+ role: "group",
1790
+ "aria-labelledby": a,
1791
+ className: i,
1792
+ children: [/* @__PURE__ */ g("div", {
1793
+ id: a,
1794
+ role: "presentation",
1795
+ className: x(!n && "px-4 py-1.5 text-xs font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400", r),
1796
+ children: e
1797
+ }), t]
1798
+ });
1799
+ }
1800
+ //#endregion
1801
+ //#region src/components/menu_item/menu_item_end.tsx
1802
+ function Bn({ trailing: e, selected: t }) {
1803
+ let n = t !== void 0;
1804
+ return !e && !n ? null : /* @__PURE__ */ _("span", {
1805
+ className: "ml-auto flex flex-shrink-0 items-center gap-2 pl-2",
1806
+ children: [e && /* @__PURE__ */ g("span", {
1807
+ className: "text-xs text-gray-500 dark:text-gray-400",
1808
+ children: e
1809
+ }), n && /* @__PURE__ */ g("span", {
1810
+ className: x("i-mdi-check h-4 w-4", !t && "invisible"),
1811
+ "aria-hidden": "true"
1812
+ })]
1813
+ });
1814
+ }
1815
+ //#endregion
1816
+ //#region src/components/menu_item/menu_item_styles.ts
1817
+ var Vn = ["flex w-full cursor-pointer items-center gap-2 whitespace-nowrap px-4 py-2 text-left text-sm transition-colors", "focus-visible:bg-gray-100 focus-visible:outline-none dark:focus-visible:bg-gray-700"];
1818
+ function Hn(e, t, n) {
1819
+ return x(Vn, e, t ? "text-red-600 dark:text-red-400" : "text-gray-700 dark:text-gray-300", n);
1820
+ }
1821
+ //#endregion
1822
+ //#region src/components/menu_item/menu_item_content.tsx
1823
+ var Un = ({ icon: e, children: t }) => /* @__PURE__ */ _(h, { children: [e && /* @__PURE__ */ g("div", {
1824
+ className: x(e, "h-4 w-4 flex-shrink-0"),
1825
+ "aria-hidden": "true"
1826
+ }), t] }), Wn = "_blank", Gn = "noopener noreferrer", Kn = ["no-underline hover:bg-gray-100 dark:hover:bg-gray-700", "aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled:opacity-50"];
1827
+ function qn({ icon: e, trailing: t, href: n, target: r, rel: i, danger: a = !1, disabled: o = !1, children: s, className: c, ref: l }) {
1828
+ let u = dn();
1829
+ return /* @__PURE__ */ _("a", {
1830
+ ref: l,
1831
+ role: "menuitem",
1832
+ tabIndex: -1,
1833
+ href: o ? void 0 : n,
1834
+ target: r,
1835
+ rel: i ?? (r === Wn ? Gn : void 0),
1836
+ "aria-disabled": o || void 0,
1837
+ onClick: (e) => {
1838
+ e.stopPropagation(), u?.();
1839
+ },
1840
+ className: Hn(Kn, a, c),
1841
+ children: [/* @__PURE__ */ g(Un, {
1842
+ icon: e,
1843
+ children: s
1844
+ }), /* @__PURE__ */ g(Bn, { trailing: t })]
1845
+ });
1846
+ }
1847
+ //#endregion
1848
+ //#region src/components/menu_item/menu_item_button.tsx
1849
+ var Jn = ["hover:enabled:bg-gray-100 dark:hover:enabled:bg-gray-700", "disabled:cursor-not-allowed disabled:opacity-50"];
1850
+ function Yn({ icon: e, trailing: t, onClick: n, selected: r, danger: i = !1, disabled: a = !1, children: o, className: s, ref: c }) {
1851
+ let l = dn();
1852
+ return /* @__PURE__ */ _("button", {
1704
1853
  ref: c,
1705
1854
  type: "button",
1706
- role: "menuitem",
1855
+ role: r === void 0 ? "menuitem" : "menuitemradio",
1856
+ "aria-checked": r,
1707
1857
  tabIndex: -1,
1708
1858
  onClick: (e) => {
1709
- e.stopPropagation(), r(e), l?.();
1859
+ e.stopPropagation(), n(e), l?.();
1710
1860
  },
1711
1861
  disabled: a,
1712
- className: x("flex w-full cursor-pointer items-center gap-2 whitespace-nowrap px-4 py-2 text-left text-sm transition-colors", "hover:enabled:bg-gray-100 dark:hover:enabled:bg-gray-700", "focus-visible:bg-gray-100 focus-visible:outline-none dark:focus-visible:bg-gray-700", "disabled:cursor-not-allowed disabled:opacity-50", i ? "text-red-600 dark:text-red-400" : "text-gray-700 dark:text-gray-300", s),
1713
- children: [e && /* @__PURE__ */ t("div", { className: x(e, "h-4 w-4 flex-shrink-0") }), o]
1862
+ className: Hn(Jn, i, s),
1863
+ children: [/* @__PURE__ */ g(Un, {
1864
+ icon: e,
1865
+ children: o
1866
+ }), /* @__PURE__ */ g(Bn, {
1867
+ trailing: t,
1868
+ selected: r
1869
+ })]
1714
1870
  });
1715
1871
  }
1716
1872
  //#endregion
1717
- //#region node_modules/.pnpm/react-call@2.0.2_react-dom@19.2.8_react@19.2.8__react@19.2.8_vite@8.2.1_@types+node@26.2.0_es_s57p6lt2ddgt4vomhz3tbzqsbu/node_modules/react-call/dist/main.js
1718
- var jn = [];
1719
- function Mn() {
1873
+ //#region src/components/menu_item/menu_item.tsx
1874
+ function Xn(e) {
1875
+ return e.href === void 0 ? /* @__PURE__ */ g(Yn, { ...e }) : /* @__PURE__ */ g(qn, { ...e });
1876
+ }
1877
+ //#endregion
1878
+ //#region src/components/menu_separator/menu_separator.tsx
1879
+ var Zn = ({ unstyled: e = !1, className: t }) => /* @__PURE__ */ g("hr", {
1880
+ role: "separator",
1881
+ "aria-orientation": "horizontal",
1882
+ className: x("w-full", !e && ["my-1 border-0 border-t", "border-gray-200 dark:border-gray-700"], t)
1883
+ }), Qn = [];
1884
+ function $n() {
1720
1885
  let e = 0, t = [], n = null, r = /* @__PURE__ */ new Set(), i = () => {
1721
1886
  for (let e of r) e(t);
1722
1887
  };
@@ -1737,7 +1902,7 @@ function Mn() {
1737
1902
  r.delete(i), r.size || (e = 0, t = [], n = null);
1738
1903
  }),
1739
1904
  getSnapshot: () => t,
1740
- getServerSnapshot: () => jn,
1905
+ getServerSnapshot: () => Qn,
1741
1906
  getListenersSize: () => r.size,
1742
1907
  getUpsertPromise: () => n,
1743
1908
  setUpsertPromise: (e) => {
@@ -1745,39 +1910,39 @@ function Mn() {
1745
1910
  }
1746
1911
  };
1747
1912
  }
1748
- var Nn = /* @__PURE__ */ new Map();
1749
- function Pn(e, t = 0) {
1750
- let n = { current: Mn() }, r = (e) => (r) => {
1913
+ var er = /* @__PURE__ */ new Map();
1914
+ function tr(e, t = 0) {
1915
+ let n = { current: $n() }, r = (e) => (r) => {
1751
1916
  let i = /* @__PURE__ */ new Set();
1752
1917
  n.current.set(e, (e) => (e.resolve(r), i.add(e.promise), {
1753
1918
  ...e,
1754
1919
  ended: !0
1755
1920
  })), globalThis.setTimeout(() => n.current.remove(i), t);
1756
- }, i = () => {
1921
+ }, a = () => {
1757
1922
  let e = n.current.getListenersSize();
1758
1923
  if (!e) throw Error("No <Root> found!");
1759
1924
  if (e > 1) throw Error("Multiple instances of <Root> found!");
1760
- }, a = (e) => {
1761
- i();
1762
- let t, a = new Promise((e) => {
1925
+ }, o = (e) => {
1926
+ a();
1927
+ let t, i = new Promise((e) => {
1763
1928
  t = e;
1764
1929
  });
1765
1930
  return n.current.add({
1766
1931
  props: e,
1767
- end: r(a),
1932
+ end: r(i),
1768
1933
  ended: !1,
1769
- promise: a,
1934
+ promise: i,
1770
1935
  resolve: t
1771
- }), a;
1772
- }, o = (e) => {
1773
- i();
1936
+ }), i;
1937
+ }, s = (e) => {
1938
+ a();
1774
1939
  let t = n.current.getUpsertPromise();
1775
1940
  if (t) return n.current.set(t, (t) => ({
1776
1941
  ...t,
1777
1942
  props: e
1778
1943
  })), t;
1779
- let a, o = new Promise((e) => {
1780
- a = e;
1944
+ let i, o = new Promise((e) => {
1945
+ i = e;
1781
1946
  });
1782
1947
  return n.current.setUpsertPromise(o), n.current.add({
1783
1948
  props: e,
@@ -1786,7 +1951,7 @@ function Pn(e, t = 0) {
1786
1951
  },
1787
1952
  ended: !1,
1788
1953
  promise: o,
1789
- resolve: a
1954
+ resolve: i
1790
1955
  }), o;
1791
1956
  }, c = (...e) => {
1792
1957
  let t = e.length === 2, i = t ? e[0] : null, a = t ? e[1] : e[0];
@@ -1801,22 +1966,22 @@ function Pn(e, t = 0) {
1801
1966
  }
1802
1967
  }));
1803
1968
  }, u = function(t) {
1804
- return _(n.current.subscribe, n.current.getSnapshot, n.current.getServerSnapshot).map(({ props: n, key: r, end: i, ended: a }, o, c) => /* @__PURE__ */ s(e, {
1969
+ return m(n.current.subscribe, n.current.getSnapshot, n.current.getServerSnapshot).map(({ props: n, key: r, end: a, ended: o }, s, c) => /* @__PURE__ */ i(e, {
1805
1970
  ...n,
1806
1971
  key: r,
1807
1972
  call: {
1808
1973
  key: r,
1809
- end: i,
1810
- ended: a,
1974
+ end: a,
1975
+ ended: o,
1811
1976
  root: t,
1812
- index: o,
1977
+ index: s,
1813
1978
  stackSize: c.length
1814
1979
  }
1815
1980
  }));
1816
1981
  }, d = Object.assign(u, {
1817
1982
  Root: u,
1818
- call: a,
1819
- upsert: o,
1983
+ call: o,
1984
+ upsert: s,
1820
1985
  end: c,
1821
1986
  update: l
1822
1987
  });
@@ -1833,8 +1998,8 @@ function Pn(e, t = 0) {
1833
1998
  set: (r) => {
1834
1999
  if (t || (e = r, !r)) return;
1835
2000
  t = !0;
1836
- let i = Nn.get(r);
1837
- i ? n.current = i : Nn.set(r, n.current);
2001
+ let i = er.get(r);
2002
+ i ? n.current = i : er.set(r, n.current);
1838
2003
  }
1839
2004
  });
1840
2005
  }
@@ -1842,97 +2007,97 @@ function Pn(e, t = 0) {
1842
2007
  }
1843
2008
  //#endregion
1844
2009
  //#region src/components/modal/modal_shell.tsx
1845
- var Fn = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", In = {
2010
+ var nr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", rr = {
1846
2011
  sm: "max-w-md",
1847
2012
  md: "max-w-lg",
1848
2013
  lg: "max-w-2xl",
1849
2014
  xl: "max-w-4xl"
1850
2015
  };
1851
- function Ln({ isEnded: e, onDismiss: r, title: i, children: a, footer: o, size: s = "md", radius: c = "xl", className: l, dismissible: u = !0, closeLabel: p = "Close" }) {
1852
- let [m, _] = g(!1), v = h(null), b = h(null), C = h(null), w = f();
1853
- d(() => {
2016
+ function ir({ isEnded: e, onDismiss: t, title: n, children: r, footer: i, size: a = "md", radius: o = "xl", className: s, dismissible: u = !0, closeLabel: d = "Close" }) {
2017
+ let [m, h] = p(!1), v = f(null), b = f(null), C = f(null), w = l();
2018
+ c(() => {
1854
2019
  document.body.style.overflow = "hidden", C.current = document.activeElement;
1855
2020
  let e = v.current;
1856
- (b.current?.querySelector(Fn) ?? e?.querySelector(Fn) ?? e)?.focus();
2021
+ (b.current?.querySelector(nr) ?? e?.querySelector(nr) ?? e)?.focus();
1857
2022
  let t = requestAnimationFrame(() => {
1858
- requestAnimationFrame(() => _(!0));
2023
+ requestAnimationFrame(() => h(!0));
1859
2024
  });
1860
2025
  return () => {
1861
2026
  cancelAnimationFrame(t), document.body.style.overflow = "";
1862
2027
  };
1863
- }, []), d(() => {
2028
+ }, []), c(() => {
1864
2029
  e && C.current?.focus();
1865
- }, [e]), d(() => {
2030
+ }, [e]), c(() => {
1866
2031
  if (e) return;
1867
- let t = (e) => {
2032
+ let n = (e) => {
1868
2033
  if (e.key === "Escape") {
1869
- u && r();
2034
+ u && t();
1870
2035
  return;
1871
2036
  }
1872
2037
  if (e.key !== "Tab") return;
1873
- let t = v.current;
1874
- if (!t) return;
1875
- let n = Array.from(t.querySelectorAll(Fn));
1876
- if (n.length === 0) return;
1877
- let i = n[0], a = n[n.length - 1];
2038
+ let n = v.current;
2039
+ if (!n) return;
2040
+ let r = Array.from(n.querySelectorAll(nr));
2041
+ if (r.length === 0) return;
2042
+ let i = r[0], a = r[r.length - 1];
1878
2043
  e.shiftKey && document.activeElement === i ? (e.preventDefault(), a.focus()) : !e.shiftKey && document.activeElement === a && (e.preventDefault(), i.focus());
1879
2044
  };
1880
- return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
2045
+ return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
1881
2046
  }, [
1882
2047
  e,
1883
- r,
2048
+ t,
1884
2049
  u
1885
2050
  ]);
1886
2051
  let T = () => {
1887
- !e && u && r();
2052
+ !e && u && t();
1888
2053
  }, E = m && !e;
1889
- return y(/* @__PURE__ */ n("div", {
2054
+ return y(/* @__PURE__ */ _("div", {
1890
2055
  className: x("fixed inset-0 z-50 flex items-start justify-center", "p-2 sm:py-[3rem] lg:py-[5rem]", "transition-opacity duration-200 ease-out", E ? "opacity-100" : "opacity-0"),
1891
2056
  onClick: T,
1892
- children: [/* @__PURE__ */ t("div", {
2057
+ children: [/* @__PURE__ */ g("div", {
1893
2058
  className: x("fixed inset-0 bg-black/60 backdrop-blur-md", "transition-opacity duration-200 ease-out", E ? "opacity-100" : "opacity-0"),
1894
2059
  "aria-hidden": "true"
1895
- }), /* @__PURE__ */ n("div", {
2060
+ }), /* @__PURE__ */ _("div", {
1896
2061
  ref: v,
1897
2062
  role: "dialog",
1898
2063
  "aria-modal": "true",
1899
- "aria-labelledby": i ? w : void 0,
2064
+ "aria-labelledby": n ? w : void 0,
1900
2065
  tabIndex: -1,
1901
- className: x("relative w-full", In[s], ne, "shadow-2xl", S[c], "max-h-[calc(100vh-4rem)] sm:max-h-[calc(100vh-10rem)] overflow-hidden flex flex-col", "transition-all duration-200 ease-out", "focus:outline-none", E ? "opacity-100 scale-100 translate-y-0" : "opacity-0 scale-95 translate-y-1"),
2066
+ className: x("relative w-full", rr[a], z, "shadow-2xl", S[o], "max-h-[calc(100vh-4rem)] sm:max-h-[calc(100vh-10rem)] overflow-hidden flex flex-col", "transition-all duration-200 ease-out", "focus:outline-none", E ? "opacity-100 scale-100 translate-y-0" : "opacity-0 scale-95 translate-y-1"),
1902
2067
  onClick: (e) => e.stopPropagation(),
1903
2068
  children: [
1904
- i && /* @__PURE__ */ n("div", {
2069
+ n && /* @__PURE__ */ _("div", {
1905
2070
  className: "flex items-center justify-between gap-4 px-6 pt-5 pb-4 flex-shrink-0",
1906
- children: [/* @__PURE__ */ t("h2", {
2071
+ children: [/* @__PURE__ */ g("h2", {
1907
2072
  id: w,
1908
2073
  className: "text-base font-medium tracking-tight text-gray-900 dark:text-gray-100",
1909
- children: i
1910
- }), u && /* @__PURE__ */ t(bn, {
2074
+ children: n
2075
+ }), u && /* @__PURE__ */ g(kn, {
1911
2076
  icon: "i-mdi-close",
1912
- onClick: r,
1913
- "aria-label": p,
2077
+ onClick: t,
2078
+ "aria-label": d,
1914
2079
  variant: "subtle",
1915
2080
  size: "sm",
1916
2081
  radius: "full",
1917
2082
  className: "-mr-1"
1918
2083
  })]
1919
2084
  }),
1920
- /* @__PURE__ */ t("div", {
2085
+ /* @__PURE__ */ g("div", {
1921
2086
  ref: b,
1922
- className: x("flex-1 overflow-y-auto px-6 pb-6 text-sm leading-relaxed text-gray-600 dark:text-gray-400 min-h-0", !i && "pt-6", l),
1923
- children: a
2087
+ className: x("flex-1 overflow-y-auto px-6 pb-6 text-sm leading-relaxed text-gray-600 dark:text-gray-400 min-h-0", !n && "pt-6", s),
2088
+ children: r
1924
2089
  }),
1925
- o && /* @__PURE__ */ t("div", {
2090
+ i && /* @__PURE__ */ g("div", {
1926
2091
  className: x("flex items-center justify-end gap-3 px-6 py-4 border-t flex-shrink-0", "border-gray-100 dark:border-gray-800"),
1927
- children: o
2092
+ children: i
1928
2093
  })
1929
2094
  ]
1930
2095
  })]
1931
2096
  }), document.body);
1932
2097
  }
1933
2098
  //#endregion
1934
- //#region node_modules/.pnpm/zustand@5.0.14_@types+react@19.2.18_react@19.2.8_use-sync-external-store@1.6.0_react@19.2.8_/node_modules/zustand/esm/vanilla.mjs
1935
- var Rn = (e) => {
2099
+ //#region node_modules/.pnpm/zustand@5.0.15_@types+react@19.2.18_react@19.2.8_use-sync-external-store@1.6.0_react@19.2.8_/node_modules/zustand/esm/vanilla.mjs
2100
+ var ar = (e) => {
1936
2101
  let t, n = /* @__PURE__ */ new Set(), r = (e, r) => {
1937
2102
  let i = typeof e == "function" ? e(t) : e;
1938
2103
  if (!Object.is(i, t)) {
@@ -1946,165 +2111,165 @@ var Rn = (e) => {
1946
2111
  subscribe: (e) => (n.add(e), () => n.delete(e))
1947
2112
  }, o = t = e(r, i, a);
1948
2113
  return a;
1949
- }, zn = ((e) => e ? Rn(e) : Rn), Bn = (e) => e;
1950
- function Vn(e, t = Bn) {
1951
- let n = i.useSyncExternalStore(e.subscribe, i.useCallback(() => t(e.getState()), [e, t]), i.useCallback(() => t(e.getInitialState()), [e, t]));
1952
- return i.useDebugValue(n), n;
2114
+ }, or = ((e) => e ? ar(e) : ar), sr = (e) => e;
2115
+ function cr(e, n = sr) {
2116
+ let r = t.useSyncExternalStore(e.subscribe, t.useCallback(() => n(e.getState()), [e, n]), t.useCallback(() => n(e.getInitialState()), [e, n]));
2117
+ return t.useDebugValue(r), r;
1953
2118
  }
1954
- var Hn = (e) => {
1955
- let t = zn(e), n = (e) => Vn(t, e);
2119
+ var lr = (e) => {
2120
+ let t = or(e), n = (e) => cr(t, e);
1956
2121
  return Object.assign(n, t), n;
1957
- }, Un = ((e) => e ? Hn(e) : Hn), Wn = Un((e) => ({
2122
+ }, ur = ((e) => e ? lr(e) : lr), dr = ur((e) => ({
1958
2123
  globalHotkeysEnabled: !0,
1959
2124
  setGlobalHotkeysEnabled: (t) => e({ globalHotkeysEnabled: t })
1960
- })), Gn = 0;
1961
- function Kn() {
1962
- d(() => (Gn += 1, Gn === 1 && Wn.getState().setGlobalHotkeysEnabled(!1), () => {
1963
- --Gn, Gn === 0 && Wn.getState().setGlobalHotkeysEnabled(!0);
2125
+ })), fr = 0;
2126
+ function pr() {
2127
+ c(() => (fr += 1, fr === 1 && dr.getState().setGlobalHotkeysEnabled(!1), () => {
2128
+ --fr, fr === 0 && dr.getState().setGlobalHotkeysEnabled(!0);
1964
2129
  }), []);
1965
2130
  }
1966
2131
  //#endregion
1967
2132
  //#region src/components/modal/confirm_modal.tsx
1968
- var qn = {
2133
+ var mr = {
1969
2134
  danger: "i-mdi-alert-circle",
1970
2135
  primary: "i-mdi-help-circle",
1971
2136
  success: "i-mdi-check-circle"
1972
- }, Jn = {
2137
+ }, hr = {
1973
2138
  danger: "bg-red-50 text-red-600 dark:bg-red-500/10 dark:text-red-400",
1974
2139
  primary: "bg-blue-50 text-blue-600 dark:bg-blue-500/10 dark:text-blue-400",
1975
2140
  success: "bg-green-50 text-green-600 dark:bg-green-500/10 dark:text-green-400"
1976
2141
  };
1977
- function Yn({ title: e, color: r }) {
1978
- return /* @__PURE__ */ n("div", {
2142
+ function gr({ title: e, color: t }) {
2143
+ return /* @__PURE__ */ _("div", {
1979
2144
  className: "flex items-center gap-3",
1980
- children: [/* @__PURE__ */ t("span", {
1981
- className: x("flex h-9 w-9 shrink-0 items-center justify-center rounded-full", Jn[r]),
2145
+ children: [/* @__PURE__ */ g("span", {
2146
+ className: x("flex h-9 w-9 shrink-0 items-center justify-center rounded-full", hr[t]),
1982
2147
  "aria-hidden": "true",
1983
- children: /* @__PURE__ */ t("span", { className: x(qn[r], "h-5 w-5") })
2148
+ children: /* @__PURE__ */ g("span", { className: x(mr[t], "h-5 w-5") })
1984
2149
  }), e]
1985
2150
  });
1986
2151
  }
1987
- var Xn = Pn(({ call: r, title: i, children: a, confirmLabel: o, cancelLabel: s, confirmColor: c, radius: l, closeLabel: u, onConfirm: d, onError: f }) => {
1988
- Kn();
1989
- let [p, m] = g(!1), h = () => r.end(!1), _ = async () => {
1990
- if (!d) {
1991
- r.end(!0);
2152
+ var _r = tr(({ call: e, title: t, children: n, confirmLabel: r, cancelLabel: i, confirmColor: a, radius: o, closeLabel: s, onConfirm: c, onError: l }) => {
2153
+ pr();
2154
+ let [u, d] = p(!1), f = () => e.end(!1), m = async () => {
2155
+ if (!c) {
2156
+ e.end(!0);
1992
2157
  return;
1993
2158
  }
1994
- m(!0);
2159
+ d(!0);
1995
2160
  try {
1996
- await d(), r.end(!0);
2161
+ await c(), e.end(!0);
1997
2162
  } catch (e) {
1998
- m(!1), pn(e, f);
2163
+ d(!1), Sn(e, l);
1999
2164
  }
2000
- }, v = p, y = o ?? "Confirm", b = s ?? "Cancel", x = c ?? "primary";
2001
- return /* @__PURE__ */ t(Ln, {
2002
- isEnded: r.ended,
2003
- onDismiss: h,
2004
- title: /* @__PURE__ */ t(Yn, {
2005
- title: i,
2165
+ }, v = u, y = r ?? "Confirm", b = i ?? "Cancel", x = a ?? "primary";
2166
+ return /* @__PURE__ */ g(ir, {
2167
+ isEnded: e.ended,
2168
+ onDismiss: f,
2169
+ title: /* @__PURE__ */ g(gr, {
2170
+ title: t,
2006
2171
  color: x
2007
2172
  }),
2008
2173
  size: "sm",
2009
- radius: l,
2010
- closeLabel: u,
2011
- footer: /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t(F, {
2174
+ radius: o,
2175
+ closeLabel: s,
2176
+ footer: /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(R, {
2012
2177
  variant: "outline",
2013
2178
  color: "neutral",
2014
- onClick: h,
2179
+ onClick: f,
2015
2180
  disabled: v,
2016
2181
  size: "sm",
2017
2182
  children: b
2018
- }), /* @__PURE__ */ t(F, {
2183
+ }), /* @__PURE__ */ g(R, {
2019
2184
  color: x,
2020
2185
  onClick: () => {
2021
- _();
2186
+ m();
2022
2187
  },
2023
2188
  loading: v,
2024
2189
  disabled: v,
2025
2190
  size: "sm",
2026
2191
  children: y
2027
2192
  })] }),
2028
- children: a
2193
+ children: n
2029
2194
  });
2030
2195
  }, 200);
2031
2196
  //#endregion
2032
2197
  //#region src/components/modal/modal.tsx
2033
- function Zn(e, t) {
2198
+ function vr(e, t) {
2034
2199
  return typeof e == "function" ? e(t) : e;
2035
2200
  }
2036
- var Qn = o(null), $n = Pn(({ call: e, title: n, children: r, size: i, radius: a, className: o, dismissible: s, closeLabel: c }) => {
2037
- Kn();
2038
- let [l, u] = g(null), d = () => e.end();
2039
- return /* @__PURE__ */ t(Ln, {
2201
+ var yr = r(null), br = tr(({ call: e, title: t, children: n, size: r, radius: i, className: a, dismissible: o, closeLabel: s }) => {
2202
+ pr();
2203
+ let [c, l] = p(null), u = () => e.end();
2204
+ return /* @__PURE__ */ g(ir, {
2040
2205
  isEnded: e.ended,
2041
- onDismiss: d,
2042
- title: n,
2043
- footer: l,
2044
- size: i,
2045
- radius: a,
2046
- className: o,
2047
- dismissible: s,
2048
- closeLabel: c,
2049
- children: /* @__PURE__ */ t(Qn.Provider, {
2050
- value: u,
2051
- children: Zn(r, d)
2206
+ onDismiss: u,
2207
+ title: t,
2208
+ footer: c,
2209
+ size: r,
2210
+ radius: i,
2211
+ className: a,
2212
+ dismissible: o,
2213
+ closeLabel: s,
2214
+ children: /* @__PURE__ */ g(yr.Provider, {
2215
+ value: l,
2216
+ children: vr(n, u)
2052
2217
  })
2053
2218
  });
2054
2219
  }, 200);
2055
2220
  //#endregion
2056
2221
  //#region src/components/modal/modal_footer.tsx
2057
- function er({ children: e }) {
2058
- let t = u(Qn);
2059
- return d(() => (t?.(e), () => t?.(null)), [t, e]), null;
2222
+ function xr({ children: e }) {
2223
+ let t = s(yr);
2224
+ return c(() => (t?.(e), () => t?.(null)), [t, e]), null;
2060
2225
  }
2061
2226
  //#endregion
2062
2227
  //#region src/components/modal_provider/modal_provider.tsx
2063
- function tr() {
2064
- return /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t($n, {}), /* @__PURE__ */ t(Xn, {})] });
2228
+ function Sr() {
2229
+ return /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(br, {}), /* @__PURE__ */ g(_r, {})] });
2065
2230
  }
2066
2231
  //#endregion
2067
2232
  //#region src/components/radio_options/radio_option_row.tsx
2068
- function nr({ option: e, optionId: r, descriptionId: i, name: a, orientation: o, isSelected: s, isDisabled: c, isFirstOption: l, required: u, error: d, radius: f, unstyled: p, className: m, onSelect: h }) {
2069
- return /* @__PURE__ */ n("label", {
2070
- htmlFor: r,
2071
- className: x("flex cursor-pointer items-start gap-3 transition-colors duration-150", o === "horizontal" && "flex-1", T, d ? D : E, !p && [
2072
- S[f],
2233
+ function Cr({ option: e, optionId: t, descriptionId: n, name: r, orientation: i, isSelected: a, isDisabled: o, isFirstOption: s, required: c, error: l, radius: u, unstyled: d, className: f, onSelect: p }) {
2234
+ return /* @__PURE__ */ _("label", {
2235
+ htmlFor: t,
2236
+ className: x("flex cursor-pointer items-start gap-3 transition-colors duration-150", i === "horizontal" && "flex-1", T, l ? D : E, !d && [
2237
+ S[u],
2073
2238
  "border px-3 py-2.5",
2074
- s ? d ? x("border-red-500 dark:border-red-400", "bg-red-50 dark:bg-red-950/20") : "border-blue-500 bg-blue-50 dark:border-blue-500 dark:bg-blue-950/25" : d ? "border-red-300 bg-white dark:border-red-800/50 dark:bg-gray-800/50" : x("border-gray-200 dark:border-gray-700", "bg-gray-50 hover:border-gray-300 hover:bg-white dark:bg-gray-800/50 dark:hover:border-gray-600 dark:hover:bg-gray-800")
2075
- ], c && "cursor-not-allowed opacity-50", m),
2239
+ a ? l ? x("border-red-500 dark:border-red-400", "bg-red-50 dark:bg-red-950/20") : "border-blue-500 bg-blue-50 dark:border-blue-500 dark:bg-blue-950/25" : l ? "border-red-300 bg-white dark:border-red-800/50 dark:bg-gray-800/50" : x("border-gray-200 dark:border-gray-700", "bg-gray-50 hover:border-gray-300 hover:bg-white dark:bg-gray-800/50 dark:hover:border-gray-600 dark:hover:bg-gray-800")
2240
+ ], o && "cursor-not-allowed opacity-50", f),
2076
2241
  children: [
2077
- /* @__PURE__ */ t("input", {
2242
+ /* @__PURE__ */ g("input", {
2078
2243
  type: "radio",
2079
- id: r,
2080
- name: a,
2244
+ id: t,
2245
+ name: r,
2081
2246
  value: e.value,
2082
- checked: s,
2083
- onChange: () => h(e.value),
2084
- disabled: c,
2085
- required: u && l,
2086
- "aria-invalid": d ? !0 : void 0,
2087
- "aria-describedby": e.description ? i : void 0,
2247
+ checked: a,
2248
+ onChange: () => p(e.value),
2249
+ disabled: o,
2250
+ required: c && s,
2251
+ "aria-invalid": l ? !0 : void 0,
2252
+ "aria-describedby": e.description ? n : void 0,
2088
2253
  className: "sr-only"
2089
2254
  }),
2090
- /* @__PURE__ */ t("span", {
2091
- className: x("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded-full border-2 transition-colors duration-150", s ? d ? ae : "border-blue-600 dark:border-blue-500" : d ? "border-red-400 dark:border-red-600" : z),
2255
+ /* @__PURE__ */ g("span", {
2256
+ className: x("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded-full border-2 transition-colors duration-150", a ? l ? me : "border-blue-600 dark:border-blue-500" : l ? "border-red-400 dark:border-red-600" : te),
2092
2257
  "aria-hidden": !0,
2093
- children: s && /* @__PURE__ */ t("span", { className: x("h-2 w-2 rounded-full", d ? "bg-red-500 dark:bg-red-400" : "bg-blue-600 dark:bg-blue-500") })
2258
+ children: a && /* @__PURE__ */ g("span", { className: x("h-2 w-2 rounded-full", l ? "bg-red-500 dark:bg-red-400" : "bg-blue-600 dark:bg-blue-500") })
2094
2259
  }),
2095
- /* @__PURE__ */ n("span", {
2260
+ /* @__PURE__ */ _("span", {
2096
2261
  className: "flex min-w-0 flex-col",
2097
- children: [/* @__PURE__ */ n("span", {
2262
+ children: [/* @__PURE__ */ _("span", {
2098
2263
  className: "flex items-center gap-1.5",
2099
- children: [e.icon && /* @__PURE__ */ t("span", {
2100
- className: x(e.icon, "h-4 w-4 shrink-0", s ? d ? "text-red-600 dark:text-red-400" : "text-blue-600 dark:text-blue-400" : "text-gray-500 dark:text-gray-400"),
2264
+ children: [e.icon && /* @__PURE__ */ g("span", {
2265
+ className: x(e.icon, "h-4 w-4 shrink-0", a ? l ? "text-red-600 dark:text-red-400" : "text-blue-600 dark:text-blue-400" : "text-gray-500 dark:text-gray-400"),
2101
2266
  "aria-hidden": !0
2102
- }), /* @__PURE__ */ t("span", {
2103
- className: x("select-none text-sm font-medium", s ? d ? "text-red-700 dark:text-red-300" : "text-blue-700 dark:text-blue-300" : "text-gray-700 dark:text-gray-300"),
2267
+ }), /* @__PURE__ */ g("span", {
2268
+ className: x("select-none text-sm font-medium", a ? l ? "text-red-700 dark:text-red-300" : "text-blue-700 dark:text-blue-300" : "text-gray-700 dark:text-gray-300"),
2104
2269
  children: e.label
2105
2270
  })]
2106
- }), e.description && /* @__PURE__ */ t("span", {
2107
- id: i,
2271
+ }), e.description && /* @__PURE__ */ g("span", {
2272
+ id: n,
2108
2273
  className: x("text-xs text-gray-500 dark:text-gray-400", "mt-0.5"),
2109
2274
  children: e.description
2110
2275
  })]
@@ -2114,49 +2279,49 @@ function nr({ option: e, optionId: r, descriptionId: i, name: a, orientation: o,
2114
2279
  }
2115
2280
  //#endregion
2116
2281
  //#region src/components/radio_options/radio_options.tsx
2117
- function rr({ options: e, orientation: r = "vertical", value: i, defaultValue: a, onChange: o, name: s, label: c, error: l, required: u, disabled: d, radius: f = "lg", unstyled: p = !1, className: m, wrapperClassName: h, id: g, ..._ }) {
2118
- let { fieldId: v, errorId: y } = V(g), b = s ?? v, [S, C] = H(i, a ?? ""), w = e.map((e) => typeof e == "string" ? {
2282
+ function wr({ options: e, orientation: t = "vertical", value: n, defaultValue: r, onChange: i, name: a, label: o, error: s, required: c, disabled: l, radius: u = "lg", unstyled: d = !1, className: f, wrapperClassName: p, id: m, ...h }) {
2283
+ let { fieldId: v, errorId: y } = B(m), b = a ?? v, [S, C] = _e(n, r ?? ""), w = e.map((e) => typeof e == "string" ? {
2119
2284
  value: e,
2120
2285
  label: e
2121
2286
  } : e), T = (e) => {
2122
- C(e), o?.(e);
2287
+ C(e), i?.(e);
2123
2288
  };
2124
- return /* @__PURE__ */ n("fieldset", {
2125
- className: x("m-0 border-0 p-0", h),
2126
- disabled: d,
2127
- "aria-describedby": l ? y : void 0,
2128
- "aria-required": u,
2129
- ..._,
2289
+ return /* @__PURE__ */ _("fieldset", {
2290
+ className: x("m-0 border-0 p-0", p),
2291
+ disabled: l,
2292
+ "aria-describedby": s ? y : void 0,
2293
+ "aria-required": c,
2294
+ ...h,
2130
2295
  children: [
2131
- c && /* @__PURE__ */ n("legend", {
2296
+ o && /* @__PURE__ */ _("legend", {
2132
2297
  className: x("text-sm font-medium text-gray-700 dark:text-gray-300", "mb-2"),
2133
- children: [c, u && /* @__PURE__ */ t("span", {
2298
+ children: [o, c && /* @__PURE__ */ g("span", {
2134
2299
  className: "text-red-500 dark:text-red-400 ml-1",
2135
2300
  children: "*"
2136
2301
  })]
2137
2302
  }),
2138
- /* @__PURE__ */ t("div", {
2139
- className: x(r === "horizontal" ? "flex flex-row gap-2" : "flex flex-col gap-2"),
2140
- children: w.map((e, n) => /* @__PURE__ */ t(nr, {
2303
+ /* @__PURE__ */ g("div", {
2304
+ className: x(t === "horizontal" ? "flex flex-row gap-2" : "flex flex-col gap-2"),
2305
+ children: w.map((e, n) => /* @__PURE__ */ g(Cr, {
2141
2306
  option: e,
2142
2307
  optionId: `${v}-${n}`,
2143
2308
  descriptionId: `${v}-${n}-desc`,
2144
2309
  name: b,
2145
- orientation: r,
2310
+ orientation: t,
2146
2311
  isSelected: S === e.value,
2147
- isDisabled: d === !0 || e.disabled === !0,
2312
+ isDisabled: l === !0 || e.disabled === !0,
2148
2313
  isFirstOption: n === 0,
2149
- required: u,
2150
- error: l,
2151
- radius: f,
2152
- unstyled: p,
2153
- className: m,
2314
+ required: c,
2315
+ error: s,
2316
+ radius: u,
2317
+ unstyled: d,
2318
+ className: f,
2154
2319
  onSelect: T
2155
2320
  }, e.value))
2156
2321
  }),
2157
- /* @__PURE__ */ t(oe, {
2322
+ /* @__PURE__ */ g(he, {
2158
2323
  id: y,
2159
- error: l,
2324
+ error: s,
2160
2325
  className: "mt-2"
2161
2326
  })
2162
2327
  ]
@@ -2164,32 +2329,32 @@ function rr({ options: e, orientation: r = "vertical", value: i, defaultValue: a
2164
2329
  }
2165
2330
  //#endregion
2166
2331
  //#region src/components/select/select.tsx
2167
- function ir({ options: e, label: r, error: i, placeholder: a, radius: o = "md", unstyled: s = !1, className: c, wrapperClassName: l, value: u, defaultValue: d, onChange: f, id: p, ...m }) {
2168
- let { fieldId: h, errorId: g } = V(p);
2169
- return /* @__PURE__ */ t(de, {
2170
- fieldId: h,
2171
- errorId: g,
2172
- label: r,
2173
- error: i,
2174
- required: m.required,
2175
- wrapperClassName: l,
2176
- children: /* @__PURE__ */ n("select", {
2177
- id: h,
2178
- className: x("w-full disabled:opacity-50 disabled:cursor-not-allowed", !s && [
2179
- B,
2180
- S[o],
2332
+ function Tr({ options: e, label: t, error: n, placeholder: r, radius: i = "md", unstyled: a = !1, className: o, wrapperClassName: s, value: c, defaultValue: l, onChange: u, id: d, ...f }) {
2333
+ let { fieldId: p, errorId: m } = B(d);
2334
+ return /* @__PURE__ */ g(xe, {
2335
+ fieldId: p,
2336
+ errorId: m,
2337
+ label: t,
2338
+ error: n,
2339
+ required: f.required,
2340
+ wrapperClassName: s,
2341
+ children: /* @__PURE__ */ _("select", {
2342
+ id: p,
2343
+ className: x("w-full disabled:opacity-50 disabled:cursor-not-allowed", !a && [
2344
+ de,
2345
+ S[i],
2181
2346
  "pl-3 pr-8 py-2 text-sm appearance-none bg-[length:1rem_1rem] bg-[position:right_0.5rem_center] bg-no-repeat",
2182
2347
  "bg-[url(\"data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3e%3cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27M6 8l4 4 4-4%27/%3e%3c/svg%3e\")]"
2183
- ], !s && i && x("border-red-500 dark:border-red-400", "focus:ring-red-500"), c),
2184
- ...u === void 0 ? { defaultValue: d } : { value: u },
2185
- onChange: f,
2186
- "aria-invalid": !!i,
2187
- "aria-describedby": i ? g : void 0,
2188
- ...m,
2189
- children: [a !== void 0 && /* @__PURE__ */ t("option", {
2348
+ ], !a && n && x("border-red-500 dark:border-red-400", "focus:ring-red-500"), o),
2349
+ ...c === void 0 ? { defaultValue: l } : { value: c },
2350
+ onChange: u,
2351
+ "aria-invalid": !!n,
2352
+ "aria-describedby": n ? m : void 0,
2353
+ ...f,
2354
+ children: [r !== void 0 && /* @__PURE__ */ g("option", {
2190
2355
  value: "",
2191
- children: a
2192
- }), e.map((e) => /* @__PURE__ */ t("option", {
2356
+ children: r
2357
+ }), e.map((e) => /* @__PURE__ */ g("option", {
2193
2358
  value: e.value,
2194
2359
  children: e.label
2195
2360
  }, e.value))]
@@ -2198,55 +2363,55 @@ function ir({ options: e, label: r, error: i, placeholder: a, radius: o = "md",
2198
2363
  }
2199
2364
  //#endregion
2200
2365
  //#region src/components/switch/switch.tsx
2201
- function ar({ label: r, description: i, error: a, unstyled: o = !1, className: s, wrapperClassName: c, checked: l, defaultChecked: u = !1, onChange: d, id: f, ...p }) {
2202
- let { fieldId: m, errorId: h, descriptionId: g } = V(f), [_, v] = H(l, u), y = [i && g, a && h].filter(Boolean).join(" ") || void 0;
2203
- return /* @__PURE__ */ n("div", {
2204
- className: x("w-full", c),
2366
+ function Er({ label: e, description: t, error: n, unstyled: r = !1, className: i, wrapperClassName: a, checked: o, defaultChecked: s = !1, onChange: c, id: l, ...u }) {
2367
+ let { fieldId: d, errorId: f, descriptionId: p } = B(l), [m, v] = _e(o, s), y = [t && p, n && f].filter(Boolean).join(" ") || void 0;
2368
+ return /* @__PURE__ */ _("div", {
2369
+ className: x("w-full", a),
2205
2370
  children: [
2206
- /* @__PURE__ */ n("label", {
2207
- htmlFor: m,
2208
- className: x("flex items-center gap-3 cursor-pointer", p.disabled && "cursor-not-allowed opacity-50"),
2209
- children: [/* @__PURE__ */ n("span", {
2210
- className: x("relative inline-flex w-11 shrink-0", "transition-colors duration-200 ease-in-out", T, E, !o && [
2371
+ /* @__PURE__ */ _("label", {
2372
+ htmlFor: d,
2373
+ className: x("flex items-center gap-3 cursor-pointer", u.disabled && "cursor-not-allowed opacity-50"),
2374
+ children: [/* @__PURE__ */ _("span", {
2375
+ className: x("relative inline-flex w-11 shrink-0", "transition-colors duration-200 ease-in-out", T, E, !r && [
2211
2376
  "rounded-full border-2 border-transparent",
2212
- _ ? "bg-blue-600 dark:bg-blue-500" : "bg-gray-200 dark:bg-gray-600",
2213
- a && "ring-2 ring-red-500 dark:ring-red-400"
2214
- ], s),
2215
- children: [/* @__PURE__ */ t("input", {
2377
+ m ? "bg-blue-600 dark:bg-blue-500" : "bg-gray-200 dark:bg-gray-600",
2378
+ n && "ring-2 ring-red-500 dark:ring-red-400"
2379
+ ], i),
2380
+ children: [/* @__PURE__ */ g("input", {
2216
2381
  type: "checkbox",
2217
2382
  role: "switch",
2218
- id: m,
2383
+ id: d,
2219
2384
  className: "sr-only",
2220
- checked: _,
2385
+ checked: m,
2221
2386
  onChange: (e) => {
2222
- v(e.target.checked), d?.(e);
2387
+ v(e.target.checked), c?.(e);
2223
2388
  },
2224
- "aria-invalid": !!a,
2389
+ "aria-invalid": !!n,
2225
2390
  "aria-describedby": y,
2226
- ...p
2227
- }), /* @__PURE__ */ t("span", {
2228
- className: x("pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0", "transition duration-200 ease-in-out", _ ? "translate-x-5.25" : "translate-x-0"),
2391
+ ...u
2392
+ }), /* @__PURE__ */ g("span", {
2393
+ className: x("pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0", "transition duration-200 ease-in-out", m ? "translate-x-5.25" : "translate-x-0"),
2229
2394
  "aria-hidden": !0
2230
2395
  })]
2231
- }), r && /* @__PURE__ */ t(e, { children: typeof r == "string" ? /* @__PURE__ */ n("span", {
2396
+ }), e && /* @__PURE__ */ g(h, { children: typeof e == "string" ? /* @__PURE__ */ _("span", {
2232
2397
  className: x("text-sm font-medium text-gray-700 dark:text-gray-300", "select-none"),
2233
- children: [r, p.required && /* @__PURE__ */ t("span", {
2398
+ children: [e, u.required && /* @__PURE__ */ g("span", {
2234
2399
  className: "text-red-500 dark:text-red-400 ml-1",
2235
2400
  children: "*"
2236
2401
  })]
2237
- }) : /* @__PURE__ */ n(e, { children: [r, p.required && /* @__PURE__ */ t("span", {
2402
+ }) : /* @__PURE__ */ _(h, { children: [e, u.required && /* @__PURE__ */ g("span", {
2238
2403
  className: "text-red-500 dark:text-red-400 ml-1",
2239
2404
  children: "*"
2240
2405
  })] }) })]
2241
2406
  }),
2242
- /* @__PURE__ */ t(se, {
2243
- id: g,
2244
- description: i,
2407
+ /* @__PURE__ */ g(ge, {
2408
+ id: p,
2409
+ description: t,
2245
2410
  className: "mt-1 ml-14"
2246
2411
  }),
2247
- /* @__PURE__ */ t(oe, {
2248
- id: h,
2249
- error: a,
2412
+ /* @__PURE__ */ g(he, {
2413
+ id: f,
2414
+ error: n,
2250
2415
  className: "mt-1 ml-14"
2251
2416
  })
2252
2417
  ]
@@ -2254,133 +2419,133 @@ function ar({ label: r, description: i, error: a, unstyled: o = !1, className: s
2254
2419
  }
2255
2420
  //#endregion
2256
2421
  //#region src/components/tabs/tabs.tsx
2257
- function or({ items: e, value: r, defaultIndex: i = 0, radius: a = "md", unstyled: o = !1, className: s, tabListClassName: c, panelClassName: l, onChange: u }) {
2258
- let [d, p] = H(r, i), m = f(), g = h([]), _ = (t) => {
2259
- e[t]?.disabled || (p(t), u?.(t));
2422
+ function Dr({ items: e, value: t, defaultIndex: n = 0, radius: r = "md", unstyled: i = !1, className: a, tabListClassName: o, panelClassName: s, onChange: c }) {
2423
+ let [u, d] = _e(t, n), p = l(), m = f([]), h = (t) => {
2424
+ e[t]?.disabled || (d(t), c?.(t));
2260
2425
  }, v = (e) => {
2261
- g.current[e]?.focus(), _(e);
2426
+ m.current[e]?.focus(), h(e);
2262
2427
  }, y = (t) => {
2263
2428
  let n = e.map((e, t) => t).filter((t) => !e[t]?.disabled);
2264
2429
  if (n.length === 0) return;
2265
- let r = n.indexOf(d);
2430
+ let r = n.indexOf(u);
2266
2431
  t.key === "ArrowRight" ? (t.preventDefault(), v(n[(r + 1) % n.length])) : t.key === "ArrowLeft" ? (t.preventDefault(), v(n[(r - 1 + n.length) % n.length])) : t.key === "Home" ? (t.preventDefault(), v(n[0])) : t.key === "End" && (t.preventDefault(), v(n[n.length - 1]));
2267
- }, b = e[d];
2268
- return /* @__PURE__ */ n("div", {
2269
- className: x("w-full", s),
2270
- children: [/* @__PURE__ */ t("div", {
2432
+ }, b = e[u];
2433
+ return /* @__PURE__ */ _("div", {
2434
+ className: x("w-full", a),
2435
+ children: [/* @__PURE__ */ g("div", {
2271
2436
  role: "tablist",
2272
- className: x("flex gap-1 p-1", !o && [
2437
+ className: x("flex gap-1 p-1", !i && [
2273
2438
  "bg-gray-100 dark:bg-gray-800/50 border",
2274
2439
  "border-gray-200 dark:border-gray-700",
2275
- S[a]
2276
- ], c),
2277
- children: e.map((e, r) => /* @__PURE__ */ n("button", {
2440
+ S[r]
2441
+ ], o),
2442
+ children: e.map((e, t) => /* @__PURE__ */ _("button", {
2278
2443
  ref: (e) => {
2279
- g.current[r] = e;
2444
+ m.current[t] = e;
2280
2445
  },
2281
- id: `${m}-tab-${r}`,
2446
+ id: `${p}-tab-${t}`,
2282
2447
  role: "tab",
2283
2448
  type: "button",
2284
- "aria-selected": d === r,
2449
+ "aria-selected": u === t,
2285
2450
  "aria-disabled": e.disabled,
2286
- "aria-controls": `${m}-panel-${r}`,
2287
- tabIndex: d === r ? 0 : -1,
2451
+ "aria-controls": `${p}-panel-${t}`,
2452
+ tabIndex: u === t ? 0 : -1,
2288
2453
  disabled: e.disabled,
2289
- onClick: () => _(r),
2454
+ onClick: () => h(t),
2290
2455
  onKeyDown: y,
2291
- className: x("flex items-center gap-2 px-4 py-2.5 text-sm font-medium", e.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer", !o && [S[a], d === r ? x("bg-white dark:bg-gray-700 text-blue-600 dark:text-blue-400 shadow-sm border", "border-gray-200 dark:border-gray-700") : x("text-gray-600 dark:text-gray-400 border border-transparent", !e.disabled && "hover:text-gray-900 dark:hover:text-gray-200 hover:bg-gray-200/50 dark:hover:bg-gray-700/50")]),
2292
- children: [e.icon && /* @__PURE__ */ t("span", { className: x("w-4 h-4 block shrink-0", e.icon, !o && (d === r ? "text-blue-600 dark:text-blue-400" : "text-gray-500 dark:text-gray-400")) }), e.title]
2456
+ className: x("flex items-center gap-2 px-4 py-2.5 text-sm font-medium", e.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer", !i && [S[r], u === t ? x("bg-white dark:bg-gray-700 text-blue-600 dark:text-blue-400 shadow-sm border", "border-gray-200 dark:border-gray-700") : x("text-gray-600 dark:text-gray-400 border border-transparent", !e.disabled && "hover:text-gray-900 dark:hover:text-gray-200 hover:bg-gray-200/50 dark:hover:bg-gray-700/50")]),
2457
+ children: [e.icon && /* @__PURE__ */ g("span", { className: x("w-4 h-4 block shrink-0", e.icon, !i && (u === t ? "text-blue-600 dark:text-blue-400" : "text-gray-500 dark:text-gray-400")) }), e.title]
2293
2458
  }, e.title))
2294
- }), /* @__PURE__ */ t("div", {
2459
+ }), /* @__PURE__ */ g("div", {
2295
2460
  role: "tabpanel",
2296
- id: `${m}-panel-${d}`,
2297
- "aria-labelledby": `${m}-tab-${d}`,
2461
+ id: `${p}-panel-${u}`,
2462
+ "aria-labelledby": `${p}-tab-${u}`,
2298
2463
  tabIndex: 0,
2299
- className: x("mt-3 overflow-hidden focus:outline-none", !o && [
2464
+ className: x("mt-3 overflow-hidden focus:outline-none", !i && [
2300
2465
  "border bg-white dark:bg-gray-800/50 p-4",
2301
2466
  "border-gray-200 dark:border-gray-700",
2302
- S[a]
2303
- ], l),
2304
- children: /* @__PURE__ */ t("div", {
2467
+ S[r]
2468
+ ], s),
2469
+ children: /* @__PURE__ */ g("div", {
2305
2470
  className: "tabs-panel-inner",
2306
2471
  children: b?.content
2307
- }, d)
2472
+ }, u)
2308
2473
  })]
2309
2474
  });
2310
2475
  }
2311
2476
  //#endregion
2312
2477
  //#region src/components/textarea/textarea.tsx
2313
- function sr({ label: e, error: r, showCharCount: i = !1, minLength: a, maxLength: o, radius: s = "md", unstyled: c = !1, className: l, wrapperClassName: u, value: d, defaultValue: f, onChange: p, id: m, ...h }) {
2314
- let { fieldId: g, errorId: _ } = V(m), { length: v, trackLength: y } = Sn(d, f), b = i && (a !== void 0 || o !== void 0), C = (e) => {
2315
- y(e.target.value), p?.(e);
2478
+ function Or({ label: e, error: t, showCharCount: n = !1, minLength: r, maxLength: i, radius: a = "md", unstyled: o = !1, className: s, wrapperClassName: c, value: l, defaultValue: u, onChange: d, id: f, ...p }) {
2479
+ let { fieldId: m, errorId: h } = B(f), { length: v, trackLength: y } = jn(l, u), b = n && (r !== void 0 || i !== void 0), C = (e) => {
2480
+ y(e.target.value), d?.(e);
2316
2481
  };
2317
- return /* @__PURE__ */ n(de, {
2318
- fieldId: g,
2319
- errorId: _,
2482
+ return /* @__PURE__ */ _(xe, {
2483
+ fieldId: m,
2484
+ errorId: h,
2320
2485
  label: e,
2321
- error: r,
2322
- required: h.required,
2323
- wrapperClassName: u,
2324
- children: [/* @__PURE__ */ t("textarea", {
2325
- id: g,
2326
- className: x("w-full min-h-[80px] resize-y disabled:opacity-50 disabled:cursor-not-allowed", !c && [
2327
- B,
2328
- S[s],
2486
+ error: t,
2487
+ required: p.required,
2488
+ wrapperClassName: c,
2489
+ children: [/* @__PURE__ */ g("textarea", {
2490
+ id: m,
2491
+ className: x("w-full min-h-[80px] resize-y disabled:opacity-50 disabled:cursor-not-allowed", !o && [
2492
+ de,
2493
+ S[a],
2329
2494
  "px-3 py-2 text-sm"
2330
- ], !c && r && x("border-red-500 dark:border-red-400", "focus:ring-red-500"), l),
2331
- ...d === void 0 ? { defaultValue: f } : { value: d },
2332
- minLength: a,
2333
- maxLength: o,
2495
+ ], !o && t && x("border-red-500 dark:border-red-400", "focus:ring-red-500"), s),
2496
+ ...l === void 0 ? { defaultValue: u } : { value: l },
2497
+ minLength: r,
2498
+ maxLength: i,
2334
2499
  onChange: C,
2335
- "aria-invalid": !!r,
2336
- "aria-describedby": r ? _ : void 0,
2337
- ...h
2338
- }), b && /* @__PURE__ */ t(R, {
2500
+ "aria-invalid": !!t,
2501
+ "aria-describedby": t ? h : void 0,
2502
+ ...p
2503
+ }), b && /* @__PURE__ */ g(ue, {
2339
2504
  current: v,
2340
- min: a,
2341
- max: o,
2342
- showMin: a !== void 0,
2343
- showMax: o !== void 0
2505
+ min: r,
2506
+ max: i,
2507
+ showMin: r !== void 0,
2508
+ showMax: i !== void 0
2344
2509
  })]
2345
2510
  });
2346
2511
  }
2347
2512
  //#endregion
2348
2513
  //#region src/stores/theme_store/theme_store.ts
2349
- var cr = "theme";
2350
- function lr(e) {
2514
+ var kr = "theme";
2515
+ function Ar(e) {
2351
2516
  return e === "light" || e === "dark" || e === "system";
2352
2517
  }
2353
- function ur() {
2518
+ function jr() {
2354
2519
  return globalThis.window !== void 0 && globalThis.document !== void 0;
2355
2520
  }
2356
- function dr(e) {
2521
+ function Mr(e) {
2357
2522
  let t = window.matchMedia("(prefers-color-scheme: dark)").matches, n = e === "dark" || e === "system" && t;
2358
2523
  document.documentElement.classList.toggle("dark", n);
2359
2524
  }
2360
- function fr() {
2361
- if (!ur()) return "system";
2362
- let e = globalThis.localStorage.getItem(cr);
2363
- return lr(e) ? e : "system";
2525
+ function Nr() {
2526
+ if (!jr()) return "system";
2527
+ let e = globalThis.localStorage.getItem(kr);
2528
+ return Ar(e) ? e : "system";
2364
2529
  }
2365
- var pr = fr();
2366
- ur() && dr(pr);
2367
- var mr = Un((e) => ({
2368
- theme: pr,
2530
+ var Pr = Nr();
2531
+ jr() && Mr(Pr);
2532
+ var Fr = ur((e) => ({
2533
+ theme: Pr,
2369
2534
  setTheme: (t) => {
2370
- dr(t), ur() && globalThis.localStorage.setItem(cr, t), e({ theme: t });
2535
+ Mr(t), jr() && globalThis.localStorage.setItem(kr, t), e({ theme: t });
2371
2536
  }
2372
2537
  }));
2373
- ur() && (globalThis.addEventListener("storage", (e) => {
2374
- if (e.key !== cr) return;
2375
- let t = lr(e.newValue) ? e.newValue : "system";
2376
- dr(t), mr.setState({ theme: t });
2538
+ jr() && (globalThis.addEventListener("storage", (e) => {
2539
+ if (e.key !== kr) return;
2540
+ let t = Ar(e.newValue) ? e.newValue : "system";
2541
+ Mr(t), Fr.setState({ theme: t });
2377
2542
  }), globalThis.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", () => {
2378
- mr.getState().theme === "system" && dr("system");
2543
+ Fr.getState().theme === "system" && Mr("system");
2379
2544
  }));
2380
2545
  //#endregion
2381
2546
  //#region src/lib/theme_transition.ts
2382
- var hr = 750, gr = "ease-in-out";
2383
- async function _r({ theme: e, element: t, transitionDuration: n = hr, transitionEasing: r = gr, applyThemeCallback: i }) {
2547
+ var Ir = 750, Lr = "ease-in-out";
2548
+ async function Rr({ theme: e, element: t, transitionDuration: n = Ir, transitionEasing: r = Lr, applyThemeCallback: i }) {
2384
2549
  if (!document.startViewTransition || globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches) {
2385
2550
  i(e);
2386
2551
  return;
@@ -2394,43 +2559,43 @@ async function _r({ theme: e, element: t, transitionDuration: n = hr, transition
2394
2559
  pseudoElement: "::view-transition-new(root)"
2395
2560
  });
2396
2561
  }
2397
- function vr(e) {
2562
+ function zr(e) {
2398
2563
  return e === "light" ? "dark" : e === "dark" ? "system" : "light";
2399
2564
  }
2400
2565
  //#endregion
2401
2566
  //#region src/components/theme_toggle/theme_toggle.tsx
2402
- var yr = {
2567
+ var Br = {
2403
2568
  light: "i-tabler-sun text-yellow-500",
2404
2569
  dark: "i-tabler-moon-stars text-gray-700 dark:text-yellow-500",
2405
2570
  system: "i-tabler-device-desktop text-blue-500"
2406
- }, br = "i-tabler-device-desktop text-gray-400";
2407
- function xr(e) {
2571
+ }, Vr = "i-tabler-device-desktop text-gray-400";
2572
+ function Hr(e) {
2408
2573
  return `Current theme: ${e}`;
2409
2574
  }
2410
- function Sr({ isTransitionEnabled: e = !0, transitionDuration: n, transitionEasing: r, size: i = "md", radius: a, variant: o, getAriaLabel: s = xr }) {
2411
- let c = mr((e) => e.theme), u = mr((e) => e.setTheme), d = le(), f = h(null), p = l(async () => {
2412
- let t = vr(c), i = f.current;
2413
- i && e ? await _r({
2414
- theme: t,
2575
+ function Ur({ isTransitionEnabled: e = !0, transitionDuration: t, transitionEasing: n, size: r = "md", radius: i, variant: a, getAriaLabel: s = Hr }) {
2576
+ let c = Fr((e) => e.theme), l = Fr((e) => e.setTheme), u = ye(), d = f(null), p = o(async () => {
2577
+ let r = zr(c), i = d.current;
2578
+ i && e ? await Rr({
2579
+ theme: r,
2415
2580
  element: i,
2416
- transitionDuration: n,
2417
- transitionEasing: r,
2418
- applyThemeCallback: u
2419
- }) : u(t);
2581
+ transitionDuration: t,
2582
+ transitionEasing: n,
2583
+ applyThemeCallback: l
2584
+ }) : l(r);
2420
2585
  }, [
2421
2586
  c,
2422
2587
  e,
2588
+ t,
2423
2589
  n,
2424
- r,
2425
- u
2426
- ]), m = d ? yr[c] : br;
2427
- return /* @__PURE__ */ t(bn, {
2428
- ref: f,
2590
+ l
2591
+ ]), m = u ? Br[c] : Vr;
2592
+ return /* @__PURE__ */ g(kn, {
2593
+ ref: d,
2429
2594
  icon: m,
2430
2595
  "aria-label": s(c),
2431
- size: i,
2432
- radius: a,
2433
- variant: o,
2596
+ size: r,
2597
+ radius: i,
2598
+ variant: a,
2434
2599
  onClick: () => {
2435
2600
  p();
2436
2601
  }
@@ -2438,72 +2603,72 @@ function Sr({ isTransitionEnabled: e = !0, transitionDuration: n, transitionEasi
2438
2603
  }
2439
2604
  //#endregion
2440
2605
  //#region src/components/tooltip/tooltip.tsx
2441
- var Cr = 8, wr = 8, Tr = {
2606
+ var Wr = 8, Gr = 8, Kr = {
2442
2607
  top: "data-[state=closed]:translate-y-1",
2443
2608
  bottom: "data-[state=closed]:-translate-y-1",
2444
2609
  left: "data-[state=closed]:translate-x-1",
2445
2610
  right: "data-[state=closed]:-translate-x-1"
2446
- }, Er = {
2611
+ }, qr = {
2447
2612
  top: "bottom",
2448
2613
  bottom: "top",
2449
2614
  left: "right",
2450
2615
  right: "left"
2451
2616
  };
2452
- function Dr({ content: r, children: i, position: o = "top", showOnClick: s = !1, temporaryContent: u, temporaryDuration: p = 2e3, disabled: m = !1, radius: _ = "lg", onTemporaryShow: v, className: b, ref: C }) {
2453
- let { isMounted: w, isVisible: T, setIsVisible: E, open: D, close: O } = sn(), [k, A] = g(!1), j = f(), M = h(null), N = h(void 0), { refs: P, floatingStyles: F, placement: I, middlewareData: L, isPositioned: R } = Yt({
2454
- placement: o,
2617
+ function Jr({ content: e, children: t, position: r = "top", showOnClick: i = !1, temporaryContent: s, temporaryDuration: u = 2e3, disabled: d = !1, radius: m = "lg", onTemporaryShow: v, className: b, ref: C }) {
2618
+ let { isMounted: w, isVisible: T, setIsVisible: E, open: D, close: O } = gn(), [k, A] = p(!1), j = l(), M = f(null), N = f(void 0), { refs: P, floatingStyles: F, placement: I, middlewareData: ee, isPositioned: L } = rn({
2619
+ placement: r,
2455
2620
  open: w,
2456
- whileElementsMounted: Rt,
2621
+ whileElementsMounted: Kt,
2457
2622
  middleware: [
2458
- Zt(Cr),
2459
- $t(),
2460
- Qt({ padding: 8 }),
2461
- en({ element: M })
2623
+ on(Wr),
2624
+ cn(),
2625
+ sn({ padding: 8 }),
2626
+ ln({ element: M })
2462
2627
  ]
2463
- }), z = I.split("-")[0];
2464
- cn(w, R, E);
2465
- let ee = l((e) => En(P.setReference, C)(e), [P, C]), te = () => {
2628
+ }), R = I.split("-")[0];
2629
+ _n(w, L, E);
2630
+ let te = o((e) => Fn(P.setReference, C)(e), [P, C]), ne = () => {
2466
2631
  A(!1), O();
2467
- }, ne = () => {
2468
- m || !u || (A(!0), D(R), clearTimeout(N.current), N.current = setTimeout(te, p), v?.());
2469
- }, B = () => {
2470
- m || D(R);
2471
2632
  }, re = () => {
2472
- clearTimeout(N.current), te();
2633
+ d || !s || (A(!0), D(L), clearTimeout(N.current), N.current = setTimeout(ne, u), v?.());
2634
+ }, z = () => {
2635
+ d || D(L);
2636
+ }, ie = () => {
2637
+ clearTimeout(N.current), ne();
2473
2638
  };
2474
- d(() => () => clearTimeout(N.current), []);
2475
- let ie = w && !m, ae = k && u ? u : r, oe = {
2639
+ c(() => () => clearTimeout(N.current), []);
2640
+ let ae = w && !d, oe = k && s ? s : e, se = {
2476
2641
  onClick: (e) => {
2477
- s && u && ne(), c(i) && i.props.onClick?.(e);
2642
+ i && s && re(), a(t) && t.props.onClick?.(e);
2478
2643
  },
2479
- "aria-describedby": ie ? j : void 0
2480
- }, V = c(i) ? a(i, oe) : i, se = L.arrow?.x, H = L.arrow?.y, ce = Er[z];
2481
- return /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", {
2482
- ref: ee,
2644
+ "aria-describedby": ae ? j : void 0
2645
+ }, ce = a(t) ? n(t, se) : t, le = ee.arrow?.x, ue = ee.arrow?.y, de = qr[R];
2646
+ return /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("span", {
2647
+ ref: te,
2483
2648
  className: x("inline-block", b),
2484
- onMouseEnter: B,
2485
- onMouseLeave: re,
2486
- onFocus: B,
2487
- onBlur: re,
2488
- children: V
2489
- }), ie && y(/* @__PURE__ */ t("div", {
2649
+ onMouseEnter: z,
2650
+ onMouseLeave: ie,
2651
+ onFocus: z,
2652
+ onBlur: ie,
2653
+ children: ce
2654
+ }), ae && y(/* @__PURE__ */ g("div", {
2490
2655
  ref: P.setFloating,
2491
2656
  style: F,
2492
2657
  className: "z-50 inline-block pointer-events-none",
2493
- children: /* @__PURE__ */ n("div", {
2658
+ children: /* @__PURE__ */ _("div", {
2494
2659
  id: j,
2495
2660
  role: "tooltip",
2496
2661
  "data-state": T ? "open" : "closed",
2497
- className: x("px-3 py-1.5 text-sm whitespace-nowrap", "text-white dark:text-gray-900 bg-gray-900 dark:bg-gray-100 shadow-lg", "transition-[opacity,transform] duration-150 ease-out", T ? "opacity-100" : "opacity-0", Tr[z], S[_]),
2498
- children: [ae, /* @__PURE__ */ t("div", {
2662
+ className: x("px-3 py-1.5 text-sm whitespace-nowrap", "text-white dark:text-gray-900 bg-gray-900 dark:bg-gray-100 shadow-lg", "transition-[opacity,transform] duration-150 ease-out", T ? "opacity-100" : "opacity-0", Kr[R], S[m]),
2663
+ children: [oe, /* @__PURE__ */ g("div", {
2499
2664
  ref: M,
2500
2665
  style: {
2501
2666
  position: "absolute",
2502
- width: `${wr}px`,
2503
- height: `${wr}px`,
2504
- left: se === void 0 ? void 0 : `${se}px`,
2505
- top: H === void 0 ? void 0 : `${H}px`,
2506
- [ce]: `-${wr / 2}px`
2667
+ width: `${Gr}px`,
2668
+ height: `${Gr}px`,
2669
+ left: le === void 0 ? void 0 : `${le}px`,
2670
+ top: ue === void 0 ? void 0 : `${ue}px`,
2671
+ [de]: `-${Gr / 2}px`
2507
2672
  },
2508
2673
  className: "rotate-45 bg-gray-900 dark:bg-gray-100"
2509
2674
  })]
@@ -2512,11 +2677,11 @@ function Dr({ content: r, children: i, position: o = "top", showOnClick: s = !1,
2512
2677
  }
2513
2678
  //#endregion
2514
2679
  //#region src/hooks/use_is_client/with_client_only.tsx
2515
- var Or = (e) => {
2516
- function n(n) {
2517
- return le() ? /* @__PURE__ */ t(e, { ...n }) : null;
2680
+ var Yr = (e) => {
2681
+ function t(t) {
2682
+ return ye() ? /* @__PURE__ */ g(e, { ...t }) : null;
2518
2683
  }
2519
- return n;
2684
+ return t;
2520
2685
  };
2521
2686
  //#endregion
2522
- export { B as BASE_INPUT_STYLES, M as Badge, F as Button, R as CharacterCount, ce as Checkbox, ue as ClientOnly, fe as Combobox, Xn as ConfirmModal, fn as ContextMenu, hn as CopyButton, _n as Highlight, bn as IconButton, Cn as Input, Tn as Kbd, kn as Menu, An as MenuItem, $n as Modal, er as ModalFooter, tr as ModalProvider, rr as RadioOptions, ir as Select, ar as Switch, or as Tabs, sr as Textarea, Sr as ThemeToggle, Dr as Tooltip, gn as splitIntoHighlightSegments, Kn as useDisableHotkeysWhileMounted, Wn as useGlobalHotkeysStore, le as useIsClient, mr as useThemeStore, Or as withClientOnly };
2687
+ export { P as Avatar, de as BASE_INPUT_STYLES, I as Badge, R as Button, se as Card, ue as CharacterCount, ve as Checkbox, be as ClientOnly, Se as Combobox, _r as ConfirmModal, xn as ContextMenu, wn as CopyButton, En as Highlight, kn as IconButton, Mn as Input, Pn as Kbd, Rn as Menu, zn as MenuGroup, Xn as MenuItem, Zn as MenuSeparator, br as Modal, xr as ModalFooter, Sr as ModalProvider, wr as RadioOptions, Tr as Select, Er as Switch, Dr as Tabs, Or as Textarea, Ur as ThemeToggle, Jr as Tooltip, Tn as splitIntoHighlightSegments, pr as useDisableHotkeysWhileMounted, dr as useGlobalHotkeysStore, ye as useIsClient, Fr as useThemeStore, Yr as withClientOnly };