import { b as _s, c as zs, s as Ns, g as qs } from "./setting-utils.CmAt4it9.js"; const Ne = new MutationObserver(Gn); function Gn() { Ne.disconnect(); let t = Array.from(document.querySelectorAll("pre")); for (let e of t) { if ("DIV" === e.parentElement?.nodeName && e.parentElement?.classList.contains("code-block")) continue; let t = document.createElement("div"); t.className = "relative code-block"; let n = document.createElement("button"); n.className = "copy-btn btn-regular-dark absolute active:scale-90 h-8 w-8 top-2 right-2 opacity-75 text-sm p-1.5 rounded-lg transition-all ease-in-out", e.setAttribute("tabindex", "0"), e.parentNode && e.parentNode.insertBefore(t, e); let o, s = '', r = ''; n.innerHTML = `
${s} ${r}
\n `, t.appendChild(e), t.appendChild(n), n.addEventListener("click", (async () => { o && clearTimeout(o); let t = e?.querySelector("code")?.innerText; await navigator.clipboard.writeText(t), n.classList.add("success"), o = setTimeout((() => { n.classList.remove("success") }), 1e3) })) } Ne.observe(document.body, { childList: !0, subtree: !0 }) } Ne.observe(document.body, { childList: !0, subtree: !0 }), document.addEventListener("DOMContentLoaded", Gn); const ht = (t, e) => { const { o: n, i: o, u: s } = t; let r, c = n; const i = (t, e) => { const n = c, i = t, l = e || (o ? !o(n, i) : n !== i); return (l || s) && (c = i, r = n), [c, l, r] }; return [e ? t => i(e(c, r), t) : i, t => [c, !!t, r]] }, Un = typeof window < "u" && typeof document < "u", ft = Un ? window : {}, Wn = Math.max, Vs = Math.min, qe = Math.round, ye = Math.abs, xn = Math.sign, Zn = ft.cancelAnimationFrame, on = ft.requestAnimationFrame, ve = ft.setTimeout, Ve = ft.clearTimeout, Ce = t => typeof ft[t] < "u" ? ft[t] : void 0, Fs = Ce("MutationObserver"), En = Ce("IntersectionObserver"), be = Ce("ResizeObserver"), Fe = Ce("ScrollTimeline"), Kn = Un && Node.ELEMENT_NODE, { toString: Xo, hasOwnProperty: Re } = Object.prototype, Oe = t => void 0 === t, cn = t => null === t, Ot = t => "number" == typeof t, $e = t => "string" == typeof t, Xn = t => "boolean" == typeof t, wt = t => "function" == typeof t, $t = t => Array.isArray(t), ee = t => "object" == typeof t && !$t(t) && !cn(t), Le = t => { const e = !!t && t.length, n = Ot(e) && e > -1 && e % 1 == 0; return !!($t(t) || !wt(t) && n) && (!(e > 0 && ee(t)) || e - 1 in t) }, we = t => { if (!t || !ee(t)) return !1; let e; const n = "constructor", o = t[n], s = o && o.prototype, r = Re.call(t, n), c = s && Re.call(s, "isPrototypeOf"); if (o && !r && !c) return !1; for (e in t); return Oe(e) || Re.call(t, e) }, Se = t => { const e = HTMLElement; return !!t && (e ? t instanceof e : t.nodeType === Kn) }, Te = t => { const e = Element; return !!t && (e ? t instanceof e : t.nodeType === Kn) }; function Z(t, e) { if (Le(t)) for (let n = 0; n < t.length && !1 !== e(t[n], n, t); n++); else t && Z(Object.keys(t), (n => e(t[n], n, t))); return t } const rn = (t, e) => t.indexOf(e) >= 0, At = (t, e) => t.concat(e), st = (t, e, n) => (!$e(e) && Le(e) ? Array.prototype.push.apply(t, e) : t.push(e), t), Bt = t => Array.from(t || []), Yn = t => $t(t) ? t : [t], je = t => !!t && !t.length, Cn = t => Bt(new Set(t)), St = (t, e, n) => { Z(t, (t => t && t.apply(void 0, e || []))), !n && (t.length = 0) }, Jn = "paddingTop", Qn = "paddingRight", ts = "paddingLeft", es = "paddingBottom", ns = "marginLeft", ss = "marginRight", os = "marginBottom", js = "overflowX", Gs = "overflowY", Ut = "width", Wt = "height", It = "visible", _t = "hidden", Zt = "scroll", Us = t => { const e = String(t || ""); return e ? e[0].toUpperCase() + e.slice(1) : "" }, Ae = (t, e, n, o) => { if (t && e) { let o = !0; return Z(n, (n => { t[n] !== e[n] && (o = !1) })), o } return !1 }, cs = (t, e) => Ae(t, e, ["w", "h"]), me = (t, e) => Ae(t, e, ["x", "y"]), Ws = (t, e) => Ae(t, e, ["t", "r", "b", "l"]), Mt = () => { }, M = (t, ...e) => t.bind(0, ...e), zt = t => { let e; const n = t ? ve : on, o = t ? Ve : Zn; return [s => { o(e), e = n((() => s()), wt(t) ? t() : t) }, () => o(e)] }, Ge = (t, e) => { const { _: n, p: o, v: s, m: r } = e || {}; let c, i, l, a, d = Mt; const u = function (e) { d(), Ve(c), a = c = i = void 0, d = Mt, t.apply(this, e) }, p = t => r && i ? r(i, t) : t, y = () => { d !== Mt && u(p(l) || l) }, h = function () { const t = Bt(arguments), e = wt(n) ? n() : n; if (Ot(e) && e >= 0) { const n = wt(o) ? o() : o, r = Ot(n) && n >= 0, h = e > 0 ? ve : on, f = e > 0 ? Ve : Zn, m = p(t) || t, v = u.bind(0, m); let g; d(), s && !a ? (v(), a = !0, g = h((() => a = void 0), e)) : (g = h(v, e), r && !c && (c = ve(y, n))), d = () => f(g), i = l = m } else u(t) }; return h.S = y, h }, rs = (t, e) => Object.prototype.hasOwnProperty.call(t, e), Ht = t => t ? Object.keys(t) : [], G = (t, e, n, o, s, r, c) => { const i = [e, n, o, s, r, c]; return ("object" != typeof t || cn(t)) && !wt(t) && (t = {}), Z(i, (e => { Z(e, ((n, o) => { const s = e[o]; if (t === s) return !0; const r = $t(s); if (s && we(s)) { const e = t[o]; let n = e; r && !$t(e) ? n = [] : !r && !we(e) && (n = {}), t[o] = G(n, s) } else t[o] = r ? s.slice() : s })) })), t }, ls = (t, e) => Z(G({}, t), ((t, e, n) => { void 0 === t ? delete n[e] : t && we(t) && (n[e] = ls(t)) })), ln = t => { for (const e in t) return !1; return !0 }, Ue = (t, e, n) => Wn(t, Vs(e, n)), Nt = t => Bt(new Set(($t(t) ? t : (t || "").split(" ")).filter((t => t)))), an = (t, e) => t && t.getAttribute(e), On = (t, e) => t && t.hasAttribute(e), Tt = (t, e, n) => { Z(Nt(e), (e => { t && t.setAttribute(e, String(n || "")) })) }, Et = (t, e) => { Z(Nt(e), (e => t && t.removeAttribute(e))) }, He = (t, e) => { const n = Nt(an(t, e)), o = M(Tt, t, e), s = (t, e) => { const o = new Set(n); return Z(Nt(t), (t => { o[e](t) })), Bt(o).join(" ") }; return { O: t => o(s(t, "delete")), $: t => o(s(t, "add")), C: t => { const e = Nt(t); return e.reduce(((t, e) => t && n.includes(e)), e.length > 0) } } }, is = (t, e, n) => (He(t, e).O(n), M(un, t, e, n)), un = (t, e, n) => (He(t, e).$(n), M(is, t, e, n)), We = (t, e, n, o) => (o ? un : is)(t, e, n), dn = (t, e, n) => He(t, e).C(n), as = t => He(t, "class"), us = (t, e) => { as(t).O(e) }, fn = (t, e) => (as(t).$(e), M(us, t, e)), ds = (t, e) => { const n = [], o = e ? Te(e) && e : document; return o ? st(n, o.querySelectorAll(t)) : n }, Zs = (t, e) => { const n = e ? Te(e) && e : document; return n ? n.querySelector(t) : null }, xe = (t, e) => !!Te(t) && t.matches(e), fs = t => xe(t, "body"), Ze = t => t ? Bt(t.childNodes) : [], Kt = t => t && t.parentElement, jt = (t, e) => Te(t) && t.closest(e), Ke = t => document.activeElement, Ks = (t, e, n) => { const o = jt(t, e), s = t && Zs(n, o), r = jt(s, e) === o; return !(!o || !s) && (o === t || s === t || r && jt(jt(t, n), e) !== o) }, Rt = t => { if (Le(t)) Z(Bt(t), (t => Rt(t))); else if (t) { const e = Kt(t); e && e.removeChild(t) } }, ps = (t, e, n) => { if (n && t) { let o, s = e; return Le(n) ? (o = document.createDocumentFragment(), Z(n, (t => { t === s && (s = t.previousSibling), o.appendChild(t) }))) : o = n, e && (s ? s !== e && (s = s.nextSibling) : s = t.firstChild), t.insertBefore(o, s || null), () => Rt(n) } return Mt }, gt = (t, e) => ps(t, null, e), $n = (t, e) => ps(Kt(t), t && t.nextSibling, e), Gt = t => { const e = document.createElement("div"); return Tt(e, "class", t), e }, ms = t => { const e = Gt(); return e.innerHTML = t.trim(), Z(Ze(e), (t => Rt(t))) }, Xs = /^--/, Ln = (t, e) => t.getPropertyValue(e) || t[e] || "", pn = t => { const e = t || 0; return isFinite(e) ? e : 0 }, fe = t => pn(parseFloat(t || "")), Tn = t => `${(100 * pn(t)).toFixed(3)}%`, Xe = t => `${pn(t)}px`; function ne(t, e) { t && e && Z(e, ((e, n) => { try { const o = t.style, s = Ot(e) ? Xe(e) : (e || "") + ""; Xs.test(n) ? o.setProperty(n, s) : o[n] = s } catch { } })) } function qt(t, e, n) { const o = $e(e); let s = o ? "" : {}; if (t) { const r = ft.getComputedStyle(t, n) || t.style; s = o ? Ln(r, e) : Bt(e).reduce(((t, e) => (t[e] = Ln(r, e), t)), s) } return s } const An = (t, e, n) => { const o = e ? `${e}-` : "", s = n ? `-${n}` : "", r = `${o}top${s}`, c = `${o}right${s}`, i = `${o}bottom${s}`, l = `${o}left${s}`, a = qt(t, [r, c, i, l]); return { t: fe(a[r]), r: fe(a[c]), b: fe(a[i]), l: fe(a[l]) } }, Be = (t, e) => "translate" + (ee(t) ? `(${t.x},${t.y})` : `${e ? "X" : "Y"}(${t})`), Ys = t => !!(t.offsetWidth || t.offsetHeight || t.getClientRects().length), Js = { w: 0, h: 0 }, ke = (t, e) => e ? { w: e[`${t}Width`], h: e[`${t}Height`] } : Js, Qs = t => ke("inner", t || ft), Qt = M(ke, "offset"), hs = M(ke, "client"), Ye = M(ke, "scroll"), mn = t => { const e = parseFloat(qt(t, Ut)) || 0, n = parseFloat(qt(t, Wt)) || 0; return { w: e - qe(e), h: n - qe(n) } }, te = t => t.getBoundingClientRect(), to = t => !!t && Ys(t), Je = t => !(!t || !t[Wt] && !t[Ut]), gs = (t, e) => { const n = Je(t); return !Je(e) && n }, Hn = (t, e, n, o) => { Z(Nt(e), (e => { t && t.removeEventListener(e, n, o) })) }, Q = (t, e, n, o) => { var s; const r = null == (s = o && o.H) || s, c = o && o.I || !1, i = o && o.A || !1, l = { passive: r, capture: c }; return M(St, Nt(e).map((e => { const o = i ? s => { Hn(t, e, o, c), n && n(s) } : n; return t && t.addEventListener(e, o, l), M(Hn, t, e, o, c) }))) }, ys = t => t.stopPropagation(), Qe = t => t.preventDefault(), vs = t => ys(t) || Qe(t), Ct = (t, e) => { const { x: n, y: o } = Ot(e) ? { x: e, y: e } : e || {}; Ot(n) && (t.scrollLeft = n), Ot(o) && (t.scrollTop = o) }, yt = t => ({ x: t.scrollLeft, y: t.scrollTop }), bs = () => ({ T: { x: 0, y: 0 }, D: { x: 0, y: 0 } }), eo = (t, e) => { const { T: n, D: o } = t, { w: s, h: r } = e, c = (t, e, n) => { let o = xn(t) * n, s = xn(e) * n; if (o === s) { const n = ye(t), r = ye(e); s = n > r ? 0 : s, o = n < r ? 0 : o } return o = o === s ? 0 : o, [o + 0, s + 0] }, [i, l] = c(n.x, o.x, s), [a, d] = c(n.y, o.y, r); return { T: { x: i, y: a }, D: { x: l, y: d } } }, kn = ({ T: t, D: e }) => { const n = (t, e) => 0 === t && t <= e; return { x: n(t.x, e.x), y: n(t.y, e.y) } }, Pn = ({ T: t, D: e }, n) => { const o = (t, e, n) => Ue(0, 1, (t - n) / (t - e) || 0); return { x: o(t.x, e.x, n.x), y: o(t.y, e.y, n.y) } }, tn = t => { t && t.focus && t.focus({ preventScroll: !0 }) }, In = (t, e) => { Z(Yn(e), t) }, en = t => { const e = new Map, n = (t, n) => { if (t) { const o = e.get(t); In((t => { o && o[t ? "delete" : "clear"](t) }), n) } else e.forEach((t => { t.clear() })), e.clear() }, o = (t, s) => { if ($e(t)) { const o = e.get(t) || new Set; return e.set(t, o), In((t => { wt(t) && o.add(t) }), s), M(n, t, s) } Xn(s) && s && n(); const r = Ht(t), c = []; return Z(r, (e => { const n = t[e]; n && st(c, o(e, n)) })), M(St, c) }; return o(t || {}), [o, n, (t, n) => { Z(Bt(e.get(t)), (t => { n && !je(n) ? t.apply(0, n) : t() })) }] }, Mn = t => JSON.stringify(t, ((t, e) => { if (wt(e)) throw 0; return e })), Dn = (t, e) => t ? `${e}`.split(".").reduce(((t, e) => t && rs(t, e) ? t[e] : void 0), t) : void 0, no = { paddingAbsolute: !1, showNativeOverlaidScrollbars: !1, update: { elementEvents: [["img", "load"]], debounce: [0, 33], attributes: null, ignoreMutation: null }, overflow: { x: "scroll", y: "scroll" }, scrollbars: { theme: "os-theme-dark", visibility: "auto", autoHide: "never", autoHideDelay: 1300, autoHideSuspend: !1, dragScroll: !0, clickScroll: !1, pointers: ["mouse", "touch", "pen"] } }, ws = (t, e) => { const n = {}; return Z(At(Ht(e), Ht(t)), (o => { const s = t[o], r = e[o]; if (ee(s) && ee(r)) G(n[o] = {}, ws(s, r)), ln(n[o]) && delete n[o]; else if (rs(e, o) && r !== s) { let t = !0; if ($t(s) || $t(r)) try { Mn(s) === Mn(r) && (t = !1) } catch { } t && (n[o] = r) } })), n }, Rn = (t, e, n) => o => [Dn(t, o), n || void 0 !== Dn(e, o)], Xt = "data-overlayscrollbars", he = "os-environment", pe = `${he}-scrollbar-hidden`, _e = `${Xt}-initialize`, ge = "noClipping", Bn = `${Xt}-body`, Dt = Xt, so = "host", Pt = `${Xt}-viewport`, oo = js, co = Gs, ro = "arrange", Ss = "measuring", xs = "scrollbarHidden", lo = "scrollbarPressed", io = "noContent", nn = `${Xt}-padding`, _n = `${Xt}-content`, hn = "os-size-observer", ao = `${hn}-appear`, uo = `${hn}-listener`, fo = "os-trinsic-observer", po = "os-theme-none", vt = "os-scrollbar", mo = `${vt}-rtl`, ho = `${vt}-horizontal`, go = `${vt}-vertical`, Es = `${vt}-track`, gn = `${vt}-handle`, yo = `${vt}-visible`, vo = `${vt}-cornerless`, zn = `${vt}-interaction`, Nn = `${vt}-unusable`, sn = `${vt}-auto-hide`, qn = `${sn}-hidden`, Vn = `${vt}-wheel`, bo = `${Es}-interactive`, wo = `${gn}-interactive`; let ze; const So = () => { const t = (t, e, n) => { gt(document.body, t), gt(document.body, t); const o = hs(t), s = Qt(t), r = mn(e); return n && Rt(t), { x: s.h - o.h + r.h, y: s.w - o.w + r.w } }, e = ms(`
`)[0], n = e.firstChild, [o, , s] = en(), [r, c] = ht({ o: t(e, n), i: me }, M(t, e, n, !0)), [i] = c(), l = (t => { let e = !1; const n = fn(t, pe); try { e = "none" === qt(t, "scrollbar-width") || "none" === qt(t, "display", "::-webkit-scrollbar") } catch { } return n(), e })(e), a = { x: 0 === i.x, y: 0 === i.y }, d = { elements: { host: null, padding: !l, viewport: t => l && fs(t) && t, content: !1 }, scrollbars: { slot: !0 }, cancel: { nativeScrollbarsOverlaid: !1, body: null } }, u = G({}, no), p = M(G, {}, u), y = M(G, {}, d), h = { k: i, M: a, R: l, V: !!Fe, L: M(o, "r"), P: y, U: t => G(d, t) && y(), N: p, q: t => G(u, t) && p(), B: G({}, d), F: G({}, u) }; if (Et(e, "style"), Rt(e), Q(ft, "resize", (() => { s("r", []) })), wt(ft.matchMedia) && !l && (!a.x || !a.y)) { const t = e => { const n = ft.matchMedia(`(resolution: ${ft.devicePixelRatio}dppx)`); Q(n, "change", (() => { e(), t(e) }), { A: !0 }) }; t((() => { const [t, e] = r(); G(h.k, t), s("r", [e]) })) } return h }, Lt = () => (ze || (ze = So()), ze), Cs = (t, e) => wt(e) ? e.apply(0, t) : e, xo = (t, e, n, o) => { const s = Oe(o) ? n : o; return Cs(t, s) || e.apply(0, t) }, Os = (t, e, n, o) => { const s = Oe(o) ? n : o, r = Cs(t, s); return !!r && (Se(r) ? r : e.apply(0, t)) }, Eo = (t, e) => { const { nativeScrollbarsOverlaid: n, body: o } = e || {}, { M: s, R: r, P: c } = Lt(), { nativeScrollbarsOverlaid: i, body: l } = c().cancel, a = n ?? i, d = Oe(o) ? l : o, u = (s.x || s.y) && a, p = t && (cn(d) ? !r : d); return !!u || !!p }, yn = new WeakMap, Co = (t, e) => { yn.set(t, e) }, Oo = t => { yn.delete(t) }, $s = t => yn.get(t), $o = (t, e, n) => { let o = !1; const s = !!n && new WeakMap, r = r => { if (s && n) { Z(n.map((e => { const [n, o] = e || []; return [o && n ? (r || ds)(n, t) : [], o] })), (n => Z(n[0], (r => { const c = n[1], i = s.get(r) || []; if (t.contains(r) && c) { const t = Q(r, c, (n => { o ? (t(), s.delete(r)) : e(n) })); s.set(r, st(i, t)) } else St(i), s.delete(r) })))) } }; return r(), [() => { o = !0 }, r] }, Fn = (t, e, n, o) => { let s = !1; const { j: r, X: c, Y: i, W: l, J: a, K: d } = o || {}, u = Ge((() => s && n(!0)), { _: 33, p: 99 }), [p, y] = $o(t, u, i), h = c || [], f = At(r || [], h), m = (s, r) => { if (!je(r)) { const c = a || Mt, i = d || Mt, u = [], p = []; let f = !1, m = !1; if (Z(r, (n => { const { attributeName: s, target: r, type: a, oldValue: d, addedNodes: y, removedNodes: v } = n, g = "attributes" === a, b = "childList" === a, w = t === r, x = g && s, M = x && an(r, s || ""), $ = $e(M) ? M : null, E = x && d !== $, L = rn(h, s) && E; if (e && (b || !w)) { const e = g && E, a = e && l && xe(r, l), p = (a ? !c(r, s, d, $) : !g || e) && !i(n, !!a, t, o); Z(y, (t => st(u, t))), Z(v, (t => st(u, t))), m = m || p } !e && w && E && !c(r, s, d, $) && (st(p, s), f = f || L) })), y((t => Cn(u).reduce(((e, n) => (st(e, ds(t, n)), xe(n, t) ? st(e, n) : e)), []))), e) return !s && m && n(!1), [!1]; if (!je(p) || f) { const t = [Cn(p), f]; return !s && n.apply(0, t), t } } }, v = new Fs(M(m, !1)); return [() => (v.observe(t, { attributes: !0, attributeOldValue: !0, attributeFilter: f, subtree: e, childList: e, characterData: e }), s = !0, () => { s && (p(), v.disconnect(), s = !1) }), () => { if (s) return u.S(), m(!0, v.takeRecords()) }] }, Ls = {}, Ts = {}, Lo = t => { Z(t, (t => Z(t, ((e, n) => { Ls[n] = t[n] })))) }, As = (t, e, n) => Ht(t).map((o => { const { static: s, instance: r } = t[o], [c, i, l] = n || [], a = n ? r : s; if (a) { const t = n ? a(c, i, e) : a(e); return (l || Ts)[o] = t } })), se = t => Ts[t], To = "__osOptionsValidationPlugin", Ao = "__osSizeObserverPlugin", Ho = (t, e) => { const { M: n } = e, [o, s] = t("showNativeOverlaidScrollbars"); return [o && n.x && n.y, s] }, Ee = t => 0 === t.indexOf(It), ko = (t, e) => { const n = (t, e, n, o) => { const s = t === It ? _t : t.replace(`${It}-`, ""), r = Ee(t), c = Ee(n); return e || o ? r && c ? It : r ? e && o ? s : e ? It : _t : e ? s : c && o ? It : _t : _t }, o = { x: n(e.x, t.x, e.y, t.y), y: n(e.y, t.y, e.x, t.x) }; return { G: o, Z: { x: o.x === Zt, y: o.y === Zt } } }, Hs = "__osScrollbarsHidingPlugin", Po = "__osClickScrollPlugin", ks = (t, e, n) => { const { dt: o } = n || {}, s = se(Ao), [r] = ht({ o: !1, u: !0 }); return () => { const n = [], c = ms(`
`)[0], i = c.firstChild, l = t => { let n = !1, o = !1; if (t instanceof ResizeObserverEntry) { const [e, , s] = r(t.contentRect), c = Je(e); o = gs(e, s), n = !o && !c } else o = !0 === t; n || e({ ft: !0, dt: o }) }; if (be) { const t = new be((t => l(t.pop()))); t.observe(i), st(n, (() => { t.disconnect() })) } else { if (!s) return Mt; { const [t, e] = s(i, l, o); st(n, At([fn(c, ao), Q(c, "animationstart", t)], e)) } } return M(St, st(n, gt(t, c))) } }, Io = (t, e) => { let n; const o = Gt(fo), [s] = ht({ o: !1 }), r = (t, n) => { if (t) { const o = s((t => 0 === t.h || t.isIntersecting || t.intersectionRatio > 0)(t)), [, r] = o; return r && !n && e(o) && [o] } }, c = (t, e) => r(e.pop(), t); return [() => { const e = []; if (En) n = new En(M(c, !1), { root: t }), n.observe(o), st(e, (() => { n.disconnect() })); else { const t = () => { const t = Qt(o); r(t) }; st(e, ks(o, t)()), t() } return M(St, st(e, gt(t, o))) }, () => n && c(!0, n.takeRecords())] }, Mo = (t, e, n, o) => { let s, r, c, i, l, a; const d = `[${Dt}]`, u = `[${Pt}]`, p = ["wrap", "cols", "rows"], y = ["id", "class", "style", "open"], { vt: h, ht: f, ot: m, gt: v, bt: g, wt: b, nt: w, yt: x, St: M, Ot: $ } = t, E = t => "rtl" === qt(t, "direction"), L = { $t: !1, ct: E(h) }, S = Lt(), O = se(Hs), [T] = ht({ i: cs, o: { w: 0, h: 0 } }, (() => { const o = O && O.tt(t, e, L, S, n).ut, s = !(x && w) && dn(f, Dt, ge), r = !w && M(ro), c = r && yt(v), i = $(Ss, s), l = r && o && o()[0], a = Ye(m), d = mn(m); return l && l(), Ct(v, c), s && i(), { w: a.w + d.w, h: a.h + d.h } })), C = b ? p : At(y, p), H = Ge(o, { _: () => s, p: () => r, m(t, e) { const [n] = t, [o] = e; return [At(Ht(n), Ht(o)).reduce(((t, e) => (t[e] = n[e] || o[e], t)), {})] } }), Z = t => { const e = E(h); G(t, { Ct: a !== e }), G(L, { ct: e }), a = e }, k = (t, e) => { const [n, s] = t, r = { xt: s }; return G(L, { $t: n }), !e && o(r), r }, A = ({ ft: t, dt: e }) => { const n = t && !e || !S.R ? o : H, s = { ft: t || e, dt: e }; Z(s), n(s) }, Q = (t, e) => { const [, n] = T(), s = { Ht: n }; return Z(s), n && !e && (t ? o : H)(s), s }, R = (t, e, n) => { const o = { Et: e }; return Z(o), e && !n && H(o), o }, [I, q] = g ? Io(f, k) : [], P = !w && ks(f, A, { dt: !0 }), [D, N] = Fn(f, !1, R, { X: y, j: At(y, []) }), B = w && be && new be((t => { const e = t[t.length - 1].contentRect; A({ ft: !0, dt: gs(e, l) }), l = e })), z = Ge((() => { const [, t] = T(); o({ Ht: t }) }), { _: 222, v: !0 }); return [() => { B && B.observe(f); const t = P && P(), e = I && I(), n = D(), o = S.L((t => { t ? H({ zt: t }) : z() })); return () => { B && B.disconnect(), t && t(), e && e(), i && i(), n(), o() } }, ({ It: t, At: e, Tt: n }) => { const o = {}, [l] = t("update.ignoreMutation"), [a, p] = t("update.attributes"), [y, h] = t("update.elementEvents"), [f, v] = t("update.debounce"), b = e || n; if (h || p) { c && c(), i && i(); const [t, e] = Fn(g || m, !0, Q, { j: At(C, a || []), Y: y, W: d, K: (t, e) => { const { target: n, attributeName: o } = t; return !(e || !o || w) && Ks(n, d, u) || !!jt(n, `.${vt}`) || !!(t => wt(l) && l(t))(t) } }); i = t(), c = e } if (v) if (H.S(), $t(f)) { const t = f[0], e = f[1]; s = Ot(t) && t, r = Ot(e) && e } else Ot(f) ? (s = f, r = !1) : (s = !1, r = !1); if (b) { const t = N(), e = q && q(), n = c && c(); t && G(o, R(t[0], t[1], b)), e && G(o, k(e[0], b)), n && G(o, Q(n[0], b)) } return Z(o), o }, L] }, Do = (t, e, n, o) => { const { P: s } = Lt(), { scrollbars: r } = s(), { slot: c } = r, { vt: i, ht: l, ot: a, Dt: d, gt: u, yt: p, nt: y } = e, { scrollbars: h } = d ? {} : t, { slot: f } = h || {}, m = new Map, v = t => Fe && new Fe({ source: u, axis: t }), g = { x: v("x"), y: v("y") }, b = Os([i, l, a], (() => y && p ? i : l), c, f), w = (t, e) => { if (e) { const n = t ? Ut : Wt, { kt: o, Mt: s } = e, r = te(s)[n], c = te(o)[n]; return Ue(0, 1, r / c || 0) } const o = t ? "x" : "y", { Rt: s, Vt: r } = n, c = r[o], i = s[o]; return Ue(0, 1, c / (c + i) || 0) }, x = t => G(t, { clear: ["left"] }), $ = t => { m.forEach(((e, n) => { (!t || rn(Yn(t), n)) && (Z(e || [], (t => { t && t.cancel() })), m.delete(n)) })) }, E = (t, e, n, o) => { const s = m.get(t) || [], r = s.find((t => t && t.timeline === e)); r ? r.effect = new KeyframeEffect(t, n, { composite: o }) : m.set(t, At(s, [t.animate(n, { timeline: e, composite: o })])) }, L = (t, e, n) => { const o = n ? fn : us; Z(t, (t => { o(t.Lt, e) })) }, S = (t, e) => { Z(t, (t => { const [n, o] = e(t); ne(n, o) })) }, O = (t, e) => { S(t, (t => { const { Mt: n } = t; return [n, { [e ? Ut : Wt]: Tn(w(e)) }] })) }, T = (t, e) => { const { Pt: o } = n, s = e ? "x" : "y", r = g[s], c = kn(o)[s], i = (t, n) => Be(Tn(((t, e, n) => { const o = w(n, t); return 1 / o * (1 - o) * e })(t, c ? n : 1 - n, e)), e); r ? Z(t, (t => { const { Mt: e } = t; E(e, r, x({ transform: [0, 1].map((e => i(t, e))) })) })) : S(t, (t => [t.Mt, { transform: i(t, Pn(o, yt(u))[s]) }])) }, C = t => y && !p && Kt(t) === a, H = [], k = [], A = [], Q = (t, e, n) => { const o = Xn(n), s = !o || !n; (!o || n) && L(k, t, e), s && L(A, t, e) }, R = t => { const e = Gt(`${vt} ${t ? ho : go}`), n = Gt(Es), s = Gt(gn), r = { Lt: e, kt: n, Mt: s }; return st(t ? k : A, r), st(H, [gt(e, n), gt(n, s), M(Rt, e), $, o(r, Q, T, t)]), r }, I = M(R, !0), q = M(R, !1); return I(), q(), [{ Ut: () => { O(k, !0), O(A) }, Nt: () => { T(k, !0), T(A) }, qt: () => { if (y) { const { Rt: t, Pt: e } = n, o = kn(e), s = .5; if (g.x && g.y) Z(At(A, k), (({ Lt: e }) => { if (C(e)) { const n = n => E(e, g[n], x({ transform: [0, o[n] ? 1 : -1].map((e => Be(Xe(e * (t[n] - s)), "x" === n))) }), "add"); n("x"), n("y") } else $(e) })); else { const n = Pn(e, yt(u)), s = e => { const { Lt: s } = e, r = C(s) && s, c = (t, e, n) => { const o = e * t; return Xe(n ? o : -o) }; return [r, r && { transform: Be({ x: c(n.x, t.x, o.x), y: c(n.y, t.y, o.y) }) }] }; S(k, s), S(A, s) } } }, Bt: Q, Ft: { V: g.x, jt: k, Xt: I, Yt: M(S, k) }, Wt: { V: g.y, jt: A, Xt: q, Yt: M(S, A) } }, () => (gt(b, k[0].Lt), gt(b, A[0].Lt), M(St, H))] }, Ro = (t, e, n, o) => (s, r, c, i) => { const { ht: l, ot: a, nt: d, gt: u, Jt: p, Ot: y } = e, { Lt: h, kt: f, Mt: m } = s, [v, g] = zt(333), [b, w] = zt(444), [x, $] = zt(), E = M(c, [s], i), L = t => { wt(u.scrollBy) && u.scrollBy({ behavior: "smooth", left: t.x, top: t.y }) }, S = i ? Ut : Wt; let G = !0; const O = t => t.propertyName.indexOf(S) > -1; return M(St, [Q(m, "pointermove pointerleave", o), Q(h, "pointerenter", (() => { r(zn, !0) })), Q(h, "pointerleave pointercancel", (() => { r(zn, !1) })), !d && Q(h, "mousedown", (() => { const t = Ke(); (On(t, Pt) || On(t, Dt) || t === document.body) && ve(M(tn, a), 25) })), Q(h, "wheel", (t => { const { deltaX: e, deltaY: n, deltaMode: o } = t; G && 0 === o && Kt(h) === l && L({ x: e, y: n }), G = !1, r(Vn, !0), v((() => { G = !0, r(Vn) })), Qe(t) }), { H: !1, I: !0 }), Q(m, "transitionstart", (t => { if (O(t)) { const t = () => { E(), x(t) }; t() } })), Q(m, "transitionend transitioncancel", (t => { O(t) && ($(), E()) })), Q(h, "pointerdown", M(Q, p, "click", vs, { A: !0, I: !0, H: !1 }), { I: !0 }), (() => { const e = "pointerup pointercancel lostpointercapture", o = "client" + (i ? "X" : "Y"), s = i ? "left" : "top", r = i ? "w" : "h", c = i ? "x" : "y"; return Q(f, "pointerdown", (i => { const l = jt(i.target, `.${gn}`) === m, a = l ? m : f, d = t.scrollbars, { button: h, isPrimary: v, pointerType: g } = i, { pointers: x } = d; if (0 === h && v && d[l ? "dragScroll" : "clickScroll"] && (x || []).includes(g)) { w(); const t = !l && i.shiftKey, d = M(te, m), h = M(te, f), v = (t, e) => (t || d())[s] - (e || h())[s], g = qe(te(u)[S]) / Qt(u)[r] || 1, x = ((t, e) => o => { const { Rt: s } = n, i = Qt(f)[r] - Qt(m)[r], l = e * o / i * s[c]; Ct(u, { [c]: t + l }) })(yt(u)[c], 1 / g), $ = i[o], E = d(), G = h(), O = E[S], T = v(E, G) + O / 2, C = $ - G[s], H = l ? 0 : C - T, Z = t => { St(R), a.releasePointerCapture(t.pointerId) }, k = () => y(lo, !0), A = k(), R = [() => { const t = yt(u); A(); const e = yt(u), n = { x: e.x - t.x, y: e.y - t.y }; (ye(n.x) > 3 || ye(n.y) > 3) && (k(), Ct(u, t), L(n), b(A)) }, Q(p, e, Z), Q(p, "selectstart", (t => Qe(t)), { H: !1 }), Q(f, e, Z), Q(f, "pointermove", (e => { const n = e[o] - $; (l || t) && x(H + n) }))]; if (a.setPointerCapture(i.pointerId), t) x(H); else if (!l) { const t = se(Po); t && st(R, t(x, v, H, O, C)) } } })) })(), g, w, $]) }, Bo = (t, e, n, o, s, r) => { let c, i, l, a, d, u = Mt, p = 0; const y = t => "mouse" === t.pointerType, [h, f] = zt(), [m, v] = zt(100), [g, b] = zt(100), [w, x] = zt((() => p)), [$, E] = Do(t, s, o, Ro(e, s, o, (t => y(t) && k()))), { ht: L, Kt: S, yt: G } = s, { Bt: O, Ut: T, Nt: C, qt: H } = $, Z = (t, e) => { if (x(), t) O(qn); else { const t = M(O, qn, !0); p > 0 && !e ? w(t) : t() } }, k = () => { (l ? !c : !a) && (Z(!0), m((() => { Z(!1) }))) }, A = t => { O(sn, t, !0), O(sn, t, !1) }, R = t => { y(t) && (c = l, l && Z(!0)) }, I = [x, v, b, f, () => u(), Q(L, "pointerover", R, { A: !0 }), Q(L, "pointerenter", R), Q(L, "pointerleave", (t => { y(t) && (c = !1, l && Z(!1)) })), Q(L, "pointermove", (t => { y(t) && i && k() })), Q(S, "scroll", (t => { h((() => { C(), k() })), r(t), H() }))]; return [() => M(St, st(I, E())), ({ It: t, Tt: e, Gt: s, Qt: r }) => { const { Zt: c, tn: y, nn: h, sn: f } = r || {}, { Ct: m, dt: v } = s || {}, { ct: b } = n, { M: w } = Lt(), { G: x, en: $ } = o, [E, L] = t("showNativeOverlaidScrollbars"), [k, R] = t("scrollbars.theme"), [I, q] = t("scrollbars.visibility"), [P, D] = t("scrollbars.autoHide"), [N, B] = t("scrollbars.autoHideSuspend"), [z] = t("scrollbars.autoHideDelay"), [_, j] = t("scrollbars.dragScroll"), [V, W] = t("scrollbars.clickScroll"), [X, F] = t("overflow"), K = v && !e, U = $.x || $.y, Y = c || y || f || m || e, J = h || q || F, tt = E && w.x && w.y, et = (t, e, n) => { const o = t.includes(Zt) && (I === It || "auto" === I && e === Zt); return O(yo, o, n), o }; if (p = z, K && (N && U ? (A(!1), u(), g((() => { u = Q(S, "scroll", M(A, !0), { A: !0 }) }))) : A(!0)), L && O(po, tt), R && (O(d), O(k, !0), d = k), B && !N && A(!0), D && (i = "move" === P, l = "leave" === P, a = "never" === P, Z(a, !0)), j && O(wo, _), W && O(bo, V), J) { const t = et(X.x, x.x, !0), e = et(X.y, x.y, !1); O(vo, !(t && e)) } Y && (T(), C(), H(), O(Nn, !$.x, !0), O(Nn, !$.y, !1), O(mo, b && !G)) }, {}, $] }, _o = t => { const e = Lt(), { P: n, R: o } = e, { elements: s } = n(), { host: r, padding: c, viewport: i, content: l } = s, a = Se(t), d = a ? {} : t, { elements: u } = d, { host: p, padding: y, viewport: h, content: f } = u || {}, m = a ? t : d.target, v = fs(m), g = xe(m, "textarea"), b = m.ownerDocument, w = b.documentElement, x = () => b.defaultView || ft, $ = M(xo, [m]), E = M(Os, [m]), L = M(Gt, ""), S = M($, L, i), G = M(E, L, l), O = S(h), T = O === m, C = T && v, H = !T && G(f), Z = !T && O === H, k = C ? w : O, A = g ? $(L, r, p) : m, R = C ? k : A, I = !T && E(L, c, y), q = !Z && H, P = [q, k, I, R].map((t => Se(t) && !Kt(t) && t)), D = t => t && rn(P, t), N = D(k) ? m : k, B = { vt: m, ht: R, ot: k, cn: I, bt: q, gt: C ? w : k, Kt: C ? b : k, rn: v ? w : N, Jt: b, wt: g, yt: v, Dt: a, nt: T, ln: x, St: t => dn(k, Pt, t), Ot: (t, e) => We(k, Pt, t, e) }, { vt: z, ht: _, cn: j, ot: V, bt: W } = B, X = [() => { Et(_, [Dt, _e]), Et(z, _e), v && Et(w, [_e, Dt]) }], F = g && D(_); let K = g ? z : Ze([W, V, j, _, z].find((t => t && !D(t)))); const U = C ? z : W || V, Y = M(St, X); return [B, () => { const t = x(), e = Ke(), n = t => { gt(Kt(t), Ze(t)), Rt(t) }, s = t => Q(t, "focusin focusout focus blur", vs, { I: !0, H: !1 }), r = "tabindex", c = an(V, r), i = s(e); return Tt(_, Dt, T ? "" : so), Tt(j, nn, ""), Tt(V, Pt, ""), Tt(W, _n, ""), T || (Tt(V, r, c || "-1"), v && Tt(w, Bn, "")), F && ($n(z, _), st(X, (() => { $n(_, z), Rt(_) }))), gt(U, K), gt(_, j), gt(j || _, !T && V), gt(V, W), st(X, [i, () => { const t = Ke(), e = D(V), o = e && t === V ? z : t, i = s(o); Et(j, nn), Et(W, _n), Et(V, Pt), v && Et(w, Bn), c ? Tt(V, r, c) : Et(V, r), D(W) && n(W), e && n(V), D(j) && n(j), tn(o), i() }]), o && !T && (un(V, Pt, xs), st(X, M(Et, V, Pt))), tn(!T && v && e === z && t.top === t ? V : e), i(), K = 0, Y }, Y] }, zo = ({ bt: t }) => ({ Gt: e, an: n, Tt: o }) => { const { xt: s } = e || {}, { $t: r } = n; t && (s || o) && ne(t, { [Wt]: r && "100%" }) }, No = ({ ht: t, cn: e, ot: n, nt: o }, s) => { const [r, c] = ht({ i: Ws, o: An() }, M(An, t, "padding", "")); return ({ It: t, Gt: i, an: l, Tt: a }) => { let [d, u] = c(a); const { R: p } = Lt(), { ft: y, Ht: h, Ct: f } = i || {}, { ct: m } = l, [v, g] = t("paddingAbsolute"); (y || u || a || h) && ([d, u] = r(a)); const b = !o && (g || f || u); if (b) { const t = !v || !e && !p, o = d.r + d.l, r = d.t + d.b, c = { [ss]: t && !m ? -o : 0, [os]: t ? -r : 0, [ns]: t && m ? -o : 0, top: t ? -d.t : 0, right: t ? m ? -d.r : "auto" : 0, left: t ? m ? "auto" : -d.l : 0, [Ut]: t && `calc(100% + ${o}px)` }, i = { [Jn]: t ? d.t : 0, [Qn]: t ? d.r : 0, [es]: t ? d.b : 0, [ts]: t ? d.l : 0 }; ne(e || n, c), ne(n, i), G(s, { cn: d, un: !t, rt: e ? i : G({}, c, i) }) } return { _n: b } } }, qo = (t, e) => { const n = Lt(), { ht: o, cn: s, ot: r, nt: c, Kt: i, gt: l, yt: a, Ot: d, ln: u } = t, { R: p } = n, y = a && c, h = M(Wn, 0), f = ["display", "direction", "flexDirection", "writingMode"], m = { i: cs, o: { w: 0, h: 0 } }, v = { i: me, o: {} }, g = t => { d(Ss, !y && t) }, [b, w] = ht(m, M(mn, r)), [x, $] = ht(m, M(Ye, r)), [E, L] = ht(m), [S] = ht(v), [O, T] = ht(m), [C] = ht(v), [H] = ht({ i: (t, e) => Ae(t, e, f), o: {} }, (() => to(r) ? qt(r, f) : {})), [Z, k] = ht({ i: (t, e) => me(t.T, e.T) && me(t.D, e.D), o: bs() }, (() => { g(!0); const t = yt(l), e = d(io, !0), n = Q(i, Zt, (e => { const n = yt(l); e.isTrusted && n.x === t.x && n.y === t.y && ys(e) }), { I: !0, A: !0 }); Ct(l, { x: 0, y: 0 }), e(); const o = yt(l), s = Ye(l); Ct(l, { x: s.w, y: s.h }); const r = yt(l); Ct(l, { x: r.x - o.x < 1 && -s.w, y: r.y - o.y < 1 && -s.h }); const c = yt(l); return Ct(l, t), on((() => n())), { T: o, D: c } })), A = se(Hs), R = (t, e) => `${e ? oo : co}${Us(t)}`; return ({ It: c, Gt: i, an: l, Tt: a }, { _n: f }) => { const { ft: m, Ht: v, Ct: M, dt: Q, zt: I } = i || {}, q = A && A.tt(t, e, l, n, c), { it: P, ut: D, _t: N } = q || {}, [B, z] = Ho(c, n), [_, j] = c("overflow"), V = Ee(_.x), W = Ee(_.y), X = m || f || v || M || I || z; let F = w(a), K = $(a), U = L(a), Y = T(a); if (z && p && d(xs, !B), X) { dn(o, Dt, ge) && g(!0); const [t] = D ? D() : [], [e] = F = b(a), [n] = K = x(a), s = hs(r), c = y && Qs(u()), i = { w: h(n.w + e.w), h: h(n.h + e.h) }, l = { w: h((c ? c.w : s.w + h(s.w - n.w)) + e.w), h: h((c ? c.h : s.h + h(s.h - n.h)) + e.h) }; t && t(), Y = O(l), U = E(((t, e) => { const n = ft.devicePixelRatio % 1 != 0 ? 1 : 0, o = { w: h(t.w - e.w), h: h(t.h - e.h) }; return { w: o.w > n ? o.w : 0, h: o.h > n ? o.h : 0 } })(i, l), a) } const [J, tt] = Y, [et, nt] = U, [ot, st] = K, [rt, ct] = F, [it, lt] = S({ x: et.w > 0, y: et.h > 0 }), at = V && W && (it.x || it.y) || V && it.x && !it.y || W && it.y && !it.x, dt = f || M || I || ct || st || tt || nt || j || z || X, ut = ko(it, _), [pt, yt] = C(ut.G), [, ht] = H(a), mt = M || Q || ht || lt || a, [vt, gt] = mt ? Z(a) : k(); return dt && (yt && (t => { const e = t => [It, _t, Zt].map((e => R(e, t))), n = e(!0).concat(e()).join(" "); d(n), d(Ht(t).map((e => R(t[e], "x" === e))).join(" "), !0) })(ut.G), N && P && ne(r, N(ut, l, P(ut, ot, rt)))), g(!1), We(o, Dt, ge, at), We(s, nn, ge, at), G(e, { G: pt, Vt: { x: J.w, y: J.h }, Rt: { x: et.w, y: et.h }, en: it, Pt: eo(vt, et) }), { nn: yt, Zt: tt, tn: nt, sn: gt || nt, dn: mt } } }, Vo = t => { const [e, n, o] = _o(t), s = { cn: { t: 0, r: 0, b: 0, l: 0 }, un: !1, rt: { [ss]: 0, [os]: 0, [ns]: 0, [Jn]: 0, [Qn]: 0, [es]: 0, [ts]: 0 }, Vt: { x: 0, y: 0 }, Rt: { x: 0, y: 0 }, G: { x: _t, y: _t }, en: { x: !1, y: !1 }, Pt: bs() }, { vt: r, gt: c, nt: i } = e, { R: l, M: a } = Lt(), d = !l && (a.x || a.y), u = [zo(e), No(e, s), qo(e, s)]; return [n, t => { const e = {}, n = d && yt(c); return Z(u, (n => { G(e, n(t, e) || {}) })), Ct(c, n), !i && Ct(r, 0), e }, s, e, o] }, Fo = (t, e, n, o, s) => { const r = Rn(e, {}), [c, i, l, a, d] = Vo(t), [u, p, y] = Mo(a, l, r, (t => { g({}, t) })), [h, f, , m] = Bo(t, e, y, l, a, s), v = t => Ht(t).some((e => !!t[e])), g = (t, s) => { if (n()) return !1; const { fn: r, Tt: c, At: l, pn: a } = t, d = r || {}, u = !!c, h = { It: Rn(e, d, u), fn: d, Tt: u }; if (a) return f(h), !1; const m = s || p(G({}, h, { At: l })), g = i(G({}, h, { an: y, Gt: m })); f(G({}, h, { Gt: m, Qt: g })); const b = v(m), w = v(g), x = b || w || !ln(d) || u; return x && o(t, { Gt: m, Qt: g }), x }; return [() => { const { rn: t, gt: e } = a, n = yt(t), o = [u(), c(), h()]; return Ct(e, n), M(St, o) }, g, () => ({ vn: y, hn: l }), { gn: a, bn: m }, d] }, Vt = (t, e, n) => { const { N: o } = Lt(), s = Se(t), r = s ? t : t.target, c = $s(r); if (e && !c) { let c = !1; const i = [], l = {}, a = t => { const e = ls(t), n = se(To); return n ? n(e, !0) : e }, d = G({}, o(), a(e)), [u, p, y] = en(), [h, f, m] = en(n), v = (t, e) => { m(t, e), y(t, e) }, [g, b, w, x, $] = Fo(t, d, (() => c), (({ fn: t, Tt: e }, { Gt: n, Qt: o }) => { const { ft: s, Ct: r, xt: c, Ht: i, Et: l, dt: a } = n, { Zt: d, tn: u, nn: p, sn: y } = o; v("updated", [L, { updateHints: { sizeChanged: !!s, directionChanged: !!r, heightIntrinsicChanged: !!c, overflowEdgeChanged: !!d, overflowAmountChanged: !!u, overflowStyleChanged: !!p, scrollCoordinatesChanged: !!y, contentMutation: !!i, hostMutation: !!l, appear: !!a }, changedOptions: t || {}, force: !!e }]) }), (t => v("scroll", [L, t]))), E = t => { Oo(r), St(i), c = !0, v("destroyed", [L, t]), p(), f() }, L = { options(t, e) { if (t) { const n = e ? o() : {}, s = ws(d, G(n, a(t))); ln(s) || (G(d, s), b({ fn: s })) } return G({}, d) }, on: h, off: (t, e) => { t && e && f(t, e) }, state() { const { vn: t, hn: e } = w(), { ct: n } = t, { Vt: o, Rt: s, G: r, en: i, cn: l, un: a, Pt: d } = e; return G({}, { overflowEdge: o, overflowAmount: s, overflowStyle: r, hasOverflow: i, scrollCoordinates: { start: d.T, end: d.D }, padding: l, paddingAbsolute: a, directionRTL: n, destroyed: c }) }, elements() { const { vt: t, ht: e, cn: n, ot: o, bt: s, gt: r, Kt: c } = x.gn, { Ft: i, Wt: l } = x.bn, a = t => { const { Mt: e, kt: n, Lt: o } = t; return { scrollbar: o, track: n, handle: e } }, d = t => { const { jt: e, Xt: n } = t, o = a(e[0]); return G({}, o, { clone: () => { const t = a(n()); return b({ pn: !0 }), t } }) }; return G({}, { target: t, host: e, padding: n || o, viewport: o, content: s || o, scrollOffsetElement: r, scrollEventElement: c, scrollbarHorizontal: d(i), scrollbarVertical: d(l) }) }, update: t => b({ Tt: t, At: !0 }), destroy: M(E, !1), plugin: t => l[Ht(t)[0]] }; return st(i, [$]), Co(r, L), As(Ls, Vt, [L, u, l]), Eo(x.gn.yt, !s && t.cancel) ? (E(!0), L) : (st(i, g()), v("initialized", [L]), L.update(!0), L) } return c }; function vn(t, e) { document.addEventListener("click", (n => { let o = document.getElementById(t), s = n.target; for (let t of e) { let e = document.getElementById(t); if (e == s || e?.contains(s)) return } })) } function jo() { const t = _s(); zs(t) } function Go() { Ns(qs()) } function Uo() { const t = document.getElementById("banner-wrapper"); } function Ps() { Vt({ target: document.querySelector("body"), cancel: { nativeScrollbarsOverlaid: !0 } }, { scrollbars: { theme: "scrollbar-base scrollbar-auto py-1", autoHide: "move", autoHideDelay: 500, autoHideSuspend: !1 } }), document.querySelectorAll("pre").forEach((t => { Vt(t, { scrollbars: { theme: "scrollbar-base scrollbar-dark px-2", autoHide: "leave", autoHideDelay: 500, autoHideSuspend: !1 } }) })) } function Is() { Uo(), jo(), Go(), Ps() } Vt.plugin = t => { const e = $t(t), n = e ? t : [t], o = n.map((t => As(t, Vt)[0])); return Lo(n), e ? o : o[0] }, Vt.valid = t => { const e = t && t.elements, n = wt(e) && e(); return we(n) && !!$s(n.target) }, Vt.env = () => { const { k: t, M: e, R: n, V: o, B: s, F: r, P: c, U: i, N: l, q: a } = Lt(); return G({}, { scrollbarsSize: t, scrollbarsOverlaid: e, scrollbarsHiding: n, scrollTimeline: o, staticDefaultInitialization: s, staticDefaultOptions: r, getDefaultInitialization: c, setDefaultInitialization: i, getDefaultOptions: l, setDefaultOptions: a }) }, vn("display-setting", ["display-setting", "display-settings-switch"]), vn("nav-menu-panel", ["nav-menu-panel", "nav-menu-switch"]), vn("search-panel", ["search-panel", "search-bar", "search-switch"]), Is(), document.addEventListener("astro:after-swap", Is); const jn = () => { window.swup.hooks.on("link:click", (() => { document.documentElement.style.setProperty("--content-delay", "0ms") })), window.swup.hooks.on("content:replace", Ps) }; function Wo() { "dark" === localStorage.theme ? (document.documentElement.classList.remove("dark"), localStorage.theme = "light") : (document.documentElement.classList.add("dark"), localStorage.theme = "dark") } function Ms() { document.getElementById("scheme-switch").addEventListener("click", (function () { Wo() })); let t = document.getElementById("display-settings-switch"); t && t.addEventListener("click", (function () { document.getElementById("display-setting").classList.toggle("float-panel-closed") })), document.getElementById("nav-menu-switch").addEventListener("click", (function () { document.getElementById("nav-menu-panel").classList.toggle("float-panel-closed") })) } window.swup.hooks ? jn() : document.addEventListener("swup:enable", jn), Ms(), document.addEventListener("astro:after-swap", (() => { Ms() }), { once: !1 }); class Zo extends HTMLElement { constructor() { if (super(), void 0 === this.dataset.isCollapsed || !1 === this.dataset.isCollapsed) return; const t = this.dataset.id, e = this.querySelector(".expand-btn"), n = this.querySelector(`#${t}`); e.addEventListener("click", (() => { n.classList.remove("collapsed"), e.classList.add("hidden") })) } } customElements.define("widget-layout", Zo);