highsoft-ui 1.0.16 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
1
  import { jsx as C, jsxs as Q, Fragment as Ut } from "react/jsx-runtime";
2
2
  import { z as Qn } from "../../index-CMegByeX.js";
3
3
  import * as a from "react";
4
- import { useState as Jn, useLayoutEffect as er, useEffect as tr } from "react";
5
- import { _ as xe } from "../../extends-hS2Bh-Yp.js";
6
- import { c as nr } from "../../clsx-OuTLNxxd.js";
7
- import { Button as rr } from "../Button/index.js";
8
- import { useMounted as or } from "../../utils.js";
4
+ import { useState as Jn, useLayoutEffect as er } from "react";
5
+ import { _ as be } from "../../extends-hS2Bh-Yp.js";
6
+ import { c as tr } from "../../clsx-OuTLNxxd.js";
7
+ import { Button as nr } from "../Button/index.js";
8
+ import { useMounted as rr } from "../../utils.js";
9
9
  import * as zt from "react-dom";
10
- import ir from "react-dom";
11
- var sr = function(t) {
12
- return /* @__PURE__ */ C("svg", xe({
10
+ import or from "react-dom";
11
+ var ir = function(t) {
12
+ return /* @__PURE__ */ C("svg", be({
13
13
  xmlns: "http://www.w3.org/2000/svg",
14
14
  width: 24,
15
15
  height: 24,
@@ -24,8 +24,8 @@ var sr = function(t) {
24
24
  d: "M20 6 9 17l-5-5"
25
25
  })
26
26
  }));
27
- }, cr = function(t) {
28
- return /* @__PURE__ */ C("svg", xe({
27
+ }, sr = function(t) {
28
+ return /* @__PURE__ */ C("svg", be({
29
29
  xmlns: "http://www.w3.org/2000/svg",
30
30
  width: 24,
31
31
  height: 24,
@@ -40,8 +40,8 @@ var sr = function(t) {
40
40
  d: "M15 17v4H9v-4m-3.8 0h13.6c1.1201 0 1.6802 0 2.108-.218a2 2 0 0 0 .874-.874C22 15.4802 22 14.9201 22 13.8V6.2c0-1.1201 0-1.6802-.218-2.108a2 2 0 0 0-.874-.874C20.4802 3 19.9201 3 18.8 3H5.2c-1.1201 0-1.6802 0-2.108.218a2 2 0 0 0-.874.874C2 4.5198 2 5.08 2 6.2v7.6c0 1.1201 0 1.6802.218 2.108.1917.3763.4977.6823.874.874C3.5198 17 4.08 17 5.2 17"
41
41
  })
42
42
  }));
43
- }, ar = function(t) {
44
- return /* @__PURE__ */ C("svg", xe({
43
+ }, cr = function(t) {
44
+ return /* @__PURE__ */ C("svg", be({
45
45
  xmlns: "http://www.w3.org/2000/svg",
46
46
  width: 24,
47
47
  height: 24,
@@ -56,8 +56,8 @@ var sr = function(t) {
56
56
  d: "M21.9548 12.9564c-1.3769 2.4153-3.9757 4.0437-6.9548 4.0437-4.4183 0-8-3.5817-8-8 0-2.9794 1.6287-5.5783 4.0443-6.9552C5.9698 2.5261 2 6.7994 2 11.9998c0 5.5229 4.4772 10 10 10 5.2002 0 9.4733-3.9693 9.9548-9.0434"
57
57
  })
58
58
  }));
59
- }, lr = function(t) {
60
- return /* @__PURE__ */ C("svg", xe({
59
+ }, ar = function(t) {
60
+ return /* @__PURE__ */ C("svg", be({
61
61
  xmlns: "http://www.w3.org/2000/svg",
62
62
  width: 24,
63
63
  height: 24,
@@ -72,8 +72,8 @@ var sr = function(t) {
72
72
  d: "M3 8h12m0 0c0 1.6569 1.3431 3 3 3s3-1.3431 3-3-1.3431-3-3-3-3 1.3431-3 3m-6 8h12M9 16c0 1.6569-1.3431 3-3 3s-3-1.3431-3-3 1.3431-3 3-3 3 1.3431 3 3"
73
73
  })
74
74
  }));
75
- }, ur = function(t) {
76
- return /* @__PURE__ */ C("svg", xe({
75
+ }, lr = function(t) {
76
+ return /* @__PURE__ */ C("svg", be({
77
77
  xmlns: "http://www.w3.org/2000/svg",
78
78
  width: 24,
79
79
  height: 24,
@@ -115,8 +115,8 @@ function re(...e) {
115
115
  }
116
116
  // @__NO_SIDE_EFFECTS__
117
117
  function Yt(e) {
118
- const t = /* @__PURE__ */ fr(e), n = a.forwardRef((r, o) => {
119
- const { children: i, ...s } = r, c = a.Children.toArray(i), u = c.find(hr);
118
+ const t = /* @__PURE__ */ ur(e), n = a.forwardRef((r, o) => {
119
+ const { children: i, ...s } = r, c = a.Children.toArray(i), u = c.find(dr);
120
120
  if (u) {
121
121
  const l = u.props.children, f = c.map((d) => d === u ? a.Children.count(l) > 1 ? a.Children.only(null) : a.isValidElement(l) ? l.props.children : null : d);
122
122
  return /* @__PURE__ */ C(t, { ...s, ref: o, children: a.isValidElement(l) ? a.cloneElement(l, void 0, f) : null });
@@ -126,22 +126,22 @@ function Yt(e) {
126
126
  return n.displayName = `${e}.Slot`, n;
127
127
  }
128
128
  // @__NO_SIDE_EFFECTS__
129
- function fr(e) {
129
+ function ur(e) {
130
130
  const t = a.forwardRef((n, r) => {
131
131
  const { children: o, ...i } = n;
132
132
  if (a.isValidElement(o)) {
133
- const s = mr(o), c = pr(i, o.props);
133
+ const s = pr(o), c = hr(i, o.props);
134
134
  return o.type !== a.Fragment && (c.ref = r ? jt(r, s) : s), a.cloneElement(o, c);
135
135
  }
136
136
  return a.Children.count(o) > 1 ? a.Children.only(null) : null;
137
137
  });
138
138
  return t.displayName = `${e}.SlotClone`, t;
139
139
  }
140
- var dr = Symbol("radix.slottable");
141
- function hr(e) {
142
- return a.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === dr;
140
+ var fr = Symbol("radix.slottable");
141
+ function dr(e) {
142
+ return a.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === fr;
143
143
  }
144
- function pr(e, t) {
144
+ function hr(e, t) {
145
145
  const n = { ...t };
146
146
  for (const r in t) {
147
147
  const o = e[r], i = t[r];
@@ -152,12 +152,12 @@ function pr(e, t) {
152
152
  }
153
153
  return { ...e, ...n };
154
154
  }
155
- function mr(e) {
155
+ function pr(e) {
156
156
  var r, o;
157
157
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
158
158
  return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
159
159
  }
160
- var vr = [
160
+ var mr = [
161
161
  "a",
162
162
  "button",
163
163
  "div",
@@ -175,14 +175,14 @@ var vr = [
175
175
  "span",
176
176
  "svg",
177
177
  "ul"
178
- ], q = vr.reduce((e, t) => {
178
+ ], G = mr.reduce((e, t) => {
179
179
  const n = /* @__PURE__ */ Yt(`Primitive.${t}`), r = a.forwardRef((o, i) => {
180
180
  const { asChild: s, ...c } = o, u = s ? n : t;
181
181
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ C(u, { ...c, ref: i });
182
182
  });
183
183
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
184
184
  }, {});
185
- function gr(e, t) {
185
+ function vr(e, t) {
186
186
  e && zt.flushSync(() => e.dispatchEvent(t));
187
187
  }
188
188
  function Xt(e, t = []) {
@@ -215,9 +215,9 @@ function Xt(e, t = []) {
215
215
  );
216
216
  };
217
217
  };
218
- return o.scopeName = e, [r, yr(o, ...t)];
218
+ return o.scopeName = e, [r, gr(o, ...t)];
219
219
  }
220
- function yr(...e) {
220
+ function gr(...e) {
221
221
  const t = e[0];
222
222
  if (e.length === 1) return t;
223
223
  const n = () => {
@@ -242,15 +242,15 @@ function J(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
242
242
  };
243
243
  }
244
244
  var ee = globalThis != null && globalThis.document ? a.useLayoutEffect : () => {
245
- }, wr = a[" useInsertionEffect ".trim().toString()] || ee;
246
- function br({
245
+ }, yr = a[" useInsertionEffect ".trim().toString()] || ee;
246
+ function wr({
247
247
  prop: e,
248
248
  defaultProp: t,
249
249
  onChange: n = () => {
250
250
  },
251
251
  caller: r
252
252
  }) {
253
- const [o, i, s] = xr({
253
+ const [o, i, s] = br({
254
254
  defaultProp: t,
255
255
  onChange: n
256
256
  }), c = e !== void 0, u = c ? e : o;
@@ -267,7 +267,7 @@ function br({
267
267
  (f) => {
268
268
  var d;
269
269
  if (c) {
270
- const p = Er(f) ? f(e) : f;
270
+ const p = xr(f) ? f(e) : f;
271
271
  p !== e && ((d = s.current) == null || d.call(s, p));
272
272
  } else
273
273
  i(f);
@@ -276,31 +276,31 @@ function br({
276
276
  );
277
277
  return [u, l];
278
278
  }
279
- function xr({
279
+ function br({
280
280
  defaultProp: e,
281
281
  onChange: t
282
282
  }) {
283
283
  const [n, r] = a.useState(e), o = a.useRef(n), i = a.useRef(t);
284
- return wr(() => {
284
+ return yr(() => {
285
285
  i.current = t;
286
286
  }, [t]), a.useEffect(() => {
287
287
  var s;
288
288
  o.current !== n && ((s = i.current) == null || s.call(i, n), o.current = n);
289
289
  }, [n, o]), [n, r, i];
290
290
  }
291
- function Er(e) {
291
+ function xr(e) {
292
292
  return typeof e == "function";
293
293
  }
294
- function Cr(e, t) {
294
+ function Er(e, t) {
295
295
  return a.useReducer((n, r) => t[n][r] ?? n, e);
296
296
  }
297
297
  var ot = (e) => {
298
- const { present: t, children: n } = e, r = Pr(t), o = typeof n == "function" ? n({ present: r.isPresent }) : a.Children.only(n), i = re(r.ref, Ar(o));
298
+ const { present: t, children: n } = e, r = Cr(t), o = typeof n == "function" ? n({ present: r.isPresent }) : a.Children.only(n), i = re(r.ref, Pr(o));
299
299
  return typeof n == "function" || r.isPresent ? a.cloneElement(o, { ref: i }) : null;
300
300
  };
301
301
  ot.displayName = "Presence";
302
- function Pr(e) {
303
- const [t, n] = a.useState(), r = a.useRef(null), o = a.useRef(e), i = a.useRef("none"), s = e ? "mounted" : "unmounted", [c, u] = Cr(s, {
302
+ function Cr(e) {
303
+ const [t, n] = a.useState(), r = a.useRef(null), o = a.useRef(e), i = a.useRef("none"), s = e ? "mounted" : "unmounted", [c, u] = Er(s, {
304
304
  mounted: {
305
305
  UNMOUNT: "unmounted",
306
306
  ANIMATION_OUT: "unmountSuspended"
@@ -351,20 +351,20 @@ function Pr(e) {
351
351
  function Ae(e) {
352
352
  return (e == null ? void 0 : e.animationName) || "none";
353
353
  }
354
- function Ar(e) {
354
+ function Pr(e) {
355
355
  var r, o;
356
356
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
357
357
  return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
358
358
  }
359
- var Sr = a[" useId ".trim().toString()] || (() => {
360
- }), Rr = 0;
361
- function Or(e) {
362
- const [t, n] = a.useState(Sr());
359
+ var Ar = a[" useId ".trim().toString()] || (() => {
360
+ }), Sr = 0;
361
+ function Rr(e) {
362
+ const [t, n] = a.useState(Ar());
363
363
  return ee(() => {
364
- n((r) => r ?? String(Rr++));
364
+ n((r) => r ?? String(Sr++));
365
365
  }, [e]), e || (t ? `radix-${t}` : "");
366
366
  }
367
- function de(e) {
367
+ function fe(e) {
368
368
  const t = a.useRef(e);
369
369
  return a.useEffect(() => {
370
370
  t.current = e;
@@ -373,8 +373,8 @@ function de(e) {
373
373
  return (r = t.current) == null ? void 0 : r.call(t, ...n);
374
374
  }, []);
375
375
  }
376
- function Nr(e, t = globalThis == null ? void 0 : globalThis.document) {
377
- const n = de(e);
376
+ function Or(e, t = globalThis == null ? void 0 : globalThis.document) {
377
+ const n = fe(e);
378
378
  a.useEffect(() => {
379
379
  const r = (o) => {
380
380
  o.key === "Escape" && n(o);
@@ -382,7 +382,7 @@ function Nr(e, t = globalThis == null ? void 0 : globalThis.document) {
382
382
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
383
383
  }, [n, t]);
384
384
  }
385
- var Mr = "DismissableLayer", Je = "dismissableLayer.update", Tr = "dismissableLayer.pointerDownOutside", kr = "dismissableLayer.focusOutside", Ct, Kt = a.createContext({
385
+ var Nr = "DismissableLayer", Je = "dismissableLayer.update", Mr = "dismissableLayer.pointerDownOutside", Tr = "dismissableLayer.focusOutside", Ct, Kt = a.createContext({
386
386
  layers: /* @__PURE__ */ new Set(),
387
387
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
388
388
  branches: /* @__PURE__ */ new Set()
@@ -396,15 +396,15 @@ var Mr = "DismissableLayer", Je = "dismissableLayer.update", Tr = "dismissableLa
396
396
  onInteractOutside: s,
397
397
  onDismiss: c,
398
398
  ...u
399
- } = e, l = a.useContext(Kt), [f, d] = a.useState(null), p = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = a.useState({}), g = re(t, (P) => d(P)), h = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(v), x = f ? h.indexOf(f) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, w = x >= y, E = _r((P) => {
400
- const R = P.target, N = [...l.branches].some((O) => O.contains(R));
401
- !w || N || (o == null || o(P), s == null || s(P), P.defaultPrevented || c == null || c());
402
- }, p), A = Fr((P) => {
399
+ } = e, l = a.useContext(Kt), [f, d] = a.useState(null), p = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = a.useState({}), g = re(t, (P) => d(P)), h = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(v), w = f ? h.indexOf(f) : -1, x = l.layersWithOutsidePointerEventsDisabled.size > 0, b = w >= y, E = Dr((P) => {
400
+ const R = P.target, M = [...l.branches].some((O) => O.contains(R));
401
+ !b || M || (o == null || o(P), s == null || s(P), P.defaultPrevented || c == null || c());
402
+ }, p), A = _r((P) => {
403
403
  const R = P.target;
404
404
  [...l.branches].some((O) => O.contains(R)) || (i == null || i(P), s == null || s(P), P.defaultPrevented || c == null || c());
405
405
  }, p);
406
- return Nr((P) => {
407
- x === l.layers.size - 1 && (r == null || r(P), !P.defaultPrevented && c && (P.preventDefault(), c()));
406
+ return Or((P) => {
407
+ w === l.layers.size - 1 && (r == null || r(P), !P.defaultPrevented && c && (P.preventDefault(), c()));
408
408
  }, p), a.useEffect(() => {
409
409
  if (f)
410
410
  return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Ct = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(f)), l.layers.add(f), Pt(), () => {
@@ -416,12 +416,12 @@ var Mr = "DismissableLayer", Je = "dismissableLayer.update", Tr = "dismissableLa
416
416
  const P = () => m({});
417
417
  return document.addEventListener(Je, P), () => document.removeEventListener(Je, P);
418
418
  }, []), /* @__PURE__ */ C(
419
- q.div,
419
+ G.div,
420
420
  {
421
421
  ...u,
422
422
  ref: g,
423
423
  style: {
424
- pointerEvents: b ? w ? "auto" : "none" : void 0,
424
+ pointerEvents: x ? b ? "auto" : "none" : void 0,
425
425
  ...e.style
426
426
  },
427
427
  onFocusCapture: J(e.onFocusCapture, A.onFocusCapture),
@@ -434,8 +434,8 @@ var Mr = "DismissableLayer", Je = "dismissableLayer.update", Tr = "dismissableLa
434
434
  );
435
435
  }
436
436
  );
437
- Zt.displayName = Mr;
438
- var Lr = "DismissableLayerBranch", Dr = a.forwardRef((e, t) => {
437
+ Zt.displayName = Nr;
438
+ var kr = "DismissableLayerBranch", Lr = a.forwardRef((e, t) => {
439
439
  const n = a.useContext(Kt), r = a.useRef(null), o = re(t, r);
440
440
  return a.useEffect(() => {
441
441
  const i = r.current;
@@ -443,18 +443,18 @@ var Lr = "DismissableLayerBranch", Dr = a.forwardRef((e, t) => {
443
443
  return n.branches.add(i), () => {
444
444
  n.branches.delete(i);
445
445
  };
446
- }, [n.branches]), /* @__PURE__ */ C(q.div, { ...e, ref: o });
446
+ }, [n.branches]), /* @__PURE__ */ C(G.div, { ...e, ref: o });
447
447
  });
448
- Dr.displayName = Lr;
449
- function _r(e, t = globalThis == null ? void 0 : globalThis.document) {
450
- const n = de(e), r = a.useRef(!1), o = a.useRef(() => {
448
+ Lr.displayName = kr;
449
+ function Dr(e, t = globalThis == null ? void 0 : globalThis.document) {
450
+ const n = fe(e), r = a.useRef(!1), o = a.useRef(() => {
451
451
  });
452
452
  return a.useEffect(() => {
453
453
  const i = (c) => {
454
454
  if (c.target && !r.current) {
455
455
  let u = function() {
456
- qt(
457
- Tr,
456
+ Gt(
457
+ Mr,
458
458
  n,
459
459
  l,
460
460
  { discrete: !0 }
@@ -476,11 +476,11 @@ function _r(e, t = globalThis == null ? void 0 : globalThis.document) {
476
476
  onPointerDownCapture: () => r.current = !0
477
477
  };
478
478
  }
479
- function Fr(e, t = globalThis == null ? void 0 : globalThis.document) {
480
- const n = de(e), r = a.useRef(!1);
479
+ function _r(e, t = globalThis == null ? void 0 : globalThis.document) {
480
+ const n = fe(e), r = a.useRef(!1);
481
481
  return a.useEffect(() => {
482
482
  const o = (i) => {
483
- i.target && !r.current && qt(kr, n, { originalEvent: i }, {
483
+ i.target && !r.current && Gt(Tr, n, { originalEvent: i }, {
484
484
  discrete: !1
485
485
  });
486
486
  };
@@ -494,18 +494,18 @@ function Pt() {
494
494
  const e = new CustomEvent(Je);
495
495
  document.dispatchEvent(e);
496
496
  }
497
- function qt(e, t, n, { discrete: r }) {
497
+ function Gt(e, t, n, { discrete: r }) {
498
498
  const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
499
- t && o.addEventListener(e, t, { once: !0 }), r ? gr(o, i) : o.dispatchEvent(i);
499
+ t && o.addEventListener(e, t, { once: !0 }), r ? vr(o, i) : o.dispatchEvent(i);
500
500
  }
501
- var Ue = "focusScope.autoFocusOnMount", ze = "focusScope.autoFocusOnUnmount", At = { bubbles: !1, cancelable: !0 }, Ir = "FocusScope", Gt = a.forwardRef((e, t) => {
501
+ var Ue = "focusScope.autoFocusOnMount", ze = "focusScope.autoFocusOnUnmount", At = { bubbles: !1, cancelable: !0 }, Fr = "FocusScope", qt = a.forwardRef((e, t) => {
502
502
  const {
503
503
  loop: n = !1,
504
504
  trapped: r = !1,
505
505
  onMountAutoFocus: o,
506
506
  onUnmountAutoFocus: i,
507
507
  ...s
508
- } = e, [c, u] = a.useState(null), l = de(o), f = de(i), d = a.useRef(null), p = re(t, (h) => u(h)), m = a.useRef({
508
+ } = e, [c, u] = a.useState(null), l = fe(o), f = fe(i), d = a.useRef(null), p = re(t, (h) => u(h)), m = a.useRef({
509
509
  paused: !1,
510
510
  pause() {
511
511
  this.paused = !0;
@@ -516,23 +516,23 @@ var Ue = "focusScope.autoFocusOnMount", ze = "focusScope.autoFocusOnUnmount", At
516
516
  }).current;
517
517
  a.useEffect(() => {
518
518
  if (r) {
519
- let h = function(b) {
519
+ let h = function(x) {
520
520
  if (m.paused || !c) return;
521
- const w = b.target;
522
- c.contains(w) ? d.current = w : G(d.current, { select: !0 });
523
- }, v = function(b) {
521
+ const b = x.target;
522
+ c.contains(b) ? d.current = b : q(d.current, { select: !0 });
523
+ }, v = function(x) {
524
524
  if (m.paused || !c) return;
525
- const w = b.relatedTarget;
526
- w !== null && (c.contains(w) || G(d.current, { select: !0 }));
527
- }, y = function(b) {
525
+ const b = x.relatedTarget;
526
+ b !== null && (c.contains(b) || q(d.current, { select: !0 }));
527
+ }, y = function(x) {
528
528
  if (document.activeElement === document.body)
529
- for (const E of b)
530
- E.removedNodes.length > 0 && G(c);
529
+ for (const E of x)
530
+ E.removedNodes.length > 0 && q(c);
531
531
  };
532
532
  document.addEventListener("focusin", h), document.addEventListener("focusout", v);
533
- const x = new MutationObserver(y);
534
- return c && x.observe(c, { childList: !0, subtree: !0 }), () => {
535
- document.removeEventListener("focusin", h), document.removeEventListener("focusout", v), x.disconnect();
533
+ const w = new MutationObserver(y);
534
+ return c && w.observe(c, { childList: !0, subtree: !0 }), () => {
535
+ document.removeEventListener("focusin", h), document.removeEventListener("focusout", v), w.disconnect();
536
536
  };
537
537
  }
538
538
  }, [r, c, m.paused]), a.useEffect(() => {
@@ -541,12 +541,12 @@ var Ue = "focusScope.autoFocusOnMount", ze = "focusScope.autoFocusOnUnmount", At
541
541
  const h = document.activeElement;
542
542
  if (!c.contains(h)) {
543
543
  const y = new CustomEvent(Ue, At);
544
- c.addEventListener(Ue, l), c.dispatchEvent(y), y.defaultPrevented || (Wr(Ur(Qt(c)), { select: !0 }), document.activeElement === h && G(c));
544
+ c.addEventListener(Ue, l), c.dispatchEvent(y), y.defaultPrevented || (Ir(Vr(Qt(c)), { select: !0 }), document.activeElement === h && q(c));
545
545
  }
546
546
  return () => {
547
547
  c.removeEventListener(Ue, l), setTimeout(() => {
548
548
  const y = new CustomEvent(ze, At);
549
- c.addEventListener(ze, f), c.dispatchEvent(y), y.defaultPrevented || G(h ?? document.body, { select: !0 }), c.removeEventListener(ze, f), Rt.remove(m);
549
+ c.addEventListener(ze, f), c.dispatchEvent(y), y.defaultPrevented || q(h ?? document.body, { select: !0 }), c.removeEventListener(ze, f), Rt.remove(m);
550
550
  }, 0);
551
551
  };
552
552
  }
@@ -556,21 +556,21 @@ var Ue = "focusScope.autoFocusOnMount", ze = "focusScope.autoFocusOnUnmount", At
556
556
  if (!n && !r || m.paused) return;
557
557
  const v = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, y = document.activeElement;
558
558
  if (v && y) {
559
- const x = h.currentTarget, [b, w] = Br(x);
560
- b && w ? !h.shiftKey && y === w ? (h.preventDefault(), n && G(b, { select: !0 })) : h.shiftKey && y === b && (h.preventDefault(), n && G(w, { select: !0 })) : y === x && h.preventDefault();
559
+ const w = h.currentTarget, [x, b] = Wr(w);
560
+ x && b ? !h.shiftKey && y === b ? (h.preventDefault(), n && q(x, { select: !0 })) : h.shiftKey && y === x && (h.preventDefault(), n && q(b, { select: !0 })) : y === w && h.preventDefault();
561
561
  }
562
562
  },
563
563
  [n, r, m.paused]
564
564
  );
565
- return /* @__PURE__ */ C(q.div, { tabIndex: -1, ...s, ref: p, onKeyDown: g });
565
+ return /* @__PURE__ */ C(G.div, { tabIndex: -1, ...s, ref: p, onKeyDown: g });
566
566
  });
567
- Gt.displayName = Ir;
568
- function Wr(e, { select: t = !1 } = {}) {
567
+ qt.displayName = Fr;
568
+ function Ir(e, { select: t = !1 } = {}) {
569
569
  const n = document.activeElement;
570
570
  for (const r of e)
571
- if (G(r, { select: t }), document.activeElement !== n) return;
571
+ if (q(r, { select: t }), document.activeElement !== n) return;
572
572
  }
573
- function Br(e) {
573
+ function Wr(e) {
574
574
  const t = Qt(e), n = St(t, e), r = St(t.reverse(), e);
575
575
  return [n, r];
576
576
  }
@@ -586,9 +586,9 @@ function Qt(e) {
586
586
  }
587
587
  function St(e, t) {
588
588
  for (const n of e)
589
- if (!$r(n, { upTo: t })) return n;
589
+ if (!Br(n, { upTo: t })) return n;
590
590
  }
591
- function $r(e, { upTo: t }) {
591
+ function Br(e, { upTo: t }) {
592
592
  if (getComputedStyle(e).visibility === "hidden") return !0;
593
593
  for (; e; ) {
594
594
  if (t !== void 0 && e === t) return !1;
@@ -597,17 +597,17 @@ function $r(e, { upTo: t }) {
597
597
  }
598
598
  return !1;
599
599
  }
600
- function Hr(e) {
600
+ function $r(e) {
601
601
  return e instanceof HTMLInputElement && "select" in e;
602
602
  }
603
- function G(e, { select: t = !1 } = {}) {
603
+ function q(e, { select: t = !1 } = {}) {
604
604
  if (e && e.focus) {
605
605
  const n = document.activeElement;
606
- e.focus({ preventScroll: !0 }), e !== n && Hr(e) && t && e.select();
606
+ e.focus({ preventScroll: !0 }), e !== n && $r(e) && t && e.select();
607
607
  }
608
608
  }
609
- var Rt = Vr();
610
- function Vr() {
609
+ var Rt = Hr();
610
+ function Hr() {
611
611
  let e = [];
612
612
  return {
613
613
  add(t) {
@@ -624,19 +624,19 @@ function Ot(e, t) {
624
624
  const n = [...e], r = n.indexOf(t);
625
625
  return r !== -1 && n.splice(r, 1), n;
626
626
  }
627
- function Ur(e) {
627
+ function Vr(e) {
628
628
  return e.filter((t) => t.tagName !== "A");
629
629
  }
630
- var zr = "Portal", Jt = a.forwardRef((e, t) => {
630
+ var Ur = "Portal", Jt = a.forwardRef((e, t) => {
631
631
  var c;
632
632
  const { container: n, ...r } = e, [o, i] = a.useState(!1);
633
633
  ee(() => i(!0), []);
634
634
  const s = n || o && ((c = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : c.body);
635
- return s ? ir.createPortal(/* @__PURE__ */ C(q.div, { ...r, ref: t }), s) : null;
635
+ return s ? or.createPortal(/* @__PURE__ */ C(G.div, { ...r, ref: t }), s) : null;
636
636
  });
637
- Jt.displayName = zr;
637
+ Jt.displayName = Ur;
638
638
  var je = 0;
639
- function jr() {
639
+ function zr() {
640
640
  a.useEffect(() => {
641
641
  const e = document.querySelectorAll("[data-radix-focus-guard]");
642
642
  return document.body.insertAdjacentElement("afterbegin", e[0] ?? Nt()), document.body.insertAdjacentElement("beforeend", e[1] ?? Nt()), je++, () => {
@@ -665,16 +665,16 @@ function en(e, t) {
665
665
  t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
666
666
  return n;
667
667
  }
668
- function Yr(e, t, n) {
668
+ function jr(e, t, n) {
669
669
  if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
670
670
  (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
671
671
  return e.concat(i || Array.prototype.slice.call(t));
672
672
  }
673
- var Te = "right-scroll-bar-position", ke = "width-before-scroll-bar", Xr = "with-scroll-bars-hidden", Kr = "--removed-body-scroll-bar-size";
673
+ var Te = "right-scroll-bar-position", ke = "width-before-scroll-bar", Yr = "with-scroll-bars-hidden", Xr = "--removed-body-scroll-bar-size";
674
674
  function Ye(e, t) {
675
675
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
676
676
  }
677
- function Zr(e, t) {
677
+ function Kr(e, t) {
678
678
  var n = Jn(function() {
679
679
  return {
680
680
  // value
@@ -695,14 +695,14 @@ function Zr(e, t) {
695
695
  })[0];
696
696
  return n.callback = t, n.facade;
697
697
  }
698
- var qr = typeof window < "u" ? a.useLayoutEffect : a.useEffect, Mt = /* @__PURE__ */ new WeakMap();
698
+ var Zr = typeof window < "u" ? a.useLayoutEffect : a.useEffect, Mt = /* @__PURE__ */ new WeakMap();
699
699
  function Gr(e, t) {
700
- var n = Zr(null, function(r) {
700
+ var n = Kr(null, function(r) {
701
701
  return e.forEach(function(o) {
702
702
  return Ye(o, r);
703
703
  });
704
704
  });
705
- return qr(function() {
705
+ return Zr(function() {
706
706
  var r = Mt.get(n);
707
707
  if (r) {
708
708
  var o = new Set(r), i = new Set(e), s = n.current;
@@ -715,11 +715,11 @@ function Gr(e, t) {
715
715
  Mt.set(n, e);
716
716
  }, [e]), n;
717
717
  }
718
- function Qr(e) {
718
+ function qr(e) {
719
719
  return e;
720
720
  }
721
- function Jr(e, t) {
722
- t === void 0 && (t = Qr);
721
+ function Qr(e, t) {
722
+ t === void 0 && (t = qr);
723
723
  var n = [], r = !1, o = {
724
724
  read: function() {
725
725
  if (r)
@@ -773,9 +773,9 @@ function Jr(e, t) {
773
773
  };
774
774
  return o;
775
775
  }
776
- function eo(e) {
776
+ function Jr(e) {
777
777
  e === void 0 && (e = {});
778
- var t = Jr(null);
778
+ var t = Qr(null);
779
779
  return t.options = U({ async: !0, ssr: !1 }, e), t;
780
780
  }
781
781
  var tn = function(e) {
@@ -788,21 +788,21 @@ var tn = function(e) {
788
788
  return a.createElement(r, U({}, n));
789
789
  };
790
790
  tn.isSideCarExport = !0;
791
- function to(e, t) {
791
+ function eo(e, t) {
792
792
  return e.useMedium(t), tn;
793
793
  }
794
- var nn = eo(), Xe = function() {
794
+ var nn = Jr(), Xe = function() {
795
795
  }, We = a.forwardRef(function(e, t) {
796
796
  var n = a.useRef(null), r = a.useState({
797
797
  onScrollCapture: Xe,
798
798
  onWheelCapture: Xe,
799
799
  onTouchMoveCapture: Xe
800
- }), o = r[0], i = r[1], s = e.forwardProps, c = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, d = e.shards, p = e.sideCar, m = e.noRelative, g = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, x = y === void 0 ? "div" : y, b = e.gapMode, w = en(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = p, A = Gr([n, t]), P = U(U({}, w), o);
800
+ }), o = r[0], i = r[1], s = e.forwardProps, c = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, d = e.shards, p = e.sideCar, m = e.noRelative, g = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, x = e.gapMode, b = en(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = p, A = Gr([n, t]), P = U(U({}, b), o);
801
801
  return a.createElement(
802
802
  a.Fragment,
803
803
  null,
804
- f && a.createElement(E, { sideCar: nn, removeScrollBar: l, shards: d, noRelative: m, noIsolation: g, inert: h, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: b }),
805
- s ? a.cloneElement(a.Children.only(c), U(U({}, P), { ref: A })) : a.createElement(x, U({}, P, { className: u, ref: A }), c)
804
+ f && a.createElement(E, { sideCar: nn, removeScrollBar: l, shards: d, noRelative: m, noIsolation: g, inert: h, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: x }),
805
+ s ? a.cloneElement(a.Children.only(c), U(U({}, P), { ref: A })) : a.createElement(w, U({}, P, { className: u, ref: A }), c)
806
806
  );
807
807
  });
808
808
  We.defaultProps = {
@@ -814,37 +814,37 @@ We.classNames = {
814
814
  fullWidth: ke,
815
815
  zeroRight: Te
816
816
  };
817
- var no = function() {
817
+ var to = function() {
818
818
  if (typeof __webpack_nonce__ < "u")
819
819
  return __webpack_nonce__;
820
820
  };
821
- function ro() {
821
+ function no() {
822
822
  if (!document)
823
823
  return null;
824
824
  var e = document.createElement("style");
825
825
  e.type = "text/css";
826
- var t = no();
826
+ var t = to();
827
827
  return t && e.setAttribute("nonce", t), e;
828
828
  }
829
- function oo(e, t) {
829
+ function ro(e, t) {
830
830
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
831
831
  }
832
- function io(e) {
832
+ function oo(e) {
833
833
  var t = document.head || document.getElementsByTagName("head")[0];
834
834
  t.appendChild(e);
835
835
  }
836
- var so = function() {
836
+ var io = function() {
837
837
  var e = 0, t = null;
838
838
  return {
839
839
  add: function(n) {
840
- e == 0 && (t = ro()) && (oo(t, n), io(t)), e++;
840
+ e == 0 && (t = no()) && (ro(t, n), oo(t)), e++;
841
841
  },
842
842
  remove: function() {
843
843
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
844
844
  }
845
845
  };
846
- }, co = function() {
847
- var e = so();
846
+ }, so = function() {
847
+ var e = io();
848
848
  return function(t, n) {
849
849
  a.useEffect(function() {
850
850
  return e.add(t), function() {
@@ -853,39 +853,39 @@ var so = function() {
853
853
  }, [t && n]);
854
854
  };
855
855
  }, rn = function() {
856
- var e = co(), t = function(n) {
856
+ var e = so(), t = function(n) {
857
857
  var r = n.styles, o = n.dynamic;
858
858
  return e(r, o), null;
859
859
  };
860
860
  return t;
861
- }, ao = {
861
+ }, co = {
862
862
  left: 0,
863
863
  top: 0,
864
864
  right: 0,
865
865
  gap: 0
866
866
  }, Ke = function(e) {
867
867
  return parseInt(e || "", 10) || 0;
868
- }, lo = function(e) {
868
+ }, ao = function(e) {
869
869
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
870
870
  return [Ke(n), Ke(r), Ke(o)];
871
- }, uo = function(e) {
871
+ }, lo = function(e) {
872
872
  if (e === void 0 && (e = "margin"), typeof window > "u")
873
- return ao;
874
- var t = lo(e), n = document.documentElement.clientWidth, r = window.innerWidth;
873
+ return co;
874
+ var t = ao(e), n = document.documentElement.clientWidth, r = window.innerWidth;
875
875
  return {
876
876
  left: t[0],
877
877
  top: t[1],
878
878
  right: t[2],
879
879
  gap: Math.max(0, r - n + t[2] - t[0])
880
880
  };
881
- }, fo = rn(), ue = "data-scroll-locked", ho = function(e, t, n, r) {
881
+ }, uo = rn(), le = "data-scroll-locked", fo = function(e, t, n, r) {
882
882
  var o = e.left, i = e.top, s = e.right, c = e.gap;
883
883
  return n === void 0 && (n = "margin"), `
884
- .`.concat(Xr, ` {
884
+ .`.concat(Yr, ` {
885
885
  overflow: hidden `).concat(r, `;
886
886
  padding-right: `).concat(c, "px ").concat(r, `;
887
887
  }
888
- body[`).concat(ue, `] {
888
+ body[`).concat(le, `] {
889
889
  overflow: hidden `).concat(r, `;
890
890
  overscroll-behavior: contain;
891
891
  `).concat([
@@ -918,27 +918,27 @@ var so = function() {
918
918
  margin-right: 0 `).concat(r, `;
919
919
  }
920
920
 
921
- body[`).concat(ue, `] {
922
- `).concat(Kr, ": ").concat(c, `px;
921
+ body[`).concat(le, `] {
922
+ `).concat(Xr, ": ").concat(c, `px;
923
923
  }
924
924
  `);
925
925
  }, Tt = function() {
926
- var e = parseInt(document.body.getAttribute(ue) || "0", 10);
926
+ var e = parseInt(document.body.getAttribute(le) || "0", 10);
927
927
  return isFinite(e) ? e : 0;
928
- }, po = function() {
928
+ }, ho = function() {
929
929
  a.useEffect(function() {
930
- return document.body.setAttribute(ue, (Tt() + 1).toString()), function() {
930
+ return document.body.setAttribute(le, (Tt() + 1).toString()), function() {
931
931
  var e = Tt() - 1;
932
- e <= 0 ? document.body.removeAttribute(ue) : document.body.setAttribute(ue, e.toString());
932
+ e <= 0 ? document.body.removeAttribute(le) : document.body.setAttribute(le, e.toString());
933
933
  };
934
934
  }, []);
935
- }, mo = function(e) {
935
+ }, po = function(e) {
936
936
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
937
- po();
937
+ ho();
938
938
  var i = a.useMemo(function() {
939
- return uo(o);
939
+ return lo(o);
940
940
  }, [o]);
941
- return a.createElement(fo, { styles: ho(i, !t, o, n ? "" : "!important") });
941
+ return a.createElement(uo, { styles: fo(i, !t, o, n ? "" : "!important") });
942
942
  }, et = !1;
943
943
  if (typeof window < "u")
944
944
  try {
@@ -951,7 +951,7 @@ if (typeof window < "u")
951
951
  } catch {
952
952
  et = !1;
953
953
  }
954
- var ce = et ? { passive: !1 } : !1, vo = function(e) {
954
+ var se = et ? { passive: !1 } : !1, mo = function(e) {
955
955
  return e.tagName === "TEXTAREA";
956
956
  }, on = function(e, t) {
957
957
  if (!(e instanceof Element))
@@ -960,11 +960,11 @@ var ce = et ? { passive: !1 } : !1, vo = function(e) {
960
960
  return (
961
961
  // not-not-scrollable
962
962
  n[t] !== "hidden" && // contains scroll inside self
963
- !(n.overflowY === n.overflowX && !vo(e) && n[t] === "visible")
963
+ !(n.overflowY === n.overflowX && !mo(e) && n[t] === "visible")
964
964
  );
965
- }, go = function(e) {
965
+ }, vo = function(e) {
966
966
  return on(e, "overflowY");
967
- }, yo = function(e) {
967
+ }, go = function(e) {
968
968
  return on(e, "overflowX");
969
969
  }, kt = function(e, t) {
970
970
  var n = t.ownerDocument, r = t;
@@ -979,14 +979,14 @@ var ce = et ? { passive: !1 } : !1, vo = function(e) {
979
979
  r = r.parentNode;
980
980
  } while (r && r !== n.body);
981
981
  return !1;
982
- }, wo = function(e) {
982
+ }, yo = function(e) {
983
983
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
984
984
  return [
985
985
  t,
986
986
  n,
987
987
  r
988
988
  ];
989
- }, bo = function(e) {
989
+ }, wo = function(e) {
990
990
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
991
991
  return [
992
992
  t,
@@ -994,16 +994,20 @@ var ce = et ? { passive: !1 } : !1, vo = function(e) {
994
994
  r
995
995
  ];
996
996
  }, sn = function(e, t) {
997
- return e === "v" ? go(t) : yo(t);
997
+ return e === "v" ? vo(t) : go(t);
998
998
  }, cn = function(e, t) {
999
- return e === "v" ? wo(t) : bo(t);
1000
- }, xo = function(e, t) {
999
+ return e === "v" ? yo(t) : wo(t);
1000
+ }, bo = function(e, t) {
1001
1001
  return e === "h" && t === "rtl" ? -1 : 1;
1002
- }, Eo = function(e, t, n, r, o) {
1003
- var i = xo(e, window.getComputedStyle(t).direction), s = i * r, c = n.target, u = t.contains(c), l = !1, f = s > 0, d = 0, p = 0;
1002
+ }, xo = function(e, t, n, r, o) {
1003
+ var i = bo(e, window.getComputedStyle(t).direction), s = i * r, c = n.target, u = t.contains(c), l = !1, f = s > 0, d = 0, p = 0;
1004
1004
  do {
1005
+ if (!c)
1006
+ break;
1005
1007
  var m = cn(e, c), g = m[0], h = m[1], v = m[2], y = h - v - i * g;
1006
- (g || y) && sn(e, c) && (d += y, p += g), c = c.parentNode.host || c.parentNode;
1008
+ (g || y) && sn(e, c) && (d += y, p += g);
1009
+ var w = c.parentNode;
1010
+ c = w && w.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? w.host : w;
1007
1011
  } while (
1008
1012
  // portaled content
1009
1013
  !u && c !== document.body || // self content
@@ -1016,22 +1020,22 @@ var ce = et ? { passive: !1 } : !1, vo = function(e) {
1016
1020
  return [e.deltaX, e.deltaY];
1017
1021
  }, Dt = function(e) {
1018
1022
  return e && "current" in e ? e.current : e;
1019
- }, Co = function(e, t) {
1023
+ }, Eo = function(e, t) {
1020
1024
  return e[0] === t[0] && e[1] === t[1];
1021
- }, Po = function(e) {
1025
+ }, Co = function(e) {
1022
1026
  return `
1023
1027
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
1024
1028
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
1025
1029
  `);
1026
- }, Ao = 0, ae = [];
1027
- function So(e) {
1028
- var t = a.useRef([]), n = a.useRef([0, 0]), r = a.useRef(), o = a.useState(Ao++)[0], i = a.useState(rn)[0], s = a.useRef(e);
1030
+ }, Po = 0, ce = [];
1031
+ function Ao(e) {
1032
+ var t = a.useRef([]), n = a.useRef([0, 0]), r = a.useRef(), o = a.useState(Po++)[0], i = a.useState(rn)[0], s = a.useRef(e);
1029
1033
  a.useEffect(function() {
1030
1034
  s.current = e;
1031
1035
  }, [e]), a.useEffect(function() {
1032
1036
  if (e.inert) {
1033
1037
  document.body.classList.add("block-interactivity-".concat(o));
1034
- var h = Yr([e.lockRef.current], (e.shards || []).map(Dt), !0).filter(Boolean);
1038
+ var h = jr([e.lockRef.current], (e.shards || []).map(Dt), !0).filter(Boolean);
1035
1039
  return h.forEach(function(v) {
1036
1040
  return v.classList.add("allow-interactivity-".concat(o));
1037
1041
  }), function() {
@@ -1044,7 +1048,7 @@ function So(e) {
1044
1048
  var c = a.useCallback(function(h, v) {
1045
1049
  if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
1046
1050
  return !s.current.allowPinchZoom;
1047
- var y = Re(h), x = n.current, b = "deltaX" in h ? h.deltaX : x[0] - y[0], w = "deltaY" in h ? h.deltaY : x[1] - y[1], E, A = h.target, P = Math.abs(b) > Math.abs(w) ? "h" : "v";
1051
+ var y = Re(h), w = n.current, x = "deltaX" in h ? h.deltaX : w[0] - y[0], b = "deltaY" in h ? h.deltaY : w[1] - y[1], E, A = h.target, P = Math.abs(x) > Math.abs(b) ? "h" : "v";
1048
1052
  if ("touches" in h && P === "h" && A.type === "range")
1049
1053
  return !1;
1050
1054
  var R = kt(P, A);
@@ -1052,32 +1056,32 @@ function So(e) {
1052
1056
  return !0;
1053
1057
  if (R ? E = P : (E = P === "v" ? "h" : "v", R = kt(P, A)), !R)
1054
1058
  return !1;
1055
- if (!r.current && "changedTouches" in h && (b || w) && (r.current = E), !E)
1059
+ if (!r.current && "changedTouches" in h && (x || b) && (r.current = E), !E)
1056
1060
  return !0;
1057
- var N = r.current || E;
1058
- return Eo(N, v, h, N === "h" ? b : w);
1061
+ var M = r.current || E;
1062
+ return xo(M, v, h, M === "h" ? x : b);
1059
1063
  }, []), u = a.useCallback(function(h) {
1060
1064
  var v = h;
1061
- if (!(!ae.length || ae[ae.length - 1] !== i)) {
1062
- var y = "deltaY" in v ? Lt(v) : Re(v), x = t.current.filter(function(E) {
1063
- return E.name === v.type && (E.target === v.target || v.target === E.shadowParent) && Co(E.delta, y);
1065
+ if (!(!ce.length || ce[ce.length - 1] !== i)) {
1066
+ var y = "deltaY" in v ? Lt(v) : Re(v), w = t.current.filter(function(E) {
1067
+ return E.name === v.type && (E.target === v.target || v.target === E.shadowParent) && Eo(E.delta, y);
1064
1068
  })[0];
1065
- if (x && x.should) {
1069
+ if (w && w.should) {
1066
1070
  v.cancelable && v.preventDefault();
1067
1071
  return;
1068
1072
  }
1069
- if (!x) {
1070
- var b = (s.current.shards || []).map(Dt).filter(Boolean).filter(function(E) {
1073
+ if (!w) {
1074
+ var x = (s.current.shards || []).map(Dt).filter(Boolean).filter(function(E) {
1071
1075
  return E.contains(v.target);
1072
- }), w = b.length > 0 ? c(v, b[0]) : !s.current.noIsolation;
1073
- w && v.cancelable && v.preventDefault();
1076
+ }), b = x.length > 0 ? c(v, x[0]) : !s.current.noIsolation;
1077
+ b && v.cancelable && v.preventDefault();
1074
1078
  }
1075
1079
  }
1076
- }, []), l = a.useCallback(function(h, v, y, x) {
1077
- var b = { name: h, delta: v, target: y, should: x, shadowParent: Ro(y) };
1078
- t.current.push(b), setTimeout(function() {
1079
- t.current = t.current.filter(function(w) {
1080
- return w !== b;
1080
+ }, []), l = a.useCallback(function(h, v, y, w) {
1081
+ var x = { name: h, delta: v, target: y, should: w, shadowParent: So(y) };
1082
+ t.current.push(x), setTimeout(function() {
1083
+ t.current = t.current.filter(function(b) {
1084
+ return b !== x;
1081
1085
  });
1082
1086
  }, 1);
1083
1087
  }, []), f = a.useCallback(function(h) {
@@ -1088,42 +1092,42 @@ function So(e) {
1088
1092
  l(h.type, Re(h), h.target, c(h, e.lockRef.current));
1089
1093
  }, []);
1090
1094
  a.useEffect(function() {
1091
- return ae.push(i), e.setCallbacks({
1095
+ return ce.push(i), e.setCallbacks({
1092
1096
  onScrollCapture: d,
1093
1097
  onWheelCapture: d,
1094
1098
  onTouchMoveCapture: p
1095
- }), document.addEventListener("wheel", u, ce), document.addEventListener("touchmove", u, ce), document.addEventListener("touchstart", f, ce), function() {
1096
- ae = ae.filter(function(h) {
1099
+ }), document.addEventListener("wheel", u, se), document.addEventListener("touchmove", u, se), document.addEventListener("touchstart", f, se), function() {
1100
+ ce = ce.filter(function(h) {
1097
1101
  return h !== i;
1098
- }), document.removeEventListener("wheel", u, ce), document.removeEventListener("touchmove", u, ce), document.removeEventListener("touchstart", f, ce);
1102
+ }), document.removeEventListener("wheel", u, se), document.removeEventListener("touchmove", u, se), document.removeEventListener("touchstart", f, se);
1099
1103
  };
1100
1104
  }, []);
1101
1105
  var m = e.removeScrollBar, g = e.inert;
1102
1106
  return a.createElement(
1103
1107
  a.Fragment,
1104
1108
  null,
1105
- g ? a.createElement(i, { styles: Po(o) }) : null,
1106
- m ? a.createElement(mo, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
1109
+ g ? a.createElement(i, { styles: Co(o) }) : null,
1110
+ m ? a.createElement(po, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
1107
1111
  );
1108
1112
  }
1109
- function Ro(e) {
1113
+ function So(e) {
1110
1114
  for (var t = null; e !== null; )
1111
1115
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
1112
1116
  return t;
1113
1117
  }
1114
- const Oo = to(nn, So);
1118
+ const Ro = eo(nn, Ao);
1115
1119
  var an = a.forwardRef(function(e, t) {
1116
- return a.createElement(We, U({}, e, { ref: t, sideCar: Oo }));
1120
+ return a.createElement(We, U({}, e, { ref: t, sideCar: Ro }));
1117
1121
  });
1118
1122
  an.classNames = We.classNames;
1119
- var No = function(e) {
1123
+ var Oo = function(e) {
1120
1124
  if (typeof document > "u")
1121
1125
  return null;
1122
1126
  var t = Array.isArray(e) ? e[0] : e;
1123
1127
  return t.ownerDocument.body;
1124
- }, le = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), Ne = {}, Ze = 0, ln = function(e) {
1128
+ }, ae = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), Ne = {}, Ze = 0, ln = function(e) {
1125
1129
  return e && (e.host || ln(e.parentNode));
1126
- }, Mo = function(e, t) {
1130
+ }, No = function(e, t) {
1127
1131
  return t.map(function(n) {
1128
1132
  if (e.contains(n))
1129
1133
  return n;
@@ -1132,8 +1136,8 @@ var No = function(e) {
1132
1136
  }).filter(function(n) {
1133
1137
  return !!n;
1134
1138
  });
1135
- }, To = function(e, t, n, r) {
1136
- var o = Mo(t, Array.isArray(e) ? e : [e]);
1139
+ }, Mo = function(e, t, n, r) {
1140
+ var o = No(t, Array.isArray(e) ? e : [e]);
1137
1141
  Ne[n] || (Ne[n] = /* @__PURE__ */ new WeakMap());
1138
1142
  var i = Ne[n], s = [], c = /* @__PURE__ */ new Set(), u = new Set(o), l = function(d) {
1139
1143
  !d || c.has(d) || (c.add(d), l(d.parentNode));
@@ -1145,8 +1149,8 @@ var No = function(e) {
1145
1149
  f(p);
1146
1150
  else
1147
1151
  try {
1148
- var m = p.getAttribute(r), g = m !== null && m !== "false", h = (le.get(p) || 0) + 1, v = (i.get(p) || 0) + 1;
1149
- le.set(p, h), i.set(p, v), s.push(p), h === 1 && g && Oe.set(p, !0), v === 1 && p.setAttribute(n, "true"), g || p.setAttribute(r, "true");
1152
+ var m = p.getAttribute(r), g = m !== null && m !== "false", h = (ae.get(p) || 0) + 1, v = (i.get(p) || 0) + 1;
1153
+ ae.set(p, h), i.set(p, v), s.push(p), h === 1 && g && Oe.set(p, !0), v === 1 && p.setAttribute(n, "true"), g || p.setAttribute(r, "true");
1150
1154
  } catch (y) {
1151
1155
  console.error("aria-hidden: cannot operate on ", p, y);
1152
1156
  }
@@ -1154,18 +1158,18 @@ var No = function(e) {
1154
1158
  };
1155
1159
  return f(t), c.clear(), Ze++, function() {
1156
1160
  s.forEach(function(d) {
1157
- var p = le.get(d) - 1, m = i.get(d) - 1;
1158
- le.set(d, p), i.set(d, m), p || (Oe.has(d) || d.removeAttribute(r), Oe.delete(d)), m || d.removeAttribute(n);
1159
- }), Ze--, Ze || (le = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), Ne = {});
1161
+ var p = ae.get(d) - 1, m = i.get(d) - 1;
1162
+ ae.set(d, p), i.set(d, m), p || (Oe.has(d) || d.removeAttribute(r), Oe.delete(d)), m || d.removeAttribute(n);
1163
+ }), Ze--, Ze || (ae = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), Ne = {});
1160
1164
  };
1161
- }, ko = function(e, t, n) {
1165
+ }, To = function(e, t, n) {
1162
1166
  n === void 0 && (n = "data-aria-hidden");
1163
- var r = Array.from(Array.isArray(e) ? e : [e]), o = No(e);
1164
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), To(r, o, n, "aria-hidden")) : function() {
1167
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = Oo(e);
1168
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Mo(r, o, n, "aria-hidden")) : function() {
1165
1169
  return null;
1166
1170
  };
1167
1171
  };
1168
- function Lo(e) {
1172
+ function ko(e) {
1169
1173
  const [t, n] = a.useState(void 0);
1170
1174
  return ee(() => {
1171
1175
  if (e) {
@@ -1187,20 +1191,20 @@ function Lo(e) {
1187
1191
  n(void 0);
1188
1192
  }, [e]), t;
1189
1193
  }
1190
- const Do = ["top", "right", "bottom", "left"], te = Math.min, B = Math.max, De = Math.round, Me = Math.floor, z = (e) => ({
1194
+ const Lo = ["top", "right", "bottom", "left"], te = Math.min, W = Math.max, De = Math.round, Me = Math.floor, j = (e) => ({
1191
1195
  x: e,
1192
1196
  y: e
1193
- }), _o = {
1197
+ }), Do = {
1194
1198
  left: "right",
1195
1199
  right: "left",
1196
1200
  bottom: "top",
1197
1201
  top: "bottom"
1198
- }, Fo = {
1202
+ }, _o = {
1199
1203
  start: "end",
1200
1204
  end: "start"
1201
1205
  };
1202
1206
  function tt(e, t, n) {
1203
- return B(e, te(t, n));
1207
+ return W(e, te(t, n));
1204
1208
  }
1205
1209
  function K(e, t) {
1206
1210
  return typeof e == "function" ? e(t) : e;
@@ -1208,7 +1212,7 @@ function K(e, t) {
1208
1212
  function Z(e) {
1209
1213
  return e.split("-")[0];
1210
1214
  }
1211
- function me(e) {
1215
+ function pe(e) {
1212
1216
  return e.split("-")[1];
1213
1217
  }
1214
1218
  function it(e) {
@@ -1217,26 +1221,26 @@ function it(e) {
1217
1221
  function st(e) {
1218
1222
  return e === "y" ? "height" : "width";
1219
1223
  }
1220
- function X(e) {
1224
+ function z(e) {
1221
1225
  return ["top", "bottom"].includes(Z(e)) ? "y" : "x";
1222
1226
  }
1223
1227
  function ct(e) {
1224
- return it(X(e));
1228
+ return it(z(e));
1225
1229
  }
1226
- function Io(e, t, n) {
1230
+ function Fo(e, t, n) {
1227
1231
  n === void 0 && (n = !1);
1228
- const r = me(e), o = ct(e), i = st(o);
1232
+ const r = pe(e), o = ct(e), i = st(o);
1229
1233
  let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
1230
1234
  return t.reference[i] > t.floating[i] && (s = _e(s)), [s, _e(s)];
1231
1235
  }
1232
- function Wo(e) {
1236
+ function Io(e) {
1233
1237
  const t = _e(e);
1234
1238
  return [nt(e), t, nt(t)];
1235
1239
  }
1236
1240
  function nt(e) {
1237
- return e.replace(/start|end/g, (t) => Fo[t]);
1241
+ return e.replace(/start|end/g, (t) => _o[t]);
1238
1242
  }
1239
- function Bo(e, t, n) {
1243
+ function Wo(e, t, n) {
1240
1244
  const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
1241
1245
  switch (e) {
1242
1246
  case "top":
@@ -1249,15 +1253,15 @@ function Bo(e, t, n) {
1249
1253
  return [];
1250
1254
  }
1251
1255
  }
1252
- function $o(e, t, n, r) {
1253
- const o = me(e);
1254
- let i = Bo(Z(e), n === "start", r);
1256
+ function Bo(e, t, n, r) {
1257
+ const o = pe(e);
1258
+ let i = Wo(Z(e), n === "start", r);
1255
1259
  return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(nt)))), i;
1256
1260
  }
1257
1261
  function _e(e) {
1258
- return e.replace(/left|right|bottom|top/g, (t) => _o[t]);
1262
+ return e.replace(/left|right|bottom|top/g, (t) => Do[t]);
1259
1263
  }
1260
- function Ho(e) {
1264
+ function $o(e) {
1261
1265
  return {
1262
1266
  top: 0,
1263
1267
  right: 0,
@@ -1267,7 +1271,7 @@ function Ho(e) {
1267
1271
  };
1268
1272
  }
1269
1273
  function un(e) {
1270
- return typeof e != "number" ? Ho(e) : {
1274
+ return typeof e != "number" ? $o(e) : {
1271
1275
  top: e,
1272
1276
  right: e,
1273
1277
  bottom: e,
@@ -1297,7 +1301,7 @@ function _t(e, t, n) {
1297
1301
  reference: r,
1298
1302
  floating: o
1299
1303
  } = e;
1300
- const i = X(t), s = ct(t), c = st(s), u = Z(t), l = i === "y", f = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, p = r[c] / 2 - o[c] / 2;
1304
+ const i = z(t), s = ct(t), c = st(s), u = Z(t), l = i === "y", f = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, p = r[c] / 2 - o[c] / 2;
1301
1305
  let m;
1302
1306
  switch (u) {
1303
1307
  case "top":
@@ -1330,7 +1334,7 @@ function _t(e, t, n) {
1330
1334
  y: r.y
1331
1335
  };
1332
1336
  }
1333
- switch (me(t)) {
1337
+ switch (pe(t)) {
1334
1338
  case "start":
1335
1339
  m[s] -= p * (n && l ? -1 : 1);
1336
1340
  break;
@@ -1340,7 +1344,7 @@ function _t(e, t, n) {
1340
1344
  }
1341
1345
  return m;
1342
1346
  }
1343
- const Vo = async (e, t, n) => {
1347
+ const Ho = async (e, t, n) => {
1344
1348
  const {
1345
1349
  placement: r = "bottom",
1346
1350
  strategy: o = "absolute",
@@ -1360,9 +1364,9 @@ const Vo = async (e, t, n) => {
1360
1364
  name: v,
1361
1365
  fn: y
1362
1366
  } = c[h], {
1363
- x,
1364
- y: b,
1365
- data: w,
1367
+ x: w,
1368
+ y: x,
1369
+ data: b,
1366
1370
  reset: E
1367
1371
  } = await y({
1368
1372
  x: f,
@@ -1378,11 +1382,11 @@ const Vo = async (e, t, n) => {
1378
1382
  floating: t
1379
1383
  }
1380
1384
  });
1381
- f = x ?? f, d = b ?? d, m = {
1385
+ f = w ?? f, d = x ?? d, m = {
1382
1386
  ...m,
1383
1387
  [v]: {
1384
1388
  ...m[v],
1385
- ...w
1389
+ ...b
1386
1390
  }
1387
1391
  }, E && g <= 50 && (g++, typeof E == "object" && (E.placement && (p = E.placement), E.rects && (l = E.rects === !0 ? await s.getElementRects({
1388
1392
  reference: e,
@@ -1401,7 +1405,7 @@ const Vo = async (e, t, n) => {
1401
1405
  middlewareData: m
1402
1406
  };
1403
1407
  };
1404
- async function we(e, t) {
1408
+ async function ye(e, t) {
1405
1409
  var n;
1406
1410
  t === void 0 && (t = {});
1407
1411
  const {
@@ -1422,12 +1426,12 @@ async function we(e, t) {
1422
1426
  boundary: l,
1423
1427
  rootBoundary: f,
1424
1428
  strategy: u
1425
- })), x = d === "floating" ? {
1429
+ })), w = d === "floating" ? {
1426
1430
  x: r,
1427
1431
  y: o,
1428
1432
  width: s.floating.width,
1429
1433
  height: s.floating.height
1430
- } : s.reference, b = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c.floating)), w = await (i.isElement == null ? void 0 : i.isElement(b)) ? await (i.getScale == null ? void 0 : i.getScale(b)) || {
1434
+ } : s.reference, x = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c.floating)), b = await (i.isElement == null ? void 0 : i.isElement(x)) ? await (i.getScale == null ? void 0 : i.getScale(x)) || {
1431
1435
  x: 1,
1432
1436
  y: 1
1433
1437
  } : {
@@ -1435,18 +1439,18 @@ async function we(e, t) {
1435
1439
  y: 1
1436
1440
  }, E = Fe(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1437
1441
  elements: c,
1438
- rect: x,
1439
- offsetParent: b,
1442
+ rect: w,
1443
+ offsetParent: x,
1440
1444
  strategy: u
1441
- }) : x);
1445
+ }) : w);
1442
1446
  return {
1443
- top: (y.top - E.top + g.top) / w.y,
1444
- bottom: (E.bottom - y.bottom + g.bottom) / w.y,
1445
- left: (y.left - E.left + g.left) / w.x,
1446
- right: (E.right - y.right + g.right) / w.x
1447
+ top: (y.top - E.top + g.top) / b.y,
1448
+ bottom: (E.bottom - y.bottom + g.bottom) / b.y,
1449
+ left: (y.left - E.left + g.left) / b.x,
1450
+ right: (E.right - y.right + g.right) / b.x
1447
1451
  };
1448
1452
  }
1449
- const Uo = (e) => ({
1453
+ const Vo = (e) => ({
1450
1454
  name: "arrow",
1451
1455
  options: e,
1452
1456
  async fn(t) {
@@ -1467,23 +1471,23 @@ const Uo = (e) => ({
1467
1471
  const d = un(f), p = {
1468
1472
  x: n,
1469
1473
  y: r
1470
- }, m = ct(o), g = st(m), h = await s.getDimensions(l), v = m === "y", y = v ? "top" : "left", x = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", w = i.reference[g] + i.reference[m] - p[m] - i.floating[g], E = p[m] - i.reference[m], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
1471
- let P = A ? A[b] : 0;
1472
- (!P || !await (s.isElement == null ? void 0 : s.isElement(A))) && (P = c.floating[b] || i.floating[g]);
1473
- const R = w / 2 - E / 2, N = P / 2 - h[g] / 2 - 1, O = te(d[y], N), I = te(d[x], N), W = O, M = P - h[g] - I, F = P / 2 - h[g] / 2 + R, k = tt(W, F, M), L = !u.arrow && me(o) != null && F !== k && i.reference[g] / 2 - (F < W ? O : I) - h[g] / 2 < 0, D = L ? F < W ? F - W : F - M : 0;
1474
+ }, m = ct(o), g = st(m), h = await s.getDimensions(l), v = m === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", b = i.reference[g] + i.reference[m] - p[m] - i.floating[g], E = p[m] - i.reference[m], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
1475
+ let P = A ? A[x] : 0;
1476
+ (!P || !await (s.isElement == null ? void 0 : s.isElement(A))) && (P = c.floating[x] || i.floating[g]);
1477
+ const R = b / 2 - E / 2, M = P / 2 - h[g] / 2 - 1, O = te(d[y], M), _ = te(d[w], M), F = O, T = P - h[g] - _, N = P / 2 - h[g] / 2 + R, I = tt(F, N, T), k = !u.arrow && pe(o) != null && N !== I && i.reference[g] / 2 - (N < F ? O : _) - h[g] / 2 < 0, L = k ? N < F ? N - F : N - T : 0;
1474
1478
  return {
1475
- [m]: p[m] + D,
1479
+ [m]: p[m] + L,
1476
1480
  data: {
1477
- [m]: k,
1478
- centerOffset: F - k - D,
1479
- ...L && {
1480
- alignmentOffset: D
1481
+ [m]: I,
1482
+ centerOffset: N - I - L,
1483
+ ...k && {
1484
+ alignmentOffset: L
1481
1485
  }
1482
1486
  },
1483
- reset: L
1487
+ reset: k
1484
1488
  };
1485
1489
  }
1486
- }), zo = function(e) {
1490
+ }), Uo = function(e) {
1487
1491
  return e === void 0 && (e = {}), {
1488
1492
  name: "flip",
1489
1493
  options: e,
@@ -1507,59 +1511,57 @@ const Uo = (e) => ({
1507
1511
  } = K(e, t);
1508
1512
  if ((n = i.arrow) != null && n.alignmentOffset)
1509
1513
  return {};
1510
- const y = Z(o), x = X(c), b = Z(c) === c, w = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), E = p || (b || !h ? [_e(c)] : Wo(c)), A = g !== "none";
1511
- !p && A && E.push(...$o(c, h, g, w));
1512
- const P = [c, ...E], R = await we(t, v), N = [];
1514
+ const y = Z(o), w = z(c), x = Z(c) === c, b = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), E = p || (x || !h ? [_e(c)] : Io(c)), A = g !== "none";
1515
+ !p && A && E.push(...Bo(c, h, g, b));
1516
+ const P = [c, ...E], R = await ye(t, v), M = [];
1513
1517
  let O = ((r = i.flip) == null ? void 0 : r.overflows) || [];
1514
- if (f && N.push(R[y]), d) {
1515
- const k = Io(o, s, w);
1516
- N.push(R[k[0]], R[k[1]]);
1518
+ if (f && M.push(R[y]), d) {
1519
+ const N = Fo(o, s, b);
1520
+ M.push(R[N[0]], R[N[1]]);
1517
1521
  }
1518
1522
  if (O = [...O, {
1519
1523
  placement: o,
1520
- overflows: N
1521
- }], !N.every((k) => k <= 0)) {
1522
- var I, W;
1523
- const k = (((I = i.flip) == null ? void 0 : I.index) || 0) + 1, L = P[k];
1524
- if (L) {
1525
- var M;
1526
- const S = d === "alignment" ? x !== X(L) : !1, T = ((M = O[0]) == null ? void 0 : M.overflows[0]) > 0;
1527
- if (!S || T)
1528
- return {
1529
- data: {
1530
- index: k,
1531
- overflows: O
1532
- },
1533
- reset: {
1534
- placement: L
1535
- }
1536
- };
1537
- }
1538
- let D = (W = O.filter((S) => S.overflows[0] <= 0).sort((S, T) => S.overflows[1] - T.overflows[1])[0]) == null ? void 0 : W.placement;
1539
- if (!D)
1524
+ overflows: M
1525
+ }], !M.every((N) => N <= 0)) {
1526
+ var _, F;
1527
+ const N = (((_ = i.flip) == null ? void 0 : _.index) || 0) + 1, I = P[N];
1528
+ if (I && (!(d === "alignment" ? w !== z(I) : !1) || // We leave the current main axis only if every placement on that axis
1529
+ // overflows the main axis.
1530
+ O.every((S) => S.overflows[0] > 0 && z(S.placement) === w)))
1531
+ return {
1532
+ data: {
1533
+ index: N,
1534
+ overflows: O
1535
+ },
1536
+ reset: {
1537
+ placement: I
1538
+ }
1539
+ };
1540
+ let k = (F = O.filter((L) => L.overflows[0] <= 0).sort((L, S) => L.overflows[1] - S.overflows[1])[0]) == null ? void 0 : F.placement;
1541
+ if (!k)
1540
1542
  switch (m) {
1541
1543
  case "bestFit": {
1542
- var F;
1543
- const S = (F = O.filter((T) => {
1544
+ var T;
1545
+ const L = (T = O.filter((S) => {
1544
1546
  if (A) {
1545
- const _ = X(T.placement);
1546
- return _ === x || // Create a bias to the `y` side axis due to horizontal
1547
+ const D = z(S.placement);
1548
+ return D === w || // Create a bias to the `y` side axis due to horizontal
1547
1549
  // reading directions favoring greater width.
1548
- _ === "y";
1550
+ D === "y";
1549
1551
  }
1550
1552
  return !0;
1551
- }).map((T) => [T.placement, T.overflows.filter((_) => _ > 0).reduce((_, se) => _ + se, 0)]).sort((T, _) => T[1] - _[1])[0]) == null ? void 0 : F[0];
1552
- S && (D = S);
1553
+ }).map((S) => [S.placement, S.overflows.filter((D) => D > 0).reduce((D, V) => D + V, 0)]).sort((S, D) => S[1] - D[1])[0]) == null ? void 0 : T[0];
1554
+ L && (k = L);
1553
1555
  break;
1554
1556
  }
1555
1557
  case "initialPlacement":
1556
- D = c;
1558
+ k = c;
1557
1559
  break;
1558
1560
  }
1559
- if (o !== D)
1561
+ if (o !== k)
1560
1562
  return {
1561
1563
  reset: {
1562
- placement: D
1564
+ placement: k
1563
1565
  }
1564
1566
  };
1565
1567
  }
@@ -1576,9 +1578,9 @@ function Ft(e, t) {
1576
1578
  };
1577
1579
  }
1578
1580
  function It(e) {
1579
- return Do.some((t) => e[t] >= 0);
1581
+ return Lo.some((t) => e[t] >= 0);
1580
1582
  }
1581
- const jo = function(e) {
1583
+ const zo = function(e) {
1582
1584
  return e === void 0 && (e = {}), {
1583
1585
  name: "hide",
1584
1586
  options: e,
@@ -1591,7 +1593,7 @@ const jo = function(e) {
1591
1593
  } = K(e, t);
1592
1594
  switch (r) {
1593
1595
  case "referenceHidden": {
1594
- const i = await we(t, {
1596
+ const i = await ye(t, {
1595
1597
  ...o,
1596
1598
  elementContext: "reference"
1597
1599
  }), s = Ft(i, n.reference);
@@ -1603,7 +1605,7 @@ const jo = function(e) {
1603
1605
  };
1604
1606
  }
1605
1607
  case "escaped": {
1606
- const i = await we(t, {
1608
+ const i = await ye(t, {
1607
1609
  ...o,
1608
1610
  altBoundary: !0
1609
1611
  }), s = Ft(i, n.floating);
@@ -1620,12 +1622,12 @@ const jo = function(e) {
1620
1622
  }
1621
1623
  };
1622
1624
  };
1623
- async function Yo(e, t) {
1625
+ async function jo(e, t) {
1624
1626
  const {
1625
1627
  placement: n,
1626
1628
  platform: r,
1627
1629
  elements: o
1628
- } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Z(n), c = me(n), u = X(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, f = i && u ? -1 : 1, d = K(t, e);
1630
+ } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Z(n), c = pe(n), u = z(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, f = i && u ? -1 : 1, d = K(t, e);
1629
1631
  let {
1630
1632
  mainAxis: p,
1631
1633
  crossAxis: m,
@@ -1647,7 +1649,7 @@ async function Yo(e, t) {
1647
1649
  y: m * f
1648
1650
  };
1649
1651
  }
1650
- const Xo = function(e) {
1652
+ const Yo = function(e) {
1651
1653
  return e === void 0 && (e = 0), {
1652
1654
  name: "offset",
1653
1655
  options: e,
@@ -1658,7 +1660,7 @@ const Xo = function(e) {
1658
1660
  y: i,
1659
1661
  placement: s,
1660
1662
  middlewareData: c
1661
- } = t, u = await Yo(t, e);
1663
+ } = t, u = await jo(t, e);
1662
1664
  return s === ((n = c.offset) == null ? void 0 : n.placement) && (r = c.arrow) != null && r.alignmentOffset ? {} : {
1663
1665
  x: o + u.x,
1664
1666
  y: i + u.y,
@@ -1669,7 +1671,7 @@ const Xo = function(e) {
1669
1671
  };
1670
1672
  }
1671
1673
  };
1672
- }, Ko = function(e) {
1674
+ }, Xo = function(e) {
1673
1675
  return e === void 0 && (e = {}), {
1674
1676
  name: "shift",
1675
1677
  options: e,
@@ -1685,11 +1687,11 @@ const Xo = function(e) {
1685
1687
  fn: (v) => {
1686
1688
  let {
1687
1689
  x: y,
1688
- y: x
1690
+ y: w
1689
1691
  } = v;
1690
1692
  return {
1691
1693
  x: y,
1692
- y: x
1694
+ y: w
1693
1695
  };
1694
1696
  }
1695
1697
  },
@@ -1697,15 +1699,15 @@ const Xo = function(e) {
1697
1699
  } = K(e, t), l = {
1698
1700
  x: n,
1699
1701
  y: r
1700
- }, f = await we(t, u), d = X(Z(o)), p = it(d);
1702
+ }, f = await ye(t, u), d = z(Z(o)), p = it(d);
1701
1703
  let m = l[p], g = l[d];
1702
1704
  if (i) {
1703
- const v = p === "y" ? "top" : "left", y = p === "y" ? "bottom" : "right", x = m + f[v], b = m - f[y];
1704
- m = tt(x, m, b);
1705
+ const v = p === "y" ? "top" : "left", y = p === "y" ? "bottom" : "right", w = m + f[v], x = m - f[y];
1706
+ m = tt(w, m, x);
1705
1707
  }
1706
1708
  if (s) {
1707
- const v = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", x = g + f[v], b = g - f[y];
1708
- g = tt(x, g, b);
1709
+ const v = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", w = g + f[v], x = g - f[y];
1710
+ g = tt(w, g, x);
1709
1711
  }
1710
1712
  const h = c.fn({
1711
1713
  ...t,
@@ -1725,7 +1727,7 @@ const Xo = function(e) {
1725
1727
  };
1726
1728
  }
1727
1729
  };
1728
- }, Zo = function(e) {
1730
+ }, Ko = function(e) {
1729
1731
  return e === void 0 && (e = {}), {
1730
1732
  options: e,
1731
1733
  fn(t) {
@@ -1742,7 +1744,7 @@ const Xo = function(e) {
1742
1744
  } = K(e, t), f = {
1743
1745
  x: n,
1744
1746
  y: r
1745
- }, d = X(o), p = it(d);
1747
+ }, d = z(o), p = it(d);
1746
1748
  let m = f[p], g = f[d];
1747
1749
  const h = K(c, t), v = typeof h == "number" ? {
1748
1750
  mainAxis: h,
@@ -1753,12 +1755,12 @@ const Xo = function(e) {
1753
1755
  ...h
1754
1756
  };
1755
1757
  if (u) {
1756
- const b = p === "y" ? "height" : "width", w = i.reference[p] - i.floating[b] + v.mainAxis, E = i.reference[p] + i.reference[b] - v.mainAxis;
1757
- m < w ? m = w : m > E && (m = E);
1758
+ const x = p === "y" ? "height" : "width", b = i.reference[p] - i.floating[x] + v.mainAxis, E = i.reference[p] + i.reference[x] - v.mainAxis;
1759
+ m < b ? m = b : m > E && (m = E);
1758
1760
  }
1759
1761
  if (l) {
1760
- var y, x;
1761
- const b = p === "y" ? "width" : "height", w = ["top", "left"].includes(Z(o)), E = i.reference[d] - i.floating[b] + (w && ((y = s.offset) == null ? void 0 : y[d]) || 0) + (w ? 0 : v.crossAxis), A = i.reference[d] + i.reference[b] + (w ? 0 : ((x = s.offset) == null ? void 0 : x[d]) || 0) - (w ? v.crossAxis : 0);
1762
+ var y, w;
1763
+ const x = p === "y" ? "width" : "height", b = ["top", "left"].includes(Z(o)), E = i.reference[d] - i.floating[x] + (b && ((y = s.offset) == null ? void 0 : y[d]) || 0) + (b ? 0 : v.crossAxis), A = i.reference[d] + i.reference[x] + (b ? 0 : ((w = s.offset) == null ? void 0 : w[d]) || 0) - (b ? v.crossAxis : 0);
1762
1764
  g < E ? g = E : g > A && (g = A);
1763
1765
  }
1764
1766
  return {
@@ -1767,7 +1769,7 @@ const Xo = function(e) {
1767
1769
  };
1768
1770
  }
1769
1771
  };
1770
- }, qo = function(e) {
1772
+ }, Zo = function(e) {
1771
1773
  return e === void 0 && (e = {}), {
1772
1774
  name: "size",
1773
1775
  options: e,
@@ -1782,25 +1784,25 @@ const Xo = function(e) {
1782
1784
  apply: u = () => {
1783
1785
  },
1784
1786
  ...l
1785
- } = K(e, t), f = await we(t, l), d = Z(o), p = me(o), m = X(o) === "y", {
1787
+ } = K(e, t), f = await ye(t, l), d = Z(o), p = pe(o), m = z(o) === "y", {
1786
1788
  width: g,
1787
1789
  height: h
1788
1790
  } = i.floating;
1789
1791
  let v, y;
1790
1792
  d === "top" || d === "bottom" ? (v = d, y = p === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (y = d, v = p === "end" ? "top" : "bottom");
1791
- const x = h - f.top - f.bottom, b = g - f.left - f.right, w = te(h - f[v], x), E = te(g - f[y], b), A = !t.middlewareData.shift;
1792
- let P = w, R = E;
1793
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = b), (r = t.middlewareData.shift) != null && r.enabled.y && (P = x), A && !p) {
1794
- const O = B(f.left, 0), I = B(f.right, 0), W = B(f.top, 0), M = B(f.bottom, 0);
1795
- m ? R = g - 2 * (O !== 0 || I !== 0 ? O + I : B(f.left, f.right)) : P = h - 2 * (W !== 0 || M !== 0 ? W + M : B(f.top, f.bottom));
1793
+ const w = h - f.top - f.bottom, x = g - f.left - f.right, b = te(h - f[v], w), E = te(g - f[y], x), A = !t.middlewareData.shift;
1794
+ let P = b, R = E;
1795
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = x), (r = t.middlewareData.shift) != null && r.enabled.y && (P = w), A && !p) {
1796
+ const O = W(f.left, 0), _ = W(f.right, 0), F = W(f.top, 0), T = W(f.bottom, 0);
1797
+ m ? R = g - 2 * (O !== 0 || _ !== 0 ? O + _ : W(f.left, f.right)) : P = h - 2 * (F !== 0 || T !== 0 ? F + T : W(f.top, f.bottom));
1796
1798
  }
1797
1799
  await u({
1798
1800
  ...t,
1799
1801
  availableWidth: R,
1800
1802
  availableHeight: P
1801
1803
  });
1802
- const N = await s.getDimensions(c.floating);
1803
- return g !== N.width || h !== N.height ? {
1804
+ const M = await s.getDimensions(c.floating);
1805
+ return g !== M.width || h !== M.height ? {
1804
1806
  reset: {
1805
1807
  rects: !0
1806
1808
  }
@@ -1811,40 +1813,40 @@ const Xo = function(e) {
1811
1813
  function Be() {
1812
1814
  return typeof window < "u";
1813
1815
  }
1814
- function ve(e) {
1816
+ function me(e) {
1815
1817
  return fn(e) ? (e.nodeName || "").toLowerCase() : "#document";
1816
1818
  }
1817
- function $(e) {
1819
+ function B(e) {
1818
1820
  var t;
1819
1821
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1820
1822
  }
1821
- function Y(e) {
1823
+ function X(e) {
1822
1824
  var t;
1823
1825
  return (t = (fn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1824
1826
  }
1825
1827
  function fn(e) {
1826
- return Be() ? e instanceof Node || e instanceof $(e).Node : !1;
1828
+ return Be() ? e instanceof Node || e instanceof B(e).Node : !1;
1827
1829
  }
1828
- function H(e) {
1829
- return Be() ? e instanceof Element || e instanceof $(e).Element : !1;
1830
+ function $(e) {
1831
+ return Be() ? e instanceof Element || e instanceof B(e).Element : !1;
1830
1832
  }
1831
- function j(e) {
1832
- return Be() ? e instanceof HTMLElement || e instanceof $(e).HTMLElement : !1;
1833
+ function Y(e) {
1834
+ return Be() ? e instanceof HTMLElement || e instanceof B(e).HTMLElement : !1;
1833
1835
  }
1834
1836
  function Wt(e) {
1835
- return !Be() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof $(e).ShadowRoot;
1837
+ return !Be() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof B(e).ShadowRoot;
1836
1838
  }
1837
- function Ee(e) {
1839
+ function xe(e) {
1838
1840
  const {
1839
1841
  overflow: t,
1840
1842
  overflowX: n,
1841
1843
  overflowY: r,
1842
1844
  display: o
1843
- } = V(e);
1845
+ } = H(e);
1844
1846
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
1845
1847
  }
1846
1848
  function Go(e) {
1847
- return ["table", "td", "th"].includes(ve(e));
1849
+ return ["table", "td", "th"].includes(me(e));
1848
1850
  }
1849
1851
  function $e(e) {
1850
1852
  return [":popover-open", ":modal"].some((t) => {
@@ -1856,12 +1858,12 @@ function $e(e) {
1856
1858
  });
1857
1859
  }
1858
1860
  function at(e) {
1859
- const t = lt(), n = H(e) ? V(e) : e;
1861
+ const t = lt(), n = $(e) ? H(e) : e;
1860
1862
  return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
1861
1863
  }
1862
- function Qo(e) {
1864
+ function qo(e) {
1863
1865
  let t = ne(e);
1864
- for (; j(t) && !he(t); ) {
1866
+ for (; Y(t) && !de(t); ) {
1865
1867
  if (at(t))
1866
1868
  return t;
1867
1869
  if ($e(t))
@@ -1873,14 +1875,14 @@ function Qo(e) {
1873
1875
  function lt() {
1874
1876
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1875
1877
  }
1876
- function he(e) {
1877
- return ["html", "body", "#document"].includes(ve(e));
1878
+ function de(e) {
1879
+ return ["html", "body", "#document"].includes(me(e));
1878
1880
  }
1879
- function V(e) {
1880
- return $(e).getComputedStyle(e);
1881
+ function H(e) {
1882
+ return B(e).getComputedStyle(e);
1881
1883
  }
1882
1884
  function He(e) {
1883
- return H(e) ? {
1885
+ return $(e) ? {
1884
1886
  scrollLeft: e.scrollLeft,
1885
1887
  scrollTop: e.scrollTop
1886
1888
  } : {
@@ -1889,38 +1891,38 @@ function He(e) {
1889
1891
  };
1890
1892
  }
1891
1893
  function ne(e) {
1892
- if (ve(e) === "html")
1894
+ if (me(e) === "html")
1893
1895
  return e;
1894
1896
  const t = (
1895
1897
  // Step into the shadow DOM of the parent of a slotted node.
1896
1898
  e.assignedSlot || // DOM Element detected.
1897
1899
  e.parentNode || // ShadowRoot detected.
1898
1900
  Wt(e) && e.host || // Fallback.
1899
- Y(e)
1901
+ X(e)
1900
1902
  );
1901
1903
  return Wt(t) ? t.host : t;
1902
1904
  }
1903
1905
  function dn(e) {
1904
1906
  const t = ne(e);
1905
- return he(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : j(t) && Ee(t) ? t : dn(t);
1907
+ return de(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && xe(t) ? t : dn(t);
1906
1908
  }
1907
- function be(e, t, n) {
1909
+ function we(e, t, n) {
1908
1910
  var r;
1909
1911
  t === void 0 && (t = []), n === void 0 && (n = !0);
1910
- const o = dn(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = $(o);
1912
+ const o = dn(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = B(o);
1911
1913
  if (i) {
1912
1914
  const c = rt(s);
1913
- return t.concat(s, s.visualViewport || [], Ee(o) ? o : [], c && n ? be(c) : []);
1915
+ return t.concat(s, s.visualViewport || [], xe(o) ? o : [], c && n ? we(c) : []);
1914
1916
  }
1915
- return t.concat(o, be(o, [], n));
1917
+ return t.concat(o, we(o, [], n));
1916
1918
  }
1917
1919
  function rt(e) {
1918
1920
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1919
1921
  }
1920
1922
  function hn(e) {
1921
- const t = V(e);
1923
+ const t = H(e);
1922
1924
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
1923
- const o = j(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, c = De(n) !== i || De(r) !== s;
1925
+ const o = Y(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, c = De(n) !== i || De(r) !== s;
1924
1926
  return c && (n = i, r = s), {
1925
1927
  width: n,
1926
1928
  height: r,
@@ -1928,12 +1930,12 @@ function hn(e) {
1928
1930
  };
1929
1931
  }
1930
1932
  function ut(e) {
1931
- return H(e) ? e : e.contextElement;
1933
+ return $(e) ? e : e.contextElement;
1932
1934
  }
1933
- function fe(e) {
1935
+ function ue(e) {
1934
1936
  const t = ut(e);
1935
- if (!j(t))
1936
- return z(1);
1937
+ if (!Y(t))
1938
+ return j(1);
1937
1939
  const n = t.getBoundingClientRect(), {
1938
1940
  width: r,
1939
1941
  height: o,
@@ -1945,30 +1947,30 @@ function fe(e) {
1945
1947
  y: c
1946
1948
  };
1947
1949
  }
1948
- const Jo = /* @__PURE__ */ z(0);
1950
+ const Qo = /* @__PURE__ */ j(0);
1949
1951
  function pn(e) {
1950
- const t = $(e);
1951
- return !lt() || !t.visualViewport ? Jo : {
1952
+ const t = B(e);
1953
+ return !lt() || !t.visualViewport ? Qo : {
1952
1954
  x: t.visualViewport.offsetLeft,
1953
1955
  y: t.visualViewport.offsetTop
1954
1956
  };
1955
1957
  }
1956
- function ei(e, t, n) {
1957
- return t === void 0 && (t = !1), !n || t && n !== $(e) ? !1 : t;
1958
+ function Jo(e, t, n) {
1959
+ return t === void 0 && (t = !1), !n || t && n !== B(e) ? !1 : t;
1958
1960
  }
1959
1961
  function ie(e, t, n, r) {
1960
1962
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1961
1963
  const o = e.getBoundingClientRect(), i = ut(e);
1962
- let s = z(1);
1963
- t && (r ? H(r) && (s = fe(r)) : s = fe(e));
1964
- const c = ei(i, n, r) ? pn(i) : z(0);
1964
+ let s = j(1);
1965
+ t && (r ? $(r) && (s = ue(r)) : s = ue(e));
1966
+ const c = Jo(i, n, r) ? pn(i) : j(0);
1965
1967
  let u = (o.left + c.x) / s.x, l = (o.top + c.y) / s.y, f = o.width / s.x, d = o.height / s.y;
1966
1968
  if (i) {
1967
- const p = $(i), m = r && H(r) ? $(r) : r;
1969
+ const p = B(i), m = r && $(r) ? B(r) : r;
1968
1970
  let g = p, h = rt(g);
1969
1971
  for (; h && r && m !== g; ) {
1970
- const v = fe(h), y = h.getBoundingClientRect(), x = V(h), b = y.left + (h.clientLeft + parseFloat(x.paddingLeft)) * v.x, w = y.top + (h.clientTop + parseFloat(x.paddingTop)) * v.y;
1971
- u *= v.x, l *= v.y, f *= v.x, d *= v.y, u += b, l += w, g = $(h), h = rt(g);
1972
+ const v = ue(h), y = h.getBoundingClientRect(), w = H(h), x = y.left + (h.clientLeft + parseFloat(w.paddingLeft)) * v.x, b = y.top + (h.clientTop + parseFloat(w.paddingTop)) * v.y;
1973
+ u *= v.x, l *= v.y, f *= v.x, d *= v.y, u += x, l += b, g = B(h), h = rt(g);
1972
1974
  }
1973
1975
  }
1974
1976
  return Fe({
@@ -1980,7 +1982,7 @@ function ie(e, t, n, r) {
1980
1982
  }
1981
1983
  function ft(e, t) {
1982
1984
  const n = He(e).scrollLeft;
1983
- return t ? t.left + n : ie(Y(e)).left + n;
1985
+ return t ? t.left + n : ie(X(e)).left + n;
1984
1986
  }
1985
1987
  function mn(e, t, n) {
1986
1988
  n === void 0 && (n = !1);
@@ -1993,26 +1995,26 @@ function mn(e, t, n) {
1993
1995
  y: i
1994
1996
  };
1995
1997
  }
1996
- function ti(e) {
1998
+ function ei(e) {
1997
1999
  let {
1998
2000
  elements: t,
1999
2001
  rect: n,
2000
2002
  offsetParent: r,
2001
2003
  strategy: o
2002
2004
  } = e;
2003
- const i = o === "fixed", s = Y(r), c = t ? $e(t.floating) : !1;
2005
+ const i = o === "fixed", s = X(r), c = t ? $e(t.floating) : !1;
2004
2006
  if (r === s || c && i)
2005
2007
  return n;
2006
2008
  let u = {
2007
2009
  scrollLeft: 0,
2008
2010
  scrollTop: 0
2009
- }, l = z(1);
2010
- const f = z(0), d = j(r);
2011
- if ((d || !d && !i) && ((ve(r) !== "body" || Ee(s)) && (u = He(r)), j(r))) {
2011
+ }, l = j(1);
2012
+ const f = j(0), d = Y(r);
2013
+ if ((d || !d && !i) && ((me(r) !== "body" || xe(s)) && (u = He(r)), Y(r))) {
2012
2014
  const m = ie(r);
2013
- l = fe(r), f.x = m.x + r.clientLeft, f.y = m.y + r.clientTop;
2015
+ l = ue(r), f.x = m.x + r.clientLeft, f.y = m.y + r.clientTop;
2014
2016
  }
2015
- const p = s && !d && !i ? mn(s, u, !0) : z(0);
2017
+ const p = s && !d && !i ? mn(s, u, !0) : j(0);
2016
2018
  return {
2017
2019
  width: n.width * l.x,
2018
2020
  height: n.height * l.y,
@@ -2020,22 +2022,22 @@ function ti(e) {
2020
2022
  y: n.y * l.y - u.scrollTop * l.y + f.y + p.y
2021
2023
  };
2022
2024
  }
2023
- function ni(e) {
2025
+ function ti(e) {
2024
2026
  return Array.from(e.getClientRects());
2025
2027
  }
2026
- function ri(e) {
2027
- const t = Y(e), n = He(e), r = e.ownerDocument.body, o = B(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = B(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
2028
+ function ni(e) {
2029
+ const t = X(e), n = He(e), r = e.ownerDocument.body, o = W(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = W(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
2028
2030
  let s = -n.scrollLeft + ft(e);
2029
2031
  const c = -n.scrollTop;
2030
- return V(r).direction === "rtl" && (s += B(t.clientWidth, r.clientWidth) - o), {
2032
+ return H(r).direction === "rtl" && (s += W(t.clientWidth, r.clientWidth) - o), {
2031
2033
  width: o,
2032
2034
  height: i,
2033
2035
  x: s,
2034
2036
  y: c
2035
2037
  };
2036
2038
  }
2037
- function oi(e, t) {
2038
- const n = $(e), r = Y(e), o = n.visualViewport;
2039
+ function ri(e, t) {
2040
+ const n = B(e), r = X(e), o = n.visualViewport;
2039
2041
  let i = r.clientWidth, s = r.clientHeight, c = 0, u = 0;
2040
2042
  if (o) {
2041
2043
  i = o.width, s = o.height;
@@ -2049,8 +2051,8 @@ function oi(e, t) {
2049
2051
  y: u
2050
2052
  };
2051
2053
  }
2052
- function ii(e, t) {
2053
- const n = ie(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = j(e) ? fe(e) : z(1), s = e.clientWidth * i.x, c = e.clientHeight * i.y, u = o * i.x, l = r * i.y;
2054
+ function oi(e, t) {
2055
+ const n = ie(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Y(e) ? ue(e) : j(1), s = e.clientWidth * i.x, c = e.clientHeight * i.y, u = o * i.x, l = r * i.y;
2054
2056
  return {
2055
2057
  width: s,
2056
2058
  height: c,
@@ -2061,11 +2063,11 @@ function ii(e, t) {
2061
2063
  function Bt(e, t, n) {
2062
2064
  let r;
2063
2065
  if (t === "viewport")
2064
- r = oi(e, n);
2066
+ r = ri(e, n);
2065
2067
  else if (t === "document")
2066
- r = ri(Y(e));
2067
- else if (H(t))
2068
- r = ii(t, n);
2068
+ r = ni(X(e));
2069
+ else if ($(t))
2070
+ r = oi(t, n);
2069
2071
  else {
2070
2072
  const o = pn(e);
2071
2073
  r = {
@@ -2079,31 +2081,31 @@ function Bt(e, t, n) {
2079
2081
  }
2080
2082
  function vn(e, t) {
2081
2083
  const n = ne(e);
2082
- return n === t || !H(n) || he(n) ? !1 : V(n).position === "fixed" || vn(n, t);
2084
+ return n === t || !$(n) || de(n) ? !1 : H(n).position === "fixed" || vn(n, t);
2083
2085
  }
2084
- function si(e, t) {
2086
+ function ii(e, t) {
2085
2087
  const n = t.get(e);
2086
2088
  if (n)
2087
2089
  return n;
2088
- let r = be(e, [], !1).filter((c) => H(c) && ve(c) !== "body"), o = null;
2089
- const i = V(e).position === "fixed";
2090
+ let r = we(e, [], !1).filter((c) => $(c) && me(c) !== "body"), o = null;
2091
+ const i = H(e).position === "fixed";
2090
2092
  let s = i ? ne(e) : e;
2091
- for (; H(s) && !he(s); ) {
2092
- const c = V(s), u = at(s);
2093
- !u && c.position === "fixed" && (o = null), (i ? !u && !o : !u && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ee(s) && !u && vn(e, s)) ? r = r.filter((f) => f !== s) : o = c, s = ne(s);
2093
+ for (; $(s) && !de(s); ) {
2094
+ const c = H(s), u = at(s);
2095
+ !u && c.position === "fixed" && (o = null), (i ? !u && !o : !u && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || xe(s) && !u && vn(e, s)) ? r = r.filter((f) => f !== s) : o = c, s = ne(s);
2094
2096
  }
2095
2097
  return t.set(e, r), r;
2096
2098
  }
2097
- function ci(e) {
2099
+ function si(e) {
2098
2100
  let {
2099
2101
  element: t,
2100
2102
  boundary: n,
2101
2103
  rootBoundary: r,
2102
2104
  strategy: o
2103
2105
  } = e;
2104
- const s = [...n === "clippingAncestors" ? $e(t) ? [] : si(t, this._c) : [].concat(n), r], c = s[0], u = s.reduce((l, f) => {
2106
+ const s = [...n === "clippingAncestors" ? $e(t) ? [] : ii(t, this._c) : [].concat(n), r], c = s[0], u = s.reduce((l, f) => {
2105
2107
  const d = Bt(t, f, o);
2106
- return l.top = B(d.top, l.top), l.right = te(d.right, l.right), l.bottom = te(d.bottom, l.bottom), l.left = B(d.left, l.left), l;
2108
+ return l.top = W(d.top, l.top), l.right = te(d.right, l.right), l.bottom = te(d.bottom, l.bottom), l.left = W(d.left, l.left), l;
2107
2109
  }, Bt(t, c, o));
2108
2110
  return {
2109
2111
  width: u.right - u.left,
@@ -2112,7 +2114,7 @@ function ci(e) {
2112
2114
  y: u.top
2113
2115
  };
2114
2116
  }
2115
- function ai(e) {
2117
+ function ci(e) {
2116
2118
  const {
2117
2119
  width: t,
2118
2120
  height: n
@@ -2122,23 +2124,23 @@ function ai(e) {
2122
2124
  height: n
2123
2125
  };
2124
2126
  }
2125
- function li(e, t, n) {
2126
- const r = j(t), o = Y(t), i = n === "fixed", s = ie(e, !0, i, t);
2127
+ function ai(e, t, n) {
2128
+ const r = Y(t), o = X(t), i = n === "fixed", s = ie(e, !0, i, t);
2127
2129
  let c = {
2128
2130
  scrollLeft: 0,
2129
2131
  scrollTop: 0
2130
2132
  };
2131
- const u = z(0);
2133
+ const u = j(0);
2132
2134
  function l() {
2133
2135
  u.x = ft(o);
2134
2136
  }
2135
2137
  if (r || !r && !i)
2136
- if ((ve(t) !== "body" || Ee(o)) && (c = He(t)), r) {
2138
+ if ((me(t) !== "body" || xe(o)) && (c = He(t)), r) {
2137
2139
  const m = ie(t, !0, i, t);
2138
2140
  u.x = m.x + t.clientLeft, u.y = m.y + t.clientTop;
2139
2141
  } else o && l();
2140
2142
  i && !r && o && l();
2141
- const f = o && !r && !i ? mn(o, c) : z(0), d = s.left + c.scrollLeft - u.x - f.x, p = s.top + c.scrollTop - u.y - f.y;
2143
+ const f = o && !r && !i ? mn(o, c) : j(0), d = s.left + c.scrollLeft - u.x - f.x, p = s.top + c.scrollTop - u.y - f.y;
2142
2144
  return {
2143
2145
  x: d,
2144
2146
  y: p,
@@ -2146,39 +2148,39 @@ function li(e, t, n) {
2146
2148
  height: s.height
2147
2149
  };
2148
2150
  }
2149
- function qe(e) {
2150
- return V(e).position === "static";
2151
+ function Ge(e) {
2152
+ return H(e).position === "static";
2151
2153
  }
2152
2154
  function $t(e, t) {
2153
- if (!j(e) || V(e).position === "fixed")
2155
+ if (!Y(e) || H(e).position === "fixed")
2154
2156
  return null;
2155
2157
  if (t)
2156
2158
  return t(e);
2157
2159
  let n = e.offsetParent;
2158
- return Y(e) === n && (n = n.ownerDocument.body), n;
2160
+ return X(e) === n && (n = n.ownerDocument.body), n;
2159
2161
  }
2160
2162
  function gn(e, t) {
2161
- const n = $(e);
2163
+ const n = B(e);
2162
2164
  if ($e(e))
2163
2165
  return n;
2164
- if (!j(e)) {
2166
+ if (!Y(e)) {
2165
2167
  let o = ne(e);
2166
- for (; o && !he(o); ) {
2167
- if (H(o) && !qe(o))
2168
+ for (; o && !de(o); ) {
2169
+ if ($(o) && !Ge(o))
2168
2170
  return o;
2169
2171
  o = ne(o);
2170
2172
  }
2171
2173
  return n;
2172
2174
  }
2173
2175
  let r = $t(e, t);
2174
- for (; r && Go(r) && qe(r); )
2176
+ for (; r && Go(r) && Ge(r); )
2175
2177
  r = $t(r, t);
2176
- return r && he(r) && qe(r) && !at(r) ? n : r || Qo(e) || n;
2178
+ return r && de(r) && Ge(r) && !at(r) ? n : r || qo(e) || n;
2177
2179
  }
2178
- const ui = async function(e) {
2180
+ const li = async function(e) {
2179
2181
  const t = this.getOffsetParent || gn, n = this.getDimensions, r = await n(e.floating);
2180
2182
  return {
2181
- reference: li(e.reference, await t(e.floating), e.strategy),
2183
+ reference: ai(e.reference, await t(e.floating), e.strategy),
2182
2184
  floating: {
2183
2185
  x: 0,
2184
2186
  y: 0,
@@ -2187,27 +2189,27 @@ const ui = async function(e) {
2187
2189
  }
2188
2190
  };
2189
2191
  };
2190
- function fi(e) {
2191
- return V(e).direction === "rtl";
2192
+ function ui(e) {
2193
+ return H(e).direction === "rtl";
2192
2194
  }
2193
- const di = {
2194
- convertOffsetParentRelativeRectToViewportRelativeRect: ti,
2195
- getDocumentElement: Y,
2196
- getClippingRect: ci,
2195
+ const fi = {
2196
+ convertOffsetParentRelativeRectToViewportRelativeRect: ei,
2197
+ getDocumentElement: X,
2198
+ getClippingRect: si,
2197
2199
  getOffsetParent: gn,
2198
- getElementRects: ui,
2199
- getClientRects: ni,
2200
- getDimensions: ai,
2201
- getScale: fe,
2202
- isElement: H,
2203
- isRTL: fi
2200
+ getElementRects: li,
2201
+ getClientRects: ti,
2202
+ getDimensions: ci,
2203
+ getScale: ue,
2204
+ isElement: $,
2205
+ isRTL: ui
2204
2206
  };
2205
2207
  function yn(e, t) {
2206
2208
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
2207
2209
  }
2208
- function hi(e, t) {
2210
+ function di(e, t) {
2209
2211
  let n = null, r;
2210
- const o = Y(e);
2212
+ const o = X(e);
2211
2213
  function i() {
2212
2214
  var c;
2213
2215
  clearTimeout(r), (c = n) == null || c.disconnect(), n = null;
@@ -2222,36 +2224,36 @@ function hi(e, t) {
2222
2224
  } = l;
2223
2225
  if (c || t(), !p || !m)
2224
2226
  return;
2225
- const g = Me(d), h = Me(o.clientWidth - (f + p)), v = Me(o.clientHeight - (d + m)), y = Me(f), b = {
2227
+ const g = Me(d), h = Me(o.clientWidth - (f + p)), v = Me(o.clientHeight - (d + m)), y = Me(f), x = {
2226
2228
  rootMargin: -g + "px " + -h + "px " + -v + "px " + -y + "px",
2227
- threshold: B(0, te(1, u)) || 1
2229
+ threshold: W(0, te(1, u)) || 1
2228
2230
  };
2229
- let w = !0;
2231
+ let b = !0;
2230
2232
  function E(A) {
2231
2233
  const P = A[0].intersectionRatio;
2232
2234
  if (P !== u) {
2233
- if (!w)
2235
+ if (!b)
2234
2236
  return s();
2235
2237
  P ? s(!1, P) : r = setTimeout(() => {
2236
2238
  s(!1, 1e-7);
2237
2239
  }, 1e3);
2238
2240
  }
2239
- P === 1 && !yn(l, e.getBoundingClientRect()) && s(), w = !1;
2241
+ P === 1 && !yn(l, e.getBoundingClientRect()) && s(), b = !1;
2240
2242
  }
2241
2243
  try {
2242
2244
  n = new IntersectionObserver(E, {
2243
- ...b,
2245
+ ...x,
2244
2246
  // Handle <iframe>s
2245
2247
  root: o.ownerDocument
2246
2248
  });
2247
2249
  } catch {
2248
- n = new IntersectionObserver(E, b);
2250
+ n = new IntersectionObserver(E, x);
2249
2251
  }
2250
2252
  n.observe(e);
2251
2253
  }
2252
2254
  return s(!0), i;
2253
2255
  }
2254
- function pi(e, t, n, r) {
2256
+ function hi(e, t, n, r) {
2255
2257
  r === void 0 && (r = {});
2256
2258
  const {
2257
2259
  ancestorScroll: o = !0,
@@ -2259,19 +2261,19 @@ function pi(e, t, n, r) {
2259
2261
  elementResize: s = typeof ResizeObserver == "function",
2260
2262
  layoutShift: c = typeof IntersectionObserver == "function",
2261
2263
  animationFrame: u = !1
2262
- } = r, l = ut(e), f = o || i ? [...l ? be(l) : [], ...be(t)] : [];
2264
+ } = r, l = ut(e), f = o || i ? [...l ? we(l) : [], ...we(t)] : [];
2263
2265
  f.forEach((y) => {
2264
2266
  o && y.addEventListener("scroll", n, {
2265
2267
  passive: !0
2266
2268
  }), i && y.addEventListener("resize", n);
2267
2269
  });
2268
- const d = l && c ? hi(l, n) : null;
2270
+ const d = l && c ? di(l, n) : null;
2269
2271
  let p = -1, m = null;
2270
2272
  s && (m = new ResizeObserver((y) => {
2271
- let [x] = y;
2272
- x && x.target === l && m && (m.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
2273
- var b;
2274
- (b = m) == null || b.observe(t);
2273
+ let [w] = y;
2274
+ w && w.target === l && m && (m.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
2275
+ var x;
2276
+ (x = m) == null || x.observe(t);
2275
2277
  })), n();
2276
2278
  }), l && !u && m.observe(l), m.observe(t));
2277
2279
  let g, h = u ? ie(e) : null;
@@ -2282,25 +2284,26 @@ function pi(e, t, n, r) {
2282
2284
  }
2283
2285
  return n(), () => {
2284
2286
  var y;
2285
- f.forEach((x) => {
2286
- o && x.removeEventListener("scroll", n), i && x.removeEventListener("resize", n);
2287
+ f.forEach((w) => {
2288
+ o && w.removeEventListener("scroll", n), i && w.removeEventListener("resize", n);
2287
2289
  }), d == null || d(), (y = m) == null || y.disconnect(), m = null, u && cancelAnimationFrame(g);
2288
2290
  };
2289
2291
  }
2290
- const mi = Xo, vi = Ko, gi = zo, yi = qo, wi = jo, Ht = Uo, bi = Zo, xi = (e, t, n) => {
2292
+ const pi = Yo, mi = Xo, vi = Uo, gi = Zo, yi = zo, Ht = Vo, wi = Ko, bi = (e, t, n) => {
2291
2293
  const r = /* @__PURE__ */ new Map(), o = {
2292
- platform: di,
2294
+ platform: fi,
2293
2295
  ...n
2294
2296
  }, i = {
2295
2297
  ...o.platform,
2296
2298
  _c: r
2297
2299
  };
2298
- return Vo(e, t, {
2300
+ return Ho(e, t, {
2299
2301
  ...o,
2300
2302
  platform: i
2301
2303
  });
2302
2304
  };
2303
- var Le = typeof document < "u" ? er : tr;
2305
+ var xi = typeof document < "u", Ei = function() {
2306
+ }, Le = xi ? er : Ei;
2304
2307
  function Ie(e, t) {
2305
2308
  if (e === t)
2306
2309
  return !0;
@@ -2338,13 +2341,13 @@ function Vt(e, t) {
2338
2341
  const n = wn(e);
2339
2342
  return Math.round(t * n) / n;
2340
2343
  }
2341
- function Ge(e) {
2344
+ function qe(e) {
2342
2345
  const t = a.useRef(e);
2343
2346
  return Le(() => {
2344
2347
  t.current = e;
2345
2348
  }), t;
2346
2349
  }
2347
- function Ei(e) {
2350
+ function Ci(e) {
2348
2351
  e === void 0 && (e = {});
2349
2352
  const {
2350
2353
  placement: t = "bottom",
@@ -2367,11 +2370,11 @@ function Ei(e) {
2367
2370
  isPositioned: !1
2368
2371
  }), [p, m] = a.useState(r);
2369
2372
  Ie(p, r) || m(r);
2370
- const [g, h] = a.useState(null), [v, y] = a.useState(null), x = a.useCallback((S) => {
2373
+ const [g, h] = a.useState(null), [v, y] = a.useState(null), w = a.useCallback((S) => {
2371
2374
  S !== A.current && (A.current = S, h(S));
2372
- }, []), b = a.useCallback((S) => {
2375
+ }, []), x = a.useCallback((S) => {
2373
2376
  S !== P.current && (P.current = S, y(S));
2374
- }, []), w = i || g, E = s || v, A = a.useRef(null), P = a.useRef(null), R = a.useRef(f), N = u != null, O = Ge(u), I = Ge(o), W = Ge(l), M = a.useCallback(() => {
2377
+ }, []), b = i || g, E = s || v, A = a.useRef(null), P = a.useRef(null), R = a.useRef(f), M = u != null, O = qe(u), _ = qe(o), F = qe(l), T = a.useCallback(() => {
2375
2378
  if (!A.current || !P.current)
2376
2379
  return;
2377
2380
  const S = {
@@ -2379,74 +2382,74 @@ function Ei(e) {
2379
2382
  strategy: n,
2380
2383
  middleware: p
2381
2384
  };
2382
- I.current && (S.platform = I.current), xi(A.current, P.current, S).then((T) => {
2383
- const _ = {
2384
- ...T,
2385
+ _.current && (S.platform = _.current), bi(A.current, P.current, S).then((D) => {
2386
+ const V = {
2387
+ ...D,
2385
2388
  // The floating element's position may be recomputed while it's closed
2386
2389
  // but still mounted (such as when transitioning out). To ensure
2387
2390
  // `isPositioned` will be `false` initially on the next open, avoid
2388
2391
  // setting it to `true` when `open === false` (must be specified).
2389
- isPositioned: W.current !== !1
2392
+ isPositioned: F.current !== !1
2390
2393
  };
2391
- F.current && !Ie(R.current, _) && (R.current = _, zt.flushSync(() => {
2392
- d(_);
2394
+ N.current && !Ie(R.current, V) && (R.current = V, zt.flushSync(() => {
2395
+ d(V);
2393
2396
  }));
2394
2397
  });
2395
- }, [p, t, n, I, W]);
2398
+ }, [p, t, n, _, F]);
2396
2399
  Le(() => {
2397
2400
  l === !1 && R.current.isPositioned && (R.current.isPositioned = !1, d((S) => ({
2398
2401
  ...S,
2399
2402
  isPositioned: !1
2400
2403
  })));
2401
2404
  }, [l]);
2402
- const F = a.useRef(!1);
2403
- Le(() => (F.current = !0, () => {
2404
- F.current = !1;
2405
+ const N = a.useRef(!1);
2406
+ Le(() => (N.current = !0, () => {
2407
+ N.current = !1;
2405
2408
  }), []), Le(() => {
2406
- if (w && (A.current = w), E && (P.current = E), w && E) {
2409
+ if (b && (A.current = b), E && (P.current = E), b && E) {
2407
2410
  if (O.current)
2408
- return O.current(w, E, M);
2409
- M();
2411
+ return O.current(b, E, T);
2412
+ T();
2410
2413
  }
2411
- }, [w, E, M, O, N]);
2412
- const k = a.useMemo(() => ({
2414
+ }, [b, E, T, O, M]);
2415
+ const I = a.useMemo(() => ({
2413
2416
  reference: A,
2414
2417
  floating: P,
2415
- setReference: x,
2416
- setFloating: b
2417
- }), [x, b]), L = a.useMemo(() => ({
2418
- reference: w,
2418
+ setReference: w,
2419
+ setFloating: x
2420
+ }), [w, x]), k = a.useMemo(() => ({
2421
+ reference: b,
2419
2422
  floating: E
2420
- }), [w, E]), D = a.useMemo(() => {
2423
+ }), [b, E]), L = a.useMemo(() => {
2421
2424
  const S = {
2422
2425
  position: n,
2423
2426
  left: 0,
2424
2427
  top: 0
2425
2428
  };
2426
- if (!L.floating)
2429
+ if (!k.floating)
2427
2430
  return S;
2428
- const T = Vt(L.floating, f.x), _ = Vt(L.floating, f.y);
2431
+ const D = Vt(k.floating, f.x), V = Vt(k.floating, f.y);
2429
2432
  return c ? {
2430
2433
  ...S,
2431
- transform: "translate(" + T + "px, " + _ + "px)",
2432
- ...wn(L.floating) >= 1.5 && {
2434
+ transform: "translate(" + D + "px, " + V + "px)",
2435
+ ...wn(k.floating) >= 1.5 && {
2433
2436
  willChange: "transform"
2434
2437
  }
2435
2438
  } : {
2436
2439
  position: n,
2437
- left: T,
2438
- top: _
2440
+ left: D,
2441
+ top: V
2439
2442
  };
2440
- }, [n, c, L.floating, f.x, f.y]);
2443
+ }, [n, c, k.floating, f.x, f.y]);
2441
2444
  return a.useMemo(() => ({
2442
2445
  ...f,
2443
- update: M,
2444
- refs: k,
2445
- elements: L,
2446
- floatingStyles: D
2447
- }), [f, M, k, L, D]);
2446
+ update: T,
2447
+ refs: I,
2448
+ elements: k,
2449
+ floatingStyles: L
2450
+ }), [f, T, I, k, L]);
2448
2451
  }
2449
- const Ci = (e) => {
2452
+ const Pi = (e) => {
2450
2453
  function t(n) {
2451
2454
  return {}.hasOwnProperty.call(n, "current");
2452
2455
  }
@@ -2467,32 +2470,32 @@ const Ci = (e) => {
2467
2470
  }).fn(n) : {};
2468
2471
  }
2469
2472
  };
2470
- }, Pi = (e, t) => ({
2471
- ...mi(e),
2472
- options: [e, t]
2473
- }), Ai = (e, t) => ({
2474
- ...vi(e),
2473
+ }, Ai = (e, t) => ({
2474
+ ...pi(e),
2475
2475
  options: [e, t]
2476
2476
  }), Si = (e, t) => ({
2477
- ...bi(e),
2477
+ ...mi(e),
2478
2478
  options: [e, t]
2479
2479
  }), Ri = (e, t) => ({
2480
- ...gi(e),
2480
+ ...wi(e),
2481
2481
  options: [e, t]
2482
2482
  }), Oi = (e, t) => ({
2483
- ...yi(e),
2483
+ ...vi(e),
2484
2484
  options: [e, t]
2485
2485
  }), Ni = (e, t) => ({
2486
- ...wi(e),
2486
+ ...gi(e),
2487
2487
  options: [e, t]
2488
2488
  }), Mi = (e, t) => ({
2489
- ...Ci(e),
2489
+ ...yi(e),
2490
+ options: [e, t]
2491
+ }), Ti = (e, t) => ({
2492
+ ...Pi(e),
2490
2493
  options: [e, t]
2491
2494
  });
2492
- var Ti = "Arrow", bn = a.forwardRef((e, t) => {
2495
+ var ki = "Arrow", bn = a.forwardRef((e, t) => {
2493
2496
  const { children: n, width: r = 10, height: o = 5, ...i } = e;
2494
2497
  return /* @__PURE__ */ C(
2495
- q.svg,
2498
+ G.svg,
2496
2499
  {
2497
2500
  ...i,
2498
2501
  ref: t,
@@ -2504,10 +2507,10 @@ var Ti = "Arrow", bn = a.forwardRef((e, t) => {
2504
2507
  }
2505
2508
  );
2506
2509
  });
2507
- bn.displayName = Ti;
2508
- var ki = bn, dt = "Popper", [xn, En] = Xt(dt), [Li, Cn] = xn(dt), Pn = (e) => {
2510
+ bn.displayName = ki;
2511
+ var Li = bn, dt = "Popper", [xn, En] = Xt(dt), [Di, Cn] = xn(dt), Pn = (e) => {
2509
2512
  const { __scopePopper: t, children: n } = e, [r, o] = a.useState(null);
2510
- return /* @__PURE__ */ C(Li, { scope: t, anchor: r, onAnchorChange: o, children: n });
2513
+ return /* @__PURE__ */ C(Di, { scope: t, anchor: r, onAnchorChange: o, children: n });
2511
2514
  };
2512
2515
  Pn.displayName = dt;
2513
2516
  var An = "PopperAnchor", Sn = a.forwardRef(
@@ -2515,11 +2518,11 @@ var An = "PopperAnchor", Sn = a.forwardRef(
2515
2518
  const { __scopePopper: n, virtualRef: r, ...o } = e, i = Cn(An, n), s = a.useRef(null), c = re(t, s);
2516
2519
  return a.useEffect(() => {
2517
2520
  i.onAnchorChange((r == null ? void 0 : r.current) || s.current);
2518
- }), r ? null : /* @__PURE__ */ C(q.div, { ...o, ref: c });
2521
+ }), r ? null : /* @__PURE__ */ C(G.div, { ...o, ref: c });
2519
2522
  }
2520
2523
  );
2521
2524
  Sn.displayName = An;
2522
- var ht = "PopperContent", [Di, _i] = xn(ht), Rn = a.forwardRef(
2525
+ var ht = "PopperContent", [_i, Fi] = xn(ht), Rn = a.forwardRef(
2523
2526
  (e, t) => {
2524
2527
  var mt, vt, gt, yt, wt, bt;
2525
2528
  const {
@@ -2537,56 +2540,56 @@ var ht = "PopperContent", [Di, _i] = xn(ht), Rn = a.forwardRef(
2537
2540
  updatePositionStrategy: m = "optimized",
2538
2541
  onPlaced: g,
2539
2542
  ...h
2540
- } = e, v = Cn(ht, n), [y, x] = a.useState(null), b = re(t, (ge) => x(ge)), [w, E] = a.useState(null), A = Lo(w), P = (A == null ? void 0 : A.width) ?? 0, R = (A == null ? void 0 : A.height) ?? 0, N = r + (i !== "center" ? "-" + i : ""), O = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, I = Array.isArray(l) ? l : [l], W = I.length > 0, M = {
2543
+ } = e, v = Cn(ht, n), [y, w] = a.useState(null), x = re(t, (ve) => w(ve)), [b, E] = a.useState(null), A = ko(b), P = (A == null ? void 0 : A.width) ?? 0, R = (A == null ? void 0 : A.height) ?? 0, M = r + (i !== "center" ? "-" + i : ""), O = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, _ = Array.isArray(l) ? l : [l], F = _.length > 0, T = {
2541
2544
  padding: O,
2542
- boundary: I.filter(Ii),
2545
+ boundary: _.filter(Wi),
2543
2546
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
2544
- altBoundary: W
2545
- }, { refs: F, floatingStyles: k, placement: L, isPositioned: D, middlewareData: S } = Ei({
2547
+ altBoundary: F
2548
+ }, { refs: N, floatingStyles: I, placement: k, isPositioned: L, middlewareData: S } = Ci({
2546
2549
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
2547
2550
  strategy: "fixed",
2548
- placement: N,
2549
- whileElementsMounted: (...ge) => pi(...ge, {
2551
+ placement: M,
2552
+ whileElementsMounted: (...ve) => hi(...ve, {
2550
2553
  animationFrame: m === "always"
2551
2554
  }),
2552
2555
  elements: {
2553
2556
  reference: v.anchor
2554
2557
  },
2555
2558
  middleware: [
2556
- Pi({ mainAxis: o + R, alignmentAxis: s }),
2557
- u && Ai({
2559
+ Ai({ mainAxis: o + R, alignmentAxis: s }),
2560
+ u && Si({
2558
2561
  mainAxis: !0,
2559
2562
  crossAxis: !1,
2560
- limiter: d === "partial" ? Si() : void 0,
2561
- ...M
2563
+ limiter: d === "partial" ? Ri() : void 0,
2564
+ ...T
2562
2565
  }),
2563
- u && Ri({ ...M }),
2564
- Oi({
2565
- ...M,
2566
- apply: ({ elements: ge, rects: xt, availableWidth: Kn, availableHeight: Zn }) => {
2567
- const { width: qn, height: Gn } = xt.reference, Pe = ge.floating.style;
2568
- Pe.setProperty("--radix-popper-available-width", `${Kn}px`), Pe.setProperty("--radix-popper-available-height", `${Zn}px`), Pe.setProperty("--radix-popper-anchor-width", `${qn}px`), Pe.setProperty("--radix-popper-anchor-height", `${Gn}px`);
2566
+ u && Oi({ ...T }),
2567
+ Ni({
2568
+ ...T,
2569
+ apply: ({ elements: ve, rects: xt, availableWidth: Kn, availableHeight: Zn }) => {
2570
+ const { width: Gn, height: qn } = xt.reference, Pe = ve.floating.style;
2571
+ Pe.setProperty("--radix-popper-available-width", `${Kn}px`), Pe.setProperty("--radix-popper-available-height", `${Zn}px`), Pe.setProperty("--radix-popper-anchor-width", `${Gn}px`), Pe.setProperty("--radix-popper-anchor-height", `${qn}px`);
2569
2572
  }
2570
2573
  }),
2571
- w && Mi({ element: w, padding: c }),
2572
- Wi({ arrowWidth: P, arrowHeight: R }),
2573
- p && Ni({ strategy: "referenceHidden", ...M })
2574
+ b && Ti({ element: b, padding: c }),
2575
+ Bi({ arrowWidth: P, arrowHeight: R }),
2576
+ p && Mi({ strategy: "referenceHidden", ...T })
2574
2577
  ]
2575
- }), [T, _] = Mn(L), se = de(g);
2578
+ }), [D, V] = Mn(k), Ce = fe(g);
2576
2579
  ee(() => {
2577
- D && (se == null || se());
2578
- }, [D, se]);
2580
+ L && (Ce == null || Ce());
2581
+ }, [L, Ce]);
2579
2582
  const Un = (mt = S.arrow) == null ? void 0 : mt.x, zn = (vt = S.arrow) == null ? void 0 : vt.y, jn = ((gt = S.arrow) == null ? void 0 : gt.centerOffset) !== 0, [Yn, Xn] = a.useState();
2580
2583
  return ee(() => {
2581
2584
  y && Xn(window.getComputedStyle(y).zIndex);
2582
2585
  }, [y]), /* @__PURE__ */ C(
2583
2586
  "div",
2584
2587
  {
2585
- ref: F.setFloating,
2588
+ ref: N.setFloating,
2586
2589
  "data-radix-popper-content-wrapper": "",
2587
2590
  style: {
2588
- ...k,
2589
- transform: D ? k.transform : "translate(0, -200%)",
2591
+ ...I,
2592
+ transform: L ? I.transform : "translate(0, -200%)",
2590
2593
  // keep off the page when measuring
2591
2594
  minWidth: "max-content",
2592
2595
  zIndex: Yn,
@@ -2604,26 +2607,26 @@ var ht = "PopperContent", [Di, _i] = xn(ht), Rn = a.forwardRef(
2604
2607
  },
2605
2608
  dir: e.dir,
2606
2609
  children: /* @__PURE__ */ C(
2607
- Di,
2610
+ _i,
2608
2611
  {
2609
2612
  scope: n,
2610
- placedSide: T,
2613
+ placedSide: D,
2611
2614
  onArrowChange: E,
2612
2615
  arrowX: Un,
2613
2616
  arrowY: zn,
2614
2617
  shouldHideArrow: jn,
2615
2618
  children: /* @__PURE__ */ C(
2616
- q.div,
2619
+ G.div,
2617
2620
  {
2618
- "data-side": T,
2619
- "data-align": _,
2621
+ "data-side": D,
2622
+ "data-align": V,
2620
2623
  ...h,
2621
- ref: b,
2624
+ ref: x,
2622
2625
  style: {
2623
2626
  ...h.style,
2624
2627
  // if the PopperContent hasn't been placed yet (not all measurements done)
2625
2628
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
2626
- animation: D ? void 0 : "none"
2629
+ animation: L ? void 0 : "none"
2627
2630
  }
2628
2631
  }
2629
2632
  )
@@ -2634,13 +2637,13 @@ var ht = "PopperContent", [Di, _i] = xn(ht), Rn = a.forwardRef(
2634
2637
  }
2635
2638
  );
2636
2639
  Rn.displayName = ht;
2637
- var On = "PopperArrow", Fi = {
2640
+ var On = "PopperArrow", Ii = {
2638
2641
  top: "bottom",
2639
2642
  right: "left",
2640
2643
  bottom: "top",
2641
2644
  left: "right"
2642
2645
  }, Nn = a.forwardRef(function(t, n) {
2643
- const { __scopePopper: r, ...o } = t, i = _i(On, r), s = Fi[i.placedSide];
2646
+ const { __scopePopper: r, ...o } = t, i = Fi(On, r), s = Ii[i.placedSide];
2644
2647
  return (
2645
2648
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2646
2649
  // doesn't report size as we'd expect on SVG elements.
@@ -2669,7 +2672,7 @@ var On = "PopperArrow", Fi = {
2669
2672
  visibility: i.shouldHideArrow ? "hidden" : void 0
2670
2673
  },
2671
2674
  children: /* @__PURE__ */ C(
2672
- ki,
2675
+ Li,
2673
2676
  {
2674
2677
  ...o,
2675
2678
  ref: n,
@@ -2685,15 +2688,15 @@ var On = "PopperArrow", Fi = {
2685
2688
  );
2686
2689
  });
2687
2690
  Nn.displayName = On;
2688
- function Ii(e) {
2691
+ function Wi(e) {
2689
2692
  return e !== null;
2690
2693
  }
2691
- var Wi = (e) => ({
2694
+ var Bi = (e) => ({
2692
2695
  name: "transformOrigin",
2693
2696
  options: e,
2694
2697
  fn(t) {
2695
- var v, y, x;
2696
- const { placement: n, rects: r, middlewareData: o } = t, s = ((v = o.arrow) == null ? void 0 : v.centerOffset) !== 0, c = s ? 0 : e.arrowWidth, u = s ? 0 : e.arrowHeight, [l, f] = Mn(n), d = { start: "0%", center: "50%", end: "100%" }[f], p = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + c / 2, m = (((x = o.arrow) == null ? void 0 : x.y) ?? 0) + u / 2;
2698
+ var v, y, w;
2699
+ const { placement: n, rects: r, middlewareData: o } = t, s = ((v = o.arrow) == null ? void 0 : v.centerOffset) !== 0, c = s ? 0 : e.arrowWidth, u = s ? 0 : e.arrowHeight, [l, f] = Mn(n), d = { start: "0%", center: "50%", end: "100%" }[f], p = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + c / 2, m = (((w = o.arrow) == null ? void 0 : w.y) ?? 0) + u / 2;
2697
2700
  let g = "", h = "";
2698
2701
  return l === "bottom" ? (g = s ? d : `${p}px`, h = `${-u}px`) : l === "top" ? (g = s ? d : `${p}px`, h = `${r.floating.height + u}px`) : l === "right" ? (g = `${-u}px`, h = s ? d : `${m}px`) : l === "left" && (g = `${r.floating.width + u}px`, h = s ? d : `${m}px`), { data: { x: g, y: h } };
2699
2702
  }
@@ -2702,9 +2705,9 @@ function Mn(e) {
2702
2705
  const [t, n = "center"] = e.split("-");
2703
2706
  return [t, n];
2704
2707
  }
2705
- var Bi = Pn, Tn = Sn, $i = Rn, Hi = Nn, Ve = "Popover", [kn, ms] = Xt(Ve, [
2708
+ var $i = Pn, Tn = Sn, Hi = Rn, Vi = Nn, Ve = "Popover", [kn, vs] = Xt(Ve, [
2706
2709
  En
2707
- ]), Ce = En(), [Vi, oe] = kn(Ve), Ln = (e) => {
2710
+ ]), Ee = En(), [Ui, oe] = kn(Ve), Ln = (e) => {
2708
2711
  const {
2709
2712
  __scopePopover: t,
2710
2713
  children: n,
@@ -2712,17 +2715,17 @@ var Bi = Pn, Tn = Sn, $i = Rn, Hi = Nn, Ve = "Popover", [kn, ms] = Xt(Ve, [
2712
2715
  defaultOpen: o,
2713
2716
  onOpenChange: i,
2714
2717
  modal: s = !1
2715
- } = e, c = Ce(t), u = a.useRef(null), [l, f] = a.useState(!1), [d, p] = br({
2718
+ } = e, c = Ee(t), u = a.useRef(null), [l, f] = a.useState(!1), [d, p] = wr({
2716
2719
  prop: r,
2717
2720
  defaultProp: o ?? !1,
2718
2721
  onChange: i,
2719
2722
  caller: Ve
2720
2723
  });
2721
- return /* @__PURE__ */ C(Bi, { ...c, children: /* @__PURE__ */ C(
2722
- Vi,
2724
+ return /* @__PURE__ */ C($i, { ...c, children: /* @__PURE__ */ C(
2725
+ Ui,
2723
2726
  {
2724
2727
  scope: t,
2725
- contentId: Or(),
2728
+ contentId: Rr(),
2726
2729
  triggerRef: u,
2727
2730
  open: d,
2728
2731
  onOpenChange: p,
@@ -2738,15 +2741,15 @@ var Bi = Pn, Tn = Sn, $i = Rn, Hi = Nn, Ve = "Popover", [kn, ms] = Xt(Ve, [
2738
2741
  Ln.displayName = Ve;
2739
2742
  var Dn = "PopoverAnchor", _n = a.forwardRef(
2740
2743
  (e, t) => {
2741
- const { __scopePopover: n, ...r } = e, o = oe(Dn, n), i = Ce(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: c } = o;
2744
+ const { __scopePopover: n, ...r } = e, o = oe(Dn, n), i = Ee(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: c } = o;
2742
2745
  return a.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ C(Tn, { ...i, ...r, ref: t });
2743
2746
  }
2744
2747
  );
2745
2748
  _n.displayName = Dn;
2746
2749
  var Fn = "PopoverTrigger", In = a.forwardRef(
2747
2750
  (e, t) => {
2748
- const { __scopePopover: n, ...r } = e, o = oe(Fn, n), i = Ce(n), s = re(t, o.triggerRef), c = /* @__PURE__ */ C(
2749
- q.button,
2751
+ const { __scopePopover: n, ...r } = e, o = oe(Fn, n), i = Ee(n), s = re(t, o.triggerRef), c = /* @__PURE__ */ C(
2752
+ G.button,
2750
2753
  {
2751
2754
  type: "button",
2752
2755
  "aria-haspopup": "dialog",
@@ -2762,27 +2765,27 @@ var Fn = "PopoverTrigger", In = a.forwardRef(
2762
2765
  }
2763
2766
  );
2764
2767
  In.displayName = Fn;
2765
- var pt = "PopoverPortal", [Ui, zi] = kn(pt, {
2768
+ var pt = "PopoverPortal", [zi, ji] = kn(pt, {
2766
2769
  forceMount: void 0
2767
2770
  }), Wn = (e) => {
2768
2771
  const { __scopePopover: t, forceMount: n, children: r, container: o } = e, i = oe(pt, t);
2769
- return /* @__PURE__ */ C(Ui, { scope: t, forceMount: n, children: /* @__PURE__ */ C(ot, { present: n || i.open, children: /* @__PURE__ */ C(Jt, { asChild: !0, container: o, children: r }) }) });
2772
+ return /* @__PURE__ */ C(zi, { scope: t, forceMount: n, children: /* @__PURE__ */ C(ot, { present: n || i.open, children: /* @__PURE__ */ C(Jt, { asChild: !0, container: o, children: r }) }) });
2770
2773
  };
2771
2774
  Wn.displayName = pt;
2772
- var pe = "PopoverContent", Bn = a.forwardRef(
2775
+ var he = "PopoverContent", Bn = a.forwardRef(
2773
2776
  (e, t) => {
2774
- const n = zi(pe, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, i = oe(pe, e.__scopePopover);
2775
- return /* @__PURE__ */ C(ot, { present: r || i.open, children: i.modal ? /* @__PURE__ */ C(Yi, { ...o, ref: t }) : /* @__PURE__ */ C(Xi, { ...o, ref: t }) });
2777
+ const n = ji(he, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, i = oe(he, e.__scopePopover);
2778
+ return /* @__PURE__ */ C(ot, { present: r || i.open, children: i.modal ? /* @__PURE__ */ C(Xi, { ...o, ref: t }) : /* @__PURE__ */ C(Ki, { ...o, ref: t }) });
2776
2779
  }
2777
2780
  );
2778
- Bn.displayName = pe;
2779
- var ji = /* @__PURE__ */ Yt("PopoverContent.RemoveScroll"), Yi = a.forwardRef(
2781
+ Bn.displayName = he;
2782
+ var Yi = /* @__PURE__ */ Yt("PopoverContent.RemoveScroll"), Xi = a.forwardRef(
2780
2783
  (e, t) => {
2781
- const n = oe(pe, e.__scopePopover), r = a.useRef(null), o = re(t, r), i = a.useRef(!1);
2784
+ const n = oe(he, e.__scopePopover), r = a.useRef(null), o = re(t, r), i = a.useRef(!1);
2782
2785
  return a.useEffect(() => {
2783
2786
  const s = r.current;
2784
- if (s) return ko(s);
2785
- }, []), /* @__PURE__ */ C(an, { as: ji, allowPinchZoom: !0, children: /* @__PURE__ */ C(
2787
+ if (s) return To(s);
2788
+ }, []), /* @__PURE__ */ C(an, { as: Yi, allowPinchZoom: !0, children: /* @__PURE__ */ C(
2786
2789
  $n,
2787
2790
  {
2788
2791
  ...e,
@@ -2809,9 +2812,9 @@ var ji = /* @__PURE__ */ Yt("PopoverContent.RemoveScroll"), Yi = a.forwardRef(
2809
2812
  }
2810
2813
  ) });
2811
2814
  }
2812
- ), Xi = a.forwardRef(
2815
+ ), Ki = a.forwardRef(
2813
2816
  (e, t) => {
2814
- const n = oe(pe, e.__scopePopover), r = a.useRef(!1), o = a.useRef(!1);
2817
+ const n = oe(he, e.__scopePopover), r = a.useRef(!1), o = a.useRef(!1);
2815
2818
  return /* @__PURE__ */ C(
2816
2819
  $n,
2817
2820
  {
@@ -2845,9 +2848,9 @@ var ji = /* @__PURE__ */ Yt("PopoverContent.RemoveScroll"), Yi = a.forwardRef(
2845
2848
  onFocusOutside: l,
2846
2849
  onInteractOutside: f,
2847
2850
  ...d
2848
- } = e, p = oe(pe, n), m = Ce(n);
2849
- return jr(), /* @__PURE__ */ C(
2850
- Gt,
2851
+ } = e, p = oe(he, n), m = Ee(n);
2852
+ return zr(), /* @__PURE__ */ C(
2853
+ qt,
2851
2854
  {
2852
2855
  asChild: !0,
2853
2856
  loop: !0,
@@ -2865,7 +2868,7 @@ var ji = /* @__PURE__ */ Yt("PopoverContent.RemoveScroll"), Yi = a.forwardRef(
2865
2868
  onFocusOutside: l,
2866
2869
  onDismiss: () => p.onOpenChange(!1),
2867
2870
  children: /* @__PURE__ */ C(
2868
- $i,
2871
+ Hi,
2869
2872
  {
2870
2873
  "data-state": Vn(p.open),
2871
2874
  role: "dialog",
@@ -2888,11 +2891,11 @@ var ji = /* @__PURE__ */ Yt("PopoverContent.RemoveScroll"), Yi = a.forwardRef(
2888
2891
  }
2889
2892
  );
2890
2893
  }
2891
- ), Hn = "PopoverClose", Ki = a.forwardRef(
2894
+ ), Hn = "PopoverClose", Zi = a.forwardRef(
2892
2895
  (e, t) => {
2893
2896
  const { __scopePopover: n, ...r } = e, o = oe(Hn, n);
2894
2897
  return /* @__PURE__ */ C(
2895
- q.button,
2898
+ G.button,
2896
2899
  {
2897
2900
  type: "button",
2898
2901
  ...r,
@@ -2902,24 +2905,24 @@ var ji = /* @__PURE__ */ Yt("PopoverContent.RemoveScroll"), Yi = a.forwardRef(
2902
2905
  );
2903
2906
  }
2904
2907
  );
2905
- Ki.displayName = Hn;
2906
- var Zi = "PopoverArrow", qi = a.forwardRef(
2908
+ Zi.displayName = Hn;
2909
+ var Gi = "PopoverArrow", qi = a.forwardRef(
2907
2910
  (e, t) => {
2908
- const { __scopePopover: n, ...r } = e, o = Ce(n);
2909
- return /* @__PURE__ */ C(Hi, { ...o, ...r, ref: t });
2911
+ const { __scopePopover: n, ...r } = e, o = Ee(n);
2912
+ return /* @__PURE__ */ C(Vi, { ...o, ...r, ref: t });
2910
2913
  }
2911
2914
  );
2912
- qi.displayName = Zi;
2915
+ qi.displayName = Gi;
2913
2916
  function Vn(e) {
2914
2917
  return e ? "open" : "closed";
2915
2918
  }
2916
- var Gi = Ln, Qi = _n, Ji = In, es = Wn, ts = Bn;
2917
- const ns = "_anchor_pbx6r_285", rs = "_container_pbx6r_290", os = "_radio_pbx6r_307", is = "_check_pbx6r_319", ss = "_radioInput_pbx6r_327", ye = {
2918
- anchor: ns,
2919
- container: rs,
2920
- radio: os,
2921
- check: is,
2922
- radioInput: ss
2919
+ var Qi = Ln, Ji = _n, es = In, ts = Wn, ns = Bn;
2920
+ const rs = "_anchor_vbdag_270", os = "_container_vbdag_275", is = "_radio_vbdag_292", ss = "_check_vbdag_304", cs = "_radioInput_vbdag_312", ge = {
2921
+ anchor: rs,
2922
+ container: os,
2923
+ radio: is,
2924
+ check: ss,
2925
+ radioInput: cs
2923
2926
  };
2924
2927
  function Qe({ children: e, id: t, ...n }) {
2925
2928
  return /* @__PURE__ */ Q(Ut, { children: [
@@ -2928,24 +2931,24 @@ function Qe({ children: e, id: t, ...n }) {
2928
2931
  {
2929
2932
  type: "radio",
2930
2933
  id: t,
2931
- className: nr(ye.radioInput, "sr-only"),
2934
+ className: tr(ge.radioInput, "sr-only"),
2932
2935
  ...n
2933
2936
  }
2934
2937
  ),
2935
- /* @__PURE__ */ Q("label", { htmlFor: t, className: ye.radio, children: [
2938
+ /* @__PURE__ */ Q("label", { htmlFor: t, className: ge.radio, children: [
2936
2939
  e,
2937
- /* @__PURE__ */ C(sr, { className: ye.check })
2940
+ /* @__PURE__ */ C(ir, { className: ge.check })
2938
2941
  ] })
2939
2942
  ] });
2940
2943
  }
2941
- function vs() {
2942
- const { theme: e, systemTheme: t, setTheme: n } = Qn(), r = or();
2943
- return /* @__PURE__ */ Q(Gi, { children: [
2944
- /* @__PURE__ */ C(Ji, { asChild: !0, children: /* @__PURE__ */ Q(rr, { variant: "transparent", "aria-label": "Preferences", children: [
2945
- /* @__PURE__ */ C(lr, {}),
2946
- /* @__PURE__ */ C(Qi, { className: ye.anchor })
2944
+ function gs() {
2945
+ const { theme: e, systemTheme: t, setTheme: n } = Qn(), r = rr();
2946
+ return /* @__PURE__ */ Q(Qi, { children: [
2947
+ /* @__PURE__ */ C(es, { asChild: !0, children: /* @__PURE__ */ Q(nr, { variant: "transparent", "aria-label": "Preferences", children: [
2948
+ /* @__PURE__ */ C(ar, {}),
2949
+ /* @__PURE__ */ C(Ji, { className: ge.anchor })
2947
2950
  ] }) }),
2948
- /* @__PURE__ */ C(es, { children: /* @__PURE__ */ C(ts, { sideOffset: 8, className: ye.container, children: r && /* @__PURE__ */ Q(Ut, { children: [
2951
+ /* @__PURE__ */ C(ts, { children: /* @__PURE__ */ C(ns, { sideOffset: 8, className: ge.container, children: r && /* @__PURE__ */ Q(Ut, { children: [
2949
2952
  /* @__PURE__ */ C("span", { children: "Appearance" }),
2950
2953
  /* @__PURE__ */ Q(
2951
2954
  Qe,
@@ -2955,7 +2958,7 @@ function vs() {
2955
2958
  checked: e === "system",
2956
2959
  onChange: () => n("system"),
2957
2960
  children: [
2958
- /* @__PURE__ */ C(cr, {}),
2961
+ /* @__PURE__ */ C(sr, {}),
2959
2962
  "Auto (",
2960
2963
  t,
2961
2964
  ")"
@@ -2970,7 +2973,7 @@ function vs() {
2970
2973
  checked: e === "light",
2971
2974
  onChange: () => n("light"),
2972
2975
  children: [
2973
- /* @__PURE__ */ C(ur, {}),
2976
+ /* @__PURE__ */ C(lr, {}),
2974
2977
  "Light"
2975
2978
  ]
2976
2979
  }
@@ -2983,7 +2986,7 @@ function vs() {
2983
2986
  checked: e === "dark",
2984
2987
  onChange: () => n("dark"),
2985
2988
  children: [
2986
- /* @__PURE__ */ C(ar, {}),
2989
+ /* @__PURE__ */ C(cr, {}),
2987
2990
  "Dark"
2988
2991
  ]
2989
2992
  }
@@ -2992,6 +2995,6 @@ function vs() {
2992
2995
  ] });
2993
2996
  }
2994
2997
  export {
2995
- vs as PrefPanel,
2998
+ gs as PrefPanel,
2996
2999
  Qe as PrefRadio
2997
3000
  };