typerighter 0.44.1 → 0.45.0

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.
Files changed (35) hide show
  1. package/dist/{app-C-CwtIly.js → app-D0bX_TJ8.js} +1 -1
  2. package/dist/builtin-components.json +95 -0
  3. package/dist/{cli-BYbSBUOA.js → cli-_m_a7JaO.js} +5 -5
  4. package/dist/cli.js +1 -1
  5. package/dist/client/theme-default.js +194 -194
  6. package/dist/client.js +1 -1
  7. package/dist/index.js +2 -2
  8. package/dist/{init-C3xKB6xH.js → init-CbYgEsOM.js} +203 -189
  9. package/dist/{jsonld-CrXLLdKW.js → jsonld-CRHOaFMj.js} +15 -15
  10. package/dist/node/build/builtin-contract.d.ts +3 -0
  11. package/dist/node/build/builtin-contract.d.ts.map +1 -0
  12. package/dist/node/cli/init.d.ts.map +1 -1
  13. package/dist/node/lib/codegen/app-entry.d.ts +1 -0
  14. package/dist/node/lib/codegen/app-entry.d.ts.map +1 -1
  15. package/dist/node/lib/components.d.ts +9 -7
  16. package/dist/node/lib/components.d.ts.map +1 -1
  17. package/dist/node/lib/prop-schema.d.ts +17 -0
  18. package/dist/node/lib/prop-schema.d.ts.map +1 -0
  19. package/dist/node/plugin/vite/subplugins/component-contract.d.ts.map +1 -1
  20. package/dist/node/plugin/vite/virtual/app.d.ts +2 -0
  21. package/dist/node/plugin/vite/virtual/app.d.ts.map +1 -1
  22. package/dist/node/plugin/vite/virtual/pages.d.ts +2 -0
  23. package/dist/node/plugin/vite/virtual/pages.d.ts.map +1 -1
  24. package/dist/prerenderWorker.js +2 -2
  25. package/dist/{renderMath-DBw8KV_4.js → renderMath-C59kPnxc.js} +1 -1
  26. package/dist/shared/types/json-schema.d.ts +12 -3
  27. package/dist/shared/types/json-schema.d.ts.map +1 -1
  28. package/dist/shared/utils/format.d.ts +1 -0
  29. package/dist/shared/utils/format.d.ts.map +1 -1
  30. package/dist/{shared-B-wDtFX6.js → shared-C5ERr4vS.js} +64 -54
  31. package/dist/shared.js +1 -1
  32. package/dist/typerighter.css +1 -1
  33. package/dist/{vite-B7uvklyW.js → vite-KkSlWwFu.js} +428 -367
  34. package/dist/vite.js +1 -1
  35. package/package.json +6 -4
@@ -1,6 +1,6 @@
1
- import { $ as e, A as t, C as n, E as r, F as i, I as a, K as o, L as s, N as c, O as l, _ as u, a as d, b as f, c as p, et as m, f as h, k as g, l as _, n as v, p as y, r as b, s as x, v as S, w as C, y as w } from "../shared-B-wDtFX6.js";
1
+ import { A as e, C as t, E as n, F as r, I as i, L as a, N as o, O as s, _ as c, a as l, b as u, c as d, et as f, f as p, k as m, l as h, n as g, p as _, q as v, r as y, s as b, tt as x, v as S, w as C, y as w } from "../shared-C5ERr4vS.js";
2
2
  import { t as T } from "../es-ClqUVRJn.js";
3
- import { A as ee, C as te, D as ne, E, F as re, I as ie, L as D, M as ae, N as oe, O as se, P as ce, S as le, T as ue, _ as de, a as fe, b as pe, c as O, d as me, f as he, g as ge, h as _e, i as ve, j as ye, k as be, m as k, n as xe, o as Se, p as Ce, r as A, s as we, u as Te, v as Ee, w as De, x as Oe, y as ke } from "../app-C-CwtIly.js";
3
+ import { A as ee, C as te, D as ne, E, F as re, I as ie, L as D, M as ae, N as oe, O as se, P as ce, S as le, T as ue, _ as de, a as fe, b as pe, c as O, d as me, f as he, g as ge, h as _e, i as ve, j as ye, k as be, m as k, n as xe, o as Se, p as Ce, r as A, s as we, u as Te, v as Ee, w as De, x as Oe, y as ke } from "../app-D0bX_TJ8.js";
4
4
  import { a as Ae, i as je, n as Me, t as Ne } from "../brand-CG1fQshq.js";
5
5
  import { t as Pe } from "../inlineRe-Cn-J_E76.js";
6
6
  import { Fragment as j, Teleport as Fe, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createTextVNode as L, createVNode as R, defineComponent as z, getCurrentScope as Ie, markRaw as Le, mergeModels as Re, mergeProps as ze, nextTick as Be, normalizeClass as B, normalizeStyle as Ve, onBeforeUnmount as He, onMounted as Ue, onScopeDispose as We, onUnmounted as Ge, openBlock as V, readonly as Ke, ref as H, renderList as U, renderSlot as W, resolveComponent as qe, resolveDynamicComponent as G, shallowReadonly as Je, shallowRef as Ye, toDisplayString as K, toValue as Xe, unref as q, useModel as Ze, useTemplateRef as Qe, vModelText as $e, watch as J, watchEffect as et, withCtx as tt, withDirectives as nt, withKeys as rt, withModifiers as it } from "vue";
@@ -1030,15 +1030,15 @@ function dr(e) {
1030
1030
  let i = !0;
1031
1031
  n(() => {
1032
1032
  i = !1;
1033
- }), import("../renderMath-DBw8KV_4.js").then(({ renderInlineMarkup: e }) => {
1033
+ }), import("../renderMath-C59kPnxc.js").then(({ renderInlineMarkup: e }) => {
1034
1034
  i && (t.value = e(r));
1035
1035
  });
1036
1036
  }), t;
1037
1037
  }
1038
1038
  function fr(e) {
1039
1039
  let t = 0, n = "";
1040
- for (let r of e.matchAll(Pe)) n += p(e.slice(t, r.index)), r[1] === void 0 ? n += p(r[0]) : n += `<code>${p(r[1])}</code>`, t = r.index + r[0].length;
1041
- return n += p(e.slice(t)), n;
1040
+ for (let r of e.matchAll(Pe)) n += d(e.slice(t, r.index)), r[1] === void 0 ? n += d(r[0]) : n += `<code>${d(r[1])}</code>`, t = r.index + r[0].length;
1041
+ return n += d(e.slice(t)), n;
1042
1042
  }
1043
1043
  //#endregion
1044
1044
  //#region src/client/theme-default/components/TdTree/TdTreeNodeLabel.vue?vue&type=script&setup=true&lang.ts
@@ -1059,25 +1059,25 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
1059
1059
  urlPrefix: { default: "" }
1060
1060
  },
1061
1061
  setup(e) {
1062
- let t = O(), { withBase: i } = A(), a = M(() => n(e.urlPrefix, e.node.name)), s = M(() => u(e.node)), c = M(() => s.value ? r(s.value.filepath) : C(a.value)), l = M(() => i(c.value)), p = M(() => s.value?.label ?? o(e.node.name)), m = M(() => s.value?.icon ? me(s.value.icon.name) : void 0), h = M(() => e.node.entries.filter((e) => e.kind === "dir" || !f(e.item.filepath))), _ = M(() => 0 < e.node.entries.length), v = M(() => y(e.node));
1062
+ let r = O(), { withBase: i } = A(), a = M(() => t(e.urlPrefix, e.node.name)), o = M(() => c(e.node)), s = M(() => o.value ? n(o.value.filepath) : C(a.value)), d = M(() => i(s.value)), f = M(() => o.value?.label ?? v(e.node.name)), p = M(() => o.value?.icon ? me(o.value.icon.name) : void 0), h = M(() => e.node.entries.filter((e) => e.kind === "dir" || !u(e.item.filepath))), g = M(() => 0 < e.node.entries.length), _ = M(() => y(e.node));
1063
1063
  function y(e) {
1064
1064
  let t = 0;
1065
1065
  for (let n of e.entries) n.kind === "file" ? t++ : t += y(n.node);
1066
1066
  return t;
1067
1067
  }
1068
- let b = H(!g(a.value, t.path)), x = H(!1), S = M(() => h.value.filter((e) => e.kind === "file").length), T = M(() => x.value ? 0 : Math.max(0, S.value - Sr)), te = M(() => {
1068
+ let b = H(!m(a.value, r.path)), x = H(!1), S = M(() => h.value.filter((e) => e.kind === "file").length), T = M(() => x.value ? 0 : Math.max(0, S.value - Sr)), te = M(() => {
1069
1069
  if (x.value) return h.value;
1070
1070
  let e = 0;
1071
1071
  return h.value.filter((t) => t.kind === "dir" || ++e <= Sr);
1072
1072
  });
1073
- J(() => t.path, (e) => {
1074
- g(a.value, e) && (b.value = !1);
1073
+ J(() => r.path, (e) => {
1074
+ m(a.value, e) && (b.value = !1);
1075
1075
  });
1076
1076
  function ne() {
1077
1077
  x.value = !0;
1078
1078
  }
1079
1079
  function E(e) {
1080
- return t.path === e;
1080
+ return r.path === e;
1081
1081
  }
1082
1082
  function re(e) {
1083
1083
  e.key === "ArrowRight" && b.value ? (b.value = !1, e.preventDefault()) : e.key === "ArrowLeft" && !b.value && (b.value = !0, e.preventDefault());
@@ -1086,8 +1086,8 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
1086
1086
  b.value = !b.value;
1087
1087
  }
1088
1088
  return (e, t) => {
1089
- let n = qe("TdTreeNode", !0);
1090
- return _.value ? (V(), F("div", {
1089
+ let r = qe("TdTreeNode", !0);
1090
+ return g.value ? (V(), F("div", {
1091
1091
  key: 0,
1092
1092
  class: "td-tree-node",
1093
1093
  role: "treeitem",
@@ -1103,19 +1103,19 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
1103
1103
  size: 14,
1104
1104
  class: B(["td-tree-caret", { "is-collapsed": b.value }])
1105
1105
  }, null, 8, ["class"]),
1106
- I("span", gr, K(p.value), 1),
1106
+ I("span", gr, K(f.value), 1),
1107
1107
  R(ur, {
1108
1108
  text: "Open index page",
1109
1109
  always: ""
1110
1110
  }, {
1111
1111
  default: tt(() => [I("a", {
1112
- href: l.value,
1113
- class: B(["td-tree-index-btn", { "is-active": E(c.value) }]),
1112
+ href: d.value,
1113
+ class: B(["td-tree-index-btn", { "is-active": E(s.value) }]),
1114
1114
  onClick: t[0] ||= it(() => {}, ["stop"])
1115
- }, [m.value ? (V(), N(G(m.value), {
1115
+ }, [p.value ? (V(), N(G(p.value), {
1116
1116
  key: 0,
1117
1117
  size: 12
1118
- })) : E(c.value) ? (V(), N(q(lt), {
1118
+ })) : E(s.value) ? (V(), N(q(lt), {
1119
1119
  key: 1,
1120
1120
  size: 12
1121
1121
  })) : (V(), N(q(De), {
@@ -1124,27 +1124,27 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
1124
1124
  }))], 10, _r)]),
1125
1125
  _: 1
1126
1126
  }),
1127
- I("span", vr, K(v.value), 1)
1127
+ I("span", vr, K(_.value), 1)
1128
1128
  ], 32), I("div", {
1129
1129
  class: B(["td-collapse td-tree-children", { "is-collapsed": b.value }]),
1130
1130
  role: "group"
1131
1131
  }, [I("div", null, [
1132
- s.value ? (V(), F("a", {
1132
+ o.value ? (V(), F("a", {
1133
1133
  key: 0,
1134
- href: l.value,
1135
- class: B(["td-tree-link td-tree-index-entry", { "is-active": E(c.value) }])
1134
+ href: d.value,
1135
+ class: B(["td-tree-link td-tree-index-entry", { "is-active": E(s.value) }])
1136
1136
  }, [R(q(ye), {
1137
1137
  size: 14,
1138
1138
  class: "td-tree-file-icon"
1139
1139
  }), t[1] ||= I("span", { class: "td-tree-link-text" }, "Overview", -1)], 10, yr)) : P("", !0),
1140
- (V(!0), F(j, null, U(te.value, (e) => (V(), F(j, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (V(), N(n, {
1140
+ (V(!0), F(j, null, U(te.value, (e) => (V(), F(j, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (V(), N(r, {
1141
1141
  key: 0,
1142
1142
  node: e.node,
1143
1143
  "url-prefix": a.value
1144
1144
  }, null, 8, ["node", "url-prefix"])) : (V(), F("a", {
1145
1145
  key: 1,
1146
- href: q(i)(q(r)(e.item.filepath)),
1147
- class: B(["td-tree-link", { "is-active": E(q(r)(e.item.filepath)) }])
1146
+ href: q(i)(q(n)(e.item.filepath)),
1147
+ class: B(["td-tree-link", { "is-active": E(q(n)(e.item.filepath)) }])
1148
1148
  }, [
1149
1149
  e.item.icon && q(me)(e.item.icon.name) ? (V(), N(G(q(me)(e.item.icon.name)), {
1150
1150
  key: 0,
@@ -1162,7 +1162,7 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
1162
1162
  default: tt(() => [R(mr, { text: q(w)(e.item.filepath, e.item.label) }, null, 8, ["text"])]),
1163
1163
  _: 2
1164
1164
  }, 1032, ["text"]),
1165
- e.item.fileMetadata ? (V(), F("span", xr, K(q(d)(e.item.fileMetadata.mtime)), 1)) : P("", !0)
1165
+ e.item.fileMetadata ? (V(), F("span", xr, K(q(l)(e.item.fileMetadata.mtime)), 1)) : P("", !0)
1166
1166
  ], 10, br))], 64))), 128)),
1167
1167
  T.value > 0 && !x.value ? (V(), F("button", {
1168
1168
  key: 1,
@@ -1186,13 +1186,13 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
1186
1186
  __name: "TdContentNav",
1187
1187
  props: { tree: {} },
1188
1188
  setup(e) {
1189
- let t = O(), { withBase: n } = A(), i = M(() => e.tree.entries.find((e) => e.kind === "file" && f(e.item.filepath))?.item), a = M(() => e.tree.entries.filter((e) => e.kind === "dir" || !f(e.item.filepath)));
1189
+ let t = O(), { withBase: r } = A(), i = M(() => e.tree.entries.find((e) => e.kind === "file" && u(e.item.filepath))?.item), a = M(() => e.tree.entries.filter((e) => e.kind === "dir" || !u(e.item.filepath)));
1190
1190
  function o(e) {
1191
1191
  return t.path === e;
1192
1192
  }
1193
1193
  return (e, t) => (V(), F("nav", wr, [I("div", Tr, [I("a", {
1194
- href: q(n)(i.value ? q(r)(i.value.filepath) : q(C)("/")),
1195
- class: B(["td-root-link", { "is-active": o(i.value ? q(r)(i.value.filepath) : q(C)("/")) }]),
1194
+ href: q(r)(i.value ? q(n)(i.value.filepath) : q(C)("/")),
1195
+ class: B(["td-root-link", { "is-active": o(i.value ? q(n)(i.value.filepath) : q(C)("/")) }]),
1196
1196
  role: "treeitem"
1197
1197
  }, [
1198
1198
  R(q(te), {
@@ -1200,14 +1200,14 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
1200
1200
  class: "td-root-link-icon"
1201
1201
  }),
1202
1202
  t[0] ||= I("span", { class: "td-root-link-text" }, "Overview", -1),
1203
- i.value ? (V(), F("span", Dr, K(i.value.fileMetadata ? q(d)(i.value.fileMetadata.mtime) : ""), 1)) : P("", !0)
1203
+ i.value ? (V(), F("span", Dr, K(i.value.fileMetadata ? q(l)(i.value.fileMetadata.mtime) : ""), 1)) : P("", !0)
1204
1204
  ], 10, Er), (V(!0), F(j, null, U(a.value, (e) => (V(), F(j, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (V(), N(Cr, {
1205
1205
  key: 0,
1206
1206
  node: e.node
1207
1207
  }, null, 8, ["node"])) : (V(), F("a", {
1208
1208
  key: 1,
1209
- href: q(n)(q(r)(e.item.filepath)),
1210
- class: B(["td-root-link", { "is-active": o(q(r)(e.item.filepath)) }]),
1209
+ href: q(r)(q(n)(e.item.filepath)),
1210
+ class: B(["td-root-link", { "is-active": o(q(n)(e.item.filepath)) }]),
1211
1211
  role: "treeitem"
1212
1212
  }, [
1213
1213
  e.item.icon && q(me)(e.item.icon.name) ? (V(), N(G(q(me)(e.item.icon.name)), {
@@ -1220,7 +1220,7 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
1220
1220
  class: "td-root-link-icon"
1221
1221
  })),
1222
1222
  I("span", kr, K(q(w)(e.item.filepath, e.item.label)), 1),
1223
- e.item.fileMetadata ? (V(), F("span", Ar, K(q(d)(e.item.fileMetadata.mtime)), 1)) : P("", !0)
1223
+ e.item.fileMetadata ? (V(), F("span", Ar, K(q(l)(e.item.fileMetadata.mtime)), 1)) : P("", !0)
1224
1224
  ], 10, Or))], 64))), 128))])]));
1225
1225
  }
1226
1226
  }), [["__scopeId", "data-v-d02f24f2"]]), Mr = { class: "td-footer" }, Nr = { key: 0 }, Pr = /*#__PURE__*/ k(/* @__PURE__ */ z({
@@ -1284,35 +1284,35 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
1284
1284
  }, Gr = 3, Kr = /*#__PURE__*/ k(/* @__PURE__ */ z({
1285
1285
  __name: "TdBreadcrumb",
1286
1286
  setup(e) {
1287
- let t = O(), { withBase: n } = A(), r = H(!1), a = M(() => {
1288
- let e = i(t.path), r = [{
1287
+ let t = O(), { withBase: n } = A(), i = H(!1), a = M(() => {
1288
+ let e = r(t.path), i = [{
1289
1289
  name: "Home",
1290
1290
  href: n(C("/"))
1291
1291
  }];
1292
- if (e === "/") return r;
1293
- let a = e.replace(/^\//, "").split("/"), s = l(e) ? a.slice(0, -1) : a;
1294
- for (let e = 0; e < s.length; e++) {
1295
- let t = "/" + s.slice(0, e + 1).join("/"), i = e === s.length - 1;
1296
- r.push({
1297
- name: o(s[e]),
1298
- href: n(i ? t : C(t))
1292
+ if (e === "/") return i;
1293
+ let a = e.replace(/^\//, "").split("/"), o = s(e) ? a.slice(0, -1) : a;
1294
+ for (let e = 0; e < o.length; e++) {
1295
+ let t = "/" + o.slice(0, e + 1).join("/"), r = e === o.length - 1;
1296
+ i.push({
1297
+ name: v(o[e]),
1298
+ href: n(r ? t : C(t))
1299
1299
  });
1300
1300
  }
1301
- return r;
1302
- }), s = M(() => Gr < a.value.length), c = M(() => a.value.slice(1, -2));
1301
+ return i;
1302
+ }), o = M(() => Gr < a.value.length), c = M(() => a.value.slice(1, -2));
1303
1303
  return J(() => t.path, () => {
1304
- r.value = !1;
1304
+ i.value = !1;
1305
1305
  }), (e, t) => (V(), F("nav", Lr, [I("a", {
1306
1306
  href: a.value[0].href,
1307
1307
  class: "td-breadcrumb-link td-breadcrumb-home"
1308
- }, K(a.value[0].name), 9, Rr), s.value ? (V(), F(j, { key: 0 }, [
1308
+ }, K(a.value[0].name), 9, Rr), o.value ? (V(), F(j, { key: 0 }, [
1309
1309
  t[2] ||= I("span", {
1310
1310
  class: "td-breadcrumb-sep",
1311
1311
  "aria-hidden": "true"
1312
1312
  }, "/", -1),
1313
1313
  R(Ir, {
1314
- open: r.value,
1315
- "onUpdate:open": t[0] ||= (e) => r.value = e
1314
+ open: i.value,
1315
+ "onUpdate:open": t[0] ||= (e) => i.value = e
1316
1316
  }, {
1317
1317
  trigger: tt(() => [I("button", zr, [R(q(ne), { size: 14 })])]),
1318
1318
  default: tt(() => [(V(!0), F(j, null, U(c.value, (e) => (V(), F("a", {
@@ -1348,18 +1348,18 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
1348
1348
  "rel"
1349
1349
  ], Yr = /*#__PURE__*/ k(/* @__PURE__ */ z({
1350
1350
  __name: "TdHeaderNavBar",
1351
- setup(e) {
1351
+ setup(t) {
1352
1352
  let n = A(), { withBase: r } = n, i = O();
1353
- function a(e) {
1354
- return !t(e) && i.path.startsWith(r(e));
1353
+ function a(t) {
1354
+ return !e(t) && i.path.startsWith(r(t));
1355
1355
  }
1356
- return (e, i) => q(n).nav?.length ? (V(), F("nav", qr, [(V(!0), F(j, null, U(q(n).nav, (e) => (V(), F("a", {
1357
- key: e.link,
1358
- href: q(t)(e.link) ? e.link : q(r)(e.link),
1359
- target: q(t)(e.link) ? "_blank" : void 0,
1360
- rel: q(t)(e.link) ? "noopener noreferrer" : void 0,
1361
- class: B(["td-header-nav-link", { "is-active": a(e.link) }])
1362
- }, [L(K(e.title), 1), q(t)(e.link) ? (V(), N(q(oe), {
1356
+ return (t, i) => q(n).nav?.length ? (V(), F("nav", qr, [(V(!0), F(j, null, U(q(n).nav, (t) => (V(), F("a", {
1357
+ key: t.link,
1358
+ href: q(e)(t.link) ? t.link : q(r)(t.link),
1359
+ target: q(e)(t.link) ? "_blank" : void 0,
1360
+ rel: q(e)(t.link) ? "noopener noreferrer" : void 0,
1361
+ class: B(["td-header-nav-link", { "is-active": a(t.link) }])
1362
+ }, [L(K(t.title), 1), q(e)(t.link) ? (V(), N(q(oe), {
1363
1363
  key: 0,
1364
1364
  size: 14
1365
1365
  })) : P("", !0)], 10, Jr))), 128))])) : P("", !0);
@@ -1373,25 +1373,25 @@ var pr = ["innerHTML"], mr = /* @__PURE__ */ z({
1373
1373
  "rel"
1374
1374
  ], Qr = /*#__PURE__*/ k(/* @__PURE__ */ z({
1375
1375
  __name: "TdHeaderNavMenu",
1376
- setup(e) {
1376
+ setup(t) {
1377
1377
  let n = A(), { withBase: r } = n, i = O();
1378
- function a(e) {
1379
- return !t(e) && i.path.startsWith(r(e));
1378
+ function a(t) {
1379
+ return !e(t) && i.path.startsWith(r(t));
1380
1380
  }
1381
- return (e, i) => q(n).nav?.length ? (V(), F("nav", Xr, [(V(!0), F(j, null, U(q(n).nav, (e) => (V(), F("a", {
1382
- key: e.link,
1383
- href: q(t)(e.link) ? e.link : q(r)(e.link),
1384
- target: q(t)(e.link) ? "_blank" : void 0,
1385
- rel: q(t)(e.link) ? "noopener noreferrer" : void 0,
1386
- class: B(["td-menu-nav-item", { "is-active": a(e.link) }])
1381
+ return (t, i) => q(n).nav?.length ? (V(), F("nav", Xr, [(V(!0), F(j, null, U(q(n).nav, (t) => (V(), F("a", {
1382
+ key: t.link,
1383
+ href: q(e)(t.link) ? t.link : q(r)(t.link),
1384
+ target: q(e)(t.link) ? "_blank" : void 0,
1385
+ rel: q(e)(t.link) ? "noopener noreferrer" : void 0,
1386
+ class: B(["td-menu-nav-item", { "is-active": a(t.link) }])
1387
1387
  }, [
1388
- e.icon ? (V(), N(Te, {
1388
+ t.icon ? (V(), N(Te, {
1389
1389
  key: 0,
1390
- name: e.icon,
1390
+ name: t.icon,
1391
1391
  size: 16
1392
1392
  }, null, 8, ["name"])) : P("", !0),
1393
- I("span", null, K(e.title), 1),
1394
- q(t)(e.link) ? (V(), N(q(oe), {
1393
+ I("span", null, K(t.title), 1),
1394
+ q(e)(t.link) ? (V(), N(q(oe), {
1395
1395
  key: 1,
1396
1396
  size: 14
1397
1397
  })) : P("", !0)
@@ -1429,29 +1429,29 @@ function ni(e) {
1429
1429
  let t = e.trim();
1430
1430
  return !t || !ri({ url: t }) ? void 0 : {
1431
1431
  url: t,
1432
- name: a(t),
1432
+ name: i(t),
1433
1433
  isImage: !0
1434
1434
  };
1435
1435
  }
1436
1436
  if (typeof e != "object") return;
1437
1437
  let t = e, n = t.$ref ?? t;
1438
1438
  if (typeof n.url != "string") return;
1439
- let r = n.url, i = n.name ?? a(r), o = n.format ?? t.format;
1439
+ let r = n.url, a = n.name ?? i(r), o = n.format ?? t.format;
1440
1440
  return {
1441
1441
  url: r,
1442
- name: i,
1442
+ name: a,
1443
1443
  format: o,
1444
1444
  icon: n.icon,
1445
1445
  isImage: ri({
1446
1446
  url: r,
1447
- name: i,
1447
+ name: a,
1448
1448
  format: o
1449
1449
  })
1450
1450
  };
1451
1451
  }
1452
1452
  function ri(e) {
1453
1453
  if (e.format && ti.has(e.format.toLowerCase())) return !0;
1454
- let t = s(e.name || e.url).slice(1);
1454
+ let t = a(e.name || e.url).slice(1);
1455
1455
  return t ? ti.has(t.toLowerCase()) : !1;
1456
1456
  }
1457
1457
  //#endregion
@@ -1468,9 +1468,9 @@ var ii = {
1468
1468
  default: !1
1469
1469
  }
1470
1470
  },
1471
- setup(e) {
1472
- let { withBase: n } = A(), r = M(() => ni(e.value)), i = M(() => r.value?.icon ? me(r.value.icon.name) : void 0), a = M(() => r.value !== void 0 && t(r.value.url));
1473
- return (t, o) => r.value ? (V(), F("span", ii, [r.value.isImage ? (V(), F("a", {
1471
+ setup(t) {
1472
+ let { withBase: n } = A(), r = M(() => ni(t.value)), i = M(() => r.value?.icon ? me(r.value.icon.name) : void 0), a = M(() => r.value !== void 0 && e(r.value.url));
1473
+ return (e, o) => r.value ? (V(), F("span", ii, [r.value.isImage ? (V(), F("a", {
1474
1474
  key: 0,
1475
1475
  href: q(n)(r.value.url),
1476
1476
  target: "_blank",
@@ -1501,11 +1501,11 @@ var ii = {
1501
1501
  key: 3,
1502
1502
  href: q(n)(r.value.url),
1503
1503
  class: "td-widget-ref"
1504
- }, [i.value && !e.hideIcon ? (V(), N(G(i.value), {
1504
+ }, [i.value && !t.hideIcon ? (V(), N(G(i.value), {
1505
1505
  key: 0,
1506
1506
  size: 14,
1507
1507
  class: "td-widget-ref-icon"
1508
- })) : P("", !0), L(K(r.value.name), 1)], 8, ui))])) : (V(), F("span", di, K(e.value), 1));
1508
+ })) : P("", !0), L(K(r.value.name), 1)], 8, ui))])) : (V(), F("span", di, K(t.value), 1));
1509
1509
  }
1510
1510
  }), [["__scopeId", "data-v-e593af69"]]), pi = { key: 0 }, mi = { class: "td-widget-list td-widget-list-icons" }, hi = { key: 1 }, gi = { class: "td-widget-list" }, _i = 5, vi = /*#__PURE__*/ k(/* @__PURE__ */ z({
1511
1511
  __name: "TdWidgetList",
@@ -1627,7 +1627,7 @@ var Si = 5, Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
1627
1627
  setup(e) {
1628
1628
  let { withBase: t } = A(), n = M(() => typeof e.value == "string" ? e.value.trim() : ""), r = M(() => ni(e.value)), i = M(() => r.value ? r.value.isImage : 0 < n.value.length && ri({ url: n.value })), a = M(() => r.value ? r.value.url : n.value), o = M(() => t(a.value)), s = M(() => !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"));
1629
1629
  function c(t) {
1630
- return t == null ? "" : e.definition.widget === "date" ? v(String(t)) : String(t);
1630
+ return t == null ? "" : e.definition.widget === "date" ? g(String(t)) : String(t);
1631
1631
  }
1632
1632
  return (t, a) => i.value ? (V(), F("a", {
1633
1633
  key: 0,
@@ -1701,7 +1701,7 @@ var Si = 5, Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
1701
1701
  let t = n.value, r = [], i = /* @__PURE__ */ new Set();
1702
1702
  t && Object.keys(t).forEach((e) => i.add(e)), Object.keys(e.frontmatter).forEach((e) => i.add(e));
1703
1703
  for (let n of i) {
1704
- if (h(n)) continue;
1704
+ if (p(n)) continue;
1705
1705
  let i = e.frontmatter[n];
1706
1706
  if (i == null || Array.isArray(i) && i.length === 0) continue;
1707
1707
  let a = t?.[n] ?? { widget: "text" };
@@ -1719,43 +1719,43 @@ var Si = 5, Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
1719
1719
  function a(e) {
1720
1720
  return i[e] ?? ht;
1721
1721
  }
1722
- let s = H(!1), c = H(!1);
1722
+ let o = H(!1), s = H(!1);
1723
+ function c() {
1724
+ o.value = !o.value;
1725
+ }
1723
1726
  function l() {
1724
1727
  s.value = !s.value;
1725
1728
  }
1726
- function u() {
1727
- c.value = !c.value;
1728
- }
1729
1729
  return (t, n) => e.mode === "rail" && r.value.length > 0 ? (V(), F("div", Mi, [I("button", {
1730
1730
  type: "button",
1731
1731
  class: "td-fm-rail-header",
1732
- onClick: u
1732
+ onClick: l
1733
1733
  }, [n[0] ||= I("span", { class: "td-fm-rail-label" }, "Properties", -1), R(q(ee), {
1734
1734
  size: 14,
1735
- class: B(["td-fm-rail-caret", { "is-collapsed": c.value }])
1736
- }, null, 8, ["class"])]), I("div", { class: B(["td-collapse", { "is-collapsed": c.value }]) }, [I("div", null, [(V(!0), F(j, null, U(r.value, ([t, n]) => (V(), F("div", {
1735
+ class: B(["td-fm-rail-caret", { "is-collapsed": s.value }])
1736
+ }, null, 8, ["class"])]), I("div", { class: B(["td-collapse", { "is-collapsed": s.value }]) }, [I("div", null, [(V(!0), F(j, null, U(r.value, ([t, n]) => (V(), F("div", {
1737
1737
  key: t,
1738
1738
  class: "td-fm-rail-row"
1739
1739
  }, [I("span", Ni, [(V(), N(G(a(n.widget)), {
1740
1740
  size: 12,
1741
1741
  class: "td-fm-icon"
1742
- })), L(" " + K(q(o)(t)), 1)]), I("span", Pi, [R(ji, {
1742
+ })), L(" " + K(q(v)(t)), 1)]), I("span", Pi, [R(ji, {
1743
1743
  definition: n,
1744
1744
  value: e.frontmatter[t]
1745
1745
  }, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : r.value.length > 0 ? (V(), F("div", Fi, [I("button", {
1746
1746
  type: "button",
1747
1747
  class: "td-fm-box-header",
1748
- onClick: l
1749
- }, [I("span", Ii, [n[1] ||= L("Properties ", -1), I("span", Li, K(r.value.length), 1)]), I("span", Ri, [L(K(s.value ? "Show" : "Hide") + " ", 1), s.value ? (V(), N(q(se), {
1748
+ onClick: c
1749
+ }, [I("span", Ii, [n[1] ||= L("Properties ", -1), I("span", Li, K(r.value.length), 1)]), I("span", Ri, [L(K(o.value ? "Show" : "Hide") + " ", 1), o.value ? (V(), N(q(se), {
1750
1750
  key: 1,
1751
1751
  size: 14
1752
1752
  })) : (V(), N(q(ee), {
1753
1753
  key: 0,
1754
1754
  size: 14
1755
- }))])]), I("div", { class: B(["td-collapse", { "is-collapsed": s.value }]) }, [I("div", zi, [(V(!0), F(j, null, U(r.value, ([t, n]) => (V(), F(j, { key: t }, [I("span", Bi, [(V(), N(G(a(n.widget)), {
1755
+ }))])]), I("div", { class: B(["td-collapse", { "is-collapsed": o.value }]) }, [I("div", zi, [(V(!0), F(j, null, U(r.value, ([t, n]) => (V(), F(j, { key: t }, [I("span", Bi, [(V(), N(G(a(n.widget)), {
1756
1756
  size: 12,
1757
1757
  class: "td-fm-icon"
1758
- })), L(" " + K(q(o)(t)), 1)]), I("span", Vi, [R(ji, {
1758
+ })), L(" " + K(q(v)(t)), 1)]), I("span", Vi, [R(ji, {
1759
1759
  definition: n,
1760
1760
  value: e.frontmatter[t]
1761
1761
  }, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) : P("", !0);
@@ -1832,51 +1832,51 @@ function Ki() {
1832
1832
  groupName: M(() => i.value.groupName)
1833
1833
  };
1834
1834
  }
1835
- function qi(e, t, n) {
1836
- if (e.entries.some((e) => e.kind === "file" && r(e.item.filepath) === t)) {
1837
- let t = [], r = e.entries.find((e) => e.kind === "file" && f(e.item.filepath));
1838
- r && r.kind === "file" && t.push(Yi(r.item, n));
1839
- for (let n of e.entries) n.kind === "file" ? f(n.item.filepath) || t.push(Yi(n.item)) : t.push(Xi(n.node, ""));
1835
+ function qi(e, t, r) {
1836
+ if (e.entries.some((e) => e.kind === "file" && n(e.item.filepath) === t)) {
1837
+ let t = [], n = e.entries.find((e) => e.kind === "file" && u(e.item.filepath));
1838
+ n && n.kind === "file" && t.push(Yi(n.item, r));
1839
+ for (let n of e.entries) n.kind === "file" ? u(n.item.filepath) || t.push(Yi(n.item)) : t.push(Xi(n.node, ""));
1840
1840
  return {
1841
1841
  pages: t,
1842
1842
  groupName: ""
1843
1843
  };
1844
1844
  }
1845
- for (let r of e.entries) {
1846
- if (r.kind !== "dir") continue;
1847
- let e = Ji(r.node, t, "", n);
1845
+ for (let n of e.entries) {
1846
+ if (n.kind !== "dir") continue;
1847
+ let e = Ji(n.node, t, "", r);
1848
1848
  if (e !== void 0) return e;
1849
1849
  }
1850
1850
  }
1851
- function Ji(e, t, i, a) {
1852
- let s = n(i, e.name);
1853
- if (e.entries.some((e) => e.kind === "file" && r(e.item.filepath) === t)) {
1854
- let t = [], n = u(e);
1851
+ function Ji(e, r, i, a) {
1852
+ let o = t(i, e.name);
1853
+ if (e.entries.some((e) => e.kind === "file" && n(e.item.filepath) === r)) {
1854
+ let t = [], n = c(e);
1855
1855
  n && t.push(Yi(n));
1856
- for (let n of e.entries) n.kind === "file" ? f(n.item.filepath) || t.push(Yi(n.item)) : t.push(Xi(n.node, s));
1856
+ for (let n of e.entries) n.kind === "file" ? u(n.item.filepath) || t.push(Yi(n.item)) : t.push(Xi(n.node, o));
1857
1857
  return {
1858
1858
  pages: t,
1859
- groupName: o(e.name)
1859
+ groupName: v(e.name)
1860
1860
  };
1861
1861
  }
1862
- for (let n of e.entries) {
1863
- if (n.kind !== "dir") continue;
1864
- let e = Ji(n.node, t, s, a);
1862
+ for (let t of e.entries) {
1863
+ if (t.kind !== "dir") continue;
1864
+ let e = Ji(t.node, r, o, a);
1865
1865
  if (e !== void 0) return e;
1866
1866
  }
1867
1867
  }
1868
1868
  function Yi(e, t) {
1869
- let n = e.label === void 0 ? t === void 0 ? w(e.filepath) : S(e.filepath, t) : e.label;
1869
+ let r = e.label === void 0 ? t === void 0 ? w(e.filepath) : S(e.filepath, t) : e.label;
1870
1870
  return {
1871
- url: r(e.filepath),
1872
- title: n
1871
+ url: n(e.filepath),
1872
+ title: r
1873
1873
  };
1874
1874
  }
1875
- function Xi(e, t) {
1876
- let i = n(t, e.name), a = u(e);
1875
+ function Xi(e, r) {
1876
+ let i = t(r, e.name), a = c(e);
1877
1877
  return {
1878
- url: a ? r(a.filepath) : C(i),
1879
- title: a ? w(a.filepath, a.label) : o(e.name)
1878
+ url: a ? n(a.filepath) : C(i),
1879
+ title: a ? w(a.filepath, a.label) : v(e.name)
1880
1880
  };
1881
1881
  }
1882
1882
  //#endregion
@@ -1949,7 +1949,7 @@ function la(e) {
1949
1949
  return t;
1950
1950
  }
1951
1951
  //#endregion
1952
- //#region src/client/theme-default/components/TdToc.vue?vue&type=script&setup=true&lang.ts
1952
+ //#region src/client/theme-default/components/custom/TdToc.vue?vue&type=script&setup=true&lang.ts
1953
1953
  var ua = {
1954
1954
  key: 0,
1955
1955
  class: "td-toc",
@@ -1982,10 +1982,10 @@ var ua = {
1982
1982
  }, [I("a", {
1983
1983
  href: e.link,
1984
1984
  class: B(["td-toc-link", { "is-active": q(n) === e.slug }]),
1985
- innerHTML: q(_)(e.titleHtml)
1985
+ innerHTML: q(h)(e.titleHtml)
1986
1986
  }, null, 10, fa)], 2))), 128))])])) : P("", !0);
1987
1987
  }
1988
- }), [["__scopeId", "data-v-d60de674"]]), ma = { class: "td-rail" }, ha = /*#__PURE__*/ k(/* @__PURE__ */ z({
1988
+ }), [["__scopeId", "data-v-2b800578"]]), ma = { class: "td-rail" }, ha = /*#__PURE__*/ k(/* @__PURE__ */ z({
1989
1989
  __name: "TdRail",
1990
1990
  setup(e) {
1991
1991
  let { page: t } = fe();
@@ -1995,7 +1995,7 @@ var ua = {
1995
1995
  frontmatter: q(t).frontmatter
1996
1996
  }, null, 8, ["schema", "frontmatter"]), R(pa, { headings: q(t).headings }, null, 8, ["headings"])]));
1997
1997
  }
1998
- }), [["__scopeId", "data-v-22485c1b"]]), ga = {
1998
+ }), [["__scopeId", "data-v-39bd5d5f"]]), ga = {
1999
1999
  class: "td-skeleton",
2000
2000
  role: "status",
2001
2001
  "aria-label": "Loading"
@@ -2076,18 +2076,18 @@ var ua = {
2076
2076
  }
2077
2077
  }), [["__scopeId", "data-v-b61b97da"]]), xa = 120;
2078
2078
  function Sa() {
2079
- let t = xe(), n, r = Ye([]), i = Ye(!1);
2080
- J(t, () => {
2081
- n = void 0;
2079
+ let e = xe(), t, n = Ye([]), r = Ye(!1);
2080
+ J(e, () => {
2081
+ t = void 0;
2082
2082
  });
2083
- function a() {
2084
- if (n) return n;
2085
- if (t.value) return n = Le(T.loadJSON(t.value, {
2086
- fields: e,
2087
- storeFields: m
2088
- })), n;
2083
+ function i() {
2084
+ if (t) return t;
2085
+ if (e.value) return t = Le(T.loadJSON(e.value, {
2086
+ fields: f,
2087
+ storeFields: x
2088
+ })), t;
2089
2089
  }
2090
- function o(e, t) {
2090
+ function a(e, t) {
2091
2091
  if (!e) return "";
2092
2092
  let n = Object.keys(t);
2093
2093
  if (n.length === 0) return e.slice(0, xa);
@@ -2099,13 +2099,13 @@ function Sa() {
2099
2099
  let a = Math.max(0, i - 30), o = Math.min(e.length, a + xa), s = e.slice(a, o).trim();
2100
2100
  return 0 < a && (s = "..." + s), o < e.length && (s += "..."), s;
2101
2101
  }
2102
- async function s(e) {
2103
- let t = a();
2102
+ async function o(e) {
2103
+ let t = i();
2104
2104
  if (!t) {
2105
- i.value = !1;
2105
+ r.value = !1;
2106
2106
  return;
2107
2107
  }
2108
- let n = t.search(e, {
2108
+ let o = t.search(e, {
2109
2109
  prefix: !0,
2110
2110
  fuzzy: (e) => 3 < e.length && .2,
2111
2111
  boost: {
@@ -2113,39 +2113,39 @@ function Sa() {
2113
2113
  text: 2
2114
2114
  }
2115
2115
  }).slice(0, 20);
2116
- r.value = n.map((e) => ({
2116
+ n.value = o.map((e) => ({
2117
2117
  id: e.id,
2118
2118
  title: e.title,
2119
- excerpt: o(e.text ?? "", e.match),
2119
+ excerpt: a(e.text ?? "", e.match),
2120
2120
  score: e.score
2121
- })), i.value = !1;
2121
+ })), r.value = !1;
2122
2122
  }
2123
- let c = y(s, 150);
2124
- function l(e) {
2123
+ let s = _(o, 150);
2124
+ function c(e) {
2125
2125
  let t = e.trim();
2126
- t.length === 0 ? (r.value = [], i.value = !1) : (i.value = !0, c(t));
2126
+ t.length === 0 ? (n.value = [], r.value = !1) : (r.value = !0, s(t));
2127
2127
  }
2128
- function u() {
2129
- i.value = !1;
2128
+ function l() {
2129
+ r.value = !1;
2130
2130
  }
2131
- let d = Ye(!1);
2132
- return J(t, (e) => {
2133
- e && (d.value = !0);
2131
+ let u = Ye(!1);
2132
+ return J(e, (e) => {
2133
+ e && (u.value = !0);
2134
2134
  }, { immediate: !0 }), {
2135
- results: r,
2136
- searching: i,
2137
- indexLoaded: d,
2138
- search: l,
2139
- cancel: u
2135
+ results: n,
2136
+ searching: r,
2137
+ indexLoaded: u,
2138
+ search: c,
2139
+ cancel: l
2140
2140
  };
2141
2141
  }
2142
2142
  //#endregion
2143
2143
  //#region src/client/theme-default/components/TdSiteSearch/highlight.ts
2144
2144
  function Ca(e, t) {
2145
- if (!e || !t) return p(e);
2146
- let n = t.trim().split(/\s+/).filter(Boolean), r = p(e);
2145
+ if (!e || !t) return d(e);
2146
+ let n = t.trim().split(/\s+/).filter(Boolean), r = d(e);
2147
2147
  for (let e of n) {
2148
- let t = RegExp(`(${x(e)})`, "gi");
2148
+ let t = RegExp(`(${b(e)})`, "gi");
2149
2149
  r = r.replace(t, "<mark>$1</mark>");
2150
2150
  }
2151
2151
  return r;
@@ -2174,15 +2174,15 @@ var wa = { class: "td-search" }, Ta = { class: "td-search-input-wrap" }, Ea = {
2174
2174
  },
2175
2175
  emits: /*@__PURE__*/ Re(["select"], ["update:active", "update:query"]),
2176
2176
  setup(e, { expose: t, emit: n }) {
2177
- let r = Ze(e, "active"), i = Ze(e, "query"), a = n, s = O(), { withBase: l } = A(), { results: u, searching: d, indexLoaded: f, search: p, cancel: m } = Sa(), h = H(-1), g = M(() => 0 < i.value.trim().length), _ = M(() => {
2177
+ let r = Ze(e, "active"), i = Ze(e, "query"), a = n, s = O(), { withBase: c } = A(), { results: l, searching: u, indexLoaded: d, search: f, cancel: p } = Sa(), m = H(-1), h = M(() => 0 < i.value.trim().length), g = M(() => {
2178
2178
  let e = [], t = /* @__PURE__ */ new Map();
2179
- for (let n of u.value) {
2180
- let r = c(n.id), i = t.get(r);
2179
+ for (let n of l.value) {
2180
+ let r = o(n.id), i = t.get(r);
2181
2181
  if (!i) {
2182
2182
  let n = r.split("/").pop() || "index";
2183
2183
  i = {
2184
2184
  pageUrl: r,
2185
- pageTitle: o(n),
2185
+ pageTitle: v(n),
2186
2186
  results: []
2187
2187
  }, t.set(r, i), e.push(i);
2188
2188
  }
@@ -2190,15 +2190,15 @@ var wa = { class: "td-search" }, Ta = { class: "td-search-input-wrap" }, Ea = {
2190
2190
  }
2191
2191
  return e;
2192
2192
  });
2193
- J(g, (e) => {
2193
+ J(h, (e) => {
2194
2194
  r.value = e;
2195
2195
  }), J(i, (e, t, n) => {
2196
- n(() => m()), h.value = 0, p(e);
2196
+ n(() => p()), m.value = 0, f(e);
2197
2197
  });
2198
- function v() {
2198
+ function _() {
2199
2199
  i.value = "";
2200
2200
  }
2201
- let y = M(() => _.value.flatMap((e) => e.results)), b = M(() => {
2201
+ let y = M(() => g.value.flatMap((e) => e.results)), b = M(() => {
2202
2202
  let e = /* @__PURE__ */ new Map();
2203
2203
  for (let t = 0; t < y.value.length; t++) e.set(y.value[t].id, t);
2204
2204
  return e;
@@ -2206,13 +2206,13 @@ var wa = { class: "td-search" }, Ta = { class: "td-search-input-wrap" }, Ea = {
2206
2206
  function x(e) {
2207
2207
  let t = b.value.size;
2208
2208
  if (t !== 0) {
2209
- if (e.key === "ArrowDown") e.preventDefault(), h.value = (h.value + 1) % t, C();
2210
- else if (e.key === "ArrowUp") e.preventDefault(), h.value = (h.value - 1 + t) % t, C();
2211
- else if (e.key === "Enter" && 0 <= h.value) {
2209
+ if (e.key === "ArrowDown") e.preventDefault(), m.value = (m.value + 1) % t, C();
2210
+ else if (e.key === "ArrowUp") e.preventDefault(), m.value = (m.value - 1 + t) % t, C();
2211
+ else if (e.key === "Enter" && 0 <= m.value) {
2212
2212
  e.preventDefault();
2213
- let t = y.value[h.value];
2213
+ let t = y.value[m.value];
2214
2214
  if (!t) return;
2215
- document.querySelector(`.td-search-result[href="${CSS.escape(l(t.id))}"]`)?.click();
2215
+ document.querySelector(`.td-search-result[href="${CSS.escape(c(t.id))}"]`)?.click();
2216
2216
  }
2217
2217
  }
2218
2218
  }
@@ -2254,33 +2254,33 @@ var wa = { class: "td-search" }, Ta = { class: "td-search-input-wrap" }, Ea = {
2254
2254
  placeholder: "Search...",
2255
2255
  onKeydown: x
2256
2256
  }, null, 544), [[$e, i.value]]),
2257
- !g.value && !q(d) ? (V(), N(ba, {
2257
+ !h.value && !q(u) ? (V(), N(ba, {
2258
2258
  key: 0,
2259
2259
  keys: [q($).Meta, q($).k],
2260
2260
  class: "td-search-kbd"
2261
2261
  }, null, 8, ["keys"])) : P("", !0),
2262
- q(d) || !q(f) ? (V(), N(q(ut), {
2262
+ q(u) || !q(d) ? (V(), N(q(ut), {
2263
2263
  key: 1,
2264
2264
  size: 12,
2265
2265
  class: "td-search-spinner"
2266
- })) : g.value ? (V(), F("span", Ea, K(q(u).length), 1)) : P("", !0),
2266
+ })) : h.value ? (V(), F("span", Ea, K(q(l).length), 1)) : P("", !0),
2267
2267
  i.value ? (V(), F("button", {
2268
2268
  key: 3,
2269
2269
  class: "td-search-clear",
2270
2270
  type: "button",
2271
2271
  "aria-label": "Clear search",
2272
- onClick: v
2272
+ onClick: _
2273
2273
  }, [R(q(_e), { size: 12 })])) : P("", !0)
2274
2274
  ]),
2275
- g.value && q(u).length > 0 ? (V(), F("div", Da, [(V(!0), F(j, null, U(_.value, (e) => (V(), F("div", {
2275
+ h.value && q(l).length > 0 ? (V(), F("div", Da, [(V(!0), F(j, null, U(g.value, (e) => (V(), F("div", {
2276
2276
  key: e.pageUrl,
2277
2277
  class: "td-search-group"
2278
2278
  }, [(V(!0), F(j, null, U(e.results, (e) => (V(), F("a", {
2279
2279
  key: e.id,
2280
- href: q(l)(e.id),
2280
+ href: q(c)(e.id),
2281
2281
  class: B(["td-search-result", {
2282
- "is-selected": b.value.get(e.id) === h.value,
2283
- "is-current": q(l)(e.id) === q(s).path
2282
+ "is-selected": b.value.get(e.id) === m.value,
2283
+ "is-current": q(c)(e.id) === q(s).path
2284
2284
  }]),
2285
2285
  onClick: S
2286
2286
  }, [
@@ -2295,10 +2295,10 @@ var wa = { class: "td-search" }, Ta = { class: "td-search-input-wrap" }, Ea = {
2295
2295
  innerHTML: q(Ca)(e.excerpt, i.value)
2296
2296
  }, null, 8, ja)) : P("", !0)
2297
2297
  ], 10, Oa))), 128))]))), 128))])) : P("", !0),
2298
- g.value && q(u).length === 0 ? (V(), F("div", Ma, " No results for \"" + K(i.value) + "\" ", 1)) : P("", !0)
2298
+ h.value && q(l).length === 0 ? (V(), F("div", Ma, " No results for \"" + K(i.value) + "\" ", 1)) : P("", !0)
2299
2299
  ]));
2300
2300
  }
2301
- }), [["__scopeId", "data-v-ee28029f"]]), Pa = /* @__PURE__ */ z({
2301
+ }), [["__scopeId", "data-v-999e1838"]]), Pa = /* @__PURE__ */ z({
2302
2302
  __name: "TdThemeToggle",
2303
2303
  setup(e) {
2304
2304
  let { isDark: t, toggle: n } = Se();
@@ -2505,7 +2505,7 @@ var Ya = { class: "td-header" }, Xa = { class: "td-header-left" }, Za = ["href"]
2505
2505
  }, ho = { key: 0 }, go = { class: "td-content-body" }, _o = ["href"], vo = 200, yo = 500, bo = 300, xo = "td-sidebar-width", So = /*#__PURE__*/ k(/* @__PURE__ */ z({
2506
2506
  __name: "TdLayout",
2507
2507
  setup(e) {
2508
- let { title: t, page: n } = fe(), r = M(() => {
2508
+ let { title: t, page: n } = fe(), i = M(() => {
2509
2509
  let e = n.value.icon;
2510
2510
  return e ? me(e.name) : void 0;
2511
2511
  }), a = A(), { withBase: o } = a, s = ve(), c = M(() => s.value.ready), { isOpen: l, open: u, close: d } = Wi(), f = H(""), p = H(!1), m = H(!1), h = O();
@@ -2513,16 +2513,16 @@ var Ya = { class: "td-header" }, Xa = { class: "td-header-left" }, Za = ["href"]
2513
2513
  let g = Qe("sidebarSearch"), _ = Qe("menuSearch");
2514
2514
  function v(e) {
2515
2515
  let t = a.repo;
2516
- return `${i(t.url)}/edit/main/${[
2516
+ return `${r(t.url)}/edit/main/${[
2517
2517
  t.root,
2518
2518
  a.rootDir,
2519
2519
  e
2520
2520
  ].filter(Boolean).join("/")}`;
2521
2521
  }
2522
- function y() {
2522
+ function b() {
2523
2523
  _.value?.isFocused || g.value?.isFocused ? (_.value?.blur(), g.value?.blur(), l.value && d()) : l.value ? _.value?.focus() : g.value?.isVisible ? g.value.focus() : (u(), Be(() => _.value?.focus()));
2524
2524
  }
2525
- Ra([$.Control, $.k], y), Ra([$.Meta, $.k], y), et(() => {
2525
+ Ra([$.Control, $.k], b), Ra([$.Meta, $.k], b), et(() => {
2526
2526
  if (typeof document > "u") return;
2527
2527
  let e = t.value, r = a.title;
2528
2528
  document.title = e && e !== r ? `${e} - ${r}` : r;
@@ -2548,15 +2548,15 @@ var Ya = { class: "td-header" }, Xa = { class: "td-header-left" }, Za = ["href"]
2548
2548
  function T() {
2549
2549
  x.value = Math.max(vo, x.value - 20);
2550
2550
  }
2551
- return (e, i) => (V(), F("div", null, [
2551
+ return (e, r) => (V(), F("div", null, [
2552
2552
  W(e.$slots, "layout-top", {}, void 0, !0),
2553
- i[6] ||= I("a", {
2553
+ r[6] ||= I("a", {
2554
2554
  href: "#td-content",
2555
2555
  class: "td-skip-link"
2556
2556
  }, "Skip to content", -1),
2557
2557
  I("header", Ya, [
2558
2558
  I("div", Xa, [
2559
- R(Gi, { onClick: y }),
2559
+ R(Gi, { onClick: b }),
2560
2560
  I("a", {
2561
2561
  href: q(o)(q(C)("/")),
2562
2562
  class: "td-brand"
@@ -2572,7 +2572,7 @@ var Ya = { class: "td-header" }, Xa = { class: "td-header-left" }, Za = ["href"]
2572
2572
  rel: "noopener noreferrer",
2573
2573
  class: "td-header-icon-link",
2574
2574
  "aria-label": "GitHub repository"
2575
- }, [...i[5] ||= [I("svg", {
2575
+ }, [...r[5] ||= [I("svg", {
2576
2576
  width: "20",
2577
2577
  height: "20",
2578
2578
  viewBox: "0 0 98 96",
@@ -2587,7 +2587,7 @@ var Ya = { class: "td-header" }, Xa = { class: "td-header-left" }, Za = ["href"]
2587
2587
  ]),
2588
2588
  I("div", {
2589
2589
  class: B(["td-drawer-scrim", { "is-open": q(l) }]),
2590
- onClick: i[0] ||= (...e) => q(d) && q(d)(...e)
2590
+ onClick: r[0] ||= (...e) => q(d) && q(d)(...e)
2591
2591
  }, null, 2),
2592
2592
  I("aside", {
2593
2593
  class: B(["td-drawer", { "is-open": q(l) }]),
@@ -2612,9 +2612,9 @@ var Ya = { class: "td-header" }, Xa = { class: "td-header-left" }, Za = ["href"]
2612
2612
  ref_key: "menuSearch",
2613
2613
  ref: _,
2614
2614
  query: f.value,
2615
- "onUpdate:query": i[1] ||= (e) => f.value = e,
2615
+ "onUpdate:query": r[1] ||= (e) => f.value = e,
2616
2616
  active: m.value,
2617
- "onUpdate:active": i[2] ||= (e) => m.value = e,
2617
+ "onUpdate:active": r[2] ||= (e) => m.value = e,
2618
2618
  onSelect: q(d)
2619
2619
  }, null, 8, [
2620
2620
  "query",
@@ -2637,9 +2637,9 @@ var Ya = { class: "td-header" }, Xa = { class: "td-header-left" }, Za = ["href"]
2637
2637
  ref_key: "sidebarSearch",
2638
2638
  ref: g,
2639
2639
  query: f.value,
2640
- "onUpdate:query": i[3] ||= (e) => f.value = e,
2640
+ "onUpdate:query": r[3] ||= (e) => f.value = e,
2641
2641
  active: p.value,
2642
- "onUpdate:active": i[4] ||= (e) => p.value = e,
2642
+ "onUpdate:active": r[4] ||= (e) => p.value = e,
2643
2643
  class: "td-sidebar-search"
2644
2644
  }, null, 8, ["query", "active"]),
2645
2645
  R(va, {
@@ -2664,13 +2664,13 @@ var Ya = { class: "td-header" }, Xa = { class: "td-header-left" }, Za = ["href"]
2664
2664
  ], 4), I("div", so, [I("main", co, [I("article", lo, [
2665
2665
  W(e.$slots, "doc-before", {}, void 0, !0),
2666
2666
  q(n).schema ? (V(), F("div", uo, K(q(n).schemaLabel ?? q(n).schema), 1)) : P("", !0),
2667
- r.value ? (V(), F("div", fo, [(V(), N(G(r.value), { size: 32 }))])) : P("", !0),
2667
+ i.value ? (V(), F("div", fo, [(V(), N(G(i.value), { size: 32 }))])) : P("", !0),
2668
2668
  q(t) ? (V(), F("h1", {
2669
2669
  key: 2,
2670
2670
  class: "td-page-title",
2671
2671
  innerHTML: q(n).titleHtml
2672
2672
  }, null, 8, po)) : P("", !0),
2673
- q(n).fileMetadata ? (V(), F("div", mo, [I("span", null, K(q(b)(q(n).fileMetadata.mtime, "Modified")), 1), q(n).fileMetadata.ctime === q(n).fileMetadata.mtime ? P("", !0) : (V(), F("span", ho, " · " + K(q(b)(q(n).fileMetadata.ctime, "Created")), 1))])) : P("", !0),
2673
+ q(n).fileMetadata ? (V(), F("div", mo, [I("span", null, K(q(y)(q(n).fileMetadata.mtime, "Modified")), 1), q(n).fileMetadata.ctime === q(n).fileMetadata.mtime ? P("", !0) : (V(), F("span", ho, " · " + K(q(y)(q(n).fileMetadata.ctime, "Created")), 1))])) : P("", !0),
2674
2674
  R(q(Hi), {
2675
2675
  class: "td-frontmatter-inline",
2676
2676
  schema: q(n).schema,
@@ -2699,7 +2699,7 @@ var Ya = { class: "td-header" }, Xa = { class: "td-header-left" }, Za = ["href"]
2699
2699
  W(e.$slots, "layout-bottom", {}, void 0, !0)
2700
2700
  ]));
2701
2701
  }
2702
- }), [["__scopeId", "data-v-fa441596"]]), Co = { class: "pt-16 pb-24" }, wo = ["href"], To = /* @__PURE__ */ z({
2702
+ }), [["__scopeId", "data-v-80045770"]]), Co = { class: "pt-16 pb-24" }, wo = ["href"], To = /* @__PURE__ */ z({
2703
2703
  __name: "TdNotFound",
2704
2704
  setup(e) {
2705
2705
  let { withBase: t } = A();