typerighter 0.57.2 → 0.57.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { $ as e, A as t, C as n, D as r, E as i, I as a, L as o, N as s, P as c, R as l, T as u, Y as d, _ as f, a as p, b as m, c as h, f as g, j as _, k as v, l as y, n as b, nt as x, p as ee, r as S, rt as C, s as w, v as T, w as te, y as ne } from "./shared-dB08amQA.js";
2
- import { l as E, o as re } from "./useSidebarConfig-0kMemgUS.js";
1
+ import { A as e, C as t, D as n, E as r, I as i, L as a, N as o, P as s, R as c, T as l, X as u, _ as d, a as f, b as p, c as m, et as h, f as g, it as _, j as v, k as y, l as b, n as x, p as S, r as C, rt as w, s as T, v as E, w as ee, y as te } from "./shared-BhUHq27C.js";
2
+ import { l as ne, o as re } from "./useSidebarConfig-0kMemgUS.js";
3
3
  import { t as ie } from "./es-B_QJMowB.js";
4
- import { a as ae, i as oe, n as se, t as ce } from "./brand-BSCRFcrY.js";
5
- import { t as le } from "./inlineRe-CoUp2DgK.js";
6
- import { Fragment as D, Teleport as ue, Transition as de, computed as O, createApp as fe, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createTextVNode as N, createVNode as P, defineComponent as F, getCurrentScope as pe, h as me, inject as he, markRaw as ge, mergeModels as _e, mergeProps as ve, nextTick as ye, normalizeClass as I, normalizeStyle as L, onBeforeUnmount as be, onMounted as xe, onScopeDispose as Se, onUnmounted as R, openBlock as z, provide as Ce, reactive as we, readonly as Te, ref as B, render as Ee, renderList as V, renderSlot as H, resolveComponent as De, resolveDynamicComponent as U, shallowReadonly as Oe, shallowRef as ke, toDisplayString as W, toValue as Ae, unref as G, useModel as je, useTemplateRef as K, vModelText as Me, vShow as Ne, watch as q, watchEffect as Pe, withCtx as J, withDirectives as Fe, withKeys as Ie, withModifiers as Le } from "vue";
4
+ import { a as ae, i as D, n as oe, t as se } from "./brand-BSCRFcrY.js";
5
+ import { t as ce } from "./inlineRe-CoUp2DgK.js";
6
+ import { Fragment as O, Teleport as le, Transition as ue, computed as k, createApp as de, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createTextVNode as P, createVNode as F, defineComponent as I, getCurrentScope as fe, h as pe, inject as me, markRaw as he, mergeModels as ge, mergeProps as _e, nextTick as ve, normalizeClass as L, normalizeStyle as R, onBeforeUnmount as ye, onMounted as be, onScopeDispose as xe, onUnmounted as z, openBlock as B, provide as Se, reactive as Ce, readonly as we, ref as V, render as Te, renderList as H, renderSlot as U, resolveComponent as Ee, resolveDynamicComponent as De, shallowReadonly as Oe, shallowRef as ke, toDisplayString as W, toValue as Ae, unref as G, useModel as je, useTemplateRef as K, vModelText as Me, vShow as Ne, watch as q, watchEffect as Pe, withCtx as J, withDirectives as Fe, withKeys as Ie, withModifiers as Le } from "vue";
7
7
  // ../../node_modules/.pnpm/@lucide+vue@1.47.0_vue@3.5.44_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/shared/src/build/defaultAttributes.mjs
8
8
  var Re = {
9
9
  xmlns: "http://www.w3.org/2000/svg",
@@ -58,7 +58,7 @@ var He = (e) => {
58
58
  return !1;
59
59
  }, Ue = (e) => e === "", We = (e) => e?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ge = /* @__PURE__ */ Symbol("lucide-icons");
60
60
  function Ke() {
61
- return he(Ge, {});
61
+ return me(Ge, {});
62
62
  }
63
63
  // ../../node_modules/.pnpm/@lucide+vue@1.47.0_vue@3.5.44_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/Icon.mjs
64
64
  var qe = ({ name: e, iconNode: t, "icon-node": n, icon: r = {
@@ -67,20 +67,20 @@ var qe = ({ name: e, iconNode: t, "icon-node": n, icon: r = {
67
67
  size: 24,
68
68
  aliases: []
69
69
  }, absoluteStrokeWidth: i, "absolute-stroke-width": a, nonScalingStroke: o, "non-scaling-stroke": s, strokeWidth: c, "stroke-width": l, size: u, width: d = u, height: f = u, color: p, ...m }, { slots: h }) => {
70
- let { size: g, color: _, strokeWidth: v = 2, absoluteStrokeWidth: y = !1, nonScalingStroke: b = !1, class: x = "" } = Ke(), ee = Ue(i) || Ue(a) || i === !0 || a === !0 || y === !0, S = Ue(o) || Ue(s) || o === !0 || s === !0 || b === !0;
70
+ let { size: g, color: _, strokeWidth: v = 2, absoluteStrokeWidth: y = !1, nonScalingStroke: b = !1, class: x = "" } = Ke(), S = Ue(i) || Ue(a) || i === !0 || a === !0 || y === !0, C = Ue(o) || Ue(s) || o === !0 || s === !0 || b === !0;
71
71
  delete m.class;
72
- let C = h.default?.(), [, w, T = []] = Ve(r, {
72
+ let w = h.default?.(), [, T, E = []] = Ve(r, {
73
73
  color: p ?? _,
74
74
  width: d ?? u ?? g,
75
75
  height: f ?? u ?? g,
76
76
  strokeWidth: c ?? l ?? v,
77
- absoluteStrokeWidth: ee,
78
- nonScalingStroke: S,
77
+ absoluteStrokeWidth: S,
78
+ nonScalingStroke: C,
79
79
  className: x,
80
- hasA11yProp: C != null && C.length > 0 || He(m),
80
+ hasA11yProp: w != null && w.length > 0 || He(m),
81
81
  attributes: m
82
82
  });
83
- return me("svg", w, [...T.map((e) => me(...e)), ...C ?? []]);
83
+ return pe("svg", T, [...E.map((e) => pe(...e)), ...w ?? []]);
84
84
  };
85
85
  // ../../node_modules/.pnpm/@lucide+vue@1.47.0_vue@3.5.44_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/createLucideIcon.mjs
86
86
  function Y(e, t = []) {
@@ -88,7 +88,7 @@ function Y(e, t = []) {
88
88
  name: e,
89
89
  node: t
90
90
  } : e;
91
- return (e, { slots: t }) => me(qe, {
91
+ return (e, { slots: t }) => pe(qe, {
92
92
  ...e,
93
93
  icon: n
94
94
  }, t.default ? { default: t.default } : void 0);
@@ -3485,19 +3485,19 @@ var Je = Y({
3485
3485
  filepath: ""
3486
3486
  };
3487
3487
  function ki(e, t = {}) {
3488
- let n = a(t.basePath ?? "/"), r = we({
3488
+ let n = i(t.basePath ?? "/"), r = Ce({
3489
3489
  path: "/",
3490
3490
  hash: "",
3491
3491
  query: "",
3492
3492
  contentSfc: void 0,
3493
3493
  data: Oi
3494
- }), i = {
3494
+ }), a = {
3495
3495
  route: r,
3496
3496
  async go(e, t) {
3497
- if (e = Pi(e, n), await i.onBeforeRouteChange?.(e) !== !1) {
3497
+ if (e = Pi(e, n), await a.onBeforeRouteChange?.(e) !== !1) {
3498
3498
  Ei && document.documentElement.classList.add("td-navigating");
3499
3499
  try {
3500
- (!Ei || t?.initialLoad || Ni(e, n, t)) && await s(e), c(), await i.onAfterRouteChange?.(e);
3500
+ (!Ei || t?.initialLoad || Ni(e, n, t)) && await s(e), c(), await a.onAfterRouteChange?.(e);
3501
3501
  } finally {
3502
3502
  Ei && document.documentElement.classList.remove("td-navigating");
3503
3503
  }
@@ -3514,12 +3514,12 @@ function ki(e, t = {}) {
3514
3514
  if (o === a) {
3515
3515
  o = void 0;
3516
3516
  let { default: e, pageData: n } = t;
3517
- r.path = a, r.contentSfc = ge(e), r.data = ge(n), c(i), Ei && ye(() => {
3517
+ r.path = a, r.contentSfc = he(e), r.data = he(n), c(i), Ei && ve(() => {
3518
3518
  i.hash ? Ai(i.hash) : window.scrollTo(0, 0);
3519
3519
  });
3520
3520
  }
3521
3521
  } catch {
3522
- o === a && (o = void 0, r.path = a, r.contentSfc = t.fallbackComponent ? ge(t.fallbackComponent) : void 0, r.data = Oi, c(i));
3522
+ o === a && (o = void 0, r.path = a, r.contentSfc = t.fallbackComponent ? he(t.fallbackComponent) : void 0, r.data = Oi, c(i));
3523
3523
  }
3524
3524
  }
3525
3525
  function c(e = Ei ? location : {
@@ -3534,8 +3534,8 @@ function ki(e, t = {}) {
3534
3534
  if (!t || t.hasAttribute("download") || t.hasAttribute("target")) return;
3535
3535
  let n = t.getAttribute("href");
3536
3536
  if (n === null) return;
3537
- let { href: r, origin: a, pathname: o } = new URL(n, t.baseURI);
3538
- a === location.origin && !o.match(/\.\w+$/) && (e.preventDefault(), i.go(r));
3537
+ let { href: r, origin: i, pathname: o } = new URL(n, t.baseURI);
3538
+ i === location.origin && !o.match(/\.\w+$/) && (e.preventDefault(), a.go(r));
3539
3539
  }, { capture: !0 }), window.addEventListener("pointerenter", (t) => {
3540
3540
  if (!(t.target instanceof HTMLAnchorElement)) return;
3541
3541
  let r = t.target.getAttribute("href");
@@ -3551,10 +3551,10 @@ function ki(e, t = {}) {
3551
3551
  }), window.addEventListener("popstate", async (e) => {
3552
3552
  if (e.state == null) return;
3553
3553
  let t = Pi(location.href, n);
3554
- await s(t), c(), await i.onAfterRouteChange?.(t);
3554
+ await s(t), c(), await a.onAfterRouteChange?.(t);
3555
3555
  }), window.addEventListener("hashchange", (e) => {
3556
3556
  e.preventDefault(), c();
3557
- })), i;
3557
+ })), a;
3558
3558
  }
3559
3559
  function Ai(e) {
3560
3560
  if (!e) return;
@@ -3570,7 +3570,7 @@ function ji() {
3570
3570
  return Mi().route;
3571
3571
  }
3572
3572
  function Mi() {
3573
- let e = he(Di);
3573
+ let e = me(Di);
3574
3574
  if (!e) throw Error("useRouter() called outside of Typedown app");
3575
3575
  return e;
3576
3576
  }
@@ -3584,42 +3584,42 @@ function Ni(e, t, { replace: n = !1 } = {}) {
3584
3584
  }
3585
3585
  function Pi(e, t) {
3586
3586
  let n = new URL(e, "http://a.com"), r = n.pathname.replace(/\.html$/, "");
3587
- return t && t !== "/" && (r === t || r.startsWith(t + "/")) && (r = r.slice(t.length) || "/"), n.pathname = s(r), n.pathname + n.search + n.hash;
3587
+ return t && t !== "/" && (r === t || r.startsWith(t + "/")) && (r = r.slice(t.length) || "/"), n.pathname = o(r), n.pathname + n.search + n.hash;
3588
3588
  }
3589
3589
  // src/client/app/components/Content.ts
3590
- var Fi = F({
3590
+ var Fi = I({
3591
3591
  name: "TypedownContent",
3592
3592
  setup() {
3593
3593
  let e = ji();
3594
- return () => e.contentSfc ? me(e.contentSfc) : void 0;
3594
+ return () => e.contentSfc ? pe(e.contentSfc) : void 0;
3595
3595
  }
3596
3596
  }), Ii = [
3597
3597
  "height",
3598
3598
  "width",
3599
3599
  "viewBox"
3600
- ], Li = ["d"], Ri = ["d"], zi = ["d"], Bi = /* @__PURE__ */ F({
3600
+ ], Li = ["d"], Ri = ["d"], zi = ["d"], Bi = /* @__PURE__ */ I({
3601
3601
  __name: "TdBrandIcon",
3602
3602
  props: { size: { default: 28 } },
3603
3603
  setup(e) {
3604
- return (t, n) => (z(), j("svg", {
3604
+ return (t, n) => (B(), M("svg", {
3605
3605
  fill: "none",
3606
3606
  height: e.size,
3607
3607
  width: e.size * 208 / 128,
3608
3608
  viewBox: G(ae),
3609
3609
  xmlns: "http://www.w3.org/2000/svg"
3610
3610
  }, [
3611
- M("path", {
3611
+ N("path", {
3612
3612
  "clip-rule": "evenodd",
3613
- d: G(se),
3613
+ d: G(oe),
3614
3614
  "fill-rule": "evenodd",
3615
3615
  fill: "currentColor"
3616
3616
  }, null, 8, Li),
3617
- M("path", {
3618
- d: G(oe),
3617
+ N("path", {
3618
+ d: G(D),
3619
3619
  fill: "currentColor"
3620
3620
  }, null, 8, Ri),
3621
- M("path", {
3622
- d: G(ce),
3621
+ N("path", {
3622
+ d: G(se),
3623
3623
  fill: "currentColor"
3624
3624
  }, null, 8, zi)
3625
3625
  ], 8, Ii));
@@ -3836,14 +3836,14 @@ var ha = 50, ga = async (e, t, n) => {
3836
3836
  let d = da(u), f = {
3837
3837
  x: n,
3838
3838
  y: r
3839
- }, p = $i(i), m = Zi(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], ee = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), S = ee ? ee[y] : 0;
3840
- S && await (o.isElement == null ? void 0 : o.isElement(ee)) || (S = s.floating[y] || a.floating[m]);
3841
- let C = b / 2 - x / 2, w = S / 2 - h[m] / 2 - 1, T = Vi(d[_], w), te = Vi(d[v], w), ne = S - h[m] - te, E = S / 2 - h[m] / 2 + C, re = Ki(T, E, ne), ie = !c.arrow && Yi(i) != null && E !== re && a.reference[m] / 2 - (E < T ? T : te) - h[m] / 2 < 0, ae = ie ? E < T ? E - T : E - ne : 0;
3839
+ }, p = $i(i), m = Zi(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
3840
+ C && await (o.isElement == null ? void 0 : o.isElement(S)) || (C = s.floating[y] || a.floating[m]);
3841
+ let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Vi(d[_], T), ee = Vi(d[v], T), te = C - h[m] - ee, ne = C / 2 - h[m] / 2 + w, re = Ki(E, ne, te), ie = !c.arrow && Yi(i) != null && ne !== re && a.reference[m] / 2 - (ne < E ? E : ee) - h[m] / 2 < 0, ae = ie ? ne < E ? ne - E : ne - te : 0;
3842
3842
  return {
3843
3843
  [p]: f[p] + ae,
3844
3844
  data: {
3845
3845
  [p]: re,
3846
- centerOffset: E - re - ae,
3846
+ centerOffset: ne - re - ae,
3847
3847
  ...ie && { alignmentOffset: ae }
3848
3848
  },
3849
3849
  reset: ie
@@ -3859,27 +3859,27 @@ var ha = 50, ga = async (e, t, n) => {
3859
3859
  if ((n = i.arrow) != null && n.alignmentOffset) return {};
3860
3860
  let g = Ji(r), _ = Qi(o), v = Ji(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [la(o)] : ta(o)), x = p !== "none";
3861
3861
  !d && x && b.push(...ca(o, m, p, y));
3862
- let ee = [o, ...b], S = await s.detectOverflow(t, h), C = [], w = i.flip?.overflows || [];
3863
- if (l && C.push(S[g]), u) {
3862
+ let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
3863
+ if (l && w.push(C[g]), u) {
3864
3864
  let e = ea(r, a, y);
3865
- C.push(S[e[0]], S[e[1]]);
3865
+ w.push(C[e[0]], C[e[1]]);
3866
3866
  }
3867
- if (w = [...w, {
3867
+ if (T = [...T, {
3868
3868
  placement: r,
3869
- overflows: C
3870
- }], !C.every((e) => e <= 0)) {
3871
- let e = (i.flip?.index || 0) + 1, t = ee[e];
3872
- if (t && (u !== "alignment" || _ === Qi(t) || w.every((e) => Qi(e.placement) !== _ || e.overflows[0] > 0))) return {
3869
+ overflows: w
3870
+ }], !w.every((e) => e <= 0)) {
3871
+ let e = (i.flip?.index || 0) + 1, t = S[e];
3872
+ if (t && (u !== "alignment" || _ === Qi(t) || T.every((e) => Qi(e.placement) !== _ || e.overflows[0] > 0))) return {
3873
3873
  data: {
3874
3874
  index: e,
3875
- overflows: w
3875
+ overflows: T
3876
3876
  },
3877
3877
  reset: { placement: t }
3878
3878
  };
3879
- let n = w.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
3879
+ let n = T.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
3880
3880
  if (!n) switch (f) {
3881
3881
  case "bestFit": {
3882
- let e = w.filter((e) => {
3882
+ let e = T.filter((e) => {
3883
3883
  if (x) {
3884
3884
  let t = Qi(e.placement);
3885
3885
  return t === _ || t === "y";
@@ -4342,7 +4342,7 @@ function Ao(e, t) {
4342
4342
  }
4343
4343
  function jo(e, t, n) {
4344
4344
  n === void 0 && (n = {});
4345
- let r = n.whileElementsMounted, i = O(() => Ae(n.open) ?? !0), a = O(() => Ae(n.middleware)), o = O(() => Ae(n.placement) ?? "bottom"), s = O(() => Ae(n.strategy) ?? "absolute"), c = O(() => Ae(n.transform) ?? !0), l = O(() => Do(e.value)), u = O(() => Do(t.value)), d = B(0), f = B(0), p = B(s.value), m = B(o.value), h = ke({}), g = B(!1), _ = O(() => {
4345
+ let r = n.whileElementsMounted, i = k(() => Ae(n.open) ?? !0), a = k(() => Ae(n.middleware)), o = k(() => Ae(n.placement) ?? "bottom"), s = k(() => Ae(n.strategy) ?? "absolute"), c = k(() => Ae(n.transform) ?? !0), l = k(() => Do(e.value)), u = k(() => Do(t.value)), d = V(0), f = V(0), p = V(s.value), m = V(o.value), h = ke({}), g = V(!1), _ = k(() => {
4346
4346
  let e = {
4347
4347
  position: p.value,
4348
4348
  left: "0",
@@ -4377,7 +4377,7 @@ function jo(e, t, n) {
4377
4377
  function x() {
4378
4378
  b(), r === void 0 ? y() : l.value != null && u.value != null && (v = r(l.value, u.value, y));
4379
4379
  }
4380
- function ee() {
4380
+ function S() {
4381
4381
  i.value || (g.value = !1);
4382
4382
  }
4383
4383
  return q([
@@ -4385,7 +4385,7 @@ function jo(e, t, n) {
4385
4385
  o,
4386
4386
  s,
4387
4387
  i
4388
- ], y, { flush: "sync" }), q([l, u], x, { flush: "sync" }), q(i, ee, { flush: "sync" }), pe() && Se(b), {
4388
+ ], y, { flush: "sync" }), q([l, u], x, { flush: "sync" }), q(i, S, { flush: "sync" }), fe() && xe(b), {
4389
4389
  x: Oe(d),
4390
4390
  y: Oe(f),
4391
4391
  strategy: Oe(p),
@@ -4399,7 +4399,7 @@ function jo(e, t, n) {
4399
4399
  // src/client/theme-default/utils/keys.ts
4400
4400
  var X = /* @__PURE__ */ function(e) {
4401
4401
  return e.ArrowDown = "ArrowDown", e.ArrowUp = "ArrowUp", e.ArrowLeft = "ArrowLeft", e.ArrowRight = "ArrowRight", e.Enter = "Enter", e.Tab = "Tab", e.Space = " ", e.Escape = "Escape", e.Shift = "Shift", e.Control = "Control", e.Alt = "Alt", e.Meta = "Meta", e.Delete = "Delete", e.Backspace = "Backspace", e.F1 = "F1", e.F2 = "F2", e.F3 = "F3", e.F4 = "F4", e.F5 = "F5", e.F6 = "F6", e.F7 = "F7", e.F8 = "F8", e.F9 = "F9", e.F10 = "F10", e.F11 = "F11", e.F12 = "F12", e.a = "a", e.b = "b", e.c = "c", e.d = "d", e.e = "e", e.f = "f", e.g = "g", e.h = "h", e.i = "i", e.j = "j", e.k = "k", e.l = "l", e.m = "m", e.n = "n", e.o = "o", e.p = "p", e.q = "q", e.r = "r", e.s = "s", e.t = "t", e.u = "u", e.v = "v", e.w = "w", e.x = "x", e.y = "y", e.z = "z", e.FSlash = "/", e.Question = "?", e.Backslash = "\\", e;
4402
- }({}), Mo = { class: "td-kbd-shortcut" }, No = /*@__PURE__*/ F({
4402
+ }({}), Mo = { class: "td-kbd-shortcut" }, No = /*@__PURE__*/ I({
4403
4403
  __name: "TdKbdShortcut",
4404
4404
  props: { keys: {} },
4405
4405
  setup(e) {
@@ -4419,22 +4419,22 @@ var X = /* @__PURE__ */ function(e) {
4419
4419
  [X.Escape]: "Esc",
4420
4420
  [X.Tab]: "Tab",
4421
4421
  [X.Backspace]: "⌫"
4422
- }, r = O(() => e.keys.map((e) => {
4422
+ }, r = k(() => e.keys.map((e) => {
4423
4423
  let r = t[e];
4424
4424
  if (r) return { icon: r };
4425
4425
  let i = n[e];
4426
4426
  return i ? { label: i } : { label: e.toUpperCase() };
4427
4427
  }));
4428
- return (e, t) => (z(), j("span", Mo, [(z(!0), j(D, null, V(r.value, (e, t) => (z(), j("kbd", { key: t }, [e.icon ? (z(), k(U(e.icon), {
4428
+ return (e, t) => (B(), M("span", Mo, [(B(!0), M(O, null, H(r.value, (e, t) => (B(), M("kbd", { key: t }, [e.icon ? (B(), A(De(e.icon), {
4429
4429
  key: 0,
4430
4430
  size: 12
4431
- })) : (z(), j(D, { key: 1 }, [N(W(e.label), 1)], 64))]))), 128))]));
4431
+ })) : (B(), M(O, { key: 1 }, [P(W(e.label), 1)], 64))]))), 128))]));
4432
4432
  }
4433
4433
  }), Z = (e, t) => {
4434
4434
  let n = e.__vccOpts || e;
4435
4435
  for (let [e, r] of t) n[e] = r;
4436
4436
  return n;
4437
- }, Q = /*#__PURE__*/ Z(No, [["__scopeId", "data-v-ad94203e"]]), Po = /*#__PURE__*/ Z(/* @__PURE__ */ F({
4437
+ }, Q = /*#__PURE__*/ Z(No, [["__scopeId", "data-v-ad94203e"]]), Po = /*#__PURE__*/ Z(/* @__PURE__ */ I({
4438
4438
  inheritAttrs: !1,
4439
4439
  __name: "TdTooltip",
4440
4440
  props: {
@@ -4447,7 +4447,7 @@ var X = /* @__PURE__ */ function(e) {
4447
4447
  shortcut: { default: () => void 0 }
4448
4448
  },
4449
4449
  setup(e) {
4450
- let t = K("trigger"), n = K("tooltip"), r = K("arrowEl"), i = B(!1), a, o, { floatingStyles: s, middlewareData: c, placement: l } = jo(t, n, {
4450
+ let t = K("trigger"), n = K("tooltip"), r = K("arrowEl"), i = V(!1), a, o, { floatingStyles: s, middlewareData: c, placement: l } = jo(t, n, {
4451
4451
  placement: e.placement,
4452
4452
  middleware: [
4453
4453
  xo(8),
@@ -4465,39 +4465,39 @@ var X = /* @__PURE__ */ function(e) {
4465
4465
  i.value = !0;
4466
4466
  }, 400));
4467
4467
  }
4468
- be(u);
4468
+ ye(u);
4469
4469
  function f() {
4470
4470
  u(), o = setTimeout(() => {
4471
4471
  i.value = !1;
4472
4472
  }, 100);
4473
4473
  }
4474
- return (r, a) => (z(), j(D, null, [M("span", ve({
4474
+ return (r, a) => (B(), M(O, null, [N("span", _e({
4475
4475
  ref_key: "trigger",
4476
4476
  ref: t
4477
4477
  }, r.$attrs, {
4478
4478
  class: "td-tooltip-trigger",
4479
4479
  onMouseenter: d,
4480
4480
  onMouseleave: f
4481
- }), [H(r.$slots, "default", {}, void 0, !0)], 16), (z(), k(ue, { to: "body" }, [i.value ? (z(), j("div", {
4481
+ }), [U(r.$slots, "default", {}, void 0, !0)], 16), (B(), A(le, { to: "body" }, [i.value ? (B(), M("div", {
4482
4482
  key: 0,
4483
4483
  ref_key: "tooltip",
4484
4484
  ref: n,
4485
4485
  class: "td-tooltip",
4486
- style: L(G(s)),
4486
+ style: R(G(s)),
4487
4487
  role: "tooltip",
4488
4488
  onMouseenter: u,
4489
4489
  onMouseleave: f
4490
4490
  }, [
4491
- N(W(e.text) + " ", 1),
4492
- e.shortcut ? (z(), k(Q, {
4491
+ P(W(e.text) + " ", 1),
4492
+ e.shortcut ? (B(), A(Q, {
4493
4493
  key: 0,
4494
4494
  keys: e.shortcut,
4495
4495
  class: "td-tooltip-shortcut"
4496
- }, null, 8, ["keys"])) : A("", !0),
4497
- M("div", {
4496
+ }, null, 8, ["keys"])) : j("", !0),
4497
+ N("div", {
4498
4498
  ref: "arrowEl",
4499
4499
  class: "td-tooltip-arrow",
4500
- style: L({
4500
+ style: R({
4501
4501
  left: G(c).arrow?.x === void 0 ? "" : `${G(c).arrow.x}px`,
4502
4502
  top: G(c).arrow?.y === void 0 ? "" : `${G(c).arrow.y}px`,
4503
4503
  ...G(l).startsWith("bottom") ? { top: "-4px" } : {},
@@ -4506,22 +4506,22 @@ var X = /* @__PURE__ */ function(e) {
4506
4506
  ...G(l).startsWith("left") ? { right: "-4px" } : {}
4507
4507
  })
4508
4508
  }, null, 4)
4509
- ], 36)) : A("", !0)]))], 64));
4509
+ ], 36)) : j("", !0)]))], 64));
4510
4510
  }
4511
- }), [["__scopeId", "data-v-db48de27"]]), Fo = ["aria-label"], Io = /*#__PURE__*/ Z(/* @__PURE__ */ F({
4511
+ }), [["__scopeId", "data-v-db48de27"]]), Fo = ["aria-label"], Io = /*#__PURE__*/ Z(/* @__PURE__ */ I({
4512
4512
  __name: "TdButton",
4513
4513
  props: { label: {} },
4514
4514
  setup(e) {
4515
- return (t, n) => (z(), k(Po, {
4515
+ return (t, n) => (B(), A(Po, {
4516
4516
  always: !!e.label,
4517
4517
  text: e.label,
4518
4518
  placement: "bottom"
4519
4519
  }, {
4520
- default: J(() => [M("button", {
4520
+ default: J(() => [N("button", {
4521
4521
  type: "button",
4522
4522
  class: "td-icon-btn",
4523
4523
  "aria-label": e.label
4524
- }, [H(t.$slots, "default", {}, void 0, !0)], 8, Fo)]),
4524
+ }, [U(t.$slots, "default", {}, void 0, !0)], 8, Fo)]),
4525
4525
  _: 3
4526
4526
  }, 8, ["always", "text"]));
4527
4527
  }
@@ -4708,7 +4708,7 @@ function Ro(e) {
4708
4708
  }
4709
4709
  // src/client/theme-default/utils/renderInlineMarkup.ts
4710
4710
  function zo(e) {
4711
- let t = B(Bo(e()));
4711
+ let t = V(Bo(e()));
4712
4712
  return Pe((n) => {
4713
4713
  let r = e();
4714
4714
  if (!r.includes("$")) {
@@ -4718,79 +4718,79 @@ function zo(e) {
4718
4718
  let i = !0;
4719
4719
  n(() => {
4720
4720
  i = !1;
4721
- }), import("./renderMath-e3scuxfY.js").then(({ renderInlineMarkup: e }) => {
4721
+ }), import("./renderMath-DzumBAaX.js").then(({ renderInlineMarkup: e }) => {
4722
4722
  i && (t.value = e(r));
4723
4723
  });
4724
4724
  }), t;
4725
4725
  }
4726
4726
  function Bo(e) {
4727
4727
  let t = 0, n = "";
4728
- for (let r of e.matchAll(le)) n += h(e.slice(t, r.index)), r[1] === void 0 ? n += h(r[0]) : n += `<code>${h(r[1])}</code>`, t = r.index + r[0].length;
4729
- return n += h(e.slice(t)), n;
4728
+ for (let r of e.matchAll(ce)) n += m(e.slice(t, r.index)), r[1] === void 0 ? n += m(r[0]) : n += `<code>${m(r[1])}</code>`, t = r.index + r[0].length;
4729
+ return n += m(e.slice(t)), n;
4730
4730
  }
4731
4731
  // src/client/theme-default/components/TdTree/TdTreeNodeLabel.vue?vue&type=script&setup=true&lang.ts
4732
- var Vo = ["innerHTML"], Ho = /* @__PURE__ */ F({
4732
+ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ I({
4733
4733
  __name: "TdTreeNodeLabel",
4734
4734
  props: { text: {} },
4735
4735
  setup(e) {
4736
4736
  let t = zo(() => e.text);
4737
- return (e, n) => (z(), j("span", { innerHTML: G(t) }, null, 8, Vo));
4737
+ return (e, n) => (B(), M("span", { innerHTML: G(t) }, null, 8, Vo));
4738
4738
  }
4739
- }), Uo = ["aria-expanded"], Wo = { class: "td-tree-label-text" }, Go = ["href"], Ko = { class: "td-tree-count" }, qo = ["href"], Jo = ["href"], Yo = {
4739
+ }), Uo = ["aria-expanded"], Wo = { class: "td-tree-label-text" }, Go = ["href", "aria-label"], Ko = { class: "td-tree-count" }, qo = ["href", "aria-label"], Jo = ["href"], Yo = {
4740
4740
  key: 2,
4741
4741
  class: "td-tree-time"
4742
- }, Xo = 10, Zo = /*#__PURE__*/ Z(/* @__PURE__ */ F({
4742
+ }, Xo = 10, Zo = /*#__PURE__*/ Z(/* @__PURE__ */ I({
4743
4743
  __name: "TdTreeNode",
4744
4744
  props: {
4745
4745
  node: {},
4746
4746
  urlPrefix: { default: "" }
4747
4747
  },
4748
- setup(e) {
4749
- let n = ji(), { withBase: i } = $(), a = O(() => te(e.urlPrefix, e.node.name)), o = O(() => f(e.node)), s = O(() => o.value ? r(o.value.filepath) : u(a.value)), c = O(() => i(s.value)), l = O(() => o.value?.label ?? d(e.node.name)), h = O(() => o.value?.icon ? Ro(o.value.icon.name) : void 0), g = O(() => e.node.entries.filter((e) => e.kind === "dir" || !m(e.item.filepath))), _ = O(() => 0 < e.node.entries.length), v = O(() => y(e.node));
4748
+ setup(t) {
4749
+ let r = ji(), { withBase: i } = $(), a = k(() => ee(t.urlPrefix, t.node.name)), o = k(() => d(t.node)), s = k(() => o.value ? n(o.value.filepath) : l(a.value)), c = k(() => i(s.value)), m = k(() => o.value?.label ?? u(t.node.name)), h = k(() => o.value?.icon ? Ro(o.value.icon.name) : void 0), g = k(() => t.node.entries.filter((e) => e.kind === "dir" || !p(e.item.filepath))), _ = k(() => 0 < t.node.entries.length), v = k(() => y(t.node));
4750
4750
  function y(e) {
4751
4751
  let t = 0;
4752
4752
  for (let n of e.entries) n.kind === "file" ? t++ : t += y(n.node);
4753
4753
  return t;
4754
4754
  }
4755
- let b = B(!t(a.value, n.path)), x = B(!1), ee = O(() => g.value.filter((e) => e.kind === "file")), S = O(() => ee.value.length), C = O(() => {
4755
+ let b = V(!e(a.value, r.path)), x = typeof window > "u", S = V(!1), C = k(() => g.value.filter((e) => e.kind === "file")), w = k(() => C.value.length), T = k(() => {
4756
4756
  let e = 0;
4757
4757
  for (let t of g.value) if (t.kind === "file") {
4758
- if (r(t.item.filepath) === n.path) return e;
4758
+ if (n(t.item.filepath) === r.path) return e;
4759
4759
  e++;
4760
4760
  }
4761
4761
  return -1;
4762
- }), w = O(() => {
4763
- if (S.value <= Xo) return {
4762
+ }), E = k(() => {
4763
+ if (w.value <= Xo) return {
4764
4764
  start: 0,
4765
- end: S.value
4765
+ end: w.value
4766
4766
  };
4767
- let e = C.value;
4767
+ let e = T.value;
4768
4768
  if (e < 0) return {
4769
4769
  start: 0,
4770
4770
  end: Xo
4771
4771
  };
4772
4772
  let t = Math.max(0, e - 4), n = t + Xo;
4773
- return S.value < n && (n = S.value, t = Math.max(0, n - Xo)), {
4773
+ return w.value < n && (n = w.value, t = Math.max(0, n - Xo)), {
4774
4774
  start: t,
4775
4775
  end: n
4776
4776
  };
4777
- }), T = O(() => x.value ? 0 : w.value.start), E = O(() => x.value ? 0 : Math.max(0, S.value - w.value.end)), re = O(() => {
4778
- if (x.value) return g.value;
4779
- let { start: e, end: t } = w.value, n = 0;
4777
+ }), ne = k(() => S.value ? 0 : E.value.start), re = k(() => S.value ? 0 : Math.max(0, w.value - E.value.end)), ie = k(() => {
4778
+ if (S.value) return g.value;
4779
+ let { start: e, end: t } = E.value, n = 0;
4780
4780
  return g.value.filter((r) => {
4781
4781
  if (r.kind === "dir") return !0;
4782
4782
  let i = e <= n && n < t;
4783
4783
  return n++, i;
4784
4784
  });
4785
4785
  });
4786
- q(() => n.path, (e) => {
4787
- t(a.value, e) && (b.value = !1);
4786
+ q(() => r.path, (t) => {
4787
+ e(a.value, t) && (b.value = !1);
4788
4788
  });
4789
- function ie() {
4790
- x.value = !0;
4789
+ function ae() {
4790
+ S.value = !0;
4791
4791
  }
4792
- function ae(e) {
4793
- return n.path === e;
4792
+ function D(e) {
4793
+ return r.path === e;
4794
4794
  }
4795
4795
  function oe(e) {
4796
4796
  e.key === "ArrowRight" && b.value ? (b.value = !1, e.preventDefault()) : e.key === "ArrowLeft" && !b.value && (b.value = !0, e.preventDefault());
@@ -4799,100 +4799,103 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ F({
4799
4799
  b.value = !b.value;
4800
4800
  }
4801
4801
  return (e, t) => {
4802
- let n = De("TdTreeNode", !0);
4803
- return _.value ? (z(), j("div", {
4802
+ let r = Ee("TdTreeNode", !0);
4803
+ return _.value ? (B(), M("div", {
4804
4804
  key: 0,
4805
4805
  class: "td-tree-node",
4806
4806
  role: "treeitem",
4807
4807
  "aria-expanded": !b.value
4808
- }, [M("div", {
4808
+ }, [N("div", {
4809
4809
  class: "td-tree-label",
4810
4810
  role: "button",
4811
4811
  tabindex: "0",
4812
4812
  onClick: se,
4813
4813
  onKeydown: oe
4814
4814
  }, [
4815
- P(G(bt), {
4815
+ F(G(bt), {
4816
4816
  size: 14,
4817
- class: I(["td-tree-caret", { "is-collapsed": b.value }])
4817
+ class: L(["td-tree-caret", { "is-collapsed": b.value }])
4818
4818
  }, null, 8, ["class"]),
4819
- M("span", Wo, W(l.value), 1),
4820
- P(Po, {
4819
+ N("span", Wo, W(m.value), 1),
4820
+ F(Po, {
4821
4821
  text: "Open index page",
4822
4822
  always: ""
4823
4823
  }, {
4824
- default: J(() => [M("a", {
4824
+ default: J(() => [N("a", {
4825
4825
  href: c.value,
4826
- class: I(["td-tree-index-btn", { "is-active": ae(s.value) }]),
4826
+ class: L(["td-tree-index-btn", { "is-active": D(s.value) }]),
4827
+ "aria-label": `Open index page for ${m.value}`,
4827
4828
  onClick: t[0] ||= Le(() => {}, ["stop"])
4828
- }, [h.value ? (z(), k(U(h.value), {
4829
+ }, [h.value ? (B(), A(De(h.value), {
4829
4830
  key: 0,
4830
4831
  size: 12
4831
- })) : ae(s.value) ? (z(), k(G(un), {
4832
+ })) : D(s.value) ? (B(), A(G(un), {
4832
4833
  key: 1,
4833
4834
  size: 12
4834
- })) : (z(), k(G(dn), {
4835
+ })) : (B(), A(G(dn), {
4835
4836
  key: 2,
4836
4837
  size: 12
4837
4838
  }))], 10, Go)]),
4838
4839
  _: 1
4839
4840
  }),
4840
- M("span", Ko, W(v.value), 1)
4841
- ], 32), M("div", {
4842
- class: I(["td-collapse td-tree-children", { "is-collapsed": b.value }]),
4841
+ N("span", Ko, W(v.value), 1)
4842
+ ], 32), !x || !b.value ? (B(), M("div", {
4843
+ key: 0,
4844
+ class: L(["td-collapse td-tree-children", { "is-collapsed": b.value }]),
4843
4845
  role: "group"
4844
- }, [M("div", null, [
4845
- o.value ? (z(), j("a", {
4846
+ }, [N("div", null, [
4847
+ o.value ? (B(), M("a", {
4846
4848
  key: 0,
4847
4849
  href: c.value,
4848
- class: I(["td-tree-link td-tree-index-entry", { "is-active": ae(s.value) }])
4849
- }, [P(G(lt), {
4850
+ class: L(["td-tree-link td-tree-index-entry", { "is-active": D(s.value) }]),
4851
+ "aria-label": `${m.value} Overview`
4852
+ }, [F(G(lt), {
4850
4853
  size: 14,
4851
4854
  class: "td-tree-file-icon"
4852
- }), t[1] ||= M("span", { class: "td-tree-link-text" }, "Overview", -1)], 10, qo)) : A("", !0),
4853
- T.value > 0 ? (z(), j("button", {
4855
+ }), t[1] ||= N("span", { class: "td-tree-link-text" }, "Overview", -1)], 10, qo)) : j("", !0),
4856
+ ne.value > 0 ? (B(), M("button", {
4854
4857
  key: 1,
4855
4858
  class: "td-tree-more",
4856
4859
  type: "button",
4857
- onClick: ie
4858
- }, W(T.value) + " more... ", 1)) : A("", !0),
4859
- (z(!0), j(D, null, V(re.value, (e) => (z(), j(D, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (z(), k(n, {
4860
+ onClick: ae
4861
+ }, W(ne.value) + " more... ", 1)) : j("", !0),
4862
+ (B(!0), M(O, null, H(ie.value, (e) => (B(), M(O, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (B(), A(r, {
4860
4863
  key: 0,
4861
4864
  node: e.node,
4862
4865
  "url-prefix": a.value
4863
- }, null, 8, ["node", "url-prefix"])) : (z(), j("a", {
4866
+ }, null, 8, ["node", "url-prefix"])) : (B(), M("a", {
4864
4867
  key: 1,
4865
- href: G(i)(G(r)(e.item.filepath)),
4866
- class: I(["td-tree-link", { "is-active": ae(G(r)(e.item.filepath)) }])
4868
+ href: G(i)(G(n)(e.item.filepath)),
4869
+ class: L(["td-tree-link", { "is-active": D(G(n)(e.item.filepath)) }])
4867
4870
  }, [
4868
- e.item.icon && G(Ro)(e.item.icon.name) ? (z(), k(U(G(Ro)(e.item.icon.name)), {
4871
+ e.item.icon && G(Ro)(e.item.icon.name) ? (B(), A(De(G(Ro)(e.item.icon.name)), {
4869
4872
  key: 0,
4870
4873
  size: 14,
4871
4874
  class: "td-tree-file-icon"
4872
- })) : (z(), k(G(rn), {
4875
+ })) : (B(), A(G(rn), {
4873
4876
  key: 1,
4874
4877
  size: 14,
4875
4878
  class: "td-tree-file-icon"
4876
4879
  })),
4877
- P(Po, {
4880
+ F(Po, {
4878
4881
  class: "td-tree-link-text",
4879
- text: G(ne)(e.item.filepath, e.item.label)
4882
+ text: G(te)(e.item.filepath, e.item.label)
4880
4883
  }, {
4881
- default: J(() => [P(Ho, { text: G(ne)(e.item.filepath, e.item.label) }, null, 8, ["text"])]),
4884
+ default: J(() => [F(Ho, { text: G(te)(e.item.filepath, e.item.label) }, null, 8, ["text"])]),
4882
4885
  _: 2
4883
4886
  }, 1032, ["text"]),
4884
- e.item.fileMetadata ? (z(), j("span", Yo, W(G(p)(e.item.fileMetadata.mtimeSecs)), 1)) : A("", !0)
4887
+ e.item.fileMetadata ? (B(), M("span", Yo, W(G(f)(e.item.fileMetadata.mtimeSecs)), 1)) : j("", !0)
4885
4888
  ], 10, Jo))], 64))), 128)),
4886
- E.value > 0 ? (z(), j("button", {
4889
+ re.value > 0 ? (B(), M("button", {
4887
4890
  key: 2,
4888
4891
  class: "td-tree-more",
4889
4892
  type: "button",
4890
- onClick: ie
4891
- }, W(E.value) + " more... ", 1)) : A("", !0)
4892
- ])], 2)], 8, Uo)) : A("", !0);
4893
+ onClick: ae
4894
+ }, W(re.value) + " more... ", 1)) : j("", !0)
4895
+ ])], 2)) : j("", !0)], 8, Uo)) : j("", !0);
4893
4896
  };
4894
4897
  }
4895
- }), [["__scopeId", "data-v-f9c9c250"]]), Qo = {
4898
+ }), [["__scopeId", "data-v-ae206009"]]), Qo = {
4896
4899
  class: "td-nav",
4897
4900
  "aria-label": "Site navigation"
4898
4901
  }, $o = { role: "tree" }, es = ["href"], ts = {
@@ -4901,66 +4904,66 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ F({
4901
4904
  }, ns = ["href"], rs = { class: "td-root-link-text" }, is = {
4902
4905
  key: 2,
4903
4906
  class: "td-root-link-time"
4904
- }, as = /*#__PURE__*/ Z(/* @__PURE__ */ F({
4907
+ }, as = /*#__PURE__*/ Z(/* @__PURE__ */ I({
4905
4908
  __name: "TdContentNav",
4906
4909
  props: { tree: {} },
4907
4910
  setup(e) {
4908
- let t = ji(), { withBase: n } = $(), i = O(() => e.tree.entries.find((e) => e.kind === "file" && m(e.item.filepath))?.item), a = O(() => e.tree.entries.filter((e) => e.kind === "dir" || !m(e.item.filepath)));
4911
+ let t = ji(), { withBase: r } = $(), i = k(() => e.tree.entries.find((e) => e.kind === "file" && p(e.item.filepath))?.item), a = k(() => e.tree.entries.filter((e) => e.kind === "dir" || !p(e.item.filepath)));
4909
4912
  function o(e) {
4910
4913
  return t.path === e;
4911
4914
  }
4912
- return (e, t) => (z(), j("nav", Qo, [M("div", $o, [M("a", {
4913
- href: G(n)(i.value ? G(r)(i.value.filepath) : G(u)("/")),
4914
- class: I(["td-root-link", { "is-active": o(i.value ? G(r)(i.value.filepath) : G(u)("/")) }]),
4915
+ return (e, t) => (B(), M("nav", Qo, [N("div", $o, [N("a", {
4916
+ href: G(r)(i.value ? G(n)(i.value.filepath) : G(l)("/")),
4917
+ class: L(["td-root-link", { "is-active": o(i.value ? G(n)(i.value.filepath) : G(l)("/")) }]),
4915
4918
  role: "treeitem"
4916
4919
  }, [
4917
- P(G(Tn), {
4920
+ F(G(Tn), {
4918
4921
  size: 14,
4919
4922
  class: "td-root-link-icon"
4920
4923
  }),
4921
- t[0] ||= M("span", { class: "td-root-link-text" }, "Overview", -1),
4922
- i.value ? (z(), j("span", ts, W(i.value.fileMetadata ? G(p)(i.value.fileMetadata.mtimeSecs) : ""), 1)) : A("", !0)
4923
- ], 10, es), (z(!0), j(D, null, V(a.value, (e) => (z(), j(D, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (z(), k(Zo, {
4924
+ t[0] ||= N("span", { class: "td-root-link-text" }, "Overview", -1),
4925
+ i.value ? (B(), M("span", ts, W(i.value.fileMetadata ? G(f)(i.value.fileMetadata.mtimeSecs) : ""), 1)) : j("", !0)
4926
+ ], 10, es), (B(!0), M(O, null, H(a.value, (e) => (B(), M(O, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (B(), A(Zo, {
4924
4927
  key: 0,
4925
4928
  node: e.node
4926
- }, null, 8, ["node"])) : (z(), j("a", {
4929
+ }, null, 8, ["node"])) : (B(), M("a", {
4927
4930
  key: 1,
4928
- href: G(n)(G(r)(e.item.filepath)),
4929
- class: I(["td-root-link", { "is-active": o(G(r)(e.item.filepath)) }]),
4931
+ href: G(r)(G(n)(e.item.filepath)),
4932
+ class: L(["td-root-link", { "is-active": o(G(n)(e.item.filepath)) }]),
4930
4933
  role: "treeitem"
4931
4934
  }, [
4932
- e.item.icon && G(Ro)(e.item.icon.name) ? (z(), k(U(G(Ro)(e.item.icon.name)), {
4935
+ e.item.icon && G(Ro)(e.item.icon.name) ? (B(), A(De(G(Ro)(e.item.icon.name)), {
4933
4936
  key: 0,
4934
4937
  size: 14,
4935
4938
  class: "td-root-link-icon"
4936
- })) : (z(), k(G(rn), {
4939
+ })) : (B(), A(G(rn), {
4937
4940
  key: 1,
4938
4941
  size: 14,
4939
4942
  class: "td-root-link-icon"
4940
4943
  })),
4941
- M("span", rs, W(G(ne)(e.item.filepath, e.item.label)), 1),
4942
- e.item.fileMetadata ? (z(), j("span", is, W(G(p)(e.item.fileMetadata.mtimeSecs)), 1)) : A("", !0)
4944
+ N("span", rs, W(G(te)(e.item.filepath, e.item.label)), 1),
4945
+ e.item.fileMetadata ? (B(), M("span", is, W(G(f)(e.item.fileMetadata.mtimeSecs)), 1)) : j("", !0)
4943
4946
  ], 10, ns))], 64))), 128))])]));
4944
4947
  }
4945
- }), [["__scopeId", "data-v-038de594"]]), os = { class: "td-footer" }, ss = { key: 0 }, cs = /*#__PURE__*/ Z(/* @__PURE__ */ F({
4948
+ }), [["__scopeId", "data-v-038de594"]]), os = { class: "td-footer" }, ss = { key: 0 }, cs = /*#__PURE__*/ Z(/* @__PURE__ */ I({
4946
4949
  __name: "TdFooter",
4947
4950
  setup(e) {
4948
4951
  let t = $(), n = (/* @__PURE__ */ new Date()).getFullYear();
4949
- return (e, r) => (z(), j("footer", os, [r[0] ||= M("span", null, [N(" Powered by "), M("a", {
4952
+ return (e, r) => (B(), M("footer", os, [r[0] ||= N("span", null, [P(" Powered by "), N("a", {
4950
4953
  href: "https://github.com/huydo862003/typerighter",
4951
4954
  target: "_blank",
4952
4955
  rel: "noopener noreferrer",
4953
4956
  class: "td-footer-link"
4954
- }, "Typerighter")], -1), G(t).author || G(t).license ? (z(), j("span", ss, [
4955
- G(t).license ? (z(), j(D, { key: 0 }, [N(W(G(t).license), 1)], 64)) : A("", !0),
4956
- G(t).license && G(t).author ? (z(), j(D, { key: 1 }, [N(" · ")], 64)) : A("", !0),
4957
- G(t).author ? (z(), j(D, { key: 2 }, [N("© " + W(G(n)) + " " + W(G(t).author), 1)], 64)) : A("", !0)
4958
- ])) : A("", !0)]));
4957
+ }, "Typerighter")], -1), G(t).author || G(t).license ? (B(), M("span", ss, [
4958
+ G(t).license ? (B(), M(O, { key: 0 }, [P(W(G(t).license), 1)], 64)) : j("", !0),
4959
+ G(t).license && G(t).author ? (B(), M(O, { key: 1 }, [P(" · ")], 64)) : j("", !0),
4960
+ G(t).author ? (B(), M(O, { key: 2 }, [P("© " + W(G(n)) + " " + W(G(t).author), 1)], 64)) : j("", !0)
4961
+ ])) : j("", !0)]));
4959
4962
  }
4960
4963
  }), [["__scopeId", "data-v-696804f8"]]), ls = {
4961
4964
  key: 0,
4962
4965
  class: "td-dropdown-panel"
4963
- }, us = /*#__PURE__*/ Z(/* @__PURE__ */ F({
4966
+ }, us = /*#__PURE__*/ Z(/* @__PURE__ */ I({
4964
4967
  inheritAttrs: !1,
4965
4968
  __name: "TdDropdown",
4966
4969
  props: {
@@ -4981,12 +4984,12 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ F({
4981
4984
  }
4982
4985
  return q(t, (e) => {
4983
4986
  typeof document < "u" && (e ? document.addEventListener("click", r) : document.removeEventListener("click", r));
4984
- }), R(() => {
4987
+ }), z(() => {
4985
4988
  typeof document < "u" && document.removeEventListener("click", r);
4986
- }), (e, r) => (z(), j("span", ve({
4989
+ }), (e, r) => (B(), M("span", _e({
4987
4990
  ref_key: "wrapper",
4988
4991
  ref: n
4989
- }, e.$attrs, { class: "td-dropdown" }), [M("span", { onClick: i }, [H(e.$slots, "trigger", {}, void 0, !0)]), t.value ? (z(), j("div", ls, [H(e.$slots, "default", {}, void 0, !0)])) : A("", !0)], 16));
4992
+ }, e.$attrs, { class: "td-dropdown" }), [N("span", { onClick: i }, [U(e.$slots, "trigger", {}, void 0, !0)]), t.value ? (B(), M("div", ls, [U(e.$slots, "default", {}, void 0, !0)])) : j("", !0)], 16));
4990
4993
  }
4991
4994
  }), [["__scopeId", "data-v-645fe3f0"]]), ds = {
4992
4995
  class: "td-breadcrumb",
@@ -5000,63 +5003,63 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ F({
5000
5003
  }, _s = ["href"], vs = {
5001
5004
  key: 1,
5002
5005
  class: "td-breadcrumb-current"
5003
- }, ys = 3, bs = /*#__PURE__*/ Z(/* @__PURE__ */ F({
5006
+ }, ys = 3, bs = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5004
5007
  __name: "TdBreadcrumb",
5005
5008
  setup(e) {
5006
- let t = ji(), { withBase: n } = $(), r = B(!1), i = O(() => {
5007
- let e = a(t.path), r = [{
5009
+ let t = ji(), { withBase: n } = $(), r = V(!1), a = k(() => {
5010
+ let e = i(t.path), r = [{
5008
5011
  name: "Home",
5009
- href: n(u("/"))
5012
+ href: n(l("/"))
5010
5013
  }];
5011
5014
  if (e === "/") return r;
5012
- let i = e.replace(/^\//, "").split("/"), o = v(e) ? i.slice(0, -1) : i;
5015
+ let a = e.replace(/^\//, "").split("/"), o = y(e) ? a.slice(0, -1) : a;
5013
5016
  for (let e = 0; e < o.length; e++) {
5014
5017
  let t = "/" + o.slice(0, e + 1).join("/"), i = e === o.length - 1;
5015
5018
  r.push({
5016
- name: d(o[e]),
5017
- href: n(i ? t : u(t))
5019
+ name: u(o[e]),
5020
+ href: n(i ? t : l(t))
5018
5021
  });
5019
5022
  }
5020
5023
  return r;
5021
- }), o = O(() => ys < i.value.length), s = O(() => i.value.slice(1, -2));
5024
+ }), o = k(() => ys < a.value.length), s = k(() => a.value.slice(1, -2));
5022
5025
  return q(() => t.path, () => {
5023
5026
  r.value = !1;
5024
- }), (e, t) => (z(), j("nav", ds, [M("a", {
5025
- href: i.value[0].href,
5027
+ }), (e, t) => (B(), M("nav", ds, [N("a", {
5028
+ href: a.value[0].href,
5026
5029
  class: "td-breadcrumb-link td-breadcrumb-home"
5027
- }, W(i.value[0].name), 9, fs), o.value ? (z(), j(D, { key: 0 }, [
5028
- t[2] ||= M("span", {
5030
+ }, W(a.value[0].name), 9, fs), o.value ? (B(), M(O, { key: 0 }, [
5031
+ t[2] ||= N("span", {
5029
5032
  class: "td-breadcrumb-sep",
5030
5033
  "aria-hidden": "true"
5031
5034
  }, "/", -1),
5032
- P(us, {
5035
+ F(us, {
5033
5036
  open: r.value,
5034
5037
  "onUpdate:open": t[0] ||= (e) => r.value = e
5035
5038
  }, {
5036
- trigger: J(() => [M("button", ps, [P(G(Qt), { size: 14 })])]),
5037
- default: J(() => [(z(!0), j(D, null, V(s.value, (e) => (z(), j("a", {
5039
+ trigger: J(() => [N("button", ps, [F(G(Qt), { size: 14 })])]),
5040
+ default: J(() => [(B(!0), M(O, null, H(s.value, (e) => (B(), M("a", {
5038
5041
  key: e.href,
5039
5042
  href: e.href,
5040
5043
  class: "td-breadcrumb-dropdown-item"
5041
5044
  }, W(e.name), 9, ms))), 128))]),
5042
5045
  _: 1
5043
5046
  }, 8, ["open"]),
5044
- (z(!0), j(D, null, V(i.value.slice(-2), (e) => (z(), j(D, { key: e.href }, [t[1] ||= M("span", {
5047
+ (B(!0), M(O, null, H(a.value.slice(-2), (e) => (B(), M(O, { key: e.href }, [t[1] ||= N("span", {
5045
5048
  class: "td-breadcrumb-sep",
5046
5049
  "aria-hidden": "true"
5047
- }, "/", -1), e === i.value[i.value.length - 1] ? (z(), j("span", gs, W(e.name), 1)) : (z(), j("a", {
5050
+ }, "/", -1), e === a.value[a.value.length - 1] ? (B(), M("span", gs, W(e.name), 1)) : (B(), M("a", {
5048
5051
  key: 0,
5049
5052
  href: e.href,
5050
5053
  class: "td-breadcrumb-link"
5051
5054
  }, W(e.name), 9, hs))], 64))), 128))
5052
- ], 64)) : (z(!0), j(D, { key: 1 }, V(i.value.slice(1), (e, n) => (z(), j(D, { key: e.href }, [t[3] ||= M("span", {
5055
+ ], 64)) : (B(!0), M(O, { key: 1 }, H(a.value.slice(1), (e, n) => (B(), M(O, { key: e.href }, [t[3] ||= N("span", {
5053
5056
  class: "td-breadcrumb-sep",
5054
5057
  "aria-hidden": "true"
5055
- }, "/", -1), n < i.value.length - 2 ? (z(), j("a", {
5058
+ }, "/", -1), n < a.value.length - 2 ? (B(), M("a", {
5056
5059
  key: 0,
5057
5060
  href: e.href,
5058
5061
  class: "td-breadcrumb-link"
5059
- }, W(e.name), 9, _s)) : (z(), j("span", vs, W(e.name), 1))], 64))), 128))]));
5062
+ }, W(e.name), 9, _s)) : (B(), M("span", vs, W(e.name), 1))], 64))), 128))]));
5060
5063
  }
5061
5064
  }), [["__scopeId", "data-v-89f87a49"]]), xs = {
5062
5065
  key: 0,
@@ -5065,42 +5068,42 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ F({
5065
5068
  "href",
5066
5069
  "target",
5067
5070
  "rel"
5068
- ], Cs = /*#__PURE__*/ Z(/* @__PURE__ */ F({
5071
+ ], Cs = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5069
5072
  __name: "TdHeaderNavBar",
5070
5073
  setup(e) {
5071
5074
  let t = $(), { withBase: n } = t, r = ji();
5072
5075
  function i(e) {
5073
- return !_(e) && r.path.startsWith(n(e));
5076
+ return !v(e) && r.path.startsWith(n(e));
5074
5077
  }
5075
- return (e, r) => G(t).nav?.length ? (z(), j("nav", xs, [(z(!0), j(D, null, V(G(t).nav, (e) => (z(), j("a", {
5078
+ return (e, r) => G(t).nav?.length ? (B(), M("nav", xs, [(B(!0), M(O, null, H(G(t).nav, (e) => (B(), M("a", {
5076
5079
  key: e.link,
5077
- href: G(_)(e.link) ? e.link : G(n)(e.link),
5078
- target: G(_)(e.link) ? "_blank" : void 0,
5079
- rel: G(_)(e.link) ? "noopener noreferrer" : void 0,
5080
- class: I(["td-header-nav-link", { "is-active": i(e.link) }])
5080
+ href: G(v)(e.link) ? e.link : G(n)(e.link),
5081
+ target: G(v)(e.link) ? "_blank" : void 0,
5082
+ rel: G(v)(e.link) ? "noopener noreferrer" : void 0,
5083
+ class: L(["td-header-nav-link", { "is-active": i(e.link) }])
5081
5084
  }, [
5082
- e.icon && G(Ro)(e.icon) ? (z(), k(U(G(Ro)(e.icon)), {
5085
+ e.icon && G(Ro)(e.icon) ? (B(), A(De(G(Ro)(e.icon)), {
5083
5086
  key: 0,
5084
5087
  size: 14,
5085
5088
  class: "td-header-nav-icon"
5086
- })) : A("", !0),
5087
- N(" " + W(e.title) + " ", 1),
5088
- G(_)(e.link) ? (z(), k(G(tt), {
5089
+ })) : j("", !0),
5090
+ P(" " + W(e.title) + " ", 1),
5091
+ G(v)(e.link) ? (B(), A(G(tt), {
5089
5092
  key: 1,
5090
5093
  size: 14
5091
- })) : A("", !0)
5092
- ], 10, Ss))), 128))])) : A("", !0);
5094
+ })) : j("", !0)
5095
+ ], 10, Ss))), 128))])) : j("", !0);
5093
5096
  }
5094
- }), [["__scopeId", "data-v-b7b3bb7c"]]), ws = /*#__PURE__*/ Z(/* @__PURE__ */ F({
5097
+ }), [["__scopeId", "data-v-b7b3bb7c"]]), ws = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5095
5098
  __name: "TdLucideIcon",
5096
5099
  props: { name: {} },
5097
5100
  setup(e) {
5098
- let t = O(() => Ro(e.name));
5099
- return (e, n) => t.value ? (z(), k(U(t.value), {
5101
+ let t = k(() => Ro(e.name));
5102
+ return (e, n) => t.value ? (B(), A(De(t.value), {
5100
5103
  key: 0,
5101
5104
  size: 14,
5102
5105
  class: "td-inline-icon"
5103
- })) : A("", !0);
5106
+ })) : j("", !0);
5104
5107
  }
5105
5108
  }), [["__scopeId", "data-v-ed097470"]]), Ts = {
5106
5109
  key: 0,
@@ -5109,41 +5112,41 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ F({
5109
5112
  "href",
5110
5113
  "target",
5111
5114
  "rel"
5112
- ], Ds = /*#__PURE__*/ Z(/* @__PURE__ */ F({
5115
+ ], Ds = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5113
5116
  __name: "TdHeaderNavMenu",
5114
5117
  setup(e) {
5115
5118
  let t = $(), { withBase: n } = t, r = ji();
5116
5119
  function i(e) {
5117
- return !_(e) && r.path.startsWith(n(e));
5120
+ return !v(e) && r.path.startsWith(n(e));
5118
5121
  }
5119
- return (e, r) => G(t).nav?.length ? (z(), j("nav", Ts, [(z(!0), j(D, null, V(G(t).nav, (e) => (z(), j("a", {
5122
+ return (e, r) => G(t).nav?.length ? (B(), M("nav", Ts, [(B(!0), M(O, null, H(G(t).nav, (e) => (B(), M("a", {
5120
5123
  key: e.link,
5121
- href: G(_)(e.link) ? e.link : G(n)(e.link),
5122
- target: G(_)(e.link) ? "_blank" : void 0,
5123
- rel: G(_)(e.link) ? "noopener noreferrer" : void 0,
5124
- class: I(["td-menu-nav-item", { "is-active": i(e.link) }])
5124
+ href: G(v)(e.link) ? e.link : G(n)(e.link),
5125
+ target: G(v)(e.link) ? "_blank" : void 0,
5126
+ rel: G(v)(e.link) ? "noopener noreferrer" : void 0,
5127
+ class: L(["td-menu-nav-item", { "is-active": i(e.link) }])
5125
5128
  }, [
5126
- e.icon ? (z(), k(ws, {
5129
+ e.icon ? (B(), A(ws, {
5127
5130
  key: 0,
5128
5131
  name: e.icon,
5129
5132
  size: 16
5130
- }, null, 8, ["name"])) : A("", !0),
5131
- M("span", null, W(e.title), 1),
5132
- G(_)(e.link) ? (z(), k(G(tt), {
5133
+ }, null, 8, ["name"])) : j("", !0),
5134
+ N("span", null, W(e.title), 1),
5135
+ G(v)(e.link) ? (B(), A(G(tt), {
5133
5136
  key: 1,
5134
5137
  size: 14
5135
- })) : A("", !0)
5136
- ], 10, Es))), 128))])) : A("", !0);
5138
+ })) : j("", !0)
5139
+ ], 10, Es))), 128))])) : j("", !0);
5137
5140
  }
5138
- }), [["__scopeId", "data-v-8b23de5a"]]), Os = { class: "td-widget-checkbox" }, ks = /*#__PURE__*/ Z(/* @__PURE__ */ F({
5141
+ }), [["__scopeId", "data-v-8b23de5a"]]), Os = { class: "td-widget-checkbox" }, ks = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5139
5142
  __name: "TdWidgetCheckbox",
5140
5143
  props: { value: {} },
5141
5144
  setup(e) {
5142
- return (t, n) => (z(), j("span", Os, [e.value ? (z(), k(G(qr), {
5145
+ return (t, n) => (B(), M("span", Os, [e.value ? (B(), A(G(qr), {
5143
5146
  key: 0,
5144
5147
  size: 16,
5145
5148
  class: "td-widget-checkbox-icon is-checked"
5146
- })) : (z(), k(G(Jr), {
5149
+ })) : (B(), A(G(Jr), {
5147
5150
  key: 1,
5148
5151
  size: 16,
5149
5152
  class: "td-widget-checkbox-icon"
@@ -5167,7 +5170,7 @@ function js(e) {
5167
5170
  let t = e.trim();
5168
5171
  return !t || !Ms({ url: t }) ? void 0 : {
5169
5172
  url: t,
5170
- name: o(t),
5173
+ name: a(t),
5171
5174
  isImage: !0
5172
5175
  };
5173
5176
  }
@@ -5176,29 +5179,29 @@ function js(e) {
5176
5179
  if (t.$kind !== void 0 && t.$kind !== "ref") return;
5177
5180
  let n = t.$ref ?? t;
5178
5181
  if (typeof n.url != "string") return;
5179
- let r = n.url, i = n.name ?? o(r), a = n.format ?? t.format;
5182
+ let r = n.url, i = n.name ?? a(r), o = n.format ?? t.format;
5180
5183
  return {
5181
5184
  url: r,
5182
5185
  name: i,
5183
- format: a,
5186
+ format: o,
5184
5187
  icon: n.icon,
5185
5188
  isImage: Ms({
5186
5189
  url: r,
5187
5190
  name: i,
5188
- format: a
5191
+ format: o
5189
5192
  })
5190
5193
  };
5191
5194
  }
5192
5195
  function Ms(e) {
5193
5196
  if (e.format && As.has(e.format.toLowerCase())) return !0;
5194
- let t = l(e.name || e.url).slice(1);
5197
+ let t = c(e.name || e.url).slice(1);
5195
5198
  return t ? As.has(t.toLowerCase()) : !1;
5196
5199
  }
5197
5200
  // src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetRelation.vue?vue&type=script&setup=true&lang.ts
5198
5201
  var Ns = {
5199
5202
  key: 0,
5200
5203
  class: "td-widget-relation-wrapper"
5201
- }, Ps = ["href", "title"], Fs = ["src", "alt"], Is = ["href"], Ls = { class: "td-widget-file-name" }, Rs = ["href"], zs = ["href"], Bs = { key: 1 }, Vs = /*#__PURE__*/ Z(/* @__PURE__ */ F({
5204
+ }, Ps = ["href", "title"], Fs = ["src", "alt"], Is = ["href"], Ls = { class: "td-widget-file-name" }, Rs = ["href"], zs = ["href"], Bs = { key: 1 }, Vs = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5202
5205
  __name: "TdWidgetRelation",
5203
5206
  props: {
5204
5207
  value: {},
@@ -5208,78 +5211,78 @@ var Ns = {
5208
5211
  }
5209
5212
  },
5210
5213
  setup(e) {
5211
- let { withBase: t } = $(), n = O(() => js(e.value)), r = O(() => n.value?.icon ? Ro(n.value.icon.name) : void 0), i = O(() => n.value !== void 0 && _(n.value.url));
5212
- return (a, o) => n.value ? (z(), j("span", Ns, [n.value.isImage ? (z(), j("a", {
5214
+ let { withBase: t } = $(), n = k(() => js(e.value)), r = k(() => n.value?.icon ? Ro(n.value.icon.name) : void 0), i = k(() => n.value !== void 0 && v(n.value.url));
5215
+ return (a, o) => n.value ? (B(), M("span", Ns, [n.value.isImage ? (B(), M("a", {
5213
5216
  key: 0,
5214
5217
  href: G(t)(n.value.url),
5215
5218
  target: "_blank",
5216
5219
  rel: "noopener noreferrer",
5217
5220
  class: "td-widget-image-preview",
5218
5221
  title: n.value.name
5219
- }, [M("img", {
5222
+ }, [N("img", {
5220
5223
  src: G(t)(n.value.url),
5221
5224
  alt: n.value.name,
5222
5225
  class: "td-widget-image-img",
5223
5226
  loading: "lazy"
5224
- }, null, 8, Fs)], 8, Ps)) : n.value.format || n.value.url.includes(".") ? (z(), j("a", {
5227
+ }, null, 8, Fs)], 8, Ps)) : n.value.format || n.value.url.includes(".") ? (B(), M("a", {
5225
5228
  key: 1,
5226
5229
  href: G(t)(n.value.url),
5227
5230
  target: "_blank",
5228
5231
  rel: "noopener noreferrer",
5229
5232
  class: "td-widget-file-link"
5230
- }, [P(G(nn), { class: "td-widget-file-icon" }), M("span", Ls, W(n.value.name), 1)], 8, Is)) : i.value ? (z(), j("a", {
5233
+ }, [F(G(nn), { class: "td-widget-file-icon" }), N("span", Ls, W(n.value.name), 1)], 8, Is)) : i.value ? (B(), M("a", {
5231
5234
  key: 2,
5232
5235
  href: n.value.url,
5233
5236
  target: "_blank",
5234
5237
  rel: "noopener noreferrer",
5235
5238
  class: "td-widget-ref td-widget-ref-external"
5236
- }, [P(G(tt), {
5239
+ }, [F(G(tt), {
5237
5240
  size: 12,
5238
5241
  class: "td-widget-external-icon"
5239
- })], 8, Rs)) : (z(), j("a", {
5242
+ })], 8, Rs)) : (B(), M("a", {
5240
5243
  key: 3,
5241
5244
  href: G(t)(n.value.url),
5242
5245
  class: "td-widget-ref"
5243
- }, [r.value && !e.hideIcon ? (z(), k(U(r.value), {
5246
+ }, [r.value && !e.hideIcon ? (B(), A(De(r.value), {
5244
5247
  key: 0,
5245
5248
  size: 14,
5246
5249
  class: "td-widget-ref-icon"
5247
- })) : A("", !0), N(W(n.value.name), 1)], 8, zs))])) : (z(), j("span", Bs, W(e.value), 1));
5250
+ })) : j("", !0), P(W(n.value.name), 1)], 8, zs))])) : (B(), M("span", Bs, W(e.value), 1));
5248
5251
  }
5249
- }), [["__scopeId", "data-v-20319819"]]), Hs = { key: 0 }, Us = { class: "td-widget-list td-widget-list-icons" }, Ws = { key: 1 }, Gs = { class: "td-widget-list" }, Ks = 5, qs = /*#__PURE__*/ Z(/* @__PURE__ */ F({
5252
+ }), [["__scopeId", "data-v-20319819"]]), Hs = { key: 0 }, Us = { class: "td-widget-list td-widget-list-icons" }, Ws = { key: 1 }, Gs = { class: "td-widget-list" }, Ks = 5, qs = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5250
5253
  __name: "TdWidgetList",
5251
5254
  props: {
5252
5255
  definition: {},
5253
5256
  value: {}
5254
5257
  },
5255
5258
  setup(e) {
5256
- let t = B(!1), n = O(() => Array.isArray(e.value) ? e.value : []), r = O(() => e.definition.items?.widget === "relation"), i = O(() => r.value ? n.value.map((e) => js(e)).filter((e) => e !== void 0) : []), a = O(() => r.value ? Math.max(0, i.value.length - Ks) : Math.max(0, n.value.length - Ks));
5259
+ let t = V(!1), n = k(() => Array.isArray(e.value) ? e.value : []), r = k(() => e.definition.items?.widget === "relation"), i = k(() => r.value ? n.value.map((e) => js(e)).filter((e) => e !== void 0) : []), a = k(() => r.value ? Math.max(0, i.value.length - Ks) : Math.max(0, n.value.length - Ks));
5257
5260
  function o() {
5258
5261
  t.value = !t.value;
5259
5262
  }
5260
5263
  function s(e) {
5261
5264
  return t.value ? e : e.slice(0, Ks);
5262
5265
  }
5263
- return (e, c) => r.value ? (z(), j("div", Hs, [M("ul", Us, [(z(!0), j(D, null, V(s(i.value), (e, t) => (z(), j("li", { key: t }, [M("div", null, [(z(), k(U(e.icon ? G(Ro)(e.icon.name) ?? G(rn) : G(rn)), {
5266
+ return (e, c) => r.value ? (B(), M("div", Hs, [N("ul", Us, [(B(!0), M(O, null, H(s(i.value), (e, t) => (B(), M("li", { key: t }, [N("div", null, [(B(), A(De(e.icon ? G(Ro)(e.icon.name) ?? G(rn) : G(rn)), {
5264
5267
  size: 14,
5265
5268
  class: "td-widget-list-icon"
5266
- }))]), P(Vs, {
5269
+ }))]), F(Vs, {
5267
5270
  value: { $ref: e },
5268
5271
  "hide-icon": ""
5269
- }, null, 8, ["value"])]))), 128))]), a.value > 0 ? (z(), j("button", {
5272
+ }, null, 8, ["value"])]))), 128))]), a.value > 0 ? (B(), M("button", {
5270
5273
  key: 0,
5271
5274
  class: "td-widget-more",
5272
5275
  type: "button",
5273
5276
  onClick: o
5274
- }, W(t.value ? "show less" : `+${a.value} more`), 1)) : A("", !0)])) : (z(), j("div", Ws, [M("ul", Gs, [(z(!0), j(D, null, V(s(n.value), (e, t) => (z(), j("li", { key: t }, [G(js)(e) ? (z(), k(Vs, {
5277
+ }, W(t.value ? "show less" : `+${a.value} more`), 1)) : j("", !0)])) : (B(), M("div", Ws, [N("ul", Gs, [(B(!0), M(O, null, H(s(n.value), (e, t) => (B(), M("li", { key: t }, [G(js)(e) ? (B(), A(Vs, {
5275
5278
  key: 0,
5276
5279
  value: e
5277
- }, null, 8, ["value"])) : (z(), j(D, { key: 1 }, [N(W(e), 1)], 64))]))), 128))]), a.value > 0 ? (z(), j("button", {
5280
+ }, null, 8, ["value"])) : (B(), M(O, { key: 1 }, [P(W(e), 1)], 64))]))), 128))]), a.value > 0 ? (B(), M("button", {
5278
5281
  key: 0,
5279
5282
  class: "td-widget-more",
5280
5283
  type: "button",
5281
5284
  onClick: o
5282
- }, W(t.value ? "show less" : `+${a.value} more`), 1)) : A("", !0)]));
5285
+ }, W(t.value ? "show less" : `+${a.value} more`), 1)) : j("", !0)]));
5283
5286
  }
5284
5287
  }), [["__scopeId", "data-v-bc659020"]]), Js = [
5285
5288
  {
@@ -5328,42 +5331,42 @@ function Xs(e) {
5328
5331
  return Math.abs(t);
5329
5332
  }
5330
5333
  // src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetMultiSelect.vue?vue&type=script&setup=true&lang.ts
5331
- var Zs = 5, Qs = /*#__PURE__*/ Z(/* @__PURE__ */ F({
5334
+ var Zs = 5, Qs = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5332
5335
  __name: "TdWidgetMultiSelect",
5333
5336
  props: { value: {} },
5334
5337
  setup(e) {
5335
- let t = B(!1), n = O(() => Array.isArray(e.value) ? e.value : []), r = O(() => t.value ? n.value : n.value.slice(0, Zs)), i = O(() => Math.max(0, n.value.length - Zs));
5338
+ let t = V(!1), n = k(() => Array.isArray(e.value) ? e.value : []), r = k(() => t.value ? n.value : n.value.slice(0, Zs)), i = k(() => Math.max(0, n.value.length - Zs));
5336
5339
  function a() {
5337
5340
  t.value = !t.value;
5338
5341
  }
5339
- return (e, n) => (z(), j(D, null, [(z(!0), j(D, null, V(r.value, (e, t) => (z(), j("span", {
5342
+ return (e, n) => (B(), M(O, null, [(B(!0), M(O, null, H(r.value, (e, t) => (B(), M("span", {
5340
5343
  key: t,
5341
5344
  class: "td-widget-pill",
5342
- style: L(G(Ys)(e))
5343
- }, W(e), 5))), 128)), i.value > 0 ? (z(), j("button", {
5345
+ style: R(G(Ys)(e))
5346
+ }, W(e), 5))), 128)), i.value > 0 ? (B(), M("button", {
5344
5347
  key: 0,
5345
5348
  class: "td-widget-more",
5346
5349
  type: "button",
5347
5350
  onClick: a
5348
- }, W(t.value ? "show less" : `+${i.value} more`), 1)) : A("", !0)], 64));
5351
+ }, W(t.value ? "show less" : `+${i.value} more`), 1)) : j("", !0)], 64));
5349
5352
  }
5350
- }), [["__scopeId", "data-v-b3656329"]]), $s = /*#__PURE__*/ Z(/* @__PURE__ */ F({
5353
+ }), [["__scopeId", "data-v-b3656329"]]), $s = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5351
5354
  __name: "TdWidgetSelect",
5352
5355
  props: { value: {} },
5353
5356
  setup(e) {
5354
- return (t, n) => (z(), j("span", {
5357
+ return (t, n) => (B(), M("span", {
5355
5358
  class: "td-widget-pill",
5356
- style: L(G(Ys)(e.value))
5359
+ style: R(G(Ys)(e.value))
5357
5360
  }, W(e.value), 5));
5358
5361
  }
5359
- }), [["__scopeId", "data-v-b9e2b4fd"]]), ec = ["href", "title"], tc = ["src", "alt"], nc = ["href"], rc = { class: "td-widget-file-name" }, ic = /*#__PURE__*/ Z(/* @__PURE__ */ F({
5362
+ }), [["__scopeId", "data-v-b9e2b4fd"]]), ec = ["href", "title"], tc = ["src", "alt"], nc = ["href"], rc = { class: "td-widget-file-name" }, ic = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5360
5363
  __name: "TdWidgetText",
5361
5364
  props: {
5362
5365
  definition: {},
5363
5366
  value: {}
5364
5367
  },
5365
5368
  setup(e) {
5366
- let { withBase: t } = $(), n = O(() => typeof e.value == "string" ? e.value.trim() : ""), r = O(() => js(e.value)), i = O(() => r.value ? r.value.isImage : 0 < n.value.length && Ms({ url: n.value })), a = O(() => r.value ? r.value.url : n.value), o = O(() => t(a.value)), s = O(() => !n.value || !n.value.includes(".") || n.value.includes(" ") ? !1 : n.value.endsWith(".pdf") || n.value.endsWith(".zip") || n.value.endsWith(".doc") || n.value.endsWith(".docx"));
5369
+ let { withBase: t } = $(), n = k(() => typeof e.value == "string" ? e.value.trim() : ""), r = k(() => js(e.value)), i = k(() => r.value ? r.value.isImage : 0 < n.value.length && Ms({ url: n.value })), a = k(() => r.value ? r.value.url : n.value), o = k(() => t(a.value)), s = k(() => !n.value || !n.value.includes(".") || n.value.includes(" ") ? !1 : n.value.endsWith(".pdf") || n.value.endsWith(".zip") || n.value.endsWith(".doc") || n.value.endsWith(".docx"));
5367
5370
  function c(t) {
5368
5371
  if (t == null) return "";
5369
5372
  if (typeof t == "object" && !Array.isArray(t)) {
@@ -5371,58 +5374,58 @@ var Zs = 5, Qs = /*#__PURE__*/ Z(/* @__PURE__ */ F({
5371
5374
  switch (e._type) {
5372
5375
  case "date":
5373
5376
  case "datetime":
5374
- case "time": return typeof e.value == "string" ? b(e.value) : "";
5377
+ case "time": return typeof e.value == "string" ? x(e.value) : "";
5375
5378
  }
5376
5379
  }
5377
- return e.definition.widget === "date" ? b(String(t)) : String(t);
5380
+ return e.definition.widget === "date" ? x(String(t)) : String(t);
5378
5381
  }
5379
- return (t, a) => i.value ? (z(), j("a", {
5382
+ return (t, a) => i.value ? (B(), M("a", {
5380
5383
  key: 0,
5381
5384
  href: o.value,
5382
5385
  target: "_blank",
5383
5386
  rel: "noopener noreferrer",
5384
5387
  class: "td-widget-image-preview",
5385
5388
  title: r.value ? r.value.name : n.value
5386
- }, [M("img", {
5389
+ }, [N("img", {
5387
5390
  src: o.value,
5388
5391
  alt: r.value ? r.value.name : n.value,
5389
5392
  class: "td-widget-image-img",
5390
5393
  loading: "lazy"
5391
- }, null, 8, tc)], 8, ec)) : s.value ? (z(), j("a", {
5394
+ }, null, 8, tc)], 8, ec)) : s.value ? (B(), M("a", {
5392
5395
  key: 1,
5393
5396
  href: o.value,
5394
5397
  target: "_blank",
5395
5398
  rel: "noopener noreferrer",
5396
5399
  class: "td-widget-file-link"
5397
- }, [P(G(nn), { class: "td-widget-file-icon" }), M("span", rc, W(n.value.split("/").pop() ?? n.value), 1)], 8, nc)) : (z(), j(D, { key: 2 }, [N(W(c(e.value)), 1)], 64));
5400
+ }, [F(G(nn), { class: "td-widget-file-icon" }), N("span", rc, W(n.value.split("/").pop() ?? n.value), 1)], 8, nc)) : (B(), M(O, { key: 2 }, [P(W(c(e.value)), 1)], 64));
5398
5401
  }
5399
5402
  }), [["__scopeId", "data-v-2ea0f146"]]), ac = {
5400
5403
  key: 0,
5401
5404
  class: "td-frontmatter-empty"
5402
- }, oc = /*#__PURE__*/ Z(/* @__PURE__ */ F({
5405
+ }, oc = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5403
5406
  __name: "TdFrontmatterValue",
5404
5407
  props: {
5405
5408
  definition: {},
5406
5409
  value: {}
5407
5410
  },
5408
5411
  setup(e) {
5409
- return (t, n) => e.value === void 0 || e.value === null ? (z(), j("span", ac, "Empty")) : e.definition.widget === "checkbox" ? (z(), k(ks, {
5412
+ return (t, n) => e.value === void 0 || e.value === null ? (B(), M("span", ac, "Empty")) : e.definition.widget === "checkbox" ? (B(), A(ks, {
5410
5413
  key: 1,
5411
5414
  value: e.value
5412
- }, null, 8, ["value"])) : e.definition.widget === "select" ? (z(), k($s, {
5415
+ }, null, 8, ["value"])) : e.definition.widget === "select" ? (B(), A($s, {
5413
5416
  key: 2,
5414
5417
  value: e.value
5415
- }, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (z(), k(Qs, {
5418
+ }, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (B(), A(Qs, {
5416
5419
  key: 3,
5417
5420
  value: e.value
5418
- }, null, 8, ["value"])) : G(js)(e.value) || e.definition.widget === "relation" ? (z(), k(Vs, {
5421
+ }, null, 8, ["value"])) : G(js)(e.value) || e.definition.widget === "relation" ? (B(), A(Vs, {
5419
5422
  key: 4,
5420
5423
  value: e.value
5421
- }, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (z(), k(qs, {
5424
+ }, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (B(), A(qs, {
5422
5425
  key: 5,
5423
5426
  definition: e.definition,
5424
5427
  value: e.value
5425
- }, null, 8, ["definition", "value"])) : (z(), k(ic, {
5428
+ }, null, 8, ["definition", "value"])) : (B(), A(ic, {
5426
5429
  key: 6,
5427
5430
  definition: e.definition,
5428
5431
  value: e.value
@@ -5434,7 +5437,7 @@ var Zs = 5, Qs = /*#__PURE__*/ Z(/* @__PURE__ */ F({
5434
5437
  }, cc = { class: "td-fm-rail-key" }, lc = { class: "td-fm-rail-value" }, uc = {
5435
5438
  key: 1,
5436
5439
  class: "td-fm-box"
5437
- }, dc = { class: "td-fm-box-label" }, fc = { class: "td-fm-box-count" }, pc = { class: "td-fm-box-toggle" }, mc = { class: "td-fm-box-body" }, hc = { class: "td-fm-box-key" }, gc = { class: "td-fm-box-value" }, _c = /*#__PURE__*/ Z(/* @__PURE__ */ F({
5440
+ }, dc = { class: "td-fm-box-label" }, fc = { class: "td-fm-box-count" }, pc = { class: "td-fm-box-toggle" }, mc = { class: "td-fm-box-body" }, hc = { class: "td-fm-box-key" }, gc = { class: "td-fm-box-value" }, _c = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5438
5441
  __name: "TdFrontmatter",
5439
5442
  props: {
5440
5443
  mode: { default: "inline" },
@@ -5442,12 +5445,12 @@ var Zs = 5, Qs = /*#__PURE__*/ Z(/* @__PURE__ */ F({
5442
5445
  frontmatter: {}
5443
5446
  },
5444
5447
  setup(e) {
5445
- let t = yf(), n = O(() => {
5448
+ let t = yf(), n = k(() => {
5446
5449
  if (e.schema) return t.value.schemas[e.schema];
5447
- }), r = O(() => {
5450
+ }), r = k(() => {
5448
5451
  let t = e.frontmatter;
5449
5452
  return t._type && t.fields && typeof t.fields == "object" && !Array.isArray(t.fields) ? t.fields : t;
5450
- }), i = O(() => {
5453
+ }), i = k(() => {
5451
5454
  let e = n.value, t = r.value, i = [], a = /* @__PURE__ */ new Set();
5452
5455
  e && Object.keys(e).forEach((e) => a.add(e)), Object.keys(t).forEach((e) => a.add(e));
5453
5456
  for (let n of a) {
@@ -5469,57 +5472,57 @@ var Zs = 5, Qs = /*#__PURE__*/ Z(/* @__PURE__ */ F({
5469
5472
  function o(e) {
5470
5473
  return a[e] ?? mi;
5471
5474
  }
5472
- let s = B(!1), c = B(!1);
5475
+ let s = V(!1), c = V(!1);
5473
5476
  function l() {
5474
5477
  s.value = !s.value;
5475
5478
  }
5476
- function u() {
5479
+ function d() {
5477
5480
  c.value = !c.value;
5478
5481
  }
5479
- return (t, n) => e.mode === "rail" && i.value.length > 0 ? (z(), j("div", sc, [M("button", {
5482
+ return (t, n) => e.mode === "rail" && i.value.length > 0 ? (B(), M("div", sc, [N("button", {
5480
5483
  type: "button",
5481
5484
  class: "td-fm-rail-header",
5482
- onClick: u
5483
- }, [n[0] ||= M("span", { class: "td-fm-rail-label" }, "Properties", -1), P(G(bt), {
5485
+ onClick: d
5486
+ }, [n[0] ||= N("span", { class: "td-fm-rail-label" }, "Properties", -1), F(G(bt), {
5484
5487
  size: 14,
5485
- class: I(["td-fm-rail-caret", { "is-collapsed": c.value }])
5486
- }, null, 8, ["class"])]), M("div", { class: I(["td-collapse", { "is-collapsed": c.value }]) }, [M("div", null, [(z(!0), j(D, null, V(i.value, ([e, t]) => (z(), j("div", {
5488
+ class: L(["td-fm-rail-caret", { "is-collapsed": c.value }])
5489
+ }, null, 8, ["class"])]), N("div", { class: L(["td-collapse", { "is-collapsed": c.value }]) }, [N("div", null, [(B(!0), M(O, null, H(i.value, ([e, t]) => (B(), M("div", {
5487
5490
  key: e,
5488
5491
  class: "td-fm-rail-row"
5489
- }, [M("span", cc, [(z(), k(U(o(t.widget)), {
5492
+ }, [N("span", cc, [(B(), A(De(o(t.widget)), {
5490
5493
  size: 12,
5491
5494
  class: "td-fm-icon"
5492
- })), N(" " + W(G(d)(e)), 1)]), M("span", lc, [P(oc, {
5495
+ })), P(" " + W(G(u)(e)), 1)]), N("span", lc, [F(oc, {
5493
5496
  definition: t,
5494
5497
  value: r.value[e]
5495
- }, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : i.value.length > 0 ? (z(), j("div", uc, [M("button", {
5498
+ }, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : i.value.length > 0 ? (B(), M("div", uc, [N("button", {
5496
5499
  type: "button",
5497
5500
  class: "td-fm-box-header",
5498
5501
  onClick: l
5499
- }, [M("span", dc, [n[1] ||= N("Properties ", -1), M("span", fc, W(i.value.length), 1)]), M("span", pc, [N(W(s.value ? "Show" : "Hide") + " ", 1), s.value ? (z(), k(G(St), {
5502
+ }, [N("span", dc, [n[1] ||= P("Properties ", -1), N("span", fc, W(i.value.length), 1)]), N("span", pc, [P(W(s.value ? "Show" : "Hide") + " ", 1), s.value ? (B(), A(G(St), {
5500
5503
  key: 1,
5501
5504
  size: 14
5502
- })) : (z(), k(G(bt), {
5505
+ })) : (B(), A(G(bt), {
5503
5506
  key: 0,
5504
5507
  size: 14
5505
- }))])]), M("div", { class: I(["td-collapse", { "is-collapsed": s.value }]) }, [M("div", mc, [(z(!0), j(D, null, V(i.value, ([e, t]) => (z(), j(D, { key: e }, [M("span", hc, [(z(), k(U(o(t.widget)), {
5508
+ }))])]), N("div", { class: L(["td-collapse", { "is-collapsed": s.value }]) }, [N("div", mc, [(B(!0), M(O, null, H(i.value, ([e, t]) => (B(), M(O, { key: e }, [N("span", hc, [(B(), A(De(o(t.widget)), {
5506
5509
  size: 12,
5507
5510
  class: "td-fm-icon"
5508
- })), N(" " + W(G(d)(e)), 1)]), M("span", gc, [P(oc, {
5511
+ })), P(" " + W(G(u)(e)), 1)]), N("span", gc, [F(oc, {
5509
5512
  definition: t,
5510
5513
  value: r.value[e]
5511
- }, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) : A("", !0);
5514
+ }, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) : j("", !0);
5512
5515
  }
5513
- }), [["__scopeId", "data-v-88227032"]]);
5516
+ }), [["__scopeId", "data-v-25ee92eb"]]);
5514
5517
  // src/client/theme-default/composables/useMediaQuery.ts
5515
5518
  function vc(e) {
5516
- let t = B(!1), n;
5519
+ let t = V(!1), n;
5517
5520
  function r(e) {
5518
5521
  t.value = e.matches;
5519
5522
  }
5520
- return xe(() => {
5523
+ return be(() => {
5521
5524
  n = window.matchMedia(e), t.value = n.matches, n?.addEventListener("change", r);
5522
- }), R(() => {
5525
+ }), z(() => {
5523
5526
  n?.removeEventListener("change", r);
5524
5527
  }), t;
5525
5528
  }
@@ -5540,7 +5543,7 @@ function xc(e, t, n) {
5540
5543
  r.defaultPrevented || n?.ignoreWhenTyping && bc(r.target) || wc(r, e) && (r.preventDefault(), t(r));
5541
5544
  }
5542
5545
  let i = { capture: n?.capture ?? !1 };
5543
- xe(() => window.addEventListener("keydown", r, i)), R(() => window.removeEventListener("keydown", r, i));
5546
+ be(() => window.addEventListener("keydown", r, i)), z(() => window.removeEventListener("keydown", r, i));
5544
5547
  }
5545
5548
  function Sc(e) {
5546
5549
  let t = [];
@@ -5558,7 +5561,7 @@ function Sc(e) {
5558
5561
  }
5559
5562
  return q(e, (e, t) => {
5560
5563
  t?.removeEventListener("keydown", r), e?.addEventListener("keydown", r);
5561
- }, { immediate: !0 }), R(() => {
5564
+ }, { immediate: !0 }), z(() => {
5562
5565
  e.value?.removeEventListener("keydown", r);
5563
5566
  }), { register: n };
5564
5567
  }
@@ -5574,9 +5577,9 @@ function wc(e, t) {
5574
5577
  return !(e.ctrlKey && !n.includes(X.Control) || e.altKey && !n.includes(X.Alt) || e.shiftKey && !n.includes(X.Shift) || e.metaKey && !n.includes(X.Meta));
5575
5578
  }
5576
5579
  // src/client/theme-default/composables/useMenu.ts
5577
- var Tc = B(!1);
5580
+ var Tc = V(!1);
5578
5581
  function Ec() {
5579
- let e = vc("(width >= 64rem)"), t = O(() => !e.value);
5582
+ let e = vc("(width >= 64rem)"), t = k(() => !e.value);
5580
5583
  function n() {
5581
5584
  Tc.value = !Tc.value;
5582
5585
  }
@@ -5591,7 +5594,7 @@ function Ec() {
5591
5594
  }), xc([X.Escape], () => {
5592
5595
  Tc.value && i();
5593
5596
  }), {
5594
- isOpen: Te(Tc),
5597
+ isOpen: we(Tc),
5595
5598
  isDrawerMounted: t,
5596
5599
  toggle: n,
5597
5600
  open: r,
@@ -5599,20 +5602,20 @@ function Ec() {
5599
5602
  };
5600
5603
  }
5601
5604
  // src/client/theme-default/components/TdMenuButton.vue
5602
- var Dc = /* @__PURE__ */ F({
5605
+ var Dc = /* @__PURE__ */ I({
5603
5606
  __name: "TdMenuButton",
5604
5607
  setup(e) {
5605
5608
  let { isOpen: t, toggle: n } = Ec();
5606
- return (e, r) => (z(), k(Io, {
5609
+ return (e, r) => (B(), A(Io, {
5607
5610
  class: "td-menu-button",
5608
5611
  label: G(t) ? "Close menu" : "Open menu",
5609
5612
  "aria-expanded": G(t),
5610
5613
  onClick: G(n)
5611
5614
  }, {
5612
- default: J(() => [G(t) ? (z(), k(G(wi), {
5615
+ default: J(() => [G(t) ? (B(), A(G(wi), {
5613
5616
  key: 0,
5614
5617
  size: 20
5615
- })) : (z(), k(G(Zn), {
5618
+ })) : (B(), A(G(Zn), {
5616
5619
  key: 1,
5617
5620
  size: 20
5618
5621
  }))]),
@@ -5626,7 +5629,7 @@ var Dc = /* @__PURE__ */ F({
5626
5629
  });
5627
5630
  // src/client/theme-default/composables/usePreviousNext.ts
5628
5631
  function Oc() {
5629
- let e = yf(), t = ji(), { withBase: n, title: r } = $(), i = O(() => {
5632
+ let e = yf(), t = ji(), { withBase: n, title: r } = $(), i = k(() => {
5630
5633
  let i = Ac(e.value.contentTree, r), a = i.findIndex((e) => e.url === t.path);
5631
5634
  if (a === -1) return {};
5632
5635
  let o = 0 < a ? i[a - 1] : void 0, s = a < i.length - 1 ? i[a + 1] : void 0;
@@ -5642,26 +5645,26 @@ function Oc() {
5642
5645
  };
5643
5646
  });
5644
5647
  return {
5645
- previous: O(() => i.value.previous),
5646
- next: O(() => i.value.next)
5648
+ previous: k(() => i.value.previous),
5649
+ next: k(() => i.value.next)
5647
5650
  };
5648
5651
  }
5649
5652
  function kc(e, t, n) {
5650
- let r = te(t, e.name), i = f(e);
5653
+ let r = ee(t, e.name), i = d(e);
5651
5654
  i && n.push(jc(i));
5652
- for (let t of e.entries) t.kind === "file" && !m(t.item.filepath) ? n.push(jc(t.item)) : t.kind === "dir" && kc(t.node, r, n);
5655
+ for (let t of e.entries) t.kind === "file" && !p(t.item.filepath) ? n.push(jc(t.item)) : t.kind === "dir" && kc(t.node, r, n);
5653
5656
  }
5654
5657
  function Ac(e, t) {
5655
- let n = [], r = e.entries.find((e) => e.kind === "file" && m(e.item.filepath));
5658
+ let n = [], r = e.entries.find((e) => e.kind === "file" && p(e.item.filepath));
5656
5659
  r && r.kind === "file" && n.push(jc(r.item, t));
5657
- for (let t of e.entries) t.kind === "file" && !m(t.item.filepath) ? n.push(jc(t.item)) : t.kind === "dir" && kc(t.node, "", n);
5660
+ for (let t of e.entries) t.kind === "file" && !p(t.item.filepath) ? n.push(jc(t.item)) : t.kind === "dir" && kc(t.node, "", n);
5658
5661
  return n;
5659
5662
  }
5660
5663
  function jc(e, t) {
5661
- let n = e.label === void 0 ? t === void 0 ? ne(e.filepath) : T(e.filepath, t) : e.label;
5664
+ let r = e.label === void 0 ? t === void 0 ? te(e.filepath) : E(e.filepath, t) : e.label;
5662
5665
  return {
5663
- url: r(e.filepath),
5664
- title: n
5666
+ url: n(e.filepath),
5667
+ title: r
5665
5668
  };
5666
5669
  }
5667
5670
  // src/client/theme-default/components/TdPreviousNext.vue?vue&type=script&setup=true&lang.ts
@@ -5675,37 +5678,37 @@ var Mc = {
5675
5678
  }, Lc = ["href"], Rc = { class: "td-prevnext-label" }, zc = { class: "td-prevnext-title" }, Bc = {
5676
5679
  key: 3,
5677
5680
  class: "td-prevnext-spacer"
5678
- }, Vc = /*#__PURE__*/ Z(/* @__PURE__ */ F({
5681
+ }, Vc = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5679
5682
  __name: "TdPreviousNext",
5680
5683
  setup(e) {
5681
5684
  let { previous: t, next: n } = Oc();
5682
- return (e, r) => G(t) || G(n) ? (z(), j("nav", Mc, [G(t) ? (z(), j("a", {
5685
+ return (e, r) => G(t) || G(n) ? (B(), M("nav", Mc, [G(t) ? (B(), M("a", {
5683
5686
  key: 0,
5684
5687
  href: G(t).url,
5685
5688
  class: "td-prevnext-link is-previous"
5686
- }, [M("span", Pc, [
5687
- P(G(xt), {
5689
+ }, [N("span", Pc, [
5690
+ F(G(xt), {
5688
5691
  size: 14,
5689
5692
  class: "td-prevnext-chevron"
5690
5693
  }),
5691
- r[0] ||= N(" Previous ", -1),
5692
- P(Q, { keys: [G(X).Control, G(X).ArrowLeft] }, null, 8, ["keys"])
5693
- ]), M("span", Fc, W(G(t).title), 1)], 8, Nc)) : (z(), j("span", Ic)), G(n) ? (z(), j("a", {
5694
+ r[0] ||= P(" Previous ", -1),
5695
+ F(Q, { keys: [G(X).Control, G(X).ArrowLeft] }, null, 8, ["keys"])
5696
+ ]), N("span", Fc, W(G(t).title), 1)], 8, Nc)) : (B(), M("span", Ic)), G(n) ? (B(), M("a", {
5694
5697
  key: 2,
5695
5698
  href: G(n).url,
5696
5699
  class: "td-prevnext-link is-next"
5697
- }, [M("span", Rc, [
5698
- P(Q, { keys: [G(X).Control, G(X).ArrowRight] }, null, 8, ["keys"]),
5699
- r[1] ||= N(" Next ", -1),
5700
- P(G(St), {
5700
+ }, [N("span", Rc, [
5701
+ F(Q, { keys: [G(X).Control, G(X).ArrowRight] }, null, 8, ["keys"]),
5702
+ r[1] ||= P(" Next ", -1),
5703
+ F(G(St), {
5701
5704
  size: 14,
5702
5705
  class: "td-prevnext-chevron"
5703
5706
  })
5704
- ]), M("span", zc, W(G(n).title), 1)], 8, Lc)) : (z(), j("span", Bc))])) : A("", !0);
5707
+ ]), N("span", zc, W(G(n).title), 1)], 8, Lc)) : (B(), M("span", Bc))])) : j("", !0);
5705
5708
  }
5706
5709
  }), [["__scopeId", "data-v-b937f37a"]]), Hc = 100;
5707
5710
  function Uc(e) {
5708
- let t = B(void 0), n = [], r;
5711
+ let t = V(void 0), n = [], r;
5709
5712
  function i() {
5710
5713
  if (n.length === 0) return;
5711
5714
  if (document.body.offsetHeight <= window.scrollY + window.innerHeight) {
@@ -5726,12 +5729,12 @@ function Uc(e) {
5726
5729
  let r = new Set(e.map((e) => e.slug));
5727
5730
  n = Array.from(document.querySelectorAll(".td-content h2[id], .td-content h3[id], .td-content h4[id], .td-content h5[id]")).filter((e) => r.has(e.id)), i();
5728
5731
  }
5729
- return xe(() => {
5732
+ return be(() => {
5730
5733
  window.addEventListener("scroll", a);
5731
- }), R(() => {
5734
+ }), z(() => {
5732
5735
  window.removeEventListener("scroll", a), r !== void 0 && cancelAnimationFrame(r);
5733
5736
  }), q(e, (e) => {
5734
- typeof window < "u" && ye(() => o(e));
5737
+ typeof window < "u" && ve(() => o(e));
5735
5738
  }, { immediate: !0 }), t;
5736
5739
  }
5737
5740
  // src/client/theme-default/components/custom/TdToc.vue?vue&type=script&setup=true&lang.ts
@@ -5745,7 +5748,7 @@ var Wc = {
5745
5748
  key: 1,
5746
5749
  class: "td-toc",
5747
5750
  "data-testid": "toc"
5748
- }, Xc = { class: "td-toc-list" }, Zc = ["href", "innerHTML"], Qc = /*#__PURE__*/ Z(/* @__PURE__ */ F({
5751
+ }, Xc = { class: "td-toc-list" }, Zc = ["href", "innerHTML"], Qc = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5749
5752
  __name: "TdToc",
5750
5753
  props: {
5751
5754
  headings: {},
@@ -5763,16 +5766,16 @@ var Wc = {
5763
5766
  }
5764
5767
  },
5765
5768
  setup(e) {
5766
- let t = O(() => {
5769
+ let t = k(() => {
5767
5770
  let t = [];
5768
5771
  for (let n of e.headings) {
5769
5772
  t.push(n);
5770
5773
  for (let e of n.children) t.push(e);
5771
5774
  }
5772
5775
  return t;
5773
- }), n = e.static || e.inline ? O(() => void 0) : Uc(() => t.value), r = K("list");
5776
+ }), n = e.static || e.inline ? k(() => void 0) : Uc(() => t.value), r = K("list");
5774
5777
  return q(n, () => {
5775
- ye(() => {
5778
+ ve(() => {
5776
5779
  let e = r.value, t = e?.querySelector("a.is-active");
5777
5780
  if (!e || !t) return;
5778
5781
  let n = e.closest(".td-toc") ?? e;
@@ -5780,32 +5783,32 @@ var Wc = {
5780
5783
  let i = n.getBoundingClientRect(), a = t.getBoundingClientRect().top - i.top - n.clientHeight / 2 + t.clientHeight / 2;
5781
5784
  n.scrollTop += a;
5782
5785
  });
5783
- }), (r, i) => e.inline ? (z(), j("div", Wc, [i[0] ||= M("div", { class: "td-toc-inline-label" }, " On this page ", -1), M("ul", Gc, [(z(!0), j(D, null, V(e.headings, (e) => (z(), j("li", {
5786
+ }), (r, i) => e.inline ? (B(), M("div", Wc, [i[0] ||= N("div", { class: "td-toc-inline-label" }, " On this page ", -1), N("ul", Gc, [(B(!0), M(O, null, H(e.headings, (e) => (B(), M("li", {
5784
5787
  key: e.slug,
5785
5788
  class: "td-toc-inline-item"
5786
- }, [M("a", {
5789
+ }, [N("a", {
5787
5790
  href: e.link,
5788
5791
  class: "td-toc-inline-link is-h2",
5789
- innerHTML: G(y)(e.titleHtml)
5790
- }, null, 8, Kc), e.children.length ? (z(), j("ul", qc, [(z(!0), j(D, null, V(e.children, (e) => (z(), j("li", { key: e.slug }, [M("a", {
5792
+ innerHTML: G(b)(e.titleHtml)
5793
+ }, null, 8, Kc), e.children.length ? (B(), M("ul", qc, [(B(!0), M(O, null, H(e.children, (e) => (B(), M("li", { key: e.slug }, [N("a", {
5791
5794
  href: e.link,
5792
5795
  class: "td-toc-inline-link is-h3",
5793
- innerHTML: G(y)(e.titleHtml)
5794
- }, null, 8, Jc)]))), 128))])) : A("", !0)]))), 128))])])) : e.headings.length ? (z(), j("div", Yc, [M("div", {
5796
+ innerHTML: G(b)(e.titleHtml)
5797
+ }, null, 8, Jc)]))), 128))])) : j("", !0)]))), 128))])])) : e.headings.length ? (B(), M("div", Yc, [N("div", {
5795
5798
  ref: "list",
5796
- class: I(["td-toc-list-wrap", { "is-scrollable": e.scrollable }])
5797
- }, [M("ul", Xc, [(z(!0), j(D, null, V(t.value, (e) => (z(), j("li", {
5799
+ class: L(["td-toc-list-wrap", { "is-scrollable": e.scrollable }])
5800
+ }, [N("ul", Xc, [(B(!0), M(O, null, H(t.value, (e) => (B(), M("li", {
5798
5801
  key: e.slug,
5799
- class: I({
5802
+ class: L({
5800
5803
  "td-toc-indent-1": e.level === 3,
5801
5804
  "td-toc-indent-2": e.level === 4,
5802
5805
  "td-toc-indent-3": e.level === 5
5803
5806
  })
5804
- }, [M("a", {
5807
+ }, [N("a", {
5805
5808
  href: e.link,
5806
- class: I(["td-toc-link", { "is-active": G(n) === e.slug }]),
5807
- innerHTML: G(y)(e.titleHtml)
5808
- }, null, 10, Zc)], 2))), 128))])], 2)])) : A("", !0);
5809
+ class: L(["td-toc-link", { "is-active": G(n) === e.slug }]),
5810
+ innerHTML: G(b)(e.titleHtml)
5811
+ }, null, 10, Zc)], 2))), 128))])], 2)])) : j("", !0);
5809
5812
  }
5810
5813
  }), [["__scopeId", "data-v-f02336c5"]]), $c = {
5811
5814
  key: 0,
@@ -5813,10 +5816,10 @@ var Wc = {
5813
5816
  }, el = { class: "td-rail-inner" }, tl = {
5814
5817
  class: "td-rail-indicators",
5815
5818
  "aria-hidden": "true"
5816
- }, nl = { class: "td-rail-panel" }, rl = /*#__PURE__*/ Z(/* @__PURE__ */ F({
5819
+ }, nl = { class: "td-rail-panel" }, rl = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5817
5820
  __name: "TdRail",
5818
5821
  setup(e) {
5819
- let { page: t } = df(), n = O(() => {
5822
+ let { page: t } = df(), n = k(() => {
5820
5823
  let e = [];
5821
5824
  for (let n of t.value.headings) {
5822
5825
  e.push(n);
@@ -5824,19 +5827,19 @@ var Wc = {
5824
5827
  }
5825
5828
  return e;
5826
5829
  }), r = Uc(() => n.value);
5827
- return (e, i) => G(t).headings.length > 1 ? (z(), j("aside", $c, [M("div", el, [M("div", tl, [(z(!0), j(D, null, V(n.value, (e) => (z(), j("div", {
5830
+ return (e, i) => G(t).headings.length > 1 ? (B(), M("aside", $c, [N("div", el, [N("div", tl, [(B(!0), M(O, null, H(n.value, (e) => (B(), M("div", {
5828
5831
  key: e.slug,
5829
- class: I(["td-rail-indicator", {
5832
+ class: L(["td-rail-indicator", {
5830
5833
  "is-h3": e.level === 3,
5831
5834
  "is-active": G(r) === e.slug
5832
5835
  }])
5833
- }, null, 2))), 128))]), M("div", nl, [P(Qc, { headings: G(t).headings }, null, 8, ["headings"])])])])) : A("", !0);
5836
+ }, null, 2))), 128))]), N("div", nl, [F(Qc, { headings: G(t).headings }, null, 8, ["headings"])])])])) : j("", !0);
5834
5837
  }
5835
5838
  }), [["__scopeId", "data-v-ebea8dba"]]), il = {
5836
5839
  class: "td-skeleton",
5837
5840
  role: "status",
5838
5841
  "aria-label": "Loading"
5839
- }, al = /*#__PURE__*/ Z(/* @__PURE__ */ F({
5842
+ }, al = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5840
5843
  __name: "TdSkeleton",
5841
5844
  props: { lines: { default: 5 } },
5842
5845
  setup(e) {
@@ -5850,13 +5853,13 @@ var Wc = {
5850
5853
  55,
5851
5854
  72
5852
5855
  ];
5853
- return (n, r) => (z(), j("div", il, [(z(!0), j(D, null, V(e.lines, (e) => (z(), j("div", {
5856
+ return (n, r) => (B(), M("div", il, [(B(!0), M(O, null, H(e.lines, (e) => (B(), M("div", {
5854
5857
  key: e,
5855
5858
  class: "td-skeleton-line",
5856
- style: L({ width: `${t[(e - 1) % t.length]}%` })
5859
+ style: R({ width: `${t[(e - 1) % t.length]}%` })
5857
5860
  }, null, 4))), 128))]));
5858
5861
  }
5859
- }), [["__scopeId", "data-v-f78bb079"]]), ol = /*#__PURE__*/ Z(/* @__PURE__ */ F({
5862
+ }), [["__scopeId", "data-v-f78bb079"]]), ol = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5860
5863
  __name: "TdSidebarNav",
5861
5864
  props: {
5862
5865
  tree: {},
@@ -5866,14 +5869,14 @@ var Wc = {
5866
5869
  setup(e) {
5867
5870
  let t = ji(), n = K("scrollElement");
5868
5871
  return q(() => t.path, () => {
5869
- ye(() => {
5872
+ ve(() => {
5870
5873
  n.value?.querySelector(".is-active")?.scrollIntoView({ block: "nearest" });
5871
5874
  });
5872
- }, { immediate: !0 }), (t, r) => (z(), j("div", {
5875
+ }, { immediate: !0 }), (t, r) => (B(), M("div", {
5873
5876
  ref_key: "scrollElement",
5874
5877
  ref: n,
5875
5878
  class: "td-sidebar-scroll"
5876
- }, [!e.searchActive && !e.ready ? (z(), k(al, { key: 0 })) : e.searchActive ? A("", !0) : (z(), k(as, {
5879
+ }, [!e.searchActive && !e.ready ? (B(), A(al, { key: 0 })) : e.searchActive ? j("", !0) : (B(), A(as, {
5877
5880
  key: 1,
5878
5881
  tree: e.tree
5879
5882
  }, null, 8, ["tree"]))], 512));
@@ -5881,71 +5884,71 @@ var Wc = {
5881
5884
  }), [["__scopeId", "data-v-ca83b6cd"]]), sl = { class: "td-sidebar-icons" }, cl = ["href", "aria-label"], ll = {
5882
5885
  key: 1,
5883
5886
  class: "td-sidebar-icon-sep"
5884
- }, ul = ["href", "aria-label"], dl = /*#__PURE__*/ Z(/* @__PURE__ */ F({
5887
+ }, ul = ["href", "aria-label"], dl = /*#__PURE__*/ Z(/* @__PURE__ */ I({
5885
5888
  __name: "TdSidebarIcons",
5886
5889
  props: { tree: {} },
5887
5890
  emits: ["search"],
5888
- setup(e, { emit: n }) {
5889
- let i = n, a = ji(), { withBase: o } = $(), s = O(() => e.tree.entries.find((e) => e.kind === "file" && m(e.item.filepath))?.item), c = O(() => {
5890
- let t = [];
5891
- for (let n of e.tree.entries) {
5892
- if (n.kind !== "dir") continue;
5893
- let e = n.node, i = te("", e.name), a = f(e), s = a ? r(a.filepath) : u(i), c = a?.label ?? d(e.name), l = a?.icon ? Ro(a.icon.name) : void 0;
5894
- t.push({
5891
+ setup(t, { emit: r }) {
5892
+ let i = r, a = ji(), { withBase: o } = $(), s = k(() => t.tree.entries.find((e) => e.kind === "file" && p(e.item.filepath))?.item), c = k(() => {
5893
+ let e = [];
5894
+ for (let r of t.tree.entries) {
5895
+ if (r.kind !== "dir") continue;
5896
+ let t = r.node, i = ee("", t.name), a = d(t), s = a ? n(a.filepath) : l(i), c = a?.label ?? u(t.name), f = a?.icon ? Ro(a.icon.name) : void 0;
5897
+ e.push({
5895
5898
  label: c,
5896
5899
  href: o(s),
5897
5900
  path: s,
5898
- icon: l,
5899
- isFallback: !l
5901
+ icon: f,
5902
+ isFallback: !f
5900
5903
  });
5901
5904
  }
5902
- return t;
5905
+ return e;
5903
5906
  });
5904
- function l() {
5907
+ function f() {
5905
5908
  i("search");
5906
5909
  }
5907
- function p(e) {
5908
- return a.path === e || t(e, a.path);
5910
+ function m(t) {
5911
+ return a.path === t || e(t, a.path);
5909
5912
  }
5910
- return (e, t) => (z(), j("div", sl, [
5911
- P(Po, {
5913
+ return (e, t) => (B(), M("div", sl, [
5914
+ F(Po, {
5912
5915
  text: "Search",
5913
5916
  always: ""
5914
5917
  }, {
5915
- default: J(() => [M("button", {
5918
+ default: J(() => [N("button", {
5916
5919
  class: "td-sidebar-icon-btn",
5917
5920
  type: "button",
5918
5921
  "aria-label": "Search",
5919
- onClick: l
5920
- }, [P(G(Fr), { size: 16 })])]),
5922
+ onClick: f
5923
+ }, [F(G(Fr), { size: 16 })])]),
5921
5924
  _: 1
5922
5925
  }),
5923
- s.value ? (z(), k(Po, {
5926
+ s.value ? (B(), A(Po, {
5924
5927
  key: 0,
5925
5928
  text: s.value.label ?? "Home",
5926
5929
  always: ""
5927
5930
  }, {
5928
- default: J(() => [M("a", {
5929
- href: G(o)(G(r)(s.value.filepath)),
5930
- class: I(["td-sidebar-icon-btn", { "is-active": p(G(r)(s.value.filepath)) }]),
5931
+ default: J(() => [N("a", {
5932
+ href: G(o)(G(n)(s.value.filepath)),
5933
+ class: L(["td-sidebar-icon-btn", { "is-active": m(G(n)(s.value.filepath)) }]),
5931
5934
  "aria-label": s.value.label ?? "Home"
5932
- }, [P(G(Tn), { size: 16 })], 10, cl)]),
5935
+ }, [F(G(Tn), { size: 16 })], 10, cl)]),
5933
5936
  _: 1
5934
- }, 8, ["text"])) : A("", !0),
5935
- c.value.length ? (z(), j("div", ll)) : A("", !0),
5936
- (z(!0), j(D, null, V(c.value, (e) => (z(), k(Po, {
5937
+ }, 8, ["text"])) : j("", !0),
5938
+ c.value.length ? (B(), M("div", ll)) : j("", !0),
5939
+ (B(!0), M(O, null, H(c.value, (e) => (B(), A(Po, {
5937
5940
  key: e.href,
5938
5941
  text: e.label,
5939
5942
  always: ""
5940
5943
  }, {
5941
- default: J(() => [M("a", {
5944
+ default: J(() => [N("a", {
5942
5945
  href: e.href,
5943
- class: I(["td-sidebar-icon-btn", { "is-active": p(e.path) }]),
5946
+ class: L(["td-sidebar-icon-btn", { "is-active": m(e.path) }]),
5944
5947
  "aria-label": e.label
5945
- }, [e.isFallback ? (z(), k(G(dn), {
5948
+ }, [e.isFallback ? (B(), A(G(dn), {
5946
5949
  key: 1,
5947
5950
  size: 16
5948
- })) : (z(), k(U(e.icon), {
5951
+ })) : (B(), A(De(e.icon), {
5949
5952
  key: 0,
5950
5953
  size: 16
5951
5954
  }))], 10, ul)]),
@@ -5956,10 +5959,10 @@ var Wc = {
5956
5959
  }), [["__scopeId", "data-v-48b69ea7"]]);
5957
5960
  // src/client/theme-default/components/TdSiteSearch/highlight.ts
5958
5961
  function fl(e, t) {
5959
- if (!e || !t) return h(e);
5960
- let n = t.trim().split(/\s+/).filter(Boolean), r = h(e);
5962
+ if (!e || !t) return m(e);
5963
+ let n = t.trim().split(/\s+/).filter(Boolean), r = m(e);
5961
5964
  for (let e of n) {
5962
- let t = RegExp(`(${w(e)})`, "gi");
5965
+ let t = RegExp(`(${T(e)})`, "gi");
5963
5966
  r = r.replace(t, "<mark>$1</mark>");
5964
5967
  }
5965
5968
  return r;
@@ -5973,9 +5976,9 @@ function ml() {
5973
5976
  });
5974
5977
  function i() {
5975
5978
  if (t) return t;
5976
- if (e.value) return t = ge(ie.loadJSON(e.value, {
5977
- fields: x,
5978
- storeFields: C
5979
+ if (e.value) return t = he(ie.loadJSON(e.value, {
5980
+ fields: w,
5981
+ storeFields: _
5979
5982
  })), t;
5980
5983
  }
5981
5984
  function a(e, t) {
@@ -6011,7 +6014,7 @@ function ml() {
6011
6014
  score: e.score
6012
6015
  })), r.value = !1;
6013
6016
  }
6014
- let s = ee(o, 150);
6017
+ let s = S(o, 150);
6015
6018
  function c(e) {
6016
6019
  let t = e.trim();
6017
6020
  t.length === 0 ? (n.value = [], r.value = !1) : (r.value = !0, s(t));
@@ -6041,21 +6044,22 @@ var hl = {
6041
6044
  class: "td-palette-results"
6042
6045
  }, vl = [
6043
6046
  "href",
6047
+ "aria-selected",
6044
6048
  "onClick",
6045
6049
  "onMouseenter"
6046
6050
  ], yl = ["innerHTML"], bl = { class: "td-palette-item-path" }, xl = { class: "td-palette-group-label" }, Sl = { class: "td-palette-item-label" }, Cl = {
6047
6051
  key: 1,
6048
6052
  class: "td-palette-empty"
6049
- }, wl = { class: "td-palette-footer" }, Tl = /*#__PURE__*/ Z(/* @__PURE__ */ F({
6053
+ }, wl = { class: "td-palette-footer" }, Tl = /*#__PURE__*/ Z(/* @__PURE__ */ I({
6050
6054
  __name: "TdCommandPalette",
6051
6055
  emits: ["toggle-sidebar", "show-shortcuts"],
6052
6056
  setup(e, { expose: t, emit: n }) {
6053
- let r = n, a = B(!1), o = B(""), s = B(0), c = K("input"), l = K("results"), u = ji(), d = Mi(), { withBase: f } = $(), { previous: p, next: m } = Oc(), { results: h, search: g, cancel: _ } = ml(), v = O(() => o.value.trim());
6057
+ let i = n, a = V(!1), o = V(""), s = V(0), c = K("input"), l = K("results"), u = ji(), d = Mi(), { withBase: f } = $(), { previous: p, next: m } = Oc(), { results: h, search: g, cancel: _ } = ml(), v = k(() => o.value.trim());
6054
6058
  function y() {
6055
6059
  a.value = !1, _();
6056
6060
  }
6057
6061
  function b() {
6058
- o.value = "", a.value = !0, s.value = 0, ye(() => c.value?.focus());
6062
+ o.value = "", a.value = !0, s.value = 0, ve(() => c.value?.focus());
6059
6063
  }
6060
6064
  t({
6061
6065
  open: b,
@@ -6063,10 +6067,10 @@ var hl = {
6063
6067
  }), q(v, (e, t, n) => {
6064
6068
  n(() => _()), g(e), s.value = 0;
6065
6069
  });
6066
- let x = O(() => {
6067
- let e = i(u.path);
6070
+ let x = k(() => {
6071
+ let e = r(u.path);
6068
6072
  return e === "/" ? void 0 : e;
6069
- }), ee = O(() => {
6073
+ }), S = k(() => {
6070
6074
  let e = [];
6071
6075
  return m.value && e.push({
6072
6076
  id: "nav-next",
@@ -6091,13 +6095,13 @@ var hl = {
6091
6095
  label: "Collapse sidebar",
6092
6096
  keys: [X.Meta, X.Backslash],
6093
6097
  keepsOpen: !0,
6094
- action: () => r("toggle-sidebar")
6098
+ action: () => i("toggle-sidebar")
6095
6099
  }), e.push({
6096
6100
  id: "view-shortcuts",
6097
6101
  group: "View",
6098
6102
  label: "Keyboard shortcuts",
6099
6103
  action: () => {
6100
- y(), r("show-shortcuts");
6104
+ y(), i("show-shortcuts");
6101
6105
  }
6102
6106
  }), e.push({
6103
6107
  id: "page-copy",
@@ -6107,113 +6111,117 @@ var hl = {
6107
6111
  navigator.clipboard.writeText(window.location.href).catch(() => {}), y();
6108
6112
  }
6109
6113
  }), e;
6110
- }), S = O(() => {
6111
- if (!v.value) return ee.value;
6114
+ }), C = k(() => {
6115
+ if (!v.value) return S.value;
6112
6116
  let e = v.value.toLowerCase();
6113
- return ee.value.filter((t) => t.label.toLowerCase().includes(e) || t.group.toLowerCase().includes(e));
6114
- }), C = O(() => {
6117
+ return S.value.filter((t) => t.label.toLowerCase().includes(e) || t.group.toLowerCase().includes(e));
6118
+ }), w = k(() => {
6115
6119
  let e = /* @__PURE__ */ new Map();
6116
- for (let t of S.value) e.has(t.group) || e.set(t.group, []), e.get(t.group).push(t);
6120
+ for (let t of C.value) e.has(t.group) || e.set(t.group, []), e.get(t.group).push(t);
6117
6121
  return [...e.entries()].map(([e, t]) => ({
6118
6122
  name: e,
6119
6123
  commands: t
6120
6124
  }));
6121
- }), w = O(() => h.value.length + S.value.length);
6122
- function T(e) {
6123
- return h.value.length + S.value.indexOf(e);
6125
+ }), T = k(() => h.value.length + C.value.length);
6126
+ function E(e) {
6127
+ return h.value.length + C.value.indexOf(e);
6124
6128
  }
6125
- function te(e) {
6126
- let t = w.value;
6127
- e.key === "Escape" ? (e.preventDefault(), y()) : (e.key === "ArrowDown" && (e.preventDefault(), s.value = 0 < t ? (s.value + 1) % t : 0), e.key === "ArrowUp" && (e.preventDefault(), s.value = 0 < t ? (s.value - 1 + t) % t : 0), e.key === "Enter" && (e.preventDefault(), E(s.value)));
6129
+ function ee(e) {
6130
+ let t = T.value;
6131
+ e.key === "Escape" ? (e.preventDefault(), y()) : (e.key === "ArrowDown" && (e.preventDefault(), s.value = 0 < t ? (s.value + 1) % t : 0), e.key === "ArrowUp" && (e.preventDefault(), s.value = 0 < t ? (s.value - 1 + t) % t : 0), e.key === "Enter" && (e.preventDefault(), ne(s.value)));
6128
6132
  }
6129
- function ne(e) {
6133
+ function te(e) {
6130
6134
  e.keepsOpen || y(), e.href ? d.go(e.href) : e.action?.();
6131
6135
  }
6132
- function E(e) {
6136
+ function ne(e) {
6133
6137
  if (e < h.value.length) {
6134
6138
  let t = h.value[e];
6135
6139
  t && (y(), d.go(f(t.id)));
6136
6140
  } else {
6137
- let t = S.value[e - h.value.length];
6138
- t && ne(t);
6141
+ let t = C.value[e - h.value.length];
6142
+ t && te(t);
6139
6143
  }
6140
6144
  }
6141
6145
  function re(e) {
6142
6146
  let t = h.value[e];
6143
6147
  t && (y(), d.go(f(t.id)));
6144
6148
  }
6145
- return q(w, () => {
6149
+ return q(T, () => {
6146
6150
  s.value = 0;
6147
6151
  }), q(s, () => {
6148
6152
  requestAnimationFrame(() => {
6149
6153
  l.value?.querySelector(".is-selected")?.scrollIntoView({ block: "nearest" });
6150
6154
  });
6151
- }), (e, t) => (z(), k(ue, { to: "body" }, [a.value ? (z(), j(D, { key: 0 }, [M("div", {
6155
+ }), (e, t) => (B(), A(le, { to: "body" }, [a.value ? (B(), M(O, { key: 0 }, [N("div", {
6152
6156
  class: "td-palette-scrim",
6153
6157
  onClick: y
6154
- }), M("div", hl, [
6155
- M("div", gl, [
6156
- P(G(Fr), {
6158
+ }), N("div", hl, [
6159
+ N("div", gl, [
6160
+ F(G(Fr), {
6157
6161
  size: 14,
6158
6162
  class: "td-palette-input-icon"
6159
6163
  }),
6160
- Fe(M("input", {
6164
+ Fe(N("input", {
6161
6165
  ref: "input",
6162
6166
  "onUpdate:modelValue": t[0] ||= (e) => o.value = e,
6163
6167
  class: "td-palette-input",
6164
6168
  type: "text",
6165
6169
  placeholder: "Search pages and commands...",
6170
+ "aria-label": "Search pages and commands",
6166
6171
  autocomplete: "off",
6167
6172
  spellcheck: "false",
6168
- onKeydown: te
6173
+ onKeydown: ee
6169
6174
  }, null, 544), [[Me, o.value]]),
6170
- M("button", {
6175
+ N("button", {
6171
6176
  class: "td-palette-esc",
6172
6177
  type: "button",
6173
6178
  "aria-label": "Close",
6174
6179
  onClick: y
6175
6180
  }, " esc ")
6176
6181
  ]),
6177
- M("div", _l, [
6178
- G(h).length > 0 ? (z(), j(D, { key: 0 }, [t[1] ||= M("div", { class: "td-palette-group-label" }, " Pages ", -1), (z(!0), j(D, null, V(G(h), (e, t) => (z(), j("a", {
6182
+ N("div", _l, [
6183
+ G(h).length > 0 ? (B(), M(O, { key: 0 }, [t[1] ||= N("div", { class: "td-palette-group-label" }, " Pages ", -1), (B(!0), M(O, null, H(G(h), (e, t) => (B(), M("a", {
6179
6184
  key: e.id,
6180
6185
  href: G(f)(e.id),
6181
- class: I(["td-palette-item", { "is-selected": t === s.value }]),
6186
+ class: L(["td-palette-item", { "is-selected": t === s.value }]),
6187
+ "aria-selected": t === s.value,
6182
6188
  onClick: Le(() => re(t), ["prevent"]),
6183
6189
  onMouseenter: () => s.value = t
6184
- }, [M("span", {
6190
+ }, [N("span", {
6185
6191
  class: "td-palette-item-label",
6186
6192
  innerHTML: G(fl)(e.title, v.value)
6187
- }, null, 8, yl), M("span", bl, W(e.id), 1)], 42, vl))), 128))], 64)) : A("", !0),
6188
- (z(!0), j(D, null, V(C.value, (e) => (z(), j(D, { key: e.name }, [M("div", xl, W(e.name), 1), (z(!0), j(D, null, V(e.commands, (e) => (z(), k(U(e.href ? "a" : "button"), ve({ key: e.id }, { ref_for: !0 }, e.href ? { href: e.href } : { type: "button" }, {
6189
- class: ["td-palette-item", { "is-selected": T(e) === s.value }],
6190
- onClick: () => ne(e),
6191
- onMouseenter: () => s.value = T(e)
6193
+ }, null, 8, yl), N("span", bl, W(e.id), 1)], 42, vl))), 128))], 64)) : j("", !0),
6194
+ (B(!0), M(O, null, H(w.value, (e) => (B(), M(O, { key: e.name }, [N("div", xl, W(e.name), 1), (B(!0), M(O, null, H(e.commands, (e) => (B(), A(De(e.href ? "a" : "button"), _e({ key: e.id }, { ref_for: !0 }, e.href ? { href: e.href } : { type: "button" }, {
6195
+ class: ["td-palette-item", { "is-selected": E(e) === s.value }],
6196
+ "aria-selected": E(e) === s.value,
6197
+ onClick: () => te(e),
6198
+ onMouseenter: () => s.value = E(e)
6192
6199
  }), {
6193
- default: J(() => [M("span", Sl, W(e.label), 1), e.keys ? (z(), k(Q, {
6200
+ default: J(() => [N("span", Sl, W(e.label), 1), e.keys ? (B(), A(Q, {
6194
6201
  key: 0,
6195
6202
  keys: e.keys
6196
- }, null, 8, ["keys"])) : A("", !0)]),
6203
+ }, null, 8, ["keys"])) : j("", !0)]),
6197
6204
  _: 2
6198
6205
  }, 1040, [
6199
6206
  "class",
6207
+ "aria-selected",
6200
6208
  "onClick",
6201
6209
  "onMouseenter"
6202
6210
  ]))), 128))], 64))), 128)),
6203
- w.value === 0 && v.value ? (z(), j("div", Cl, " No results for \"" + W(v.value) + "\" ", 1)) : A("", !0)
6211
+ T.value === 0 && v.value ? (B(), M("div", Cl, " No results for \"" + W(v.value) + "\" ", 1)) : j("", !0)
6204
6212
  ], 512),
6205
- M("div", wl, [
6206
- M("span", null, [
6207
- P(Q, { keys: [G(X).ArrowUp] }, null, 8, ["keys"]),
6208
- P(Q, { keys: [G(X).ArrowDown] }, null, 8, ["keys"]),
6209
- t[2] ||= N(" navigate ", -1)
6213
+ N("div", wl, [
6214
+ N("span", null, [
6215
+ F(Q, { keys: [G(X).ArrowUp] }, null, 8, ["keys"]),
6216
+ F(Q, { keys: [G(X).ArrowDown] }, null, 8, ["keys"]),
6217
+ t[2] ||= P(" navigate ", -1)
6210
6218
  ]),
6211
- M("span", null, [P(Q, { keys: [G(X).Enter] }, null, 8, ["keys"]), t[3] ||= N(" select ", -1)]),
6212
- M("span", null, [P(Q, { keys: [G(X).Escape] }, null, 8, ["keys"]), t[4] ||= N(" close ", -1)])
6219
+ N("span", null, [F(Q, { keys: [G(X).Enter] }, null, 8, ["keys"]), t[3] ||= P(" select ", -1)]),
6220
+ N("span", null, [F(Q, { keys: [G(X).Escape] }, null, 8, ["keys"]), t[4] ||= P(" close ", -1)])
6213
6221
  ])
6214
- ])], 64)) : A("", !0)]));
6222
+ ])], 64)) : j("", !0)]));
6215
6223
  }
6216
- }), [["__scopeId", "data-v-a0789270"]]), El = ["onKeydown"], Dl = { class: "td-shortcuts-header" }, Ol = { class: "td-shortcuts-table" }, kl = /*#__PURE__*/ Z(/* @__PURE__ */ F({
6224
+ }), [["__scopeId", "data-v-424fc37c"]]), El = ["onKeydown"], Dl = { class: "td-shortcuts-header" }, Ol = { class: "td-shortcuts-table" }, kl = /*#__PURE__*/ Z(/* @__PURE__ */ I({
6217
6225
  __name: "TdShortcutsDialog",
6218
6226
  props: { open: { type: Boolean } },
6219
6227
  emits: ["close"],
@@ -6223,11 +6231,11 @@ var hl = {
6223
6231
  n("close");
6224
6232
  }
6225
6233
  return q(() => e.open, (e) => {
6226
- e && ye(() => r.value?.focus());
6227
- }), (t, n) => (z(), k(ue, { to: "body" }, [e.open ? (z(), j(D, { key: 0 }, [M("div", {
6234
+ e && ve(() => r.value?.focus());
6235
+ }), (t, n) => (B(), A(le, { to: "body" }, [e.open ? (B(), M(O, { key: 0 }, [N("div", {
6228
6236
  class: "td-shortcuts-scrim",
6229
6237
  onClick: i
6230
- }), M("div", {
6238
+ }), N("div", {
6231
6239
  ref: "dialog",
6232
6240
  class: "td-shortcuts-dialog",
6233
6241
  role: "dialog",
@@ -6235,19 +6243,19 @@ var hl = {
6235
6243
  "aria-label": "Keyboard shortcuts",
6236
6244
  tabindex: "-1",
6237
6245
  onKeydown: Ie(Le(i, ["stop"]), ["esc"])
6238
- }, [M("div", Dl, [n[0] ||= M("h2", { class: "td-shortcuts-title" }, " Keyboard shortcuts ", -1), M("button", {
6246
+ }, [N("div", Dl, [n[0] ||= N("h2", { class: "td-shortcuts-title" }, " Keyboard shortcuts ", -1), N("button", {
6239
6247
  class: "td-shortcuts-close",
6240
6248
  type: "button",
6241
6249
  "aria-label": "Close",
6242
6250
  onClick: i
6243
- }, [P(G(wi), { size: 16 })])]), M("table", Ol, [M("tbody", null, [
6244
- M("tr", null, [n[1] ||= M("td", null, "Search", -1), M("td", null, [P(Q, { keys: [G(X).Meta, G(X).k] }, null, 8, ["keys"])])]),
6245
- M("tr", null, [n[2] ||= M("td", null, "Commands", -1), M("td", null, [P(Q, { keys: [G(X).Meta, G(X).FSlash] }, null, 8, ["keys"])])]),
6246
- M("tr", null, [n[3] ||= M("td", null, "Next page", -1), M("td", null, [P(Q, { keys: [G(X).Control, G(X).ArrowRight] }, null, 8, ["keys"])])]),
6247
- M("tr", null, [n[4] ||= M("td", null, "Previous page", -1), M("td", null, [P(Q, { keys: [G(X).Control, G(X).ArrowLeft] }, null, 8, ["keys"])])]),
6248
- M("tr", null, [n[5] ||= M("td", null, "Toggle sidebar", -1), M("td", null, [P(Q, { keys: [G(X).Meta, G(X).Backslash] }, null, 8, ["keys"])])]),
6249
- M("tr", null, [n[6] ||= M("td", null, "Close", -1), M("td", null, [P(Q, { keys: [G(X).Escape] }, null, 8, ["keys"])])])
6250
- ])])], 40, El)], 64)) : A("", !0)]));
6251
+ }, [F(G(wi), { size: 16 })])]), N("table", Ol, [N("tbody", null, [
6252
+ N("tr", null, [n[1] ||= N("td", null, "Search", -1), N("td", null, [F(Q, { keys: [G(X).Meta, G(X).k] }, null, 8, ["keys"])])]),
6253
+ N("tr", null, [n[2] ||= N("td", null, "Commands", -1), N("td", null, [F(Q, { keys: [G(X).Meta, G(X).FSlash] }, null, 8, ["keys"])])]),
6254
+ N("tr", null, [n[3] ||= N("td", null, "Next page", -1), N("td", null, [F(Q, { keys: [G(X).Control, G(X).ArrowRight] }, null, 8, ["keys"])])]),
6255
+ N("tr", null, [n[4] ||= N("td", null, "Previous page", -1), N("td", null, [F(Q, { keys: [G(X).Control, G(X).ArrowLeft] }, null, 8, ["keys"])])]),
6256
+ N("tr", null, [n[5] ||= N("td", null, "Toggle sidebar", -1), N("td", null, [F(Q, { keys: [G(X).Meta, G(X).Backslash] }, null, 8, ["keys"])])]),
6257
+ N("tr", null, [n[6] ||= N("td", null, "Close", -1), N("td", null, [F(Q, { keys: [G(X).Escape] }, null, 8, ["keys"])])])
6258
+ ])])], 40, El)], 64)) : j("", !0)]));
6251
6259
  }
6252
6260
  }), [["__scopeId", "data-v-09d6a93c"]]), Al = { class: "td-search" }, jl = { class: "td-search-input-wrap" }, Ml = {
6253
6261
  key: 2,
@@ -6258,7 +6266,7 @@ var hl = {
6258
6266
  }, Pl = ["href"], Fl = ["innerHTML"], Il = { class: "td-search-result-path" }, Ll = ["innerHTML"], Rl = {
6259
6267
  key: 1,
6260
6268
  class: "td-search-empty"
6261
- }, zl = /*#__PURE__*/ Z(/* @__PURE__ */ F({
6269
+ }, zl = /*#__PURE__*/ Z(/* @__PURE__ */ I({
6262
6270
  __name: "TdSiteSearch",
6263
6271
  props: {
6264
6272
  active: {
@@ -6269,17 +6277,17 @@ var hl = {
6269
6277
  query: { default: "" },
6270
6278
  queryModifiers: {}
6271
6279
  },
6272
- emits: /*@__PURE__*/ _e(["select"], ["update:active", "update:query"]),
6280
+ emits: /*@__PURE__*/ ge(["select"], ["update:active", "update:query"]),
6273
6281
  setup(e, { expose: t, emit: n }) {
6274
- let r = je(e, "active"), i = je(e, "query"), a = n, o = ji(), { withBase: s } = $(), { results: l, searching: u, indexLoaded: f, search: p, cancel: m } = ml(), h = B(-1), g = O(() => 0 < i.value.trim().length), _ = O(() => {
6282
+ let r = je(e, "active"), i = je(e, "query"), a = n, o = ji(), { withBase: c } = $(), { results: l, searching: d, indexLoaded: f, search: p, cancel: m } = ml(), h = V(-1), g = k(() => 0 < i.value.trim().length), _ = k(() => {
6275
6283
  let e = [], t = /* @__PURE__ */ new Map();
6276
6284
  for (let n of l.value) {
6277
- let r = c(n.id), i = t.get(r);
6285
+ let r = s(n.id), i = t.get(r);
6278
6286
  if (!i) {
6279
6287
  let n = r.split("/").pop() || "index";
6280
6288
  i = {
6281
6289
  pageUrl: r,
6282
- pageTitle: d(n),
6290
+ pageTitle: u(n),
6283
6291
  results: []
6284
6292
  }, t.set(r, i), e.push(i);
6285
6293
  }
@@ -6295,7 +6303,7 @@ var hl = {
6295
6303
  function v() {
6296
6304
  i.value = "";
6297
6305
  }
6298
- let y = O(() => _.value.flatMap((e) => e.results)), b = O(() => {
6306
+ let y = k(() => _.value.flatMap((e) => e.results)), b = k(() => {
6299
6307
  let e = /* @__PURE__ */ new Map();
6300
6308
  for (let t = 0; t < y.value.length; t++) e.set(y.value[t].id, t);
6301
6309
  return e;
@@ -6303,111 +6311,112 @@ var hl = {
6303
6311
  function x(e) {
6304
6312
  let t = b.value.size;
6305
6313
  if (t !== 0) {
6306
- if (e.key === "ArrowDown") e.preventDefault(), h.value = (h.value + 1) % t, S();
6307
- else if (e.key === "ArrowUp") e.preventDefault(), h.value = (h.value - 1 + t) % t, S();
6314
+ if (e.key === "ArrowDown") e.preventDefault(), h.value = (h.value + 1) % t, C();
6315
+ else if (e.key === "ArrowUp") e.preventDefault(), h.value = (h.value - 1 + t) % t, C();
6308
6316
  else if (e.key === "Enter" && 0 <= h.value) {
6309
6317
  e.preventDefault();
6310
6318
  let t = y.value[h.value];
6311
6319
  if (!t) return;
6312
- document.querySelector(`.td-search-result[href="${CSS.escape(s(t.id))}"]`)?.click();
6320
+ document.querySelector(`.td-search-result[href="${CSS.escape(c(t.id))}"]`)?.click();
6313
6321
  }
6314
6322
  }
6315
6323
  }
6316
- function ee() {
6324
+ function S() {
6317
6325
  a("select");
6318
6326
  }
6319
- function S() {
6327
+ function C() {
6320
6328
  requestAnimationFrame(() => {
6321
6329
  document.querySelector(".td-search-result.is-selected")?.scrollIntoView({ block: "nearest" });
6322
6330
  });
6323
6331
  }
6324
- let C = K("searchInput");
6332
+ let w = K("searchInput");
6325
6333
  return t({
6326
6334
  focus() {
6327
- C.value?.focus();
6335
+ w.value?.focus();
6328
6336
  },
6329
6337
  blur() {
6330
- C.value?.blur();
6338
+ w.value?.blur();
6331
6339
  },
6332
6340
  get isVisible() {
6333
- return C.value?.offsetParent !== null;
6341
+ return w.value?.offsetParent !== null;
6334
6342
  },
6335
6343
  get isFocused() {
6336
- return document.activeElement === C.value;
6344
+ return document.activeElement === w.value;
6337
6345
  }
6338
- }), (e, t) => (z(), j("div", Al, [
6339
- M("div", jl, [
6340
- P(G(Fr), {
6346
+ }), (e, t) => (B(), M("div", Al, [
6347
+ N("div", jl, [
6348
+ F(G(Fr), {
6341
6349
  size: 14,
6342
6350
  class: "td-search-icon"
6343
6351
  }),
6344
- Fe(M("input", {
6352
+ Fe(N("input", {
6345
6353
  ref_key: "searchInput",
6346
- ref: C,
6354
+ ref: w,
6347
6355
  "onUpdate:modelValue": t[0] ||= (e) => i.value = e,
6348
6356
  class: "td-search-input",
6349
6357
  type: "text",
6350
6358
  size: "1",
6351
6359
  placeholder: "Search...",
6360
+ "aria-label": "Search",
6352
6361
  onKeydown: x
6353
6362
  }, null, 544), [[Me, i.value]]),
6354
- !g.value && !G(u) ? (z(), k(Q, {
6363
+ !g.value && !G(d) ? (B(), A(Q, {
6355
6364
  key: 0,
6356
6365
  keys: [G(X).Meta, G(X).k],
6357
6366
  class: "td-search-kbd"
6358
- }, null, 8, ["keys"])) : A("", !0),
6359
- G(u) || !G(f) ? (z(), k(G(Bn), {
6367
+ }, null, 8, ["keys"])) : j("", !0),
6368
+ G(d) || !G(f) ? (B(), A(G(Bn), {
6360
6369
  key: 1,
6361
6370
  size: 12,
6362
6371
  class: "td-search-spinner"
6363
- })) : g.value ? (z(), j("span", Ml, W(G(l).length), 1)) : A("", !0),
6364
- i.value ? (z(), j("button", {
6372
+ })) : g.value ? (B(), M("span", Ml, W(G(l).length), 1)) : j("", !0),
6373
+ i.value ? (B(), M("button", {
6365
6374
  key: 3,
6366
6375
  class: "td-search-clear",
6367
6376
  type: "button",
6368
6377
  "aria-label": "Clear search",
6369
6378
  onClick: v
6370
- }, [P(G(wi), { size: 12 })])) : A("", !0)
6379
+ }, [F(G(wi), { size: 12 })])) : j("", !0)
6371
6380
  ]),
6372
- g.value && G(l).length > 0 ? (z(), j("div", Nl, [(z(!0), j(D, null, V(_.value, (e) => (z(), j("div", {
6381
+ g.value && G(l).length > 0 ? (B(), M("div", Nl, [(B(!0), M(O, null, H(_.value, (e) => (B(), M("div", {
6373
6382
  key: e.pageUrl,
6374
6383
  class: "td-search-group"
6375
- }, [(z(!0), j(D, null, V(e.results, (e) => (z(), j("a", {
6384
+ }, [(B(!0), M(O, null, H(e.results, (e) => (B(), M("a", {
6376
6385
  key: e.id,
6377
- href: G(s)(e.id),
6378
- class: I(["td-search-result", {
6386
+ href: G(c)(e.id),
6387
+ class: L(["td-search-result", {
6379
6388
  "is-selected": b.value.get(e.id) === h.value,
6380
- "is-current": G(s)(e.id) === G(o).path
6389
+ "is-current": G(c)(e.id) === G(o).path
6381
6390
  }]),
6382
- onClick: ee
6391
+ onClick: S
6383
6392
  }, [
6384
- M("span", {
6393
+ N("span", {
6385
6394
  class: "td-search-result-title",
6386
6395
  innerHTML: G(fl)(e.title, i.value)
6387
6396
  }, null, 8, Fl),
6388
- M("span", Il, W(e.id), 1),
6389
- e.excerpt ? (z(), j("span", {
6397
+ N("span", Il, W(e.id), 1),
6398
+ e.excerpt ? (B(), M("span", {
6390
6399
  key: 0,
6391
6400
  class: "td-search-result-excerpt",
6392
6401
  innerHTML: G(fl)(e.excerpt, i.value)
6393
- }, null, 8, Ll)) : A("", !0)
6394
- ], 10, Pl))), 128))]))), 128))])) : A("", !0),
6395
- g.value && G(l).length === 0 ? (z(), j("div", Rl, " No results for \"" + W(i.value) + "\" ", 1)) : A("", !0)
6402
+ }, null, 8, Ll)) : j("", !0)
6403
+ ], 10, Pl))), 128))]))), 128))])) : j("", !0),
6404
+ g.value && G(l).length === 0 ? (B(), M("div", Rl, " No results for \"" + W(i.value) + "\" ", 1)) : j("", !0)
6396
6405
  ]));
6397
6406
  }
6398
- }), [["__scopeId", "data-v-f42853f1"]]), Bl = /* @__PURE__ */ F({
6407
+ }), [["__scopeId", "data-v-0326ba73"]]), Bl = /* @__PURE__ */ I({
6399
6408
  __name: "TdThemeToggle",
6400
6409
  setup(e) {
6401
- let { isDark: t, toggle: n, lightToggleStyle: r, darkToggleStyle: i } = E();
6402
- return (e, a) => (z(), k(Io, {
6410
+ let { isDark: t, toggle: n, lightToggleStyle: r, darkToggleStyle: i } = ne();
6411
+ return (e, a) => (B(), A(Io, {
6403
6412
  label: G(t) ? "Switch to light mode" : "Switch to dark mode",
6404
6413
  onClick: G(n)
6405
6414
  }, {
6406
- default: J(() => [P(G(Zr), {
6407
- style: L(G(i)),
6415
+ default: J(() => [F(G(Zr), {
6416
+ style: R(G(i)),
6408
6417
  size: 18
6409
- }, null, 8, ["style"]), P(G(nr), {
6410
- style: L(G(r)),
6418
+ }, null, 8, ["style"]), F(G(nr), {
6419
+ style: R(G(r)),
6411
6420
  size: 18
6412
6421
  }, null, 8, ["style"])]),
6413
6422
  _: 1
@@ -6435,9 +6444,9 @@ function Vl() {
6435
6444
  }, 2e3);
6436
6445
  }
6437
6446
  }
6438
- xe(() => {
6447
+ be(() => {
6439
6448
  document.addEventListener("click", e);
6440
- }), R(() => {
6449
+ }), z(() => {
6441
6450
  document.removeEventListener("click", e);
6442
6451
  });
6443
6452
  }
@@ -6452,9 +6461,9 @@ function Hl() {
6452
6461
  t.classList.remove("td-header-anchor--copied");
6453
6462
  }, 2e3);
6454
6463
  }
6455
- xe(() => {
6464
+ be(() => {
6456
6465
  document.addEventListener("click", e);
6457
- }), R(() => {
6466
+ }), z(() => {
6458
6467
  document.removeEventListener("click", e);
6459
6468
  });
6460
6469
  }
@@ -6490,9 +6499,9 @@ function Gl() {
6490
6499
  }
6491
6500
  document.addEventListener("pointermove", o), document.addEventListener("pointerup", s);
6492
6501
  }
6493
- xe(() => {
6502
+ be(() => {
6494
6503
  document.addEventListener("pointermove", r), document.addEventListener("pointerdown", i);
6495
- }), R(() => {
6504
+ }), z(() => {
6496
6505
  document.removeEventListener("pointermove", r), document.removeEventListener("pointerdown", i);
6497
6506
  });
6498
6507
  }
@@ -6503,7 +6512,7 @@ var Kl = ["id"], ql = { class: "td-diagram-frame" }, Jl = ["innerHTML"], Yl = {
6503
6512
  }, ru = ["aria-label"], iu = { class: "td-diagram-modal-header" }, au = { class: "td-diagram-modal-header-left" }, ou = { class: "td-diagram-modal-title" }, su = { class: "td-diagram-modal-chip" }, cu = { class: "td-diagram-modal-header-right" }, lu = ["aria-pressed"], uu = { class: "td-diagram-button-label" }, du = { class: "td-diagram-modal-body" }, fu = {
6504
6513
  key: 0,
6505
6514
  class: "td-diagram-modal-code-panel"
6506
- }, pu = { class: "td-diagram-modal-code-panel-header" }, mu = { class: "td-diagram-modal-code-panel-body" }, hu = { class: "td-diagram-code td-diagram-code--modal" }, gu = { class: "td-diagram-code-number" }, _u = { class: "td-diagram-code-column" }, vu = ["innerHTML"], yu = { class: "td-diagram-modal-hint" }, bu = .15, xu = 5, Su = 4, Cu = .9, wu = .82, Tu = 1.25, Eu = .8, Du = 1.6, Ou = 1400, ku = 20, Au = /*#__PURE__*/ Z(/* @__PURE__ */ F({
6515
+ }, pu = { class: "td-diagram-modal-code-panel-header" }, mu = { class: "td-diagram-modal-code-panel-body" }, hu = { class: "td-diagram-code td-diagram-code--modal" }, gu = { class: "td-diagram-code-number" }, _u = { class: "td-diagram-code-column" }, vu = ["innerHTML"], yu = { class: "td-diagram-modal-hint" }, bu = .15, xu = 5, Su = 4, Cu = .9, wu = .82, Tu = 1.25, Eu = .8, Du = 1.6, Ou = 1400, ku = 20, Au = /*#__PURE__*/ Z(/* @__PURE__ */ I({
6507
6516
  __name: "TdDiagram",
6508
6517
  props: {
6509
6518
  svg: {},
@@ -6513,15 +6522,15 @@ var Kl = ["id"], ql = { class: "td-diagram-frame" }, Jl = ["innerHTML"], Yl = {
6513
6522
  diagramId: {}
6514
6523
  },
6515
6524
  setup(e) {
6516
- let t = typeof navigator < "u" && /Mac/i.test(navigator.userAgent) ? "⌘" : "Ctrl", n = K("stage"), r = K("canvas"), i = K("modalStage"), a = K("modalCanvas"), o = K("modalDialog"), s = K("expandButton"), c = B(!1), l = B(!1), u = B(!1), d = B(!1), f = B(!1), p = B({
6525
+ let t = typeof navigator < "u" && /Mac/i.test(navigator.userAgent) ? "⌘" : "Ctrl", n = K("stage"), r = K("canvas"), i = K("modalStage"), a = K("modalCanvas"), o = K("modalDialog"), s = K("expandButton"), c = V(!1), l = V(!1), u = V(!1), d = V(!1), f = V(!1), p = V({
6517
6526
  x: 0,
6518
6527
  y: 0,
6519
6528
  scale: 1
6520
- }), m = B({
6529
+ }), m = V({
6521
6530
  x: 0,
6522
6531
  y: 0,
6523
6532
  scale: 1
6524
- }), h = O(() => {
6533
+ }), h = k(() => {
6525
6534
  let t = e.svg.match(/viewBox=["']([^"']+)["']/);
6526
6535
  if (t) {
6527
6536
  let e = t[1].split(/[\s,]+/);
@@ -6538,35 +6547,35 @@ var Kl = ["id"], ql = { class: "td-diagram-frame" }, Jl = ["innerHTML"], Yl = {
6538
6547
  width: 400,
6539
6548
  height: 300
6540
6549
  };
6541
- }), g = O(() => e.source.split("\n")), _ = O(() => g.value.length), v = O(() => `${Math.round(p.value.scale * 100)}%`), y = O(() => `${Math.round(m.value.scale * 100)}%`), b = O(() => e.label === "Mermaid" ? "mmd" : e.label === "D2" ? "d2" : "txt"), x = O(() => ({
6550
+ }), g = k(() => e.source.split("\n")), _ = k(() => g.value.length), v = k(() => `${Math.round(p.value.scale * 100)}%`), y = k(() => `${Math.round(m.value.scale * 100)}%`), b = k(() => e.label === "Mermaid" ? "mmd" : e.label === "D2" ? "d2" : "txt"), x = k(() => ({
6542
6551
  width: `${h.value.width}px`,
6543
6552
  height: `${h.value.height}px`
6544
- })), ee = O(() => {
6553
+ })), S = k(() => {
6545
6554
  let { x: e, y: t, scale: n } = p.value;
6546
6555
  return {
6547
6556
  ...x.value,
6548
6557
  transform: `translate(${e}px, ${t}px) scale(${n})`
6549
6558
  };
6550
- }), S = O(() => {
6559
+ }), C = k(() => {
6551
6560
  let { x: e, y: t, scale: n } = m.value;
6552
6561
  return {
6553
6562
  ...x.value,
6554
6563
  transform: `translate(${e}px, ${t}px) scale(${n})`
6555
6564
  };
6556
- }), C = O(() => {
6565
+ }), w = k(() => {
6557
6566
  let { x: e, y: t, scale: n } = m.value, r = ku * n;
6558
6567
  return {
6559
6568
  backgroundSize: `${r}px ${r}px`,
6560
6569
  backgroundPosition: `${e % r}px ${t % r}px`
6561
6570
  };
6562
6571
  });
6563
- function w(e) {
6572
+ function T(e) {
6564
6573
  return Math.min(xu, Math.max(bu, e));
6565
6574
  }
6566
- function T() {
6575
+ function E() {
6567
6576
  l.value = !1, Re?.(), Re = void 0, s.value?.focus();
6568
6577
  }
6569
- function te(e, t, n, r, i) {
6578
+ function ee(e, t, n, r, i) {
6570
6579
  if (n <= 0 || r <= 0) return {
6571
6580
  x: 0,
6572
6581
  y: 0,
@@ -6579,10 +6588,10 @@ var Kl = ["id"], ql = { class: "td-diagram-frame" }, Jl = ["innerHTML"], Yl = {
6579
6588
  scale: a
6580
6589
  };
6581
6590
  }
6582
- function ne() {
6591
+ function te() {
6583
6592
  re(d);
6584
6593
  }
6585
- function E() {
6594
+ function ne() {
6586
6595
  re(f);
6587
6596
  }
6588
6597
  function re(t) {
@@ -6599,77 +6608,77 @@ var Kl = ["id"], ql = { class: "td-diagram-frame" }, Jl = ["innerHTML"], Yl = {
6599
6608
  c.href = s, c.download = `${e.diagramId}.svg`, c.click(), URL.revokeObjectURL(s);
6600
6609
  }
6601
6610
  function ae() {
6602
- se(n.value ?? void 0, p, Cu);
6611
+ oe(n.value ?? void 0, p, Cu);
6603
6612
  }
6604
- function oe() {
6605
- se(i.value ?? void 0, m, wu);
6613
+ function D() {
6614
+ oe(i.value ?? void 0, m, wu);
6606
6615
  }
6607
- function se(e, t, n) {
6608
- !e || e.offsetWidth <= 0 || (t.value = te(e.offsetWidth, e.offsetHeight, h.value.width, h.value.height, n));
6616
+ function oe(e, t, n) {
6617
+ !e || e.offsetWidth <= 0 || (t.value = ee(e.offsetWidth, e.offsetHeight, h.value.width, h.value.height, n));
6609
6618
  }
6610
- function ce(e, t) {
6619
+ function se(e, t) {
6611
6620
  let n = t.getBoundingClientRect(), r = (t.offsetWidth ? n.width / t.offsetWidth : 1) || 1;
6612
6621
  return {
6613
6622
  x: (e.clientX - n.left) / r,
6614
6623
  y: (e.clientY - n.top) / r
6615
6624
  };
6616
6625
  }
6617
- function le(e) {
6618
- e.target.classList.contains("td-diagram-modal-backdrop") && T();
6626
+ function ce(e) {
6627
+ e.target.classList.contains("td-diagram-modal-backdrop") && E();
6619
6628
  }
6620
- function de(e) {
6621
- e.key === "Escape" ? (e.stopPropagation(), T()) : e.key === "+" || e.key === "=" ? pe() : e.key === "-" ? me() : e.key === "0" && oe();
6629
+ function ue(e) {
6630
+ e.key === "Escape" ? (e.stopPropagation(), E()) : e.key === "+" || e.key === "=" ? fe() : e.key === "-" ? pe() : e.key === "0" && D();
6622
6631
  }
6623
- function fe() {
6624
- Ce(n.value ?? void 0, p, Tu);
6632
+ function de() {
6633
+ Se(n.value ?? void 0, p, Tu);
6634
+ }
6635
+ function I() {
6636
+ Se(n.value ?? void 0, p, Eu);
6625
6637
  }
6626
- function F() {
6627
- Ce(n.value ?? void 0, p, Eu);
6638
+ function fe() {
6639
+ Se(i.value ?? void 0, m, Tu);
6628
6640
  }
6629
6641
  function pe() {
6630
- Ce(i.value ?? void 0, m, Tu);
6642
+ Se(i.value ?? void 0, m, Eu);
6631
6643
  }
6632
6644
  function me() {
6633
- Ce(i.value ?? void 0, m, Eu);
6634
- }
6635
- function he() {
6636
6645
  let e = i.value;
6637
6646
  if (!e) return;
6638
- let t = w(1);
6639
- m.value = R(m.value, e.offsetWidth / 2, e.offsetHeight / 2, t / m.value.scale);
6647
+ let t = T(1);
6648
+ m.value = z(m.value, e.offsetWidth / 2, e.offsetHeight / 2, t / m.value.scale);
6640
6649
  }
6641
- function ge() {
6650
+ function he() {
6642
6651
  l.value = !0, u.value = c.value, m.value = {
6643
6652
  x: 0,
6644
6653
  y: 0,
6645
6654
  scale: 1
6646
- }, ye(() => {
6655
+ }, ve(() => {
6647
6656
  requestAnimationFrame(() => {
6648
- oe(), o.value?.focus({ preventScroll: !0 }), H();
6657
+ D(), o.value?.focus({ preventScroll: !0 }), U();
6649
6658
  });
6650
6659
  });
6651
6660
  }
6652
- function _e() {
6661
+ function ge() {
6653
6662
  c.value = !0;
6654
6663
  }
6655
- function ve() {
6664
+ function _e() {
6656
6665
  c.value = !1;
6657
6666
  }
6658
- function Se() {
6667
+ function xe() {
6659
6668
  u.value = !u.value;
6660
6669
  }
6661
- function R(e, t, n, r) {
6662
- let i = w(e.scale * r), a = i / e.scale;
6670
+ function z(e, t, n, r) {
6671
+ let i = T(e.scale * r), a = i / e.scale;
6663
6672
  return {
6664
6673
  x: t - (t - e.x) * a,
6665
6674
  y: n - (n - e.y) * a,
6666
6675
  scale: i
6667
6676
  };
6668
6677
  }
6669
- function Ce(e, t, n) {
6670
- e && (t.value = R(t.value, e.offsetWidth / 2, e.offsetHeight / 2, n));
6678
+ function Se(e, t, n) {
6679
+ e && (t.value = z(t.value, e.offsetWidth / 2, e.offsetHeight / 2, n));
6671
6680
  }
6672
- let we = {
6681
+ let Ce = {
6673
6682
  active: !1,
6674
6683
  startClientX: 0,
6675
6684
  startClientY: 0,
@@ -6677,7 +6686,7 @@ var Kl = ["id"], ql = { class: "td-diagram-frame" }, Jl = ["innerHTML"], Yl = {
6677
6686
  startTransformY: 0,
6678
6687
  moved: !1,
6679
6688
  clientScale: 1
6680
- }, Te = {
6689
+ }, we = {
6681
6690
  active: !1,
6682
6691
  startClientX: 0,
6683
6692
  startClientY: 0,
@@ -6686,23 +6695,23 @@ var Kl = ["id"], ql = { class: "td-diagram-frame" }, Jl = ["innerHTML"], Yl = {
6686
6695
  moved: !1,
6687
6696
  clientScale: 1
6688
6697
  };
6689
- function Ee(e) {
6698
+ function Te(e) {
6690
6699
  function t(t) {
6691
6700
  if (!t.ctrlKey && !t.metaKey) return;
6692
6701
  t.preventDefault();
6693
- let n = ce(t, e), r = Math.exp(-t.deltaY * .01);
6694
- p.value = R(p.value, n.x, n.y, r);
6702
+ let n = se(t, e), r = Math.exp(-t.deltaY * .01);
6703
+ p.value = z(p.value, n.x, n.y, r);
6695
6704
  }
6696
6705
  return e.addEventListener("wheel", t, { passive: !1 }), () => e.removeEventListener("wheel", t);
6697
6706
  }
6698
- function H() {
6707
+ function U() {
6699
6708
  let e = i.value;
6700
6709
  if (!e) return;
6701
6710
  function t(t) {
6702
6711
  if (e) {
6703
6712
  if (t.preventDefault(), t.ctrlKey || t.metaKey) {
6704
- let n = ce(t, e), r = Math.exp(-t.deltaY * .01);
6705
- m.value = R(m.value, n.x, n.y, r);
6713
+ let n = se(t, e), r = Math.exp(-t.deltaY * .01);
6714
+ m.value = z(m.value, n.x, n.y, r);
6706
6715
  } else {
6707
6716
  let n = (e.offsetWidth ? e.getBoundingClientRect().width / e.offsetWidth : 1) || 1;
6708
6717
  m.value = {
@@ -6715,13 +6724,13 @@ var Kl = ["id"], ql = { class: "td-diagram-frame" }, Jl = ["innerHTML"], Yl = {
6715
6724
  }
6716
6725
  e.addEventListener("wheel", t, { passive: !1 }), Re = () => e.removeEventListener("wheel", t);
6717
6726
  }
6718
- function De(e, t, n, r) {
6727
+ function Ee(e, t, n, r) {
6719
6728
  if (e.button !== 0) return;
6720
6729
  t.active = !0, t.moved = !1;
6721
6730
  let i = n.getBoundingClientRect();
6722
6731
  t.clientScale = (n.offsetWidth ? i.width / n.offsetWidth : 1) || 1, t.startClientX = e.clientX, t.startClientY = e.clientY, t.startTransformX = r.value.x, t.startTransformY = r.value.y, n.setPointerCapture(e.pointerId), n.style.cursor = "grabbing";
6723
6732
  }
6724
- function U(e, t, n, r) {
6733
+ function De(e, t, n, r) {
6725
6734
  t.active && (t.active = !1, n.releasePointerCapture(e.pointerId), n.style.cursor = "", !t.moved && r && r());
6726
6735
  }
6727
6736
  function Oe(e, t, n) {
@@ -6735,236 +6744,236 @@ var Kl = ["id"], ql = { class: "td-diagram-frame" }, Jl = ["innerHTML"], Yl = {
6735
6744
  }
6736
6745
  function ke(e) {
6737
6746
  let t = n.value;
6738
- t && De(e, we, t, p);
6747
+ t && Ee(e, Ce, t, p);
6739
6748
  }
6740
6749
  function Ae(e) {
6741
6750
  let t = n.value;
6742
- t && U(e, we, t, ge);
6751
+ t && De(e, Ce, t, he);
6743
6752
  }
6744
6753
  function je(e) {
6745
- Oe(e, we, p);
6754
+ Oe(e, Ce, p);
6746
6755
  }
6747
6756
  function Me(e) {
6748
6757
  let t = i.value;
6749
6758
  if (!t) return;
6750
- let n = ce(e, t);
6751
- m.value = R(m.value, n.x, n.y, Du);
6759
+ let n = se(e, t);
6760
+ m.value = z(m.value, n.x, n.y, Du);
6752
6761
  }
6753
6762
  function Pe(e) {
6754
6763
  let t = i.value;
6755
- t && De(e, Te, t, m);
6764
+ t && Ee(e, we, t, m);
6756
6765
  }
6757
6766
  function J(e) {
6758
6767
  let t = i.value;
6759
- t && U(e, Te, t);
6768
+ t && De(e, we, t);
6760
6769
  }
6761
6770
  function Ie(e) {
6762
- Oe(e, Te, m);
6771
+ Oe(e, we, m);
6763
6772
  }
6764
6773
  q(u, () => {
6765
- ye(() => oe());
6774
+ ve(() => D());
6766
6775
  });
6767
6776
  let Le, Re, ze;
6768
- return xe(() => {
6777
+ return be(() => {
6769
6778
  let e = n.value;
6770
6779
  if (!e) return;
6771
6780
  let t = new ResizeObserver(() => {
6772
6781
  0 < e.offsetWidth && 0 < e.offsetHeight && (ae(), t.disconnect());
6773
6782
  });
6774
- t.observe(e), Le = Ee(e);
6775
- }), be(() => {
6783
+ t.observe(e), Le = Te(e);
6784
+ }), ye(() => {
6776
6785
  Le?.(), Re?.(), clearTimeout(ze);
6777
- }), (n, r) => (z(), j("figure", {
6786
+ }), (n, r) => (B(), M("figure", {
6778
6787
  id: e.diagramId,
6779
6788
  class: "td-diagram"
6780
6789
  }, [
6781
- M("div", ql, [
6782
- Fe(M("div", {
6790
+ N("div", ql, [
6791
+ Fe(N("div", {
6783
6792
  ref: "stage",
6784
6793
  class: "td-diagram-stage",
6785
6794
  onPointerdown: ke,
6786
6795
  onPointermove: je,
6787
6796
  onPointerup: Ae,
6788
6797
  onPointercancel: Ae
6789
- }, [M("div", {
6798
+ }, [N("div", {
6790
6799
  ref: "canvas",
6791
6800
  class: "td-diagram-canvas",
6792
- style: L(ee.value),
6801
+ style: R(S.value),
6793
6802
  innerHTML: e.svg
6794
6803
  }, null, 12, Jl)], 544), [[Ne, !c.value]]),
6795
- Fe(M("pre", Yl, [
6796
- r[3] ||= N(" ", -1),
6797
- (z(!0), j(D, null, V(g.value, (e, t) => (z(), j("div", {
6804
+ Fe(N("pre", Yl, [
6805
+ r[3] ||= P(" ", -1),
6806
+ (B(!0), M(O, null, H(g.value, (e, t) => (B(), M("div", {
6798
6807
  key: t,
6799
6808
  class: "td-diagram-code-row"
6800
6809
  }, [
6801
- r[0] ||= N("\n ", -1),
6802
- M("span", Xl, W(t + 1), 1),
6803
- r[1] ||= N("\n ", -1),
6804
- M("span", Zl, W(e || " "), 1),
6805
- r[2] ||= N("\n ", -1)
6810
+ r[0] ||= P("\n ", -1),
6811
+ N("span", Xl, W(t + 1), 1),
6812
+ r[1] ||= P("\n ", -1),
6813
+ N("span", Zl, W(e || " "), 1),
6814
+ r[2] ||= P("\n ", -1)
6806
6815
  ]))), 128)),
6807
- r[4] ||= N("\n ", -1)
6816
+ r[4] ||= P("\n ", -1)
6808
6817
  ], 512), [[Ne, c.value]]),
6809
- M("div", Ql, [
6810
- M("span", $l, W(e.label), 1),
6811
- M("div", eu, [M("button", {
6812
- type: "button",
6813
- class: I(["td-diagram-segment-button", { "is-active": !c.value }]),
6814
- onClick: ve
6815
- }, " Preview ", 2), M("button", {
6818
+ N("div", Ql, [
6819
+ N("span", $l, W(e.label), 1),
6820
+ N("div", eu, [N("button", {
6816
6821
  type: "button",
6817
- class: I(["td-diagram-segment-button", { "is-active": c.value }]),
6822
+ class: L(["td-diagram-segment-button", { "is-active": !c.value }]),
6818
6823
  onClick: _e
6824
+ }, " Preview ", 2), N("button", {
6825
+ type: "button",
6826
+ class: L(["td-diagram-segment-button", { "is-active": c.value }]),
6827
+ onClick: ge
6819
6828
  }, " Code ", 2)]),
6820
- M("button", {
6829
+ N("button", {
6821
6830
  type: "button",
6822
- class: I(["td-diagram-button", { "is-copied": d.value }]),
6831
+ class: L(["td-diagram-button", { "is-copied": d.value }]),
6823
6832
  "aria-label": "Copy source",
6824
- onClick: ne
6825
- }, [d.value ? (z(), k(G(yt), {
6833
+ onClick: te
6834
+ }, [d.value ? (B(), A(G(yt), {
6826
6835
  key: 0,
6827
6836
  size: 16
6828
- })) : (z(), k(G(Mt), {
6837
+ })) : (B(), A(G(Mt), {
6829
6838
  key: 1,
6830
6839
  size: 16
6831
6840
  }))], 2),
6832
- M("button", {
6841
+ N("button", {
6833
6842
  ref: "expandButton",
6834
6843
  type: "button",
6835
6844
  class: "td-diagram-button",
6836
6845
  "aria-label": "Open full-screen preview",
6837
- onClick: ge
6838
- }, [P(G(Yn), { size: 16 })], 512)
6846
+ onClick: he
6847
+ }, [F(G(Yn), { size: 16 })], 512)
6839
6848
  ]),
6840
- Fe(M("div", tu, [
6841
- M("button", {
6849
+ Fe(N("div", tu, [
6850
+ N("button", {
6842
6851
  type: "button",
6843
6852
  class: "td-diagram-button",
6844
6853
  "aria-label": "Zoom out",
6845
- onClick: F
6846
- }, [P(G(tr), { size: 16 })]),
6847
- M("button", {
6854
+ onClick: I
6855
+ }, [F(G(tr), { size: 16 })]),
6856
+ N("button", {
6848
6857
  type: "button",
6849
6858
  class: "td-diagram-button td-diagram-zoom-level",
6850
6859
  "aria-label": "Reset zoom",
6851
6860
  onClick: ae
6852
6861
  }, W(v.value), 1),
6853
- M("button", {
6862
+ N("button", {
6854
6863
  type: "button",
6855
6864
  class: "td-diagram-button",
6856
6865
  "aria-label": "Zoom in",
6857
- onClick: fe
6858
- }, [P(G(Sr), { size: 16 })])
6866
+ onClick: de
6867
+ }, [F(G(Sr), { size: 16 })])
6859
6868
  ], 512), [[Ne, !c.value]]),
6860
- Fe(M("div", { class: "td-diagram-hint" }, " Click to expand · Drag to pan · " + W(G(t)) + " + scroll to zoom ", 513), [[Ne, !c.value]])
6869
+ Fe(N("div", { class: "td-diagram-hint" }, " Click to expand · Drag to pan · " + W(G(t)) + " + scroll to zoom ", 513), [[Ne, !c.value]])
6861
6870
  ]),
6862
- e.title ? (z(), j("figcaption", nu, W(e.title), 1)) : A("", !0),
6863
- (z(), k(ue, { to: "body" }, [l.value ? (z(), j("div", {
6871
+ e.title ? (B(), M("figcaption", nu, W(e.title), 1)) : j("", !0),
6872
+ (B(), A(le, { to: "body" }, [l.value ? (B(), M("div", {
6864
6873
  key: 0,
6865
6874
  class: "td-diagram-modal-backdrop",
6866
- onClick: le
6867
- }, [M("div", {
6875
+ onClick: ce
6876
+ }, [N("div", {
6868
6877
  ref: "modalDialog",
6869
6878
  class: "td-diagram-modal",
6870
6879
  role: "dialog",
6871
6880
  "aria-label": e.title || `${e.label} diagram`,
6872
6881
  tabindex: "-1",
6873
- onKeydown: de
6874
- }, [M("div", iu, [M("div", au, [M("span", ou, W(e.title || "Diagram"), 1), M("span", su, W(e.label), 1)]), M("div", cu, [
6875
- M("button", {
6882
+ onKeydown: ue
6883
+ }, [N("div", iu, [N("div", au, [N("span", ou, W(e.title || "Diagram"), 1), N("span", su, W(e.label), 1)]), N("div", cu, [
6884
+ N("button", {
6876
6885
  type: "button",
6877
- class: I(["td-diagram-modal-button", { "is-active": u.value }]),
6886
+ class: L(["td-diagram-modal-button", { "is-active": u.value }]),
6878
6887
  "aria-pressed": u.value,
6879
6888
  "aria-label": "Toggle code",
6880
- onClick: Se
6881
- }, [P(G(It), { size: 16 }), r[5] ||= M("span", { class: "td-diagram-button-label" }, "Code", -1)], 10, lu),
6882
- r[8] ||= M("span", { class: "td-diagram-modal-separator" }, null, -1),
6883
- M("button", {
6889
+ onClick: xe
6890
+ }, [F(G(It), { size: 16 }), r[5] ||= N("span", { class: "td-diagram-button-label" }, "Code", -1)], 10, lu),
6891
+ r[8] ||= N("span", { class: "td-diagram-modal-separator" }, null, -1),
6892
+ N("button", {
6884
6893
  type: "button",
6885
6894
  class: "td-diagram-modal-button",
6886
6895
  "aria-label": "Zoom out",
6887
- onClick: me
6888
- }, [P(G(tr), { size: 16 })]),
6889
- M("button", {
6896
+ onClick: pe
6897
+ }, [F(G(tr), { size: 16 })]),
6898
+ N("button", {
6890
6899
  type: "button",
6891
6900
  class: "td-diagram-modal-button td-diagram-modal-zoom-level",
6892
6901
  "aria-label": "Zoom to 100%",
6893
- onClick: he
6902
+ onClick: me
6894
6903
  }, W(y.value), 1),
6895
- M("button", {
6904
+ N("button", {
6896
6905
  type: "button",
6897
6906
  class: "td-diagram-modal-button",
6898
6907
  "aria-label": "Zoom in",
6899
- onClick: pe
6900
- }, [P(G(Sr), { size: 16 })]),
6901
- M("button", {
6908
+ onClick: fe
6909
+ }, [F(G(Sr), { size: 16 })]),
6910
+ N("button", {
6902
6911
  type: "button",
6903
6912
  class: "td-diagram-modal-button",
6904
6913
  "aria-label": "Fit to view",
6905
- onClick: oe
6906
- }, [P(G(er), { size: 16 }), r[6] ||= M("span", { class: "td-diagram-button-label" }, "Fit", -1)]),
6907
- r[9] ||= M("span", { class: "td-diagram-modal-separator" }, null, -1),
6908
- M("button", {
6914
+ onClick: D
6915
+ }, [F(G(er), { size: 16 }), r[6] ||= N("span", { class: "td-diagram-button-label" }, "Fit", -1)]),
6916
+ r[9] ||= N("span", { class: "td-diagram-modal-separator" }, null, -1),
6917
+ N("button", {
6909
6918
  type: "button",
6910
- class: I(["td-diagram-modal-button", { "is-copied": f.value }]),
6919
+ class: L(["td-diagram-modal-button", { "is-copied": f.value }]),
6911
6920
  "aria-label": "Copy source",
6912
- onClick: E
6913
- }, [f.value ? (z(), k(G(yt), {
6921
+ onClick: ne
6922
+ }, [f.value ? (B(), A(G(yt), {
6914
6923
  key: 0,
6915
6924
  size: 16
6916
- })) : (z(), k(G(Mt), {
6925
+ })) : (B(), A(G(Mt), {
6917
6926
  key: 1,
6918
6927
  size: 16
6919
- })), M("span", uu, W(f.value ? "Copied" : "Copy"), 1)], 2),
6920
- M("button", {
6928
+ })), N("span", uu, W(f.value ? "Copied" : "Copy"), 1)], 2),
6929
+ N("button", {
6921
6930
  type: "button",
6922
6931
  class: "td-diagram-modal-button",
6923
6932
  "aria-label": "Download SVG",
6924
6933
  onClick: ie
6925
- }, [P(G(Xt), { size: 16 }), r[7] ||= M("span", { class: "td-diagram-button-label" }, "SVG", -1)]),
6926
- r[10] ||= M("span", { class: "td-diagram-modal-separator" }, null, -1),
6927
- M("button", {
6934
+ }, [F(G(Xt), { size: 16 }), r[7] ||= N("span", { class: "td-diagram-button-label" }, "SVG", -1)]),
6935
+ r[10] ||= N("span", { class: "td-diagram-modal-separator" }, null, -1),
6936
+ N("button", {
6928
6937
  type: "button",
6929
6938
  class: "td-diagram-modal-button",
6930
6939
  "aria-label": "Close preview",
6931
- onClick: T
6932
- }, [P(G(wi), { size: 16 })])
6933
- ])]), M("div", du, [u.value ? (z(), j("div", fu, [M("div", pu, " diagram." + W(b.value) + " · " + W(_.value) + " lines ", 1), M("div", mu, [M("pre", hu, [
6934
- r[14] ||= N(" ", -1),
6935
- (z(!0), j(D, null, V(g.value, (e, t) => (z(), j("div", {
6940
+ onClick: E
6941
+ }, [F(G(wi), { size: 16 })])
6942
+ ])]), N("div", du, [u.value ? (B(), M("div", fu, [N("div", pu, " diagram." + W(b.value) + " · " + W(_.value) + " lines ", 1), N("div", mu, [N("pre", hu, [
6943
+ r[14] ||= P(" ", -1),
6944
+ (B(!0), M(O, null, H(g.value, (e, t) => (B(), M("div", {
6936
6945
  key: t,
6937
6946
  class: "td-diagram-code-row"
6938
6947
  }, [
6939
- r[11] ||= N("\n ", -1),
6940
- M("span", gu, W(t + 1), 1),
6941
- r[12] ||= N("\n ", -1),
6942
- M("span", _u, W(e || " "), 1),
6943
- r[13] ||= N("\n ", -1)
6948
+ r[11] ||= P("\n ", -1),
6949
+ N("span", gu, W(t + 1), 1),
6950
+ r[12] ||= P("\n ", -1),
6951
+ N("span", _u, W(e || " "), 1),
6952
+ r[13] ||= P("\n ", -1)
6944
6953
  ]))), 128)),
6945
- r[15] ||= N("\n ", -1)
6946
- ])])])) : A("", !0), M("div", {
6954
+ r[15] ||= P("\n ", -1)
6955
+ ])])])) : j("", !0), N("div", {
6947
6956
  ref: "modalStage",
6948
6957
  class: "td-diagram-modal-stage",
6949
- style: L(C.value),
6958
+ style: R(w.value),
6950
6959
  onPointerdown: Pe,
6951
6960
  onPointermove: Ie,
6952
6961
  onPointerup: J,
6953
6962
  onPointercancel: J,
6954
6963
  onDblclick: Me
6955
- }, [M("div", {
6964
+ }, [N("div", {
6956
6965
  ref: "modalCanvas",
6957
6966
  class: "td-diagram-modal-canvas",
6958
- style: L(S.value),
6967
+ style: R(C.value),
6959
6968
  innerHTML: e.svg
6960
- }, null, 12, vu), M("div", yu, " Drag or scroll to pan · " + W(G(t)) + " + scroll or pinch to zoom · Double-click to zoom in · Esc to close ", 1)], 36)])], 40, ru)])) : A("", !0)]))
6969
+ }, null, 12, vu), N("div", yu, " Drag or scroll to pan · " + W(G(t)) + " + scroll or pinch to zoom · Double-click to zoom in · Esc to close ", 1)], 36)])], 40, ru)])) : j("", !0)]))
6961
6970
  ], 8, Kl));
6962
6971
  }
6963
6972
  }), [["__scopeId", "data-v-fb95bcf7"]]);
6964
6973
  // src/client/theme-default/composables/lazy-embed/mountDiagram.ts
6965
6974
  function ju(e, t) {
6966
6975
  let n = document.createElement("div");
6967
- n.style.display = "contents", e.replaceWith(n), Ee(me(Au, t), n);
6976
+ n.style.display = "contents", e.replaceWith(n), Te(pe(Au, t), n);
6968
6977
  }
6969
6978
  // src/client/theme-default/composables/lazy-embed/d2.ts
6970
6979
  var Mu = "https://esm.sh/@terrastruct/d2@0.1.32", Nu, Pu = 0;
@@ -6977,7 +6986,7 @@ function Fu(e) {
6977
6986
  e.rel = "modulepreload", e.href = Mu, document.head.appendChild(e);
6978
6987
  }
6979
6988
  };
6980
- xe(() => e.register(t)), R(() => e.unregister(t));
6989
+ be(() => e.register(t)), z(() => e.unregister(t));
6981
6990
  }
6982
6991
  async function Iu() {
6983
6992
  if (Nu) return Nu;
@@ -7025,7 +7034,7 @@ function Vu(e) {
7025
7034
  e.rel = "modulepreload", e.href = Ru, document.head.appendChild(e);
7026
7035
  }
7027
7036
  };
7028
- xe(() => e.register(t)), R(() => e.unregister(t));
7037
+ be(() => e.register(t)), z(() => e.unregister(t));
7029
7038
  }
7030
7039
  async function Hu() {
7031
7040
  if (zu !== void 0) return zu;
@@ -7086,7 +7095,7 @@ function Gu(e) {
7086
7095
  n.src = Ku(t.url, e), t.container.innerHTML = "", t.container.appendChild(n);
7087
7096
  }
7088
7097
  }
7089
- xe(() => {
7098
+ be(() => {
7090
7099
  e.register(r);
7091
7100
  let n = document.documentElement.classList.contains("dark");
7092
7101
  t = new MutationObserver(() => {
@@ -7096,7 +7105,7 @@ function Gu(e) {
7096
7105
  attributes: !0,
7097
7106
  attributeFilter: ["class"]
7098
7107
  });
7099
- }), R(() => {
7108
+ }), z(() => {
7100
7109
  e.unregister(r), t?.disconnect(), n.length = 0;
7101
7110
  });
7102
7111
  }
@@ -7113,7 +7122,7 @@ function qu() {
7113
7122
  for (let i of e) t.has(i) || (t.add(i), n.set(i, a), r.observe(i));
7114
7123
  }
7115
7124
  }
7116
- xe(() => {
7125
+ be(() => {
7117
7126
  r = new IntersectionObserver((e) => {
7118
7127
  for (let t of e) if (t.isIntersecting) {
7119
7128
  r?.unobserve(t.target);
@@ -7126,7 +7135,7 @@ function qu() {
7126
7135
  childList: !0,
7127
7136
  subtree: !0
7128
7137
  }));
7129
- }), R(() => {
7138
+ }), z(() => {
7130
7139
  i?.disconnect(), r?.disconnect();
7131
7140
  });
7132
7141
  let o = {
@@ -7158,342 +7167,345 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7158
7167
  }, fd = ["innerHTML"], pd = {
7159
7168
  key: 3,
7160
7169
  class: "td-page-meta"
7161
- }, md = { key: 0 }, hd = { class: "td-content-body" }, gd = ["href"], _d = /*#__PURE__*/ Z(/* @__PURE__ */ F({
7170
+ }, md = { key: 0 }, hd = { class: "td-content-body" }, gd = ["href"], _d = /*#__PURE__*/ Z(/* @__PURE__ */ I({
7162
7171
  __name: "TdLayout",
7163
7172
  setup(e) {
7164
- let { title: t, page: n } = df(), r = O(() => {
7173
+ let { title: t, page: n } = df(), r = k(() => {
7165
7174
  let e = n.value.icon;
7166
7175
  return e ? Ro(e.name) : void 0;
7167
- }), i = $(), { withBase: o } = i, s = Mi(), c = yf(), l = O(() => c.value.ready), { isOpen: d, isDrawerMounted: f, open: p, close: m } = Ec(), h = B(""), g = B(!1), _ = B(!1), v = ji(), y = B(!1);
7176
+ }), a = $(), { withBase: o } = a, s = Mi(), c = yf(), u = k(() => c.value.ready), { isOpen: d, isDrawerMounted: f, open: p, close: m } = Ec(), h = V(""), g = V(!1), _ = V(!1), v = ji(), y = V(!1);
7168
7177
  q(() => v.path, () => m()), Vl(), Hl(), qu();
7169
- let b = K("sidebarSearch"), x = K("menuSearch"), ee = K("palette"), { previous: C, next: w } = Oc();
7170
- function T() {
7178
+ let b = K("sidebarSearch"), x = K("menuSearch"), S = K("palette"), { previous: w, next: T } = Oc();
7179
+ function E() {
7171
7180
  y.value = !1;
7172
7181
  }
7173
- function te(e) {
7174
- let t = i.repo;
7175
- return `${a(t.url)}/edit/main/${[
7182
+ function ee(e) {
7183
+ let t = a.repo;
7184
+ return `${i(t.url)}/edit/main/${[
7176
7185
  t.root,
7177
- i.rootDir,
7186
+ a.rootDir,
7178
7187
  e
7179
7188
  ].filter(Boolean).join("/")}`;
7180
7189
  }
7181
- function ne() {
7182
- se.value = !1, ye(() => b.value?.focus());
7190
+ function te() {
7191
+ oe.value = !1, ve(() => b.value?.focus());
7183
7192
  }
7184
- function E() {
7193
+ function ne() {
7185
7194
  b.value?.isVisible ? b.value.focus() : (p(), x.value?.focus());
7186
7195
  }
7187
7196
  function ie() {
7188
- ee.value?.open();
7197
+ S.value?.open();
7189
7198
  }
7190
7199
  function ae() {
7191
7200
  y.value = !0;
7192
7201
  }
7193
- xc([X.Control, X.k], E), xc([X.Meta, X.k], E), xc([X.Control, X.FSlash], ie), xc([X.Meta, X.FSlash], ie), xc([X.Control, X.ArrowLeft], () => {
7194
- C.value && s.go(C.value.url);
7195
- }, { ignoreWhenTyping: !0 }), xc([X.Control, X.ArrowRight], () => {
7202
+ xc([X.Control, X.k], ne), xc([X.Meta, X.k], ne), xc([X.Control, X.FSlash], ie), xc([X.Meta, X.FSlash], ie), xc([X.Control, X.ArrowLeft], () => {
7196
7203
  w.value && s.go(w.value.url);
7204
+ }, { ignoreWhenTyping: !0 }), xc([X.Control, X.ArrowRight], () => {
7205
+ T.value && s.go(T.value.url);
7197
7206
  }, { ignoreWhenTyping: !0 }), Pe(() => {
7198
7207
  if (typeof document > "u") return;
7199
- let e = t.value, r = i.title;
7208
+ let e = t.value, r = a.title;
7200
7209
  document.title = e && e !== r ? `${e} - ${r}` : r;
7201
- let a = n.value.frontmatter?.description === void 0 ? i.description ?? "" : String(n.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
7202
- o && o.setAttribute("content", a);
7210
+ let i = n.value.frontmatter?.description === void 0 ? a.description ?? "" : String(n.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
7211
+ o && o.setAttribute("content", i);
7203
7212
  }), Gl();
7204
- let { sidebarWidth: oe, isSidebarCollapsed: se, sidebarWidthStyle: ce, expandedSidebarVisibilityStyle: le, collapsedSidebarVisibilityStyle: D } = re(), ue = B(!1);
7205
- function fe() {
7206
- f.value ? d.value ? m() : p() : N();
7213
+ let { sidebarWidth: D, isSidebarCollapsed: oe, sidebarWidthStyle: se, expandedSidebarVisibilityStyle: ce, collapsedSidebarVisibilityStyle: O } = re(), le = V(!1);
7214
+ function de() {
7215
+ f.value ? d.value ? m() : p() : P();
7207
7216
  }
7208
- function N() {
7209
- se.value = !se.value;
7217
+ function P() {
7218
+ oe.value = !oe.value;
7210
7219
  }
7211
- xc([X.Control, X.Backslash], fe, { capture: !0 }), xc([X.Meta, X.Backslash], fe, { capture: !0 });
7212
- function F() {
7213
- oe.value = Math.min(500, oe.value + 20);
7220
+ xc([X.Control, X.Backslash], de, { capture: !0 }), xc([X.Meta, X.Backslash], de, { capture: !0 });
7221
+ function I() {
7222
+ D.value = Math.min(500, D.value + 20);
7214
7223
  }
7215
- function pe(e) {
7216
- let t = e.clientX, n = oe.value, r = e.currentTarget;
7217
- ue.value = !0, r.setPointerCapture(e.pointerId);
7224
+ function fe(e) {
7225
+ let t = e.clientX, n = D.value, r = e.currentTarget;
7226
+ le.value = !0, r.setPointerCapture(e.pointerId);
7218
7227
  function i(e) {
7219
7228
  let r = Math.min(500, window.innerWidth * .85), i = Math.min(r, Math.max(200, n + e.clientX - t));
7220
- oe.value = i;
7229
+ D.value = i;
7221
7230
  }
7222
7231
  function a() {
7223
- ue.value = !1, document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a);
7232
+ le.value = !1, document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a);
7224
7233
  }
7225
7234
  document.body.style.cursor = "col-resize", r.addEventListener("pointermove", i), r.addEventListener("pointerup", a);
7226
7235
  }
7227
- function me() {
7228
- oe.value = Math.max(200, oe.value - 20);
7236
+ function pe() {
7237
+ D.value = Math.max(200, D.value - 20);
7229
7238
  }
7230
- return (e, a) => (z(), j("div", null, [
7231
- H(e.$slots, "layout-top", {}, void 0, !0),
7232
- a[6] ||= M("a", {
7239
+ return (e, i) => (B(), M("div", null, [
7240
+ U(e.$slots, "layout-top", {}, void 0, !0),
7241
+ i[6] ||= N("a", {
7233
7242
  href: "#td-content",
7234
7243
  class: "td-skip-link"
7235
7244
  }, "Skip to content", -1),
7236
- M("header", Ju, [
7237
- M("div", Yu, [
7238
- P(Dc, {
7245
+ N("header", Ju, [
7246
+ N("div", Yu, [
7247
+ F(Dc, {
7239
7248
  class: "lg:hidden",
7240
7249
  onClick: G(p)
7241
7250
  }, null, 8, ["onClick"]),
7242
- M("a", {
7243
- href: G(o)(G(u)("/")),
7251
+ N("a", {
7252
+ href: G(o)(G(l)("/")),
7244
7253
  class: "td-brand"
7245
- }, [P(Bi), M("span", Zu, W(G(i).title || "Typedown"), 1)], 8, Xu),
7246
- P(bs, { class: "td-header-breadcrumb" })
7254
+ }, [F(Bi), N("span", Zu, W(G(a).title || "Typedown"), 1)], 8, Xu),
7255
+ F(bs, { class: "td-header-breadcrumb" })
7247
7256
  ]),
7248
- P(G(Cs)),
7249
- H(e.$slots, "nav-bar-after", {}, void 0, !0),
7250
- M("div", Qu, [
7251
- P(Po, {
7257
+ F(G(Cs)),
7258
+ U(e.$slots, "nav-bar-after", {}, void 0, !0),
7259
+ N("div", Qu, [
7260
+ F(Po, {
7252
7261
  text: "Commands",
7253
7262
  placement: "bottom",
7254
7263
  shortcut: [G(X).Meta, G(X).FSlash],
7255
7264
  always: ""
7256
7265
  }, {
7257
- default: J(() => [M("button", {
7266
+ default: J(() => [N("button", {
7258
7267
  class: "td-header-commands-btn",
7259
7268
  type: "button",
7260
7269
  "aria-label": "Open command palette",
7261
7270
  onClick: ie
7262
- }, [P(G(ii), { size: 15 })])]),
7271
+ }, [F(G(ii), { size: 15 })])]),
7263
7272
  _: 1
7264
7273
  }, 8, ["shortcut"]),
7265
- P(Bl),
7266
- G(i).repo ? (z(), j("a", {
7274
+ F(Bl),
7275
+ G(a).repo ? (B(), M("a", {
7267
7276
  key: 0,
7268
- href: G(i).repo.url,
7277
+ href: G(a).repo.url,
7269
7278
  target: "_blank",
7270
7279
  rel: "noopener noreferrer",
7271
7280
  class: "td-header-icon-link",
7272
7281
  "aria-label": "GitHub repository"
7273
- }, [...a[5] ||= [M("svg", {
7282
+ }, [...i[5] ||= [N("svg", {
7274
7283
  width: "20",
7275
7284
  height: "20",
7276
7285
  viewBox: "0 0 98 96",
7277
7286
  xmlns: "http://www.w3.org/2000/svg",
7278
7287
  "aria-hidden": "true",
7279
7288
  fill: "currentColor"
7280
- }, [M("path", {
7289
+ }, [N("path", {
7281
7290
  "fill-rule": "evenodd",
7282
7291
  "clip-rule": "evenodd",
7283
7292
  d: "M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59\n 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367\n 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778\n 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125\n 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2\n 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364\n 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"
7284
- })], -1)]], 8, $u)) : A("", !0)
7293
+ })], -1)]], 8, $u)) : j("", !0)
7285
7294
  ])
7286
7295
  ]),
7287
- P(de, { name: "td-drawer-scrim" }, {
7288
- default: J(() => [G(f) ? (z(), j("div", {
7296
+ F(ue, { name: "td-drawer-scrim" }, {
7297
+ default: J(() => [G(f) ? (B(), M("div", {
7289
7298
  key: 0,
7290
- class: I(["td-drawer-scrim", { "is-open": G(d) }]),
7291
- onClick: a[0] ||= (...e) => G(m) && G(m)(...e)
7292
- }, null, 2)) : A("", !0)]),
7299
+ class: L(["td-drawer-scrim", { "is-open": G(d) }]),
7300
+ onClick: i[0] ||= (...e) => G(m) && G(m)(...e)
7301
+ }, null, 2)) : j("", !0)]),
7293
7302
  _: 1
7294
7303
  }),
7295
- P(de, { name: "td-drawer-panel" }, {
7296
- default: J(() => [G(f) ? (z(), j("aside", {
7304
+ F(ue, { name: "td-drawer-panel" }, {
7305
+ default: J(() => [G(f) ? (B(), M("aside", {
7297
7306
  key: 0,
7298
- class: I(["td-drawer", { "is-open": G(d) }])
7307
+ class: L(["td-drawer", { "is-open": G(d) }]),
7308
+ role: "dialog",
7309
+ "aria-modal": "true",
7310
+ "aria-label": "Navigation menu"
7299
7311
  }, [
7300
- M("header", ed, [M("a", {
7301
- href: G(o)(G(u)("/")),
7312
+ N("header", ed, [N("a", {
7313
+ href: G(o)(G(l)("/")),
7302
7314
  class: "td-brand"
7303
- }, [P(Bi), M("span", nd, W(G(i).title || "Typedown"), 1)], 8, td), P(Io, {
7315
+ }, [F(Bi), N("span", nd, W(G(a).title || "Typedown"), 1)], 8, td), F(Io, {
7304
7316
  label: "Close menu",
7305
7317
  onClick: G(m)
7306
7318
  }, {
7307
- default: J(() => [P(G(wi), { size: 20 })]),
7319
+ default: J(() => [F(G(wi), { size: 20 })]),
7308
7320
  _: 1
7309
7321
  }, 8, ["onClick"])]),
7310
- P(G(Ds)),
7311
- P(zl, {
7322
+ F(G(Ds)),
7323
+ F(zl, {
7312
7324
  ref_key: "menuSearch",
7313
7325
  ref: x,
7314
7326
  query: h.value,
7315
- "onUpdate:query": a[1] ||= (e) => h.value = e,
7327
+ "onUpdate:query": i[1] ||= (e) => h.value = e,
7316
7328
  active: _.value,
7317
- "onUpdate:active": a[2] ||= (e) => _.value = e,
7329
+ "onUpdate:active": i[2] ||= (e) => _.value = e,
7318
7330
  onSelect: G(m)
7319
7331
  }, null, 8, [
7320
7332
  "query",
7321
7333
  "active",
7322
7334
  "onSelect"
7323
7335
  ]),
7324
- _.value ? A("", !0) : (z(), j("nav", rd, [l.value ? (z(), k(as, {
7336
+ _.value ? j("", !0) : (B(), M("nav", rd, [u.value ? (B(), A(as, {
7325
7337
  key: 1,
7326
7338
  tree: G(c).contentTree
7327
- }, null, 8, ["tree"])) : (z(), k(al, { key: 0 }))]))
7328
- ], 2)) : A("", !0)]),
7339
+ }, null, 8, ["tree"])) : (B(), A(al, { key: 0 }))]))
7340
+ ], 2)) : j("", !0)]),
7329
7341
  _: 1
7330
7342
  }),
7331
- M("div", id, [M("nav", {
7332
- class: I(["td-sidebar-left", {
7333
- "is-resizing": ue.value,
7334
- "is-collapsed": G(se)
7343
+ N("div", id, [N("nav", {
7344
+ class: L(["td-sidebar-left", {
7345
+ "is-resizing": le.value,
7346
+ "is-collapsed": G(oe)
7335
7347
  }]),
7336
7348
  "data-testid": "sidebar",
7337
7349
  "aria-label": "Site navigation",
7338
- style: L(G(ce))
7350
+ style: R(G(se))
7339
7351
  }, [
7340
- M("div", {
7352
+ N("div", {
7341
7353
  class: "flex-col flex-1 overflow-y-auto",
7342
- style: L(G(le))
7354
+ style: R(G(ce))
7343
7355
  }, [
7344
- H(e.$slots, "sidebar-top", {}, void 0, !0),
7345
- P(zl, {
7356
+ U(e.$slots, "sidebar-top", {}, void 0, !0),
7357
+ F(zl, {
7346
7358
  ref_key: "sidebarSearch",
7347
7359
  ref: b,
7348
7360
  query: h.value,
7349
- "onUpdate:query": a[3] ||= (e) => h.value = e,
7361
+ "onUpdate:query": i[3] ||= (e) => h.value = e,
7350
7362
  active: g.value,
7351
- "onUpdate:active": a[4] ||= (e) => g.value = e,
7363
+ "onUpdate:active": i[4] ||= (e) => g.value = e,
7352
7364
  class: "td-sidebar-search"
7353
7365
  }, null, 8, ["query", "active"]),
7354
- P(ol, {
7366
+ F(ol, {
7355
7367
  tree: G(c).contentTree,
7356
7368
  "search-active": g.value,
7357
- ready: l.value
7369
+ ready: u.value
7358
7370
  }, null, 8, [
7359
7371
  "tree",
7360
7372
  "search-active",
7361
7373
  "ready"
7362
7374
  ]),
7363
- H(e.$slots, "sidebar-bottom", {}, void 0, !0)
7375
+ U(e.$slots, "sidebar-bottom", {}, void 0, !0)
7364
7376
  ], 4),
7365
- M("div", {
7366
- style: L(G(D)),
7377
+ N("div", {
7378
+ style: R(G(O)),
7367
7379
  class: "flex-1"
7368
- }, [P(dl, {
7380
+ }, [F(dl, {
7369
7381
  tree: G(c).contentTree,
7370
- onSearch: ne
7382
+ onSearch: te
7371
7383
  }, null, 8, ["tree"])], 4),
7372
- M("button", {
7384
+ N("button", {
7373
7385
  class: "td-sidebar-collapse-btn",
7374
7386
  type: "button",
7375
- "aria-label": G(se) ? "Expand sidebar" : "Collapse sidebar",
7376
- onClick: N
7387
+ "aria-label": G(oe) ? "Expand sidebar" : "Collapse sidebar",
7388
+ onClick: P
7377
7389
  }, [
7378
- P(G(wt), {
7379
- style: L(G(le)),
7390
+ F(G(wt), {
7391
+ style: R(G(ce)),
7380
7392
  size: 14
7381
7393
  }, null, 8, ["style"]),
7382
- P(G(Tt), {
7383
- style: L(G(D)),
7394
+ F(G(Tt), {
7395
+ style: R(G(O)),
7384
7396
  size: 14
7385
7397
  }, null, 8, ["style"]),
7386
- M("span", {
7387
- style: L(G(le)),
7398
+ N("span", {
7399
+ style: R(G(ce)),
7388
7400
  class: "td-sidebar-collapse-label"
7389
7401
  }, "Collapse sidebar", 4),
7390
- M("div", { style: L(G(le)) }, [P(Q, { keys: [G(X).Meta, G(X).Backslash] }, null, 8, ["keys"])], 4)
7402
+ N("div", { style: R(G(ce)) }, [F(Q, { keys: [G(X).Meta, G(X).Backslash] }, null, 8, ["keys"])], 4)
7391
7403
  ], 8, ad),
7392
- M("div", {
7393
- style: L(G(le)),
7404
+ N("div", {
7405
+ style: R(G(ce)),
7394
7406
  class: "td-resize-handle",
7395
7407
  role: "separator",
7396
7408
  "aria-orientation": "vertical",
7397
7409
  "aria-label": "Resize sidebar",
7398
7410
  tabindex: "0",
7399
- onPointerdown: Le(pe, ["prevent"]),
7400
- onKeydown: [Ie(Le(me, ["prevent"]), ["left"]), Ie(Le(F, ["prevent"]), ["right"])]
7411
+ onPointerdown: Le(fe, ["prevent"]),
7412
+ onKeydown: [Ie(Le(pe, ["prevent"]), ["left"]), Ie(Le(I, ["prevent"]), ["right"])]
7401
7413
  }, null, 44, od)
7402
- ], 6), M("div", sd, [M("main", cd, [M("article", ld, [
7403
- H(e.$slots, "doc-before", {}, void 0, !0),
7404
- G(n).schema ? (z(), j("div", ud, W(G(n).schemaLabel ?? G(n).schema), 1)) : A("", !0),
7405
- r.value ? (z(), j("div", dd, [(z(), k(U(r.value), { size: 32 }))])) : A("", !0),
7406
- G(t) ? (z(), j("h1", {
7414
+ ], 6), N("div", sd, [N("main", cd, [N("article", ld, [
7415
+ U(e.$slots, "doc-before", {}, void 0, !0),
7416
+ G(n).schema ? (B(), M("div", ud, W(G(n).schemaLabel ?? G(n).schema), 1)) : j("", !0),
7417
+ r.value ? (B(), M("div", dd, [(B(), A(De(r.value), { size: 32 }))])) : j("", !0),
7418
+ G(t) ? (B(), M("h1", {
7407
7419
  key: 2,
7408
7420
  class: "td-page-title",
7409
7421
  innerHTML: G(n).titleHtml
7410
- }, null, 8, fd)) : A("", !0),
7411
- G(n).fileMetadata ? (z(), j("div", pd, [M("span", null, W(G(S)(G(n).fileMetadata.mtimeSecs, "Modified")), 1), G(n).fileMetadata.ctimeSecs === G(n).fileMetadata.mtimeSecs ? A("", !0) : (z(), j("span", md, " · " + W(G(S)(G(n).fileMetadata.ctimeSecs, "Created")), 1))])) : A("", !0),
7412
- P(G(_c), {
7422
+ }, null, 8, fd)) : j("", !0),
7423
+ G(n).fileMetadata ? (B(), M("div", pd, [N("span", null, W(G(C)(G(n).fileMetadata.mtimeSecs, "Modified")), 1), G(n).fileMetadata.ctimeSecs === G(n).fileMetadata.mtimeSecs ? j("", !0) : (B(), M("span", md, " · " + W(G(C)(G(n).fileMetadata.ctimeSecs, "Created")), 1))])) : j("", !0),
7424
+ F(G(_c), {
7413
7425
  class: "td-frontmatter-inline",
7414
7426
  schema: G(n).schema,
7415
7427
  frontmatter: G(n).frontmatter
7416
7428
  }, null, 8, ["schema", "frontmatter"]),
7417
- G(n).headings.length > 1 ? (z(), k(Qc, {
7429
+ G(n).headings.length > 1 ? (B(), A(Qc, {
7418
7430
  key: 4,
7419
7431
  class: "td-toc-inline",
7420
7432
  headings: G(n).headings,
7421
7433
  inline: ""
7422
- }, null, 8, ["headings"])) : A("", !0),
7423
- H(e.$slots, "doc-content-before", {}, void 0, !0),
7424
- M("div", hd, [P(G(Fi))]),
7425
- H(e.$slots, "doc-content-after", {}, void 0, !0),
7426
- P(Vc),
7427
- G(i).repo && G(n).filepath ? (z(), j("a", {
7434
+ }, null, 8, ["headings"])) : j("", !0),
7435
+ U(e.$slots, "doc-content-before", {}, void 0, !0),
7436
+ N("div", hd, [F(G(Fi))]),
7437
+ U(e.$slots, "doc-content-after", {}, void 0, !0),
7438
+ F(Vc),
7439
+ G(a).repo && G(n).filepath ? (B(), M("a", {
7428
7440
  key: 5,
7429
- href: te(G(n).filepath),
7441
+ href: ee(G(n).filepath),
7430
7442
  target: "_blank",
7431
7443
  rel: "noopener noreferrer",
7432
7444
  class: "td-page-edit"
7433
- }, "Edit this page", 8, gd)) : A("", !0),
7434
- H(e.$slots, "doc-after", {}, void 0, !0)
7435
- ])]), P(rl, { class: "td-rail" })])]),
7436
- P(cs),
7437
- H(e.$slots, "layout-bottom", {}, void 0, !0),
7438
- P(Tl, {
7445
+ }, "Edit this page", 8, gd)) : j("", !0),
7446
+ U(e.$slots, "doc-after", {}, void 0, !0)
7447
+ ])]), F(rl, { class: "td-rail" })])]),
7448
+ F(cs),
7449
+ U(e.$slots, "layout-bottom", {}, void 0, !0),
7450
+ F(Tl, {
7439
7451
  ref_key: "palette",
7440
- ref: ee,
7441
- onToggleSidebar: N,
7452
+ ref: S,
7453
+ onToggleSidebar: P,
7442
7454
  onShowShortcuts: ae
7443
7455
  }, null, 512),
7444
- P(kl, {
7456
+ F(kl, {
7445
7457
  open: y.value,
7446
- onClose: T
7458
+ onClose: E
7447
7459
  }, null, 8, ["open"])
7448
7460
  ]));
7449
7461
  }
7450
- }), [["__scopeId", "data-v-21aaf8eb"]]), vd = { class: "pt-16 pb-24" }, yd = ["href"], bd = /* @__PURE__ */ F({
7462
+ }), [["__scopeId", "data-v-744a5b45"]]), vd = { class: "pt-16 pb-24" }, yd = ["href"], bd = /* @__PURE__ */ I({
7451
7463
  __name: "TdNotFound",
7452
7464
  setup(e) {
7453
7465
  let { withBase: t } = $();
7454
- return (e, n) => (z(), j("div", vd, [
7455
- n[0] ||= M("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
7456
- n[1] ||= M("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
7457
- n[2] ||= M("p", { class: "text-td-fg-muted mt-2 text-td-base leading-td-relaxed" }, " The page you are looking for does not exist. ", -1),
7458
- M("a", {
7466
+ return (e, n) => (B(), M("div", vd, [
7467
+ n[0] ||= N("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
7468
+ n[1] ||= N("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
7469
+ n[2] ||= N("p", { class: "text-td-fg-muted mt-2 text-td-base leading-td-relaxed" }, " The page you are looking for does not exist. ", -1),
7470
+ N("a", {
7459
7471
  class: "inline-flex items-center mt-6 text-td-accent text-td-sm font-extrabold tracking-td-tight hover:text-td-accent-hi",
7460
- href: G(t)(G(u)("/"))
7472
+ href: G(t)(G(l)("/"))
7461
7473
  }, "Go Home", 8, yd)
7462
7474
  ]));
7463
7475
  }
7464
- }), xd = ["href"], Sd = ["href"], Cd = { class: "td-dir-name" }, wd = { class: "td-dir-count" }, Td = ["href"], Ed = { class: "td-dir-name" }, Dd = /*#__PURE__*/ Z(/* @__PURE__ */ F({
7476
+ }), xd = ["href"], Sd = ["href"], Cd = { class: "td-dir-name" }, wd = { class: "td-dir-count" }, Td = ["href"], Ed = { class: "td-dir-name" }, Dd = /*#__PURE__*/ Z(/* @__PURE__ */ I({
7465
7477
  __name: "TdDirectoryIndex",
7466
7478
  setup(e) {
7467
- let t = ji(), n = yf(), { withBase: r } = $(), a = O(() => {
7468
- let e = i(t.path);
7479
+ let t = ji(), n = yf(), { withBase: i } = $(), a = k(() => {
7480
+ let e = r(t.path);
7469
7481
  return {
7470
7482
  url: e,
7471
7483
  entries: n.value.directoryListings[e]?.entries ?? []
7472
7484
  };
7473
- }), o = O(() => a.value.url === "/"), s = O(() => r(u(i(a.value.url))));
7474
- return (e, t) => (z(), j("div", null, [o.value ? A("", !0) : (z(), j("a", {
7485
+ }), o = k(() => a.value.url === "/"), s = k(() => i(l(r(a.value.url))));
7486
+ return (e, t) => (B(), M("div", null, [o.value ? j("", !0) : (B(), M("a", {
7475
7487
  key: 0,
7476
7488
  href: s.value,
7477
7489
  class: "td-dir-row"
7478
- }, [P(G(Ut), {
7490
+ }, [F(G(Ut), {
7479
7491
  size: 16,
7480
7492
  class: "td-dir-icon"
7481
- }), t[0] ||= M("span", { class: "td-dir-parent" }, "..", -1)], 8, xd)), (z(!0), j(D, null, V(a.value.entries, (e) => (z(), j(D, { key: e.kind === "dir" ? e.sub.url : e.item.url }, [e.kind === "dir" ? (z(), j("a", {
7493
+ }), t[0] ||= N("span", { class: "td-dir-parent" }, "..", -1)], 8, xd)), (B(!0), M(O, null, H(a.value.entries, (e) => (B(), M(O, { key: e.kind === "dir" ? e.sub.url : e.item.url }, [e.kind === "dir" ? (B(), M("a", {
7482
7494
  key: 0,
7483
- href: G(r)(e.sub.url),
7495
+ href: G(i)(e.sub.url),
7484
7496
  class: "td-dir-row"
7485
7497
  }, [
7486
- P(G(dn), {
7498
+ F(G(dn), {
7487
7499
  size: 16,
7488
7500
  class: "td-dir-icon"
7489
7501
  }),
7490
- M("span", Cd, W(e.sub.name), 1),
7491
- M("span", wd, W(e.sub.count), 1)
7492
- ], 8, Sd)) : (z(), j("a", {
7502
+ N("span", Cd, W(e.sub.name), 1),
7503
+ N("span", wd, W(e.sub.count), 1)
7504
+ ], 8, Sd)) : (B(), M("a", {
7493
7505
  key: 1,
7494
- href: G(r)(e.item.url),
7506
+ href: G(i)(e.item.url),
7495
7507
  class: "td-dir-row"
7496
- }, [M("span", Ed, W(e.item.name), 1)], 8, Td))], 64))), 128))]));
7508
+ }, [N("span", Ed, W(e.item.name), 1)], 8, Td))], 64))), 128))]));
7497
7509
  }
7498
7510
  }), [["__scopeId", "data-v-620bb844"]]), Od = ["href"], kd = { class: "td-glossary-row-title" }, Ad = {
7499
7511
  key: 0,
@@ -7507,7 +7519,7 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7507
7519
  }, Nd = {
7508
7520
  key: 3,
7509
7521
  class: "td-glossary-row-tags"
7510
- }, Pd = /*#__PURE__*/ Z(/* @__PURE__ */ F({
7522
+ }, Pd = /*#__PURE__*/ Z(/* @__PURE__ */ I({
7511
7523
  __name: "TdGlossaryRow",
7512
7524
  props: {
7513
7525
  item: {},
@@ -7518,17 +7530,17 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7518
7530
  }
7519
7531
  },
7520
7532
  setup(e) {
7521
- return (t, n) => (z(), j("a", {
7533
+ return (t, n) => (B(), M("a", {
7522
7534
  href: e.href,
7523
7535
  class: "td-glossary-row"
7524
7536
  }, [
7525
- M("span", kd, W(e.item.name), 1),
7526
- e.item.mtimeSecs ? (z(), j("span", Ad, W(G(p)(e.item.mtimeSecs)), 1)) : A("", !0),
7527
- e.item.description ? (z(), j("span", jd, W(e.item.description), 1)) : (z(), j("span", Md, "No description yet")),
7528
- e.showTags && e.item.tags && e.item.tags.length > 0 ? (z(), j("span", Nd, [(z(!0), j(D, null, V(e.item.tags, (e) => (z(), j("span", {
7537
+ N("span", kd, W(e.item.name), 1),
7538
+ e.item.mtimeSecs ? (B(), M("span", Ad, W(G(f)(e.item.mtimeSecs)), 1)) : j("", !0),
7539
+ e.item.description ? (B(), M("span", jd, W(e.item.description), 1)) : (B(), M("span", Md, "No description yet")),
7540
+ e.showTags && e.item.tags && e.item.tags.length > 0 ? (B(), M("span", Nd, [(B(!0), M(O, null, H(e.item.tags, (e) => (B(), M("span", {
7529
7541
  key: e,
7530
7542
  class: "td-glossary-row-tag"
7531
- }, W(e), 1))), 128))])) : A("", !0)
7543
+ }, W(e), 1))), 128))])) : j("", !0)
7532
7544
  ], 8, Od));
7533
7545
  }
7534
7546
  }), [["__scopeId", "data-v-a556276f"]]), Fd = { class: "td-glossary-filter" }, Id = ["placeholder"], Ld = {
@@ -7540,18 +7552,18 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7540
7552
  }, zd = ["href"], Bd = { key: 2 }, Vd = {
7541
7553
  key: 0,
7542
7554
  class: "td-glossary-columns"
7543
- }, Hd = { class: "td-glossary-letter-row" }, Ud = { class: "td-glossary-letter" }, Wd = ["href"], Gd = { key: 1 }, Kd = { class: "td-glossary-letter-row" }, qd = { class: "td-glossary-letter" }, Jd = { class: "td-glossary-letter-count" }, Yd = /*#__PURE__*/ Z(/* @__PURE__ */ F({
7555
+ }, Hd = { class: "td-glossary-letter-row" }, Ud = { class: "td-glossary-letter" }, Wd = ["href"], Gd = { key: 1 }, Kd = { class: "td-glossary-letter-row" }, qd = { class: "td-glossary-letter" }, Jd = { class: "td-glossary-letter-count" }, Yd = /*#__PURE__*/ Z(/* @__PURE__ */ I({
7544
7556
  __name: "TdGlossaryIndex",
7545
7557
  props: { mode: { default: "informative" } },
7546
7558
  setup(e) {
7547
- let t = ji(), n = yf(), { withBase: r } = $(), a = B(""), o = O(() => {
7548
- let e = i(t.path), r = n.value.directoryListings[e];
7549
- return r ? r.entries.filter((e) => e.kind === "file").map((e) => e.item) : [];
7550
- }), s = O(() => o.value.length), c = O(() => {
7559
+ let t = ji(), n = yf(), { withBase: i } = $(), a = V(""), o = k(() => {
7560
+ let e = r(t.path), i = n.value.directoryListings[e];
7561
+ return i ? i.entries.filter((e) => e.kind === "file").map((e) => e.item) : [];
7562
+ }), s = k(() => o.value.length), c = k(() => {
7551
7563
  let e = /* @__PURE__ */ new Map();
7552
7564
  for (let t of o.value) e.set(t.url, t);
7553
7565
  return e;
7554
- }), l = O(() => {
7566
+ }), l = k(() => {
7555
7567
  let e = new ie({
7556
7568
  fields: ["name", "description"],
7557
7569
  storeFields: [
@@ -7572,14 +7584,14 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7572
7584
  ...e,
7573
7585
  id: t
7574
7586
  }))), e;
7575
- }), u = O(() => 0 < a.value.trim().length), d = O(() => {
7587
+ }), u = k(() => 0 < a.value.trim().length), d = k(() => {
7576
7588
  let e = a.value.trim();
7577
7589
  if (e.length === 0) return o.value;
7578
7590
  let t = l.value.search(e);
7579
7591
  if (t.length === 0) return [];
7580
7592
  let n = c.value;
7581
7593
  return t.map((e) => n.get(e.url)).filter((e) => e !== void 0);
7582
- }), f = O(() => u.value ? [] : p(o.value));
7594
+ }), f = k(() => u.value ? [] : p(o.value));
7583
7595
  function p(e) {
7584
7596
  let t = /* @__PURE__ */ new Map();
7585
7597
  for (let n of e) {
@@ -7591,37 +7603,37 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7591
7603
  items: t
7592
7604
  }));
7593
7605
  }
7594
- return (t, n) => (z(), j("div", null, [M("div", Fd, [P(G(Fr), {
7606
+ return (t, n) => (B(), M("div", null, [N("div", Fd, [F(G(Fr), {
7595
7607
  size: 14,
7596
7608
  class: "td-glossary-filter-icon"
7597
- }), Fe(M("input", {
7609
+ }), Fe(N("input", {
7598
7610
  "onUpdate:modelValue": n[0] ||= (e) => a.value = e,
7599
7611
  type: "text",
7600
7612
  class: "td-glossary-filter-input",
7601
7613
  placeholder: `Filter ${s.value} entries`
7602
- }, null, 8, Id), [[Me, a.value]])]), u.value ? (z(), j(D, { key: 0 }, [d.value.length === 0 ? (z(), j("div", Ld, " No entries matching \"" + W(a.value.trim()) + "\" ", 1)) : e.mode === "dense" ? (z(), j("div", Rd, [(z(!0), j(D, null, V(d.value, (e) => (z(), j("a", {
7614
+ }, null, 8, Id), [[Me, a.value]])]), u.value ? (B(), M(O, { key: 0 }, [d.value.length === 0 ? (B(), M("div", Ld, " No entries matching \"" + W(a.value.trim()) + "\" ", 1)) : e.mode === "dense" ? (B(), M("div", Rd, [(B(!0), M(O, null, H(d.value, (e) => (B(), M("a", {
7603
7615
  key: e.url,
7604
- href: G(r)(e.url),
7616
+ href: G(i)(e.url),
7605
7617
  class: "td-glossary-dense-link"
7606
- }, W(e.name), 9, zd))), 128))])) : (z(), j("div", Bd, [(z(!0), j(D, null, V(d.value, (e) => (z(), k(Pd, {
7618
+ }, W(e.name), 9, zd))), 128))])) : (B(), M("div", Bd, [(B(!0), M(O, null, H(d.value, (e) => (B(), A(Pd, {
7607
7619
  key: e.url,
7608
7620
  item: e,
7609
- href: G(r)(e.url)
7610
- }, null, 8, ["item", "href"]))), 128))]))], 64)) : (z(), j(D, { key: 1 }, [e.mode === "dense" ? (z(), j("div", Vd, [(z(!0), j(D, null, V(f.value, (e) => (z(), j("div", {
7621
+ href: G(i)(e.url)
7622
+ }, null, 8, ["item", "href"]))), 128))]))], 64)) : (B(), M(O, { key: 1 }, [e.mode === "dense" ? (B(), M("div", Vd, [(B(!0), M(O, null, H(f.value, (e) => (B(), M("div", {
7611
7623
  key: e.letter,
7612
7624
  class: "td-glossary-dense-group"
7613
- }, [M("div", Hd, [M("span", Ud, W(e.letter), 1), n[1] ||= M("span", { class: "td-glossary-letter-line" }, null, -1)]), (z(!0), j(D, null, V(e.items, (e) => (z(), j("a", {
7625
+ }, [N("div", Hd, [N("span", Ud, W(e.letter), 1), n[1] ||= N("span", { class: "td-glossary-letter-line" }, null, -1)]), (B(!0), M(O, null, H(e.items, (e) => (B(), M("a", {
7614
7626
  key: e.url,
7615
- href: G(r)(e.url),
7627
+ href: G(i)(e.url),
7616
7628
  class: "td-glossary-dense-link"
7617
- }, W(e.name), 9, Wd))), 128))]))), 128))])) : (z(), j("div", Gd, [(z(!0), j(D, null, V(f.value, (e) => (z(), j("div", { key: e.letter }, [M("div", Kd, [
7618
- M("span", qd, W(e.letter), 1),
7619
- n[2] ||= M("span", { class: "td-glossary-letter-line" }, null, -1),
7620
- M("span", Jd, W(e.items.length), 1)
7621
- ]), (z(!0), j(D, null, V(e.items, (e) => (z(), k(Pd, {
7629
+ }, W(e.name), 9, Wd))), 128))]))), 128))])) : (B(), M("div", Gd, [(B(!0), M(O, null, H(f.value, (e) => (B(), M("div", { key: e.letter }, [N("div", Kd, [
7630
+ N("span", qd, W(e.letter), 1),
7631
+ n[2] ||= N("span", { class: "td-glossary-letter-line" }, null, -1),
7632
+ N("span", Jd, W(e.items.length), 1)
7633
+ ]), (B(!0), M(O, null, H(e.items, (e) => (B(), A(Pd, {
7622
7634
  key: e.url,
7623
7635
  item: e,
7624
- href: G(r)(e.url),
7636
+ href: G(i)(e.url),
7625
7637
  "show-tags": ""
7626
7638
  }, null, 8, ["item", "href"]))), 128))]))), 128))]))], 64))]));
7627
7639
  }
@@ -7634,7 +7646,7 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7634
7646
  "aria-pressed",
7635
7647
  "aria-label",
7636
7648
  "onKeydown"
7637
- ], Qd = { class: "td-flashcard-face td-flashcard-face-question" }, $d = { class: "td-flashcard-label" }, ef = { class: "td-flashcard-body" }, tf = { class: "td-flashcard-face td-flashcard-face-key" }, nf = { class: "td-flashcard-label" }, rf = { class: "td-flashcard-body" }, af = /*#__PURE__*/ Z(/* @__PURE__ */ F({
7649
+ ], Qd = { class: "td-flashcard-face td-flashcard-face-question" }, $d = { class: "td-flashcard-label" }, ef = { class: "td-flashcard-body" }, tf = { class: "td-flashcard-face td-flashcard-face-key" }, nf = { class: "td-flashcard-label" }, rf = { class: "td-flashcard-body" }, af = /*#__PURE__*/ Z(/* @__PURE__ */ I({
7638
7650
  inheritAttrs: !1,
7639
7651
  __name: "TdFlashcard",
7640
7652
  props: {
@@ -7651,7 +7663,7 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7651
7663
  keyLabel: { default: "Answer" }
7652
7664
  },
7653
7665
  setup(e, { expose: t }) {
7654
- let n = B(e.revealed);
7666
+ let n = V(e.revealed);
7655
7667
  q(() => e.revealed, () => {
7656
7668
  n.value = e.revealed;
7657
7669
  });
@@ -7672,8 +7684,8 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7672
7684
  flip: r,
7673
7685
  showQuestion: a,
7674
7686
  showKey: i,
7675
- state: Te(n)
7676
- }), (t, i) => (z(), j("div", ve(t.$attrs, {
7687
+ state: we(n)
7688
+ }), (t, i) => (B(), M("div", _e(t.$attrs, {
7677
7689
  id: e.id,
7678
7690
  class: ["td-flashcard", {
7679
7691
  "is-revealed": n.value,
@@ -7685,75 +7697,75 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
7685
7697
  "aria-label": n.value ? e.keyLabel : e.questionLabel,
7686
7698
  onClick: r,
7687
7699
  onKeydown: [Ie(Le(r, ["prevent"]), ["enter"]), Ie(Le(r, ["prevent"]), ["space"])]
7688
- }), [M("div", Qd, [M("p", $d, W(e.questionLabel), 1), M("div", ef, [H(t.$slots, "default")])]), M("div", tf, [M("p", nf, W(e.keyLabel), 1), M("div", rf, [H(t.$slots, "key")])])], 16, Zd));
7700
+ }), [N("div", Qd, [N("p", $d, W(e.questionLabel), 1), N("div", ef, [U(t.$slots, "default")])]), N("div", tf, [N("p", nf, W(e.keyLabel), 1), N("div", rf, [U(t.$slots, "key")])])], 16, Zd));
7689
7701
  }
7690
- }), [["__scopeId", "data-v-c003aae4"]]), of = Symbol("td-grid-context"), sf = /*#__PURE__*/ Z(/* @__PURE__ */ F({
7702
+ }), [["__scopeId", "data-v-c003aae4"]]), of = Symbol("td-grid-context"), sf = /*#__PURE__*/ Z(/* @__PURE__ */ I({
7691
7703
  __name: "TdGrid",
7692
7704
  props: {
7693
7705
  columns: {},
7694
7706
  gap: { default: 1 }
7695
7707
  },
7696
7708
  setup(e) {
7697
- Ce(of, !0);
7698
- let t = O(() => `repeat(${e.columns}, 1fr)`);
7699
- return (n, r) => (z(), j("div", {
7709
+ Se(of, !0);
7710
+ let t = k(() => `repeat(${e.columns}, 1fr)`);
7711
+ return (n, r) => (B(), M("div", {
7700
7712
  class: "td-grid",
7701
- style: L({
7713
+ style: R({
7702
7714
  gridTemplateColumns: t.value,
7703
7715
  gap: `${e.gap}rem`
7704
7716
  })
7705
- }, [H(n.$slots, "default", {}, void 0, !0)], 4));
7717
+ }, [U(n.$slots, "default", {}, void 0, !0)], 4));
7706
7718
  }
7707
- }), [["__scopeId", "data-v-88c6703c"]]), cf = /*#__PURE__*/ Z(/* @__PURE__ */ F({
7719
+ }), [["__scopeId", "data-v-88c6703c"]]), cf = /*#__PURE__*/ Z(/* @__PURE__ */ I({
7708
7720
  __name: "TdGridCell",
7709
7721
  props: {
7710
7722
  colSpan: { default: 1 },
7711
7723
  rowSpan: { default: 1 }
7712
7724
  },
7713
7725
  setup(e) {
7714
- return he(of, !1) || console.warn("[TdGridCell] should be used inside a <TdGrid> component."), (t, n) => (z(), j("div", {
7726
+ return me(of, !1) || console.warn("[TdGridCell] should be used inside a <TdGrid> component."), (t, n) => (B(), M("div", {
7715
7727
  class: "td-grid-cell",
7716
- style: L({
7728
+ style: R({
7717
7729
  ...e.colSpan ? { gridColumn: `span ${e.colSpan}` } : {},
7718
7730
  ...e.rowSpan ? { gridRow: `span ${e.rowSpan}` } : {}
7719
7731
  })
7720
- }, [H(t.$slots, "default", {}, void 0, !0)], 4));
7732
+ }, [U(t.$slots, "default", {}, void 0, !0)], 4));
7721
7733
  }
7722
7734
  }), [["__scopeId", "data-v-035b2ee6"]]), lf = Symbol("td-content");
7723
7735
  function uf(e) {
7724
- let t = E(), n = {
7725
- page: O(() => e.data),
7726
- frontmatter: O(() => e.data.frontmatter),
7727
- title: O(() => e.data.title),
7728
- isDark: O(() => t.isDark.value)
7736
+ let t = ne(), n = {
7737
+ page: k(() => e.data),
7738
+ frontmatter: k(() => e.data.frontmatter),
7739
+ title: k(() => e.data.title),
7740
+ isDark: k(() => t.isDark.value)
7729
7741
  };
7730
- return Ce(lf, n), n;
7742
+ return Se(lf, n), n;
7731
7743
  }
7732
7744
  function df() {
7733
- let e = he(lf);
7745
+ let e = me(lf);
7734
7746
  if (e === void 0) throw Error("useTdContent() called without a parent provideTdContent()");
7735
7747
  return e;
7736
7748
  }
7737
7749
  // src/client/app/index.ts
7738
7750
  var ff = Symbol("typedown-site-config"), pf = Symbol("typedown-site-data"), mf = Symbol("typedown-page-loader"), hf = Symbol("typedown-search-index");
7739
- async function gf(t, r) {
7740
- let { theme: a } = t;
7741
- function o(t) {
7742
- for (let n of e) {
7743
- let e = t + n;
7744
- for (let t of Object.keys(r.value.pages)) if (t.endsWith(e)) return r.value.pages[t];
7751
+ async function gf(e, n) {
7752
+ let { theme: i } = e, a = "/" + (e.rootDir ?? "");
7753
+ function o(e) {
7754
+ for (let t of h) {
7755
+ let r = e + t;
7756
+ for (let e of Object.keys(n.value.pages)) if (e.startsWith(a) && e.slice(a.length) === r) return n.value.pages[e];
7745
7757
  }
7746
7758
  }
7747
7759
  async function s(e) {
7748
- let t = o(e);
7749
- if (t) return t();
7750
- if (v(e)) {
7751
- let t = n(e), i = r.value.directoryListings[t];
7760
+ let r = o(e);
7761
+ if (r) return r();
7762
+ if (y(e)) {
7763
+ let r = t(e), i = n.value.directoryListings[r];
7752
7764
  if (i) return {
7753
7765
  default: {
7754
7766
  name: "DirectoryIndex",
7755
7767
  render() {
7756
- return me(Dd);
7768
+ return pe(Dd);
7757
7769
  }
7758
7770
  },
7759
7771
  pageData: {
@@ -7766,29 +7778,29 @@ async function gf(t, r) {
7766
7778
  };
7767
7779
  }
7768
7780
  }
7769
- typeof document < "u" && t.lang && (document.documentElement.lang = t.lang);
7781
+ typeof document < "u" && e.lang && (document.documentElement.lang = e.lang);
7770
7782
  let c = ki(s, {
7771
- basePath: t.basePath,
7772
- fallbackComponent: a.NotFound
7783
+ basePath: e.basePath,
7784
+ fallbackComponent: i.NotFound
7773
7785
  });
7774
- q(r, (t, n) => {
7775
- if (n.pages === t.pages) return;
7776
- let r = c.route.path, a = e.some((e) => Object.keys(n.pages).some((t) => t.endsWith(r + e))), s = !!o(r);
7777
- !a && s ? c.go(r) : a && !s && c.go(i(r));
7786
+ q(n, (e, t) => {
7787
+ if (t.pages === e.pages) return;
7788
+ let n = c.route.path, i = h.some((e) => Object.keys(t.pages).some((t) => t.endsWith(n + e))), a = !!o(n);
7789
+ !i && a ? c.go(n) : i && !a && c.go(r(n));
7778
7790
  });
7779
- let l = F({
7791
+ let l = I({
7780
7792
  name: "TypedownApp",
7781
7793
  setup() {
7782
- return uf(c.route), () => me(a.Layout);
7794
+ return uf(c.route), () => pe(i.Layout);
7783
7795
  }
7784
- }), u = fe(l);
7785
- u.provide(Di, c), u.provide(ff, t), u.provide(pf, r), u.provide(mf, s);
7786
- let d = ke(r.value.searchIndex);
7787
- return u.provide(hf, d), u.component("TypedownContent", Fi), u.component("DirectoryIndex", Dd), u.component("GlossaryIndex", Yd), u.component("Flashcard", af), u.component("Grid", sf), u.component("GridCell", cf), u.component("LucideIcon", ws), a.enhanceApp && await a.enhanceApp({
7796
+ }), u = de(l);
7797
+ u.provide(Di, c), u.provide(ff, e), u.provide(pf, n), u.provide(mf, s);
7798
+ let d = ke(n.value.searchIndex);
7799
+ return u.provide(hf, d), u.component("TypedownContent", Fi), u.component("DirectoryIndex", Dd), u.component("GlossaryIndex", Yd), u.component("Flashcard", af), u.component("Grid", sf), u.component("GridCell", cf), u.component("LucideIcon", ws), i.enhanceApp && await i.enhanceApp({
7788
7800
  app: u,
7789
7801
  router: c,
7790
- siteConfig: t,
7791
- siteData: r
7802
+ siteConfig: e,
7803
+ siteData: n
7792
7804
  }), typeof window < "u" && await c.go(location.href, {
7793
7805
  replace: !0,
7794
7806
  initialLoad: !0
@@ -7799,15 +7811,15 @@ async function gf(t, r) {
7799
7811
  };
7800
7812
  }
7801
7813
  function _f() {
7802
- return he(hf, ke(void 0));
7814
+ return me(hf, ke(void 0));
7803
7815
  }
7804
7816
  function $() {
7805
- let e = he(ff, {
7817
+ let e = me(ff, {
7806
7818
  title: "",
7807
7819
  description: "",
7808
7820
  basePath: "/",
7809
7821
  theme: Xd
7810
- }), t = a(e.basePath);
7822
+ }), t = i(e.basePath);
7811
7823
  return {
7812
7824
  ...e,
7813
7825
  withBase(e) {
@@ -7817,7 +7829,7 @@ function $() {
7817
7829
  }
7818
7830
  };
7819
7831
  }
7820
- var vf = B({
7832
+ var vf = V({
7821
7833
  ready: !1,
7822
7834
  pages: {},
7823
7835
  contentTree: { entries: [] },
@@ -7825,6 +7837,6 @@ var vf = B({
7825
7837
  directoryListings: {}
7826
7838
  });
7827
7839
  function yf() {
7828
- return he(pf, vf);
7840
+ return me(pf, vf);
7829
7841
  }
7830
7842
  export { Fi as C, Bi as S, Mi as T, Sc as _, Xd as a, Q as b, bd as c, Bl as d, rl as f, xc as g, bc as h, df as i, _d as l, Vc as m, $ as n, Yd as o, Qc as p, yf as r, Dd as s, gf as t, Vl as u, cs as v, ji as w, X as x, as as y };