//#region ../../node_modules/.pnpm/preact@10.27.2/node_modules/preact/dist/preact.module.js
var n$1, l$3, u$3, i$4, r$1, o$3, e$2, f$3, c$2, s$2, a$3, h$2, p$3 = {}, v$2 = [], y$1 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, w$2 = Array.isArray;
function d$2(n, l) {
	for (var u in l) n[u] = l[u];
	return n;
}
function g$2(n) {
	n && n.parentNode && n.parentNode.removeChild(n);
}
function _$1(l, u, t) {
	var i, r, o, e = {};
	for (o in u) "key" == o ? i = u[o] : "ref" == o ? r = u[o] : e[o] = u[o];
	if (arguments.length > 2 && (e.children = arguments.length > 3 ? n$1.call(arguments, 2) : t), "function" == typeof l && null != l.defaultProps) for (o in l.defaultProps) void 0 === e[o] && (e[o] = l.defaultProps[o]);
	return m$2(l, e, i, r, null);
}
function m$2(n, t, i, r, o) {
	var e = {
		type: n,
		props: t,
		key: i,
		ref: r,
		__k: null,
		__: null,
		__b: 0,
		__e: null,
		__c: null,
		constructor: void 0,
		__v: null == o ? ++u$3 : o,
		__i: -1,
		__u: 0
	};
	return null == o && null != l$3.vnode && l$3.vnode(e), e;
}
function k$2(n) {
	return n.children;
}
function x$2(n, l) {
	this.props = n, this.context = l;
}
function S(n, l) {
	if (null == l) return n.__ ? S(n.__, n.__i + 1) : null;
	for (var u; l < n.__k.length; l++) if (null != (u = n.__k[l]) && null != u.__e) return u.__e;
	return "function" == typeof n.type ? S(n) : null;
}
function C$2(n) {
	var l, u;
	if (null != (n = n.__) && null != n.__c) {
		for (n.__e = n.__c.base = null, l = 0; l < n.__k.length; l++) if (null != (u = n.__k[l]) && null != u.__e) {
			n.__e = n.__c.base = u.__e;
			break;
		}
		return C$2(n);
	}
}
function M$1(n) {
	(!n.__d && (n.__d = !0) && i$4.push(n) && !$$1.__r++ || r$1 != l$3.debounceRendering) && ((r$1 = l$3.debounceRendering) || o$3)($$1);
}
function $$1() {
	for (var n, u, t, r, o, f, c, s = 1; i$4.length;) i$4.length > s && i$4.sort(e$2), n = i$4.shift(), s = i$4.length, n.__d && (t = void 0, r = void 0, o = (r = (u = n).__v).__e, f = [], c = [], u.__P && ((t = d$2({}, r)).__v = r.__v + 1, l$3.vnode && l$3.vnode(t), O$1(u.__P, t, r, u.__n, u.__P.namespaceURI, 32 & r.__u ? [o] : null, f, null == o ? S(r) : o, !!(32 & r.__u), c), t.__v = r.__v, t.__.__k[t.__i] = t, N$1(f, t, c), r.__e = r.__ = null, t.__e != o && C$2(t)));
	$$1.__r = 0;
}
function I$1(n, l, u, t, i, r, o, e, f, c, s) {
	var a, h, y, w, d, g, _, m = t && t.__k || v$2, b = l.length;
	for (f = P$2(u, l, m, f, b), a = 0; a < b; a++) null != (y = u.__k[a]) && (h = -1 == y.__i ? p$3 : m[y.__i] || p$3, y.__i = a, g = O$1(n, y, h, i, r, o, e, f, c, s), w = y.__e, y.ref && h.ref != y.ref && (h.ref && B$2(h.ref, null, y), s.push(y.ref, y.__c || w, y)), null == d && null != w && (d = w), (_ = !!(4 & y.__u)) || h.__k === y.__k ? f = A$2(y, f, n, _) : "function" == typeof y.type && void 0 !== g ? f = g : w && (f = w.nextSibling), y.__u &= -7);
	return u.__e = d, f;
}
function P$2(n, l, u, t, i) {
	var r, o, e, f, c, s = u.length, a = s, h = 0;
	for (n.__k = new Array(i), r = 0; r < i; r++) null != (o = l[r]) && "boolean" != typeof o && "function" != typeof o ? (f = r + h, (o = n.__k[r] = "string" == typeof o || "number" == typeof o || "bigint" == typeof o || o.constructor == String ? m$2(null, o, null, null, null) : w$2(o) ? m$2(k$2, { children: o }, null, null, null) : null == o.constructor && o.__b > 0 ? m$2(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o).__ = n, o.__b = n.__b + 1, e = null, -1 != (c = o.__i = L$1(o, u, f, a)) && (a--, (e = u[c]) && (e.__u |= 2)), null == e || null == e.__v ? (-1 == c && (i > s ? h-- : i < s && h++), "function" != typeof o.type && (o.__u |= 4)) : c != f && (c == f - 1 ? h-- : c == f + 1 ? h++ : (c > f ? h-- : h++, o.__u |= 4))) : n.__k[r] = null;
	if (a) for (r = 0; r < s; r++) null != (e = u[r]) && 0 == (2 & e.__u) && (e.__e == t && (t = S(e)), D$2(e, e));
	return t;
}
function A$2(n, l, u, t) {
	var i, r;
	if ("function" == typeof n.type) {
		for (i = n.__k, r = 0; i && r < i.length; r++) i[r] && (i[r].__ = n, l = A$2(i[r], l, u, t));
		return l;
	}
	n.__e != l && (t && (l && n.type && !l.parentNode && (l = S(n)), u.insertBefore(n.__e, l || null)), l = n.__e);
	do
		l = l && l.nextSibling;
	while (null != l && 8 == l.nodeType);
	return l;
}
function H$1(n, l) {
	return l = l || [], null == n || "boolean" == typeof n || (w$2(n) ? n.some(function(n) {
		H$1(n, l);
	}) : l.push(n)), l;
}
function L$1(n, l, u, t) {
	var i, r, o, e = n.key, f = n.type, c = l[u], s = null != c && 0 == (2 & c.__u);
	if (null === c && null == n.key || s && e == c.key && f == c.type) return u;
	if (t > (s ? 1 : 0)) {
		for (i = u - 1, r = u + 1; i >= 0 || r < l.length;) if (null != (c = l[o = i >= 0 ? i-- : r++]) && 0 == (2 & c.__u) && e == c.key && f == c.type) return o;
	}
	return -1;
}
function T$2(n, l, u) {
	"-" == l[0] ? n.setProperty(l, null == u ? "" : u) : n[l] = null == u ? "" : "number" != typeof u || y$1.test(l) ? u : u + "px";
}
function j$2(n, l, u, t, i) {
	var r, o;
	n: if ("style" == l) if ("string" == typeof u) n.style.cssText = u;
	else {
		if ("string" == typeof t && (n.style.cssText = t = ""), t) for (l in t) u && l in u || T$2(n.style, l, "");
		if (u) for (l in u) t && u[l] == t[l] || T$2(n.style, l, u[l]);
	}
	else if ("o" == l[0] && "n" == l[1]) r = l != (l = l.replace(f$3, "$1")), o = l.toLowerCase(), l = o in n || "onFocusOut" == l || "onFocusIn" == l ? o.slice(2) : l.slice(2), n.l || (n.l = {}), n.l[l + r] = u, u ? t ? u.u = t.u : (u.u = c$2, n.addEventListener(l, r ? a$3 : s$2, r)) : n.removeEventListener(l, r ? a$3 : s$2, r);
	else {
		if ("http://www.w3.org/2000/svg" == i) l = l.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
		else if ("width" != l && "height" != l && "href" != l && "list" != l && "form" != l && "tabIndex" != l && "download" != l && "rowSpan" != l && "colSpan" != l && "role" != l && "popover" != l && l in n) try {
			n[l] = null == u ? "" : u;
			break n;
		} catch (n) {}
		"function" == typeof u || (null == u || !1 === u && "-" != l[4] ? n.removeAttribute(l) : n.setAttribute(l, "popover" == l && 1 == u ? "" : u));
	}
}
function F$2(n) {
	return function(u) {
		if (this.l) {
			var t = this.l[u.type + n];
			if (null == u.t) u.t = c$2++;
			else if (u.t < t.u) return;
			return t(l$3.event ? l$3.event(u) : u);
		}
	};
}
function O$1(n, u, t, i, r, o, e, f, c, s) {
	var a, h, p, v, y, _, m, b, S, C, M, $, P, A, H, L, T, j = u.type;
	if (null != u.constructor) return null;
	128 & t.__u && (c = !!(32 & t.__u), o = [f = u.__e = t.__e]), (a = l$3.__b) && a(u);
	n: if ("function" == typeof j) try {
		if (b = u.props, S = "prototype" in j && j.prototype.render, C = (a = j.contextType) && i[a.__c], M = a ? C ? C.props.value : a.__ : i, t.__c ? m = (h = u.__c = t.__c).__ = h.__E : (S ? u.__c = h = new j(b, M) : (u.__c = h = new x$2(b, M), h.constructor = j, h.render = E$1), C && C.sub(h), h.props = b, h.state || (h.state = {}), h.context = M, h.__n = i, p = h.__d = !0, h.__h = [], h._sb = []), S && null == h.__s && (h.__s = h.state), S && null != j.getDerivedStateFromProps && (h.__s == h.state && (h.__s = d$2({}, h.__s)), d$2(h.__s, j.getDerivedStateFromProps(b, h.__s))), v = h.props, y = h.state, h.__v = u, p) S && null == j.getDerivedStateFromProps && null != h.componentWillMount && h.componentWillMount(), S && null != h.componentDidMount && h.__h.push(h.componentDidMount);
		else {
			if (S && null == j.getDerivedStateFromProps && b !== v && null != h.componentWillReceiveProps && h.componentWillReceiveProps(b, M), !h.__e && null != h.shouldComponentUpdate && !1 === h.shouldComponentUpdate(b, h.__s, M) || u.__v == t.__v) {
				for (u.__v != t.__v && (h.props = b, h.state = h.__s, h.__d = !1), u.__e = t.__e, u.__k = t.__k, u.__k.some(function(n) {
					n && (n.__ = u);
				}), $ = 0; $ < h._sb.length; $++) h.__h.push(h._sb[$]);
				h._sb = [], h.__h.length && e.push(h);
				break n;
			}
			null != h.componentWillUpdate && h.componentWillUpdate(b, h.__s, M), S && null != h.componentDidUpdate && h.__h.push(function() {
				h.componentDidUpdate(v, y, _);
			});
		}
		if (h.context = M, h.props = b, h.__P = n, h.__e = !1, P = l$3.__r, A = 0, S) {
			for (h.state = h.__s, h.__d = !1, P && P(u), a = h.render(h.props, h.state, h.context), H = 0; H < h._sb.length; H++) h.__h.push(h._sb[H]);
			h._sb = [];
		} else do
			h.__d = !1, P && P(u), a = h.render(h.props, h.state, h.context), h.state = h.__s;
		while (h.__d && ++A < 25);
		h.state = h.__s, null != h.getChildContext && (i = d$2(d$2({}, i), h.getChildContext())), S && !p && null != h.getSnapshotBeforeUpdate && (_ = h.getSnapshotBeforeUpdate(v, y)), L = a, null != a && a.type === k$2 && null == a.key && (L = V$1(a.props.children)), f = I$1(n, w$2(L) ? L : [L], u, t, i, r, o, e, f, c, s), h.base = u.__e, u.__u &= -161, h.__h.length && e.push(h), m && (h.__E = h.__ = null);
	} catch (n) {
		if (u.__v = null, c || null != o) if (n.then) {
			for (u.__u |= c ? 160 : 128; f && 8 == f.nodeType && f.nextSibling;) f = f.nextSibling;
			o[o.indexOf(f)] = null, u.__e = f;
		} else {
			for (T = o.length; T--;) g$2(o[T]);
			z$2(u);
		}
		else u.__e = t.__e, u.__k = t.__k, n.then || z$2(u);
		l$3.__e(n, u, t);
	}
	else null == o && u.__v == t.__v ? (u.__k = t.__k, u.__e = t.__e) : f = u.__e = q$2(t.__e, u, t, i, r, o, e, c, s);
	return (a = l$3.diffed) && a(u), 128 & u.__u ? void 0 : f;
}
function z$2(n) {
	n && n.__c && (n.__c.__e = !0), n && n.__k && n.__k.forEach(z$2);
}
function N$1(n, u, t) {
	for (var i = 0; i < t.length; i++) B$2(t[i], t[++i], t[++i]);
	l$3.__c && l$3.__c(u, n), n.some(function(u) {
		try {
			n = u.__h, u.__h = [], n.some(function(n) {
				n.call(u);
			});
		} catch (n) {
			l$3.__e(n, u.__v);
		}
	});
}
function V$1(n) {
	return "object" != typeof n || null == n || n.__b && n.__b > 0 ? n : w$2(n) ? n.map(V$1) : d$2({}, n);
}
function q$2(u, t, i, r, o, e, f, c, s) {
	var a, h, v, y, d, _, m, b = i.props, k = t.props, x = t.type;
	if ("svg" == x ? o = "http://www.w3.org/2000/svg" : "math" == x ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), null != e) {
		for (a = 0; a < e.length; a++) if ((d = e[a]) && "setAttribute" in d == !!x && (x ? d.localName == x : 3 == d.nodeType)) {
			u = d, e[a] = null;
			break;
		}
	}
	if (null == u) {
		if (null == x) return document.createTextNode(k);
		u = document.createElementNS(o, x, k.is && k), c && (l$3.__m && l$3.__m(t, e), c = !1), e = null;
	}
	if (null == x) b === k || c && u.data == k || (u.data = k);
	else {
		if (e = e && n$1.call(u.childNodes), b = i.props || p$3, !c && null != e) for (b = {}, a = 0; a < u.attributes.length; a++) b[(d = u.attributes[a]).name] = d.value;
		for (a in b) if (d = b[a], "children" == a);
		else if ("dangerouslySetInnerHTML" == a) v = d;
		else if (!(a in k)) {
			if ("value" == a && "defaultValue" in k || "checked" == a && "defaultChecked" in k) continue;
			j$2(u, a, null, d, o);
		}
		for (a in k) d = k[a], "children" == a ? y = d : "dangerouslySetInnerHTML" == a ? h = d : "value" == a ? _ = d : "checked" == a ? m = d : c && "function" != typeof d || b[a] === d || j$2(u, a, d, b[a], o);
		if (h) c || v && (h.__html == v.__html || h.__html == u.innerHTML) || (u.innerHTML = h.__html), t.__k = [];
		else if (v && (u.innerHTML = ""), I$1("template" == t.type ? u.content : u, w$2(y) ? y : [y], t, i, r, "foreignObject" == x ? "http://www.w3.org/1999/xhtml" : o, e, f, e ? e[0] : i.__k && S(i, 0), c, s), null != e) for (a = e.length; a--;) g$2(e[a]);
		c || (a = "value", "progress" == x && null == _ ? u.removeAttribute("value") : null != _ && (_ !== u[a] || "progress" == x && !_ || "option" == x && _ != b[a]) && j$2(u, a, _, b[a], o), a = "checked", null != m && m != u[a] && j$2(u, a, m, b[a], o));
	}
	return u;
}
function B$2(n, u, t) {
	try {
		if ("function" == typeof n) {
			var i = "function" == typeof n.__u;
			i && n.__u(), i && null == u || (n.__u = n(u));
		} else n.current = u;
	} catch (n) {
		l$3.__e(n, t);
	}
}
function D$2(n, u, t) {
	var i, r;
	if (l$3.unmount && l$3.unmount(n), (i = n.ref) && (i.current && i.current != n.__e || B$2(i, null, u)), null != (i = n.__c)) {
		if (i.componentWillUnmount) try {
			i.componentWillUnmount();
		} catch (n) {
			l$3.__e(n, u);
		}
		i.base = i.__P = null;
	}
	if (i = n.__k) for (r = 0; r < i.length; r++) i[r] && D$2(i[r], u, t || "function" != typeof n.type);
	t || g$2(n.__e), n.__c = n.__ = n.__e = void 0;
}
function E$1(n, l, u) {
	return this.constructor(n, u);
}
function G$1(u, t, i) {
	var r, o, e, f;
	t == document && (t = document.documentElement), l$3.__ && l$3.__(u, t), o = (r = "function" == typeof i) ? null : i && i.__k || t.__k, e = [], f = [], O$1(t, u = (!r && i || t).__k = _$1(k$2, null, [u]), o || p$3, p$3, t.namespaceURI, !r && i ? [i] : o ? null : t.firstChild ? n$1.call(t.childNodes) : null, e, !r && i ? i : o ? o.__e : t.firstChild, r, f), N$1(e, u, f);
}
function J$1(n, l) {
	G$1(n, l, J$1);
}
function K$1(l, u, t) {
	var i, r, o, e, f = d$2({}, l.props);
	for (o in l.type && l.type.defaultProps && (e = l.type.defaultProps), u) "key" == o ? i = u[o] : "ref" == o ? r = u[o] : f[o] = void 0 === u[o] && null != e ? e[o] : u[o];
	return arguments.length > 2 && (f.children = arguments.length > 3 ? n$1.call(arguments, 2) : t), m$2(l.type, f, i || l.key, r || l.ref, null);
}
function Q$1(n) {
	function l(n) {
		var u, t;
		return this.getChildContext || (u = /* @__PURE__ */ new Set(), (t = {})[l.__c] = this, this.getChildContext = function() {
			return t;
		}, this.componentWillUnmount = function() {
			u = null;
		}, this.shouldComponentUpdate = function(n) {
			this.props.value != n.value && u.forEach(function(n) {
				n.__e = !0, M$1(n);
			});
		}, this.sub = function(n) {
			u.add(n);
			var l = n.componentWillUnmount;
			n.componentWillUnmount = function() {
				u && u.delete(n), l && l.call(n);
			};
		}), n.children;
	}
	return l.__c = "__cC" + h$2++, l.__ = n, l.Provider = l.__l = (l.Consumer = function(n, l) {
		return n.children(l);
	}).contextType = l, l;
}
n$1 = v$2.slice, l$3 = { __e: function(n, l, u, t) {
	for (var i, r, o; l = l.__;) if ((i = l.__c) && !i.__) try {
		if ((r = i.constructor) && null != r.getDerivedStateFromError && (i.setState(r.getDerivedStateFromError(n)), o = i.__d), null != i.componentDidCatch && (i.componentDidCatch(n, t || {}), o = i.__d), o) return i.__E = i;
	} catch (l) {
		n = l;
	}
	throw n;
} }, u$3 = 0, x$2.prototype.setState = function(n, l) {
	var u = null != this.__s && this.__s != this.state ? this.__s : this.__s = d$2({}, this.state);
	"function" == typeof n && (n = n(d$2({}, u), this.props)), n && d$2(u, n), null != n && this.__v && (l && this._sb.push(l), M$1(this));
}, x$2.prototype.forceUpdate = function(n) {
	this.__v && (this.__e = !0, n && this.__h.push(n), M$1(this));
}, x$2.prototype.render = k$2, i$4 = [], o$3 = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, e$2 = function(n, l) {
	return n.__v.__b - l.__v.__b;
}, $$1.__r = 0, f$3 = /(PointerCapture)$|Capture$/i, c$2 = 0, s$2 = F$2(!1), a$3 = F$2(!0), h$2 = 0;
//#endregion
//#region ../../node_modules/.pnpm/preact@10.27.2/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
var f$2 = 0;
Array.isArray;
function u$2(e, t, n, o, i, u) {
	t || (t = {});
	var a, c, p = t;
	if ("ref" in p) for (c in p = {}, t) "ref" == c ? a = t[c] : p[c] = t[c];
	var l = {
		type: e,
		props: p,
		key: n,
		ref: a,
		__k: null,
		__: null,
		__b: 0,
		__e: null,
		__c: null,
		constructor: void 0,
		__v: --f$2,
		__i: -1,
		__u: 0,
		__source: i,
		__self: u
	};
	if ("function" == typeof e && (a = e.defaultProps)) for (c in a) void 0 === p[c] && (p[c] = a[c]);
	return l$3.vnode && l$3.vnode(l), l;
}
//#endregion
//#region ../../node_modules/.pnpm/preact@10.27.2/node_modules/preact/hooks/dist/hooks.module.js
var t, r, u$1, i$2, o$1 = 0, f$1 = [], c$1 = l$3, e$1 = c$1.__b, a$2 = c$1.__r, v$1 = c$1.diffed, l$2 = c$1.__c, m$1 = c$1.unmount, s$1 = c$1.__;
function p$2(n, t) {
	c$1.__h && c$1.__h(r, n, o$1 || t), o$1 = 0;
	var u = r.__H || (r.__H = {
		__: [],
		__h: []
	});
	return n >= u.__.length && u.__.push({}), u.__[n];
}
function d$1(n) {
	return o$1 = 1, h$1(D$1, n);
}
function h$1(n, u, i) {
	var o = p$2(t++, 2);
	if (o.t = n, !o.__c && (o.__ = [i ? i(u) : D$1(void 0, u), function(n) {
		var t = o.__N ? o.__N[0] : o.__[0], r = o.t(t, n);
		t !== r && (o.__N = [r, o.__[1]], o.__c.setState({}));
	}], o.__c = r, !r.__f)) {
		var f = function(n, t, r) {
			if (!o.__c.__H) return !0;
			var u = o.__c.__H.__.filter(function(n) {
				return !!n.__c;
			});
			if (u.every(function(n) {
				return !n.__N;
			})) return !c || c.call(this, n, t, r);
			var i = o.__c.props !== n;
			return u.forEach(function(n) {
				if (n.__N) {
					var t = n.__[0];
					n.__ = n.__N, n.__N = void 0, t !== n.__[0] && (i = !0);
				}
			}), c && c.call(this, n, t, r) || i;
		};
		r.__f = !0;
		var c = r.shouldComponentUpdate, e = r.componentWillUpdate;
		r.componentWillUpdate = function(n, t, r) {
			if (this.__e) {
				var u = c;
				c = void 0, f(n, t, r), c = u;
			}
			e && e.call(this, n, t, r);
		}, r.shouldComponentUpdate = f;
	}
	return o.__N || o.__;
}
function y(n, u) {
	var i = p$2(t++, 3);
	!c$1.__s && C$1(i.__H, u) && (i.__ = n, i.u = u, r.__H.__h.push(i));
}
function _(n, u) {
	var i = p$2(t++, 4);
	!c$1.__s && C$1(i.__H, u) && (i.__ = n, i.u = u, r.__h.push(i));
}
function A$1(n) {
	return o$1 = 5, T$1(function() {
		return { current: n };
	}, []);
}
function F$1(n, t, r) {
	o$1 = 6, _(function() {
		if ("function" == typeof n) {
			var r = n(t());
			return function() {
				n(null), r && "function" == typeof r && r();
			};
		}
		if (n) return n.current = t(), function() {
			return n.current = null;
		};
	}, null == r ? r : r.concat(n));
}
function T$1(n, r) {
	var u = p$2(t++, 7);
	return C$1(u.__H, r) && (u.__ = n(), u.__H = r, u.__h = n), u.__;
}
function q$1(n, t) {
	return o$1 = 8, T$1(function() {
		return n;
	}, t);
}
function x$1(n) {
	var u = r.context[n.__c], i = p$2(t++, 9);
	return i.c = n, u ? (i.__ ?? (i.__ = !0, u.sub(r)), u.props.value) : n.__;
}
function g$1() {
	var n = p$2(t++, 11);
	if (!n.__) {
		for (var u = r.__v; null !== u && !u.__m && null !== u.__;) u = u.__;
		var i = u.__m || (u.__m = [0, 0]);
		n.__ = "P" + i[0] + "-" + i[1]++;
	}
	return n.__;
}
function j$1() {
	for (var n; n = f$1.shift();) if (n.__P && n.__H) try {
		n.__H.__h.forEach(z$1), n.__H.__h.forEach(B$1), n.__H.__h = [];
	} catch (t) {
		n.__H.__h = [], c$1.__e(t, n.__v);
	}
}
c$1.__b = function(n) {
	r = null, e$1 && e$1(n);
}, c$1.__ = function(n, t) {
	n && t.__k && t.__k.__m && (n.__m = t.__k.__m), s$1 && s$1(n, t);
}, c$1.__r = function(n) {
	a$2 && a$2(n), t = 0;
	var i = (r = n.__c).__H;
	i && (u$1 === r ? (i.__h = [], r.__h = [], i.__.forEach(function(n) {
		n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
	})) : (i.__h.forEach(z$1), i.__h.forEach(B$1), i.__h = [], t = 0)), u$1 = r;
}, c$1.diffed = function(n) {
	v$1 && v$1(n);
	var t = n.__c;
	t && t.__H && (t.__H.__h.length && (1 !== f$1.push(t) && i$2 === c$1.requestAnimationFrame || ((i$2 = c$1.requestAnimationFrame) || w$1)(j$1)), t.__H.__.forEach(function(n) {
		n.u && (n.__H = n.u), n.u = void 0;
	})), u$1 = r = null;
}, c$1.__c = function(n, t) {
	t.some(function(n) {
		try {
			n.__h.forEach(z$1), n.__h = n.__h.filter(function(n) {
				return !n.__ || B$1(n);
			});
		} catch (r) {
			t.some(function(n) {
				n.__h && (n.__h = []);
			}), t = [], c$1.__e(r, n.__v);
		}
	}), l$2 && l$2(n, t);
}, c$1.unmount = function(n) {
	m$1 && m$1(n);
	var t, r = n.__c;
	r && r.__H && (r.__H.__.forEach(function(n) {
		try {
			z$1(n);
		} catch (n) {
			t = n;
		}
	}), r.__H = void 0, t && c$1.__e(t, r.__v));
};
var k$1 = "function" == typeof requestAnimationFrame;
function w$1(n) {
	var t, r = function() {
		clearTimeout(u), k$1 && cancelAnimationFrame(t), setTimeout(n);
	}, u = setTimeout(r, 35);
	k$1 && (t = requestAnimationFrame(r));
}
function z$1(n) {
	var t = r, u = n.__c;
	"function" == typeof u && (n.__c = void 0, u()), r = t;
}
function B$1(n) {
	var t = r;
	n.__c = n.__(), r = t;
}
function C$1(n, t) {
	return !n || n.length !== t.length || t.some(function(t, r) {
		return t !== n[r];
	});
}
function D$1(n, t) {
	return "function" == typeof t ? t(n) : t;
}
//#endregion
//#region ../../node_modules/.pnpm/preact@10.27.2/node_modules/preact/compat/dist/compat.module.js
function g(n, t) {
	for (var e in t) n[e] = t[e];
	return n;
}
function E(n, t) {
	for (var e in n) if ("__source" !== e && !(e in t)) return !0;
	for (var r in t) if ("__source" !== r && n[r] !== t[r]) return !0;
	return !1;
}
function C(n, t) {
	var e = t(), r = d$1({ t: {
		__: e,
		u: t
	} }), u = r[0].t, o = r[1];
	return _(function() {
		u.__ = e, u.u = t, x(u) && o({ t: u });
	}, [
		n,
		e,
		t
	]), y(function() {
		return x(u) && o({ t: u }), n(function() {
			x(u) && o({ t: u });
		});
	}, [n]), e;
}
function x(n) {
	var t, e, r = n.u, u = n.__;
	try {
		var o = r();
		return !((t = u) === (e = o) && (0 !== t || 1 / t == 1 / e) || t != t && e != e);
	} catch (n) {
		return !0;
	}
}
function N(n, t) {
	this.props = n, this.context = t;
}
(N.prototype = new x$2()).isPureReactComponent = !0, N.prototype.shouldComponentUpdate = function(n, t) {
	return E(this.props, n) || E(this.state, t);
};
var T = l$3.__b;
l$3.__b = function(n) {
	n.type && n.type.__f && n.ref && (n.props.ref = n.ref, n.ref = null), T && T(n);
};
var A = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.forward_ref") || 3911;
function D(n) {
	function t(t) {
		var e = g({}, t);
		return delete e.ref, n(e, t.ref || null);
	}
	return t.$$typeof = A, t.render = n, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (n.displayName || n.name) + ")", t;
}
var F = l$3.__e;
l$3.__e = function(n, t, e, r) {
	if (n.then) {
		for (var u, o = t; o = o.__;) if ((u = o.__c) && u.__c) return t.__e ?? (t.__e = e.__e, t.__k = e.__k), u.__c(n, t);
	}
	F(n, t, e, r);
};
var U = l$3.unmount;
function V(n, t, e) {
	return n && (n.__c && n.__c.__H && (n.__c.__H.__.forEach(function(n) {
		"function" == typeof n.__c && n.__c();
	}), n.__c.__H = null), null != (n = g({}, n)).__c && (n.__c.__P === e && (n.__c.__P = t), n.__c.__e = !0, n.__c = null), n.__k = n.__k && n.__k.map(function(n) {
		return V(n, t, e);
	})), n;
}
function W(n, t, e) {
	return n && e && (n.__v = null, n.__k = n.__k && n.__k.map(function(n) {
		return W(n, t, e);
	}), n.__c && n.__c.__P === t && (n.__e && e.appendChild(n.__e), n.__c.__e = !0, n.__c.__P = e)), n;
}
function P() {
	this.__u = 0, this.o = null, this.__b = null;
}
function j(n) {
	var t = n.__.__c;
	return t && t.__a && t.__a(n);
}
function z(n) {
	var e, r, u;
	function o(o) {
		if (e || (e = n()).then(function(n) {
			r = n.default || n;
		}, function(n) {
			u = n;
		}), u) throw u;
		if (!r) throw e;
		return _$1(r, o);
	}
	return o.displayName = "Lazy", o.__f = !0, o;
}
function B() {
	this.i = null, this.l = null;
}
l$3.unmount = function(n) {
	var t = n.__c;
	t && t.__R && t.__R(), t && 32 & n.__u && (n.type = null), U && U(n);
}, (P.prototype = new x$2()).__c = function(n, t) {
	var e = t.__c, r = this;
	r.o ??= [], r.o.push(e);
	var u = j(r.__v), o = !1, i = function() {
		o || (o = !0, e.__R = null, u ? u(l) : l());
	};
	e.__R = i;
	var l = function() {
		if (!--r.__u) {
			if (r.state.__a) {
				var n = r.state.__a;
				r.__v.__k[0] = W(n, n.__c.__P, n.__c.__O);
			}
			var t;
			for (r.setState({ __a: r.__b = null }); t = r.o.pop();) t.forceUpdate();
		}
	};
	r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), n.then(i, i);
}, P.prototype.componentWillUnmount = function() {
	this.o = [];
}, P.prototype.render = function(n, e) {
	if (this.__b) {
		if (this.__v.__k) {
			var r = document.createElement("div"), o = this.__v.__k[0].__c;
			this.__v.__k[0] = V(this.__b, r, o.__O = o.__P);
		}
		this.__b = null;
	}
	var i = e.__a && _$1(k$2, null, n.fallback);
	return i && (i.__u &= -33), [_$1(k$2, null, e.__a ? null : n.children), i];
};
var H = function(n, t, e) {
	if (++e[1] === e[0] && n.l.delete(t), n.props.revealOrder && ("t" !== n.props.revealOrder[0] || !n.l.size)) for (e = n.i; e;) {
		for (; e.length > 3;) e.pop()();
		if (e[1] < e[0]) break;
		n.i = e = e[2];
	}
};
function Z(n) {
	return this.getChildContext = function() {
		return n.context;
	}, n.children;
}
function Y(n) {
	var e = this, r = n.h;
	if (e.componentWillUnmount = function() {
		G$1(null, e.v), e.v = null, e.h = null;
	}, e.h && e.h !== r && e.componentWillUnmount(), !e.v) {
		for (var u = e.__v; null !== u && !u.__m && null !== u.__;) u = u.__;
		e.h = r, e.v = {
			nodeType: 1,
			parentNode: r,
			childNodes: [],
			__k: { __m: u.__m },
			contains: function() {
				return !0;
			},
			insertBefore: function(n, t) {
				this.childNodes.push(n), e.h.insertBefore(n, t);
			},
			removeChild: function(n) {
				this.childNodes.splice(this.childNodes.indexOf(n) >>> 1, 1), e.h.removeChild(n);
			}
		};
	}
	G$1(_$1(Z, { context: e.context }, n.__v), e.v);
}
function $(n, e) {
	var r = _$1(Y, {
		__v: n,
		h: e
	});
	return r.containerInfo = e, r;
}
(B.prototype = new x$2()).__a = function(n) {
	var t = this, e = j(t.__v), r = t.l.get(n);
	return r[0]++, function(u) {
		var o = function() {
			t.props.revealOrder ? (r.push(u), H(t, n, r)) : u();
		};
		e ? e(o) : o();
	};
}, B.prototype.render = function(n) {
	this.i = null, this.l = /* @__PURE__ */ new Map();
	var t = H$1(n.children);
	n.revealOrder && "b" === n.revealOrder[0] && t.reverse();
	for (var e = t.length; e--;) this.l.set(t[e], this.i = [
		1,
		0,
		this.i
	]);
	return n.children;
}, B.prototype.componentDidUpdate = B.prototype.componentDidMount = function() {
	var n = this;
	this.l.forEach(function(t, e) {
		H(n, e, t);
	});
};
var q = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103, G = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, J = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, K = /[A-Z0-9]/g, Q = "undefined" != typeof document, X = function(n) {
	return ("undefined" != typeof Symbol && "symbol" == typeof Symbol() ? /fil|che|rad/ : /fil|che|ra/).test(n);
};
x$2.prototype.isReactComponent = {}, [
	"componentWillMount",
	"componentWillReceiveProps",
	"componentWillUpdate"
].forEach(function(t) {
	Object.defineProperty(x$2.prototype, t, {
		configurable: !0,
		get: function() {
			return this["UNSAFE_" + t];
		},
		set: function(n) {
			Object.defineProperty(this, t, {
				configurable: !0,
				writable: !0,
				value: n
			});
		}
	});
});
var en = l$3.event;
function rn() {}
function un() {
	return this.cancelBubble;
}
function on() {
	return this.defaultPrevented;
}
l$3.event = function(n) {
	return en && (n = en(n)), n.persist = rn, n.isPropagationStopped = un, n.isDefaultPrevented = on, n.nativeEvent = n;
};
var cn = {
	enumerable: !1,
	configurable: !0,
	get: function() {
		return this.class;
	}
}, fn = l$3.vnode;
l$3.vnode = function(n) {
	"string" == typeof n.type && function(n) {
		var t = n.props, e = n.type, u = {}, o = -1 === e.indexOf("-");
		for (var i in t) {
			var l = t[i];
			if (!("value" === i && "defaultValue" in t && null == l || Q && "children" === i && "noscript" === e || "class" === i || "className" === i)) {
				var c = i.toLowerCase();
				"defaultValue" === i && "value" in t && null == t.value ? i = "value" : "download" === i && !0 === l ? l = "" : "translate" === c && "no" === l ? l = !1 : "o" === c[0] && "n" === c[1] ? "ondoubleclick" === c ? i = "ondblclick" : "onchange" !== c || "input" !== e && "textarea" !== e || X(t.type) ? "onfocus" === c ? i = "onfocusin" : "onblur" === c ? i = "onfocusout" : J.test(i) && (i = c) : c = i = "oninput" : o && G.test(i) ? i = i.replace(K, "-$&").toLowerCase() : null === l && (l = void 0), "oninput" === c && u[i = c] && (i = "oninputCapture"), u[i] = l;
			}
		}
		"select" == e && u.multiple && Array.isArray(u.value) && (u.value = H$1(t.children).forEach(function(n) {
			n.props.selected = -1 != u.value.indexOf(n.props.value);
		})), "select" == e && null != u.defaultValue && (u.value = H$1(t.children).forEach(function(n) {
			n.props.selected = u.multiple ? -1 != u.defaultValue.indexOf(n.props.value) : u.defaultValue == n.props.value;
		})), t.class && !t.className ? (u.class = t.class, Object.defineProperty(u, "className", cn)) : (t.className && !t.class || t.class && t.className) && (u.class = u.className = t.className), n.props = u;
	}(n), n.$$typeof = q, fn && fn(n);
};
var an = l$3.__r;
l$3.__r = function(n) {
	an && an(n), n.__c;
};
var sn = l$3.diffed;
l$3.diffed = function(n) {
	sn && sn(n);
	var t = n.props, e = n.__e;
	null != e && "textarea" === n.type && "value" in t && t.value !== e.value && (e.value = null == t.value ? "" : t.value);
};
var gn = function(n, t) {
	return n(t);
};
//#endregion
//#region ../../node_modules/.pnpm/preact-custom-element@4.6.0_preact@10.27.2/node_modules/preact-custom-element/dist/preact-custom-element.esm.js
function i$1() {
	return i$1 = Object.assign ? Object.assign.bind() : function(t) {
		for (var e = 1; e < arguments.length; e++) {
			var n = arguments[e];
			for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
		}
		return t;
	}, i$1.apply(this, arguments);
}
function s(t, e) {
	if (null == t) return {};
	var n, o, r = {}, i = Object.keys(t);
	for (o = 0; o < i.length; o++) e.indexOf(n = i[o]) >= 0 || (r[n] = t[n]);
	return r;
}
var a$1 = ["context", "children"], l$1 = ["useFragment"];
function c(t, e, n, o) {
	function r() {
		var e, n = Reflect.construct(HTMLElement, [], r);
		return n._vdomComponent = t, o && o.shadow ? (n._root = n.attachShadow({
			mode: o.mode || "open",
			serializable: null != (e = o.serializable) && e
		}), o.adoptedStyleSheets && (n._root.adoptedStyleSheets = o.adoptedStyleSheets)) : n._root = n, n;
	}
	return (r.prototype = Object.create(HTMLElement.prototype)).constructor = r, r.prototype.connectedCallback = function() {
		d.call(this, o);
	}, r.prototype.attributeChangedCallback = h, r.prototype.disconnectedCallback = f, n = n || t.observedAttributes || Object.keys(t.propTypes || {}), r.observedAttributes = n, t.formAssociated && (r.formAssociated = !0), n.forEach(function(t) {
		Object.defineProperty(r.prototype, t, {
			get: function() {
				return this._vdom ? this._vdom.props[t] : this._props[t];
			},
			set: function(e) {
				this._vdom ? this.attributeChangedCallback(t, null, e) : (this._props || (this._props = {}), this._props[t] = e);
				var n = typeof e;
				null != e && "string" !== n && "boolean" !== n && "number" !== n || this.setAttribute(t, e);
			}
		});
	}), customElements.define(e || t.tagName || t.displayName || t.name, r), r;
}
function u(t) {
	this.getChildContext = function() {
		return t.context;
	};
	var e = t.children;
	return K$1(e, s(t, a$1));
}
function d(o) {
	var r = new CustomEvent("_preact", {
		detail: {},
		bubbles: !0,
		cancelable: !0
	});
	this.dispatchEvent(r), this._vdom = _$1(u, i$1({}, this._props, { context: r.detail.context }), v(this, this._vdomComponent, o)), (this.hasAttribute("hydrate") ? J$1 : G$1)(this._vdom, this._root);
}
function p$1(t) {
	return t.replace(/-(\w)/g, function(t, e) {
		return e ? e.toUpperCase() : "";
	});
}
function h(t, e, r) {
	if (this._vdom) {
		var i = {};
		i[t] = r = null == r ? void 0 : r, i[p$1(t)] = r, this._vdom = K$1(this._vdom, i), G$1(this._vdom, this._root);
	}
}
function f() {
	G$1(this._vdom = null, this._root);
}
function m(e, n) {
	var o = this, a = e.useFragment, c = s(e, l$1);
	return _$1(a ? k$2 : "slot", i$1({}, c, { ref: function(t) {
		t ? (o.ref = t, o._listener || (o._listener = function(t) {
			t.stopPropagation(), t.detail.context = n;
		}, t.addEventListener("_preact", o._listener))) : o.ref.removeEventListener("_preact", o._listener);
	} }));
}
function v(e, n, o) {
	if (3 === e.nodeType) return e.data;
	if (1 !== e.nodeType) return null;
	var r = [], i = {}, s = 0, a = e.attributes, l = e.childNodes;
	for (s = a.length; s--;) "slot" !== a[s].name && (i[a[s].name] = a[s].value, i[p$1(a[s].name)] = a[s].value);
	for (s = l.length; s--;) {
		var c = v(l[s], null, o), u = l[s].slot;
		u ? i[u] = _$1(m, { name: u }, c) : r[s] = c;
	}
	var d = !(!o || !o.shadow), h = n ? _$1(m, { useFragment: !d }, r) : r;
	return !d && n && (e.innerHTML = ""), _$1(n || e.nodeName.toLowerCase(), i, h);
}
//#endregion
//#region ../../node_modules/.pnpm/preact-markup@2.1.1_preact@10.27.2/node_modules/preact-markup/dist/preact-markup.module.js
var e, o = {};
function n(r, t, e) {
	if (3 === r.nodeType) {
		var o = "textContent" in r ? r.textContent : r.nodeValue || "";
		if (!1 !== n.options.trim) {
			var a = 0 === t || t === e.length - 1;
			if ((!(o = o.match(/^[\s\n]+$/g) && "all" !== n.options.trim ? " " : o.replace(/(^[\s\n]+|[\s\n]+$)/g, "all" === n.options.trim || a ? "" : " ")) || " " === o) && e.length > 1 && a) return null;
		}
		return o;
	}
	if (1 !== r.nodeType) return null;
	var p = String(r.nodeName).toLowerCase();
	if ("script" === p && !n.options.allowScripts) return null;
	var l, s, u = n.h(p, function(r) {
		var t = r && r.length;
		if (!t) return null;
		for (var e = {}, o = 0; o < t; o++) {
			var a = r[o], i = a.name, p = a.value;
			"on" === i.substring(0, 2) && n.options.allowEvents && (p = new Function(p)), e[i] = p;
		}
		return e;
	}(r.attributes), (s = (l = r.childNodes) && Array.prototype.map.call(l, n).filter(i)) && s.length ? s : null);
	return n.visitor && n.visitor(u), u;
}
var a, i = function(r) {
	return r;
}, p = {};
function l(r) {
	var t = (r.type || "").toLowerCase(), e = l.map;
	e && e.hasOwnProperty(t) ? (r.type = e[t], r.props = Object.keys(r.props || {}).reduce(function(t, e) {
		var o;
		return t[o = e, o.replace(/-(.)/g, function(r, t) {
			return t.toUpperCase();
		})] = r.props[e], t;
	}, {})) : r.type = t.replace(/[^a-z0-9-]/i, "");
}
var preact_markup_module_default = function(t) {
	function i() {
		t.apply(this, arguments);
	}
	return t && (i.__proto__ = t), (i.prototype = Object.create(t && t.prototype)).constructor = i, i.setReviver = function(r) {
		a = r;
	}, i.prototype.shouldComponentUpdate = function(r) {
		var t = this.props;
		return r.wrap !== t.wrap || r.type !== t.type || r.markup !== t.markup;
	}, i.prototype.setComponents = function(r) {
		if (this.map = {}, r) {
			for (var t in r) if (r.hasOwnProperty(t)) {
				var e = t.replace(/([A-Z]+)([A-Z][a-z0-9])|([a-z0-9]+)([A-Z])/g, "$1$3-$2$4").toLowerCase();
				this.map[e] = r[t];
			}
		}
	}, i.prototype.render = function(t) {
		var i = t.wrap;
		void 0 === i && (i = !0);
		var s, u = t.type, c = t.markup, m = t.components, v = t.reviver, f = t.onError, d = t["allow-scripts"], h = t["allow-events"], y = t.trim, w = function(r, t) {
			var e = {};
			for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && -1 === t.indexOf(o) && (e[o] = r[o]);
			return e;
		}(t, [
			"wrap",
			"type",
			"markup",
			"components",
			"reviver",
			"onError",
			"allow-scripts",
			"allow-events",
			"trim"
		]), C = v || this.reviver || this.constructor.prototype.reviver || a || _$1;
		this.setComponents(m);
		var g = {
			allowScripts: d,
			allowEvents: h,
			trim: y
		};
		try {
			s = function(r, t, a, i, s) {
				var u = function(r, t) {
					var o, n, a, i, p = "html" === t ? "text/html" : "application/xml";
					"html" === t ? (i = "body", a = "<!DOCTYPE html>\n<html><body>" + r + "</body></html>") : (i = "xml", a = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<xml>" + r + "</xml>");
					try {
						o = new DOMParser().parseFromString(a, p);
					} catch (r) {
						n = r;
					}
					if (o || "html" !== t || ((o = e || (e = function() {
						if (document.implementation && document.implementation.createHTMLDocument) return document.implementation.createHTMLDocument("");
						var r = document.createElement("iframe");
						return r.style.cssText = "position:absolute; left:0; top:-999em; width:1px; height:1px; overflow:hidden;", r.setAttribute("sandbox", "allow-forms"), document.body.appendChild(r), r.contentWindow.document;
					}())).open(), o.write(a), o.close()), o) {
						var l = o.getElementsByTagName(i)[0], s = l.firstChild;
						return r && !s && (l.error = "Document parse failed."), s && "parsererror" === String(s.nodeName).toLowerCase() && (s.removeChild(s.firstChild), s.removeChild(s.lastChild), l.error = s.textContent || s.nodeValue || n || "Unknown error", l.removeChild(s)), l;
					}
				}(r, t);
				if (u && u.error) throw new Error(u.error);
				var c = u && u.body || u;
				l.map = i || p;
				var m = c && function(r, t, e, a) {
					return n.visitor = t, n.h = e, n.options = a || o, n(r);
				}(c, l, a, s);
				return l.map = null, m && m.props && m.props.children || null;
			}(c, u, C, this.map, g);
		} catch (r) {
			f ? f({ error: r }) : "undefined" != typeof console && console.error && console.error("preact-markup: " + r);
		}
		if (!1 === i) return s || null;
		var x = w.hasOwnProperty("className") ? "className" : "class", b = w[x];
		return b ? b.splice ? b.splice(0, 0, "markup") : "string" == typeof b ? w[x] += " markup" : "object" == typeof b && (b.markup = !0) : w[x] = "markup", C("div", w, s || null);
	}, i;
}(x$2);
//#endregion
export { y as _, D as a, Q$1 as b, z as c, T$1 as d, _ as f, x$1 as g, q$1 as h, C as i, A$1 as l, g$1 as m, c as n, P as o, d$1 as p, $ as r, gn as s, preact_markup_module_default as t, F$1 as u, u$2 as v, k$2 as x, K$1 as y };
