import { C as e, E as t, G as n, L as r, O as i, Q as a, R as o, U as s, Z as c, d as l, q as u, rt as d, tt as f, w as p, x as m } from "./vue.runtime.esm-bundler-BDSGA5hA.js";
//#region ../../node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.34_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
function h(e, t) {
	return s() ? (u(e, t), !0) : !1;
}
var g = /* @__PURE__ */ new WeakMap(), _ = (...t) => {
	let n = t[0], r = m()?.proxy ?? s();
	if (r == null && !e()) throw Error("injectLocal must be called in setup");
	return r && g.has(r) && n in g.get(r) ? g.get(r)[n] : p(...t);
}, v = typeof window < "u" && typeof document < "u";
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
var y = (e) => e != null, b = Object.prototype.toString, x = (e) => b.call(e) === "[object Object]", S = () => {}, C = /* @__PURE__ */ w();
function w() {
	var e, t;
	return v && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
}
function T(e, t) {
	function n(...n) {
		return new Promise((r, i) => {
			Promise.resolve(e(() => t.apply(this, n), {
				fn: t,
				thisArg: this,
				args: n
			})).then(r).catch(i);
		});
	}
	return n;
}
var E = (e) => e();
function D(e, t = {}) {
	let n, r, i = S, a = (e) => {
		clearTimeout(e), i(), i = S;
	}, o;
	return (s) => {
		let c = f(e), l = f(t.maxWait);
		return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
			i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
				n && a(n), r = void 0, e(o());
			}, l)), n = setTimeout(() => {
				r && a(r), r = void 0, e(s());
			}, c);
		});
	};
}
function O(e) {
	return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
}
function k(e) {
	return Array.isArray(e) ? e : [e];
}
function A(e) {
	return e || m();
}
function j(e, t = 200, n = {}) {
	return T(D(t, n), e);
}
function M(e, t, n = {}) {
	let { eventFilter: i = E, ...a } = n;
	return r(e, T(i, t), a);
}
function N(e, n = !0, r) {
	A(r) ? i(e, r) : n ? e() : t(e);
}
function P(e, t = 1e3, i = {}) {
	let { immediate: o = !0, immediateCallback: s = !1 } = i, l = null, u = a(!1);
	function d() {
		l &&= (clearInterval(l), null);
	}
	function p() {
		u.value = !1, d();
	}
	function m() {
		let n = f(t);
		n <= 0 || (u.value = !0, s && e(), d(), u.value && (l = setInterval(e, n)));
	}
	return o && v && m(), (n(t) || typeof t == "function") && h(r(t, () => {
		u.value && v && m();
	})), h(p), {
		isActive: c(u),
		pause: p,
		resume: m
	};
}
function F(e, t, n = {}) {
	let { immediate: r = !0, immediateCallback: i = !1 } = n, o = a(!1), s;
	function l() {
		s &&= (clearTimeout(s), void 0);
	}
	function u() {
		o.value = !1, l();
	}
	function d(...n) {
		i && e(), l(), o.value = !0, s = setTimeout(() => {
			o.value = !1, s = void 0, e(...n);
		}, f(t));
	}
	return r && (o.value = !0, v && d()), h(u), {
		isPending: c(o),
		start: d,
		stop: u
	};
}
function I(e = !1, t = {}) {
	let { truthyValue: r = !0, falsyValue: i = !1 } = t, o = n(e), s = a(e);
	function c(e) {
		if (arguments.length) return s.value = e, s.value;
		{
			let e = f(r);
			return s.value = s.value === e ? f(i) : e, s.value;
		}
	}
	return o ? c : [s, c];
}
function L(e, t, n = {}) {
	let { debounce: r = 0, maxWait: i = void 0, ...a } = n;
	return M(e, t, {
		...a,
		eventFilter: D(r, { maxWait: i })
	});
}
function R(e, t, n) {
	return r(e, t, {
		...n,
		immediate: !0
	});
}
//#endregion
//#region ../../node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.34_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
var z = v ? window : void 0;
v && window.document, v && window.navigator, v && window.location;
function B(e) {
	let t = f(e);
	return t?.$el ?? t;
}
function V(...e) {
	let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = l(() => {
		let t = k(f(e[0])).filter((e) => e != null);
		return t.every((e) => typeof e != "string") ? t : void 0;
	});
	return R(() => [
		n.value?.map((e) => B(e)) ?? [z].filter((e) => e != null),
		k(f(n.value ? e[1] : e[0])),
		k(d(n.value ? e[2] : e[1])),
		f(n.value ? e[3] : e[2])
	], ([e, n, r, i], a, o) => {
		if (!e?.length || !n?.length || !r?.length) return;
		let s = x(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
		o(() => {
			c.forEach((e) => e());
		});
	}, { flush: "post" });
}
var H = !1;
function U(e, t, n = {}) {
	let { window: r = z, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
	if (!r) return s ? {
		stop: S,
		cancel: S,
		trigger: S
	} : S;
	if (C && !H) {
		H = !0;
		let e = { passive: !0 };
		Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", S, e)), r.document.documentElement.addEventListener("click", S, e);
	}
	let c = !0, l = (e) => f(i).some((t) => {
		if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
		{
			let n = B(t);
			return n && (e.target === n || e.composedPath().includes(n));
		}
	});
	function u(e) {
		let t = f(e);
		return t && t.$.subTree.shapeFlag === 16;
	}
	function d(e, t) {
		let n = f(e), r = n.$.subTree && n.$.subTree.children;
		return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
	}
	let p = (n) => {
		let r = B(e);
		if (n.target != null && !(!(r instanceof Element) && u(e) && d(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
			if ("detail" in n && n.detail === 0 && (c = !l(n)), !c) {
				c = !0;
				return;
			}
			t(n);
		}
	}, m = !1, h = [
		V(r, "click", (e) => {
			m || (m = !0, setTimeout(() => {
				m = !1;
			}, 0), p(e));
		}, {
			passive: !0,
			capture: a
		}),
		V(r, "pointerdown", (t) => {
			let n = B(e);
			c = !l(t) && !!(n && !t.composedPath().includes(n));
		}, { passive: !0 }),
		o && V(r, "blur", (n) => {
			setTimeout(() => {
				let i = B(e), a = r.document.activeElement;
				for (; a?.shadowRoot;) a = a.shadowRoot.activeElement;
				a?.tagName === "IFRAME" && !i?.contains(r.document.activeElement) && t(n);
			}, 0);
		}, { passive: !0 })
	].filter(Boolean), g = () => h.forEach((e) => e());
	return s ? {
		stop: g,
		cancel: () => {
			c = !1;
		},
		trigger: (e) => {
			c = !0, p(e), c = !1;
		}
	} : g;
}
function W() {
	let e = a(!1), t = m();
	return t && i(() => {
		e.value = !0;
	}, t), e;
}
/* @__NO_SIDE_EFFECTS__ */
function G(e) {
	let t = W();
	return l(() => (t.value, !!e()));
}
function K(e, t, n = {}) {
	let { window: i = z, ...a } = n, o, s = /* @__PURE__ */ G(() => i && "MutationObserver" in i), c = () => {
		o &&= (o.disconnect(), void 0);
	}, u = r(l(() => {
		let t = k(f(e)).map(B).filter(y);
		return new Set(t);
	}), (e) => {
		c(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, a)));
	}, {
		immediate: !0,
		flush: "post"
	}), d = () => o?.takeRecords(), p = () => {
		u(), c();
	};
	return h(p), {
		isSupported: s,
		stop: p,
		takeRecords: d
	};
}
var q = Symbol("vueuse-ssr-width");
/* @__NO_SIDE_EFFECTS__ */
function J() {
	let t = e() ? _(q, null) : null;
	return typeof t == "number" ? t : void 0;
}
function Y(e, t = {}) {
	let { window: n = z, ssrWidth: r = /* @__PURE__ */ J() } = t, i = /* @__PURE__ */ G(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), s = a(typeof r == "number"), c = a(), u = a(!1);
	return o(() => {
		if (s.value) {
			s.value = !i.value, u.value = f(e).split(",").some((e) => {
				let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), i = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || i);
				return n && a && (a = r >= O(n[1])), i && a && (a = r <= O(i[1])), t ? !a : a;
			});
			return;
		}
		i.value && (c.value = n.matchMedia(f(e)), u.value = c.value.matches);
	}), V(c, "change", (e) => {
		u.value = e.matches;
	}, { passive: !0 }), l(() => u.value);
}
function X(e, t, n = {}) {
	let { window: i = z, ...a } = n, o, s = /* @__PURE__ */ G(() => i && "ResizeObserver" in i), c = () => {
		o &&= (o.disconnect(), void 0);
	}, u = r(l(() => {
		let t = f(e);
		return Array.isArray(t) ? t.map((e) => B(e)) : [B(t)];
	}), (e) => {
		if (c(), s.value && i) {
			o = new ResizeObserver(t);
			for (let t of e) t && o.observe(t, a);
		}
	}, {
		immediate: !0,
		flush: "post"
	}), d = () => {
		c(), u();
	};
	return h(d), {
		isSupported: s,
		stop: d
	};
}
function Z(e, t = {}) {
	let { reset: n = !0, windowResize: i = !0, windowScroll: o = !0, immediate: s = !0, updateTiming: c = "sync" } = t, l = a(0), u = a(0), d = a(0), f = a(0), p = a(0), m = a(0), h = a(0), g = a(0);
	function _() {
		let t = B(e);
		if (!t) {
			n && (l.value = 0, u.value = 0, d.value = 0, f.value = 0, p.value = 0, m.value = 0, h.value = 0, g.value = 0);
			return;
		}
		let r = t.getBoundingClientRect();
		l.value = r.height, u.value = r.bottom, d.value = r.left, f.value = r.right, p.value = r.top, m.value = r.width, h.value = r.x, g.value = r.y;
	}
	function v() {
		c === "sync" ? _() : c === "next-frame" && requestAnimationFrame(() => _());
	}
	return X(e, v), r(() => B(e), (e) => !e && v()), K(e, v, { attributeFilter: ["style", "class"] }), o && V("scroll", v, {
		capture: !0,
		passive: !0
	}), i && V("resize", v, { passive: !0 }), N(() => {
		s && v();
	}), {
		height: l,
		bottom: u,
		left: d,
		right: f,
		top: p,
		width: m,
		x: h,
		y: g,
		update: v
	};
}
//#endregion
export { j as a, I as c, Y as i, L as l, Z as n, P as o, V as r, F as s, U as t };
