@oomol-lab/open-flow 0.1.0-beta.4 → 0.1.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/browser/{DesignerIcon-DdfuH2jW.js → DesignerIcon-XKBRy_0Q.js} +640 -640
  2. package/dist/browser/createResourceDialog-Cf7QpXp6.js +505 -0
  3. package/dist/browser/{dist-BMqL-qR5.js → dist-BMRLCebL.js} +291 -292
  4. package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
  5. package/dist/browser/{dist-CJpzJrLM.js → dist-Cc0y2Pli.js} +811 -812
  6. package/dist/browser/{dist-DUzA0Ukh.js → dist-Dg_VXC8f.js} +134 -135
  7. package/dist/browser/{dist-3Mj8q8Pr.js → dist-DmuE3M0R.js} +53 -54
  8. package/dist/browser/{dist-BN4ZCyOB.js → dist-DpDLsYtO.js} +14 -15
  9. package/dist/browser/dist-DxahK_I8.js +2688 -0
  10. package/dist/browser/{dist-CPuF50D9.js → dist-meg_oHVR.js} +335 -335
  11. package/dist/browser/{esm-C9jQK70n.js → esm-CTcBY7hh.js} +5 -6
  12. package/dist/browser/flow-authoring-module.d.ts +2 -2
  13. package/dist/browser/flow-authoring-node.d.ts +2 -2
  14. package/dist/browser/flow-authoring.js +475 -209
  15. package/dist/browser/flow-change.d.ts +98 -8
  16. package/dist/browser/flow-change.js +319 -96
  17. package/dist/browser/{flowChanges-Bs-ZcJV8.js → flowChanges-BDqD_Q4G.js} +1628 -1555
  18. package/dist/browser/{flowRunInputEditorStore-BYa8zFLC.js → flowRunInputEditorStore-DDidwd8h.js} +9 -1
  19. package/dist/browser/{flowWorkspace-BewofPeU.js → flowWorkspace-CPBHm14t.js} +9803 -9769
  20. package/dist/browser/{getPseudoElementBounds-qDxSDwzN.js → getPseudoElementBounds-5LArT6Xc.js} +494 -474
  21. package/dist/browser/icons-CRxvozBE.js +726 -0
  22. package/dist/browser/{typeScriptSession-CwMPjseS.js → typeScriptSession-_TgJ_7Oq.js} +256 -257
  23. package/dist/browser/{waitNotificationInputs-DtrPBwA1.js → waitNotificationInputs-lPrLDTOd.js} +2 -2
  24. package/dist/browser/workbench.css +1 -1
  25. package/dist/browser/workbench.js +573 -578
  26. package/dist/browser/{workbenchSelect-CX8KtT7L.js → workbenchSelect-Cf1zlVm9.js} +398 -398
  27. package/dist/common/control-api-conformance.js +27 -19
  28. package/dist/common/control-api.d.ts +4 -11
  29. package/dist/common/control-api.js +6 -18
  30. package/dist/common/flow-encoding.js +4 -0
  31. package/dist/common/flow-semantics.js +8 -10
  32. package/dist/common/runtime-contract.d.ts +1 -1
  33. package/dist/common/runtime-contract.js +27 -0
  34. package/dist/common/scheduler.d.ts +1 -1
  35. package/dist/common/scheduler.js +17 -18
  36. package/dist/index.d.ts +1 -1
  37. package/package.json +1 -1
  38. package/dist/browser/createResourceDialog-4YQKl8lG.js +0 -505
  39. package/dist/browser/dist-BpopSHwP.js +0 -1543
  40. package/dist/browser/dist-CUSrALSX.js +0 -1620
  41. package/dist/browser/icons-DRoMXL5h.js +0 -521
@@ -1,9 +1,9 @@
1
- import { $ as e, $t as t, A as n, Bt as r, Dn as i, Dt as a, Et as o, G as s, Gn as c, Hn as l, I as u, Jt as d, K as f, Kn as p, Kt as m, Ln as h, Mn as ee, Mt as g, N as _, Nn as v, Ot as y, P as b, Pn as x, Rn as S, Rt as C, St as w, Tt as T, Xn as te, Xt as E, Yt as D, Z as O, Zn as k, _n as A, _t as j, a as M, ar as N, bt as P, c as F, cr as I, en as L, er as R, et as ne, f as re, ft as z, gt as ie, i as ae, j as oe, jn as se, jt as ce, kt as B, l as V, lt as H, m as le, n as ue, nn as U, nr as W, nt as de, or as fe, p as G, qn as K, qt as pe, r as me, s as he, t as ge, tr as _e, tt as ve, u as ye, vt as be, x as xe, xn as q, xt as Se, zn as J } from "./getPseudoElementBounds-qDxSDwzN.js";
2
- import { o as Ce } from "./icons-DRoMXL5h.js";
1
+ import { $ as e, A as t, At as n, Bn as r, Dt as i, Et as a, Fn as o, G as s, I as c, Jn as l, Jt as u, K as d, Kn as f, Mn as p, Mt as m, N as h, Nn as ee, Nt as g, On as _, P as v, Pn as y, Qn as b, Rn as x, Sn as S, St as C, Tt as w, Un as T, Vt as E, Xt as D, Yt as te, Z as O, Zn as k, Zt as A, _t as j, a as M, bt as N, c as P, en as F, et as I, f as L, ft as R, gt as z, i as ne, j as re, kt as ie, l as ae, lr as oe, lt as B, m as se, n as V, nr as H, nt as U, or as ce, p as le, qn as ue, qt as de, r as fe, rn as pe, rr as W, s as me, sr as he, t as G, tn as ge, tr as K, tt as _e, u as ve, vn as ye, vt as be, x as q, xt as xe, zn as Se, zt as J } from "./getPseudoElementBounds-5LArT6Xc.js";
2
+ import { s as Ce } from "./icons-CRxvozBE.js";
3
3
  import * as Y from "react";
4
4
  import { jsx as X, jsxs as we } from "react/jsx-runtime";
5
5
  //#region ../../node_modules/.bun/lucide-react@0.468.0+f4eacebf2041cd4f/node_modules/lucide-react/dist/esm/icons/chevron-up.js
6
- var Te = B("ChevronUp", [["path", {
6
+ var Te = n("ChevronUp", [["path", {
7
7
  d: "m18 15-6-6-6 6",
8
8
  key: "153udz"
9
9
  }]]);
@@ -27,12 +27,12 @@ var Oe = /*#__PURE__*/ Y.createContext(null);
27
27
  process.env.NODE_ENV !== "production" && (Oe.displayName = "SelectFloatingContext");
28
28
  function Z() {
29
29
  let e = Y.useContext(De);
30
- if (e === null) throw Error(process.env.NODE_ENV === "production" ? R(60) : "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>.");
30
+ if (e === null) throw Error(process.env.NODE_ENV === "production" ? K(60) : "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>.");
31
31
  return e;
32
32
  }
33
33
  function ke() {
34
34
  let e = Y.useContext(Oe);
35
- if (e === null) throw Error(process.env.NODE_ENV === "production" ? R(61) : "Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>.");
35
+ if (e === null) throw Error(process.env.NODE_ENV === "production" ? K(61) : "Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>.");
36
36
  return e;
37
37
  }
38
38
  //#endregion
@@ -165,32 +165,32 @@ function We(e, t) {
165
165
  //#endregion
166
166
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/root/SelectRoot.js
167
167
  function Ge(e) {
168
- let { id: t, value: n, defaultValue: i = null, onValueChange: a, open: o, defaultOpen: c = !1, onOpenChange: l, name: m, form: ee, autoComplete: g, disabled: y = !1, readOnly: x = !1, required: C = !1, modal: w = !0, actionsRef: T, inputRef: O, onOpenChangeComplete: k, items: A, multiple: M = !1, itemToStringLabel: P, itemToStringValue: F, isItemEqualToValue: I = Ae, highlightItemOnHover: L = !0, children: R } = e, { clearErrors: re } = h(), { setDirty: z, setTouched: se, setFocused: B, shouldValidateOnChange: V, validityData: H, setFilled: le, name: U, disabled: de, validation: G, validationMode: he } = S(), ge = v({ id: t }), ye = de || y, xe = U ?? m, [q, Se] = d({
168
+ let { id: t, value: n, defaultValue: r = null, onValueChange: i, open: a, defaultOpen: o = !1, onOpenChange: f, name: p, form: ee, autoComplete: g, disabled: _ = !1, readOnly: b = !1, required: S = !1, modal: C = !0, actionsRef: w, inputRef: T, onOpenChangeComplete: O, items: M, multiple: N = !1, itemToStringLabel: P, itemToStringValue: F, isItemEqualToValue: L = Ae, highlightItemOnHover: R = !0, children: ie } = e, { clearErrors: ae } = x(), { setDirty: oe, setTouched: B, setFocused: se, shouldValidateOnChange: U, validityData: le, setFilled: de, name: pe, disabled: me, validation: G, validationMode: ge } = Se(), K = y({ id: t }), ve = me || _, ye = pe ?? p, [q, xe] = te({
169
169
  controlled: n,
170
- default: M ? i ?? p : i,
170
+ default: N ? r ?? ue : r,
171
171
  name: "Select",
172
172
  state: "value"
173
- }), [J, Ce] = d({
174
- controlled: o,
175
- default: c,
173
+ }), [J, Ce] = te({
174
+ controlled: a,
175
+ default: o,
176
176
  name: "Select",
177
177
  state: "open"
178
178
  }), Te = Y.useRef([]), Z = Y.useRef([]), ke = Y.useRef(null), je = Y.useRef(null), Me = Y.useRef(0), Pe = Y.useRef(null), Fe = Y.useRef([]), Ie = Y.useRef(!1), Le = Y.useRef(!1), Be = Y.useRef(null), Ve = Y.useRef({
179
179
  allowSelectedMouseUp: !1,
180
180
  allowUnselectedMouseUp: !1
181
- }), He = Y.useRef(!1), { mounted: Ge, setMounted: Ke, transitionStatus: qe } = D(J), { openMethod: Je, triggerProps: Ye } = ue(J), $ = fe(() => new s({
182
- id: ge,
181
+ }), He = Y.useRef(!1), { mounted: Ge, setMounted: Ke, transitionStatus: qe } = D(J), { openMethod: Je, triggerProps: Ye } = V(J), $ = he(() => new s({
182
+ id: K,
183
183
  labelId: void 0,
184
- modal: w,
185
- multiple: M,
184
+ modal: C,
185
+ multiple: N,
186
186
  itemToStringLabel: P,
187
187
  itemToStringValue: F,
188
- isItemEqualToValue: I,
188
+ isItemEqualToValue: L,
189
189
  value: q,
190
190
  open: J,
191
191
  mounted: Ge,
192
192
  transitionStatus: qe,
193
- items: A,
193
+ items: M,
194
194
  forceMount: !1,
195
195
  openMethod: null,
196
196
  activeIndex: null,
@@ -203,17 +203,17 @@ function Ge(e) {
203
203
  scrollUpArrowVisible: !1,
204
204
  scrollDownArrowVisible: !1,
205
205
  hasScrollArrows: !1
206
- })).current, Xe = f($, Q.activeIndex), Ze = f($, Q.selectedIndex), Qe = f($, Q.triggerElement), $e = f($, Q.positionerElement), et = Ee(Je), tt = Je ?? et, nt = Y.useMemo(() => M && Array.isArray(q) && q.length === 0 ? "" : ze(q, F), [
207
- M,
206
+ })).current, Xe = d($, Q.activeIndex), Ze = d($, Q.selectedIndex), Qe = d($, Q.triggerElement), $e = d($, Q.positionerElement), et = Ee(Je), tt = Je ?? et, nt = Y.useMemo(() => N && Array.isArray(q) && q.length === 0 ? "" : ze(q, F), [
207
+ N,
208
208
  q,
209
209
  F
210
- ]), rt = Y.useMemo(() => M && Array.isArray(q) ? q.map((e) => ze(e, F)) : ze(q, F), [
211
- M,
210
+ ]), rt = Y.useMemo(() => N && Array.isArray(q) ? q.map((e) => ze(e, F)) : ze(q, F), [
211
+ N,
212
212
  q,
213
213
  F
214
- ]), it = be($.state.triggerElement), at = N(() => rt);
215
- pe(it, {
216
- id: ge,
214
+ ]), it = be($.state.triggerElement), at = ce(() => rt);
215
+ u(it, {
216
+ id: K,
217
217
  value: q,
218
218
  getValue: at
219
219
  });
@@ -221,152 +221,152 @@ function Ge(e) {
221
221
  W(() => {
222
222
  q !== ot.current && $.set("forceMount", !0);
223
223
  }, [$, q]), W(() => {
224
- le(M ? Array.isArray(q) && q.length > 0 : q != null);
224
+ de(N ? Array.isArray(q) && q.length > 0 : q != null);
225
225
  }, [
226
- M,
226
+ N,
227
227
  q,
228
- le
228
+ de
229
229
  ]), W(function() {
230
230
  if (J) return;
231
231
  let e = Fe.current;
232
- if (M) {
232
+ if (N) {
233
233
  let t = Array.isArray(q) ? q : [];
234
234
  if (t.length === 0) {
235
235
  $.set("selectedIndex", null);
236
236
  return;
237
237
  }
238
- let n = t[t.length - 1], r = Ne(e, n, I);
238
+ let n = t[t.length - 1], r = Ne(e, n, L);
239
239
  $.set("selectedIndex", r === -1 ? null : r);
240
240
  return;
241
241
  }
242
- let t = Ne(e, q, I);
242
+ let t = Ne(e, q, L);
243
243
  $.set("selectedIndex", t === -1 ? null : t);
244
244
  }, [
245
- M,
245
+ N,
246
246
  J,
247
247
  q,
248
248
  Fe,
249
- I,
249
+ L,
250
250
  $
251
- ]), me(q, () => {
252
- re(xe), z(q !== H.initialValue), V() ? G.commit(q) : G.commit(q, !0);
251
+ ]), fe(q, () => {
252
+ ae(ye), oe(q !== le.initialValue), U() ? G.commit(q) : G.commit(q, !0);
253
253
  });
254
- let st = N((e, t) => {
255
- if (l?.(e, t), !t.isCanceled && (Ce(e), !e && (t.reason === "focus-out" || t.reason === "outside-press") && (se(!0), B(!1), he === "onBlur" && G.commit(q)), !e && $.state.activeIndex !== null)) {
254
+ let st = ce((e, t) => {
255
+ if (f?.(e, t), !t.isCanceled && (Ce(e), !e && (t.reason === "focus-out" || t.reason === "outside-press") && (B(!0), se(!1), ge === "onBlur" && G.commit(q)), !e && $.state.activeIndex !== null)) {
256
256
  let e = Te.current[$.state.activeIndex];
257
257
  queueMicrotask(() => {
258
258
  e?.setAttribute("tabindex", "-1");
259
259
  });
260
260
  }
261
- }), ct = N(() => {
261
+ }), ct = ce(() => {
262
262
  Ke(!1), $.update({
263
263
  activeIndex: null,
264
264
  openMethod: null
265
- }), k?.(!1);
265
+ }), O?.(!1);
266
266
  });
267
- E({
268
- enabled: !T,
267
+ A({
268
+ enabled: !w,
269
269
  open: J,
270
270
  ref: ke,
271
271
  onComplete() {
272
272
  J || ct();
273
273
  }
274
- }), Y.useImperativeHandle(T, () => ({ unmount: ct }), [ct]);
275
- let lt = N((e, t) => {
276
- a?.(e, t), !t.isCanceled && Se(e);
277
- }), ut = N(() => {
274
+ }), Y.useImperativeHandle(w, () => ({ unmount: ct }), [ct]);
275
+ let lt = ce((e, t) => {
276
+ i?.(e, t), !t.isCanceled && xe(e);
277
+ }), ut = ce(() => {
278
278
  let e = $.state.listElement || ke.current;
279
279
  if (!e) return;
280
280
  let t = Ue(e.scrollHeight, e.clientHeight), n = We(e.scrollTop, t), r = n > 0, i = n < t;
281
281
  $.state.scrollUpArrowVisible !== r && $.set("scrollUpArrowVisible", r), $.state.scrollDownArrowVisible !== i && $.set("scrollDownArrowVisible", i);
282
- }), dt = u({
282
+ }), dt = c({
283
283
  open: J,
284
284
  onOpenChange: st,
285
285
  elements: {
286
286
  reference: Qe,
287
287
  floating: $e
288
288
  }
289
- }), ft = ve(dt, {
290
- enabled: !x && !ye,
289
+ }), ft = _e(dt, {
290
+ enabled: !b && !ve,
291
291
  event: "mousedown"
292
- }), pt = ne(dt, { bubbles: !1 }), mt = _(dt, {
293
- enabled: !x && !ye,
292
+ }), pt = I(dt, { bubbles: !1 }), mt = h(dt, {
293
+ enabled: !b && !ve,
294
294
  listRef: Te,
295
295
  activeIndex: Xe,
296
296
  selectedIndex: Ze,
297
- disabledIndices: p,
297
+ disabledIndices: ue,
298
298
  onNavigate(e) {
299
299
  e === null && !J || $.set("activeIndex", e);
300
300
  },
301
- focusItemOnHover: L
302
- }), ht = oe(dt, {
303
- enabled: !x && !ye && (J || !M),
301
+ focusItemOnHover: R
302
+ }), ht = re(dt, {
303
+ enabled: !b && !ve && (J || !N),
304
304
  listRef: Z,
305
305
  activeIndex: Xe,
306
306
  selectedIndex: Ze,
307
307
  onMatch(e) {
308
- J ? $.set("activeIndex", e) : lt(Fe.current[e], ce("none"));
308
+ J ? $.set("activeIndex", e) : lt(Fe.current[e], m("none"));
309
309
  },
310
310
  onTypingChange(e) {
311
311
  Ie.current = e;
312
312
  }
313
- }), { getReferenceProps: gt, getFloatingProps: _t, getItemProps: vt } = b([
313
+ }), { getReferenceProps: gt, getFloatingProps: _t, getItemProps: vt } = v([
314
314
  ft,
315
315
  pt,
316
316
  mt,
317
317
  ht
318
- ]), yt = Y.useMemo(() => _e(gt(), Ye, ge ? { id: ge } : K), [
318
+ ]), yt = Y.useMemo(() => H(gt(), Ye, K ? { id: K } : l), [
319
319
  gt,
320
320
  Ye,
321
- ge
321
+ K
322
322
  ]);
323
- ae(() => {
323
+ ne(() => {
324
324
  $.update({
325
325
  popupProps: _t(),
326
326
  triggerProps: yt
327
327
  });
328
328
  }), W(() => {
329
329
  $.update({
330
- id: ge,
331
- modal: w,
332
- multiple: M,
330
+ id: K,
331
+ modal: C,
332
+ multiple: N,
333
333
  value: q,
334
334
  open: J,
335
335
  mounted: Ge,
336
336
  transitionStatus: qe,
337
337
  popupProps: _t(),
338
338
  triggerProps: yt,
339
- items: A,
339
+ items: M,
340
340
  itemToStringLabel: P,
341
341
  itemToStringValue: F,
342
- isItemEqualToValue: I,
342
+ isItemEqualToValue: L,
343
343
  openMethod: tt
344
344
  });
345
345
  }, [
346
346
  $,
347
- ge,
348
- w,
349
- M,
347
+ K,
348
+ C,
349
+ N,
350
350
  q,
351
351
  J,
352
352
  Ge,
353
353
  qe,
354
354
  _t,
355
355
  yt,
356
- A,
356
+ M,
357
357
  P,
358
358
  F,
359
- I,
359
+ L,
360
360
  tt
361
361
  ]);
362
362
  let bt = Y.useMemo(() => ({
363
363
  store: $,
364
- name: xe,
365
- required: C,
366
- disabled: ye,
367
- readOnly: x,
368
- multiple: M,
369
- highlightItemOnHover: L,
364
+ name: ye,
365
+ required: S,
366
+ disabled: ve,
367
+ readOnly: b,
368
+ multiple: N,
369
+ highlightItemOnHover: R,
370
370
  setValue: lt,
371
371
  setOpen: st,
372
372
  listRef: Te,
@@ -383,38 +383,38 @@ function Ge(e) {
383
383
  selectionRef: Ve,
384
384
  selectedItemTextRef: Be,
385
385
  validation: G,
386
- onOpenChangeComplete: k,
386
+ onOpenChangeComplete: O,
387
387
  keyboardActiveRef: Le,
388
388
  alignItemWithTriggerActiveRef: He,
389
389
  initialValueRef: ot
390
390
  }), [
391
391
  $,
392
- xe,
393
- C,
394
392
  ye,
395
- x,
396
- M,
397
- L,
393
+ S,
394
+ ve,
395
+ b,
396
+ N,
397
+ R,
398
398
  lt,
399
399
  st,
400
400
  vt,
401
401
  dt.context.events,
402
402
  G,
403
- k,
403
+ O,
404
404
  ut
405
- ]), xt = te(O, G.inputRef), St = M && Array.isArray(q) && q.length > 0, Ct = M ? void 0 : xe, wt = Y.useMemo(() => !M || !Array.isArray(q) || !xe ? null : q.map((e) => {
405
+ ]), xt = k(T, G.inputRef), St = N && Array.isArray(q) && q.length > 0, Ct = N ? void 0 : ye, wt = Y.useMemo(() => !N || !Array.isArray(q) || !ye ? null : q.map((e) => {
406
406
  let t = ze(e, F);
407
407
  return /*#__PURE__*/ X("input", {
408
408
  type: "hidden",
409
409
  form: ee,
410
- name: xe,
410
+ name: ye,
411
411
  value: t
412
412
  }, t);
413
413
  }), [
414
- M,
414
+ N,
415
415
  q,
416
416
  ee,
417
- xe,
417
+ ye,
418
418
  F
419
419
  ]);
420
420
  return /*#__PURE__*/ X(De.Provider, {
@@ -422,7 +422,7 @@ function Ge(e) {
422
422
  children: /*#__PURE__*/ we(Oe.Provider, {
423
423
  value: dt,
424
424
  children: [
425
- R,
425
+ ie,
426
426
  /*#__PURE__*/ X("input", {
427
427
  ...G.getInputValidationProps({
428
428
  onFocus() {
@@ -430,25 +430,25 @@ function Ge(e) {
430
430
  },
431
431
  onChange(e) {
432
432
  if (e.nativeEvent.defaultPrevented) return;
433
- let t = e.currentTarget.value, n = ce(r, e.nativeEvent);
434
- function i() {
435
- if (M) return;
433
+ let t = e.currentTarget.value, n = m(E, e.nativeEvent);
434
+ function r() {
435
+ if (N) return;
436
436
  let e = Fe.current.find((e) => ze(e, F).toLowerCase() === t.toLowerCase() || Re(e, P).toLowerCase() === t.toLowerCase());
437
- e != null && (z(e !== H.initialValue), lt(e, n), V() && G.commit(e));
437
+ e != null && (oe(e !== le.initialValue), lt(e, n), U() && G.commit(e));
438
438
  }
439
- $.set("forceMount", !0), queueMicrotask(i);
439
+ $.set("forceMount", !0), queueMicrotask(r);
440
440
  }
441
441
  }),
442
- id: ge && Ct == null ? `${ge}-hidden-input` : void 0,
442
+ id: K && Ct == null ? `${K}-hidden-input` : void 0,
443
443
  form: ee,
444
444
  name: Ct,
445
445
  autoComplete: g,
446
446
  value: nt,
447
- disabled: ye,
448
- required: C && !St,
449
- readOnly: x,
447
+ disabled: ve,
448
+ required: S && !St,
449
+ readOnly: b,
450
450
  ref: xt,
451
- style: xe ? j : ie,
451
+ style: ye ? j : z,
452
452
  tabIndex: -1,
453
453
  "aria-hidden": !0,
454
454
  suppressHydrationWarning: !0
@@ -466,108 +466,108 @@ function Ke(e, t) {
466
466
  //#endregion
467
467
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/trigger/SelectTrigger.js
468
468
  var qe = 2, Je = 400, Ye = 200, $ = {
469
- ...o,
470
- ...J,
469
+ ...a,
470
+ ...r,
471
471
  value: () => null
472
472
  }, Xe = /*#__PURE__*/ Y.forwardRef(function(e, t) {
473
- let { render: n, className: a, id: o, disabled: s = !1, nativeButton: l = !0, style: u, ...d } = e, { setTouched: p, setFocused: m, validationMode: h, state: _, disabled: y } = S(), { labelId: b } = x(), { store: C, setOpen: w, selectionRef: T, validation: E, readOnly: D, required: O, alignItemWithTriggerActiveRef: A, disabled: j, keyboardActiveRef: M } = Z(), P = y || j || s, F = f(C, Q.open), I = f(C, Q.value), L = f(C, Q.triggerProps), R = f(C, Q.positionerElement), ne = f(C, Q.listElement), re = f(C, Q.id), z = f(C, Q.labelId), ie = f(C, Q.hasSelectedValue), ae = !ie && F, oe = f(C, Q.hasNullItemLabel, ae), se = o ?? re, B = Ke(b, z);
474
- v({ id: se });
475
- let V = be(R), H = Y.useRef(null), { getButtonProps: le, buttonRef: ue } = k({
473
+ let { render: n, className: r, id: i, disabled: a = !1, nativeButton: s = !0, style: c, ...l } = e, { setTouched: u, setFocused: p, validationMode: h, state: v, disabled: x } = Se(), { labelId: C } = o(), { store: w, setOpen: T, selectionRef: D, validation: te, readOnly: O, required: A, alignItemWithTriggerActiveRef: j, disabled: M, keyboardActiveRef: N } = Z(), P = x || M || a, F = d(w, Q.open), I = d(w, Q.value), L = d(w, Q.triggerProps), R = d(w, Q.positionerElement), z = d(w, Q.listElement), ne = d(w, Q.id), re = d(w, Q.labelId), ie = d(w, Q.hasSelectedValue), ae = !ie && F, oe = d(w, Q.hasNullItemLabel, ae), B = i ?? ne, se = Ke(C, re);
474
+ y({ id: B });
475
+ let V = be(R), U = Y.useRef(null), { getButtonProps: le, buttonRef: ue } = b({
476
476
  disabled: P,
477
- native: l
478
- }), W = N((e) => {
479
- C.set("triggerElement", e);
480
- }), de = te(t, H, ue, W), fe = U(), G = U(), K = U(), pe = U();
477
+ native: s
478
+ }), de = ce((e) => {
479
+ w.set("triggerElement", e);
480
+ }), fe = k(t, U, ue, de), W = pe(), me = pe(), he = pe(), ge = pe();
481
481
  Y.useEffect(() => {
482
- if (F) return ie || oe ? pe.start(Ye, () => {
483
- T.current.allowUnselectedMouseUp = !0, K.start(Ye, () => {
484
- T.current.allowSelectedMouseUp = !0;
482
+ if (F) return ie || oe ? ge.start(Ye, () => {
483
+ D.current.allowUnselectedMouseUp = !0, he.start(Ye, () => {
484
+ D.current.allowSelectedMouseUp = !0;
485
485
  });
486
- }) : K.start(Je, () => {
487
- T.current.allowUnselectedMouseUp = !0, T.current.allowSelectedMouseUp = !0;
486
+ }) : he.start(Je, () => {
487
+ D.current.allowUnselectedMouseUp = !0, D.current.allowSelectedMouseUp = !0;
488
488
  }), () => {
489
- K.clear(), pe.clear();
489
+ he.clear(), ge.clear();
490
490
  };
491
- T.current = {
491
+ D.current = {
492
492
  allowSelectedMouseUp: !1,
493
493
  allowUnselectedMouseUp: !1
494
- }, G.clear();
494
+ }, me.clear();
495
495
  }, [
496
496
  F,
497
497
  ie,
498
498
  oe,
499
- T,
500
- G,
501
- K,
502
- pe
499
+ D,
500
+ me,
501
+ he,
502
+ ge
503
503
  ]);
504
- let me = Y.useMemo(() => ne?.id ?? q(R)?.id, [ne, R]), he = _e(L, {
505
- id: se,
504
+ let K = Y.useMemo(() => z?.id ?? S(R)?.id, [z, R]), _e = H(L, {
505
+ id: B,
506
506
  role: "combobox",
507
507
  "aria-expanded": F ? "true" : "false",
508
508
  "aria-haspopup": "listbox",
509
- "aria-controls": F ? me : void 0,
510
- "aria-labelledby": B,
511
- "aria-readonly": D || void 0,
512
- "aria-required": O || void 0,
509
+ "aria-controls": F ? K : void 0,
510
+ "aria-labelledby": se,
511
+ "aria-readonly": O || void 0,
512
+ "aria-required": A || void 0,
513
513
  tabIndex: P ? -1 : 0,
514
- ref: de,
514
+ ref: fe,
515
515
  onFocus(e) {
516
- m(!0), F && A.current && w(!1, ce(r, e.nativeEvent)), fe.start(0, () => {
517
- C.set("forceMount", !0);
516
+ p(!0), F && j.current && T(!1, m(E, e.nativeEvent)), W.start(0, () => {
517
+ w.set("forceMount", !0);
518
518
  });
519
519
  },
520
520
  onBlur(e) {
521
- i(R, e.relatedTarget) || (p(!0), m(!1), h === "onBlur" && E.commit(I));
521
+ _(R, e.relatedTarget) || (u(!0), p(!1), h === "onBlur" && te.commit(I));
522
522
  },
523
523
  onPointerMove() {
524
- M.current = !1;
524
+ N.current = !1;
525
525
  },
526
526
  onKeyDown() {
527
- M.current = !0;
527
+ N.current = !0;
528
528
  },
529
529
  onMouseDown(e) {
530
530
  if (F) return;
531
531
  let t = ee(e.currentTarget);
532
532
  function n(e) {
533
- if (!H.current) return;
533
+ if (!U.current) return;
534
534
  let t = e.target;
535
- if (i(H.current, t) || i(V.current, t) || t === H.current) return;
536
- let n = ge(H.current);
537
- e.clientX >= n.left - qe && e.clientX <= n.right + qe && e.clientY >= n.top - qe && e.clientY <= n.bottom + qe || w(!1, ce(g, e));
535
+ if (_(U.current, t) || _(V.current, t) || t === U.current) return;
536
+ let n = G(U.current);
537
+ e.clientX >= n.left - qe && e.clientX <= n.right + qe && e.clientY >= n.top - qe && e.clientY <= n.bottom + qe || T(!1, m(g, e));
538
538
  }
539
- G.start(0, () => {
539
+ me.start(0, () => {
540
540
  t.addEventListener("mouseup", n, { once: !0 });
541
541
  });
542
542
  }
543
- }, E.getValidationProps, d, le);
544
- he.role = "combobox";
543
+ }, te.getValidationProps, l, le);
544
+ _e.role = "combobox";
545
545
  let ve = {
546
- ..._,
546
+ ...v,
547
547
  open: F,
548
548
  disabled: P,
549
549
  value: I,
550
- readOnly: D,
550
+ readOnly: O,
551
551
  placeholder: !ie
552
552
  };
553
- return c("button", e, {
554
- ref: [t, H],
553
+ return f("button", e, {
554
+ ref: [t, U],
555
555
  state: ve,
556
556
  stateAttributesMapping: $,
557
- props: he
557
+ props: _e
558
558
  });
559
559
  });
560
560
  process.env.NODE_ENV !== "production" && (Xe.displayName = "SelectTrigger");
561
561
  //#endregion
562
562
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/value/SelectValue.js
563
563
  var Ze = { value: () => null }, Qe = /*#__PURE__*/ Y.forwardRef(function(e, t) {
564
- let { className: n, render: r, children: i, placeholder: a, style: o, ...s } = e, { store: l, valueRef: u } = Z(), d = f(l, Q.value), p = f(l, Q.items), m = f(l, Q.itemToStringLabel), h = f(l, Q.hasSelectedValue), ee = !h && a != null && i == null, g = f(l, Q.hasNullItemLabel, ee), _ = {
565
- value: d,
564
+ let { className: n, render: r, children: i, placeholder: a, style: o, ...s } = e, { store: c, valueRef: l } = Z(), u = d(c, Q.value), p = d(c, Q.items), m = d(c, Q.itemToStringLabel), h = d(c, Q.hasSelectedValue), ee = !h && a != null && i == null, g = d(c, Q.hasNullItemLabel, ee), _ = {
565
+ value: u,
566
566
  placeholder: !h
567
567
  }, v = null;
568
- return v = typeof i == "function" ? i(d) : i ?? (!h && a != null && !g ? a : Array.isArray(d) ? Ve(d, p, m) : Be(d, p, m)), c("span", e, {
568
+ return v = typeof i == "function" ? i(u) : i ?? (!h && a != null && !g ? a : Array.isArray(u) ? Ve(u, p, m) : Be(u, p, m)), f("span", e, {
569
569
  state: _,
570
- ref: [t, u],
570
+ ref: [t, l],
571
571
  props: [{ children: v }, s],
572
572
  stateAttributesMapping: Ze
573
573
  });
@@ -576,15 +576,15 @@ process.env.NODE_ENV !== "production" && (Qe.displayName = "SelectValue");
576
576
  //#endregion
577
577
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/icon/SelectIcon.js
578
578
  var $e = /*#__PURE__*/ Y.forwardRef(function(e, t) {
579
- let { className: n, render: r, style: i, ...o } = e, { store: s } = Z(), l = { open: f(s, Q.open) };
580
- return c("span", e, {
581
- state: l,
579
+ let { className: n, render: r, style: a, ...o } = e, { store: s } = Z(), c = { open: d(s, Q.open) };
580
+ return f("span", e, {
581
+ state: c,
582
582
  ref: t,
583
583
  props: [{
584
584
  "aria-hidden": !0,
585
585
  children: "▼"
586
586
  }, o],
587
- stateAttributesMapping: a
587
+ stateAttributesMapping: i
588
588
  });
589
589
  });
590
590
  process.env.NODE_ENV !== "production" && ($e.displayName = "SelectIcon");
@@ -595,10 +595,10 @@ process.env.NODE_ENV !== "production" && (et.displayName = "SelectPortalContext"
595
595
  //#endregion
596
596
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/portal/SelectPortal.js
597
597
  var tt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
598
- let { store: n } = Z(), r = f(n, Q.mounted), i = f(n, Q.forceMount);
598
+ let { store: n } = Z(), r = d(n, Q.mounted), i = d(n, Q.forceMount);
599
599
  return r || i ? /*#__PURE__*/ X(et.Provider, {
600
600
  value: !0,
601
- children: /*#__PURE__*/ X(H, {
601
+ children: /*#__PURE__*/ X(B, {
602
602
  ref: t,
603
603
  ...e
604
604
  })
@@ -611,7 +611,7 @@ var nt = /*#__PURE__*/ Y.createContext(void 0);
611
611
  process.env.NODE_ENV !== "production" && (nt.displayName = "SelectPositionerContext");
612
612
  function rt() {
613
613
  let e = Y.useContext(nt);
614
- if (!e) throw Error(process.env.NODE_ENV === "production" ? R(59) : "Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.");
614
+ if (!e) throw Error(process.env.NODE_ENV === "production" ? K(59) : "Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.");
615
615
  return e;
616
616
  }
617
617
  //#endregion
@@ -625,84 +625,84 @@ var at = {
625
625
  overflowX: "hidden",
626
626
  overflowY: "auto"
627
627
  }, ot = { position: "fixed" }, st = /*#__PURE__*/ Y.forwardRef(function(e, t) {
628
- let { anchor: n, positionMethod: i = "absolute", className: a, render: o, side: s = "bottom", align: c = "center", sideOffset: l = 0, alignOffset: u = 0, collisionBoundary: d = "clipping-ancestors", collisionPadding: p, arrowPadding: m = 5, sticky: h = !1, disableAnchorTracking: ee, alignItemWithTrigger: g = !0, collisionAvoidance: _ = z, style: v, ...y } = e, { store: b, listRef: x, labelsRef: S, alignItemWithTriggerActiveRef: C, selectedItemTextRef: w, valuesRef: T, initialValueRef: te, popupRef: E, setValue: D } = Z(), O = ke(), k = f(b, Q.open), A = f(b, Q.mounted), j = f(b, Q.modal), P = f(b, Q.value), I = f(b, Q.openMethod), L = f(b, Q.positionerElement), R = f(b, Q.triggerElement), ne = f(b, Q.isItemEqualToValue), re = f(b, Q.transitionStatus), ie = Y.useRef(null), ae = Y.useRef(null), [oe, se] = Y.useState(g), B = A && oe && I !== "touch";
629
- !A && oe !== g && se(g), W(() => {
630
- A || (Q.scrollUpArrowVisible(b.state) && b.set("scrollUpArrowVisible", !1), Q.scrollDownArrowVisible(b.state) && b.set("scrollDownArrowVisible", !1));
631
- }, [b, A]), Y.useImperativeHandle(C, () => B), M((B || j) && k, I === "touch", L, R);
632
- let H = ye({
628
+ let { anchor: n, positionMethod: r = "absolute", className: i, render: a, side: o = "bottom", align: s = "center", sideOffset: c = 0, alignOffset: l = 0, collisionBoundary: u = "clipping-ancestors", collisionPadding: f, arrowPadding: p = 5, sticky: h = !1, disableAnchorTracking: ee, alignItemWithTrigger: g = !0, collisionAvoidance: _ = R, style: v, ...y } = e, { store: b, listRef: x, labelsRef: S, alignItemWithTriggerActiveRef: C, selectedItemTextRef: w, valuesRef: T, initialValueRef: D, popupRef: te, setValue: O } = Z(), k = ke(), A = d(b, Q.open), j = d(b, Q.mounted), N = d(b, Q.modal), F = d(b, Q.value), I = d(b, Q.openMethod), L = d(b, Q.positionerElement), z = d(b, Q.triggerElement), ne = d(b, Q.isItemEqualToValue), re = d(b, Q.transitionStatus), ie = Y.useRef(null), oe = Y.useRef(null), [B, se] = Y.useState(g), V = j && B && I !== "touch";
629
+ !j && B !== g && se(g), W(() => {
630
+ j || (Q.scrollUpArrowVisible(b.state) && b.set("scrollUpArrowVisible", !1), Q.scrollDownArrowVisible(b.state) && b.set("scrollDownArrowVisible", !1));
631
+ }, [b, j]), Y.useImperativeHandle(C, () => V), M((V || N) && A, I === "touch", L, z);
632
+ let H = ve({
633
633
  anchor: n,
634
- floatingRootContext: O,
635
- positionMethod: i,
636
- mounted: A,
637
- side: s,
638
- sideOffset: l,
639
- align: c,
640
- alignOffset: u,
641
- arrowPadding: m,
642
- collisionBoundary: d,
643
- collisionPadding: p,
634
+ floatingRootContext: k,
635
+ positionMethod: r,
636
+ mounted: j,
637
+ side: o,
638
+ sideOffset: c,
639
+ align: s,
640
+ alignOffset: l,
641
+ arrowPadding: p,
642
+ collisionBoundary: u,
643
+ collisionPadding: f,
644
644
  sticky: h,
645
- disableAnchorTracking: ee ?? B,
645
+ disableAnchorTracking: ee ?? V,
646
646
  collisionAvoidance: _,
647
647
  keepMounted: !0
648
- }), le = B ? "none" : H.side, ue = B ? ot : H.positionerStyles, U = {
649
- open: k,
650
- side: le,
648
+ }), U = V ? "none" : H.side, ue = V ? ot : H.positionerStyles, de = {
649
+ open: A,
650
+ side: U,
651
651
  align: H.align,
652
652
  anchorHidden: H.anchorHidden
653
- }, de = N((e) => {
653
+ }, fe = ce((e) => {
654
654
  b.set("positionerElement", e);
655
- }), fe = he(e, U, {
655
+ }), pe = me(e, de, {
656
656
  styles: ue,
657
657
  transitionStatus: re,
658
658
  props: y,
659
- refs: [t, de],
660
- hidden: !A,
661
- inert: !k
662
- }), K = Y.useRef(0), pe = N((e) => {
663
- if (e.size === 0 && K.current === 0 || T.current.length === 0) return;
664
- let t = K.current;
665
- if (K.current = e.size, e.size === t) return;
666
- let n = ce(r);
667
- if (t !== 0 && !b.state.multiple && P !== null && Ne(T.current, P, ne) === -1) {
668
- let e = te.current, t = e != null && Ne(T.current, e, ne) !== -1 ? e : null;
669
- D(t, n), t === null && (b.set("selectedIndex", null), w.current = null);
659
+ refs: [t, fe],
660
+ hidden: !j,
661
+ inert: !A
662
+ }), he = Y.useRef(0), G = ce((e) => {
663
+ if (e.size === 0 && he.current === 0 || T.current.length === 0) return;
664
+ let t = he.current;
665
+ if (he.current = e.size, e.size === t) return;
666
+ let n = m(E);
667
+ if (t !== 0 && !b.state.multiple && F !== null && Ne(T.current, F, ne) === -1) {
668
+ let e = D.current, t = e != null && Ne(T.current, e, ne) !== -1 ? e : null;
669
+ O(t, n), t === null && (b.set("selectedIndex", null), w.current = null);
670
670
  }
671
- if (t !== 0 && b.state.multiple && Array.isArray(P)) {
672
- let e = (e) => Ne(T.current, e, ne) !== -1, t = P.filter((t) => e(t));
673
- (t.length !== P.length || t.some((e) => !Me(P, e, ne))) && (D(t, n), t.length === 0 && (b.set("selectedIndex", null), w.current = null));
671
+ if (t !== 0 && b.state.multiple && Array.isArray(F)) {
672
+ let e = (e) => Ne(T.current, e, ne) !== -1, t = F.filter((t) => e(t));
673
+ (t.length !== F.length || t.some((e) => !Me(F, e, ne))) && (O(t, n), t.length === 0 && (b.set("selectedIndex", null), w.current = null));
674
674
  }
675
- if (k && B) {
675
+ if (A && V) {
676
676
  b.update({
677
677
  scrollUpArrowVisible: !1,
678
678
  scrollDownArrowVisible: !1
679
679
  });
680
680
  let e = { height: "" };
681
- it(L, e), it(E.current, e);
681
+ it(L, e), it(te.current, e);
682
682
  }
683
- }), me = Y.useMemo(() => ({
683
+ }), ge = Y.useMemo(() => ({
684
684
  ...H,
685
- side: le,
686
- alignItemWithTriggerActive: B,
685
+ side: U,
686
+ alignItemWithTriggerActive: V,
687
687
  setControlledAlignItemWithTrigger: se,
688
688
  scrollUpArrowRef: ie,
689
- scrollDownArrowRef: ae
689
+ scrollDownArrowRef: oe
690
690
  }), [
691
691
  H,
692
- le,
693
- B,
692
+ U,
693
+ V,
694
694
  se
695
695
  ]);
696
- return /*#__PURE__*/ X(V, {
696
+ return /*#__PURE__*/ X(ae, {
697
697
  elementsRef: x,
698
698
  labelsRef: S,
699
- onMapChange: pe,
699
+ onMapChange: G,
700
700
  children: /*#__PURE__*/ we(nt.Provider, {
701
- value: me,
702
- children: [A && j && /*#__PURE__*/ X(F, {
703
- inert: G(!k),
704
- cutout: R
705
- }), fe]
701
+ value: ge,
702
+ children: [j && N && /*#__PURE__*/ X(P, {
703
+ inert: le(!A),
704
+ cutout: z
705
+ }), pe]
706
706
  })
707
707
  });
708
708
  });
@@ -732,177 +732,177 @@ function ft() {
732
732
  //#endregion
733
733
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/popup/SelectPopup.js
734
734
  var pt = {
735
- ...T,
736
- ...t
737
- }, mt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
738
- let { render: r, className: i, style: a, finalFocus: o, ...s } = e, { store: l, popupRef: u, onOpenChangeComplete: d, setOpen: p, valueRef: h, selectedItemTextRef: g, keyboardActiveRef: _, multiple: v, handleScrollArrowVisibility: y, scrollHandlerRef: b, listRef: x, highlightItemOnHover: S } = Z(), { side: C, align: w, alignItemWithTriggerActive: T, isPositioned: te, setControlledAlignItemWithTrigger: D, scrollDownArrowRef: O, scrollUpArrowRef: k } = rt(), A = n(!0) != null, j = ke(), M = re(), { nonce: F, disableStyleElements: R } = ft(), ne = f(l, Q.id), z = f(l, Q.open), ie = f(l, Q.mounted), ae = f(l, Q.popupProps), oe = f(l, Q.transitionStatus), B = f(l, Q.triggerElement), V = f(l, Q.positionerElement), H = f(l, Q.listElement), ue = Y.useRef(!1), U = Y.useRef(!1), fe = Y.useRef({}), G = L(), K = N((e) => {
739
- if (!V || !u.current || !U.current) return;
740
- if (ue.current || !T) {
741
- y();
735
+ ...w,
736
+ ...F
737
+ }, mt = /*#__PURE__*/ Y.forwardRef(function(e, n) {
738
+ let { render: r, className: i, style: a, finalFocus: o, ...s } = e, { store: c, popupRef: l, onOpenChangeComplete: u, setOpen: h, valueRef: g, selectedItemTextRef: _, keyboardActiveRef: v, multiple: y, handleScrollArrowVisibility: b, scrollHandlerRef: x, listRef: S, highlightItemOnHover: C } = Z(), { side: w, align: T, alignItemWithTriggerActive: E, isPositioned: D, setControlledAlignItemWithTrigger: te, scrollDownArrowRef: O, scrollUpArrowRef: k } = rt(), j = t(!0) != null, M = ke(), P = L(), { nonce: F, disableStyleElements: I } = ft(), R = d(c, Q.id), z = d(c, Q.open), ne = d(c, Q.mounted), re = d(c, Q.popupProps), ie = d(c, Q.transitionStatus), ae = d(c, Q.triggerElement), B = d(c, Q.positionerElement), V = d(c, Q.listElement), H = Y.useRef(!1), le = Y.useRef(!1), ue = Y.useRef({}), fe = ge(), pe = ce((e) => {
739
+ if (!B || !l.current || !le.current) return;
740
+ if (H.current || !E) {
741
+ b();
742
742
  return;
743
743
  }
744
- let t = V.style.top === "0px", n = V.style.bottom === "0px";
744
+ let t = B.style.top === "0px", n = B.style.bottom === "0px";
745
745
  if (!t && !n) {
746
- y();
746
+ b();
747
747
  return;
748
748
  }
749
- let r = _t(V), i = vt(V.getBoundingClientRect().height, "y", r), a = ee(V), o = getComputedStyle(V), s = parseFloat(o.marginTop), c = parseFloat(o.marginBottom), l = ht(getComputedStyle(u.current)), d = Math.min(a.documentElement.clientHeight - s - c, l), f = e.scrollTop, p = gt(e), m = 0, h = null, g = !1, _ = !1, v = (e) => {
750
- V.style.height = `${e}px`;
751
- }, b = (t, n) => {
749
+ let r = _t(B), i = vt(B.getBoundingClientRect().height, "y", r), a = ee(B), o = getComputedStyle(B), s = parseFloat(o.marginTop), c = parseFloat(o.marginBottom), u = ht(getComputedStyle(l.current)), d = Math.min(a.documentElement.clientHeight - s - c, u), f = e.scrollTop, p = gt(e), m = 0, h = null, g = !1, _ = !1, v = (e) => {
750
+ B.style.height = `${e}px`;
751
+ }, y = (t, n) => {
752
752
  let r = He(t, 0, d - i);
753
- r > 0 && v(i + r), e.scrollTop = n, d - (i + r) <= 1 && (ue.current = !0), y();
753
+ r > 0 && v(i + r), e.scrollTop = n, d - (i + r) <= 1 && (H.current = !0), b();
754
754
  }, x = t ? p - f : f, S = Math.min(i + x, d);
755
755
  if (m = S, x <= 1) {
756
- b(x, t ? p : 0);
756
+ y(x, t ? p : 0);
757
757
  return;
758
758
  }
759
759
  if (d - S > 1 ? t ? _ = !0 : h = 0 : (g = !0, n && f < p && (h = f - (x - (i + x - d)))), m = Math.ceil(m), m !== 0 && v(m), _ || h != null) {
760
760
  let t = gt(e), n = _ ? t : He(h, 0, t);
761
761
  Math.abs(e.scrollTop - n) > 1 && (e.scrollTop = n);
762
762
  }
763
- (g || m >= d - 1) && (ue.current = !0), y();
763
+ (g || m >= d - 1) && (H.current = !0), b();
764
764
  });
765
- Y.useImperativeHandle(b, () => K, [K]), E({
765
+ Y.useImperativeHandle(x, () => pe, [pe]), A({
766
766
  open: z,
767
- ref: u,
767
+ ref: l,
768
768
  onComplete() {
769
- z && d?.(!0);
769
+ z && u?.(!0);
770
770
  }
771
771
  });
772
- let pe = {
772
+ let me = {
773
773
  open: z,
774
- transitionStatus: oe,
775
- side: C,
776
- align: w
774
+ transitionStatus: ie,
775
+ side: w,
776
+ align: T
777
777
  };
778
778
  W(() => {
779
- !V || !u.current || Object.keys(fe.current).length || (fe.current = {
780
- top: V.style.top || "0",
781
- left: V.style.left || "0",
782
- right: V.style.right,
783
- height: V.style.height,
784
- bottom: V.style.bottom,
785
- minHeight: V.style.minHeight,
786
- maxHeight: V.style.maxHeight,
787
- marginTop: V.style.marginTop,
788
- marginBottom: V.style.marginBottom
779
+ !B || !l.current || Object.keys(ue.current).length || (ue.current = {
780
+ top: B.style.top || "0",
781
+ left: B.style.left || "0",
782
+ right: B.style.right,
783
+ height: B.style.height,
784
+ bottom: B.style.bottom,
785
+ minHeight: B.style.minHeight,
786
+ maxHeight: B.style.maxHeight,
787
+ marginTop: B.style.marginTop,
788
+ marginBottom: B.style.marginBottom
789
789
  });
790
- }, [u, V]), W(() => {
791
- z || T || (U.current = !1, ue.current = !1, it(V, fe.current));
790
+ }, [l, B]), W(() => {
791
+ z || E || (le.current = !1, H.current = !1, it(B, ue.current));
792
792
  }, [
793
793
  z,
794
- T,
795
- V,
796
- u
794
+ E,
795
+ B,
796
+ l
797
797
  ]), W(() => {
798
- let e = u.current;
799
- if (!z || !B || !V || !e || T && !te || l.state.transitionStatus === "ending") return;
800
- if (!T) {
801
- U.current = !0, G.request(y), e.style.removeProperty("--transform-origin");
798
+ let e = l.current;
799
+ if (!z || !ae || !B || !e || E && !D || c.state.transitionStatus === "ending") return;
800
+ if (!E) {
801
+ le.current = !0, fe.request(b), e.style.removeProperty("--transform-origin");
802
802
  return;
803
803
  }
804
804
  let t = xt(e);
805
805
  e.style.removeProperty("--transform-origin");
806
806
  try {
807
- let t = g.current, n = h.current, r = getComputedStyle(V), i = getComputedStyle(e), a = ee(B), o = I(V), s = _t(B), c = yt(B.getBoundingClientRect(), s), u = yt(V.getBoundingClientRect(), s), d = c.height, f = H || e, p = f.scrollHeight, m = parseFloat(i.borderBottomWidth), _ = parseFloat(r.marginTop) || 10, v = parseFloat(r.marginBottom) || 10, b = parseFloat(r.minHeight) || 100, C = ht(i), w = a.documentElement.clientHeight - _ - v, T = a.documentElement.clientWidth, te = w - c.bottom + d, E, O = M === "rtl" ? c.right - u.width : c.left, k = 0;
807
+ let t = _.current, n = g.current, r = getComputedStyle(B), i = getComputedStyle(e), a = ee(ae), o = oe(B), s = _t(ae), l = yt(ae.getBoundingClientRect(), s), u = yt(B.getBoundingClientRect(), s), d = l.height, f = V || e, m = f.scrollHeight, h = parseFloat(i.borderBottomWidth), v = parseFloat(r.marginTop) || 10, y = parseFloat(r.marginBottom) || 10, x = parseFloat(r.minHeight) || 100, w = ht(i), T = a.documentElement.clientHeight - v - y, E = a.documentElement.clientWidth, D = T - l.bottom + d, O, k = P === "rtl" ? l.right - u.width : l.left, A = 0;
808
808
  if (t && n) {
809
809
  let e = yt(n.getBoundingClientRect(), s);
810
- E = yt(t.getBoundingClientRect(), s), O = u.left + (M === "rtl" ? e.right - E.right : e.left - E.left);
811
- let r = e.top - c.top + e.height / 2;
812
- k = E.top - u.top + E.height / 2 - r;
810
+ O = yt(t.getBoundingClientRect(), s), k = u.left + (P === "rtl" ? e.right - O.right : e.left - O.left);
811
+ let r = e.top - l.top + e.height / 2;
812
+ A = O.top - u.top + O.height / 2 - r;
813
813
  }
814
- let A = te + k + v + m, j = Math.min(w, A), N = w - _ - v, P = A - j, F = T - 5;
815
- V.style.left = `${He(O, 5, F - u.width)}px`, V.style.height = `${j}px`, V.style.maxHeight = "auto", V.style.marginTop = `${_}px`, V.style.marginBottom = `${v}px`, e.style.height = "100%";
816
- let L = gt(f), R = P >= L - 1;
817
- R && (j = Math.min(w, u.height) - (P - L));
818
- let ne = c.top < 20 || c.bottom > w - 20 || Math.ceil(j) + 1 < Math.min(p, b), re = (o.visualViewport?.scale ?? 1) !== 1 && se;
819
- if (ne || re) {
820
- U.current = !0, it(V, fe.current), D(!1);
814
+ let j = D + A + y + h, M = Math.min(T, j), N = T - v - y, F = j - M, I = E - 5;
815
+ B.style.left = `${He(k, 5, I - u.width)}px`, B.style.height = `${M}px`, B.style.maxHeight = "auto", B.style.marginTop = `${v}px`, B.style.marginBottom = `${y}px`, e.style.height = "100%";
816
+ let L = gt(f), R = F >= L - 1;
817
+ R && (M = Math.min(T, u.height) - (F - L));
818
+ let z = l.top < 20 || l.bottom > T - 20 || Math.ceil(M) + 1 < Math.min(m, x), ne = (o.visualViewport?.scale ?? 1) !== 1 && p;
819
+ if (z || ne) {
820
+ le.current = !0, it(B, ue.current), te(!1);
821
821
  return;
822
822
  }
823
- let z = Math.max(b, j);
823
+ let re = Math.max(x, M);
824
824
  if (R) {
825
- let e = Math.max(0, w - A);
826
- V.style.top = u.height >= N ? "0" : `${e}px`, V.style.height = `${j}px`, f.scrollTop = gt(f);
827
- } else V.style.bottom = "0", f.scrollTop = P;
828
- if (E) {
829
- let t = u.top, n = u.height, r = E.top + E.height / 2, i = He(n > 0 ? (r - t) / n * 100 : 50, 0, 100);
825
+ let e = Math.max(0, T - j);
826
+ B.style.top = u.height >= N ? "0" : `${e}px`, B.style.height = `${M}px`, f.scrollTop = gt(f);
827
+ } else B.style.bottom = "0", f.scrollTop = F;
828
+ if (O) {
829
+ let t = u.top, n = u.height, r = O.top + O.height / 2, i = He(n > 0 ? (r - t) / n * 100 : 50, 0, 100);
830
830
  e.style.setProperty("--transform-origin", `50% ${i}%`);
831
831
  }
832
- (z === w || j >= C) && (ue.current = !0), y(), S && l.state.selectedIndex === null && l.state.activeIndex === null && x.current[0] != null && l.set("activeIndex", 0), U.current = !0;
832
+ (re === T || M >= w) && (H.current = !0), b(), C && c.state.selectedIndex === null && c.state.activeIndex === null && S.current[0] != null && c.set("activeIndex", 0), le.current = !0;
833
833
  } finally {
834
834
  t();
835
835
  }
836
836
  }, [
837
- l,
837
+ c,
838
838
  z,
839
- V,
840
839
  B,
841
- h,
840
+ ae,
842
841
  g,
843
- u,
844
- y,
845
- T,
846
- D,
847
- G,
842
+ _,
843
+ l,
844
+ b,
845
+ E,
846
+ te,
847
+ fe,
848
848
  O,
849
849
  k,
850
- H,
851
- x,
850
+ V,
852
851
  S,
853
- M,
854
- te
852
+ C,
853
+ P,
854
+ D
855
855
  ]), Y.useEffect(() => {
856
- if (!T || !V || !z) return;
857
- let e = I(V);
856
+ if (!E || !B || !z) return;
857
+ let e = oe(B);
858
858
  function t(e) {
859
- p(!1, ce(m, e));
859
+ h(!1, m(de, e));
860
860
  }
861
- return P(e, "resize", t);
861
+ return N(e, "resize", t);
862
862
  }, [
863
- p,
864
- T,
865
- V,
863
+ h,
864
+ E,
865
+ B,
866
866
  z
867
867
  ]);
868
- let me = {
869
- ...H ? {
868
+ let he = {
869
+ ...V ? {
870
870
  role: "presentation",
871
871
  "aria-orientation": void 0
872
872
  } : {
873
873
  role: "listbox",
874
- "aria-multiselectable": v || void 0,
875
- id: `${ne}-list`
874
+ "aria-multiselectable": y || void 0,
875
+ id: `${R}-list`
876
876
  },
877
877
  onKeyDown(e) {
878
- _.current = !0, A && xe.has(e.key) && e.stopPropagation();
878
+ v.current = !0, j && q.has(e.key) && e.stopPropagation();
879
879
  },
880
880
  onMouseMove() {
881
- _.current = !1;
881
+ v.current = !1;
882
882
  },
883
883
  onScroll(e) {
884
- H || K(e.currentTarget);
884
+ V || pe(e.currentTarget);
885
885
  },
886
- ...T && { style: H ? { height: "100%" } : at }
887
- }, he = c("div", e, {
888
- ref: [t, u],
889
- state: pe,
886
+ ...E && { style: V ? { height: "100%" } : at }
887
+ }, G = f("div", e, {
888
+ ref: [n, l],
889
+ state: me,
890
890
  stateAttributesMapping: pt,
891
891
  props: [
892
- ae,
893
- me,
894
- le(oe),
895
- { className: !H && T ? lt.className : void 0 },
892
+ re,
893
+ he,
894
+ se(ie),
895
+ { className: !V && E ? lt.className : void 0 },
896
896
  s
897
897
  ]
898
898
  });
899
- return /*#__PURE__*/ we(Y.Fragment, { children: [!R && lt.getElement(F), /*#__PURE__*/ X(de, {
900
- context: j,
899
+ return /*#__PURE__*/ we(Y.Fragment, { children: [!I && lt.getElement(F), /*#__PURE__*/ X(U, {
900
+ context: M,
901
901
  modal: !1,
902
- disabled: !ie,
902
+ disabled: !ne,
903
903
  returnFocus: o,
904
904
  restoreFocus: !0,
905
- children: he
905
+ children: G
906
906
  })] });
907
907
  });
908
908
  process.env.NODE_ENV !== "production" && (mt.displayName = "SelectPopup");
@@ -920,7 +920,7 @@ function vt(e, t, n) {
920
920
  return e / n[t];
921
921
  }
922
922
  function yt(e, t) {
923
- return A({
923
+ return ye({
924
924
  x: vt(e.x, "x", t),
925
925
  y: vt(e.y, "y", t),
926
926
  width: vt(e.width, "x", t),
@@ -945,19 +945,19 @@ function xt(e) {
945
945
  //#endregion
946
946
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/list/SelectList.js
947
947
  var St = /*#__PURE__*/ Y.forwardRef(function(e, t) {
948
- let { className: n, render: r, style: i, ...a } = e, { store: o, scrollHandlerRef: s } = Z(), { alignItemWithTriggerActive: l } = rt(), u = f(o, Q.hasScrollArrows), d = f(o, Q.openMethod), p = f(o, Q.multiple), m = {
949
- id: `${f(o, Q.id)}-list`,
948
+ let { className: n, render: r, style: i, ...a } = e, { store: o, scrollHandlerRef: s } = Z(), { alignItemWithTriggerActive: c } = rt(), l = d(o, Q.hasScrollArrows), u = d(o, Q.openMethod), p = d(o, Q.multiple), m = {
949
+ id: `${d(o, Q.id)}-list`,
950
950
  role: "listbox",
951
951
  "aria-multiselectable": p || void 0,
952
952
  onScroll(e) {
953
953
  s.current?.(e.currentTarget);
954
954
  },
955
- ...l && { style: at },
956
- className: u && d !== "touch" ? lt.className : void 0
957
- }, h = N((e) => {
955
+ ...c && { style: at },
956
+ className: l && u !== "touch" ? lt.className : void 0
957
+ }, h = ce((e) => {
958
958
  o.set("listElement", e);
959
959
  });
960
- return c("div", e, {
960
+ return f("div", e, {
961
961
  ref: [t, h],
962
962
  props: [m, a]
963
963
  });
@@ -969,78 +969,78 @@ var Ct = /*#__PURE__*/ Y.createContext(void 0);
969
969
  process.env.NODE_ENV !== "production" && (Ct.displayName = "SelectItemContext");
970
970
  function wt() {
971
971
  let e = Y.useContext(Ct);
972
- if (!e) throw Error(process.env.NODE_ENV === "production" ? R(57) : "Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>.");
972
+ if (!e) throw Error(process.env.NODE_ENV === "production" ? K(57) : "Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>.");
973
973
  return e;
974
974
  }
975
975
  //#endregion
976
976
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/item/SelectItem.js
977
977
  var Tt = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef(function(e, t) {
978
- let { render: n, className: r, value: i = null, label: a, disabled: o = !1, nativeButton: s = !1, style: l, ...u } = e, d = Y.useRef(null), p = w({
978
+ let { render: n, className: r, value: i = null, label: a, disabled: o = !1, nativeButton: s = !1, style: c, ...l } = e, u = Y.useRef(null), p = C({
979
979
  label: a,
980
- textRef: d,
981
- indexGuessBehavior: Se.GuessFromOrder
982
- }), { store: m, getItemProps: h, setOpen: ee, setValue: g, selectionRef: _, typingRef: v, valuesRef: y, multiple: b, selectedItemTextRef: x } = Z(), S = f(m, Q.isActive, p.index), T = f(m, Q.isSelected, p.index, i), te = f(m, Q.isSelectedByFocus, p.index), E = f(m, Q.isItemEqualToValue), D = p.index, O = D !== -1, A = Y.useRef(null), j = be(D);
980
+ textRef: u,
981
+ indexGuessBehavior: xe.GuessFromOrder
982
+ }), { store: h, getItemProps: ee, setOpen: g, setValue: _, selectionRef: v, typingRef: y, valuesRef: x, multiple: S, selectedItemTextRef: w } = Z(), T = d(h, Q.isActive, p.index), E = d(h, Q.isSelected, p.index, i), D = d(h, Q.isSelectedByFocus, p.index), te = d(h, Q.isItemEqualToValue), O = p.index, k = O !== -1, A = Y.useRef(null), j = be(O);
983
983
  W(() => {
984
- if (!O) return;
985
- let e = y.current;
986
- return e[D] = i, () => {
987
- delete e[D];
984
+ if (!k) return;
985
+ let e = x.current;
986
+ return e[O] = i, () => {
987
+ delete e[O];
988
988
  };
989
989
  }, [
990
+ k,
990
991
  O,
991
- D,
992
992
  i,
993
- y
993
+ x
994
994
  ]), W(() => {
995
- if (!O) return;
996
- let e = m.state.value, t = e;
997
- b && Array.isArray(e) && e.length > 0 && (t = e[e.length - 1]), t !== void 0 && je(i, t, E) && (m.set("selectedIndex", D), d.current && (x.current = d.current));
995
+ if (!k) return;
996
+ let e = h.state.value, t = e;
997
+ S && Array.isArray(e) && e.length > 0 && (t = e[e.length - 1]), t !== void 0 && je(i, t, te) && (h.set("selectedIndex", O), u.current && (w.current = u.current));
998
998
  }, [
999
+ k,
999
1000
  O,
1000
- D,
1001
- b,
1002
- E,
1003
- m,
1001
+ S,
1002
+ te,
1003
+ h,
1004
1004
  i,
1005
- x
1005
+ w
1006
1006
  ]);
1007
1007
  let M = {
1008
1008
  disabled: o,
1009
- selected: T,
1010
- highlighted: S
1011
- }, N = h({
1012
- active: S,
1013
- selected: T
1009
+ selected: E,
1010
+ highlighted: T
1011
+ }, N = ee({
1012
+ active: T,
1013
+ selected: E
1014
1014
  });
1015
1015
  N.id = void 0;
1016
- let P = Y.useRef(null), F = Y.useRef("mouse"), I = Y.useRef(!1), { getButtonProps: L, buttonRef: R } = k({
1016
+ let P = Y.useRef(null), F = Y.useRef("mouse"), I = Y.useRef(!1), { getButtonProps: L, buttonRef: R } = b({
1017
1017
  disabled: o,
1018
1018
  focusableWhenDisabled: !0,
1019
1019
  native: s,
1020
1020
  composite: !0
1021
1021
  });
1022
- function ne(e) {
1023
- let t = m.state.value;
1024
- if (b) {
1025
- let n = Array.isArray(t) ? t : [], r = T ? Pe(n, i, E) : [...n, i];
1026
- g(r, ce(C, e));
1027
- } else g(i, ce(C, e)), ee(!1, ce(C, e));
1022
+ function z(e) {
1023
+ let t = h.state.value;
1024
+ if (S) {
1025
+ let n = Array.isArray(t) ? t : [], r = E ? Pe(n, i, te) : [...n, i];
1026
+ _(r, m(J, e));
1027
+ } else _(i, m(J, e)), g(!1, m(J, e));
1028
1028
  }
1029
- let re = {
1029
+ let ne = {
1030
1030
  role: "option",
1031
- "aria-selected": T,
1032
- tabIndex: S ? 0 : -1,
1031
+ "aria-selected": E,
1032
+ tabIndex: T ? 0 : -1,
1033
1033
  onTouchStart() {
1034
- _.current = {
1034
+ v.current = {
1035
1035
  allowSelectedMouseUp: !1,
1036
1036
  allowUnselectedMouseUp: !1
1037
1037
  };
1038
1038
  },
1039
1039
  onKeyDown(e) {
1040
- P.current = e.key, m.set("activeIndex", D), e.key === " " && v.current && e.preventDefault();
1040
+ P.current = e.key, h.set("activeIndex", O), e.key === " " && y.current && e.preventDefault();
1041
1041
  },
1042
1042
  onClick(e) {
1043
- I.current = !1, (e.type !== "keydown" || P.current !== null) && (o || e.type === "keydown" && P.current === " " && v.current || F.current !== "touch" && !S || (P.current = null, ne(e.nativeEvent)));
1043
+ I.current = !1, (e.type !== "keydown" || P.current !== null) && (o || e.type === "keydown" && P.current === " " && y.current || F.current !== "touch" && !T || (P.current = null, z(e.nativeEvent)));
1044
1044
  },
1045
1045
  onPointerEnter(e) {
1046
1046
  F.current = e.pointerType;
@@ -1054,10 +1054,10 @@ var Tt = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef(function(e, t) {
1054
1054
  I.current = !1;
1055
1055
  return;
1056
1056
  }
1057
- let e = !_.current.allowSelectedMouseUp && T, t = !_.current.allowUnselectedMouseUp && !T;
1058
- e || t || F.current !== "touch" && !S || A.current?.click();
1057
+ let e = !v.current.allowSelectedMouseUp && E, t = !v.current.allowUnselectedMouseUp && !E;
1058
+ e || t || F.current !== "touch" && !T || A.current?.click();
1059
1059
  }
1060
- }, z = c("div", e, {
1060
+ }, re = f("div", e, {
1061
1061
  ref: [
1062
1062
  R,
1063
1063
  t,
@@ -1067,26 +1067,26 @@ var Tt = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef(function(e, t) {
1067
1067
  state: M,
1068
1068
  props: [
1069
1069
  N,
1070
- re,
1071
- u,
1070
+ ne,
1071
+ l,
1072
1072
  L
1073
1073
  ]
1074
1074
  }), ie = Y.useMemo(() => ({
1075
- selected: T,
1075
+ selected: E,
1076
1076
  indexRef: j,
1077
- textRef: d,
1078
- selectedByFocus: te,
1079
- hasRegistered: O
1077
+ textRef: u,
1078
+ selectedByFocus: D,
1079
+ hasRegistered: k
1080
1080
  }), [
1081
- T,
1081
+ E,
1082
1082
  j,
1083
- d,
1084
- te,
1085
- O
1083
+ u,
1084
+ D,
1085
+ k
1086
1086
  ]);
1087
1087
  return /*#__PURE__*/ X(Ct.Provider, {
1088
1088
  value: ie,
1089
- children: z
1089
+ children: re
1090
1090
  });
1091
1091
  }));
1092
1092
  process.env.NODE_ENV !== "production" && (Tt.displayName = "SelectItem");
@@ -1100,32 +1100,32 @@ var Et = /*#__PURE__*/ Y.forwardRef(function(e, t) {
1100
1100
  }) : null;
1101
1101
  });
1102
1102
  process.env.NODE_ENV !== "production" && (Et.displayName = "SelectItemIndicator");
1103
- var Dt = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef((e, n) => {
1104
- let { render: r, className: i, style: a, keepMounted: o, ...s } = e, { selected: l } = wt(), u = Y.useRef(null), { transitionStatus: d, setMounted: f } = D(l), p = c("span", e, {
1105
- ref: [n, u],
1103
+ var Dt = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef((e, t) => {
1104
+ let { render: n, className: r, style: i, keepMounted: a, ...o } = e, { selected: s } = wt(), c = Y.useRef(null), { transitionStatus: l, setMounted: u } = D(s), d = f("span", e, {
1105
+ ref: [t, c],
1106
1106
  state: {
1107
- selected: l,
1108
- transitionStatus: d
1107
+ selected: s,
1108
+ transitionStatus: l
1109
1109
  },
1110
1110
  props: [{
1111
1111
  "aria-hidden": !0,
1112
1112
  children: "✔️"
1113
- }, s],
1114
- stateAttributesMapping: t
1113
+ }, o],
1114
+ stateAttributesMapping: F
1115
1115
  });
1116
- return E({
1117
- open: l,
1118
- ref: u,
1116
+ return A({
1117
+ open: s,
1118
+ ref: c,
1119
1119
  onComplete() {
1120
- l || f(!1);
1120
+ s || u(!1);
1121
1121
  }
1122
- }), p;
1122
+ }), d;
1123
1123
  }));
1124
1124
  process.env.NODE_ENV !== "production" && (Dt.displayName = "Inner");
1125
1125
  //#endregion
1126
1126
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/item-text/SelectItemText.js
1127
1127
  var Ot = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef(function(e, t) {
1128
- let { indexRef: n, textRef: r, selectedByFocus: i, hasRegistered: a } = wt(), { selectedItemTextRef: o } = Z(), { className: s, render: l, style: u, ...d } = e, f = Y.useCallback((e) => {
1128
+ let { indexRef: n, textRef: r, selectedByFocus: i, hasRegistered: a } = wt(), { selectedItemTextRef: o } = Z(), { className: s, render: c, style: l, ...u } = e, d = Y.useCallback((e) => {
1129
1129
  if (!e || !a) return;
1130
1130
  let t = o.current === null || !o.current.isConnected;
1131
1131
  (i || t && n.current === 0) && (o.current = e);
@@ -1135,30 +1135,30 @@ var Ot = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef(function(e, t) {
1135
1135
  i,
1136
1136
  a
1137
1137
  ]);
1138
- return c("div", e, {
1138
+ return f("div", e, {
1139
1139
  ref: [
1140
- f,
1140
+ d,
1141
1141
  t,
1142
1142
  r
1143
1143
  ],
1144
- props: d
1144
+ props: u
1145
1145
  });
1146
1146
  }));
1147
1147
  process.env.NODE_ENV !== "production" && (Ot.displayName = "SelectItemText");
1148
1148
  //#endregion
1149
1149
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/scroll-arrow/SelectScrollArrow.js
1150
1150
  var kt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
1151
- let { render: n, className: r, style: i, direction: a, keepMounted: o = !1, ...s } = e, l = a === "up", { store: u, popupRef: d, listRef: p, handleScrollArrowVisibility: m, scrollArrowsMountedCountRef: h } = Z(), { side: ee, scrollDownArrowRef: g, scrollUpArrowRef: _ } = rt(), v = l ? Q.scrollUpArrowVisible : Q.scrollDownArrowVisible, y = f(u, v), b = f(u, Q.openMethod), x = y && b !== "touch", S = U(), C = l ? _ : g, { transitionStatus: w, setMounted: T } = D(x);
1152
- W(() => (h.current += 1, u.state.hasScrollArrows || u.set("hasScrollArrows", !0), () => {
1153
- h.current = Math.max(0, h.current - 1), h.current === 0 && u.state.hasScrollArrows && u.set("hasScrollArrows", !1);
1154
- }), [u, h]), E({
1151
+ let { render: n, className: r, style: i, direction: a, keepMounted: o = !1, ...s } = e, c = a === "up", { store: l, popupRef: u, listRef: p, handleScrollArrowVisibility: m, scrollArrowsMountedCountRef: h } = Z(), { side: ee, scrollDownArrowRef: g, scrollUpArrowRef: _ } = rt(), v = c ? Q.scrollUpArrowVisible : Q.scrollDownArrowVisible, y = d(l, v), b = d(l, Q.openMethod), x = y && b !== "touch", S = pe(), C = c ? _ : g, { transitionStatus: w, setMounted: T } = D(x);
1152
+ W(() => (h.current += 1, l.state.hasScrollArrows || l.set("hasScrollArrows", !0), () => {
1153
+ h.current = Math.max(0, h.current - 1), h.current === 0 && l.state.hasScrollArrows && l.set("hasScrollArrows", !1);
1154
+ }), [l, h]), A({
1155
1155
  open: x,
1156
1156
  ref: C,
1157
1157
  onComplete() {
1158
1158
  x || T(!1);
1159
1159
  }
1160
1160
  });
1161
- let te = c("div", e, {
1161
+ let E = f("div", e, {
1162
1162
  ref: [t, C],
1163
1163
  state: {
1164
1164
  direction: a,
@@ -1168,23 +1168,23 @@ var kt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
1168
1168
  },
1169
1169
  props: [{
1170
1170
  "aria-hidden": !0,
1171
- children: l ? "▲" : "▼",
1171
+ children: c ? "▲" : "▼",
1172
1172
  style: { position: "absolute" },
1173
1173
  onMouseMove(e) {
1174
1174
  if (e.movementX === 0 && e.movementY === 0 || S.isStarted()) return;
1175
- u.set("activeIndex", null);
1175
+ l.set("activeIndex", null);
1176
1176
  function t() {
1177
- let e = u.state.listElement ?? d.current;
1177
+ let e = l.state.listElement ?? u.current;
1178
1178
  if (!e) return;
1179
- u.set("activeIndex", null), m();
1180
- let n = Ue(e.scrollHeight, e.clientHeight), r = We(e.scrollTop, n), i = r === (l ? 0 : n), a = p.current;
1181
- if (r !== e.scrollTop && (e.scrollTop = r), a.length === 0 && u.set(l ? "scrollUpArrowVisible" : "scrollDownArrowVisible", !i), i) {
1179
+ l.set("activeIndex", null), m();
1180
+ let n = Ue(e.scrollHeight, e.clientHeight), r = We(e.scrollTop, n), i = r === (c ? 0 : n), a = p.current;
1181
+ if (r !== e.scrollTop && (e.scrollTop = r), a.length === 0 && l.set(c ? "scrollUpArrowVisible" : "scrollDownArrowVisible", !i), i) {
1182
1182
  S.clear();
1183
1183
  return;
1184
1184
  }
1185
1185
  if (a.length > 0) {
1186
1186
  let t = C.current?.offsetHeight || 0;
1187
- e.scrollTop = At(a, l, r, e.clientHeight, t, n);
1187
+ e.scrollTop = At(a, c, r, e.clientHeight, t, n);
1188
1188
  }
1189
1189
  S.start(40, t);
1190
1190
  }
@@ -1195,7 +1195,7 @@ var kt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
1195
1195
  }
1196
1196
  }, s]
1197
1197
  });
1198
- return x || o ? te : null;
1198
+ return x || o ? E : null;
1199
1199
  });
1200
1200
  process.env.NODE_ENV !== "production" && (kt.displayName = "SelectScrollArrow");
1201
1201
  function At(e, t, n, r, i, a) {
@@ -1249,10 +1249,10 @@ process.env.NODE_ENV !== "production" && (Nt.displayName = "SelectGroupContext")
1249
1249
  //#endregion
1250
1250
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/group/SelectGroup.js
1251
1251
  var Pt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
1252
- let { className: n, render: r, style: i, ...a } = e, [o, s] = Y.useState(), l = Y.useMemo(() => ({
1252
+ let { className: n, render: r, style: i, ...a } = e, [o, s] = Y.useState(), c = Y.useMemo(() => ({
1253
1253
  labelId: o,
1254
1254
  setLabelId: s
1255
- }), [o, s]), u = c("div", e, {
1255
+ }), [o, s]), l = f("div", e, {
1256
1256
  ref: t,
1257
1257
  props: [{
1258
1258
  role: "group",
@@ -1260,8 +1260,8 @@ var Pt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
1260
1260
  }, a]
1261
1261
  });
1262
1262
  return /*#__PURE__*/ X(Nt.Provider, {
1263
- value: l,
1264
- children: u
1263
+ value: c,
1264
+ children: l
1265
1265
  });
1266
1266
  });
1267
1267
  process.env.NODE_ENV !== "production" && (Pt.displayName = "SelectGroup");
@@ -1271,14 +1271,14 @@ var Ft = Ge;
1271
1271
  function It({ className: e, ...t }) {
1272
1272
  return /* @__PURE__ */ X(Pt, {
1273
1273
  "data-slot": "select-group",
1274
- className: l("scroll-my-1 p-1", e),
1274
+ className: T("scroll-my-1 p-1", e),
1275
1275
  ...t
1276
1276
  });
1277
1277
  }
1278
1278
  function Lt({ className: e, ...t }) {
1279
1279
  return /* @__PURE__ */ X(Qe, {
1280
1280
  "data-slot": "select-value",
1281
- className: l("flex flex-1 text-left", e),
1281
+ className: T("flex flex-1 text-left", e),
1282
1282
  ...t
1283
1283
  });
1284
1284
  }
@@ -1286,7 +1286,7 @@ function Rt({ children: e, className: t, size: n = "default", ...r }) {
1286
1286
  return /* @__PURE__ */ we(Xe, {
1287
1287
  "data-slot": "select-trigger",
1288
1288
  "data-size": n,
1289
- className: l("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-md *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
1289
+ className: T("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-md *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
1290
1290
  ...r,
1291
1291
  children: [e, /* @__PURE__ */ X($e, { render: /* @__PURE__ */ X(Ce, { className: "text-muted-foreground" }) })]
1292
1292
  });
@@ -1304,7 +1304,7 @@ function zt({ align: e = "center", alignItemWithTrigger: t = !0, alignOffset: n
1304
1304
  children: /* @__PURE__ */ we(mt, {
1305
1305
  "data-slot": "select-content",
1306
1306
  "data-align-trigger": t,
1307
- className: l("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:animate-none motion-reduce:transition-none", i),
1307
+ className: T("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:animate-none motion-reduce:transition-none", i),
1308
1308
  ...c,
1309
1309
  children: [
1310
1310
  /* @__PURE__ */ X(Vt, {}),
@@ -1318,21 +1318,21 @@ function zt({ align: e = "center", alignItemWithTrigger: t = !0, alignOffset: n
1318
1318
  function Bt({ className: e, children: t, ...n }) {
1319
1319
  return /* @__PURE__ */ we(Tt, {
1320
1320
  "data-slot": "select-item",
1321
- className: l("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", e),
1321
+ className: T("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", e),
1322
1322
  ...n,
1323
1323
  children: [/* @__PURE__ */ X(Ot, {
1324
1324
  className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap",
1325
1325
  children: t
1326
1326
  }), /* @__PURE__ */ X(Et, {
1327
1327
  render: /* @__PURE__ */ X("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
1328
- children: /* @__PURE__ */ X(y, {})
1328
+ children: /* @__PURE__ */ X(ie, {})
1329
1329
  })]
1330
1330
  });
1331
1331
  }
1332
1332
  function Vt({ className: e, ...t }) {
1333
1333
  return /* @__PURE__ */ X(Mt, {
1334
1334
  "data-slot": "select-scroll-up-button",
1335
- className: l("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
1335
+ className: T("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
1336
1336
  ...t,
1337
1337
  children: /* @__PURE__ */ X(Te, {})
1338
1338
  });
@@ -1340,7 +1340,7 @@ function Vt({ className: e, ...t }) {
1340
1340
  function Ht({ className: e, ...t }) {
1341
1341
  return /* @__PURE__ */ X(jt, {
1342
1342
  "data-slot": "select-scroll-down-button",
1343
- className: l("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
1343
+ className: T("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
1344
1344
  ...t,
1345
1345
  children: /* @__PURE__ */ X(Ce, {})
1346
1346
  });
@@ -1356,7 +1356,7 @@ function Ut({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange
1356
1356
  value: s,
1357
1357
  children: [/* @__PURE__ */ X(Rt, {
1358
1358
  "aria-label": e,
1359
- className: l("min-w-32", t),
1359
+ className: T("min-w-32", t),
1360
1360
  id: r,
1361
1361
  children: /* @__PURE__ */ X(Lt, { children: a.find((e) => e.value == s)?.label ?? s })
1362
1362
  }), /* @__PURE__ */ X(zt, {