import { a as e, r as t, t as n } from "./dist-DCjaNViz.js";
import { a as r, n as i, o as a, r as o, t as s } from "./dist-D-6_qntS.js";
import { t as c } from "./dist-DjSP8Xx2.js";
import { t as l } from "./dist-BSqU5QJM.js";
import { t as u } from "./dist-BN9-Ksur.js";
import { t as d } from "./dist-o21Z8vCD.js";
import { t as f } from "./utils-CHlhTiFC.js";
import { t as p } from "./chevron-right-CJ5a2pIu.js";
import { t as m } from "./dist-C-DOdUAW.js";
import { r as ee, t as h } from "./dist-CniKe8MM.js";
import { i as te, n as ne, r as re, t as g } from "./es2015-gSh3xMJF.js";
import { a as _, i as v, n as y, r as ie, t as ae } from "./dist-CCgkh91X.js";
import { n as oe, r as b, t as x } from "./dist-DmFwV39u.js";
import * as S from "react";
import C from "react";
import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
//#region node_modules/@radix-ui/react-menu/dist/index.mjs
var D = ["Enter", " "], O = [
	"ArrowDown",
	"PageUp",
	"Home"
], se = [
	"ArrowUp",
	"PageDown",
	"End"
], ce = [...O, ...se], k = {
	ltr: [...D, "ArrowRight"],
	rtl: [...D, "ArrowLeft"]
}, le = {
	ltr: ["ArrowLeft"],
	rtl: ["ArrowRight"]
}, A = "Menu", [j, ue, M] = c(A), [N, P] = e(A, [
	M,
	_,
	b
]), F = _(), de = b(), [I, L] = N(A), [R, z] = N(A), fe = (e) => {
	let { __scopeMenu: t, open: n = !1, children: r, dir: i, onOpenChange: a, modal: o = !0 } = e, s = F(t), [c, l] = S.useState(null), u = S.useRef(!1), f = m(a), p = d(i);
	return S.useEffect(() => {
		let e = () => {
			u.current = !0, document.addEventListener("pointerdown", t, {
				capture: !0,
				once: !0
			}), document.addEventListener("pointermove", t, {
				capture: !0,
				once: !0
			});
		}, t = () => u.current = !1;
		return document.addEventListener("keydown", e, { capture: !0 }), () => {
			document.removeEventListener("keydown", e, { capture: !0 }), document.removeEventListener("pointerdown", t, { capture: !0 }), document.removeEventListener("pointermove", t, { capture: !0 });
		};
	}, []), /* @__PURE__ */ T(v, {
		...s,
		children: /* @__PURE__ */ T(I, {
			scope: t,
			open: n,
			onOpenChange: f,
			content: c,
			onContentChange: l,
			children: /* @__PURE__ */ T(R, {
				scope: t,
				onClose: S.useCallback(() => f(!1), [f]),
				isUsingKeyboardRef: u,
				dir: p,
				modal: o,
				children: r
			})
		})
	});
};
fe.displayName = A;
var pe = "MenuAnchor", B = S.forwardRef((e, t) => {
	let { __scopeMenu: n, ...r } = e;
	return /* @__PURE__ */ T(ae, {
		...F(n),
		...r,
		ref: t
	});
});
B.displayName = pe;
var V = "MenuPortal", [me, he] = N(V, { forceMount: void 0 }), ge = (e) => {
	let { __scopeMenu: t, forceMount: n, children: r, container: i } = e, a = L(V, t);
	return /* @__PURE__ */ T(me, {
		scope: t,
		forceMount: n,
		children: /* @__PURE__ */ T(l, {
			present: n || a.open,
			children: /* @__PURE__ */ T(h, {
				asChild: !0,
				container: i,
				children: r
			})
		})
	});
};
ge.displayName = V;
var H = "MenuContent", [_e, U] = N(H), ve = S.forwardRef((e, t) => {
	let n = he(H, e.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e, a = L(H, e.__scopeMenu), o = z(H, e.__scopeMenu);
	return /* @__PURE__ */ T(j.Provider, {
		scope: e.__scopeMenu,
		children: /* @__PURE__ */ T(l, {
			present: r || a.open,
			children: /* @__PURE__ */ T(j.Slot, {
				scope: e.__scopeMenu,
				children: o.modal ? /* @__PURE__ */ T(ye, {
					...i,
					ref: t
				}) : /* @__PURE__ */ T(be, {
					...i,
					ref: t
				})
			})
		})
	});
}), ye = S.forwardRef((e, n) => {
	let r = L(H, e.__scopeMenu), i = S.useRef(null), o = a(n, i);
	return S.useEffect(() => {
		let e = i.current;
		if (e) return g(e);
	}, []), /* @__PURE__ */ T(W, {
		...e,
		ref: o,
		trapFocus: r.open,
		disableOutsidePointerEvents: r.open,
		disableOutsideScroll: !0,
		onFocusOutside: t(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 }),
		onDismiss: () => r.onOpenChange(!1)
	});
}), be = S.forwardRef((e, t) => {
	let n = L(H, e.__scopeMenu);
	return /* @__PURE__ */ T(W, {
		...e,
		ref: t,
		trapFocus: !1,
		disableOutsidePointerEvents: !1,
		disableOutsideScroll: !1,
		onDismiss: () => n.onOpenChange(!1)
	});
}), xe = o("MenuContent.ScrollLock"), W = S.forwardRef((e, n) => {
	let { __scopeMenu: r, loop: i = !1, trapFocus: o, onOpenAutoFocus: s, onCloseAutoFocus: c, disableOutsidePointerEvents: l, onEntryFocus: u, onEscapeKeyDown: d, onPointerDownOutside: f, onFocusOutside: p, onInteractOutside: m, onDismiss: h, disableOutsideScroll: g, ..._ } = e, v = L(H, r), y = z(H, r), ae = F(r), b = de(r), x = ue(r), [C, w] = S.useState(null), E = S.useRef(null), D = a(n, E, v.onContentChange), O = S.useRef(0), k = S.useRef(""), le = S.useRef(0), A = S.useRef(null), j = S.useRef("right"), M = S.useRef(0), N = g ? ne : S.Fragment, P = g ? {
		as: xe,
		allowPinchZoom: !0
	} : void 0, I = (e) => {
		let t = k.current + e, n = x().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = $e(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
		(function e(t) {
			k.current = t, window.clearTimeout(O.current), t !== "" && (O.current = window.setTimeout(() => e(""), 1e3));
		})(t), o && setTimeout(() => o.focus());
	};
	S.useEffect(() => () => window.clearTimeout(O.current), []), re();
	let R = S.useCallback((e) => j.current === A.current?.side && tt(e, A.current?.area), []);
	return /* @__PURE__ */ T(_e, {
		scope: r,
		searchRef: k,
		onItemEnter: S.useCallback((e) => {
			R(e) && e.preventDefault();
		}, [R]),
		onItemLeave: S.useCallback((e) => {
			R(e) || (E.current?.focus(), w(null));
		}, [R]),
		onTriggerLeave: S.useCallback((e) => {
			R(e) && e.preventDefault();
		}, [R]),
		pointerGraceTimerRef: le,
		onPointerGraceIntentChange: S.useCallback((e) => {
			A.current = e;
		}, []),
		children: /* @__PURE__ */ T(N, {
			...P,
			children: /* @__PURE__ */ T(te, {
				asChild: !0,
				trapped: o,
				onMountAutoFocus: t(s, (e) => {
					e.preventDefault(), E.current?.focus({ preventScroll: !0 });
				}),
				onUnmountAutoFocus: c,
				children: /* @__PURE__ */ T(ee, {
					asChild: !0,
					disableOutsidePointerEvents: l,
					onEscapeKeyDown: d,
					onPointerDownOutside: f,
					onFocusOutside: p,
					onInteractOutside: m,
					onDismiss: h,
					children: /* @__PURE__ */ T(oe, {
						asChild: !0,
						...b,
						dir: y.dir,
						orientation: "vertical",
						loop: i,
						currentTabStopId: C,
						onCurrentTabStopIdChange: w,
						onEntryFocus: t(u, (e) => {
							y.isUsingKeyboardRef.current || e.preventDefault();
						}),
						preventScrollOnEntryFocus: !0,
						children: /* @__PURE__ */ T(ie, {
							role: "menu",
							"aria-orientation": "vertical",
							"data-state": Ye(v.open),
							"data-radix-menu-content": "",
							dir: y.dir,
							...ae,
							..._,
							ref: D,
							style: {
								outline: "none",
								..._.style
							},
							onKeyDown: t(_.onKeyDown, (e) => {
								let t = e.target.closest("[data-radix-menu-content]") === e.currentTarget, n = e.ctrlKey || e.altKey || e.metaKey, r = e.key.length === 1;
								t && (e.key === "Tab" && e.preventDefault(), !n && r && I(e.key));
								let i = E.current;
								if (e.target !== i || !ce.includes(e.key)) return;
								e.preventDefault();
								let a = x().filter((e) => !e.disabled).map((e) => e.ref.current);
								se.includes(e.key) && a.reverse(), Ze(a);
							}),
							onBlur: t(e.onBlur, (e) => {
								e.currentTarget.contains(e.target) || (window.clearTimeout(O.current), k.current = "");
							}),
							onPointerMove: t(e.onPointerMove, Z((e) => {
								let t = e.target, n = M.current !== e.clientX;
								e.currentTarget.contains(t) && n && (j.current = e.clientX > M.current ? "right" : "left", M.current = e.clientX);
							}))
						})
					})
				})
			})
		})
	});
});
ve.displayName = H;
var Se = "MenuGroup", G = S.forwardRef((e, t) => {
	let { __scopeMenu: n, ...r } = e;
	return /* @__PURE__ */ T(s.div, {
		role: "group",
		...r,
		ref: t
	});
});
G.displayName = Se;
var Ce = "MenuLabel", we = S.forwardRef((e, t) => {
	let { __scopeMenu: n, ...r } = e;
	return /* @__PURE__ */ T(s.div, {
		...r,
		ref: t
	});
});
we.displayName = Ce;
var K = "MenuItem", Te = "menu.itemSelect", q = S.forwardRef((e, n) => {
	let { disabled: r = !1, onSelect: o, ...s } = e, c = S.useRef(null), l = z(K, e.__scopeMenu), u = U(K, e.__scopeMenu), d = a(n, c), f = S.useRef(!1), p = () => {
		let e = c.current;
		if (!r && e) {
			let t = new CustomEvent(Te, {
				bubbles: !0,
				cancelable: !0
			});
			e.addEventListener(Te, (e) => o?.(e), { once: !0 }), i(e, t), t.defaultPrevented ? f.current = !1 : l.onClose();
		}
	};
	return /* @__PURE__ */ T(Ee, {
		...s,
		ref: d,
		disabled: r,
		onClick: t(e.onClick, p),
		onPointerDown: (t) => {
			e.onPointerDown?.(t), f.current = !0;
		},
		onPointerUp: t(e.onPointerUp, (e) => {
			f.current || e.currentTarget?.click();
		}),
		onKeyDown: t(e.onKeyDown, (e) => {
			let t = u.searchRef.current !== "";
			r || t && e.key === " " || D.includes(e.key) && (e.currentTarget.click(), e.preventDefault());
		})
	});
});
q.displayName = K;
var Ee = S.forwardRef((e, n) => {
	let { __scopeMenu: r, disabled: i = !1, textValue: o, ...c } = e, l = U(K, r), u = de(r), d = S.useRef(null), f = a(n, d), [p, m] = S.useState(!1), [ee, h] = S.useState("");
	return S.useEffect(() => {
		let e = d.current;
		e && h((e.textContent ?? "").trim());
	}, [c.children]), /* @__PURE__ */ T(j.ItemSlot, {
		scope: r,
		disabled: i,
		textValue: o ?? ee,
		children: /* @__PURE__ */ T(x, {
			asChild: !0,
			...u,
			focusable: !i,
			children: /* @__PURE__ */ T(s.div, {
				role: "menuitem",
				"data-highlighted": p ? "" : void 0,
				"aria-disabled": i || void 0,
				"data-disabled": i ? "" : void 0,
				...c,
				ref: f,
				onPointerMove: t(e.onPointerMove, Z((e) => {
					i ? l.onItemLeave(e) : (l.onItemEnter(e), e.defaultPrevented || e.currentTarget.focus({ preventScroll: !0 }));
				})),
				onPointerLeave: t(e.onPointerLeave, Z((e) => l.onItemLeave(e))),
				onFocus: t(e.onFocus, () => m(!0)),
				onBlur: t(e.onBlur, () => m(!1))
			})
		})
	});
}), De = "MenuCheckboxItem", Oe = S.forwardRef((e, n) => {
	let { checked: r = !1, onCheckedChange: i, ...a } = e;
	return /* @__PURE__ */ T(Fe, {
		scope: e.__scopeMenu,
		checked: r,
		children: /* @__PURE__ */ T(q, {
			role: "menuitemcheckbox",
			"aria-checked": X(r) ? "mixed" : r,
			...a,
			ref: n,
			"data-state": Xe(r),
			onSelect: t(a.onSelect, () => i?.(X(r) ? !0 : !r), { checkForDefaultPrevented: !1 })
		})
	});
});
Oe.displayName = De;
var ke = "MenuRadioGroup", [Ae, je] = N(ke, {
	value: void 0,
	onValueChange: () => {}
}), Me = S.forwardRef((e, t) => {
	let { value: n, onValueChange: r, ...i } = e, a = m(r);
	return /* @__PURE__ */ T(Ae, {
		scope: e.__scopeMenu,
		value: n,
		onValueChange: a,
		children: /* @__PURE__ */ T(G, {
			...i,
			ref: t
		})
	});
});
Me.displayName = ke;
var Ne = "MenuRadioItem", Pe = S.forwardRef((e, n) => {
	let { value: r, ...i } = e, a = je(Ne, e.__scopeMenu), o = r === a.value;
	return /* @__PURE__ */ T(Fe, {
		scope: e.__scopeMenu,
		checked: o,
		children: /* @__PURE__ */ T(q, {
			role: "menuitemradio",
			"aria-checked": o,
			...i,
			ref: n,
			"data-state": Xe(o),
			onSelect: t(i.onSelect, () => a.onValueChange?.(r), { checkForDefaultPrevented: !1 })
		})
	});
});
Pe.displayName = Ne;
var J = "MenuItemIndicator", [Fe, Ie] = N(J, { checked: !1 }), Le = S.forwardRef((e, t) => {
	let { __scopeMenu: n, forceMount: r, ...i } = e, a = Ie(J, n);
	return /* @__PURE__ */ T(l, {
		present: r || X(a.checked) || a.checked === !0,
		children: /* @__PURE__ */ T(s.span, {
			...i,
			ref: t,
			"data-state": Xe(a.checked)
		})
	});
});
Le.displayName = J;
var Re = "MenuSeparator", ze = S.forwardRef((e, t) => {
	let { __scopeMenu: n, ...r } = e;
	return /* @__PURE__ */ T(s.div, {
		role: "separator",
		"aria-orientation": "horizontal",
		...r,
		ref: t
	});
});
ze.displayName = Re;
var Be = "MenuArrow", Ve = S.forwardRef((e, t) => {
	let { __scopeMenu: n, ...r } = e;
	return /* @__PURE__ */ T(y, {
		...F(n),
		...r,
		ref: t
	});
});
Ve.displayName = Be;
var He = "MenuSub", [Ue, We] = N(He), Ge = (e) => {
	let { __scopeMenu: t, children: n, open: r = !1, onOpenChange: i } = e, a = L(He, t), o = F(t), [s, c] = S.useState(null), [l, d] = S.useState(null), f = m(i);
	return S.useEffect(() => (a.open === !1 && f(!1), () => f(!1)), [a.open, f]), /* @__PURE__ */ T(v, {
		...o,
		children: /* @__PURE__ */ T(I, {
			scope: t,
			open: r,
			onOpenChange: f,
			content: l,
			onContentChange: d,
			children: /* @__PURE__ */ T(Ue, {
				scope: t,
				contentId: u(),
				triggerId: u(),
				trigger: s,
				onTriggerChange: c,
				children: n
			})
		})
	});
};
Ge.displayName = He;
var Y = "MenuSubTrigger", Ke = S.forwardRef((e, n) => {
	let i = L(Y, e.__scopeMenu), a = z(Y, e.__scopeMenu), o = We(Y, e.__scopeMenu), s = U(Y, e.__scopeMenu), c = S.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: u } = s, d = { __scopeMenu: e.__scopeMenu }, f = S.useCallback(() => {
		c.current && window.clearTimeout(c.current), c.current = null;
	}, []);
	return S.useEffect(() => f, [f]), S.useEffect(() => {
		let e = l.current;
		return () => {
			window.clearTimeout(e), u(null);
		};
	}, [l, u]), /* @__PURE__ */ T(B, {
		asChild: !0,
		...d,
		children: /* @__PURE__ */ T(Ee, {
			id: o.triggerId,
			"aria-haspopup": "menu",
			"aria-expanded": i.open,
			"aria-controls": o.contentId,
			"data-state": Ye(i.open),
			...e,
			ref: r(n, o.onTriggerChange),
			onClick: (t) => {
				e.onClick?.(t), !(e.disabled || t.defaultPrevented) && (t.currentTarget.focus(), i.open || i.onOpenChange(!0));
			},
			onPointerMove: t(e.onPointerMove, Z((t) => {
				s.onItemEnter(t), !t.defaultPrevented && !e.disabled && !i.open && !c.current && (s.onPointerGraceIntentChange(null), c.current = window.setTimeout(() => {
					i.onOpenChange(!0), f();
				}, 100));
			})),
			onPointerLeave: t(e.onPointerLeave, Z((e) => {
				f();
				let t = i.content?.getBoundingClientRect();
				if (t) {
					let n = i.content?.dataset.side, r = n === "right", a = r ? -5 : 5, o = t[r ? "left" : "right"], c = t[r ? "right" : "left"];
					s.onPointerGraceIntentChange({
						area: [
							{
								x: e.clientX + a,
								y: e.clientY
							},
							{
								x: o,
								y: t.top
							},
							{
								x: c,
								y: t.top
							},
							{
								x: c,
								y: t.bottom
							},
							{
								x: o,
								y: t.bottom
							}
						],
						side: n
					}), window.clearTimeout(l.current), l.current = window.setTimeout(() => s.onPointerGraceIntentChange(null), 300);
				} else {
					if (s.onTriggerLeave(e), e.defaultPrevented) return;
					s.onPointerGraceIntentChange(null);
				}
			})),
			onKeyDown: t(e.onKeyDown, (t) => {
				let n = s.searchRef.current !== "";
				e.disabled || n && t.key === " " || k[a.dir].includes(t.key) && (i.onOpenChange(!0), i.content?.focus(), t.preventDefault());
			})
		})
	});
});
Ke.displayName = Y;
var qe = "MenuSubContent", Je = S.forwardRef((e, n) => {
	let r = he(H, e.__scopeMenu), { forceMount: i = r.forceMount, ...o } = e, s = L(H, e.__scopeMenu), c = z(H, e.__scopeMenu), u = We(qe, e.__scopeMenu), d = S.useRef(null), f = a(n, d);
	return /* @__PURE__ */ T(j.Provider, {
		scope: e.__scopeMenu,
		children: /* @__PURE__ */ T(l, {
			present: i || s.open,
			children: /* @__PURE__ */ T(j.Slot, {
				scope: e.__scopeMenu,
				children: /* @__PURE__ */ T(W, {
					id: u.contentId,
					"aria-labelledby": u.triggerId,
					...o,
					ref: f,
					align: "start",
					side: c.dir === "rtl" ? "left" : "right",
					disableOutsidePointerEvents: !1,
					disableOutsideScroll: !1,
					trapFocus: !1,
					onOpenAutoFocus: (e) => {
						c.isUsingKeyboardRef.current && d.current?.focus(), e.preventDefault();
					},
					onCloseAutoFocus: (e) => e.preventDefault(),
					onFocusOutside: t(e.onFocusOutside, (e) => {
						e.target !== u.trigger && s.onOpenChange(!1);
					}),
					onEscapeKeyDown: t(e.onEscapeKeyDown, (e) => {
						c.onClose(), e.preventDefault();
					}),
					onKeyDown: t(e.onKeyDown, (e) => {
						let t = e.currentTarget.contains(e.target), n = le[c.dir].includes(e.key);
						t && n && (s.onOpenChange(!1), u.trigger?.focus(), e.preventDefault());
					})
				})
			})
		})
	});
});
Je.displayName = qe;
function Ye(e) {
	return e ? "open" : "closed";
}
function X(e) {
	return e === "indeterminate";
}
function Xe(e) {
	return X(e) ? "indeterminate" : e ? "checked" : "unchecked";
}
function Ze(e) {
	let t = document.activeElement;
	for (let n of e) if (n === t || (n.focus(), document.activeElement !== t)) return;
}
function Qe(e, t) {
	return e.map((n, r) => e[(t + r) % e.length]);
}
function $e(e, t, n) {
	let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = Qe(e, Math.max(i, 0));
	r.length === 1 && (a = a.filter((e) => e !== n));
	let o = a.find((e) => e.toLowerCase().startsWith(r.toLowerCase()));
	return o === n ? void 0 : o;
}
function et(e, t) {
	let { x: n, y: r } = e, i = !1;
	for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
		let o = t[e], s = t[a], c = o.x, l = o.y, u = s.x, d = s.y;
		l > r != d > r && n < (u - c) * (r - l) / (d - l) + c && (i = !i);
	}
	return i;
}
function tt(e, t) {
	return t ? et({
		x: e.clientX,
		y: e.clientY
	}, t) : !1;
}
function Z(e) {
	return (t) => t.pointerType === "mouse" ? e(t) : void 0;
}
var nt = fe, rt = B, it = ge, at = ve, ot = G, st = we, ct = q, lt = Oe, ut = Me, dt = Pe, ft = Le, pt = ze, mt = Ve, ht = Ge, gt = Ke, _t = Je, Q = "DropdownMenu", [vt, yt] = e(Q, [P]), $ = P(), [bt, xt] = vt(Q), St = (e) => {
	let { __scopeDropdownMenu: t, children: r, dir: i, open: a, defaultOpen: o, onOpenChange: s, modal: c = !0 } = e, l = $(t), d = S.useRef(null), [f, p] = n({
		prop: a,
		defaultProp: o ?? !1,
		onChange: s,
		caller: Q
	});
	return /* @__PURE__ */ T(bt, {
		scope: t,
		triggerId: u(),
		triggerRef: d,
		contentId: u(),
		open: f,
		onOpenChange: p,
		onOpenToggle: S.useCallback(() => p((e) => !e), [p]),
		modal: c,
		children: /* @__PURE__ */ T(nt, {
			...l,
			open: f,
			onOpenChange: p,
			dir: i,
			modal: c,
			children: r
		})
	});
};
St.displayName = Q;
var Ct = "DropdownMenuTrigger", wt = S.forwardRef((e, n) => {
	let { __scopeDropdownMenu: i, disabled: a = !1, ...o } = e, c = xt(Ct, i);
	return /* @__PURE__ */ T(rt, {
		asChild: !0,
		...$(i),
		children: /* @__PURE__ */ T(s.button, {
			type: "button",
			id: c.triggerId,
			"aria-haspopup": "menu",
			"aria-expanded": c.open,
			"aria-controls": c.open ? c.contentId : void 0,
			"data-state": c.open ? "open" : "closed",
			"data-disabled": a ? "" : void 0,
			disabled: a,
			...o,
			ref: r(n, c.triggerRef),
			onPointerDown: t(e.onPointerDown, (e) => {
				!a && e.button === 0 && e.ctrlKey === !1 && (c.onOpenToggle(), c.open || e.preventDefault());
			}),
			onKeyDown: t(e.onKeyDown, (e) => {
				a || (["Enter", " "].includes(e.key) && c.onOpenToggle(), e.key === "ArrowDown" && c.onOpenChange(!0), [
					"Enter",
					" ",
					"ArrowDown"
				].includes(e.key) && e.preventDefault());
			})
		})
	});
});
wt.displayName = Ct;
var Tt = "DropdownMenuPortal", Et = (e) => {
	let { __scopeDropdownMenu: t, ...n } = e;
	return /* @__PURE__ */ T(it, {
		...$(t),
		...n
	});
};
Et.displayName = Tt;
var Dt = "DropdownMenuContent", Ot = S.forwardRef((e, n) => {
	let { __scopeDropdownMenu: r, ...i } = e, a = xt(Dt, r), o = $(r), s = S.useRef(!1);
	return /* @__PURE__ */ T(at, {
		id: a.contentId,
		"aria-labelledby": a.triggerId,
		...o,
		...i,
		ref: n,
		onCloseAutoFocus: t(e.onCloseAutoFocus, (e) => {
			s.current || a.triggerRef.current?.focus(), s.current = !1, e.preventDefault();
		}),
		onInteractOutside: t(e.onInteractOutside, (e) => {
			let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
			(!a.modal || r) && (s.current = !0);
		}),
		style: {
			...e.style,
			"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
			"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
			"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
			"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
			"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
		}
	});
});
Ot.displayName = Dt;
var kt = "DropdownMenuGroup", At = S.forwardRef((e, t) => {
	let { __scopeDropdownMenu: n, ...r } = e;
	return /* @__PURE__ */ T(ot, {
		...$(n),
		...r,
		ref: t
	});
});
At.displayName = kt;
var jt = "DropdownMenuLabel", Mt = S.forwardRef((e, t) => {
	let { __scopeDropdownMenu: n, ...r } = e;
	return /* @__PURE__ */ T(st, {
		...$(n),
		...r,
		ref: t
	});
});
Mt.displayName = jt;
var Nt = "DropdownMenuItem", Pt = S.forwardRef((e, t) => {
	let { __scopeDropdownMenu: n, ...r } = e;
	return /* @__PURE__ */ T(ct, {
		...$(n),
		...r,
		ref: t
	});
});
Pt.displayName = Nt;
var Ft = "DropdownMenuCheckboxItem", It = S.forwardRef((e, t) => {
	let { __scopeDropdownMenu: n, ...r } = e;
	return /* @__PURE__ */ T(lt, {
		...$(n),
		...r,
		ref: t
	});
});
It.displayName = Ft;
var Lt = "DropdownMenuRadioGroup", Rt = S.forwardRef((e, t) => {
	let { __scopeDropdownMenu: n, ...r } = e;
	return /* @__PURE__ */ T(ut, {
		...$(n),
		...r,
		ref: t
	});
});
Rt.displayName = Lt;
var zt = "DropdownMenuRadioItem", Bt = S.forwardRef((e, t) => {
	let { __scopeDropdownMenu: n, ...r } = e;
	return /* @__PURE__ */ T(dt, {
		...$(n),
		...r,
		ref: t
	});
});
Bt.displayName = zt;
var Vt = "DropdownMenuItemIndicator", Ht = S.forwardRef((e, t) => {
	let { __scopeDropdownMenu: n, ...r } = e;
	return /* @__PURE__ */ T(ft, {
		...$(n),
		...r,
		ref: t
	});
});
Ht.displayName = Vt;
var Ut = "DropdownMenuSeparator", Wt = S.forwardRef((e, t) => {
	let { __scopeDropdownMenu: n, ...r } = e;
	return /* @__PURE__ */ T(pt, {
		...$(n),
		...r,
		ref: t
	});
});
Wt.displayName = Ut;
var Gt = "DropdownMenuArrow", Kt = S.forwardRef((e, t) => {
	let { __scopeDropdownMenu: n, ...r } = e;
	return /* @__PURE__ */ T(mt, {
		...$(n),
		...r,
		ref: t
	});
});
Kt.displayName = Gt;
var qt = (e) => {
	let { __scopeDropdownMenu: t, children: r, open: i, onOpenChange: a, defaultOpen: o } = e, s = $(t), [c, l] = n({
		prop: i,
		defaultProp: o ?? !1,
		onChange: a,
		caller: "DropdownMenuSub"
	});
	return /* @__PURE__ */ T(ht, {
		...s,
		open: c,
		onOpenChange: l,
		children: r
	});
}, Jt = "DropdownMenuSubTrigger", Yt = S.forwardRef((e, t) => {
	let { __scopeDropdownMenu: n, ...r } = e;
	return /* @__PURE__ */ T(gt, {
		...$(n),
		...r,
		ref: t
	});
});
Yt.displayName = Jt;
var Xt = "DropdownMenuSubContent", Zt = S.forwardRef((e, t) => {
	let { __scopeDropdownMenu: n, ...r } = e;
	return /* @__PURE__ */ T(_t, {
		...$(n),
		...r,
		ref: t,
		style: {
			...e.style,
			"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
			"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
			"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
			"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
			"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
		}
	});
});
Zt.displayName = Xt;
var Qt = St, $t = wt, en = Et, tn = Ot, nn = At, rn = Mt, an = Pt, on = Wt, sn = qt, cn = Yt, ln = Zt, un = Qt, dn = C.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ T($t, {
	...n,
	ref: r,
	className: f("focus:outline-hidden text-primary-black dark:text-primary-gray-100", e),
	children: t
}));
dn.displayName = $t.displayName;
var fn = nn, pn = en, mn = sn, hn = C.forwardRef(({ className: e, inset: t, children: n, ...r }, i) => /* @__PURE__ */ E(cn, {
	...r,
	ref: i,
	className: f("flex cursor-default gap-2 select-none items-center rounded-none px-2 py-1.5 text-base outline-hidden focus:bg-primary-blue-100 focus:font-bold data-[state=open]:bg-primary-gray-200 dark:data-[state=open]:bg-primary-gray-600 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", t && "pl-8", e),
	children: [n, /* @__PURE__ */ T(p, { className: "ml-auto" })]
}));
hn.displayName = cn.displayName;
var gn = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ T(ln, {
	...t,
	ref: n,
	className: f("z-50 min-w-[8rem] overflow-hidden rounded-none border border-primary-gray-200 bg-primary-gray-100 dark:bg-primary-gray-650 p-1 text-primary-black dark:text-primary-white 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)
}));
gn.displayName = ln.displayName;
var _n = C.forwardRef(({ className: e, sideOffset: t = 4, inPortal: n = !0, ...r }, i) => {
	let a = /* @__PURE__ */ T(w, { children: /* @__PURE__ */ T(tn, {
		...r,
		ref: i,
		sideOffset: t,
		className: f("z-50 min-w-[8rem] overflow-hidden rounded-none border border-primary-gray-200 bg-primary-gray-100 dark:bg-primary-gray-650 p-1 text-primary-black dark:text-primary-white 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)
	}) });
	return n ? /* @__PURE__ */ T(en, { children: a }) : a;
});
_n.displayName = tn.displayName;
var vn = C.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ T(an, {
	...n,
	ref: r,
	className: f("relative flex cursor-default select-none items-center gap-2 rounded-none px-2 py-1.5 text-base outline-hidden transition-colors focus:bg-primary-gray-300 dark:focus:bg-primary-gray-550 data-disabled:pointer-events-none data-disabled:opacity-25 [&>svg]:size-4 [&>svg]:shrink-0", t && "pl-8", e)
}));
vn.displayName = an.displayName;
var yn = C.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ T(rn, {
	...n,
	ref: r,
	className: f("px-2 py-1.5 text-base uppercase font-semibold dark:text-primary-white", t && "pl-8", e)
}));
yn.displayName = rn.displayName;
var bn = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ T(on, {
	...t,
	ref: n,
	className: f("-mx-1 my-1 h-px bg-primary-gray-400 dark:bg-primary-gray-500", e)
}));
bn.displayName = on.displayName;
//#endregion
export { yn as a, mn as c, dn as d, vn as i, gn as l, _n as n, pn as o, fn as r, bn as s, un as t, hn as u };

//# sourceMappingURL=dropdown-menu-Bw5IO6oS.js.map