@blakesteve/roster 2.3.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/roster.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import * as j from "react";
3
- import $, { useRef as Y, useCallback as ie, useEffect as me, useState as ae, useMemo as ye, useLayoutEffect as Ko, useContext as fe, createContext as Ce, forwardRef as qo, isValidElement as Xo, cloneElement as zl, createElement as cf, Fragment as Ie, useId as xe, useSyncExternalStore as df, useReducer as ff, createRef as gf } from "react";
3
+ import C, { useRef as K, useCallback as ie, useEffect as me, useState as ae, useMemo as ye, useLayoutEffect as Ko, useContext as fe, createContext as Ce, forwardRef as qo, isValidElement as Xo, cloneElement as zl, createElement as cf, Fragment as Ie, useId as xe, useSyncExternalStore as df, useReducer as ff, createRef as gf } from "react";
4
4
  import * as Bn from "react-dom";
5
5
  import { flushSync as nr, createPortal as Hl } from "react-dom";
6
6
  var En = { exports: {} }, _r = {};
@@ -30,12 +30,12 @@ var Tr = {};
30
30
  var Xi;
31
31
  function pf() {
32
32
  return Xi || (Xi = 1, process.env.NODE_ENV !== "production" && (function() {
33
- function e(C) {
34
- if (C == null) return null;
35
- if (typeof C == "function")
36
- return C.$$typeof === I ? null : C.displayName || C.name || null;
37
- if (typeof C == "string") return C;
38
- switch (C) {
33
+ function e(E) {
34
+ if (E == null) return null;
35
+ if (typeof E == "function")
36
+ return E.$$typeof === $ ? null : E.displayName || E.name || null;
37
+ if (typeof E == "string") return E;
38
+ switch (E) {
39
39
  case v:
40
40
  return "Fragment";
41
41
  case x:
@@ -46,130 +46,130 @@ function pf() {
46
46
  return "Suspense";
47
47
  case N:
48
48
  return "SuspenseList";
49
- case S:
49
+ case F:
50
50
  return "Activity";
51
51
  }
52
- if (typeof C == "object")
53
- switch (typeof C.tag == "number" && console.error(
52
+ if (typeof E == "object")
53
+ switch (typeof E.tag == "number" && console.error(
54
54
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
55
- ), C.$$typeof) {
55
+ ), E.$$typeof) {
56
56
  case p:
57
57
  return "Portal";
58
- case E:
59
- return C.displayName || "Context";
58
+ case S:
59
+ return E.displayName || "Context";
60
60
  case y:
61
- return (C._context.displayName || "Context") + ".Consumer";
61
+ return (E._context.displayName || "Context") + ".Consumer";
62
62
  case w:
63
- var L = C.render;
64
- return C = C.displayName, C || (C = L.displayName || L.name || "", C = C !== "" ? "ForwardRef(" + C + ")" : "ForwardRef"), C;
65
- case F:
66
- return L = C.displayName || null, L !== null ? L : e(C.type) || "Memo";
67
- case z:
68
- L = C._payload, C = C._init;
63
+ var L = E.render;
64
+ return E = E.displayName, E || (E = L.displayName || L.name || "", E = E !== "" ? "ForwardRef(" + E + ")" : "ForwardRef"), E;
65
+ case I:
66
+ return L = E.displayName || null, L !== null ? L : e(E.type) || "Memo";
67
+ case B:
68
+ L = E._payload, E = E._init;
69
69
  try {
70
- return e(C(L));
70
+ return e(E(L));
71
71
  } catch {
72
72
  }
73
73
  }
74
74
  return null;
75
75
  }
76
- function t(C) {
77
- return "" + C;
76
+ function t(E) {
77
+ return "" + E;
78
78
  }
79
- function r(C) {
79
+ function r(E) {
80
80
  try {
81
- t(C);
81
+ t(E);
82
82
  var L = !1;
83
83
  } catch {
84
84
  L = !0;
85
85
  }
86
86
  if (L) {
87
87
  L = console;
88
- var R = L.error, O = typeof Symbol == "function" && Symbol.toStringTag && C[Symbol.toStringTag] || C.constructor.name || "Object";
88
+ var R = L.error, O = typeof Symbol == "function" && Symbol.toStringTag && E[Symbol.toStringTag] || E.constructor.name || "Object";
89
89
  return R.call(
90
90
  L,
91
91
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
92
92
  O
93
- ), t(C);
93
+ ), t(E);
94
94
  }
95
95
  }
96
- function n(C) {
97
- if (C === v) return "<>";
98
- if (typeof C == "object" && C !== null && C.$$typeof === z)
96
+ function n(E) {
97
+ if (E === v) return "<>";
98
+ if (typeof E == "object" && E !== null && E.$$typeof === B)
99
99
  return "<...>";
100
100
  try {
101
- var L = e(C);
101
+ var L = e(E);
102
102
  return L ? "<" + L + ">" : "<...>";
103
103
  } catch {
104
104
  return "<...>";
105
105
  }
106
106
  }
107
107
  function a() {
108
- var C = K.A;
109
- return C === null ? null : C.getOwner();
108
+ var E = V.A;
109
+ return E === null ? null : E.getOwner();
110
110
  }
111
111
  function o() {
112
112
  return Error("react-stack-top-frame");
113
113
  }
114
- function i(C) {
115
- if (X.call(C, "key")) {
116
- var L = Object.getOwnPropertyDescriptor(C, "key").get;
114
+ function i(E) {
115
+ if (X.call(E, "key")) {
116
+ var L = Object.getOwnPropertyDescriptor(E, "key").get;
117
117
  if (L && L.isReactWarning) return !1;
118
118
  }
119
- return C.key !== void 0;
119
+ return E.key !== void 0;
120
120
  }
121
- function s(C, L) {
121
+ function s(E, L) {
122
122
  function R() {
123
- W || (W = !0, console.error(
123
+ U || (U = !0, console.error(
124
124
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
125
125
  L
126
126
  ));
127
127
  }
128
- R.isReactWarning = !0, Object.defineProperty(C, "key", {
128
+ R.isReactWarning = !0, Object.defineProperty(E, "key", {
129
129
  get: R,
130
130
  configurable: !0
131
131
  });
132
132
  }
133
133
  function l() {
134
- var C = e(this.type);
135
- return J[C] || (J[C] = !0, console.error(
134
+ var E = e(this.type);
135
+ return J[E] || (J[E] = !0, console.error(
136
136
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
137
- )), C = this.props.ref, C !== void 0 ? C : null;
137
+ )), E = this.props.ref, E !== void 0 ? E : null;
138
138
  }
139
- function u(C, L, R, O, Q, B) {
139
+ function u(E, L, R, O, Q, W) {
140
140
  var D = R.ref;
141
- return C = {
141
+ return E = {
142
142
  $$typeof: m,
143
- type: C,
143
+ type: E,
144
144
  key: L,
145
145
  props: R,
146
146
  _owner: O
147
- }, (D !== void 0 ? D : null) !== null ? Object.defineProperty(C, "ref", {
147
+ }, (D !== void 0 ? D : null) !== null ? Object.defineProperty(E, "ref", {
148
148
  enumerable: !1,
149
149
  get: l
150
- }) : Object.defineProperty(C, "ref", { enumerable: !1, value: null }), C._store = {}, Object.defineProperty(C._store, "validated", {
150
+ }) : Object.defineProperty(E, "ref", { enumerable: !1, value: null }), E._store = {}, Object.defineProperty(E._store, "validated", {
151
151
  configurable: !1,
152
152
  enumerable: !1,
153
153
  writable: !0,
154
154
  value: 0
155
- }), Object.defineProperty(C, "_debugInfo", {
155
+ }), Object.defineProperty(E, "_debugInfo", {
156
156
  configurable: !1,
157
157
  enumerable: !1,
158
158
  writable: !0,
159
159
  value: null
160
- }), Object.defineProperty(C, "_debugStack", {
160
+ }), Object.defineProperty(E, "_debugStack", {
161
161
  configurable: !1,
162
162
  enumerable: !1,
163
163
  writable: !0,
164
164
  value: Q
165
- }), Object.defineProperty(C, "_debugTask", {
165
+ }), Object.defineProperty(E, "_debugTask", {
166
166
  configurable: !1,
167
167
  enumerable: !1,
168
168
  writable: !0,
169
- value: B
170
- }), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
169
+ value: W
170
+ }), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
171
171
  }
172
- function c(C, L, R, O, Q, B) {
172
+ function c(E, L, R, O, Q, W) {
173
173
  var D = L.children;
174
174
  if (D !== void 0)
175
175
  if (O)
@@ -183,7 +183,7 @@ function pf() {
183
183
  );
184
184
  else f(D);
185
185
  if (X.call(L, "key")) {
186
- D = e(C);
186
+ D = e(E);
187
187
  var pe = Object.keys(L).filter(function(Xe) {
188
188
  return Xe !== "key";
189
189
  });
@@ -207,53 +207,53 @@ React keys must be passed directly to JSX without using spread:
207
207
  } else R = L;
208
208
  return D && s(
209
209
  R,
210
- typeof C == "function" ? C.displayName || C.name || "Unknown" : C
210
+ typeof E == "function" ? E.displayName || E.name || "Unknown" : E
211
211
  ), u(
212
- C,
212
+ E,
213
213
  D,
214
214
  R,
215
215
  a(),
216
216
  Q,
217
- B
217
+ W
218
218
  );
219
219
  }
220
- function f(C) {
221
- g(C) ? C._store && (C._store.validated = 1) : typeof C == "object" && C !== null && C.$$typeof === z && (C._payload.status === "fulfilled" ? g(C._payload.value) && C._payload.value._store && (C._payload.value._store.validated = 1) : C._store && (C._store.validated = 1));
220
+ function f(E) {
221
+ g(E) ? E._store && (E._store.validated = 1) : typeof E == "object" && E !== null && E.$$typeof === B && (E._payload.status === "fulfilled" ? g(E._payload.value) && E._payload.value._store && (E._payload.value._store.validated = 1) : E._store && (E._store.validated = 1));
222
222
  }
223
- function g(C) {
224
- return typeof C == "object" && C !== null && C.$$typeof === m;
223
+ function g(E) {
224
+ return typeof E == "object" && E !== null && E.$$typeof === m;
225
225
  }
226
- var d = $, m = /* @__PURE__ */ Symbol.for("react.transitional.element"), p = /* @__PURE__ */ Symbol.for("react.portal"), v = /* @__PURE__ */ Symbol.for("react.fragment"), b = /* @__PURE__ */ Symbol.for("react.strict_mode"), x = /* @__PURE__ */ Symbol.for("react.profiler"), y = /* @__PURE__ */ Symbol.for("react.consumer"), E = /* @__PURE__ */ Symbol.for("react.context"), w = /* @__PURE__ */ Symbol.for("react.forward_ref"), P = /* @__PURE__ */ Symbol.for("react.suspense"), N = /* @__PURE__ */ Symbol.for("react.suspense_list"), F = /* @__PURE__ */ Symbol.for("react.memo"), z = /* @__PURE__ */ Symbol.for("react.lazy"), S = /* @__PURE__ */ Symbol.for("react.activity"), I = /* @__PURE__ */ Symbol.for("react.client.reference"), K = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, X = Object.prototype.hasOwnProperty, M = Array.isArray, V = console.createTask ? console.createTask : function() {
226
+ var d = C, m = /* @__PURE__ */ Symbol.for("react.transitional.element"), p = /* @__PURE__ */ Symbol.for("react.portal"), v = /* @__PURE__ */ Symbol.for("react.fragment"), b = /* @__PURE__ */ Symbol.for("react.strict_mode"), x = /* @__PURE__ */ Symbol.for("react.profiler"), y = /* @__PURE__ */ Symbol.for("react.consumer"), S = /* @__PURE__ */ Symbol.for("react.context"), w = /* @__PURE__ */ Symbol.for("react.forward_ref"), P = /* @__PURE__ */ Symbol.for("react.suspense"), N = /* @__PURE__ */ Symbol.for("react.suspense_list"), I = /* @__PURE__ */ Symbol.for("react.memo"), B = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.activity"), $ = /* @__PURE__ */ Symbol.for("react.client.reference"), V = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, X = Object.prototype.hasOwnProperty, M = Array.isArray, z = console.createTask ? console.createTask : function() {
227
227
  return null;
228
228
  };
229
229
  d = {
230
- react_stack_bottom_frame: function(C) {
231
- return C();
230
+ react_stack_bottom_frame: function(E) {
231
+ return E();
232
232
  }
233
233
  };
234
- var W, J = {}, k = d.react_stack_bottom_frame.bind(
234
+ var U, J = {}, k = d.react_stack_bottom_frame.bind(
235
235
  d,
236
236
  o
237
- )(), U = V(n(o)), re = {};
238
- Tr.Fragment = v, Tr.jsx = function(C, L, R) {
239
- var O = 1e4 > K.recentlyCreatedOwnerStacks++;
237
+ )(), Y = z(n(o)), re = {};
238
+ Tr.Fragment = v, Tr.jsx = function(E, L, R) {
239
+ var O = 1e4 > V.recentlyCreatedOwnerStacks++;
240
240
  return c(
241
- C,
241
+ E,
242
242
  L,
243
243
  R,
244
244
  !1,
245
245
  O ? Error("react-stack-top-frame") : k,
246
- O ? V(n(C)) : U
246
+ O ? z(n(E)) : Y
247
247
  );
248
- }, Tr.jsxs = function(C, L, R) {
249
- var O = 1e4 > K.recentlyCreatedOwnerStacks++;
248
+ }, Tr.jsxs = function(E, L, R) {
249
+ var O = 1e4 > V.recentlyCreatedOwnerStacks++;
250
250
  return c(
251
- C,
251
+ E,
252
252
  L,
253
253
  R,
254
254
  !0,
255
255
  O ? Error("react-stack-top-frame") : k,
256
- O ? V(n(C)) : U
256
+ O ? z(n(E)) : Y
257
257
  );
258
258
  };
259
259
  })()), Tr;
@@ -263,7 +263,7 @@ function hf() {
263
263
  return Ji || (Ji = 1, process.env.NODE_ENV === "production" ? En.exports = mf() : En.exports = pf()), En.exports;
264
264
  }
265
265
  var h = hf();
266
- const vf = typeof document < "u" ? $.useLayoutEffect : () => {
266
+ const vf = typeof document < "u" ? C.useLayoutEffect : () => {
267
267
  }, Gt = (e) => {
268
268
  var t;
269
269
  return (t = e?.ownerDocument) !== null && t !== void 0 ? t : document;
@@ -413,7 +413,7 @@ function Zr(e, t, r = !0) {
413
413
  }
414
414
  Zr.isOpening = !1;
415
415
  function Yl() {
416
- let e = Y(/* @__PURE__ */ new Map()), t = ie((a, o, i, s) => {
416
+ let e = K(/* @__PURE__ */ new Map()), t = ie((a, o, i, s) => {
417
417
  let l = s?.once ? (...u) => {
418
418
  e.current.delete(i), i(...u);
419
419
  } : i;
@@ -458,7 +458,7 @@ function Af(e, t) {
458
458
  });
459
459
  }
460
460
  function ql(e) {
461
- let t = Y({
461
+ let t = K({
462
462
  isFocused: !1,
463
463
  observer: null
464
464
  });
@@ -610,7 +610,7 @@ function Vf(e) {
610
610
  };
611
611
  }
612
612
  function zf(e) {
613
- let { isDisabled: t, onBlurWithin: r, onFocusWithin: n, onFocusWithinChange: a } = e, o = Y({
613
+ let { isDisabled: t, onBlurWithin: r, onFocusWithin: n, onFocusWithinChange: a } = e, o = K({
614
614
  isFocusWithin: !1
615
615
  }), { addGlobalListener: i, removeAllGlobalListeners: s } = Yl(), l = ie((f) => {
616
616
  Pt(f.currentTarget, f.target) && o.current.isFocusWithin && !Pt(f.currentTarget, f.relatedTarget) && (o.current.isFocusWithin = !1, s(), r && r(f), a && a(!1));
@@ -674,7 +674,7 @@ function Hf() {
674
674
  };
675
675
  }
676
676
  function Bt(e) {
677
- let { onHoverStart: t, onHoverChange: r, onHoverEnd: n, isDisabled: a } = e, [o, i] = ae(!1), s = Y({
677
+ let { onHoverStart: t, onHoverChange: r, onHoverEnd: n, isDisabled: a } = e, [o, i] = ae(!1), s = K({
678
678
  isHovered: !1,
679
679
  ignoreEmulatedMouseEvents: !1,
680
680
  pointerType: "",
@@ -738,7 +738,7 @@ function Bt(e) {
738
738
  };
739
739
  }
740
740
  function Wt(e = {}) {
741
- let { autoFocus: t = !1, isTextInput: r, within: n } = e, a = Y({
741
+ let { autoFocus: t = !1, isTextInput: r, within: n } = e, a = K({
742
742
  isFocused: !1,
743
743
  isFocusVisible: t || po()
744
744
  }), [o, i] = ae(!1), [s, l] = ae(() => a.current.isFocused && a.current.isFocusVisible), u = ie(() => l(a.current.isFocused && a.current.isFocusVisible), []), c = ie((d) => {
@@ -862,14 +862,14 @@ let ge = (e, t) => {
862
862
  ot.isServer ? me(e, t) : Ko(e, t);
863
863
  };
864
864
  function lt(e) {
865
- let t = Y(e);
865
+ let t = K(e);
866
866
  return ge(() => {
867
867
  t.current = e;
868
868
  }, [e]), t;
869
869
  }
870
870
  let T = function(e) {
871
871
  let t = lt(e);
872
- return $.useCallback((...r) => t.current(...r), [t]);
872
+ return C.useCallback((...r) => t.current(...r), [t]);
873
873
  };
874
874
  function Uf(e) {
875
875
  let t = e.width / 2, r = e.height / 2;
@@ -879,7 +879,7 @@ function Yf(e, t) {
879
879
  return !(!e || !t || e.right < t.left || e.left > t.right || e.bottom < t.top || e.top > t.bottom);
880
880
  }
881
881
  function Sr({ disabled: e = !1 } = {}) {
882
- let t = Y(null), [r, n] = ae(!1), a = rt(), o = T(() => {
882
+ let t = K(null), [r, n] = ae(!1), a = rt(), o = T(() => {
883
883
  t.current = null, n(!1), a.dispose();
884
884
  }), i = T((s) => {
885
885
  if (a.dispose(), t.current === null) {
@@ -905,7 +905,7 @@ function St() {
905
905
  return fe(eu);
906
906
  }
907
907
  function Kf({ value: e, children: t }) {
908
- return $.createElement(eu.Provider, { value: e }, t);
908
+ return C.createElement(eu.Provider, { value: e }, t);
909
909
  }
910
910
  function vo(...e) {
911
911
  return Array.from(new Set(e.flatMap((t) => typeof t == "string" ? t.split(" ") : []))).filter(Boolean).join(" ");
@@ -967,7 +967,7 @@ function Rn(e, t = {}, r, n, a) {
967
967
  return cf(o, Object.assign({}, La(l, ["ref"]), !Br(o) && u, !Br(o) && f), c);
968
968
  }
969
969
  function Xf() {
970
- let e = Y([]), t = ie((r) => {
970
+ let e = K([]), t = ie((r) => {
971
971
  for (let n of e.current) n != null && (typeof n == "function" ? n(r) : n.current = r);
972
972
  }, []);
973
973
  return (...r) => {
@@ -1023,7 +1023,7 @@ function La(e, t = []) {
1023
1023
  return r;
1024
1024
  }
1025
1025
  function Qf(e) {
1026
- return $.version.split(".")[0] >= "19" ? e.props.ref : e.ref;
1026
+ return C.version.split(".")[0] >= "19" ? e.props.ref : e.ref;
1027
1027
  }
1028
1028
  function Br(e) {
1029
1029
  return e === Ie || e === /* @__PURE__ */ Symbol.for("react.fragment");
@@ -1039,7 +1039,7 @@ function tg(e, t) {
1039
1039
  }
1040
1040
  let rg = le(tg);
1041
1041
  function ti(e, t, r) {
1042
- let [n, a] = ae(r), o = e !== void 0, i = Y(o), s = Y(!1), l = Y(!1);
1042
+ let [n, a] = ae(r), o = e !== void 0, i = K(o), s = K(!1), l = K(!1);
1043
1043
  return o && !i.current && !s.current ? (s.current = !0, i.current = o, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !o && i.current && !l.current && (l.current = !0, i.current = o, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [o ? e : n, T((u) => (o || nr(() => a(u)), t?.(u)))];
1044
1044
  }
1045
1045
  function ri(e) {
@@ -1083,19 +1083,19 @@ function og(e, t) {
1083
1083
  let bt = le(og), ou = Ce(null);
1084
1084
  function ig(e) {
1085
1085
  let [t, r] = ae(null);
1086
- return $.createElement(ou.Provider, { value: { target: t } }, e.children, $.createElement(bt, { features: ut.Hidden, ref: r }));
1086
+ return C.createElement(ou.Provider, { value: { target: t } }, e.children, C.createElement(bt, { features: ut.Hidden, ref: r }));
1087
1087
  }
1088
1088
  function sg({ children: e }) {
1089
1089
  let t = fe(ou);
1090
- if (!t) return $.createElement($.Fragment, null, e);
1090
+ if (!t) return C.createElement(C.Fragment, null, e);
1091
1091
  let { target: r } = t;
1092
- return r ? Hl($.createElement($.Fragment, null, e), r) : null;
1092
+ return r ? Hl(C.createElement(C.Fragment, null, e), r) : null;
1093
1093
  }
1094
1094
  function ai({ data: e, form: t, disabled: r, onReset: n, overrides: a }) {
1095
1095
  let [o, i] = ae(null), s = rt();
1096
1096
  return me(() => {
1097
1097
  if (n && o) return s.addEventListener(o, "reset", n);
1098
- }, [o, t, n]), $.createElement(sg, null, $.createElement(lg, { setForm: i, formId: t }), ru(e).map(([l, u]) => $.createElement(bt, { features: ut.Hidden, ...$t({ key: l, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: t, disabled: r, name: l, value: u, ...a }) })));
1098
+ }, [o, t, n]), C.createElement(sg, null, C.createElement(lg, { setForm: i, formId: t }), ru(e).map(([l, u]) => C.createElement(bt, { features: ut.Hidden, ...$t({ key: l, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: t, disabled: r, name: l, value: u, ...a }) })));
1099
1099
  }
1100
1100
  function lg({ setForm: e, formId: t }) {
1101
1101
  return me(() => {
@@ -1103,7 +1103,7 @@ function lg({ setForm: e, formId: t }) {
1103
1103
  let r = document.getElementById(t);
1104
1104
  r && e(r);
1105
1105
  }
1106
- }, [e, t]), t ? null : $.createElement(bt, { features: ut.Hidden, as: "input", type: "hidden", hidden: !0, readOnly: !0, ref: (r) => {
1106
+ }, [e, t]), t ? null : C.createElement(bt, { features: ut.Hidden, as: "input", type: "hidden", hidden: !0, readOnly: !0, ref: (r) => {
1107
1107
  if (!r) return;
1108
1108
  let n = r.closest("form");
1109
1109
  n && e(n);
@@ -1114,7 +1114,7 @@ function Er() {
1114
1114
  return fe(iu);
1115
1115
  }
1116
1116
  function ug({ id: e, children: t }) {
1117
- return $.createElement(iu.Provider, { value: e }, t);
1117
+ return C.createElement(iu.Provider, { value: e }, t);
1118
1118
  }
1119
1119
  function su(e) {
1120
1120
  return typeof e != "object" || e === null ? !1 : "nodeType" in e;
@@ -1169,7 +1169,7 @@ function du(e, t = !0) {
1169
1169
  return Object.assign(e, { [cu]: t });
1170
1170
  }
1171
1171
  function be(...e) {
1172
- let t = Y(e);
1172
+ let t = K(e);
1173
1173
  me(() => {
1174
1174
  t.current = e;
1175
1175
  }, [e]);
@@ -1199,7 +1199,7 @@ function la() {
1199
1199
  let s = i.slice(), l = s.indexOf(o);
1200
1200
  return l !== -1 && s.splice(l, 1), s;
1201
1201
  }))), a = ye(() => ({ register: n, slot: r.slot, name: r.name, props: r.props, value: r.value }), [n, r.slot, r.name, r.props, r.value]);
1202
- return $.createElement(sa.Provider, { value: a }, r.children);
1202
+ return C.createElement(sa.Provider, { value: a }, r.children);
1203
1203
  }, [t])];
1204
1204
  }
1205
1205
  let pg = "p";
@@ -1233,7 +1233,7 @@ function cn({ inherit: e = !1 } = {}) {
1233
1233
  let c = u.slice(), f = c.indexOf(l);
1234
1234
  return f !== -1 && c.splice(f, 1), c;
1235
1235
  }))), s = ye(() => ({ register: i, slot: o.slot, name: o.name, props: o.props, value: o.value }), [i, o.slot, o.name, o.props, o.value]);
1236
- return $.createElement(ua.Provider, { value: s }, o.children);
1236
+ return C.createElement(ua.Provider, { value: s }, o.children);
1237
1237
  }, [n])];
1238
1238
  }
1239
1239
  let bg = "label";
@@ -1258,24 +1258,24 @@ function yg(e, t) {
1258
1258
  }
1259
1259
  let xg = le(yg), $r = Object.assign(xg, {}), wg = "span";
1260
1260
  function kg(e, t) {
1261
- let r = xe(), n = Er(), a = St(), { id: o = n || `headlessui-checkbox-${r}`, disabled: i = a || !1, autoFocus: s = !1, checked: l, defaultChecked: u, onChange: c, name: f, value: g, form: d, indeterminate: m = !1, tabIndex: p = 0, ...v } = e, b = ri(u), [x, y] = ti(l, c, b ?? !1), E = Cr(), w = ln(), P = rt(), [N, F] = ae(!1), z = T(() => {
1262
- F(!0), y?.(!x), P.nextFrame(() => {
1263
- F(!1);
1261
+ let r = xe(), n = Er(), a = St(), { id: o = n || `headlessui-checkbox-${r}`, disabled: i = a || !1, autoFocus: s = !1, checked: l, defaultChecked: u, onChange: c, name: f, value: g, form: d, indeterminate: m = !1, tabIndex: p = 0, ...v } = e, b = ri(u), [x, y] = ti(l, c, b ?? !1), S = Cr(), w = ln(), P = rt(), [N, I] = ae(!1), B = T(() => {
1262
+ I(!0), y?.(!x), P.nextFrame(() => {
1263
+ I(!1);
1264
1264
  });
1265
- }), S = T((R) => {
1265
+ }), F = T((R) => {
1266
1266
  if (vr(R.currentTarget)) return R.preventDefault();
1267
- R.preventDefault(), z();
1268
- }), I = T((R) => {
1269
- R.key === te.Space ? (R.preventDefault(), z()) : R.key === te.Enter && ni(R.currentTarget);
1270
- }), K = T((R) => R.preventDefault()), { isFocusVisible: X, focusProps: M } = Wt({ autoFocus: s }), { isHovered: V, hoverProps: W } = Bt({ isDisabled: i }), { pressed: J, pressProps: k } = Sr({ disabled: i }), U = qe({ ref: t, id: o, role: "checkbox", "aria-checked": m ? "mixed" : x ? "true" : "false", "aria-labelledby": E, "aria-describedby": w, "aria-disabled": i ? !0 : void 0, indeterminate: m ? "true" : void 0, tabIndex: i ? void 0 : p, onKeyUp: i ? void 0 : I, onKeyPress: i ? void 0 : K, onClick: i ? void 0 : S }, M, W, k), re = ve({ checked: x, disabled: i, hover: V, focus: X, active: J, indeterminate: m, changing: N, autofocus: s }), C = ie(() => {
1267
+ R.preventDefault(), B();
1268
+ }), $ = T((R) => {
1269
+ R.key === te.Space ? (R.preventDefault(), B()) : R.key === te.Enter && ni(R.currentTarget);
1270
+ }), V = T((R) => R.preventDefault()), { isFocusVisible: X, focusProps: M } = Wt({ autoFocus: s }), { isHovered: z, hoverProps: U } = Bt({ isDisabled: i }), { pressed: J, pressProps: k } = Sr({ disabled: i }), Y = qe({ ref: t, id: o, role: "checkbox", "aria-checked": m ? "mixed" : x ? "true" : "false", "aria-labelledby": S, "aria-describedby": w, "aria-disabled": i ? !0 : void 0, indeterminate: m ? "true" : void 0, tabIndex: i ? void 0 : p, onKeyUp: i ? void 0 : $, onKeyPress: i ? void 0 : V, onClick: i ? void 0 : F }, M, U, k), re = ve({ checked: x, disabled: i, hover: z, focus: X, active: J, indeterminate: m, changing: N, autofocus: s }), E = ie(() => {
1271
1271
  if (b !== void 0) return y?.(b);
1272
1272
  }, [y, b]), L = ue();
1273
- return $.createElement($.Fragment, null, f != null && $.createElement(ai, { disabled: i, data: { [f]: g || "on" }, overrides: { type: "checkbox", checked: x }, form: d, onReset: C }), L({ ourProps: U, theirProps: v, slot: re, defaultTag: wg, name: "Checkbox" }));
1273
+ return C.createElement(C.Fragment, null, f != null && C.createElement(ai, { disabled: i, data: { [f]: g || "on" }, overrides: { type: "checkbox", checked: x }, form: d, onReset: E }), L({ ourProps: Y, theirProps: v, slot: re, defaultTag: wg, name: "Checkbox" }));
1274
1274
  }
1275
1275
  let Sg = le(kg), Eg = Ce(() => {
1276
1276
  });
1277
1277
  function ii({ value: e, children: t }) {
1278
- return $.createElement(Eg.Provider, { value: e }, t);
1278
+ return C.createElement(Eg.Provider, { value: e }, t);
1279
1279
  }
1280
1280
  function Cg(e, t) {
1281
1281
  return e !== null && t !== null && typeof e == "object" && typeof t == "object" && "id" in e && "id" in t ? e.id === t.id : e === t;
@@ -1311,7 +1311,7 @@ function si(e, t, r = !1) {
1311
1311
  }
1312
1312
  var gu = ((e) => (e[e.Left = 0] = "Left", e[e.Right = 2] = "Right", e))(gu || {});
1313
1313
  function mu(e) {
1314
- let t = Y(null), r = T((a) => {
1314
+ let t = K(null), r = T((a) => {
1315
1315
  t.current = a.pointerType, !vr(a.currentTarget) && a.pointerType === "mouse" && a.button === gu.Left && (a.preventDefault(), e(a));
1316
1316
  }), n = T((a) => {
1317
1317
  t.current !== "mouse" && (vr(a.currentTarget) || e(a));
@@ -1423,7 +1423,7 @@ var ns;
1423
1423
  function _g() {
1424
1424
  if (ns) return za;
1425
1425
  ns = 1;
1426
- var e = $;
1426
+ var e = C;
1427
1427
  function t(l, u) {
1428
1428
  return l === u && (l !== 0 || 1 / l === 1 / u) || l !== l && u !== u;
1429
1429
  }
@@ -1449,13 +1449,13 @@ function _g() {
1449
1449
  var N = f(w);
1450
1450
  return g !== void 0 && g(P, N) ? (x = w, P) : (x = w, y = N);
1451
1451
  }
1452
- var b = !1, x, y, E = c === void 0 ? null : c;
1452
+ var b = !1, x, y, S = c === void 0 ? null : c;
1453
1453
  return [
1454
1454
  function() {
1455
1455
  return v(u());
1456
1456
  },
1457
- E === null ? void 0 : function() {
1458
- return v(E());
1457
+ S === null ? void 0 : function() {
1458
+ return v(S());
1459
1459
  }
1460
1460
  ];
1461
1461
  },
@@ -1478,7 +1478,7 @@ function Tg() {
1478
1478
  return l === u && (l !== 0 || 1 / l === 1 / u) || l !== l && u !== u;
1479
1479
  }
1480
1480
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1481
- var t = $, r = typeof Object.is == "function" ? Object.is : e, n = t.useSyncExternalStore, a = t.useRef, o = t.useEffect, i = t.useMemo, s = t.useDebugValue;
1481
+ var t = C, r = typeof Object.is == "function" ? Object.is : e, n = t.useSyncExternalStore, a = t.useRef, o = t.useEffect, i = t.useMemo, s = t.useDebugValue;
1482
1482
  Ha.useSyncExternalStoreWithSelector = function(l, u, c, f, g) {
1483
1483
  var d = a(null);
1484
1484
  if (d.current === null) {
@@ -1501,13 +1501,13 @@ function Tg() {
1501
1501
  var N = f(w);
1502
1502
  return g !== void 0 && g(P, N) ? (x = w, P) : (x = w, y = N);
1503
1503
  }
1504
- var b = !1, x, y, E = c === void 0 ? null : c;
1504
+ var b = !1, x, y, S = c === void 0 ? null : c;
1505
1505
  return [
1506
1506
  function() {
1507
1507
  return v(u());
1508
1508
  },
1509
- E === null ? void 0 : function() {
1510
- return v(E());
1509
+ S === null ? void 0 : function() {
1510
+ return v(S());
1511
1511
  }
1512
1512
  ];
1513
1513
  },
@@ -1714,7 +1714,7 @@ function fa(e, t, r) {
1714
1714
  })(t);
1715
1715
  for (let f of c) if (f !== null && (f.contains(u) || s.composed && s.composedPath().includes(f))) return;
1716
1716
  return !mn(u, gn.Loose) && u.tabIndex !== -1 && s.preventDefault(), n.current(s, u);
1717
- }, [n, t]), o = Y(null);
1717
+ }, [n, t]), o = K(null);
1718
1718
  gr(e, "pointerdown", (s) => {
1719
1719
  var l, u;
1720
1720
  ls() || (o.current = ((u = (l = s.composedPath) == null ? void 0 : l.call(s)) == null ? void 0 : u[0]) || s.target);
@@ -1723,7 +1723,7 @@ function fa(e, t, r) {
1723
1723
  let l = o.current;
1724
1724
  return o.current = null, a(s, () => l);
1725
1725
  }, !0);
1726
- let i = Y({ x: 0, y: 0 });
1726
+ let i = K({ x: 0, y: 0 });
1727
1727
  gr(e, "touchstart", (s) => {
1728
1728
  i.current.x = s.touches[0].clientX, i.current.y = s.touches[0].clientY;
1729
1729
  }, !0), gr(e, "touchend", (s) => {
@@ -1740,7 +1740,7 @@ function Ug(...e) {
1740
1740
  var Yg = ((e) => (e[e.Ignore = 0] = "Ignore", e[e.Select = 1] = "Select", e[e.Close = 2] = "Close", e))(Yg || {});
1741
1741
  const It = { Ignore: { kind: 0 }, Select: (e) => ({ kind: 1, target: e }), Close: { kind: 2 } }, Kg = 200, cs = 5;
1742
1742
  function Su(e, { trigger: t, action: r, close: n, select: a }) {
1743
- let o = Y(null), i = Y(null), s = Y(null);
1743
+ let o = K(null), i = K(null), s = K(null);
1744
1744
  gr(e && t !== null, "pointerdown", (l) => {
1745
1745
  su(l?.target) && t != null && t.contains(l.target) && (i.current = l.x, s.current = l.y, o.current = l.timeStamp);
1746
1746
  }), gr(e && t !== null, "pointerup", (l) => {
@@ -1903,7 +1903,7 @@ function fs(e) {
1903
1903
  return [e.screenX, e.screenY];
1904
1904
  }
1905
1905
  function Eu() {
1906
- let e = Y([-1, -1]);
1906
+ let e = K([-1, -1]);
1907
1907
  return { wasMoved(t) {
1908
1908
  let r = fs(t);
1909
1909
  return e.current[0] === r[0] && e.current[1] === r[1] ? !1 : (e.current = r, !0);
@@ -1927,7 +1927,7 @@ function pn(e) {
1927
1927
  return t;
1928
1928
  }
1929
1929
  function hn(e, t, r, n) {
1930
- let [a, o] = ae(r), { hasFlag: i, addFlag: s, removeFlag: l } = tm(e && a ? 3 : 0), u = Y(!1), c = Y(!1), f = rt();
1930
+ let [a, o] = ae(r), { hasFlag: i, addFlag: s, removeFlag: l } = tm(e && a ? 3 : 0), u = K(!1), c = K(!1), f = rt();
1931
1931
  return ge(() => {
1932
1932
  var g;
1933
1933
  if (e) {
@@ -1980,7 +1980,7 @@ function im(e) {
1980
1980
  return ((r = (t = e.getAnimations) == null ? void 0 : t.call(e)) != null ? r : []).some((n) => n instanceof CSSTransition && n.playState !== "finished");
1981
1981
  }
1982
1982
  function sm(e, { container: t, accept: r, walk: n }) {
1983
- let a = Y(r), o = Y(n);
1983
+ let a = K(r), o = K(n);
1984
1984
  me(() => {
1985
1985
  a.current = r, o.current = n;
1986
1986
  }, [r, n]), ge(() => {
@@ -1992,7 +1992,7 @@ function sm(e, { container: t, accept: r, walk: n }) {
1992
1992
  }, [t, e, a, o]);
1993
1993
  }
1994
1994
  function fi(e, t) {
1995
- let r = Y([]), n = T(e);
1995
+ let r = K([]), n = T(e);
1996
1996
  me(() => {
1997
1997
  let a = [...r.current];
1998
1998
  for (let [o, i] of t.entries()) if (r.current[o] !== i) {
@@ -2305,7 +2305,7 @@ async function Iu(e, t) {
2305
2305
  y: a,
2306
2306
  width: i.floating.width,
2307
2307
  height: i.floating.height
2308
- } : i.reference, y = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)), E = await (o.isElement == null ? void 0 : o.isElement(y)) ? await (o.getScale == null ? void 0 : o.getScale(y)) || {
2308
+ } : i.reference, y = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)), S = await (o.isElement == null ? void 0 : o.isElement(y)) ? await (o.getScale == null ? void 0 : o.getScale(y)) || {
2309
2309
  x: 1,
2310
2310
  y: 1
2311
2311
  } : {
@@ -2318,10 +2318,10 @@ async function Iu(e, t) {
2318
2318
  strategy: l
2319
2319
  }) : x);
2320
2320
  return {
2321
- top: (b.top - w.top + m.top) / E.y,
2322
- bottom: (w.bottom - b.bottom + m.bottom) / E.y,
2323
- left: (b.left - w.left + m.left) / E.x,
2324
- right: (w.right - b.right + m.right) / E.x
2321
+ top: (b.top - w.top + m.top) / S.y,
2322
+ bottom: (w.bottom - b.bottom + m.bottom) / S.y,
2323
+ left: (b.left - w.left + m.left) / S.x,
2324
+ right: (w.right - b.right + m.right) / S.x
2325
2325
  };
2326
2326
  }
2327
2327
  const Fm = async (e, t, r) => {
@@ -2346,7 +2346,7 @@ const Fm = async (e, t, r) => {
2346
2346
  fn: x
2347
2347
  } = s[v], {
2348
2348
  x: y,
2349
- y: E,
2349
+ y: S,
2350
2350
  data: w,
2351
2351
  reset: P
2352
2352
  } = await x({
@@ -2366,7 +2366,7 @@ const Fm = async (e, t, r) => {
2366
2366
  floating: t
2367
2367
  }
2368
2368
  });
2369
- c = y ?? c, f = E ?? f, d = {
2369
+ c = y ?? c, f = S ?? f, d = {
2370
2370
  ...d,
2371
2371
  [b]: {
2372
2372
  ...d[b],
@@ -2412,57 +2412,57 @@ const Fm = async (e, t, r) => {
2412
2412
  } = Pr(e, t);
2413
2413
  if ((r = o.arrow) != null && r.alignmentOffset)
2414
2414
  return {};
2415
- const b = Lt(a), x = ht(s), y = Lt(s) === s, E = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), w = g || (y || !p ? [Kn(s)] : km(s)), P = m !== "none";
2416
- !g && P && w.push(...$m(s, p, m, E));
2417
- const N = [s, ...w], F = await l.detectOverflow(t, v), z = [];
2418
- let S = ((n = o.flip) == null ? void 0 : n.overflows) || [];
2419
- if (c && z.push(F[b]), f) {
2420
- const M = wm(a, i, E);
2421
- z.push(F[M[0]], F[M[1]]);
2422
- }
2423
- if (S = [...S, {
2415
+ const b = Lt(a), x = ht(s), y = Lt(s) === s, S = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), w = g || (y || !p ? [Kn(s)] : km(s)), P = m !== "none";
2416
+ !g && P && w.push(...$m(s, p, m, S));
2417
+ const N = [s, ...w], I = await l.detectOverflow(t, v), B = [];
2418
+ let F = ((n = o.flip) == null ? void 0 : n.overflows) || [];
2419
+ if (c && B.push(I[b]), f) {
2420
+ const M = wm(a, i, S);
2421
+ B.push(I[M[0]], I[M[1]]);
2422
+ }
2423
+ if (F = [...F, {
2424
2424
  placement: a,
2425
- overflows: z
2426
- }], !z.every((M) => M <= 0)) {
2427
- var I, K;
2428
- const M = (((I = o.flip) == null ? void 0 : I.index) || 0) + 1, V = N[M];
2429
- if (V && (!(f === "alignment" ? x !== ht(V) : !1) || // We leave the current main axis only if every placement on that axis
2425
+ overflows: B
2426
+ }], !B.every((M) => M <= 0)) {
2427
+ var $, V;
2428
+ const M = ((($ = o.flip) == null ? void 0 : $.index) || 0) + 1, z = N[M];
2429
+ if (z && (!(f === "alignment" ? x !== ht(z) : !1) || // We leave the current main axis only if every placement on that axis
2430
2430
  // overflows the main axis.
2431
- S.every((k) => ht(k.placement) === x ? k.overflows[0] > 0 : !0)))
2431
+ F.every((k) => ht(k.placement) === x ? k.overflows[0] > 0 : !0)))
2432
2432
  return {
2433
2433
  data: {
2434
2434
  index: M,
2435
- overflows: S
2435
+ overflows: F
2436
2436
  },
2437
2437
  reset: {
2438
- placement: V
2438
+ placement: z
2439
2439
  }
2440
2440
  };
2441
- let W = (K = S.filter((J) => J.overflows[0] <= 0).sort((J, k) => J.overflows[1] - k.overflows[1])[0]) == null ? void 0 : K.placement;
2442
- if (!W)
2441
+ let U = (V = F.filter((J) => J.overflows[0] <= 0).sort((J, k) => J.overflows[1] - k.overflows[1])[0]) == null ? void 0 : V.placement;
2442
+ if (!U)
2443
2443
  switch (d) {
2444
2444
  case "bestFit": {
2445
2445
  var X;
2446
- const J = (X = S.filter((k) => {
2446
+ const J = (X = F.filter((k) => {
2447
2447
  if (P) {
2448
- const U = ht(k.placement);
2449
- return U === x || // Create a bias to the `y` side axis due to horizontal
2448
+ const Y = ht(k.placement);
2449
+ return Y === x || // Create a bias to the `y` side axis due to horizontal
2450
2450
  // reading directions favoring greater width.
2451
- U === "y";
2451
+ Y === "y";
2452
2452
  }
2453
2453
  return !0;
2454
- }).map((k) => [k.placement, k.overflows.filter((U) => U > 0).reduce((U, re) => U + re, 0)]).sort((k, U) => k[1] - U[1])[0]) == null ? void 0 : X[0];
2455
- J && (W = J);
2454
+ }).map((k) => [k.placement, k.overflows.filter((Y) => Y > 0).reduce((Y, re) => Y + re, 0)]).sort((k, Y) => k[1] - Y[1])[0]) == null ? void 0 : X[0];
2455
+ J && (U = J);
2456
2456
  break;
2457
2457
  }
2458
2458
  case "initialPlacement":
2459
- W = s;
2459
+ U = s;
2460
2460
  break;
2461
2461
  }
2462
- if (a !== W)
2462
+ if (a !== U)
2463
2463
  return {
2464
2464
  reset: {
2465
- placement: W
2465
+ placement: U
2466
2466
  }
2467
2467
  };
2468
2468
  }
@@ -2551,12 +2551,12 @@ const Om = function(e) {
2551
2551
  }, f = await o.detectOverflow(t, u), g = ht(Lt(a)), d = Ru(g);
2552
2552
  let m = c[d], p = c[g];
2553
2553
  if (i) {
2554
- const b = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", y = m + f[b], E = m - f[x];
2555
- m = hs(y, m, E);
2554
+ const b = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", y = m + f[b], S = m - f[x];
2555
+ m = hs(y, m, S);
2556
2556
  }
2557
2557
  if (s) {
2558
- const b = g === "y" ? "top" : "left", x = g === "y" ? "bottom" : "right", y = p + f[b], E = p - f[x];
2559
- p = hs(y, p, E);
2558
+ const b = g === "y" ? "top" : "left", x = g === "y" ? "bottom" : "right", y = p + f[b], S = p - f[x];
2559
+ p = hs(y, p, S);
2560
2560
  }
2561
2561
  const v = l.fn({
2562
2562
  ...t,
@@ -2597,19 +2597,19 @@ const Om = function(e) {
2597
2597
  } = o.floating;
2598
2598
  let v, b;
2599
2599
  f === "top" || f === "bottom" ? (v = f, b = g === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (b = f, v = g === "end" ? "top" : "bottom");
2600
- const x = p - c.top - c.bottom, y = m - c.left - c.right, E = or(p - c[v], x), w = or(m - c[b], y), P = !t.middlewareData.shift;
2601
- let N = E, F = w;
2602
- if ((r = t.middlewareData.shift) != null && r.enabled.x && (F = y), (n = t.middlewareData.shift) != null && n.enabled.y && (N = x), P && !g) {
2603
- const S = Te(c.left, 0), I = Te(c.right, 0), K = Te(c.top, 0), X = Te(c.bottom, 0);
2604
- d ? F = m - 2 * (S !== 0 || I !== 0 ? S + I : Te(c.left, c.right)) : N = p - 2 * (K !== 0 || X !== 0 ? K + X : Te(c.top, c.bottom));
2600
+ const x = p - c.top - c.bottom, y = m - c.left - c.right, S = or(p - c[v], x), w = or(m - c[b], y), P = !t.middlewareData.shift;
2601
+ let N = S, I = w;
2602
+ if ((r = t.middlewareData.shift) != null && r.enabled.x && (I = y), (n = t.middlewareData.shift) != null && n.enabled.y && (N = x), P && !g) {
2603
+ const F = Te(c.left, 0), $ = Te(c.right, 0), V = Te(c.top, 0), X = Te(c.bottom, 0);
2604
+ d ? I = m - 2 * (F !== 0 || $ !== 0 ? F + $ : Te(c.left, c.right)) : N = p - 2 * (V !== 0 || X !== 0 ? V + X : Te(c.top, c.bottom));
2605
2605
  }
2606
2606
  await l({
2607
2607
  ...t,
2608
- availableWidth: F,
2608
+ availableWidth: I,
2609
2609
  availableHeight: N
2610
2610
  });
2611
- const z = await i.getDimensions(s.floating);
2612
- return m !== z.width || p !== z.height ? {
2611
+ const B = await i.getDimensions(s.floating);
2612
+ return m !== B.width || p !== B.height ? {
2613
2613
  reset: {
2614
2614
  rects: !0
2615
2615
  }
@@ -2667,8 +2667,8 @@ function ir(e, t, r, n) {
2667
2667
  const g = Ge(o), d = n && je(n) ? Ge(n) : n;
2668
2668
  let m = g, p = xo(m);
2669
2669
  for (; p && n && d !== m; ) {
2670
- const v = pr(p), b = p.getBoundingClientRect(), x = et(p), y = b.left + (p.clientLeft + parseFloat(x.paddingLeft)) * v.x, E = b.top + (p.clientTop + parseFloat(x.paddingTop)) * v.y;
2671
- l *= v.x, u *= v.y, c *= v.x, f *= v.y, l += y, u += E, m = Ge(p), p = xo(m);
2670
+ const v = pr(p), b = p.getBoundingClientRect(), x = et(p), y = b.left + (p.clientLeft + parseFloat(x.paddingLeft)) * v.x, S = b.top + (p.clientTop + parseFloat(x.paddingTop)) * v.y;
2671
+ l *= v.x, u *= v.y, c *= v.x, f *= v.y, l += y, u += S, m = Ge(p), p = xo(m);
2672
2672
  }
2673
2673
  }
2674
2674
  return qn({
@@ -2929,17 +2929,17 @@ function Jm(e, t) {
2929
2929
  rootMargin: -m + "px " + -p + "px " + -v + "px " + -b + "px",
2930
2930
  threshold: Te(0, or(1, l)) || 1
2931
2931
  };
2932
- let E = !0;
2932
+ let S = !0;
2933
2933
  function w(P) {
2934
2934
  const N = P[0].intersectionRatio;
2935
2935
  if (N !== l) {
2936
- if (!E)
2936
+ if (!S)
2937
2937
  return i();
2938
2938
  N ? i(!1, N) : n = setTimeout(() => {
2939
2939
  i(!1, 1e-7);
2940
2940
  }, 1e3);
2941
2941
  }
2942
- N === 1 && !Mu(u, e.getBoundingClientRect()) && i(), E = !1;
2942
+ N === 1 && !Mu(u, e.getBoundingClientRect()) && i(), S = !1;
2943
2943
  }
2944
2944
  try {
2945
2945
  r = new IntersectionObserver(w, {
@@ -3075,7 +3075,7 @@ function ip(e) {
3075
3075
  k !== P.current && (P.current = k, p(k));
3076
3076
  }, []), y = j.useCallback((k) => {
3077
3077
  k !== N.current && (N.current = k, b(k));
3078
- }, []), E = o || m, w = i || v, P = j.useRef(null), N = j.useRef(null), F = j.useRef(c), z = l != null, S = Wa(l), I = Wa(a), K = Wa(u), X = j.useCallback(() => {
3078
+ }, []), S = o || m, w = i || v, P = j.useRef(null), N = j.useRef(null), I = j.useRef(c), B = l != null, F = Wa(l), $ = Wa(a), V = Wa(u), X = j.useCallback(() => {
3079
3079
  if (!P.current || !N.current)
3080
3080
  return;
3081
3081
  const k = {
@@ -3083,22 +3083,22 @@ function ip(e) {
3083
3083
  strategy: r,
3084
3084
  middleware: g
3085
3085
  };
3086
- I.current && (k.platform = I.current), np(P.current, N.current, k).then((U) => {
3086
+ $.current && (k.platform = $.current), np(P.current, N.current, k).then((Y) => {
3087
3087
  const re = {
3088
- ...U,
3088
+ ...Y,
3089
3089
  // The floating element's position may be recomputed while it's closed
3090
3090
  // but still mounted (such as when transitioning out). To ensure
3091
3091
  // `isPositioned` will be `false` initially on the next open, avoid
3092
3092
  // setting it to `true` when `open === false` (must be specified).
3093
- isPositioned: K.current !== !1
3093
+ isPositioned: V.current !== !1
3094
3094
  };
3095
- M.current && !Xn(F.current, re) && (F.current = re, Bn.flushSync(() => {
3095
+ M.current && !Xn(I.current, re) && (I.current = re, Bn.flushSync(() => {
3096
3096
  f(re);
3097
3097
  }));
3098
3098
  });
3099
- }, [g, t, r, I, K]);
3099
+ }, [g, t, r, $, V]);
3100
3100
  Ln(() => {
3101
- u === !1 && F.current.isPositioned && (F.current.isPositioned = !1, f((k) => ({
3101
+ u === !1 && I.current.isPositioned && (I.current.isPositioned = !1, f((k) => ({
3102
3102
  ...k,
3103
3103
  isPositioned: !1
3104
3104
  })));
@@ -3107,48 +3107,48 @@ function ip(e) {
3107
3107
  Ln(() => (M.current = !0, () => {
3108
3108
  M.current = !1;
3109
3109
  }), []), Ln(() => {
3110
- if (E && (P.current = E), w && (N.current = w), E && w) {
3111
- if (S.current)
3112
- return S.current(E, w, X);
3110
+ if (S && (P.current = S), w && (N.current = w), S && w) {
3111
+ if (F.current)
3112
+ return F.current(S, w, X);
3113
3113
  X();
3114
3114
  }
3115
- }, [E, w, X, S, z]);
3116
- const V = j.useMemo(() => ({
3115
+ }, [S, w, X, F, B]);
3116
+ const z = j.useMemo(() => ({
3117
3117
  reference: P,
3118
3118
  floating: N,
3119
3119
  setReference: x,
3120
3120
  setFloating: y
3121
- }), [x, y]), W = j.useMemo(() => ({
3122
- reference: E,
3121
+ }), [x, y]), U = j.useMemo(() => ({
3122
+ reference: S,
3123
3123
  floating: w
3124
- }), [E, w]), J = j.useMemo(() => {
3124
+ }), [S, w]), J = j.useMemo(() => {
3125
3125
  const k = {
3126
3126
  position: r,
3127
3127
  left: 0,
3128
3128
  top: 0
3129
3129
  };
3130
- if (!W.floating)
3130
+ if (!U.floating)
3131
3131
  return k;
3132
- const U = Ss(W.floating, c.x), re = Ss(W.floating, c.y);
3132
+ const Y = Ss(U.floating, c.x), re = Ss(U.floating, c.y);
3133
3133
  return s ? {
3134
3134
  ...k,
3135
- transform: "translate(" + U + "px, " + re + "px)",
3136
- ...ju(W.floating) >= 1.5 && {
3135
+ transform: "translate(" + Y + "px, " + re + "px)",
3136
+ ...ju(U.floating) >= 1.5 && {
3137
3137
  willChange: "transform"
3138
3138
  }
3139
3139
  } : {
3140
3140
  position: r,
3141
- left: U,
3141
+ left: Y,
3142
3142
  top: re
3143
3143
  };
3144
- }, [r, s, W.floating, c.x, c.y]);
3144
+ }, [r, s, U.floating, c.x, c.y]);
3145
3145
  return j.useMemo(() => ({
3146
3146
  ...c,
3147
3147
  update: X,
3148
- refs: V,
3149
- elements: W,
3148
+ refs: z,
3149
+ elements: U,
3150
3150
  floatingStyles: J
3151
- }), [c, X, V, W, J]);
3151
+ }), [c, X, z, U, J]);
3152
3152
  }
3153
3153
  const Lu = (e, t) => ({
3154
3154
  ...Zm(e),
@@ -3292,11 +3292,11 @@ function Cp(e) {
3292
3292
  }
3293
3293
  }
3294
3294
  }), m = j.useCallback((y) => {
3295
- const E = je(y) ? {
3295
+ const S = je(y) ? {
3296
3296
  getBoundingClientRect: () => y.getBoundingClientRect(),
3297
3297
  contextElement: y
3298
3298
  } : y;
3299
- l(E), d.refs.setReference(E);
3299
+ l(S), d.refs.setReference(S);
3300
3300
  }, [d.refs]), p = j.useCallback((y) => {
3301
3301
  (je(y) || y === null) && (f.current = y, i(y)), (je(d.refs.reference.current) || d.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
3302
3302
  // `null` to support `positionReference` + an unstable `reference`
@@ -3319,7 +3319,7 @@ function Cp(e) {
3319
3319
  }), [d, v, b, t, n]);
3320
3320
  return ko(() => {
3321
3321
  n.dataRef.current.floatingContext = x;
3322
- const y = g?.nodesRef.current.find((E) => E.id === t);
3322
+ const y = g?.nodesRef.current.find((S) => S.id === t);
3323
3323
  y && (y.context = x);
3324
3324
  }), j.useMemo(() => ({
3325
3325
  ...d,
@@ -3424,13 +3424,13 @@ const Rp = (e) => ({
3424
3424
  const y = {
3425
3425
  ...t,
3426
3426
  ...await Lu(-d.offsetTop - g.clientTop - f.reference.height / 2 - d.offsetHeight / 2 - o).fn(t)
3427
- }, E = await Ba(Ps(y, m.scrollHeight + p + g.clientTop), c), w = await Ba(y, {
3427
+ }, S = await Ba(Ps(y, m.scrollHeight + p + g.clientTop), c), w = await Ba(y, {
3428
3428
  ...c,
3429
3429
  elementContext: "reference"
3430
- }), P = Te(0, E.top), N = y.y + P, S = (m.scrollHeight > m.clientHeight ? (I) => I : tn)(Te(0, m.scrollHeight + (v && x || b ? p * 2 : 0) - P - Te(0, E.bottom)));
3431
- if (m.style.maxHeight = S + "px", m.scrollTop = P, a) {
3432
- const I = m.offsetHeight < d.offsetHeight * or(s, r.current.length) - 1 || w.top >= -l || w.bottom >= -l;
3433
- Bn.flushSync(() => a(I));
3430
+ }), P = Te(0, S.top), N = y.y + P, F = (m.scrollHeight > m.clientHeight ? ($) => $ : tn)(Te(0, m.scrollHeight + (v && x || b ? p * 2 : 0) - P - Te(0, S.bottom)));
3431
+ if (m.style.maxHeight = F + "px", m.scrollTop = P, a) {
3432
+ const $ = m.offsetHeight < d.offsetHeight * or(s, r.current.length) - 1 || w.top >= -l || w.bottom >= -l;
3433
+ Bn.flushSync(() => a($));
3434
3434
  }
3435
3435
  return n && (n.current = await Ba(Ps({
3436
3436
  ...y,
@@ -3455,9 +3455,9 @@ function Pp(e, t) {
3455
3455
  function d(p) {
3456
3456
  if (p.ctrlKey || !m || o.current == null)
3457
3457
  return;
3458
- const v = p.deltaY, b = o.current.top >= -0.5, x = o.current.bottom >= -0.5, y = m.scrollHeight - m.clientHeight, E = v < 0 ? -1 : 1, w = v < 0 ? "max" : "min";
3458
+ const v = p.deltaY, b = o.current.top >= -0.5, x = o.current.bottom >= -0.5, y = m.scrollHeight - m.clientHeight, S = v < 0 ? -1 : 1, w = v < 0 ? "max" : "min";
3459
3459
  m.scrollHeight <= m.clientHeight || (!b && v > 0 || !x && v < 0 ? (p.preventDefault(), Bn.flushSync(() => {
3460
- l((P) => P + Math[w](v, y * E));
3460
+ l((P) => P + Math[w](v, y * S));
3461
3461
  })) : /firefox/i.test(vm()) && (m.scrollTop += v));
3462
3462
  }
3463
3463
  const m = i?.current || n.floating;
@@ -3530,38 +3530,38 @@ function xi(e = null) {
3530
3530
  }
3531
3531
  let Fs = 4;
3532
3532
  function wi({ children: e, enabled: t = !0 }) {
3533
- let [r, n] = ae(null), [a, o] = ae(0), i = Y(null), [s, l] = ae(null);
3533
+ let [r, n] = ae(null), [a, o] = ae(0), i = K(null), [s, l] = ae(null);
3534
3534
  Fp(s);
3535
3535
  let u = t && r !== null && s !== null, { to: c = "bottom", gap: f = 0, offset: g = 0, padding: d = 0, inner: m } = Ip(r, s), [p, v = "center"] = c.split(" ");
3536
3536
  ge(() => {
3537
3537
  u && o(0);
3538
3538
  }, [u]);
3539
- let { refs: b, floatingStyles: x, context: y } = Cp({ open: u, placement: p === "selection" ? v === "center" ? "bottom" : `bottom-${v}` : v === "center" ? `${p}` : `${p}-${v}`, strategy: "absolute", transform: !1, middleware: [Lu({ mainAxis: p === "selection" ? 0 : f, crossAxis: g }), sp({ padding: d }), p !== "selection" && lp({ padding: d }), p === "selection" && m ? Rp({ ...m, padding: d, overflowRef: i, offset: a, minItemsVisible: Fs, referenceOverflowThreshold: d, onFallbackChange(I) {
3540
- var K, X;
3541
- if (!I) return;
3539
+ let { refs: b, floatingStyles: x, context: y } = Cp({ open: u, placement: p === "selection" ? v === "center" ? "bottom" : `bottom-${v}` : v === "center" ? `${p}` : `${p}-${v}`, strategy: "absolute", transform: !1, middleware: [Lu({ mainAxis: p === "selection" ? 0 : f, crossAxis: g }), sp({ padding: d }), p !== "selection" && lp({ padding: d }), p === "selection" && m ? Rp({ ...m, padding: d, overflowRef: i, offset: a, minItemsVisible: Fs, referenceOverflowThreshold: d, onFallbackChange($) {
3540
+ var V, X;
3541
+ if (!$) return;
3542
3542
  let M = y.elements.floating;
3543
3543
  if (!M) return;
3544
- let V = parseFloat(getComputedStyle(M).scrollPaddingBottom) || 0, W = Math.min(Fs, M.childElementCount), J = 0, k = 0;
3545
- for (let U of (X = (K = y.elements.floating) == null ? void 0 : K.childNodes) != null ? X : []) if (Ne(U)) {
3546
- let re = U.offsetTop, C = re + U.clientHeight + V, L = M.scrollTop, R = L + M.clientHeight;
3547
- if (re >= L && C <= R) W--;
3544
+ let z = parseFloat(getComputedStyle(M).scrollPaddingBottom) || 0, U = Math.min(Fs, M.childElementCount), J = 0, k = 0;
3545
+ for (let Y of (X = (V = y.elements.floating) == null ? void 0 : V.childNodes) != null ? X : []) if (Ne(Y)) {
3546
+ let re = Y.offsetTop, E = re + Y.clientHeight + z, L = M.scrollTop, R = L + M.clientHeight;
3547
+ if (re >= L && E <= R) U--;
3548
3548
  else {
3549
- k = Math.max(0, Math.min(C, R) - Math.max(re, L)), J = U.clientHeight;
3549
+ k = Math.max(0, Math.min(E, R) - Math.max(re, L)), J = Y.clientHeight;
3550
3550
  break;
3551
3551
  }
3552
3552
  }
3553
- W >= 1 && o((U) => {
3554
- let re = J * W - k + V;
3555
- return U >= re ? U : re;
3553
+ U >= 1 && o((Y) => {
3554
+ let re = J * U - k + z;
3555
+ return Y >= re ? Y : re;
3556
3556
  });
3557
- } }) : null, up({ padding: d, apply({ availableWidth: I, availableHeight: K, elements: X }) {
3558
- Object.assign(X.floating.style, { overflow: "auto", maxWidth: `${I}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${K}px)` });
3559
- } })].filter(Boolean), whileElementsMounted: Qm }), [E = p, w = v] = y.placement.split("-");
3560
- p === "selection" && (E = "selection");
3561
- let P = ye(() => ({ anchor: [E, w].filter(Boolean).join(" ") }), [E, w]), N = Pp(y, { overflowRef: i, onChange: o }), { getReferenceProps: F, getFloatingProps: z } = $p([N]), S = T((I) => {
3562
- l(I), b.setFloating(I);
3557
+ } }) : null, up({ padding: d, apply({ availableWidth: $, availableHeight: V, elements: X }) {
3558
+ Object.assign(X.floating.style, { overflow: "auto", maxWidth: `${$}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${V}px)` });
3559
+ } })].filter(Boolean), whileElementsMounted: Qm }), [S = p, w = v] = y.placement.split("-");
3560
+ p === "selection" && (S = "selection");
3561
+ let P = ye(() => ({ anchor: [S, w].filter(Boolean).join(" ") }), [S, w]), N = Pp(y, { overflowRef: i, onChange: o }), { getReferenceProps: I, getFloatingProps: B } = $p([N]), F = T(($) => {
3562
+ l($), b.setFloating($);
3563
3563
  });
3564
- return j.createElement(hi.Provider, { value: n }, j.createElement(Fr.Provider, { value: { setFloating: S, setReference: b.setReference, styles: x, getReferenceProps: F, getFloatingProps: z, slot: P } }, e));
3564
+ return j.createElement(hi.Provider, { value: n }, j.createElement(Fr.Provider, { value: { setFloating: F, setReference: b.setReference, styles: x, getReferenceProps: I, getFloatingProps: B, slot: P } }, e));
3565
3565
  }
3566
3566
  function Fp(e) {
3567
3567
  ge(() => {
@@ -3636,9 +3636,9 @@ function Is(e, t) {
3636
3636
  }
3637
3637
  function Np({ children: e, freeze: t }, r) {
3638
3638
  let n = Gu(t, e);
3639
- return Xo(n) ? zl(n, { ref: r }) : $.createElement($.Fragment, null, n);
3639
+ return Xo(n) ? zl(n, { ref: r }) : C.createElement(C.Fragment, null, n);
3640
3640
  }
3641
- $.forwardRef(Np);
3641
+ C.forwardRef(Np);
3642
3642
  function Gu(e, t) {
3643
3643
  let [r, n] = ae(t);
3644
3644
  return !e && r !== t && n(t), e ? r : t;
@@ -3650,10 +3650,10 @@ function Yt() {
3650
3650
  return fe(ya);
3651
3651
  }
3652
3652
  function xa({ value: e, children: t }) {
3653
- return $.createElement(ya.Provider, { value: e }, t);
3653
+ return C.createElement(ya.Provider, { value: e }, t);
3654
3654
  }
3655
3655
  function Bu({ children: e }) {
3656
- return $.createElement(ya.Provider, { value: null }, e);
3656
+ return C.createElement(ya.Provider, { value: null }, e);
3657
3657
  }
3658
3658
  function Ap(e) {
3659
3659
  function t() {
@@ -3707,7 +3707,7 @@ function Nt(e, t) {
3707
3707
  }
3708
3708
  }
3709
3709
  function yn(e) {
3710
- let t = T(e), r = Y(!1);
3710
+ let t = T(e), r = K(!1);
3711
3711
  me(() => (r.current = !1, () => {
3712
3712
  r.current = !0, ia(() => {
3713
3713
  r.current && t();
@@ -3719,7 +3719,7 @@ function _p() {
3719
3719
  return fe(Wu);
3720
3720
  }
3721
3721
  function Ns(e) {
3722
- return $.createElement(Wu.Provider, { value: e.force }, e.children);
3722
+ return C.createElement(Wu.Provider, { value: e.force }, e.children);
3723
3723
  }
3724
3724
  function Tp(e) {
3725
3725
  let t = _p(), r = fe(Yu), [n, a] = ae(() => {
@@ -3739,33 +3739,33 @@ function Tp(e) {
3739
3739
  }, [r, a, t]), n;
3740
3740
  }
3741
3741
  let Uu = Ie, Mp = le(function(e, t) {
3742
- let { ownerDocument: r = null, ...n } = e, a = Y(null), o = be(du((g) => {
3742
+ let { ownerDocument: r = null, ...n } = e, a = K(null), o = be(du((g) => {
3743
3743
  a.current = g;
3744
3744
  }), t), i = yt(a.current), s = r ?? i, l = Tp(s), u = fe(So), c = rt(), f = ue();
3745
3745
  return yn(() => {
3746
3746
  var g;
3747
3747
  l && l.childNodes.length <= 0 && ((g = l.parentElement) == null || g.removeChild(l));
3748
- }), l ? Hl($.createElement("div", { "data-headlessui-portal": "", ref: (g) => {
3748
+ }), l ? Hl(C.createElement("div", { "data-headlessui-portal": "", ref: (g) => {
3749
3749
  c.dispose(), u && g && c.add(u.register(g));
3750
3750
  } }, f({ ourProps: { ref: o }, theirProps: n, slot: {}, defaultTag: Uu, name: "Portal" })), l) : null;
3751
3751
  });
3752
3752
  function jp(e, t) {
3753
3753
  let r = be(t), { enabled: n = !0, ownerDocument: a, ...o } = e, i = ue();
3754
- return n ? $.createElement(Mp, { ...o, ownerDocument: a, ref: r }) : i({ ourProps: { ref: r }, theirProps: o, slot: {}, defaultTag: Uu, name: "Portal" });
3754
+ return n ? C.createElement(Mp, { ...o, ownerDocument: a, ref: r }) : i({ ourProps: { ref: r }, theirProps: o, slot: {}, defaultTag: Uu, name: "Portal" });
3755
3755
  }
3756
3756
  let Lp = Ie, Yu = Ce(null);
3757
3757
  function Dp(e, t) {
3758
3758
  let { target: r, ...n } = e, a = { ref: be(t) }, o = ue();
3759
- return $.createElement(Yu.Provider, { value: r }, o({ ourProps: a, theirProps: n, defaultTag: Lp, name: "Popover.Group" }));
3759
+ return C.createElement(Yu.Provider, { value: r }, o({ ourProps: a, theirProps: n, defaultTag: Lp, name: "Popover.Group" }));
3760
3760
  }
3761
3761
  let So = Ce(null);
3762
3762
  function Ku() {
3763
- let e = fe(So), t = Y([]), r = T((o) => (t.current.push(o), e && e.register(o), () => n(o))), n = T((o) => {
3763
+ let e = fe(So), t = K([]), r = T((o) => (t.current.push(o), e && e.register(o), () => n(o))), n = T((o) => {
3764
3764
  let i = t.current.indexOf(o);
3765
3765
  i !== -1 && t.current.splice(i, 1), e && e.unregister(o);
3766
3766
  }), a = ye(() => ({ register: r, unregister: n, portals: t }), [r, n, t]);
3767
3767
  return [t, ye(() => function({ children: o }) {
3768
- return $.createElement(So.Provider, { value: a }, o);
3768
+ return C.createElement(So.Provider, { value: a }, o);
3769
3769
  }, [a])];
3770
3770
  }
3771
3771
  let Vp = le(jp), qu = le(Dp), wa = Object.assign(Vp, { Group: qu });
@@ -3815,7 +3815,7 @@ function Ju({ defaultContainers: e = [], portals: t, mainTreeNode: r } = {}) {
3815
3815
  let Qu = Ce(null);
3816
3816
  function Jn({ children: e, node: t }) {
3817
3817
  let [r, n] = ae(null), a = Si(t ?? r);
3818
- return $.createElement(Qu.Provider, { value: a }, e, a === null && $.createElement(bt, { features: ut.Hidden, ref: (o) => {
3818
+ return C.createElement(Qu.Provider, { value: a }, e, a === null && C.createElement(bt, { features: ut.Hidden, ref: (o) => {
3819
3819
  var i, s;
3820
3820
  if (o) {
3821
3821
  for (let l of (s = (i = Ut(o)) == null ? void 0 : i.querySelectorAll("html > *, body > *")) != null ? s : []) if (l !== document.body && l !== document.head && vt(l) && l != null && l.contains(o)) {
@@ -3841,14 +3841,14 @@ function ka() {
3841
3841
  }, [t]), j.useEffect(() => ot.handoff(), []), e ? !1 : t;
3842
3842
  }
3843
3843
  function Ei() {
3844
- let e = Y(!1);
3844
+ let e = K(!1);
3845
3845
  return ge(() => (e.current = !0, () => {
3846
3846
  e.current = !1;
3847
3847
  }), []), e;
3848
3848
  }
3849
3849
  var He = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(He || {});
3850
3850
  function Ci() {
3851
- let e = Y(0);
3851
+ let e = K(0);
3852
3852
  return ku(!0, "keydown", (t) => {
3853
3853
  t.key === "Tab" && (e.current = t.shiftKey ? 1 : 0);
3854
3854
  }, !0), e;
@@ -3863,7 +3863,7 @@ function Zu(e) {
3863
3863
  let Bp = "div";
3864
3864
  var Qt = ((e) => (e[e.None = 0] = "None", e[e.InitialFocus = 1] = "InitialFocus", e[e.TabLock = 2] = "TabLock", e[e.FocusLock = 4] = "FocusLock", e[e.RestoreFocus = 8] = "RestoreFocus", e[e.AutoFocus = 16] = "AutoFocus", e))(Qt || {});
3865
3865
  function Wp(e, t) {
3866
- let r = Y(null), n = be(r, t), { initialFocus: a, initialFocusFallback: o, containers: i, features: s = 15, ...l } = e;
3866
+ let r = K(null), n = be(r, t), { initialFocus: a, initialFocusFallback: o, containers: i, features: s = 15, ...l } = e;
3867
3867
  ka() || (s = 0);
3868
3868
  let u = yt(r.current);
3869
3869
  qp(s, { ownerDocument: u });
@@ -3872,14 +3872,14 @@ function Wp(e, t) {
3872
3872
  let f = Ci(), g = T((x) => {
3873
3873
  if (!Ne(r.current)) return;
3874
3874
  let y = r.current;
3875
- ((E) => E())(() => {
3875
+ ((S) => S())(() => {
3876
3876
  $e(f.current, { [He.Forwards]: () => {
3877
3877
  ze(y, Re.First, { skipElements: [x.relatedTarget, o] });
3878
3878
  }, [He.Backwards]: () => {
3879
3879
  ze(y, Re.Last, { skipElements: [x.relatedTarget, o] });
3880
3880
  } });
3881
3881
  });
3882
- }), d = dn(!!(s & 2), "focus-trap#tab-lock"), m = rt(), p = Y(!1), v = { ref: n, onKeyDown(x) {
3882
+ }), d = dn(!!(s & 2), "focus-trap#tab-lock"), m = rt(), p = K(!1), v = { ref: n, onKeyDown(x) {
3883
3883
  x.key == "Tab" && (p.current = !0, m.requestAnimationFrame(() => {
3884
3884
  p.current = !1;
3885
3885
  }));
@@ -3887,14 +3887,14 @@ function Wp(e, t) {
3887
3887
  if (!(s & 4)) return;
3888
3888
  let y = Zu(i);
3889
3889
  Ne(r.current) && y.add(r.current);
3890
- let E = x.relatedTarget;
3891
- Je(E) && E.dataset.headlessuiFocusGuard !== "true" && (ec(y, E) || (p.current ? ze(r.current, $e(f.current, { [He.Forwards]: () => Re.Next, [He.Backwards]: () => Re.Previous }) | Re.WrapAround, { relativeTo: x.target }) : Je(x.target) && it(x.target)));
3890
+ let S = x.relatedTarget;
3891
+ Je(S) && S.dataset.headlessuiFocusGuard !== "true" && (ec(y, S) || (p.current ? ze(r.current, $e(f.current, { [He.Forwards]: () => Re.Next, [He.Backwards]: () => Re.Previous }) | Re.WrapAround, { relativeTo: x.target }) : Je(x.target) && it(x.target)));
3892
3892
  } }, b = ue();
3893
- return $.createElement($.Fragment, null, d && $.createElement(bt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: g, features: ut.Focusable }), b({ ourProps: v, theirProps: l, defaultTag: Bp, name: "FocusTrap" }), d && $.createElement(bt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: g, features: ut.Focusable }));
3893
+ return C.createElement(C.Fragment, null, d && C.createElement(bt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: g, features: ut.Focusable }), b({ ourProps: v, theirProps: l, defaultTag: Bp, name: "FocusTrap" }), d && C.createElement(bt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: g, features: ut.Focusable }));
3894
3894
  }
3895
3895
  let Up = le(Wp), Yp = Object.assign(Up, { features: Qt });
3896
3896
  function Kp(e = !0) {
3897
- let t = Y(Rt.slice());
3897
+ let t = K(Rt.slice());
3898
3898
  return fi(([r], [n]) => {
3899
3899
  n === !0 && r === !1 && ia(() => {
3900
3900
  t.current.splice(0);
@@ -3913,7 +3913,7 @@ function qp(e, { ownerDocument: t }) {
3913
3913
  });
3914
3914
  }
3915
3915
  function Xp(e, { ownerDocument: t, container: r, initialFocus: n, initialFocusFallback: a }) {
3916
- let o = Y(null), i = dn(!!(e & 1), "focus-trap#initial-focus"), s = Ei();
3916
+ let o = K(null), i = dn(!!(e & 1), "focus-trap#initial-focus"), s = Ei();
3917
3917
  return fi(() => {
3918
3918
  if (e === 0) return;
3919
3919
  if (!i) {
@@ -3963,7 +3963,7 @@ function ec(e, t) {
3963
3963
  }
3964
3964
  function tc(e) {
3965
3965
  var t;
3966
- return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || !Br((t = e.as) != null ? t : nc) || $.Children.count(e.children) === 1;
3966
+ return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || !Br((t = e.as) != null ? t : nc) || C.Children.count(e.children) === 1;
3967
3967
  }
3968
3968
  let Sa = Ce(null);
3969
3969
  Sa.displayName = "TransitionContext";
@@ -3984,7 +3984,7 @@ function Ca(e) {
3984
3984
  return "children" in e ? Ca(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
3985
3985
  }
3986
3986
  function rc(e, t) {
3987
- let r = lt(e), n = Y([]), a = Ei(), o = rt(), i = T((d, m = Ft.Hidden) => {
3987
+ let r = lt(e), n = K([]), a = Ei(), o = rt(), i = T((d, m = Ft.Hidden) => {
3988
3988
  let p = n.current.findIndex(({ el: v }) => v === d);
3989
3989
  p !== -1 && ($e(m, { [Ft.Unmount]() {
3990
3990
  n.current.splice(p, 1);
@@ -3997,7 +3997,7 @@ function rc(e, t) {
3997
3997
  }), s = T((d) => {
3998
3998
  let m = n.current.find(({ el: p }) => p === d);
3999
3999
  return m ? m.state !== "visible" && (m.state = "visible") : n.current.push({ el: d, state: "visible" }), () => i(d, Ft.Unmount);
4000
- }), l = Y([]), u = Y(Promise.resolve()), c = Y({ enter: [], leave: [] }), f = T((d, m, p) => {
4000
+ }), l = K([]), u = K(Promise.resolve()), c = K({ enter: [], leave: [] }), f = T((d, m, p) => {
4001
4001
  l.current.splice(0), t && (t.chains.current[m] = t.chains.current[m].filter(([v]) => v !== d)), t?.chains.current[m].push([d, new Promise((v) => {
4002
4002
  l.current.push(v);
4003
4003
  })]), t?.chains.current[m].push([d, new Promise((v) => {
@@ -4014,50 +4014,50 @@ function rc(e, t) {
4014
4014
  let nc = Ie, ac = Ke.RenderStrategy;
4015
4015
  function t0(e, t) {
4016
4016
  var r, n;
4017
- let { transition: a = !0, beforeEnter: o, afterEnter: i, beforeLeave: s, afterLeave: l, enter: u, enterFrom: c, enterTo: f, entered: g, leave: d, leaveFrom: m, leaveTo: p, ...v } = e, [b, x] = ae(null), y = Y(null), E = tc(e), w = be(...E ? [y, t, x] : t === null ? [] : [t]), P = (r = v.unmount) == null || r ? Ft.Unmount : Ft.Hidden, { show: N, appear: F, initial: z } = Zp(), [S, I] = ae(N ? "visible" : "hidden"), K = e0(), { register: X, unregister: M } = K;
4017
+ let { transition: a = !0, beforeEnter: o, afterEnter: i, beforeLeave: s, afterLeave: l, enter: u, enterFrom: c, enterTo: f, entered: g, leave: d, leaveFrom: m, leaveTo: p, ...v } = e, [b, x] = ae(null), y = K(null), S = tc(e), w = be(...S ? [y, t, x] : t === null ? [] : [t]), P = (r = v.unmount) == null || r ? Ft.Unmount : Ft.Hidden, { show: N, appear: I, initial: B } = Zp(), [F, $] = ae(N ? "visible" : "hidden"), V = e0(), { register: X, unregister: M } = V;
4018
4018
  ge(() => X(y), [X, y]), ge(() => {
4019
4019
  if (P === Ft.Hidden && y.current) {
4020
- if (N && S !== "visible") {
4021
- I("visible");
4020
+ if (N && F !== "visible") {
4021
+ $("visible");
4022
4022
  return;
4023
4023
  }
4024
- return $e(S, { hidden: () => M(y), visible: () => X(y) });
4024
+ return $e(F, { hidden: () => M(y), visible: () => X(y) });
4025
4025
  }
4026
- }, [S, y, X, M, N, P]);
4027
- let V = ka();
4026
+ }, [F, y, X, M, N, P]);
4027
+ let z = ka();
4028
4028
  ge(() => {
4029
- if (E && V && S === "visible" && y.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
4030
- }, [y, S, V, E]);
4031
- let W = z && !F, J = F && N && z, k = Y(!1), U = rc(() => {
4032
- k.current || (I("hidden"), M(y));
4033
- }, K), re = T((D) => {
4029
+ if (S && z && F === "visible" && y.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
4030
+ }, [y, F, z, S]);
4031
+ let U = B && !I, J = I && N && B, k = K(!1), Y = rc(() => {
4032
+ k.current || ($("hidden"), M(y));
4033
+ }, V), re = T((D) => {
4034
4034
  k.current = !0;
4035
4035
  let pe = D ? "enter" : "leave";
4036
- U.onStart(y, pe, (Se) => {
4036
+ Y.onStart(y, pe, (Se) => {
4037
4037
  Se === "enter" ? o?.() : Se === "leave" && s?.();
4038
4038
  });
4039
- }), C = T((D) => {
4039
+ }), E = T((D) => {
4040
4040
  let pe = D ? "enter" : "leave";
4041
- k.current = !1, U.onStop(y, pe, (Se) => {
4041
+ k.current = !1, Y.onStop(y, pe, (Se) => {
4042
4042
  Se === "enter" ? i?.() : Se === "leave" && l?.();
4043
- }), pe === "leave" && !Ca(U) && (I("hidden"), M(y));
4043
+ }), pe === "leave" && !Ca(Y) && ($("hidden"), M(y));
4044
4044
  });
4045
4045
  me(() => {
4046
- E && a || (re(N), C(N));
4047
- }, [N, E, a]);
4048
- let L = !(!a || !E || !V || W), [, R] = hn(L, b, N, { start: re, end: C }), O = $t({ ref: w, className: ((n = vo(v.className, J && u, J && c, R.enter && u, R.enter && R.closed && c, R.enter && !R.closed && f, R.leave && d, R.leave && !R.closed && m, R.leave && R.closed && p, !R.transition && N && g)) == null ? void 0 : n.trim()) || void 0, ...pn(R) }), Q = 0;
4049
- S === "visible" && (Q |= we.Open), S === "hidden" && (Q |= we.Closed), N && S === "hidden" && (Q |= we.Opening), !N && S === "visible" && (Q |= we.Closing);
4050
- let B = ue();
4051
- return $.createElement(Ea.Provider, { value: U }, $.createElement(xa, { value: Q }, B({ ourProps: O, theirProps: v, defaultTag: nc, features: ac, visible: S === "visible", name: "Transition.Child" })));
4046
+ S && a || (re(N), E(N));
4047
+ }, [N, S, a]);
4048
+ let L = !(!a || !S || !z || U), [, R] = hn(L, b, N, { start: re, end: E }), O = $t({ ref: w, className: ((n = vo(v.className, J && u, J && c, R.enter && u, R.enter && R.closed && c, R.enter && !R.closed && f, R.leave && d, R.leave && !R.closed && m, R.leave && R.closed && p, !R.transition && N && g)) == null ? void 0 : n.trim()) || void 0, ...pn(R) }), Q = 0;
4049
+ F === "visible" && (Q |= we.Open), F === "hidden" && (Q |= we.Closed), N && F === "hidden" && (Q |= we.Opening), !N && F === "visible" && (Q |= we.Closing);
4050
+ let W = ue();
4051
+ return C.createElement(Ea.Provider, { value: Y }, C.createElement(xa, { value: Q }, W({ ourProps: O, theirProps: v, defaultTag: nc, features: ac, visible: F === "visible", name: "Transition.Child" })));
4052
4052
  }
4053
4053
  function r0(e, t) {
4054
- let { show: r, appear: n = !1, unmount: a = !0, ...o } = e, i = Y(null), s = tc(e), l = be(...s ? [i, t] : t === null ? [] : [t]);
4054
+ let { show: r, appear: n = !1, unmount: a = !0, ...o } = e, i = K(null), s = tc(e), l = be(...s ? [i, t] : t === null ? [] : [t]);
4055
4055
  ka();
4056
4056
  let u = Yt();
4057
4057
  if (r === void 0 && u !== null && (r = (u & we.Open) === we.Open), r === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
4058
4058
  let [c, f] = ae(r ? "visible" : "hidden"), g = rc(() => {
4059
4059
  r || f("hidden");
4060
- }), [d, m] = ae(!0), p = Y([r]);
4060
+ }), [d, m] = ae(!0), p = K([r]);
4061
4061
  ge(() => {
4062
4062
  d !== !1 && p.current[p.current.length - 1] !== r && (p.current.push(r), m(!1));
4063
4063
  }, [p, r]);
@@ -4071,12 +4071,12 @@ function r0(e, t) {
4071
4071
  }), y = T(() => {
4072
4072
  var w;
4073
4073
  d && m(!1), (w = e.beforeLeave) == null || w.call(e);
4074
- }), E = ue();
4075
- return $.createElement(Ea.Provider, { value: g }, $.createElement(Sa.Provider, { value: v }, E({ ourProps: { ...b, as: Ie, children: $.createElement(oc, { ref: l, ...b, ...o, beforeEnter: x, beforeLeave: y }) }, theirProps: {}, defaultTag: Ie, features: ac, visible: c === "visible", name: "Transition" })));
4074
+ }), S = ue();
4075
+ return C.createElement(Ea.Provider, { value: g }, C.createElement(Sa.Provider, { value: v }, S({ ourProps: { ...b, as: Ie, children: C.createElement(oc, { ref: l, ...b, ...o, beforeEnter: x, beforeLeave: y }) }, theirProps: {}, defaultTag: Ie, features: ac, visible: c === "visible", name: "Transition" })));
4076
4076
  }
4077
4077
  function n0(e, t) {
4078
4078
  let r = fe(Sa) !== null, n = Yt() !== null;
4079
- return $.createElement($.Fragment, null, !r && n ? $.createElement(Eo, { ref: t, ...e }) : $.createElement(oc, { ref: t, ...e }));
4079
+ return C.createElement(C.Fragment, null, !r && n ? C.createElement(Eo, { ref: t, ...e }) : C.createElement(oc, { ref: t, ...e }));
4080
4080
  }
4081
4081
  let Eo = le(r0), oc = le(t0), nn = le(n0), xr = Object.assign(Eo, { Child: nn, Root: Eo });
4082
4082
  var a0 = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(a0 || {}), o0 = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(o0 || {});
@@ -4096,37 +4096,37 @@ function s0(e, t) {
4096
4096
  return $e(t.type, i0, e, t);
4097
4097
  }
4098
4098
  let As = le(function(e, t) {
4099
- let r = xe(), { id: n = `headlessui-dialog-${r}`, open: a, onClose: o, initialFocus: i, role: s = "dialog", autoFocus: l = !0, __demoMode: u = !1, unmount: c = !1, ...f } = e, g = Y(!1);
4099
+ let r = xe(), { id: n = `headlessui-dialog-${r}`, open: a, onClose: o, initialFocus: i, role: s = "dialog", autoFocus: l = !0, __demoMode: u = !1, unmount: c = !1, ...f } = e, g = K(!1);
4100
4100
  s = (function() {
4101
4101
  return s === "dialog" || s === "alertdialog" ? s : (g.current || (g.current = !0, console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
4102
4102
  })();
4103
4103
  let d = Yt();
4104
4104
  a === void 0 && d !== null && (a = (d & we.Open) === we.Open);
4105
- let m = Y(null), p = be(m, t), v = yt(m.current), b = a ? 0 : 1, [x, y] = ff(s0, { titleId: null, descriptionId: null, panelRef: gf() }), E = T(() => o(!1)), w = T((R) => y({ type: 0, id: R })), P = ka() ? b === 0 : !1, [N, F] = Ku(), z = { get current() {
4105
+ let m = K(null), p = be(m, t), v = yt(m.current), b = a ? 0 : 1, [x, y] = ff(s0, { titleId: null, descriptionId: null, panelRef: gf() }), S = T(() => o(!1)), w = T((R) => y({ type: 0, id: R })), P = ka() ? b === 0 : !1, [N, I] = Ku(), B = { get current() {
4106
4106
  var R;
4107
4107
  return (R = x.panelRef.current) != null ? R : m.current;
4108
- } }, S = Si(), { resolveContainers: I } = Ju({ mainTreeNode: S, portals: N, defaultContainers: [z] }), K = d !== null ? (d & we.Closing) === we.Closing : !1;
4109
- ui(u || K ? !1 : P, { allowed: T(() => {
4108
+ } }, F = Si(), { resolveContainers: $ } = Ju({ mainTreeNode: F, portals: N, defaultContainers: [B] }), V = d !== null ? (d & we.Closing) === we.Closing : !1;
4109
+ ui(u || V ? !1 : P, { allowed: T(() => {
4110
4110
  var R, O;
4111
4111
  return [(O = (R = m.current) == null ? void 0 : R.closest("[data-headlessui-portal]")) != null ? O : null];
4112
4112
  }), disallowed: T(() => {
4113
4113
  var R;
4114
- return [(R = S?.closest("body > *:not(#headlessui-portal-root)")) != null ? R : null];
4114
+ return [(R = F?.closest("body > *:not(#headlessui-portal-root)")) != null ? R : null];
4115
4115
  }) });
4116
4116
  let X = ur.get(null);
4117
4117
  ge(() => {
4118
4118
  if (P) return X.actions.push(n), () => X.actions.pop(n);
4119
4119
  }, [X, n, P]);
4120
4120
  let M = de(X, ie((R) => X.selectors.isTop(R, n), [X, n]));
4121
- fa(M, I, (R) => {
4122
- R.preventDefault(), E();
4121
+ fa(M, $, (R) => {
4122
+ R.preventDefault(), S();
4123
4123
  }), zp(M, v?.defaultView, (R) => {
4124
- R.preventDefault(), R.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), E();
4125
- }), ma(u || K ? !1 : P, v, I), da(P, m, E);
4126
- let [V, W] = la(), J = ye(() => [{ dialogState: b, close: E, setTitleId: w, unmount: c }, x], [b, E, w, c, x]), k = ve({ open: b === 0 }), U = { ref: p, id: n, role: s, tabIndex: -1, "aria-modal": u ? void 0 : b === 0 ? !0 : void 0, "aria-labelledby": x.titleId, "aria-describedby": V, unmount: c }, re = !Hp(), C = Qt.None;
4127
- P && !u && (C |= Qt.RestoreFocus, C |= Qt.TabLock, l && (C |= Qt.AutoFocus), re && (C |= Qt.InitialFocus));
4124
+ R.preventDefault(), R.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), S();
4125
+ }), ma(u || V ? !1 : P, v, $), da(P, m, S);
4126
+ let [z, U] = la(), J = ye(() => [{ dialogState: b, close: S, setTitleId: w, unmount: c }, x], [b, S, w, c, x]), k = ve({ open: b === 0 }), Y = { ref: p, id: n, role: s, tabIndex: -1, "aria-modal": u ? void 0 : b === 0 ? !0 : void 0, "aria-labelledby": x.titleId, "aria-describedby": z, unmount: c }, re = !Hp(), E = Qt.None;
4127
+ P && !u && (E |= Qt.RestoreFocus, E |= Qt.TabLock, l && (E |= Qt.AutoFocus), re && (E |= Qt.InitialFocus));
4128
4128
  let L = ue();
4129
- return $.createElement(Bu, null, $.createElement(Ns, { force: !0 }, $.createElement(wa, null, $.createElement($i.Provider, { value: J }, $.createElement(qu, { target: m }, $.createElement(Ns, { force: !1 }, $.createElement(W, { slot: k }, $.createElement(F, null, $.createElement(Yp, { initialFocus: i, initialFocusFallback: m, containers: I, features: C }, $.createElement(ii, { value: E }, L({ ourProps: U, theirProps: f, slot: k, defaultTag: l0, features: u0, visible: b === 0, name: "Dialog" })))))))))));
4129
+ return C.createElement(Bu, null, C.createElement(Ns, { force: !0 }, C.createElement(wa, null, C.createElement($i.Provider, { value: J }, C.createElement(qu, { target: m }, C.createElement(Ns, { force: !1 }, C.createElement(U, { slot: k }, C.createElement(I, null, C.createElement(Yp, { initialFocus: i, initialFocusFallback: m, containers: $, features: E }, C.createElement(ii, { value: S }, L({ ourProps: Y, theirProps: f, slot: k, defaultTag: l0, features: u0, visible: b === 0, name: "Dialog" })))))))))));
4130
4130
  }), l0 = "div", u0 = Ke.RenderStrategy | Ke.Static;
4131
4131
  function c0(e, t) {
4132
4132
  let { transition: r = !1, open: n, ...a } = e, o = Yt(), i = e.hasOwnProperty("open") || o !== null, s = e.hasOwnProperty("onClose");
@@ -4135,19 +4135,19 @@ function c0(e, t) {
4135
4135
  if (!s) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
4136
4136
  if (!o && typeof e.open != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);
4137
4137
  if (typeof e.onClose != "function") throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);
4138
- return (n !== void 0 || r) && !a.static ? $.createElement(Jn, null, $.createElement(xr, { show: n, transition: r, unmount: a.unmount }, $.createElement(As, { ref: t, ...a }))) : $.createElement(Jn, null, $.createElement(As, { ref: t, open: n, ...a }));
4138
+ return (n !== void 0 || r) && !a.static ? C.createElement(Jn, null, C.createElement(xr, { show: n, transition: r, unmount: a.unmount }, C.createElement(As, { ref: t, ...a }))) : C.createElement(Jn, null, C.createElement(As, { ref: t, open: n, ...a }));
4139
4139
  }
4140
4140
  let d0 = "div";
4141
4141
  function f0(e, t) {
4142
4142
  let r = xe(), { id: n = `headlessui-dialog-panel-${r}`, transition: a = !1, ...o } = e, [{ dialogState: i, unmount: s }, l] = $a("Dialog.Panel"), u = be(t, l.panelRef), c = ve({ open: i === 0 }), f = T((v) => {
4143
4143
  v.stopPropagation();
4144
4144
  }), g = { ref: u, id: n, onClick: f }, d = a ? nn : Ie, m = a ? { unmount: s } : {}, p = ue();
4145
- return $.createElement(d, { ...m }, p({ ourProps: g, theirProps: o, slot: c, defaultTag: d0, name: "Dialog.Panel" }));
4145
+ return C.createElement(d, { ...m }, p({ ourProps: g, theirProps: o, slot: c, defaultTag: d0, name: "Dialog.Panel" }));
4146
4146
  }
4147
4147
  let g0 = "div";
4148
4148
  function m0(e, t) {
4149
4149
  let { transition: r = !1, ...n } = e, [{ dialogState: a, unmount: o }] = $a("Dialog.Backdrop"), i = ve({ open: a === 0 }), s = { ref: t, "aria-hidden": !0 }, l = r ? nn : Ie, u = r ? { unmount: o } : {}, c = ue();
4150
- return $.createElement(l, { ...u }, c({ ourProps: s, theirProps: n, slot: i, defaultTag: g0, name: "Dialog.Backdrop" }));
4150
+ return C.createElement(l, { ...u }, c({ ourProps: s, theirProps: n, slot: i, defaultTag: g0, name: "Dialog.Backdrop" }));
4151
4151
  }
4152
4152
  let p0 = "h2";
4153
4153
  function h0(e, t) {
@@ -4159,7 +4159,7 @@ function h0(e, t) {
4159
4159
  let v0 = le(c0), ic = le(f0), b0 = le(m0), sc = le(h0), y0 = Object.assign(v0, { Panel: ic, Title: sc, Description: un }), x0 = "div";
4160
4160
  function w0(e, t) {
4161
4161
  let r = `headlessui-control-${xe()}`, [n, a] = cn(), [o, i] = la(), s = St(), { disabled: l = s || !1, ...u } = e, c = ve({ disabled: l }), f = { ref: t, disabled: l || void 0, "aria-disabled": l || void 0 }, g = ue();
4162
- return $.createElement(Kf, { value: l }, $.createElement(a, { value: n }, $.createElement(i, { value: o }, $.createElement(ug, { id: r }, g({ ourProps: f, theirProps: { ...u, children: $.createElement(ig, null, typeof u.children == "function" ? u.children(c) : u.children) }, slot: c, defaultTag: x0, name: "Field" })))));
4162
+ return C.createElement(Kf, { value: l }, C.createElement(a, { value: n }, C.createElement(i, { value: o }, C.createElement(ug, { id: r }, g({ ourProps: f, theirProps: { ...u, children: C.createElement(ig, null, typeof u.children == "function" ? u.children(c) : u.children) }, slot: c, defaultTag: x0, name: "Field" })))));
4163
4163
  }
4164
4164
  let Ra = le(w0), k0 = "input";
4165
4165
  function S0(e, t) {
@@ -4194,7 +4194,7 @@ function C0(e) {
4194
4194
  return _s(e).trim();
4195
4195
  }
4196
4196
  function lc(e) {
4197
- let t = Y(""), r = Y("");
4197
+ let t = K(""), r = K("");
4198
4198
  return T(() => {
4199
4199
  let n = e.current;
4200
4200
  if (!n) return "";
@@ -4388,139 +4388,139 @@ let I0 = Ie;
4388
4388
  function N0(e, t) {
4389
4389
  let r = xe(), n = St(), { value: a, defaultValue: o, form: i, name: s, onChange: l, by: u, invalid: c = !1, disabled: f = n || !1, horizontal: g = !1, multiple: d = !1, __demoMode: m = !1, ...p } = e;
4390
4390
  const v = g ? "horizontal" : "vertical";
4391
- let b = be(t), x = ri(o), [y = d ? [] : void 0, E] = ti(a, l, x), w = fc({ id: r, __demoMode: m }), P = Y({ static: !1, hold: !1 }), N = Y(/* @__PURE__ */ new Map()), F = $g(u), z = ie((L) => $e(S.mode, { [At.Multi]: () => y.some((R) => F(R, L)), [At.Single]: () => F(y, L) }), [y]), S = ve({ value: y, disabled: f, invalid: c, mode: d ? At.Multi : At.Single, orientation: v, onChange: E, compare: F, isSelected: z, optionsPropsRef: P, listRef: N });
4391
+ let b = be(t), x = ri(o), [y = d ? [] : void 0, S] = ti(a, l, x), w = fc({ id: r, __demoMode: m }), P = K({ static: !1, hold: !1 }), N = K(/* @__PURE__ */ new Map()), I = $g(u), B = ie((L) => $e(F.mode, { [At.Multi]: () => y.some((R) => I(R, L)), [At.Single]: () => I(y, L) }), [y]), F = ve({ value: y, disabled: f, invalid: c, mode: d ? At.Multi : At.Single, orientation: v, onChange: S, compare: I, isSelected: B, optionsPropsRef: P, listRef: N });
4392
4392
  ge(() => {
4393
- w.state.dataRef.current = S;
4394
- }, [S]);
4395
- let I = de(w, (L) => L.listboxState), K = ur.get(null), X = de(K, ie((L) => K.selectors.isTop(L, r), [K, r])), [M, V] = de(w, (L) => [L.buttonElement, L.optionsElement]);
4396
- fa(X, [M, V], (L, R) => {
4393
+ w.state.dataRef.current = F;
4394
+ }, [F]);
4395
+ let $ = de(w, (L) => L.listboxState), V = ur.get(null), X = de(V, ie((L) => V.selectors.isTop(L, r), [V, r])), [M, z] = de(w, (L) => [L.buttonElement, L.optionsElement]);
4396
+ fa(X, [M, z], (L, R) => {
4397
4397
  w.send({ type: uc.CloseListbox }), mn(R, gn.Loose) || (L.preventDefault(), M?.focus());
4398
4398
  });
4399
- let W = ve({ open: I === Me.Open, disabled: f, invalid: c, value: y }), [J, k] = cn({ inherit: !0 }), U = { ref: b }, re = ie(() => {
4400
- if (x !== void 0) return E?.(x);
4401
- }, [E, x]), C = ue();
4402
- return $.createElement(k, { value: J, props: { htmlFor: M?.id }, slot: { open: I === Me.Open, disabled: f } }, $.createElement(wi, null, $.createElement(dc.Provider, { value: w }, $.createElement(Pa.Provider, { value: S }, $.createElement(xa, { value: $e(I, { [Me.Open]: we.Open, [Me.Closed]: we.Closed }) }, s != null && y != null && $.createElement(ai, { disabled: f, data: { [s]: y }, form: i, onReset: re }), C({ ourProps: U, theirProps: p, slot: W, defaultTag: I0, name: "Listbox" }))))));
4399
+ let U = ve({ open: $ === Me.Open, disabled: f, invalid: c, value: y }), [J, k] = cn({ inherit: !0 }), Y = { ref: b }, re = ie(() => {
4400
+ if (x !== void 0) return S?.(x);
4401
+ }, [S, x]), E = ue();
4402
+ return C.createElement(k, { value: J, props: { htmlFor: M?.id }, slot: { open: $ === Me.Open, disabled: f } }, C.createElement(wi, null, C.createElement(dc.Provider, { value: w }, C.createElement(Pa.Provider, { value: F }, C.createElement(xa, { value: $e($, { [Me.Open]: we.Open, [Me.Closed]: we.Closed }) }, s != null && y != null && C.createElement(ai, { disabled: f, data: { [s]: y }, form: i, onReset: re }), E({ ourProps: Y, theirProps: p, slot: U, defaultTag: I0, name: "Listbox" }))))));
4403
4403
  }
4404
4404
  let A0 = "button";
4405
4405
  function O0(e, t) {
4406
- let r = xe(), n = Er(), a = xn("Listbox.Button"), o = Ri("Listbox.Button"), { id: i = n || `headlessui-listbox-button-${r}`, disabled: s = a.disabled || !1, autoFocus: l = !1, ...u } = e, c = be(t, bi(), o.actions.setButtonElement), f = zu(), [g, d, m] = de(o, (V) => [V.listboxState, V.buttonElement, V.optionsElement]), p = g === Me.Open;
4407
- Su(p, { trigger: d, action: ie((V) => {
4408
- if (d != null && d.contains(V.target)) return It.Ignore;
4409
- let W = V.target.closest('[role="option"]:not([data-disabled])');
4410
- return Ne(W) ? It.Select(W) : m != null && m.contains(V.target) ? It.Ignore : It.Close;
4406
+ let r = xe(), n = Er(), a = xn("Listbox.Button"), o = Ri("Listbox.Button"), { id: i = n || `headlessui-listbox-button-${r}`, disabled: s = a.disabled || !1, autoFocus: l = !1, ...u } = e, c = be(t, bi(), o.actions.setButtonElement), f = zu(), [g, d, m] = de(o, (z) => [z.listboxState, z.buttonElement, z.optionsElement]), p = g === Me.Open;
4407
+ Su(p, { trigger: d, action: ie((z) => {
4408
+ if (d != null && d.contains(z.target)) return It.Ignore;
4409
+ let U = z.target.closest('[role="option"]:not([data-disabled])');
4410
+ return Ne(U) ? It.Select(U) : m != null && m.contains(z.target) ? It.Ignore : It.Close;
4411
4411
  }, [d, m]), close: o.actions.closeListbox, select: o.actions.selectActiveOption });
4412
- let v = T((V) => {
4413
- switch (V.key) {
4412
+ let v = T((z) => {
4413
+ switch (z.key) {
4414
4414
  case te.Enter:
4415
- ni(V.currentTarget);
4415
+ ni(z.currentTarget);
4416
4416
  break;
4417
4417
  case te.Space:
4418
4418
  case te.ArrowDown:
4419
- V.preventDefault(), o.actions.openListbox({ focus: a.value ? oe.Nothing : oe.First });
4419
+ z.preventDefault(), o.actions.openListbox({ focus: a.value ? oe.Nothing : oe.First });
4420
4420
  break;
4421
4421
  case te.ArrowUp:
4422
- V.preventDefault(), o.actions.openListbox({ focus: a.value ? oe.Nothing : oe.Last });
4422
+ z.preventDefault(), o.actions.openListbox({ focus: a.value ? oe.Nothing : oe.Last });
4423
4423
  break;
4424
4424
  }
4425
- }), b = T((V) => {
4426
- V.key === te.Space && V.preventDefault();
4427
- }), x = mu((V) => {
4428
- var W;
4429
- o.state.listboxState === Me.Open ? (nr(() => o.actions.closeListbox()), (W = o.state.buttonElement) == null || W.focus({ preventScroll: !0 })) : (V.preventDefault(), o.actions.openListbox({ focus: oe.Nothing }));
4430
- }), y = T((V) => V.preventDefault()), E = Cr([i]), w = ln(), { isFocusVisible: P, focusProps: N } = Wt({ autoFocus: l }), { isHovered: F, hoverProps: z } = Bt({ isDisabled: s }), { pressed: S, pressProps: I } = Sr({ disabled: s }), K = ve({ open: g === Me.Open, active: S || g === Me.Open, disabled: s, invalid: a.invalid, value: a.value, hover: F, focus: P, autofocus: l }), X = de(o, (V) => V.listboxState === Me.Open), M = qe(f(), { ref: c, id: i, type: ga(e, d), "aria-haspopup": "listbox", "aria-controls": m?.id, "aria-expanded": X, "aria-labelledby": E, "aria-describedby": w, disabled: s || void 0, autoFocus: l, onKeyDown: v, onKeyUp: b, onKeyPress: y }, x, N, z, I);
4431
- return ue()({ ourProps: M, theirProps: u, slot: K, defaultTag: A0, name: "Listbox.Button" });
4425
+ }), b = T((z) => {
4426
+ z.key === te.Space && z.preventDefault();
4427
+ }), x = mu((z) => {
4428
+ var U;
4429
+ o.state.listboxState === Me.Open ? (nr(() => o.actions.closeListbox()), (U = o.state.buttonElement) == null || U.focus({ preventScroll: !0 })) : (z.preventDefault(), o.actions.openListbox({ focus: oe.Nothing }));
4430
+ }), y = T((z) => z.preventDefault()), S = Cr([i]), w = ln(), { isFocusVisible: P, focusProps: N } = Wt({ autoFocus: l }), { isHovered: I, hoverProps: B } = Bt({ isDisabled: s }), { pressed: F, pressProps: $ } = Sr({ disabled: s }), V = ve({ open: g === Me.Open, active: F || g === Me.Open, disabled: s, invalid: a.invalid, value: a.value, hover: I, focus: P, autofocus: l }), X = de(o, (z) => z.listboxState === Me.Open), M = qe(f(), { ref: c, id: i, type: ga(e, d), "aria-haspopup": "listbox", "aria-controls": m?.id, "aria-expanded": X, "aria-labelledby": S, "aria-describedby": w, disabled: s || void 0, autoFocus: l, onKeyDown: v, onKeyUp: b, onKeyPress: y }, x, N, B, $);
4431
+ return ue()({ ourProps: M, theirProps: u, slot: V, defaultTag: A0, name: "Listbox.Button" });
4432
4432
  }
4433
4433
  let gc = Ce(!1), _0 = "div", T0 = Ke.RenderStrategy | Ke.Static;
4434
4434
  function M0(e, t) {
4435
4435
  let r = xe(), { id: n = `headlessui-listbox-options-${r}`, anchor: a, portal: o = !1, modal: i = !0, transition: s = !1, ...l } = e, u = vi(a), [c, f] = ae(null);
4436
4436
  u && (o = !0);
4437
- let g = xn("Listbox.Options"), d = Ri("Listbox.Options"), [m, p, v, b] = de(d, (B) => [B.listboxState, B.buttonElement, B.optionsElement, B.__demoMode]), x = yt(p), y = yt(v), E = Yt(), [w, P] = hn(s, c, E !== null ? (E & we.Open) === we.Open : m === Me.Open);
4437
+ let g = xn("Listbox.Options"), d = Ri("Listbox.Options"), [m, p, v, b] = de(d, (W) => [W.listboxState, W.buttonElement, W.optionsElement, W.__demoMode]), x = yt(p), y = yt(v), S = Yt(), [w, P] = hn(s, c, S !== null ? (S & we.Open) === we.Open : m === Me.Open);
4438
4438
  da(w, p, d.actions.closeListbox);
4439
4439
  let N = b ? !1 : i && m === Me.Open;
4440
4440
  ma(N, y);
4441
- let F = b ? !1 : i && m === Me.Open;
4442
- ui(F, { allowed: ie(() => [p, v], [p, v]) });
4443
- let z = de(d, d.selectors.didButtonMove) ? !1 : w, S = de(d, d.selectors.hasFrozenValue) && !e.static, I = Gu(S, g.value), K = ie((B) => g.compare(I, B), [g.compare, I]), X = de(d, (B) => {
4441
+ let I = b ? !1 : i && m === Me.Open;
4442
+ ui(I, { allowed: ie(() => [p, v], [p, v]) });
4443
+ let B = de(d, d.selectors.didButtonMove) ? !1 : w, F = de(d, d.selectors.hasFrozenValue) && !e.static, $ = Gu(F, g.value), V = ie((W) => g.compare($, W), [g.compare, $]), X = de(d, (W) => {
4444
4444
  var D;
4445
4445
  if (u == null || !((D = u?.to) != null && D.includes("selection"))) return null;
4446
- let pe = B.options.findIndex((Se) => K(Se.dataRef.current.value));
4446
+ let pe = W.options.findIndex((Se) => V(Se.dataRef.current.value));
4447
4447
  return pe === -1 && (pe = 0), pe;
4448
4448
  }), M = (() => {
4449
4449
  if (u == null) return;
4450
4450
  if (X === null) return { ...u, inner: void 0 };
4451
- let B = Array.from(g.listRef.current.values());
4452
- return { ...u, inner: { listRef: { current: B }, index: X } };
4453
- })(), [V, W] = xi(M), J = yi(), k = be(t, u ? V : null, d.actions.setOptionsElement, f), U = rt();
4451
+ let W = Array.from(g.listRef.current.values());
4452
+ return { ...u, inner: { listRef: { current: W }, index: X } };
4453
+ })(), [z, U] = xi(M), J = yi(), k = be(t, u ? z : null, d.actions.setOptionsElement, f), Y = rt();
4454
4454
  me(() => {
4455
- let B = v;
4456
- B && m === Me.Open && (ei(B) || B == null || B.focus({ preventScroll: !0 }));
4455
+ let W = v;
4456
+ W && m === Me.Open && (ei(W) || W == null || W.focus({ preventScroll: !0 }));
4457
4457
  }, [m, v]);
4458
- let re = T((B) => {
4458
+ let re = T((W) => {
4459
4459
  var D;
4460
- switch (U.dispose(), B.key) {
4460
+ switch (Y.dispose(), W.key) {
4461
4461
  case te.Space:
4462
- if (d.state.searchQuery !== "") return B.preventDefault(), B.stopPropagation(), d.actions.search(B.key);
4462
+ if (d.state.searchQuery !== "") return W.preventDefault(), W.stopPropagation(), d.actions.search(W.key);
4463
4463
  case te.Enter:
4464
- B.preventDefault(), B.stopPropagation(), d.actions.selectActiveOption();
4464
+ W.preventDefault(), W.stopPropagation(), d.actions.selectActiveOption();
4465
4465
  break;
4466
4466
  case $e(g.orientation, { vertical: te.ArrowDown, horizontal: te.ArrowRight }):
4467
- return B.preventDefault(), B.stopPropagation(), d.actions.goToOption({ focus: oe.Next });
4467
+ return W.preventDefault(), W.stopPropagation(), d.actions.goToOption({ focus: oe.Next });
4468
4468
  case $e(g.orientation, { vertical: te.ArrowUp, horizontal: te.ArrowLeft }):
4469
- return B.preventDefault(), B.stopPropagation(), d.actions.goToOption({ focus: oe.Previous });
4469
+ return W.preventDefault(), W.stopPropagation(), d.actions.goToOption({ focus: oe.Previous });
4470
4470
  case te.Home:
4471
4471
  case te.PageUp:
4472
- return B.preventDefault(), B.stopPropagation(), d.actions.goToOption({ focus: oe.First });
4472
+ return W.preventDefault(), W.stopPropagation(), d.actions.goToOption({ focus: oe.First });
4473
4473
  case te.End:
4474
4474
  case te.PageDown:
4475
- return B.preventDefault(), B.stopPropagation(), d.actions.goToOption({ focus: oe.Last });
4475
+ return W.preventDefault(), W.stopPropagation(), d.actions.goToOption({ focus: oe.Last });
4476
4476
  case te.Escape:
4477
- B.preventDefault(), B.stopPropagation(), nr(() => d.actions.closeListbox()), (D = d.state.buttonElement) == null || D.focus({ preventScroll: !0 });
4477
+ W.preventDefault(), W.stopPropagation(), nr(() => d.actions.closeListbox()), (D = d.state.buttonElement) == null || D.focus({ preventScroll: !0 });
4478
4478
  return;
4479
4479
  case te.Tab:
4480
- B.preventDefault(), B.stopPropagation(), nr(() => d.actions.closeListbox()), xu(d.state.buttonElement, B.shiftKey ? Re.Previous : Re.Next);
4480
+ W.preventDefault(), W.stopPropagation(), nr(() => d.actions.closeListbox()), xu(d.state.buttonElement, W.shiftKey ? Re.Previous : Re.Next);
4481
4481
  break;
4482
4482
  default:
4483
- B.key.length === 1 && (d.actions.search(B.key), U.setTimeout(() => d.actions.clearSearch(), 350));
4483
+ W.key.length === 1 && (d.actions.search(W.key), Y.setTimeout(() => d.actions.clearSearch(), 350));
4484
4484
  break;
4485
4485
  }
4486
- }), C = de(d, (B) => {
4486
+ }), E = de(d, (W) => {
4487
4487
  var D;
4488
- return (D = B.buttonElement) == null ? void 0 : D.id;
4489
- }), L = ve({ open: m === Me.Open }), R = qe(u ? J() : {}, { id: n, ref: k, "aria-activedescendant": de(d, d.selectors.activeDescendantId), "aria-multiselectable": g.mode === At.Multi ? !0 : void 0, "aria-labelledby": C, "aria-orientation": g.orientation, onKeyDown: re, role: "listbox", tabIndex: m === Me.Open ? 0 : void 0, style: { ...l.style, ...W, "--button-width": si(w, p, !0).width }, ...pn(P) }), O = ue(), Q = ye(() => g.mode === At.Multi ? g : { ...g, isSelected: K }, [g, K]);
4490
- return $.createElement(wa, { enabled: o ? e.static || w : !1, ownerDocument: x }, $.createElement(Pa.Provider, { value: Q }, O({ ourProps: R, theirProps: l, slot: L, defaultTag: _0, features: T0, visible: z, name: "Listbox.Options" })));
4488
+ return (D = W.buttonElement) == null ? void 0 : D.id;
4489
+ }), L = ve({ open: m === Me.Open }), R = qe(u ? J() : {}, { id: n, ref: k, "aria-activedescendant": de(d, d.selectors.activeDescendantId), "aria-multiselectable": g.mode === At.Multi ? !0 : void 0, "aria-labelledby": E, "aria-orientation": g.orientation, onKeyDown: re, role: "listbox", tabIndex: m === Me.Open ? 0 : void 0, style: { ...l.style, ...U, "--button-width": si(w, p, !0).width }, ...pn(P) }), O = ue(), Q = ye(() => g.mode === At.Multi ? g : { ...g, isSelected: V }, [g, V]);
4490
+ return C.createElement(wa, { enabled: o ? e.static || w : !1, ownerDocument: x }, C.createElement(Pa.Provider, { value: Q }, O({ ourProps: R, theirProps: l, slot: L, defaultTag: _0, features: T0, visible: B, name: "Listbox.Options" })));
4491
4491
  }
4492
4492
  let j0 = "div";
4493
4493
  function L0(e, t) {
4494
- let r = xe(), { id: n = `headlessui-listbox-option-${r}`, disabled: a = !1, value: o, ...i } = e, s = fe(gc) === !0, l = xn("Listbox.Option"), u = Ri("Listbox.Option"), c = de(u, (S) => u.selectors.isActive(S, n)), f = l.isSelected(o), g = Y(null), d = lc(g), m = lt({ disabled: a, value: o, domRef: g, get textValue() {
4494
+ let r = xe(), { id: n = `headlessui-listbox-option-${r}`, disabled: a = !1, value: o, ...i } = e, s = fe(gc) === !0, l = xn("Listbox.Option"), u = Ri("Listbox.Option"), c = de(u, (F) => u.selectors.isActive(F, n)), f = l.isSelected(o), g = K(null), d = lc(g), m = lt({ disabled: a, value: o, domRef: g, get textValue() {
4495
4495
  return d();
4496
- } }), p = be(t, g, (S) => {
4497
- S ? l.listRef.current.set(n, S) : l.listRef.current.delete(n);
4498
- }), v = de(u, (S) => u.selectors.shouldScrollIntoView(S, n));
4496
+ } }), p = be(t, g, (F) => {
4497
+ F ? l.listRef.current.set(n, F) : l.listRef.current.delete(n);
4498
+ }), v = de(u, (F) => u.selectors.shouldScrollIntoView(F, n));
4499
4499
  ge(() => {
4500
4500
  if (v) return Le().requestAnimationFrame(() => {
4501
- var S, I;
4502
- (I = (S = g.current) == null ? void 0 : S.scrollIntoView) == null || I.call(S, { block: "nearest" });
4501
+ var F, $;
4502
+ ($ = (F = g.current) == null ? void 0 : F.scrollIntoView) == null || $.call(F, { block: "nearest" });
4503
4503
  });
4504
4504
  }, [v, g]), ge(() => {
4505
4505
  if (!s) return u.actions.registerOption(n, m), () => u.actions.unregisterOption(n);
4506
4506
  }, [m, n, s]);
4507
- let b = T((S) => {
4508
- if (a) return S.preventDefault();
4507
+ let b = T((F) => {
4508
+ if (a) return F.preventDefault();
4509
4509
  u.actions.selectOption(o);
4510
4510
  }), x = T(() => {
4511
4511
  if (a) return u.actions.goToOption({ focus: oe.Nothing });
4512
4512
  u.actions.goToOption({ focus: oe.Specific, id: n });
4513
- }), y = Eu(), E = T((S) => y.update(S)), w = T((S) => {
4514
- y.wasMoved(S) && (a || c && u.state.activationTrigger === Dn.Pointer || u.actions.goToOption({ focus: oe.Specific, id: n }, Dn.Pointer));
4515
- }), P = T((S) => {
4516
- y.wasMoved(S) && (a || c && u.state.activationTrigger === Dn.Pointer && u.actions.goToOption({ focus: oe.Nothing }));
4517
- }), N = ve({ active: c, focus: c, selected: f, disabled: a, selectedOption: f && s }), F = s ? {} : { id: n, ref: p, role: "option", tabIndex: a === !0 ? void 0 : -1, "aria-disabled": a === !0 ? !0 : void 0, "aria-selected": f, disabled: void 0, onClick: b, onFocus: x, onPointerEnter: E, onMouseEnter: E, onPointerMove: w, onMouseMove: w, onPointerLeave: P, onMouseLeave: P }, z = ue();
4518
- return !f && s ? null : z({ ourProps: F, theirProps: i, slot: N, defaultTag: j0, name: "Listbox.Option" });
4513
+ }), y = Eu(), S = T((F) => y.update(F)), w = T((F) => {
4514
+ y.wasMoved(F) && (a || c && u.state.activationTrigger === Dn.Pointer || u.actions.goToOption({ focus: oe.Specific, id: n }, Dn.Pointer));
4515
+ }), P = T((F) => {
4516
+ y.wasMoved(F) && (a || c && u.state.activationTrigger === Dn.Pointer && u.actions.goToOption({ focus: oe.Nothing }));
4517
+ }), N = ve({ active: c, focus: c, selected: f, disabled: a, selectedOption: f && s }), I = s ? {} : { id: n, ref: p, role: "option", tabIndex: a === !0 ? void 0 : -1, "aria-disabled": a === !0 ? !0 : void 0, "aria-selected": f, disabled: void 0, onClick: b, onFocus: x, onPointerEnter: S, onMouseEnter: S, onPointerMove: w, onMouseMove: w, onPointerLeave: P, onMouseLeave: P }, B = ue();
4518
+ return !f && s ? null : B({ ourProps: I, theirProps: i, slot: N, defaultTag: j0, name: "Listbox.Option" });
4519
4519
  }
4520
4520
  let D0 = Ie;
4521
4521
  function V0(e, t) {
4522
4522
  let { options: r, placeholder: n, ...a } = e, o = { ref: be(t) }, i = xn("ListboxSelectedOption"), s = ve({}), l = i.value === void 0 || i.value === null || i.mode === At.Multi && Array.isArray(i.value) && i.value.length === 0, u = ue();
4523
- return $.createElement(gc.Provider, { value: !0 }, u({ ourProps: o, theirProps: { ...a, children: $.createElement($.Fragment, null, n && l ? n : r) }, slot: s, defaultTag: D0, name: "ListboxSelectedOption" }));
4523
+ return C.createElement(gc.Provider, { value: !0 }, u({ ourProps: o, theirProps: { ...a, children: C.createElement(C.Fragment, null, n && l ? n : r) }, slot: s, defaultTag: D0, name: "ListboxSelectedOption" }));
4524
4524
  }
4525
4525
  let z0 = le(N0), mc = le(O0), H0 = $r, pc = le(M0), hc = le(L0), G0 = le(V0), B0 = Object.assign(z0, { Button: mc, Label: H0, Options: pc, Option: hc, SelectedOption: G0 });
4526
4526
  var W0 = Object.defineProperty, U0 = (e, t, r) => t in e ? W0(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, js = (e, t, r) => (U0(e, typeof t != "symbol" ? t + "" : t, r), r), _e = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(_e || {}), Qn = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(Qn || {}), he = ((e) => (e[e.OpenMenu = 0] = "OpenMenu", e[e.CloseMenu = 1] = "CloseMenu", e[e.GoToItem = 2] = "GoToItem", e[e.Search = 3] = "Search", e[e.ClearSearch = 4] = "ClearSearch", e[e.RegisterItems = 5] = "RegisterItems", e[e.UnregisterItems = 6] = "UnregisterItems", e[e.SetButtonElement = 7] = "SetButtonElement", e[e.SetItemsElement = 8] = "SetItemsElement", e[e.SortItems = 9] = "SortItems", e[e.MarkButtonAsMoved = 10] = "MarkButtonAsMoved", e))(he || {});
@@ -4653,48 +4653,48 @@ function X0(e, t) {
4653
4653
  let g = T(() => {
4654
4654
  o.send({ type: he.CloseMenu });
4655
4655
  }), d = ve({ open: i === _e.Open, close: g }), m = { ref: u }, p = ue();
4656
- return $.createElement(wi, null, $.createElement(bc.Provider, { value: o }, $.createElement(xa, { value: $e(i, { [_e.Open]: we.Open, [_e.Closed]: we.Closed }) }, p({ ourProps: m, theirProps: a, slot: d, defaultTag: q0, name: "Menu" }))));
4656
+ return C.createElement(wi, null, C.createElement(bc.Provider, { value: o }, C.createElement(xa, { value: $e(i, { [_e.Open]: we.Open, [_e.Closed]: we.Closed }) }, p({ ourProps: m, theirProps: a, slot: d, defaultTag: q0, name: "Menu" }))));
4657
4657
  }
4658
4658
  let J0 = "button";
4659
4659
  function Q0(e, t) {
4660
- let r = Pi("Menu.Button"), n = xe(), { id: a = `headlessui-menu-button-${n}`, disabled: o = !1, autoFocus: i = !1, ...s } = e, l = Y(null), u = zu(), c = be(t, l, bi(), T((S) => r.send({ type: he.SetButtonElement, element: S }))), f = T((S) => {
4661
- switch (S.key) {
4660
+ let r = Pi("Menu.Button"), n = xe(), { id: a = `headlessui-menu-button-${n}`, disabled: o = !1, autoFocus: i = !1, ...s } = e, l = K(null), u = zu(), c = be(t, l, bi(), T((F) => r.send({ type: he.SetButtonElement, element: F }))), f = T((F) => {
4661
+ switch (F.key) {
4662
4662
  case te.Space:
4663
4663
  case te.Enter:
4664
4664
  case te.ArrowDown:
4665
- S.preventDefault(), S.stopPropagation(), r.send({ type: he.OpenMenu, focus: { focus: oe.First } });
4665
+ F.preventDefault(), F.stopPropagation(), r.send({ type: he.OpenMenu, focus: { focus: oe.First } });
4666
4666
  break;
4667
4667
  case te.ArrowUp:
4668
- S.preventDefault(), S.stopPropagation(), r.send({ type: he.OpenMenu, focus: { focus: oe.Last } });
4668
+ F.preventDefault(), F.stopPropagation(), r.send({ type: he.OpenMenu, focus: { focus: oe.Last } });
4669
4669
  break;
4670
4670
  }
4671
- }), g = T((S) => {
4672
- S.key === te.Space && S.preventDefault();
4673
- }), [d, m, p] = de(r, (S) => [S.menuState, S.buttonElement, S.itemsElement]), v = d === _e.Open;
4674
- Su(v, { trigger: m, action: ie((S) => {
4675
- if (m != null && m.contains(S.target)) return It.Ignore;
4676
- let I = S.target.closest('[role="menuitem"]:not([data-disabled])');
4677
- return Ne(I) ? It.Select(I) : p != null && p.contains(S.target) ? It.Ignore : It.Close;
4678
- }, [m, p]), close: ie(() => r.send({ type: he.CloseMenu }), []), select: ie((S) => S.click(), []) });
4679
- let b = mu((S) => {
4680
- var I;
4681
- o || (d === _e.Open ? (nr(() => r.send({ type: he.CloseMenu })), (I = l.current) == null || I.focus({ preventScroll: !0 })) : (S.preventDefault(), r.send({ type: he.OpenMenu, focus: { focus: oe.Nothing }, trigger: Qn.Pointer })));
4682
- }), { isFocusVisible: x, focusProps: y } = Wt({ autoFocus: i }), { isHovered: E, hoverProps: w } = Bt({ isDisabled: o }), { pressed: P, pressProps: N } = Sr({ disabled: o }), F = ve({ open: d === _e.Open, active: P || d === _e.Open, disabled: o, hover: E, focus: x, autofocus: i }), z = qe(u(), { ref: c, id: a, type: ga(e, l.current), "aria-haspopup": "menu", "aria-controls": p?.id, "aria-expanded": d === _e.Open, disabled: o || void 0, autoFocus: i, onKeyDown: f, onKeyUp: g }, b, y, w, N);
4683
- return ue()({ ourProps: z, theirProps: s, slot: F, defaultTag: J0, name: "Menu.Button" });
4671
+ }), g = T((F) => {
4672
+ F.key === te.Space && F.preventDefault();
4673
+ }), [d, m, p] = de(r, (F) => [F.menuState, F.buttonElement, F.itemsElement]), v = d === _e.Open;
4674
+ Su(v, { trigger: m, action: ie((F) => {
4675
+ if (m != null && m.contains(F.target)) return It.Ignore;
4676
+ let $ = F.target.closest('[role="menuitem"]:not([data-disabled])');
4677
+ return Ne($) ? It.Select($) : p != null && p.contains(F.target) ? It.Ignore : It.Close;
4678
+ }, [m, p]), close: ie(() => r.send({ type: he.CloseMenu }), []), select: ie((F) => F.click(), []) });
4679
+ let b = mu((F) => {
4680
+ var $;
4681
+ o || (d === _e.Open ? (nr(() => r.send({ type: he.CloseMenu })), ($ = l.current) == null || $.focus({ preventScroll: !0 })) : (F.preventDefault(), r.send({ type: he.OpenMenu, focus: { focus: oe.Nothing }, trigger: Qn.Pointer })));
4682
+ }), { isFocusVisible: x, focusProps: y } = Wt({ autoFocus: i }), { isHovered: S, hoverProps: w } = Bt({ isDisabled: o }), { pressed: P, pressProps: N } = Sr({ disabled: o }), I = ve({ open: d === _e.Open, active: P || d === _e.Open, disabled: o, hover: S, focus: x, autofocus: i }), B = qe(u(), { ref: c, id: a, type: ga(e, l.current), "aria-haspopup": "menu", "aria-controls": p?.id, "aria-expanded": d === _e.Open, disabled: o || void 0, autoFocus: i, onKeyDown: f, onKeyUp: g }, b, y, w, N);
4683
+ return ue()({ ourProps: B, theirProps: s, slot: I, defaultTag: J0, name: "Menu.Button" });
4684
4684
  }
4685
4685
  let Z0 = "div", eh = Ke.RenderStrategy | Ke.Static;
4686
4686
  function th(e, t) {
4687
- let r = xe(), { id: n = `headlessui-menu-items-${r}`, anchor: a, portal: o = !1, modal: i = !0, transition: s = !1, ...l } = e, u = vi(a), c = Pi("Menu.Items"), [f, g] = xi(u), d = yi(), [m, p] = ae(null), v = be(t, u ? f : null, T((k) => c.send({ type: he.SetItemsElement, element: k })), p), [b, x] = de(c, (k) => [k.menuState, k.buttonElement]), y = yt(x), E = yt(m);
4687
+ let r = xe(), { id: n = `headlessui-menu-items-${r}`, anchor: a, portal: o = !1, modal: i = !0, transition: s = !1, ...l } = e, u = vi(a), c = Pi("Menu.Items"), [f, g] = xi(u), d = yi(), [m, p] = ae(null), v = be(t, u ? f : null, T((k) => c.send({ type: he.SetItemsElement, element: k })), p), [b, x] = de(c, (k) => [k.menuState, k.buttonElement]), y = yt(x), S = yt(m);
4688
4688
  u && (o = !0);
4689
4689
  let w = Yt(), [P, N] = hn(s, m, w !== null ? (w & we.Open) === we.Open : b === _e.Open);
4690
4690
  da(P, x, () => {
4691
4691
  c.send({ type: he.CloseMenu });
4692
4692
  });
4693
- let F = de(c, (k) => k.__demoMode), z = F ? !1 : i && b === _e.Open;
4694
- ma(z, E);
4695
- let S = F ? !1 : i && b === _e.Open;
4696
- ui(S, { allowed: ie(() => [x, m], [x, m]) });
4697
- let I = de(c, c.selectors.didButtonMove) ? !1 : P;
4693
+ let I = de(c, (k) => k.__demoMode), B = I ? !1 : i && b === _e.Open;
4694
+ ma(B, S);
4695
+ let F = I ? !1 : i && b === _e.Open;
4696
+ ui(F, { allowed: ie(() => [x, m], [x, m]) });
4697
+ let $ = de(c, c.selectors.didButtonMove) ? !1 : P;
4698
4698
  me(() => {
4699
4699
  let k = m;
4700
4700
  k && b === _e.Open && (ei(k) || k.focus({ preventScroll: !0 }));
@@ -4703,15 +4703,15 @@ function th(e, t) {
4703
4703
  }, walk(k) {
4704
4704
  k.setAttribute("role", "none");
4705
4705
  } });
4706
- let K = rt(), X = T((k) => {
4707
- var U, re, C;
4708
- switch (K.dispose(), k.key) {
4706
+ let V = rt(), X = T((k) => {
4707
+ var Y, re, E;
4708
+ switch (V.dispose(), k.key) {
4709
4709
  case te.Space:
4710
4710
  if (c.state.searchQuery !== "") return k.preventDefault(), k.stopPropagation(), c.send({ type: he.Search, value: k.key });
4711
4711
  case te.Enter:
4712
4712
  if (k.preventDefault(), k.stopPropagation(), c.state.activeItemIndex !== null) {
4713
4713
  let { dataRef: L } = c.state.items[c.state.activeItemIndex];
4714
- (re = (U = L.current) == null ? void 0 : U.domRef.current) == null || re.click();
4714
+ (re = (Y = L.current) == null ? void 0 : Y.domRef.current) == null || re.click();
4715
4715
  }
4716
4716
  c.send({ type: he.CloseMenu }), yu(c.state.buttonElement);
4717
4717
  break;
@@ -4726,33 +4726,33 @@ function th(e, t) {
4726
4726
  case te.PageDown:
4727
4727
  return k.preventDefault(), k.stopPropagation(), c.send({ type: he.GoToItem, focus: oe.Last });
4728
4728
  case te.Escape:
4729
- k.preventDefault(), k.stopPropagation(), nr(() => c.send({ type: he.CloseMenu })), (C = c.state.buttonElement) == null || C.focus({ preventScroll: !0 });
4729
+ k.preventDefault(), k.stopPropagation(), nr(() => c.send({ type: he.CloseMenu })), (E = c.state.buttonElement) == null || E.focus({ preventScroll: !0 });
4730
4730
  break;
4731
4731
  case te.Tab:
4732
4732
  k.preventDefault(), k.stopPropagation(), nr(() => c.send({ type: he.CloseMenu })), xu(c.state.buttonElement, k.shiftKey ? Re.Previous : Re.Next);
4733
4733
  break;
4734
4734
  default:
4735
- k.key.length === 1 && (c.send({ type: he.Search, value: k.key }), K.setTimeout(() => c.send({ type: he.ClearSearch }), 350));
4735
+ k.key.length === 1 && (c.send({ type: he.Search, value: k.key }), V.setTimeout(() => c.send({ type: he.ClearSearch }), 350));
4736
4736
  break;
4737
4737
  }
4738
4738
  }), M = T((k) => {
4739
4739
  k.key === te.Space && k.preventDefault();
4740
- }), V = ve({ open: b === _e.Open }), W = qe(u ? d() : {}, { "aria-activedescendant": de(c, c.selectors.activeDescendantId), "aria-labelledby": de(c, (k) => {
4741
- var U;
4742
- return (U = k.buttonElement) == null ? void 0 : U.id;
4740
+ }), z = ve({ open: b === _e.Open }), U = qe(u ? d() : {}, { "aria-activedescendant": de(c, c.selectors.activeDescendantId), "aria-labelledby": de(c, (k) => {
4741
+ var Y;
4742
+ return (Y = k.buttonElement) == null ? void 0 : Y.id;
4743
4743
  }), id: n, onKeyDown: X, onKeyUp: M, role: "menu", tabIndex: b === _e.Open ? 0 : void 0, ref: v, style: { ...l.style, ...g, "--button-width": si(P, x, !0).width }, ...pn(N) }), J = ue();
4744
- return $.createElement(wa, { enabled: o ? e.static || P : !1, ownerDocument: y }, J({ ourProps: W, theirProps: l, slot: V, defaultTag: Z0, features: eh, visible: I, name: "Menu.Items" }));
4744
+ return C.createElement(wa, { enabled: o ? e.static || P : !1, ownerDocument: y }, J({ ourProps: U, theirProps: l, slot: z, defaultTag: Z0, features: eh, visible: $, name: "Menu.Items" }));
4745
4745
  }
4746
4746
  let rh = Ie;
4747
4747
  function nh(e, t) {
4748
- let r = xe(), { id: n = `headlessui-menu-item-${r}`, disabled: a = !1, ...o } = e, i = Pi("Menu.Item"), s = de(i, (I) => i.selectors.isActive(I, n)), l = Y(null), u = be(t, l), c = de(i, (I) => i.selectors.shouldScrollIntoView(I, n));
4748
+ let r = xe(), { id: n = `headlessui-menu-item-${r}`, disabled: a = !1, ...o } = e, i = Pi("Menu.Item"), s = de(i, ($) => i.selectors.isActive($, n)), l = K(null), u = be(t, l), c = de(i, ($) => i.selectors.shouldScrollIntoView($, n));
4749
4749
  ge(() => {
4750
4750
  if (c) return Le().requestAnimationFrame(() => {
4751
- var I, K;
4752
- (K = (I = l.current) == null ? void 0 : I.scrollIntoView) == null || K.call(I, { block: "nearest" });
4751
+ var $, V;
4752
+ (V = ($ = l.current) == null ? void 0 : $.scrollIntoView) == null || V.call($, { block: "nearest" });
4753
4753
  });
4754
4754
  }, [c, l]);
4755
- let f = lc(l), g = Y({ disabled: a, domRef: l, get textValue() {
4755
+ let f = lc(l), g = K({ disabled: a, domRef: l, get textValue() {
4756
4756
  return f();
4757
4757
  } });
4758
4758
  ge(() => {
@@ -4760,23 +4760,23 @@ function nh(e, t) {
4760
4760
  }, [g, a]), ge(() => (i.actions.registerItem(n, g), () => i.actions.unregisterItem(n)), [g, n]);
4761
4761
  let d = T(() => {
4762
4762
  i.send({ type: he.CloseMenu });
4763
- }), m = T((I) => {
4764
- if (a) return I.preventDefault();
4763
+ }), m = T(($) => {
4764
+ if (a) return $.preventDefault();
4765
4765
  i.send({ type: he.CloseMenu }), yu(i.state.buttonElement);
4766
4766
  }), p = T(() => {
4767
4767
  if (a) return i.send({ type: he.GoToItem, focus: oe.Nothing });
4768
4768
  i.send({ type: he.GoToItem, focus: oe.Specific, id: n });
4769
- }), v = Eu(), b = T((I) => v.update(I)), x = T((I) => {
4770
- v.wasMoved(I) && (a || s || i.send({ type: he.GoToItem, focus: oe.Specific, id: n, trigger: Qn.Pointer }));
4771
- }), y = T((I) => {
4772
- v.wasMoved(I) && (a || s && i.state.activationTrigger === Qn.Pointer && i.send({ type: he.GoToItem, focus: oe.Nothing }));
4773
- }), [E, w] = cn(), [P, N] = la(), F = ve({ active: s, focus: s, disabled: a, close: d }), z = { id: n, ref: u, role: "menuitem", tabIndex: a === !0 ? void 0 : -1, "aria-disabled": a === !0 ? !0 : void 0, "aria-labelledby": E, "aria-describedby": P, disabled: void 0, onClick: m, onFocus: p, onPointerEnter: b, onMouseEnter: b, onPointerMove: x, onMouseMove: x, onPointerLeave: y, onMouseLeave: y }, S = ue();
4774
- return $.createElement(w, null, $.createElement(N, null, S({ ourProps: z, theirProps: o, slot: F, defaultTag: rh, name: "Menu.Item" })));
4769
+ }), v = Eu(), b = T(($) => v.update($)), x = T(($) => {
4770
+ v.wasMoved($) && (a || s || i.send({ type: he.GoToItem, focus: oe.Specific, id: n, trigger: Qn.Pointer }));
4771
+ }), y = T(($) => {
4772
+ v.wasMoved($) && (a || s && i.state.activationTrigger === Qn.Pointer && i.send({ type: he.GoToItem, focus: oe.Nothing }));
4773
+ }), [S, w] = cn(), [P, N] = la(), I = ve({ active: s, focus: s, disabled: a, close: d }), B = { id: n, ref: u, role: "menuitem", tabIndex: a === !0 ? void 0 : -1, "aria-disabled": a === !0 ? !0 : void 0, "aria-labelledby": S, "aria-describedby": P, disabled: void 0, onClick: m, onFocus: p, onPointerEnter: b, onMouseEnter: b, onPointerMove: x, onMouseMove: x, onPointerLeave: y, onMouseLeave: y }, F = ue();
4774
+ return C.createElement(w, null, C.createElement(N, null, F({ ourProps: B, theirProps: o, slot: I, defaultTag: rh, name: "Menu.Item" })));
4775
4775
  }
4776
4776
  let ah = "div";
4777
4777
  function oh(e, t) {
4778
4778
  let [r, n] = cn(), a = e, o = { ref: t, "aria-labelledby": r, role: "group" }, i = ue();
4779
- return $.createElement(n, null, i({ ourProps: o, theirProps: a, slot: {}, defaultTag: ah, name: "Menu.Section" }));
4779
+ return C.createElement(n, null, i({ ourProps: o, theirProps: a, slot: {}, defaultTag: ah, name: "Menu.Section" }));
4780
4780
  }
4781
4781
  let ih = "header";
4782
4782
  function sh(e, t) {
@@ -4854,53 +4854,53 @@ function wh() {
4854
4854
  let kh = "div";
4855
4855
  function Sh(e, t) {
4856
4856
  var r;
4857
- let n = xe(), { __demoMode: a = !1, ...o } = e, i = xh({ id: n, __demoMode: a }), s = Y(null), l = be(t, du((M) => {
4857
+ let n = xe(), { __demoMode: a = !1, ...o } = e, i = xh({ id: n, __demoMode: a }), s = K(null), l = be(t, du((M) => {
4858
4858
  s.current = M;
4859
- })), [u, c, f, g, d] = de(i, ie((M) => [M.popoverState, M.button, M.panel, M.buttonId, M.panelId], [])), m = Ug((r = s.current) != null ? r : c), p = lt(g), v = lt(d), b = ye(() => ({ buttonId: p, panelId: v, close: i.actions.close }), [p, v, i]), x = Ec(), y = x?.registerPopover, E = T(() => {
4860
- var M, V;
4861
- let W = Mt((M = s.current) != null ? M : c);
4862
- return (V = x?.isFocusWithinPopoverGroup()) != null ? V : W && (c?.contains(W) || f?.contains(W));
4859
+ })), [u, c, f, g, d] = de(i, ie((M) => [M.popoverState, M.button, M.panel, M.buttonId, M.panelId], [])), m = Ug((r = s.current) != null ? r : c), p = lt(g), v = lt(d), b = ye(() => ({ buttonId: p, panelId: v, close: i.actions.close }), [p, v, i]), x = Ec(), y = x?.registerPopover, S = T(() => {
4860
+ var M, z;
4861
+ let U = Mt((M = s.current) != null ? M : c);
4862
+ return (z = x?.isFocusWithinPopoverGroup()) != null ? z : U && (c?.contains(U) || f?.contains(U));
4863
4863
  });
4864
4864
  me(() => y?.(b), [y, b]);
4865
- let [w, P] = Ku(), N = Si(c), F = Ju({ mainTreeNode: N, portals: w, defaultContainers: [{ get current() {
4865
+ let [w, P] = Ku(), N = Si(c), I = Ju({ mainTreeNode: N, portals: w, defaultContainers: [{ get current() {
4866
4866
  return i.state.button;
4867
4867
  } }, { get current() {
4868
4868
  return i.state.panel;
4869
4869
  } }] });
4870
4870
  di(m, "focus", (M) => {
4871
- var V, W, J, k, U, re;
4872
- M.target !== window && Je(M.target) && i.state.popoverState === Pe.Open && (E() || i.state.button && i.state.panel && (F.contains(M.target) || (W = (V = i.state.beforePanelSentinel.current) == null ? void 0 : V.contains) != null && W.call(V, M.target) || (k = (J = i.state.afterPanelSentinel.current) == null ? void 0 : J.contains) != null && k.call(J, M.target) || (re = (U = i.state.afterButtonSentinel.current) == null ? void 0 : U.contains) != null && re.call(U, M.target) || i.actions.close()));
4871
+ var z, U, J, k, Y, re;
4872
+ M.target !== window && Je(M.target) && i.state.popoverState === Pe.Open && (S() || i.state.button && i.state.panel && (I.contains(M.target) || (U = (z = i.state.beforePanelSentinel.current) == null ? void 0 : z.contains) != null && U.call(z, M.target) || (k = (J = i.state.afterPanelSentinel.current) == null ? void 0 : J.contains) != null && k.call(J, M.target) || (re = (Y = i.state.afterButtonSentinel.current) == null ? void 0 : Y.contains) != null && re.call(Y, M.target) || i.actions.close()));
4873
4873
  }, !0);
4874
- let z = u === Pe.Open;
4875
- fa(z, F.resolveContainers, (M, V) => {
4876
- i.actions.close(), mn(V, gn.Loose) || (M.preventDefault(), c?.focus());
4874
+ let B = u === Pe.Open;
4875
+ fa(B, I.resolveContainers, (M, z) => {
4876
+ i.actions.close(), mn(z, gn.Loose) || (M.preventDefault(), c?.focus());
4877
4877
  });
4878
- let S = ve({ open: u === Pe.Open, close: i.actions.refocusableClose }), I = de(i, ie((M) => $e(M.popoverState, { [Pe.Open]: we.Open, [Pe.Closed]: we.Closed }), [])), K = { ref: l }, X = ue();
4879
- return $.createElement(Jn, { node: N }, $.createElement(wi, null, $.createElement(Ia.Provider, { value: null }, $.createElement(Sc.Provider, { value: i }, $.createElement(ii, { value: i.actions.refocusableClose }, $.createElement(xa, { value: I }, $.createElement(P, null, X({ ourProps: K, theirProps: o, slot: S, defaultTag: kh, name: "Popover" }))))))));
4878
+ let F = ve({ open: u === Pe.Open, close: i.actions.refocusableClose }), $ = de(i, ie((M) => $e(M.popoverState, { [Pe.Open]: we.Open, [Pe.Closed]: we.Closed }), [])), V = { ref: l }, X = ue();
4879
+ return C.createElement(Jn, { node: N }, C.createElement(wi, null, C.createElement(Ia.Provider, { value: null }, C.createElement(Sc.Provider, { value: i }, C.createElement(ii, { value: i.actions.refocusableClose }, C.createElement(xa, { value: $ }, C.createElement(P, null, X({ ourProps: V, theirProps: o, slot: F, defaultTag: kh, name: "Popover" }))))))));
4880
4880
  }
4881
4881
  let Eh = "button";
4882
4882
  function Ch(e, t) {
4883
- let r = xe(), { id: n = `headlessui-popover-button-${r}`, disabled: a = !1, autoFocus: o = !1, ...i } = e, s = Fa("Popover.Button"), [l, u, c, f, g, d, m] = de(s, ie((O) => [O.popoverState, s.selectors.isPortalled(O), O.button, O.buttonId, O.panel, O.panelId, O.afterButtonSentinel], [])), p = Y(null), v = `headlessui-focus-sentinel-${xe()}`, b = Ec(), x = b?.closeOthers, y = wh() !== null;
4883
+ let r = xe(), { id: n = `headlessui-popover-button-${r}`, disabled: a = !1, autoFocus: o = !1, ...i } = e, s = Fa("Popover.Button"), [l, u, c, f, g, d, m] = de(s, ie((O) => [O.popoverState, s.selectors.isPortalled(O), O.button, O.buttonId, O.panel, O.panelId, O.afterButtonSentinel], [])), p = K(null), v = `headlessui-focus-sentinel-${xe()}`, b = Ec(), x = b?.closeOthers, y = wh() !== null;
4884
4884
  me(() => {
4885
4885
  if (!y) return s.actions.setButtonId(n), () => s.actions.setButtonId(null);
4886
4886
  }, [y, n, s]);
4887
- let [E] = ae(() => /* @__PURE__ */ Symbol()), w = be(p, t, bi(), T((O) => {
4887
+ let [S] = ae(() => /* @__PURE__ */ Symbol()), w = be(p, t, bi(), T((O) => {
4888
4888
  if (!y) {
4889
- if (O) s.state.buttons.current.push(E);
4889
+ if (O) s.state.buttons.current.push(S);
4890
4890
  else {
4891
- let Q = s.state.buttons.current.indexOf(E);
4891
+ let Q = s.state.buttons.current.indexOf(S);
4892
4892
  Q !== -1 && s.state.buttons.current.splice(Q, 1);
4893
4893
  }
4894
4894
  s.state.buttons.current.length > 1 && console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."), O && s.actions.setButton(O);
4895
4895
  }
4896
4896
  })), P = be(p, t), N = T((O) => {
4897
- var Q, B, D;
4897
+ var Q, W, D;
4898
4898
  if (y) {
4899
4899
  if (s.state.popoverState === Pe.Closed) return;
4900
4900
  switch (O.key) {
4901
4901
  case te.Space:
4902
4902
  case te.Enter:
4903
- O.preventDefault(), (B = (Q = O.target).click) == null || B.call(Q), s.actions.close(), (D = s.state.button) == null || D.focus();
4903
+ O.preventDefault(), (W = (Q = O.target).click) == null || W.call(Q), s.actions.close(), (D = s.state.button) == null || D.focus();
4904
4904
  break;
4905
4905
  }
4906
4906
  } else switch (O.key) {
@@ -4916,22 +4916,22 @@ function Ch(e, t) {
4916
4916
  O.preventDefault(), O.stopPropagation(), s.actions.close();
4917
4917
  break;
4918
4918
  }
4919
- }), F = T((O) => {
4919
+ }), I = T((O) => {
4920
4920
  y || O.key === te.Space && O.preventDefault();
4921
- }), z = T((O) => {
4922
- var Q, B;
4923
- vr(O.currentTarget) || a || (y ? (s.actions.close(), (Q = s.state.button) == null || Q.focus()) : (O.preventDefault(), O.stopPropagation(), s.state.popoverState === Pe.Closed ? (x?.(s.state.buttonId), s.actions.open()) : s.actions.close(), (B = s.state.button) == null || B.focus()));
4924
- }), S = T((O) => {
4921
+ }), B = T((O) => {
4922
+ var Q, W;
4923
+ vr(O.currentTarget) || a || (y ? (s.actions.close(), (Q = s.state.button) == null || Q.focus()) : (O.preventDefault(), O.stopPropagation(), s.state.popoverState === Pe.Closed ? (x?.(s.state.buttonId), s.actions.open()) : s.actions.close(), (W = s.state.button) == null || W.focus()));
4924
+ }), F = T((O) => {
4925
4925
  O.preventDefault(), O.stopPropagation();
4926
- }), { isFocusVisible: I, focusProps: K } = Wt({ autoFocus: o }), { isHovered: X, hoverProps: M } = Bt({ isDisabled: a }), { pressed: V, pressProps: W } = Sr({ disabled: a }), J = l === Pe.Open, k = ve({ open: J, active: V || J, disabled: a, hover: X, focus: I, autofocus: o }), U = ga(e, c), re = qe(y ? { ref: P, type: U, onKeyDown: N, onClick: z, disabled: a || void 0, autoFocus: o } : { ref: w, id: f, type: U, "aria-expanded": l === Pe.Open, "aria-controls": g ? d : void 0, disabled: a || void 0, autoFocus: o, onKeyDown: N, onKeyUp: F, onClick: z, onMouseDown: S }, K, M, W), C = Ci(), L = T(() => {
4926
+ }), { isFocusVisible: $, focusProps: V } = Wt({ autoFocus: o }), { isHovered: X, hoverProps: M } = Bt({ isDisabled: a }), { pressed: z, pressProps: U } = Sr({ disabled: a }), J = l === Pe.Open, k = ve({ open: J, active: z || J, disabled: a, hover: X, focus: $, autofocus: o }), Y = ga(e, c), re = qe(y ? { ref: P, type: Y, onKeyDown: N, onClick: B, disabled: a || void 0, autoFocus: o } : { ref: w, id: f, type: Y, "aria-expanded": l === Pe.Open, "aria-controls": g ? d : void 0, disabled: a || void 0, autoFocus: o, onKeyDown: N, onKeyUp: I, onClick: B, onMouseDown: F }, V, M, U), E = Ci(), L = T(() => {
4927
4927
  if (!Ne(s.state.panel)) return;
4928
4928
  let O = s.state.panel;
4929
4929
  function Q() {
4930
- $e(C.current, { [He.Forwards]: () => ze(O, Re.First), [He.Backwards]: () => ze(O, Re.Last) }) === br.Error && ze(fn(Tt(s.state.button)).filter((B) => B.dataset.headlessuiFocusGuard !== "true"), $e(C.current, { [He.Forwards]: Re.Next, [He.Backwards]: Re.Previous }), { relativeTo: s.state.button });
4930
+ $e(E.current, { [He.Forwards]: () => ze(O, Re.First), [He.Backwards]: () => ze(O, Re.Last) }) === br.Error && ze(fn(Tt(s.state.button)).filter((W) => W.dataset.headlessuiFocusGuard !== "true"), $e(E.current, { [He.Forwards]: Re.Next, [He.Backwards]: Re.Previous }), { relativeTo: s.state.button });
4931
4931
  }
4932
4932
  Q();
4933
4933
  }), R = ue();
4934
- return $.createElement($.Fragment, null, R({ ourProps: re, theirProps: i, slot: k, defaultTag: Eh, name: "Popover.Button" }), J && !y && u && $.createElement(bt, { id: v, ref: m, features: ut.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: L }));
4934
+ return C.createElement(C.Fragment, null, R({ ourProps: re, theirProps: i, slot: k, defaultTag: Eh, name: "Popover.Button" }), J && !y && u && C.createElement(bt, { id: v, ref: m, features: ut.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: L }));
4935
4935
  }
4936
4936
  let $h = "div", Rh = Ke.RenderStrategy | Ke.Static;
4937
4937
  function Cc(e, t) {
@@ -4943,13 +4943,13 @@ function Cc(e, t) {
4943
4943
  }
4944
4944
  let Ph = "div", Fh = Ke.RenderStrategy | Ke.Static;
4945
4945
  function Ih(e, t) {
4946
- let r = xe(), { id: n = `headlessui-popover-panel-${r}`, focus: a = !1, anchor: o, portal: i = !1, modal: s = !1, transition: l = !1, ...u } = e, c = Fa("Popover.Panel"), f = de(c, c.selectors.isPortalled), [g, d, m, p, v] = de(c, ie((R) => [R.popoverState, R.button, R.__demoMode, R.beforePanelSentinel, R.afterPanelSentinel], [])), b = `headlessui-focus-sentinel-before-${r}`, x = `headlessui-focus-sentinel-after-${r}`, y = Y(null), E = vi(o), [w, P] = xi(E), N = yi();
4947
- E && (i = !0);
4948
- let [F, z] = ae(null), S = be(y, t, E ? w : null, c.actions.setPanel, z), I = yt(d), K = yt(y.current);
4946
+ let r = xe(), { id: n = `headlessui-popover-panel-${r}`, focus: a = !1, anchor: o, portal: i = !1, modal: s = !1, transition: l = !1, ...u } = e, c = Fa("Popover.Panel"), f = de(c, c.selectors.isPortalled), [g, d, m, p, v] = de(c, ie((R) => [R.popoverState, R.button, R.__demoMode, R.beforePanelSentinel, R.afterPanelSentinel], [])), b = `headlessui-focus-sentinel-before-${r}`, x = `headlessui-focus-sentinel-after-${r}`, y = K(null), S = vi(o), [w, P] = xi(S), N = yi();
4947
+ S && (i = !0);
4948
+ let [I, B] = ae(null), F = be(y, t, S ? w : null, c.actions.setPanel, B), $ = yt(d), V = yt(y.current);
4949
4949
  ge(() => (c.actions.setPanelId(n), () => c.actions.setPanelId(null)), [n, c]);
4950
- let X = Yt(), [M, V] = hn(l, F, X !== null ? (X & we.Open) === we.Open : g === Pe.Open);
4951
- da(M, d, c.actions.close), ma(m ? !1 : s && M, K);
4952
- let W = T((R) => {
4950
+ let X = Yt(), [M, z] = hn(l, I, X !== null ? (X & we.Open) === we.Open : g === Pe.Open);
4951
+ da(M, d, c.actions.close), ma(m ? !1 : s && M, V);
4952
+ let U = T((R) => {
4953
4953
  var O;
4954
4954
  switch (R.key) {
4955
4955
  case te.Escape:
@@ -4968,15 +4968,15 @@ function Ih(e, t) {
4968
4968
  let R = Mt(y.current);
4969
4969
  y.current.contains(R) || ze(y.current, Re.First);
4970
4970
  }, [m, a, y.current, g]);
4971
- let J = ve({ open: g === Pe.Open, close: c.actions.refocusableClose }), k = qe(E ? N() : {}, { ref: S, id: n, onKeyDown: W, onBlur: a && g === Pe.Open ? (R) => {
4972
- var O, Q, B, D, pe;
4971
+ let J = ve({ open: g === Pe.Open, close: c.actions.refocusableClose }), k = qe(S ? N() : {}, { ref: F, id: n, onKeyDown: U, onBlur: a && g === Pe.Open ? (R) => {
4972
+ var O, Q, W, D, pe;
4973
4973
  let Se = R.relatedTarget;
4974
- Se && y.current && ((O = y.current) != null && O.contains(Se) || (c.actions.close(), ((B = (Q = p.current) == null ? void 0 : Q.contains) != null && B.call(Q, Se) || (pe = (D = v.current) == null ? void 0 : D.contains) != null && pe.call(D, Se)) && Se.focus({ preventScroll: !0 })));
4975
- } : void 0, tabIndex: -1, style: { ...u.style, ...P, "--button-width": si(M, d, !0).width }, ...pn(V) }), U = Ci(), re = T(() => {
4974
+ Se && y.current && ((O = y.current) != null && O.contains(Se) || (c.actions.close(), ((W = (Q = p.current) == null ? void 0 : Q.contains) != null && W.call(Q, Se) || (pe = (D = v.current) == null ? void 0 : D.contains) != null && pe.call(D, Se)) && Se.focus({ preventScroll: !0 })));
4975
+ } : void 0, tabIndex: -1, style: { ...u.style, ...P, "--button-width": si(M, d, !0).width }, ...pn(z) }), Y = Ci(), re = T(() => {
4976
4976
  let R = y.current;
4977
4977
  if (!R) return;
4978
4978
  function O() {
4979
- $e(U.current, { [He.Forwards]: () => {
4979
+ $e(Y.current, { [He.Forwards]: () => {
4980
4980
  var Q;
4981
4981
  ze(R, Re.First) === br.Error && ((Q = c.state.afterPanelSentinel.current) == null || Q.focus());
4982
4982
  }, [He.Backwards]: () => {
@@ -4985,15 +4985,15 @@ function Ih(e, t) {
4985
4985
  } });
4986
4986
  }
4987
4987
  O();
4988
- }), C = T(() => {
4988
+ }), E = T(() => {
4989
4989
  let R = y.current;
4990
4990
  if (!R) return;
4991
4991
  function O() {
4992
- $e(U.current, { [He.Forwards]: () => {
4992
+ $e(Y.current, { [He.Forwards]: () => {
4993
4993
  var Q;
4994
4994
  if (!c.state.button) return;
4995
- let B = (Q = Tt(c.state.button)) != null ? Q : document.body, D = fn(B), pe = D.indexOf(c.state.button), Se = D.slice(0, pe + 1), Xe = [...D.slice(pe + 1), ...Se];
4996
- for (let qt of Xe.slice()) if (qt.dataset.headlessuiFocusGuard === "true" || F != null && F.contains(qt)) {
4995
+ let W = (Q = Tt(c.state.button)) != null ? Q : document.body, D = fn(W), pe = D.indexOf(c.state.button), Se = D.slice(0, pe + 1), Xe = [...D.slice(pe + 1), ...Se];
4996
+ for (let qt of Xe.slice()) if (qt.dataset.headlessuiFocusGuard === "true" || I != null && I.contains(qt)) {
4997
4997
  let Xt = Xe.indexOf(qt);
4998
4998
  Xt !== -1 && Xe.splice(Xt, 1);
4999
4999
  }
@@ -5005,11 +5005,11 @@ function Ih(e, t) {
5005
5005
  }
5006
5006
  O();
5007
5007
  }), L = ue();
5008
- return $.createElement(Bu, null, $.createElement(Ia.Provider, { value: n }, $.createElement(ii, { value: c.actions.refocusableClose }, $.createElement(wa, { enabled: i ? e.static || M : !1, ownerDocument: I }, M && f && $.createElement(bt, { id: b, ref: p, features: ut.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: re }), L({ ourProps: k, theirProps: u, slot: J, defaultTag: Ph, features: Fh, visible: M, name: "Popover.Panel" }), M && f && $.createElement(bt, { id: x, ref: v, features: ut.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: C })))));
5008
+ return C.createElement(Bu, null, C.createElement(Ia.Provider, { value: n }, C.createElement(ii, { value: c.actions.refocusableClose }, C.createElement(wa, { enabled: i ? e.static || M : !1, ownerDocument: $ }, M && f && C.createElement(bt, { id: b, ref: p, features: ut.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: re }), L({ ourProps: k, theirProps: u, slot: J, defaultTag: Ph, features: Fh, visible: M, name: "Popover.Panel" }), M && f && C.createElement(bt, { id: x, ref: v, features: ut.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: E })))));
5009
5009
  }
5010
5010
  let Nh = "div";
5011
5011
  function Ah(e, t) {
5012
- let r = Y(null), n = be(r, t), [a, o] = ae([]), i = T((p) => {
5012
+ let r = K(null), n = be(r, t), [a, o] = ae([]), i = T((p) => {
5013
5013
  o((v) => {
5014
5014
  let b = v.indexOf(p);
5015
5015
  if (b !== -1) {
@@ -5024,13 +5024,13 @@ function Ah(e, t) {
5024
5024
  if (!v) return !1;
5025
5025
  let b = Mt(r.current);
5026
5026
  return (p = r.current) != null && p.contains(b) ? !0 : a.some((x) => {
5027
- var y, E;
5028
- return ((y = v.getElementById(x.buttonId.current)) == null ? void 0 : y.contains(b)) || ((E = v.getElementById(x.panelId.current)) == null ? void 0 : E.contains(b));
5027
+ var y, S;
5028
+ return ((y = v.getElementById(x.buttonId.current)) == null ? void 0 : y.contains(b)) || ((S = v.getElementById(x.panelId.current)) == null ? void 0 : S.contains(b));
5029
5029
  });
5030
5030
  }), u = T((p) => {
5031
5031
  for (let v of a) v.buttonId.current !== p && v.close();
5032
5032
  }), c = ye(() => ({ registerPopover: s, unregisterPopover: i, isFocusWithinPopoverGroup: l, closeOthers: u }), [s, i, l, u]), f = ve({}), g = e, d = { ref: n }, m = ue();
5033
- return $.createElement(Jn, null, $.createElement(Fi.Provider, { value: c }, m({ ourProps: d, theirProps: g, slot: f, defaultTag: Nh, name: "Popover.Group" })));
5033
+ return C.createElement(Jn, null, C.createElement(Fi.Provider, { value: c }, m({ ourProps: d, theirProps: g, slot: f, defaultTag: Nh, name: "Popover.Group" })));
5034
5034
  }
5035
5035
  let Oh = le(Sh), Zn = le(Ch), _h = le(Cc), Th = le(Cc), Ii = le(Ih), Mh = le(Ah), $c = Object.assign(Oh, { Button: Zn, Backdrop: Th, Overlay: _h, Panel: Ii, Group: Mh }), Ni = Ce(null);
5036
5036
  Ni.displayName = "GroupContext";
@@ -5038,26 +5038,26 @@ let jh = Ie;
5038
5038
  function Lh(e) {
5039
5039
  var t;
5040
5040
  let [r, n] = ae(null), [a, o] = cn(), [i, s] = la(), l = ye(() => ({ switch: r, setSwitch: n }), [r, n]), u = {}, c = e, f = ue();
5041
- return $.createElement(s, { name: "Switch.Description", value: i }, $.createElement(o, { name: "Switch.Label", value: a, props: { htmlFor: (t = l.switch) == null ? void 0 : t.id, onClick(g) {
5041
+ return C.createElement(s, { name: "Switch.Description", value: i }, C.createElement(o, { name: "Switch.Label", value: a, props: { htmlFor: (t = l.switch) == null ? void 0 : t.id, onClick(g) {
5042
5042
  r && (bo(g.currentTarget) && g.preventDefault(), r.click(), r.focus({ preventScroll: !0 }));
5043
- } } }, $.createElement(Ni.Provider, { value: l }, f({ ourProps: u, theirProps: c, slot: {}, defaultTag: jh, name: "Switch.Group" }))));
5043
+ } } }, C.createElement(Ni.Provider, { value: l }, f({ ourProps: u, theirProps: c, slot: {}, defaultTag: jh, name: "Switch.Group" }))));
5044
5044
  }
5045
5045
  let Dh = "button";
5046
5046
  function Vh(e, t) {
5047
5047
  var r;
5048
- let n = xe(), a = Er(), o = St(), { id: i = a || `headlessui-switch-${n}`, disabled: s = o || !1, checked: l, defaultChecked: u, onChange: c, name: f, value: g, form: d, autoFocus: m = !1, ...p } = e, v = fe(Ni), [b, x] = ae(null), y = Y(null), E = be(y, t, v === null ? null : v.setSwitch, x), w = ri(u), [P, N] = ti(l, c, w ?? !1), F = rt(), [z, S] = ae(!1), I = T(() => {
5049
- S(!0), N?.(!P), F.nextFrame(() => {
5050
- S(!1);
5048
+ let n = xe(), a = Er(), o = St(), { id: i = a || `headlessui-switch-${n}`, disabled: s = o || !1, checked: l, defaultChecked: u, onChange: c, name: f, value: g, form: d, autoFocus: m = !1, ...p } = e, v = fe(Ni), [b, x] = ae(null), y = K(null), S = be(y, t, v === null ? null : v.setSwitch, x), w = ri(u), [P, N] = ti(l, c, w ?? !1), I = rt(), [B, F] = ae(!1), $ = T(() => {
5049
+ F(!0), N?.(!P), I.nextFrame(() => {
5050
+ F(!1);
5051
5051
  });
5052
- }), K = T((D) => {
5052
+ }), V = T((D) => {
5053
5053
  if (vr(D.currentTarget)) return D.preventDefault();
5054
- D.preventDefault(), I();
5054
+ D.preventDefault(), $();
5055
5055
  }), X = T((D) => {
5056
- D.key === te.Space ? (D.preventDefault(), I()) : D.key === te.Enter && ni(D.currentTarget);
5057
- }), M = T((D) => D.preventDefault()), V = Cr(), W = ln(), { isFocusVisible: J, focusProps: k } = Wt({ autoFocus: m }), { isHovered: U, hoverProps: re } = Bt({ isDisabled: s }), { pressed: C, pressProps: L } = Sr({ disabled: s }), R = ve({ checked: P, disabled: s, hover: U, focus: J, active: C, autofocus: m, changing: z }), O = qe({ id: i, ref: E, role: "switch", type: ga(e, b), tabIndex: e.tabIndex === -1 ? 0 : (r = e.tabIndex) != null ? r : 0, "aria-checked": P, "aria-labelledby": V, "aria-describedby": W, disabled: s || void 0, autoFocus: m, onClick: K, onKeyUp: X, onKeyPress: M }, k, re, L), Q = ie(() => {
5056
+ D.key === te.Space ? (D.preventDefault(), $()) : D.key === te.Enter && ni(D.currentTarget);
5057
+ }), M = T((D) => D.preventDefault()), z = Cr(), U = ln(), { isFocusVisible: J, focusProps: k } = Wt({ autoFocus: m }), { isHovered: Y, hoverProps: re } = Bt({ isDisabled: s }), { pressed: E, pressProps: L } = Sr({ disabled: s }), R = ve({ checked: P, disabled: s, hover: Y, focus: J, active: E, autofocus: m, changing: B }), O = qe({ id: i, ref: S, role: "switch", type: ga(e, b), tabIndex: e.tabIndex === -1 ? 0 : (r = e.tabIndex) != null ? r : 0, "aria-checked": P, "aria-labelledby": z, "aria-describedby": U, disabled: s || void 0, autoFocus: m, onClick: V, onKeyUp: X, onKeyPress: M }, k, re, L), Q = ie(() => {
5058
5058
  if (w !== void 0) return N?.(w);
5059
- }, [N, w]), B = ue();
5060
- return $.createElement($.Fragment, null, f != null && $.createElement(ai, { disabled: s, data: { [f]: g || "on" }, overrides: { type: "checkbox", checked: P }, form: d, onReset: Q }), B({ ourProps: O, theirProps: p, slot: R, defaultTag: Dh, name: "Switch" }));
5059
+ }, [N, w]), W = ue();
5060
+ return C.createElement(C.Fragment, null, f != null && C.createElement(ai, { disabled: s, data: { [f]: g || "on" }, overrides: { type: "checkbox", checked: P }, form: d, onReset: Q }), W({ ourProps: O, theirProps: p, slot: R, defaultTag: Dh, name: "Switch" }));
5061
5061
  }
5062
5062
  let zh = le(Vh), Hh = Lh, Gh = $r, Bh = un, Wh = Object.assign(zh, { Group: Hh, Label: Gh, Description: Bh }), Uh = "textarea";
5063
5063
  function Yh(e, t) {
@@ -5328,10 +5328,10 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
5328
5328
  }
5329
5329
  v = !1;
5330
5330
  }
5331
- const x = g.length === 0 ? "" : g.length === 1 ? g[0] : o(g).join(":"), y = d ? x + Co : x, E = y + b;
5332
- if (i.indexOf(E) > -1)
5331
+ const x = g.length === 0 ? "" : g.length === 1 ? g[0] : o(g).join(":"), y = d ? x + Co : x, S = y + b;
5332
+ if (i.indexOf(S) > -1)
5333
5333
  continue;
5334
- i.push(E);
5334
+ i.push(S);
5335
5335
  const w = a(b, v);
5336
5336
  for (let P = 0; P < w.length; ++P) {
5337
5337
  const N = w[P];
@@ -5380,7 +5380,7 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
5380
5380
  const n = Ac.exec(e);
5381
5381
  return n ? n[1] ? t(n[1]) : r : !1;
5382
5382
  }, _c = (e) => e === "position" || e === "percentage", Tc = (e) => e === "image" || e === "url", Mc = (e) => e === "length" || e === "size" || e === "bg-size", jc = (e) => e === "length", Ov = (e) => e === "number", _v = (e) => e === "family-name", Lc = (e) => e === "shadow", Tv = () => {
5383
- const e = Fe("color"), t = Fe("font"), r = Fe("text"), n = Fe("font-weight"), a = Fe("tracking"), o = Fe("leading"), i = Fe("breakpoint"), s = Fe("container"), l = Fe("spacing"), u = Fe("radius"), c = Fe("shadow"), f = Fe("inset-shadow"), g = Fe("text-shadow"), d = Fe("drop-shadow"), m = Fe("blur"), p = Fe("perspective"), v = Fe("aspect"), b = Fe("ease"), x = Fe("animate"), y = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], E = () => [
5383
+ const e = Fe("color"), t = Fe("font"), r = Fe("text"), n = Fe("font-weight"), a = Fe("tracking"), o = Fe("leading"), i = Fe("breakpoint"), s = Fe("container"), l = Fe("spacing"), u = Fe("radius"), c = Fe("shadow"), f = Fe("inset-shadow"), g = Fe("text-shadow"), d = Fe("drop-shadow"), m = Fe("blur"), p = Fe("perspective"), v = Fe("aspect"), b = Fe("ease"), x = Fe("animate"), y = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
5384
5384
  "center",
5385
5385
  "top",
5386
5386
  "bottom",
@@ -5398,13 +5398,13 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
5398
5398
  "bottom-left",
5399
5399
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
5400
5400
  "left-bottom"
5401
- ], w = () => [...E(), G, H], P = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", "contain", "none"], F = () => [G, H, l], z = () => [cr, "full", "auto", ...F()], S = () => [Ct, "none", "subgrid", G, H], I = () => ["auto", {
5401
+ ], w = () => [...S(), G, H], P = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", "contain", "none"], I = () => [G, H, l], B = () => [cr, "full", "auto", ...I()], F = () => [Ct, "none", "subgrid", G, H], $ = () => ["auto", {
5402
5402
  span: ["full", Ct, G, H]
5403
- }, Ct, G, H], K = () => [Ct, "auto", G, H], X = () => ["auto", "min", "max", "fr", G, H], M = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], V = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], W = () => ["auto", ...F()], J = () => [cr, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...F()], k = () => [e, G, H], U = () => [...E(), Us, Ws, {
5403
+ }, Ct, G, H], V = () => [Ct, "auto", G, H], X = () => ["auto", "min", "max", "fr", G, H], M = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], z = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], U = () => ["auto", ...I()], J = () => [cr, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...I()], k = () => [e, G, H], Y = () => [...S(), Us, Ws, {
5404
5404
  position: [G, H]
5405
5405
  }], re = () => ["no-repeat", {
5406
5406
  repeat: ["", "x", "y", "space", "round"]
5407
- }], C = () => ["auto", "cover", "contain", Nv, Pv, {
5407
+ }], E = () => ["auto", "cover", "contain", Nv, Pv, {
5408
5408
  size: [G, H]
5409
5409
  }], L = () => [Ka, Mr, Jt], R = () => [
5410
5410
  // Deprecated since Tailwind CSS v4.0.0
@@ -5414,14 +5414,14 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
5414
5414
  u,
5415
5415
  G,
5416
5416
  H
5417
- ], O = () => ["", se, Mr, Jt], Q = () => ["solid", "dashed", "dotted", "double"], B = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], D = () => [se, Ka, Us, Ws], pe = () => [
5417
+ ], O = () => ["", se, Mr, Jt], Q = () => ["solid", "dashed", "dotted", "double"], W = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], D = () => [se, Ka, Us, Ws], pe = () => [
5418
5418
  // Deprecated since Tailwind CSS v4.0.0
5419
5419
  "",
5420
5420
  "none",
5421
5421
  m,
5422
5422
  G,
5423
5423
  H
5424
- ], Se = () => ["none", se, G, H], Xe = () => ["none", se, G, H], qt = () => [se, G, H], Xt = () => [cr, "full", ...F()];
5424
+ ], Se = () => ["none", se, G, H], Xe = () => ["none", se, G, H], qt = () => [se, G, H], Xt = () => [cr, "full", ...I()];
5425
5425
  return {
5426
5426
  cacheSize: 500,
5427
5427
  theme: {
@@ -5599,63 +5599,63 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
5599
5599
  * @see https://tailwindcss.com/docs/top-right-bottom-left
5600
5600
  */
5601
5601
  inset: [{
5602
- inset: z()
5602
+ inset: B()
5603
5603
  }],
5604
5604
  /**
5605
5605
  * Right / Left
5606
5606
  * @see https://tailwindcss.com/docs/top-right-bottom-left
5607
5607
  */
5608
5608
  "inset-x": [{
5609
- "inset-x": z()
5609
+ "inset-x": B()
5610
5610
  }],
5611
5611
  /**
5612
5612
  * Top / Bottom
5613
5613
  * @see https://tailwindcss.com/docs/top-right-bottom-left
5614
5614
  */
5615
5615
  "inset-y": [{
5616
- "inset-y": z()
5616
+ "inset-y": B()
5617
5617
  }],
5618
5618
  /**
5619
5619
  * Start
5620
5620
  * @see https://tailwindcss.com/docs/top-right-bottom-left
5621
5621
  */
5622
5622
  start: [{
5623
- start: z()
5623
+ start: B()
5624
5624
  }],
5625
5625
  /**
5626
5626
  * End
5627
5627
  * @see https://tailwindcss.com/docs/top-right-bottom-left
5628
5628
  */
5629
5629
  end: [{
5630
- end: z()
5630
+ end: B()
5631
5631
  }],
5632
5632
  /**
5633
5633
  * Top
5634
5634
  * @see https://tailwindcss.com/docs/top-right-bottom-left
5635
5635
  */
5636
5636
  top: [{
5637
- top: z()
5637
+ top: B()
5638
5638
  }],
5639
5639
  /**
5640
5640
  * Right
5641
5641
  * @see https://tailwindcss.com/docs/top-right-bottom-left
5642
5642
  */
5643
5643
  right: [{
5644
- right: z()
5644
+ right: B()
5645
5645
  }],
5646
5646
  /**
5647
5647
  * Bottom
5648
5648
  * @see https://tailwindcss.com/docs/top-right-bottom-left
5649
5649
  */
5650
5650
  bottom: [{
5651
- bottom: z()
5651
+ bottom: B()
5652
5652
  }],
5653
5653
  /**
5654
5654
  * Left
5655
5655
  * @see https://tailwindcss.com/docs/top-right-bottom-left
5656
5656
  */
5657
5657
  left: [{
5658
- left: z()
5658
+ left: B()
5659
5659
  }],
5660
5660
  /**
5661
5661
  * Visibility
@@ -5677,7 +5677,7 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
5677
5677
  * @see https://tailwindcss.com/docs/flex-basis
5678
5678
  */
5679
5679
  basis: [{
5680
- basis: [cr, "full", "auto", s, ...F()]
5680
+ basis: [cr, "full", "auto", s, ...I()]
5681
5681
  }],
5682
5682
  /**
5683
5683
  * Flex Direction
@@ -5726,56 +5726,56 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
5726
5726
  * @see https://tailwindcss.com/docs/grid-template-columns
5727
5727
  */
5728
5728
  "grid-cols": [{
5729
- "grid-cols": S()
5729
+ "grid-cols": F()
5730
5730
  }],
5731
5731
  /**
5732
5732
  * Grid Column Start / End
5733
5733
  * @see https://tailwindcss.com/docs/grid-column
5734
5734
  */
5735
5735
  "col-start-end": [{
5736
- col: I()
5736
+ col: $()
5737
5737
  }],
5738
5738
  /**
5739
5739
  * Grid Column Start
5740
5740
  * @see https://tailwindcss.com/docs/grid-column
5741
5741
  */
5742
5742
  "col-start": [{
5743
- "col-start": K()
5743
+ "col-start": V()
5744
5744
  }],
5745
5745
  /**
5746
5746
  * Grid Column End
5747
5747
  * @see https://tailwindcss.com/docs/grid-column
5748
5748
  */
5749
5749
  "col-end": [{
5750
- "col-end": K()
5750
+ "col-end": V()
5751
5751
  }],
5752
5752
  /**
5753
5753
  * Grid Template Rows
5754
5754
  * @see https://tailwindcss.com/docs/grid-template-rows
5755
5755
  */
5756
5756
  "grid-rows": [{
5757
- "grid-rows": S()
5757
+ "grid-rows": F()
5758
5758
  }],
5759
5759
  /**
5760
5760
  * Grid Row Start / End
5761
5761
  * @see https://tailwindcss.com/docs/grid-row
5762
5762
  */
5763
5763
  "row-start-end": [{
5764
- row: I()
5764
+ row: $()
5765
5765
  }],
5766
5766
  /**
5767
5767
  * Grid Row Start
5768
5768
  * @see https://tailwindcss.com/docs/grid-row
5769
5769
  */
5770
5770
  "row-start": [{
5771
- "row-start": K()
5771
+ "row-start": V()
5772
5772
  }],
5773
5773
  /**
5774
5774
  * Grid Row End
5775
5775
  * @see https://tailwindcss.com/docs/grid-row
5776
5776
  */
5777
5777
  "row-end": [{
5778
- "row-end": K()
5778
+ "row-end": V()
5779
5779
  }],
5780
5780
  /**
5781
5781
  * Grid Auto Flow
@@ -5803,21 +5803,21 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
5803
5803
  * @see https://tailwindcss.com/docs/gap
5804
5804
  */
5805
5805
  gap: [{
5806
- gap: F()
5806
+ gap: I()
5807
5807
  }],
5808
5808
  /**
5809
5809
  * Gap X
5810
5810
  * @see https://tailwindcss.com/docs/gap
5811
5811
  */
5812
5812
  "gap-x": [{
5813
- "gap-x": F()
5813
+ "gap-x": I()
5814
5814
  }],
5815
5815
  /**
5816
5816
  * Gap Y
5817
5817
  * @see https://tailwindcss.com/docs/gap
5818
5818
  */
5819
5819
  "gap-y": [{
5820
- "gap-y": F()
5820
+ "gap-y": I()
5821
5821
  }],
5822
5822
  /**
5823
5823
  * Justify Content
@@ -5831,14 +5831,14 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
5831
5831
  * @see https://tailwindcss.com/docs/justify-items
5832
5832
  */
5833
5833
  "justify-items": [{
5834
- "justify-items": [...V(), "normal"]
5834
+ "justify-items": [...z(), "normal"]
5835
5835
  }],
5836
5836
  /**
5837
5837
  * Justify Self
5838
5838
  * @see https://tailwindcss.com/docs/justify-self
5839
5839
  */
5840
5840
  "justify-self": [{
5841
- "justify-self": ["auto", ...V()]
5841
+ "justify-self": ["auto", ...z()]
5842
5842
  }],
5843
5843
  /**
5844
5844
  * Align Content
@@ -5852,7 +5852,7 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
5852
5852
  * @see https://tailwindcss.com/docs/align-items
5853
5853
  */
5854
5854
  "align-items": [{
5855
- items: [...V(), {
5855
+ items: [...z(), {
5856
5856
  baseline: ["", "last"]
5857
5857
  }]
5858
5858
  }],
@@ -5861,7 +5861,7 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
5861
5861
  * @see https://tailwindcss.com/docs/align-self
5862
5862
  */
5863
5863
  "align-self": [{
5864
- self: ["auto", ...V(), {
5864
+ self: ["auto", ...z(), {
5865
5865
  baseline: ["", "last"]
5866
5866
  }]
5867
5867
  }],
@@ -5877,14 +5877,14 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
5877
5877
  * @see https://tailwindcss.com/docs/place-items
5878
5878
  */
5879
5879
  "place-items": [{
5880
- "place-items": [...V(), "baseline"]
5880
+ "place-items": [...z(), "baseline"]
5881
5881
  }],
5882
5882
  /**
5883
5883
  * Place Self
5884
5884
  * @see https://tailwindcss.com/docs/place-self
5885
5885
  */
5886
5886
  "place-self": [{
5887
- "place-self": ["auto", ...V()]
5887
+ "place-self": ["auto", ...z()]
5888
5888
  }],
5889
5889
  // Spacing
5890
5890
  /**
@@ -5892,133 +5892,133 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
5892
5892
  * @see https://tailwindcss.com/docs/padding
5893
5893
  */
5894
5894
  p: [{
5895
- p: F()
5895
+ p: I()
5896
5896
  }],
5897
5897
  /**
5898
5898
  * Padding X
5899
5899
  * @see https://tailwindcss.com/docs/padding
5900
5900
  */
5901
5901
  px: [{
5902
- px: F()
5902
+ px: I()
5903
5903
  }],
5904
5904
  /**
5905
5905
  * Padding Y
5906
5906
  * @see https://tailwindcss.com/docs/padding
5907
5907
  */
5908
5908
  py: [{
5909
- py: F()
5909
+ py: I()
5910
5910
  }],
5911
5911
  /**
5912
5912
  * Padding Start
5913
5913
  * @see https://tailwindcss.com/docs/padding
5914
5914
  */
5915
5915
  ps: [{
5916
- ps: F()
5916
+ ps: I()
5917
5917
  }],
5918
5918
  /**
5919
5919
  * Padding End
5920
5920
  * @see https://tailwindcss.com/docs/padding
5921
5921
  */
5922
5922
  pe: [{
5923
- pe: F()
5923
+ pe: I()
5924
5924
  }],
5925
5925
  /**
5926
5926
  * Padding Top
5927
5927
  * @see https://tailwindcss.com/docs/padding
5928
5928
  */
5929
5929
  pt: [{
5930
- pt: F()
5930
+ pt: I()
5931
5931
  }],
5932
5932
  /**
5933
5933
  * Padding Right
5934
5934
  * @see https://tailwindcss.com/docs/padding
5935
5935
  */
5936
5936
  pr: [{
5937
- pr: F()
5937
+ pr: I()
5938
5938
  }],
5939
5939
  /**
5940
5940
  * Padding Bottom
5941
5941
  * @see https://tailwindcss.com/docs/padding
5942
5942
  */
5943
5943
  pb: [{
5944
- pb: F()
5944
+ pb: I()
5945
5945
  }],
5946
5946
  /**
5947
5947
  * Padding Left
5948
5948
  * @see https://tailwindcss.com/docs/padding
5949
5949
  */
5950
5950
  pl: [{
5951
- pl: F()
5951
+ pl: I()
5952
5952
  }],
5953
5953
  /**
5954
5954
  * Margin
5955
5955
  * @see https://tailwindcss.com/docs/margin
5956
5956
  */
5957
5957
  m: [{
5958
- m: W()
5958
+ m: U()
5959
5959
  }],
5960
5960
  /**
5961
5961
  * Margin X
5962
5962
  * @see https://tailwindcss.com/docs/margin
5963
5963
  */
5964
5964
  mx: [{
5965
- mx: W()
5965
+ mx: U()
5966
5966
  }],
5967
5967
  /**
5968
5968
  * Margin Y
5969
5969
  * @see https://tailwindcss.com/docs/margin
5970
5970
  */
5971
5971
  my: [{
5972
- my: W()
5972
+ my: U()
5973
5973
  }],
5974
5974
  /**
5975
5975
  * Margin Start
5976
5976
  * @see https://tailwindcss.com/docs/margin
5977
5977
  */
5978
5978
  ms: [{
5979
- ms: W()
5979
+ ms: U()
5980
5980
  }],
5981
5981
  /**
5982
5982
  * Margin End
5983
5983
  * @see https://tailwindcss.com/docs/margin
5984
5984
  */
5985
5985
  me: [{
5986
- me: W()
5986
+ me: U()
5987
5987
  }],
5988
5988
  /**
5989
5989
  * Margin Top
5990
5990
  * @see https://tailwindcss.com/docs/margin
5991
5991
  */
5992
5992
  mt: [{
5993
- mt: W()
5993
+ mt: U()
5994
5994
  }],
5995
5995
  /**
5996
5996
  * Margin Right
5997
5997
  * @see https://tailwindcss.com/docs/margin
5998
5998
  */
5999
5999
  mr: [{
6000
- mr: W()
6000
+ mr: U()
6001
6001
  }],
6002
6002
  /**
6003
6003
  * Margin Bottom
6004
6004
  * @see https://tailwindcss.com/docs/margin
6005
6005
  */
6006
6006
  mb: [{
6007
- mb: W()
6007
+ mb: U()
6008
6008
  }],
6009
6009
  /**
6010
6010
  * Margin Left
6011
6011
  * @see https://tailwindcss.com/docs/margin
6012
6012
  */
6013
6013
  ml: [{
6014
- ml: W()
6014
+ ml: U()
6015
6015
  }],
6016
6016
  /**
6017
6017
  * Space Between X
6018
6018
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
6019
6019
  */
6020
6020
  "space-x": [{
6021
- "space-x": F()
6021
+ "space-x": I()
6022
6022
  }],
6023
6023
  /**
6024
6024
  * Space Between X Reverse
@@ -6030,7 +6030,7 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
6030
6030
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
6031
6031
  */
6032
6032
  "space-y": [{
6033
- "space-y": F()
6033
+ "space-y": I()
6034
6034
  }],
6035
6035
  /**
6036
6036
  * Space Between Y Reverse
@@ -6199,7 +6199,7 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
6199
6199
  leading: [
6200
6200
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
6201
6201
  o,
6202
- ...F()
6202
+ ...I()
6203
6203
  ]
6204
6204
  }],
6205
6205
  /**
@@ -6300,7 +6300,7 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
6300
6300
  * @see https://tailwindcss.com/docs/text-indent
6301
6301
  */
6302
6302
  indent: [{
6303
- indent: F()
6303
+ indent: I()
6304
6304
  }],
6305
6305
  /**
6306
6306
  * Vertical Alignment
@@ -6373,7 +6373,7 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
6373
6373
  * @see https://tailwindcss.com/docs/background-position
6374
6374
  */
6375
6375
  "bg-position": [{
6376
- bg: U()
6376
+ bg: Y()
6377
6377
  }],
6378
6378
  /**
6379
6379
  * Background Repeat
@@ -6387,7 +6387,7 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
6387
6387
  * @see https://tailwindcss.com/docs/background-size
6388
6388
  */
6389
6389
  "bg-size": [{
6390
- bg: C()
6390
+ bg: E()
6391
6391
  }],
6392
6392
  /**
6393
6393
  * Background Image
@@ -6875,14 +6875,14 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
6875
6875
  * @see https://tailwindcss.com/docs/mix-blend-mode
6876
6876
  */
6877
6877
  "mix-blend": [{
6878
- "mix-blend": [...B(), "plus-darker", "plus-lighter"]
6878
+ "mix-blend": [...W(), "plus-darker", "plus-lighter"]
6879
6879
  }],
6880
6880
  /**
6881
6881
  * Background Blend Mode
6882
6882
  * @see https://tailwindcss.com/docs/background-blend-mode
6883
6883
  */
6884
6884
  "bg-blend": [{
6885
- "bg-blend": B()
6885
+ "bg-blend": W()
6886
6886
  }],
6887
6887
  /**
6888
6888
  * Mask Clip
@@ -7014,7 +7014,7 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
7014
7014
  }]
7015
7015
  }],
7016
7016
  "mask-image-radial-pos": [{
7017
- "mask-radial-at": E()
7017
+ "mask-radial-at": S()
7018
7018
  }],
7019
7019
  "mask-image-conic-pos": [{
7020
7020
  "mask-conic": [se]
@@ -7050,7 +7050,7 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
7050
7050
  * @see https://tailwindcss.com/docs/mask-position
7051
7051
  */
7052
7052
  "mask-position": [{
7053
- mask: U()
7053
+ mask: Y()
7054
7054
  }],
7055
7055
  /**
7056
7056
  * Mask Repeat
@@ -7064,7 +7064,7 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
7064
7064
  * @see https://tailwindcss.com/docs/mask-size
7065
7065
  */
7066
7066
  "mask-size": [{
7067
- mask: C()
7067
+ mask: E()
7068
7068
  }],
7069
7069
  /**
7070
7070
  * Mask Type
@@ -7264,21 +7264,21 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
7264
7264
  * @see https://tailwindcss.com/docs/border-spacing
7265
7265
  */
7266
7266
  "border-spacing": [{
7267
- "border-spacing": F()
7267
+ "border-spacing": I()
7268
7268
  }],
7269
7269
  /**
7270
7270
  * Border Spacing X
7271
7271
  * @see https://tailwindcss.com/docs/border-spacing
7272
7272
  */
7273
7273
  "border-spacing-x": [{
7274
- "border-spacing-x": F()
7274
+ "border-spacing-x": I()
7275
7275
  }],
7276
7276
  /**
7277
7277
  * Border Spacing Y
7278
7278
  * @see https://tailwindcss.com/docs/border-spacing
7279
7279
  */
7280
7280
  "border-spacing-y": [{
7281
- "border-spacing-y": F()
7281
+ "border-spacing-y": I()
7282
7282
  }],
7283
7283
  /**
7284
7284
  * Table Layout
@@ -7570,126 +7570,126 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
7570
7570
  * @see https://tailwindcss.com/docs/scroll-margin
7571
7571
  */
7572
7572
  "scroll-m": [{
7573
- "scroll-m": F()
7573
+ "scroll-m": I()
7574
7574
  }],
7575
7575
  /**
7576
7576
  * Scroll Margin X
7577
7577
  * @see https://tailwindcss.com/docs/scroll-margin
7578
7578
  */
7579
7579
  "scroll-mx": [{
7580
- "scroll-mx": F()
7580
+ "scroll-mx": I()
7581
7581
  }],
7582
7582
  /**
7583
7583
  * Scroll Margin Y
7584
7584
  * @see https://tailwindcss.com/docs/scroll-margin
7585
7585
  */
7586
7586
  "scroll-my": [{
7587
- "scroll-my": F()
7587
+ "scroll-my": I()
7588
7588
  }],
7589
7589
  /**
7590
7590
  * Scroll Margin Start
7591
7591
  * @see https://tailwindcss.com/docs/scroll-margin
7592
7592
  */
7593
7593
  "scroll-ms": [{
7594
- "scroll-ms": F()
7594
+ "scroll-ms": I()
7595
7595
  }],
7596
7596
  /**
7597
7597
  * Scroll Margin End
7598
7598
  * @see https://tailwindcss.com/docs/scroll-margin
7599
7599
  */
7600
7600
  "scroll-me": [{
7601
- "scroll-me": F()
7601
+ "scroll-me": I()
7602
7602
  }],
7603
7603
  /**
7604
7604
  * Scroll Margin Top
7605
7605
  * @see https://tailwindcss.com/docs/scroll-margin
7606
7606
  */
7607
7607
  "scroll-mt": [{
7608
- "scroll-mt": F()
7608
+ "scroll-mt": I()
7609
7609
  }],
7610
7610
  /**
7611
7611
  * Scroll Margin Right
7612
7612
  * @see https://tailwindcss.com/docs/scroll-margin
7613
7613
  */
7614
7614
  "scroll-mr": [{
7615
- "scroll-mr": F()
7615
+ "scroll-mr": I()
7616
7616
  }],
7617
7617
  /**
7618
7618
  * Scroll Margin Bottom
7619
7619
  * @see https://tailwindcss.com/docs/scroll-margin
7620
7620
  */
7621
7621
  "scroll-mb": [{
7622
- "scroll-mb": F()
7622
+ "scroll-mb": I()
7623
7623
  }],
7624
7624
  /**
7625
7625
  * Scroll Margin Left
7626
7626
  * @see https://tailwindcss.com/docs/scroll-margin
7627
7627
  */
7628
7628
  "scroll-ml": [{
7629
- "scroll-ml": F()
7629
+ "scroll-ml": I()
7630
7630
  }],
7631
7631
  /**
7632
7632
  * Scroll Padding
7633
7633
  * @see https://tailwindcss.com/docs/scroll-padding
7634
7634
  */
7635
7635
  "scroll-p": [{
7636
- "scroll-p": F()
7636
+ "scroll-p": I()
7637
7637
  }],
7638
7638
  /**
7639
7639
  * Scroll Padding X
7640
7640
  * @see https://tailwindcss.com/docs/scroll-padding
7641
7641
  */
7642
7642
  "scroll-px": [{
7643
- "scroll-px": F()
7643
+ "scroll-px": I()
7644
7644
  }],
7645
7645
  /**
7646
7646
  * Scroll Padding Y
7647
7647
  * @see https://tailwindcss.com/docs/scroll-padding
7648
7648
  */
7649
7649
  "scroll-py": [{
7650
- "scroll-py": F()
7650
+ "scroll-py": I()
7651
7651
  }],
7652
7652
  /**
7653
7653
  * Scroll Padding Start
7654
7654
  * @see https://tailwindcss.com/docs/scroll-padding
7655
7655
  */
7656
7656
  "scroll-ps": [{
7657
- "scroll-ps": F()
7657
+ "scroll-ps": I()
7658
7658
  }],
7659
7659
  /**
7660
7660
  * Scroll Padding End
7661
7661
  * @see https://tailwindcss.com/docs/scroll-padding
7662
7662
  */
7663
7663
  "scroll-pe": [{
7664
- "scroll-pe": F()
7664
+ "scroll-pe": I()
7665
7665
  }],
7666
7666
  /**
7667
7667
  * Scroll Padding Top
7668
7668
  * @see https://tailwindcss.com/docs/scroll-padding
7669
7669
  */
7670
7670
  "scroll-pt": [{
7671
- "scroll-pt": F()
7671
+ "scroll-pt": I()
7672
7672
  }],
7673
7673
  /**
7674
7674
  * Scroll Padding Right
7675
7675
  * @see https://tailwindcss.com/docs/scroll-padding
7676
7676
  */
7677
7677
  "scroll-pr": [{
7678
- "scroll-pr": F()
7678
+ "scroll-pr": I()
7679
7679
  }],
7680
7680
  /**
7681
7681
  * Scroll Padding Bottom
7682
7682
  * @see https://tailwindcss.com/docs/scroll-padding
7683
7683
  */
7684
7684
  "scroll-pb": [{
7685
- "scroll-pb": F()
7685
+ "scroll-pb": I()
7686
7686
  }],
7687
7687
  /**
7688
7688
  * Scroll Padding Left
7689
7689
  * @see https://tailwindcss.com/docs/scroll-padding
7690
7690
  */
7691
7691
  "scroll-pl": [{
7692
- "scroll-pl": F()
7692
+ "scroll-pl": I()
7693
7693
  }],
7694
7694
  /**
7695
7695
  * Scroll Snap Align
@@ -7885,7 +7885,7 @@ const jv = ce(
7885
7885
  shape: "circle"
7886
7886
  }
7887
7887
  }
7888
- ), Dc = $.forwardRef(
7888
+ ), Dc = C.forwardRef(
7889
7889
  ({
7890
7890
  className: e,
7891
7891
  size: t,
@@ -8172,7 +8172,7 @@ const Dv = ce("animate-spin rounded-full transition-colors", {
8172
8172
  size: "default"
8173
8173
  }
8174
8174
  }
8175
- ), Ve = $.forwardRef(
8175
+ ), Ve = C.forwardRef(
8176
8176
  ({
8177
8177
  className: e,
8178
8178
  colorScheme: t,
@@ -8239,7 +8239,7 @@ const Hv = ce(
8239
8239
  padding: "md"
8240
8240
  }
8241
8241
  }
8242
- ), Gv = $.forwardRef(
8242
+ ), Gv = C.forwardRef(
8243
8243
  ({
8244
8244
  className: e,
8245
8245
  variant: t,
@@ -10367,8 +10367,8 @@ function Hi(e) {
10367
10367
  } : zt("generateAbstractIcon", b) || {
10368
10368
  children: [],
10369
10369
  attributes: {}
10370
- }, y = x.children, E = x.attributes;
10371
- return b.children = y, b.attributes = E, s ? yx(b) : bx(b);
10370
+ }, y = x.children, S = x.attributes;
10371
+ return b.children = y, b.attributes = S, s ? yx(b) : bx(b);
10372
10372
  }
10373
10373
  function ul(e) {
10374
10374
  var t = e.content, r = e.width, n = e.height, a = e.transform, o = e.extra, i = e.watchable, s = i === void 0 ? !1 : i, l = A(A({}, o.attributes), {}, {
@@ -10952,9 +10952,9 @@ function bl(e, t) {
10952
10952
  }
10953
10953
  if (b && !v && (!i || i.getAttribute(Ti) !== d || i.getAttribute(Mi) !== x)) {
10954
10954
  e.setAttribute(r, x), i && e.removeChild(i);
10955
- var E = Tx(), w = E.extra;
10955
+ var S = Tx(), w = S.extra;
10956
10956
  w.attributes[Io] = t, Lo(b, d).then(function(P) {
10957
- var N = Hi(A(A({}, E), {}, {
10957
+ var N = Hi(A(A({}, S), {}, {
10958
10958
  icons: {
10959
10959
  main: P,
10960
10960
  mask: _d()
@@ -10963,9 +10963,9 @@ function bl(e, t) {
10963
10963
  iconName: x,
10964
10964
  extra: w,
10965
10965
  watchable: !0
10966
- })), F = ke.createElementNS("http://www.w3.org/2000/svg", "svg");
10967
- t === "::before" ? e.insertBefore(F, e.firstChild) : e.appendChild(F), F.outerHTML = N.map(function(z) {
10968
- return Sn(z);
10966
+ })), I = ke.createElementNS("http://www.w3.org/2000/svg", "svg");
10967
+ t === "::before" ? e.insertBefore(I, e.firstChild) : e.appendChild(I), I.outerHTML = N.map(function(B) {
10968
+ return Sn(B);
10969
10969
  }).join(`
10970
10970
  `), e.removeAttribute(r), n();
10971
10971
  }).catch(a);
@@ -11250,7 +11250,7 @@ var n1 = {
11250
11250
  tag: "g",
11251
11251
  attributes: A({}, d.outer),
11252
11252
  children: [v]
11253
- }, x = "mask-".concat(s || rl()), y = "clip-".concat(s || rl()), E = {
11253
+ }, x = "mask-".concat(s || rl()), y = "clip-".concat(s || rl()), S = {
11254
11254
  tag: "mask",
11255
11255
  attributes: A(A({}, ro), {}, {
11256
11256
  id: x,
@@ -11266,7 +11266,7 @@ var n1 = {
11266
11266
  id: y
11267
11267
  },
11268
11268
  children: r1(g)
11269
- }, E]
11269
+ }, S]
11270
11270
  };
11271
11271
  return n.push(w, {
11272
11272
  tag: "rect",
@@ -11443,7 +11443,7 @@ function Bd(e, t, r = {}) {
11443
11443
  } = r;
11444
11444
  return i && (o.style = o.style ? { ...o.style, ...i } : i), s && (o.role = s), l && (o["aria-label"] = l, o["aria-hidden"] = "false"), e(t.tag, { ...o, ...u }, ...n);
11445
11445
  }
11446
- var f1 = Bd.bind(null, $.createElement), Sl = (e, t) => {
11446
+ var f1 = Bd.bind(null, C.createElement), Sl = (e, t) => {
11447
11447
  const r = xe();
11448
11448
  return e || (t ? r : void 0);
11449
11449
  }, g1 = class {
@@ -11558,9 +11558,9 @@ function x1(e) {
11558
11558
  swapOpacity: b,
11559
11559
  rotateBy: x,
11560
11560
  widthAuto: y,
11561
- className: E
11561
+ className: S
11562
11562
  } = e, w = [];
11563
- return E && w.push(...E.split(" ")), t && w.push(gt.beat), r && w.push(gt.fade), n && w.push(gt.beatFade), a && w.push(gt.bounce), o && w.push(gt.shake), i && w.push(gt.spin), l && w.push(gt.spinReverse), s && w.push(gt.spinPulse), u && w.push(gt.pulse), c && w.push(mt.fixedWidth), f && w.push(mt.inverse), g && w.push(mt.border), d === !0 && w.push(mt.flip), (d === "horizontal" || d === "both") && w.push(mt.flipHorizontal), (d === "vertical" || d === "both") && w.push(mt.flipVertical), m != null && w.push(b1[m]), p != null && p !== 0 && w.push(v1[p]), v != null && w.push(h1[v]), b && w.push(mt.swapOpacity), p1 ? (x && w.push(mt.rotateBy), y && w.push(mt.widthAuto), (on.cssPrefix || on.familyPrefix || qr) === qr ? w : (
11563
+ return S && w.push(...S.split(" ")), t && w.push(gt.beat), r && w.push(gt.fade), n && w.push(gt.beatFade), a && w.push(gt.bounce), o && w.push(gt.shake), i && w.push(gt.spin), l && w.push(gt.spinReverse), s && w.push(gt.spinPulse), u && w.push(gt.pulse), c && w.push(mt.fixedWidth), f && w.push(mt.inverse), g && w.push(mt.border), d === !0 && w.push(mt.flip), (d === "horizontal" || d === "both") && w.push(mt.flipHorizontal), (d === "vertical" || d === "both") && w.push(mt.flipVertical), m != null && w.push(b1[m]), p != null && p !== 0 && w.push(v1[p]), v != null && w.push(h1[v]), b && w.push(mt.swapOpacity), p1 ? (x && w.push(mt.rotateBy), y && w.push(mt.widthAuto), (on.cssPrefix || on.familyPrefix || qr) === qr ? w : (
11564
11564
  // TODO: see if we can achieve custom prefix support without iterating
11565
11565
  // eslint-disable-next-line unicorn/no-array-callback-reference
11566
11566
  w.map(y1)
@@ -11603,7 +11603,7 @@ var Cl = new g1("FontAwesomeIcon"), Wd = {
11603
11603
  transform: void 0,
11604
11604
  swapOpacity: !1,
11605
11605
  widthAuto: !1
11606
- }, S1 = new Set(Object.keys(Wd)), Ee = $.forwardRef((e, t) => {
11606
+ }, S1 = new Set(Object.keys(Wd)), Ee = C.forwardRef((e, t) => {
11607
11607
  const r = { ...Wd, ...e }, {
11608
11608
  icon: n,
11609
11609
  mask: a,
@@ -11769,7 +11769,7 @@ const L1 = ce(
11769
11769
  sm: "w-2.5 h-2.5",
11770
11770
  md: "w-3 h-3",
11771
11771
  lg: "w-4 h-4"
11772
- }, l = Y(null), u = (c) => {
11772
+ }, l = K(null), u = (c) => {
11773
11773
  l.current = c, typeof i == "function" ? i(c) : i && (i.current = c);
11774
11774
  };
11775
11775
  return me(() => {
@@ -11952,7 +11952,7 @@ const V1 = ce(
11952
11952
  error: !1
11953
11953
  }
11954
11954
  }
11955
- ), B1 = $.forwardRef(
11955
+ ), B1 = C.forwardRef(
11956
11956
  ({
11957
11957
  className: e,
11958
11958
  type: t,
@@ -12347,7 +12347,7 @@ const W1 = ce(
12347
12347
  resize: "vertical"
12348
12348
  }
12349
12349
  }
12350
- ), X1 = $.forwardRef(
12350
+ ), X1 = C.forwardRef(
12351
12351
  ({
12352
12352
  className: e,
12353
12353
  label: t,
@@ -12637,7 +12637,7 @@ const zk = ({
12637
12637
  }
12638
12638
  },
12639
12639
  defaultVariants: { state: "default" }
12640
- }), ew = $.forwardRef(
12640
+ }), ew = C.forwardRef(
12641
12641
  ({
12642
12642
  awayTeam: e,
12643
12643
  homeTeam: t,
@@ -13037,7 +13037,7 @@ const Sw = (e) => {
13037
13037
  ), _n = ({ value: e, label: t, size: r, variant: n }) => /* @__PURE__ */ h.jsxs("div", { className: "flex flex-col items-center", children: [
13038
13038
  /* @__PURE__ */ h.jsx("span", { className: _(Ew({ size: r, variant: n })), children: String(e).padStart(2, "0") }),
13039
13039
  /* @__PURE__ */ h.jsx("span", { className: _(Cw({ size: r })), children: t })
13040
- ] }), $w = $.forwardRef(
13040
+ ] }), $w = C.forwardRef(
13041
13041
  ({
13042
13042
  targetDate: e,
13043
13043
  title: t,
@@ -13237,7 +13237,7 @@ const Rw = ce(
13237
13237
  variant: "default"
13238
13238
  }
13239
13239
  }
13240
- ), Aw = $.forwardRef(
13240
+ ), Aw = C.forwardRef(
13241
13241
  ({ className: e, variant: t, companyName: r = "Ball Collaborative", ...n }, a) => {
13242
13242
  const o = (/* @__PURE__ */ new Date()).getFullYear();
13243
13243
  return /* @__PURE__ */ h.jsx(
@@ -13298,27 +13298,28 @@ const Ow = ce(
13298
13298
  onThemeToggle: u,
13299
13299
  actions: c,
13300
13300
  brandElement: f,
13301
- userMenuItems: g = [],
13302
- className: d,
13303
- variant: m = "default",
13304
- position: p = "sticky",
13305
- themeMode: v,
13306
- notificationVariant: b = "error",
13307
- ...x
13301
+ navActions: g,
13302
+ userMenuItems: d = [],
13303
+ className: m,
13304
+ variant: p = "default",
13305
+ position: v = "sticky",
13306
+ themeMode: b,
13307
+ notificationVariant: x = "error",
13308
+ ...y
13308
13309
  }) => {
13309
- const y = (o?.notificationCount || 0) > 0, w = (v ?? (m === "white" || m === "default" ? "light" : "dark")) === "dark", P = m === "slate" || m === "primary" || m === "default" && w || m === "white" && w || m === "transparent" && w, N = {
13310
- brand: P ? "text-white dark:text-white hover:text-gray-200 dark:hover:text-gray-200" : "text-gray-900 dark:text-gray-900 hover:text-gray-600 dark:hover:text-gray-600",
13311
- linkBase: P ? "text-gray-300 dark:text-gray-300 hover:text-white dark:hover:text-white" : "text-gray-600 dark:text-gray-600 hover:text-gray-900 dark:hover:text-gray-900",
13312
- linkActive: P ? "text-primary-400 dark:text-primary-400 font-semibold hover:text-primary-300 dark:hover:text-primary-300" : "text-primary-600 dark:text-primary-600 font-semibold hover:text-primary-700 dark:hover:text-primary-700",
13313
- hamburger: P ? "text-gray-300 dark:text-gray-300 hover:bg-white/10 dark:hover:bg-white/10 hover:text-white dark:hover:text-white" : "text-gray-500 dark:text-gray-500 hover:bg-gray-100 dark:hover:bg-gray-100 hover:text-gray-700 dark:hover:text-gray-700"
13310
+ const S = (o?.notificationCount || 0) > 0, P = (b ?? (p === "white" || p === "default" ? "light" : "dark")) === "dark", N = p === "slate" || p === "primary" || p === "default" && P || p === "white" && P || p === "transparent" && P, I = {
13311
+ brand: N ? "text-white dark:text-white hover:text-gray-200 dark:hover:text-gray-200" : "text-gray-900 dark:text-gray-900 hover:text-gray-600 dark:hover:text-gray-600",
13312
+ linkBase: N ? "text-gray-300 dark:text-gray-300 hover:text-white dark:hover:text-white" : "text-gray-600 dark:text-gray-600 hover:text-gray-900 dark:hover:text-gray-900",
13313
+ linkActive: N ? "text-primary-400 dark:text-primary-400 font-semibold hover:text-primary-300 dark:hover:text-primary-300" : "text-primary-600 dark:text-primary-600 font-semibold hover:text-primary-700 dark:hover:text-primary-700",
13314
+ hamburger: N ? "text-gray-300 dark:text-gray-300 hover:bg-white/10 dark:hover:bg-white/10 hover:text-white dark:hover:text-white" : "text-gray-500 dark:text-gray-500 hover:bg-gray-100 dark:hover:bg-gray-100 hover:text-gray-700 dark:hover:text-gray-700"
13314
13315
  };
13315
13316
  return /* @__PURE__ */ h.jsx(
13316
13317
  $c,
13317
13318
  {
13318
13319
  as: "nav",
13319
- className: _("z-50", Ow({ variant: m, position: p }), d),
13320
- ...x,
13321
- children: ({ open: F, close: z }) => /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
13320
+ className: _("z-50", Ow({ variant: p, position: v }), m),
13321
+ ...y,
13322
+ children: ({ open: B, close: F }) => /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
13322
13323
  /* @__PURE__ */ h.jsxs("div", { className: "container mx-auto flex items-center justify-between px-4 h-16", children: [
13323
13324
  /* @__PURE__ */ h.jsxs(
13324
13325
  Zt,
@@ -13330,7 +13331,7 @@ const Ow = ce(
13330
13331
  underline: "none",
13331
13332
  className: _(
13332
13333
  "flex items-center gap-3 transition-opacity",
13333
- N.brand
13334
+ I.brand
13334
13335
  ),
13335
13336
  children: [
13336
13337
  /* @__PURE__ */ h.jsx(
@@ -13346,25 +13347,26 @@ const Ow = ce(
13346
13347
  }
13347
13348
  ),
13348
13349
  /* @__PURE__ */ h.jsxs("div", { className: "hidden md:flex items-center gap-8", children: [
13349
- /* @__PURE__ */ h.jsx("div", { className: "flex items-center gap-6", children: r.map((S) => {
13350
- const I = n === S.path;
13350
+ /* @__PURE__ */ h.jsx("div", { className: "flex items-center gap-6", children: r.map(($) => {
13351
+ const V = n === $.path;
13351
13352
  return /* @__PURE__ */ h.jsx(
13352
13353
  Zt,
13353
13354
  {
13354
13355
  as: a,
13355
- href: S.path,
13356
- to: S.path,
13356
+ href: $.path,
13357
+ to: $.path,
13357
13358
  variant: "neutral",
13358
13359
  underline: "none",
13359
13360
  className: _(
13360
13361
  "text-sm transition-colors duration-200",
13361
- I ? N.linkActive : N.linkBase
13362
+ V ? I.linkActive : I.linkBase
13362
13363
  ),
13363
- children: S.label
13364
+ children: $.label
13364
13365
  },
13365
- S.path
13366
+ $.path
13366
13367
  );
13367
13368
  }) }),
13369
+ g,
13368
13370
  c ?? (o ? /* @__PURE__ */ h.jsxs(mh, { as: "div", className: "relative ml-2", children: [
13369
13371
  /* @__PURE__ */ h.jsxs(xc, { className: "relative flex rounded-full text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 ring-offset-transparent", children: [
13370
13372
  /* @__PURE__ */ h.jsx("span", { className: "sr-only", children: "Open user menu" }),
@@ -13375,16 +13377,16 @@ const Ow = ce(
13375
13377
  src: o.avatarSrc,
13376
13378
  size: "sm",
13377
13379
  shape: "circle",
13378
- colorScheme: "primary"
13380
+ colorScheme: o.avatarColor ?? "primary"
13379
13381
  }
13380
13382
  ),
13381
- y && /* @__PURE__ */ h.jsx("div", { className: "absolute -top-1 -right-2", children: /* @__PURE__ */ h.jsx(
13383
+ S && /* @__PURE__ */ h.jsx("div", { className: "absolute -top-1 -right-2", children: /* @__PURE__ */ h.jsx(
13382
13384
  $o,
13383
13385
  {
13384
13386
  fill: "solid",
13385
13387
  size: "xs",
13386
13388
  statusBadge: !0,
13387
- variant: b,
13389
+ variant: x,
13388
13390
  children: o.notificationCount
13389
13391
  }
13390
13392
  ) })
@@ -13401,7 +13403,7 @@ const Ow = ce(
13401
13403
  leaveTo: "transform opacity-0 scale-95",
13402
13404
  children: /* @__PURE__ */ h.jsxs(wc, { className: "absolute right-0 z-50 mt-2 w-48 origin-top-right rounded-md bg-white dark:bg-gray-800 py-1 shadow-lg ring-1 ring-black/5 dark:ring-white/10 focus:outline-none divide-y divide-gray-100 dark:divide-gray-700", children: [
13403
13405
  /* @__PURE__ */ h.jsxs("div", { className: "py-1", children: [
13404
- y && l && /* @__PURE__ */ h.jsx(zr, { children: ({ focus: S }) => /* @__PURE__ */ h.jsxs(
13406
+ S && l && /* @__PURE__ */ h.jsx(zr, { children: ({ focus: $ }) => /* @__PURE__ */ h.jsxs(
13405
13407
  Ve,
13406
13408
  {
13407
13409
  variant: "ghost",
@@ -13410,7 +13412,7 @@ const Ow = ce(
13410
13412
  onClick: l,
13411
13413
  className: _(
13412
13414
  "w-full justify-start rounded-none px-4",
13413
- S && "bg-gray-50 dark:bg-gray-700"
13415
+ $ && "bg-gray-50 dark:bg-gray-700"
13414
13416
  ),
13415
13417
  startIcon: /* @__PURE__ */ h.jsx(
13416
13418
  Ee,
@@ -13426,20 +13428,20 @@ const Ow = ce(
13426
13428
  ]
13427
13429
  }
13428
13430
  ) }),
13429
- u && /* @__PURE__ */ h.jsx(zr, { children: ({ focus: S }) => /* @__PURE__ */ h.jsxs(
13431
+ u && /* @__PURE__ */ h.jsx(zr, { children: ({ focus: $ }) => /* @__PURE__ */ h.jsxs(
13430
13432
  "div",
13431
13433
  {
13432
- onClick: (I) => {
13433
- I.preventDefault(), u();
13434
+ onClick: (V) => {
13435
+ V.preventDefault(), u();
13434
13436
  },
13435
13437
  role: "button",
13436
13438
  tabIndex: 0,
13437
13439
  className: _(
13438
13440
  "flex w-full items-center justify-between px-4 py-2 text-sm text-gray-700 dark:text-gray-200 cursor-pointer transition-colors",
13439
- S && "bg-gray-50 dark:bg-gray-700"
13441
+ $ && "bg-gray-50 dark:bg-gray-700"
13440
13442
  ),
13441
- onKeyDown: (I) => {
13442
- (I.key === "Enter" || I.key === " ") && (I.preventDefault(), u());
13443
+ onKeyDown: (V) => {
13444
+ (V.key === "Enter" || V.key === " ") && (V.preventDefault(), u());
13443
13445
  },
13444
13446
  children: [
13445
13447
  /* @__PURE__ */ h.jsxs("div", { className: "flex items-center gap-2", children: [
@@ -13449,7 +13451,7 @@ const Ow = ce(
13449
13451
  icon: Rl,
13450
13452
  className: _(
13451
13453
  "w-4 transition-colors",
13452
- w ? "text-amber-500" : "text-gray-400"
13454
+ P ? "text-amber-500" : "text-gray-400"
13453
13455
  )
13454
13456
  }
13455
13457
  ),
@@ -13458,7 +13460,7 @@ const Ow = ce(
13458
13460
  /* @__PURE__ */ h.jsx(
13459
13461
  Fl,
13460
13462
  {
13461
- checked: w,
13463
+ checked: P,
13462
13464
  onChange: () => {
13463
13465
  },
13464
13466
  size: "xs",
@@ -13470,22 +13472,22 @@ const Ow = ce(
13470
13472
  }
13471
13473
  ) })
13472
13474
  ] }),
13473
- g.length > 0 && /* @__PURE__ */ h.jsx("div", { className: "py-1", children: g.map((S) => /* @__PURE__ */ h.jsx(zr, { children: ({ focus: I }) => /* @__PURE__ */ h.jsx(
13475
+ d.length > 0 && /* @__PURE__ */ h.jsx("div", { className: "py-1", children: d.map(($) => /* @__PURE__ */ h.jsx(zr, { children: ({ focus: V }) => /* @__PURE__ */ h.jsx(
13474
13476
  Zt,
13475
13477
  {
13476
13478
  as: a,
13477
- href: S.path,
13478
- to: S.path,
13479
+ href: $.path,
13480
+ to: $.path,
13479
13481
  variant: "neutral",
13480
13482
  underline: "none",
13481
13483
  className: _(
13482
13484
  "block w-full px-4 py-2 text-sm text-gray-700 dark:text-gray-200 transition-colors",
13483
- I && "bg-gray-50 dark:bg-gray-700"
13485
+ V && "bg-gray-50 dark:bg-gray-700"
13484
13486
  ),
13485
- children: S.label
13487
+ children: $.label
13486
13488
  }
13487
- ) }, S.path)) }),
13488
- s && /* @__PURE__ */ h.jsx("div", { className: "py-1", children: /* @__PURE__ */ h.jsx(zr, { children: ({ focus: S }) => /* @__PURE__ */ h.jsx(
13489
+ ) }, $.path)) }),
13490
+ s && /* @__PURE__ */ h.jsx("div", { className: "py-1", children: /* @__PURE__ */ h.jsx(zr, { children: ({ focus: $ }) => /* @__PURE__ */ h.jsx(
13489
13491
  Ve,
13490
13492
  {
13491
13493
  variant: "ghost",
@@ -13494,7 +13496,7 @@ const Ow = ce(
13494
13496
  onClick: s,
13495
13497
  className: _(
13496
13498
  "w-full justify-start rounded-none px-4",
13497
- S && "bg-gray-50 dark:bg-gray-700"
13499
+ $ && "bg-gray-50 dark:bg-gray-700"
13498
13500
  ),
13499
13501
  startIcon: /* @__PURE__ */ h.jsx(
13500
13502
  Ee,
@@ -13516,11 +13518,11 @@ const Ow = ce(
13516
13518
  {
13517
13519
  className: _(
13518
13520
  "inline-flex items-center justify-center rounded-md p-2 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-primary-500",
13519
- N.hamburger
13521
+ I.hamburger
13520
13522
  ),
13521
13523
  children: [
13522
13524
  /* @__PURE__ */ h.jsx("span", { className: "sr-only", children: "Open main menu" }),
13523
- F ? /* @__PURE__ */ h.jsx(
13525
+ B ? /* @__PURE__ */ h.jsx(
13524
13526
  Ee,
13525
13527
  {
13526
13528
  icon: aa,
@@ -13536,7 +13538,7 @@ const Ow = ce(
13536
13538
  "aria-hidden": "true"
13537
13539
  }
13538
13540
  ),
13539
- y && /* @__PURE__ */ h.jsx("span", { className: "absolute top-0 right-0 block h-2.5 w-2.5 rounded-full bg-error-500 ring-2 ring-transparent transform translate-x-1/4 -translate-y-1/4" })
13541
+ S && /* @__PURE__ */ h.jsx("span", { className: "absolute top-0 right-0 block h-2.5 w-2.5 rounded-full bg-error-500 ring-2 ring-transparent transform translate-x-1/4 -translate-y-1/4" })
13540
13542
  ] })
13541
13543
  ]
13542
13544
  }
@@ -13583,71 +13585,74 @@ const Ow = ce(
13583
13585
  )
13584
13586
  ] }) })
13585
13587
  ] }),
13586
- /* @__PURE__ */ h.jsx("div", { className: "mt-6", children: /* @__PURE__ */ h.jsxs("nav", { className: "grid gap-y-4", children: [
13587
- r.map((S) => {
13588
- const I = n === S.path;
13589
- return /* @__PURE__ */ h.jsx(
13590
- Zt,
13591
- {
13592
- as: a,
13593
- href: S.path,
13594
- to: S.path,
13595
- onClick: () => z(),
13596
- variant: "neutral",
13597
- underline: "none",
13598
- className: _(
13599
- "-m-3 flex items-center rounded-md p-3 transition-colors",
13600
- "hover:bg-gray-50 dark:hover:bg-gray-700",
13601
- I ? "bg-gray-50 dark:bg-gray-700" : "text-gray-900 dark:text-gray-100"
13602
- ),
13603
- children: /* @__PURE__ */ h.jsx(
13604
- "span",
13605
- {
13606
- className: _(
13607
- "ml-3 text-base font-medium",
13608
- I ? "text-primary-600 dark:text-primary-400 font-bold" : "text-gray-900 dark:text-gray-100"
13609
- ),
13610
- children: S.label
13611
- }
13612
- )
13613
- },
13614
- S.path
13615
- );
13616
- }),
13617
- o && g.length > 0 && /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
13618
- /* @__PURE__ */ h.jsx("hr", { className: "border-gray-100 dark:border-gray-700" }),
13619
- g.map((S) => {
13620
- const I = n === S.path;
13588
+ /* @__PURE__ */ h.jsxs("div", { className: "mt-6", children: [
13589
+ g && /* @__PURE__ */ h.jsx("div", { className: "mb-4", children: g }),
13590
+ /* @__PURE__ */ h.jsxs("nav", { className: "grid gap-y-4", children: [
13591
+ r.map(($) => {
13592
+ const V = n === $.path;
13621
13593
  return /* @__PURE__ */ h.jsx(
13622
13594
  Zt,
13623
13595
  {
13624
13596
  as: a,
13625
- href: S.path,
13626
- to: S.path,
13627
- onClick: () => z(),
13597
+ href: $.path,
13598
+ to: $.path,
13599
+ onClick: () => F(),
13628
13600
  variant: "neutral",
13629
13601
  underline: "none",
13630
13602
  className: _(
13631
13603
  "-m-3 flex items-center rounded-md p-3 transition-colors",
13632
13604
  "hover:bg-gray-50 dark:hover:bg-gray-700",
13633
- I ? "bg-gray-50 dark:bg-gray-700" : "text-gray-900 dark:text-gray-100"
13605
+ V ? "bg-gray-50 dark:bg-gray-700" : "text-gray-900 dark:text-gray-100"
13634
13606
  ),
13635
13607
  children: /* @__PURE__ */ h.jsx(
13636
13608
  "span",
13637
13609
  {
13638
13610
  className: _(
13639
13611
  "ml-3 text-base font-medium",
13640
- I ? "text-primary-600 dark:text-primary-400 font-bold" : "text-gray-900 dark:text-gray-100"
13612
+ V ? "text-primary-600 dark:text-primary-400 font-bold" : "text-gray-900 dark:text-gray-100"
13641
13613
  ),
13642
- children: S.label
13614
+ children: $.label
13643
13615
  }
13644
13616
  )
13645
13617
  },
13646
- S.path
13618
+ $.path
13647
13619
  );
13648
- })
13620
+ }),
13621
+ o && d.length > 0 && /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
13622
+ /* @__PURE__ */ h.jsx("hr", { className: "border-gray-100 dark:border-gray-700" }),
13623
+ d.map(($) => {
13624
+ const V = n === $.path;
13625
+ return /* @__PURE__ */ h.jsx(
13626
+ Zt,
13627
+ {
13628
+ as: a,
13629
+ href: $.path,
13630
+ to: $.path,
13631
+ onClick: () => F(),
13632
+ variant: "neutral",
13633
+ underline: "none",
13634
+ className: _(
13635
+ "-m-3 flex items-center rounded-md p-3 transition-colors",
13636
+ "hover:bg-gray-50 dark:hover:bg-gray-700",
13637
+ V ? "bg-gray-50 dark:bg-gray-700" : "text-gray-900 dark:text-gray-100"
13638
+ ),
13639
+ children: /* @__PURE__ */ h.jsx(
13640
+ "span",
13641
+ {
13642
+ className: _(
13643
+ "ml-3 text-base font-medium",
13644
+ V ? "text-primary-600 dark:text-primary-400 font-bold" : "text-gray-900 dark:text-gray-100"
13645
+ ),
13646
+ children: $.label
13647
+ }
13648
+ )
13649
+ },
13650
+ $.path
13651
+ );
13652
+ })
13653
+ ] })
13649
13654
  ] })
13650
- ] }) })
13655
+ ] })
13651
13656
  ] }),
13652
13657
  (o || c || i) && /* @__PURE__ */ h.jsx("div", { className: "py-6 px-5 space-y-4", children: c || (!o && i ? /* @__PURE__ */ h.jsx(
13653
13658
  Ve,
@@ -13656,18 +13661,18 @@ const Ow = ce(
13656
13661
  colorScheme: "primary",
13657
13662
  className: "w-full justify-center",
13658
13663
  onClick: () => {
13659
- i(), z();
13664
+ i(), F();
13660
13665
  },
13661
13666
  children: "Log In"
13662
13667
  }
13663
13668
  ) : /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
13664
- y && l && /* @__PURE__ */ h.jsx(
13669
+ S && l && /* @__PURE__ */ h.jsx(
13665
13670
  Ve,
13666
13671
  {
13667
13672
  variant: "ghost",
13668
13673
  colorScheme: "neutral",
13669
13674
  onClick: () => {
13670
- l?.(), z();
13675
+ l?.(), F();
13671
13676
  },
13672
13677
  className: "w-full justify-between px-4 text-base font-medium hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-900 dark:text-gray-100",
13673
13678
  endIcon: /* @__PURE__ */ h.jsx(
@@ -13676,7 +13681,7 @@ const Ow = ce(
13676
13681
  fill: "solid",
13677
13682
  size: "xs",
13678
13683
  statusBadge: !0,
13679
- variant: b,
13684
+ variant: x,
13680
13685
  children: o?.notificationCount
13681
13686
  }
13682
13687
  ),
@@ -13686,13 +13691,13 @@ const Ow = ce(
13686
13691
  u && /* @__PURE__ */ h.jsxs(
13687
13692
  "div",
13688
13693
  {
13689
- onClick: (S) => {
13690
- S.preventDefault(), u();
13694
+ onClick: ($) => {
13695
+ $.preventDefault(), u();
13691
13696
  },
13692
13697
  role: "button",
13693
13698
  tabIndex: 0,
13694
- onKeyDown: (S) => {
13695
- (S.key === "Enter" || S.key === " ") && (S.preventDefault(), u());
13699
+ onKeyDown: ($) => {
13700
+ ($.key === "Enter" || $.key === " ") && ($.preventDefault(), u());
13696
13701
  },
13697
13702
  className: "flex w-full items-center justify-between rounded-md px-4 py-2 text-base transition-colors cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-900 dark:text-gray-100",
13698
13703
  children: [
@@ -13703,7 +13708,7 @@ const Ow = ce(
13703
13708
  icon: Rl,
13704
13709
  className: _(
13705
13710
  "w-5 transition-colors",
13706
- w ? "text-amber-500" : "text-gray-400"
13711
+ P ? "text-amber-500" : "text-gray-400"
13707
13712
  )
13708
13713
  }
13709
13714
  ),
@@ -13712,7 +13717,7 @@ const Ow = ce(
13712
13717
  /* @__PURE__ */ h.jsx(
13713
13718
  Fl,
13714
13719
  {
13715
- checked: w,
13720
+ checked: P,
13716
13721
  onChange: () => {
13717
13722
  },
13718
13723
  size: "sm",
@@ -13730,7 +13735,7 @@ const Ow = ce(
13730
13735
  colorScheme: "error",
13731
13736
  className: "w-full justify-center",
13732
13737
  onClick: () => {
13733
- s?.(), z();
13738
+ s?.(), F();
13734
13739
  },
13735
13740
  children: "Log Out"
13736
13741
  }
@@ -14156,14 +14161,14 @@ function Tn(e, t, r, n) {
14156
14161
  }, p = [];
14157
14162
  g.forEach((v) => {
14158
14163
  const b = [...p].reverse()[0], x = v.column.depth === m.depth;
14159
- let y, E = !1;
14160
- if (x && v.column.parent ? y = v.column.parent : (y = v.column, E = !0), b && b?.column === y)
14164
+ let y, S = !1;
14165
+ if (x && v.column.parent ? y = v.column.parent : (y = v.column, S = !0), b && b?.column === y)
14161
14166
  b.subHeaders.push(v);
14162
14167
  else {
14163
14168
  const w = Ll(r, y, {
14164
14169
  id: [n, d, y.id, v?.id].filter(Boolean).join("_"),
14165
- isPlaceholder: E,
14166
- placeholderId: E ? `${p.filter((P) => P.column === y).length}` : void 0,
14170
+ isPlaceholder: S,
14171
+ placeholderId: S ? `${p.filter((P) => P.column === y).length}` : void 0,
14167
14172
  depth: d,
14168
14173
  index: p.length
14169
14174
  });
@@ -14180,10 +14185,10 @@ function Tn(e, t, r, n) {
14180
14185
  let p = 0, v = 0, b = [0];
14181
14186
  m.subHeaders && m.subHeaders.length ? (b = [], f(m.subHeaders).forEach((y) => {
14182
14187
  let {
14183
- colSpan: E,
14188
+ colSpan: S,
14184
14189
  rowSpan: w
14185
14190
  } = y;
14186
- p += E, b.push(w);
14191
+ p += S, b.push(w);
14187
14192
  })) : p = 1;
14188
14193
  const x = Math.min(...b);
14189
14194
  return v = v + x, m.colSpan = p, m.rowSpan = v, {
@@ -14695,15 +14700,15 @@ const Mn = {
14695
14700
  return;
14696
14701
  const i = e.getSize(), s = e ? e.getLeafHeaders().map((b) => [b.column.id, b.column.getSize()]) : [[n.id, n.getSize()]], l = io(o) ? Math.round(o.touches[0].clientX) : o.clientX, u = {}, c = (b, x) => {
14697
14702
  typeof x == "number" && (t.setColumnSizingInfo((y) => {
14698
- var E, w;
14699
- const P = t.options.columnResizeDirection === "rtl" ? -1 : 1, N = (x - ((E = y?.startOffset) != null ? E : 0)) * P, F = Math.max(N / ((w = y?.startSize) != null ? w : 0), -0.999999);
14700
- return y.columnSizingStart.forEach((z) => {
14701
- let [S, I] = z;
14702
- u[S] = Math.round(Math.max(I + I * F, 0) * 100) / 100;
14703
+ var S, w;
14704
+ const P = t.options.columnResizeDirection === "rtl" ? -1 : 1, N = (x - ((S = y?.startOffset) != null ? S : 0)) * P, I = Math.max(N / ((w = y?.startSize) != null ? w : 0), -0.999999);
14705
+ return y.columnSizingStart.forEach((B) => {
14706
+ let [F, $] = B;
14707
+ u[F] = Math.round(Math.max($ + $ * I, 0) * 100) / 100;
14703
14708
  }), {
14704
14709
  ...y,
14705
14710
  deltaOffset: N,
14706
- deltaPercentage: F
14711
+ deltaPercentage: I
14707
14712
  };
14708
14713
  }), (t.options.columnResizeMode === "onChange" || b === "end") && t.setColumnSizing((y) => ({
14709
14714
  ...y,
@@ -15647,7 +15652,7 @@ function Ik() {
15647
15652
  const m = o[d], p = i[m.id], v = p.sortUndefined, b = (g = m?.desc) != null ? g : !1;
15648
15653
  let x = 0;
15649
15654
  if (v) {
15650
- const y = c.getValue(m.id), E = f.getValue(m.id), w = y === void 0, P = E === void 0;
15655
+ const y = c.getValue(m.id), S = f.getValue(m.id), w = y === void 0, P = S === void 0;
15651
15656
  if (w || P) {
15652
15657
  if (v === "first") return w ? -1 : 1;
15653
15658
  if (v === "last") return w ? 1 : -1;