import { h as e } from "./chunk.BlbRoQQ3.js";
import { a9 as t, ab as n, ad as r, ae as i, af as a, ag as o, ai as s, aj as c, am as l, an as u, ao as d, aq as f, ar as p, p as m, q as h, r as g, s as _, u as v, w as y } from "./system.DbMQd1I1.js";
import { b } from "./jsx-runtime.DF4K5VCp.js";
import { i as x, j as S, k as ee, l as C, m as w, p as T, q as E, r as te } from "./theme.HtT_2QlC.js";
import { c as D, e as ne, f as O, g as k, m as re } from "./text.CvSXsyI-.js";
import * as A from "react";
import j, { useState as ie } from "react";
var M = /* @__PURE__ */ e(b(), 1), N = "focusScope.autoFocusOnMount", ae = "focusScope.autoFocusOnUnmount", oe = {
	bubbles: !1,
	cancelable: !0
}, se = "FocusScope", ce = A.forwardRef((e, t) => {
	let { loop: n = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: o,...s } = e, [c, u] = A.useState(null), d = r(a), f = r(o), m = A.useRef(null), h = p(t, (e) => u(e)), g = A.useRef({
		paused: !1,
		pause() {
			this.paused = !0;
		},
		resume() {
			this.paused = !1;
		}
	}).current;
	A.useEffect(() => {
		if (i) {
			let e = function(e) {
				if (g.paused || !c) return;
				let t = e.target;
				c.contains(t) ? m.current = t : F(m.current, { select: !0 });
			}, t = function(e) {
				if (g.paused || !c) return;
				let t = e.relatedTarget;
				t !== null && (c.contains(t) || F(m.current, { select: !0 }));
			}, n = function(e) {
				let t = document.activeElement;
				if (t === document.body) for (let t of e) t.removedNodes.length > 0 && F(c);
			};
			document.addEventListener("focusin", e), document.addEventListener("focusout", t);
			let r = new MutationObserver(n);
			return c && r.observe(c, {
				childList: !0,
				subtree: !0
			}), () => {
				document.removeEventListener("focusin", e), document.removeEventListener("focusout", t), r.disconnect();
			};
		}
	}, [
		i,
		c,
		g.paused
	]), A.useEffect(() => {
		if (c) {
			me.add(g);
			let e = document.activeElement, t = c.contains(e);
			if (!t) {
				let t = new CustomEvent(N, oe);
				c.addEventListener(N, d), c.dispatchEvent(t), t.defaultPrevented || (P(_e(ue(c)), { select: !0 }), document.activeElement === e && F(c));
			}
			return () => {
				c.removeEventListener(N, d), setTimeout(() => {
					let t = new CustomEvent(ae, oe);
					c.addEventListener(ae, f), c.dispatchEvent(t), t.defaultPrevented || F(e ?? document.body, { select: !0 }), c.removeEventListener(ae, f), me.remove(g);
				}, 0);
			};
		}
	}, [
		c,
		d,
		f,
		g
	]);
	let _ = A.useCallback((e) => {
		if (!n && !i || g.paused) return;
		let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, r = document.activeElement;
		if (t && r) {
			let t = e.currentTarget, [i, a] = le(t), o = i && a;
			o ? !e.shiftKey && r === a ? (e.preventDefault(), n && F(i, { select: !0 })) : e.shiftKey && r === i && (e.preventDefault(), n && F(a, { select: !0 })) : r === t && e.preventDefault();
		}
	}, [
		n,
		i,
		g.paused
	]);
	return /* @__PURE__ */ (0, M.jsx)(l.div, {
		tabIndex: -1,
		...s,
		ref: h,
		onKeyDown: _
	});
});
ce.displayName = se;
function P(e, { select: t = !1 } = {}) {
	let n = document.activeElement;
	for (let r of e) if (F(r, { select: t }), document.activeElement !== n) return;
}
function le(e) {
	let t = ue(e), n = de(t, e), r = de(t.reverse(), e);
	return [n, r];
}
function ue(e) {
	let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
		let t = e.tagName === "INPUT" && e.type === "hidden";
		return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
	} });
	for (; n.nextNode();) t.push(n.currentNode);
	return t;
}
function de(e, t) {
	for (let n of e) if (!fe(n, { upTo: t })) return n;
}
function fe(e, { upTo: t }) {
	if (getComputedStyle(e).visibility === "hidden") return !0;
	for (; e;) {
		if (t !== void 0 && e === t) return !1;
		if (getComputedStyle(e).display === "none") return !0;
		e = e.parentElement;
	}
	return !1;
}
function pe(e) {
	return e instanceof HTMLInputElement && "select" in e;
}
function F(e, { select: t = !1 } = {}) {
	if (e && e.focus) {
		let n = document.activeElement;
		e.focus({ preventScroll: !0 }), e !== n && pe(e) && t && e.select();
	}
}
var me = he();
function he() {
	let e = [];
	return {
		add(t) {
			let n = e[0];
			t !== n && n?.pause(), e = ge(e, t), e.unshift(t);
		},
		remove(t) {
			e = ge(e, t), e[0]?.resume();
		}
	};
}
function ge(e, t) {
	let n = [...e], r = n.indexOf(t);
	return r !== -1 && n.splice(r, 1), n;
}
function _e(e) {
	return e.filter((e) => e.tagName !== "A");
}
var ve = 0;
function ye() {
	A.useEffect(() => {
		let e = document.querySelectorAll("[data-radix-focus-guard]");
		return document.body.insertAdjacentElement("afterbegin", e[0] ?? be()), document.body.insertAdjacentElement("beforeend", e[1] ?? be()), ve++, () => {
			ve === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((e) => e.remove()), ve--;
		};
	}, []);
}
function be() {
	let e = document.createElement("span");
	return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none", e;
}
var I = function() {
	return I = Object.assign || function(e) {
		for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
		return e;
	}, I.apply(this, arguments);
};
function xe(e, t) {
	var n = {};
	for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
	if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
	return n;
}
function Se(e, t, n) {
	if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
	return e.concat(a || Array.prototype.slice.call(t));
}
var Ce = "right-scroll-bar-position", we = "width-before-scroll-bar", Te = "with-scroll-bars-hidden", Ee = "--removed-body-scroll-bar-size";
function De(e, t) {
	return typeof e == "function" ? e(t) : e && (e.current = t), e;
}
function Oe(e, t) {
	var n = ie(function() {
		return {
			value: e,
			callback: t,
			facade: {
				get current() {
					return n.value;
				},
				set current(e) {
					var t = n.value;
					t !== e && (n.value = e, n.callback(e, t));
				}
			}
		};
	})[0];
	return n.callback = t, n.facade;
}
var ke = typeof window < "u" ? A.useLayoutEffect : A.useEffect, Ae = /* @__PURE__ */ new WeakMap();
function je(e, t) {
	var n = Oe(t || null, function(t) {
		return e.forEach(function(e) {
			return De(e, t);
		});
	});
	return ke(function() {
		var t = Ae.get(n);
		if (t) {
			var r = new Set(t), i = new Set(e), a = n.current;
			r.forEach(function(e) {
				i.has(e) || De(e, null);
			}), i.forEach(function(e) {
				r.has(e) || De(e, a);
			});
		}
		Ae.set(n, e);
	}, [e]), n;
}
function Me(e) {
	return e;
}
function Ne(e, t) {
	t === void 0 && (t = Me);
	var n = [], r = !1, i = {
		read: function() {
			if (r) throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
			return n.length ? n[n.length - 1] : e;
		},
		useMedium: function(e) {
			var i = t(e, r);
			return n.push(i), function() {
				n = n.filter(function(e) {
					return e !== i;
				});
			};
		},
		assignSyncMedium: function(e) {
			for (r = !0; n.length;) {
				var t = n;
				n = [], t.forEach(e);
			}
			n = {
				push: function(t) {
					return e(t);
				},
				filter: function() {
					return n;
				}
			};
		},
		assignMedium: function(e) {
			r = !0;
			var t = [];
			if (n.length) {
				var i = n;
				n = [], i.forEach(e), t = n;
			}
			var a = function() {
				var n = t;
				t = [], n.forEach(e);
			}, o = function() {
				return Promise.resolve().then(a);
			};
			o(), n = {
				push: function(e) {
					t.push(e), o();
				},
				filter: function(e) {
					return t = t.filter(e), n;
				}
			};
		}
	};
	return i;
}
function Pe(e) {
	e === void 0 && (e = {});
	var t = Ne(null);
	return t.options = I({
		async: !0,
		ssr: !1
	}, e), t;
}
var Fe = function(e) {
	var t = e.sideCar, n = xe(e, ["sideCar"]);
	if (!t) throw Error("Sidecar: please provide `sideCar` property to import the right car");
	var r = t.read();
	if (!r) throw Error("Sidecar medium not found");
	return A.createElement(r, I({}, n));
};
Fe.isSideCarExport = !0;
function Ie(e, t) {
	return e.useMedium(t), Fe;
}
var Le = Pe(), Re = function() {}, ze = A.forwardRef(function(e, t) {
	var n = A.useRef(null), r = A.useState({
		onScrollCapture: Re,
		onWheelCapture: Re,
		onTouchMoveCapture: Re
	}), i = r[0], a = r[1], o = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, p = e.noIsolation, m = e.inert, h = e.allowPinchZoom, g = e.as, _ = g === void 0 ? "div" : g, v = e.gapMode, y = xe(e, [
		"forwardProps",
		"children",
		"className",
		"removeScrollBar",
		"enabled",
		"shards",
		"sideCar",
		"noIsolation",
		"inert",
		"allowPinchZoom",
		"as",
		"gapMode"
	]), b = f, x = je([n, t]), S = I(I({}, y), i);
	return A.createElement(A.Fragment, null, u && A.createElement(b, {
		sideCar: Le,
		removeScrollBar: l,
		shards: d,
		noIsolation: p,
		inert: m,
		setCallbacks: a,
		allowPinchZoom: !!h,
		lockRef: n,
		gapMode: v
	}), o ? A.cloneElement(A.Children.only(s), I(I({}, S), { ref: x })) : A.createElement(_, I({}, S, {
		className: c,
		ref: x
	}), s));
});
ze.defaultProps = {
	enabled: !0,
	removeScrollBar: !0,
	inert: !1
}, ze.classNames = {
	fullWidth: we,
	zeroRight: Ce
};
var Be, Ve = function() {
	if (Be) return Be;
	if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
};
function He() {
	if (!document) return null;
	var e = document.createElement("style");
	e.type = "text/css";
	var t = Ve();
	return t && e.setAttribute("nonce", t), e;
}
function Ue(e, t) {
	e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
}
function We(e) {
	var t = document.head || document.getElementsByTagName("head")[0];
	t.appendChild(e);
}
var Ge = function() {
	var e = 0, t = null;
	return {
		add: function(n) {
			e == 0 && (t = He()) && (Ue(t, n), We(t)), e++;
		},
		remove: function() {
			e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
		}
	};
}, Ke = function() {
	var e = Ge();
	return function(t, n) {
		A.useEffect(function() {
			return e.add(t), function() {
				e.remove();
			};
		}, [t && n]);
	};
}, qe = function() {
	var e = Ke(), t = function(t) {
		var n = t.styles, r = t.dynamic;
		return e(n, r), null;
	};
	return t;
}, Je = {
	left: 0,
	top: 0,
	right: 0,
	gap: 0
}, Ye = function(e) {
	return parseInt(e || "", 10) || 0;
}, Xe = function(e) {
	var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
	return [
		Ye(n),
		Ye(r),
		Ye(i)
	];
}, Ze = function(e) {
	if (e === void 0 && (e = "margin"), typeof window > "u") return Je;
	var t = Xe(e), n = document.documentElement.clientWidth, r = window.innerWidth;
	return {
		left: t[0],
		top: t[1],
		right: t[2],
		gap: Math.max(0, r - n + t[2] - t[0])
	};
}, Qe = qe(), L = "data-scroll-locked", $e = function(e, t, n, r) {
	var i = e.left, a = e.top, o = e.right, s = e.gap;
	return n === void 0 && (n = "margin"), `
  .${Te} {
   overflow: hidden ${r};
   padding-right: ${s}px ${r};
  }
  body[${L}] {
    overflow: hidden ${r};
    overscroll-behavior: contain;
    ${[
		t && `position: relative ${r};`,
		n === "margin" && `
    padding-left: ${i}px;
    padding-top: ${a}px;
    padding-right: ${o}px;
    margin-left:0;
    margin-top:0;
    margin-right: ${s}px ${r};
    `,
		n === "padding" && `padding-right: ${s}px ${r};`
	].filter(Boolean).join("")}
  }
  
  .${Ce} {
    right: ${s}px ${r};
  }
  
  .${we} {
    margin-right: ${s}px ${r};
  }
  
  .${Ce} .${Ce} {
    right: 0 ${r};
  }
  
  .${we} .${we} {
    margin-right: 0 ${r};
  }
  
  body[${L}] {
    ${Ee}: ${s}px;
  }
`;
}, et = function() {
	var e = parseInt(document.body.getAttribute(L) || "0", 10);
	return isFinite(e) ? e : 0;
}, tt = function() {
	A.useEffect(function() {
		return document.body.setAttribute(L, (et() + 1).toString()), function() {
			var e = et() - 1;
			e <= 0 ? document.body.removeAttribute(L) : document.body.setAttribute(L, e.toString());
		};
	}, []);
}, nt = function(e) {
	var t = e.noRelative, n = e.noImportant, r = e.gapMode, i = r === void 0 ? "margin" : r;
	tt();
	var a = A.useMemo(function() {
		return Ze(i);
	}, [i]);
	return A.createElement(Qe, { styles: $e(a, !t, i, n ? "" : "!important") });
}, rt = !1;
if (typeof window < "u") try {
	var it = Object.defineProperty({}, "passive", { get: function() {
		return rt = !0, !0;
	} });
	window.addEventListener("test", it, it), window.removeEventListener("test", it, it);
} catch {
	rt = !1;
}
var R = rt ? { passive: !1 } : !1, at = function(e) {
	return e.tagName === "TEXTAREA";
}, ot = function(e, t) {
	var n = window.getComputedStyle(e);
	return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !at(e) && n[t] === "visible");
}, st = function(e) {
	return ot(e, "overflowY");
}, ct = function(e) {
	return ot(e, "overflowX");
}, lt = function(e, t) {
	var n = t.ownerDocument, r = t;
	do {
		typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
		var i = ft(e, r);
		if (i) {
			var a = pt(e, r), o = a[1], s = a[2];
			if (o > s) return !0;
		}
		r = r.parentNode;
	} while (r && r !== n.body);
	return !1;
}, ut = function(e) {
	var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
	return [
		t,
		n,
		r
	];
}, dt = function(e) {
	var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
	return [
		t,
		n,
		r
	];
}, ft = function(e, t) {
	return e === "v" ? st(t) : ct(t);
}, pt = function(e, t) {
	return e === "v" ? ut(t) : dt(t);
}, mt = function(e, t) {
	return e === "h" && t === "rtl" ? -1 : 1;
}, ht = function(e, t, n, r, i) {
	var a = mt(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
	do {
		var p = pt(e, s), m = p[0], h = p[1], g = p[2], _ = h - g - a * m;
		(m || _) && ft(e, s) && (d += _, f += m), s = s instanceof ShadowRoot ? s.host : s.parentNode;
	} while (!c && s !== document.body || c && (t.contains(s) || t === s));
	return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
}, gt = function(e) {
	return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
}, _t = function(e) {
	return [e.deltaX, e.deltaY];
}, vt = function(e) {
	return e && "current" in e ? e.current : e;
}, yt = function(e, t) {
	return e[0] === t[0] && e[1] === t[1];
}, bt = function(e) {
	return `
  .block-interactivity-${e} {pointer-events: none;}
  .allow-interactivity-${e} {pointer-events: all;}
`;
}, xt = 0, z = [];
function St(e) {
	var t = A.useRef([]), n = A.useRef([0, 0]), r = A.useRef(), i = A.useState(xt++)[0], a = A.useState(qe)[0], o = A.useRef(e);
	A.useEffect(function() {
		o.current = e;
	}, [e]), A.useEffect(function() {
		if (e.inert) {
			document.body.classList.add(`block-interactivity-${i}`);
			var t = Se([e.lockRef.current], (e.shards || []).map(vt), !0).filter(Boolean);
			return t.forEach(function(e) {
				return e.classList.add(`allow-interactivity-${i}`);
			}), function() {
				document.body.classList.remove(`block-interactivity-${i}`), t.forEach(function(e) {
					return e.classList.remove(`allow-interactivity-${i}`);
				});
			};
		}
	}, [
		e.inert,
		e.lockRef.current,
		e.shards
	]);
	var s = A.useCallback(function(e, t) {
		if ("touches" in e && e.touches.length === 2) return !o.current.allowPinchZoom;
		var i = gt(e), a = n.current, s = "deltaX" in e ? e.deltaX : a[0] - i[0], c = "deltaY" in e ? e.deltaY : a[1] - i[1], l, u = e.target, d = Math.abs(s) > Math.abs(c) ? "h" : "v";
		if ("touches" in e && d === "h" && u.type === "range") return !1;
		var f = lt(d, u);
		if (!f) return !0;
		if (f ? l = d : (l = d === "v" ? "h" : "v", f = lt(d, u)), !f) return !1;
		if (!r.current && "changedTouches" in e && (s || c) && (r.current = l), !l) return !0;
		var p = r.current || l;
		return ht(p, t, e, p === "h" ? s : c, !0);
	}, []), c = A.useCallback(function(e) {
		var n = e;
		if (!(!z.length || z[z.length - 1] !== a)) {
			var r = "deltaY" in n ? _t(n) : gt(n), i = t.current.filter(function(e) {
				return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) && yt(e.delta, r);
			})[0];
			if (i && i.should) {
				n.cancelable && n.preventDefault();
				return;
			}
			if (!i) {
				var c = (o.current.shards || []).map(vt).filter(Boolean).filter(function(e) {
					return e.contains(n.target);
				}), l = c.length > 0 ? s(n, c[0]) : !o.current.noIsolation;
				l && n.cancelable && n.preventDefault();
			}
		}
	}, []), l = A.useCallback(function(e, n, r, i) {
		var a = {
			name: e,
			delta: n,
			target: r,
			should: i,
			shadowParent: Ct(r)
		};
		t.current.push(a), setTimeout(function() {
			t.current = t.current.filter(function(e) {
				return e !== a;
			});
		}, 1);
	}, []), u = A.useCallback(function(e) {
		n.current = gt(e), r.current = void 0;
	}, []), d = A.useCallback(function(t) {
		l(t.type, _t(t), t.target, s(t, e.lockRef.current));
	}, []), f = A.useCallback(function(t) {
		l(t.type, gt(t), t.target, s(t, e.lockRef.current));
	}, []);
	A.useEffect(function() {
		return z.push(a), e.setCallbacks({
			onScrollCapture: d,
			onWheelCapture: d,
			onTouchMoveCapture: f
		}), document.addEventListener("wheel", c, R), document.addEventListener("touchmove", c, R), document.addEventListener("touchstart", u, R), function() {
			z = z.filter(function(e) {
				return e !== a;
			}), document.removeEventListener("wheel", c, R), document.removeEventListener("touchmove", c, R), document.removeEventListener("touchstart", u, R);
		};
	}, []);
	var p = e.removeScrollBar, m = e.inert;
	return A.createElement(A.Fragment, null, m ? A.createElement(a, { styles: bt(i) }) : null, p ? A.createElement(nt, { gapMode: e.gapMode }) : null);
}
function Ct(e) {
	for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
	return t;
}
var wt = Ie(Le, St), Tt = A.forwardRef(function(e, t) {
	return A.createElement(ze, I({}, e, {
		ref: t,
		sideCar: wt
	}));
});
Tt.classNames = ze.classNames;
var Et = function(e) {
	if (typeof document > "u") return null;
	var t = Array.isArray(e) ? e[0] : e;
	return t.ownerDocument.body;
}, B = /* @__PURE__ */ new WeakMap(), Dt = /* @__PURE__ */ new WeakMap(), Ot = {}, kt = 0, At = function(e) {
	return e && (e.host || At(e.parentNode));
}, jt = function(e, t) {
	return t.map(function(t) {
		if (e.contains(t)) return t;
		var n = At(t);
		return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
	}).filter(function(e) {
		return !!e;
	});
}, Mt = function(e, t, n, r) {
	var i = jt(t, Array.isArray(e) ? e : [e]);
	Ot[n] || (Ot[n] = /* @__PURE__ */ new WeakMap());
	var a = Ot[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
		!e || s.has(e) || (s.add(e), l(e.parentNode));
	};
	i.forEach(l);
	var u = function(e) {
		!e || c.has(e) || Array.prototype.forEach.call(e.children, function(e) {
			if (s.has(e)) u(e);
			else try {
				var t = e.getAttribute(r), i = t !== null && t !== "false", c = (B.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
				B.set(e, c), a.set(e, l), o.push(e), c === 1 && i && Dt.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
			} catch (t) {
				console.error("aria-hidden: cannot operate on ", e, t);
			}
		});
	};
	return u(t), s.clear(), kt++, function() {
		o.forEach(function(e) {
			var t = B.get(e) - 1, i = a.get(e) - 1;
			B.set(e, t), a.set(e, i), t || (Dt.has(e) || e.removeAttribute(r), Dt.delete(e)), i || e.removeAttribute(n);
		}), kt--, kt || (B = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), Dt = /* @__PURE__ */ new WeakMap(), Ot = {});
	};
}, Nt = function(e, t, n) {
	n === void 0 && (n = "data-aria-hidden");
	var r = Array.from(Array.isArray(e) ? e : [e]), i = t || Et(e);
	return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), Mt(r, i, n, "aria-hidden")) : function() {
		return null;
	};
};
const Pt = (e) => {
	if (!A.isValidElement(e)) throw Error(`Expected a single React Element child, but got: ${A.Children.toArray(e).map((e) => typeof e == "object" && "type" in e && typeof e.type == "string" ? e.type : typeof e).join(", ")}`);
	return e;
};
function Ft(e, t) {
	let { asChild: n, children: r } = e;
	if (!n) return typeof t == "function" ? t(r) : t;
	let i = A.Children.only(r);
	return A.cloneElement(i, { children: typeof t == "function" ? t(i.props.children) : t });
}
const It = j.forwardRef((e, t) => j.createElement("svg", {
	width: "9",
	height: "9",
	viewBox: "0 0 9 9",
	fill: "currentcolor",
	xmlns: "http://www.w3.org/2000/svg",
	...e,
	ref: t
}, j.createElement("path", {
	fillRule: "evenodd",
	clipRule: "evenodd",
	d: "M0.75 4.5C0.75 4.08579 1.08579 3.75 1.5 3.75H7.5C7.91421 3.75 8.25 4.08579 8.25 4.5C8.25 4.91421 7.91421 5.25 7.5 5.25H1.5C1.08579 5.25 0.75 4.91421 0.75 4.5Z"
})));
It.displayName = "ThickDividerHorizontalIcon";
const Lt = j.forwardRef((e, t) => j.createElement("svg", {
	width: "9",
	height: "9",
	viewBox: "0 0 9 9",
	fill: "currentcolor",
	xmlns: "http://www.w3.org/2000/svg",
	...e,
	ref: t
}, j.createElement("path", {
	fillRule: "evenodd",
	clipRule: "evenodd",
	d: "M8.53547 0.62293C8.88226 0.849446 8.97976 1.3142 8.75325 1.66099L4.5083 8.1599C4.38833 8.34356 4.19397 8.4655 3.9764 8.49358C3.75883 8.52167 3.53987 8.45309 3.3772 8.30591L0.616113 5.80777C0.308959 5.52987 0.285246 5.05559 0.563148 4.74844C0.84105 4.44128 1.31533 4.41757 1.62249 4.69547L3.73256 6.60459L7.49741 0.840706C7.72393 0.493916 8.18868 0.396414 8.53547 0.62293Z"
})));
Lt.displayName = "ThickCheckIcon";
const Rt = j.forwardRef((e, t) => j.createElement("svg", {
	width: "9",
	height: "9",
	viewBox: "0 0 9 9",
	fill: "currentcolor",
	xmlns: "http://www.w3.org/2000/svg",
	...e,
	ref: t
}, j.createElement("path", { d: "M0.135232 3.15803C0.324102 2.95657 0.640521 2.94637 0.841971 3.13523L4.5 6.56464L8.158 3.13523C8.3595 2.94637 8.6759 2.95657 8.8648 3.15803C9.0536 3.35949 9.0434 3.67591 8.842 3.86477L4.84197 7.6148C4.64964 7.7951 4.35036 7.7951 4.15803 7.6148L0.158031 3.86477C-0.0434285 3.67591 -0.0536285 3.35949 0.135232 3.15803Z" })));
Rt.displayName = "ChevronDownIcon";
const zt = j.forwardRef((e, t) => j.createElement("svg", {
	width: "9",
	height: "9",
	viewBox: "0 0 9 9",
	fill: "currentcolor",
	xmlns: "http://www.w3.org/2000/svg",
	...e,
	ref: t
}, j.createElement("path", {
	fillRule: "evenodd",
	clipRule: "evenodd",
	d: "M3.23826 0.201711C3.54108 -0.0809141 4.01567 -0.0645489 4.29829 0.238264L7.79829 3.98826C8.06724 4.27642 8.06724 4.72359 7.79829 5.01174L4.29829 8.76174C4.01567 9.06455 3.54108 9.08092 3.23826 8.79829C2.93545 8.51567 2.91909 8.04108 3.20171 7.73826L6.22409 4.5L3.20171 1.26174C2.91909 0.958928 2.93545 0.484337 3.23826 0.201711Z"
})));
zt.displayName = "ThickChevronRightIcon";
var Bt = ["Enter", " "], Vt = [
	"ArrowDown",
	"PageUp",
	"Home"
], Ht = [
	"ArrowUp",
	"PageDown",
	"End"
], Ut = [...Vt, ...Ht], Wt = {
	ltr: [...Bt, "ArrowRight"],
	rtl: [...Bt, "ArrowLeft"]
}, Gt = {
	ltr: ["ArrowLeft"],
	rtl: ["ArrowRight"]
}, V = "Menu", [H, Kt, qt] = _(V), [U, Jt] = s(V, [
	qt,
	w,
	g
]), W = w(), Yt = g(), [Xt, G] = U(V), [Zt, K] = U(V), Qt = (e) => {
	let { __scopeMenu: t, open: n = !1, children: i, dir: a, onOpenChange: o, modal: s = !0 } = e, c = W(t), [l, u] = A.useState(null), d = A.useRef(!1), f = r(o), p = y(a);
	return A.useEffect(() => {
		let e = () => {
			d.current = !0, document.addEventListener("pointerdown", t, {
				capture: !0,
				once: !0
			}), document.addEventListener("pointermove", t, {
				capture: !0,
				once: !0
			});
		}, t = () => d.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__ */ (0, M.jsx)(C, {
		...c,
		children: /* @__PURE__ */ (0, M.jsx)(Xt, {
			scope: t,
			open: n,
			onOpenChange: f,
			content: l,
			onContentChange: u,
			children: /* @__PURE__ */ (0, M.jsx)(Zt, {
				scope: t,
				onClose: A.useCallback(() => f(!1), [f]),
				isUsingKeyboardRef: d,
				dir: p,
				modal: s,
				children: i
			})
		})
	});
};
Qt.displayName = V;
var $t = "MenuAnchor", en = A.forwardRef((e, t) => {
	let { __scopeMenu: n,...r } = e, i = W(n);
	return /* @__PURE__ */ (0, M.jsx)(x, {
		...i,
		...r,
		ref: t
	});
});
en.displayName = $t;
var tn = "MenuPortal", [nn, rn] = U(tn, { forceMount: void 0 }), an = (e) => {
	let { __scopeMenu: t, forceMount: n, children: r, container: i } = e, a = G(tn, t);
	return /* @__PURE__ */ (0, M.jsx)(nn, {
		scope: t,
		forceMount: n,
		children: /* @__PURE__ */ (0, M.jsx)(T, {
			present: n || a.open,
			children: /* @__PURE__ */ (0, M.jsx)(E, {
				asChild: !0,
				container: i,
				children: r
			})
		})
	});
};
an.displayName = tn;
var q = "MenuContent", [on, sn] = U(q), cn = A.forwardRef((e, t) => {
	let n = rn(q, e.__scopeMenu), { forceMount: r = n.forceMount,...i } = e, a = G(q, e.__scopeMenu), o = K(q, e.__scopeMenu);
	return /* @__PURE__ */ (0, M.jsx)(H.Provider, {
		scope: e.__scopeMenu,
		children: /* @__PURE__ */ (0, M.jsx)(T, {
			present: r || a.open,
			children: /* @__PURE__ */ (0, M.jsx)(H.Slot, {
				scope: e.__scopeMenu,
				children: o.modal ? /* @__PURE__ */ (0, M.jsx)(ln, {
					...i,
					ref: t
				}) : /* @__PURE__ */ (0, M.jsx)(un, {
					...i,
					ref: t
				})
			})
		})
	});
}), ln = A.forwardRef((e, t) => {
	let n = G(q, e.__scopeMenu), r = A.useRef(null), i = p(t, r);
	return A.useEffect(() => {
		let e = r.current;
		if (e) return Nt(e);
	}, []), /* @__PURE__ */ (0, M.jsx)(dn, {
		...e,
		ref: i,
		trapFocus: n.open,
		disableOutsidePointerEvents: n.open,
		disableOutsideScroll: !0,
		onFocusOutside: o(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 }),
		onDismiss: () => n.onOpenChange(!1)
	});
}), un = A.forwardRef((e, t) => {
	let n = G(q, e.__scopeMenu);
	return /* @__PURE__ */ (0, M.jsx)(dn, {
		...e,
		ref: t,
		trapFocus: !1,
		disableOutsidePointerEvents: !1,
		disableOutsideScroll: !1,
		onDismiss: () => n.onOpenChange(!1)
	});
}), dn = A.forwardRef((e, t) => {
	let { __scopeMenu: n, loop: r = !1, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: f, onFocusOutside: m, onInteractOutside: g, onDismiss: _, disableOutsideScroll: v,...y } = e, b = G(q, n), x = K(q, n), S = W(n), C = Yt(n), w = Kt(n), [T, E] = A.useState(null), D = A.useRef(null), ne = p(t, D, b.onContentChange), O = A.useRef(0), k = A.useRef(""), re = A.useRef(0), j = A.useRef(null), ie = A.useRef("right"), N = A.useRef(0), ae = v ? Tt : A.Fragment, oe = v ? {
		as: d,
		allowPinchZoom: !0
	} : void 0, se = (e) => {
		let t = k.current + e, n = w().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = n.map((e) => e.textValue), o = Jn(a, t, i), s = n.find((e) => e.textValue === o)?.ref.current;
		(function e(t) {
			k.current = t, window.clearTimeout(O.current), t !== "" && (O.current = window.setTimeout(() => e(""), 1e3));
		})(t), s && setTimeout(() => s.focus());
	};
	A.useEffect(() => () => window.clearTimeout(O.current), []), ye();
	let P = A.useCallback((e) => {
		let t = ie.current === j.current?.side;
		return t && Xn(e, j.current?.area);
	}, []);
	return /* @__PURE__ */ (0, M.jsx)(on, {
		scope: n,
		searchRef: k,
		onItemEnter: A.useCallback((e) => {
			P(e) && e.preventDefault();
		}, [P]),
		onItemLeave: A.useCallback((e) => {
			P(e) || (D.current?.focus(), E(null));
		}, [P]),
		onTriggerLeave: A.useCallback((e) => {
			P(e) && e.preventDefault();
		}, [P]),
		pointerGraceTimerRef: re,
		onPointerGraceIntentChange: A.useCallback((e) => {
			j.current = e;
		}, []),
		children: /* @__PURE__ */ (0, M.jsx)(ae, {
			...oe,
			children: /* @__PURE__ */ (0, M.jsx)(ce, {
				asChild: !0,
				trapped: i,
				onMountAutoFocus: o(a, (e) => {
					e.preventDefault(), D.current?.focus({ preventScroll: !0 });
				}),
				onUnmountAutoFocus: s,
				children: /* @__PURE__ */ (0, M.jsx)(te, {
					asChild: !0,
					disableOutsidePointerEvents: c,
					onEscapeKeyDown: u,
					onPointerDownOutside: f,
					onFocusOutside: m,
					onInteractOutside: g,
					onDismiss: _,
					children: /* @__PURE__ */ (0, M.jsx)(h, {
						asChild: !0,
						...C,
						dir: x.dir,
						orientation: "vertical",
						loop: r,
						currentTabStopId: T,
						onCurrentTabStopIdChange: E,
						onEntryFocus: o(l, (e) => {
							x.isUsingKeyboardRef.current || e.preventDefault();
						}),
						preventScrollOnEntryFocus: !0,
						children: /* @__PURE__ */ (0, M.jsx)(ee, {
							role: "menu",
							"aria-orientation": "vertical",
							"data-state": Un(b.open),
							"data-radix-menu-content": "",
							dir: x.dir,
							...S,
							...y,
							ref: ne,
							style: {
								outline: "none",
								...y.style
							},
							onKeyDown: o(y.onKeyDown, (e) => {
								let t = e.target, n = t.closest("[data-radix-menu-content]") === e.currentTarget, r = e.ctrlKey || e.altKey || e.metaKey, i = e.key.length === 1;
								n && (e.key === "Tab" && e.preventDefault(), !r && i && se(e.key));
								let a = D.current;
								if (e.target !== a || !Ut.includes(e.key)) return;
								e.preventDefault();
								let o = w().filter((e) => !e.disabled), s = o.map((e) => e.ref.current);
								Ht.includes(e.key) && s.reverse(), Kn(s);
							}),
							onBlur: o(e.onBlur, (e) => {
								e.currentTarget.contains(e.target) || (window.clearTimeout(O.current), k.current = "");
							}),
							onPointerMove: o(e.onPointerMove, Y((e) => {
								let t = e.target, n = N.current !== e.clientX;
								if (e.currentTarget.contains(t) && n) {
									let t = e.clientX > N.current ? "right" : "left";
									ie.current = t, N.current = e.clientX;
								}
							}))
						})
					})
				})
			})
		})
	});
});
cn.displayName = q;
var fn = "MenuGroup", pn = A.forwardRef((e, t) => {
	let { __scopeMenu: n,...r } = e;
	return /* @__PURE__ */ (0, M.jsx)(l.div, {
		role: "group",
		...r,
		ref: t
	});
});
pn.displayName = fn;
var mn = "MenuLabel", hn = A.forwardRef((e, t) => {
	let { __scopeMenu: n,...r } = e;
	return /* @__PURE__ */ (0, M.jsx)(l.div, {
		...r,
		ref: t
	});
});
hn.displayName = mn;
var gn = "MenuItem", _n = "menu.itemSelect", vn = A.forwardRef((e, t) => {
	let { disabled: n = !1, onSelect: r,...i } = e, a = A.useRef(null), s = K(gn, e.__scopeMenu), c = sn(gn, e.__scopeMenu), l = p(t, a), d = A.useRef(!1), f = () => {
		let e = a.current;
		if (!n && e) {
			let t = new CustomEvent(_n, {
				bubbles: !0,
				cancelable: !0
			});
			e.addEventListener(_n, (e) => r?.(e), { once: !0 }), u(e, t), t.defaultPrevented ? d.current = !1 : s.onClose();
		}
	};
	return /* @__PURE__ */ (0, M.jsx)(yn, {
		...i,
		ref: l,
		disabled: n,
		onClick: o(e.onClick, f),
		onPointerDown: (t) => {
			e.onPointerDown?.(t), d.current = !0;
		},
		onPointerUp: o(e.onPointerUp, (e) => {
			d.current || e.currentTarget?.click();
		}),
		onKeyDown: o(e.onKeyDown, (e) => {
			let t = c.searchRef.current !== "";
			n || t && e.key === " " || Bt.includes(e.key) && (e.currentTarget.click(), e.preventDefault());
		})
	});
});
vn.displayName = gn;
var yn = A.forwardRef((e, t) => {
	let { __scopeMenu: n, disabled: r = !1, textValue: i,...a } = e, s = sn(gn, n), c = Yt(n), u = A.useRef(null), d = p(t, u), [f, h] = A.useState(!1), [g, _] = A.useState("");
	return A.useEffect(() => {
		let e = u.current;
		e && _((e.textContent ?? "").trim());
	}, [a.children]), /* @__PURE__ */ (0, M.jsx)(H.ItemSlot, {
		scope: n,
		disabled: r,
		textValue: i ?? g,
		children: /* @__PURE__ */ (0, M.jsx)(m, {
			asChild: !0,
			...c,
			focusable: !r,
			children: /* @__PURE__ */ (0, M.jsx)(l.div, {
				role: "menuitem",
				"data-highlighted": f ? "" : void 0,
				"aria-disabled": r || void 0,
				"data-disabled": r ? "" : void 0,
				...a,
				ref: d,
				onPointerMove: o(e.onPointerMove, Y((e) => {
					if (r) s.onItemLeave(e);
					else if (s.onItemEnter(e), !e.defaultPrevented) {
						let t = e.currentTarget;
						t.focus({ preventScroll: !0 });
					}
				})),
				onPointerLeave: o(e.onPointerLeave, Y((e) => s.onItemLeave(e))),
				onFocus: o(e.onFocus, () => h(!0)),
				onBlur: o(e.onBlur, () => h(!1))
			})
		})
	});
}), bn = "MenuCheckboxItem", xn = A.forwardRef((e, t) => {
	let { checked: n = !1, onCheckedChange: r,...i } = e;
	return /* @__PURE__ */ (0, M.jsx)(kn, {
		scope: e.__scopeMenu,
		checked: n,
		children: /* @__PURE__ */ (0, M.jsx)(vn, {
			role: "menuitemcheckbox",
			"aria-checked": Wn(n) ? "mixed" : n,
			...i,
			ref: t,
			"data-state": Gn(n),
			onSelect: o(i.onSelect, () => r?.(Wn(n) ? !0 : !n), { checkForDefaultPrevented: !1 })
		})
	});
});
xn.displayName = bn;
var Sn = "MenuRadioGroup", [Cn, wn] = U(Sn, {
	value: void 0,
	onValueChange: () => {}
}), Tn = A.forwardRef((e, t) => {
	let { value: n, onValueChange: i,...a } = e, o = r(i);
	return /* @__PURE__ */ (0, M.jsx)(Cn, {
		scope: e.__scopeMenu,
		value: n,
		onValueChange: o,
		children: /* @__PURE__ */ (0, M.jsx)(pn, {
			...a,
			ref: t
		})
	});
});
Tn.displayName = Sn;
var En = "MenuRadioItem", Dn = A.forwardRef((e, t) => {
	let { value: n,...r } = e, i = wn(En, e.__scopeMenu), a = n === i.value;
	return /* @__PURE__ */ (0, M.jsx)(kn, {
		scope: e.__scopeMenu,
		checked: a,
		children: /* @__PURE__ */ (0, M.jsx)(vn, {
			role: "menuitemradio",
			"aria-checked": a,
			...r,
			ref: t,
			"data-state": Gn(a),
			onSelect: o(r.onSelect, () => i.onValueChange?.(n), { checkForDefaultPrevented: !1 })
		})
	});
});
Dn.displayName = En;
var On = "MenuItemIndicator", [kn, An] = U(On, { checked: !1 }), jn = A.forwardRef((e, t) => {
	let { __scopeMenu: n, forceMount: r,...i } = e, a = An(On, n);
	return /* @__PURE__ */ (0, M.jsx)(T, {
		present: r || Wn(a.checked) || a.checked === !0,
		children: /* @__PURE__ */ (0, M.jsx)(l.span, {
			...i,
			ref: t,
			"data-state": Gn(a.checked)
		})
	});
});
jn.displayName = On;
var Mn = "MenuSeparator", Nn = A.forwardRef((e, t) => {
	let { __scopeMenu: n,...r } = e;
	return /* @__PURE__ */ (0, M.jsx)(l.div, {
		role: "separator",
		"aria-orientation": "horizontal",
		...r,
		ref: t
	});
});
Nn.displayName = Mn;
var Pn = "MenuArrow", Fn = A.forwardRef((e, t) => {
	let { __scopeMenu: n,...r } = e, i = W(n);
	return /* @__PURE__ */ (0, M.jsx)(S, {
		...i,
		...r,
		ref: t
	});
});
Fn.displayName = Pn;
var In = "MenuSub", [Ln, Rn] = U(In), zn = (e) => {
	let { __scopeMenu: t, children: n, open: a = !1, onOpenChange: o } = e, s = G(In, t), c = W(t), [l, u] = A.useState(null), [d, f] = A.useState(null), p = r(o);
	return A.useEffect(() => (s.open === !1 && p(!1), () => p(!1)), [s.open, p]), /* @__PURE__ */ (0, M.jsx)(C, {
		...c,
		children: /* @__PURE__ */ (0, M.jsx)(Xt, {
			scope: t,
			open: a,
			onOpenChange: p,
			content: d,
			onContentChange: f,
			children: /* @__PURE__ */ (0, M.jsx)(Ln, {
				scope: t,
				contentId: i(),
				triggerId: i(),
				trigger: l,
				onTriggerChange: u,
				children: n
			})
		})
	});
};
zn.displayName = In;
var J = "MenuSubTrigger", Bn = A.forwardRef((e, t) => {
	let n = G(J, e.__scopeMenu), r = K(J, e.__scopeMenu), i = Rn(J, e.__scopeMenu), a = sn(J, e.__scopeMenu), s = A.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: l } = a, u = { __scopeMenu: e.__scopeMenu }, d = A.useCallback(() => {
		s.current && window.clearTimeout(s.current), s.current = null;
	}, []);
	return A.useEffect(() => d, [d]), A.useEffect(() => {
		let e = c.current;
		return () => {
			window.clearTimeout(e), l(null);
		};
	}, [c, l]), /* @__PURE__ */ (0, M.jsx)(en, {
		asChild: !0,
		...u,
		children: /* @__PURE__ */ (0, M.jsx)(yn, {
			id: i.triggerId,
			"aria-haspopup": "menu",
			"aria-expanded": n.open,
			"aria-controls": i.contentId,
			"data-state": Un(n.open),
			...e,
			ref: f(t, i.onTriggerChange),
			onClick: (t) => {
				e.onClick?.(t), !(e.disabled || t.defaultPrevented) && (t.currentTarget.focus(), n.open || n.onOpenChange(!0));
			},
			onPointerMove: o(e.onPointerMove, Y((t) => {
				a.onItemEnter(t), !t.defaultPrevented && !e.disabled && !n.open && !s.current && (a.onPointerGraceIntentChange(null), s.current = window.setTimeout(() => {
					n.onOpenChange(!0), d();
				}, 100));
			})),
			onPointerLeave: o(e.onPointerLeave, Y((e) => {
				d();
				let t = n.content?.getBoundingClientRect();
				if (t) {
					let r = n.content?.dataset.side, i = r === "right", o = i ? -5 : 5, s = t[i ? "left" : "right"], l = t[i ? "right" : "left"];
					a.onPointerGraceIntentChange({
						area: [
							{
								x: e.clientX + o,
								y: e.clientY
							},
							{
								x: s,
								y: t.top
							},
							{
								x: l,
								y: t.top
							},
							{
								x: l,
								y: t.bottom
							},
							{
								x: s,
								y: t.bottom
							}
						],
						side: r
					}), window.clearTimeout(c.current), c.current = window.setTimeout(() => a.onPointerGraceIntentChange(null), 300);
				} else {
					if (a.onTriggerLeave(e), e.defaultPrevented) return;
					a.onPointerGraceIntentChange(null);
				}
			})),
			onKeyDown: o(e.onKeyDown, (t) => {
				let i = a.searchRef.current !== "";
				e.disabled || i && t.key === " " || Wt[r.dir].includes(t.key) && (n.onOpenChange(!0), n.content?.focus(), t.preventDefault());
			})
		})
	});
});
Bn.displayName = J;
var Vn = "MenuSubContent", Hn = A.forwardRef((e, t) => {
	let n = rn(q, e.__scopeMenu), { forceMount: r = n.forceMount,...i } = e, a = G(q, e.__scopeMenu), s = K(q, e.__scopeMenu), c = Rn(Vn, e.__scopeMenu), l = A.useRef(null), u = p(t, l);
	return /* @__PURE__ */ (0, M.jsx)(H.Provider, {
		scope: e.__scopeMenu,
		children: /* @__PURE__ */ (0, M.jsx)(T, {
			present: r || a.open,
			children: /* @__PURE__ */ (0, M.jsx)(H.Slot, {
				scope: e.__scopeMenu,
				children: /* @__PURE__ */ (0, M.jsx)(dn, {
					id: c.contentId,
					"aria-labelledby": c.triggerId,
					...i,
					ref: u,
					align: "start",
					side: s.dir === "rtl" ? "left" : "right",
					disableOutsidePointerEvents: !1,
					disableOutsideScroll: !1,
					trapFocus: !1,
					onOpenAutoFocus: (e) => {
						s.isUsingKeyboardRef.current && l.current?.focus(), e.preventDefault();
					},
					onCloseAutoFocus: (e) => e.preventDefault(),
					onFocusOutside: o(e.onFocusOutside, (e) => {
						e.target !== c.trigger && a.onOpenChange(!1);
					}),
					onEscapeKeyDown: o(e.onEscapeKeyDown, (e) => {
						s.onClose(), e.preventDefault();
					}),
					onKeyDown: o(e.onKeyDown, (e) => {
						let t = e.currentTarget.contains(e.target), n = Gt[s.dir].includes(e.key);
						t && n && (a.onOpenChange(!1), c.trigger?.focus(), e.preventDefault());
					})
				})
			})
		})
	});
});
Hn.displayName = Vn;
function Un(e) {
	return e ? "open" : "closed";
}
function Wn(e) {
	return e === "indeterminate";
}
function Gn(e) {
	return Wn(e) ? "indeterminate" : e ? "checked" : "unchecked";
}
function Kn(e) {
	let t = document.activeElement;
	for (let n of e) if (n === t || (n.focus(), document.activeElement !== t)) return;
}
function qn(e, t) {
	return e.map((n, r) => e[(t + r) % e.length]);
}
function Jn(e, t, n) {
	let r = t.length > 1 && Array.from(t).every((e) => e === t[0]), i = r ? t[0] : t, a = n ? e.indexOf(n) : -1, o = qn(e, Math.max(a, 0)), s = i.length === 1;
	s && (o = o.filter((e) => e !== n));
	let c = o.find((e) => e.toLowerCase().startsWith(i.toLowerCase()));
	return c === n ? void 0 : c;
}
function Yn(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].x, s = t[e].y, c = t[a].x, l = t[a].y, u = s > r != l > r && n < (c - o) * (r - s) / (l - s) + o;
		u && (i = !i);
	}
	return i;
}
function Xn(e, t) {
	if (!t) return !1;
	let n = {
		x: e.clientX,
		y: e.clientY
	};
	return Yn(n, t);
}
function Y(e) {
	return (t) => t.pointerType === "mouse" ? e(t) : void 0;
}
var Zn = Qt, Qn = en, $n = an, er = cn, tr = pn, nr = hn, rr = vn, ir = xn, ar = Tn, or = Dn, sr = jn, cr = Nn, lr = Fn, ur = zn, dr = Bn, fr = Hn;
function pr(e, [t, n]) {
	return Math.min(n, Math.max(t, e));
}
function mr(e, t) {
	return A.useReducer((e, n) => {
		let r = t[e][n];
		return r ?? e;
	}, e);
}
var hr = "ScrollArea", [gr, _r] = s(hr), [vr, X] = gr(hr), yr = A.forwardRef((e, t) => {
	let { __scopeScrollArea: n, type: r = "hover", dir: i, scrollHideDelay: a = 600,...o } = e, [s, c] = A.useState(null), [u, d] = A.useState(null), [f, m] = A.useState(null), [h, g] = A.useState(null), [_, v] = A.useState(null), [b, x] = A.useState(0), [S, ee] = A.useState(0), [C, w] = A.useState(!1), [T, E] = A.useState(!1), te = p(t, (e) => c(e)), D = y(i);
	return /* @__PURE__ */ (0, M.jsx)(vr, {
		scope: n,
		type: r,
		dir: D,
		scrollHideDelay: a,
		scrollArea: s,
		viewport: u,
		onViewportChange: d,
		content: f,
		onContentChange: m,
		scrollbarX: h,
		onScrollbarXChange: g,
		scrollbarXEnabled: C,
		onScrollbarXEnabledChange: w,
		scrollbarY: _,
		onScrollbarYChange: v,
		scrollbarYEnabled: T,
		onScrollbarYEnabledChange: E,
		onCornerWidthChange: x,
		onCornerHeightChange: ee,
		children: /* @__PURE__ */ (0, M.jsx)(l.div, {
			dir: D,
			...o,
			ref: te,
			style: {
				position: "relative",
				"--radix-scroll-area-corner-width": b + "px",
				"--radix-scroll-area-corner-height": S + "px",
				...e.style
			}
		})
	});
});
yr.displayName = hr;
var br = "ScrollAreaViewport", xr = A.forwardRef((e, t) => {
	let { __scopeScrollArea: n, children: r, nonce: i,...a } = e, o = X(br, n), s = A.useRef(null), c = p(t, s, o.onViewportChange);
	return /* @__PURE__ */ (0, M.jsxs)(M.Fragment, { children: [/* @__PURE__ */ (0, M.jsx)("style", {
		dangerouslySetInnerHTML: { __html: "[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}" },
		nonce: i
	}), /* @__PURE__ */ (0, M.jsx)(l.div, {
		"data-radix-scroll-area-viewport": "",
		...a,
		ref: c,
		style: {
			overflowX: o.scrollbarXEnabled ? "scroll" : "hidden",
			overflowY: o.scrollbarYEnabled ? "scroll" : "hidden",
			...e.style
		},
		children: /* @__PURE__ */ (0, M.jsx)("div", {
			ref: o.onContentChange,
			style: {
				minWidth: "100%",
				display: "table"
			},
			children: r
		})
	})] });
});
xr.displayName = br;
var Z = "ScrollAreaScrollbar", Sr = A.forwardRef((e, t) => {
	let { forceMount: n,...r } = e, i = X(Z, e.__scopeScrollArea), { onScrollbarXEnabledChange: a, onScrollbarYEnabledChange: o } = i, s = e.orientation === "horizontal";
	return A.useEffect(() => (s ? a(!0) : o(!0), () => {
		s ? a(!1) : o(!1);
	}), [
		s,
		a,
		o
	]), i.type === "hover" ? /* @__PURE__ */ (0, M.jsx)(Cr, {
		...r,
		ref: t,
		forceMount: n
	}) : i.type === "scroll" ? /* @__PURE__ */ (0, M.jsx)(wr, {
		...r,
		ref: t,
		forceMount: n
	}) : i.type === "auto" ? /* @__PURE__ */ (0, M.jsx)(Tr, {
		...r,
		ref: t,
		forceMount: n
	}) : i.type === "always" ? /* @__PURE__ */ (0, M.jsx)(Er, {
		...r,
		ref: t
	}) : null;
});
Sr.displayName = Z;
var Cr = A.forwardRef((e, t) => {
	let { forceMount: n,...r } = e, i = X(Z, e.__scopeScrollArea), [a, o] = A.useState(!1);
	return A.useEffect(() => {
		let e = i.scrollArea, t = 0;
		if (e) {
			let n = () => {
				window.clearTimeout(t), o(!0);
			}, r = () => {
				t = window.setTimeout(() => o(!1), i.scrollHideDelay);
			};
			return e.addEventListener("pointerenter", n), e.addEventListener("pointerleave", r), () => {
				window.clearTimeout(t), e.removeEventListener("pointerenter", n), e.removeEventListener("pointerleave", r);
			};
		}
	}, [i.scrollArea, i.scrollHideDelay]), /* @__PURE__ */ (0, M.jsx)(T, {
		present: n || a,
		children: /* @__PURE__ */ (0, M.jsx)(Tr, {
			"data-state": a ? "visible" : "hidden",
			...r,
			ref: t
		})
	});
}), wr = A.forwardRef((e, t) => {
	let { forceMount: n,...r } = e, i = X(Z, e.__scopeScrollArea), a = e.orientation === "horizontal", s = Kr(() => l("SCROLL_END"), 100), [c, l] = mr("hidden", {
		hidden: { SCROLL: "scrolling" },
		scrolling: {
			SCROLL_END: "idle",
			POINTER_ENTER: "interacting"
		},
		interacting: {
			SCROLL: "interacting",
			POINTER_LEAVE: "idle"
		},
		idle: {
			HIDE: "hidden",
			SCROLL: "scrolling",
			POINTER_ENTER: "interacting"
		}
	});
	return A.useEffect(() => {
		if (c === "idle") {
			let e = window.setTimeout(() => l("HIDE"), i.scrollHideDelay);
			return () => window.clearTimeout(e);
		}
	}, [
		c,
		i.scrollHideDelay,
		l
	]), A.useEffect(() => {
		let e = i.viewport, t = a ? "scrollLeft" : "scrollTop";
		if (e) {
			let n = e[t], r = () => {
				let r = e[t], i = n !== r;
				i && (l("SCROLL"), s()), n = r;
			};
			return e.addEventListener("scroll", r), () => e.removeEventListener("scroll", r);
		}
	}, [
		i.viewport,
		a,
		l,
		s
	]), /* @__PURE__ */ (0, M.jsx)(T, {
		present: n || c !== "hidden",
		children: /* @__PURE__ */ (0, M.jsx)(Er, {
			"data-state": c === "hidden" ? "hidden" : "visible",
			...r,
			ref: t,
			onPointerEnter: o(e.onPointerEnter, () => l("POINTER_ENTER")),
			onPointerLeave: o(e.onPointerLeave, () => l("POINTER_LEAVE"))
		})
	});
}), Tr = A.forwardRef((e, t) => {
	let n = X(Z, e.__scopeScrollArea), { forceMount: r,...i } = e, [a, o] = A.useState(!1), s = e.orientation === "horizontal", c = Kr(() => {
		if (n.viewport) {
			let e = n.viewport.offsetWidth < n.viewport.scrollWidth, t = n.viewport.offsetHeight < n.viewport.scrollHeight;
			o(s ? e : t);
		}
	}, 10);
	return Q(n.viewport, c), Q(n.content, c), /* @__PURE__ */ (0, M.jsx)(T, {
		present: r || a,
		children: /* @__PURE__ */ (0, M.jsx)(Er, {
			"data-state": a ? "visible" : "hidden",
			...i,
			ref: t
		})
	});
}), Er = A.forwardRef((e, t) => {
	let { orientation: n = "vertical",...r } = e, i = X(Z, e.__scopeScrollArea), a = A.useRef(null), o = A.useRef(0), [s, c] = A.useState({
		content: 0,
		viewport: 0,
		scrollbar: {
			size: 0,
			paddingStart: 0,
			paddingEnd: 0
		}
	}), l = zr(s.viewport, s.content), u = {
		...r,
		sizes: s,
		onSizesChange: c,
		hasThumb: l > 0 && l < 1,
		onThumbChange: (e) => a.current = e,
		onThumbPointerUp: () => o.current = 0,
		onThumbPointerDown: (e) => o.current = e
	};
	function d(e, t) {
		return Vr(e, o.current, s, t);
	}
	return n === "horizontal" ? /* @__PURE__ */ (0, M.jsx)(Dr, {
		...u,
		ref: t,
		onThumbPositionChange: () => {
			if (i.viewport && a.current) {
				let e = i.viewport.scrollLeft, t = Hr(e, s, i.dir);
				a.current.style.transform = `translate3d(${t}px, 0, 0)`;
			}
		},
		onWheelScroll: (e) => {
			i.viewport && (i.viewport.scrollLeft = e);
		},
		onDragScroll: (e) => {
			i.viewport && (i.viewport.scrollLeft = d(e, i.dir));
		}
	}) : n === "vertical" ? /* @__PURE__ */ (0, M.jsx)(Or, {
		...u,
		ref: t,
		onThumbPositionChange: () => {
			if (i.viewport && a.current) {
				let e = i.viewport.scrollTop, t = Hr(e, s);
				a.current.style.transform = `translate3d(0, ${t}px, 0)`;
			}
		},
		onWheelScroll: (e) => {
			i.viewport && (i.viewport.scrollTop = e);
		},
		onDragScroll: (e) => {
			i.viewport && (i.viewport.scrollTop = d(e));
		}
	}) : null;
}), Dr = A.forwardRef((e, t) => {
	let { sizes: n, onSizesChange: r,...i } = e, a = X(Z, e.__scopeScrollArea), [o, s] = A.useState(), c = A.useRef(null), l = p(t, c, a.onScrollbarXChange);
	return A.useEffect(() => {
		c.current && s(getComputedStyle(c.current));
	}, [c]), /* @__PURE__ */ (0, M.jsx)(jr, {
		"data-orientation": "horizontal",
		...i,
		ref: l,
		sizes: n,
		style: {
			bottom: 0,
			left: a.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0,
			right: a.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0,
			"--radix-scroll-area-thumb-width": Br(n) + "px",
			...e.style
		},
		onThumbPointerDown: (t) => e.onThumbPointerDown(t.x),
		onDragScroll: (t) => e.onDragScroll(t.x),
		onWheelScroll: (t, n) => {
			if (a.viewport) {
				let r = a.viewport.scrollLeft + t.deltaX;
				e.onWheelScroll(r), Wr(r, n) && t.preventDefault();
			}
		},
		onResize: () => {
			c.current && a.viewport && o && r({
				content: a.viewport.scrollWidth,
				viewport: a.viewport.offsetWidth,
				scrollbar: {
					size: c.current.clientWidth,
					paddingStart: Rr(o.paddingLeft),
					paddingEnd: Rr(o.paddingRight)
				}
			});
		}
	});
}), Or = A.forwardRef((e, t) => {
	let { sizes: n, onSizesChange: r,...i } = e, a = X(Z, e.__scopeScrollArea), [o, s] = A.useState(), c = A.useRef(null), l = p(t, c, a.onScrollbarYChange);
	return A.useEffect(() => {
		c.current && s(getComputedStyle(c.current));
	}, [c]), /* @__PURE__ */ (0, M.jsx)(jr, {
		"data-orientation": "vertical",
		...i,
		ref: l,
		sizes: n,
		style: {
			top: 0,
			right: a.dir === "ltr" ? 0 : void 0,
			left: a.dir === "rtl" ? 0 : void 0,
			bottom: "var(--radix-scroll-area-corner-height)",
			"--radix-scroll-area-thumb-height": Br(n) + "px",
			...e.style
		},
		onThumbPointerDown: (t) => e.onThumbPointerDown(t.y),
		onDragScroll: (t) => e.onDragScroll(t.y),
		onWheelScroll: (t, n) => {
			if (a.viewport) {
				let r = a.viewport.scrollTop + t.deltaY;
				e.onWheelScroll(r), Wr(r, n) && t.preventDefault();
			}
		},
		onResize: () => {
			c.current && a.viewport && o && r({
				content: a.viewport.scrollHeight,
				viewport: a.viewport.offsetHeight,
				scrollbar: {
					size: c.current.clientHeight,
					paddingStart: Rr(o.paddingTop),
					paddingEnd: Rr(o.paddingBottom)
				}
			});
		}
	});
}), [kr, Ar] = gr(Z), jr = A.forwardRef((e, t) => {
	let { __scopeScrollArea: n, sizes: i, hasThumb: a, onThumbChange: s, onThumbPointerUp: c, onThumbPointerDown: u, onThumbPositionChange: d, onDragScroll: f, onWheelScroll: m, onResize: h,...g } = e, _ = X(Z, n), [v, y] = A.useState(null), b = p(t, (e) => y(e)), x = A.useRef(null), S = A.useRef(""), ee = _.viewport, C = i.content - i.viewport, w = r(m), T = r(d), E = Kr(h, 10);
	function te(e) {
		if (x.current) {
			let t = e.clientX - x.current.left, n = e.clientY - x.current.top;
			f({
				x: t,
				y: n
			});
		}
	}
	return A.useEffect(() => {
		let e = (e) => {
			let t = e.target, n = v?.contains(t);
			n && w(e, C);
		};
		return document.addEventListener("wheel", e, { passive: !1 }), () => document.removeEventListener("wheel", e, { passive: !1 });
	}, [
		ee,
		v,
		C,
		w
	]), A.useEffect(T, [i, T]), Q(v, E), Q(_.content, E), /* @__PURE__ */ (0, M.jsx)(kr, {
		scope: n,
		scrollbar: v,
		hasThumb: a,
		onThumbChange: r(s),
		onThumbPointerUp: r(c),
		onThumbPositionChange: T,
		onThumbPointerDown: r(u),
		children: /* @__PURE__ */ (0, M.jsx)(l.div, {
			...g,
			ref: b,
			style: {
				position: "absolute",
				...g.style
			},
			onPointerDown: o(e.onPointerDown, (e) => {
				if (e.button === 0) {
					let t = e.target;
					t.setPointerCapture(e.pointerId), x.current = v.getBoundingClientRect(), S.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", _.viewport && (_.viewport.style.scrollBehavior = "auto"), te(e);
				}
			}),
			onPointerMove: o(e.onPointerMove, te),
			onPointerUp: o(e.onPointerUp, (e) => {
				let t = e.target;
				t.hasPointerCapture(e.pointerId) && t.releasePointerCapture(e.pointerId), document.body.style.webkitUserSelect = S.current, _.viewport && (_.viewport.style.scrollBehavior = ""), x.current = null;
			})
		})
	});
}), Mr = "ScrollAreaThumb", Nr = A.forwardRef((e, t) => {
	let { forceMount: n,...r } = e, i = Ar(Mr, e.__scopeScrollArea);
	return /* @__PURE__ */ (0, M.jsx)(T, {
		present: n || i.hasThumb,
		children: /* @__PURE__ */ (0, M.jsx)(Pr, {
			ref: t,
			...r
		})
	});
}), Pr = A.forwardRef((e, t) => {
	let { __scopeScrollArea: n, style: r,...i } = e, a = X(Mr, n), s = Ar(Mr, n), { onThumbPositionChange: c } = s, u = p(t, (e) => s.onThumbChange(e)), d = A.useRef(), f = Kr(() => {
		d.current &&= (d.current(), void 0);
	}, 100);
	return A.useEffect(() => {
		let e = a.viewport;
		if (e) {
			let t = () => {
				if (f(), !d.current) {
					let t = Gr(e, c);
					d.current = t, c();
				}
			};
			return c(), e.addEventListener("scroll", t), () => e.removeEventListener("scroll", t);
		}
	}, [
		a.viewport,
		f,
		c
	]), /* @__PURE__ */ (0, M.jsx)(l.div, {
		"data-state": s.hasThumb ? "visible" : "hidden",
		...i,
		ref: u,
		style: {
			width: "var(--radix-scroll-area-thumb-width)",
			height: "var(--radix-scroll-area-thumb-height)",
			...r
		},
		onPointerDownCapture: o(e.onPointerDownCapture, (e) => {
			let t = e.target, n = t.getBoundingClientRect(), r = e.clientX - n.left, i = e.clientY - n.top;
			s.onThumbPointerDown({
				x: r,
				y: i
			});
		}),
		onPointerUp: o(e.onPointerUp, s.onThumbPointerUp)
	});
});
Nr.displayName = Mr;
var Fr = "ScrollAreaCorner", Ir = A.forwardRef((e, t) => {
	let n = X(Fr, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY), i = n.type !== "scroll" && r;
	return i ? /* @__PURE__ */ (0, M.jsx)(Lr, {
		...e,
		ref: t
	}) : null;
});
Ir.displayName = Fr;
var Lr = A.forwardRef((e, t) => {
	let { __scopeScrollArea: n,...r } = e, i = X(Fr, n), [a, o] = A.useState(0), [s, c] = A.useState(0), u = !!(a && s);
	return Q(i.scrollbarX, () => {
		let e = i.scrollbarX?.offsetHeight || 0;
		i.onCornerHeightChange(e), c(e);
	}), Q(i.scrollbarY, () => {
		let e = i.scrollbarY?.offsetWidth || 0;
		i.onCornerWidthChange(e), o(e);
	}), u ? /* @__PURE__ */ (0, M.jsx)(l.div, {
		...r,
		ref: t,
		style: {
			width: a,
			height: s,
			position: "absolute",
			right: i.dir === "ltr" ? 0 : void 0,
			left: i.dir === "rtl" ? 0 : void 0,
			bottom: 0,
			...e.style
		}
	}) : null;
});
function Rr(e) {
	return e ? parseInt(e, 10) : 0;
}
function zr(e, t) {
	let n = e / t;
	return isNaN(n) ? 0 : n;
}
function Br(e) {
	let t = zr(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
	return Math.max(r, 18);
}
function Vr(e, t, n, r = "ltr") {
	let i = Br(n), a = i / 2, o = t || a, s = i - o, c = n.scrollbar.paddingStart + o, l = n.scrollbar.size - n.scrollbar.paddingEnd - s, u = n.content - n.viewport, d = r === "ltr" ? [0, u] : [u * -1, 0], f = Ur([c, l], d);
	return f(e);
}
function Hr(e, t, n = "ltr") {
	let r = Br(t), i = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, a = t.scrollbar.size - i, o = t.content - t.viewport, s = a - r, c = n === "ltr" ? [0, o] : [o * -1, 0], l = pr(e, c), u = Ur([0, o], [0, s]);
	return u(l);
}
function Ur(e, t) {
	return (n) => {
		if (e[0] === e[1] || t[0] === t[1]) return t[0];
		let r = (t[1] - t[0]) / (e[1] - e[0]);
		return t[0] + r * (n - e[0]);
	};
}
function Wr(e, t) {
	return e > 0 && e < t;
}
var Gr = (e, t = () => {}) => {
	let n = {
		left: e.scrollLeft,
		top: e.scrollTop
	}, r = 0;
	return (function i() {
		let a = {
			left: e.scrollLeft,
			top: e.scrollTop
		}, o = n.left !== a.left, s = n.top !== a.top;
		(o || s) && t(), n = a, r = window.requestAnimationFrame(i);
	})(), () => window.cancelAnimationFrame(r);
};
function Kr(e, t) {
	let n = r(e), i = A.useRef(0);
	return A.useEffect(() => () => window.clearTimeout(i.current), []), A.useCallback(() => {
		window.clearTimeout(i.current), i.current = window.setTimeout(n, t);
	}, [n, t]);
}
function Q(e, t) {
	let n = r(t);
	a(() => {
		let t = 0;
		if (e) {
			let r = new ResizeObserver(() => {
				cancelAnimationFrame(t), t = window.requestAnimationFrame(n);
			});
			return r.observe(e), () => {
				window.cancelAnimationFrame(t), r.unobserve(e);
			};
		}
	}, [e, n]);
}
var qr = yr, Jr = xr, Yr = Sr, Xr = Nr, Zr = Ir;
const Qr = [
	"1",
	"2",
	"3"
], $r = [
	"vertical",
	"horizontal",
	"both"
], ei = {
	...n,
	size: {
		type: "enum",
		className: "rt-r-size",
		values: Qr,
		default: "1",
		responsive: !0
	},
	...v,
	scrollbars: {
		type: "enum",
		values: $r,
		default: "both"
	}
};
function ti(e) {
	let { m: t, mx: n, my: r, mt: i, mr: a, mb: o, ml: s,...c } = e;
	return {
		m: t,
		mx: n,
		my: r,
		mt: i,
		mr: a,
		mb: o,
		ml: s,
		rest: c
	};
}
var ni = /* @__PURE__ */ e(c());
const $ = D.m.values;
function ri(e) {
	let [t, n] = O({
		className: "rt-r-m",
		customProperties: ["--margin"],
		propValues: $,
		value: e.m
	}), [r, i] = O({
		className: "rt-r-mx",
		customProperties: ["--margin-left", "--margin-right"],
		propValues: $,
		value: e.mx
	}), [a, o] = O({
		className: "rt-r-my",
		customProperties: ["--margin-top", "--margin-bottom"],
		propValues: $,
		value: e.my
	}), [s, c] = O({
		className: "rt-r-mt",
		customProperties: ["--margin-top"],
		propValues: $,
		value: e.mt
	}), [l, u] = O({
		className: "rt-r-mr",
		customProperties: ["--margin-right"],
		propValues: $,
		value: e.mr
	}), [d, f] = O({
		className: "rt-r-mb",
		customProperties: ["--margin-bottom"],
		propValues: $,
		value: e.mb
	}), [p, m] = O({
		className: "rt-r-ml",
		customProperties: ["--margin-left"],
		propValues: $,
		value: e.ml
	});
	return [(0, ni.default)(t, r, a, s, l, d, p), ne(n, i, o, c, u, f, m)];
}
var ii = /* @__PURE__ */ e(c());
const ai = A.forwardRef((e, t) => {
	let { rest: n,...r } = ti(e), [i, a] = ri(r), { asChild: o, children: s, className: c, style: l, type: u, scrollHideDelay: d = u === "scroll" ? void 0 : 0, dir: f, size: p = ei.size.default, radius: m = ei.radius.default, scrollbars: h = ei.scrollbars.default,...g } = n;
	return A.createElement(qr, {
		type: u,
		scrollHideDelay: d,
		className: (0, ii.default)("rt-ScrollAreaRoot", i, c),
		style: ne(a, l),
		asChild: o
	}, Ft({
		asChild: o,
		children: s
	}, (e) => A.createElement(A.Fragment, null, A.createElement(Jr, {
		...g,
		ref: t,
		className: "rt-ScrollAreaViewport"
	}, e), A.createElement("div", { className: "rt-ScrollAreaViewportFocusRing" }), h === "vertical" ? null : A.createElement(Yr, {
		"data-radius": m,
		orientation: "horizontal",
		className: (0, ii.default)("rt-ScrollAreaScrollbar", k({
			className: "rt-r-size",
			value: p,
			propValues: ei.size.values
		}))
	}, A.createElement(Xr, { className: "rt-ScrollAreaThumb" })), h === "horizontal" ? null : A.createElement(Yr, {
		"data-radius": m,
		orientation: "vertical",
		className: (0, ii.default)("rt-ScrollAreaScrollbar", k({
			className: "rt-r-size",
			value: p,
			propValues: ei.size.values
		}))
	}, A.createElement(Xr, { className: "rt-ScrollAreaThumb" })), h === "both" ? A.createElement(Zr, { className: "rt-ScrollAreaCorner" }) : null)));
});
ai.displayName = "ScrollArea";
const oi = ["1", "2"], si = ["solid", "soft"], ci = {
	size: {
		type: "enum",
		className: "rt-r-size",
		values: oi,
		default: "2",
		responsive: !0
	},
	variant: {
		type: "enum",
		className: "rt-variant",
		values: si,
		default: "solid"
	},
	...t,
	...re
}, li = {
	...n,
	...t,
	shortcut: { type: "string" }
}, ui = {
	...t,
	shortcut: { type: "string" }
}, di = { ...t };
export { dr as A, Jt as B, Rt as C, zt as D, Lt as E, Pt as F, Nt as G, Tt as H, ye as I, ce as J, li as b, ui as c, ci as d, di as e, ai as f, qr as g, Yr as h, Xr as i, Jr as j, pr as k, Qn as l, lr as m, ir as n, er as o, tr as p, rr as q, sr as r, nr as s, $n as t, ar as u, or as v, Zn as w, cr as x, ur as y, fr as z };

//# sourceMappingURL=base-menu.props.BWy5Ub-q.js.map