import * as f from "react";
import { useLayoutEffect as fn } from "react";
import { i as re, g as Ae, u as ee, P as te, b as X, j as dn, c as gt, d as pn, a as hn, h as mn, R as gn, S as yn, y as vn } from "./index.DaRbhbpm.js";
import { jsx as R, jsxs as wn } from "react/jsx-runtime";
import * as yt from "react-dom";
import xn from "react-dom";
var Cn = f.useId || (() => {
}), bn = 0;
function En(e) {
  const [t, n] = f.useState(Cn());
  return re(() => {
    n((o) => o ?? String(bn++));
  }, [e]), t ? `radix-${t}` : "";
}
function An(e, t = globalThis == null ? void 0 : globalThis.document) {
  const n = Ae(e);
  f.useEffect(() => {
    const o = (r) => {
      r.key === "Escape" && n(r);
    };
    return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
  }, [n, t]);
}
var Pn = "DismissableLayer", ke = "dismissableLayer.update", Rn = "dismissableLayer.pointerDownOutside", Tn = "dismissableLayer.focusOutside", it, vt = f.createContext({
  layers: /* @__PURE__ */ new Set(),
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
  branches: /* @__PURE__ */ new Set()
}), wt = f.forwardRef(
  (e, t) => {
    const {
      disableOutsidePointerEvents: n = !1,
      onEscapeKeyDown: o,
      onPointerDownOutside: r,
      onFocusOutside: i,
      onInteractOutside: s,
      onDismiss: c,
      ...l
    } = e, a = f.useContext(vt), [u, d] = f.useState(null), h = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = f.useState({}), m = ee(t, (E) => d(E)), g = Array.from(a.layers), [y] = [...a.layersWithOutsidePointerEventsDisabled].slice(-1), v = g.indexOf(y), w = u ? g.indexOf(u) : -1, b = a.layersWithOutsidePointerEventsDisabled.size > 0, x = w >= v, C = Dn((E) => {
      const T = E.target, k = [...a.branches].some((O) => O.contains(T));
      !x || k || (r == null || r(E), s == null || s(E), E.defaultPrevented || c == null || c());
    }, h), A = Ln((E) => {
      const T = E.target;
      [...a.branches].some((O) => O.contains(T)) || (i == null || i(E), s == null || s(E), E.defaultPrevented || c == null || c());
    }, h);
    return An((E) => {
      w === a.layers.size - 1 && (o == null || o(E), !E.defaultPrevented && c && (E.preventDefault(), c()));
    }, h), f.useEffect(() => {
      if (u)
        return n && (a.layersWithOutsidePointerEventsDisabled.size === 0 && (it = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), a.layersWithOutsidePointerEventsDisabled.add(u)), a.layers.add(u), st(), () => {
          n && a.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = it);
        };
    }, [u, h, n, a]), f.useEffect(() => () => {
      u && (a.layers.delete(u), a.layersWithOutsidePointerEventsDisabled.delete(u), st());
    }, [u, a]), f.useEffect(() => {
      const E = () => p({});
      return document.addEventListener(ke, E), () => document.removeEventListener(ke, E);
    }, []), /* @__PURE__ */ R(
      te.div,
      {
        ...l,
        ref: m,
        style: {
          pointerEvents: b ? x ? "auto" : "none" : void 0,
          ...e.style
        },
        onFocusCapture: X(e.onFocusCapture, A.onFocusCapture),
        onBlurCapture: X(e.onBlurCapture, A.onBlurCapture),
        onPointerDownCapture: X(
          e.onPointerDownCapture,
          C.onPointerDownCapture
        )
      }
    );
  }
);
wt.displayName = Pn;
var On = "DismissableLayerBranch", Sn = f.forwardRef((e, t) => {
  const n = f.useContext(vt), o = f.useRef(null), r = ee(t, o);
  return f.useEffect(() => {
    const i = o.current;
    if (i)
      return n.branches.add(i), () => {
        n.branches.delete(i);
      };
  }, [n.branches]), /* @__PURE__ */ R(te.div, { ...e, ref: r });
});
Sn.displayName = On;
function Dn(e, t = globalThis == null ? void 0 : globalThis.document) {
  const n = Ae(e), o = f.useRef(!1), r = f.useRef(() => {
  });
  return f.useEffect(() => {
    const i = (c) => {
      if (c.target && !o.current) {
        let l = function() {
          xt(
            Rn,
            n,
            a,
            { discrete: !0 }
          );
        };
        const a = { originalEvent: c };
        c.pointerType === "touch" ? (t.removeEventListener("click", r.current), r.current = l, t.addEventListener("click", r.current, { once: !0 })) : l();
      } else
        t.removeEventListener("click", r.current);
      o.current = !1;
    }, s = window.setTimeout(() => {
      t.addEventListener("pointerdown", i);
    }, 0);
    return () => {
      window.clearTimeout(s), t.removeEventListener("pointerdown", i), t.removeEventListener("click", r.current);
    };
  }, [t, n]), {
    // ensures we check React component tree (not just DOM tree)
    onPointerDownCapture: () => o.current = !0
  };
}
function Ln(e, t = globalThis == null ? void 0 : globalThis.document) {
  const n = Ae(e), o = f.useRef(!1);
  return f.useEffect(() => {
    const r = (i) => {
      i.target && !o.current && xt(Tn, n, { originalEvent: i }, {
        discrete: !1
      });
    };
    return t.addEventListener("focusin", r), () => t.removeEventListener("focusin", r);
  }, [t, n]), {
    onFocusCapture: () => o.current = !0,
    onBlurCapture: () => o.current = !1
  };
}
function st() {
  const e = new CustomEvent(ke);
  document.dispatchEvent(e);
}
function xt(e, t, n, { discrete: o }) {
  const r = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
  t && r.addEventListener(e, t, { once: !0 }), o ? dn(r, i) : r.dispatchEvent(i);
}
var Nn = "Portal", Ct = f.forwardRef((e, t) => {
  var c;
  const { container: n, ...o } = e, [r, i] = f.useState(!1);
  re(() => i(!0), []);
  const s = n || r && ((c = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : c.body);
  return s ? xn.createPortal(/* @__PURE__ */ R(te.div, { ...o, ref: t }), s) : null;
});
Ct.displayName = Nn;
function kn(e, t) {
  return f.useReducer((n, o) => t[n][o] ?? n, e);
}
var He = (e) => {
  const { present: t, children: n } = e, o = Mn(t), r = typeof n == "function" ? n({ present: o.isPresent }) : f.Children.only(n), i = ee(o.ref, _n(r));
  return typeof n == "function" || o.isPresent ? f.cloneElement(r, { ref: i }) : null;
};
He.displayName = "Presence";
function Mn(e) {
  const [t, n] = f.useState(), o = f.useRef({}), r = f.useRef(e), i = f.useRef("none"), s = e ? "mounted" : "unmounted", [c, l] = kn(s, {
    mounted: {
      UNMOUNT: "unmounted",
      ANIMATION_OUT: "unmountSuspended"
    },
    unmountSuspended: {
      MOUNT: "mounted",
      ANIMATION_END: "unmounted"
    },
    unmounted: {
      MOUNT: "mounted"
    }
  });
  return f.useEffect(() => {
    const a = ge(o.current);
    i.current = c === "mounted" ? a : "none";
  }, [c]), re(() => {
    const a = o.current, u = r.current;
    if (u !== e) {
      const h = i.current, p = ge(a);
      e ? l("MOUNT") : p === "none" || (a == null ? void 0 : a.display) === "none" ? l("UNMOUNT") : l(u && h !== p ? "ANIMATION_OUT" : "UNMOUNT"), r.current = e;
    }
  }, [e, l]), re(() => {
    if (t) {
      const a = (d) => {
        const p = ge(o.current).includes(d.animationName);
        d.target === t && p && yt.flushSync(() => l("ANIMATION_END"));
      }, u = (d) => {
        d.target === t && (i.current = ge(o.current));
      };
      return t.addEventListener("animationstart", u), t.addEventListener("animationcancel", a), t.addEventListener("animationend", a), () => {
        t.removeEventListener("animationstart", u), t.removeEventListener("animationcancel", a), t.removeEventListener("animationend", a);
      };
    } else
      l("ANIMATION_END");
  }, [t, l]), {
    isPresent: ["mounted", "unmountSuspended"].includes(c),
    ref: f.useCallback((a) => {
      a && (o.current = getComputedStyle(a)), n(a);
    }, [])
  };
}
function ge(e) {
  return (e == null ? void 0 : e.animationName) || "none";
}
function _n(e) {
  var o, r;
  let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning;
  return n ? e.ref : (t = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
}
const bt = ["top", "right", "bottom", "left"], at = ["start", "end"], mr = /* @__PURE__ */ bt.reduce((e, t) => e.concat(t, t + "-" + at[0], t + "-" + at[1]), []), Z = Math.min, H = Math.max, we = Math.round, ye = Math.floor, j = (e) => ({
  x: e,
  y: e
}), Bn = {
  left: "right",
  right: "left",
  bottom: "top",
  top: "bottom"
}, In = {
  start: "end",
  end: "start"
};
function Me(e, t, n) {
  return H(e, Z(t, n));
}
function q(e, t) {
  return typeof e == "function" ? e(t) : e;
}
function K(e) {
  return e.split("-")[0];
}
function ae(e) {
  return e.split("-")[1];
}
function We(e) {
  return e === "x" ? "y" : "x";
}
function $e(e) {
  return e === "y" ? "height" : "width";
}
function z(e) {
  return ["top", "bottom"].includes(K(e)) ? "y" : "x";
}
function Ue(e) {
  return We(z(e));
}
function Fn(e, t, n) {
  n === void 0 && (n = !1);
  const o = ae(e), r = Ue(e), i = $e(r);
  let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
  return t.reference[i] > t.floating[i] && (s = xe(s)), [s, xe(s)];
}
function Hn(e) {
  const t = xe(e);
  return [_e(e), t, _e(t)];
}
function _e(e) {
  return e.replace(/start|end/g, (t) => In[t]);
}
function Wn(e, t, n) {
  const o = ["left", "right"], r = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
  switch (e) {
    case "top":
    case "bottom":
      return n ? t ? r : o : t ? o : r;
    case "left":
    case "right":
      return t ? i : s;
    default:
      return [];
  }
}
function $n(e, t, n, o) {
  const r = ae(e);
  let i = Wn(K(e), n === "start", o);
  return r && (i = i.map((s) => s + "-" + r), t && (i = i.concat(i.map(_e)))), i;
}
function xe(e) {
  return e.replace(/left|right|bottom|top/g, (t) => Bn[t]);
}
function Un(e) {
  return {
    top: 0,
    right: 0,
    bottom: 0,
    left: 0,
    ...e
  };
}
function Et(e) {
  return typeof e != "number" ? Un(e) : {
    top: e,
    right: e,
    bottom: e,
    left: e
  };
}
function Ce(e) {
  const {
    x: t,
    y: n,
    width: o,
    height: r
  } = e;
  return {
    width: o,
    height: r,
    top: n,
    left: t,
    right: t + o,
    bottom: n + r,
    x: t,
    y: n
  };
}
function ct(e, t, n) {
  let {
    reference: o,
    floating: r
  } = e;
  const i = z(t), s = Ue(t), c = $e(s), l = K(t), a = i === "y", u = o.x + o.width / 2 - r.width / 2, d = o.y + o.height / 2 - r.height / 2, h = o[c] / 2 - r[c] / 2;
  let p;
  switch (l) {
    case "top":
      p = {
        x: u,
        y: o.y - r.height
      };
      break;
    case "bottom":
      p = {
        x: u,
        y: o.y + o.height
      };
      break;
    case "right":
      p = {
        x: o.x + o.width,
        y: d
      };
      break;
    case "left":
      p = {
        x: o.x - r.width,
        y: d
      };
      break;
    default:
      p = {
        x: o.x,
        y: o.y
      };
  }
  switch (ae(t)) {
    case "start":
      p[s] -= h * (n && a ? -1 : 1);
      break;
    case "end":
      p[s] += h * (n && a ? -1 : 1);
      break;
  }
  return p;
}
const Vn = async (e, t, n) => {
  const {
    placement: o = "bottom",
    strategy: r = "absolute",
    middleware: i = [],
    platform: s
  } = n, c = i.filter(Boolean), l = await (s.isRTL == null ? void 0 : s.isRTL(t));
  let a = await s.getElementRects({
    reference: e,
    floating: t,
    strategy: r
  }), {
    x: u,
    y: d
  } = ct(a, o, l), h = o, p = {}, m = 0;
  for (let g = 0; g < c.length; g++) {
    const {
      name: y,
      fn: v
    } = c[g], {
      x: w,
      y: b,
      data: x,
      reset: C
    } = await v({
      x: u,
      y: d,
      initialPlacement: o,
      placement: h,
      strategy: r,
      middlewareData: p,
      rects: a,
      platform: s,
      elements: {
        reference: e,
        floating: t
      }
    });
    u = w ?? u, d = b ?? d, p = {
      ...p,
      [y]: {
        ...p[y],
        ...x
      }
    }, C && m <= 50 && (m++, typeof C == "object" && (C.placement && (h = C.placement), C.rects && (a = C.rects === !0 ? await s.getElementRects({
      reference: e,
      floating: t,
      strategy: r
    }) : C.rects), {
      x: u,
      y: d
    } = ct(a, h, l)), g = -1);
  }
  return {
    x: u,
    y: d,
    placement: h,
    strategy: r,
    middlewareData: p
  };
};
async function ue(e, t) {
  var n;
  t === void 0 && (t = {});
  const {
    x: o,
    y: r,
    platform: i,
    rects: s,
    elements: c,
    strategy: l
  } = e, {
    boundary: a = "clippingAncestors",
    rootBoundary: u = "viewport",
    elementContext: d = "floating",
    altBoundary: h = !1,
    padding: p = 0
  } = q(t, e), m = Et(p), y = c[h ? d === "floating" ? "reference" : "floating" : d], v = Ce(await i.getClippingRect({
    element: (n = await (i.isElement == null ? void 0 : i.isElement(y))) == null || n ? y : y.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
    boundary: a,
    rootBoundary: u,
    strategy: l
  })), w = d === "floating" ? {
    x: o,
    y: r,
    width: s.floating.width,
    height: s.floating.height
  } : s.reference, b = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c.floating)), x = await (i.isElement == null ? void 0 : i.isElement(b)) ? await (i.getScale == null ? void 0 : i.getScale(b)) || {
    x: 1,
    y: 1
  } : {
    x: 1,
    y: 1
  }, C = Ce(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
    elements: c,
    rect: w,
    offsetParent: b,
    strategy: l
  }) : w);
  return {
    top: (v.top - C.top + m.top) / x.y,
    bottom: (C.bottom - v.bottom + m.bottom) / x.y,
    left: (v.left - C.left + m.left) / x.x,
    right: (C.right - v.right + m.right) / x.x
  };
}
const zn = (e) => ({
  name: "arrow",
  options: e,
  async fn(t) {
    const {
      x: n,
      y: o,
      placement: r,
      rects: i,
      platform: s,
      elements: c,
      middlewareData: l
    } = t, {
      element: a,
      padding: u = 0
    } = q(e, t) || {};
    if (a == null)
      return {};
    const d = Et(u), h = {
      x: n,
      y: o
    }, p = Ue(r), m = $e(p), g = await s.getDimensions(a), y = p === "y", v = y ? "top" : "left", w = y ? "bottom" : "right", b = y ? "clientHeight" : "clientWidth", x = i.reference[m] + i.reference[p] - h[p] - i.floating[m], C = h[p] - i.reference[p], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a));
    let E = A ? A[b] : 0;
    (!E || !await (s.isElement == null ? void 0 : s.isElement(A))) && (E = c.floating[b] || i.floating[m]);
    const T = x / 2 - C / 2, k = E / 2 - g[m] / 2 - 1, O = Z(d[v], k), _ = Z(d[w], k), B = O, D = E - g[m] - _, S = E / 2 - g[m] / 2 + T, I = Me(B, S, D), L = !l.arrow && ae(r) != null && S !== I && i.reference[m] / 2 - (S < B ? O : _) - g[m] / 2 < 0, N = L ? S < B ? S - B : S - D : 0;
    return {
      [p]: h[p] + N,
      data: {
        [p]: I,
        centerOffset: S - I - N,
        ...L && {
          alignmentOffset: N
        }
      },
      reset: L
    };
  }
}), jn = function(e) {
  return e === void 0 && (e = {}), {
    name: "flip",
    options: e,
    async fn(t) {
      var n, o;
      const {
        placement: r,
        middlewareData: i,
        rects: s,
        initialPlacement: c,
        platform: l,
        elements: a
      } = t, {
        mainAxis: u = !0,
        crossAxis: d = !0,
        fallbackPlacements: h,
        fallbackStrategy: p = "bestFit",
        fallbackAxisSideDirection: m = "none",
        flipAlignment: g = !0,
        ...y
      } = q(e, t);
      if ((n = i.arrow) != null && n.alignmentOffset)
        return {};
      const v = K(r), w = z(c), b = K(c) === c, x = await (l.isRTL == null ? void 0 : l.isRTL(a.floating)), C = h || (b || !g ? [xe(c)] : Hn(c)), A = m !== "none";
      !h && A && C.push(...$n(c, g, m, x));
      const E = [c, ...C], T = await ue(t, y), k = [];
      let O = ((o = i.flip) == null ? void 0 : o.overflows) || [];
      if (u && k.push(T[v]), d) {
        const S = Fn(r, s, x);
        k.push(T[S[0]], T[S[1]]);
      }
      if (O = [...O, {
        placement: r,
        overflows: k
      }], !k.every((S) => S <= 0)) {
        var _, B;
        const S = (((_ = i.flip) == null ? void 0 : _.index) || 0) + 1, I = E[S];
        if (I && (!(d === "alignment" ? w !== z(I) : !1) || // We leave the current main axis only if every placement on that axis
        // overflows the main axis.
        O.every((P) => P.overflows[0] > 0 && z(P.placement) === w)))
          return {
            data: {
              index: S,
              overflows: O
            },
            reset: {
              placement: I
            }
          };
        let L = (B = O.filter((N) => N.overflows[0] <= 0).sort((N, P) => N.overflows[1] - P.overflows[1])[0]) == null ? void 0 : B.placement;
        if (!L)
          switch (p) {
            case "bestFit": {
              var D;
              const N = (D = O.filter((P) => {
                if (A) {
                  const M = z(P.placement);
                  return M === w || // Create a bias to the `y` side axis due to horizontal
                  // reading directions favoring greater width.
                  M === "y";
                }
                return !0;
              }).map((P) => [P.placement, P.overflows.filter((M) => M > 0).reduce((M, V) => M + V, 0)]).sort((P, M) => P[1] - M[1])[0]) == null ? void 0 : D[0];
              N && (L = N);
              break;
            }
            case "initialPlacement":
              L = c;
              break;
          }
        if (r !== L)
          return {
            reset: {
              placement: L
            }
          };
      }
      return {};
    }
  };
};
function lt(e, t) {
  return {
    top: e.top - t.height,
    right: e.right - t.width,
    bottom: e.bottom - t.height,
    left: e.left - t.width
  };
}
function ut(e) {
  return bt.some((t) => e[t] >= 0);
}
const Yn = function(e) {
  return e === void 0 && (e = {}), {
    name: "hide",
    options: e,
    async fn(t) {
      const {
        rects: n
      } = t, {
        strategy: o = "referenceHidden",
        ...r
      } = q(e, t);
      switch (o) {
        case "referenceHidden": {
          const i = await ue(t, {
            ...r,
            elementContext: "reference"
          }), s = lt(i, n.reference);
          return {
            data: {
              referenceHiddenOffsets: s,
              referenceHidden: ut(s)
            }
          };
        }
        case "escaped": {
          const i = await ue(t, {
            ...r,
            altBoundary: !0
          }), s = lt(i, n.floating);
          return {
            data: {
              escapedOffsets: s,
              escaped: ut(s)
            }
          };
        }
        default:
          return {};
      }
    }
  };
};
async function Gn(e, t) {
  const {
    placement: n,
    platform: o,
    elements: r
  } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = K(n), c = ae(n), l = z(n) === "y", a = ["left", "top"].includes(s) ? -1 : 1, u = i && l ? -1 : 1, d = q(t, e);
  let {
    mainAxis: h,
    crossAxis: p,
    alignmentAxis: m
  } = typeof d == "number" ? {
    mainAxis: d,
    crossAxis: 0,
    alignmentAxis: null
  } : {
    mainAxis: d.mainAxis || 0,
    crossAxis: d.crossAxis || 0,
    alignmentAxis: d.alignmentAxis
  };
  return c && typeof m == "number" && (p = c === "end" ? m * -1 : m), l ? {
    x: p * u,
    y: h * a
  } : {
    x: h * a,
    y: p * u
  };
}
const Xn = function(e) {
  return e === void 0 && (e = 0), {
    name: "offset",
    options: e,
    async fn(t) {
      var n, o;
      const {
        x: r,
        y: i,
        placement: s,
        middlewareData: c
      } = t, l = await Gn(t, e);
      return s === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
        x: r + l.x,
        y: i + l.y,
        data: {
          ...l,
          placement: s
        }
      };
    }
  };
}, qn = function(e) {
  return e === void 0 && (e = {}), {
    name: "shift",
    options: e,
    async fn(t) {
      const {
        x: n,
        y: o,
        placement: r
      } = t, {
        mainAxis: i = !0,
        crossAxis: s = !1,
        limiter: c = {
          fn: (y) => {
            let {
              x: v,
              y: w
            } = y;
            return {
              x: v,
              y: w
            };
          }
        },
        ...l
      } = q(e, t), a = {
        x: n,
        y: o
      }, u = await ue(t, l), d = z(K(r)), h = We(d);
      let p = a[h], m = a[d];
      if (i) {
        const y = h === "y" ? "top" : "left", v = h === "y" ? "bottom" : "right", w = p + u[y], b = p - u[v];
        p = Me(w, p, b);
      }
      if (s) {
        const y = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", w = m + u[y], b = m - u[v];
        m = Me(w, m, b);
      }
      const g = c.fn({
        ...t,
        [h]: p,
        [d]: m
      });
      return {
        ...g,
        data: {
          x: g.x - n,
          y: g.y - o,
          enabled: {
            [h]: i,
            [d]: s
          }
        }
      };
    }
  };
}, Kn = function(e) {
  return e === void 0 && (e = {}), {
    options: e,
    fn(t) {
      const {
        x: n,
        y: o,
        placement: r,
        rects: i,
        middlewareData: s
      } = t, {
        offset: c = 0,
        mainAxis: l = !0,
        crossAxis: a = !0
      } = q(e, t), u = {
        x: n,
        y: o
      }, d = z(r), h = We(d);
      let p = u[h], m = u[d];
      const g = q(c, t), y = typeof g == "number" ? {
        mainAxis: g,
        crossAxis: 0
      } : {
        mainAxis: 0,
        crossAxis: 0,
        ...g
      };
      if (l) {
        const b = h === "y" ? "height" : "width", x = i.reference[h] - i.floating[b] + y.mainAxis, C = i.reference[h] + i.reference[b] - y.mainAxis;
        p < x ? p = x : p > C && (p = C);
      }
      if (a) {
        var v, w;
        const b = h === "y" ? "width" : "height", x = ["top", "left"].includes(K(r)), C = i.reference[d] - i.floating[b] + (x && ((v = s.offset) == null ? void 0 : v[d]) || 0) + (x ? 0 : y.crossAxis), A = i.reference[d] + i.reference[b] + (x ? 0 : ((w = s.offset) == null ? void 0 : w[d]) || 0) - (x ? y.crossAxis : 0);
        m < C ? m = C : m > A && (m = A);
      }
      return {
        [h]: p,
        [d]: m
      };
    }
  };
}, Zn = function(e) {
  return e === void 0 && (e = {}), {
    name: "size",
    options: e,
    async fn(t) {
      var n, o;
      const {
        placement: r,
        rects: i,
        platform: s,
        elements: c
      } = t, {
        apply: l = () => {
        },
        ...a
      } = q(e, t), u = await ue(t, a), d = K(r), h = ae(r), p = z(r) === "y", {
        width: m,
        height: g
      } = i.floating;
      let y, v;
      d === "top" || d === "bottom" ? (y = d, v = h === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (v = d, y = h === "end" ? "top" : "bottom");
      const w = g - u.top - u.bottom, b = m - u.left - u.right, x = Z(g - u[y], w), C = Z(m - u[v], b), A = !t.middlewareData.shift;
      let E = x, T = C;
      if ((n = t.middlewareData.shift) != null && n.enabled.x && (T = b), (o = t.middlewareData.shift) != null && o.enabled.y && (E = w), A && !h) {
        const O = H(u.left, 0), _ = H(u.right, 0), B = H(u.top, 0), D = H(u.bottom, 0);
        p ? T = m - 2 * (O !== 0 || _ !== 0 ? O + _ : H(u.left, u.right)) : E = g - 2 * (B !== 0 || D !== 0 ? B + D : H(u.top, u.bottom));
      }
      await l({
        ...t,
        availableWidth: T,
        availableHeight: E
      });
      const k = await s.getDimensions(c.floating);
      return m !== k.width || g !== k.height ? {
        reset: {
          rects: !0
        }
      } : {};
    }
  };
};
function Pe() {
  return typeof window < "u";
}
function ce(e) {
  return At(e) ? (e.nodeName || "").toLowerCase() : "#document";
}
function W(e) {
  var t;
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
}
function G(e) {
  var t;
  return (t = (At(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
}
function At(e) {
  return Pe() ? e instanceof Node || e instanceof W(e).Node : !1;
}
function $(e) {
  return Pe() ? e instanceof Element || e instanceof W(e).Element : !1;
}
function Y(e) {
  return Pe() ? e instanceof HTMLElement || e instanceof W(e).HTMLElement : !1;
}
function ft(e) {
  return !Pe() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof W(e).ShadowRoot;
}
function de(e) {
  const {
    overflow: t,
    overflowX: n,
    overflowY: o,
    display: r
  } = U(e);
  return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(r);
}
function Jn(e) {
  return ["table", "td", "th"].includes(ce(e));
}
function Re(e) {
  return [":popover-open", ":modal"].some((t) => {
    try {
      return e.matches(t);
    } catch {
      return !1;
    }
  });
}
function Ve(e) {
  const t = ze(), n = $(e) ? U(e) : e;
  return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => n[o] ? n[o] !== "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((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
}
function Qn(e) {
  let t = J(e);
  for (; Y(t) && !ie(t); ) {
    if (Ve(t))
      return t;
    if (Re(t))
      return null;
    t = J(t);
  }
  return null;
}
function ze() {
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
}
function ie(e) {
  return ["html", "body", "#document"].includes(ce(e));
}
function U(e) {
  return W(e).getComputedStyle(e);
}
function Te(e) {
  return $(e) ? {
    scrollLeft: e.scrollLeft,
    scrollTop: e.scrollTop
  } : {
    scrollLeft: e.scrollX,
    scrollTop: e.scrollY
  };
}
function J(e) {
  if (ce(e) === "html")
    return e;
  const t = (
    // Step into the shadow DOM of the parent of a slotted node.
    e.assignedSlot || // DOM Element detected.
    e.parentNode || // ShadowRoot detected.
    ft(e) && e.host || // Fallback.
    G(e)
  );
  return ft(t) ? t.host : t;
}
function Pt(e) {
  const t = J(e);
  return ie(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && de(t) ? t : Pt(t);
}
function fe(e, t, n) {
  var o;
  t === void 0 && (t = []), n === void 0 && (n = !0);
  const r = Pt(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), s = W(r);
  if (i) {
    const c = Be(s);
    return t.concat(s, s.visualViewport || [], de(r) ? r : [], c && n ? fe(c) : []);
  }
  return t.concat(r, fe(r, [], n));
}
function Be(e) {
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
}
function Rt(e) {
  const t = U(e);
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
  const r = Y(e), i = r ? e.offsetWidth : n, s = r ? e.offsetHeight : o, c = we(n) !== i || we(o) !== s;
  return c && (n = i, o = s), {
    width: n,
    height: o,
    $: c
  };
}
function je(e) {
  return $(e) ? e : e.contextElement;
}
function oe(e) {
  const t = je(e);
  if (!Y(t))
    return j(1);
  const n = t.getBoundingClientRect(), {
    width: o,
    height: r,
    $: i
  } = Rt(t);
  let s = (i ? we(n.width) : n.width) / o, c = (i ? we(n.height) : n.height) / r;
  return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
    x: s,
    y: c
  };
}
const eo = /* @__PURE__ */ j(0);
function Tt(e) {
  const t = W(e);
  return !ze() || !t.visualViewport ? eo : {
    x: t.visualViewport.offsetLeft,
    y: t.visualViewport.offsetTop
  };
}
function to(e, t, n) {
  return t === void 0 && (t = !1), !n || t && n !== W(e) ? !1 : t;
}
function Q(e, t, n, o) {
  t === void 0 && (t = !1), n === void 0 && (n = !1);
  const r = e.getBoundingClientRect(), i = je(e);
  let s = j(1);
  t && (o ? $(o) && (s = oe(o)) : s = oe(e));
  const c = to(i, n, o) ? Tt(i) : j(0);
  let l = (r.left + c.x) / s.x, a = (r.top + c.y) / s.y, u = r.width / s.x, d = r.height / s.y;
  if (i) {
    const h = W(i), p = o && $(o) ? W(o) : o;
    let m = h, g = Be(m);
    for (; g && o && p !== m; ) {
      const y = oe(g), v = g.getBoundingClientRect(), w = U(g), b = v.left + (g.clientLeft + parseFloat(w.paddingLeft)) * y.x, x = v.top + (g.clientTop + parseFloat(w.paddingTop)) * y.y;
      l *= y.x, a *= y.y, u *= y.x, d *= y.y, l += b, a += x, m = W(g), g = Be(m);
    }
  }
  return Ce({
    width: u,
    height: d,
    x: l,
    y: a
  });
}
function Ye(e, t) {
  const n = Te(e).scrollLeft;
  return t ? t.left + n : Q(G(e)).left + n;
}
function Ot(e, t, n) {
  n === void 0 && (n = !1);
  const o = e.getBoundingClientRect(), r = o.left + t.scrollLeft - (n ? 0 : (
    // RTL <body> scrollbar.
    Ye(e, o)
  )), i = o.top + t.scrollTop;
  return {
    x: r,
    y: i
  };
}
function no(e) {
  let {
    elements: t,
    rect: n,
    offsetParent: o,
    strategy: r
  } = e;
  const i = r === "fixed", s = G(o), c = t ? Re(t.floating) : !1;
  if (o === s || c && i)
    return n;
  let l = {
    scrollLeft: 0,
    scrollTop: 0
  }, a = j(1);
  const u = j(0), d = Y(o);
  if ((d || !d && !i) && ((ce(o) !== "body" || de(s)) && (l = Te(o)), Y(o))) {
    const p = Q(o);
    a = oe(o), u.x = p.x + o.clientLeft, u.y = p.y + o.clientTop;
  }
  const h = s && !d && !i ? Ot(s, l, !0) : j(0);
  return {
    width: n.width * a.x,
    height: n.height * a.y,
    x: n.x * a.x - l.scrollLeft * a.x + u.x + h.x,
    y: n.y * a.y - l.scrollTop * a.y + u.y + h.y
  };
}
function oo(e) {
  return Array.from(e.getClientRects());
}
function ro(e) {
  const t = G(e), n = Te(e), o = e.ownerDocument.body, r = H(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = H(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
  let s = -n.scrollLeft + Ye(e);
  const c = -n.scrollTop;
  return U(o).direction === "rtl" && (s += H(t.clientWidth, o.clientWidth) - r), {
    width: r,
    height: i,
    x: s,
    y: c
  };
}
function io(e, t) {
  const n = W(e), o = G(e), r = n.visualViewport;
  let i = o.clientWidth, s = o.clientHeight, c = 0, l = 0;
  if (r) {
    i = r.width, s = r.height;
    const a = ze();
    (!a || a && t === "fixed") && (c = r.offsetLeft, l = r.offsetTop);
  }
  return {
    width: i,
    height: s,
    x: c,
    y: l
  };
}
function so(e, t) {
  const n = Q(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = Y(e) ? oe(e) : j(1), s = e.clientWidth * i.x, c = e.clientHeight * i.y, l = r * i.x, a = o * i.y;
  return {
    width: s,
    height: c,
    x: l,
    y: a
  };
}
function dt(e, t, n) {
  let o;
  if (t === "viewport")
    o = io(e, n);
  else if (t === "document")
    o = ro(G(e));
  else if ($(t))
    o = so(t, n);
  else {
    const r = Tt(e);
    o = {
      x: t.x - r.x,
      y: t.y - r.y,
      width: t.width,
      height: t.height
    };
  }
  return Ce(o);
}
function St(e, t) {
  const n = J(e);
  return n === t || !$(n) || ie(n) ? !1 : U(n).position === "fixed" || St(n, t);
}
function ao(e, t) {
  const n = t.get(e);
  if (n)
    return n;
  let o = fe(e, [], !1).filter((c) => $(c) && ce(c) !== "body"), r = null;
  const i = U(e).position === "fixed";
  let s = i ? J(e) : e;
  for (; $(s) && !ie(s); ) {
    const c = U(s), l = Ve(s);
    !l && c.position === "fixed" && (r = null), (i ? !l && !r : !l && c.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || de(s) && !l && St(e, s)) ? o = o.filter((u) => u !== s) : r = c, s = J(s);
  }
  return t.set(e, o), o;
}
function co(e) {
  let {
    element: t,
    boundary: n,
    rootBoundary: o,
    strategy: r
  } = e;
  const s = [...n === "clippingAncestors" ? Re(t) ? [] : ao(t, this._c) : [].concat(n), o], c = s[0], l = s.reduce((a, u) => {
    const d = dt(t, u, r);
    return a.top = H(d.top, a.top), a.right = Z(d.right, a.right), a.bottom = Z(d.bottom, a.bottom), a.left = H(d.left, a.left), a;
  }, dt(t, c, r));
  return {
    width: l.right - l.left,
    height: l.bottom - l.top,
    x: l.left,
    y: l.top
  };
}
function lo(e) {
  const {
    width: t,
    height: n
  } = Rt(e);
  return {
    width: t,
    height: n
  };
}
function uo(e, t, n) {
  const o = Y(t), r = G(t), i = n === "fixed", s = Q(e, !0, i, t);
  let c = {
    scrollLeft: 0,
    scrollTop: 0
  };
  const l = j(0);
  function a() {
    l.x = Ye(r);
  }
  if (o || !o && !i)
    if ((ce(t) !== "body" || de(r)) && (c = Te(t)), o) {
      const p = Q(t, !0, i, t);
      l.x = p.x + t.clientLeft, l.y = p.y + t.clientTop;
    } else r && a();
  i && !o && r && a();
  const u = r && !o && !i ? Ot(r, c) : j(0), d = s.left + c.scrollLeft - l.x - u.x, h = s.top + c.scrollTop - l.y - u.y;
  return {
    x: d,
    y: h,
    width: s.width,
    height: s.height
  };
}
function Le(e) {
  return U(e).position === "static";
}
function pt(e, t) {
  if (!Y(e) || U(e).position === "fixed")
    return null;
  if (t)
    return t(e);
  let n = e.offsetParent;
  return G(e) === n && (n = n.ownerDocument.body), n;
}
function Dt(e, t) {
  const n = W(e);
  if (Re(e))
    return n;
  if (!Y(e)) {
    let r = J(e);
    for (; r && !ie(r); ) {
      if ($(r) && !Le(r))
        return r;
      r = J(r);
    }
    return n;
  }
  let o = pt(e, t);
  for (; o && Jn(o) && Le(o); )
    o = pt(o, t);
  return o && ie(o) && Le(o) && !Ve(o) ? n : o || Qn(e) || n;
}
const fo = async function(e) {
  const t = this.getOffsetParent || Dt, n = this.getDimensions, o = await n(e.floating);
  return {
    reference: uo(e.reference, await t(e.floating), e.strategy),
    floating: {
      x: 0,
      y: 0,
      width: o.width,
      height: o.height
    }
  };
};
function po(e) {
  return U(e).direction === "rtl";
}
const ho = {
  convertOffsetParentRelativeRectToViewportRelativeRect: no,
  getDocumentElement: G,
  getClippingRect: co,
  getOffsetParent: Dt,
  getElementRects: fo,
  getClientRects: oo,
  getDimensions: lo,
  getScale: oe,
  isElement: $,
  isRTL: po
};
function Lt(e, t) {
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
}
function mo(e, t) {
  let n = null, o;
  const r = G(e);
  function i() {
    var c;
    clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
  }
  function s(c, l) {
    c === void 0 && (c = !1), l === void 0 && (l = 1), i();
    const a = e.getBoundingClientRect(), {
      left: u,
      top: d,
      width: h,
      height: p
    } = a;
    if (c || t(), !h || !p)
      return;
    const m = ye(d), g = ye(r.clientWidth - (u + h)), y = ye(r.clientHeight - (d + p)), v = ye(u), b = {
      rootMargin: -m + "px " + -g + "px " + -y + "px " + -v + "px",
      threshold: H(0, Z(1, l)) || 1
    };
    let x = !0;
    function C(A) {
      const E = A[0].intersectionRatio;
      if (E !== l) {
        if (!x)
          return s();
        E ? s(!1, E) : o = setTimeout(() => {
          s(!1, 1e-7);
        }, 1e3);
      }
      E === 1 && !Lt(a, e.getBoundingClientRect()) && s(), x = !1;
    }
    try {
      n = new IntersectionObserver(C, {
        ...b,
        // Handle <iframe>s
        root: r.ownerDocument
      });
    } catch {
      n = new IntersectionObserver(C, b);
    }
    n.observe(e);
  }
  return s(!0), i;
}
function go(e, t, n, o) {
  o === void 0 && (o = {});
  const {
    ancestorScroll: r = !0,
    ancestorResize: i = !0,
    elementResize: s = typeof ResizeObserver == "function",
    layoutShift: c = typeof IntersectionObserver == "function",
    animationFrame: l = !1
  } = o, a = je(e), u = r || i ? [...a ? fe(a) : [], ...fe(t)] : [];
  u.forEach((v) => {
    r && v.addEventListener("scroll", n, {
      passive: !0
    }), i && v.addEventListener("resize", n);
  });
  const d = a && c ? mo(a, n) : null;
  let h = -1, p = null;
  s && (p = new ResizeObserver((v) => {
    let [w] = v;
    w && w.target === a && p && (p.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
      var b;
      (b = p) == null || b.observe(t);
    })), n();
  }), a && !l && p.observe(a), p.observe(t));
  let m, g = l ? Q(e) : null;
  l && y();
  function y() {
    const v = Q(e);
    g && !Lt(g, v) && n(), g = v, m = requestAnimationFrame(y);
  }
  return n(), () => {
    var v;
    u.forEach((w) => {
      r && w.removeEventListener("scroll", n), i && w.removeEventListener("resize", n);
    }), d == null || d(), (v = p) == null || v.disconnect(), p = null, l && cancelAnimationFrame(m);
  };
}
const yo = Xn, vo = qn, wo = jn, xo = Zn, Co = Yn, ht = zn, bo = Kn, Eo = (e, t, n) => {
  const o = /* @__PURE__ */ new Map(), r = {
    platform: ho,
    ...n
  }, i = {
    ...r.platform,
    _c: o
  };
  return Vn(e, t, {
    ...r,
    platform: i
  });
};
var Ao = typeof document < "u", Po = function() {
}, ve = Ao ? fn : Po;
function be(e, t) {
  if (e === t)
    return !0;
  if (typeof e != typeof t)
    return !1;
  if (typeof e == "function" && e.toString() === t.toString())
    return !0;
  let n, o, r;
  if (e && t && typeof e == "object") {
    if (Array.isArray(e)) {
      if (n = e.length, n !== t.length) return !1;
      for (o = n; o-- !== 0; )
        if (!be(e[o], t[o]))
          return !1;
      return !0;
    }
    if (r = Object.keys(e), n = r.length, n !== Object.keys(t).length)
      return !1;
    for (o = n; o-- !== 0; )
      if (!{}.hasOwnProperty.call(t, r[o]))
        return !1;
    for (o = n; o-- !== 0; ) {
      const i = r[o];
      if (!(i === "_owner" && e.$$typeof) && !be(e[i], t[i]))
        return !1;
    }
    return !0;
  }
  return e !== e && t !== t;
}
function Nt(e) {
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
}
function mt(e, t) {
  const n = Nt(e);
  return Math.round(t * n) / n;
}
function Ne(e) {
  const t = f.useRef(e);
  return ve(() => {
    t.current = e;
  }), t;
}
function Ro(e) {
  e === void 0 && (e = {});
  const {
    placement: t = "bottom",
    strategy: n = "absolute",
    middleware: o = [],
    platform: r,
    elements: {
      reference: i,
      floating: s
    } = {},
    transform: c = !0,
    whileElementsMounted: l,
    open: a
  } = e, [u, d] = f.useState({
    x: 0,
    y: 0,
    strategy: n,
    placement: t,
    middlewareData: {},
    isPositioned: !1
  }), [h, p] = f.useState(o);
  be(h, o) || p(o);
  const [m, g] = f.useState(null), [y, v] = f.useState(null), w = f.useCallback((P) => {
    P !== A.current && (A.current = P, g(P));
  }, []), b = f.useCallback((P) => {
    P !== E.current && (E.current = P, v(P));
  }, []), x = i || m, C = s || y, A = f.useRef(null), E = f.useRef(null), T = f.useRef(u), k = l != null, O = Ne(l), _ = Ne(r), B = Ne(a), D = f.useCallback(() => {
    if (!A.current || !E.current)
      return;
    const P = {
      placement: t,
      strategy: n,
      middleware: h
    };
    _.current && (P.platform = _.current), Eo(A.current, E.current, P).then((M) => {
      const V = {
        ...M,
        // The floating element's position may be recomputed while it's closed
        // but still mounted (such as when transitioning out). To ensure
        // `isPositioned` will be `false` initially on the next open, avoid
        // setting it to `true` when `open === false` (must be specified).
        isPositioned: B.current !== !1
      };
      S.current && !be(T.current, V) && (T.current = V, yt.flushSync(() => {
        d(V);
      }));
    });
  }, [h, t, n, _, B]);
  ve(() => {
    a === !1 && T.current.isPositioned && (T.current.isPositioned = !1, d((P) => ({
      ...P,
      isPositioned: !1
    })));
  }, [a]);
  const S = f.useRef(!1);
  ve(() => (S.current = !0, () => {
    S.current = !1;
  }), []), ve(() => {
    if (x && (A.current = x), C && (E.current = C), x && C) {
      if (O.current)
        return O.current(x, C, D);
      D();
    }
  }, [x, C, D, O, k]);
  const I = f.useMemo(() => ({
    reference: A,
    floating: E,
    setReference: w,
    setFloating: b
  }), [w, b]), L = f.useMemo(() => ({
    reference: x,
    floating: C
  }), [x, C]), N = f.useMemo(() => {
    const P = {
      position: n,
      left: 0,
      top: 0
    };
    if (!L.floating)
      return P;
    const M = mt(L.floating, u.x), V = mt(L.floating, u.y);
    return c ? {
      ...P,
      transform: "translate(" + M + "px, " + V + "px)",
      ...Nt(L.floating) >= 1.5 && {
        willChange: "transform"
      }
    } : {
      position: n,
      left: M,
      top: V
    };
  }, [n, c, L.floating, u.x, u.y]);
  return f.useMemo(() => ({
    ...u,
    update: D,
    refs: I,
    elements: L,
    floatingStyles: N
  }), [u, D, I, L, N]);
}
const To = (e) => {
  function t(n) {
    return {}.hasOwnProperty.call(n, "current");
  }
  return {
    name: "arrow",
    options: e,
    fn(n) {
      const {
        element: o,
        padding: r
      } = typeof e == "function" ? e(n) : e;
      return o && t(o) ? o.current != null ? ht({
        element: o.current,
        padding: r
      }).fn(n) : {} : o ? ht({
        element: o,
        padding: r
      }).fn(n) : {};
    }
  };
}, Oo = (e, t) => ({
  ...yo(e),
  options: [e, t]
}), So = (e, t) => ({
  ...vo(e),
  options: [e, t]
}), Do = (e, t) => ({
  ...bo(e),
  options: [e, t]
}), Lo = (e, t) => ({
  ...wo(e),
  options: [e, t]
}), No = (e, t) => ({
  ...xo(e),
  options: [e, t]
}), ko = (e, t) => ({
  ...Co(e),
  options: [e, t]
}), Mo = (e, t) => ({
  ...To(e),
  options: [e, t]
});
var _o = "Arrow", kt = f.forwardRef((e, t) => {
  const { children: n, width: o = 10, height: r = 5, ...i } = e;
  return /* @__PURE__ */ R(
    te.svg,
    {
      ...i,
      ref: t,
      width: o,
      height: r,
      viewBox: "0 0 30 10",
      preserveAspectRatio: "none",
      children: e.asChild ? n : /* @__PURE__ */ R("polygon", { points: "0,0 30,0 15,10" })
    }
  );
});
kt.displayName = _o;
var Bo = kt, Ge = "Popper", [Mt, _t] = gt(Ge), [Io, Bt] = Mt(Ge), It = (e) => {
  const { __scopePopper: t, children: n } = e, [o, r] = f.useState(null);
  return /* @__PURE__ */ R(Io, { scope: t, anchor: o, onAnchorChange: r, children: n });
};
It.displayName = Ge;
var Ft = "PopperAnchor", Ht = f.forwardRef(
  (e, t) => {
    const { __scopePopper: n, virtualRef: o, ...r } = e, i = Bt(Ft, n), s = f.useRef(null), c = ee(t, s);
    return f.useEffect(() => {
      i.onAnchorChange((o == null ? void 0 : o.current) || s.current);
    }), o ? null : /* @__PURE__ */ R(te.div, { ...r, ref: c });
  }
);
Ht.displayName = Ft;
var Xe = "PopperContent", [Fo, Ho] = Mt(Xe), Wt = f.forwardRef(
  (e, t) => {
    var Je, Qe, et, tt, nt, ot;
    const {
      __scopePopper: n,
      side: o = "bottom",
      sideOffset: r = 0,
      align: i = "center",
      alignOffset: s = 0,
      arrowPadding: c = 0,
      avoidCollisions: l = !0,
      collisionBoundary: a = [],
      collisionPadding: u = 0,
      sticky: d = "partial",
      hideWhenDetached: h = !1,
      updatePositionStrategy: p = "optimized",
      onPlaced: m,
      ...g
    } = e, y = Bt(Xe, n), [v, w] = f.useState(null), b = ee(t, (le) => w(le)), [x, C] = f.useState(null), A = pn(x), E = (A == null ? void 0 : A.width) ?? 0, T = (A == null ? void 0 : A.height) ?? 0, k = o + (i !== "center" ? "-" + i : ""), O = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, _ = Array.isArray(a) ? a : [a], B = _.length > 0, D = {
      padding: O,
      boundary: _.filter($o),
      // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
      altBoundary: B
    }, { refs: S, floatingStyles: I, placement: L, isPositioned: N, middlewareData: P } = Ro({
      // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
      strategy: "fixed",
      placement: k,
      whileElementsMounted: (...le) => go(...le, {
        animationFrame: p === "always"
      }),
      elements: {
        reference: y.anchor
      },
      middleware: [
        Oo({ mainAxis: r + T, alignmentAxis: s }),
        l && So({
          mainAxis: !0,
          crossAxis: !1,
          limiter: d === "partial" ? Do() : void 0,
          ...D
        }),
        l && Lo({ ...D }),
        No({
          ...D,
          apply: ({ elements: le, rects: rt, availableWidth: an, availableHeight: cn }) => {
            const { width: ln, height: un } = rt.reference, me = le.floating.style;
            me.setProperty("--radix-popper-available-width", `${an}px`), me.setProperty("--radix-popper-available-height", `${cn}px`), me.setProperty("--radix-popper-anchor-width", `${ln}px`), me.setProperty("--radix-popper-anchor-height", `${un}px`);
          }
        }),
        x && Mo({ element: x, padding: c }),
        Uo({ arrowWidth: E, arrowHeight: T }),
        h && ko({ strategy: "referenceHidden", ...D })
      ]
    }), [M, V] = Vt(L), he = Ae(m);
    re(() => {
      N && (he == null || he());
    }, [N, he]);
    const tn = (Je = P.arrow) == null ? void 0 : Je.x, nn = (Qe = P.arrow) == null ? void 0 : Qe.y, on = ((et = P.arrow) == null ? void 0 : et.centerOffset) !== 0, [rn, sn] = f.useState();
    return re(() => {
      v && sn(window.getComputedStyle(v).zIndex);
    }, [v]), /* @__PURE__ */ R(
      "div",
      {
        ref: S.setFloating,
        "data-radix-popper-content-wrapper": "",
        style: {
          ...I,
          transform: N ? I.transform : "translate(0, -200%)",
          // keep off the page when measuring
          minWidth: "max-content",
          zIndex: rn,
          "--radix-popper-transform-origin": [
            (tt = P.transformOrigin) == null ? void 0 : tt.x,
            (nt = P.transformOrigin) == null ? void 0 : nt.y
          ].join(" "),
          // hide the content if using the hide middleware and should be hidden
          // set visibility to hidden and disable pointer events so the UI behaves
          // as if the PopperContent isn't there at all
          ...((ot = P.hide) == null ? void 0 : ot.referenceHidden) && {
            visibility: "hidden",
            pointerEvents: "none"
          }
        },
        dir: e.dir,
        children: /* @__PURE__ */ R(
          Fo,
          {
            scope: n,
            placedSide: M,
            onArrowChange: C,
            arrowX: tn,
            arrowY: nn,
            shouldHideArrow: on,
            children: /* @__PURE__ */ R(
              te.div,
              {
                "data-side": M,
                "data-align": V,
                ...g,
                ref: b,
                style: {
                  ...g.style,
                  // if the PopperContent hasn't been placed yet (not all measurements done)
                  // we prevent animations so that users's animation don't kick in too early referring wrong sides
                  animation: N ? void 0 : "none"
                }
              }
            )
          }
        )
      }
    );
  }
);
Wt.displayName = Xe;
var $t = "PopperArrow", Wo = {
  top: "bottom",
  right: "left",
  bottom: "top",
  left: "right"
}, Ut = f.forwardRef(function(t, n) {
  const { __scopePopper: o, ...r } = t, i = Ho($t, o), s = Wo[i.placedSide];
  return (
    // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
    // doesn't report size as we'd expect on SVG elements.
    // it reports their bounding box which is effectively the largest path inside the SVG.
    /* @__PURE__ */ R(
      "span",
      {
        ref: i.onArrowChange,
        style: {
          position: "absolute",
          left: i.arrowX,
          top: i.arrowY,
          [s]: 0,
          transformOrigin: {
            top: "",
            right: "0 0",
            bottom: "center 0",
            left: "100% 0"
          }[i.placedSide],
          transform: {
            top: "translateY(100%)",
            right: "translateY(50%) rotate(90deg) translateX(-50%)",
            bottom: "rotate(180deg)",
            left: "translateY(50%) rotate(-90deg) translateX(50%)"
          }[i.placedSide],
          visibility: i.shouldHideArrow ? "hidden" : void 0
        },
        children: /* @__PURE__ */ R(
          Bo,
          {
            ...r,
            ref: n,
            style: {
              ...r.style,
              // ensures the element can be measured correctly (mostly for if SVG)
              display: "block"
            }
          }
        )
      }
    )
  );
});
Ut.displayName = $t;
function $o(e) {
  return e !== null;
}
var Uo = (e) => ({
  name: "transformOrigin",
  options: e,
  fn(t) {
    var y, v, w;
    const { placement: n, rects: o, middlewareData: r } = t, s = ((y = r.arrow) == null ? void 0 : y.centerOffset) !== 0, c = s ? 0 : e.arrowWidth, l = s ? 0 : e.arrowHeight, [a, u] = Vt(n), d = { start: "0%", center: "50%", end: "100%" }[u], h = (((v = r.arrow) == null ? void 0 : v.x) ?? 0) + c / 2, p = (((w = r.arrow) == null ? void 0 : w.y) ?? 0) + l / 2;
    let m = "", g = "";
    return a === "bottom" ? (m = s ? d : `${h}px`, g = `${-l}px`) : a === "top" ? (m = s ? d : `${h}px`, g = `${o.floating.height + l}px`) : a === "right" ? (m = `${-l}px`, g = s ? d : `${p}px`) : a === "left" && (m = `${o.floating.width + l}px`, g = s ? d : `${p}px`), { data: { x: m, y: g } };
  }
});
function Vt(e) {
  const [t, n = "center"] = e.split("-");
  return [t, n];
}
var Vo = It, zo = Ht, jo = Wt, Yo = Ut, [Oe, gr] = gt("Tooltip", [
  _t
]), Se = _t(), zt = "TooltipProvider", Go = 700, Ie = "tooltip.open", [Xo, qe] = Oe(zt), jt = (e) => {
  const {
    __scopeTooltip: t,
    delayDuration: n = Go,
    skipDelayDuration: o = 300,
    disableHoverableContent: r = !1,
    children: i
  } = e, [s, c] = f.useState(!0), l = f.useRef(!1), a = f.useRef(0);
  return f.useEffect(() => {
    const u = a.current;
    return () => window.clearTimeout(u);
  }, []), /* @__PURE__ */ R(
    Xo,
    {
      scope: t,
      isOpenDelayed: s,
      delayDuration: n,
      onOpen: f.useCallback(() => {
        window.clearTimeout(a.current), c(!1);
      }, []),
      onClose: f.useCallback(() => {
        window.clearTimeout(a.current), a.current = window.setTimeout(
          () => c(!0),
          o
        );
      }, [o]),
      isPointerInTransitRef: l,
      onPointerInTransitChange: f.useCallback((u) => {
        l.current = u;
      }, []),
      disableHoverableContent: r,
      children: i
    }
  );
};
jt.displayName = zt;
var De = "Tooltip", [qo, pe] = Oe(De), Yt = (e) => {
  const {
    __scopeTooltip: t,
    children: n,
    open: o,
    defaultOpen: r = !1,
    onOpenChange: i,
    disableHoverableContent: s,
    delayDuration: c
  } = e, l = qe(De, e.__scopeTooltip), a = Se(t), [u, d] = f.useState(null), h = En(), p = f.useRef(0), m = s ?? l.disableHoverableContent, g = c ?? l.delayDuration, y = f.useRef(!1), [v = !1, w] = hn({
    prop: o,
    defaultProp: r,
    onChange: (E) => {
      E ? (l.onOpen(), document.dispatchEvent(new CustomEvent(Ie))) : l.onClose(), i == null || i(E);
    }
  }), b = f.useMemo(() => v ? y.current ? "delayed-open" : "instant-open" : "closed", [v]), x = f.useCallback(() => {
    window.clearTimeout(p.current), y.current = !1, w(!0);
  }, [w]), C = f.useCallback(() => {
    window.clearTimeout(p.current), w(!1);
  }, [w]), A = f.useCallback(() => {
    window.clearTimeout(p.current), p.current = window.setTimeout(() => {
      y.current = !0, w(!0);
    }, g);
  }, [g, w]);
  return f.useEffect(() => () => window.clearTimeout(p.current), []), /* @__PURE__ */ R(Vo, { ...a, children: /* @__PURE__ */ R(
    qo,
    {
      scope: t,
      contentId: h,
      open: v,
      stateAttribute: b,
      trigger: u,
      onTriggerChange: d,
      onTriggerEnter: f.useCallback(() => {
        l.isOpenDelayed ? A() : x();
      }, [l.isOpenDelayed, A, x]),
      onTriggerLeave: f.useCallback(() => {
        m ? C() : window.clearTimeout(p.current);
      }, [C, m]),
      onOpen: x,
      onClose: C,
      disableHoverableContent: m,
      children: n
    }
  ) });
};
Yt.displayName = De;
var Fe = "TooltipTrigger", Gt = f.forwardRef(
  (e, t) => {
    const { __scopeTooltip: n, ...o } = e, r = pe(Fe, n), i = qe(Fe, n), s = Se(n), c = f.useRef(null), l = ee(t, c, r.onTriggerChange), a = f.useRef(!1), u = f.useRef(!1), d = f.useCallback(() => a.current = !1, []);
    return f.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ R(zo, { asChild: !0, ...s, children: /* @__PURE__ */ R(
      te.button,
      {
        "aria-describedby": r.open ? r.contentId : void 0,
        "data-state": r.stateAttribute,
        ...o,
        ref: l,
        onPointerMove: X(e.onPointerMove, (h) => {
          h.pointerType !== "touch" && !u.current && !i.isPointerInTransitRef.current && (r.onTriggerEnter(), u.current = !0);
        }),
        onPointerLeave: X(e.onPointerLeave, () => {
          r.onTriggerLeave(), u.current = !1;
        }),
        onPointerDown: X(e.onPointerDown, () => {
          a.current = !0, document.addEventListener("pointerup", d, { once: !0 });
        }),
        onFocus: X(e.onFocus, () => {
          a.current || r.onOpen();
        }),
        onBlur: X(e.onBlur, r.onClose),
        onClick: X(e.onClick, r.onClose)
      }
    ) });
  }
);
Gt.displayName = Fe;
var Ke = "TooltipPortal", [Ko, Zo] = Oe(Ke, {
  forceMount: void 0
}), Xt = (e) => {
  const { __scopeTooltip: t, forceMount: n, children: o, container: r } = e, i = pe(Ke, t);
  return /* @__PURE__ */ R(Ko, { scope: t, forceMount: n, children: /* @__PURE__ */ R(He, { present: n || i.open, children: /* @__PURE__ */ R(Ct, { asChild: !0, container: r, children: o }) }) });
};
Xt.displayName = Ke;
var se = "TooltipContent", qt = f.forwardRef(
  (e, t) => {
    const n = Zo(se, e.__scopeTooltip), { forceMount: o = n.forceMount, side: r = "top", ...i } = e, s = pe(se, e.__scopeTooltip);
    return /* @__PURE__ */ R(He, { present: o || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ R(Kt, { side: r, ...i, ref: t }) : /* @__PURE__ */ R(Jo, { side: r, ...i, ref: t }) });
  }
), Jo = f.forwardRef((e, t) => {
  const n = pe(se, e.__scopeTooltip), o = qe(se, e.__scopeTooltip), r = f.useRef(null), i = ee(t, r), [s, c] = f.useState(null), { trigger: l, onClose: a } = n, u = r.current, { onPointerInTransitChange: d } = o, h = f.useCallback(() => {
    c(null), d(!1);
  }, [d]), p = f.useCallback(
    (m, g) => {
      const y = m.currentTarget, v = { x: m.clientX, y: m.clientY }, w = tr(v, y.getBoundingClientRect()), b = nr(v, w), x = or(g.getBoundingClientRect()), C = ir([...b, ...x]);
      c(C), d(!0);
    },
    [d]
  );
  return f.useEffect(() => () => h(), [h]), f.useEffect(() => {
    if (l && u) {
      const m = (y) => p(y, u), g = (y) => p(y, l);
      return l.addEventListener("pointerleave", m), u.addEventListener("pointerleave", g), () => {
        l.removeEventListener("pointerleave", m), u.removeEventListener("pointerleave", g);
      };
    }
  }, [l, u, p, h]), f.useEffect(() => {
    if (s) {
      const m = (g) => {
        const y = g.target, v = { x: g.clientX, y: g.clientY }, w = (l == null ? void 0 : l.contains(y)) || (u == null ? void 0 : u.contains(y)), b = !rr(v, s);
        w ? h() : b && (h(), a());
      };
      return document.addEventListener("pointermove", m), () => document.removeEventListener("pointermove", m);
    }
  }, [l, u, s, a, h]), /* @__PURE__ */ R(Kt, { ...e, ref: i });
}), [Qo, er] = Oe(De, { isInside: !1 }), Kt = f.forwardRef(
  (e, t) => {
    const {
      __scopeTooltip: n,
      children: o,
      "aria-label": r,
      onEscapeKeyDown: i,
      onPointerDownOutside: s,
      ...c
    } = e, l = pe(se, n), a = Se(n), { onClose: u } = l;
    return f.useEffect(() => (document.addEventListener(Ie, u), () => document.removeEventListener(Ie, u)), [u]), f.useEffect(() => {
      if (l.trigger) {
        const d = (h) => {
          const p = h.target;
          p != null && p.contains(l.trigger) && u();
        };
        return window.addEventListener("scroll", d, { capture: !0 }), () => window.removeEventListener("scroll", d, { capture: !0 });
      }
    }, [l.trigger, u]), /* @__PURE__ */ R(
      wt,
      {
        asChild: !0,
        disableOutsidePointerEvents: !1,
        onEscapeKeyDown: i,
        onPointerDownOutside: s,
        onFocusOutside: (d) => d.preventDefault(),
        onDismiss: u,
        children: /* @__PURE__ */ wn(
          jo,
          {
            "data-state": l.stateAttribute,
            ...a,
            ...c,
            ref: t,
            style: {
              ...c.style,
              "--radix-tooltip-content-transform-origin": "var(--radix-popper-transform-origin)",
              "--radix-tooltip-content-available-width": "var(--radix-popper-available-width)",
              "--radix-tooltip-content-available-height": "var(--radix-popper-available-height)",
              "--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
              "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
            },
            children: [
              /* @__PURE__ */ R(mn, { children: o }),
              /* @__PURE__ */ R(Qo, { scope: n, isInside: !0, children: /* @__PURE__ */ R(gn, { id: l.contentId, role: "tooltip", children: r || o }) })
            ]
          }
        )
      }
    );
  }
);
qt.displayName = se;
var Zt = "TooltipArrow", Jt = f.forwardRef(
  (e, t) => {
    const { __scopeTooltip: n, ...o } = e, r = Se(n);
    return er(
      Zt,
      n
    ).isInside ? null : /* @__PURE__ */ R(Yo, { ...r, ...o, ref: t });
  }
);
Jt.displayName = Zt;
function tr(e, t) {
  const n = Math.abs(t.top - e.y), o = Math.abs(t.bottom - e.y), r = Math.abs(t.right - e.x), i = Math.abs(t.left - e.x);
  switch (Math.min(n, o, r, i)) {
    case i:
      return "left";
    case r:
      return "right";
    case n:
      return "top";
    case o:
      return "bottom";
    default:
      throw new Error("unreachable");
  }
}
function nr(e, t, n = 5) {
  const o = [];
  switch (t) {
    case "top":
      o.push(
        { x: e.x - n, y: e.y + n },
        { x: e.x + n, y: e.y + n }
      );
      break;
    case "bottom":
      o.push(
        { x: e.x - n, y: e.y - n },
        { x: e.x + n, y: e.y - n }
      );
      break;
    case "left":
      o.push(
        { x: e.x + n, y: e.y - n },
        { x: e.x + n, y: e.y + n }
      );
      break;
    case "right":
      o.push(
        { x: e.x - n, y: e.y - n },
        { x: e.x - n, y: e.y + n }
      );
      break;
  }
  return o;
}
function or(e) {
  const { top: t, right: n, bottom: o, left: r } = e;
  return [
    { x: r, y: t },
    { x: n, y: t },
    { x: n, y: o },
    { x: r, y: o }
  ];
}
function rr(e, t) {
  const { x: n, y: o } = e;
  let r = !1;
  for (let i = 0, s = t.length - 1; i < t.length; s = i++) {
    const c = t[i].x, l = t[i].y, a = t[s].x, u = t[s].y;
    l > o != u > o && n < (a - c) * (o - l) / (u - l) + c && (r = !r);
  }
  return r;
}
function ir(e) {
  const t = e.slice();
  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), sr(t);
}
function sr(e) {
  if (e.length <= 1) return e.slice();
  const t = [];
  for (let o = 0; o < e.length; o++) {
    const r = e[o];
    for (; t.length >= 2; ) {
      const i = t[t.length - 1], s = t[t.length - 2];
      if ((i.x - s.x) * (r.y - s.y) >= (i.y - s.y) * (r.x - s.x)) t.pop();
      else break;
    }
    t.push(r);
  }
  t.pop();
  const n = [];
  for (let o = e.length - 1; o >= 0; o--) {
    const r = e[o];
    for (; n.length >= 2; ) {
      const i = n[n.length - 1], s = n[n.length - 2];
      if ((i.x - s.x) * (r.y - s.y) >= (i.y - s.y) * (r.x - s.x)) n.pop();
      else break;
    }
    n.push(r);
  }
  return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
}
var ar = jt, yr = Yt, vr = Gt, wr = Xt, xr = qt, Cr = Jt, Qt = f.createContext(void 0), cr = (e) => {
  const { dir: t, children: n } = e;
  return /* @__PURE__ */ R(Qt.Provider, { value: t, children: n });
};
function br(e) {
  const t = f.useContext(Qt);
  return e || t || "ltr";
}
function lr(e) {
  switch (e) {
    case "tomato":
    case "red":
    case "ruby":
    case "crimson":
    case "pink":
    case "plum":
    case "purple":
    case "violet":
      return "mauve";
    case "iris":
    case "indigo":
    case "blue":
    case "sky":
    case "cyan":
      return "slate";
    case "teal":
    case "jade":
    case "mint":
    case "green":
      return "sage";
    case "grass":
    case "lime":
      return "olive";
    case "yellow":
    case "amber":
    case "orange":
    case "brown":
    case "gold":
    case "bronze":
      return "sand";
    case "gray":
      return "gray";
  }
}
const F = { hasBackground: { default: !0 }, appearance: { default: "inherit" }, accentColor: { default: "indigo" }, grayColor: { default: "auto" }, panelBackground: { default: "translucent" }, radius: { default: "medium" }, scaling: { default: "100%" } }, ne = () => {
}, Ee = f.createContext(void 0);
function Er() {
  const e = f.useContext(Ee);
  if (e === void 0) throw new Error("`useThemeContext` must be used within a `Theme`");
  return e;
}
const ur = f.forwardRef((e, t) => f.useContext(Ee) === void 0 ? f.createElement(ar, { delayDuration: 200 }, f.createElement(cr, { dir: "ltr" }, f.createElement(en, { ...e, ref: t }))) : f.createElement(Ze, { ...e, ref: t }));
ur.displayName = "Theme";
const en = f.forwardRef((e, t) => {
  const { appearance: n = F.appearance.default, accentColor: o = F.accentColor.default, grayColor: r = F.grayColor.default, panelBackground: i = F.panelBackground.default, radius: s = F.radius.default, scaling: c = F.scaling.default, hasBackground: l = F.hasBackground.default, ...a } = e, [u, d] = f.useState(n);
  f.useEffect(() => d(n), [n]);
  const [h, p] = f.useState(o);
  f.useEffect(() => p(o), [o]);
  const [m, g] = f.useState(r);
  f.useEffect(() => g(r), [r]);
  const [y, v] = f.useState(i);
  f.useEffect(() => v(i), [i]);
  const [w, b] = f.useState(s);
  f.useEffect(() => b(s), [s]);
  const [x, C] = f.useState(c);
  return f.useEffect(() => C(c), [c]), f.createElement(Ze, { ...a, ref: t, isRoot: !0, hasBackground: l, appearance: u, accentColor: h, grayColor: m, panelBackground: y, radius: w, scaling: x, onAppearanceChange: d, onAccentColorChange: p, onGrayColorChange: g, onPanelBackgroundChange: v, onRadiusChange: b, onScalingChange: C });
});
en.displayName = "ThemeRoot";
const Ze = f.forwardRef((e, t) => {
  const n = f.useContext(Ee), { asChild: o, isRoot: r, hasBackground: i, appearance: s = (n == null ? void 0 : n.appearance) ?? F.appearance.default, accentColor: c = (n == null ? void 0 : n.accentColor) ?? F.accentColor.default, grayColor: l = (n == null ? void 0 : n.resolvedGrayColor) ?? F.grayColor.default, panelBackground: a = (n == null ? void 0 : n.panelBackground) ?? F.panelBackground.default, radius: u = (n == null ? void 0 : n.radius) ?? F.radius.default, scaling: d = (n == null ? void 0 : n.scaling) ?? F.scaling.default, onAppearanceChange: h = ne, onAccentColorChange: p = ne, onGrayColorChange: m = ne, onPanelBackgroundChange: g = ne, onRadiusChange: y = ne, onScalingChange: v = ne, ...w } = e, b = o ? yn : "div", x = l === "auto" ? lr(c) : l, C = e.appearance === "light" || e.appearance === "dark", A = i === void 0 ? r || C : i;
  return f.createElement(Ee.Provider, { value: f.useMemo(() => ({ appearance: s, accentColor: c, grayColor: l, resolvedGrayColor: x, panelBackground: a, radius: u, scaling: d, onAppearanceChange: h, onAccentColorChange: p, onGrayColorChange: m, onPanelBackgroundChange: g, onRadiusChange: y, onScalingChange: v }), [s, c, l, x, a, u, d, h, p, m, g, y, v]) }, f.createElement(b, { "data-is-root-theme": r ? "true" : "false", "data-accent-color": c, "data-gray-color": x, "data-has-background": A ? "true" : "false", "data-panel-background": a, "data-radius": u, "data-scaling": d, ref: t, ...w, className: vn("radix-themes", { light: s === "light", dark: s === "dark" }, w.className) }));
});
Ze.displayName = "ThemeImpl";
export {
  zo as A,
  W as B,
  jo as C,
  wt as D,
  Be as E,
  U as F,
  Y as G,
  Er as H,
  ur as I,
  we as J,
  Re as K,
  J as L,
  ie as M,
  Jn as N,
  Ve as O,
  He as P,
  Qn as Q,
  Vo as R,
  H as S,
  vr as T,
  Z as U,
  ce as V,
  de as W,
  Te as X,
  ye as Y,
  ze as Z,
  Ct as a,
  Yo as b,
  _t as c,
  br as d,
  go as e,
  yr as f,
  wr as g,
  xr as h,
  Cr as i,
  ft as j,
  q as k,
  Fn as l,
  K as m,
  ae as n,
  z as o,
  mr as p,
  _e as q,
  Et as r,
  Ce as s,
  Ue as t,
  En as u,
  $e as v,
  fe as w,
  $ as x,
  G as y,
  j as z
};
//# sourceMappingURL=theme.BjGhr3iS.js.map
