@purpurds/tooltip 4.1.0 → 4.1.1

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,7 +1,7 @@
1
- import { jsxs as Ue, jsx as I } from "react/jsx-runtime";
1
+ import { jsxs as ze, jsx as I } from "react/jsx-runtime";
2
2
  import * as N from "react";
3
- import { forwardRef as M, useCallback as H, createContext as Ge, useMemo as ye, createElement as w, useContext as Tt, Fragment as $n, Children as se, isValidElement as Ie, cloneElement as Je, useEffect as R, useRef as L, useState as z, useLayoutEffect as Ct, useReducer as _n } from "react";
4
- import * as wn from "react-dom";
3
+ import { forwardRef as M, useCallback as F, createContext as Ge, useMemo as ye, createElement as _, useContext as Tt, Fragment as $n, Children as se, isValidElement as Ie, cloneElement as Je, useEffect as R, useRef as L, useState as W, useLayoutEffect as Ct, useReducer as wn } from "react";
4
+ import * as _n from "react-dom";
5
5
  import An, { flushSync as Rt } from "react-dom";
6
6
  const Pn = {
7
7
  PRIMARY: "primary",
@@ -205,7 +205,7 @@ const Mn = /* @__PURE__ */ Nn(Ln), re = {
205
205
  ), h = (m) => {
206
206
  o || s ? m.preventDefault() : a && a(m);
207
207
  }, g = () => l.endsWith("negative") ? "negative-disabled" : "disabled";
208
- return /* @__PURE__ */ Ue(
208
+ return /* @__PURE__ */ ze(
209
209
  "button",
210
210
  {
211
211
  className: f,
@@ -224,7 +224,7 @@ const Mn = /* @__PURE__ */ Nn(Ln), re = {
224
224
  );
225
225
  }, Nt = M(In);
226
226
  Nt.displayName = "Button";
227
- function Fn(e) {
227
+ function kn(e) {
228
228
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
229
229
  }
230
230
  var Lt = { exports: {} };
@@ -263,8 +263,8 @@ var Lt = { exports: {} };
263
263
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
264
264
  })();
265
265
  })(Lt);
266
- var Hn = Lt.exports;
267
- const kn = /* @__PURE__ */ Fn(Hn), Bn = {
266
+ var Fn = Lt.exports;
267
+ const Hn = /* @__PURE__ */ kn(Fn), Bn = {
268
268
  "purpur-icon": "_purpur-icon_8u1lq_1",
269
269
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
270
270
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -272,7 +272,7 @@ const kn = /* @__PURE__ */ Fn(Hn), Bn = {
272
272
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
273
273
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
274
274
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
275
- }, zn = {
275
+ }, Wn = {
276
276
  name: "info",
277
277
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 8.18c0 .537.469.979 1.007.979.524 0 .993-.442.993-.98s-.469-.979-.993-.979c-.538 0-1.007.441-1.007.98Zm.152 1.958v6.897h1.696v-6.897h-1.696Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',
278
278
  keywords: ["info"],
@@ -281,30 +281,30 @@ const kn = /* @__PURE__ */ Fn(Hn), Bn = {
281
281
  Yn,
282
282
  {
283
283
  ...e,
284
- svg: zn
284
+ svg: Wn
285
285
  }
286
286
  );
287
287
  Mt.displayName = "IconInfo";
288
- const Wn = kn.bind(Bn), gt = "purpur-icon", Vn = "md", jn = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), Un = ({ content: e = "", title: t } = {}) => {
288
+ const Vn = Hn.bind(Bn), gt = "purpur-icon", jn = "md", Un = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), zn = ({ content: e = "", title: t } = {}) => {
289
289
  const n = [
290
290
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
291
291
  { name: "fill", value: "currentColor" },
292
292
  { name: "viewBox", value: "0 0 24 24" },
293
293
  t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
294
294
  ], o = t ? `<title>${t}</title>` : "";
295
- return `<svg ${jn(n)}>${o}${e}</svg>`;
295
+ return `<svg ${Un(n)}>${o}${e}</svg>`;
296
296
  }, Gn = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Yn = ({
297
297
  ["data-testid"]: e,
298
298
  svg: t,
299
299
  allyTitle: n,
300
300
  className: o = "",
301
- size: i = Vn,
301
+ size: i = jn,
302
302
  ...r
303
303
  }) => {
304
- const s = Un({
304
+ const s = zn({
305
305
  content: Gn(t.svg),
306
306
  title: n
307
- }), a = Wn(o, gt, `${gt}--${i}`);
307
+ }), a = Vn(o, gt, `${gt}--${i}`);
308
308
  return /* @__PURE__ */ I(
309
309
  "span",
310
310
  {
@@ -357,20 +357,20 @@ var It = { exports: {} };
357
357
  })(It);
358
358
  var qn = It.exports;
359
359
  const Kn = /* @__PURE__ */ Xn(qn), Re = {
360
- "purpur-paragraph": "_purpur-paragraph_1fzxr_1",
361
- "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1fzxr_7",
362
- "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1fzxr_10",
363
- "purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_1fzxr_13",
364
- "purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_1fzxr_19",
365
- "purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_1fzxr_26",
366
- "purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_1fzxr_33",
367
- "purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_1fzxr_39",
368
- "purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_1fzxr_45",
369
- "purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_1fzxr_51",
370
- "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1fzxr_57",
371
- "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1fzxr_64",
372
- "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1fzxr_71"
373
- }, Ft = {
360
+ "purpur-paragraph": "_purpur-paragraph_5wbko_1",
361
+ "purpur-paragraph--disabled": "_purpur-paragraph--disabled_5wbko_7",
362
+ "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_5wbko_10",
363
+ "purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_5wbko_13",
364
+ "purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_5wbko_19",
365
+ "purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_5wbko_26",
366
+ "purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_5wbko_33",
367
+ "purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_5wbko_39",
368
+ "purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_5wbko_45",
369
+ "purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_5wbko_51",
370
+ "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_5wbko_57",
371
+ "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_5wbko_64",
372
+ "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_5wbko_72"
373
+ }, kt = {
374
374
  PARAGRAPH100: "paragraph-100",
375
375
  PARAGRAPH100MEDIUM: "paragraph-100-medium",
376
376
  PARAGRAPH100BOLD: "paragraph-100-bold",
@@ -387,7 +387,7 @@ const Kn = /* @__PURE__ */ Xn(qn), Re = {
387
387
  className: n = "",
388
388
  disabled: o,
389
389
  enableHyphenation: i = !1,
390
- variant: r = Ft.PARAGRAPH100,
390
+ variant: r = kt.PARAGRAPH100,
391
391
  ...s
392
392
  }) => {
393
393
  const a = Kn([
@@ -420,15 +420,15 @@ function G(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
420
420
  function Qn(e, t) {
421
421
  typeof e == "function" ? e(t) : e != null && (e.current = t);
422
422
  }
423
- function Ht(...e) {
423
+ function Ft(...e) {
424
424
  return (t) => e.forEach(
425
425
  (n) => Qn(n, t)
426
426
  );
427
427
  }
428
428
  function pe(...e) {
429
- return H(Ht(...e), e);
429
+ return F(Ft(...e), e);
430
430
  }
431
- function kt(e, t = []) {
431
+ function Ht(e, t = []) {
432
432
  let n = [];
433
433
  function o(r, s) {
434
434
  const a = /* @__PURE__ */ Ge(s), c = n.length;
@@ -441,7 +441,7 @@ function kt(e, t = []) {
441
441
  () => h,
442
442
  Object.values(h)
443
443
  );
444
- return /* @__PURE__ */ w(g.Provider, {
444
+ return /* @__PURE__ */ _(g.Provider, {
445
445
  value: m
446
446
  }, f);
447
447
  }
@@ -516,11 +516,11 @@ const Bt = /* @__PURE__ */ M((e, t) => {
516
516
  const { children: n, ...o } = e, i = se.toArray(n), r = i.find(tr);
517
517
  if (r) {
518
518
  const s = r.props.children, a = i.map((c) => c === r ? se.count(s) > 1 ? se.only(null) : /* @__PURE__ */ Ie(s) ? s.props.children : null : c);
519
- return /* @__PURE__ */ w(Ye, S({}, o, {
519
+ return /* @__PURE__ */ _(Ye, S({}, o, {
520
520
  ref: t
521
521
  }), /* @__PURE__ */ Ie(s) ? /* @__PURE__ */ Je(s, void 0, a) : null);
522
522
  }
523
- return /* @__PURE__ */ w(Ye, S({}, o, {
523
+ return /* @__PURE__ */ _(Ye, S({}, o, {
524
524
  ref: t
525
525
  }), n);
526
526
  });
@@ -529,13 +529,13 @@ const Ye = /* @__PURE__ */ M((e, t) => {
529
529
  const { children: n, ...o } = e;
530
530
  return /* @__PURE__ */ Ie(n) ? /* @__PURE__ */ Je(n, {
531
531
  ...nr(o, n.props),
532
- ref: t ? Ht(t, n.ref) : n.ref
532
+ ref: t ? Ft(t, n.ref) : n.ref
533
533
  }) : se.count(n) > 1 ? se.only(null) : null;
534
534
  });
535
535
  Ye.displayName = "SlotClone";
536
- const zt = ({ children: e }) => /* @__PURE__ */ w($n, null, e);
536
+ const Wt = ({ children: e }) => /* @__PURE__ */ _($n, null, e);
537
537
  function tr(e) {
538
- return /* @__PURE__ */ Ie(e) && e.type === zt;
538
+ return /* @__PURE__ */ Ie(e) && e.type === Wt;
539
539
  }
540
540
  function nr(e, t) {
541
541
  const n = {
@@ -580,7 +580,7 @@ const rr = [
580
580
  const { asChild: r, ...s } = o, a = r ? Bt : t;
581
581
  return R(() => {
582
582
  window[Symbol.for("radix-ui")] = !0;
583
- }, []), /* @__PURE__ */ w(a, S({}, s, {
583
+ }, []), /* @__PURE__ */ _(a, S({}, s, {
584
584
  ref: i
585
585
  }));
586
586
  });
@@ -626,18 +626,18 @@ const cr = /* @__PURE__ */ Ge({
626
626
  branches: /* @__PURE__ */ new Set()
627
627
  }), lr = /* @__PURE__ */ M((e, t) => {
628
628
  var n;
629
- const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: i, onPointerDownOutside: r, onFocusOutside: s, onInteractOutside: a, onDismiss: c, ...l } = e, d = Tt(cr), [u, p] = z(null), f = (n = u == null ? void 0 : u.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, h] = z({}), g = pe(
629
+ const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: i, onPointerDownOutside: r, onFocusOutside: s, onInteractOutside: a, onDismiss: c, ...l } = e, d = Tt(cr), [u, p] = W(null), f = (n = u == null ? void 0 : u.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, h] = W({}), g = pe(
630
630
  t,
631
631
  (A) => p(A)
632
632
  ), m = Array.from(d.layers), [v] = [
633
633
  ...d.layersWithOutsidePointerEventsDisabled
634
- ].slice(-1), y = m.indexOf(v), x = u ? m.indexOf(u) : -1, $ = d.layersWithOutsidePointerEventsDisabled.size > 0, b = x >= y, _ = ur((A) => {
635
- const C = A.target, F = [
634
+ ].slice(-1), y = m.indexOf(v), x = u ? m.indexOf(u) : -1, $ = d.layersWithOutsidePointerEventsDisabled.size > 0, b = x >= y, w = ur((A) => {
635
+ const C = A.target, k = [
636
636
  ...d.branches
637
637
  ].some(
638
638
  (T) => T.contains(C)
639
639
  );
640
- !b || F || (r == null || r(A), a == null || a(A), A.defaultPrevented || c == null || c());
640
+ !b || k || (r == null || r(A), a == null || a(A), A.defaultPrevented || c == null || c());
641
641
  }, f), E = dr((A) => {
642
642
  const C = A.target;
643
643
  [
@@ -666,7 +666,7 @@ const cr = /* @__PURE__ */ Ge({
666
666
  ]), R(() => {
667
667
  const A = () => h({});
668
668
  return document.addEventListener(Xe, A), () => document.removeEventListener(Xe, A);
669
- }, []), /* @__PURE__ */ w(ce.div, S({}, l, {
669
+ }, []), /* @__PURE__ */ _(ce.div, S({}, l, {
670
670
  ref: g,
671
671
  style: {
672
672
  pointerEvents: $ ? b ? "auto" : "none" : void 0,
@@ -674,7 +674,7 @@ const cr = /* @__PURE__ */ Ge({
674
674
  },
675
675
  onFocusCapture: G(e.onFocusCapture, E.onFocusCapture),
676
676
  onBlurCapture: G(e.onBlurCapture, E.onBlurCapture),
677
- onPointerDownCapture: G(e.onPointerDownCapture, _.onPointerDownCapture)
677
+ onPointerDownCapture: G(e.onPointerDownCapture, w.onPointerDownCapture)
678
678
  }));
679
679
  });
680
680
  function ur(e, t = globalThis == null ? void 0 : globalThis.document) {
@@ -684,7 +684,7 @@ function ur(e, t = globalThis == null ? void 0 : globalThis.document) {
684
684
  const r = (a) => {
685
685
  if (a.target && !o.current) {
686
686
  let l = function() {
687
- Wt(sr, n, c, {
687
+ Vt(sr, n, c, {
688
688
  discrete: !0
689
689
  });
690
690
  };
@@ -715,7 +715,7 @@ function dr(e, t = globalThis == null ? void 0 : globalThis.document) {
715
715
  const n = he(e), o = L(!1);
716
716
  return R(() => {
717
717
  const i = (r) => {
718
- r.target && !o.current && Wt(ar, n, {
718
+ r.target && !o.current && Vt(ar, n, {
719
719
  originalEvent: r
720
720
  }, {
721
721
  discrete: !1
@@ -734,7 +734,7 @@ function vt() {
734
734
  const e = new CustomEvent(Xe);
735
735
  document.dispatchEvent(e);
736
736
  }
737
- function Wt(e, t, n, { discrete: o }) {
737
+ function Vt(e, t, n, { discrete: o }) {
738
738
  const i = n.originalEvent.target, r = new CustomEvent(e, {
739
739
  bubbles: !1,
740
740
  cancelable: !0,
@@ -758,7 +758,7 @@ function hr(e) {
758
758
  e
759
759
  ]), e || (t ? `radix-${t}` : "");
760
760
  }
761
- const gr = ["top", "right", "bottom", "left"], ee = Math.min, B = Math.max, Fe = Math.round, De = Math.floor, te = (e) => ({
761
+ const gr = ["top", "right", "bottom", "left"], ee = Math.min, B = Math.max, ke = Math.round, De = Math.floor, te = (e) => ({
762
762
  x: e,
763
763
  y: e
764
764
  }), mr = {
@@ -798,10 +798,10 @@ function yr(e, t, n) {
798
798
  n === void 0 && (n = !1);
799
799
  const o = ge(e), i = tt(e), r = et(i);
800
800
  let s = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
801
- return t.reference[r] > t.floating[r] && (s = He(s)), [s, He(s)];
801
+ return t.reference[r] > t.floating[r] && (s = Fe(s)), [s, Fe(s)];
802
802
  }
803
803
  function br(e) {
804
- const t = He(e);
804
+ const t = Fe(e);
805
805
  return [Ke(e), t, Ke(t)];
806
806
  }
807
807
  function Ke(e) {
@@ -825,10 +825,10 @@ function $r(e, t, n, o) {
825
825
  let r = xr(X(e), n === "start", o);
826
826
  return i && (r = r.map((s) => s + "-" + i), t && (r = r.concat(r.map(Ke)))), r;
827
827
  }
828
- function He(e) {
828
+ function Fe(e) {
829
829
  return e.replace(/left|right|bottom|top/g, (t) => mr[t]);
830
830
  }
831
- function _r(e) {
831
+ function wr(e) {
832
832
  return {
833
833
  top: 0,
834
834
  right: 0,
@@ -837,15 +837,15 @@ function _r(e) {
837
837
  ...e
838
838
  };
839
839
  }
840
- function Vt(e) {
841
- return typeof e != "number" ? _r(e) : {
840
+ function jt(e) {
841
+ return typeof e != "number" ? wr(e) : {
842
842
  top: e,
843
843
  right: e,
844
844
  bottom: e,
845
845
  left: e
846
846
  };
847
847
  }
848
- function ke(e) {
848
+ function He(e) {
849
849
  return {
850
850
  ...e,
851
851
  top: e.y,
@@ -902,7 +902,7 @@ function yt(e, t, n) {
902
902
  }
903
903
  return f;
904
904
  }
905
- const wr = async (e, t, n) => {
905
+ const _r = async (e, t, n) => {
906
906
  const {
907
907
  placement: o = "bottom",
908
908
  strategy: i = "absolute",
@@ -982,7 +982,7 @@ async function be(e, t) {
982
982
  elementContext: u = "floating",
983
983
  altBoundary: p = !1,
984
984
  padding: f = 0
985
- } = Y(t, e), h = Vt(f), m = a[p ? u === "floating" ? "reference" : "floating" : u], v = ke(await r.getClippingRect({
985
+ } = Y(t, e), h = jt(f), m = a[p ? u === "floating" ? "reference" : "floating" : u], v = He(await r.getClippingRect({
986
986
  element: (n = await (r.isElement == null ? void 0 : r.isElement(m))) == null || n ? m : m.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(a.floating)),
987
987
  boundary: l,
988
988
  rootBoundary: d,
@@ -997,7 +997,7 @@ async function be(e, t) {
997
997
  } : {
998
998
  x: 1,
999
999
  y: 1
1000
- }, b = ke(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
1000
+ }, b = He(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
1001
1001
  rect: y,
1002
1002
  offsetParent: x,
1003
1003
  strategy: c
@@ -1026,13 +1026,13 @@ const bt = (e) => ({
1026
1026
  } = Y(e, t) || {};
1027
1027
  if (c == null)
1028
1028
  return {};
1029
- const d = Vt(l), u = {
1029
+ const d = jt(l), u = {
1030
1030
  x: n,
1031
1031
  y: o
1032
1032
  }, p = tt(i), f = et(p), h = await s.getDimensions(c), g = p === "y", m = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", x = r.reference[f] + r.reference[p] - u[p] - r.floating[f], $ = u[p] - r.reference[p], b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
1033
- let _ = b ? b[y] : 0;
1034
- (!_ || !await (s.isElement == null ? void 0 : s.isElement(b))) && (_ = a.floating[y] || r.floating[f]);
1035
- const E = x / 2 - $ / 2, A = _ / 2 - h[f] / 2 - 1, C = ee(d[m], A), F = ee(d[v], A), T = C, k = _ - h[f] - F, D = _ / 2 - h[f] / 2 + E, O = qe(T, D, k), P = ge(i) != null && D != O && r.reference[f] / 2 - (D < T ? C : F) - h[f] / 2 < 0 ? D < T ? T - D : k - D : 0;
1033
+ let w = b ? b[y] : 0;
1034
+ (!w || !await (s.isElement == null ? void 0 : s.isElement(b))) && (w = a.floating[y] || r.floating[f]);
1035
+ const E = x / 2 - $ / 2, A = w / 2 - h[f] / 2 - 1, C = ee(d[m], A), k = ee(d[v], A), T = C, H = w - h[f] - k, D = w / 2 - h[f] / 2 + E, O = qe(T, D, H), P = ge(i) != null && D != O && r.reference[f] / 2 - (D < T ? C : k) - h[f] / 2 < 0 ? D < T ? T - D : H - D : 0;
1036
1036
  return {
1037
1037
  [p]: u[p] - P,
1038
1038
  data: {
@@ -1062,36 +1062,36 @@ const bt = (e) => ({
1062
1062
  fallbackAxisSideDirection: f = "none",
1063
1063
  flipAlignment: h = !0,
1064
1064
  ...g
1065
- } = Y(e, t), m = X(o), v = X(s) === s, y = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), x = u || (v || !h ? [He(s)] : br(s));
1065
+ } = Y(e, t), m = X(o), v = X(s) === s, y = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), x = u || (v || !h ? [Fe(s)] : br(s));
1066
1066
  !u && f !== "none" && x.push(...$r(s, h, f, y));
1067
- const $ = [s, ...x], b = await be(t, g), _ = [];
1067
+ const $ = [s, ...x], b = await be(t, g), w = [];
1068
1068
  let E = ((n = i.flip) == null ? void 0 : n.overflows) || [];
1069
- if (l && _.push(b[m]), d) {
1069
+ if (l && w.push(b[m]), d) {
1070
1070
  const T = yr(o, r, y);
1071
- _.push(b[T[0]], b[T[1]]);
1071
+ w.push(b[T[0]], b[T[1]]);
1072
1072
  }
1073
1073
  if (E = [...E, {
1074
1074
  placement: o,
1075
- overflows: _
1076
- }], !_.every((T) => T <= 0)) {
1075
+ overflows: w
1076
+ }], !w.every((T) => T <= 0)) {
1077
1077
  var A, C;
1078
- const T = (((A = i.flip) == null ? void 0 : A.index) || 0) + 1, k = $[T];
1079
- if (k)
1078
+ const T = (((A = i.flip) == null ? void 0 : A.index) || 0) + 1, H = $[T];
1079
+ if (H)
1080
1080
  return {
1081
1081
  data: {
1082
1082
  index: T,
1083
1083
  overflows: E
1084
1084
  },
1085
1085
  reset: {
1086
- placement: k
1086
+ placement: H
1087
1087
  }
1088
1088
  };
1089
- let D = (C = E.filter((O) => O.overflows[0] <= 0).sort((O, V) => O.overflows[1] - V.overflows[1])[0]) == null ? void 0 : C.placement;
1089
+ let D = (C = E.filter((O) => O.overflows[0] <= 0).sort((O, j) => O.overflows[1] - j.overflows[1])[0]) == null ? void 0 : C.placement;
1090
1090
  if (!D)
1091
1091
  switch (p) {
1092
1092
  case "bestFit": {
1093
- var F;
1094
- const O = (F = E.map((V) => [V.placement, V.overflows.filter((P) => P > 0).reduce((P, Z) => P + Z, 0)]).sort((V, P) => V[1] - P[1])[0]) == null ? void 0 : F[0];
1093
+ var k;
1094
+ const O = (k = E.map((j) => [j.placement, j.overflows.filter((P) => P > 0).reduce((P, Z) => P + Z, 0)]).sort((j, P) => j[1] - P[1])[0]) == null ? void 0 : k[0];
1095
1095
  O && (D = O);
1096
1096
  break;
1097
1097
  }
@@ -1292,8 +1292,8 @@ const Or = function(e) {
1292
1292
  }
1293
1293
  if (l) {
1294
1294
  var v, y;
1295
- const x = p === "y" ? "width" : "height", $ = ["top", "left"].includes(X(i)), b = r.reference[u] - r.floating[x] + ($ && ((v = s.offset) == null ? void 0 : v[u]) || 0) + ($ ? 0 : m.crossAxis), _ = r.reference[u] + r.reference[x] + ($ ? 0 : ((y = s.offset) == null ? void 0 : y[u]) || 0) - ($ ? m.crossAxis : 0);
1296
- h < b ? h = b : h > _ && (h = _);
1295
+ const x = p === "y" ? "width" : "height", $ = ["top", "left"].includes(X(i)), b = r.reference[u] - r.floating[x] + ($ && ((v = s.offset) == null ? void 0 : v[u]) || 0) + ($ ? 0 : m.crossAxis), w = r.reference[u] + r.reference[x] + ($ ? 0 : ((y = s.offset) == null ? void 0 : y[u]) || 0) - ($ ? m.crossAxis : 0);
1296
+ h < b ? h = b : h > w && (h = w);
1297
1297
  }
1298
1298
  return {
1299
1299
  [p]: f,
@@ -1324,15 +1324,15 @@ const Or = function(e) {
1324
1324
  const m = f - c[h], v = p - c[g], y = !t.middlewareData.shift;
1325
1325
  let x = m, $ = v;
1326
1326
  if (u) {
1327
- const _ = p - c.left - c.right;
1328
- $ = d || y ? ee(v, _) : _;
1327
+ const w = p - c.left - c.right;
1328
+ $ = d || y ? ee(v, w) : w;
1329
1329
  } else {
1330
- const _ = f - c.top - c.bottom;
1331
- x = d || y ? ee(m, _) : _;
1330
+ const w = f - c.top - c.bottom;
1331
+ x = d || y ? ee(m, w) : w;
1332
1332
  }
1333
1333
  if (y && !d) {
1334
- const _ = B(c.left, 0), E = B(c.right, 0), A = B(c.top, 0), C = B(c.bottom, 0);
1335
- u ? $ = p - 2 * (_ !== 0 || E !== 0 ? _ + E : B(c.left, c.right)) : x = f - 2 * (A !== 0 || C !== 0 ? A + C : B(c.top, c.bottom));
1334
+ const w = B(c.left, 0), E = B(c.right, 0), A = B(c.top, 0), C = B(c.bottom, 0);
1335
+ u ? $ = p - 2 * (w !== 0 || E !== 0 ? w + E : B(c.left, c.right)) : x = f - 2 * (A !== 0 || C !== 0 ? A + C : B(c.top, c.bottom));
1336
1336
  }
1337
1337
  await s({
1338
1338
  ...t,
@@ -1349,47 +1349,47 @@ const Or = function(e) {
1349
1349
  };
1350
1350
  };
1351
1351
  function ne(e) {
1352
- return jt(e) ? (e.nodeName || "").toLowerCase() : "#document";
1352
+ return Ut(e) ? (e.nodeName || "").toLowerCase() : "#document";
1353
1353
  }
1354
- function W(e) {
1354
+ function V(e) {
1355
1355
  var t;
1356
1356
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1357
1357
  }
1358
1358
  function K(e) {
1359
1359
  var t;
1360
- return (t = (jt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1360
+ return (t = (Ut(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1361
1361
  }
1362
- function jt(e) {
1363
- return e instanceof Node || e instanceof W(e).Node;
1362
+ function Ut(e) {
1363
+ return e instanceof Node || e instanceof V(e).Node;
1364
1364
  }
1365
1365
  function q(e) {
1366
- return e instanceof Element || e instanceof W(e).Element;
1366
+ return e instanceof Element || e instanceof V(e).Element;
1367
1367
  }
1368
- function U(e) {
1369
- return e instanceof HTMLElement || e instanceof W(e).HTMLElement;
1368
+ function z(e) {
1369
+ return e instanceof HTMLElement || e instanceof V(e).HTMLElement;
1370
1370
  }
1371
- function _t(e) {
1372
- return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof W(e).ShadowRoot;
1371
+ function wt(e) {
1372
+ return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof V(e).ShadowRoot;
1373
1373
  }
1374
- function _e(e) {
1374
+ function we(e) {
1375
1375
  const {
1376
1376
  overflow: t,
1377
1377
  overflowX: n,
1378
1378
  overflowY: o,
1379
1379
  display: i
1380
- } = j(e);
1380
+ } = U(e);
1381
1381
  return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(i);
1382
1382
  }
1383
1383
  function Sr(e) {
1384
1384
  return ["table", "td", "th"].includes(ne(e));
1385
1385
  }
1386
1386
  function nt(e) {
1387
- const t = rt(), n = j(e);
1387
+ const t = rt(), n = U(e);
1388
1388
  return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
1389
1389
  }
1390
1390
  function Dr(e) {
1391
1391
  let t = fe(e);
1392
- for (; U(t) && !ze(t); ) {
1392
+ for (; z(t) && !We(t); ) {
1393
1393
  if (nt(t))
1394
1394
  return t;
1395
1395
  t = fe(t);
@@ -1399,13 +1399,13 @@ function Dr(e) {
1399
1399
  function rt() {
1400
1400
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1401
1401
  }
1402
- function ze(e) {
1402
+ function We(e) {
1403
1403
  return ["html", "body", "#document"].includes(ne(e));
1404
1404
  }
1405
- function j(e) {
1406
- return W(e).getComputedStyle(e);
1405
+ function U(e) {
1406
+ return V(e).getComputedStyle(e);
1407
1407
  }
1408
- function We(e) {
1408
+ function Ve(e) {
1409
1409
  return q(e) ? {
1410
1410
  scrollLeft: e.scrollLeft,
1411
1411
  scrollTop: e.scrollTop
@@ -1421,25 +1421,25 @@ function fe(e) {
1421
1421
  // Step into the shadow DOM of the parent of a slotted node.
1422
1422
  e.assignedSlot || // DOM Element detected.
1423
1423
  e.parentNode || // ShadowRoot detected.
1424
- _t(e) && e.host || // Fallback.
1424
+ wt(e) && e.host || // Fallback.
1425
1425
  K(e)
1426
1426
  );
1427
- return _t(t) ? t.host : t;
1427
+ return wt(t) ? t.host : t;
1428
1428
  }
1429
- function Ut(e) {
1429
+ function zt(e) {
1430
1430
  const t = fe(e);
1431
- return ze(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : U(t) && _e(t) ? t : Ut(t);
1431
+ return We(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : z(t) && we(t) ? t : zt(t);
1432
1432
  }
1433
1433
  function xe(e, t) {
1434
1434
  var n;
1435
1435
  t === void 0 && (t = []);
1436
- const o = Ut(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), r = W(o);
1437
- return i ? t.concat(r, r.visualViewport || [], _e(o) ? o : [], r.frameElement ? xe(r.frameElement) : []) : t.concat(o, xe(o));
1436
+ const o = zt(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), r = V(o);
1437
+ return i ? t.concat(r, r.visualViewport || [], we(o) ? o : [], r.frameElement ? xe(r.frameElement) : []) : t.concat(o, xe(o));
1438
1438
  }
1439
1439
  function Gt(e) {
1440
- const t = j(e);
1440
+ const t = U(e);
1441
1441
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
1442
- const i = U(e), r = i ? e.offsetWidth : n, s = i ? e.offsetHeight : o, a = Fe(n) !== r || Fe(o) !== s;
1442
+ const i = z(e), r = i ? e.offsetWidth : n, s = i ? e.offsetHeight : o, a = ke(n) !== r || ke(o) !== s;
1443
1443
  return a && (n = r, o = s), {
1444
1444
  width: n,
1445
1445
  height: o,
@@ -1451,14 +1451,14 @@ function ot(e) {
1451
1451
  }
1452
1452
  function ue(e) {
1453
1453
  const t = ot(e);
1454
- if (!U(t))
1454
+ if (!z(t))
1455
1455
  return te(1);
1456
1456
  const n = t.getBoundingClientRect(), {
1457
1457
  width: o,
1458
1458
  height: i,
1459
1459
  $: r
1460
1460
  } = Gt(t);
1461
- let s = (r ? Fe(n.width) : n.width) / o, a = (r ? Fe(n.height) : n.height) / i;
1461
+ let s = (r ? ke(n.width) : n.width) / o, a = (r ? ke(n.height) : n.height) / i;
1462
1462
  return (!s || !Number.isFinite(s)) && (s = 1), (!a || !Number.isFinite(a)) && (a = 1), {
1463
1463
  x: s,
1464
1464
  y: a
@@ -1466,14 +1466,14 @@ function ue(e) {
1466
1466
  }
1467
1467
  const Nr = /* @__PURE__ */ te(0);
1468
1468
  function Yt(e) {
1469
- const t = W(e);
1469
+ const t = V(e);
1470
1470
  return !rt() || !t.visualViewport ? Nr : {
1471
1471
  x: t.visualViewport.offsetLeft,
1472
1472
  y: t.visualViewport.offsetTop
1473
1473
  };
1474
1474
  }
1475
1475
  function Lr(e, t, n) {
1476
- return t === void 0 && (t = !1), !n || t && n !== W(e) ? !1 : t;
1476
+ return t === void 0 && (t = !1), !n || t && n !== V(e) ? !1 : t;
1477
1477
  }
1478
1478
  function ae(e, t, n, o) {
1479
1479
  t === void 0 && (t = !1), n === void 0 && (n = !1);
@@ -1483,14 +1483,14 @@ function ae(e, t, n, o) {
1483
1483
  const a = Lr(r, n, o) ? Yt(r) : te(0);
1484
1484
  let c = (i.left + a.x) / s.x, l = (i.top + a.y) / s.y, d = i.width / s.x, u = i.height / s.y;
1485
1485
  if (r) {
1486
- const p = W(r), f = o && q(o) ? W(o) : o;
1486
+ const p = V(r), f = o && q(o) ? V(o) : o;
1487
1487
  let h = p.frameElement;
1488
1488
  for (; h && o && f !== p; ) {
1489
- const g = ue(h), m = h.getBoundingClientRect(), v = j(h), y = m.left + (h.clientLeft + parseFloat(v.paddingLeft)) * g.x, x = m.top + (h.clientTop + parseFloat(v.paddingTop)) * g.y;
1490
- c *= g.x, l *= g.y, d *= g.x, u *= g.y, c += y, l += x, h = W(h).frameElement;
1489
+ const g = ue(h), m = h.getBoundingClientRect(), v = U(h), y = m.left + (h.clientLeft + parseFloat(v.paddingLeft)) * g.x, x = m.top + (h.clientTop + parseFloat(v.paddingTop)) * g.y;
1490
+ c *= g.x, l *= g.y, d *= g.x, u *= g.y, c += y, l += x, h = V(h).frameElement;
1491
1491
  }
1492
1492
  }
1493
- return ke({
1493
+ return He({
1494
1494
  width: d,
1495
1495
  height: u,
1496
1496
  x: c,
@@ -1503,7 +1503,7 @@ function Mr(e) {
1503
1503
  offsetParent: n,
1504
1504
  strategy: o
1505
1505
  } = e;
1506
- const i = U(n), r = K(n);
1506
+ const i = z(n), r = K(n);
1507
1507
  if (n === r)
1508
1508
  return t;
1509
1509
  let s = {
@@ -1511,7 +1511,7 @@ function Mr(e) {
1511
1511
  scrollTop: 0
1512
1512
  }, a = te(1);
1513
1513
  const c = te(0);
1514
- if ((i || !i && o !== "fixed") && ((ne(n) !== "body" || _e(r)) && (s = We(n)), U(n))) {
1514
+ if ((i || !i && o !== "fixed") && ((ne(n) !== "body" || we(r)) && (s = Ve(n)), z(n))) {
1515
1515
  const l = ae(n);
1516
1516
  a = ue(n), c.x = l.x + n.clientLeft, c.y = l.y + n.clientTop;
1517
1517
  }
@@ -1526,21 +1526,21 @@ function Ir(e) {
1526
1526
  return Array.from(e.getClientRects());
1527
1527
  }
1528
1528
  function Xt(e) {
1529
- return ae(K(e)).left + We(e).scrollLeft;
1529
+ return ae(K(e)).left + Ve(e).scrollLeft;
1530
1530
  }
1531
- function Fr(e) {
1532
- const t = K(e), n = We(e), o = e.ownerDocument.body, i = B(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), r = B(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
1531
+ function kr(e) {
1532
+ const t = K(e), n = Ve(e), o = e.ownerDocument.body, i = B(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), r = B(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
1533
1533
  let s = -n.scrollLeft + Xt(e);
1534
1534
  const a = -n.scrollTop;
1535
- return j(o).direction === "rtl" && (s += B(t.clientWidth, o.clientWidth) - i), {
1535
+ return U(o).direction === "rtl" && (s += B(t.clientWidth, o.clientWidth) - i), {
1536
1536
  width: i,
1537
1537
  height: r,
1538
1538
  x: s,
1539
1539
  y: a
1540
1540
  };
1541
1541
  }
1542
- function Hr(e, t) {
1543
- const n = W(e), o = K(e), i = n.visualViewport;
1542
+ function Fr(e, t) {
1543
+ const n = V(e), o = K(e), i = n.visualViewport;
1544
1544
  let r = o.clientWidth, s = o.clientHeight, a = 0, c = 0;
1545
1545
  if (i) {
1546
1546
  r = i.width, s = i.height;
@@ -1554,8 +1554,8 @@ function Hr(e, t) {
1554
1554
  y: c
1555
1555
  };
1556
1556
  }
1557
- function kr(e, t) {
1558
- const n = ae(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, r = U(e) ? ue(e) : te(1), s = e.clientWidth * r.x, a = e.clientHeight * r.y, c = i * r.x, l = o * r.y;
1557
+ function Hr(e, t) {
1558
+ const n = ae(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, r = z(e) ? ue(e) : te(1), s = e.clientWidth * r.x, a = e.clientHeight * r.y, c = i * r.x, l = o * r.y;
1559
1559
  return {
1560
1560
  width: s,
1561
1561
  height: a,
@@ -1563,14 +1563,14 @@ function kr(e, t) {
1563
1563
  y: l
1564
1564
  };
1565
1565
  }
1566
- function wt(e, t, n) {
1566
+ function _t(e, t, n) {
1567
1567
  let o;
1568
1568
  if (t === "viewport")
1569
- o = Hr(e, n);
1569
+ o = Fr(e, n);
1570
1570
  else if (t === "document")
1571
- o = Fr(K(e));
1571
+ o = kr(K(e));
1572
1572
  else if (q(t))
1573
- o = kr(t, n);
1573
+ o = Hr(t, n);
1574
1574
  else {
1575
1575
  const i = Yt(e);
1576
1576
  o = {
@@ -1579,26 +1579,26 @@ function wt(e, t, n) {
1579
1579
  y: t.y - i.y
1580
1580
  };
1581
1581
  }
1582
- return ke(o);
1582
+ return He(o);
1583
1583
  }
1584
1584
  function qt(e, t) {
1585
1585
  const n = fe(e);
1586
- return n === t || !q(n) || ze(n) ? !1 : j(n).position === "fixed" || qt(n, t);
1586
+ return n === t || !q(n) || We(n) ? !1 : U(n).position === "fixed" || qt(n, t);
1587
1587
  }
1588
1588
  function Br(e, t) {
1589
1589
  const n = t.get(e);
1590
1590
  if (n)
1591
1591
  return n;
1592
1592
  let o = xe(e).filter((a) => q(a) && ne(a) !== "body"), i = null;
1593
- const r = j(e).position === "fixed";
1593
+ const r = U(e).position === "fixed";
1594
1594
  let s = r ? fe(e) : e;
1595
- for (; q(s) && !ze(s); ) {
1596
- const a = j(s), c = nt(s);
1597
- !c && a.position === "fixed" && (i = null), (r ? !c && !i : !c && a.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || _e(s) && !c && qt(e, s)) ? o = o.filter((d) => d !== s) : i = a, s = fe(s);
1595
+ for (; q(s) && !We(s); ) {
1596
+ const a = U(s), c = nt(s);
1597
+ !c && a.position === "fixed" && (i = null), (r ? !c && !i : !c && a.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || we(s) && !c && qt(e, s)) ? o = o.filter((d) => d !== s) : i = a, s = fe(s);
1598
1598
  }
1599
1599
  return t.set(e, o), o;
1600
1600
  }
1601
- function zr(e) {
1601
+ function Wr(e) {
1602
1602
  let {
1603
1603
  element: t,
1604
1604
  boundary: n,
@@ -1606,9 +1606,9 @@ function zr(e) {
1606
1606
  strategy: i
1607
1607
  } = e;
1608
1608
  const s = [...n === "clippingAncestors" ? Br(t, this._c) : [].concat(n), o], a = s[0], c = s.reduce((l, d) => {
1609
- const u = wt(t, d, i);
1609
+ const u = _t(t, d, i);
1610
1610
  return l.top = B(u.top, l.top), l.right = ee(u.right, l.right), l.bottom = ee(u.bottom, l.bottom), l.left = B(u.left, l.left), l;
1611
- }, wt(t, a, i));
1611
+ }, _t(t, a, i));
1612
1612
  return {
1613
1613
  width: c.right - c.left,
1614
1614
  height: c.bottom - c.top,
@@ -1616,18 +1616,18 @@ function zr(e) {
1616
1616
  y: c.top
1617
1617
  };
1618
1618
  }
1619
- function Wr(e) {
1619
+ function Vr(e) {
1620
1620
  return Gt(e);
1621
1621
  }
1622
- function Vr(e, t, n) {
1623
- const o = U(t), i = K(t), r = n === "fixed", s = ae(e, !0, r, t);
1622
+ function jr(e, t, n) {
1623
+ const o = z(t), i = K(t), r = n === "fixed", s = ae(e, !0, r, t);
1624
1624
  let a = {
1625
1625
  scrollLeft: 0,
1626
1626
  scrollTop: 0
1627
1627
  };
1628
1628
  const c = te(0);
1629
1629
  if (o || !o && !r)
1630
- if ((ne(t) !== "body" || _e(i)) && (a = We(t)), o) {
1630
+ if ((ne(t) !== "body" || we(i)) && (a = Ve(t)), o) {
1631
1631
  const l = ae(t, !0, r, t);
1632
1632
  c.x = l.x + t.clientLeft, c.y = l.y + t.clientTop;
1633
1633
  } else
@@ -1640,18 +1640,18 @@ function Vr(e, t, n) {
1640
1640
  };
1641
1641
  }
1642
1642
  function At(e, t) {
1643
- return !U(e) || j(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
1643
+ return !z(e) || U(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
1644
1644
  }
1645
1645
  function Kt(e, t) {
1646
- const n = W(e);
1647
- if (!U(e))
1646
+ const n = V(e);
1647
+ if (!z(e))
1648
1648
  return n;
1649
1649
  let o = At(e, t);
1650
- for (; o && Sr(o) && j(o).position === "static"; )
1650
+ for (; o && Sr(o) && U(o).position === "static"; )
1651
1651
  o = At(o, t);
1652
- return o && (ne(o) === "html" || ne(o) === "body" && j(o).position === "static" && !nt(o)) ? n : o || Dr(e) || n;
1652
+ return o && (ne(o) === "html" || ne(o) === "body" && U(o).position === "static" && !nt(o)) ? n : o || Dr(e) || n;
1653
1653
  }
1654
- const jr = async function(e) {
1654
+ const Ur = async function(e) {
1655
1655
  let {
1656
1656
  reference: t,
1657
1657
  floating: n,
@@ -1659,7 +1659,7 @@ const jr = async function(e) {
1659
1659
  } = e;
1660
1660
  const i = this.getOffsetParent || Kt, r = this.getDimensions;
1661
1661
  return {
1662
- reference: Vr(t, await i(n), o),
1662
+ reference: jr(t, await i(n), o),
1663
1663
  floating: {
1664
1664
  x: 0,
1665
1665
  y: 0,
@@ -1667,20 +1667,20 @@ const jr = async function(e) {
1667
1667
  }
1668
1668
  };
1669
1669
  };
1670
- function Ur(e) {
1671
- return j(e).direction === "rtl";
1670
+ function zr(e) {
1671
+ return U(e).direction === "rtl";
1672
1672
  }
1673
1673
  const Gr = {
1674
1674
  convertOffsetParentRelativeRectToViewportRelativeRect: Mr,
1675
1675
  getDocumentElement: K,
1676
- getClippingRect: zr,
1676
+ getClippingRect: Wr,
1677
1677
  getOffsetParent: Kt,
1678
- getElementRects: jr,
1678
+ getElementRects: Ur,
1679
1679
  getClientRects: Ir,
1680
- getDimensions: Wr,
1680
+ getDimensions: Vr,
1681
1681
  getScale: ue,
1682
1682
  isElement: q,
1683
- isRTL: Ur
1683
+ isRTL: zr
1684
1684
  };
1685
1685
  function Yr(e, t) {
1686
1686
  let n = null, o;
@@ -1704,11 +1704,11 @@ function Yr(e, t) {
1704
1704
  };
1705
1705
  let x = !0;
1706
1706
  function $(b) {
1707
- const _ = b[0].intersectionRatio;
1708
- if (_ !== c) {
1707
+ const w = b[0].intersectionRatio;
1708
+ if (w !== c) {
1709
1709
  if (!x)
1710
1710
  return s();
1711
- _ ? s(!1, _) : o = setTimeout(() => {
1711
+ w ? s(!1, w) : o = setTimeout(() => {
1712
1712
  s(!1, 1e-7);
1713
1713
  }, 100);
1714
1714
  }
@@ -1769,7 +1769,7 @@ const qr = (e, t, n) => {
1769
1769
  ...i.platform,
1770
1770
  _c: o
1771
1771
  };
1772
- return wr(e, t, {
1772
+ return _r(e, t, {
1773
1773
  ...i,
1774
1774
  platform: r
1775
1775
  });
@@ -1864,52 +1864,52 @@ function Zr(e) {
1864
1864
  }), [p, f] = N.useState(o);
1865
1865
  Be(p, o) || f(o);
1866
1866
  const [h, g] = N.useState(null), [m, v] = N.useState(null), y = N.useCallback((P) => {
1867
- P != _.current && (_.current = P, g(P));
1867
+ P != w.current && (w.current = P, g(P));
1868
1868
  }, [g]), x = N.useCallback((P) => {
1869
1869
  P !== E.current && (E.current = P, v(P));
1870
- }, [v]), $ = r || h, b = s || m, _ = N.useRef(null), E = N.useRef(null), A = N.useRef(d), C = Et(c), F = Et(i), T = N.useCallback(() => {
1871
- if (!_.current || !E.current)
1870
+ }, [v]), $ = r || h, b = s || m, w = N.useRef(null), E = N.useRef(null), A = N.useRef(d), C = Et(c), k = Et(i), T = N.useCallback(() => {
1871
+ if (!w.current || !E.current)
1872
1872
  return;
1873
1873
  const P = {
1874
1874
  placement: t,
1875
1875
  strategy: n,
1876
1876
  middleware: p
1877
1877
  };
1878
- F.current && (P.platform = F.current), qr(_.current, E.current, P).then((Z) => {
1878
+ k.current && (P.platform = k.current), qr(w.current, E.current, P).then((Z) => {
1879
1879
  const J = {
1880
1880
  ...Z,
1881
1881
  isPositioned: !0
1882
1882
  };
1883
- k.current && !Be(A.current, J) && (A.current = J, wn.flushSync(() => {
1883
+ H.current && !Be(A.current, J) && (A.current = J, _n.flushSync(() => {
1884
1884
  u(J);
1885
1885
  }));
1886
1886
  });
1887
- }, [p, t, n, F]);
1887
+ }, [p, t, n, k]);
1888
1888
  Me(() => {
1889
1889
  l === !1 && A.current.isPositioned && (A.current.isPositioned = !1, u((P) => ({
1890
1890
  ...P,
1891
1891
  isPositioned: !1
1892
1892
  })));
1893
1893
  }, [l]);
1894
- const k = N.useRef(!1);
1895
- Me(() => (k.current = !0, () => {
1896
- k.current = !1;
1894
+ const H = N.useRef(!1);
1895
+ Me(() => (H.current = !0, () => {
1896
+ H.current = !1;
1897
1897
  }), []), Me(() => {
1898
- if ($ && (_.current = $), b && (E.current = b), $ && b) {
1898
+ if ($ && (w.current = $), b && (E.current = b), $ && b) {
1899
1899
  if (C.current)
1900
1900
  return C.current($, b, T);
1901
1901
  T();
1902
1902
  }
1903
1903
  }, [$, b, T, C]);
1904
1904
  const D = N.useMemo(() => ({
1905
- reference: _,
1905
+ reference: w,
1906
1906
  floating: E,
1907
1907
  setReference: y,
1908
1908
  setFloating: x
1909
1909
  }), [y, x]), O = N.useMemo(() => ({
1910
1910
  reference: $,
1911
1911
  floating: b
1912
- }), [$, b]), V = N.useMemo(() => {
1912
+ }), [$, b]), j = N.useMemo(() => {
1913
1913
  const P = {
1914
1914
  position: n,
1915
1915
  left: 0,
@@ -1935,23 +1935,23 @@ function Zr(e) {
1935
1935
  update: T,
1936
1936
  refs: D,
1937
1937
  elements: O,
1938
- floatingStyles: V
1939
- }), [d, T, D, O, V]);
1938
+ floatingStyles: j
1939
+ }), [d, T, D, O, j]);
1940
1940
  }
1941
1941
  const Jr = /* @__PURE__ */ M((e, t) => {
1942
1942
  const { children: n, width: o = 10, height: i = 5, ...r } = e;
1943
- return /* @__PURE__ */ w(ce.svg, S({}, r, {
1943
+ return /* @__PURE__ */ _(ce.svg, S({}, r, {
1944
1944
  ref: t,
1945
1945
  width: o,
1946
1946
  height: i,
1947
1947
  viewBox: "0 0 30 10",
1948
1948
  preserveAspectRatio: "none"
1949
- }), e.asChild ? n : /* @__PURE__ */ w("polygon", {
1949
+ }), e.asChild ? n : /* @__PURE__ */ _("polygon", {
1950
1950
  points: "0,0 30,0 15,10"
1951
1951
  }));
1952
1952
  }), Qr = Jr;
1953
1953
  function eo(e) {
1954
- const [t, n] = z(void 0);
1954
+ const [t, n] = W(void 0);
1955
1955
  return de(() => {
1956
1956
  if (e) {
1957
1957
  n({
@@ -1982,9 +1982,9 @@ function eo(e) {
1982
1982
  e
1983
1983
  ]), t;
1984
1984
  }
1985
- const Jt = "Popper", [Qt, en] = kt(Jt), [to, tn] = Qt(Jt), no = (e) => {
1986
- const { __scopePopper: t, children: n } = e, [o, i] = z(null);
1987
- return /* @__PURE__ */ w(to, {
1985
+ const Jt = "Popper", [Qt, en] = Ht(Jt), [to, tn] = Qt(Jt), no = (e) => {
1986
+ const { __scopePopper: t, children: n } = e, [o, i] = W(null);
1987
+ return /* @__PURE__ */ _(to, {
1988
1988
  scope: t,
1989
1989
  anchor: o,
1990
1990
  onAnchorChange: i
@@ -1993,15 +1993,15 @@ const Jt = "Popper", [Qt, en] = kt(Jt), [to, tn] = Qt(Jt), no = (e) => {
1993
1993
  const { __scopePopper: n, virtualRef: o, ...i } = e, r = tn(ro, n), s = L(null), a = pe(t, s);
1994
1994
  return R(() => {
1995
1995
  r.onAnchorChange((o == null ? void 0 : o.current) || s.current);
1996
- }), o ? null : /* @__PURE__ */ w(ce.div, S({}, i, {
1996
+ }), o ? null : /* @__PURE__ */ _(ce.div, S({}, i, {
1997
1997
  ref: a
1998
1998
  }));
1999
1999
  }), nn = "PopperContent", [io, so] = Qt(nn), ao = /* @__PURE__ */ M((e, t) => {
2000
2000
  var n, o, i, r, s, a, c, l;
2001
- const { __scopePopper: d, side: u = "bottom", sideOffset: p = 0, align: f = "center", alignOffset: h = 0, arrowPadding: g = 0, avoidCollisions: m = !0, collisionBoundary: v = [], collisionPadding: y = 0, sticky: x = "partial", hideWhenDetached: $ = !1, updatePositionStrategy: b = "optimized", onPlaced: _, ...E } = e, A = tn(nn, d), [C, F] = z(null), T = pe(
2001
+ const { __scopePopper: d, side: u = "bottom", sideOffset: p = 0, align: f = "center", alignOffset: h = 0, arrowPadding: g = 0, avoidCollisions: m = !0, collisionBoundary: v = [], collisionPadding: y = 0, sticky: x = "partial", hideWhenDetached: $ = !1, updatePositionStrategy: b = "optimized", onPlaced: w, ...E } = e, A = tn(nn, d), [C, k] = W(null), T = pe(
2002
2002
  t,
2003
- (ve) => F(ve)
2004
- ), [k, D] = z(null), O = eo(k), V = (n = O == null ? void 0 : O.width) !== null && n !== void 0 ? n : 0, P = (o = O == null ? void 0 : O.height) !== null && o !== void 0 ? o : 0, Z = u + (f !== "center" ? "-" + f : ""), J = typeof y == "number" ? y : {
2003
+ (ve) => k(ve)
2004
+ ), [H, D] = W(null), O = eo(H), j = (n = O == null ? void 0 : O.width) !== null && n !== void 0 ? n : 0, P = (o = O == null ? void 0 : O.height) !== null && o !== void 0 ? o : 0, Z = u + (f !== "center" ? "-" + f : ""), J = typeof y == "number" ? y : {
2005
2005
  top: 0,
2006
2006
  right: 0,
2007
2007
  bottom: 0,
@@ -2045,12 +2045,12 @@ const Jt = "Popper", [Qt, en] = kt(Jt), [to, tn] = Qt(Jt), no = (e) => {
2045
2045
  Oe.setProperty("--radix-popper-available-width", `${vn}px`), Oe.setProperty("--radix-popper-available-height", `${yn}px`), Oe.setProperty("--radix-popper-anchor-width", `${bn}px`), Oe.setProperty("--radix-popper-anchor-height", `${xn}px`);
2046
2046
  }
2047
2047
  }),
2048
- k && Kr({
2049
- element: k,
2048
+ H && Kr({
2049
+ element: H,
2050
2050
  padding: g
2051
2051
  }),
2052
2052
  po({
2053
- arrowWidth: V,
2053
+ arrowWidth: j,
2054
2054
  arrowHeight: P
2055
2055
  }),
2056
2056
  $ && Pr({
@@ -2058,19 +2058,19 @@ const Jt = "Popper", [Qt, en] = kt(Jt), [to, tn] = Qt(Jt), no = (e) => {
2058
2058
  ...Ae
2059
2059
  })
2060
2060
  ]
2061
- }), [ut, dn] = rn(un), Ee = he(_);
2061
+ }), [ut, dn] = rn(un), Ee = he(w);
2062
2062
  de(() => {
2063
2063
  Pe && (Ee == null || Ee());
2064
2064
  }, [
2065
2065
  Pe,
2066
2066
  Ee
2067
2067
  ]);
2068
- const fn = (i = le.arrow) === null || i === void 0 ? void 0 : i.x, pn = (r = le.arrow) === null || r === void 0 ? void 0 : r.y, hn = ((s = le.arrow) === null || s === void 0 ? void 0 : s.centerOffset) !== 0, [gn, mn] = z();
2068
+ const fn = (i = le.arrow) === null || i === void 0 ? void 0 : i.x, pn = (r = le.arrow) === null || r === void 0 ? void 0 : r.y, hn = ((s = le.arrow) === null || s === void 0 ? void 0 : s.centerOffset) !== 0, [gn, mn] = W();
2069
2069
  return de(() => {
2070
2070
  C && mn(window.getComputedStyle(C).zIndex);
2071
2071
  }, [
2072
2072
  C
2073
- ]), /* @__PURE__ */ w("div", {
2073
+ ]), /* @__PURE__ */ _("div", {
2074
2074
  ref: ln.setFloating,
2075
2075
  "data-radix-popper-content-wrapper": "",
2076
2076
  style: {
@@ -2085,14 +2085,14 @@ const Jt = "Popper", [Qt, en] = kt(Jt), [to, tn] = Qt(Jt), no = (e) => {
2085
2085
  ].join(" ")
2086
2086
  },
2087
2087
  dir: e.dir
2088
- }, /* @__PURE__ */ w(io, {
2088
+ }, /* @__PURE__ */ _(io, {
2089
2089
  scope: d,
2090
2090
  placedSide: ut,
2091
2091
  onArrowChange: D,
2092
2092
  arrowX: fn,
2093
2093
  arrowY: pn,
2094
2094
  shouldHideArrow: hn
2095
- }, /* @__PURE__ */ w(ce.div, S({
2095
+ }, /* @__PURE__ */ _(ce.div, S({
2096
2096
  "data-side": ut,
2097
2097
  "data-align": dn
2098
2098
  }, E, {
@@ -2117,7 +2117,7 @@ const Jt = "Popper", [Qt, en] = kt(Jt), [to, tn] = Qt(Jt), no = (e) => {
2117
2117
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2118
2118
  // doesn't report size as we'd expect on SVG elements.
2119
2119
  // it reports their bounding box which is effectively the largest path inside the SVG.
2120
- /* @__PURE__ */ w("span", {
2120
+ /* @__PURE__ */ _("span", {
2121
2121
  ref: r.onArrowChange,
2122
2122
  style: {
2123
2123
  position: "absolute",
@@ -2138,7 +2138,7 @@ const Jt = "Popper", [Qt, en] = kt(Jt), [to, tn] = Qt(Jt), no = (e) => {
2138
2138
  }[r.placedSide],
2139
2139
  visibility: r.shouldHideArrow ? "hidden" : void 0
2140
2140
  }
2141
- }, /* @__PURE__ */ w(Qr, S({}, i, {
2141
+ }, /* @__PURE__ */ _(Qr, S({}, i, {
2142
2142
  ref: n,
2143
2143
  style: {
2144
2144
  ...i.style,
@@ -2180,12 +2180,12 @@ function rn(e) {
2180
2180
  const ho = no, go = oo, mo = ao, vo = uo, yo = /* @__PURE__ */ M((e, t) => {
2181
2181
  var n;
2182
2182
  const { container: o = globalThis == null || (n = globalThis.document) === null || n === void 0 ? void 0 : n.body, ...i } = e;
2183
- return o ? /* @__PURE__ */ An.createPortal(/* @__PURE__ */ w(ce.div, S({}, i, {
2183
+ return o ? /* @__PURE__ */ An.createPortal(/* @__PURE__ */ _(ce.div, S({}, i, {
2184
2184
  ref: t
2185
2185
  })), o) : null;
2186
2186
  });
2187
2187
  function bo(e, t) {
2188
- return _n((n, o) => {
2188
+ return wn((n, o) => {
2189
2189
  const i = t[n][o];
2190
2190
  return i ?? n;
2191
2191
  }, e);
@@ -2200,7 +2200,7 @@ const it = (e) => {
2200
2200
  };
2201
2201
  it.displayName = "Presence";
2202
2202
  function xo(e) {
2203
- const [t, n] = z(), o = L({}), i = L(e), r = L("none"), s = e ? "mounted" : "unmounted", [a, c] = bo(s, {
2203
+ const [t, n] = W(), o = L({}), i = L(e), r = L("none"), s = e ? "mounted" : "unmounted", [a, c] = bo(s, {
2204
2204
  mounted: {
2205
2205
  UNMOUNT: "unmounted",
2206
2206
  ANIMATION_OUT: "unmountSuspended"
@@ -2250,7 +2250,7 @@ function xo(e) {
2250
2250
  "mounted",
2251
2251
  "unmountSuspended"
2252
2252
  ].includes(a),
2253
- ref: H((l) => {
2253
+ ref: F((l) => {
2254
2254
  l && (o.current = getComputedStyle(l)), n(l);
2255
2255
  }, [])
2256
2256
  };
@@ -2260,10 +2260,10 @@ function Ne(e) {
2260
2260
  }
2261
2261
  function $o({ prop: e, defaultProp: t, onChange: n = () => {
2262
2262
  } }) {
2263
- const [o, i] = _o({
2263
+ const [o, i] = wo({
2264
2264
  defaultProp: t,
2265
2265
  onChange: n
2266
- }), r = e !== void 0, s = r ? e : o, a = he(n), c = H((l) => {
2266
+ }), r = e !== void 0, s = r ? e : o, a = he(n), c = F((l) => {
2267
2267
  if (r) {
2268
2268
  const u = typeof l == "function" ? l(e) : l;
2269
2269
  u !== e && a(u);
@@ -2280,8 +2280,8 @@ function $o({ prop: e, defaultProp: t, onChange: n = () => {
2280
2280
  c
2281
2281
  ];
2282
2282
  }
2283
- function _o({ defaultProp: e, onChange: t }) {
2284
- const n = z(e), [o] = n, i = L(o), r = he(t);
2283
+ function wo({ defaultProp: e, onChange: t }) {
2284
+ const n = W(e), [o] = n, i = L(o), r = he(t);
2285
2285
  return R(() => {
2286
2286
  i.current !== o && (r(o), i.current = o);
2287
2287
  }, [
@@ -2290,7 +2290,7 @@ function _o({ defaultProp: e, onChange: t }) {
2290
2290
  r
2291
2291
  ]), n;
2292
2292
  }
2293
- const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
2293
+ const _o = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ce.span, S({}, e, {
2294
2294
  ref: t,
2295
2295
  style: {
2296
2296
  // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
@@ -2306,21 +2306,21 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
2306
2306
  wordWrap: "normal",
2307
2307
  ...e.style
2308
2308
  }
2309
- }))), Ao = wo, [Ve, hi] = kt("Tooltip", [
2309
+ }))), Ao = _o, [je, hi] = Ht("Tooltip", [
2310
2310
  en
2311
- ]), je = en(), Po = "TooltipProvider", Eo = 700, Ze = "tooltip.open", [Oo, st] = Ve(Po), To = (e) => {
2312
- const { __scopeTooltip: t, delayDuration: n = Eo, skipDelayDuration: o = 300, disableHoverableContent: i = !1, children: r } = e, [s, a] = z(!0), c = L(!1), l = L(0);
2311
+ ]), Ue = en(), Po = "TooltipProvider", Eo = 700, Ze = "tooltip.open", [Oo, st] = je(Po), To = (e) => {
2312
+ const { __scopeTooltip: t, delayDuration: n = Eo, skipDelayDuration: o = 300, disableHoverableContent: i = !1, children: r } = e, [s, a] = W(!0), c = L(!1), l = L(0);
2313
2313
  return R(() => {
2314
2314
  const d = l.current;
2315
2315
  return () => window.clearTimeout(d);
2316
- }, []), /* @__PURE__ */ w(Oo, {
2316
+ }, []), /* @__PURE__ */ _(Oo, {
2317
2317
  scope: t,
2318
2318
  isOpenDelayed: s,
2319
2319
  delayDuration: n,
2320
- onOpen: H(() => {
2320
+ onOpen: F(() => {
2321
2321
  window.clearTimeout(l.current), a(!1);
2322
2322
  }, []),
2323
- onClose: H(() => {
2323
+ onClose: F(() => {
2324
2324
  window.clearTimeout(l.current), l.current = window.setTimeout(
2325
2325
  () => a(!0),
2326
2326
  o
@@ -2329,13 +2329,13 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
2329
2329
  o
2330
2330
  ]),
2331
2331
  isPointerInTransitRef: c,
2332
- onPointerInTransitChange: H((d) => {
2332
+ onPointerInTransitChange: F((d) => {
2333
2333
  c.current = d;
2334
2334
  }, []),
2335
2335
  disableHoverableContent: i
2336
2336
  }, r);
2337
- }, at = "Tooltip", [Co, we] = Ve(at), Ro = (e) => {
2338
- const { __scopeTooltip: t, children: n, open: o, defaultOpen: i = !1, onOpenChange: r, disableHoverableContent: s, delayDuration: a } = e, c = st(at, e.__scopeTooltip), l = je(t), [d, u] = z(null), p = hr(), f = L(0), h = s ?? c.disableHoverableContent, g = a ?? c.delayDuration, m = L(!1), [v = !1, y] = $o({
2337
+ }, at = "Tooltip", [Co, _e] = je(at), Ro = (e) => {
2338
+ const { __scopeTooltip: t, children: n, open: o, defaultOpen: i = !1, onOpenChange: r, disableHoverableContent: s, delayDuration: a } = e, c = st(at, e.__scopeTooltip), l = Ue(t), [d, u] = W(null), p = hr(), f = L(0), h = s ?? c.disableHoverableContent, g = a ?? c.delayDuration, m = L(!1), [v = !1, y] = $o({
2339
2339
  prop: o,
2340
2340
  defaultProp: i,
2341
2341
  onChange: (E) => {
@@ -2343,15 +2343,15 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
2343
2343
  }
2344
2344
  }), x = ye(() => v ? m.current ? "delayed-open" : "instant-open" : "closed", [
2345
2345
  v
2346
- ]), $ = H(() => {
2346
+ ]), $ = F(() => {
2347
2347
  window.clearTimeout(f.current), m.current = !1, y(!0);
2348
2348
  }, [
2349
2349
  y
2350
- ]), b = H(() => {
2350
+ ]), b = F(() => {
2351
2351
  window.clearTimeout(f.current), y(!1);
2352
2352
  }, [
2353
2353
  y
2354
- ]), _ = H(() => {
2354
+ ]), w = F(() => {
2355
2355
  window.clearTimeout(f.current), f.current = window.setTimeout(() => {
2356
2356
  m.current = !0, y(!0);
2357
2357
  }, g);
@@ -2359,21 +2359,21 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
2359
2359
  g,
2360
2360
  y
2361
2361
  ]);
2362
- return R(() => () => window.clearTimeout(f.current), []), /* @__PURE__ */ w(ho, l, /* @__PURE__ */ w(Co, {
2362
+ return R(() => () => window.clearTimeout(f.current), []), /* @__PURE__ */ _(ho, l, /* @__PURE__ */ _(Co, {
2363
2363
  scope: t,
2364
2364
  contentId: p,
2365
2365
  open: v,
2366
2366
  stateAttribute: x,
2367
2367
  trigger: d,
2368
2368
  onTriggerChange: u,
2369
- onTriggerEnter: H(() => {
2370
- c.isOpenDelayed ? _() : $();
2369
+ onTriggerEnter: F(() => {
2370
+ c.isOpenDelayed ? w() : $();
2371
2371
  }, [
2372
2372
  c.isOpenDelayed,
2373
- _,
2373
+ w,
2374
2374
  $
2375
2375
  ]),
2376
- onTriggerLeave: H(() => {
2376
+ onTriggerLeave: F(() => {
2377
2377
  h ? b() : window.clearTimeout(f.current);
2378
2378
  }, [
2379
2379
  b,
@@ -2384,15 +2384,15 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
2384
2384
  disableHoverableContent: h
2385
2385
  }, n));
2386
2386
  }, Ot = "TooltipTrigger", So = /* @__PURE__ */ M((e, t) => {
2387
- const { __scopeTooltip: n, ...o } = e, i = we(Ot, n), r = st(Ot, n), s = je(n), a = L(null), c = pe(t, a, i.onTriggerChange), l = L(!1), d = L(!1), u = H(
2387
+ const { __scopeTooltip: n, ...o } = e, i = _e(Ot, n), r = st(Ot, n), s = Ue(n), a = L(null), c = pe(t, a, i.onTriggerChange), l = L(!1), d = L(!1), u = F(
2388
2388
  () => l.current = !1,
2389
2389
  []
2390
2390
  );
2391
2391
  return R(() => () => document.removeEventListener("pointerup", u), [
2392
2392
  u
2393
- ]), /* @__PURE__ */ w(go, S({
2393
+ ]), /* @__PURE__ */ _(go, S({
2394
2394
  asChild: !0
2395
- }, s), /* @__PURE__ */ w(ce.button, S({
2395
+ }, s), /* @__PURE__ */ _(ce.button, S({
2396
2396
  // We purposefully avoid adding `type=button` here because tooltip triggers are also
2397
2397
  // commonly anchors and the anchor `type` attribute signifies MIME type.
2398
2398
  "aria-describedby": i.open ? i.contentId : void 0,
@@ -2416,42 +2416,42 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
2416
2416
  onBlur: G(e.onBlur, i.onClose),
2417
2417
  onClick: G(e.onClick, i.onClose)
2418
2418
  })));
2419
- }), on = "TooltipPortal", [Do, No] = Ve(on, {
2419
+ }), on = "TooltipPortal", [Do, No] = je(on, {
2420
2420
  forceMount: void 0
2421
2421
  }), Lo = (e) => {
2422
- const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r = we(on, t);
2423
- return /* @__PURE__ */ w(Do, {
2422
+ const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r = _e(on, t);
2423
+ return /* @__PURE__ */ _(Do, {
2424
2424
  scope: t,
2425
2425
  forceMount: n
2426
- }, /* @__PURE__ */ w(it, {
2426
+ }, /* @__PURE__ */ _(it, {
2427
2427
  present: n || r.open
2428
- }, /* @__PURE__ */ w(yo, {
2428
+ }, /* @__PURE__ */ _(yo, {
2429
2429
  asChild: !0,
2430
2430
  container: i
2431
2431
  }, o)));
2432
2432
  }, $e = "TooltipContent", Mo = /* @__PURE__ */ M((e, t) => {
2433
- const n = No($e, e.__scopeTooltip), { forceMount: o = n.forceMount, side: i = "top", ...r } = e, s = we($e, e.__scopeTooltip);
2434
- return /* @__PURE__ */ w(it, {
2433
+ const n = No($e, e.__scopeTooltip), { forceMount: o = n.forceMount, side: i = "top", ...r } = e, s = _e($e, e.__scopeTooltip);
2434
+ return /* @__PURE__ */ _(it, {
2435
2435
  present: o || s.open
2436
- }, s.disableHoverableContent ? /* @__PURE__ */ w(sn, S({
2436
+ }, s.disableHoverableContent ? /* @__PURE__ */ _(sn, S({
2437
2437
  side: i
2438
2438
  }, r, {
2439
2439
  ref: t
2440
- })) : /* @__PURE__ */ w(Io, S({
2440
+ })) : /* @__PURE__ */ _(Io, S({
2441
2441
  side: i
2442
2442
  }, r, {
2443
2443
  ref: t
2444
2444
  })));
2445
2445
  }), Io = /* @__PURE__ */ M((e, t) => {
2446
- const n = we($e, e.__scopeTooltip), o = st($e, e.__scopeTooltip), i = L(null), r = pe(t, i), [s, a] = z(null), { trigger: c, onClose: l } = n, d = i.current, { onPointerInTransitChange: u } = o, p = H(() => {
2446
+ const n = _e($e, e.__scopeTooltip), o = st($e, e.__scopeTooltip), i = L(null), r = pe(t, i), [s, a] = W(null), { trigger: c, onClose: l } = n, d = i.current, { onPointerInTransitChange: u } = o, p = F(() => {
2447
2447
  a(null), u(!1);
2448
2448
  }, [
2449
2449
  u
2450
- ]), f = H((h, g) => {
2450
+ ]), f = F((h, g) => {
2451
2451
  const m = h.currentTarget, v = {
2452
2452
  x: h.clientX,
2453
2453
  y: h.clientY
2454
- }, y = zo(v, m.getBoundingClientRect()), x = Wo(v, y), $ = Vo(g.getBoundingClientRect()), b = Uo([
2454
+ }, y = Wo(v, m.getBoundingClientRect()), x = Vo(v, y), $ = jo(g.getBoundingClientRect()), b = zo([
2455
2455
  ...x,
2456
2456
  ...$
2457
2457
  ]);
@@ -2479,7 +2479,7 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
2479
2479
  const m = g.target, v = {
2480
2480
  x: g.clientX,
2481
2481
  y: g.clientY
2482
- }, y = (c == null ? void 0 : c.contains(m)) || (d == null ? void 0 : d.contains(m)), x = !jo(v, s);
2482
+ }, y = (c == null ? void 0 : c.contains(m)) || (d == null ? void 0 : d.contains(m)), x = !Uo(v, s);
2483
2483
  y ? p() : x && (p(), l());
2484
2484
  };
2485
2485
  return document.addEventListener("pointermove", h), () => document.removeEventListener("pointermove", h);
@@ -2490,13 +2490,13 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
2490
2490
  s,
2491
2491
  l,
2492
2492
  p
2493
- ]), /* @__PURE__ */ w(sn, S({}, e, {
2493
+ ]), /* @__PURE__ */ _(sn, S({}, e, {
2494
2494
  ref: r
2495
2495
  }));
2496
- }), [Fo, Ho] = Ve(at, {
2496
+ }), [ko, Fo] = je(at, {
2497
2497
  isInside: !1
2498
2498
  }), sn = /* @__PURE__ */ M((e, t) => {
2499
- const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...a } = e, c = we($e, n), l = je(n), { onClose: d } = c;
2499
+ const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...a } = e, c = _e($e, n), l = Ue(n), { onClose: d } = c;
2500
2500
  return R(() => (document.addEventListener(Ze, d), () => document.removeEventListener(Ze, d)), [
2501
2501
  d
2502
2502
  ]), R(() => {
@@ -2514,14 +2514,14 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
2514
2514
  }, [
2515
2515
  c.trigger,
2516
2516
  d
2517
- ]), /* @__PURE__ */ w(lr, {
2517
+ ]), /* @__PURE__ */ _(lr, {
2518
2518
  asChild: !0,
2519
2519
  disableOutsidePointerEvents: !1,
2520
2520
  onEscapeKeyDown: r,
2521
2521
  onPointerDownOutside: s,
2522
2522
  onFocusOutside: (u) => u.preventDefault(),
2523
2523
  onDismiss: d
2524
- }, /* @__PURE__ */ w(mo, S({
2524
+ }, /* @__PURE__ */ _(mo, S({
2525
2525
  "data-state": c.stateAttribute
2526
2526
  }, l, a, {
2527
2527
  ref: t,
@@ -2533,20 +2533,20 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
2533
2533
  "--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
2534
2534
  "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
2535
2535
  }
2536
- }), /* @__PURE__ */ w(zt, null, o), /* @__PURE__ */ w(Fo, {
2536
+ }), /* @__PURE__ */ _(Wt, null, o), /* @__PURE__ */ _(ko, {
2537
2537
  scope: n,
2538
2538
  isInside: !0
2539
- }, /* @__PURE__ */ w(Ao, {
2539
+ }, /* @__PURE__ */ _(Ao, {
2540
2540
  id: c.contentId,
2541
2541
  role: "tooltip"
2542
2542
  }, i || o))));
2543
- }), ko = "TooltipArrow", Bo = /* @__PURE__ */ M((e, t) => {
2544
- const { __scopeTooltip: n, ...o } = e, i = je(n);
2545
- return Ho(ko, n).isInside ? null : /* @__PURE__ */ w(vo, S({}, i, o, {
2543
+ }), Ho = "TooltipArrow", Bo = /* @__PURE__ */ M((e, t) => {
2544
+ const { __scopeTooltip: n, ...o } = e, i = Ue(n);
2545
+ return Fo(Ho, n).isInside ? null : /* @__PURE__ */ _(vo, S({}, i, o, {
2546
2546
  ref: t
2547
2547
  }));
2548
2548
  });
2549
- function zo(e, t) {
2549
+ function Wo(e, t) {
2550
2550
  const n = Math.abs(t.top - e.y), o = Math.abs(t.bottom - e.y), i = Math.abs(t.right - e.x), r = Math.abs(t.left - e.x);
2551
2551
  switch (Math.min(n, o, i, r)) {
2552
2552
  case r:
@@ -2561,7 +2561,7 @@ function zo(e, t) {
2561
2561
  throw new Error("unreachable");
2562
2562
  }
2563
2563
  }
2564
- function Wo(e, t, n = 5) {
2564
+ function Vo(e, t, n = 5) {
2565
2565
  const o = [];
2566
2566
  switch (t) {
2567
2567
  case "top":
@@ -2603,7 +2603,7 @@ function Wo(e, t, n = 5) {
2603
2603
  }
2604
2604
  return o;
2605
2605
  }
2606
- function Vo(e) {
2606
+ function jo(e) {
2607
2607
  const { top: t, right: n, bottom: o, left: i } = e;
2608
2608
  return [
2609
2609
  {
@@ -2624,7 +2624,7 @@ function Vo(e) {
2624
2624
  }
2625
2625
  ];
2626
2626
  }
2627
- function jo(e, t) {
2627
+ function Uo(e, t) {
2628
2628
  const { x: n, y: o } = e;
2629
2629
  let i = !1;
2630
2630
  for (let r = 0, s = t.length - 1; r < t.length; s = r++) {
@@ -2633,7 +2633,7 @@ function jo(e, t) {
2633
2633
  }
2634
2634
  return i;
2635
2635
  }
2636
- function Uo(e) {
2636
+ function zo(e) {
2637
2637
  const t = e.slice();
2638
2638
  return t.sort((n, o) => n.x < o.x ? -1 : n.x > o.x ? 1 : n.y < o.y ? -1 : n.y > o.y ? 1 : 0), Go(t);
2639
2639
  }
@@ -2749,7 +2749,7 @@ const ti = /* @__PURE__ */ Qo(ei), ni = "_slideDownAndFade_1dyp8_1", ri = "_slid
2749
2749
  triggerElement: c,
2750
2750
  ...l
2751
2751
  }, d) => {
2752
- const [u, p] = z(!1), f = Le([
2752
+ const [u, p] = W(!1), f = Le([
2753
2753
  n,
2754
2754
  Q,
2755
2755
  {
@@ -2766,7 +2766,7 @@ const ti = /* @__PURE__ */ Qo(ei), ni = "_slideDownAndFade_1dyp8_1", ri = "_slid
2766
2766
  children: /* @__PURE__ */ I(Mt, { size: "md" })
2767
2767
  }
2768
2768
  );
2769
- return /* @__PURE__ */ I("div", { "data-testid": e, className: f, children: /* @__PURE__ */ I(Yo, { delayDuration: parseInt(Jn), children: /* @__PURE__ */ Ue(Xo, { open: u, onOpenChange: p, ...l, children: [
2769
+ return /* @__PURE__ */ I("div", { "data-testid": e, className: f, children: /* @__PURE__ */ I(Yo, { delayDuration: parseInt(Jn), children: /* @__PURE__ */ ze(Xo, { open: u, onOpenChange: p, ...l, children: [
2770
2770
  /* @__PURE__ */ I(
2771
2771
  qo,
2772
2772
  {
@@ -2777,7 +2777,7 @@ const ti = /* @__PURE__ */ Qo(ei), ni = "_slideDownAndFade_1dyp8_1", ri = "_slid
2777
2777
  children: se.count(c) === 0 ? h : c
2778
2778
  }
2779
2779
  ),
2780
- /* @__PURE__ */ I(Ko, { children: /* @__PURE__ */ Ue(
2780
+ /* @__PURE__ */ I(Ko, { children: /* @__PURE__ */ ze(
2781
2781
  Zo,
2782
2782
  {
2783
2783
  side: r,
@@ -2797,7 +2797,7 @@ const ti = /* @__PURE__ */ Qo(ei), ni = "_slideDownAndFade_1dyp8_1", ri = "_slid
2797
2797
  ie[`${Q}__paragraph`],
2798
2798
  ie[`${Q}__paragraph--${i}`]
2799
2799
  ]),
2800
- variant: Ft.PARAGRAPH100,
2800
+ variant: kt.PARAGRAPH100,
2801
2801
  "data-testid": `${e}-paragraph`,
2802
2802
  children: t
2803
2803
  }