import { j as o } from "./jsx-runtime-Sp0orL4X.js";
import * as T from "@radix-ui/react-switch";
import * as r from "react";
import * as x from "@radix-ui/react-accordion";
import { ChevronDownIcon as $, Cross2Icon as I, ChevronRightIcon as A, CheckIcon as M, DotFilledIcon as P, MagnifyingGlassIcon as J } from "@radix-ui/react-icons";
import * as c from "@radix-ui/react-alert-dialog";
import { Slot as K } from "@radix-ui/react-slot";
import { cva as S } from "class-variance-authority";
import * as z from "@radix-ui/react-label";
import * as u from "@radix-ui/react-scroll-area";
import * as g from "@radix-ui/react-tabs";
import * as b from "@radix-ui/react-tooltip";
import * as y from "@radix-ui/react-popover";
import * as v from "@radix-ui/react-hover-card";
import * as n from "@radix-ui/react-dropdown-menu";
import * as _ from "@radix-ui/react-separator";
import * as f from "@radix-ui/react-toast";
import { Command as m } from "cmdk";
import * as p from "@radix-ui/react-dialog";
import * as i from "@radix-ui/react-context-menu";
import { clsx as W } from "clsx";
import { twMerge as Z } from "tailwind-merge";
const s = (...e) => Z(W(e)), ee = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
  T.Root,
  {
    className: s(
      "peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-slate-900 data-[state=unchecked]:bg-slate-200 dark:focus-visible:ring-slate-800 dark:focus-visible:ring-offset-slate-950 dark:data-[state=checked]:bg-slate-50 dark:data-[state=unchecked]:bg-slate-800",
      e
    ),
    ...t,
    ref: a,
    children: /* @__PURE__ */ o.jsx(
      T.Thumb,
      {
        className: s(
          "pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 dark:bg-slate-950"
        )
      }
    )
  }
));
ee.displayName = T.Root.displayName;
const D = S(
  "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
  {
    variants: {
      variant: {
        default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
        destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
        outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
        secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
        ghost: "hover:bg-accent hover:text-accent-foreground",
        link: "text-primary underline-offset-4 hover:underline"
      },
      size: {
        default: "h-9 px-4 py-2",
        sm: "h-8 rounded-md px-3 text-xs",
        lg: "h-10 rounded-md px-8",
        icon: "h-9 w-9"
      }
    },
    defaultVariants: {
      variant: "default",
      size: "default"
    }
  }
), te = r.forwardRef(
  ({ className: e, variant: t, size: a, asChild: d = !1, ...l }, j) => {
    const Y = d ? K : "button";
    return /* @__PURE__ */ o.jsx(Y, { className: s(D({ variant: t, size: a, className: e })), ref: j, ...l });
  }
);
te.displayName = "Button";
const vt = x.Root, ae = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(x.Item, { ref: a, className: s("border-b", e), ...t }));
ae.displayName = "AccordionItem";
const oe = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ o.jsx(x.Header, { className: "flex", children: /* @__PURE__ */ o.jsxs(
  x.Trigger,
  {
    ref: d,
    className: s(
      "flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
      e
    ),
    ...a,
    children: [
      t,
      a.hideArrow ? null : /* @__PURE__ */ o.jsx($, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
    ]
  }
) }));
oe.displayName = x.Trigger.displayName;
const se = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ o.jsx(
  x.Content,
  {
    ref: d,
    className: s(
      "text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
      e
    ),
    ...a,
    children: /* @__PURE__ */ o.jsx("div", { className: "pb-4 pt-0", children: t })
  }
));
se.displayName = x.Content.displayName;
const jt = c.Root, Ct = c.Trigger, O = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx(c.Portal, { className: s(e), ...t });
O.displayName = c.Portal.displayName;
const E = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
  c.Overlay,
  {
    className: s(
      "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
      e
    ),
    ...t,
    ref: a
  }
));
E.displayName = c.Overlay.displayName;
const re = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsxs(O, { children: [
  /* @__PURE__ */ o.jsx(E, {}),
  /* @__PURE__ */ o.jsx(
    c.Content,
    {
      ref: a,
      className: s(
        "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",
        e
      ),
      ...t
    }
  )
] }));
re.displayName = c.Content.displayName;
const de = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
de.displayName = "AlertDialogHeader";
const ne = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
ne.displayName = "AlertDialogFooter";
const ie = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(c.Title, { ref: a, className: s("text-lg font-semibold", e), ...t }));
ie.displayName = c.Title.displayName;
const le = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(c.Description, { ref: a, className: s("text-sm text-muted-foreground", e), ...t }));
le.displayName = c.Description.displayName;
const ce = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(c.Action, { ref: a, className: s(D(), e), ...t }));
ce.displayName = c.Action.displayName;
const me = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
  c.Cancel,
  {
    ref: a,
    className: s(D({ variant: "outline" }), "mt-2 sm:mt-0", e),
    ...t
  }
));
me.displayName = c.Cancel.displayName;
const pe = p.Root, Rt = p.Trigger, L = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx(p.Portal, { className: s(e), ...t });
L.displayName = p.Portal.displayName;
const V = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
  p.Overlay,
  {
    ref: a,
    className: s(
      "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
      e
    ),
    ...t
  }
));
V.displayName = p.Overlay.displayName;
const G = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ o.jsxs(L, { children: [
  /* @__PURE__ */ o.jsx(V, {}),
  /* @__PURE__ */ o.jsxs(
    p.Content,
    {
      ref: d,
      className: s(
        "fixed left-[50%] top-[50%] z-[999] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",
        e
      ),
      ...a,
      children: [
        t,
        /* @__PURE__ */ o.jsxs(p.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
          /* @__PURE__ */ o.jsx(I, { className: "h-4 w-4" }),
          /* @__PURE__ */ o.jsx("span", { className: "sr-only", children: "Close" })
        ] })
      ]
    }
  )
] }));
G.displayName = p.Content.displayName;
const fe = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx("div", { className: s("flex flex-col space-y-1.5 text-center sm:text-left", e), ...t });
fe.displayName = "DialogHeader";
const ue = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
ue.displayName = "DialogFooter";
const xe = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
  p.Title,
  {
    ref: a,
    className: s("text-lg font-semibold leading-none tracking-tight", e),
    ...t
  }
));
xe.displayName = p.Title.displayName;
const ge = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(p.Description, { ref: a, className: s("text-sm text-muted-foreground", e), ...t }));
ge.displayName = p.Description.displayName;
const be = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx("div", { ref: a, className: s("rounded-xl border bg-card text-card-foreground shadow", e), ...t }));
be.displayName = "Card";
const Ne = r.forwardRef(
  ({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx("div", { ref: a, className: s("flex flex-col space-y-1.5 p-6", e), ...t })
);
Ne.displayName = "CardHeader";
const ye = r.forwardRef(
  ({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx("h3", { ref: a, className: s("font-semibold leading-none tracking-tight", e), ...t })
);
ye.displayName = "CardTitle";
const he = r.forwardRef(
  ({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx("p", { ref: a, className: s("text-sm text-muted-foreground", e), ...t })
);
he.displayName = "CardDescription";
const we = r.forwardRef(
  ({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx("div", { ref: a, className: s("p-6 pt-0", e), ...t })
);
we.displayName = "CardContent";
const ve = r.forwardRef(
  ({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx("div", { ref: a, className: s(" flex items-center p-6 pt-0", e), ...t })
);
ve.displayName = "CardFooter";
const je = r.forwardRef(({ className: e, type: t, ...a }, d) => /* @__PURE__ */ o.jsx(
  "input",
  {
    type: t,
    className: s(
      "flex h-9 w-full rounded-md border border-border bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
      e
    ),
    ref: d,
    ...a,
    autoCapitalize: "off",
    autoCorrect: "off",
    spellCheck: "false"
  }
));
je.displayName = "Input";
const Ce = S("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), Re = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(z.Root, { ref: a, className: s(Ce(), e), ...t }));
Re.displayName = z.Root.displayName;
const Te = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
  "textarea",
  {
    className: s(
      "flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
      e
    ),
    ref: a,
    ...t,
    autoCapitalize: "off",
    autoCorrect: "off",
    spellCheck: "false"
  }
));
Te.displayName = "Textarea";
const Se = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ o.jsxs(u.Root, { ref: d, className: s("relative overflow-hidden", e), ...a, children: [
  /* @__PURE__ */ o.jsx(u.Viewport, { className: "h-full w-full rounded-[inherit]", children: t }),
  /* @__PURE__ */ o.jsx(H, {}),
  /* @__PURE__ */ o.jsx(u.Corner, {})
] }));
Se.displayName = u.Root.displayName;
const H = r.forwardRef(({ className: e, orientation: t = "vertical", ...a }, d) => /* @__PURE__ */ o.jsx(
  u.ScrollAreaScrollbar,
  {
    ref: d,
    orientation: t,
    className: s(
      "flex touch-none select-none transition-colors",
      t === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
      t === "horizontal" && "h-2.5 border-t border-t-transparent p-[1px]",
      e
    ),
    ...a,
    children: /* @__PURE__ */ o.jsx(u.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
  }
));
H.displayName = u.ScrollAreaScrollbar.displayName;
const Tt = g.Root, De = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
  g.List,
  {
    ref: a,
    className: s(
      "inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
      e
    ),
    ...t
  }
));
De.displayName = g.List.displayName;
const ke = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
  g.Trigger,
  {
    ref: a,
    className: s(
      "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
      e
    ),
    ...t
  }
));
ke.displayName = g.Trigger.displayName;
const Ie = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
  g.Content,
  {
    ref: a,
    className: s(
      "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
      e
    ),
    ...t
  }
));
Ie.displayName = g.Content.displayName;
const St = b.Portal, Dt = b.Provider, kt = b.Root, It = b.Trigger, Ae = r.forwardRef(({ className: e, sideOffset: t = 4, ...a }, d) => /* @__PURE__ */ o.jsx(
  b.Content,
  {
    ref: d,
    sideOffset: t,
    className: s(
      "z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
      e
    ),
    ...a
  }
));
Ae.displayName = b.Content.displayName;
const At = y.Root, Mt = y.Trigger, Me = r.forwardRef(({ className: e, align: t = "center", sideOffset: a = 4, ...d }, l) => /* @__PURE__ */ o.jsx(y.Portal, { children: /* @__PURE__ */ o.jsx(
  y.Content,
  {
    ref: l,
    align: t,
    sideOffset: a,
    className: s(
      "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
      e
    ),
    ...d
  }
) }));
Me.displayName = y.Content.displayName;
const Pt = v.Root, zt = v.Trigger, Pe = r.forwardRef(({ className: e, align: t = "center", sideOffset: a = 4, ...d }, l) => /* @__PURE__ */ o.jsx(
  v.Content,
  {
    ref: l,
    align: t,
    sideOffset: a,
    className: s(
      "z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
      e
    ),
    ...d
  }
));
Pe.displayName = v.Content.displayName;
const _t = n.Root, Ot = n.Trigger, Et = n.Group, Lt = n.Portal, Vt = n.Sub, Gt = n.RadioGroup, ze = r.forwardRef(({ className: e, inset: t, children: a, ...d }, l) => /* @__PURE__ */ o.jsxs(
  n.SubTrigger,
  {
    ref: l,
    className: s(
      "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
      t && "pl-8",
      e
    ),
    ...d,
    children: [
      a,
      /* @__PURE__ */ o.jsx(A, { className: "ml-auto h-4 w-4" })
    ]
  }
));
ze.displayName = n.SubTrigger.displayName;
const _e = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
  n.SubContent,
  {
    ref: a,
    className: s(
      "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
      e
    ),
    ...t
  }
));
_e.displayName = n.SubContent.displayName;
const Oe = r.forwardRef(({ className: e, sideOffset: t = 4, ...a }, d) => /* @__PURE__ */ o.jsx(n.Portal, { children: /* @__PURE__ */ o.jsx(
  n.Content,
  {
    ref: d,
    sideOffset: t,
    className: s(
      "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
      "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
      e
    ),
    ...a
  }
) }));
Oe.displayName = n.Content.displayName;
const Ee = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */ o.jsx(
  n.Item,
  {
    ref: d,
    className: s(
      "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
      t && "pl-8",
      e
    ),
    ...a
  }
));
Ee.displayName = n.Item.displayName;
const Le = r.forwardRef(({ className: e, children: t, checked: a, ...d }, l) => /* @__PURE__ */ o.jsxs(
  n.CheckboxItem,
  {
    ref: l,
    className: s(
      "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
      e
    ),
    checked: a,
    ...d,
    children: [
      /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(n.ItemIndicator, { children: /* @__PURE__ */ o.jsx(M, { className: "h-4 w-4" }) }) }),
      t
    ]
  }
));
Le.displayName = n.CheckboxItem.displayName;
const Ve = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ o.jsxs(
  n.RadioItem,
  {
    ref: d,
    className: s(
      "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
      e
    ),
    ...a,
    children: [
      /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(n.ItemIndicator, { children: /* @__PURE__ */ o.jsx(P, { className: "h-4 w-4 fill-current" }) }) }),
      t
    ]
  }
));
Ve.displayName = n.RadioItem.displayName;
const Ge = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */ o.jsx(
  n.Label,
  {
    ref: d,
    className: s("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
    ...a
  }
));
Ge.displayName = n.Label.displayName;
const He = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(n.Separator, { ref: a, className: s("-mx-1 my-1 h-px bg-muted", e), ...t }));
He.displayName = n.Separator.displayName;
const Fe = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx("span", { className: s("ml-auto text-xs tracking-widest opacity-60", e), ...t });
Fe.displayName = "DropdownMenuShortcut";
const Be = r.forwardRef(({ className: e, orientation: t = "horizontal", decorative: a = !0, ...d }, l) => /* @__PURE__ */ o.jsx(
  _.Root,
  {
    ref: l,
    decorative: a,
    orientation: t,
    className: s("shrink-0 bg-border", t === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", e),
    ...d
  }
));
Be.displayName = _.Root.displayName;
const Ue = 1, qe = 1e6;
let C = 0;
function Qe() {
  return C = (C + 1) % Number.MAX_VALUE, C.toString();
}
const R = /* @__PURE__ */ new Map(), k = (e) => {
  if (R.has(e))
    return;
  const t = setTimeout(() => {
    R.delete(e), N({
      type: "REMOVE_TOAST",
      toastId: e
    });
  }, qe);
  R.set(e, t);
}, Xe = (e, t) => {
  switch (t.type) {
    case "ADD_TOAST":
      return {
        ...e,
        toasts: [t.toast, ...e.toasts].slice(0, Ue)
      };
    case "UPDATE_TOAST":
      return {
        ...e,
        toasts: e.toasts.map((a) => a.id === t.toast.id ? { ...a, ...t.toast } : a)
      };
    case "DISMISS_TOAST": {
      const { toastId: a } = t;
      return a ? k(a) : e.toasts.forEach((d) => {
        k(d.id);
      }), {
        ...e,
        toasts: e.toasts.map(
          (d) => d.id === a || a === void 0 ? {
            ...d,
            open: !1
          } : d
        )
      };
    }
    case "REMOVE_TOAST":
      return t.toastId === void 0 ? {
        ...e,
        toasts: []
      } : {
        ...e,
        toasts: e.toasts.filter((a) => a.id !== t.toastId)
      };
  }
}, h = [];
let w = { toasts: [] };
function N(e) {
  w = Xe(w, e), h.forEach((t) => {
    t(w);
  });
}
function Ye({ ...e }) {
  const t = Qe(), a = (l) => N({
    type: "UPDATE_TOAST",
    toast: { ...l, id: t }
  }), d = () => N({ type: "DISMISS_TOAST", toastId: t });
  return N({
    type: "ADD_TOAST",
    toast: {
      ...e,
      id: t,
      open: !0,
      onOpenChange: (l) => {
        l || d();
      }
    }
  }), {
    id: t,
    dismiss: d,
    update: a
  };
}
function $e() {
  const [e, t] = r.useState(w);
  return r.useEffect(() => (h.push(t), () => {
    const a = h.indexOf(t);
    a > -1 && h.splice(a, 1);
  }), [e]), {
    ...e,
    toast: Ye,
    dismiss: (a) => N({ type: "DISMISS_TOAST", toastId: a })
  };
}
const Je = f.Provider, F = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
  f.Viewport,
  {
    ref: a,
    className: s(
      "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
      e
    ),
    ...t
  }
));
F.displayName = f.Viewport.displayName;
const Ke = S(
  "group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
  {
    variants: {
      variant: {
        default: "border bg-background",
        destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
      }
    },
    defaultVariants: {
      variant: "default"
    }
  }
), B = r.forwardRef(({ className: e, variant: t, ...a }, d) => /* @__PURE__ */ o.jsx(f.Root, { ref: d, className: s(Ke({ variant: t }), e), ...a }));
B.displayName = f.Root.displayName;
const We = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
  f.Action,
  {
    ref: a,
    className: s(
      "inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",
      e
    ),
    ...t
  }
));
We.displayName = f.Action.displayName;
const U = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
  f.Close,
  {
    ref: a,
    className: s(
      "absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
      e
    ),
    "toast-close": "",
    ...t,
    children: /* @__PURE__ */ o.jsx(I, { className: "h-4 w-4" })
  }
));
U.displayName = f.Close.displayName;
const q = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(f.Title, { ref: a, className: s("text-sm font-semibold [&+div]:text-xs", e), ...t }));
q.displayName = f.Title.displayName;
const Q = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(f.Description, { ref: a, className: s("text-sm opacity-90", e), ...t }));
Q.displayName = f.Description.displayName;
function Ht() {
  const { toasts: e } = $e();
  return /* @__PURE__ */ o.jsxs(Je, { children: [
    e.map(({ id: t, title: a, description: d, action: l, ...j }) => /* @__PURE__ */ o.jsxs(B, { ...j, children: [
      /* @__PURE__ */ o.jsxs("div", { className: "grid gap-1", children: [
        a && /* @__PURE__ */ o.jsx(q, { children: a }),
        d && /* @__PURE__ */ o.jsx(Q, { children: d })
      ] }),
      l,
      /* @__PURE__ */ o.jsx(U, {})
    ] }, t)),
    /* @__PURE__ */ o.jsx(F, {})
  ] });
}
const Ft = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx("div", { className: s("animate-pulse rounded-md bg-primary/10", e), ...t }), X = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
  m,
  {
    ref: a,
    className: s(
      "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
      e
    ),
    ...t
  }
));
X.displayName = m.displayName;
const Bt = ({ children: e, ...t }) => /* @__PURE__ */ o.jsx(pe, { ...t, children: /* @__PURE__ */ o.jsx(G, { className: "overflow-hidden p-0", children: /* @__PURE__ */ o.jsx(X, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), Ze = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
  /* @__PURE__ */ o.jsx(J, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
  /* @__PURE__ */ o.jsx(
    m.Input,
    {
      ref: a,
      className: s(
        "flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
        e
      ),
      ...t
    }
  )
] }));
Ze.displayName = m.Input.displayName;
const et = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
  m.List,
  {
    ref: a,
    className: s("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
    ...t
  }
));
et.displayName = m.List.displayName;
const tt = r.forwardRef((e, t) => /* @__PURE__ */ o.jsx(m.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
tt.displayName = m.Empty.displayName;
const at = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
  m.Group,
  {
    ref: a,
    className: s(
      "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
      e
    ),
    ...t
  }
));
at.displayName = m.Group.displayName;
const ot = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(m.Separator, { ref: a, className: s("-mx-1 h-px bg-border", e), ...t }));
ot.displayName = m.Separator.displayName;
const st = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
  m.Item,
  {
    ref: a,
    className: s(
      "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
      e
    ),
    ...t
  }
));
st.displayName = m.Item.displayName;
const rt = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
rt.displayName = "CommandShortcut";
const Ut = i.Root, qt = i.Trigger, Qt = i.Group, Xt = i.Portal, Yt = i.Sub, $t = i.RadioGroup, dt = r.forwardRef(({ className: e, inset: t, children: a, ...d }, l) => /* @__PURE__ */ o.jsxs(
  i.SubTrigger,
  {
    ref: l,
    className: s(
      "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
      t && "pl-8",
      e
    ),
    ...d,
    children: [
      a,
      /* @__PURE__ */ o.jsx(A, { className: "ml-auto h-4 w-4" })
    ]
  }
));
dt.displayName = i.SubTrigger.displayName;
const nt = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
  i.SubContent,
  {
    ref: a,
    className: s(
      "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
      e
    ),
    ...t
  }
));
nt.displayName = i.SubContent.displayName;
const it = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(i.Portal, { children: /* @__PURE__ */ o.jsx(
  i.Content,
  {
    ref: a,
    className: s(
      "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
      e
    ),
    ...t
  }
) }));
it.displayName = i.Content.displayName;
const lt = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */ o.jsx(
  i.Item,
  {
    ref: d,
    className: s(
      "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
      t && "pl-8",
      e
    ),
    ...a
  }
));
lt.displayName = i.Item.displayName;
const ct = r.forwardRef(({ className: e, children: t, checked: a, ...d }, l) => /* @__PURE__ */ o.jsxs(
  i.CheckboxItem,
  {
    ref: l,
    className: s(
      "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
      e
    ),
    checked: a,
    ...d,
    children: [
      /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(i.ItemIndicator, { children: /* @__PURE__ */ o.jsx(M, { className: "h-4 w-4" }) }) }),
      t
    ]
  }
));
ct.displayName = i.CheckboxItem.displayName;
const mt = r.forwardRef(({ className: e, children: t, ...a }, d) => /* @__PURE__ */ o.jsxs(
  i.RadioItem,
  {
    ref: d,
    className: s(
      "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
      e
    ),
    ...a,
    children: [
      /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(i.ItemIndicator, { children: /* @__PURE__ */ o.jsx(P, { className: "h-4 w-4 fill-current" }) }) }),
      t
    ]
  }
));
mt.displayName = i.RadioItem.displayName;
const pt = r.forwardRef(({ className: e, inset: t, ...a }, d) => /* @__PURE__ */ o.jsx(
  i.Label,
  {
    ref: d,
    className: s("px-2 py-1.5 text-sm font-semibold text-foreground", t && "pl-8", e),
    ...a
  }
));
pt.displayName = i.Label.displayName;
const ft = r.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(i.Separator, { ref: a, className: s("-mx-1 my-1 h-px bg-border", e), ...t }));
ft.displayName = i.Separator.displayName;
const ut = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
ut.displayName = "ContextMenuShortcut";
export {
  jt as $,
  De as A,
  te as B,
  Ut as C,
  pe as D,
  ke as E,
  Ie as F,
  ee as G,
  vt as H,
  ae as I,
  oe as J,
  se as K,
  Re as L,
  $e as M,
  je as N,
  St as O,
  At as P,
  _t as Q,
  Ot as R,
  Ft as S,
  kt as T,
  Oe as U,
  Se as V,
  Ge as W,
  He as X,
  Et as Y,
  Ee as Z,
  Fe as _,
  qt as a,
  Ct as a0,
  re as a1,
  de as a2,
  ie as a3,
  le as a4,
  ne as a5,
  me as a6,
  ce as a7,
  Le as a8,
  Pt as a9,
  Xt as aA,
  Yt as aB,
  nt as aC,
  dt as aD,
  $t as aE,
  zt as aa,
  Pe as ab,
  Be as ac,
  Dt as ad,
  Ht as ae,
  s as af,
  D as ag,
  ye as ah,
  H as ai,
  Ve as aj,
  Lt as ak,
  Vt as al,
  _e as am,
  ze as an,
  Gt as ao,
  Xe as ap,
  Ye as aq,
  Bt as ar,
  rt as as,
  ot as at,
  ct as au,
  mt as av,
  pt as aw,
  ft as ax,
  ut as ay,
  Qt as az,
  it as b,
  lt as c,
  It as d,
  Ae as e,
  be as f,
  Ne as g,
  he as h,
  we as i,
  Te as j,
  ve as k,
  Rt as l,
  G as m,
  fe as n,
  xe as o,
  ge as p,
  ue as q,
  Mt as r,
  Me as s,
  X as t,
  Ze as u,
  et as v,
  tt as w,
  at as x,
  st as y,
  Tt as z
};
