typerighter 0.42.1 → 0.43.1

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 (59) hide show
  1. package/dist/{app-xAspP0Kq.js → app-DjpuKzvd.js} +17 -5
  2. package/dist/{cli-CThN6kIr.js → cli-BnRDeJy2.js} +5 -5
  3. package/dist/cli.js +1 -1
  4. package/dist/client/app/index.d.ts +29 -5
  5. package/dist/client/app/index.d.ts.map +1 -1
  6. package/dist/client/app/router.d.ts.map +1 -1
  7. package/dist/client/index.d.ts +2 -1
  8. package/dist/client/index.d.ts.map +1 -1
  9. package/dist/client/theme-default.js +822 -715
  10. package/dist/client.js +1 -1
  11. package/dist/fonts.css +2 -0
  12. package/dist/index.js +3 -3
  13. package/dist/{init-DSA-JLUJ.js → init-BCfVnwE1.js} +3 -2
  14. package/dist/inlineRe-Cn-J_E76.js +4 -0
  15. package/dist/{jsonld-Du1iJ_fG.js → jsonld-ODTuVGMh.js} +2 -2
  16. package/dist/node/build/fonts.d.ts +2 -0
  17. package/dist/node/build/fonts.d.ts.map +1 -0
  18. package/dist/node/build/index.d.ts.map +1 -1
  19. package/dist/node/build/prerender.d.ts.map +1 -1
  20. package/dist/node/cli/init.d.ts.map +1 -1
  21. package/dist/node/lib/codegen/app-entry.d.ts +30 -0
  22. package/dist/node/lib/codegen/app-entry.d.ts.map +1 -0
  23. package/dist/node/lib/codegen/components.d.ts +7 -0
  24. package/dist/node/lib/codegen/components.d.ts.map +1 -0
  25. package/dist/node/lib/codegen/index.d.ts +4 -0
  26. package/dist/node/lib/codegen/index.d.ts.map +1 -0
  27. package/dist/node/lib/codegen/theme.d.ts +6 -0
  28. package/dist/node/lib/codegen/theme.d.ts.map +1 -0
  29. package/dist/node/lib/codegen/theme.test.d.ts +2 -0
  30. package/dist/node/lib/codegen/theme.test.d.ts.map +1 -0
  31. package/dist/node/lib/{htmlTemplate.d.ts → html-template.d.ts} +1 -1
  32. package/dist/node/lib/html-template.d.ts.map +1 -0
  33. package/dist/node/lib/render/postprocess.d.ts +1 -0
  34. package/dist/node/lib/render/postprocess.d.ts.map +1 -1
  35. package/dist/node/lib/render/vue.d.ts.map +1 -1
  36. package/dist/node/plugin/vite/constants.d.ts +2 -0
  37. package/dist/node/plugin/vite/constants.d.ts.map +1 -1
  38. package/dist/node/plugin/vite/index.d.ts +1 -1
  39. package/dist/node/plugin/vite/index.d.ts.map +1 -1
  40. package/dist/node/plugin/vite/virtual/app.d.ts +3 -21
  41. package/dist/node/plugin/vite/virtual/app.d.ts.map +1 -1
  42. package/dist/node/plugin/vite/virtual/theme.d.ts +7 -0
  43. package/dist/node/plugin/vite/virtual/theme.d.ts.map +1 -0
  44. package/dist/prerenderWorker.js +2 -2
  45. package/dist/renderMath-C2Z7HdfG.js +19 -0
  46. package/dist/shared/types/ssg.d.ts +4 -0
  47. package/dist/shared/types/ssg.d.ts.map +1 -1
  48. package/dist/shared/utils/format.d.ts +2 -0
  49. package/dist/shared/utils/format.d.ts.map +1 -1
  50. package/dist/shared/utils/format.test.d.ts +2 -0
  51. package/dist/shared/utils/format.test.d.ts.map +1 -0
  52. package/dist/{shared-BMujDY3P.js → shared-QuBFygxT.js} +104 -98
  53. package/dist/shared.js +1 -1
  54. package/dist/typedown.schema.json +133 -0
  55. package/dist/typerighter.css +1 -1
  56. package/dist/{vite-Dup9wBL7.js → vite-C9pVUTyV.js} +552 -426
  57. package/dist/vite.js +1 -1
  58. package/package.json +6 -4
  59. package/dist/node/lib/htmlTemplate.d.ts.map +0 -1
@@ -1,9 +1,9 @@
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, W as c, X as l, Y as u, _ as d, a as f, b as p, c 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-BMujDY3P.js";
2
- import { t as T } from "../temml-D47Z4xZ2.js";
3
- import { t as ee } from "../es-ClqUVRJn.js";
4
- import { A as te, C as ne, D as E, E as re, F as ie, I 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 k, f as me, g as he, h as ge, i as _e, j as ve, k as ye, m as A, n as be, o as xe, p as Se, r as j, s as Ce, u as we, v as Te, w as Ee, x as De, y as Oe } from "../app-xAspP0Kq.js";
1
+ import { A as e, C as t, E as n, F as r, I as i, K as a, L as o, N as s, O as c, Q as l, Z as u, _ as d, a as f, b as p, c 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-QuBFygxT.js";
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 D, M as ie, N as ae, O as oe, P as se, S as ce, T as le, _ as ue, a as de, b as fe, c as O, d as pe, f as me, g as he, h as ge, i as _e, j as ve, k as ye, m as k, n as be, o as xe, p as Se, r as A, s as Ce, u as we, v as Te, w as Ee, x as De, y as Oe } from "../app-DjpuKzvd.js";
5
4
  import { a as ke, i as Ae, n as je, t as Me } from "../brand-CG1fQshq.js";
6
- import { Fragment as M, Teleport as Ne, computed as N, createBlock as P, createCommentVNode as F, createElementBlock as I, createElementVNode as L, createTextVNode as R, createVNode as z, defineComponent as B, getCurrentScope as Pe, markRaw as Fe, mergeModels as Ie, mergeProps as Le, nextTick as Re, normalizeClass as V, normalizeStyle as ze, onBeforeUnmount as Be, onMounted as Ve, onScopeDispose as He, onUnmounted as Ue, openBlock as H, readonly as We, ref as U, renderList as W, renderSlot as Ge, resolveComponent as Ke, resolveDynamicComponent as G, shallowReadonly as qe, shallowRef as Je, toDisplayString as K, toValue as Ye, unref as q, useModel as Xe, useTemplateRef as Ze, vModelText as Qe, watch as J, watchEffect as $e, withCtx as et, withDirectives as tt, withKeys as nt, withModifiers as rt } from "vue";
5
+ import { t as Ne } from "../inlineRe-Cn-J_E76.js";
6
+ import { Fragment as j, Teleport as Pe, 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 Fe, markRaw as Ie, mergeModels as Le, mergeProps as Re, nextTick as ze, normalizeClass as B, normalizeStyle as Be, onBeforeUnmount as Ve, onMounted as He, onScopeDispose as Ue, onUnmounted as We, openBlock as V, readonly as Ge, ref as H, renderList as U, renderSlot as W, resolveComponent as Ke, resolveDynamicComponent as G, shallowReadonly as qe, shallowRef as Je, toDisplayString as K, toValue as Ye, unref as q, useModel as Xe, useTemplateRef as Ze, vModelText as Qe, watch as J, watchEffect as $e, withCtx as et, withDirectives as tt, withKeys as nt, withModifiers as rt } from "vue";
7
7
  var it = D({
8
8
  name: "circle-dot",
9
9
  size: 24,
@@ -136,129 +136,113 @@ var it = D({
136
136
  "height",
137
137
  "width",
138
138
  "viewBox"
139
- ], gt = ["d"], _t = ["d"], vt = ["d"], yt = /* @__PURE__ */ B({
139
+ ], gt = ["d"], _t = ["d"], vt = ["d"], yt = /* @__PURE__ */ z({
140
140
  __name: "TdBrandIcon",
141
141
  props: { size: { default: 28 } },
142
142
  setup(e) {
143
- return (t, n) => (H(), I("svg", {
143
+ return (t, n) => (V(), F("svg", {
144
144
  fill: "none",
145
145
  height: e.size,
146
146
  width: e.size * 208 / 128,
147
147
  viewBox: q(ke),
148
148
  xmlns: "http://www.w3.org/2000/svg"
149
149
  }, [
150
- L("path", {
150
+ I("path", {
151
151
  "clip-rule": "evenodd",
152
152
  d: q(je),
153
153
  "fill-rule": "evenodd",
154
154
  fill: "currentColor"
155
155
  }, null, 8, gt),
156
- L("path", {
156
+ I("path", {
157
157
  d: q(Ae),
158
158
  fill: "currentColor"
159
159
  }, null, 8, _t),
160
- L("path", {
160
+ I("path", {
161
161
  d: q(Me),
162
162
  fill: "currentColor"
163
163
  }, null, 8, vt)
164
164
  ], 8, ht));
165
165
  }
166
- }), bt = ["title", "aria-label"], xt = /*#__PURE__*/ A(/* @__PURE__ */ B({
166
+ }), bt = ["title", "aria-label"], xt = /*#__PURE__*/ k(/* @__PURE__ */ z({
167
167
  __name: "TdButton",
168
168
  props: { label: {} },
169
169
  setup(e) {
170
- return (t, n) => (H(), I("button", {
170
+ return (t, n) => (V(), F("button", {
171
171
  type: "button",
172
172
  class: "td-icon-btn",
173
173
  title: e.label,
174
174
  "aria-label": e.label
175
- }, [Ge(t.$slots, "default", {}, void 0, !0)], 8, bt));
175
+ }, [W(t.$slots, "default", {}, void 0, !0)], 8, bt));
176
176
  }
177
- }), [["__scopeId", "data-v-b1861a4a"]]), St = /`([^`]+)`|\$([^$]+)\$/g;
178
- function Ct(e) {
179
- let t = 0, n = "";
180
- for (let r of e.matchAll(St)) {
181
- if (n += m(e.slice(t, r.index)), r[1] !== void 0) n += `<code>${m(r[1])}</code>`;
182
- else if (r[2] !== void 0) try {
183
- n += T.renderToString(r[2], { throwOnError: !1 });
184
- } catch {
185
- n += m(r[0]);
186
- }
187
- t = r.index + r[0].length;
188
- }
189
- return n += m(e.slice(t)), n;
190
- }
191
- //#endregion
192
- //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
193
- var wt = Math.min, Tt = Math.max, Et = Math.round, Y = (e) => ({
177
+ }), [["__scopeId", "data-v-b1861a4a"]]), St = Math.min, Ct = Math.max, wt = Math.round, Y = (e) => ({
194
178
  x: e,
195
179
  y: e
196
- }), Dt = {
180
+ }), Tt = {
197
181
  left: "right",
198
182
  right: "left",
199
183
  bottom: "top",
200
184
  top: "bottom"
201
185
  };
202
- function Ot(e, t, n) {
203
- return Tt(e, wt(t, n));
186
+ function Et(e, t, n) {
187
+ return Ct(e, St(t, n));
204
188
  }
205
- function kt(e, t) {
189
+ function Dt(e, t) {
206
190
  return typeof e == "function" ? e(t) : e;
207
191
  }
208
- function At(e) {
192
+ function Ot(e) {
209
193
  return e.split("-")[0];
210
194
  }
211
- function jt(e) {
195
+ function kt(e) {
212
196
  return e.split("-")[1];
213
197
  }
214
- function Mt(e) {
198
+ function At(e) {
215
199
  return e === "x" ? "y" : "x";
216
200
  }
217
- function Nt(e) {
201
+ function jt(e) {
218
202
  return e === "y" ? "height" : "width";
219
203
  }
220
- function Pt(e) {
204
+ function Mt(e) {
221
205
  let t = e[0];
222
206
  return t === "t" || t === "b" ? "y" : "x";
223
207
  }
224
- function Ft(e) {
225
- return Mt(Pt(e));
208
+ function Nt(e) {
209
+ return At(Mt(e));
226
210
  }
227
- function It(e, t, n) {
211
+ function Pt(e, t, n) {
228
212
  n === void 0 && (n = !1);
229
- let r = jt(e), i = Ft(e), a = Nt(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
230
- return t.reference[a] > t.floating[a] && (o = Gt(o)), [o, Gt(o)];
213
+ let r = kt(e), i = Nt(e), a = jt(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
214
+ return t.reference[a] > t.floating[a] && (o = Ut(o)), [o, Ut(o)];
231
215
  }
232
- function Lt(e) {
233
- let t = Gt(e);
216
+ function Ft(e) {
217
+ let t = Ut(e);
234
218
  return [
235
- Rt(e),
219
+ It(e),
236
220
  t,
237
- Rt(t)
221
+ It(t)
238
222
  ];
239
223
  }
240
- function Rt(e) {
224
+ function It(e) {
241
225
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
242
226
  }
243
- var zt = ["left", "right"], Bt = ["right", "left"], Vt = ["top", "bottom"], Ht = ["bottom", "top"];
244
- function Ut(e, t, n) {
227
+ var Lt = ["left", "right"], Rt = ["right", "left"], zt = ["top", "bottom"], Bt = ["bottom", "top"];
228
+ function Vt(e, t, n) {
245
229
  switch (e) {
246
230
  case "top":
247
- case "bottom": return n ? t ? Bt : zt : t ? zt : Bt;
231
+ case "bottom": return n ? t ? Rt : Lt : t ? Lt : Rt;
248
232
  case "left":
249
- case "right": return t ? Vt : Ht;
233
+ case "right": return t ? zt : Bt;
250
234
  default: return [];
251
235
  }
252
236
  }
253
- function Wt(e, t, n, r) {
254
- let i = jt(e), a = Ut(At(e), n === "start", r);
255
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Rt)))), a;
237
+ function Ht(e, t, n, r) {
238
+ let i = kt(e), a = Vt(Ot(e), n === "start", r);
239
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(It)))), a;
256
240
  }
257
- function Gt(e) {
258
- let t = At(e);
259
- return Dt[t] + e.slice(t.length);
241
+ function Ut(e) {
242
+ let t = Ot(e);
243
+ return Tt[t] + e.slice(t.length);
260
244
  }
261
- function Kt(e) {
245
+ function Wt(e) {
262
246
  return {
263
247
  top: e.top ?? 0,
264
248
  right: e.right ?? 0,
@@ -266,15 +250,15 @@ function Kt(e) {
266
250
  left: e.left ?? 0
267
251
  };
268
252
  }
269
- function qt(e) {
253
+ function Gt(e) {
270
254
  return typeof e == "number" ? {
271
255
  top: e,
272
256
  right: e,
273
257
  bottom: e,
274
258
  left: e
275
- } : Kt(e);
259
+ } : Wt(e);
276
260
  }
277
- function Jt(e) {
261
+ function Kt(e) {
278
262
  let { x: t, y: n, width: r, height: i } = e;
279
263
  return {
280
264
  width: r,
@@ -289,8 +273,8 @@ function Jt(e) {
289
273
  }
290
274
  //#endregion
291
275
  //#region ../../node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
292
- function Yt(e, t, n) {
293
- let { reference: r, floating: i } = e, a = Pt(t), o = Ft(t), s = Nt(o), c = At(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
276
+ function qt(e, t, n) {
277
+ let { reference: r, floating: i } = e, a = Mt(t), o = Nt(t), s = jt(o), c = Ot(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
294
278
  switch (c) {
295
279
  case "top":
296
280
  p = {
@@ -321,12 +305,12 @@ function Yt(e, t, n) {
321
305
  y: r.y
322
306
  };
323
307
  }
324
- let m = jt(t);
308
+ let m = kt(t);
325
309
  return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
326
310
  }
327
- async function Xt(e, t) {
311
+ async function Jt(e, t) {
328
312
  t === void 0 && (t = {});
329
- let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = kt(t, e), p = qt(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Jt(await i.getClippingRect({
313
+ let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = Dt(t, e), p = Gt(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Kt(await i.getClippingRect({
330
314
  element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
331
315
  boundary: c,
332
316
  rootBoundary: l,
@@ -339,7 +323,7 @@ async function Xt(e, t) {
339
323
  } : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
340
324
  x: 1,
341
325
  y: 1
342
- }, y = Jt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
326
+ }, y = Kt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
343
327
  elements: o,
344
328
  rect: g,
345
329
  offsetParent: _,
@@ -352,15 +336,15 @@ async function Xt(e, t) {
352
336
  right: (y.right - h.right + p.right) / v.x
353
337
  };
354
338
  }
355
- var Zt = 50, Qt = async (e, t, n) => {
339
+ var Yt = 50, Xt = async (e, t, n) => {
356
340
  let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
357
341
  ...o,
358
- detectOverflow: Xt
342
+ detectOverflow: Jt
359
343
  }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
360
344
  reference: e,
361
345
  floating: t,
362
346
  strategy: i
363
- }), { x: u, y: d } = Yt(l, r, c), f = r, p = 0, m = {};
347
+ }), { x: u, y: d } = qt(l, r, c), f = r, p = 0, m = {};
364
348
  for (let n = 0; n < a.length; n++) {
365
349
  let h = a[n];
366
350
  if (!h) continue;
@@ -381,11 +365,11 @@ var Zt = 50, Qt = async (e, t, n) => {
381
365
  u = v ?? u, d = y ?? d, m[g] = {
382
366
  ...m[g],
383
367
  ...b
384
- }, x && p < Zt && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
368
+ }, x && p < Yt && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
385
369
  reference: e,
386
370
  floating: t,
387
371
  strategy: i
388
- }) : x.rects), {x: u, y: d} = Yt(l, f, c)), n = -1);
372
+ }) : x.rects), {x: u, y: d} = qt(l, f, c)), n = -1);
389
373
  }
390
374
  return {
391
375
  x: u,
@@ -394,41 +378,41 @@ var Zt = 50, Qt = async (e, t, n) => {
394
378
  strategy: i,
395
379
  middlewareData: m
396
380
  };
397
- }, $t = (e) => ({
381
+ }, Zt = (e) => ({
398
382
  name: "arrow",
399
383
  options: e,
400
384
  async fn(t) {
401
- let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = kt(e, t) || {};
385
+ let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = Dt(e, t) || {};
402
386
  if (l == null) return {};
403
- let d = qt(u), f = {
387
+ let d = Gt(u), f = {
404
388
  x: n,
405
389
  y: r
406
- }, p = Ft(i), m = Nt(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;
390
+ }, p = Nt(i), m = jt(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;
407
391
  (!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
408
- let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, ee = wt(d[_], T), te = wt(d[v], T), ne = C - h[m] - te, E = C / 2 - h[m] / 2 + w, re = Ot(ee, E, ne), ie = !c.arrow && jt(i) != null && E !== re && a.reference[m] / 2 - (E < ee ? ee : te) - h[m] / 2 < 0, D = ie ? E < ee ? E - ee : E - ne : 0;
392
+ let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, ee = St(d[_], T), te = St(d[v], T), ne = C - h[m] - te, E = C / 2 - h[m] / 2 + w, re = Et(ee, E, ne), D = !c.arrow && kt(i) != null && E !== re && a.reference[m] / 2 - (E < ee ? ee : te) - h[m] / 2 < 0, ie = D ? E < ee ? E - ee : E - ne : 0;
409
393
  return {
410
- [p]: f[p] + D,
394
+ [p]: f[p] + ie,
411
395
  data: {
412
396
  [p]: re,
413
- centerOffset: E - re - D,
414
- ...ie && { alignmentOffset: D }
397
+ centerOffset: E - re - ie,
398
+ ...D && { alignmentOffset: ie }
415
399
  },
416
- reset: ie
400
+ reset: D
417
401
  };
418
402
  }
419
- }), en = function(e) {
403
+ }), Qt = function(e) {
420
404
  return e === void 0 && (e = {}), {
421
405
  name: "flip",
422
406
  options: e,
423
407
  async fn(t) {
424
408
  var n;
425
- let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = kt(e, t);
409
+ let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = Dt(e, t);
426
410
  if ((n = i.arrow) != null && n.alignmentOffset) return {};
427
- let g = At(r), _ = Pt(o), v = At(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Gt(o)] : Lt(o)), x = p !== "none";
428
- !d && x && b.push(...Wt(o, m, p, y));
411
+ let g = Ot(r), _ = Mt(o), v = Ot(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Ut(o)] : Ft(o)), x = p !== "none";
412
+ !d && x && b.push(...Ht(o, m, p, y));
429
413
  let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
430
414
  if (l && w.push(C[g]), u) {
431
- let e = It(r, a, y);
415
+ let e = Pt(r, a, y);
432
416
  w.push(C[e[0]], C[e[1]]);
433
417
  }
434
418
  if (T = [...T, {
@@ -436,7 +420,7 @@ var Zt = 50, Qt = async (e, t, n) => {
436
420
  overflows: w
437
421
  }], !w.every((e) => e <= 0)) {
438
422
  let e = (i.flip?.index || 0) + 1, t = S[e];
439
- if (t && (u !== "alignment" || _ === Pt(t) || T.every((e) => Pt(e.placement) !== _ || e.overflows[0] > 0))) return {
423
+ if (t && (u !== "alignment" || _ === Mt(t) || T.every((e) => Mt(e.placement) !== _ || e.overflows[0] > 0))) return {
440
424
  data: {
441
425
  index: e,
442
426
  overflows: T
@@ -448,7 +432,7 @@ var Zt = 50, Qt = async (e, t, n) => {
448
432
  case "bestFit": {
449
433
  let e = T.filter((e) => {
450
434
  if (x) {
451
- let t = Pt(e.placement);
435
+ let t = Mt(e.placement);
452
436
  return t === _ || t === "y";
453
437
  }
454
438
  return !0;
@@ -463,9 +447,9 @@ var Zt = 50, Qt = async (e, t, n) => {
463
447
  return {};
464
448
  }
465
449
  };
466
- }, tn = /*#__PURE__*/ new Set(["left", "top"]);
467
- async function nn(e, t) {
468
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = At(n), s = jt(n), c = Pt(n) === "y", l = tn.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = kt(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
450
+ }, $t = /*#__PURE__*/ new Set(["left", "top"]);
451
+ async function en(e, t) {
452
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Ot(n), s = kt(n), c = Mt(n) === "y", l = $t.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Dt(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
469
453
  mainAxis: d,
470
454
  crossAxis: 0,
471
455
  alignmentAxis: null
@@ -482,13 +466,13 @@ async function nn(e, t) {
482
466
  y: p * u
483
467
  };
484
468
  }
485
- var rn = function(e) {
469
+ var tn = function(e) {
486
470
  return e === void 0 && (e = 0), {
487
471
  name: "offset",
488
472
  options: e,
489
473
  async fn(t) {
490
474
  var n;
491
- let { x: r, y: i, placement: a, middlewareData: o } = t, s = await nn(t, e);
475
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await en(t, e);
492
476
  return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
493
477
  x: r + s.x,
494
478
  y: i + s.y,
@@ -499,7 +483,7 @@ var rn = function(e) {
499
483
  };
500
484
  }
501
485
  };
502
- }, an = function(e) {
486
+ }, nn = function(e) {
503
487
  return e === void 0 && (e = {}), {
504
488
  name: "shift",
505
489
  options: e,
@@ -510,10 +494,10 @@ var rn = function(e) {
510
494
  x: t,
511
495
  y: n
512
496
  };
513
- } }, ...l } = kt(e, t), u = {
497
+ } }, ...l } = Dt(e, t), u = {
514
498
  x: n,
515
499
  y: r
516
- }, d = await a.detectOverflow(t, l), f = Pt(i), p = Mt(f), m = u[p], h = u[f], g = (e, t) => Ot(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
500
+ }, d = await a.detectOverflow(t, l), f = Mt(i), p = At(f), m = u[p], h = u[f], g = (e, t) => Et(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
517
501
  o && (m = g(p, m)), s && (h = g(f, h));
518
502
  let _ = c.fn({
519
503
  ...t,
@@ -536,39 +520,39 @@ var rn = function(e) {
536
520
  };
537
521
  //#endregion
538
522
  //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
539
- function on() {
523
+ function rn() {
540
524
  return typeof window < "u";
541
525
  }
542
- function sn(e) {
543
- return ln(e) ? (e.nodeName || "").toLowerCase() : "#document";
526
+ function an(e) {
527
+ return sn(e) ? (e.nodeName || "").toLowerCase() : "#document";
544
528
  }
545
529
  function X(e) {
546
530
  var t;
547
531
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
548
532
  }
549
- function cn(e) {
550
- return ((ln(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
533
+ function on(e) {
534
+ return ((sn(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
551
535
  }
552
- function ln(e) {
553
- return on() ? e instanceof Node || e instanceof X(e).Node : !1;
536
+ function sn(e) {
537
+ return rn() ? e instanceof Node || e instanceof X(e).Node : !1;
554
538
  }
555
539
  function Z(e) {
556
- return on() ? e instanceof Element || e instanceof X(e).Element : !1;
540
+ return rn() ? e instanceof Element || e instanceof X(e).Element : !1;
557
541
  }
558
- function un(e) {
559
- return on() ? e instanceof HTMLElement || e instanceof X(e).HTMLElement : !1;
542
+ function cn(e) {
543
+ return rn() ? e instanceof HTMLElement || e instanceof X(e).HTMLElement : !1;
560
544
  }
561
- function dn(e) {
562
- return !on() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof X(e).ShadowRoot;
545
+ function ln(e) {
546
+ return !rn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof X(e).ShadowRoot;
563
547
  }
564
- function fn(e) {
548
+ function un(e) {
565
549
  let { overflow: t, overflowX: n, overflowY: r, display: i } = Q(e);
566
550
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
567
551
  }
568
- function pn(e) {
569
- return /^(table|td|th)$/.test(sn(e));
552
+ function dn(e) {
553
+ return /^(table|td|th)$/.test(an(e));
570
554
  }
571
- function mn(e) {
555
+ function fn(e) {
572
556
  try {
573
557
  if (e.matches(":popover-open")) return !0;
574
558
  } catch {}
@@ -578,30 +562,30 @@ function mn(e) {
578
562
  return !1;
579
563
  }
580
564
  }
581
- var hn = /transform|translate|scale|rotate|perspective|filter/, gn = /paint|layout|strict|content/, _n = (e) => !!e && e !== "none", vn;
582
- function yn(e) {
565
+ var pn = /transform|translate|scale|rotate|perspective|filter/, mn = /paint|layout|strict|content/, hn = (e) => !!e && e !== "none", gn;
566
+ function _n(e) {
583
567
  let t = Z(e) ? Q(e) : e;
584
- return _n(t.transform) || _n(t.translate) || _n(t.scale) || _n(t.rotate) || _n(t.perspective) || !xn() && (_n(t.backdropFilter) || _n(t.filter)) || hn.test(t.willChange || "") || gn.test(t.contain || "");
568
+ return hn(t.transform) || hn(t.translate) || hn(t.scale) || hn(t.rotate) || hn(t.perspective) || !yn() && (hn(t.backdropFilter) || hn(t.filter)) || pn.test(t.willChange || "") || mn.test(t.contain || "");
585
569
  }
586
- function bn(e) {
587
- let t = wn(e);
588
- for (; un(t) && !Sn(t);) {
589
- if (yn(t)) return t;
590
- if (mn(t)) return null;
591
- t = wn(t);
570
+ function vn(e) {
571
+ let t = Sn(e);
572
+ for (; cn(t) && !bn(t);) {
573
+ if (_n(t)) return t;
574
+ if (fn(t)) return null;
575
+ t = Sn(t);
592
576
  }
593
577
  return null;
594
578
  }
595
- function xn() {
596
- return vn ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), vn;
579
+ function yn() {
580
+ return gn ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), gn;
597
581
  }
598
- function Sn(e) {
599
- return /^(html|body|#document)$/.test(sn(e));
582
+ function bn(e) {
583
+ return /^(html|body|#document)$/.test(an(e));
600
584
  }
601
585
  function Q(e) {
602
586
  return X(e).getComputedStyle(e);
603
587
  }
604
- function Cn(e) {
588
+ function xn(e) {
605
589
  return Z(e) ? {
606
590
  scrollLeft: e.scrollLeft,
607
591
  scrollTop: e.scrollTop
@@ -610,102 +594,102 @@ function Cn(e) {
610
594
  scrollTop: e.scrollY
611
595
  };
612
596
  }
613
- function wn(e) {
614
- if (sn(e) === "html") return e;
615
- let t = e.assignedSlot || e.parentNode || dn(e) && e.host || cn(e);
616
- return dn(t) ? t.host : t;
597
+ function Sn(e) {
598
+ if (an(e) === "html") return e;
599
+ let t = e.assignedSlot || e.parentNode || ln(e) && e.host || on(e);
600
+ return ln(t) ? t.host : t;
617
601
  }
618
- function Tn(e) {
619
- let t = wn(e);
620
- return Sn(t) ? (e.ownerDocument || e).body : un(t) && fn(t) ? t : Tn(t);
602
+ function Cn(e) {
603
+ let t = Sn(e);
604
+ return bn(t) ? (e.ownerDocument || e).body : cn(t) && un(t) ? t : Cn(t);
621
605
  }
622
- function En(e, t, n) {
606
+ function wn(e, t, n) {
623
607
  t === void 0 && (t = []), n === void 0 && (n = !0);
624
- let r = Tn(e), i = r === e.ownerDocument?.body, a = X(r);
608
+ let r = Cn(e), i = r === e.ownerDocument?.body, a = X(r);
625
609
  if (i) {
626
- let e = Dn(a);
627
- return t.concat(a, a.visualViewport || [], fn(r) ? r : [], e && n ? En(e) : []);
610
+ let e = Tn(a);
611
+ return t.concat(a, a.visualViewport || [], un(r) ? r : [], e && n ? wn(e) : []);
628
612
  }
629
- return t.concat(r, En(r, [], n));
613
+ return t.concat(r, wn(r, [], n));
630
614
  }
631
- function Dn(e) {
615
+ function Tn(e) {
632
616
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
633
617
  }
634
618
  //#endregion
635
619
  //#region ../../node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
636
- function On(e) {
637
- let t = Q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = un(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Et(n) !== a || Et(r) !== o;
620
+ function En(e) {
621
+ let t = Q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = cn(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = wt(n) !== a || wt(r) !== o;
638
622
  return s && (n = a, r = o), {
639
623
  width: n,
640
624
  height: r,
641
625
  $: s
642
626
  };
643
627
  }
644
- function kn(e) {
628
+ function Dn(e) {
645
629
  return Z(e) ? e : e.contextElement;
646
630
  }
647
- function An(e) {
648
- let t = kn(e);
649
- if (!un(t)) return Y(1);
650
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = On(t), o = (a ? Et(n.width) : n.width) / r, s = (a ? Et(n.height) : n.height) / i;
631
+ function On(e) {
632
+ let t = Dn(e);
633
+ if (!cn(t)) return Y(1);
634
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = En(t), o = (a ? wt(n.width) : n.width) / r, s = (a ? wt(n.height) : n.height) / i;
651
635
  return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
652
636
  x: o,
653
637
  y: s
654
638
  };
655
639
  }
656
- var jn = /*#__PURE__*/ Y(0);
657
- function Mn(e) {
640
+ var kn = /*#__PURE__*/ Y(0);
641
+ function An(e) {
658
642
  let t = X(e);
659
- return !xn() || !t.visualViewport ? jn : {
643
+ return !yn() || !t.visualViewport ? kn : {
660
644
  x: t.visualViewport.offsetLeft,
661
645
  y: t.visualViewport.offsetTop
662
646
  };
663
647
  }
664
- function Nn(e, t, n) {
648
+ function jn(e, t, n) {
665
649
  return t === void 0 && (t = !1), !!n && t && n === X(e);
666
650
  }
667
- function Pn(e, t, n, r) {
651
+ function Mn(e, t, n, r) {
668
652
  t === void 0 && (t = !1), n === void 0 && (n = !1);
669
- let i = e.getBoundingClientRect(), a = kn(e), o = Y(1);
670
- t && (r ? Z(r) && (o = An(r)) : o = An(e));
671
- let s = Nn(a, n, r) ? Mn(a) : Y(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
653
+ let i = e.getBoundingClientRect(), a = Dn(e), o = Y(1);
654
+ t && (r ? Z(r) && (o = On(r)) : o = On(e));
655
+ let s = jn(a, n, r) ? An(a) : Y(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
672
656
  if (a && r) {
673
- let e = X(a), t = Z(r) ? X(r) : r, n = e, i = Dn(n);
657
+ let e = X(a), t = Z(r) ? X(r) : r, n = e, i = Tn(n);
674
658
  for (; i && t !== n;) {
675
- let e = An(i), t = i.getBoundingClientRect(), r = Q(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
676
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = X(i), i = Dn(n);
659
+ let e = On(i), t = i.getBoundingClientRect(), r = Q(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
660
+ c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = X(i), i = Tn(n);
677
661
  }
678
662
  }
679
- return Jt({
663
+ return Kt({
680
664
  width: u,
681
665
  height: d,
682
666
  x: c,
683
667
  y: l
684
668
  });
685
669
  }
686
- function Fn(e, t) {
687
- let n = Cn(e).scrollLeft;
688
- return t ? t.left + n : Pn(cn(e)).left + n;
670
+ function Nn(e, t) {
671
+ let n = xn(e).scrollLeft;
672
+ return t ? t.left + n : Mn(on(e)).left + n;
689
673
  }
690
- function In(e, t) {
674
+ function Pn(e, t) {
691
675
  let n = e.getBoundingClientRect();
692
676
  return {
693
- x: n.left + t.scrollLeft - Fn(e, n),
677
+ x: n.left + t.scrollLeft - Nn(e, n),
694
678
  y: n.top + t.scrollTop
695
679
  };
696
680
  }
697
- function Ln(e) {
698
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = cn(r), s = t ? mn(t.floating) : !1;
681
+ function Fn(e) {
682
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = on(r), s = t ? fn(t.floating) : !1;
699
683
  if (r === o || s && a) return n;
700
684
  let c = {
701
685
  scrollLeft: 0,
702
686
  scrollTop: 0
703
- }, l = Y(1), u = Y(0), d = un(r);
704
- if ((d || !a) && ((sn(r) !== "body" || fn(o)) && (c = Cn(r)), d)) {
705
- let e = Pn(r);
706
- l = An(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
687
+ }, l = Y(1), u = Y(0), d = cn(r);
688
+ if ((d || !a) && ((an(r) !== "body" || un(o)) && (c = xn(r)), d)) {
689
+ let e = Mn(r);
690
+ l = On(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
707
691
  }
708
- let f = o && !d && !a ? In(o, c) : Y(0);
692
+ let f = o && !d && !a ? Pn(o, c) : Y(0);
709
693
  return {
710
694
  width: n.width * l.x,
711
695
  height: n.height * l.y,
@@ -713,29 +697,29 @@ function Ln(e) {
713
697
  y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
714
698
  };
715
699
  }
716
- function Rn(e) {
700
+ function In(e) {
717
701
  return e.getClientRects ? Array.from(e.getClientRects()) : [];
718
702
  }
719
- function zn(e) {
720
- let t = Cn(e), n = e.ownerDocument.body, r = Tt(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = Tt(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + Fn(e), o = -t.scrollTop;
721
- return Q(n).direction === "rtl" && (a += Tt(e.clientWidth, n.clientWidth) - r), {
703
+ function Ln(e) {
704
+ let t = xn(e), n = e.ownerDocument.body, r = Ct(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = Ct(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + Nn(e), o = -t.scrollTop;
705
+ return Q(n).direction === "rtl" && (a += Ct(e.clientWidth, n.clientWidth) - r), {
722
706
  width: r,
723
707
  height: i,
724
708
  x: a,
725
709
  y: o
726
710
  };
727
711
  }
728
- var Bn = 25;
729
- function Vn(e, t, n) {
712
+ var Rn = 25;
713
+ function zn(e, t, n) {
730
714
  n === void 0 && (n = "viewport");
731
- let r = n === "layoutViewport", i = X(e), a = cn(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
715
+ let r = n === "layoutViewport", i = X(e), a = on(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
732
716
  if (o) {
733
- let e = !xn() || t === "fixed";
717
+ let e = !yn() || t === "fixed";
734
718
  r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
735
719
  }
736
- if (Fn(a) <= 0) {
720
+ if (Nn(a) <= 0) {
737
721
  let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
738
- o <= Bn && (s -= o);
722
+ o <= Rn && (s -= o);
739
723
  }
740
724
  return {
741
725
  width: s,
@@ -744,8 +728,8 @@ function Vn(e, t, n) {
744
728
  y: u
745
729
  };
746
730
  }
747
- function Hn(e, t) {
748
- let n = Pn(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = An(e);
731
+ function Bn(e, t) {
732
+ let n = Mn(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = On(e);
749
733
  return {
750
734
  width: e.clientWidth * a.x,
751
735
  height: e.clientHeight * a.y,
@@ -753,13 +737,13 @@ function Hn(e, t) {
753
737
  y: r * a.y
754
738
  };
755
739
  }
756
- function Un(e, t, n) {
740
+ function Vn(e, t, n) {
757
741
  let r;
758
- if (t === "viewport" || t === "layoutViewport") r = Vn(e, n, t);
759
- else if (t === "document") r = zn(cn(e));
760
- else if (Z(t)) r = Hn(t, n);
742
+ if (t === "viewport" || t === "layoutViewport") r = zn(e, n, t);
743
+ else if (t === "document") r = Ln(on(e));
744
+ else if (Z(t)) r = Bn(t, n);
761
745
  else {
762
- let n = Mn(e);
746
+ let n = An(e);
763
747
  r = {
764
748
  x: t.x - n.x,
765
749
  y: t.y - n.y,
@@ -767,23 +751,23 @@ function Un(e, t, n) {
767
751
  height: t.height
768
752
  };
769
753
  }
770
- return Jt(r);
754
+ return Kt(r);
771
755
  }
772
- function Wn(e, t) {
756
+ function Hn(e, t) {
773
757
  let n = t.get(e);
774
758
  if (n) return n;
775
- let r = En(e, [], !1).filter((e) => Z(e) && sn(e) !== "body"), i = null, a = Q(e).position === "fixed", o = a ? wn(e) : e;
776
- for (; Z(o) && !Sn(o);) {
777
- let e = Q(o), t = yn(o), n = i ? i.position : a ? "fixed" : "";
778
- !t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = wn(o);
759
+ let r = wn(e, [], !1).filter((e) => Z(e) && an(e) !== "body"), i = null, a = Q(e).position === "fixed", o = a ? Sn(e) : e;
760
+ for (; Z(o) && !bn(o);) {
761
+ let e = Q(o), t = _n(o), n = i ? i.position : a ? "fixed" : "";
762
+ !t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = Sn(o);
779
763
  }
780
764
  return t.set(e, r), r;
781
765
  }
782
- function Gn(e) {
783
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? mn(t) ? [] : Wn(t, this._c) : [].concat(n), r], o = Un(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
766
+ function Un(e) {
767
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? fn(t) ? [] : Hn(t, this._c) : [].concat(n), r], o = Vn(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
784
768
  for (let e = 1; e < a.length; e++) {
785
- let n = Un(t, a[e], i);
786
- s = Tt(n.top, s), c = wt(n.right, c), l = wt(n.bottom, l), u = Tt(n.left, u);
769
+ let n = Vn(t, a[e], i);
770
+ s = Ct(n.top, s), c = St(n.right, c), l = St(n.bottom, l), u = Ct(n.left, u);
787
771
  }
788
772
  return {
789
773
  width: c - u,
@@ -792,24 +776,24 @@ function Gn(e) {
792
776
  y: s
793
777
  };
794
778
  }
795
- function Kn(e) {
796
- let { width: t, height: n } = On(e);
779
+ function Wn(e) {
780
+ let { width: t, height: n } = En(e);
797
781
  return {
798
782
  width: t,
799
783
  height: n
800
784
  };
801
785
  }
802
- function qn(e, t, n) {
803
- let r = un(t), i = cn(t), a = n === "fixed", o = Pn(e, !0, a, t), s = {
786
+ function Gn(e, t, n) {
787
+ let r = cn(t), i = on(t), a = n === "fixed", o = Mn(e, !0, a, t), s = {
804
788
  scrollLeft: 0,
805
789
  scrollTop: 0
806
790
  }, c = Y(0);
807
- if ((r || !a) && ((sn(t) !== "body" || fn(i)) && (s = Cn(t)), r)) {
808
- let e = Pn(t, !0, a, t);
791
+ if ((r || !a) && ((an(t) !== "body" || un(i)) && (s = xn(t)), r)) {
792
+ let e = Mn(t, !0, a, t);
809
793
  c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
810
794
  }
811
- !r && i && (c.x = Fn(i));
812
- let l = i && !r && !a ? In(i, s) : Y(0);
795
+ !r && i && (c.x = Nn(i));
796
+ let l = i && !r && !a ? Pn(i, s) : Y(0);
813
797
  return {
814
798
  x: o.left + s.scrollLeft - c.x - l.x,
815
799
  y: o.top + s.scrollTop - c.y - l.y,
@@ -817,34 +801,34 @@ function qn(e, t, n) {
817
801
  height: o.height
818
802
  };
819
803
  }
820
- function Jn(e) {
804
+ function Kn(e) {
821
805
  return Q(e).position === "static";
822
806
  }
823
- function Yn(e, t) {
824
- if (!un(e) || Q(e).position === "fixed") return null;
807
+ function qn(e, t) {
808
+ if (!cn(e) || Q(e).position === "fixed") return null;
825
809
  if (t) return t(e);
826
810
  let n = e.offsetParent;
827
- return cn(e) === n && (n = n.ownerDocument.body), n;
811
+ return on(e) === n && (n = n.ownerDocument.body), n;
828
812
  }
829
- function Xn(e, t) {
813
+ function Jn(e, t) {
830
814
  let n = X(e);
831
- if (mn(e)) return n;
832
- if (!un(e)) {
833
- let t = wn(e);
834
- for (; t && !Sn(t);) {
835
- if (Z(t) && !Jn(t)) return t;
836
- t = wn(t);
815
+ if (fn(e)) return n;
816
+ if (!cn(e)) {
817
+ let t = Sn(e);
818
+ for (; t && !bn(t);) {
819
+ if (Z(t) && !Kn(t)) return t;
820
+ t = Sn(t);
837
821
  }
838
822
  return n;
839
823
  }
840
- let r = Yn(e, t);
841
- for (; r && pn(r) && Jn(r);) r = Yn(r, t);
842
- return r && Sn(r) && Jn(r) && !yn(r) ? n : r || bn(e) || n;
824
+ let r = qn(e, t);
825
+ for (; r && dn(r) && Kn(r);) r = qn(r, t);
826
+ return r && bn(r) && Kn(r) && !_n(r) ? n : r || vn(e) || n;
843
827
  }
844
- var Zn = async function(e) {
845
- let t = this.getOffsetParent || Xn, n = this.getDimensions, r = await n(e.floating);
828
+ var Yn = async function(e) {
829
+ let t = this.getOffsetParent || Jn, n = this.getDimensions, r = await n(e.floating);
846
830
  return {
847
- reference: qn(e.reference, await t(e.floating), e.strategy),
831
+ reference: Gn(e.reference, await t(e.floating), e.strategy),
848
832
  floating: {
849
833
  x: 0,
850
834
  y: 0,
@@ -853,77 +837,77 @@ var Zn = async function(e) {
853
837
  }
854
838
  };
855
839
  };
856
- function Qn(e) {
840
+ function Xn(e) {
857
841
  return Q(e).direction === "rtl";
858
842
  }
859
- var $n = {
860
- convertOffsetParentRelativeRectToViewportRelativeRect: Ln,
861
- getDocumentElement: cn,
862
- getClippingRect: Gn,
863
- getOffsetParent: Xn,
864
- getElementRects: Zn,
865
- getClientRects: Rn,
866
- getDimensions: Kn,
867
- getScale: An,
843
+ var Zn = {
844
+ convertOffsetParentRelativeRectToViewportRelativeRect: Fn,
845
+ getDocumentElement: on,
846
+ getClippingRect: Un,
847
+ getOffsetParent: Jn,
848
+ getElementRects: Yn,
849
+ getClientRects: In,
850
+ getDimensions: Wn,
851
+ getScale: On,
868
852
  isElement: Z,
869
- isRTL: Qn
870
- }, er = rn, tr = an, nr = en, rr = $t, ir = (e, t, n) => {
853
+ isRTL: Xn
854
+ }, Qn = tn, $n = nn, er = Qt, tr = Zt, nr = (e, t, n) => {
871
855
  let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
872
- ...$n,
856
+ ...Zn,
873
857
  ...i.platform,
874
858
  _c: r
875
859
  };
876
- return Qt(e, t, {
860
+ return Xt(e, t, {
877
861
  ...i,
878
862
  platform: a
879
863
  });
880
864
  };
881
865
  //#endregion
882
866
  //#region ../../node_modules/.pnpm/@floating-ui+vue@2.0.1_vue@3.5.43_typescript@6.0.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
883
- function ar(e) {
867
+ function rr(e) {
884
868
  return typeof e == "object" && !!e && "$el" in e;
885
869
  }
886
- function or(e) {
887
- if (ar(e)) {
870
+ function ir(e) {
871
+ if (rr(e)) {
888
872
  let t = e.$el;
889
- return ln(t) && sn(t) === "#comment" ? null : t;
873
+ return sn(t) && an(t) === "#comment" ? null : t;
890
874
  }
891
875
  return e;
892
876
  }
893
- function sr(e) {
877
+ function ar(e) {
894
878
  return {
895
879
  name: "arrow",
896
880
  options: e,
897
881
  fn(t) {
898
- let n = or(Ye(e.element));
899
- return n == null ? {} : rr({
882
+ let n = ir(Ye(e.element));
883
+ return n == null ? {} : tr({
900
884
  element: n,
901
885
  padding: e.padding
902
886
  }).fn(t);
903
887
  }
904
888
  };
905
889
  }
906
- function cr(e) {
890
+ function or(e) {
907
891
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
908
892
  }
909
- function lr(e, t) {
910
- let n = cr(e);
893
+ function sr(e, t) {
894
+ let n = or(e);
911
895
  return Math.round(t * n) / n;
912
896
  }
913
- function ur(e, t, n) {
897
+ function cr(e, t, n) {
914
898
  n === void 0 && (n = {});
915
- let r = n.whileElementsMounted, i = N(() => Ye(n.open) ?? !0), a = N(() => Ye(n.middleware)), o = N(() => Ye(n.placement) ?? "bottom"), s = N(() => Ye(n.strategy) ?? "absolute"), c = N(() => Ye(n.transform) ?? !0), l = N(() => or(e.value)), u = N(() => or(t.value)), d = U(0), f = U(0), p = U(s.value), m = U(o.value), h = Je({}), g = U(!1), _ = N(() => {
899
+ let r = n.whileElementsMounted, i = M(() => Ye(n.open) ?? !0), a = M(() => Ye(n.middleware)), o = M(() => Ye(n.placement) ?? "bottom"), s = M(() => Ye(n.strategy) ?? "absolute"), c = M(() => Ye(n.transform) ?? !0), l = M(() => ir(e.value)), u = M(() => ir(t.value)), d = H(0), f = H(0), p = H(s.value), m = H(o.value), h = Je({}), g = H(!1), _ = M(() => {
916
900
  let e = {
917
901
  position: p.value,
918
902
  left: "0",
919
903
  top: "0"
920
904
  };
921
905
  if (!u.value) return e;
922
- let t = lr(u.value, d.value), n = lr(u.value, f.value);
906
+ let t = sr(u.value, d.value), n = sr(u.value, f.value);
923
907
  return c.value ? {
924
908
  ...e,
925
909
  transform: "translate(" + t + "px, " + n + "px)",
926
- ...cr(u.value) >= 1.5 && { willChange: "transform" }
910
+ ...or(u.value) >= 1.5 && { willChange: "transform" }
927
911
  } : {
928
912
  position: p.value,
929
913
  left: t + "px",
@@ -933,7 +917,7 @@ function ur(e, t, n) {
933
917
  function y() {
934
918
  if (l.value == null || u.value == null) return;
935
919
  let e = i.value;
936
- ir(l.value, u.value, {
920
+ nr(l.value, u.value, {
937
921
  middleware: a.value,
938
922
  placement: o.value,
939
923
  strategy: s.value
@@ -955,7 +939,7 @@ function ur(e, t, n) {
955
939
  o,
956
940
  s,
957
941
  i
958
- ], y, { flush: "sync" }), J([l, u], x, { flush: "sync" }), J(i, S, { flush: "sync" }), Pe() && He(b), {
942
+ ], y, { flush: "sync" }), J([l, u], x, { flush: "sync" }), J(i, S, { flush: "sync" }), Fe() && Ue(b), {
959
943
  x: qe(d),
960
944
  y: qe(f),
961
945
  strategy: qe(p),
@@ -968,18 +952,18 @@ function ur(e, t, n) {
968
952
  }
969
953
  //#endregion
970
954
  //#region src/client/theme-default/components/TdTooltip.vue
971
- var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
955
+ var lr = /*#__PURE__*/ k(/* @__PURE__ */ z({
972
956
  inheritAttrs: !1,
973
957
  __name: "TdTooltip",
974
958
  props: { text: {} },
975
959
  setup(e) {
976
- let t = Ze("trigger"), n = Ze("tooltip"), r = Ze("arrowEl"), i = U(!1), a, o, { floatingStyles: s, middlewareData: c, placement: l } = ur(t, n, {
960
+ let t = Ze("trigger"), n = Ze("tooltip"), r = Ze("arrowEl"), i = H(!1), a, o, { floatingStyles: s, middlewareData: c, placement: l } = cr(t, n, {
977
961
  placement: "right",
978
962
  middleware: [
979
- er(8),
980
- nr(),
981
- tr({ padding: 8 }),
982
- sr({ element: r })
963
+ Qn(8),
964
+ er(),
965
+ $n({ padding: 8 }),
966
+ ar({ element: r })
983
967
  ]
984
968
  });
985
969
  function u() {
@@ -991,32 +975,32 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
991
975
  i.value = !0;
992
976
  }, 400));
993
977
  }
994
- Be(u);
978
+ Ve(u);
995
979
  function f() {
996
980
  u(), o = setTimeout(() => {
997
981
  i.value = !1;
998
982
  }, 100);
999
983
  }
1000
- return (r, a) => (H(), I(M, null, [L("span", Le({
984
+ return (r, a) => (V(), F(j, null, [I("span", Re({
1001
985
  ref_key: "trigger",
1002
986
  ref: t
1003
987
  }, r.$attrs, {
1004
988
  class: "td-tooltip-trigger",
1005
989
  onMouseenter: d,
1006
990
  onMouseleave: f
1007
- }), [Ge(r.$slots, "default", {}, void 0, !0)], 16), (H(), P(Ne, { to: "body" }, [i.value ? (H(), I("div", {
991
+ }), [W(r.$slots, "default", {}, void 0, !0)], 16), (V(), N(Pe, { to: "body" }, [i.value ? (V(), F("div", {
1008
992
  key: 0,
1009
993
  ref_key: "tooltip",
1010
994
  ref: n,
1011
995
  class: "td-tooltip",
1012
- style: ze(q(s)),
996
+ style: Be(q(s)),
1013
997
  role: "tooltip",
1014
998
  onMouseenter: u,
1015
999
  onMouseleave: f
1016
- }, [R(K(e.text) + " ", 1), L("div", {
1000
+ }, [L(K(e.text) + " ", 1), I("div", {
1017
1001
  ref: "arrowEl",
1018
1002
  class: "td-tooltip-arrow",
1019
- style: ze({
1003
+ style: Be({
1020
1004
  left: q(c).arrow?.x === void 0 ? "" : `${q(c).arrow.x}px`,
1021
1005
  top: q(c).arrow?.y === void 0 ? "" : `${q(c).arrow.y}px`,
1022
1006
  ...q(l).startsWith("bottom") ? { top: "-4px" } : {},
@@ -1024,34 +1008,64 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1024
1008
  ...q(l).startsWith("right") ? { left: "-4px" } : {},
1025
1009
  ...q(l).startsWith("left") ? { right: "-4px" } : {}
1026
1010
  })
1027
- }, null, 4)], 36)) : F("", !0)]))], 64));
1011
+ }, null, 4)], 36)) : P("", !0)]))], 64));
1028
1012
  }
1029
- }), [["__scopeId", "data-v-fca9f648"]]), fr = {
1030
- key: 0,
1031
- class: "td-tree-node"
1032
- }, pr = { class: "td-tree-label" }, mr = ["aria-expanded"], hr = { class: "td-tree-label-text" }, gr = ["href"], _r = { class: "td-tree-count" }, vr = ["href"], yr = ["innerHTML"], br = {
1013
+ }), [["__scopeId", "data-v-fca9f648"]]);
1014
+ //#endregion
1015
+ //#region src/client/theme-default/utils/renderInlineMarkup.ts
1016
+ function ur(e) {
1017
+ let t = H(dr(e()));
1018
+ return $e((n) => {
1019
+ let r = e();
1020
+ if (!r.includes("$")) {
1021
+ t.value = dr(r);
1022
+ return;
1023
+ }
1024
+ let i = !0;
1025
+ n(() => {
1026
+ i = !1;
1027
+ }), import("../renderMath-C2Z7HdfG.js").then(({ renderInlineMarkup: e }) => {
1028
+ i && (t.value = e(r));
1029
+ });
1030
+ }), t;
1031
+ }
1032
+ function dr(e) {
1033
+ let t = 0, n = "";
1034
+ for (let r of e.matchAll(Ne)) 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;
1035
+ return n += m(e.slice(t)), n;
1036
+ }
1037
+ //#endregion
1038
+ //#region src/client/theme-default/components/TdTree/TdTreeNodeLabel.vue?vue&type=script&setup=true&lang.ts
1039
+ var fr = ["innerHTML"], pr = /* @__PURE__ */ z({
1040
+ __name: "TdTreeNodeLabel",
1041
+ props: { text: {} },
1042
+ setup(e) {
1043
+ let t = ur(() => e.text);
1044
+ return (e, n) => (V(), F("span", { innerHTML: q(t) }, null, 8, fr));
1045
+ }
1046
+ }), mr = ["aria-expanded"], hr = { class: "td-tree-label" }, gr = { class: "td-tree-label-text" }, _r = ["href"], vr = { class: "td-tree-count" }, yr = ["href"], br = {
1033
1047
  key: 2,
1034
1048
  class: "td-tree-time"
1035
- }, xr = 5, Sr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1049
+ }, xr = 5, Sr = /*#__PURE__*/ k(/* @__PURE__ */ z({
1036
1050
  __name: "TdTreeNode",
1037
1051
  props: {
1038
1052
  node: {},
1039
1053
  urlPrefix: { default: "" }
1040
1054
  },
1041
1055
  setup(e) {
1042
- let r = O(), { withBase: i } = j(), a = N(() => t(e.urlPrefix, e.node.name)), o = N(() => d(e.node)), s = N(() => o.value ? n(o.value.filepath) : C(a.value)), l = N(() => i(s.value)), u = N(() => o.value?.label ?? c(e.node.name)), m = N(() => o.value?.icon ? k(o.value.icon.name) : void 0), h = N(() => e.node.entries.filter((e) => e.kind === "dir" || !p(e.item.filepath))), _ = N(() => 0 < e.node.entries.length), v = N(() => y(e.node));
1056
+ let r = O(), { withBase: i } = A(), o = M(() => t(e.urlPrefix, e.node.name)), s = M(() => d(e.node)), c = M(() => s.value ? n(s.value.filepath) : C(o.value)), l = M(() => i(c.value)), u = M(() => s.value?.label ?? a(e.node.name)), m = M(() => s.value?.icon ? pe(s.value.icon.name) : void 0), h = M(() => e.node.entries.filter((e) => e.kind === "dir" || !p(e.item.filepath))), _ = M(() => 0 < e.node.entries.length), v = M(() => y(e.node));
1043
1057
  function y(e) {
1044
1058
  let t = 0;
1045
1059
  for (let n of e.entries) n.kind === "file" ? t++ : t += y(n.node);
1046
1060
  return t;
1047
1061
  }
1048
- let b = U(!g(a.value, r.path)), x = U(!1), S = N(() => h.value.filter((e) => e.kind === "file").length), T = N(() => x.value ? 0 : Math.max(0, S.value - xr)), ee = N(() => {
1062
+ let b = H(!g(o.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 - xr)), te = M(() => {
1049
1063
  if (x.value) return h.value;
1050
1064
  let e = 0;
1051
1065
  return h.value.filter((t) => t.kind === "dir" || ++e <= xr);
1052
1066
  });
1053
1067
  J(() => r.path, (e) => {
1054
- g(a.value, e) && (b.value = !1);
1068
+ g(o.value, e) && (b.value = !1);
1055
1069
  });
1056
1070
  function ne() {
1057
1071
  x.value = !0;
@@ -1059,133 +1073,149 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1059
1073
  function E(e) {
1060
1074
  return r.path === e;
1061
1075
  }
1062
- function re() {
1076
+ function re(e) {
1077
+ e.key === "ArrowRight" && b.value ? (b.value = !1, e.preventDefault()) : e.key === "ArrowLeft" && !b.value && (b.value = !0, e.preventDefault());
1078
+ }
1079
+ function D() {
1063
1080
  b.value = !b.value;
1064
1081
  }
1065
1082
  return (e, t) => {
1066
1083
  let r = Ke("TdTreeNode", !0);
1067
- return _.value ? (H(), I("div", fr, [L("div", pr, [
1068
- L("button", {
1084
+ return _.value ? (V(), F("div", {
1085
+ key: 0,
1086
+ class: "td-tree-node",
1087
+ role: "treeitem",
1088
+ "aria-expanded": !b.value
1089
+ }, [I("div", hr, [
1090
+ I("button", {
1069
1091
  type: "button",
1070
1092
  class: "td-tree-toggle",
1071
- "aria-expanded": !b.value,
1072
- onClick: re
1073
- }, [z(q(te), {
1093
+ onClick: D,
1094
+ onKeydown: re
1095
+ }, [R(q(ee), {
1074
1096
  size: 14,
1075
- class: V(["td-tree-caret", { "is-collapsed": b.value }])
1076
- }, null, 8, ["class"]), L("span", hr, K(u.value), 1)], 8, mr),
1077
- L("a", {
1097
+ class: B(["td-tree-caret", { "is-collapsed": b.value }])
1098
+ }, null, 8, ["class"]), I("span", gr, K(u.value), 1)], 32),
1099
+ I("a", {
1078
1100
  href: l.value,
1079
- class: V(["td-tree-index-btn", { "is-active": E(s.value) }])
1080
- }, [m.value ? (H(), P(G(m.value), {
1101
+ class: B(["td-tree-index-btn", { "is-active": E(c.value) }])
1102
+ }, [m.value ? (V(), N(G(m.value), {
1081
1103
  key: 0,
1082
1104
  size: 12
1083
- })) : E(s.value) ? (H(), P(q(ct), {
1105
+ })) : E(c.value) ? (V(), N(q(ct), {
1084
1106
  key: 1,
1085
1107
  size: 12
1086
- })) : (H(), P(q(Ee), {
1108
+ })) : (V(), N(q(Ee), {
1087
1109
  key: 2,
1088
1110
  size: 12
1089
- }))], 10, gr),
1090
- L("span", _r, K(v.value), 1)
1091
- ]), L("div", { class: V(["td-collapse td-tree-children", { "is-collapsed": b.value }]) }, [L("div", null, [(H(!0), I(M, null, W(ee.value, (e) => (H(), I(M, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (H(), P(r, {
1111
+ }))], 10, _r),
1112
+ I("span", vr, K(v.value), 1)
1113
+ ]), I("div", {
1114
+ class: B(["td-collapse td-tree-children", { "is-collapsed": b.value }]),
1115
+ role: "group"
1116
+ }, [I("div", null, [(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, {
1092
1117
  key: 0,
1093
1118
  node: e.node,
1094
- "url-prefix": a.value
1095
- }, null, 8, ["node", "url-prefix"])) : (H(), I("a", {
1119
+ "url-prefix": o.value
1120
+ }, null, 8, ["node", "url-prefix"])) : (V(), F("a", {
1096
1121
  key: 1,
1097
1122
  href: q(i)(q(n)(e.item.filepath)),
1098
- class: V(["td-tree-link", { "is-active": E(q(n)(e.item.filepath)) }])
1123
+ class: B(["td-tree-link", { "is-active": E(q(n)(e.item.filepath)) }])
1099
1124
  }, [
1100
- e.item.icon && q(k)(e.item.icon.name) ? (H(), P(G(q(k)(e.item.icon.name)), {
1125
+ e.item.icon && q(pe)(e.item.icon.name) ? (V(), N(G(q(pe)(e.item.icon.name)), {
1101
1126
  key: 0,
1102
1127
  size: 14,
1103
1128
  class: "td-tree-file-icon"
1104
- })) : (H(), P(q(ue), {
1129
+ })) : (V(), N(q(le), {
1105
1130
  key: 1,
1106
1131
  size: 14,
1107
1132
  class: "td-tree-file-icon"
1108
1133
  })),
1109
- z(dr, {
1134
+ R(lr, {
1110
1135
  class: "td-tree-link-text",
1111
1136
  text: q(w)(e.item.filepath, e.item.label)
1112
1137
  }, {
1113
- default: et(() => [L("span", { innerHTML: q(Ct)(q(w)(e.item.filepath, e.item.label)) }, null, 8, yr)]),
1138
+ default: et(() => [R(pr, { text: q(w)(e.item.filepath, e.item.label) }, null, 8, ["text"])]),
1114
1139
  _: 2
1115
1140
  }, 1032, ["text"]),
1116
- e.item.fileMetadata ? (H(), I("span", br, K(q(f)(e.item.fileMetadata.mtime)), 1)) : F("", !0)
1117
- ], 10, vr))], 64))), 128)), T.value > 0 && !x.value ? (H(), I("button", {
1141
+ e.item.fileMetadata ? (V(), F("span", br, K(q(f)(e.item.fileMetadata.mtime)), 1)) : P("", !0)
1142
+ ], 10, yr))], 64))), 128)), T.value > 0 && !x.value ? (V(), F("button", {
1118
1143
  key: 0,
1119
1144
  class: "td-tree-more",
1120
1145
  type: "button",
1121
1146
  onClick: ne
1122
- }, K(T.value) + " more... ", 1)) : F("", !0)])], 2)])) : F("", !0);
1147
+ }, K(T.value) + " more... ", 1)) : P("", !0)])], 2)], 8, mr)) : P("", !0);
1123
1148
  };
1124
1149
  }
1125
- }), [["__scopeId", "data-v-cf42a4b9"]]), Cr = { class: "td-nav" }, wr = ["href"], Tr = {
1150
+ }), [["__scopeId", "data-v-87fce252"]]), Cr = {
1151
+ class: "td-nav",
1152
+ "aria-label": "Site navigation"
1153
+ }, wr = { role: "tree" }, Tr = ["href"], Er = {
1126
1154
  key: 0,
1127
1155
  class: "td-root-link-time"
1128
- }, Er = ["href"], Dr = { class: "td-root-link-text" }, Or = {
1156
+ }, Dr = ["href"], Or = { class: "td-root-link-text" }, kr = {
1129
1157
  key: 2,
1130
1158
  class: "td-root-link-time"
1131
- }, kr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1159
+ }, Ar = /*#__PURE__*/ k(/* @__PURE__ */ z({
1132
1160
  __name: "TdContentNav",
1133
1161
  props: { tree: {} },
1134
1162
  setup(e) {
1135
- let t = O(), { withBase: r } = j(), i = N(() => e.tree.entries.find((e) => e.kind === "file" && p(e.item.filepath))?.item), a = N(() => e.tree.entries.filter((e) => e.kind === "dir" || !p(e.item.filepath)));
1163
+ let t = O(), { withBase: r } = A(), i = M(() => e.tree.entries.find((e) => e.kind === "file" && p(e.item.filepath))?.item), a = M(() => e.tree.entries.filter((e) => e.kind === "dir" || !p(e.item.filepath)));
1136
1164
  function o(e) {
1137
1165
  return t.path === e;
1138
1166
  }
1139
- return (e, t) => (H(), I("nav", Cr, [L("a", {
1167
+ return (e, t) => (V(), F("nav", Cr, [I("div", wr, [I("a", {
1140
1168
  href: q(r)(i.value ? q(n)(i.value.filepath) : q(C)("/")),
1141
- class: V(["td-root-link", { "is-active": o(i.value ? q(n)(i.value.filepath) : q(C)("/")) }])
1169
+ class: B(["td-root-link", { "is-active": o(i.value ? q(n)(i.value.filepath) : q(C)("/")) }]),
1170
+ role: "treeitem"
1142
1171
  }, [
1143
- z(q(ne), {
1172
+ R(q(te), {
1144
1173
  size: 14,
1145
1174
  class: "td-root-link-icon"
1146
1175
  }),
1147
- t[0] ||= L("span", { class: "td-root-link-text" }, "Overview", -1),
1148
- i.value ? (H(), I("span", Tr, K(i.value.fileMetadata ? q(f)(i.value.fileMetadata.mtime) : ""), 1)) : F("", !0)
1149
- ], 10, wr), (H(!0), I(M, null, W(a.value, (e) => (H(), I(M, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (H(), P(Sr, {
1176
+ t[0] ||= I("span", { class: "td-root-link-text" }, "Overview", -1),
1177
+ i.value ? (V(), F("span", Er, K(i.value.fileMetadata ? q(f)(i.value.fileMetadata.mtime) : ""), 1)) : P("", !0)
1178
+ ], 10, Tr), (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(Sr, {
1150
1179
  key: 0,
1151
1180
  node: e.node
1152
- }, null, 8, ["node"])) : (H(), I("a", {
1181
+ }, null, 8, ["node"])) : (V(), F("a", {
1153
1182
  key: 1,
1154
1183
  href: q(r)(q(n)(e.item.filepath)),
1155
- class: V(["td-root-link", { "is-active": o(q(n)(e.item.filepath)) }])
1184
+ class: B(["td-root-link", { "is-active": o(q(n)(e.item.filepath)) }]),
1185
+ role: "treeitem"
1156
1186
  }, [
1157
- e.item.icon && q(k)(e.item.icon.name) ? (H(), P(G(q(k)(e.item.icon.name)), {
1187
+ e.item.icon && q(pe)(e.item.icon.name) ? (V(), N(G(q(pe)(e.item.icon.name)), {
1158
1188
  key: 0,
1159
1189
  size: 14,
1160
1190
  class: "td-root-link-icon"
1161
- })) : (H(), P(q(ue), {
1191
+ })) : (V(), N(q(le), {
1162
1192
  key: 1,
1163
1193
  size: 14,
1164
1194
  class: "td-root-link-icon"
1165
1195
  })),
1166
- L("span", Dr, K(q(w)(e.item.filepath, e.item.label)), 1),
1167
- e.item.fileMetadata ? (H(), I("span", Or, K(q(f)(e.item.fileMetadata.mtime)), 1)) : F("", !0)
1168
- ], 10, Er))], 64))), 128))]));
1196
+ I("span", Or, K(q(w)(e.item.filepath, e.item.label)), 1),
1197
+ e.item.fileMetadata ? (V(), F("span", kr, K(q(f)(e.item.fileMetadata.mtime)), 1)) : P("", !0)
1198
+ ], 10, Dr))], 64))), 128))])]));
1169
1199
  }
1170
- }), [["__scopeId", "data-v-02694810"]]), Ar = { class: "td-footer" }, jr = { key: 0 }, Mr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1200
+ }), [["__scopeId", "data-v-d02f24f2"]]), jr = { class: "td-footer" }, Mr = { key: 0 }, Nr = /*#__PURE__*/ k(/* @__PURE__ */ z({
1171
1201
  __name: "TdFooter",
1172
1202
  setup(e) {
1173
- let t = j(), n = (/* @__PURE__ */ new Date()).getFullYear();
1174
- return (e, r) => (H(), I("footer", Ar, [r[0] ||= L("span", null, [R(" Powered by "), L("a", {
1203
+ let t = A(), n = (/* @__PURE__ */ new Date()).getFullYear();
1204
+ return (e, r) => (V(), F("footer", jr, [r[0] ||= I("span", null, [L(" Powered by "), I("a", {
1175
1205
  href: "https://github.com/huydo862003/typerighter",
1176
1206
  target: "_blank",
1177
1207
  rel: "noopener noreferrer",
1178
1208
  class: "td-footer-link"
1179
- }, "Typerighter")], -1), q(t).author || q(t).license ? (H(), I("span", jr, [
1180
- q(t).license ? (H(), I(M, { key: 0 }, [R(K(q(t).license), 1)], 64)) : F("", !0),
1181
- q(t).license && q(t).author ? (H(), I(M, { key: 1 }, [R(" · ")], 64)) : F("", !0),
1182
- q(t).author ? (H(), I(M, { key: 2 }, [R("© " + K(q(n)) + " " + K(q(t).author), 1)], 64)) : F("", !0)
1183
- ])) : F("", !0)]));
1209
+ }, "Typerighter")], -1), q(t).author || q(t).license ? (V(), F("span", Mr, [
1210
+ q(t).license ? (V(), F(j, { key: 0 }, [L(K(q(t).license), 1)], 64)) : P("", !0),
1211
+ q(t).license && q(t).author ? (V(), F(j, { key: 1 }, [L(" · ")], 64)) : P("", !0),
1212
+ q(t).author ? (V(), F(j, { key: 2 }, [L("© " + K(q(n)) + " " + K(q(t).author), 1)], 64)) : P("", !0)
1213
+ ])) : P("", !0)]));
1184
1214
  }
1185
- }), [["__scopeId", "data-v-50e2a5bc"]]), Nr = {
1215
+ }), [["__scopeId", "data-v-50e2a5bc"]]), Pr = {
1186
1216
  key: 0,
1187
1217
  class: "td-dropdown-panel"
1188
- }, Pr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1218
+ }, Fr = /*#__PURE__*/ k(/* @__PURE__ */ z({
1189
1219
  inheritAttrs: !1,
1190
1220
  __name: "TdDropdown",
1191
1221
  props: {
@@ -1206,156 +1236,156 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1206
1236
  }
1207
1237
  return J(t, (e) => {
1208
1238
  typeof document < "u" && (e ? document.addEventListener("click", r) : document.removeEventListener("click", r));
1209
- }), Ue(() => {
1239
+ }), We(() => {
1210
1240
  typeof document < "u" && document.removeEventListener("click", r);
1211
- }), (e, r) => (H(), I("span", Le({
1241
+ }), (e, r) => (V(), F("span", Re({
1212
1242
  ref_key: "wrapper",
1213
1243
  ref: n
1214
- }, e.$attrs, { class: "td-dropdown" }), [L("span", { onClick: i }, [Ge(e.$slots, "trigger", {}, void 0, !0)]), t.value ? (H(), I("div", Nr, [Ge(e.$slots, "default", {}, void 0, !0)])) : F("", !0)], 16));
1244
+ }, e.$attrs, { class: "td-dropdown" }), [I("span", { onClick: i }, [W(e.$slots, "trigger", {}, void 0, !0)]), t.value ? (V(), F("div", Pr, [W(e.$slots, "default", {}, void 0, !0)])) : P("", !0)], 16));
1215
1245
  }
1216
- }), [["__scopeId", "data-v-80759150"]]), Fr = {
1246
+ }), [["__scopeId", "data-v-80759150"]]), Ir = {
1217
1247
  class: "td-breadcrumb",
1218
1248
  "aria-label": "Breadcrumb"
1219
- }, Ir = ["href"], Lr = {
1249
+ }, Lr = ["href"], Rr = {
1220
1250
  type: "button",
1221
1251
  class: "td-breadcrumb-ellipsis"
1222
- }, Rr = ["href"], zr = ["href"], Br = {
1252
+ }, zr = ["href"], Br = ["href"], Vr = {
1223
1253
  key: 1,
1224
1254
  class: "td-breadcrumb-current"
1225
- }, Vr = ["href"], Hr = {
1255
+ }, Hr = ["href"], Ur = {
1226
1256
  key: 1,
1227
1257
  class: "td-breadcrumb-current"
1228
- }, Ur = 3, Wr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1258
+ }, Wr = 3, Gr = /*#__PURE__*/ k(/* @__PURE__ */ z({
1229
1259
  __name: "TdBreadcrumb",
1230
1260
  setup(e) {
1231
- let t = O(), { withBase: n } = j(), i = U(!1), a = N(() => {
1261
+ let t = O(), { withBase: n } = A(), i = H(!1), o = M(() => {
1232
1262
  let e = r(t.path), i = [{
1233
1263
  name: "Home",
1234
1264
  href: n(C("/"))
1235
1265
  }];
1236
1266
  if (e === "/") return i;
1237
- let a = e.replace(/^\//, "").split("/"), o = s(e) ? a.slice(0, -1) : a;
1238
- for (let e = 0; e < o.length; e++) {
1239
- let t = "/" + o.slice(0, e + 1).join("/"), r = e === o.length - 1;
1267
+ let o = e.replace(/^\//, "").split("/"), s = c(e) ? o.slice(0, -1) : o;
1268
+ for (let e = 0; e < s.length; e++) {
1269
+ let t = "/" + s.slice(0, e + 1).join("/"), r = e === s.length - 1;
1240
1270
  i.push({
1241
- name: c(o[e]),
1271
+ name: a(s[e]),
1242
1272
  href: n(r ? t : C(t))
1243
1273
  });
1244
1274
  }
1245
1275
  return i;
1246
- }), o = N(() => Ur < a.value.length), l = N(() => a.value.slice(1, -2));
1276
+ }), s = M(() => Wr < o.value.length), l = M(() => o.value.slice(1, -2));
1247
1277
  return J(() => t.path, () => {
1248
1278
  i.value = !1;
1249
- }), (e, t) => (H(), I("nav", Fr, [L("a", {
1250
- href: a.value[0].href,
1279
+ }), (e, t) => (V(), F("nav", Ir, [I("a", {
1280
+ href: o.value[0].href,
1251
1281
  class: "td-breadcrumb-link td-breadcrumb-home"
1252
- }, K(a.value[0].name), 9, Ir), o.value ? (H(), I(M, { key: 0 }, [
1253
- t[2] ||= L("span", {
1282
+ }, K(o.value[0].name), 9, Lr), s.value ? (V(), F(j, { key: 0 }, [
1283
+ t[2] ||= I("span", {
1254
1284
  class: "td-breadcrumb-sep",
1255
1285
  "aria-hidden": "true"
1256
1286
  }, "/", -1),
1257
- z(Pr, {
1287
+ R(Fr, {
1258
1288
  open: i.value,
1259
1289
  "onUpdate:open": t[0] ||= (e) => i.value = e
1260
1290
  }, {
1261
- trigger: et(() => [L("button", Lr, [z(q(E), { size: 14 })])]),
1262
- default: et(() => [(H(!0), I(M, null, W(l.value, (e) => (H(), I("a", {
1291
+ trigger: et(() => [I("button", Rr, [R(q(ne), { size: 14 })])]),
1292
+ default: et(() => [(V(!0), F(j, null, U(l.value, (e) => (V(), F("a", {
1263
1293
  key: e.href,
1264
1294
  href: e.href,
1265
1295
  class: "td-breadcrumb-dropdown-item"
1266
- }, K(e.name), 9, Rr))), 128))]),
1296
+ }, K(e.name), 9, zr))), 128))]),
1267
1297
  _: 1
1268
1298
  }, 8, ["open"]),
1269
- (H(!0), I(M, null, W(a.value.slice(-2), (e) => (H(), I(M, { key: e.href }, [t[1] ||= L("span", {
1299
+ (V(!0), F(j, null, U(o.value.slice(-2), (e) => (V(), F(j, { key: e.href }, [t[1] ||= I("span", {
1270
1300
  class: "td-breadcrumb-sep",
1271
1301
  "aria-hidden": "true"
1272
- }, "/", -1), e === a.value[a.value.length - 1] ? (H(), I("span", Br, K(e.name), 1)) : (H(), I("a", {
1302
+ }, "/", -1), e === o.value[o.value.length - 1] ? (V(), F("span", Vr, K(e.name), 1)) : (V(), F("a", {
1273
1303
  key: 0,
1274
1304
  href: e.href,
1275
1305
  class: "td-breadcrumb-link"
1276
- }, K(e.name), 9, zr))], 64))), 128))
1277
- ], 64)) : (H(!0), I(M, { key: 1 }, W(a.value.slice(1), (e, n) => (H(), I(M, { key: e.href }, [t[3] ||= L("span", {
1306
+ }, K(e.name), 9, Br))], 64))), 128))
1307
+ ], 64)) : (V(!0), F(j, { key: 1 }, U(o.value.slice(1), (e, n) => (V(), F(j, { key: e.href }, [t[3] ||= I("span", {
1278
1308
  class: "td-breadcrumb-sep",
1279
1309
  "aria-hidden": "true"
1280
- }, "/", -1), n < a.value.length - 2 ? (H(), I("a", {
1310
+ }, "/", -1), n < o.value.length - 2 ? (V(), F("a", {
1281
1311
  key: 0,
1282
1312
  href: e.href,
1283
1313
  class: "td-breadcrumb-link"
1284
- }, K(e.name), 9, Vr)) : (H(), I("span", Hr, K(e.name), 1))], 64))), 128))]));
1314
+ }, K(e.name), 9, Hr)) : (V(), F("span", Ur, K(e.name), 1))], 64))), 128))]));
1285
1315
  }
1286
- }), [["__scopeId", "data-v-3400a7c6"]]), Gr = {
1316
+ }), [["__scopeId", "data-v-3400a7c6"]]), Kr = {
1287
1317
  key: 0,
1288
1318
  class: "td-header-nav"
1289
- }, Kr = [
1319
+ }, qr = [
1290
1320
  "href",
1291
1321
  "target",
1292
1322
  "rel"
1293
- ], qr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1323
+ ], Jr = /*#__PURE__*/ k(/* @__PURE__ */ z({
1294
1324
  __name: "TdHeaderNavBar",
1295
1325
  setup(t) {
1296
- let n = j(), { withBase: r } = n, i = O();
1326
+ let n = A(), { withBase: r } = n, i = O();
1297
1327
  function a(t) {
1298
1328
  return !e(t) && i.path.startsWith(r(t));
1299
1329
  }
1300
- return (t, i) => q(n).nav?.length ? (H(), I("nav", Gr, [(H(!0), I(M, null, W(q(n).nav, (t) => (H(), I("a", {
1330
+ return (t, i) => q(n).nav?.length ? (V(), F("nav", Kr, [(V(!0), F(j, null, U(q(n).nav, (t) => (V(), F("a", {
1301
1331
  key: t.link,
1302
1332
  href: q(e)(t.link) ? t.link : q(r)(t.link),
1303
1333
  target: q(e)(t.link) ? "_blank" : void 0,
1304
1334
  rel: q(e)(t.link) ? "noopener noreferrer" : void 0,
1305
- class: V(["td-header-nav-link", { "is-active": a(t.link) }])
1306
- }, [R(K(t.title), 1), q(e)(t.link) ? (H(), P(q(ae), {
1335
+ class: B(["td-header-nav-link", { "is-active": a(t.link) }])
1336
+ }, [L(K(t.title), 1), q(e)(t.link) ? (V(), N(q(ie), {
1307
1337
  key: 0,
1308
1338
  size: 14
1309
- })) : F("", !0)], 10, Kr))), 128))])) : F("", !0);
1339
+ })) : P("", !0)], 10, qr))), 128))])) : P("", !0);
1310
1340
  }
1311
- }), [["__scopeId", "data-v-f416755c"]]), Jr = {
1341
+ }), [["__scopeId", "data-v-f416755c"]]), Yr = {
1312
1342
  key: 0,
1313
1343
  class: "td-menu-nav"
1314
- }, Yr = [
1344
+ }, Xr = [
1315
1345
  "href",
1316
1346
  "target",
1317
1347
  "rel"
1318
- ], Xr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1348
+ ], Zr = /*#__PURE__*/ k(/* @__PURE__ */ z({
1319
1349
  __name: "TdHeaderNavMenu",
1320
1350
  setup(t) {
1321
- let n = j(), { withBase: r } = n, i = O();
1351
+ let n = A(), { withBase: r } = n, i = O();
1322
1352
  function a(t) {
1323
1353
  return !e(t) && i.path.startsWith(r(t));
1324
1354
  }
1325
- return (t, i) => q(n).nav?.length ? (H(), I("nav", Jr, [(H(!0), I(M, null, W(q(n).nav, (t) => (H(), I("a", {
1355
+ return (t, i) => q(n).nav?.length ? (V(), F("nav", Yr, [(V(!0), F(j, null, U(q(n).nav, (t) => (V(), F("a", {
1326
1356
  key: t.link,
1327
1357
  href: q(e)(t.link) ? t.link : q(r)(t.link),
1328
1358
  target: q(e)(t.link) ? "_blank" : void 0,
1329
1359
  rel: q(e)(t.link) ? "noopener noreferrer" : void 0,
1330
- class: V(["td-menu-nav-item", { "is-active": a(t.link) }])
1360
+ class: B(["td-menu-nav-item", { "is-active": a(t.link) }])
1331
1361
  }, [
1332
- t.icon ? (H(), P(we, {
1362
+ t.icon ? (V(), N(we, {
1333
1363
  key: 0,
1334
1364
  name: t.icon,
1335
1365
  size: 16
1336
- }, null, 8, ["name"])) : F("", !0),
1337
- L("span", null, K(t.title), 1),
1338
- q(e)(t.link) ? (H(), P(q(ae), {
1366
+ }, null, 8, ["name"])) : P("", !0),
1367
+ I("span", null, K(t.title), 1),
1368
+ q(e)(t.link) ? (V(), N(q(ie), {
1339
1369
  key: 1,
1340
1370
  size: 14
1341
- })) : F("", !0)
1342
- ], 10, Yr))), 128))])) : F("", !0);
1371
+ })) : P("", !0)
1372
+ ], 10, Xr))), 128))])) : P("", !0);
1343
1373
  }
1344
- }), [["__scopeId", "data-v-f3c16d10"]]), Zr = { class: "td-widget-checkbox" }, Qr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1374
+ }), [["__scopeId", "data-v-f3c16d10"]]), Qr = { class: "td-widget-checkbox" }, $r = /*#__PURE__*/ k(/* @__PURE__ */ z({
1345
1375
  __name: "TdWidgetCheckbox",
1346
1376
  props: { value: {} },
1347
1377
  setup(e) {
1348
- return (t, n) => (H(), I("span", Zr, [e.value ? (H(), P(q(ft), {
1378
+ return (t, n) => (V(), F("span", Qr, [e.value ? (V(), N(q(ft), {
1349
1379
  key: 0,
1350
1380
  size: 16,
1351
1381
  class: "td-widget-checkbox-icon is-checked"
1352
- })) : (H(), P(q(Te), {
1382
+ })) : (V(), N(q(Te), {
1353
1383
  key: 1,
1354
1384
  size: 16,
1355
1385
  class: "td-widget-checkbox-icon"
1356
1386
  }))]));
1357
1387
  }
1358
- }), [["__scopeId", "data-v-13241c06"]]), $r = /* @__PURE__ */ new Set([
1388
+ }), [["__scopeId", "data-v-13241c06"]]), ei = /* @__PURE__ */ new Set([
1359
1389
  "png",
1360
1390
  "jpg",
1361
1391
  "jpeg",
@@ -1367,11 +1397,11 @@ var dr = /*#__PURE__*/ A(/* @__PURE__ */ B({
1367
1397
  "ico",
1368
1398
  "tiff"
1369
1399
  ]);
1370
- function ei(e) {
1400
+ function ti(e) {
1371
1401
  if (!e) return;
1372
1402
  if (typeof e == "string") {
1373
1403
  let t = e.trim();
1374
- return !t || !ti({ url: t }) ? void 0 : {
1404
+ return !t || !ni({ url: t }) ? void 0 : {
1375
1405
  url: t,
1376
1406
  name: i(t),
1377
1407
  isImage: !0
@@ -1386,24 +1416,24 @@ function ei(e) {
1386
1416
  name: a,
1387
1417
  format: o,
1388
1418
  icon: n.icon,
1389
- isImage: ti({
1419
+ isImage: ni({
1390
1420
  url: r,
1391
1421
  name: a,
1392
1422
  format: o
1393
1423
  })
1394
1424
  };
1395
1425
  }
1396
- function ti(e) {
1397
- if (e.format && $r.has(e.format.toLowerCase())) return !0;
1398
- let t = a(e.name || e.url).slice(1);
1399
- return t ? $r.has(t.toLowerCase()) : !1;
1426
+ function ni(e) {
1427
+ if (e.format && ei.has(e.format.toLowerCase())) return !0;
1428
+ let t = o(e.name || e.url).slice(1);
1429
+ return t ? ei.has(t.toLowerCase()) : !1;
1400
1430
  }
1401
1431
  //#endregion
1402
1432
  //#region src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetRelation.vue?vue&type=script&setup=true&lang.ts
1403
- var ni = {
1433
+ var ri = {
1404
1434
  key: 0,
1405
1435
  class: "td-widget-relation-wrapper"
1406
- }, ri = ["href", "title"], ii = ["src", "alt"], ai = ["href"], oi = { class: "td-widget-file-name" }, si = ["href"], ci = ["href"], li = { key: 1 }, ui = /*#__PURE__*/ A(/* @__PURE__ */ B({
1436
+ }, ii = ["href", "title"], ai = ["src", "alt"], oi = ["href"], si = { class: "td-widget-file-name" }, ci = ["href"], li = ["href"], ui = { key: 1 }, di = /*#__PURE__*/ k(/* @__PURE__ */ z({
1407
1437
  __name: "TdWidgetRelation",
1408
1438
  props: {
1409
1439
  value: {},
@@ -1413,80 +1443,80 @@ var ni = {
1413
1443
  }
1414
1444
  },
1415
1445
  setup(t) {
1416
- let { withBase: n } = j(), r = N(() => ei(t.value)), i = N(() => r.value?.icon ? k(r.value.icon.name) : void 0), a = N(() => r.value !== void 0 && e(r.value.url));
1417
- return (e, o) => r.value ? (H(), I("span", ni, [r.value.isImage ? (H(), I("a", {
1446
+ let { withBase: n } = A(), r = M(() => ti(t.value)), i = M(() => r.value?.icon ? pe(r.value.icon.name) : void 0), a = M(() => r.value !== void 0 && e(r.value.url));
1447
+ return (e, o) => r.value ? (V(), F("span", ri, [r.value.isImage ? (V(), F("a", {
1418
1448
  key: 0,
1419
1449
  href: q(n)(r.value.url),
1420
1450
  target: "_blank",
1421
1451
  rel: "noopener noreferrer",
1422
1452
  class: "td-widget-image-preview",
1423
1453
  title: r.value.name
1424
- }, [L("img", {
1454
+ }, [I("img", {
1425
1455
  src: q(n)(r.value.url),
1426
1456
  alt: r.value.name,
1427
1457
  class: "td-widget-image-img",
1428
1458
  loading: "lazy"
1429
- }, null, 8, ii)], 8, ri)) : r.value.format || r.value.url.includes(".") ? (H(), I("a", {
1459
+ }, null, 8, ai)], 8, ii)) : r.value.format || r.value.url.includes(".") ? (V(), F("a", {
1430
1460
  key: 1,
1431
1461
  href: q(n)(r.value.url),
1432
1462
  target: "_blank",
1433
1463
  rel: "noopener noreferrer",
1434
1464
  class: "td-widget-file-link"
1435
- }, [z(q(re), { class: "td-widget-file-icon" }), L("span", oi, K(r.value.name), 1)], 8, ai)) : a.value ? (H(), I("a", {
1465
+ }, [R(q(E), { class: "td-widget-file-icon" }), I("span", si, K(r.value.name), 1)], 8, oi)) : a.value ? (V(), F("a", {
1436
1466
  key: 2,
1437
1467
  href: r.value.url,
1438
1468
  target: "_blank",
1439
1469
  rel: "noopener noreferrer",
1440
1470
  class: "td-widget-ref td-widget-ref-external"
1441
- }, [z(q(ae), {
1471
+ }, [R(q(ie), {
1442
1472
  size: 12,
1443
1473
  class: "td-widget-external-icon"
1444
- })], 8, si)) : (H(), I("a", {
1474
+ })], 8, ci)) : (V(), F("a", {
1445
1475
  key: 3,
1446
1476
  href: q(n)(r.value.url),
1447
1477
  class: "td-widget-ref"
1448
- }, [i.value && !t.hideIcon ? (H(), P(G(i.value), {
1478
+ }, [i.value && !t.hideIcon ? (V(), N(G(i.value), {
1449
1479
  key: 0,
1450
1480
  size: 14,
1451
1481
  class: "td-widget-ref-icon"
1452
- })) : F("", !0), R(K(r.value.name), 1)], 8, ci))])) : (H(), I("span", li, K(t.value), 1));
1482
+ })) : P("", !0), L(K(r.value.name), 1)], 8, li))])) : (V(), F("span", ui, K(t.value), 1));
1453
1483
  }
1454
- }), [["__scopeId", "data-v-e593af69"]]), di = { key: 0 }, fi = { class: "td-widget-list td-widget-list-icons" }, pi = { key: 1 }, mi = { class: "td-widget-list" }, hi = 5, gi = /*#__PURE__*/ A(/* @__PURE__ */ B({
1484
+ }), [["__scopeId", "data-v-e593af69"]]), fi = { key: 0 }, pi = { class: "td-widget-list td-widget-list-icons" }, mi = { key: 1 }, hi = { class: "td-widget-list" }, gi = 5, _i = /*#__PURE__*/ k(/* @__PURE__ */ z({
1455
1485
  __name: "TdWidgetList",
1456
1486
  props: {
1457
1487
  definition: {},
1458
1488
  value: {}
1459
1489
  },
1460
1490
  setup(e) {
1461
- let t = U(!1), n = N(() => Array.isArray(e.value) ? e.value : []), r = N(() => e.definition.items?.widget === "relation"), i = N(() => r.value ? n.value.map((e) => ei(e)).filter((e) => e !== void 0) : []), a = N(() => r.value ? Math.max(0, i.value.length - hi) : Math.max(0, n.value.length - hi));
1491
+ let t = H(!1), n = M(() => Array.isArray(e.value) ? e.value : []), r = M(() => e.definition.items?.widget === "relation"), i = M(() => r.value ? n.value.map((e) => ti(e)).filter((e) => e !== void 0) : []), a = M(() => r.value ? Math.max(0, i.value.length - gi) : Math.max(0, n.value.length - gi));
1462
1492
  function o() {
1463
1493
  t.value = !t.value;
1464
1494
  }
1465
1495
  function s(e) {
1466
- return t.value ? e : e.slice(0, hi);
1496
+ return t.value ? e : e.slice(0, gi);
1467
1497
  }
1468
- return (e, c) => r.value ? (H(), I("div", di, [L("ul", fi, [(H(!0), I(M, null, W(s(i.value), (e, t) => (H(), I("li", { key: t }, [(H(), P(G(e.icon ? q(k)(e.icon.name) ?? q(ue) : q(ue)), {
1498
+ return (e, c) => r.value ? (V(), F("div", fi, [I("ul", pi, [(V(!0), F(j, null, U(s(i.value), (e, t) => (V(), F("li", { key: t }, [(V(), N(G(e.icon ? q(pe)(e.icon.name) ?? q(le) : q(le)), {
1469
1499
  size: 14,
1470
1500
  class: "td-widget-list-icon"
1471
- })), z(ui, {
1501
+ })), R(di, {
1472
1502
  value: { $ref: e },
1473
1503
  "hide-icon": ""
1474
- }, null, 8, ["value"])]))), 128))]), a.value > 0 ? (H(), I("button", {
1504
+ }, null, 8, ["value"])]))), 128))]), a.value > 0 ? (V(), F("button", {
1475
1505
  key: 0,
1476
1506
  class: "td-widget-more",
1477
1507
  type: "button",
1478
1508
  onClick: o
1479
- }, K(t.value ? "show less" : `+${a.value} more`), 1)) : F("", !0)])) : (H(), I("div", pi, [L("ul", mi, [(H(!0), I(M, null, W(s(n.value), (e, t) => (H(), I("li", { key: t }, [q(ei)(e) ? (H(), P(ui, {
1509
+ }, K(t.value ? "show less" : `+${a.value} more`), 1)) : P("", !0)])) : (V(), F("div", mi, [I("ul", hi, [(V(!0), F(j, null, U(s(n.value), (e, t) => (V(), F("li", { key: t }, [q(ti)(e) ? (V(), N(di, {
1480
1510
  key: 0,
1481
1511
  value: e
1482
- }, null, 8, ["value"])) : (H(), I(M, { key: 1 }, [R(K(e), 1)], 64))]))), 128))]), a.value > 0 ? (H(), I("button", {
1512
+ }, null, 8, ["value"])) : (V(), F(j, { key: 1 }, [L(K(e), 1)], 64))]))), 128))]), a.value > 0 ? (V(), F("button", {
1483
1513
  key: 0,
1484
1514
  class: "td-widget-more",
1485
1515
  type: "button",
1486
1516
  onClick: o
1487
- }, K(t.value ? "show less" : `+${a.value} more`), 1)) : F("", !0)]));
1517
+ }, K(t.value ? "show less" : `+${a.value} more`), 1)) : P("", !0)]));
1488
1518
  }
1489
- }), [["__scopeId", "data-v-d8bb2881"]]), _i = [
1519
+ }), [["__scopeId", "data-v-d8bb2881"]]), vi = [
1490
1520
  {
1491
1521
  fg: "#a0522d",
1492
1522
  bg: "rgba(160, 82, 45, 0.1)"
@@ -1520,118 +1550,118 @@ var ni = {
1520
1550
  bg: "rgba(239, 68, 68, 0.1)"
1521
1551
  }
1522
1552
  ];
1523
- function vi(e) {
1524
- let t = _i[yi(String(e ?? "")) % _i.length];
1553
+ function yi(e) {
1554
+ let t = vi[bi(String(e ?? "")) % vi.length];
1525
1555
  return {
1526
1556
  color: t.fg,
1527
1557
  background: t.bg
1528
1558
  };
1529
1559
  }
1530
- function yi(e) {
1560
+ function bi(e) {
1531
1561
  let t = 0;
1532
1562
  for (let n = 0; n < e.length; n++) t = (t << 5) - t + e.charCodeAt(n) | 0;
1533
1563
  return Math.abs(t);
1534
1564
  }
1535
1565
  //#endregion
1536
1566
  //#region src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetMultiSelect.vue?vue&type=script&setup=true&lang.ts
1537
- var bi = 5, xi = /*#__PURE__*/ A(/* @__PURE__ */ B({
1567
+ var xi = 5, Si = /*#__PURE__*/ k(/* @__PURE__ */ z({
1538
1568
  __name: "TdWidgetMultiSelect",
1539
1569
  props: { value: {} },
1540
1570
  setup(e) {
1541
- let t = U(!1), n = N(() => Array.isArray(e.value) ? e.value : []), r = N(() => t.value ? n.value : n.value.slice(0, bi)), i = N(() => Math.max(0, n.value.length - bi));
1571
+ let t = H(!1), n = M(() => Array.isArray(e.value) ? e.value : []), r = M(() => t.value ? n.value : n.value.slice(0, xi)), i = M(() => Math.max(0, n.value.length - xi));
1542
1572
  function a() {
1543
1573
  t.value = !t.value;
1544
1574
  }
1545
- return (e, n) => (H(), I(M, null, [(H(!0), I(M, null, W(r.value, (e, t) => (H(), I("span", {
1575
+ return (e, n) => (V(), F(j, null, [(V(!0), F(j, null, U(r.value, (e, t) => (V(), F("span", {
1546
1576
  key: t,
1547
1577
  class: "td-widget-pill",
1548
- style: ze(q(vi)(e))
1549
- }, K(e), 5))), 128)), i.value > 0 ? (H(), I("button", {
1578
+ style: Be(q(yi)(e))
1579
+ }, K(e), 5))), 128)), i.value > 0 ? (V(), F("button", {
1550
1580
  key: 0,
1551
1581
  class: "td-widget-more",
1552
1582
  type: "button",
1553
1583
  onClick: a
1554
- }, K(t.value ? "show less" : `+${i.value} more`), 1)) : F("", !0)], 64));
1584
+ }, K(t.value ? "show less" : `+${i.value} more`), 1)) : P("", !0)], 64));
1555
1585
  }
1556
- }), [["__scopeId", "data-v-2f88152d"]]), Si = /*#__PURE__*/ A(/* @__PURE__ */ B({
1586
+ }), [["__scopeId", "data-v-2f88152d"]]), Ci = /*#__PURE__*/ k(/* @__PURE__ */ z({
1557
1587
  __name: "TdWidgetSelect",
1558
1588
  props: { value: {} },
1559
1589
  setup(e) {
1560
- return (t, n) => (H(), I("span", {
1590
+ return (t, n) => (V(), F("span", {
1561
1591
  class: "td-widget-pill",
1562
- style: ze(q(vi)(e.value))
1592
+ style: Be(q(yi)(e.value))
1563
1593
  }, K(e.value), 5));
1564
1594
  }
1565
- }), [["__scopeId", "data-v-b9e2b4fd"]]), Ci = ["href", "title"], wi = ["src", "alt"], Ti = ["href"], Ei = { class: "td-widget-file-name" }, Di = /*#__PURE__*/ A(/* @__PURE__ */ B({
1595
+ }), [["__scopeId", "data-v-b9e2b4fd"]]), wi = ["href", "title"], Ti = ["src", "alt"], Ei = ["href"], Di = { class: "td-widget-file-name" }, Oi = /*#__PURE__*/ k(/* @__PURE__ */ z({
1566
1596
  __name: "TdWidgetText",
1567
1597
  props: {
1568
1598
  definition: {},
1569
1599
  value: {}
1570
1600
  },
1571
1601
  setup(e) {
1572
- let { withBase: t } = j(), n = N(() => typeof e.value == "string" ? e.value.trim() : ""), r = N(() => ei(e.value)), i = N(() => r.value ? r.value.isImage : 0 < n.value.length && ti({ url: n.value })), a = N(() => r.value ? r.value.url : n.value), o = N(() => t(a.value)), s = N(() => !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"));
1602
+ let { withBase: t } = A(), n = M(() => typeof e.value == "string" ? e.value.trim() : ""), r = M(() => ti(e.value)), i = M(() => r.value ? r.value.isImage : 0 < n.value.length && ni({ 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"));
1573
1603
  function c(t) {
1574
1604
  return t == null ? "" : e.definition.widget === "date" ? v(String(t)) : String(t);
1575
1605
  }
1576
- return (t, a) => i.value ? (H(), I("a", {
1606
+ return (t, a) => i.value ? (V(), F("a", {
1577
1607
  key: 0,
1578
1608
  href: o.value,
1579
1609
  target: "_blank",
1580
1610
  rel: "noopener noreferrer",
1581
1611
  class: "td-widget-image-preview",
1582
1612
  title: r.value ? r.value.name : n.value
1583
- }, [L("img", {
1613
+ }, [I("img", {
1584
1614
  src: o.value,
1585
1615
  alt: r.value ? r.value.name : n.value,
1586
1616
  class: "td-widget-image-img",
1587
1617
  loading: "lazy"
1588
- }, null, 8, wi)], 8, Ci)) : s.value ? (H(), I("a", {
1618
+ }, null, 8, Ti)], 8, wi)) : s.value ? (V(), F("a", {
1589
1619
  key: 1,
1590
1620
  href: o.value,
1591
1621
  target: "_blank",
1592
1622
  rel: "noopener noreferrer",
1593
1623
  class: "td-widget-file-link"
1594
- }, [z(q(re), { class: "td-widget-file-icon" }), L("span", Ei, K(n.value.split("/").pop() ?? n.value), 1)], 8, Ti)) : (H(), I(M, { key: 2 }, [R(K(c(e.value)), 1)], 64));
1624
+ }, [R(q(E), { class: "td-widget-file-icon" }), I("span", Di, K(n.value.split("/").pop() ?? n.value), 1)], 8, Ei)) : (V(), F(j, { key: 2 }, [L(K(c(e.value)), 1)], 64));
1595
1625
  }
1596
- }), [["__scopeId", "data-v-37708635"]]), Oi = {
1626
+ }), [["__scopeId", "data-v-37708635"]]), ki = {
1597
1627
  key: 0,
1598
1628
  class: "td-frontmatter-empty"
1599
- }, ki = /*#__PURE__*/ A(/* @__PURE__ */ B({
1629
+ }, Ai = /*#__PURE__*/ k(/* @__PURE__ */ z({
1600
1630
  __name: "TdFrontmatterValue",
1601
1631
  props: {
1602
1632
  definition: {},
1603
1633
  value: {}
1604
1634
  },
1605
1635
  setup(e) {
1606
- return (t, n) => e.value === void 0 || e.value === null ? (H(), I("span", Oi, "Empty")) : e.definition.widget === "checkbox" ? (H(), P(Qr, {
1636
+ return (t, n) => e.value === void 0 || e.value === null ? (V(), F("span", ki, "Empty")) : e.definition.widget === "checkbox" ? (V(), N($r, {
1607
1637
  key: 1,
1608
1638
  value: e.value
1609
- }, null, 8, ["value"])) : e.definition.widget === "select" ? (H(), P(Si, {
1639
+ }, null, 8, ["value"])) : e.definition.widget === "select" ? (V(), N(Ci, {
1610
1640
  key: 2,
1611
1641
  value: e.value
1612
- }, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (H(), P(xi, {
1642
+ }, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (V(), N(Si, {
1613
1643
  key: 3,
1614
1644
  value: e.value
1615
- }, null, 8, ["value"])) : q(ei)(e.value) || e.definition.widget === "relation" ? (H(), P(ui, {
1645
+ }, null, 8, ["value"])) : q(ti)(e.value) || e.definition.widget === "relation" ? (V(), N(di, {
1616
1646
  key: 4,
1617
1647
  value: e.value
1618
- }, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (H(), P(gi, {
1648
+ }, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (V(), N(_i, {
1619
1649
  key: 5,
1620
1650
  definition: e.definition,
1621
1651
  value: e.value
1622
- }, null, 8, ["definition", "value"])) : (H(), P(Di, {
1652
+ }, null, 8, ["definition", "value"])) : (V(), N(Oi, {
1623
1653
  key: 6,
1624
1654
  definition: e.definition,
1625
1655
  value: e.value
1626
1656
  }, null, 8, ["definition", "value"]));
1627
1657
  }
1628
- }), [["__scopeId", "data-v-1deedc98"]]), Ai = {
1658
+ }), [["__scopeId", "data-v-1deedc98"]]), ji = {
1629
1659
  key: 0,
1630
1660
  class: "td-fm-rail"
1631
- }, ji = { class: "td-fm-rail-key" }, Mi = { class: "td-fm-rail-value" }, Ni = {
1661
+ }, Mi = { class: "td-fm-rail-key" }, Ni = { class: "td-fm-rail-value" }, Pi = {
1632
1662
  key: 1,
1633
1663
  class: "td-fm-box"
1634
- }, Pi = { class: "td-fm-box-label" }, Fi = { class: "td-fm-box-count" }, Ii = { class: "td-fm-box-toggle" }, Li = { class: "td-fm-box-body" }, Ri = { class: "td-fm-box-key" }, zi = { class: "td-fm-box-value" }, Bi = /*#__PURE__*/ A(/* @__PURE__ */ B({
1664
+ }, Fi = { class: "td-fm-box-label" }, Ii = { class: "td-fm-box-count" }, Li = { class: "td-fm-box-toggle" }, Ri = { class: "td-fm-box-body" }, zi = { class: "td-fm-box-key" }, Bi = { class: "td-fm-box-value" }, Vi = /*#__PURE__*/ k(/* @__PURE__ */ z({
1635
1665
  __name: "TdFrontmatter",
1636
1666
  props: {
1637
1667
  mode: { default: "inline" },
@@ -1639,9 +1669,9 @@ var bi = 5, xi = /*#__PURE__*/ A(/* @__PURE__ */ B({
1639
1669
  frontmatter: {}
1640
1670
  },
1641
1671
  setup(e) {
1642
- let t = _e(), n = N(() => {
1672
+ let t = _e(), n = M(() => {
1643
1673
  if (e.schema) return t.value.schemas[e.schema];
1644
- }), r = N(() => {
1674
+ }), r = M(() => {
1645
1675
  let t = n.value, r = [], i = /* @__PURE__ */ new Set();
1646
1676
  t && Object.keys(t).forEach((e) => i.add(e)), Object.keys(e.frontmatter).forEach((e) => i.add(e));
1647
1677
  for (let n of i) {
@@ -1657,66 +1687,66 @@ var bi = 5, xi = /*#__PURE__*/ A(/* @__PURE__ */ B({
1657
1687
  checkbox: it,
1658
1688
  select: he,
1659
1689
  multiSelect: pt,
1660
- relation: ae,
1661
- list: le
1690
+ relation: ie,
1691
+ list: ce
1662
1692
  };
1663
- function a(e) {
1693
+ function o(e) {
1664
1694
  return i[e] ?? mt;
1665
1695
  }
1666
- let o = U(!1), s = U(!1);
1696
+ let s = H(!1), c = H(!1);
1667
1697
  function l() {
1668
- o.value = !o.value;
1698
+ s.value = !s.value;
1669
1699
  }
1670
1700
  function u() {
1671
- s.value = !s.value;
1701
+ c.value = !c.value;
1672
1702
  }
1673
- return (t, n) => e.mode === "rail" && r.value.length > 0 ? (H(), I("div", Ai, [L("button", {
1703
+ return (t, n) => e.mode === "rail" && r.value.length > 0 ? (V(), F("div", ji, [I("button", {
1674
1704
  type: "button",
1675
1705
  class: "td-fm-rail-header",
1676
1706
  onClick: u
1677
- }, [n[0] ||= L("span", { class: "td-fm-rail-label" }, "Properties", -1), z(q(te), {
1707
+ }, [n[0] ||= I("span", { class: "td-fm-rail-label" }, "Properties", -1), R(q(ee), {
1678
1708
  size: 14,
1679
- class: V(["td-fm-rail-caret", { "is-collapsed": s.value }])
1680
- }, null, 8, ["class"])]), L("div", { class: V(["td-collapse", { "is-collapsed": s.value }]) }, [L("div", null, [(H(!0), I(M, null, W(r.value, ([t, n]) => (H(), I("div", {
1709
+ class: B(["td-fm-rail-caret", { "is-collapsed": c.value }])
1710
+ }, 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", {
1681
1711
  key: t,
1682
1712
  class: "td-fm-rail-row"
1683
- }, [L("span", ji, [(H(), P(G(a(n.widget)), {
1713
+ }, [I("span", Mi, [(V(), N(G(o(n.widget)), {
1684
1714
  size: 12,
1685
1715
  class: "td-fm-icon"
1686
- })), R(" " + K(q(c)(t)), 1)]), L("span", Mi, [z(ki, {
1716
+ })), L(" " + K(q(a)(t)), 1)]), I("span", Ni, [R(Ai, {
1687
1717
  definition: n,
1688
1718
  value: e.frontmatter[t]
1689
- }, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : r.value.length > 0 ? (H(), I("div", Ni, [L("button", {
1719
+ }, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : r.value.length > 0 ? (V(), F("div", Pi, [I("button", {
1690
1720
  type: "button",
1691
1721
  class: "td-fm-box-header",
1692
1722
  onClick: l
1693
- }, [L("span", Pi, [n[1] ||= R("Properties ", -1), L("span", Fi, K(r.value.length), 1)]), L("span", Ii, [R(K(o.value ? "Show" : "Hide") + " ", 1), o.value ? (H(), P(q(se), {
1723
+ }, [I("span", Fi, [n[1] ||= L("Properties ", -1), I("span", Ii, K(r.value.length), 1)]), I("span", Li, [L(K(s.value ? "Show" : "Hide") + " ", 1), s.value ? (V(), N(q(oe), {
1694
1724
  key: 1,
1695
1725
  size: 14
1696
- })) : (H(), P(q(te), {
1726
+ })) : (V(), N(q(ee), {
1697
1727
  key: 0,
1698
1728
  size: 14
1699
- }))])]), L("div", { class: V(["td-collapse", { "is-collapsed": o.value }]) }, [L("div", Li, [(H(!0), I(M, null, W(r.value, ([t, n]) => (H(), I(M, { key: t }, [L("span", Ri, [(H(), P(G(a(n.widget)), {
1729
+ }))])]), I("div", { class: B(["td-collapse", { "is-collapsed": s.value }]) }, [I("div", Ri, [(V(!0), F(j, null, U(r.value, ([t, n]) => (V(), F(j, { key: t }, [I("span", zi, [(V(), N(G(o(n.widget)), {
1700
1730
  size: 12,
1701
1731
  class: "td-fm-icon"
1702
- })), R(" " + K(q(c)(t)), 1)]), L("span", zi, [z(ki, {
1732
+ })), L(" " + K(q(a)(t)), 1)]), I("span", Bi, [R(Ai, {
1703
1733
  definition: n,
1704
1734
  value: e.frontmatter[t]
1705
- }, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) : F("", !0);
1735
+ }, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) : P("", !0);
1706
1736
  }
1707
- }), [["__scopeId", "data-v-1b3924e7"]]), Vi = U(!1);
1708
- function Hi() {
1737
+ }), [["__scopeId", "data-v-1b3924e7"]]), Hi = H(!1);
1738
+ function Ui() {
1709
1739
  function e() {
1710
- Vi.value = !Vi.value;
1740
+ Hi.value = !Hi.value;
1711
1741
  }
1712
1742
  function t() {
1713
- Vi.value = !0;
1743
+ Hi.value = !0;
1714
1744
  }
1715
1745
  function n() {
1716
- Vi.value = !1;
1746
+ Hi.value = !1;
1717
1747
  }
1718
1748
  return {
1719
- isOpen: We(Vi),
1749
+ isOpen: Ge(Hi),
1720
1750
  toggle: e,
1721
1751
  open: t,
1722
1752
  close: n
@@ -1724,20 +1754,20 @@ function Hi() {
1724
1754
  }
1725
1755
  //#endregion
1726
1756
  //#region src/client/theme-default/components/TdMenuButton.vue
1727
- var Ui = /* @__PURE__ */ B({
1757
+ var Wi = /* @__PURE__ */ z({
1728
1758
  __name: "TdMenuButton",
1729
1759
  setup(e) {
1730
- let { isOpen: t, toggle: n } = Hi();
1731
- return (e, r) => (H(), P(xt, {
1760
+ let { isOpen: t, toggle: n } = Ui();
1761
+ return (e, r) => (V(), N(xt, {
1732
1762
  class: "td-menu-button",
1733
1763
  label: q(t) ? "Close menu" : "Open menu",
1734
1764
  "aria-expanded": q(t),
1735
1765
  onClick: q(n)
1736
1766
  }, {
1737
- default: et(() => [q(t) ? (H(), P(q(ge), {
1767
+ default: et(() => [q(t) ? (V(), N(q(ge), {
1738
1768
  key: 0,
1739
1769
  size: 20
1740
- })) : (H(), P(q(De), {
1770
+ })) : (V(), N(q(De), {
1741
1771
  key: 1,
1742
1772
  size: 20
1743
1773
  }))]),
@@ -1751,9 +1781,9 @@ var Ui = /* @__PURE__ */ B({
1751
1781
  });
1752
1782
  //#endregion
1753
1783
  //#region src/client/theme-default/composables/usePreviousNext.ts
1754
- function Wi() {
1755
- let e = _e(), t = O(), { withBase: n, title: r } = j(), i = N(() => {
1756
- let i = Gi(e.value.contentTree, t.path, r);
1784
+ function Gi() {
1785
+ let e = _e(), t = O(), { withBase: n, title: r } = A(), i = M(() => {
1786
+ let i = Ki(e.value.contentTree, t.path, r);
1757
1787
  if (i === void 0) return {};
1758
1788
  let a = i.pages.findIndex((e) => e.url === t.path);
1759
1789
  if (a === -1) return { groupName: i.groupName };
@@ -1771,16 +1801,16 @@ function Wi() {
1771
1801
  };
1772
1802
  });
1773
1803
  return {
1774
- previous: N(() => i.value.previous),
1775
- next: N(() => i.value.next),
1776
- groupName: N(() => i.value.groupName)
1804
+ previous: M(() => i.value.previous),
1805
+ next: M(() => i.value.next),
1806
+ groupName: M(() => i.value.groupName)
1777
1807
  };
1778
1808
  }
1779
- function Gi(e, t, r) {
1809
+ function Ki(e, t, r) {
1780
1810
  if (e.entries.some((e) => e.kind === "file" && n(e.item.filepath) === t)) {
1781
1811
  let t = [], n = e.entries.find((e) => e.kind === "file" && p(e.item.filepath));
1782
- n && n.kind === "file" && t.push(qi(n.item, r));
1783
- for (let n of e.entries) n.kind === "file" ? p(n.item.filepath) || t.push(qi(n.item)) : t.push(Ji(n.node, ""));
1812
+ n && n.kind === "file" && t.push(Ji(n.item, r));
1813
+ for (let n of e.entries) n.kind === "file" ? p(n.item.filepath) || t.push(Ji(n.item)) : t.push(Yi(n.node, ""));
1784
1814
  return {
1785
1815
  pages: t,
1786
1816
  groupName: ""
@@ -1788,76 +1818,76 @@ function Gi(e, t, r) {
1788
1818
  }
1789
1819
  for (let n of e.entries) {
1790
1820
  if (n.kind !== "dir") continue;
1791
- let e = Ki(n.node, t, "", r);
1821
+ let e = qi(n.node, t, "", r);
1792
1822
  if (e !== void 0) return e;
1793
1823
  }
1794
1824
  }
1795
- function Ki(e, r, i, a) {
1796
- let o = t(i, e.name);
1825
+ function qi(e, r, i, o) {
1826
+ let s = t(i, e.name);
1797
1827
  if (e.entries.some((e) => e.kind === "file" && n(e.item.filepath) === r)) {
1798
1828
  let t = [], n = d(e);
1799
- n && t.push(qi(n));
1800
- for (let n of e.entries) n.kind === "file" ? p(n.item.filepath) || t.push(qi(n.item)) : t.push(Ji(n.node, o));
1829
+ n && t.push(Ji(n));
1830
+ for (let n of e.entries) n.kind === "file" ? p(n.item.filepath) || t.push(Ji(n.item)) : t.push(Yi(n.node, s));
1801
1831
  return {
1802
1832
  pages: t,
1803
- groupName: c(e.name)
1833
+ groupName: a(e.name)
1804
1834
  };
1805
1835
  }
1806
1836
  for (let t of e.entries) {
1807
1837
  if (t.kind !== "dir") continue;
1808
- let e = Ki(t.node, r, o, a);
1838
+ let e = qi(t.node, r, s, o);
1809
1839
  if (e !== void 0) return e;
1810
1840
  }
1811
1841
  }
1812
- function qi(e, t) {
1842
+ function Ji(e, t) {
1813
1843
  let r = e.label === void 0 ? t === void 0 ? w(e.filepath) : S(e.filepath, t) : e.label;
1814
1844
  return {
1815
1845
  url: n(e.filepath),
1816
1846
  title: r
1817
1847
  };
1818
1848
  }
1819
- function Ji(e, r) {
1820
- let i = t(r, e.name), a = d(e);
1849
+ function Yi(e, r) {
1850
+ let i = t(r, e.name), o = d(e);
1821
1851
  return {
1822
- url: a ? n(a.filepath) : C(i),
1823
- title: a ? w(a.filepath, a.label) : c(e.name)
1852
+ url: o ? n(o.filepath) : C(i),
1853
+ title: o ? w(o.filepath, o.label) : a(e.name)
1824
1854
  };
1825
1855
  }
1826
1856
  //#endregion
1827
1857
  //#region src/client/theme-default/components/TdPreviousNext.vue?vue&type=script&setup=true&lang.ts
1828
- var Yi = {
1858
+ var Xi = {
1829
1859
  key: 0,
1830
1860
  class: "td-prevnext",
1831
1861
  "aria-label": "Page navigation"
1832
- }, Xi = ["href"], Zi = { class: "td-prevnext-label" }, Qi = { class: "td-prevnext-title" }, $i = {
1862
+ }, Zi = ["href"], Qi = { class: "td-prevnext-label" }, $i = { class: "td-prevnext-title" }, ea = {
1833
1863
  key: 1,
1834
1864
  class: "td-prevnext-spacer"
1835
- }, ea = ["href"], ta = { class: "td-prevnext-label" }, na = { class: "td-prevnext-title" }, ra = {
1865
+ }, ta = ["href"], na = { class: "td-prevnext-label" }, ra = { class: "td-prevnext-title" }, ia = {
1836
1866
  key: 3,
1837
1867
  class: "td-prevnext-spacer"
1838
- }, ia = /*#__PURE__*/ A(/* @__PURE__ */ B({
1868
+ }, aa = /*#__PURE__*/ k(/* @__PURE__ */ z({
1839
1869
  __name: "TdPreviousNext",
1840
1870
  setup(e) {
1841
- let { previous: t, next: n, groupName: r } = Wi();
1842
- return (e, i) => q(t) || q(n) ? (H(), I("nav", Yi, [q(t) ? (H(), I("a", {
1871
+ let { previous: t, next: n, groupName: r } = Gi();
1872
+ return (e, i) => q(t) || q(n) ? (V(), F("nav", Xi, [q(t) ? (V(), F("a", {
1843
1873
  key: 0,
1844
1874
  href: q(t).url,
1845
1875
  class: "td-prevnext-link is-previous"
1846
- }, [L("span", Zi, [z(q(ye), {
1876
+ }, [I("span", Qi, [R(q(ye), {
1847
1877
  size: 14,
1848
1878
  class: "td-prevnext-chevron"
1849
- }), R(" " + K(q(r) ? `Previous in ${q(r)}` : "Previous"), 1)]), L("span", Qi, K(q(t).title), 1)], 8, Xi)) : (H(), I("span", $i)), q(n) ? (H(), I("a", {
1879
+ }), L(" " + K(q(r) ? `Previous in ${q(r)}` : "Previous"), 1)]), I("span", $i, K(q(t).title), 1)], 8, Zi)) : (V(), F("span", ea)), q(n) ? (V(), F("a", {
1850
1880
  key: 2,
1851
1881
  href: q(n).url,
1852
1882
  class: "td-prevnext-link is-next"
1853
- }, [L("span", ta, [R(K(q(r) ? `Next in ${q(r)}` : "Next") + " ", 1), z(q(se), {
1883
+ }, [I("span", na, [L(K(q(r) ? `Next in ${q(r)}` : "Next") + " ", 1), R(q(oe), {
1854
1884
  size: 14,
1855
1885
  class: "td-prevnext-chevron"
1856
- })]), L("span", na, K(q(n).title), 1)], 8, ea)) : (H(), I("span", ra))])) : F("", !0);
1886
+ })]), I("span", ra, K(q(n).title), 1)], 8, ta)) : (V(), F("span", ia))])) : P("", !0);
1857
1887
  }
1858
- }), [["__scopeId", "data-v-8ea01cd7"]]), aa = 100;
1859
- function oa(e) {
1860
- let t = U(void 0), n = [], r;
1888
+ }), [["__scopeId", "data-v-8ea01cd7"]]), oa = 100;
1889
+ function sa(e) {
1890
+ let t = H(void 0), n = [], r;
1861
1891
  function i() {
1862
1892
  if (n.length === 0) return;
1863
1893
  let e = window.scrollY;
@@ -1866,7 +1896,7 @@ function oa(e) {
1866
1896
  return;
1867
1897
  }
1868
1898
  let r;
1869
- for (let t of n) if (sa(t) <= e + aa) r = t.id;
1899
+ for (let t of n) if (ca(t) <= e + oa) r = t.id;
1870
1900
  else break;
1871
1901
  t.value = r;
1872
1902
  }
@@ -1879,25 +1909,26 @@ function oa(e) {
1879
1909
  let r = new Set(e.map((e) => e.slug));
1880
1910
  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();
1881
1911
  }
1882
- return Ve(() => {
1912
+ return He(() => {
1883
1913
  window.addEventListener("scroll", a);
1884
- }), Ue(() => {
1914
+ }), We(() => {
1885
1915
  window.removeEventListener("scroll", a), r !== void 0 && cancelAnimationFrame(r);
1886
1916
  }), J(e, (e) => {
1887
- typeof window < "u" && Re(() => o(e));
1917
+ typeof window < "u" && ze(() => o(e));
1888
1918
  }, { immediate: !0 }), t;
1889
1919
  }
1890
- function sa(e) {
1920
+ function ca(e) {
1891
1921
  let t = 0, n = e;
1892
1922
  for (; n;) t += n.offsetTop, n = n.offsetParent;
1893
1923
  return t;
1894
1924
  }
1895
1925
  //#endregion
1896
1926
  //#region src/client/theme-default/components/TdToc.vue?vue&type=script&setup=true&lang.ts
1897
- var ca = {
1927
+ var la = {
1898
1928
  key: 0,
1899
- class: "td-toc"
1900
- }, la = { class: "td-toc-list" }, ua = ["href", "innerHTML"], da = /*#__PURE__*/ A(/* @__PURE__ */ B({
1929
+ class: "td-toc",
1930
+ "data-testid": "toc"
1931
+ }, ua = { class: "td-toc-list" }, da = ["href", "innerHTML"], fa = /*#__PURE__*/ k(/* @__PURE__ */ z({
1901
1932
  __name: "TdToc",
1902
1933
  props: {
1903
1934
  headings: {},
@@ -1907,35 +1938,42 @@ var ca = {
1907
1938
  }
1908
1939
  },
1909
1940
  setup(e) {
1910
- let t = e.static ? N(() => void 0) : oa(() => e.headings);
1911
- return (n, r) => e.headings.length ? (H(), I("div", ca, [r[0] ||= L("div", { class: "td-toc-label" }, " On this page ", -1), L("ul", la, [(H(!0), I(M, null, W(e.headings, (e) => (H(), I("li", {
1941
+ let t = M(() => {
1942
+ let t = [];
1943
+ for (let n of e.headings) {
1944
+ t.push(n);
1945
+ for (let e of n.children) t.push(e);
1946
+ }
1947
+ return t;
1948
+ }), n = e.static ? M(() => void 0) : sa(() => t.value);
1949
+ return (r, i) => e.headings.length ? (V(), F("div", la, [i[0] ||= I("div", { class: "td-toc-label" }, " On this page ", -1), I("ul", ua, [(V(!0), F(j, null, U(t.value, (e) => (V(), F("li", {
1912
1950
  key: e.slug,
1913
- class: V({
1951
+ class: B({
1914
1952
  "td-toc-indent-1": e.level === 3,
1915
1953
  "td-toc-indent-2": e.level === 4,
1916
1954
  "td-toc-indent-3": e.level === 5
1917
1955
  })
1918
- }, [L("a", {
1956
+ }, [I("a", {
1919
1957
  href: e.link,
1920
- class: V(["td-toc-link", { "is-active": q(t) === e.slug }]),
1958
+ class: B(["td-toc-link", { "is-active": q(n) === e.slug }]),
1921
1959
  innerHTML: q(_)(e.titleHtml)
1922
- }, null, 10, ua)], 2))), 128))])])) : F("", !0);
1960
+ }, null, 10, da)], 2))), 128))])])) : P("", !0);
1923
1961
  }
1924
- }), [["__scopeId", "data-v-91e96e92"]]), fa = { class: "td-rail" }, pa = /*#__PURE__*/ A(/* @__PURE__ */ B({
1962
+ }), [["__scopeId", "data-v-d60de674"]]), pa = { class: "td-rail" }, ma = /*#__PURE__*/ k(/* @__PURE__ */ z({
1925
1963
  __name: "TdRail",
1926
1964
  setup(e) {
1927
- let { page: t } = fe();
1928
- return (e, n) => (H(), I("aside", fa, [z(q(Bi), {
1965
+ let { page: t } = de();
1966
+ return (e, n) => (V(), F("aside", pa, [R(q(Vi), {
1929
1967
  mode: "rail",
1930
1968
  schema: q(t).schema,
1931
1969
  frontmatter: q(t).frontmatter
1932
- }, null, 8, ["schema", "frontmatter"]), z(da, { headings: q(t).headings }, null, 8, ["headings"])]));
1970
+ }, null, 8, ["schema", "frontmatter"]), R(fa, { headings: q(t).headings }, null, 8, ["headings"])]));
1933
1971
  }
1934
- }), [["__scopeId", "data-v-22485c1b"]]), ma = {
1972
+ }), [["__scopeId", "data-v-22485c1b"]]), ha = {
1935
1973
  class: "td-skeleton",
1936
1974
  role: "status",
1937
1975
  "aria-label": "Loading"
1938
- }, ha = /*#__PURE__*/ A(/* @__PURE__ */ B({
1976
+ }, ga = /*#__PURE__*/ k(/* @__PURE__ */ z({
1939
1977
  __name: "TdSkeleton",
1940
1978
  props: { lines: { default: 5 } },
1941
1979
  setup(e) {
@@ -1949,23 +1987,45 @@ var ca = {
1949
1987
  55,
1950
1988
  72
1951
1989
  ];
1952
- return (n, r) => (H(), I("div", ma, [(H(!0), I(M, null, W(e.lines, (e) => (H(), I("div", {
1990
+ return (n, r) => (V(), F("div", ha, [(V(!0), F(j, null, U(e.lines, (e) => (V(), F("div", {
1953
1991
  key: e,
1954
1992
  class: "td-skeleton-line",
1955
- style: ze({ width: `${t[(e - 1) % t.length]}%` })
1993
+ style: Be({ width: `${t[(e - 1) % t.length]}%` })
1956
1994
  }, null, 4))), 128))]));
1957
1995
  }
1958
- }), [["__scopeId", "data-v-312f021d"]]), $ = /* @__PURE__ */ function(e) {
1996
+ }), [["__scopeId", "data-v-312f021d"]]), _a = /*#__PURE__*/ k(/* @__PURE__ */ z({
1997
+ __name: "TdSidebarNav",
1998
+ props: {
1999
+ tree: {},
2000
+ searchActive: { type: Boolean },
2001
+ ready: { type: Boolean }
2002
+ },
2003
+ setup(e) {
2004
+ let t = O(), n = Ze("scrollElement");
2005
+ return J(() => t.path, () => {
2006
+ ze(() => {
2007
+ n.value?.querySelector(".is-active")?.scrollIntoView({ block: "nearest" });
2008
+ });
2009
+ }, { immediate: !0 }), (t, r) => (V(), F("div", {
2010
+ ref_key: "scrollElement",
2011
+ ref: n,
2012
+ class: "td-sidebar-scroll"
2013
+ }, [!e.searchActive && !e.ready ? (V(), N(ga, { key: 0 })) : e.searchActive ? P("", !0) : (V(), N(Ar, {
2014
+ key: 1,
2015
+ tree: e.tree
2016
+ }, null, 8, ["tree"]))], 512));
2017
+ }
2018
+ }), [["__scopeId", "data-v-bda84418"]]), $ = /* @__PURE__ */ function(e) {
1959
2019
  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;
1960
- }({}), ga = { class: "td-kbd-shortcut" }, _a = /*#__PURE__*/ A(/* @__PURE__ */ B({
2020
+ }({}), va = { class: "td-kbd-shortcut" }, ya = /*#__PURE__*/ k(/* @__PURE__ */ z({
1961
2021
  __name: "TdKbdShortcut",
1962
2022
  props: { keys: {} },
1963
2023
  setup(e) {
1964
2024
  let t = {
1965
- [$.ArrowDown]: ie,
2025
+ [$.ArrowDown]: re,
1966
2026
  [$.ArrowUp]: ve,
1967
- [$.ArrowLeft]: ce,
1968
- [$.ArrowRight]: oe,
2027
+ [$.ArrowLeft]: se,
2028
+ [$.ArrowRight]: ae,
1969
2029
  [$.Meta]: at,
1970
2030
  [$.Alt]: ut,
1971
2031
  [$.Enter]: ot,
@@ -1977,26 +2037,26 @@ var ca = {
1977
2037
  [$.Escape]: "Esc",
1978
2038
  [$.Tab]: "Tab",
1979
2039
  [$.Backspace]: "⌫"
1980
- }, r = N(() => e.keys.map((e) => {
2040
+ }, r = M(() => e.keys.map((e) => {
1981
2041
  let r = t[e];
1982
2042
  if (r) return { icon: r };
1983
2043
  let i = n[e];
1984
2044
  return i ? { label: i } : { label: e.toUpperCase() };
1985
2045
  }));
1986
- return (e, t) => (H(), I("span", ga, [(H(!0), I(M, null, W(r.value, (e, t) => (H(), I("kbd", { key: t }, [e.icon ? (H(), P(G(e.icon), {
2046
+ return (e, t) => (V(), F("span", va, [(V(!0), F(j, null, U(r.value, (e, t) => (V(), F("kbd", { key: t }, [e.icon ? (V(), N(G(e.icon), {
1987
2047
  key: 0,
1988
2048
  size: 12
1989
- })) : (H(), I(M, { key: 1 }, [R(K(e.label), 1)], 64))]))), 128))]));
2049
+ })) : (V(), F(j, { key: 1 }, [L(K(e.label), 1)], 64))]))), 128))]));
1990
2050
  }
1991
- }), [["__scopeId", "data-v-b61b97da"]]), va = 120;
1992
- function ya() {
2051
+ }), [["__scopeId", "data-v-b61b97da"]]), ba = 120;
2052
+ function xa() {
1993
2053
  let e = be(), t, n = Je([]), r = Je(!1);
1994
2054
  J(e, () => {
1995
2055
  t = void 0;
1996
2056
  });
1997
2057
  function i() {
1998
2058
  if (t) return t;
1999
- if (e.value) return t = Fe(ee.loadJSON(e.value, {
2059
+ if (e.value) return t = Ie(T.loadJSON(e.value, {
2000
2060
  fields: u,
2001
2061
  storeFields: l
2002
2062
  })), t;
@@ -2004,13 +2064,13 @@ function ya() {
2004
2064
  function a(e, t) {
2005
2065
  if (!e) return "";
2006
2066
  let n = Object.keys(t);
2007
- if (n.length === 0) return e.slice(0, va);
2067
+ if (n.length === 0) return e.slice(0, ba);
2008
2068
  let r = e.toLowerCase(), i = e.length;
2009
2069
  for (let e of n) {
2010
2070
  let t = r.indexOf(e.toLowerCase());
2011
2071
  t !== -1 && t < i && (i = t);
2012
2072
  }
2013
- let a = Math.max(0, i - 30), o = Math.min(e.length, a + va), s = e.slice(a, o).trim();
2073
+ let a = Math.max(0, i - 30), o = Math.min(e.length, a + ba), s = e.slice(a, o).trim();
2014
2074
  return 0 < a && (s = "..." + s), o < e.length && (s += "..."), s;
2015
2075
  }
2016
2076
  async function o(e) {
@@ -2055,7 +2115,7 @@ function ya() {
2055
2115
  }
2056
2116
  //#endregion
2057
2117
  //#region src/client/theme-default/components/TdSiteSearch/highlight.ts
2058
- function ba(e, t) {
2118
+ function Sa(e, t) {
2059
2119
  if (!e || !t) return m(e);
2060
2120
  let n = t.trim().split(/\s+/).filter(Boolean), r = m(e);
2061
2121
  for (let e of n) {
@@ -2066,16 +2126,16 @@ function ba(e, t) {
2066
2126
  }
2067
2127
  //#endregion
2068
2128
  //#region src/client/theme-default/components/TdSiteSearch/TdSiteSearch.vue?vue&type=script&setup=true&lang.ts
2069
- var xa = { class: "td-search" }, Sa = { class: "td-search-input-wrap" }, Ca = {
2129
+ var Ca = { class: "td-search" }, wa = { class: "td-search-input-wrap" }, Ta = {
2070
2130
  key: 2,
2071
2131
  class: "td-search-count"
2072
- }, wa = {
2132
+ }, Ea = {
2073
2133
  key: 0,
2074
2134
  class: "td-search-results"
2075
- }, Ta = ["href"], Ea = ["innerHTML"], Da = { class: "td-search-result-path" }, Oa = ["innerHTML"], ka = {
2135
+ }, Da = ["href"], Oa = ["innerHTML"], ka = { class: "td-search-result-path" }, Aa = ["innerHTML"], ja = {
2076
2136
  key: 1,
2077
2137
  class: "td-search-empty"
2078
- }, Aa = /*#__PURE__*/ A(/* @__PURE__ */ B({
2138
+ }, Ma = /*#__PURE__*/ k(/* @__PURE__ */ z({
2079
2139
  __name: "TdSiteSearch",
2080
2140
  props: {
2081
2141
  active: {
@@ -2086,17 +2146,17 @@ var xa = { class: "td-search" }, Sa = { class: "td-search-input-wrap" }, Ca = {
2086
2146
  query: { default: "" },
2087
2147
  queryModifiers: {}
2088
2148
  },
2089
- emits: /*@__PURE__*/ Ie(["select"], ["update:active", "update:query"]),
2149
+ emits: /*@__PURE__*/ Le(["select"], ["update:active", "update:query"]),
2090
2150
  setup(e, { expose: t, emit: n }) {
2091
- let r = Xe(e, "active"), i = Xe(e, "query"), a = n, s = O(), { withBase: l } = j(), { results: u, searching: d, indexLoaded: f, search: p, cancel: m } = ya(), h = U(-1), g = N(() => 0 < i.value.trim().length), _ = N(() => {
2151
+ let r = Xe(e, "active"), i = Xe(e, "query"), o = n, c = O(), { withBase: l } = A(), { results: u, searching: d, indexLoaded: f, search: p, cancel: m } = xa(), h = H(-1), g = M(() => 0 < i.value.trim().length), _ = M(() => {
2092
2152
  let e = [], t = /* @__PURE__ */ new Map();
2093
2153
  for (let n of u.value) {
2094
- let r = o(n.id), i = t.get(r);
2154
+ let r = s(n.id), i = t.get(r);
2095
2155
  if (!i) {
2096
2156
  let n = r.split("/").pop() || "index";
2097
2157
  i = {
2098
2158
  pageUrl: r,
2099
- pageTitle: c(n),
2159
+ pageTitle: a(n),
2100
2160
  results: []
2101
2161
  }, t.set(r, i), e.push(i);
2102
2162
  }
@@ -2112,7 +2172,7 @@ var xa = { class: "td-search" }, Sa = { class: "td-search-input-wrap" }, Ca = {
2112
2172
  function v() {
2113
2173
  i.value = "";
2114
2174
  }
2115
- let y = N(() => _.value.flatMap((e) => e.results)), b = N(() => {
2175
+ let y = M(() => _.value.flatMap((e) => e.results)), b = M(() => {
2116
2176
  let e = /* @__PURE__ */ new Map();
2117
2177
  for (let t = 0; t < y.value.length; t++) e.set(y.value[t].id, t);
2118
2178
  return e;
@@ -2131,7 +2191,7 @@ var xa = { class: "td-search" }, Sa = { class: "td-search-input-wrap" }, Ca = {
2131
2191
  }
2132
2192
  }
2133
2193
  function S() {
2134
- a("select");
2194
+ o("select");
2135
2195
  }
2136
2196
  function C() {
2137
2197
  requestAnimationFrame(() => {
@@ -2152,13 +2212,13 @@ var xa = { class: "td-search" }, Sa = { class: "td-search-input-wrap" }, Ca = {
2152
2212
  get isFocused() {
2153
2213
  return document.activeElement === w.value;
2154
2214
  }
2155
- }), (e, t) => (H(), I("div", xa, [
2156
- L("div", Sa, [
2157
- z(q(Oe), {
2215
+ }), (e, t) => (V(), F("div", Ca, [
2216
+ I("div", wa, [
2217
+ R(q(Oe), {
2158
2218
  size: 14,
2159
2219
  class: "td-search-icon"
2160
2220
  }),
2161
- tt(L("input", {
2221
+ tt(I("input", {
2162
2222
  ref_key: "searchInput",
2163
2223
  ref: w,
2164
2224
  "onUpdate:modelValue": t[0] ||= (e) => i.value = e,
@@ -2168,62 +2228,62 @@ var xa = { class: "td-search" }, Sa = { class: "td-search-input-wrap" }, Ca = {
2168
2228
  placeholder: "Search...",
2169
2229
  onKeydown: x
2170
2230
  }, null, 544), [[Qe, i.value]]),
2171
- !g.value && !q(d) ? (H(), P(_a, {
2231
+ !g.value && !q(d) ? (V(), N(ya, {
2172
2232
  key: 0,
2173
2233
  keys: [q($).Meta, q($).k],
2174
2234
  class: "td-search-kbd"
2175
- }, null, 8, ["keys"])) : F("", !0),
2176
- q(d) || !q(f) ? (H(), P(q(lt), {
2235
+ }, null, 8, ["keys"])) : P("", !0),
2236
+ q(d) || !q(f) ? (V(), N(q(lt), {
2177
2237
  key: 1,
2178
2238
  size: 12,
2179
2239
  class: "td-search-spinner"
2180
- })) : g.value ? (H(), I("span", Ca, K(q(u).length), 1)) : F("", !0),
2181
- i.value ? (H(), I("button", {
2240
+ })) : g.value ? (V(), F("span", Ta, K(q(u).length), 1)) : P("", !0),
2241
+ i.value ? (V(), F("button", {
2182
2242
  key: 3,
2183
2243
  class: "td-search-clear",
2184
2244
  type: "button",
2185
2245
  "aria-label": "Clear search",
2186
2246
  onClick: v
2187
- }, [z(q(ge), { size: 12 })])) : F("", !0)
2247
+ }, [R(q(ge), { size: 12 })])) : P("", !0)
2188
2248
  ]),
2189
- g.value && q(u).length > 0 ? (H(), I("div", wa, [(H(!0), I(M, null, W(_.value, (e) => (H(), I("div", {
2249
+ g.value && q(u).length > 0 ? (V(), F("div", Ea, [(V(!0), F(j, null, U(_.value, (e) => (V(), F("div", {
2190
2250
  key: e.pageUrl,
2191
2251
  class: "td-search-group"
2192
- }, [(H(!0), I(M, null, W(e.results, (e) => (H(), I("a", {
2252
+ }, [(V(!0), F(j, null, U(e.results, (e) => (V(), F("a", {
2193
2253
  key: e.id,
2194
2254
  href: q(l)(e.id),
2195
- class: V(["td-search-result", {
2255
+ class: B(["td-search-result", {
2196
2256
  "is-selected": b.value.get(e.id) === h.value,
2197
- "is-current": q(l)(e.id) === q(s).path
2257
+ "is-current": q(l)(e.id) === q(c).path
2198
2258
  }]),
2199
2259
  onClick: S
2200
2260
  }, [
2201
- L("span", {
2261
+ I("span", {
2202
2262
  class: "td-search-result-title",
2203
- innerHTML: q(ba)(e.title, i.value)
2204
- }, null, 8, Ea),
2205
- L("span", Da, K(e.id), 1),
2206
- e.excerpt ? (H(), I("span", {
2263
+ innerHTML: q(Sa)(e.title, i.value)
2264
+ }, null, 8, Oa),
2265
+ I("span", ka, K(e.id), 1),
2266
+ e.excerpt ? (V(), F("span", {
2207
2267
  key: 0,
2208
2268
  class: "td-search-result-excerpt",
2209
- innerHTML: q(ba)(e.excerpt, i.value)
2210
- }, null, 8, Oa)) : F("", !0)
2211
- ], 10, Ta))), 128))]))), 128))])) : F("", !0),
2212
- g.value && q(u).length === 0 ? (H(), I("div", ka, " No results for \"" + K(i.value) + "\" ", 1)) : F("", !0)
2269
+ innerHTML: q(Sa)(e.excerpt, i.value)
2270
+ }, null, 8, Aa)) : P("", !0)
2271
+ ], 10, Da))), 128))]))), 128))])) : P("", !0),
2272
+ g.value && q(u).length === 0 ? (V(), F("div", ja, " No results for \"" + K(i.value) + "\" ", 1)) : P("", !0)
2213
2273
  ]));
2214
2274
  }
2215
- }), [["__scopeId", "data-v-06d05932"]]), ja = /* @__PURE__ */ B({
2275
+ }), [["__scopeId", "data-v-ee28029f"]]), Na = /* @__PURE__ */ z({
2216
2276
  __name: "TdThemeToggle",
2217
2277
  setup(e) {
2218
2278
  let { isDark: t, toggle: n } = xe();
2219
- return (e, r) => (H(), P(xt, {
2279
+ return (e, r) => (V(), N(xt, {
2220
2280
  label: q(t) ? "Switch to light mode" : "Switch to dark mode",
2221
2281
  onClick: q(n)
2222
2282
  }, {
2223
- default: et(() => [q(t) ? (H(), P(q(de), {
2283
+ default: et(() => [q(t) ? (V(), N(q(ue), {
2224
2284
  key: 0,
2225
2285
  size: 18
2226
- })) : (H(), P(q(pe), {
2286
+ })) : (V(), N(q(fe), {
2227
2287
  key: 1,
2228
2288
  size: 18
2229
2289
  }))]),
@@ -2233,7 +2293,7 @@ var xa = { class: "td-search" }, Sa = { class: "td-search-input-wrap" }, Ca = {
2233
2293
  });
2234
2294
  //#endregion
2235
2295
  //#region src/client/theme-default/composables/useCopyCode.ts
2236
- function Ma() {
2296
+ function Pa() {
2237
2297
  function e(e) {
2238
2298
  let t = e.target?.closest(".copy");
2239
2299
  if (!t) return;
@@ -2245,27 +2305,45 @@ function Ma() {
2245
2305
  t.classList.remove("copied"), t.setAttribute("title", i);
2246
2306
  }, 2e3);
2247
2307
  }
2248
- Ve(() => {
2308
+ He(() => {
2249
2309
  document.addEventListener("click", e);
2250
- }), Ue(() => {
2310
+ }), We(() => {
2311
+ document.removeEventListener("click", e);
2312
+ });
2313
+ }
2314
+ //#endregion
2315
+ //#region src/client/theme-default/composables/useCopyHeadingAnchor.ts
2316
+ function Fa() {
2317
+ function e(e) {
2318
+ let t = e.target?.closest(".td-header-anchor");
2319
+ if (!t) return;
2320
+ e.preventDefault();
2321
+ let n = t.getAttribute("href") ?? "", r = location.href.split("#")[0] + n;
2322
+ navigator.clipboard.writeText(r).catch(() => {}), t.classList.add("td-header-anchor--copied"), setTimeout(() => {
2323
+ t.classList.remove("td-header-anchor--copied");
2324
+ }, 2e3);
2325
+ }
2326
+ He(() => {
2327
+ document.addEventListener("click", e);
2328
+ }), We(() => {
2251
2329
  document.removeEventListener("click", e);
2252
2330
  });
2253
2331
  }
2254
2332
  //#endregion
2255
2333
  //#region src/client/theme-default/composables/useHotkey.ts
2256
- var Na = /* @__PURE__ */ new Map([
2334
+ var Ia = /* @__PURE__ */ new Map([
2257
2335
  [$.Control, "ctrlKey"],
2258
2336
  [$.Alt, "altKey"],
2259
2337
  [$.Shift, "shiftKey"],
2260
2338
  [$.Meta, "metaKey"]
2261
2339
  ]);
2262
- function Pa(e, t) {
2340
+ function La(e, t) {
2263
2341
  function n(n) {
2264
- n.defaultPrevented || Ia(n, e) && (n.preventDefault(), t(n));
2342
+ n.defaultPrevented || za(n, e) && (n.preventDefault(), t(n));
2265
2343
  }
2266
- Ve(() => window.addEventListener("keydown", n)), Ue(() => window.removeEventListener("keydown", n));
2344
+ He(() => window.addEventListener("keydown", n)), We(() => window.removeEventListener("keydown", n));
2267
2345
  }
2268
- function Fa(e) {
2346
+ function Ra(e) {
2269
2347
  let t = [];
2270
2348
  function n(e, n) {
2271
2349
  t.push({
@@ -2274,30 +2352,30 @@ function Fa(e) {
2274
2352
  });
2275
2353
  }
2276
2354
  function r(e) {
2277
- for (let n of t) if (Ia(e, n.keys)) {
2355
+ for (let n of t) if (za(e, n.keys)) {
2278
2356
  e.preventDefault(), e.stopPropagation(), n.handler(e);
2279
2357
  return;
2280
2358
  }
2281
2359
  }
2282
2360
  return J(e, (e, t) => {
2283
2361
  t?.removeEventListener("keydown", r), e?.addEventListener("keydown", r);
2284
- }, { immediate: !0 }), Ue(() => {
2362
+ }, { immediate: !0 }), We(() => {
2285
2363
  e.value?.removeEventListener("keydown", r);
2286
2364
  }), { register: n };
2287
2365
  }
2288
- function Ia(e, t) {
2289
- let n = t.filter((e) => Na.has(e)), r = t.filter((e) => !Na.has(e));
2366
+ function za(e, t) {
2367
+ let n = t.filter((e) => Ia.has(e)), r = t.filter((e) => !Ia.has(e));
2290
2368
  if (r.length !== 1 || e.key.toLowerCase() !== r[0].toLowerCase()) return !1;
2291
- for (let t of n) if (!e[Na.get(t)]) return !1;
2369
+ for (let t of n) if (!e[Ia.get(t)]) return !1;
2292
2370
  return !(e.ctrlKey && !n.includes($.Control) || e.altKey && !n.includes($.Alt) || e.shiftKey && !n.includes($.Shift) || e.metaKey && !n.includes($.Meta));
2293
2371
  }
2294
2372
  //#endregion
2295
2373
  //#region src/client/theme-default/composables/useResizableTable.ts
2296
- var La = 6, Ra = 40;
2297
- function za() {
2374
+ var Ba = 6, Va = 40;
2375
+ function Ha() {
2298
2376
  let e, t = !1;
2299
2377
  function n(e, t) {
2300
- return e.getBoundingClientRect().right - t < La;
2378
+ return e.getBoundingClientRect().right - t < Ba;
2301
2379
  }
2302
2380
  function r(r) {
2303
2381
  if (t) return;
@@ -2317,34 +2395,34 @@ function za() {
2317
2395
  r.classList.add("is-resizing"), document.body.style.cursor = "col-resize";
2318
2396
  function o(e) {
2319
2397
  let t = e.clientX - i;
2320
- r && (r.style.width = `${Math.max(Ra, a + t)}px`);
2398
+ r && (r.style.width = `${Math.max(Va, a + t)}px`);
2321
2399
  }
2322
2400
  function s() {
2323
2401
  t = !1, r?.classList.remove("is-resizing"), document.body.style.cursor = "", document.removeEventListener("pointermove", o), document.removeEventListener("pointerup", s);
2324
2402
  }
2325
2403
  document.addEventListener("pointermove", o), document.addEventListener("pointerup", s);
2326
2404
  }
2327
- Ve(() => {
2405
+ He(() => {
2328
2406
  document.addEventListener("pointermove", r), document.addEventListener("pointerdown", i);
2329
- }), Ue(() => {
2407
+ }), We(() => {
2330
2408
  document.removeEventListener("pointermove", r), document.removeEventListener("pointerdown", i);
2331
2409
  });
2332
2410
  }
2333
2411
  //#endregion
2334
2412
  //#region src/client/theme-default/composables/useMermaid.ts
2335
- var Ba = "https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs", Va, Ha = 0;
2336
- function Ua() {
2413
+ var Ua = "https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs", Wa, Ga = 0;
2414
+ function Ka() {
2337
2415
  let e;
2338
2416
  async function t() {
2339
2417
  let e = document.getElementById("td-content");
2340
2418
  if (!e) return;
2341
2419
  let t = e.querySelectorAll(".td-mermaid-placeholder");
2342
2420
  if (t.length === 0) return;
2343
- let n = await Wa();
2421
+ let n = await qa();
2344
2422
  if (n !== void 0) for (let e of t) {
2345
2423
  let t = e.querySelector("code");
2346
2424
  if (!t) continue;
2347
- let r = `td-mermaid-${Ha++}`;
2425
+ let r = `td-mermaid-${Ga++}`;
2348
2426
  try {
2349
2427
  let { svg: i } = await n.default.render(r, t.textContent ?? ""), a = document.createElement("div");
2350
2428
  a.className = "td-mermaid", a.innerHTML = i, e.replaceWith(a);
@@ -2353,236 +2431,265 @@ function Ua() {
2353
2431
  }
2354
2432
  }
2355
2433
  }
2356
- Ve(() => {
2434
+ He(() => {
2357
2435
  t();
2358
2436
  let n = document.getElementById("td-content");
2359
2437
  n && (e = new MutationObserver(t), e.observe(n, {
2360
2438
  childList: !0,
2361
2439
  subtree: !0
2362
2440
  }));
2363
- }), Ue(() => {
2441
+ }), We(() => {
2364
2442
  e?.disconnect();
2365
2443
  });
2366
2444
  }
2367
- async function Wa() {
2368
- if (Va !== void 0) return Va;
2445
+ async function qa() {
2446
+ if (Wa !== void 0) return Wa;
2369
2447
  try {
2370
- Va = await import(
2448
+ Wa = await import(
2371
2449
  /* @vite-ignore */
2372
- Ba
2450
+ Ua
2373
2451
  );
2374
2452
  } catch {
2375
2453
  return;
2376
2454
  }
2377
- return Va.default.initialize({
2455
+ return Wa.default.initialize({
2378
2456
  startOnLoad: !1,
2379
2457
  theme: document.documentElement.classList.contains("dark") ? "dark" : "default"
2380
- }), Va;
2458
+ }), Wa;
2381
2459
  }
2382
2460
  //#endregion
2383
2461
  //#region src/client/theme-default/TdLayout.vue?vue&type=script&setup=true&lang.ts
2384
- var Ga = { class: "td-header" }, Ka = { class: "td-header-left" }, qa = ["href"], Ja = { class: "td-brand-name" }, Ya = { class: "td-header-right" }, Xa = ["href"], Za = { class: "td-drawer-header" }, Qa = ["href"], $a = { class: "td-brand-name" }, eo = {
2462
+ var Ja = { class: "td-header" }, Ya = { class: "td-header-left" }, Xa = ["href"], Za = { class: "td-brand-name" }, Qa = { class: "td-header-right" }, $a = ["href"], eo = { class: "td-drawer-header" }, to = ["href"], no = { class: "td-brand-name" }, ro = {
2385
2463
  key: 0,
2386
2464
  class: "pt-4",
2387
2465
  "aria-label": "Site navigation"
2388
- }, to = { class: "td-page" }, no = { class: "td-sidebar-scroll" }, ro = ["onKeydown"], io = { class: "td-main-and-rail" }, ao = { class: "td-main" }, oo = {
2466
+ }, io = { class: "td-page" }, ao = ["onKeydown"], oo = { class: "td-main-and-rail" }, so = { class: "td-main" }, co = {
2389
2467
  id: "td-content",
2390
2468
  class: "td-content",
2391
2469
  "data-testid": "content"
2392
- }, so = {
2470
+ }, lo = {
2393
2471
  key: 0,
2394
2472
  class: "td-page-eyebrow"
2395
- }, co = {
2473
+ }, uo = {
2396
2474
  key: 1,
2397
2475
  class: "td-page-icon"
2398
- }, lo = ["innerHTML"], uo = {
2476
+ }, fo = ["innerHTML"], po = {
2399
2477
  key: 3,
2400
2478
  class: "td-page-meta"
2401
- }, fo = { key: 0 }, po = { class: "td-content-body" }, mo = 200, ho = 500, go = 300, _o = "td-sidebar-width", vo = /*#__PURE__*/ A(/* @__PURE__ */ B({
2479
+ }, mo = { key: 0 }, ho = { class: "td-content-body" }, go = ["href"], _o = 200, vo = 500, yo = 300, bo = "td-sidebar-width", xo = /*#__PURE__*/ k(/* @__PURE__ */ z({
2402
2480
  __name: "TdLayout",
2403
2481
  setup(e) {
2404
- let { title: t, page: n } = fe(), r = N(() => {
2482
+ let { title: t, page: n } = de(), i = M(() => {
2405
2483
  let e = n.value.icon;
2406
- return e ? k(e.name) : void 0;
2407
- }), i = j(), { withBase: a } = i, o = _e(), s = N(() => o.value.ready), { isOpen: c, open: l, close: u } = Hi(), d = U(""), f = U(!1), p = U(!1), m = O();
2408
- J(() => m.path, () => u()), Ma(), Ua();
2409
- let h = Ze("sidebarSearch"), g = Ze("menuSearch");
2410
- function _() {
2411
- g.value?.isFocused || h.value?.isFocused ? (g.value?.blur(), h.value?.blur(), c.value && u()) : c.value ? g.value?.focus() : h.value?.isVisible ? h.value.focus() : (l(), Re(() => g.value?.focus()));
2484
+ return e ? pe(e.name) : void 0;
2485
+ }), a = A(), { withBase: o } = a, s = _e(), c = M(() => s.value.ready), { isOpen: l, open: u, close: d } = Ui(), f = H(""), p = H(!1), m = H(!1), h = O();
2486
+ J(() => h.path, () => d()), Pa(), Fa(), Ka();
2487
+ let g = Ze("sidebarSearch"), _ = Ze("menuSearch");
2488
+ function v(e) {
2489
+ let t = a.repo;
2490
+ return `${r(t.url)}/edit/main/${[
2491
+ t.root,
2492
+ a.rootDir,
2493
+ e
2494
+ ].filter(Boolean).join("/")}`;
2412
2495
  }
2413
- Pa([$.Control, $.k], _), Pa([$.Meta, $.k], _), $e(() => {
2496
+ function y() {
2497
+ _.value?.isFocused || g.value?.isFocused ? (_.value?.blur(), g.value?.blur(), l.value && d()) : l.value ? _.value?.focus() : g.value?.isVisible ? g.value.focus() : (u(), ze(() => _.value?.focus()));
2498
+ }
2499
+ La([$.Control, $.k], y), La([$.Meta, $.k], y), $e(() => {
2414
2500
  if (typeof document > "u") return;
2415
- let e = t.value, r = i.title;
2501
+ let e = t.value, r = a.title;
2416
2502
  document.title = e && e !== r ? `${e} - ${r}` : r;
2417
- let a = n.value.frontmatter?.description === void 0 ? i.description ?? "" : String(n.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
2418
- o && o.setAttribute("content", a);
2419
- }), za();
2420
- let v = U(typeof localStorage < "u" && Number(localStorage.getItem(_o)) || go);
2421
- function y() {
2422
- v.value = Math.min(ho, v.value + 20);
2503
+ let i = n.value.frontmatter?.description === void 0 ? a.description ?? "" : String(n.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
2504
+ o && o.setAttribute("content", i);
2505
+ }), Ha();
2506
+ let x = H(typeof localStorage < "u" && Number(localStorage.getItem(bo)) || yo);
2507
+ function S() {
2508
+ x.value = Math.min(vo, x.value + 20);
2423
2509
  }
2424
- function x(e) {
2425
- let t = e.clientX, n = v.value, r = e.currentTarget;
2510
+ function w(e) {
2511
+ let t = e.clientX, n = x.value, r = e.currentTarget;
2426
2512
  r.setPointerCapture(e.pointerId);
2427
2513
  function i(e) {
2428
- let r = Math.min(ho, window.innerWidth * .85), i = Math.min(r, Math.max(mo, n + e.clientX - t));
2429
- v.value = i;
2514
+ let r = Math.min(vo, window.innerWidth * .85), i = Math.min(r, Math.max(_o, n + e.clientX - t));
2515
+ x.value = i;
2430
2516
  }
2431
2517
  function a() {
2432
- document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a), localStorage.setItem(_o, String(v.value));
2518
+ document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a), localStorage.setItem(bo, String(x.value));
2433
2519
  }
2434
2520
  document.body.style.cursor = "col-resize", r.addEventListener("pointermove", i), r.addEventListener("pointerup", a);
2435
2521
  }
2436
- function S() {
2437
- v.value = Math.max(mo, v.value - 20);
2522
+ function T() {
2523
+ x.value = Math.max(_o, x.value - 20);
2438
2524
  }
2439
- return (e, l) => (H(), I("div", null, [
2440
- l[6] ||= L("a", {
2525
+ return (e, r) => (V(), F("div", null, [
2526
+ W(e.$slots, "layout-top", {}, void 0, !0),
2527
+ r[6] ||= I("a", {
2441
2528
  href: "#td-content",
2442
2529
  class: "td-skip-link"
2443
2530
  }, "Skip to content", -1),
2444
- L("header", Ga, [
2445
- L("div", Ka, [
2446
- z(Ui, { onClick: _ }),
2447
- L("a", {
2448
- href: q(a)(q(C)("/")),
2531
+ I("header", Ja, [
2532
+ I("div", Ya, [
2533
+ R(Wi, { onClick: y }),
2534
+ I("a", {
2535
+ href: q(o)(q(C)("/")),
2449
2536
  class: "td-brand"
2450
- }, [z(yt), L("span", Ja, K(q(i).title || "Typedown"), 1)], 8, qa),
2451
- z(Wr, { class: "td-header-breadcrumb" })
2537
+ }, [R(yt), I("span", Za, K(q(a).title || "Typedown"), 1)], 8, Xa),
2538
+ R(Gr, { class: "td-header-breadcrumb" })
2452
2539
  ]),
2453
- z(q(qr)),
2454
- L("div", Ya, [z(ja), q(i).repo ? (H(), I("a", {
2540
+ R(q(Jr)),
2541
+ W(e.$slots, "nav-bar-after", {}, void 0, !0),
2542
+ I("div", Qa, [R(Na), q(a).repo ? (V(), F("a", {
2455
2543
  key: 0,
2456
- href: q(i).repo,
2544
+ href: q(a).repo.url,
2457
2545
  target: "_blank",
2458
2546
  rel: "noopener noreferrer",
2459
2547
  class: "td-header-icon-link",
2460
2548
  "aria-label": "GitHub repository"
2461
- }, [...l[5] ||= [L("svg", {
2549
+ }, [...r[5] ||= [I("svg", {
2462
2550
  width: "20",
2463
2551
  height: "20",
2464
2552
  viewBox: "0 0 98 96",
2465
2553
  xmlns: "http://www.w3.org/2000/svg",
2466
2554
  "aria-hidden": "true",
2467
2555
  fill: "currentColor"
2468
- }, [L("path", {
2556
+ }, [I("path", {
2469
2557
  "fill-rule": "evenodd",
2470
2558
  "clip-rule": "evenodd",
2471
2559
  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"
2472
- })], -1)]], 8, Xa)) : F("", !0)])
2560
+ })], -1)]], 8, $a)) : P("", !0)])
2473
2561
  ]),
2474
- L("div", {
2475
- class: V(["td-drawer-scrim", { "is-open": q(c) }]),
2476
- onClick: l[0] ||= (...e) => q(u) && q(u)(...e)
2562
+ I("div", {
2563
+ class: B(["td-drawer-scrim", { "is-open": q(l) }]),
2564
+ onClick: r[0] ||= (...e) => q(d) && q(d)(...e)
2477
2565
  }, null, 2),
2478
- L("aside", {
2479
- class: V(["td-drawer", { "is-open": q(c) }]),
2480
- style: ze({ width: `${v.value}px` })
2566
+ I("aside", {
2567
+ class: B(["td-drawer", { "is-open": q(l) }]),
2568
+ style: Be({ width: `${x.value}px` })
2481
2569
  }, [
2482
- L("div", {
2570
+ I("div", {
2483
2571
  class: "td-resize-handle",
2484
- onPointerdown: rt(x, ["prevent"])
2572
+ onPointerdown: rt(w, ["prevent"])
2485
2573
  }, null, 32),
2486
- L("header", Za, [L("a", {
2487
- href: q(a)(q(C)("/")),
2574
+ I("header", eo, [I("a", {
2575
+ href: q(o)(q(C)("/")),
2488
2576
  class: "td-brand"
2489
- }, [z(yt), L("span", $a, K(q(i).title || "Typedown"), 1)], 8, Qa), z(xt, {
2577
+ }, [R(yt), I("span", no, K(q(a).title || "Typedown"), 1)], 8, to), R(xt, {
2490
2578
  label: "Close menu",
2491
- onClick: q(u)
2579
+ onClick: q(d)
2492
2580
  }, {
2493
- default: et(() => [z(q(ge), { size: 20 })]),
2581
+ default: et(() => [R(q(ge), { size: 20 })]),
2494
2582
  _: 1
2495
2583
  }, 8, ["onClick"])]),
2496
- z(q(Xr)),
2497
- z(Aa, {
2584
+ R(q(Zr)),
2585
+ R(Ma, {
2498
2586
  ref_key: "menuSearch",
2499
- ref: g,
2500
- query: d.value,
2501
- "onUpdate:query": l[1] ||= (e) => d.value = e,
2502
- active: p.value,
2503
- "onUpdate:active": l[2] ||= (e) => p.value = e,
2504
- onSelect: q(u)
2587
+ ref: _,
2588
+ query: f.value,
2589
+ "onUpdate:query": r[1] ||= (e) => f.value = e,
2590
+ active: m.value,
2591
+ "onUpdate:active": r[2] ||= (e) => m.value = e,
2592
+ onSelect: q(d)
2505
2593
  }, null, 8, [
2506
2594
  "query",
2507
2595
  "active",
2508
2596
  "onSelect"
2509
2597
  ]),
2510
- p.value ? F("", !0) : (H(), I("nav", eo, [s.value ? (H(), P(kr, {
2598
+ m.value ? P("", !0) : (V(), F("nav", ro, [c.value ? (V(), N(Ar, {
2511
2599
  key: 1,
2512
- tree: q(o).contentTree
2513
- }, null, 8, ["tree"])) : (H(), P(ha, { key: 0 }))]))
2600
+ tree: q(s).contentTree
2601
+ }, null, 8, ["tree"])) : (V(), N(ga, { key: 0 }))]))
2514
2602
  ], 6),
2515
- L("div", to, [L("nav", {
2603
+ I("div", io, [I("nav", {
2516
2604
  class: "td-sidebar-left",
2517
2605
  "data-testid": "sidebar",
2518
2606
  "aria-label": "Site navigation",
2519
- style: ze({ width: `${v.value}px` })
2607
+ style: Be({ width: `${x.value}px` })
2520
2608
  }, [
2521
- z(Aa, {
2609
+ W(e.$slots, "sidebar-top", {}, void 0, !0),
2610
+ R(Ma, {
2522
2611
  ref_key: "sidebarSearch",
2523
- ref: h,
2524
- query: d.value,
2525
- "onUpdate:query": l[3] ||= (e) => d.value = e,
2526
- active: f.value,
2527
- "onUpdate:active": l[4] ||= (e) => f.value = e,
2612
+ ref: g,
2613
+ query: f.value,
2614
+ "onUpdate:query": r[3] ||= (e) => f.value = e,
2615
+ active: p.value,
2616
+ "onUpdate:active": r[4] ||= (e) => p.value = e,
2528
2617
  class: "td-sidebar-search"
2529
2618
  }, null, 8, ["query", "active"]),
2530
- L("div", no, [!f.value && !s.value ? (H(), P(ha, { key: 0 })) : f.value ? F("", !0) : (H(), P(kr, {
2531
- key: 1,
2532
- tree: q(o).contentTree
2533
- }, null, 8, ["tree"]))]),
2534
- L("div", {
2619
+ R(_a, {
2620
+ tree: q(s).contentTree,
2621
+ "search-active": p.value,
2622
+ ready: c.value
2623
+ }, null, 8, [
2624
+ "tree",
2625
+ "search-active",
2626
+ "ready"
2627
+ ]),
2628
+ W(e.$slots, "sidebar-bottom", {}, void 0, !0),
2629
+ I("div", {
2535
2630
  class: "td-resize-handle",
2536
2631
  role: "separator",
2537
2632
  "aria-orientation": "vertical",
2538
2633
  "aria-label": "Resize sidebar",
2539
2634
  tabindex: "0",
2540
- onPointerdown: rt(x, ["prevent"]),
2541
- onKeydown: [nt(rt(S, ["prevent"]), ["left"]), nt(rt(y, ["prevent"]), ["right"])]
2542
- }, null, 40, ro)
2543
- ], 4), L("div", io, [L("main", ao, [L("article", oo, [
2544
- q(n).schema ? (H(), I("div", so, K(q(n).schemaLabel ?? q(n).schema), 1)) : F("", !0),
2545
- r.value ? (H(), I("div", co, [(H(), P(G(r.value), { size: 32 }))])) : F("", !0),
2546
- q(t) ? (H(), I("h1", {
2635
+ onPointerdown: rt(w, ["prevent"]),
2636
+ onKeydown: [nt(rt(T, ["prevent"]), ["left"]), nt(rt(S, ["prevent"]), ["right"])]
2637
+ }, null, 40, ao)
2638
+ ], 4), I("div", oo, [I("main", so, [I("article", co, [
2639
+ W(e.$slots, "doc-before", {}, void 0, !0),
2640
+ q(n).schema ? (V(), F("div", lo, K(q(n).schemaLabel ?? q(n).schema), 1)) : P("", !0),
2641
+ i.value ? (V(), F("div", uo, [(V(), N(G(i.value), { size: 32 }))])) : P("", !0),
2642
+ q(t) ? (V(), F("h1", {
2547
2643
  key: 2,
2548
2644
  class: "td-page-title",
2549
- innerHTML: q(Ct)(q(t))
2550
- }, null, 8, lo)) : F("", !0),
2551
- q(n).fileMetadata ? (H(), I("div", uo, [L("span", null, K(q(b)(q(n).fileMetadata.mtime, "Modified")), 1), q(n).fileMetadata.ctime === q(n).fileMetadata.mtime ? F("", !0) : (H(), I("span", fo, " · " + K(q(b)(q(n).fileMetadata.ctime, "Created")), 1))])) : F("", !0),
2552
- z(q(Bi), {
2645
+ innerHTML: q(n).titleHtml
2646
+ }, null, 8, fo)) : P("", !0),
2647
+ q(n).fileMetadata ? (V(), F("div", po, [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", mo, " · " + K(q(b)(q(n).fileMetadata.ctime, "Created")), 1))])) : P("", !0),
2648
+ R(q(Vi), {
2553
2649
  class: "td-frontmatter-inline",
2554
2650
  schema: q(n).schema,
2555
2651
  frontmatter: q(n).frontmatter
2556
2652
  }, null, 8, ["schema", "frontmatter"]),
2557
- q(n).headings.length > 0 ? (H(), P(da, {
2653
+ q(n).headings.length > 0 ? (V(), N(fa, {
2558
2654
  key: 4,
2559
2655
  class: "td-toc-inline",
2560
2656
  headings: q(n).headings,
2561
2657
  static: ""
2562
- }, null, 8, ["headings"])) : F("", !0),
2563
- L("div", po, [z(q(Ce))]),
2564
- z(ia)
2565
- ])]), z(pa, { class: "td-rail" })])]),
2566
- z(Mr)
2658
+ }, null, 8, ["headings"])) : P("", !0),
2659
+ W(e.$slots, "doc-content-before", {}, void 0, !0),
2660
+ I("div", ho, [R(q(Ce))]),
2661
+ W(e.$slots, "doc-content-after", {}, void 0, !0),
2662
+ R(aa),
2663
+ q(a).repo && q(n).filepath ? (V(), F("a", {
2664
+ key: 5,
2665
+ href: v(q(n).filepath),
2666
+ target: "_blank",
2667
+ rel: "noopener noreferrer",
2668
+ class: "td-page-edit"
2669
+ }, "Edit this page", 8, go)) : P("", !0),
2670
+ W(e.$slots, "doc-after", {}, void 0, !0)
2671
+ ])]), R(ma, { class: "td-rail" })])]),
2672
+ R(Nr),
2673
+ W(e.$slots, "layout-bottom", {}, void 0, !0)
2567
2674
  ]));
2568
2675
  }
2569
- }), [["__scopeId", "data-v-0acfae50"]]), yo = { class: "pt-16 pb-24" }, bo = ["href"], xo = /* @__PURE__ */ B({
2676
+ }), [["__scopeId", "data-v-fa441596"]]), So = { class: "pt-16 pb-24" }, Co = ["href"], wo = /* @__PURE__ */ z({
2570
2677
  __name: "TdNotFound",
2571
2678
  setup(e) {
2572
- let { withBase: t } = j();
2573
- return (e, n) => (H(), I("div", yo, [
2574
- n[0] ||= L("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
2575
- n[1] ||= L("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
2576
- n[2] ||= L("p", { class: "text-td-fg-muted mt-2 text-td-base leading-td-relaxed" }, " The page you are looking for does not exist. ", -1),
2577
- L("a", {
2679
+ let { withBase: t } = A();
2680
+ return (e, n) => (V(), F("div", So, [
2681
+ n[0] ||= I("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
2682
+ n[1] ||= I("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
2683
+ n[2] ||= I("p", { class: "text-td-fg-muted mt-2 text-td-base leading-td-relaxed" }, " The page you are looking for does not exist. ", -1),
2684
+ I("a", {
2578
2685
  class: "inline-flex items-center mt-6 text-td-accent text-td-sm font-extrabold tracking-td-tight hover:text-td-accent-hi",
2579
2686
  href: q(t)(q(C)("/"))
2580
- }, "Go Home", 8, bo)
2687
+ }, "Go Home", 8, Co)
2581
2688
  ]));
2582
2689
  }
2583
- }), So = {
2584
- Layout: vo,
2585
- NotFound: xo
2690
+ }), To = {
2691
+ Layout: xo,
2692
+ NotFound: wo
2586
2693
  };
2587
2694
  //#endregion
2588
- export { Se as TdDirectoryIndex, me as TdGlossaryIndex, _a as TdKbdShortcut, $ as TdKeyName, vo as TdLayout, xo as TdNotFound, So as default, Ma as useCopyCode, Pa as useGlobalHotkey, Fa as useLocalHotkeys };
2695
+ export { yt as TdBrandIcon, Ar as TdContentNav, Se as TdDirectoryIndex, Nr as TdFooter, me as TdGlossaryIndex, ya as TdKbdShortcut, $ as TdKeyName, xo as TdLayout, wo as TdNotFound, aa as TdPreviousNext, ma as TdRail, Na as TdThemeToggle, fa as TdToc, To as default, Pa as useCopyCode, La as useGlobalHotkey, Ra as useLocalHotkeys };