typerighter 0.55.1 → 0.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +3 -0
  2. package/README.npm.md +3 -0
  3. package/dist/{app-C1ognrj1.js → app-Btmcn8ed.js} +574 -551
  4. package/dist/{cli-Cfn9ef18.js → cli-0cwy5E5t.js} +5 -5
  5. package/dist/cli.js +1 -1
  6. package/dist/client/app/index.d.ts +1 -1
  7. package/dist/client/app/index.d.ts.map +1 -1
  8. package/dist/client/theme-default/composables/client-preferences/index.d.ts +5 -0
  9. package/dist/client/theme-default/composables/client-preferences/index.d.ts.map +1 -0
  10. package/dist/client/theme-default/composables/client-preferences/useSidebarConfig.d.ts +14 -0
  11. package/dist/client/theme-default/composables/client-preferences/useSidebarConfig.d.ts.map +1 -0
  12. package/dist/client/theme-default/composables/client-preferences/useTheme.d.ts.map +1 -0
  13. package/dist/client/theme-default/composables/client-preferences/utils/buildHeadScript.d.ts +5 -0
  14. package/dist/client/theme-default/composables/client-preferences/utils/buildHeadScript.d.ts.map +1 -0
  15. package/dist/client/theme-default/composables/client-preferences/utils/registry.d.ts +3 -0
  16. package/dist/client/theme-default/composables/client-preferences/utils/registry.d.ts.map +1 -0
  17. package/dist/client/theme-default/composables/client-preferences/utils/useClientPreferences.d.ts +5 -0
  18. package/dist/client/theme-default/composables/client-preferences/utils/useClientPreferences.d.ts.map +1 -0
  19. package/dist/client/theme-default.js +1340 -1258
  20. package/dist/client.js +1 -1
  21. package/dist/index.d.ts +2 -1
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +2 -2
  24. package/dist/{init-DLnxbm8u.js → init-CVVOslzB.js} +1 -1
  25. package/dist/node/index.d.ts +5 -3
  26. package/dist/node/index.d.ts.map +1 -1
  27. package/dist/node/lib/html-template.d.ts.map +1 -1
  28. package/dist/node/lib/index.d.ts +3 -2
  29. package/dist/node/lib/index.d.ts.map +1 -1
  30. package/dist/node/lib/render/index.d.ts +2 -1
  31. package/dist/node/lib/render/index.d.ts.map +1 -1
  32. package/dist/node/plugin/index.d.ts +2 -1
  33. package/dist/node/plugin/index.d.ts.map +1 -1
  34. package/dist/{page-BktMady3.js → page-I67xAM4w.js} +32 -29
  35. package/dist/prerenderWorker.js +1 -1
  36. package/dist/registry-DHnqBLvh.js +9 -0
  37. package/dist/shared/index.d.ts +6 -4
  38. package/dist/shared/index.d.ts.map +1 -1
  39. package/dist/shared/types/index.d.ts +4 -3
  40. package/dist/shared/types/index.d.ts.map +1 -1
  41. package/dist/shared/utils/index.d.ts +8 -8
  42. package/dist/shared/utils/index.d.ts.map +1 -1
  43. package/dist/typerighter.css +1 -1
  44. package/dist/{vite-B9tiBEhg.js → vite-DQoRnpfn.js} +1 -1
  45. package/dist/vite.js +1 -1
  46. package/package.json +3 -3
  47. package/dist/client/app/composables/useTheme.d.ts.map +0 -1
  48. /package/dist/client/{app/composables → theme-default/composables/client-preferences}/useTheme.d.ts +0 -0
@@ -1,17 +1,47 @@
1
1
  import { A as e, D as t, E as n, I as r, L as i, P as a, R as o, T as s, Y as c, _ as l, a as u, b as d, c as f, f as p, j as m, k as h, l as g, n as _, nt as v, p as y, r as b, rt as x, s as S, v as C, w, y as T } from "../shared-BK7uzYmy.js";
2
- import { t as E } from "../es-B_QJMowB.js";
3
- import { A as ee, B as te, C as D, D as ne, E as O, F as k, H as re, I as ie, L as ae, M as oe, N as se, O as ce, P as le, R as ue, S as de, T as fe, U as A, V as pe, _ as me, a as he, b as ge, c as _e, d as ve, f as ye, g as be, h as xe, i as Se, j as Ce, k as we, l as Te, m as j, n as Ee, o as De, p as Oe, r as M, s as ke, u as Ae, v as je, w as Me, x as Ne, y as Pe, z as Fe } from "../app-C1ognrj1.js";
4
- import { a as Ie, i as Le, n as Re, t as ze } from "../brand-BSCRFcrY.js";
5
- import { t as Be } from "../inlineRe-CoUp2DgK.js";
6
- import { Fragment as N, Teleport as Ve, computed as P, createBlock as F, createCommentVNode as I, createElementBlock as L, createElementVNode as R, createTextVNode as z, createVNode as B, defineComponent as V, getCurrentScope as He, h as Ue, markRaw as We, mergeModels as Ge, mergeProps as Ke, nextTick as qe, normalizeClass as H, normalizeStyle as Je, onBeforeUnmount as Ye, onMounted as Xe, onScopeDispose as Ze, onUnmounted as Qe, openBlock as U, readonly as $e, ref as W, render as et, renderList as G, renderSlot as K, resolveComponent as tt, resolveDynamicComponent as nt, shallowReadonly as rt, shallowRef as it, toDisplayString as q, toValue as at, unref as J, useModel as ot, useTemplateRef as Y, vModelText as st, vShow as ct, watch as X, watchEffect as lt, withCtx as ut, withDirectives as dt, withKeys as ft, withModifiers as pt } from "vue";
7
- var mt = A({
2
+ import { A as E, B as ee, C as te, D, E as ne, F as re, G as ie, H as O, I as ae, K as oe, L as se, M as ce, N as le, O as ue, P as de, R as fe, S as pe, T as me, U as he, V as ge, W as _e, _ as ve, a as ye, b as be, c as xe, d as Se, f as Ce, g as we, h as Te, i as Ee, j as De, k as Oe, l as ke, m as Ae, n as je, o as Me, p as k, r as A, s as Ne, u as Pe, v as Fe, w as Ie, x as Le, y as Re, z as ze } from "../app-Btmcn8ed.js";
3
+ import { n as Be } from "../registry-DHnqBLvh.js";
4
+ import { t as Ve } from "../es-B_QJMowB.js";
5
+ import { a as He, i as Ue, n as We, t as Ge } from "../brand-BSCRFcrY.js";
6
+ import { t as Ke } from "../inlineRe-CoUp2DgK.js";
7
+ import { Fragment as j, Teleport as qe, Transition as Je, 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 Ye, h as Xe, markRaw as Ze, mergeModels as Qe, mergeProps as $e, nextTick as et, normalizeClass as B, normalizeStyle as tt, onBeforeUnmount as nt, onMounted as V, onScopeDispose as rt, onUnmounted as it, openBlock as H, readonly as at, ref as U, render as ot, renderList as W, renderSlot as G, resolveComponent as st, resolveDynamicComponent as ct, shallowReadonly as lt, shallowRef as ut, toDisplayString as K, toValue as dt, unref as q, useModel as ft, useTemplateRef as J, vModelText as pt, vShow as mt, watch as Y, watchEffect as ht, withCtx as X, withDirectives as gt, withKeys as _t, withModifiers as vt } from "vue";
8
+ // src/client/theme-default/composables/client-preferences/utils/useClientPreferences.ts
9
+ function yt(e, t) {
10
+ let n = typeof localStorage < "u" ? localStorage.getItem(e) : null, r = n === null ? t : bt(n, t), i = U(r);
11
+ return Y(i, (t) => {
12
+ typeof localStorage < "u" && localStorage.setItem(e, String(t));
13
+ }), i;
14
+ }
15
+ function bt(e, t) {
16
+ return typeof t == "boolean" ? e === "true" : typeof t == "number" ? Number(e) || t : e;
17
+ }
18
+ // src/client/theme-default/composables/client-preferences/useSidebarConfig.ts
19
+ var xt = "td-sidebar-width", St = "td-sidebar-collapsed", Ct = "--td-sidebar-width", wt = 300, Tt = 48, Et = 200, Dt = 500;
20
+ function Ot() {
21
+ let e = yt(xt, 300), t = yt(St, !1), n = U(!1);
22
+ V(() => {
23
+ n.value = !0;
24
+ });
25
+ let r = M(() => t.value ? 48 : e.value);
26
+ return {
27
+ sidebarWidth: e,
28
+ sidebarCollapsed: t,
29
+ sidebarStyle: M(() => n.value ? { width: `${r.value}px` } : {})
30
+ };
31
+ }
32
+ function kt() {
33
+ let e = `${_e(St)}==='true'`, t = `collapsed?48:(Number(${_e(xt)})||300)`;
34
+ return oe(`var collapsed=${e};var width=${t};` + ie(Ct, "`${width}px`"));
35
+ }
36
+ Be(kt);
37
+ var At = O({
8
38
  name: "check",
9
39
  size: 24,
10
40
  node: [["path", {
11
41
  d: "M20 6 9 17l-5-5",
12
42
  key: "1gmf2c"
13
43
  }]]
14
- }), ht = A({
44
+ }), jt = O({
15
45
  name: "chevrons-left",
16
46
  size: 24,
17
47
  node: [["path", {
@@ -21,7 +51,7 @@ var mt = A({
21
51
  d: "m18 17-5-5 5-5",
22
52
  key: "h8a8et"
23
53
  }]]
24
- }), gt = A({
54
+ }), Mt = O({
25
55
  name: "chevrons-right",
26
56
  size: 24,
27
57
  node: [["path", {
@@ -31,7 +61,7 @@ var mt = A({
31
61
  d: "m13 17 5-5-5-5",
32
62
  key: "17xmmf"
33
63
  }]]
34
- }), _t = A({
64
+ }), Nt = O({
35
65
  name: "circle-dot",
36
66
  size: 24,
37
67
  node: [["circle", {
@@ -45,7 +75,7 @@ var mt = A({
45
75
  r: "10",
46
76
  key: "1mglay"
47
77
  }]]
48
- }), vt = A({
78
+ }), Pt = O({
49
79
  name: "clipboard-copy",
50
80
  size: 24,
51
81
  node: [
@@ -75,14 +105,14 @@ var mt = A({
75
105
  key: "5dvupr"
76
106
  }]
77
107
  ]
78
- }), yt = A({
108
+ }), Ft = O({
79
109
  name: "command",
80
110
  size: 24,
81
111
  node: [["path", {
82
112
  d: "M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",
83
113
  key: "11bfej"
84
114
  }]]
85
- }), bt = A({
115
+ }), It = O({
86
116
  name: "corner-down-left",
87
117
  size: 24,
88
118
  node: [["path", {
@@ -92,7 +122,7 @@ var mt = A({
92
122
  d: "m9 10-5 5 5 5",
93
123
  key: "1kshq7"
94
124
  }]]
95
- }), xt = A({
125
+ }), Lt = O({
96
126
  name: "delete",
97
127
  size: 24,
98
128
  node: [
@@ -109,14 +139,14 @@ var mt = A({
109
139
  key: "1fp51s"
110
140
  }]
111
141
  ]
112
- }), St = A({
142
+ }), Rt = O({
113
143
  name: "folder-open",
114
144
  size: 24,
115
145
  node: [["path", {
116
146
  d: "m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",
117
147
  key: "usdka0"
118
148
  }]]
119
- }), Ct = A({
149
+ }), zt = O({
120
150
  name: "loader-circle",
121
151
  size: 24,
122
152
  node: [["path", {
@@ -124,7 +154,7 @@ var mt = A({
124
154
  key: "13zald"
125
155
  }]],
126
156
  aliases: ["loader-2"]
127
- }), wt = A({
157
+ }), Bt = O({
128
158
  name: "maximize",
129
159
  size: 24,
130
160
  node: [
@@ -145,7 +175,7 @@ var mt = A({
145
175
  key: "18trek"
146
176
  }]
147
177
  ]
148
- }), Tt = A({
178
+ }), Vt = O({
149
179
  name: "option",
150
180
  size: 24,
151
181
  node: [["path", {
@@ -155,14 +185,14 @@ var mt = A({
155
185
  d: "M3 3h5.28a1 1 0 0 1 .948.684l5.544 16.632a1 1 0 0 0 .949.684H21",
156
186
  key: "1qf1im"
157
187
  }]]
158
- }), Et = A({
188
+ }), Ht = O({
159
189
  name: "space",
160
190
  size: 24,
161
191
  node: [["path", {
162
192
  d: "M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",
163
193
  key: "lt2kga"
164
194
  }]]
165
- }), Dt = A({
195
+ }), Ut = O({
166
196
  name: "square-check-big",
167
197
  size: 24,
168
198
  node: [["path", {
@@ -173,7 +203,7 @@ var mt = A({
173
203
  key: "1pflzl"
174
204
  }]],
175
205
  aliases: ["check-square"]
176
- }), Ot = A({
206
+ }), Wt = O({
177
207
  name: "tags",
178
208
  size: 24,
179
209
  node: [
@@ -193,7 +223,7 @@ var mt = A({
193
223
  key: "12ikhr"
194
224
  }]
195
225
  ]
196
- }), kt = A({
226
+ }), Gt = O({
197
227
  name: "type",
198
228
  size: 24,
199
229
  node: [
@@ -210,117 +240,117 @@ var mt = A({
210
240
  key: "s66wpe"
211
241
  }]
212
242
  ]
213
- }), At = [
243
+ }), Kt = [
214
244
  "height",
215
245
  "width",
216
246
  "viewBox"
217
- ], jt = ["d"], Mt = ["d"], Nt = ["d"], Pt = /* @__PURE__ */ V({
247
+ ], qt = ["d"], Jt = ["d"], Yt = ["d"], Xt = /* @__PURE__ */ z({
218
248
  __name: "TdBrandIcon",
219
249
  props: { size: { default: 28 } },
220
250
  setup(e) {
221
- return (t, n) => (U(), L("svg", {
251
+ return (t, n) => (H(), F("svg", {
222
252
  fill: "none",
223
253
  height: e.size,
224
254
  width: e.size * 208 / 128,
225
- viewBox: J(Ie),
255
+ viewBox: q(He),
226
256
  xmlns: "http://www.w3.org/2000/svg"
227
257
  }, [
228
- R("path", {
258
+ I("path", {
229
259
  "clip-rule": "evenodd",
230
- d: J(Re),
260
+ d: q(We),
231
261
  "fill-rule": "evenodd",
232
262
  fill: "currentColor"
233
- }, null, 8, jt),
234
- R("path", {
235
- d: J(Le),
263
+ }, null, 8, qt),
264
+ I("path", {
265
+ d: q(Ue),
236
266
  fill: "currentColor"
237
- }, null, 8, Mt),
238
- R("path", {
239
- d: J(ze),
267
+ }, null, 8, Jt),
268
+ I("path", {
269
+ d: q(Ge),
240
270
  fill: "currentColor"
241
- }, null, 8, Nt)
242
- ], 8, At));
271
+ }, null, 8, Yt)
272
+ ], 8, Kt));
243
273
  }
244
- }), Ft = ["title", "aria-label"], It = /*#__PURE__*/ j(/* @__PURE__ */ V({
274
+ }), Zt = ["title", "aria-label"], Qt = /*#__PURE__*/ k(/* @__PURE__ */ z({
245
275
  __name: "TdButton",
246
276
  props: { label: {} },
247
277
  setup(e) {
248
- return (t, n) => (U(), L("button", {
278
+ return (t, n) => (H(), F("button", {
249
279
  type: "button",
250
280
  class: "td-icon-btn",
251
281
  title: e.label,
252
282
  "aria-label": e.label
253
- }, [K(t.$slots, "default", {}, void 0, !0)], 8, Ft));
283
+ }, [G(t.$slots, "default", {}, void 0, !0)], 8, Zt));
254
284
  }
255
- }), [["__scopeId", "data-v-b1861a4a"]]), Lt = Math.min, Rt = Math.max, zt = Math.round, Bt = (e) => ({
285
+ }), [["__scopeId", "data-v-b1861a4a"]]), $t = Math.min, en = Math.max, tn = Math.round, nn = (e) => ({
256
286
  x: e,
257
287
  y: e
258
- }), Vt = {
288
+ }), rn = {
259
289
  left: "right",
260
290
  right: "left",
261
291
  bottom: "top",
262
292
  top: "bottom"
263
293
  };
264
- function Ht(e, t, n) {
265
- return Rt(e, Lt(t, n));
294
+ function an(e, t, n) {
295
+ return en(e, $t(t, n));
266
296
  }
267
- function Ut(e, t) {
297
+ function on(e, t) {
268
298
  return typeof e == "function" ? e(t) : e;
269
299
  }
270
- function Wt(e) {
300
+ function sn(e) {
271
301
  return e.split("-")[0];
272
302
  }
273
- function Gt(e) {
303
+ function cn(e) {
274
304
  return e.split("-")[1];
275
305
  }
276
- function Kt(e) {
306
+ function ln(e) {
277
307
  return e === "x" ? "y" : "x";
278
308
  }
279
- function qt(e) {
309
+ function un(e) {
280
310
  return e === "y" ? "height" : "width";
281
311
  }
282
- function Jt(e) {
312
+ function dn(e) {
283
313
  let t = e[0];
284
314
  return t === "t" || t === "b" ? "y" : "x";
285
315
  }
286
- function Yt(e) {
287
- return Kt(Jt(e));
316
+ function fn(e) {
317
+ return ln(dn(e));
288
318
  }
289
- function Xt(e, t, n) {
319
+ function pn(e, t, n) {
290
320
  n === void 0 && (n = !1);
291
- let r = Gt(e), i = Yt(e), a = qt(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
292
- return t.reference[a] > t.floating[a] && (o = on(o)), [o, on(o)];
321
+ let r = cn(e), i = fn(e), a = un(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
322
+ return t.reference[a] > t.floating[a] && (o = Sn(o)), [o, Sn(o)];
293
323
  }
294
- function Zt(e) {
295
- let t = on(e);
324
+ function mn(e) {
325
+ let t = Sn(e);
296
326
  return [
297
- Qt(e),
327
+ hn(e),
298
328
  t,
299
- Qt(t)
329
+ hn(t)
300
330
  ];
301
331
  }
302
- function Qt(e) {
332
+ function hn(e) {
303
333
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
304
334
  }
305
- var $t = ["left", "right"], en = ["right", "left"], tn = ["top", "bottom"], nn = ["bottom", "top"];
306
- function rn(e, t, n) {
335
+ var gn = ["left", "right"], _n = ["right", "left"], vn = ["top", "bottom"], yn = ["bottom", "top"];
336
+ function bn(e, t, n) {
307
337
  switch (e) {
308
338
  case "top":
309
- case "bottom": return n ? t ? en : $t : t ? $t : en;
339
+ case "bottom": return n ? t ? _n : gn : t ? gn : _n;
310
340
  case "left":
311
- case "right": return t ? tn : nn;
341
+ case "right": return t ? vn : yn;
312
342
  default: return [];
313
343
  }
314
344
  }
315
- function an(e, t, n, r) {
316
- let i = Gt(e), a = rn(Wt(e), n === "start", r);
317
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Qt)))), a;
345
+ function xn(e, t, n, r) {
346
+ let i = cn(e), a = bn(sn(e), n === "start", r);
347
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(hn)))), a;
318
348
  }
319
- function on(e) {
320
- let t = Wt(e);
321
- return Vt[t] + e.slice(t.length);
349
+ function Sn(e) {
350
+ let t = sn(e);
351
+ return rn[t] + e.slice(t.length);
322
352
  }
323
- function sn(e) {
353
+ function Cn(e) {
324
354
  return {
325
355
  top: e.top ?? 0,
326
356
  right: e.right ?? 0,
@@ -328,15 +358,15 @@ function sn(e) {
328
358
  left: e.left ?? 0
329
359
  };
330
360
  }
331
- function cn(e) {
361
+ function wn(e) {
332
362
  return typeof e == "number" ? {
333
363
  top: e,
334
364
  right: e,
335
365
  bottom: e,
336
366
  left: e
337
- } : sn(e);
367
+ } : Cn(e);
338
368
  }
339
- function ln(e) {
369
+ function Tn(e) {
340
370
  let { x: t, y: n, width: r, height: i } = e;
341
371
  return {
342
372
  width: r,
@@ -350,8 +380,8 @@ function ln(e) {
350
380
  };
351
381
  }
352
382
  // ../../node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
353
- function un(e, t, n) {
354
- let { reference: r, floating: i } = e, a = Jt(t), o = Yt(t), s = qt(o), c = Wt(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;
383
+ function En(e, t, n) {
384
+ let { reference: r, floating: i } = e, a = dn(t), o = fn(t), s = un(o), c = sn(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;
355
385
  switch (c) {
356
386
  case "top":
357
387
  p = {
@@ -382,12 +412,12 @@ function un(e, t, n) {
382
412
  y: r.y
383
413
  };
384
414
  }
385
- let m = Gt(t);
415
+ let m = cn(t);
386
416
  return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
387
417
  }
388
- async function dn(e, t) {
418
+ async function Dn(e, t) {
389
419
  t === void 0 && (t = {});
390
- 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 } = Ut(t, e), p = cn(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = ln(await i.getClippingRect({
420
+ 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 } = on(t, e), p = wn(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Tn(await i.getClippingRect({
391
421
  element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
392
422
  boundary: c,
393
423
  rootBoundary: l,
@@ -400,7 +430,7 @@ async function dn(e, t) {
400
430
  } : 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(_)) || {
401
431
  x: 1,
402
432
  y: 1
403
- }, y = ln(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
433
+ }, y = Tn(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
404
434
  elements: o,
405
435
  rect: g,
406
436
  offsetParent: _,
@@ -413,15 +443,15 @@ async function dn(e, t) {
413
443
  right: (y.right - h.right + p.right) / v.x
414
444
  };
415
445
  }
416
- var fn = 50, pn = async (e, t, n) => {
446
+ var On = 50, kn = async (e, t, n) => {
417
447
  let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
418
448
  ...o,
419
- detectOverflow: dn
449
+ detectOverflow: Dn
420
450
  }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
421
451
  reference: e,
422
452
  floating: t,
423
453
  strategy: i
424
- }), { x: u, y: d } = un(l, r, c), f = r, p = 0, m = {};
454
+ }), { x: u, y: d } = En(l, r, c), f = r, p = 0, m = {};
425
455
  for (let n = 0; n < a.length; n++) {
426
456
  let h = a[n];
427
457
  if (!h) continue;
@@ -442,11 +472,11 @@ var fn = 50, pn = async (e, t, n) => {
442
472
  u = v ?? u, d = y ?? d, m[g] = {
443
473
  ...m[g],
444
474
  ...b
445
- }, x && p < fn && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
475
+ }, x && p < On && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
446
476
  reference: e,
447
477
  floating: t,
448
478
  strategy: i
449
- }) : x.rects), {x: u, y: d} = un(l, f, c)), n = -1);
479
+ }) : x.rects), {x: u, y: d} = En(l, f, c)), n = -1);
450
480
  }
451
481
  return {
452
482
  x: u,
@@ -455,41 +485,41 @@ var fn = 50, pn = async (e, t, n) => {
455
485
  strategy: i,
456
486
  middlewareData: m
457
487
  };
458
- }, mn = (e) => ({
488
+ }, An = (e) => ({
459
489
  name: "arrow",
460
490
  options: e,
461
491
  async fn(t) {
462
- let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = Ut(e, t) || {};
492
+ let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = on(e, t) || {};
463
493
  if (l == null) return {};
464
- let d = cn(u), f = {
494
+ let d = wn(u), f = {
465
495
  x: n,
466
496
  y: r
467
- }, p = Yt(i), m = qt(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;
497
+ }, p = fn(i), m = un(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;
468
498
  C && await (o.isElement == null ? void 0 : o.isElement(S)) || (C = s.floating[y] || a.floating[m]);
469
- let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Lt(d[_], T), ee = Lt(d[v], T), te = C - h[m] - ee, D = C / 2 - h[m] / 2 + w, ne = Ht(E, D, te), O = !c.arrow && Gt(i) != null && D !== ne && a.reference[m] / 2 - (D < E ? E : ee) - h[m] / 2 < 0, k = O ? D < E ? D - E : D - te : 0;
499
+ let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = $t(d[_], T), ee = $t(d[v], T), te = C - h[m] - ee, D = C / 2 - h[m] / 2 + w, ne = an(E, D, te), re = !c.arrow && cn(i) != null && D !== ne && a.reference[m] / 2 - (D < E ? E : ee) - h[m] / 2 < 0, ie = re ? D < E ? D - E : D - te : 0;
470
500
  return {
471
- [p]: f[p] + k,
501
+ [p]: f[p] + ie,
472
502
  data: {
473
503
  [p]: ne,
474
- centerOffset: D - ne - k,
475
- ...O && { alignmentOffset: k }
504
+ centerOffset: D - ne - ie,
505
+ ...re && { alignmentOffset: ie }
476
506
  },
477
- reset: O
507
+ reset: re
478
508
  };
479
509
  }
480
- }), hn = function(e) {
510
+ }), jn = function(e) {
481
511
  return e === void 0 && (e = {}), {
482
512
  name: "flip",
483
513
  options: e,
484
514
  async fn(t) {
485
515
  var n;
486
- 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 } = Ut(e, t);
516
+ 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 } = on(e, t);
487
517
  if ((n = i.arrow) != null && n.alignmentOffset) return {};
488
- let g = Wt(r), _ = Jt(o), v = Wt(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [on(o)] : Zt(o)), x = p !== "none";
489
- !d && x && b.push(...an(o, m, p, y));
518
+ let g = sn(r), _ = dn(o), v = sn(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Sn(o)] : mn(o)), x = p !== "none";
519
+ !d && x && b.push(...xn(o, m, p, y));
490
520
  let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
491
521
  if (l && w.push(C[g]), u) {
492
- let e = Xt(r, a, y);
522
+ let e = pn(r, a, y);
493
523
  w.push(C[e[0]], C[e[1]]);
494
524
  }
495
525
  if (T = [...T, {
@@ -497,7 +527,7 @@ var fn = 50, pn = async (e, t, n) => {
497
527
  overflows: w
498
528
  }], !w.every((e) => e <= 0)) {
499
529
  let e = (i.flip?.index || 0) + 1, t = S[e];
500
- if (t && (u !== "alignment" || _ === Jt(t) || T.every((e) => Jt(e.placement) !== _ || e.overflows[0] > 0))) return {
530
+ if (t && (u !== "alignment" || _ === dn(t) || T.every((e) => dn(e.placement) !== _ || e.overflows[0] > 0))) return {
501
531
  data: {
502
532
  index: e,
503
533
  overflows: T
@@ -509,7 +539,7 @@ var fn = 50, pn = async (e, t, n) => {
509
539
  case "bestFit": {
510
540
  let e = T.filter((e) => {
511
541
  if (x) {
512
- let t = Jt(e.placement);
542
+ let t = dn(e.placement);
513
543
  return t === _ || t === "y";
514
544
  }
515
545
  return !0;
@@ -524,9 +554,9 @@ var fn = 50, pn = async (e, t, n) => {
524
554
  return {};
525
555
  }
526
556
  };
527
- }, gn = /*#__PURE__*/ new Set(["left", "top"]);
528
- async function _n(e, t) {
529
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Wt(n), s = Gt(n), c = Jt(n) === "y", l = gn.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Ut(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
557
+ }, Mn = /*#__PURE__*/ new Set(["left", "top"]);
558
+ async function Nn(e, t) {
559
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = sn(n), s = cn(n), c = dn(n) === "y", l = Mn.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = on(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
530
560
  mainAxis: d,
531
561
  crossAxis: 0,
532
562
  alignmentAxis: null
@@ -543,13 +573,13 @@ async function _n(e, t) {
543
573
  y: p * u
544
574
  };
545
575
  }
546
- var vn = function(e) {
576
+ var Pn = function(e) {
547
577
  return e === void 0 && (e = 0), {
548
578
  name: "offset",
549
579
  options: e,
550
580
  async fn(t) {
551
581
  var n;
552
- let { x: r, y: i, placement: a, middlewareData: o } = t, s = await _n(t, e);
582
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await Nn(t, e);
553
583
  return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
554
584
  x: r + s.x,
555
585
  y: i + s.y,
@@ -560,7 +590,7 @@ var vn = function(e) {
560
590
  };
561
591
  }
562
592
  };
563
- }, yn = function(e) {
593
+ }, Fn = function(e) {
564
594
  return e === void 0 && (e = {}), {
565
595
  name: "shift",
566
596
  options: e,
@@ -571,10 +601,10 @@ var vn = function(e) {
571
601
  x: t,
572
602
  y: n
573
603
  };
574
- } }, ...l } = Ut(e, t), u = {
604
+ } }, ...l } = on(e, t), u = {
575
605
  x: n,
576
606
  y: r
577
- }, d = await a.detectOverflow(t, l), f = Jt(i), p = Kt(f), m = u[p], h = u[f], g = (e, t) => Ht(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
607
+ }, d = await a.detectOverflow(t, l), f = dn(i), p = ln(f), m = u[p], h = u[f], g = (e, t) => an(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
578
608
  o && (m = g(p, m)), s && (h = g(f, h));
579
609
  let _ = c.fn({
580
610
  ...t,
@@ -596,39 +626,39 @@ var vn = function(e) {
596
626
  };
597
627
  };
598
628
  // ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
599
- function bn() {
629
+ function In() {
600
630
  return typeof window < "u";
601
631
  }
602
- function xn(e) {
603
- return Cn(e) ? (e.nodeName || "").toLowerCase() : "#document";
632
+ function Ln(e) {
633
+ return zn(e) ? (e.nodeName || "").toLowerCase() : "#document";
604
634
  }
605
635
  function Z(e) {
606
636
  var t;
607
637
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
608
638
  }
609
- function Sn(e) {
610
- return ((Cn(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
639
+ function Rn(e) {
640
+ return ((zn(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
611
641
  }
612
- function Cn(e) {
613
- return bn() ? e instanceof Node || e instanceof Z(e).Node : !1;
642
+ function zn(e) {
643
+ return In() ? e instanceof Node || e instanceof Z(e).Node : !1;
614
644
  }
615
- function wn(e) {
616
- return bn() ? e instanceof Element || e instanceof Z(e).Element : !1;
645
+ function Bn(e) {
646
+ return In() ? e instanceof Element || e instanceof Z(e).Element : !1;
617
647
  }
618
- function Tn(e) {
619
- return bn() ? e instanceof HTMLElement || e instanceof Z(e).HTMLElement : !1;
648
+ function Vn(e) {
649
+ return In() ? e instanceof HTMLElement || e instanceof Z(e).HTMLElement : !1;
620
650
  }
621
- function En(e) {
622
- return !bn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Z(e).ShadowRoot;
651
+ function Hn(e) {
652
+ return !In() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Z(e).ShadowRoot;
623
653
  }
624
- function Dn(e) {
625
- let { overflow: t, overflowX: n, overflowY: r, display: i } = Rn(e);
654
+ function Un(e) {
655
+ let { overflow: t, overflowX: n, overflowY: r, display: i } = er(e);
626
656
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
627
657
  }
628
- function On(e) {
629
- return /^(table|td|th)$/.test(xn(e));
658
+ function Wn(e) {
659
+ return /^(table|td|th)$/.test(Ln(e));
630
660
  }
631
- function kn(e) {
661
+ function Gn(e) {
632
662
  try {
633
663
  if (e.matches(":popover-open")) return !0;
634
664
  } catch {}
@@ -638,31 +668,31 @@ function kn(e) {
638
668
  return !1;
639
669
  }
640
670
  }
641
- var An = /transform|translate|scale|rotate|perspective|filter/, jn = /paint|layout|strict|content/, Mn = (e) => !!e && e !== "none", Nn;
642
- function Pn(e) {
643
- let t = wn(e) ? Rn(e) : e;
644
- return Mn(t.transform) || Mn(t.translate) || Mn(t.scale) || Mn(t.rotate) || Mn(t.perspective) || !In() && (Mn(t.backdropFilter) || Mn(t.filter)) || An.test(t.willChange || "") || jn.test(t.contain || "");
671
+ var Kn = /transform|translate|scale|rotate|perspective|filter/, qn = /paint|layout|strict|content/, Jn = (e) => !!e && e !== "none", Yn;
672
+ function Xn(e) {
673
+ let t = Bn(e) ? er(e) : e;
674
+ return Jn(t.transform) || Jn(t.translate) || Jn(t.scale) || Jn(t.rotate) || Jn(t.perspective) || !Qn() && (Jn(t.backdropFilter) || Jn(t.filter)) || Kn.test(t.willChange || "") || qn.test(t.contain || "");
645
675
  }
646
- function Fn(e) {
647
- let t = Bn(e);
648
- for (; Tn(t) && !Ln(t);) {
649
- if (Pn(t)) return t;
650
- if (kn(t)) return null;
651
- t = Bn(t);
676
+ function Zn(e) {
677
+ let t = nr(e);
678
+ for (; Vn(t) && !$n(t);) {
679
+ if (Xn(t)) return t;
680
+ if (Gn(t)) return null;
681
+ t = nr(t);
652
682
  }
653
683
  return null;
654
684
  }
655
- function In() {
656
- return Nn ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Nn;
685
+ function Qn() {
686
+ return Yn ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Yn;
657
687
  }
658
- function Ln(e) {
659
- return /^(html|body|#document)$/.test(xn(e));
688
+ function $n(e) {
689
+ return /^(html|body|#document)$/.test(Ln(e));
660
690
  }
661
- function Rn(e) {
691
+ function er(e) {
662
692
  return Z(e).getComputedStyle(e);
663
693
  }
664
- function zn(e) {
665
- return wn(e) ? {
694
+ function tr(e) {
695
+ return Bn(e) ? {
666
696
  scrollLeft: e.scrollLeft,
667
697
  scrollTop: e.scrollTop
668
698
  } : {
@@ -670,101 +700,101 @@ function zn(e) {
670
700
  scrollTop: e.scrollY
671
701
  };
672
702
  }
673
- function Bn(e) {
674
- if (xn(e) === "html") return e;
675
- let t = e.assignedSlot || e.parentNode || En(e) && e.host || Sn(e);
676
- return En(t) ? t.host : t;
703
+ function nr(e) {
704
+ if (Ln(e) === "html") return e;
705
+ let t = e.assignedSlot || e.parentNode || Hn(e) && e.host || Rn(e);
706
+ return Hn(t) ? t.host : t;
677
707
  }
678
- function Vn(e) {
679
- let t = Bn(e);
680
- return Ln(t) ? (e.ownerDocument || e).body : Tn(t) && Dn(t) ? t : Vn(t);
708
+ function rr(e) {
709
+ let t = nr(e);
710
+ return $n(t) ? (e.ownerDocument || e).body : Vn(t) && Un(t) ? t : rr(t);
681
711
  }
682
- function Hn(e, t, n) {
712
+ function ir(e, t, n) {
683
713
  t === void 0 && (t = []), n === void 0 && (n = !0);
684
- let r = Vn(e), i = r === e.ownerDocument?.body, a = Z(r);
714
+ let r = rr(e), i = r === e.ownerDocument?.body, a = Z(r);
685
715
  if (i) {
686
- let e = Un(a);
687
- return t.concat(a, a.visualViewport || [], Dn(r) ? r : [], e && n ? Hn(e) : []);
716
+ let e = ar(a);
717
+ return t.concat(a, a.visualViewport || [], Un(r) ? r : [], e && n ? ir(e) : []);
688
718
  }
689
- return t.concat(r, Hn(r, [], n));
719
+ return t.concat(r, ir(r, [], n));
690
720
  }
691
- function Un(e) {
721
+ function ar(e) {
692
722
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
693
723
  }
694
724
  // ../../node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
695
- function Wn(e) {
696
- let t = Rn(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Tn(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = zt(n) !== a || zt(r) !== o;
725
+ function or(e) {
726
+ let t = er(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Vn(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = tn(n) !== a || tn(r) !== o;
697
727
  return s && (n = a, r = o), {
698
728
  width: n,
699
729
  height: r,
700
730
  $: s
701
731
  };
702
732
  }
703
- function Gn(e) {
704
- return wn(e) ? e : e.contextElement;
733
+ function sr(e) {
734
+ return Bn(e) ? e : e.contextElement;
705
735
  }
706
- function Kn(e) {
707
- let t = Gn(e);
708
- if (!Tn(t)) return Bt(1);
709
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Wn(t), o = (a ? zt(n.width) : n.width) / r, s = (a ? zt(n.height) : n.height) / i;
736
+ function cr(e) {
737
+ let t = sr(e);
738
+ if (!Vn(t)) return nn(1);
739
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = or(t), o = (a ? tn(n.width) : n.width) / r, s = (a ? tn(n.height) : n.height) / i;
710
740
  return o && Number.isFinite(o) || (o = 1), s && Number.isFinite(s) || (s = 1), {
711
741
  x: o,
712
742
  y: s
713
743
  };
714
744
  }
715
- var qn = /*#__PURE__*/ Bt(0);
716
- function Jn(e) {
745
+ var lr = /*#__PURE__*/ nn(0);
746
+ function ur(e) {
717
747
  let t = Z(e);
718
- return !In() || !t.visualViewport ? qn : {
748
+ return !Qn() || !t.visualViewport ? lr : {
719
749
  x: t.visualViewport.offsetLeft,
720
750
  y: t.visualViewport.offsetTop
721
751
  };
722
752
  }
723
- function Yn(e, t, n) {
753
+ function dr(e, t, n) {
724
754
  return t === void 0 && (t = !1), !!n && t && n === Z(e);
725
755
  }
726
- function Xn(e, t, n, r) {
756
+ function fr(e, t, n, r) {
727
757
  t === void 0 && (t = !1), n === void 0 && (n = !1);
728
- let i = e.getBoundingClientRect(), a = Gn(e), o = Bt(1);
729
- t && (r ? wn(r) && (o = Kn(r)) : o = Kn(e));
730
- let s = Yn(a, n, r) ? Jn(a) : Bt(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;
758
+ let i = e.getBoundingClientRect(), a = sr(e), o = nn(1);
759
+ t && (r ? Bn(r) && (o = cr(r)) : o = cr(e));
760
+ let s = dr(a, n, r) ? ur(a) : nn(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;
731
761
  if (a && r) {
732
- let e = Z(a), t = wn(r) ? Z(r) : r, n = e, i = Un(n);
762
+ let e = Z(a), t = Bn(r) ? Z(r) : r, n = e, i = ar(n);
733
763
  for (; i && t !== n;) {
734
- let e = Kn(i), t = i.getBoundingClientRect(), r = Rn(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
735
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = Z(i), i = Un(n);
764
+ let e = cr(i), t = i.getBoundingClientRect(), r = er(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
765
+ c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = Z(i), i = ar(n);
736
766
  }
737
767
  }
738
- return ln({
768
+ return Tn({
739
769
  width: u,
740
770
  height: d,
741
771
  x: c,
742
772
  y: l
743
773
  });
744
774
  }
745
- function Zn(e, t) {
746
- let n = zn(e).scrollLeft;
747
- return t ? t.left + n : Xn(Sn(e)).left + n;
775
+ function pr(e, t) {
776
+ let n = tr(e).scrollLeft;
777
+ return t ? t.left + n : fr(Rn(e)).left + n;
748
778
  }
749
- function Qn(e, t) {
779
+ function mr(e, t) {
750
780
  let n = e.getBoundingClientRect();
751
781
  return {
752
- x: n.left + t.scrollLeft - Zn(e, n),
782
+ x: n.left + t.scrollLeft - pr(e, n),
753
783
  y: n.top + t.scrollTop
754
784
  };
755
785
  }
756
- function $n(e) {
757
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Sn(r), s = t ? kn(t.floating) : !1;
786
+ function hr(e) {
787
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Rn(r), s = t ? Gn(t.floating) : !1;
758
788
  if (r === o || s && a) return n;
759
789
  let c = {
760
790
  scrollLeft: 0,
761
791
  scrollTop: 0
762
- }, l = Bt(1), u = Bt(0), d = Tn(r);
763
- if ((d || !a) && ((xn(r) !== "body" || Dn(o)) && (c = zn(r)), d)) {
764
- let e = Xn(r);
765
- l = Kn(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
792
+ }, l = nn(1), u = nn(0), d = Vn(r);
793
+ if ((d || !a) && ((Ln(r) !== "body" || Un(o)) && (c = tr(r)), d)) {
794
+ let e = fr(r);
795
+ l = cr(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
766
796
  }
767
- let f = o && !d && !a ? Qn(o, c) : Bt(0);
797
+ let f = o && !d && !a ? mr(o, c) : nn(0);
768
798
  return {
769
799
  width: n.width * l.x,
770
800
  height: n.height * l.y,
@@ -772,29 +802,29 @@ function $n(e) {
772
802
  y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
773
803
  };
774
804
  }
775
- function er(e) {
805
+ function gr(e) {
776
806
  return e.getClientRects ? Array.from(e.getClientRects()) : [];
777
807
  }
778
- function tr(e) {
779
- let t = zn(e), n = e.ownerDocument.body, r = Rt(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = Rt(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + Zn(e), o = -t.scrollTop;
780
- return Rn(n).direction === "rtl" && (a += Rt(e.clientWidth, n.clientWidth) - r), {
808
+ function _r(e) {
809
+ let t = tr(e), n = e.ownerDocument.body, r = en(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = en(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + pr(e), o = -t.scrollTop;
810
+ return er(n).direction === "rtl" && (a += en(e.clientWidth, n.clientWidth) - r), {
781
811
  width: r,
782
812
  height: i,
783
813
  x: a,
784
814
  y: o
785
815
  };
786
816
  }
787
- var nr = 25;
788
- function rr(e, t, n) {
817
+ var vr = 25;
818
+ function yr(e, t, n) {
789
819
  n === void 0 && (n = "viewport");
790
- let r = n === "layoutViewport", i = Z(e), a = Sn(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
820
+ let r = n === "layoutViewport", i = Z(e), a = Rn(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
791
821
  if (o) {
792
- let e = !In() || t === "fixed";
822
+ let e = !Qn() || t === "fixed";
793
823
  r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
794
824
  }
795
- if (Zn(a) <= 0) {
825
+ if (pr(a) <= 0) {
796
826
  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;
797
- o <= nr && (s -= o);
827
+ o <= vr && (s -= o);
798
828
  }
799
829
  return {
800
830
  width: s,
@@ -803,8 +833,8 @@ function rr(e, t, n) {
803
833
  y: u
804
834
  };
805
835
  }
806
- function ir(e, t) {
807
- let n = Xn(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Kn(e);
836
+ function br(e, t) {
837
+ let n = fr(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = cr(e);
808
838
  return {
809
839
  width: e.clientWidth * a.x,
810
840
  height: e.clientHeight * a.y,
@@ -812,13 +842,13 @@ function ir(e, t) {
812
842
  y: r * a.y
813
843
  };
814
844
  }
815
- function ar(e, t, n) {
845
+ function xr(e, t, n) {
816
846
  let r;
817
- if (t === "viewport" || t === "layoutViewport") r = rr(e, n, t);
818
- else if (t === "document") r = tr(Sn(e));
819
- else if (wn(t)) r = ir(t, n);
847
+ if (t === "viewport" || t === "layoutViewport") r = yr(e, n, t);
848
+ else if (t === "document") r = _r(Rn(e));
849
+ else if (Bn(t)) r = br(t, n);
820
850
  else {
821
- let n = Jn(e);
851
+ let n = ur(e);
822
852
  r = {
823
853
  x: t.x - n.x,
824
854
  y: t.y - n.y,
@@ -826,23 +856,23 @@ function ar(e, t, n) {
826
856
  height: t.height
827
857
  };
828
858
  }
829
- return ln(r);
859
+ return Tn(r);
830
860
  }
831
- function or(e, t) {
861
+ function Sr(e, t) {
832
862
  let n = t.get(e);
833
863
  if (n) return n;
834
- let r = Hn(e, [], !1).filter((e) => wn(e) && xn(e) !== "body"), i = null, a = Rn(e).position === "fixed", o = a ? Bn(e) : e;
835
- for (; wn(o) && !Ln(o);) {
836
- let e = Rn(o), t = Pn(o), n = i ? i.position : a ? "fixed" : "";
837
- !t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = Bn(o);
864
+ let r = ir(e, [], !1).filter((e) => Bn(e) && Ln(e) !== "body"), i = null, a = er(e).position === "fixed", o = a ? nr(e) : e;
865
+ for (; Bn(o) && !$n(o);) {
866
+ let e = er(o), t = Xn(o), n = i ? i.position : a ? "fixed" : "";
867
+ !t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = nr(o);
838
868
  }
839
869
  return t.set(e, r), r;
840
870
  }
841
- function sr(e) {
842
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? kn(t) ? [] : or(t, this._c) : [].concat(n), r], o = ar(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
871
+ function Cr(e) {
872
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Gn(t) ? [] : Sr(t, this._c) : [].concat(n), r], o = xr(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
843
873
  for (let e = 1; e < a.length; e++) {
844
- let n = ar(t, a[e], i);
845
- s = Rt(n.top, s), c = Lt(n.right, c), l = Lt(n.bottom, l), u = Rt(n.left, u);
874
+ let n = xr(t, a[e], i);
875
+ s = en(n.top, s), c = $t(n.right, c), l = $t(n.bottom, l), u = en(n.left, u);
846
876
  }
847
877
  return {
848
878
  width: c - u,
@@ -851,24 +881,24 @@ function sr(e) {
851
881
  y: s
852
882
  };
853
883
  }
854
- function cr(e) {
855
- let { width: t, height: n } = Wn(e);
884
+ function wr(e) {
885
+ let { width: t, height: n } = or(e);
856
886
  return {
857
887
  width: t,
858
888
  height: n
859
889
  };
860
890
  }
861
- function lr(e, t, n) {
862
- let r = Tn(t), i = Sn(t), a = n === "fixed", o = Xn(e, !0, a, t), s = {
891
+ function Tr(e, t, n) {
892
+ let r = Vn(t), i = Rn(t), a = n === "fixed", o = fr(e, !0, a, t), s = {
863
893
  scrollLeft: 0,
864
894
  scrollTop: 0
865
- }, c = Bt(0);
866
- if ((r || !a) && ((xn(t) !== "body" || Dn(i)) && (s = zn(t)), r)) {
867
- let e = Xn(t, !0, a, t);
895
+ }, c = nn(0);
896
+ if ((r || !a) && ((Ln(t) !== "body" || Un(i)) && (s = tr(t)), r)) {
897
+ let e = fr(t, !0, a, t);
868
898
  c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
869
899
  }
870
- !r && i && (c.x = Zn(i));
871
- let l = i && !r && !a ? Qn(i, s) : Bt(0);
900
+ !r && i && (c.x = pr(i));
901
+ let l = i && !r && !a ? mr(i, s) : nn(0);
872
902
  return {
873
903
  x: o.left + s.scrollLeft - c.x - l.x,
874
904
  y: o.top + s.scrollTop - c.y - l.y,
@@ -876,34 +906,34 @@ function lr(e, t, n) {
876
906
  height: o.height
877
907
  };
878
908
  }
879
- function ur(e) {
880
- return Rn(e).position === "static";
909
+ function Er(e) {
910
+ return er(e).position === "static";
881
911
  }
882
- function dr(e, t) {
883
- if (!Tn(e) || Rn(e).position === "fixed") return null;
912
+ function Dr(e, t) {
913
+ if (!Vn(e) || er(e).position === "fixed") return null;
884
914
  if (t) return t(e);
885
915
  let n = e.offsetParent;
886
- return Sn(e) === n && (n = n.ownerDocument.body), n;
916
+ return Rn(e) === n && (n = n.ownerDocument.body), n;
887
917
  }
888
- function fr(e, t) {
918
+ function Or(e, t) {
889
919
  let n = Z(e);
890
- if (kn(e)) return n;
891
- if (!Tn(e)) {
892
- let t = Bn(e);
893
- for (; t && !Ln(t);) {
894
- if (wn(t) && !ur(t)) return t;
895
- t = Bn(t);
920
+ if (Gn(e)) return n;
921
+ if (!Vn(e)) {
922
+ let t = nr(e);
923
+ for (; t && !$n(t);) {
924
+ if (Bn(t) && !Er(t)) return t;
925
+ t = nr(t);
896
926
  }
897
927
  return n;
898
928
  }
899
- let r = dr(e, t);
900
- for (; r && On(r) && ur(r);) r = dr(r, t);
901
- return r && Ln(r) && ur(r) && !Pn(r) ? n : r || Fn(e) || n;
929
+ let r = Dr(e, t);
930
+ for (; r && Wn(r) && Er(r);) r = Dr(r, t);
931
+ return r && $n(r) && Er(r) && !Xn(r) ? n : r || Zn(e) || n;
902
932
  }
903
- var pr = async function(e) {
904
- let t = this.getOffsetParent || fr, n = this.getDimensions, r = await n(e.floating);
933
+ var kr = async function(e) {
934
+ let t = this.getOffsetParent || Or, n = this.getDimensions, r = await n(e.floating);
905
935
  return {
906
- reference: lr(e.reference, await t(e.floating), e.strategy),
936
+ reference: Tr(e.reference, await t(e.floating), e.strategy),
907
937
  floating: {
908
938
  x: 0,
909
939
  y: 0,
@@ -912,76 +942,76 @@ var pr = async function(e) {
912
942
  }
913
943
  };
914
944
  };
915
- function mr(e) {
916
- return Rn(e).direction === "rtl";
917
- }
918
- var hr = {
919
- convertOffsetParentRelativeRectToViewportRelativeRect: $n,
920
- getDocumentElement: Sn,
921
- getClippingRect: sr,
922
- getOffsetParent: fr,
923
- getElementRects: pr,
924
- getClientRects: er,
925
- getDimensions: cr,
926
- getScale: Kn,
927
- isElement: wn,
928
- isRTL: mr
929
- }, gr = vn, _r = yn, vr = hn, yr = mn, br = (e, t, n) => {
945
+ function Ar(e) {
946
+ return er(e).direction === "rtl";
947
+ }
948
+ var jr = {
949
+ convertOffsetParentRelativeRectToViewportRelativeRect: hr,
950
+ getDocumentElement: Rn,
951
+ getClippingRect: Cr,
952
+ getOffsetParent: Or,
953
+ getElementRects: kr,
954
+ getClientRects: gr,
955
+ getDimensions: wr,
956
+ getScale: cr,
957
+ isElement: Bn,
958
+ isRTL: Ar
959
+ }, Mr = Pn, Nr = Fn, Pr = jn, Fr = An, Ir = (e, t, n) => {
930
960
  let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
931
- ...hr,
961
+ ...jr,
932
962
  ...i.platform,
933
963
  _c: r
934
964
  };
935
- return pn(e, t, {
965
+ return kn(e, t, {
936
966
  ...i,
937
967
  platform: a
938
968
  });
939
969
  };
940
970
  // ../../node_modules/.pnpm/@floating-ui+vue@2.0.1_vue@3.5.44_typescript@6.0.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
941
- function xr(e) {
971
+ function Lr(e) {
942
972
  return typeof e == "object" && !!e && "$el" in e;
943
973
  }
944
- function Sr(e) {
945
- if (xr(e)) {
974
+ function Rr(e) {
975
+ if (Lr(e)) {
946
976
  let t = e.$el;
947
- return Cn(t) && xn(t) === "#comment" ? null : t;
977
+ return zn(t) && Ln(t) === "#comment" ? null : t;
948
978
  }
949
979
  return e;
950
980
  }
951
- function Cr(e) {
981
+ function zr(e) {
952
982
  return {
953
983
  name: "arrow",
954
984
  options: e,
955
985
  fn(t) {
956
- let n = Sr(at(e.element));
957
- return n == null ? {} : yr({
986
+ let n = Rr(dt(e.element));
987
+ return n == null ? {} : Fr({
958
988
  element: n,
959
989
  padding: e.padding
960
990
  }).fn(t);
961
991
  }
962
992
  };
963
993
  }
964
- function wr(e) {
994
+ function Br(e) {
965
995
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
966
996
  }
967
- function Tr(e, t) {
968
- let n = wr(e);
997
+ function Vr(e, t) {
998
+ let n = Br(e);
969
999
  return Math.round(t * n) / n;
970
1000
  }
971
- function Er(e, t, n) {
1001
+ function Hr(e, t, n) {
972
1002
  n === void 0 && (n = {});
973
- let r = n.whileElementsMounted, i = P(() => at(n.open) ?? !0), a = P(() => at(n.middleware)), o = P(() => at(n.placement) ?? "bottom"), s = P(() => at(n.strategy) ?? "absolute"), c = P(() => at(n.transform) ?? !0), l = P(() => Sr(e.value)), u = P(() => Sr(t.value)), d = W(0), f = W(0), p = W(s.value), m = W(o.value), h = it({}), g = W(!1), _ = P(() => {
1003
+ let r = n.whileElementsMounted, i = M(() => dt(n.open) ?? !0), a = M(() => dt(n.middleware)), o = M(() => dt(n.placement) ?? "bottom"), s = M(() => dt(n.strategy) ?? "absolute"), c = M(() => dt(n.transform) ?? !0), l = M(() => Rr(e.value)), u = M(() => Rr(t.value)), d = U(0), f = U(0), p = U(s.value), m = U(o.value), h = ut({}), g = U(!1), _ = M(() => {
974
1004
  let e = {
975
1005
  position: p.value,
976
1006
  left: "0",
977
1007
  top: "0"
978
1008
  };
979
1009
  if (!u.value) return e;
980
- let t = Tr(u.value, d.value), n = Tr(u.value, f.value);
1010
+ let t = Vr(u.value, d.value), n = Vr(u.value, f.value);
981
1011
  return c.value ? {
982
1012
  ...e,
983
1013
  transform: "translate(" + t + "px, " + n + "px)",
984
- ...wr(u.value) >= 1.5 && { willChange: "transform" }
1014
+ ...Br(u.value) >= 1.5 && { willChange: "transform" }
985
1015
  } : {
986
1016
  position: p.value,
987
1017
  left: t + "px",
@@ -991,7 +1021,7 @@ function Er(e, t, n) {
991
1021
  function y() {
992
1022
  if (l.value == null || u.value == null) return;
993
1023
  let e = i.value;
994
- br(l.value, u.value, {
1024
+ Ir(l.value, u.value, {
995
1025
  middleware: a.value,
996
1026
  placement: o.value,
997
1027
  strategy: s.value
@@ -1008,18 +1038,18 @@ function Er(e, t, n) {
1008
1038
  function S() {
1009
1039
  i.value || (g.value = !1);
1010
1040
  }
1011
- return X([
1041
+ return Y([
1012
1042
  a,
1013
1043
  o,
1014
1044
  s,
1015
1045
  i
1016
- ], y, { flush: "sync" }), X([l, u], x, { flush: "sync" }), X(i, S, { flush: "sync" }), He() && Ze(b), {
1017
- x: rt(d),
1018
- y: rt(f),
1019
- strategy: rt(p),
1020
- placement: rt(m),
1021
- middlewareData: rt(h),
1022
- isPositioned: rt(g),
1046
+ ], y, { flush: "sync" }), Y([l, u], x, { flush: "sync" }), Y(i, S, { flush: "sync" }), Ye() && rt(b), {
1047
+ x: lt(d),
1048
+ y: lt(f),
1049
+ strategy: lt(p),
1050
+ placement: lt(m),
1051
+ middlewareData: lt(h),
1052
+ isPositioned: lt(g),
1023
1053
  floatingStyles: _,
1024
1054
  update: y
1025
1055
  };
@@ -1027,38 +1057,38 @@ function Er(e, t, n) {
1027
1057
  // src/client/theme-default/utils/keys.ts
1028
1058
  var Q = /* @__PURE__ */ function(e) {
1029
1059
  return e.ArrowDown = "ArrowDown", e.ArrowUp = "ArrowUp", e.ArrowLeft = "ArrowLeft", e.ArrowRight = "ArrowRight", e.Enter = "Enter", e.Tab = "Tab", e.Space = " ", e.Escape = "Escape", e.Shift = "Shift", e.Control = "Control", e.Alt = "Alt", e.Meta = "Meta", e.Delete = "Delete", e.Backspace = "Backspace", e.F1 = "F1", e.F2 = "F2", e.F3 = "F3", e.F4 = "F4", e.F5 = "F5", e.F6 = "F6", e.F7 = "F7", e.F8 = "F8", e.F9 = "F9", e.F10 = "F10", e.F11 = "F11", e.F12 = "F12", e.a = "a", e.b = "b", e.c = "c", e.d = "d", e.e = "e", e.f = "f", e.g = "g", e.h = "h", e.i = "i", e.j = "j", e.k = "k", e.l = "l", e.m = "m", e.n = "n", e.o = "o", e.p = "p", e.q = "q", e.r = "r", e.s = "s", e.t = "t", e.u = "u", e.v = "v", e.w = "w", e.x = "x", e.y = "y", e.z = "z", e.FSlash = "/", e.Question = "?", e.Backslash = "\\", e;
1030
- }({}), Dr = { class: "td-kbd-shortcut" }, $ = /*#__PURE__*/ j(/* @__PURE__ */ V({
1060
+ }({}), Ur = { class: "td-kbd-shortcut" }, $ = /*#__PURE__*/ k(/* @__PURE__ */ z({
1031
1061
  __name: "TdKbdShortcut",
1032
1062
  props: { keys: {} },
1033
1063
  setup(e) {
1034
1064
  let t = {
1035
- [Q.ArrowDown]: re,
1036
- [Q.ArrowUp]: ue,
1037
- [Q.ArrowLeft]: pe,
1038
- [Q.ArrowRight]: te,
1039
- [Q.Control]: yt,
1040
- [Q.Meta]: yt,
1041
- [Q.Alt]: Tt,
1042
- [Q.Enter]: bt,
1043
- [Q.Delete]: xt,
1044
- [Q.Space]: Et
1065
+ [Q.ArrowDown]: ge,
1066
+ [Q.ArrowUp]: se,
1067
+ [Q.ArrowLeft]: ee,
1068
+ [Q.ArrowRight]: ze,
1069
+ [Q.Control]: Ft,
1070
+ [Q.Meta]: Ft,
1071
+ [Q.Alt]: Vt,
1072
+ [Q.Enter]: It,
1073
+ [Q.Delete]: Lt,
1074
+ [Q.Space]: Ht
1045
1075
  }, n = {
1046
1076
  [Q.Shift]: "⇧",
1047
1077
  [Q.Escape]: "Esc",
1048
1078
  [Q.Tab]: "Tab",
1049
1079
  [Q.Backspace]: "⌫"
1050
- }, r = P(() => e.keys.map((e) => {
1080
+ }, r = M(() => e.keys.map((e) => {
1051
1081
  let r = t[e];
1052
1082
  if (r) return { icon: r };
1053
1083
  let i = n[e];
1054
1084
  return i ? { label: i } : { label: e.toUpperCase() };
1055
1085
  }));
1056
- return (e, t) => (U(), L("span", Dr, [(U(!0), L(N, null, G(r.value, (e, t) => (U(), L("kbd", { key: t }, [e.icon ? (U(), F(nt(e.icon), {
1086
+ return (e, t) => (H(), F("span", Ur, [(H(!0), F(j, null, W(r.value, (e, t) => (H(), F("kbd", { key: t }, [e.icon ? (H(), N(ct(e.icon), {
1057
1087
  key: 0,
1058
1088
  size: 12
1059
- })) : (U(), L(N, { key: 1 }, [z(q(e.label), 1)], 64))]))), 128))]));
1089
+ })) : (H(), F(j, { key: 1 }, [L(K(e.label), 1)], 64))]))), 128))]));
1060
1090
  }
1061
- }), [["__scopeId", "data-v-ad94203e"]]), Or = /*#__PURE__*/ j(/* @__PURE__ */ V({
1091
+ }), [["__scopeId", "data-v-ad94203e"]]), Wr = /*#__PURE__*/ k(/* @__PURE__ */ z({
1062
1092
  inheritAttrs: !1,
1063
1093
  __name: "TdTooltip",
1064
1094
  props: {
@@ -1071,13 +1101,13 @@ var Q = /* @__PURE__ */ function(e) {
1071
1101
  shortcut: { default: () => void 0 }
1072
1102
  },
1073
1103
  setup(e) {
1074
- let t = Y("trigger"), n = Y("tooltip"), r = Y("arrowEl"), i = W(!1), a, o, { floatingStyles: s, middlewareData: c, placement: l } = Er(t, n, {
1104
+ let t = J("trigger"), n = J("tooltip"), r = J("arrowEl"), i = U(!1), a, o, { floatingStyles: s, middlewareData: c, placement: l } = Hr(t, n, {
1075
1105
  placement: e.placement,
1076
1106
  middleware: [
1077
- gr(8),
1078
- vr(),
1079
- _r({ padding: 8 }),
1080
- Cr({ element: r })
1107
+ Mr(8),
1108
+ Pr(),
1109
+ Nr({ padding: 8 }),
1110
+ zr({ element: r })
1081
1111
  ]
1082
1112
  });
1083
1113
  function u() {
@@ -1089,57 +1119,57 @@ var Q = /* @__PURE__ */ function(e) {
1089
1119
  i.value = !0;
1090
1120
  }, 400));
1091
1121
  }
1092
- Ye(u);
1122
+ nt(u);
1093
1123
  function f() {
1094
1124
  u(), o = setTimeout(() => {
1095
1125
  i.value = !1;
1096
1126
  }, 100);
1097
1127
  }
1098
- return (r, a) => (U(), L(N, null, [R("span", Ke({
1128
+ return (r, a) => (H(), F(j, null, [I("span", $e({
1099
1129
  ref_key: "trigger",
1100
1130
  ref: t
1101
1131
  }, r.$attrs, {
1102
1132
  class: "td-tooltip-trigger",
1103
1133
  onMouseenter: d,
1104
1134
  onMouseleave: f
1105
- }), [K(r.$slots, "default", {}, void 0, !0)], 16), (U(), F(Ve, { to: "body" }, [i.value ? (U(), L("div", {
1135
+ }), [G(r.$slots, "default", {}, void 0, !0)], 16), (H(), N(qe, { to: "body" }, [i.value ? (H(), F("div", {
1106
1136
  key: 0,
1107
1137
  ref_key: "tooltip",
1108
1138
  ref: n,
1109
1139
  class: "td-tooltip",
1110
- style: Je(J(s)),
1140
+ style: tt(q(s)),
1111
1141
  role: "tooltip",
1112
1142
  onMouseenter: u,
1113
1143
  onMouseleave: f
1114
1144
  }, [
1115
- z(q(e.text) + " ", 1),
1116
- e.shortcut ? (U(), F($, {
1145
+ L(K(e.text) + " ", 1),
1146
+ e.shortcut ? (H(), N($, {
1117
1147
  key: 0,
1118
1148
  keys: e.shortcut,
1119
1149
  class: "td-tooltip-shortcut"
1120
- }, null, 8, ["keys"])) : I("", !0),
1121
- R("div", {
1150
+ }, null, 8, ["keys"])) : P("", !0),
1151
+ I("div", {
1122
1152
  ref: "arrowEl",
1123
1153
  class: "td-tooltip-arrow",
1124
- style: Je({
1125
- left: J(c).arrow?.x === void 0 ? "" : `${J(c).arrow.x}px`,
1126
- top: J(c).arrow?.y === void 0 ? "" : `${J(c).arrow.y}px`,
1127
- ...J(l).startsWith("bottom") ? { top: "-4px" } : {},
1128
- ...J(l).startsWith("top") ? { bottom: "-4px" } : {},
1129
- ...J(l).startsWith("right") ? { left: "-4px" } : {},
1130
- ...J(l).startsWith("left") ? { right: "-4px" } : {}
1154
+ style: tt({
1155
+ left: q(c).arrow?.x === void 0 ? "" : `${q(c).arrow.x}px`,
1156
+ top: q(c).arrow?.y === void 0 ? "" : `${q(c).arrow.y}px`,
1157
+ ...q(l).startsWith("bottom") ? { top: "-4px" } : {},
1158
+ ...q(l).startsWith("top") ? { bottom: "-4px" } : {},
1159
+ ...q(l).startsWith("right") ? { left: "-4px" } : {},
1160
+ ...q(l).startsWith("left") ? { right: "-4px" } : {}
1131
1161
  })
1132
1162
  }, null, 4)
1133
- ], 36)) : I("", !0)]))], 64));
1163
+ ], 36)) : P("", !0)]))], 64));
1134
1164
  }
1135
1165
  }), [["__scopeId", "data-v-db48de27"]]);
1136
1166
  // src/client/theme-default/utils/renderInlineMarkup.ts
1137
- function kr(e) {
1138
- let t = W(Ar(e()));
1139
- return lt((n) => {
1167
+ function Gr(e) {
1168
+ let t = U(Kr(e()));
1169
+ return ht((n) => {
1140
1170
  let r = e();
1141
1171
  if (!r.includes("$")) {
1142
- t.value = Ar(r);
1172
+ t.value = Kr(r);
1143
1173
  return;
1144
1174
  }
1145
1175
  let i = !0;
@@ -1150,212 +1180,244 @@ function kr(e) {
1150
1180
  });
1151
1181
  }), t;
1152
1182
  }
1153
- function Ar(e) {
1183
+ function Kr(e) {
1154
1184
  let t = 0, n = "";
1155
- for (let r of e.matchAll(Be)) n += f(e.slice(t, r.index)), r[1] === void 0 ? n += f(r[0]) : n += `<code>${f(r[1])}</code>`, t = r.index + r[0].length;
1185
+ for (let r of e.matchAll(Ke)) n += f(e.slice(t, r.index)), r[1] === void 0 ? n += f(r[0]) : n += `<code>${f(r[1])}</code>`, t = r.index + r[0].length;
1156
1186
  return n += f(e.slice(t)), n;
1157
1187
  }
1158
1188
  // src/client/theme-default/components/TdTree/TdTreeNodeLabel.vue?vue&type=script&setup=true&lang.ts
1159
- var jr = ["innerHTML"], Mr = /* @__PURE__ */ V({
1189
+ var qr = ["innerHTML"], Jr = /* @__PURE__ */ z({
1160
1190
  __name: "TdTreeNodeLabel",
1161
1191
  props: { text: {} },
1162
1192
  setup(e) {
1163
- let t = kr(() => e.text);
1164
- return (e, n) => (U(), L("span", { innerHTML: J(t) }, null, 8, jr));
1193
+ let t = Gr(() => e.text);
1194
+ return (e, n) => (H(), F("span", { innerHTML: q(t) }, null, 8, qr));
1165
1195
  }
1166
- }), Nr = ["aria-expanded"], Pr = { class: "td-tree-label-text" }, Fr = ["href"], Ir = { class: "td-tree-count" }, Lr = ["href"], Rr = ["href"], zr = {
1196
+ }), Yr = ["aria-expanded"], Xr = { class: "td-tree-label-text" }, Zr = ["href"], Qr = { class: "td-tree-count" }, $r = ["href"], ei = ["href"], ti = {
1167
1197
  key: 2,
1168
1198
  class: "td-tree-time"
1169
- }, Br = 5, Vr = /*#__PURE__*/ j(/* @__PURE__ */ V({
1199
+ }, ni = 10, ri = /*#__PURE__*/ k(/* @__PURE__ */ z({
1170
1200
  __name: "TdTreeNode",
1171
1201
  props: {
1172
1202
  node: {},
1173
1203
  urlPrefix: { default: "" }
1174
1204
  },
1175
1205
  setup(n) {
1176
- let r = _e(), { withBase: i } = M(), a = P(() => w(n.urlPrefix, n.node.name)), o = P(() => l(n.node)), f = P(() => o.value ? t(o.value.filepath) : s(a.value)), p = P(() => i(f.value)), m = P(() => o.value?.label ?? c(n.node.name)), h = P(() => o.value?.icon ? ve(o.value.icon.name) : void 0), g = P(() => n.node.entries.filter((e) => e.kind === "dir" || !d(e.item.filepath))), _ = P(() => 0 < n.node.entries.length), v = P(() => y(n.node));
1206
+ let r = Ne(), { withBase: i } = A(), a = M(() => w(n.urlPrefix, n.node.name)), o = M(() => l(n.node)), f = M(() => o.value ? t(o.value.filepath) : s(a.value)), p = M(() => i(f.value)), m = M(() => o.value?.label ?? c(n.node.name)), h = M(() => o.value?.icon ? Pe(o.value.icon.name) : void 0), g = M(() => n.node.entries.filter((e) => e.kind === "dir" || !d(e.item.filepath))), _ = M(() => 0 < n.node.entries.length), v = M(() => y(n.node));
1177
1207
  function y(e) {
1178
1208
  let t = 0;
1179
1209
  for (let n of e.entries) n.kind === "file" ? t++ : t += y(n.node);
1180
1210
  return t;
1181
1211
  }
1182
- let b = W(!e(a.value, r.path)), x = W(!1), S = P(() => g.value.filter((e) => e.kind === "file").length), C = P(() => x.value ? 0 : Math.max(0, S.value - Br)), E = P(() => {
1183
- if (x.value) return g.value;
1212
+ let b = U(!e(a.value, r.path)), x = U(!1), S = M(() => g.value.filter((e) => e.kind === "file")), C = M(() => S.value.length), E = M(() => {
1184
1213
  let e = 0;
1185
- return g.value.filter((t) => t.kind === "dir" || ++e <= Br);
1214
+ for (let n of g.value) if (n.kind === "file") {
1215
+ if (t(n.item.filepath) === r.path) return e;
1216
+ e++;
1217
+ }
1218
+ return -1;
1219
+ }), ee = M(() => {
1220
+ if (C.value <= ni) return {
1221
+ start: 0,
1222
+ end: C.value
1223
+ };
1224
+ let e = E.value;
1225
+ if (e < 0) return {
1226
+ start: 0,
1227
+ end: ni
1228
+ };
1229
+ let t = Math.max(0, e - 4), n = t + ni;
1230
+ return C.value < n && (n = C.value, t = Math.max(0, n - ni)), {
1231
+ start: t,
1232
+ end: n
1233
+ };
1234
+ }), te = M(() => x.value ? 0 : ee.value.start), ne = M(() => x.value ? 0 : Math.max(0, C.value - ee.value.end)), ie = M(() => {
1235
+ if (x.value) return g.value;
1236
+ let { start: e, end: t } = ee.value, n = 0;
1237
+ return g.value.filter((r) => {
1238
+ if (r.kind === "dir") return !0;
1239
+ let i = e <= n && n < t;
1240
+ return n++, i;
1241
+ });
1186
1242
  });
1187
- X(() => r.path, (t) => {
1243
+ Y(() => r.path, (t) => {
1188
1244
  e(a.value, t) && (b.value = !1);
1189
1245
  });
1190
- function ee() {
1246
+ function O() {
1191
1247
  x.value = !0;
1192
1248
  }
1193
- function te(e) {
1249
+ function oe(e) {
1194
1250
  return r.path === e;
1195
1251
  }
1196
- function D(e) {
1252
+ function se(e) {
1197
1253
  e.key === "ArrowRight" && b.value ? (b.value = !1, e.preventDefault()) : e.key === "ArrowLeft" && !b.value && (b.value = !0, e.preventDefault());
1198
1254
  }
1199
- function ne() {
1255
+ function ce() {
1200
1256
  b.value = !b.value;
1201
1257
  }
1202
1258
  return (e, n) => {
1203
- let r = tt("TdTreeNode", !0);
1204
- return _.value ? (U(), L("div", {
1259
+ let r = st("TdTreeNode", !0);
1260
+ return _.value ? (H(), F("div", {
1205
1261
  key: 0,
1206
1262
  class: "td-tree-node",
1207
1263
  role: "treeitem",
1208
1264
  "aria-expanded": !b.value
1209
- }, [R("div", {
1265
+ }, [I("div", {
1210
1266
  class: "td-tree-label",
1211
1267
  role: "button",
1212
1268
  tabindex: "0",
1213
- onClick: ne,
1214
- onKeydown: D
1269
+ onClick: ce,
1270
+ onKeydown: se
1215
1271
  }, [
1216
- B(J(ie), {
1272
+ R(q(re), {
1217
1273
  size: 14,
1218
- class: H(["td-tree-caret", { "is-collapsed": b.value }])
1274
+ class: B(["td-tree-caret", { "is-collapsed": b.value }])
1219
1275
  }, null, 8, ["class"]),
1220
- R("span", Pr, q(m.value), 1),
1221
- B(Or, {
1276
+ I("span", Xr, K(m.value), 1),
1277
+ R(Wr, {
1222
1278
  text: "Open index page",
1223
1279
  always: ""
1224
1280
  }, {
1225
- default: ut(() => [R("a", {
1281
+ default: X(() => [I("a", {
1226
1282
  href: p.value,
1227
- class: H(["td-tree-index-btn", { "is-active": te(f.value) }]),
1228
- onClick: n[0] ||= pt(() => {}, ["stop"])
1229
- }, [h.value ? (U(), F(nt(h.value), {
1283
+ class: B(["td-tree-index-btn", { "is-active": oe(f.value) }]),
1284
+ onClick: n[0] ||= vt(() => {}, ["stop"])
1285
+ }, [h.value ? (H(), N(ct(h.value), {
1230
1286
  key: 0,
1231
1287
  size: 12
1232
- })) : te(f.value) ? (U(), F(J(St), {
1288
+ })) : oe(f.value) ? (H(), N(q(Rt), {
1233
1289
  key: 1,
1234
1290
  size: 12
1235
- })) : (U(), F(J(ce), {
1291
+ })) : (H(), N(q(D), {
1236
1292
  key: 2,
1237
1293
  size: 12
1238
- }))], 10, Fr)]),
1294
+ }))], 10, Zr)]),
1239
1295
  _: 1
1240
1296
  }),
1241
- R("span", Ir, q(v.value), 1)
1242
- ], 32), R("div", {
1243
- class: H(["td-collapse td-tree-children", { "is-collapsed": b.value }]),
1297
+ I("span", Qr, K(v.value), 1)
1298
+ ], 32), I("div", {
1299
+ class: B(["td-collapse td-tree-children", { "is-collapsed": b.value }]),
1244
1300
  role: "group"
1245
- }, [R("div", null, [
1246
- o.value ? (U(), L("a", {
1301
+ }, [I("div", null, [
1302
+ o.value ? (H(), F("a", {
1247
1303
  key: 0,
1248
1304
  href: p.value,
1249
- class: H(["td-tree-link td-tree-index-entry", { "is-active": te(f.value) }])
1250
- }, [B(J(ae), {
1305
+ class: B(["td-tree-link td-tree-index-entry", { "is-active": oe(f.value) }])
1306
+ }, [R(q(ae), {
1251
1307
  size: 14,
1252
1308
  class: "td-tree-file-icon"
1253
- }), n[1] ||= R("span", { class: "td-tree-link-text" }, "Overview", -1)], 10, Lr)) : I("", !0),
1254
- (U(!0), L(N, null, G(E.value, (e) => (U(), L(N, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (U(), F(r, {
1309
+ }), n[1] ||= I("span", { class: "td-tree-link-text" }, "Overview", -1)], 10, $r)) : P("", !0),
1310
+ te.value > 0 ? (H(), F("button", {
1311
+ key: 1,
1312
+ class: "td-tree-more",
1313
+ type: "button",
1314
+ onClick: O
1315
+ }, K(te.value) + " more... ", 1)) : P("", !0),
1316
+ (H(!0), F(j, null, W(ie.value, (e) => (H(), F(j, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (H(), N(r, {
1255
1317
  key: 0,
1256
1318
  node: e.node,
1257
1319
  "url-prefix": a.value
1258
- }, null, 8, ["node", "url-prefix"])) : (U(), L("a", {
1320
+ }, null, 8, ["node", "url-prefix"])) : (H(), F("a", {
1259
1321
  key: 1,
1260
- href: J(i)(J(t)(e.item.filepath)),
1261
- class: H(["td-tree-link", { "is-active": te(J(t)(e.item.filepath)) }])
1322
+ href: q(i)(q(t)(e.item.filepath)),
1323
+ class: B(["td-tree-link", { "is-active": oe(q(t)(e.item.filepath)) }])
1262
1324
  }, [
1263
- e.item.icon && J(ve)(e.item.icon.name) ? (U(), F(nt(J(ve)(e.item.icon.name)), {
1325
+ e.item.icon && q(Pe)(e.item.icon.name) ? (H(), N(ct(q(Pe)(e.item.icon.name)), {
1264
1326
  key: 0,
1265
1327
  size: 14,
1266
1328
  class: "td-tree-file-icon"
1267
- })) : (U(), F(J(we), {
1329
+ })) : (H(), N(q(ue), {
1268
1330
  key: 1,
1269
1331
  size: 14,
1270
1332
  class: "td-tree-file-icon"
1271
1333
  })),
1272
- B(Or, {
1334
+ R(Wr, {
1273
1335
  class: "td-tree-link-text",
1274
- text: J(T)(e.item.filepath, e.item.label)
1336
+ text: q(T)(e.item.filepath, e.item.label)
1275
1337
  }, {
1276
- default: ut(() => [B(Mr, { text: J(T)(e.item.filepath, e.item.label) }, null, 8, ["text"])]),
1338
+ default: X(() => [R(Jr, { text: q(T)(e.item.filepath, e.item.label) }, null, 8, ["text"])]),
1277
1339
  _: 2
1278
1340
  }, 1032, ["text"]),
1279
- e.item.fileMetadata ? (U(), L("span", zr, q(J(u)(e.item.fileMetadata.mtimeSecs)), 1)) : I("", !0)
1280
- ], 10, Rr))], 64))), 128)),
1281
- C.value > 0 && !x.value ? (U(), L("button", {
1282
- key: 1,
1341
+ e.item.fileMetadata ? (H(), F("span", ti, K(q(u)(e.item.fileMetadata.mtimeSecs)), 1)) : P("", !0)
1342
+ ], 10, ei))], 64))), 128)),
1343
+ ne.value > 0 ? (H(), F("button", {
1344
+ key: 2,
1283
1345
  class: "td-tree-more",
1284
1346
  type: "button",
1285
- onClick: ee
1286
- }, q(C.value) + " more... ", 1)) : I("", !0)
1287
- ])], 2)], 8, Nr)) : I("", !0);
1347
+ onClick: O
1348
+ }, K(ne.value) + " more... ", 1)) : P("", !0)
1349
+ ])], 2)], 8, Yr)) : P("", !0);
1288
1350
  };
1289
1351
  }
1290
- }), [["__scopeId", "data-v-519b4ee6"]]), Hr = {
1352
+ }), [["__scopeId", "data-v-f9c9c250"]]), ii = {
1291
1353
  class: "td-nav",
1292
1354
  "aria-label": "Site navigation"
1293
- }, Ur = { role: "tree" }, Wr = ["href"], Gr = {
1355
+ }, ai = { role: "tree" }, oi = ["href"], si = {
1294
1356
  key: 0,
1295
1357
  class: "td-root-link-time"
1296
- }, Kr = ["href"], qr = { class: "td-root-link-text" }, Jr = {
1358
+ }, ci = ["href"], li = { class: "td-root-link-text" }, ui = {
1297
1359
  key: 2,
1298
1360
  class: "td-root-link-time"
1299
- }, Yr = /*#__PURE__*/ j(/* @__PURE__ */ V({
1361
+ }, di = /*#__PURE__*/ k(/* @__PURE__ */ z({
1300
1362
  __name: "TdContentNav",
1301
1363
  props: { tree: {} },
1302
1364
  setup(e) {
1303
- let n = _e(), { withBase: r } = M(), i = P(() => e.tree.entries.find((e) => e.kind === "file" && d(e.item.filepath))?.item), a = P(() => e.tree.entries.filter((e) => e.kind === "dir" || !d(e.item.filepath)));
1365
+ let n = Ne(), { withBase: r } = A(), i = M(() => e.tree.entries.find((e) => e.kind === "file" && d(e.item.filepath))?.item), a = M(() => e.tree.entries.filter((e) => e.kind === "dir" || !d(e.item.filepath)));
1304
1366
  function o(e) {
1305
1367
  return n.path === e;
1306
1368
  }
1307
- return (e, n) => (U(), L("nav", Hr, [R("div", Ur, [R("a", {
1308
- href: J(r)(i.value ? J(t)(i.value.filepath) : J(s)("/")),
1309
- class: H(["td-root-link", { "is-active": o(i.value ? J(t)(i.value.filepath) : J(s)("/")) }]),
1369
+ return (e, n) => (H(), F("nav", ii, [I("div", ai, [I("a", {
1370
+ href: q(r)(i.value ? q(t)(i.value.filepath) : q(s)("/")),
1371
+ class: B(["td-root-link", { "is-active": o(i.value ? q(t)(i.value.filepath) : q(s)("/")) }]),
1310
1372
  role: "treeitem"
1311
1373
  }, [
1312
- B(J(ne), {
1374
+ R(q(ne), {
1313
1375
  size: 14,
1314
1376
  class: "td-root-link-icon"
1315
1377
  }),
1316
- n[0] ||= R("span", { class: "td-root-link-text" }, "Overview", -1),
1317
- i.value ? (U(), L("span", Gr, q(i.value.fileMetadata ? J(u)(i.value.fileMetadata.mtimeSecs) : ""), 1)) : I("", !0)
1318
- ], 10, Wr), (U(!0), L(N, null, G(a.value, (e) => (U(), L(N, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (U(), F(Vr, {
1378
+ n[0] ||= I("span", { class: "td-root-link-text" }, "Overview", -1),
1379
+ i.value ? (H(), F("span", si, K(i.value.fileMetadata ? q(u)(i.value.fileMetadata.mtimeSecs) : ""), 1)) : P("", !0)
1380
+ ], 10, oi), (H(!0), F(j, null, W(a.value, (e) => (H(), F(j, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (H(), N(ri, {
1319
1381
  key: 0,
1320
1382
  node: e.node
1321
- }, null, 8, ["node"])) : (U(), L("a", {
1383
+ }, null, 8, ["node"])) : (H(), F("a", {
1322
1384
  key: 1,
1323
- href: J(r)(J(t)(e.item.filepath)),
1324
- class: H(["td-root-link", { "is-active": o(J(t)(e.item.filepath)) }]),
1385
+ href: q(r)(q(t)(e.item.filepath)),
1386
+ class: B(["td-root-link", { "is-active": o(q(t)(e.item.filepath)) }]),
1325
1387
  role: "treeitem"
1326
1388
  }, [
1327
- e.item.icon && J(ve)(e.item.icon.name) ? (U(), F(nt(J(ve)(e.item.icon.name)), {
1389
+ e.item.icon && q(Pe)(e.item.icon.name) ? (H(), N(ct(q(Pe)(e.item.icon.name)), {
1328
1390
  key: 0,
1329
1391
  size: 14,
1330
1392
  class: "td-root-link-icon"
1331
- })) : (U(), F(J(we), {
1393
+ })) : (H(), N(q(ue), {
1332
1394
  key: 1,
1333
1395
  size: 14,
1334
1396
  class: "td-root-link-icon"
1335
1397
  })),
1336
- R("span", qr, q(J(T)(e.item.filepath, e.item.label)), 1),
1337
- e.item.fileMetadata ? (U(), L("span", Jr, q(J(u)(e.item.fileMetadata.mtimeSecs)), 1)) : I("", !0)
1338
- ], 10, Kr))], 64))), 128))])]));
1398
+ I("span", li, K(q(T)(e.item.filepath, e.item.label)), 1),
1399
+ e.item.fileMetadata ? (H(), F("span", ui, K(q(u)(e.item.fileMetadata.mtimeSecs)), 1)) : P("", !0)
1400
+ ], 10, ci))], 64))), 128))])]));
1339
1401
  }
1340
- }), [["__scopeId", "data-v-038de594"]]), Xr = { class: "td-footer" }, Zr = { key: 0 }, Qr = /*#__PURE__*/ j(/* @__PURE__ */ V({
1402
+ }), [["__scopeId", "data-v-038de594"]]), fi = { class: "td-footer" }, pi = { key: 0 }, mi = /*#__PURE__*/ k(/* @__PURE__ */ z({
1341
1403
  __name: "TdFooter",
1342
1404
  setup(e) {
1343
- let t = M(), n = (/* @__PURE__ */ new Date()).getFullYear();
1344
- return (e, r) => (U(), L("footer", Xr, [r[0] ||= R("span", null, [z(" Powered by "), R("a", {
1405
+ let t = A(), n = (/* @__PURE__ */ new Date()).getFullYear();
1406
+ return (e, r) => (H(), F("footer", fi, [r[0] ||= I("span", null, [L(" Powered by "), I("a", {
1345
1407
  href: "https://github.com/huydo862003/typerighter",
1346
1408
  target: "_blank",
1347
1409
  rel: "noopener noreferrer",
1348
1410
  class: "td-footer-link"
1349
- }, "Typerighter")], -1), J(t).author || J(t).license ? (U(), L("span", Zr, [
1350
- J(t).license ? (U(), L(N, { key: 0 }, [z(q(J(t).license), 1)], 64)) : I("", !0),
1351
- J(t).license && J(t).author ? (U(), L(N, { key: 1 }, [z(" · ")], 64)) : I("", !0),
1352
- J(t).author ? (U(), L(N, { key: 2 }, [z("© " + q(J(n)) + " " + q(J(t).author), 1)], 64)) : I("", !0)
1353
- ])) : I("", !0)]));
1411
+ }, "Typerighter")], -1), q(t).author || q(t).license ? (H(), F("span", pi, [
1412
+ q(t).license ? (H(), F(j, { key: 0 }, [L(K(q(t).license), 1)], 64)) : P("", !0),
1413
+ q(t).license && q(t).author ? (H(), F(j, { key: 1 }, [L(" · ")], 64)) : P("", !0),
1414
+ q(t).author ? (H(), F(j, { key: 2 }, [L("© " + K(q(n)) + " " + K(q(t).author), 1)], 64)) : P("", !0)
1415
+ ])) : P("", !0)]));
1354
1416
  }
1355
- }), [["__scopeId", "data-v-696804f8"]]), $r = {
1417
+ }), [["__scopeId", "data-v-696804f8"]]), hi = {
1356
1418
  key: 0,
1357
1419
  class: "td-dropdown-panel"
1358
- }, ei = /*#__PURE__*/ j(/* @__PURE__ */ V({
1420
+ }, gi = /*#__PURE__*/ k(/* @__PURE__ */ z({
1359
1421
  inheritAttrs: !1,
1360
1422
  __name: "TdDropdown",
1361
1423
  props: {
@@ -1367,38 +1429,38 @@ var jr = ["innerHTML"], Mr = /* @__PURE__ */ V({
1367
1429
  },
1368
1430
  emits: ["update:open"],
1369
1431
  setup(e) {
1370
- let t = ot(e, "open"), n = Y("wrapper");
1432
+ let t = ft(e, "open"), n = J("wrapper");
1371
1433
  function r(e) {
1372
1434
  n.value?.contains(e.target) || (t.value = !1);
1373
1435
  }
1374
1436
  function i() {
1375
1437
  t.value = !t.value;
1376
1438
  }
1377
- return X(t, (e) => {
1439
+ return Y(t, (e) => {
1378
1440
  typeof document < "u" && (e ? document.addEventListener("click", r) : document.removeEventListener("click", r));
1379
- }), Qe(() => {
1441
+ }), it(() => {
1380
1442
  typeof document < "u" && document.removeEventListener("click", r);
1381
- }), (e, r) => (U(), L("span", Ke({
1443
+ }), (e, r) => (H(), F("span", $e({
1382
1444
  ref_key: "wrapper",
1383
1445
  ref: n
1384
- }, e.$attrs, { class: "td-dropdown" }), [R("span", { onClick: i }, [K(e.$slots, "trigger", {}, void 0, !0)]), t.value ? (U(), L("div", $r, [K(e.$slots, "default", {}, void 0, !0)])) : I("", !0)], 16));
1446
+ }, e.$attrs, { class: "td-dropdown" }), [I("span", { onClick: i }, [G(e.$slots, "trigger", {}, void 0, !0)]), t.value ? (H(), F("div", hi, [G(e.$slots, "default", {}, void 0, !0)])) : P("", !0)], 16));
1385
1447
  }
1386
- }), [["__scopeId", "data-v-645fe3f0"]]), ti = {
1448
+ }), [["__scopeId", "data-v-645fe3f0"]]), _i = {
1387
1449
  class: "td-breadcrumb",
1388
1450
  "aria-label": "Breadcrumb"
1389
- }, ni = ["href"], ri = {
1451
+ }, vi = ["href"], yi = {
1390
1452
  type: "button",
1391
1453
  class: "td-breadcrumb-ellipsis"
1392
- }, ii = ["href"], ai = ["href"], oi = {
1454
+ }, bi = ["href"], xi = ["href"], Si = {
1393
1455
  key: 1,
1394
1456
  class: "td-breadcrumb-current"
1395
- }, si = ["href"], ci = {
1457
+ }, Ci = ["href"], wi = {
1396
1458
  key: 1,
1397
1459
  class: "td-breadcrumb-current"
1398
- }, li = 3, ui = /*#__PURE__*/ j(/* @__PURE__ */ V({
1460
+ }, Ti = 3, Ei = /*#__PURE__*/ k(/* @__PURE__ */ z({
1399
1461
  __name: "TdBreadcrumb",
1400
1462
  setup(e) {
1401
- let t = _e(), { withBase: n } = M(), i = W(!1), a = P(() => {
1463
+ let t = Ne(), { withBase: n } = A(), i = U(!1), a = M(() => {
1402
1464
  let e = r(t.path), i = [{
1403
1465
  name: "Home",
1404
1466
  href: n(s("/"))
@@ -1413,127 +1475,127 @@ var jr = ["innerHTML"], Mr = /* @__PURE__ */ V({
1413
1475
  });
1414
1476
  }
1415
1477
  return i;
1416
- }), o = P(() => li < a.value.length), l = P(() => a.value.slice(1, -2));
1417
- return X(() => t.path, () => {
1478
+ }), o = M(() => Ti < a.value.length), l = M(() => a.value.slice(1, -2));
1479
+ return Y(() => t.path, () => {
1418
1480
  i.value = !1;
1419
- }), (e, t) => (U(), L("nav", ti, [R("a", {
1481
+ }), (e, t) => (H(), F("nav", _i, [I("a", {
1420
1482
  href: a.value[0].href,
1421
1483
  class: "td-breadcrumb-link td-breadcrumb-home"
1422
- }, q(a.value[0].name), 9, ni), o.value ? (U(), L(N, { key: 0 }, [
1423
- t[2] ||= R("span", {
1484
+ }, K(a.value[0].name), 9, vi), o.value ? (H(), F(j, { key: 0 }, [
1485
+ t[2] ||= I("span", {
1424
1486
  class: "td-breadcrumb-sep",
1425
1487
  "aria-hidden": "true"
1426
1488
  }, "/", -1),
1427
- B(ei, {
1489
+ R(gi, {
1428
1490
  open: i.value,
1429
1491
  "onUpdate:open": t[0] ||= (e) => i.value = e
1430
1492
  }, {
1431
- trigger: ut(() => [R("button", ri, [B(J(Ce), { size: 14 })])]),
1432
- default: ut(() => [(U(!0), L(N, null, G(l.value, (e) => (U(), L("a", {
1493
+ trigger: X(() => [I("button", yi, [R(q(E), { size: 14 })])]),
1494
+ default: X(() => [(H(!0), F(j, null, W(l.value, (e) => (H(), F("a", {
1433
1495
  key: e.href,
1434
1496
  href: e.href,
1435
1497
  class: "td-breadcrumb-dropdown-item"
1436
- }, q(e.name), 9, ii))), 128))]),
1498
+ }, K(e.name), 9, bi))), 128))]),
1437
1499
  _: 1
1438
1500
  }, 8, ["open"]),
1439
- (U(!0), L(N, null, G(a.value.slice(-2), (e) => (U(), L(N, { key: e.href }, [t[1] ||= R("span", {
1501
+ (H(!0), F(j, null, W(a.value.slice(-2), (e) => (H(), F(j, { key: e.href }, [t[1] ||= I("span", {
1440
1502
  class: "td-breadcrumb-sep",
1441
1503
  "aria-hidden": "true"
1442
- }, "/", -1), e === a.value[a.value.length - 1] ? (U(), L("span", oi, q(e.name), 1)) : (U(), L("a", {
1504
+ }, "/", -1), e === a.value[a.value.length - 1] ? (H(), F("span", Si, K(e.name), 1)) : (H(), F("a", {
1443
1505
  key: 0,
1444
1506
  href: e.href,
1445
1507
  class: "td-breadcrumb-link"
1446
- }, q(e.name), 9, ai))], 64))), 128))
1447
- ], 64)) : (U(!0), L(N, { key: 1 }, G(a.value.slice(1), (e, n) => (U(), L(N, { key: e.href }, [t[3] ||= R("span", {
1508
+ }, K(e.name), 9, xi))], 64))), 128))
1509
+ ], 64)) : (H(!0), F(j, { key: 1 }, W(a.value.slice(1), (e, n) => (H(), F(j, { key: e.href }, [t[3] ||= I("span", {
1448
1510
  class: "td-breadcrumb-sep",
1449
1511
  "aria-hidden": "true"
1450
- }, "/", -1), n < a.value.length - 2 ? (U(), L("a", {
1512
+ }, "/", -1), n < a.value.length - 2 ? (H(), F("a", {
1451
1513
  key: 0,
1452
1514
  href: e.href,
1453
1515
  class: "td-breadcrumb-link"
1454
- }, q(e.name), 9, si)) : (U(), L("span", ci, q(e.name), 1))], 64))), 128))]));
1516
+ }, K(e.name), 9, Ci)) : (H(), F("span", wi, K(e.name), 1))], 64))), 128))]));
1455
1517
  }
1456
- }), [["__scopeId", "data-v-89f87a49"]]), di = {
1518
+ }), [["__scopeId", "data-v-89f87a49"]]), Di = {
1457
1519
  key: 0,
1458
1520
  class: "td-header-nav"
1459
- }, fi = [
1521
+ }, Oi = [
1460
1522
  "href",
1461
1523
  "target",
1462
1524
  "rel"
1463
- ], pi = /*#__PURE__*/ j(/* @__PURE__ */ V({
1525
+ ], ki = /*#__PURE__*/ k(/* @__PURE__ */ z({
1464
1526
  __name: "TdHeaderNavBar",
1465
1527
  setup(e) {
1466
- let t = M(), { withBase: n } = t, r = _e();
1528
+ let t = A(), { withBase: n } = t, r = Ne();
1467
1529
  function i(e) {
1468
1530
  return !m(e) && r.path.startsWith(n(e));
1469
1531
  }
1470
- return (e, r) => J(t).nav?.length ? (U(), L("nav", di, [(U(!0), L(N, null, G(J(t).nav, (e) => (U(), L("a", {
1532
+ return (e, r) => q(t).nav?.length ? (H(), F("nav", Di, [(H(!0), F(j, null, W(q(t).nav, (e) => (H(), F("a", {
1471
1533
  key: e.link,
1472
- href: J(m)(e.link) ? e.link : J(n)(e.link),
1473
- target: J(m)(e.link) ? "_blank" : void 0,
1474
- rel: J(m)(e.link) ? "noopener noreferrer" : void 0,
1475
- class: H(["td-header-nav-link", { "is-active": i(e.link) }])
1534
+ href: q(m)(e.link) ? e.link : q(n)(e.link),
1535
+ target: q(m)(e.link) ? "_blank" : void 0,
1536
+ rel: q(m)(e.link) ? "noopener noreferrer" : void 0,
1537
+ class: B(["td-header-nav-link", { "is-active": i(e.link) }])
1476
1538
  }, [
1477
- e.icon && J(ve)(e.icon) ? (U(), F(nt(J(ve)(e.icon)), {
1539
+ e.icon && q(Pe)(e.icon) ? (H(), N(ct(q(Pe)(e.icon)), {
1478
1540
  key: 0,
1479
1541
  size: 14,
1480
1542
  class: "td-header-nav-icon"
1481
- })) : I("", !0),
1482
- z(" " + q(e.title) + " ", 1),
1483
- J(m)(e.link) ? (U(), F(J(Fe), {
1543
+ })) : P("", !0),
1544
+ L(" " + K(e.title) + " ", 1),
1545
+ q(m)(e.link) ? (H(), N(q(fe), {
1484
1546
  key: 1,
1485
1547
  size: 14
1486
- })) : I("", !0)
1487
- ], 10, fi))), 128))])) : I("", !0);
1548
+ })) : P("", !0)
1549
+ ], 10, Oi))), 128))])) : P("", !0);
1488
1550
  }
1489
- }), [["__scopeId", "data-v-b7b3bb7c"]]), mi = {
1551
+ }), [["__scopeId", "data-v-b7b3bb7c"]]), Ai = {
1490
1552
  key: 0,
1491
1553
  class: "td-menu-nav"
1492
- }, hi = [
1554
+ }, ji = [
1493
1555
  "href",
1494
1556
  "target",
1495
1557
  "rel"
1496
- ], gi = /*#__PURE__*/ j(/* @__PURE__ */ V({
1558
+ ], Mi = /*#__PURE__*/ k(/* @__PURE__ */ z({
1497
1559
  __name: "TdHeaderNavMenu",
1498
1560
  setup(e) {
1499
- let t = M(), { withBase: n } = t, r = _e();
1561
+ let t = A(), { withBase: n } = t, r = Ne();
1500
1562
  function i(e) {
1501
1563
  return !m(e) && r.path.startsWith(n(e));
1502
1564
  }
1503
- return (e, r) => J(t).nav?.length ? (U(), L("nav", mi, [(U(!0), L(N, null, G(J(t).nav, (e) => (U(), L("a", {
1565
+ return (e, r) => q(t).nav?.length ? (H(), F("nav", Ai, [(H(!0), F(j, null, W(q(t).nav, (e) => (H(), F("a", {
1504
1566
  key: e.link,
1505
- href: J(m)(e.link) ? e.link : J(n)(e.link),
1506
- target: J(m)(e.link) ? "_blank" : void 0,
1507
- rel: J(m)(e.link) ? "noopener noreferrer" : void 0,
1508
- class: H(["td-menu-nav-item", { "is-active": i(e.link) }])
1567
+ href: q(m)(e.link) ? e.link : q(n)(e.link),
1568
+ target: q(m)(e.link) ? "_blank" : void 0,
1569
+ rel: q(m)(e.link) ? "noopener noreferrer" : void 0,
1570
+ class: B(["td-menu-nav-item", { "is-active": i(e.link) }])
1509
1571
  }, [
1510
- e.icon ? (U(), F(Ae, {
1572
+ e.icon ? (H(), N(ke, {
1511
1573
  key: 0,
1512
1574
  name: e.icon,
1513
1575
  size: 16
1514
- }, null, 8, ["name"])) : I("", !0),
1515
- R("span", null, q(e.title), 1),
1516
- J(m)(e.link) ? (U(), F(J(Fe), {
1576
+ }, null, 8, ["name"])) : P("", !0),
1577
+ I("span", null, K(e.title), 1),
1578
+ q(m)(e.link) ? (H(), N(q(fe), {
1517
1579
  key: 1,
1518
1580
  size: 14
1519
- })) : I("", !0)
1520
- ], 10, hi))), 128))])) : I("", !0);
1581
+ })) : P("", !0)
1582
+ ], 10, ji))), 128))])) : P("", !0);
1521
1583
  }
1522
- }), [["__scopeId", "data-v-8b23de5a"]]), _i = { class: "td-widget-checkbox" }, vi = /*#__PURE__*/ j(/* @__PURE__ */ V({
1584
+ }), [["__scopeId", "data-v-8b23de5a"]]), Ni = { class: "td-widget-checkbox" }, Pi = /*#__PURE__*/ k(/* @__PURE__ */ z({
1523
1585
  __name: "TdWidgetCheckbox",
1524
1586
  props: { value: {} },
1525
1587
  setup(e) {
1526
- return (t, n) => (U(), L("span", _i, [e.value ? (U(), F(J(Dt), {
1588
+ return (t, n) => (H(), F("span", Ni, [e.value ? (H(), N(q(Ut), {
1527
1589
  key: 0,
1528
1590
  size: 16,
1529
1591
  class: "td-widget-checkbox-icon is-checked"
1530
- })) : (U(), F(J(Pe), {
1592
+ })) : (H(), N(q(Fe), {
1531
1593
  key: 1,
1532
1594
  size: 16,
1533
1595
  class: "td-widget-checkbox-icon"
1534
1596
  }))]));
1535
1597
  }
1536
- }), [["__scopeId", "data-v-13241c06"]]), yi = /* @__PURE__ */ new Set([
1598
+ }), [["__scopeId", "data-v-13241c06"]]), Fi = /* @__PURE__ */ new Set([
1537
1599
  "png",
1538
1600
  "jpg",
1539
1601
  "jpeg",
@@ -1545,11 +1607,11 @@ var jr = ["innerHTML"], Mr = /* @__PURE__ */ V({
1545
1607
  "ico",
1546
1608
  "tiff"
1547
1609
  ]);
1548
- function bi(e) {
1610
+ function Ii(e) {
1549
1611
  if (!e) return;
1550
1612
  if (typeof e == "string") {
1551
1613
  let t = e.trim();
1552
- return !t || !xi({ url: t }) ? void 0 : {
1614
+ return !t || !Li({ url: t }) ? void 0 : {
1553
1615
  url: t,
1554
1616
  name: i(t),
1555
1617
  isImage: !0
@@ -1566,23 +1628,23 @@ function bi(e) {
1566
1628
  name: a,
1567
1629
  format: o,
1568
1630
  icon: n.icon,
1569
- isImage: xi({
1631
+ isImage: Li({
1570
1632
  url: r,
1571
1633
  name: a,
1572
1634
  format: o
1573
1635
  })
1574
1636
  };
1575
1637
  }
1576
- function xi(e) {
1577
- if (e.format && yi.has(e.format.toLowerCase())) return !0;
1638
+ function Li(e) {
1639
+ if (e.format && Fi.has(e.format.toLowerCase())) return !0;
1578
1640
  let t = o(e.name || e.url).slice(1);
1579
- return t ? yi.has(t.toLowerCase()) : !1;
1641
+ return t ? Fi.has(t.toLowerCase()) : !1;
1580
1642
  }
1581
1643
  // src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetRelation.vue?vue&type=script&setup=true&lang.ts
1582
- var Si = {
1644
+ var Ri = {
1583
1645
  key: 0,
1584
1646
  class: "td-widget-relation-wrapper"
1585
- }, Ci = ["href", "title"], wi = ["src", "alt"], Ti = ["href"], Ei = { class: "td-widget-file-name" }, Di = ["href"], Oi = ["href"], ki = { key: 1 }, Ai = /*#__PURE__*/ j(/* @__PURE__ */ V({
1647
+ }, zi = ["href", "title"], Bi = ["src", "alt"], Vi = ["href"], Hi = { class: "td-widget-file-name" }, Ui = ["href"], Wi = ["href"], Gi = { key: 1 }, Ki = /*#__PURE__*/ k(/* @__PURE__ */ z({
1586
1648
  __name: "TdWidgetRelation",
1587
1649
  props: {
1588
1650
  value: {},
@@ -1592,80 +1654,80 @@ var Si = {
1592
1654
  }
1593
1655
  },
1594
1656
  setup(e) {
1595
- let { withBase: t } = M(), n = P(() => bi(e.value)), r = P(() => n.value?.icon ? ve(n.value.icon.name) : void 0), i = P(() => n.value !== void 0 && m(n.value.url));
1596
- return (a, o) => n.value ? (U(), L("span", Si, [n.value.isImage ? (U(), L("a", {
1657
+ let { withBase: t } = A(), n = M(() => Ii(e.value)), r = M(() => n.value?.icon ? Pe(n.value.icon.name) : void 0), i = M(() => n.value !== void 0 && m(n.value.url));
1658
+ return (a, o) => n.value ? (H(), F("span", Ri, [n.value.isImage ? (H(), F("a", {
1597
1659
  key: 0,
1598
- href: J(t)(n.value.url),
1660
+ href: q(t)(n.value.url),
1599
1661
  target: "_blank",
1600
1662
  rel: "noopener noreferrer",
1601
1663
  class: "td-widget-image-preview",
1602
1664
  title: n.value.name
1603
- }, [R("img", {
1604
- src: J(t)(n.value.url),
1665
+ }, [I("img", {
1666
+ src: q(t)(n.value.url),
1605
1667
  alt: n.value.name,
1606
1668
  class: "td-widget-image-img",
1607
1669
  loading: "lazy"
1608
- }, null, 8, wi)], 8, Ci)) : n.value.format || n.value.url.includes(".") ? (U(), L("a", {
1670
+ }, null, 8, Bi)], 8, zi)) : n.value.format || n.value.url.includes(".") ? (H(), F("a", {
1609
1671
  key: 1,
1610
- href: J(t)(n.value.url),
1672
+ href: q(t)(n.value.url),
1611
1673
  target: "_blank",
1612
1674
  rel: "noopener noreferrer",
1613
1675
  class: "td-widget-file-link"
1614
- }, [B(J(ee), { class: "td-widget-file-icon" }), R("span", Ei, q(n.value.name), 1)], 8, Ti)) : i.value ? (U(), L("a", {
1676
+ }, [R(q(Oe), { class: "td-widget-file-icon" }), I("span", Hi, K(n.value.name), 1)], 8, Vi)) : i.value ? (H(), F("a", {
1615
1677
  key: 2,
1616
1678
  href: n.value.url,
1617
1679
  target: "_blank",
1618
1680
  rel: "noopener noreferrer",
1619
1681
  class: "td-widget-ref td-widget-ref-external"
1620
- }, [B(J(Fe), {
1682
+ }, [R(q(fe), {
1621
1683
  size: 12,
1622
1684
  class: "td-widget-external-icon"
1623
- })], 8, Di)) : (U(), L("a", {
1685
+ })], 8, Ui)) : (H(), F("a", {
1624
1686
  key: 3,
1625
- href: J(t)(n.value.url),
1687
+ href: q(t)(n.value.url),
1626
1688
  class: "td-widget-ref"
1627
- }, [r.value && !e.hideIcon ? (U(), F(nt(r.value), {
1689
+ }, [r.value && !e.hideIcon ? (H(), N(ct(r.value), {
1628
1690
  key: 0,
1629
1691
  size: 14,
1630
1692
  class: "td-widget-ref-icon"
1631
- })) : I("", !0), z(q(n.value.name), 1)], 8, Oi))])) : (U(), L("span", ki, q(e.value), 1));
1693
+ })) : P("", !0), L(K(n.value.name), 1)], 8, Wi))])) : (H(), F("span", Gi, K(e.value), 1));
1632
1694
  }
1633
- }), [["__scopeId", "data-v-20319819"]]), ji = { key: 0 }, Mi = { class: "td-widget-list td-widget-list-icons" }, Ni = { key: 1 }, Pi = { class: "td-widget-list" }, Fi = 5, Ii = /*#__PURE__*/ j(/* @__PURE__ */ V({
1695
+ }), [["__scopeId", "data-v-20319819"]]), qi = { key: 0 }, Ji = { class: "td-widget-list td-widget-list-icons" }, Yi = { key: 1 }, Xi = { class: "td-widget-list" }, Zi = 5, Qi = /*#__PURE__*/ k(/* @__PURE__ */ z({
1634
1696
  __name: "TdWidgetList",
1635
1697
  props: {
1636
1698
  definition: {},
1637
1699
  value: {}
1638
1700
  },
1639
1701
  setup(e) {
1640
- let t = W(!1), n = P(() => Array.isArray(e.value) ? e.value : []), r = P(() => e.definition.items?.widget === "relation"), i = P(() => r.value ? n.value.map((e) => bi(e)).filter((e) => e !== void 0) : []), a = P(() => r.value ? Math.max(0, i.value.length - Fi) : Math.max(0, n.value.length - Fi));
1702
+ let t = U(!1), n = M(() => Array.isArray(e.value) ? e.value : []), r = M(() => e.definition.items?.widget === "relation"), i = M(() => r.value ? n.value.map((e) => Ii(e)).filter((e) => e !== void 0) : []), a = M(() => r.value ? Math.max(0, i.value.length - Zi) : Math.max(0, n.value.length - Zi));
1641
1703
  function o() {
1642
1704
  t.value = !t.value;
1643
1705
  }
1644
1706
  function s(e) {
1645
- return t.value ? e : e.slice(0, Fi);
1707
+ return t.value ? e : e.slice(0, Zi);
1646
1708
  }
1647
- return (e, c) => r.value ? (U(), L("div", ji, [R("ul", Mi, [(U(!0), L(N, null, G(s(i.value), (e, t) => (U(), L("li", { key: t }, [R("div", null, [(U(), F(nt(e.icon ? J(ve)(e.icon.name) ?? J(we) : J(we)), {
1709
+ return (e, c) => r.value ? (H(), F("div", qi, [I("ul", Ji, [(H(!0), F(j, null, W(s(i.value), (e, t) => (H(), F("li", { key: t }, [I("div", null, [(H(), N(ct(e.icon ? q(Pe)(e.icon.name) ?? q(ue) : q(ue)), {
1648
1710
  size: 14,
1649
1711
  class: "td-widget-list-icon"
1650
- }))]), B(Ai, {
1712
+ }))]), R(Ki, {
1651
1713
  value: { $ref: e },
1652
1714
  "hide-icon": ""
1653
- }, null, 8, ["value"])]))), 128))]), a.value > 0 ? (U(), L("button", {
1715
+ }, null, 8, ["value"])]))), 128))]), a.value > 0 ? (H(), F("button", {
1654
1716
  key: 0,
1655
1717
  class: "td-widget-more",
1656
1718
  type: "button",
1657
1719
  onClick: o
1658
- }, q(t.value ? "show less" : `+${a.value} more`), 1)) : I("", !0)])) : (U(), L("div", Ni, [R("ul", Pi, [(U(!0), L(N, null, G(s(n.value), (e, t) => (U(), L("li", { key: t }, [J(bi)(e) ? (U(), F(Ai, {
1720
+ }, K(t.value ? "show less" : `+${a.value} more`), 1)) : P("", !0)])) : (H(), F("div", Yi, [I("ul", Xi, [(H(!0), F(j, null, W(s(n.value), (e, t) => (H(), F("li", { key: t }, [q(Ii)(e) ? (H(), N(Ki, {
1659
1721
  key: 0,
1660
1722
  value: e
1661
- }, null, 8, ["value"])) : (U(), L(N, { key: 1 }, [z(q(e), 1)], 64))]))), 128))]), a.value > 0 ? (U(), L("button", {
1723
+ }, null, 8, ["value"])) : (H(), F(j, { key: 1 }, [L(K(e), 1)], 64))]))), 128))]), a.value > 0 ? (H(), F("button", {
1662
1724
  key: 0,
1663
1725
  class: "td-widget-more",
1664
1726
  type: "button",
1665
1727
  onClick: o
1666
- }, q(t.value ? "show less" : `+${a.value} more`), 1)) : I("", !0)]));
1728
+ }, K(t.value ? "show less" : `+${a.value} more`), 1)) : P("", !0)]));
1667
1729
  }
1668
- }), [["__scopeId", "data-v-bc659020"]]), Li = [
1730
+ }), [["__scopeId", "data-v-bc659020"]]), $i = [
1669
1731
  {
1670
1732
  fg: "#a0522d",
1671
1733
  bg: "rgba(160, 82, 45, 0.1)"
@@ -1699,55 +1761,55 @@ var Si = {
1699
1761
  bg: "rgba(239, 68, 68, 0.1)"
1700
1762
  }
1701
1763
  ];
1702
- function Ri(e) {
1703
- let t = Li[zi(String(e ?? "")) % Li.length];
1764
+ function ea(e) {
1765
+ let t = $i[ta(String(e ?? "")) % $i.length];
1704
1766
  return {
1705
1767
  color: t.fg,
1706
1768
  background: t.bg
1707
1769
  };
1708
1770
  }
1709
- function zi(e) {
1771
+ function ta(e) {
1710
1772
  let t = 0;
1711
1773
  for (let n = 0; n < e.length; n++) t = (t << 5) - t + e.charCodeAt(n) | 0;
1712
1774
  return Math.abs(t);
1713
1775
  }
1714
1776
  // src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetMultiSelect.vue?vue&type=script&setup=true&lang.ts
1715
- var Bi = 5, Vi = /*#__PURE__*/ j(/* @__PURE__ */ V({
1777
+ var na = 5, ra = /*#__PURE__*/ k(/* @__PURE__ */ z({
1716
1778
  __name: "TdWidgetMultiSelect",
1717
1779
  props: { value: {} },
1718
1780
  setup(e) {
1719
- let t = W(!1), n = P(() => Array.isArray(e.value) ? e.value : []), r = P(() => t.value ? n.value : n.value.slice(0, Bi)), i = P(() => Math.max(0, n.value.length - Bi));
1781
+ let t = U(!1), n = M(() => Array.isArray(e.value) ? e.value : []), r = M(() => t.value ? n.value : n.value.slice(0, na)), i = M(() => Math.max(0, n.value.length - na));
1720
1782
  function a() {
1721
1783
  t.value = !t.value;
1722
1784
  }
1723
- return (e, n) => (U(), L(N, null, [(U(!0), L(N, null, G(r.value, (e, t) => (U(), L("span", {
1785
+ return (e, n) => (H(), F(j, null, [(H(!0), F(j, null, W(r.value, (e, t) => (H(), F("span", {
1724
1786
  key: t,
1725
1787
  class: "td-widget-pill",
1726
- style: Je(J(Ri)(e))
1727
- }, q(e), 5))), 128)), i.value > 0 ? (U(), L("button", {
1788
+ style: tt(q(ea)(e))
1789
+ }, K(e), 5))), 128)), i.value > 0 ? (H(), F("button", {
1728
1790
  key: 0,
1729
1791
  class: "td-widget-more",
1730
1792
  type: "button",
1731
1793
  onClick: a
1732
- }, q(t.value ? "show less" : `+${i.value} more`), 1)) : I("", !0)], 64));
1794
+ }, K(t.value ? "show less" : `+${i.value} more`), 1)) : P("", !0)], 64));
1733
1795
  }
1734
- }), [["__scopeId", "data-v-b3656329"]]), Hi = /*#__PURE__*/ j(/* @__PURE__ */ V({
1796
+ }), [["__scopeId", "data-v-b3656329"]]), ia = /*#__PURE__*/ k(/* @__PURE__ */ z({
1735
1797
  __name: "TdWidgetSelect",
1736
1798
  props: { value: {} },
1737
1799
  setup(e) {
1738
- return (t, n) => (U(), L("span", {
1800
+ return (t, n) => (H(), F("span", {
1739
1801
  class: "td-widget-pill",
1740
- style: Je(J(Ri)(e.value))
1741
- }, q(e.value), 5));
1802
+ style: tt(q(ea)(e.value))
1803
+ }, K(e.value), 5));
1742
1804
  }
1743
- }), [["__scopeId", "data-v-b9e2b4fd"]]), Ui = ["href", "title"], Wi = ["src", "alt"], Gi = ["href"], Ki = { class: "td-widget-file-name" }, qi = /*#__PURE__*/ j(/* @__PURE__ */ V({
1805
+ }), [["__scopeId", "data-v-b9e2b4fd"]]), aa = ["href", "title"], oa = ["src", "alt"], sa = ["href"], ca = { class: "td-widget-file-name" }, la = /*#__PURE__*/ k(/* @__PURE__ */ z({
1744
1806
  __name: "TdWidgetText",
1745
1807
  props: {
1746
1808
  definition: {},
1747
1809
  value: {}
1748
1810
  },
1749
1811
  setup(e) {
1750
- let { withBase: t } = M(), n = P(() => typeof e.value == "string" ? e.value.trim() : ""), r = P(() => bi(e.value)), i = P(() => r.value ? r.value.isImage : 0 < n.value.length && xi({ url: n.value })), a = P(() => r.value ? r.value.url : n.value), o = P(() => t(a.value)), s = P(() => !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"));
1812
+ let { withBase: t } = A(), n = M(() => typeof e.value == "string" ? e.value.trim() : ""), r = M(() => Ii(e.value)), i = M(() => r.value ? r.value.isImage : 0 < n.value.length && Li({ 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"));
1751
1813
  function c(t) {
1752
1814
  if (t == null) return "";
1753
1815
  if (typeof t == "object" && !Array.isArray(t)) {
@@ -1760,65 +1822,65 @@ var Bi = 5, Vi = /*#__PURE__*/ j(/* @__PURE__ */ V({
1760
1822
  }
1761
1823
  return e.definition.widget === "date" ? _(String(t)) : String(t);
1762
1824
  }
1763
- return (t, a) => i.value ? (U(), L("a", {
1825
+ return (t, a) => i.value ? (H(), F("a", {
1764
1826
  key: 0,
1765
1827
  href: o.value,
1766
1828
  target: "_blank",
1767
1829
  rel: "noopener noreferrer",
1768
1830
  class: "td-widget-image-preview",
1769
1831
  title: r.value ? r.value.name : n.value
1770
- }, [R("img", {
1832
+ }, [I("img", {
1771
1833
  src: o.value,
1772
1834
  alt: r.value ? r.value.name : n.value,
1773
1835
  class: "td-widget-image-img",
1774
1836
  loading: "lazy"
1775
- }, null, 8, Wi)], 8, Ui)) : s.value ? (U(), L("a", {
1837
+ }, null, 8, oa)], 8, aa)) : s.value ? (H(), F("a", {
1776
1838
  key: 1,
1777
1839
  href: o.value,
1778
1840
  target: "_blank",
1779
1841
  rel: "noopener noreferrer",
1780
1842
  class: "td-widget-file-link"
1781
- }, [B(J(ee), { class: "td-widget-file-icon" }), R("span", Ki, q(n.value.split("/").pop() ?? n.value), 1)], 8, Gi)) : (U(), L(N, { key: 2 }, [z(q(c(e.value)), 1)], 64));
1843
+ }, [R(q(Oe), { class: "td-widget-file-icon" }), I("span", ca, K(n.value.split("/").pop() ?? n.value), 1)], 8, sa)) : (H(), F(j, { key: 2 }, [L(K(c(e.value)), 1)], 64));
1782
1844
  }
1783
- }), [["__scopeId", "data-v-2ea0f146"]]), Ji = {
1845
+ }), [["__scopeId", "data-v-2ea0f146"]]), ua = {
1784
1846
  key: 0,
1785
1847
  class: "td-frontmatter-empty"
1786
- }, Yi = /*#__PURE__*/ j(/* @__PURE__ */ V({
1848
+ }, da = /*#__PURE__*/ k(/* @__PURE__ */ z({
1787
1849
  __name: "TdFrontmatterValue",
1788
1850
  props: {
1789
1851
  definition: {},
1790
1852
  value: {}
1791
1853
  },
1792
1854
  setup(e) {
1793
- return (t, n) => e.value === void 0 || e.value === null ? (U(), L("span", Ji, "Empty")) : e.definition.widget === "checkbox" ? (U(), F(vi, {
1855
+ return (t, n) => e.value === void 0 || e.value === null ? (H(), F("span", ua, "Empty")) : e.definition.widget === "checkbox" ? (H(), N(Pi, {
1794
1856
  key: 1,
1795
1857
  value: e.value
1796
- }, null, 8, ["value"])) : e.definition.widget === "select" ? (U(), F(Hi, {
1858
+ }, null, 8, ["value"])) : e.definition.widget === "select" ? (H(), N(ia, {
1797
1859
  key: 2,
1798
1860
  value: e.value
1799
- }, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (U(), F(Vi, {
1861
+ }, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (H(), N(ra, {
1800
1862
  key: 3,
1801
1863
  value: e.value
1802
- }, null, 8, ["value"])) : J(bi)(e.value) || e.definition.widget === "relation" ? (U(), F(Ai, {
1864
+ }, null, 8, ["value"])) : q(Ii)(e.value) || e.definition.widget === "relation" ? (H(), N(Ki, {
1803
1865
  key: 4,
1804
1866
  value: e.value
1805
- }, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (U(), F(Ii, {
1867
+ }, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (H(), N(Qi, {
1806
1868
  key: 5,
1807
1869
  definition: e.definition,
1808
1870
  value: e.value
1809
- }, null, 8, ["definition", "value"])) : (U(), F(qi, {
1871
+ }, null, 8, ["definition", "value"])) : (H(), N(la, {
1810
1872
  key: 6,
1811
1873
  definition: e.definition,
1812
1874
  value: e.value
1813
1875
  }, null, 8, ["definition", "value"]));
1814
1876
  }
1815
- }), [["__scopeId", "data-v-1deedc98"]]), Xi = {
1877
+ }), [["__scopeId", "data-v-1deedc98"]]), fa = {
1816
1878
  key: 0,
1817
1879
  class: "td-fm-rail"
1818
- }, Zi = { class: "td-fm-rail-key" }, Qi = { class: "td-fm-rail-value" }, $i = {
1880
+ }, pa = { class: "td-fm-rail-key" }, ma = { class: "td-fm-rail-value" }, ha = {
1819
1881
  key: 1,
1820
1882
  class: "td-fm-box"
1821
- }, ea = { class: "td-fm-box-label" }, ta = { class: "td-fm-box-count" }, na = { class: "td-fm-box-toggle" }, ra = { class: "td-fm-box-body" }, ia = { class: "td-fm-box-key" }, aa = { class: "td-fm-box-value" }, oa = /*#__PURE__*/ j(/* @__PURE__ */ V({
1883
+ }, ga = { class: "td-fm-box-label" }, _a = { class: "td-fm-box-count" }, va = { class: "td-fm-box-toggle" }, ya = { class: "td-fm-box-body" }, ba = { class: "td-fm-box-key" }, xa = { class: "td-fm-box-value" }, Sa = /*#__PURE__*/ k(/* @__PURE__ */ z({
1822
1884
  __name: "TdFrontmatter",
1823
1885
  props: {
1824
1886
  mode: { default: "inline" },
@@ -1826,12 +1888,12 @@ var Bi = 5, Vi = /*#__PURE__*/ j(/* @__PURE__ */ V({
1826
1888
  frontmatter: {}
1827
1889
  },
1828
1890
  setup(e) {
1829
- let t = Se(), n = P(() => {
1891
+ let t = Ee(), n = M(() => {
1830
1892
  if (e.schema) return t.value.schemas[e.schema];
1831
- }), r = P(() => {
1893
+ }), r = M(() => {
1832
1894
  let t = e.frontmatter;
1833
1895
  return t._type && t.fields && typeof t.fields == "object" && !Array.isArray(t.fields) ? t.fields : t;
1834
- }), i = P(() => {
1896
+ }), i = M(() => {
1835
1897
  let e = n.value, t = r.value, i = [], a = /* @__PURE__ */ new Set();
1836
1898
  e && Object.keys(e).forEach((e) => a.add(e)), Object.keys(t).forEach((e) => a.add(e));
1837
1899
  for (let n of a) {
@@ -1843,90 +1905,160 @@ var Bi = 5, Vi = /*#__PURE__*/ j(/* @__PURE__ */ V({
1843
1905
  }
1844
1906
  return i;
1845
1907
  }), a = {
1846
- text: kt,
1847
- checkbox: _t,
1848
- select: me,
1849
- multiSelect: Ot,
1850
- relation: Fe,
1851
- list: O
1908
+ text: Gt,
1909
+ checkbox: Nt,
1910
+ select: we,
1911
+ multiSelect: Wt,
1912
+ relation: fe,
1913
+ list: me
1852
1914
  };
1853
1915
  function o(e) {
1854
- return a[e] ?? kt;
1916
+ return a[e] ?? Gt;
1855
1917
  }
1856
- let s = W(!1), l = W(!1);
1918
+ let s = U(!1), l = U(!1);
1857
1919
  function u() {
1858
1920
  s.value = !s.value;
1859
1921
  }
1860
1922
  function d() {
1861
1923
  l.value = !l.value;
1862
1924
  }
1863
- return (t, n) => e.mode === "rail" && i.value.length > 0 ? (U(), L("div", Xi, [R("button", {
1925
+ return (t, n) => e.mode === "rail" && i.value.length > 0 ? (H(), F("div", fa, [I("button", {
1864
1926
  type: "button",
1865
1927
  class: "td-fm-rail-header",
1866
1928
  onClick: d
1867
- }, [n[0] ||= R("span", { class: "td-fm-rail-label" }, "Properties", -1), B(J(ie), {
1929
+ }, [n[0] ||= I("span", { class: "td-fm-rail-label" }, "Properties", -1), R(q(re), {
1868
1930
  size: 14,
1869
- class: H(["td-fm-rail-caret", { "is-collapsed": l.value }])
1870
- }, null, 8, ["class"])]), R("div", { class: H(["td-collapse", { "is-collapsed": l.value }]) }, [R("div", null, [(U(!0), L(N, null, G(i.value, ([e, t]) => (U(), L("div", {
1931
+ class: B(["td-fm-rail-caret", { "is-collapsed": l.value }])
1932
+ }, null, 8, ["class"])]), I("div", { class: B(["td-collapse", { "is-collapsed": l.value }]) }, [I("div", null, [(H(!0), F(j, null, W(i.value, ([e, t]) => (H(), F("div", {
1871
1933
  key: e,
1872
1934
  class: "td-fm-rail-row"
1873
- }, [R("span", Zi, [(U(), F(nt(o(t.widget)), {
1935
+ }, [I("span", pa, [(H(), N(ct(o(t.widget)), {
1874
1936
  size: 12,
1875
1937
  class: "td-fm-icon"
1876
- })), z(" " + q(J(c)(e)), 1)]), R("span", Qi, [B(Yi, {
1938
+ })), L(" " + K(q(c)(e)), 1)]), I("span", ma, [R(da, {
1877
1939
  definition: t,
1878
1940
  value: r.value[e]
1879
- }, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : i.value.length > 0 ? (U(), L("div", $i, [R("button", {
1941
+ }, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : i.value.length > 0 ? (H(), F("div", ha, [I("button", {
1880
1942
  type: "button",
1881
1943
  class: "td-fm-box-header",
1882
1944
  onClick: u
1883
- }, [R("span", ea, [n[1] ||= z("Properties ", -1), R("span", ta, q(i.value.length), 1)]), R("span", na, [z(q(s.value ? "Show" : "Hide") + " ", 1), s.value ? (U(), F(J(le), {
1945
+ }, [I("span", ga, [n[1] ||= L("Properties ", -1), I("span", _a, K(i.value.length), 1)]), I("span", va, [L(K(s.value ? "Show" : "Hide") + " ", 1), s.value ? (H(), N(q(le), {
1884
1946
  key: 1,
1885
1947
  size: 14
1886
- })) : (U(), F(J(ie), {
1948
+ })) : (H(), N(q(re), {
1887
1949
  key: 0,
1888
1950
  size: 14
1889
- }))])]), R("div", { class: H(["td-collapse", { "is-collapsed": s.value }]) }, [R("div", ra, [(U(!0), L(N, null, G(i.value, ([e, t]) => (U(), L(N, { key: e }, [R("span", ia, [(U(), F(nt(o(t.widget)), {
1951
+ }))])]), I("div", { class: B(["td-collapse", { "is-collapsed": s.value }]) }, [I("div", ya, [(H(!0), F(j, null, W(i.value, ([e, t]) => (H(), F(j, { key: e }, [I("span", ba, [(H(), N(ct(o(t.widget)), {
1890
1952
  size: 12,
1891
1953
  class: "td-fm-icon"
1892
- })), z(" " + q(J(c)(e)), 1)]), R("span", aa, [B(Yi, {
1954
+ })), L(" " + K(q(c)(e)), 1)]), I("span", xa, [R(da, {
1893
1955
  definition: t,
1894
1956
  value: r.value[e]
1895
- }, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) : I("", !0);
1957
+ }, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) : P("", !0);
1896
1958
  }
1897
- }), [["__scopeId", "data-v-88227032"]]), sa = W(!1);
1898
- function ca() {
1899
- function e() {
1900
- sa.value = !sa.value;
1959
+ }), [["__scopeId", "data-v-88227032"]]);
1960
+ // src/client/theme-default/composables/useMediaQuery.ts
1961
+ function Ca(e) {
1962
+ let t = U(!1), n;
1963
+ function r(e) {
1964
+ t.value = e.matches;
1901
1965
  }
1902
- function t() {
1903
- sa.value = !0;
1966
+ return V(() => {
1967
+ n = window.matchMedia(e), t.value = n.matches, n?.addEventListener("change", r);
1968
+ }), it(() => {
1969
+ n?.removeEventListener("change", r);
1970
+ }), t;
1971
+ }
1972
+ // src/client/theme-default/composables/useHotkey.ts
1973
+ var wa = /* @__PURE__ */ new Map([
1974
+ [Q.Control, "ctrlKey"],
1975
+ [Q.Alt, "altKey"],
1976
+ [Q.Shift, "shiftKey"],
1977
+ [Q.Meta, "metaKey"]
1978
+ ]);
1979
+ function Ta(e) {
1980
+ if (!(e instanceof Element)) return !1;
1981
+ let t = e.tagName.toLowerCase();
1982
+ return t === "input" || t === "textarea" || t === "select" || e.isContentEditable;
1983
+ }
1984
+ function Ea(e, t, n) {
1985
+ function r(r) {
1986
+ r.defaultPrevented || n?.ignoreWhenTyping && Ta(r.target) || ka(r, e) && (r.preventDefault(), t(r));
1904
1987
  }
1988
+ let i = { capture: n?.capture ?? !1 };
1989
+ V(() => window.addEventListener("keydown", r, i)), it(() => window.removeEventListener("keydown", r, i));
1990
+ }
1991
+ function Da(e) {
1992
+ let t = [];
1993
+ function n(e, n) {
1994
+ t.push({
1995
+ keys: e,
1996
+ handler: n
1997
+ });
1998
+ }
1999
+ function r(e) {
2000
+ for (let n of t) if (ka(e, n.keys)) {
2001
+ e.preventDefault(), e.stopPropagation(), n.handler(e);
2002
+ return;
2003
+ }
2004
+ }
2005
+ return Y(e, (e, t) => {
2006
+ t?.removeEventListener("keydown", r), e?.addEventListener("keydown", r);
2007
+ }, { immediate: !0 }), it(() => {
2008
+ e.value?.removeEventListener("keydown", r);
2009
+ }), { register: n };
2010
+ }
2011
+ function Oa(e) {
2012
+ if (e.length === 1 && /[a-z]/i.test(e)) return `Key${e.toUpperCase()}`;
2013
+ }
2014
+ function ka(e, t) {
2015
+ let n = t.filter((e) => wa.has(e)), r = t.filter((e) => !wa.has(e));
2016
+ if (r.length !== 1) return !1;
2017
+ let i = Oa(r[0]);
2018
+ if (!(i ? e.code === i : e.key.toLowerCase() === r[0].toLowerCase())) return !1;
2019
+ for (let t of n) if (!e[wa.get(t)]) return !1;
2020
+ return !(e.ctrlKey && !n.includes(Q.Control) || e.altKey && !n.includes(Q.Alt) || e.shiftKey && !n.includes(Q.Shift) || e.metaKey && !n.includes(Q.Meta));
2021
+ }
2022
+ // src/client/theme-default/composables/useMenu.ts
2023
+ var Aa = U(!1);
2024
+ function ja() {
2025
+ let e = Ca("(width >= 64rem)"), t = M(() => !e.value);
1905
2026
  function n() {
1906
- sa.value = !1;
2027
+ Aa.value = !Aa.value;
1907
2028
  }
1908
- return {
1909
- isOpen: $e(sa),
1910
- toggle: e,
1911
- open: t,
1912
- close: n
2029
+ function r() {
2030
+ Aa.value = !0;
2031
+ }
2032
+ function i() {
2033
+ Aa.value = !1;
2034
+ }
2035
+ return Y(e, (e) => {
2036
+ e && i();
2037
+ }), Ea([Q.Escape], () => {
2038
+ Aa.value && i();
2039
+ }), {
2040
+ isOpen: at(Aa),
2041
+ isDrawerMounted: t,
2042
+ toggle: n,
2043
+ open: r,
2044
+ close: i
1913
2045
  };
1914
2046
  }
1915
2047
  // src/client/theme-default/components/TdMenuButton.vue
1916
- var la = /* @__PURE__ */ V({
2048
+ var Ma = /* @__PURE__ */ z({
1917
2049
  __name: "TdMenuButton",
1918
2050
  setup(e) {
1919
- let { isOpen: t, toggle: n } = ca();
1920
- return (e, r) => (U(), F(It, {
2051
+ let { isOpen: t, toggle: n } = ja();
2052
+ return (e, r) => (H(), N(Qt, {
1921
2053
  class: "td-menu-button",
1922
- label: J(t) ? "Close menu" : "Open menu",
1923
- "aria-expanded": J(t),
1924
- onClick: J(n)
2054
+ label: q(t) ? "Close menu" : "Open menu",
2055
+ "aria-expanded": q(t),
2056
+ onClick: q(n)
1925
2057
  }, {
1926
- default: ut(() => [J(t) ? (U(), F(J(xe), {
2058
+ default: X(() => [q(t) ? (H(), N(q(Ae), {
1927
2059
  key: 0,
1928
2060
  size: 20
1929
- })) : (U(), F(J(fe), {
2061
+ })) : (H(), N(q(Ie), {
1930
2062
  key: 1,
1931
2063
  size: 20
1932
2064
  }))]),
@@ -1939,9 +2071,9 @@ var la = /* @__PURE__ */ V({
1939
2071
  }
1940
2072
  });
1941
2073
  // src/client/theme-default/composables/usePreviousNext.ts
1942
- function ua() {
1943
- let e = Se(), t = _e(), { withBase: n, title: r } = M(), i = P(() => {
1944
- let i = fa(e.value.contentTree, r), a = i.findIndex((e) => e.url === t.path);
2074
+ function Na() {
2075
+ let e = Ee(), t = Ne(), { withBase: n, title: r } = A(), i = M(() => {
2076
+ let i = Fa(e.value.contentTree, r), a = i.findIndex((e) => e.url === t.path);
1945
2077
  if (a === -1) return {};
1946
2078
  let o = 0 < a ? i[a - 1] : void 0, s = a < i.length - 1 ? i[a + 1] : void 0;
1947
2079
  return {
@@ -1956,22 +2088,22 @@ function ua() {
1956
2088
  };
1957
2089
  });
1958
2090
  return {
1959
- previous: P(() => i.value.previous),
1960
- next: P(() => i.value.next)
2091
+ previous: M(() => i.value.previous),
2092
+ next: M(() => i.value.next)
1961
2093
  };
1962
2094
  }
1963
- function da(e, t, n) {
2095
+ function Pa(e, t, n) {
1964
2096
  let r = w(t, e.name), i = l(e);
1965
- i && n.push(pa(i));
1966
- for (let t of e.entries) t.kind === "file" && !d(t.item.filepath) ? n.push(pa(t.item)) : t.kind === "dir" && da(t.node, r, n);
2097
+ i && n.push(Ia(i));
2098
+ for (let t of e.entries) t.kind === "file" && !d(t.item.filepath) ? n.push(Ia(t.item)) : t.kind === "dir" && Pa(t.node, r, n);
1967
2099
  }
1968
- function fa(e, t) {
2100
+ function Fa(e, t) {
1969
2101
  let n = [], r = e.entries.find((e) => e.kind === "file" && d(e.item.filepath));
1970
- r && r.kind === "file" && n.push(pa(r.item, t));
1971
- for (let t of e.entries) t.kind === "file" && !d(t.item.filepath) ? n.push(pa(t.item)) : t.kind === "dir" && da(t.node, "", n);
2102
+ r && r.kind === "file" && n.push(Ia(r.item, t));
2103
+ for (let t of e.entries) t.kind === "file" && !d(t.item.filepath) ? n.push(Ia(t.item)) : t.kind === "dir" && Pa(t.node, "", n);
1972
2104
  return n;
1973
2105
  }
1974
- function pa(e, n) {
2106
+ function Ia(e, n) {
1975
2107
  let r = e.label === void 0 ? n === void 0 ? T(e.filepath) : C(e.filepath, n) : e.label;
1976
2108
  return {
1977
2109
  url: t(e.filepath),
@@ -1979,47 +2111,47 @@ function pa(e, n) {
1979
2111
  };
1980
2112
  }
1981
2113
  // src/client/theme-default/components/TdPreviousNext.vue?vue&type=script&setup=true&lang.ts
1982
- var ma = {
2114
+ var La = {
1983
2115
  key: 0,
1984
2116
  class: "td-prevnext",
1985
2117
  "aria-label": "Page navigation"
1986
- }, ha = ["href"], ga = { class: "td-prevnext-label" }, _a = { class: "td-prevnext-title" }, va = {
2118
+ }, Ra = ["href"], za = { class: "td-prevnext-label" }, Ba = { class: "td-prevnext-title" }, Va = {
1987
2119
  key: 1,
1988
2120
  class: "td-prevnext-spacer"
1989
- }, ya = ["href"], ba = { class: "td-prevnext-label" }, xa = { class: "td-prevnext-title" }, Sa = {
2121
+ }, Ha = ["href"], Ua = { class: "td-prevnext-label" }, Wa = { class: "td-prevnext-title" }, Ga = {
1990
2122
  key: 3,
1991
2123
  class: "td-prevnext-spacer"
1992
- }, Ca = /*#__PURE__*/ j(/* @__PURE__ */ V({
2124
+ }, Ka = /*#__PURE__*/ k(/* @__PURE__ */ z({
1993
2125
  __name: "TdPreviousNext",
1994
2126
  setup(e) {
1995
- let { previous: t, next: n } = ua();
1996
- return (e, r) => J(t) || J(n) ? (U(), L("nav", ma, [J(t) ? (U(), L("a", {
2127
+ let { previous: t, next: n } = Na();
2128
+ return (e, r) => q(t) || q(n) ? (H(), F("nav", La, [q(t) ? (H(), F("a", {
1997
2129
  key: 0,
1998
- href: J(t).url,
2130
+ href: q(t).url,
1999
2131
  class: "td-prevnext-link is-previous"
2000
- }, [R("span", ga, [
2001
- B(J(k), {
2132
+ }, [I("span", za, [
2133
+ R(q(de), {
2002
2134
  size: 14,
2003
2135
  class: "td-prevnext-chevron"
2004
2136
  }),
2005
- r[0] ||= z(" Previous ", -1),
2006
- B($, { keys: [J(Q).Control, J(Q).ArrowLeft] }, null, 8, ["keys"])
2007
- ]), R("span", _a, q(J(t).title), 1)], 8, ha)) : (U(), L("span", va)), J(n) ? (U(), L("a", {
2137
+ r[0] ||= L(" Previous ", -1),
2138
+ R($, { keys: [q(Q).Control, q(Q).ArrowLeft] }, null, 8, ["keys"])
2139
+ ]), I("span", Ba, K(q(t).title), 1)], 8, Ra)) : (H(), F("span", Va)), q(n) ? (H(), F("a", {
2008
2140
  key: 2,
2009
- href: J(n).url,
2141
+ href: q(n).url,
2010
2142
  class: "td-prevnext-link is-next"
2011
- }, [R("span", ba, [
2012
- B($, { keys: [J(Q).Control, J(Q).ArrowRight] }, null, 8, ["keys"]),
2013
- r[1] ||= z(" Next ", -1),
2014
- B(J(le), {
2143
+ }, [I("span", Ua, [
2144
+ R($, { keys: [q(Q).Control, q(Q).ArrowRight] }, null, 8, ["keys"]),
2145
+ r[1] ||= L(" Next ", -1),
2146
+ R(q(le), {
2015
2147
  size: 14,
2016
2148
  class: "td-prevnext-chevron"
2017
2149
  })
2018
- ]), R("span", xa, q(J(n).title), 1)], 8, ya)) : (U(), L("span", Sa))])) : I("", !0);
2150
+ ]), I("span", Wa, K(q(n).title), 1)], 8, Ha)) : (H(), F("span", Ga))])) : P("", !0);
2019
2151
  }
2020
- }), [["__scopeId", "data-v-b937f37a"]]), wa = 100;
2021
- function Ta(e) {
2022
- let t = W(void 0), n = [], r;
2152
+ }), [["__scopeId", "data-v-b937f37a"]]), qa = 100;
2153
+ function Ja(e) {
2154
+ let t = U(void 0), n = [], r;
2023
2155
  function i() {
2024
2156
  if (n.length === 0) return;
2025
2157
  let e = window.scrollY;
@@ -2028,7 +2160,7 @@ function Ta(e) {
2028
2160
  return;
2029
2161
  }
2030
2162
  let r;
2031
- for (let t of n) if (Ea(t) <= e + wa) r = t.id;
2163
+ for (let t of n) if (Ya(t) <= e + qa) r = t.id;
2032
2164
  else break;
2033
2165
  t.value = r;
2034
2166
  }
@@ -2041,31 +2173,31 @@ function Ta(e) {
2041
2173
  let r = new Set(e.map((e) => e.slug));
2042
2174
  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();
2043
2175
  }
2044
- return Xe(() => {
2176
+ return V(() => {
2045
2177
  window.addEventListener("scroll", a);
2046
- }), Qe(() => {
2178
+ }), it(() => {
2047
2179
  window.removeEventListener("scroll", a), r !== void 0 && cancelAnimationFrame(r);
2048
- }), X(e, (e) => {
2049
- typeof window < "u" && qe(() => o(e));
2180
+ }), Y(e, (e) => {
2181
+ typeof window < "u" && et(() => o(e));
2050
2182
  }, { immediate: !0 }), t;
2051
2183
  }
2052
- function Ea(e) {
2184
+ function Ya(e) {
2053
2185
  let t = 0, n = e;
2054
2186
  for (; n;) t += n.offsetTop, n = n.offsetParent;
2055
2187
  return t;
2056
2188
  }
2057
2189
  // src/client/theme-default/components/custom/TdToc.vue?vue&type=script&setup=true&lang.ts
2058
- var Da = {
2190
+ var Xa = {
2059
2191
  key: 0,
2060
2192
  class: "td-toc-inline-wrap"
2061
- }, Oa = { class: "td-toc-inline-list" }, ka = ["href", "innerHTML"], Aa = {
2193
+ }, Za = { class: "td-toc-inline-list" }, Qa = ["href", "innerHTML"], $a = {
2062
2194
  key: 0,
2063
2195
  class: "td-toc-inline-children"
2064
- }, ja = ["href", "innerHTML"], Ma = {
2196
+ }, eo = ["href", "innerHTML"], to = {
2065
2197
  key: 1,
2066
2198
  class: "td-toc",
2067
2199
  "data-testid": "toc"
2068
- }, Na = { class: "td-toc-list" }, Pa = ["href", "innerHTML"], Fa = /*#__PURE__*/ j(/* @__PURE__ */ V({
2200
+ }, no = { class: "td-toc-list" }, ro = ["href", "innerHTML"], io = /*#__PURE__*/ k(/* @__PURE__ */ z({
2069
2201
  __name: "TdToc",
2070
2202
  props: {
2071
2203
  headings: {},
@@ -2083,78 +2215,75 @@ var Da = {
2083
2215
  }
2084
2216
  },
2085
2217
  setup(e) {
2086
- let t = P(() => {
2218
+ let t = M(() => {
2087
2219
  let t = [];
2088
2220
  for (let n of e.headings) {
2089
2221
  t.push(n);
2090
2222
  for (let e of n.children) t.push(e);
2091
2223
  }
2092
2224
  return t;
2093
- }), n = e.static || e.inline ? P(() => void 0) : Ta(() => t.value), r = Y("list");
2094
- return X(n, () => {
2095
- qe(() => {
2096
- r.value?.querySelector("a.is-active")?.scrollIntoView({
2097
- block: "nearest",
2098
- behavior: "smooth"
2099
- });
2225
+ }), n = e.static || e.inline ? M(() => void 0) : Ja(() => t.value), r = J("list");
2226
+ return Y(n, () => {
2227
+ et(() => {
2228
+ r.value?.querySelector("a.is-active")?.scrollIntoView({ block: "center" });
2100
2229
  });
2101
- }), (r, i) => e.inline ? (U(), L("div", Da, [i[0] ||= R("div", { class: "td-toc-inline-label" }, " On this page ", -1), R("ul", Oa, [(U(!0), L(N, null, G(e.headings, (e) => (U(), L("li", {
2230
+ }), (r, i) => e.inline ? (H(), F("div", Xa, [i[0] ||= I("div", { class: "td-toc-inline-label" }, " On this page ", -1), I("ul", Za, [(H(!0), F(j, null, W(e.headings, (e) => (H(), F("li", {
2102
2231
  key: e.slug,
2103
2232
  class: "td-toc-inline-item"
2104
- }, [R("a", {
2233
+ }, [I("a", {
2105
2234
  href: e.link,
2106
2235
  class: "td-toc-inline-link is-h2",
2107
- innerHTML: J(g)(e.titleHtml)
2108
- }, null, 8, ka), e.children.length ? (U(), L("ul", Aa, [(U(!0), L(N, null, G(e.children, (e) => (U(), L("li", { key: e.slug }, [R("a", {
2236
+ innerHTML: q(g)(e.titleHtml)
2237
+ }, null, 8, Qa), e.children.length ? (H(), F("ul", $a, [(H(!0), F(j, null, W(e.children, (e) => (H(), F("li", { key: e.slug }, [I("a", {
2109
2238
  href: e.link,
2110
2239
  class: "td-toc-inline-link is-h3",
2111
- innerHTML: J(g)(e.titleHtml)
2112
- }, null, 8, ja)]))), 128))])) : I("", !0)]))), 128))])])) : e.headings.length ? (U(), L("div", Ma, [R("div", {
2240
+ innerHTML: q(g)(e.titleHtml)
2241
+ }, null, 8, eo)]))), 128))])) : P("", !0)]))), 128))])])) : e.headings.length ? (H(), F("div", to, [I("div", {
2113
2242
  ref: "list",
2114
- class: H(["td-toc-list-wrap", { "is-scrollable": e.scrollable }])
2115
- }, [R("ul", Na, [(U(!0), L(N, null, G(t.value, (e) => (U(), L("li", {
2243
+ class: B(["td-toc-list-wrap", { "is-scrollable": e.scrollable }])
2244
+ }, [I("ul", no, [(H(!0), F(j, null, W(t.value, (e) => (H(), F("li", {
2116
2245
  key: e.slug,
2117
- class: H({
2246
+ class: B({
2118
2247
  "td-toc-indent-1": e.level === 3,
2119
2248
  "td-toc-indent-2": e.level === 4,
2120
2249
  "td-toc-indent-3": e.level === 5
2121
2250
  })
2122
- }, [R("a", {
2251
+ }, [I("a", {
2123
2252
  href: e.link,
2124
- class: H(["td-toc-link", { "is-active": J(n) === e.slug }]),
2125
- innerHTML: J(g)(e.titleHtml)
2126
- }, null, 10, Pa)], 2))), 128))])], 2)])) : I("", !0);
2253
+ class: B(["td-toc-link", { "is-active": q(n) === e.slug }]),
2254
+ innerHTML: q(g)(e.titleHtml)
2255
+ }, null, 10, ro)], 2))), 128))])], 2)])) : P("", !0);
2127
2256
  }
2128
- }), [["__scopeId", "data-v-e4895d24"]]), Ia = {
2257
+ }), [["__scopeId", "data-v-35b9f0c3"]]), ao = {
2129
2258
  key: 0,
2130
2259
  class: "td-rail"
2131
- }, La = { class: "td-rail-inner" }, Ra = {
2260
+ }, oo = { class: "td-rail-inner" }, so = {
2132
2261
  class: "td-rail-indicators",
2133
2262
  "aria-hidden": "true"
2134
- }, za = { class: "td-rail-panel" }, Ba = /*#__PURE__*/ j(/* @__PURE__ */ V({
2263
+ }, co = { class: "td-rail-panel" }, lo = /*#__PURE__*/ k(/* @__PURE__ */ z({
2135
2264
  __name: "TdRail",
2136
2265
  setup(e) {
2137
- let { page: t } = he(), n = P(() => {
2266
+ let { page: t } = ye(), n = M(() => {
2138
2267
  let e = [];
2139
2268
  for (let n of t.value.headings) {
2140
2269
  e.push(n);
2141
2270
  for (let t of n.children) e.push(t);
2142
2271
  }
2143
2272
  return e;
2144
- }), r = Ta(() => n.value);
2145
- return (e, i) => J(t).headings.length > 1 ? (U(), L("aside", Ia, [R("div", La, [R("div", Ra, [(U(!0), L(N, null, G(n.value, (e) => (U(), L("div", {
2273
+ }), r = Ja(() => n.value);
2274
+ return (e, i) => q(t).headings.length > 1 ? (H(), F("aside", ao, [I("div", oo, [I("div", so, [(H(!0), F(j, null, W(n.value, (e) => (H(), F("div", {
2146
2275
  key: e.slug,
2147
- class: H(["td-rail-indicator", {
2276
+ class: B(["td-rail-indicator", {
2148
2277
  "is-h3": e.level === 3,
2149
- "is-active": J(r) === e.slug
2278
+ "is-active": q(r) === e.slug
2150
2279
  }])
2151
- }, null, 2))), 128))]), R("div", za, [B(Fa, { headings: J(t).headings }, null, 8, ["headings"])])])])) : I("", !0);
2280
+ }, null, 2))), 128))]), I("div", co, [R(io, { headings: q(t).headings }, null, 8, ["headings"])])])])) : P("", !0);
2152
2281
  }
2153
- }), [["__scopeId", "data-v-761ccf3a"]]), Va = {
2282
+ }), [["__scopeId", "data-v-ebea8dba"]]), uo = {
2154
2283
  class: "td-skeleton",
2155
2284
  role: "status",
2156
2285
  "aria-label": "Loading"
2157
- }, Ha = /*#__PURE__*/ j(/* @__PURE__ */ V({
2286
+ }, fo = /*#__PURE__*/ k(/* @__PURE__ */ z({
2158
2287
  __name: "TdSkeleton",
2159
2288
  props: { lines: { default: 5 } },
2160
2289
  setup(e) {
@@ -2168,13 +2297,13 @@ var Da = {
2168
2297
  55,
2169
2298
  72
2170
2299
  ];
2171
- return (n, r) => (U(), L("div", Va, [(U(!0), L(N, null, G(e.lines, (e) => (U(), L("div", {
2300
+ return (n, r) => (H(), F("div", uo, [(H(!0), F(j, null, W(e.lines, (e) => (H(), F("div", {
2172
2301
  key: e,
2173
2302
  class: "td-skeleton-line",
2174
- style: Je({ width: `${t[(e - 1) % t.length]}%` })
2303
+ style: tt({ width: `${t[(e - 1) % t.length]}%` })
2175
2304
  }, null, 4))), 128))]));
2176
2305
  }
2177
- }), [["__scopeId", "data-v-f78bb079"]]), Ua = /*#__PURE__*/ j(/* @__PURE__ */ V({
2306
+ }), [["__scopeId", "data-v-f78bb079"]]), po = /*#__PURE__*/ k(/* @__PURE__ */ z({
2178
2307
  __name: "TdSidebarNav",
2179
2308
  props: {
2180
2309
  tree: {},
@@ -2182,33 +2311,33 @@ var Da = {
2182
2311
  ready: { type: Boolean }
2183
2312
  },
2184
2313
  setup(e) {
2185
- let t = _e(), n = Y("scrollElement");
2186
- return X(() => t.path, () => {
2187
- qe(() => {
2314
+ let t = Ne(), n = J("scrollElement");
2315
+ return Y(() => t.path, () => {
2316
+ et(() => {
2188
2317
  n.value?.querySelector(".is-active")?.scrollIntoView({ block: "nearest" });
2189
2318
  });
2190
- }, { immediate: !0 }), (t, r) => (U(), L("div", {
2319
+ }, { immediate: !0 }), (t, r) => (H(), F("div", {
2191
2320
  ref_key: "scrollElement",
2192
2321
  ref: n,
2193
2322
  class: "td-sidebar-scroll"
2194
- }, [!e.searchActive && !e.ready ? (U(), F(Ha, { key: 0 })) : e.searchActive ? I("", !0) : (U(), F(Yr, {
2323
+ }, [!e.searchActive && !e.ready ? (H(), N(fo, { key: 0 })) : e.searchActive ? P("", !0) : (H(), N(di, {
2195
2324
  key: 1,
2196
2325
  tree: e.tree
2197
2326
  }, null, 8, ["tree"]))], 512));
2198
2327
  }
2199
- }), [["__scopeId", "data-v-9ef3a72d"]]), Wa = { class: "td-sidebar-icons" }, Ga = ["href", "aria-label"], Ka = {
2328
+ }), [["__scopeId", "data-v-ca83b6cd"]]), mo = { class: "td-sidebar-icons" }, ho = ["href", "aria-label"], go = {
2200
2329
  key: 1,
2201
2330
  class: "td-sidebar-icon-sep"
2202
- }, qa = ["href", "aria-label"], Ja = /*#__PURE__*/ j(/* @__PURE__ */ V({
2331
+ }, _o = ["href", "aria-label"], vo = /*#__PURE__*/ k(/* @__PURE__ */ z({
2203
2332
  __name: "TdSidebarIcons",
2204
2333
  props: { tree: {} },
2205
2334
  emits: ["search"],
2206
2335
  setup(n, { emit: r }) {
2207
- let i = r, a = _e(), { withBase: o } = M(), u = P(() => n.tree.entries.find((e) => e.kind === "file" && d(e.item.filepath))?.item), f = P(() => {
2336
+ let i = r, a = Ne(), { withBase: o } = A(), u = M(() => n.tree.entries.find((e) => e.kind === "file" && d(e.item.filepath))?.item), f = M(() => {
2208
2337
  let e = [];
2209
2338
  for (let r of n.tree.entries) {
2210
2339
  if (r.kind !== "dir") continue;
2211
- let n = r.node, i = w("", n.name), a = l(n), u = a ? t(a.filepath) : s(i), d = a?.label ?? c(n.name), f = a?.icon ? ve(a.icon.name) : void 0;
2340
+ let n = r.node, i = w("", n.name), a = l(n), u = a ? t(a.filepath) : s(i), d = a?.label ?? c(n.name), f = a?.icon ? Pe(a.icon.name) : void 0;
2212
2341
  e.push({
2213
2342
  label: d,
2214
2343
  href: o(u),
@@ -2225,55 +2354,55 @@ var Da = {
2225
2354
  function m(t) {
2226
2355
  return a.path === t || e(t, a.path);
2227
2356
  }
2228
- return (e, n) => (U(), L("div", Wa, [
2229
- B(Or, {
2357
+ return (e, n) => (H(), F("div", mo, [
2358
+ R(Wr, {
2230
2359
  text: "Search",
2231
2360
  always: ""
2232
2361
  }, {
2233
- default: ut(() => [R("button", {
2362
+ default: X(() => [I("button", {
2234
2363
  class: "td-sidebar-icon-btn",
2235
2364
  type: "button",
2236
2365
  "aria-label": "Search",
2237
2366
  onClick: p
2238
- }, [B(J(ge), { size: 16 })])]),
2367
+ }, [R(q(Re), { size: 16 })])]),
2239
2368
  _: 1
2240
2369
  }),
2241
- u.value ? (U(), F(Or, {
2370
+ u.value ? (H(), N(Wr, {
2242
2371
  key: 0,
2243
2372
  text: u.value.label ?? "Home",
2244
2373
  always: ""
2245
2374
  }, {
2246
- default: ut(() => [R("a", {
2247
- href: J(o)(J(t)(u.value.filepath)),
2248
- class: H(["td-sidebar-icon-btn", { "is-active": m(J(t)(u.value.filepath)) }]),
2375
+ default: X(() => [I("a", {
2376
+ href: q(o)(q(t)(u.value.filepath)),
2377
+ class: B(["td-sidebar-icon-btn", { "is-active": m(q(t)(u.value.filepath)) }]),
2249
2378
  "aria-label": u.value.label ?? "Home"
2250
- }, [B(J(ne), { size: 16 })], 10, Ga)]),
2379
+ }, [R(q(ne), { size: 16 })], 10, ho)]),
2251
2380
  _: 1
2252
- }, 8, ["text"])) : I("", !0),
2253
- f.value.length ? (U(), L("div", Ka)) : I("", !0),
2254
- (U(!0), L(N, null, G(f.value, (e) => (U(), F(Or, {
2381
+ }, 8, ["text"])) : P("", !0),
2382
+ f.value.length ? (H(), F("div", go)) : P("", !0),
2383
+ (H(!0), F(j, null, W(f.value, (e) => (H(), N(Wr, {
2255
2384
  key: e.href,
2256
2385
  text: e.label,
2257
2386
  always: ""
2258
2387
  }, {
2259
- default: ut(() => [R("a", {
2388
+ default: X(() => [I("a", {
2260
2389
  href: e.href,
2261
- class: H(["td-sidebar-icon-btn", { "is-active": m(e.path) }]),
2390
+ class: B(["td-sidebar-icon-btn", { "is-active": m(e.path) }]),
2262
2391
  "aria-label": e.label
2263
- }, [e.isFallback ? (U(), F(J(ce), {
2392
+ }, [e.isFallback ? (H(), N(q(D), {
2264
2393
  key: 1,
2265
2394
  size: 16
2266
- })) : (U(), F(nt(e.icon), {
2395
+ })) : (H(), N(ct(e.icon), {
2267
2396
  key: 0,
2268
2397
  size: 16
2269
- }))], 10, qa)]),
2398
+ }))], 10, _o)]),
2270
2399
  _: 2
2271
2400
  }, 1032, ["text"]))), 128))
2272
2401
  ]));
2273
2402
  }
2274
2403
  }), [["__scopeId", "data-v-a8248b04"]]);
2275
2404
  // src/client/theme-default/components/TdSiteSearch/highlight.ts
2276
- function Ya(e, t) {
2405
+ function yo(e, t) {
2277
2406
  if (!e || !t) return f(e);
2278
2407
  let n = t.trim().split(/\s+/).filter(Boolean), r = f(e);
2279
2408
  for (let e of n) {
@@ -2283,15 +2412,15 @@ function Ya(e, t) {
2283
2412
  return r;
2284
2413
  }
2285
2414
  // src/client/theme-default/components/TdSiteSearch/useSiteSearch.ts
2286
- var Xa = 120;
2287
- function Za() {
2288
- let e = Ee(), t, n = it([]), r = it(!1);
2289
- X(e, () => {
2415
+ var bo = 120;
2416
+ function xo() {
2417
+ let e = je(), t, n = ut([]), r = ut(!1);
2418
+ Y(e, () => {
2290
2419
  t = void 0;
2291
2420
  });
2292
2421
  function i() {
2293
2422
  if (t) return t;
2294
- if (e.value) return t = We(E.loadJSON(e.value, {
2423
+ if (e.value) return t = Ze(Ve.loadJSON(e.value, {
2295
2424
  fields: v,
2296
2425
  storeFields: x
2297
2426
  })), t;
@@ -2299,13 +2428,13 @@ function Za() {
2299
2428
  function a(e, t) {
2300
2429
  if (!e) return "";
2301
2430
  let n = Object.keys(t);
2302
- if (n.length === 0) return e.slice(0, Xa);
2431
+ if (n.length === 0) return e.slice(0, bo);
2303
2432
  let r = e.toLowerCase(), i = e.length;
2304
2433
  for (let e of n) {
2305
2434
  let t = r.indexOf(e.toLowerCase());
2306
2435
  t !== -1 && t < i && (i = t);
2307
2436
  }
2308
- let a = Math.max(0, i - 30), o = Math.min(e.length, a + Xa), s = e.slice(a, o).trim();
2437
+ let a = Math.max(0, i - 30), o = Math.min(e.length, a + bo), s = e.slice(a, o).trim();
2309
2438
  return 0 < a && (s = "..." + s), o < e.length && (s += "..."), s;
2310
2439
  }
2311
2440
  async function o(e) {
@@ -2337,8 +2466,8 @@ function Za() {
2337
2466
  function l() {
2338
2467
  r.value = !1;
2339
2468
  }
2340
- let u = it(!1);
2341
- return X(e, (e) => {
2469
+ let u = ut(!1);
2470
+ return Y(e, (e) => {
2342
2471
  e && (u.value = !0);
2343
2472
  }, { immediate: !0 }), {
2344
2473
  results: n,
@@ -2349,42 +2478,42 @@ function Za() {
2349
2478
  };
2350
2479
  }
2351
2480
  // src/client/theme-default/components/TdCommandPalette.vue?vue&type=script&setup=true&lang.ts
2352
- var Qa = {
2481
+ var So = {
2353
2482
  class: "td-palette",
2354
2483
  role: "dialog",
2355
2484
  "aria-modal": "true",
2356
2485
  "aria-label": "Command palette"
2357
- }, $a = { class: "td-palette-input-row" }, eo = {
2486
+ }, Co = { class: "td-palette-input-row" }, wo = {
2358
2487
  ref: "results",
2359
2488
  class: "td-palette-results"
2360
- }, to = [
2489
+ }, To = [
2361
2490
  "href",
2362
2491
  "onClick",
2363
2492
  "onMouseenter"
2364
- ], no = ["innerHTML"], ro = { class: "td-palette-item-path" }, io = { class: "td-palette-group-label" }, ao = { class: "td-palette-item-label" }, oo = {
2493
+ ], Eo = ["innerHTML"], Do = { class: "td-palette-item-path" }, Oo = { class: "td-palette-group-label" }, ko = { class: "td-palette-item-label" }, Ao = {
2365
2494
  key: 1,
2366
2495
  class: "td-palette-empty"
2367
- }, so = { class: "td-palette-footer" }, co = /*#__PURE__*/ j(/* @__PURE__ */ V({
2496
+ }, jo = { class: "td-palette-footer" }, Mo = /*#__PURE__*/ k(/* @__PURE__ */ z({
2368
2497
  __name: "TdCommandPalette",
2369
2498
  emits: ["toggle-sidebar", "show-shortcuts"],
2370
2499
  setup(e, { expose: t, emit: r }) {
2371
- let i = r, a = W(!1), o = W(""), s = W(0), c = Y("input"), l = Y("results"), u = _e(), d = Te(), { withBase: f } = M(), { previous: p, next: m } = ua(), { results: h, search: g, cancel: _ } = Za(), v = P(() => o.value.trim());
2500
+ let i = r, a = U(!1), o = U(""), s = U(0), c = J("input"), l = J("results"), u = Ne(), d = xe(), { withBase: f } = A(), { previous: p, next: m } = Na(), { results: h, search: g, cancel: _ } = xo(), v = M(() => o.value.trim());
2372
2501
  function y() {
2373
2502
  a.value = !1, _();
2374
2503
  }
2375
2504
  function b() {
2376
- o.value = "", a.value = !0, s.value = 0, qe(() => c.value?.focus());
2505
+ o.value = "", a.value = !0, s.value = 0, et(() => c.value?.focus());
2377
2506
  }
2378
2507
  t({
2379
2508
  open: b,
2380
2509
  close: y
2381
- }), X(v, (e, t, n) => {
2510
+ }), Y(v, (e, t, n) => {
2382
2511
  n(() => _()), g(e), s.value = 0;
2383
2512
  });
2384
- let x = P(() => {
2513
+ let x = M(() => {
2385
2514
  let e = n(u.path);
2386
2515
  return e === "/" ? void 0 : e;
2387
- }), S = P(() => {
2516
+ }), S = M(() => {
2388
2517
  let e = [];
2389
2518
  return m.value && e.push({
2390
2519
  id: "nav-next",
@@ -2425,18 +2554,18 @@ var Qa = {
2425
2554
  navigator.clipboard.writeText(window.location.href).catch(() => {}), y();
2426
2555
  }
2427
2556
  }), e;
2428
- }), C = P(() => {
2557
+ }), C = M(() => {
2429
2558
  if (!v.value) return S.value;
2430
2559
  let e = v.value.toLowerCase();
2431
2560
  return S.value.filter((t) => t.label.toLowerCase().includes(e) || t.group.toLowerCase().includes(e));
2432
- }), w = P(() => {
2561
+ }), w = M(() => {
2433
2562
  let e = /* @__PURE__ */ new Map();
2434
2563
  for (let t of C.value) e.has(t.group) || e.set(t.group, []), e.get(t.group).push(t);
2435
2564
  return [...e.entries()].map(([e, t]) => ({
2436
2565
  name: e,
2437
2566
  commands: t
2438
2567
  }));
2439
- }), T = P(() => h.value.length + C.value.length);
2568
+ }), T = M(() => h.value.length + C.value.length);
2440
2569
  function E(e) {
2441
2570
  return h.value.length + C.value.indexOf(e);
2442
2571
  }
@@ -2460,22 +2589,22 @@ var Qa = {
2460
2589
  let t = h.value[e];
2461
2590
  t && (y(), d.go(f(t.id)));
2462
2591
  }
2463
- return X(T, () => {
2592
+ return Y(T, () => {
2464
2593
  s.value = 0;
2465
- }), X(s, () => {
2594
+ }), Y(s, () => {
2466
2595
  requestAnimationFrame(() => {
2467
2596
  l.value?.querySelector(".is-selected")?.scrollIntoView({ block: "nearest" });
2468
2597
  });
2469
- }), (e, t) => (U(), F(Ve, { to: "body" }, [a.value ? (U(), L(N, { key: 0 }, [R("div", {
2598
+ }), (e, t) => (H(), N(qe, { to: "body" }, [a.value ? (H(), F(j, { key: 0 }, [I("div", {
2470
2599
  class: "td-palette-scrim",
2471
2600
  onClick: y
2472
- }), R("div", Qa, [
2473
- R("div", $a, [
2474
- B(J(ge), {
2601
+ }), I("div", So, [
2602
+ I("div", Co, [
2603
+ R(q(Re), {
2475
2604
  size: 14,
2476
2605
  class: "td-palette-input-icon"
2477
2606
  }),
2478
- dt(R("input", {
2607
+ gt(I("input", {
2479
2608
  ref: "input",
2480
2609
  "onUpdate:modelValue": t[0] ||= (e) => o.value = e,
2481
2610
  class: "td-palette-input",
@@ -2484,100 +2613,100 @@ var Qa = {
2484
2613
  autocomplete: "off",
2485
2614
  spellcheck: "false",
2486
2615
  onKeydown: ee
2487
- }, null, 544), [[st, o.value]]),
2488
- R("button", {
2616
+ }, null, 544), [[pt, o.value]]),
2617
+ I("button", {
2489
2618
  class: "td-palette-esc",
2490
2619
  type: "button",
2491
2620
  "aria-label": "Close",
2492
2621
  onClick: y
2493
2622
  }, " esc ")
2494
2623
  ]),
2495
- R("div", eo, [
2496
- J(h).length > 0 ? (U(), L(N, { key: 0 }, [t[1] ||= R("div", { class: "td-palette-group-label" }, " Pages ", -1), (U(!0), L(N, null, G(J(h), (e, t) => (U(), L("a", {
2624
+ I("div", wo, [
2625
+ q(h).length > 0 ? (H(), F(j, { key: 0 }, [t[1] ||= I("div", { class: "td-palette-group-label" }, " Pages ", -1), (H(!0), F(j, null, W(q(h), (e, t) => (H(), F("a", {
2497
2626
  key: e.id,
2498
- href: J(f)(e.id),
2499
- class: H(["td-palette-item", { "is-selected": t === s.value }]),
2500
- onClick: pt(() => ne(t), ["prevent"]),
2627
+ href: q(f)(e.id),
2628
+ class: B(["td-palette-item", { "is-selected": t === s.value }]),
2629
+ onClick: vt(() => ne(t), ["prevent"]),
2501
2630
  onMouseenter: () => s.value = t
2502
- }, [R("span", {
2631
+ }, [I("span", {
2503
2632
  class: "td-palette-item-label",
2504
- innerHTML: J(Ya)(e.title, v.value)
2505
- }, null, 8, no), R("span", ro, q(e.id), 1)], 42, to))), 128))], 64)) : I("", !0),
2506
- (U(!0), L(N, null, G(w.value, (e) => (U(), L(N, { key: e.name }, [R("div", io, q(e.name), 1), (U(!0), L(N, null, G(e.commands, (e) => (U(), F(nt(e.href ? "a" : "button"), Ke({ key: e.id }, { ref_for: !0 }, e.href ? { href: e.href } : { type: "button" }, {
2633
+ innerHTML: q(yo)(e.title, v.value)
2634
+ }, null, 8, Eo), I("span", Do, K(e.id), 1)], 42, To))), 128))], 64)) : P("", !0),
2635
+ (H(!0), F(j, null, W(w.value, (e) => (H(), F(j, { key: e.name }, [I("div", Oo, K(e.name), 1), (H(!0), F(j, null, W(e.commands, (e) => (H(), N(ct(e.href ? "a" : "button"), $e({ key: e.id }, { ref_for: !0 }, e.href ? { href: e.href } : { type: "button" }, {
2507
2636
  class: ["td-palette-item", { "is-selected": E(e) === s.value }],
2508
2637
  onClick: () => te(e),
2509
2638
  onMouseenter: () => s.value = E(e)
2510
2639
  }), {
2511
- default: ut(() => [R("span", ao, q(e.label), 1), e.keys ? (U(), F($, {
2640
+ default: X(() => [I("span", ko, K(e.label), 1), e.keys ? (H(), N($, {
2512
2641
  key: 0,
2513
2642
  keys: e.keys
2514
- }, null, 8, ["keys"])) : I("", !0)]),
2643
+ }, null, 8, ["keys"])) : P("", !0)]),
2515
2644
  _: 2
2516
2645
  }, 1040, [
2517
2646
  "class",
2518
2647
  "onClick",
2519
2648
  "onMouseenter"
2520
2649
  ]))), 128))], 64))), 128)),
2521
- T.value === 0 && v.value ? (U(), L("div", oo, " No results for \"" + q(v.value) + "\" ", 1)) : I("", !0)
2650
+ T.value === 0 && v.value ? (H(), F("div", Ao, " No results for \"" + K(v.value) + "\" ", 1)) : P("", !0)
2522
2651
  ], 512),
2523
- R("div", so, [
2524
- R("span", null, [
2525
- B($, { keys: [J(Q).ArrowUp] }, null, 8, ["keys"]),
2526
- t[2] ||= z(),
2527
- B($, { keys: [J(Q).ArrowDown] }, null, 8, ["keys"]),
2528
- t[3] ||= z(" navigate", -1)
2652
+ I("div", jo, [
2653
+ I("span", null, [
2654
+ R($, { keys: [q(Q).ArrowUp] }, null, 8, ["keys"]),
2655
+ t[2] ||= L(),
2656
+ R($, { keys: [q(Q).ArrowDown] }, null, 8, ["keys"]),
2657
+ t[3] ||= L(" navigate", -1)
2529
2658
  ]),
2530
- R("span", null, [B($, { keys: [J(Q).Enter] }, null, 8, ["keys"]), t[4] ||= z(" select", -1)]),
2531
- R("span", null, [B($, { keys: [J(Q).Escape] }, null, 8, ["keys"]), t[5] ||= z(" close", -1)])
2659
+ I("span", null, [R($, { keys: [q(Q).Enter] }, null, 8, ["keys"]), t[4] ||= L(" select", -1)]),
2660
+ I("span", null, [R($, { keys: [q(Q).Escape] }, null, 8, ["keys"]), t[5] ||= L(" close", -1)])
2532
2661
  ])
2533
- ])], 64)) : I("", !0)]));
2662
+ ])], 64)) : P("", !0)]));
2534
2663
  }
2535
- }), [["__scopeId", "data-v-12ce6133"]]), lo = ["onKeydown"], uo = { class: "td-shortcuts-header" }, fo = { class: "td-shortcuts-table" }, po = /*#__PURE__*/ j(/* @__PURE__ */ V({
2664
+ }), [["__scopeId", "data-v-12ce6133"]]), No = ["onKeydown"], Po = { class: "td-shortcuts-header" }, Fo = { class: "td-shortcuts-table" }, Io = /*#__PURE__*/ k(/* @__PURE__ */ z({
2536
2665
  __name: "TdShortcutsDialog",
2537
2666
  props: { open: { type: Boolean } },
2538
2667
  emits: ["close"],
2539
2668
  setup(e, { emit: t }) {
2540
- let n = t, r = Y("dialog");
2669
+ let n = t, r = J("dialog");
2541
2670
  function i() {
2542
2671
  n("close");
2543
2672
  }
2544
- return X(() => e.open, (e) => {
2545
- e && qe(() => r.value?.focus());
2546
- }), (t, n) => (U(), F(Ve, { to: "body" }, [e.open ? (U(), L(N, { key: 0 }, [R("div", {
2673
+ return Y(() => e.open, (e) => {
2674
+ e && et(() => r.value?.focus());
2675
+ }), (t, n) => (H(), N(qe, { to: "body" }, [e.open ? (H(), F(j, { key: 0 }, [I("div", {
2547
2676
  class: "td-shortcuts-scrim",
2548
2677
  onClick: i
2549
- }), R("div", {
2678
+ }), I("div", {
2550
2679
  ref: "dialog",
2551
2680
  class: "td-shortcuts-dialog",
2552
2681
  role: "dialog",
2553
2682
  "aria-modal": "true",
2554
2683
  "aria-label": "Keyboard shortcuts",
2555
2684
  tabindex: "-1",
2556
- onKeydown: ft(pt(i, ["stop"]), ["esc"])
2557
- }, [R("div", uo, [n[0] ||= R("h2", { class: "td-shortcuts-title" }, " Keyboard shortcuts ", -1), R("button", {
2685
+ onKeydown: _t(vt(i, ["stop"]), ["esc"])
2686
+ }, [I("div", Po, [n[0] ||= I("h2", { class: "td-shortcuts-title" }, " Keyboard shortcuts ", -1), I("button", {
2558
2687
  class: "td-shortcuts-close",
2559
2688
  type: "button",
2560
2689
  "aria-label": "Close",
2561
2690
  onClick: i
2562
- }, [B(J(xe), { size: 16 })])]), R("table", fo, [R("tbody", null, [
2563
- R("tr", null, [n[1] ||= R("td", null, "Search", -1), R("td", null, [B($, { keys: [J(Q).Meta, J(Q).k] }, null, 8, ["keys"])])]),
2564
- R("tr", null, [n[2] ||= R("td", null, "Commands", -1), R("td", null, [B($, { keys: [J(Q).Meta, J(Q).FSlash] }, null, 8, ["keys"])])]),
2565
- R("tr", null, [n[3] ||= R("td", null, "Next page", -1), R("td", null, [B($, { keys: [J(Q).Control, J(Q).ArrowRight] }, null, 8, ["keys"])])]),
2566
- R("tr", null, [n[4] ||= R("td", null, "Previous page", -1), R("td", null, [B($, { keys: [J(Q).Control, J(Q).ArrowLeft] }, null, 8, ["keys"])])]),
2567
- R("tr", null, [n[5] ||= R("td", null, "Toggle sidebar", -1), R("td", null, [B($, { keys: [J(Q).Meta, J(Q).Backslash] }, null, 8, ["keys"])])]),
2568
- R("tr", null, [n[6] ||= R("td", null, "Close", -1), R("td", null, [B($, { keys: [J(Q).Escape] }, null, 8, ["keys"])])])
2569
- ])])], 40, lo)], 64)) : I("", !0)]));
2570
- }
2571
- }), [["__scopeId", "data-v-09d6a93c"]]), mo = { class: "td-search" }, ho = { class: "td-search-input-wrap" }, go = {
2691
+ }, [R(q(Ae), { size: 16 })])]), I("table", Fo, [I("tbody", null, [
2692
+ I("tr", null, [n[1] ||= I("td", null, "Search", -1), I("td", null, [R($, { keys: [q(Q).Meta, q(Q).k] }, null, 8, ["keys"])])]),
2693
+ I("tr", null, [n[2] ||= I("td", null, "Commands", -1), I("td", null, [R($, { keys: [q(Q).Meta, q(Q).FSlash] }, null, 8, ["keys"])])]),
2694
+ I("tr", null, [n[3] ||= I("td", null, "Next page", -1), I("td", null, [R($, { keys: [q(Q).Control, q(Q).ArrowRight] }, null, 8, ["keys"])])]),
2695
+ I("tr", null, [n[4] ||= I("td", null, "Previous page", -1), I("td", null, [R($, { keys: [q(Q).Control, q(Q).ArrowLeft] }, null, 8, ["keys"])])]),
2696
+ I("tr", null, [n[5] ||= I("td", null, "Toggle sidebar", -1), I("td", null, [R($, { keys: [q(Q).Meta, q(Q).Backslash] }, null, 8, ["keys"])])]),
2697
+ I("tr", null, [n[6] ||= I("td", null, "Close", -1), I("td", null, [R($, { keys: [q(Q).Escape] }, null, 8, ["keys"])])])
2698
+ ])])], 40, No)], 64)) : P("", !0)]));
2699
+ }
2700
+ }), [["__scopeId", "data-v-09d6a93c"]]), Lo = { class: "td-search" }, Ro = { class: "td-search-input-wrap" }, zo = {
2572
2701
  key: 2,
2573
2702
  class: "td-search-count"
2574
- }, _o = {
2703
+ }, Bo = {
2575
2704
  key: 0,
2576
2705
  class: "td-search-results"
2577
- }, vo = ["href"], yo = ["innerHTML"], bo = { class: "td-search-result-path" }, xo = ["innerHTML"], So = {
2706
+ }, Vo = ["href"], Ho = ["innerHTML"], Uo = { class: "td-search-result-path" }, Wo = ["innerHTML"], Go = {
2578
2707
  key: 1,
2579
2708
  class: "td-search-empty"
2580
- }, Co = /*#__PURE__*/ j(/* @__PURE__ */ V({
2709
+ }, Ko = /*#__PURE__*/ k(/* @__PURE__ */ z({
2581
2710
  __name: "TdSiteSearch",
2582
2711
  props: {
2583
2712
  active: {
@@ -2588,9 +2717,9 @@ var Qa = {
2588
2717
  query: { default: "" },
2589
2718
  queryModifiers: {}
2590
2719
  },
2591
- emits: /*@__PURE__*/ Ge(["select"], ["update:active", "update:query"]),
2720
+ emits: /*@__PURE__*/ Qe(["select"], ["update:active", "update:query"]),
2592
2721
  setup(e, { expose: t, emit: n }) {
2593
- let r = ot(e, "active"), i = ot(e, "query"), o = n, s = _e(), { withBase: l } = M(), { results: u, searching: d, indexLoaded: f, search: p, cancel: m } = Za(), h = W(-1), g = P(() => 0 < i.value.trim().length), _ = P(() => {
2722
+ let r = ft(e, "active"), i = ft(e, "query"), o = n, s = Ne(), { withBase: l } = A(), { results: u, searching: d, indexLoaded: f, search: p, cancel: m } = xo(), h = U(-1), g = M(() => 0 < i.value.trim().length), _ = M(() => {
2594
2723
  let e = [], t = /* @__PURE__ */ new Map();
2595
2724
  for (let n of u.value) {
2596
2725
  let r = a(n.id), i = t.get(r);
@@ -2606,15 +2735,15 @@ var Qa = {
2606
2735
  }
2607
2736
  return e;
2608
2737
  });
2609
- X(g, (e) => {
2738
+ Y(g, (e) => {
2610
2739
  r.value = e;
2611
- }), X(i, (e, t, n) => {
2740
+ }), Y(i, (e, t, n) => {
2612
2741
  n(() => m()), h.value = 0, p(e);
2613
2742
  });
2614
2743
  function v() {
2615
2744
  i.value = "";
2616
2745
  }
2617
- let y = P(() => _.value.flatMap((e) => e.results)), b = P(() => {
2746
+ let y = M(() => _.value.flatMap((e) => e.results)), b = M(() => {
2618
2747
  let e = /* @__PURE__ */ new Map();
2619
2748
  for (let t = 0; t < y.value.length; t++) e.set(y.value[t].id, t);
2620
2749
  return e;
@@ -2640,7 +2769,7 @@ var Qa = {
2640
2769
  document.querySelector(".td-search-result.is-selected")?.scrollIntoView({ block: "nearest" });
2641
2770
  });
2642
2771
  }
2643
- let w = Y("searchInput");
2772
+ let w = J("searchInput");
2644
2773
  return t({
2645
2774
  focus() {
2646
2775
  w.value?.focus();
@@ -2654,13 +2783,13 @@ var Qa = {
2654
2783
  get isFocused() {
2655
2784
  return document.activeElement === w.value;
2656
2785
  }
2657
- }), (e, t) => (U(), L("div", mo, [
2658
- R("div", ho, [
2659
- B(J(ge), {
2786
+ }), (e, t) => (H(), F("div", Lo, [
2787
+ I("div", Ro, [
2788
+ R(q(Re), {
2660
2789
  size: 14,
2661
2790
  class: "td-search-icon"
2662
2791
  }),
2663
- dt(R("input", {
2792
+ gt(I("input", {
2664
2793
  ref_key: "searchInput",
2665
2794
  ref: w,
2666
2795
  "onUpdate:modelValue": t[0] ||= (e) => i.value = e,
@@ -2669,63 +2798,63 @@ var Qa = {
2669
2798
  size: "1",
2670
2799
  placeholder: "Search...",
2671
2800
  onKeydown: x
2672
- }, null, 544), [[st, i.value]]),
2673
- !g.value && !J(d) ? (U(), F($, {
2801
+ }, null, 544), [[pt, i.value]]),
2802
+ !g.value && !q(d) ? (H(), N($, {
2674
2803
  key: 0,
2675
- keys: [J(Q).Meta, J(Q).k],
2804
+ keys: [q(Q).Meta, q(Q).k],
2676
2805
  class: "td-search-kbd"
2677
- }, null, 8, ["keys"])) : I("", !0),
2678
- J(d) || !J(f) ? (U(), F(J(Ct), {
2806
+ }, null, 8, ["keys"])) : P("", !0),
2807
+ q(d) || !q(f) ? (H(), N(q(zt), {
2679
2808
  key: 1,
2680
2809
  size: 12,
2681
2810
  class: "td-search-spinner"
2682
- })) : g.value ? (U(), L("span", go, q(J(u).length), 1)) : I("", !0),
2683
- i.value ? (U(), L("button", {
2811
+ })) : g.value ? (H(), F("span", zo, K(q(u).length), 1)) : P("", !0),
2812
+ i.value ? (H(), F("button", {
2684
2813
  key: 3,
2685
2814
  class: "td-search-clear",
2686
2815
  type: "button",
2687
2816
  "aria-label": "Clear search",
2688
2817
  onClick: v
2689
- }, [B(J(xe), { size: 12 })])) : I("", !0)
2818
+ }, [R(q(Ae), { size: 12 })])) : P("", !0)
2690
2819
  ]),
2691
- g.value && J(u).length > 0 ? (U(), L("div", _o, [(U(!0), L(N, null, G(_.value, (e) => (U(), L("div", {
2820
+ g.value && q(u).length > 0 ? (H(), F("div", Bo, [(H(!0), F(j, null, W(_.value, (e) => (H(), F("div", {
2692
2821
  key: e.pageUrl,
2693
2822
  class: "td-search-group"
2694
- }, [(U(!0), L(N, null, G(e.results, (e) => (U(), L("a", {
2823
+ }, [(H(!0), F(j, null, W(e.results, (e) => (H(), F("a", {
2695
2824
  key: e.id,
2696
- href: J(l)(e.id),
2697
- class: H(["td-search-result", {
2825
+ href: q(l)(e.id),
2826
+ class: B(["td-search-result", {
2698
2827
  "is-selected": b.value.get(e.id) === h.value,
2699
- "is-current": J(l)(e.id) === J(s).path
2828
+ "is-current": q(l)(e.id) === q(s).path
2700
2829
  }]),
2701
2830
  onClick: S
2702
2831
  }, [
2703
- R("span", {
2832
+ I("span", {
2704
2833
  class: "td-search-result-title",
2705
- innerHTML: J(Ya)(e.title, i.value)
2706
- }, null, 8, yo),
2707
- R("span", bo, q(e.id), 1),
2708
- e.excerpt ? (U(), L("span", {
2834
+ innerHTML: q(yo)(e.title, i.value)
2835
+ }, null, 8, Ho),
2836
+ I("span", Uo, K(e.id), 1),
2837
+ e.excerpt ? (H(), F("span", {
2709
2838
  key: 0,
2710
2839
  class: "td-search-result-excerpt",
2711
- innerHTML: J(Ya)(e.excerpt, i.value)
2712
- }, null, 8, xo)) : I("", !0)
2713
- ], 10, vo))), 128))]))), 128))])) : I("", !0),
2714
- g.value && J(u).length === 0 ? (U(), L("div", So, " No results for \"" + q(i.value) + "\" ", 1)) : I("", !0)
2840
+ innerHTML: q(yo)(e.excerpt, i.value)
2841
+ }, null, 8, Wo)) : P("", !0)
2842
+ ], 10, Vo))), 128))]))), 128))])) : P("", !0),
2843
+ g.value && q(u).length === 0 ? (H(), F("div", Go, " No results for \"" + K(i.value) + "\" ", 1)) : P("", !0)
2715
2844
  ]));
2716
2845
  }
2717
- }), [["__scopeId", "data-v-f42853f1"]]), wo = /* @__PURE__ */ V({
2846
+ }), [["__scopeId", "data-v-f42853f1"]]), qo = /* @__PURE__ */ z({
2718
2847
  __name: "TdThemeToggle",
2719
2848
  setup(e) {
2720
- let { isDark: t, toggle: n } = De();
2721
- return (e, r) => (U(), F(It, {
2722
- label: J(t) ? "Switch to light mode" : "Switch to dark mode",
2723
- onClick: J(n)
2849
+ let { isDark: t, toggle: n } = he();
2850
+ return (e, r) => (H(), N(Qt, {
2851
+ label: q(t) ? "Switch to light mode" : "Switch to dark mode",
2852
+ onClick: q(n)
2724
2853
  }, {
2725
- default: ut(() => [J(t) ? (U(), F(J(je), {
2854
+ default: X(() => [q(t) ? (H(), N(q(ve), {
2726
2855
  key: 0,
2727
2856
  size: 18
2728
- })) : (U(), F(J(de), {
2857
+ })) : (H(), N(q(Le), {
2729
2858
  key: 1,
2730
2859
  size: 18
2731
2860
  }))]),
@@ -2734,7 +2863,7 @@ var Qa = {
2734
2863
  }
2735
2864
  });
2736
2865
  // src/client/theme-default/composables/useCopyCode.ts
2737
- function To() {
2866
+ function Jo() {
2738
2867
  function e(e) {
2739
2868
  let t = e.target?.closest(".td-code-copy, .copy");
2740
2869
  if (!t) return;
@@ -2754,14 +2883,14 @@ function To() {
2754
2883
  }, 2e3);
2755
2884
  }
2756
2885
  }
2757
- Xe(() => {
2886
+ V(() => {
2758
2887
  document.addEventListener("click", e);
2759
- }), Qe(() => {
2888
+ }), it(() => {
2760
2889
  document.removeEventListener("click", e);
2761
2890
  });
2762
2891
  }
2763
2892
  // src/client/theme-default/composables/useCopyHeadingAnchor.ts
2764
- function Eo() {
2893
+ function Yo() {
2765
2894
  function e(e) {
2766
2895
  let t = e.target?.closest(".td-header-anchor");
2767
2896
  if (!t) return;
@@ -2771,68 +2900,18 @@ function Eo() {
2771
2900
  t.classList.remove("td-header-anchor--copied");
2772
2901
  }, 2e3);
2773
2902
  }
2774
- Xe(() => {
2903
+ V(() => {
2775
2904
  document.addEventListener("click", e);
2776
- }), Qe(() => {
2905
+ }), it(() => {
2777
2906
  document.removeEventListener("click", e);
2778
2907
  });
2779
2908
  }
2780
- // src/client/theme-default/composables/useHotkey.ts
2781
- var Do = /* @__PURE__ */ new Map([
2782
- [Q.Control, "ctrlKey"],
2783
- [Q.Alt, "altKey"],
2784
- [Q.Shift, "shiftKey"],
2785
- [Q.Meta, "metaKey"]
2786
- ]);
2787
- function Oo(e) {
2788
- if (!(e instanceof Element)) return !1;
2789
- let t = e.tagName.toLowerCase();
2790
- return t === "input" || t === "textarea" || t === "select" || e.isContentEditable;
2791
- }
2792
- function ko(e, t, n) {
2793
- function r(r) {
2794
- r.defaultPrevented || n?.ignoreWhenTyping && Oo(r.target) || Mo(r, e) && (r.preventDefault(), t(r));
2795
- }
2796
- let i = { capture: n?.capture ?? !1 };
2797
- Xe(() => window.addEventListener("keydown", r, i)), Qe(() => window.removeEventListener("keydown", r, i));
2798
- }
2799
- function Ao(e) {
2800
- let t = [];
2801
- function n(e, n) {
2802
- t.push({
2803
- keys: e,
2804
- handler: n
2805
- });
2806
- }
2807
- function r(e) {
2808
- for (let n of t) if (Mo(e, n.keys)) {
2809
- e.preventDefault(), e.stopPropagation(), n.handler(e);
2810
- return;
2811
- }
2812
- }
2813
- return X(e, (e, t) => {
2814
- t?.removeEventListener("keydown", r), e?.addEventListener("keydown", r);
2815
- }, { immediate: !0 }), Qe(() => {
2816
- e.value?.removeEventListener("keydown", r);
2817
- }), { register: n };
2818
- }
2819
- function jo(e) {
2820
- if (e.length === 1 && /[a-z]/i.test(e)) return `Key${e.toUpperCase()}`;
2821
- }
2822
- function Mo(e, t) {
2823
- let n = t.filter((e) => Do.has(e)), r = t.filter((e) => !Do.has(e));
2824
- if (r.length !== 1) return !1;
2825
- let i = jo(r[0]);
2826
- if (!(i ? e.code === i : e.key.toLowerCase() === r[0].toLowerCase())) return !1;
2827
- for (let t of n) if (!e[Do.get(t)]) return !1;
2828
- return !(e.ctrlKey && !n.includes(Q.Control) || e.altKey && !n.includes(Q.Alt) || e.shiftKey && !n.includes(Q.Shift) || e.metaKey && !n.includes(Q.Meta));
2829
- }
2830
2909
  // src/client/theme-default/composables/useResizableTable.ts
2831
- var No = 6, Po = 40;
2832
- function Fo() {
2910
+ var Xo = 6, Zo = 40;
2911
+ function Qo() {
2833
2912
  let e, t = !1;
2834
2913
  function n(e, t) {
2835
- return e.getBoundingClientRect().right - t < No;
2914
+ return e.getBoundingClientRect().right - t < Xo;
2836
2915
  }
2837
2916
  function r(r) {
2838
2917
  if (t) return;
@@ -2852,27 +2931,27 @@ function Fo() {
2852
2931
  r.classList.add("is-resizing"), document.body.style.cursor = "col-resize";
2853
2932
  function o(e) {
2854
2933
  let t = e.clientX - i;
2855
- r && (r.style.width = `${Math.max(Po, a + t)}px`);
2934
+ r && (r.style.width = `${Math.max(Zo, a + t)}px`);
2856
2935
  }
2857
2936
  function s() {
2858
2937
  t = !1, r?.classList.remove("is-resizing"), document.body.style.cursor = "", document.removeEventListener("pointermove", o), document.removeEventListener("pointerup", s);
2859
2938
  }
2860
2939
  document.addEventListener("pointermove", o), document.addEventListener("pointerup", s);
2861
2940
  }
2862
- Xe(() => {
2941
+ V(() => {
2863
2942
  document.addEventListener("pointermove", r), document.addEventListener("pointerdown", i);
2864
- }), Qe(() => {
2943
+ }), it(() => {
2865
2944
  document.removeEventListener("pointermove", r), document.removeEventListener("pointerdown", i);
2866
2945
  });
2867
2946
  }
2868
2947
  // src/client/theme-default/components/TdDiagram.vue?vue&type=script&setup=true&lang.ts
2869
- var Io = ["id"], Lo = { class: "td-diagram-frame" }, Ro = ["innerHTML"], zo = { class: "td-diagram-code" }, Bo = { class: "td-diagram-code-number" }, Vo = { class: "td-diagram-code-column" }, Ho = { class: "td-diagram-toolbar" }, Uo = { class: "td-diagram-toolbar-label" }, Wo = { class: "td-diagram-segment" }, Go = { class: "td-diagram-zoom" }, Ko = {
2948
+ var $o = ["id"], es = { class: "td-diagram-frame" }, ts = ["innerHTML"], ns = { class: "td-diagram-code" }, rs = { class: "td-diagram-code-number" }, is = { class: "td-diagram-code-column" }, as = { class: "td-diagram-toolbar" }, os = { class: "td-diagram-toolbar-label" }, ss = { class: "td-diagram-segment" }, cs = { class: "td-diagram-zoom" }, ls = {
2870
2949
  key: 0,
2871
2950
  class: "td-diagram-caption"
2872
- }, qo = ["aria-label"], Jo = { class: "td-diagram-modal-header" }, Yo = { class: "td-diagram-modal-header-left" }, Xo = { class: "td-diagram-modal-title" }, Zo = { class: "td-diagram-modal-chip" }, Qo = { class: "td-diagram-modal-header-right" }, $o = ["aria-pressed"], es = { class: "td-diagram-button-label" }, ts = { class: "td-diagram-modal-body" }, ns = {
2951
+ }, us = ["aria-label"], ds = { class: "td-diagram-modal-header" }, fs = { class: "td-diagram-modal-header-left" }, ps = { class: "td-diagram-modal-title" }, ms = { class: "td-diagram-modal-chip" }, hs = { class: "td-diagram-modal-header-right" }, gs = ["aria-pressed"], _s = { class: "td-diagram-button-label" }, vs = { class: "td-diagram-modal-body" }, ys = {
2873
2952
  key: 0,
2874
2953
  class: "td-diagram-modal-code-panel"
2875
- }, rs = { class: "td-diagram-modal-code-panel-header" }, is = { class: "td-diagram-modal-code-panel-body" }, as = { class: "td-diagram-code td-diagram-code--modal" }, os = { class: "td-diagram-code-number" }, ss = { class: "td-diagram-code-column" }, cs = ["innerHTML"], ls = { class: "td-diagram-modal-hint" }, us = .15, ds = 5, fs = 4, ps = .9, ms = .82, hs = 1.25, gs = .8, _s = 1.6, vs = 1400, ys = 20, bs = /*#__PURE__*/ j(/* @__PURE__ */ V({
2954
+ }, bs = { class: "td-diagram-modal-code-panel-header" }, xs = { class: "td-diagram-modal-code-panel-body" }, Ss = { class: "td-diagram-code td-diagram-code--modal" }, Cs = { class: "td-diagram-code-number" }, ws = { class: "td-diagram-code-column" }, Ts = ["innerHTML"], Es = { class: "td-diagram-modal-hint" }, Ds = .15, Os = 5, ks = 4, As = .9, js = .82, Ms = 1.25, Ns = .8, Ps = 1.6, Fs = 1400, Is = 20, Ls = /*#__PURE__*/ k(/* @__PURE__ */ z({
2876
2955
  __name: "TdDiagram",
2877
2956
  props: {
2878
2957
  svg: {},
@@ -2882,15 +2961,15 @@ var Io = ["id"], Lo = { class: "td-diagram-frame" }, Ro = ["innerHTML"], zo = {
2882
2961
  diagramId: {}
2883
2962
  },
2884
2963
  setup(e) {
2885
- let t = typeof navigator < "u" && /Mac/i.test(navigator.userAgent) ? "⌘" : "Ctrl", n = Y("stage"), r = Y("canvas"), i = Y("modalStage"), a = Y("modalCanvas"), o = Y("modalDialog"), s = Y("expandButton"), c = W(!1), l = W(!1), u = W(!1), d = W(!1), f = W(!1), p = W({
2964
+ let t = typeof navigator < "u" && /Mac/i.test(navigator.userAgent) ? "⌘" : "Ctrl", n = J("stage"), r = J("canvas"), i = J("modalStage"), a = J("modalCanvas"), o = J("modalDialog"), s = J("expandButton"), c = U(!1), l = U(!1), u = U(!1), d = U(!1), f = U(!1), p = U({
2886
2965
  x: 0,
2887
2966
  y: 0,
2888
2967
  scale: 1
2889
- }), m = W({
2968
+ }), m = U({
2890
2969
  x: 0,
2891
2970
  y: 0,
2892
2971
  scale: 1
2893
- }), h = P(() => {
2972
+ }), h = M(() => {
2894
2973
  let t = e.svg.match(/viewBox=["']([^"']+)["']/);
2895
2974
  if (t) {
2896
2975
  let e = t[1].split(/[\s,]+/);
@@ -2907,33 +2986,33 @@ var Io = ["id"], Lo = { class: "td-diagram-frame" }, Ro = ["innerHTML"], zo = {
2907
2986
  width: 400,
2908
2987
  height: 300
2909
2988
  };
2910
- }), g = P(() => e.source.split("\n")), _ = P(() => g.value.length), v = P(() => `${Math.round(p.value.scale * 100)}%`), y = P(() => `${Math.round(m.value.scale * 100)}%`), b = P(() => e.label === "Mermaid" ? "mmd" : e.label === "D2" ? "d2" : "txt"), x = P(() => ({
2989
+ }), g = M(() => e.source.split("\n")), _ = M(() => g.value.length), v = M(() => `${Math.round(p.value.scale * 100)}%`), y = M(() => `${Math.round(m.value.scale * 100)}%`), b = M(() => e.label === "Mermaid" ? "mmd" : e.label === "D2" ? "d2" : "txt"), x = M(() => ({
2911
2990
  width: `${h.value.width}px`,
2912
2991
  height: `${h.value.height}px`
2913
- })), S = P(() => {
2992
+ })), S = M(() => {
2914
2993
  let { x: e, y: t, scale: n } = p.value;
2915
2994
  return {
2916
2995
  ...x.value,
2917
2996
  transform: `translate(${e}px, ${t}px) scale(${n})`
2918
2997
  };
2919
- }), C = P(() => {
2998
+ }), C = M(() => {
2920
2999
  let { x: e, y: t, scale: n } = m.value;
2921
3000
  return {
2922
3001
  ...x.value,
2923
3002
  transform: `translate(${e}px, ${t}px) scale(${n})`
2924
3003
  };
2925
- }), w = P(() => {
2926
- let { x: e, y: t, scale: n } = m.value, r = ys * n;
3004
+ }), w = M(() => {
3005
+ let { x: e, y: t, scale: n } = m.value, r = Is * n;
2927
3006
  return {
2928
3007
  backgroundSize: `${r}px ${r}px`,
2929
3008
  backgroundPosition: `${e % r}px ${t % r}px`
2930
3009
  };
2931
3010
  });
2932
3011
  function T(e) {
2933
- return Math.min(ds, Math.max(us, e));
3012
+ return Math.min(Os, Math.max(Ds, e));
2934
3013
  }
2935
3014
  function E() {
2936
- l.value = !1, Le?.(), Le = void 0, s.value?.focus();
3015
+ l.value = !1, ze?.(), ze = void 0, s.value?.focus();
2937
3016
  }
2938
3017
  function ee(e, t, n, r, i) {
2939
3018
  if (n <= 0 || r <= 0) return {
@@ -2948,18 +3027,18 @@ var Io = ["id"], Lo = { class: "td-diagram-frame" }, Ro = ["innerHTML"], zo = {
2948
3027
  scale: a
2949
3028
  };
2950
3029
  }
2951
- function te() {
2952
- O(d);
3030
+ function D() {
3031
+ re(d);
2953
3032
  }
2954
3033
  function ne() {
2955
- O(f);
3034
+ re(f);
2956
3035
  }
2957
- function O(t) {
2958
- navigator.clipboard.writeText(e.source).catch(() => {}), t.value = !0, clearTimeout(Re), Re = setTimeout(() => {
3036
+ function re(t) {
3037
+ navigator.clipboard.writeText(e.source).catch(() => {}), t.value = !0, clearTimeout(Be), Be = setTimeout(() => {
2959
3038
  t.value = !1;
2960
- }, vs);
3039
+ }, Fs);
2961
3040
  }
2962
- function k() {
3041
+ function ie() {
2963
3042
  let t = (a.value ?? r.value)?.querySelector("svg");
2964
3043
  if (!t) return;
2965
3044
  let n = t.cloneNode(!0);
@@ -2967,16 +3046,16 @@ var Io = ["id"], Lo = { class: "td-diagram-frame" }, Ro = ["innerHTML"], zo = {
2967
3046
  let i = new XMLSerializer().serializeToString(n), o = new Blob([i], { type: "image/svg+xml" }), s = URL.createObjectURL(o), c = document.createElement("a");
2968
3047
  c.href = s, c.download = `${e.diagramId}.svg`, c.click(), URL.revokeObjectURL(s);
2969
3048
  }
2970
- function re() {
2971
- ae(n.value ?? void 0, p, ps);
3049
+ function O() {
3050
+ oe(n.value ?? void 0, p, As);
2972
3051
  }
2973
- function ie() {
2974
- ae(i.value ?? void 0, m, ms);
3052
+ function ae() {
3053
+ oe(i.value ?? void 0, m, js);
2975
3054
  }
2976
- function ae(e, t, n) {
3055
+ function oe(e, t, n) {
2977
3056
  !e || e.offsetWidth <= 0 || (t.value = ee(e.offsetWidth, e.offsetHeight, h.value.width, h.value.height, n));
2978
3057
  }
2979
- function ce(e, t) {
3058
+ function se(e, t) {
2980
3059
  let n = t.getBoundingClientRect(), r = (t.offsetWidth ? n.width / t.offsetWidth : 1) || 1;
2981
3060
  return {
2982
3061
  x: (e.clientX - n.left) / r,
@@ -2987,47 +3066,47 @@ var Io = ["id"], Lo = { class: "td-diagram-frame" }, Ro = ["innerHTML"], zo = {
2987
3066
  e.target.classList.contains("td-diagram-modal-backdrop") && E();
2988
3067
  }
2989
3068
  function ue(e) {
2990
- e.key === "Escape" ? (e.stopPropagation(), E()) : e.key === "+" || e.key === "=" ? A() : e.key === "-" ? pe() : e.key === "0" && ie();
3069
+ e.key === "Escape" ? (e.stopPropagation(), E()) : e.key === "+" || e.key === "=" ? me() : e.key === "-" ? he() : e.key === "0" && ae();
2991
3070
  }
2992
3071
  function de() {
2993
- be(n.value ?? void 0, p, hs);
3072
+ Ce(n.value ?? void 0, p, Ms);
2994
3073
  }
2995
3074
  function fe() {
2996
- be(n.value ?? void 0, p, gs);
3075
+ Ce(n.value ?? void 0, p, Ns);
2997
3076
  }
2998
- function A() {
2999
- be(i.value ?? void 0, m, hs);
3077
+ function me() {
3078
+ Ce(i.value ?? void 0, m, Ms);
3000
3079
  }
3001
- function pe() {
3002
- be(i.value ?? void 0, m, gs);
3080
+ function he() {
3081
+ Ce(i.value ?? void 0, m, Ns);
3003
3082
  }
3004
- function me() {
3083
+ function ge() {
3005
3084
  let e = i.value;
3006
3085
  if (!e) return;
3007
3086
  let t = T(1);
3008
- m.value = ye(m.value, e.offsetWidth / 2, e.offsetHeight / 2, t / m.value.scale);
3087
+ m.value = Se(m.value, e.offsetWidth / 2, e.offsetHeight / 2, t / m.value.scale);
3009
3088
  }
3010
- function he() {
3089
+ function _e() {
3011
3090
  l.value = !0, u.value = c.value, m.value = {
3012
3091
  x: 0,
3013
3092
  y: 0,
3014
3093
  scale: 1
3015
- }, qe(() => {
3094
+ }, et(() => {
3016
3095
  requestAnimationFrame(() => {
3017
- ie(), o.value?.focus({ preventScroll: !0 }), Te();
3096
+ ae(), o.value?.focus({ preventScroll: !0 }), Oe();
3018
3097
  });
3019
3098
  });
3020
3099
  }
3021
- function ge() {
3100
+ function ve() {
3022
3101
  c.value = !0;
3023
3102
  }
3024
- function _e() {
3103
+ function ye() {
3025
3104
  c.value = !1;
3026
3105
  }
3027
- function ve() {
3106
+ function xe() {
3028
3107
  u.value = !u.value;
3029
3108
  }
3030
- function ye(e, t, n, r) {
3109
+ function Se(e, t, n, r) {
3031
3110
  let i = T(e.scale * r), a = i / e.scale;
3032
3111
  return {
3033
3112
  x: t - (t - e.x) * a,
@@ -3035,10 +3114,10 @@ var Io = ["id"], Lo = { class: "td-diagram-frame" }, Ro = ["innerHTML"], zo = {
3035
3114
  scale: i
3036
3115
  };
3037
3116
  }
3038
- function be(e, t, n) {
3039
- e && (t.value = ye(t.value, e.offsetWidth / 2, e.offsetHeight / 2, n));
3117
+ function Ce(e, t, n) {
3118
+ e && (t.value = Se(t.value, e.offsetWidth / 2, e.offsetHeight / 2, n));
3040
3119
  }
3041
- let Se = {
3120
+ let we = {
3042
3121
  active: !1,
3043
3122
  startClientX: 0,
3044
3123
  startClientY: 0,
@@ -3046,7 +3125,7 @@ var Io = ["id"], Lo = { class: "td-diagram-frame" }, Ro = ["innerHTML"], zo = {
3046
3125
  startTransformY: 0,
3047
3126
  moved: !1,
3048
3127
  clientScale: 1
3049
- }, Ce = {
3128
+ }, Te = {
3050
3129
  active: !1,
3051
3130
  startClientX: 0,
3052
3131
  startClientY: 0,
@@ -3055,23 +3134,23 @@ var Io = ["id"], Lo = { class: "td-diagram-frame" }, Ro = ["innerHTML"], zo = {
3055
3134
  moved: !1,
3056
3135
  clientScale: 1
3057
3136
  };
3058
- function we(e) {
3137
+ function Ee(e) {
3059
3138
  function t(t) {
3060
3139
  if (!t.ctrlKey && !t.metaKey) return;
3061
3140
  t.preventDefault();
3062
- let n = ce(t, e), r = Math.exp(-t.deltaY * .01);
3063
- p.value = ye(p.value, n.x, n.y, r);
3141
+ let n = se(t, e), r = Math.exp(-t.deltaY * .01);
3142
+ p.value = Se(p.value, n.x, n.y, r);
3064
3143
  }
3065
3144
  return e.addEventListener("wheel", t, { passive: !1 }), () => e.removeEventListener("wheel", t);
3066
3145
  }
3067
- function Te() {
3146
+ function Oe() {
3068
3147
  let e = i.value;
3069
3148
  if (!e) return;
3070
3149
  function t(t) {
3071
3150
  if (e) {
3072
3151
  if (t.preventDefault(), t.ctrlKey || t.metaKey) {
3073
- let n = ce(t, e), r = Math.exp(-t.deltaY * .01);
3074
- m.value = ye(m.value, n.x, n.y, r);
3152
+ let n = se(t, e), r = Math.exp(-t.deltaY * .01);
3153
+ m.value = Se(m.value, n.x, n.y, r);
3075
3154
  } else {
3076
3155
  let n = (e.offsetWidth ? e.getBoundingClientRect().width / e.offsetWidth : 1) || 1;
3077
3156
  m.value = {
@@ -3082,294 +3161,294 @@ var Io = ["id"], Lo = { class: "td-diagram-frame" }, Ro = ["innerHTML"], zo = {
3082
3161
  }
3083
3162
  }
3084
3163
  }
3085
- e.addEventListener("wheel", t, { passive: !1 }), Le = () => e.removeEventListener("wheel", t);
3164
+ e.addEventListener("wheel", t, { passive: !1 }), ze = () => e.removeEventListener("wheel", t);
3086
3165
  }
3087
- function j(e, t, n, r) {
3166
+ function ke(e, t, n, r) {
3088
3167
  if (e.button !== 0) return;
3089
3168
  t.active = !0, t.moved = !1;
3090
3169
  let i = n.getBoundingClientRect();
3091
3170
  t.clientScale = (n.offsetWidth ? i.width / n.offsetWidth : 1) || 1, t.startClientX = e.clientX, t.startClientY = e.clientY, t.startTransformX = r.value.x, t.startTransformY = r.value.y, n.setPointerCapture(e.pointerId), n.style.cursor = "grabbing";
3092
3171
  }
3093
- function Ee(e, t, n, r) {
3172
+ function je(e, t, n, r) {
3094
3173
  t.active && (t.active = !1, n.releasePointerCapture(e.pointerId), n.style.cursor = "", !t.moved && r && r());
3095
3174
  }
3096
- function De(e, t, n) {
3175
+ function Me(e, t, n) {
3097
3176
  if (!t.active) return;
3098
3177
  let r = (e.clientX - t.startClientX) / t.clientScale, i = (e.clientY - t.startClientY) / t.clientScale;
3099
- !t.moved && fs <= Math.hypot(r, i) && (t.moved = !0), t.moved && (n.value = {
3178
+ !t.moved && ks <= Math.hypot(r, i) && (t.moved = !0), t.moved && (n.value = {
3100
3179
  x: t.startTransformX + r,
3101
3180
  y: t.startTransformY + i,
3102
3181
  scale: n.value.scale
3103
3182
  });
3104
3183
  }
3105
- function Oe(e) {
3184
+ function k(e) {
3106
3185
  let t = n.value;
3107
- t && j(e, Se, t, p);
3186
+ t && ke(e, we, t, p);
3108
3187
  }
3109
- function M(e) {
3188
+ function A(e) {
3110
3189
  let t = n.value;
3111
- t && Ee(e, Se, t, he);
3190
+ t && je(e, we, t, _e);
3112
3191
  }
3113
- function ke(e) {
3114
- De(e, Se, p);
3192
+ function Ne(e) {
3193
+ Me(e, we, p);
3115
3194
  }
3116
- function Ae(e) {
3195
+ function Pe(e) {
3117
3196
  let t = i.value;
3118
3197
  if (!t) return;
3119
- let n = ce(e, t);
3120
- m.value = ye(m.value, n.x, n.y, _s);
3198
+ let n = se(e, t);
3199
+ m.value = Se(m.value, n.x, n.y, Ps);
3121
3200
  }
3122
- function je(e) {
3201
+ function Fe(e) {
3123
3202
  let t = i.value;
3124
- t && j(e, Ce, t, m);
3203
+ t && ke(e, Te, t, m);
3125
3204
  }
3126
- function Pe(e) {
3205
+ function Ie(e) {
3127
3206
  let t = i.value;
3128
- t && Ee(e, Ce, t);
3207
+ t && je(e, Te, t);
3129
3208
  }
3130
- function Fe(e) {
3131
- De(e, Ce, m);
3209
+ function Le(e) {
3210
+ Me(e, Te, m);
3132
3211
  }
3133
- X(u, () => {
3134
- qe(() => ie());
3212
+ Y(u, () => {
3213
+ et(() => ae());
3135
3214
  });
3136
- let Ie, Le, Re;
3137
- return Xe(() => {
3215
+ let Re, ze, Be;
3216
+ return V(() => {
3138
3217
  let e = n.value;
3139
3218
  if (!e) return;
3140
3219
  let t = new ResizeObserver(() => {
3141
- 0 < e.offsetWidth && 0 < e.offsetHeight && (re(), t.disconnect());
3220
+ 0 < e.offsetWidth && 0 < e.offsetHeight && (O(), t.disconnect());
3142
3221
  });
3143
- t.observe(e), Ie = we(e);
3144
- }), Ye(() => {
3145
- Ie?.(), Le?.(), clearTimeout(Re);
3146
- }), (n, r) => (U(), L("figure", {
3222
+ t.observe(e), Re = Ee(e);
3223
+ }), nt(() => {
3224
+ Re?.(), ze?.(), clearTimeout(Be);
3225
+ }), (n, r) => (H(), F("figure", {
3147
3226
  id: e.diagramId,
3148
3227
  class: "td-diagram"
3149
3228
  }, [
3150
- R("div", Lo, [
3151
- dt(R("div", {
3229
+ I("div", es, [
3230
+ gt(I("div", {
3152
3231
  ref: "stage",
3153
3232
  class: "td-diagram-stage",
3154
- onPointerdown: Oe,
3155
- onPointermove: ke,
3156
- onPointerup: M,
3157
- onPointercancel: M
3158
- }, [R("div", {
3233
+ onPointerdown: k,
3234
+ onPointermove: Ne,
3235
+ onPointerup: A,
3236
+ onPointercancel: A
3237
+ }, [I("div", {
3159
3238
  ref: "canvas",
3160
3239
  class: "td-diagram-canvas",
3161
- style: Je(S.value),
3240
+ style: tt(S.value),
3162
3241
  innerHTML: e.svg
3163
- }, null, 12, Ro)], 544), [[ct, !c.value]]),
3164
- dt(R("pre", zo, [
3165
- r[3] ||= z(" ", -1),
3166
- (U(!0), L(N, null, G(g.value, (e, t) => (U(), L("div", {
3242
+ }, null, 12, ts)], 544), [[mt, !c.value]]),
3243
+ gt(I("pre", ns, [
3244
+ r[3] ||= L(" ", -1),
3245
+ (H(!0), F(j, null, W(g.value, (e, t) => (H(), F("div", {
3167
3246
  key: t,
3168
3247
  class: "td-diagram-code-row"
3169
3248
  }, [
3170
- r[0] ||= z("\n ", -1),
3171
- R("span", Bo, q(t + 1), 1),
3172
- r[1] ||= z("\n ", -1),
3173
- R("span", Vo, q(e || " "), 1),
3174
- r[2] ||= z("\n ", -1)
3249
+ r[0] ||= L("\n ", -1),
3250
+ I("span", rs, K(t + 1), 1),
3251
+ r[1] ||= L("\n ", -1),
3252
+ I("span", is, K(e || " "), 1),
3253
+ r[2] ||= L("\n ", -1)
3175
3254
  ]))), 128)),
3176
- r[4] ||= z("\n ", -1)
3177
- ], 512), [[ct, c.value]]),
3178
- R("div", Ho, [
3179
- R("span", Uo, q(e.label), 1),
3180
- R("div", Wo, [R("button", {
3255
+ r[4] ||= L("\n ", -1)
3256
+ ], 512), [[mt, c.value]]),
3257
+ I("div", as, [
3258
+ I("span", os, K(e.label), 1),
3259
+ I("div", ss, [I("button", {
3181
3260
  type: "button",
3182
- class: H(["td-diagram-segment-button", { "is-active": !c.value }]),
3183
- onClick: _e
3184
- }, " Preview ", 2), R("button", {
3261
+ class: B(["td-diagram-segment-button", { "is-active": !c.value }]),
3262
+ onClick: ye
3263
+ }, " Preview ", 2), I("button", {
3185
3264
  type: "button",
3186
- class: H(["td-diagram-segment-button", { "is-active": c.value }]),
3187
- onClick: ge
3265
+ class: B(["td-diagram-segment-button", { "is-active": c.value }]),
3266
+ onClick: ve
3188
3267
  }, " Code ", 2)]),
3189
- R("button", {
3268
+ I("button", {
3190
3269
  type: "button",
3191
- class: H(["td-diagram-button", { "is-copied": d.value }]),
3270
+ class: B(["td-diagram-button", { "is-copied": d.value }]),
3192
3271
  "aria-label": "Copy source",
3193
- onClick: te
3194
- }, [d.value ? (U(), F(J(mt), {
3272
+ onClick: D
3273
+ }, [d.value ? (H(), N(q(At), {
3195
3274
  key: 0,
3196
3275
  size: 16
3197
- })) : (U(), F(J(vt), {
3276
+ })) : (H(), N(q(Pt), {
3198
3277
  key: 1,
3199
3278
  size: 16
3200
3279
  }))], 2),
3201
- R("button", {
3280
+ I("button", {
3202
3281
  ref: "expandButton",
3203
3282
  type: "button",
3204
3283
  class: "td-diagram-button",
3205
3284
  "aria-label": "Open full-screen preview",
3206
- onClick: he
3207
- }, [B(J(wt), { size: 16 })], 512)
3285
+ onClick: _e
3286
+ }, [R(q(Bt), { size: 16 })], 512)
3208
3287
  ]),
3209
- dt(R("div", Go, [
3210
- R("button", {
3288
+ gt(I("div", cs, [
3289
+ I("button", {
3211
3290
  type: "button",
3212
3291
  class: "td-diagram-button",
3213
3292
  "aria-label": "Zoom out",
3214
3293
  onClick: fe
3215
- }, [B(J(D), { size: 16 })]),
3216
- R("button", {
3294
+ }, [R(q(pe), { size: 16 })]),
3295
+ I("button", {
3217
3296
  type: "button",
3218
3297
  class: "td-diagram-button td-diagram-zoom-level",
3219
3298
  "aria-label": "Reset zoom",
3220
- onClick: re
3221
- }, q(v.value), 1),
3222
- R("button", {
3299
+ onClick: O
3300
+ }, K(v.value), 1),
3301
+ I("button", {
3223
3302
  type: "button",
3224
3303
  class: "td-diagram-button",
3225
3304
  "aria-label": "Zoom in",
3226
3305
  onClick: de
3227
- }, [B(J(Ne), { size: 16 })])
3228
- ], 512), [[ct, !c.value]]),
3229
- dt(R("div", { class: "td-diagram-hint" }, " Click to expand · Drag to pan · " + q(J(t)) + " + scroll to zoom ", 513), [[ct, !c.value]])
3306
+ }, [R(q(be), { size: 16 })])
3307
+ ], 512), [[mt, !c.value]]),
3308
+ gt(I("div", { class: "td-diagram-hint" }, " Click to expand · Drag to pan · " + K(q(t)) + " + scroll to zoom ", 513), [[mt, !c.value]])
3230
3309
  ]),
3231
- e.title ? (U(), L("figcaption", Ko, q(e.title), 1)) : I("", !0),
3232
- (U(), F(Ve, { to: "body" }, [l.value ? (U(), L("div", {
3310
+ e.title ? (H(), F("figcaption", ls, K(e.title), 1)) : P("", !0),
3311
+ (H(), N(qe, { to: "body" }, [l.value ? (H(), F("div", {
3233
3312
  key: 0,
3234
3313
  class: "td-diagram-modal-backdrop",
3235
3314
  onClick: le
3236
- }, [R("div", {
3315
+ }, [I("div", {
3237
3316
  ref: "modalDialog",
3238
3317
  class: "td-diagram-modal",
3239
3318
  role: "dialog",
3240
3319
  "aria-label": e.title || `${e.label} diagram`,
3241
3320
  tabindex: "-1",
3242
3321
  onKeydown: ue
3243
- }, [R("div", Jo, [R("div", Yo, [R("span", Xo, q(e.title || "Diagram"), 1), R("span", Zo, q(e.label), 1)]), R("div", Qo, [
3244
- R("button", {
3322
+ }, [I("div", ds, [I("div", fs, [I("span", ps, K(e.title || "Diagram"), 1), I("span", ms, K(e.label), 1)]), I("div", hs, [
3323
+ I("button", {
3245
3324
  type: "button",
3246
- class: H(["td-diagram-modal-button", { "is-active": u.value }]),
3325
+ class: B(["td-diagram-modal-button", { "is-active": u.value }]),
3247
3326
  "aria-pressed": u.value,
3248
3327
  "aria-label": "Toggle code",
3249
- onClick: ve
3250
- }, [B(J(se), { size: 16 }), r[5] ||= R("span", { class: "td-diagram-button-label" }, "Code", -1)], 10, $o),
3251
- r[8] ||= R("span", { class: "td-diagram-modal-separator" }, null, -1),
3252
- R("button", {
3328
+ onClick: xe
3329
+ }, [R(q(ce), { size: 16 }), r[5] ||= I("span", { class: "td-diagram-button-label" }, "Code", -1)], 10, gs),
3330
+ r[8] ||= I("span", { class: "td-diagram-modal-separator" }, null, -1),
3331
+ I("button", {
3253
3332
  type: "button",
3254
3333
  class: "td-diagram-modal-button",
3255
3334
  "aria-label": "Zoom out",
3256
- onClick: pe
3257
- }, [B(J(D), { size: 16 })]),
3258
- R("button", {
3335
+ onClick: he
3336
+ }, [R(q(pe), { size: 16 })]),
3337
+ I("button", {
3259
3338
  type: "button",
3260
3339
  class: "td-diagram-modal-button td-diagram-modal-zoom-level",
3261
3340
  "aria-label": "Zoom to 100%",
3262
- onClick: me
3263
- }, q(y.value), 1),
3264
- R("button", {
3341
+ onClick: ge
3342
+ }, K(y.value), 1),
3343
+ I("button", {
3265
3344
  type: "button",
3266
3345
  class: "td-diagram-modal-button",
3267
3346
  "aria-label": "Zoom in",
3268
- onClick: A
3269
- }, [B(J(Ne), { size: 16 })]),
3270
- R("button", {
3347
+ onClick: me
3348
+ }, [R(q(be), { size: 16 })]),
3349
+ I("button", {
3271
3350
  type: "button",
3272
3351
  class: "td-diagram-modal-button",
3273
3352
  "aria-label": "Fit to view",
3274
- onClick: ie
3275
- }, [B(J(Me), { size: 16 }), r[6] ||= R("span", { class: "td-diagram-button-label" }, "Fit", -1)]),
3276
- r[9] ||= R("span", { class: "td-diagram-modal-separator" }, null, -1),
3277
- R("button", {
3353
+ onClick: ae
3354
+ }, [R(q(te), { size: 16 }), r[6] ||= I("span", { class: "td-diagram-button-label" }, "Fit", -1)]),
3355
+ r[9] ||= I("span", { class: "td-diagram-modal-separator" }, null, -1),
3356
+ I("button", {
3278
3357
  type: "button",
3279
- class: H(["td-diagram-modal-button", { "is-copied": f.value }]),
3358
+ class: B(["td-diagram-modal-button", { "is-copied": f.value }]),
3280
3359
  "aria-label": "Copy source",
3281
3360
  onClick: ne
3282
- }, [f.value ? (U(), F(J(mt), {
3361
+ }, [f.value ? (H(), N(q(At), {
3283
3362
  key: 0,
3284
3363
  size: 16
3285
- })) : (U(), F(J(vt), {
3364
+ })) : (H(), N(q(Pt), {
3286
3365
  key: 1,
3287
3366
  size: 16
3288
- })), R("span", es, q(f.value ? "Copied" : "Copy"), 1)], 2),
3289
- R("button", {
3367
+ })), I("span", _s, K(f.value ? "Copied" : "Copy"), 1)], 2),
3368
+ I("button", {
3290
3369
  type: "button",
3291
3370
  class: "td-diagram-modal-button",
3292
3371
  "aria-label": "Download SVG",
3293
- onClick: k
3294
- }, [B(J(oe), { size: 16 }), r[7] ||= R("span", { class: "td-diagram-button-label" }, "SVG", -1)]),
3295
- r[10] ||= R("span", { class: "td-diagram-modal-separator" }, null, -1),
3296
- R("button", {
3372
+ onClick: ie
3373
+ }, [R(q(De), { size: 16 }), r[7] ||= I("span", { class: "td-diagram-button-label" }, "SVG", -1)]),
3374
+ r[10] ||= I("span", { class: "td-diagram-modal-separator" }, null, -1),
3375
+ I("button", {
3297
3376
  type: "button",
3298
3377
  class: "td-diagram-modal-button",
3299
3378
  "aria-label": "Close preview",
3300
3379
  onClick: E
3301
- }, [B(J(xe), { size: 16 })])
3302
- ])]), R("div", ts, [u.value ? (U(), L("div", ns, [R("div", rs, " diagram." + q(b.value) + " · " + q(_.value) + " lines ", 1), R("div", is, [R("pre", as, [
3303
- r[14] ||= z(" ", -1),
3304
- (U(!0), L(N, null, G(g.value, (e, t) => (U(), L("div", {
3380
+ }, [R(q(Ae), { size: 16 })])
3381
+ ])]), I("div", vs, [u.value ? (H(), F("div", ys, [I("div", bs, " diagram." + K(b.value) + " · " + K(_.value) + " lines ", 1), I("div", xs, [I("pre", Ss, [
3382
+ r[14] ||= L(" ", -1),
3383
+ (H(!0), F(j, null, W(g.value, (e, t) => (H(), F("div", {
3305
3384
  key: t,
3306
3385
  class: "td-diagram-code-row"
3307
3386
  }, [
3308
- r[11] ||= z("\n ", -1),
3309
- R("span", os, q(t + 1), 1),
3310
- r[12] ||= z("\n ", -1),
3311
- R("span", ss, q(e || " "), 1),
3312
- r[13] ||= z("\n ", -1)
3387
+ r[11] ||= L("\n ", -1),
3388
+ I("span", Cs, K(t + 1), 1),
3389
+ r[12] ||= L("\n ", -1),
3390
+ I("span", ws, K(e || " "), 1),
3391
+ r[13] ||= L("\n ", -1)
3313
3392
  ]))), 128)),
3314
- r[15] ||= z("\n ", -1)
3315
- ])])])) : I("", !0), R("div", {
3393
+ r[15] ||= L("\n ", -1)
3394
+ ])])])) : P("", !0), I("div", {
3316
3395
  ref: "modalStage",
3317
3396
  class: "td-diagram-modal-stage",
3318
- style: Je(w.value),
3319
- onPointerdown: je,
3320
- onPointermove: Fe,
3321
- onPointerup: Pe,
3322
- onPointercancel: Pe,
3323
- onDblclick: Ae
3324
- }, [R("div", {
3397
+ style: tt(w.value),
3398
+ onPointerdown: Fe,
3399
+ onPointermove: Le,
3400
+ onPointerup: Ie,
3401
+ onPointercancel: Ie,
3402
+ onDblclick: Pe
3403
+ }, [I("div", {
3325
3404
  ref: "modalCanvas",
3326
3405
  class: "td-diagram-modal-canvas",
3327
- style: Je(C.value),
3406
+ style: tt(C.value),
3328
3407
  innerHTML: e.svg
3329
- }, null, 12, cs), R("div", ls, " Drag or scroll to pan · " + q(J(t)) + " + scroll or pinch to zoom · Double-click to zoom in · Esc to close ", 1)], 36)])], 40, qo)])) : I("", !0)]))
3330
- ], 8, Io));
3408
+ }, null, 12, Ts), I("div", Es, " Drag or scroll to pan · " + K(q(t)) + " + scroll or pinch to zoom · Double-click to zoom in · Esc to close ", 1)], 36)])], 40, us)])) : P("", !0)]))
3409
+ ], 8, $o));
3331
3410
  }
3332
3411
  }), [["__scopeId", "data-v-fb95bcf7"]]);
3333
3412
  // src/client/theme-default/composables/lazy-embed/mountDiagram.ts
3334
- function xs(e, t) {
3413
+ function Rs(e, t) {
3335
3414
  let n = document.createElement("div");
3336
- n.style.display = "contents", e.replaceWith(n), et(Ue(bs, t), n);
3415
+ n.style.display = "contents", e.replaceWith(n), ot(Xe(Ls, t), n);
3337
3416
  }
3338
3417
  // src/client/theme-default/composables/lazy-embed/d2.ts
3339
- var Ss = "https://esm.sh/@terrastruct/d2@0.1.32", Cs, ws = 0;
3340
- function Ts(e) {
3418
+ var zs = "https://esm.sh/@terrastruct/d2@0.1.32", Bs, Vs = 0;
3419
+ function Hs(e) {
3341
3420
  let t = {
3342
3421
  selector: ".td-d2-placeholder",
3343
- onRender: Ds,
3422
+ onRender: Ws,
3344
3423
  onVisible() {
3345
3424
  let e = document.createElement("link");
3346
- e.rel = "modulepreload", e.href = Ss, document.head.appendChild(e);
3425
+ e.rel = "modulepreload", e.href = zs, document.head.appendChild(e);
3347
3426
  }
3348
3427
  };
3349
- Xe(() => e.register(t)), Qe(() => e.unregister(t));
3428
+ V(() => e.register(t)), it(() => e.unregister(t));
3350
3429
  }
3351
- async function Es() {
3352
- if (Cs) return Cs;
3430
+ async function Us() {
3431
+ if (Bs) return Bs;
3353
3432
  try {
3354
3433
  let e = await import(
3355
3434
  /* @vite-ignore */
3356
- Ss
3435
+ zs
3357
3436
  );
3358
- Cs = new (e.D2 || (e.default?.D2) || e.default)();
3437
+ Bs = new (e.D2 || (e.default?.D2) || e.default)();
3359
3438
  } catch {
3360
3439
  return;
3361
3440
  }
3362
- return Cs;
3441
+ return Bs;
3363
3442
  }
3364
- async function Ds(e) {
3443
+ async function Ws(e) {
3365
3444
  let t = e, n = t.querySelector("code");
3366
3445
  if (!n) return;
3367
- let r = n.textContent ?? "", i = await Es();
3446
+ let r = n.textContent ?? "", i = await Us();
3368
3447
  if (!i) return;
3369
- let a = `td-d2-${ws++}`, o = t.getAttribute("data-title");
3448
+ let a = `td-d2-${Vs++}`, o = t.getAttribute("data-title");
3370
3449
  try {
3371
3450
  let e = await i.compile(r, { layout: "dagre" });
3372
- xs(t, {
3451
+ Rs(t, {
3373
3452
  svg: await i.render(e.diagram, {
3374
3453
  ...e.renderOptions,
3375
3454
  themeID: document.documentElement.classList.contains("dark") ? 200 : 0
@@ -3384,42 +3463,42 @@ async function Ds(e) {
3384
3463
  }
3385
3464
  }
3386
3465
  // src/client/theme-default/composables/lazy-embed/mermaid.ts
3387
- var Os = "https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs", ks, As = 0;
3388
- function js(e) {
3466
+ var Gs = "https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs", Ks, qs = 0;
3467
+ function Js(e) {
3389
3468
  let t = {
3390
3469
  selector: ".td-mermaid-placeholder",
3391
- onRender: Ns,
3470
+ onRender: Xs,
3392
3471
  onVisible() {
3393
3472
  let e = document.createElement("link");
3394
- e.rel = "modulepreload", e.href = Os, document.head.appendChild(e);
3473
+ e.rel = "modulepreload", e.href = Gs, document.head.appendChild(e);
3395
3474
  }
3396
3475
  };
3397
- Xe(() => e.register(t)), Qe(() => e.unregister(t));
3476
+ V(() => e.register(t)), it(() => e.unregister(t));
3398
3477
  }
3399
- async function Ms() {
3400
- if (ks !== void 0) return ks;
3478
+ async function Ys() {
3479
+ if (Ks !== void 0) return Ks;
3401
3480
  try {
3402
- ks = await import(
3481
+ Ks = await import(
3403
3482
  /* @vite-ignore */
3404
- Os
3483
+ Gs
3405
3484
  );
3406
3485
  } catch {
3407
3486
  return;
3408
3487
  }
3409
- return ks.default.initialize({
3488
+ return Ks.default.initialize({
3410
3489
  startOnLoad: !1,
3411
3490
  theme: document.documentElement.classList.contains("dark") ? "dark" : "default"
3412
- }), ks;
3491
+ }), Ks;
3413
3492
  }
3414
- async function Ns(e) {
3493
+ async function Xs(e) {
3415
3494
  let t = e, n = t.querySelector("code");
3416
3495
  if (!n) return;
3417
- let r = n.textContent ?? "", i = await Ms();
3496
+ let r = n.textContent ?? "", i = await Ys();
3418
3497
  if (i === void 0) return;
3419
- let a = `td-mermaid-${As++}`, o = t.getAttribute("data-title");
3498
+ let a = `td-mermaid-${qs++}`, o = t.getAttribute("data-title");
3420
3499
  try {
3421
3500
  let { svg: e } = await i.default.render(a, r);
3422
- xs(t, {
3501
+ Rs(t, {
3423
3502
  svg: e,
3424
3503
  source: r,
3425
3504
  title: o ?? void 0,
@@ -3431,15 +3510,15 @@ async function Ns(e) {
3431
3510
  }
3432
3511
  }
3433
3512
  // src/client/theme-default/composables/lazy-embed/github.ts
3434
- var Ps = "https://emgithub.com/embed-v2.js";
3435
- function Fs(e) {
3513
+ var Zs = "https://emgithub.com/embed-v2.js";
3514
+ function Qs(e) {
3436
3515
  let t, n = [], r = {
3437
3516
  selector: ".td-github-placeholder",
3438
3517
  onRender(e) {
3439
3518
  let t = e, r = t.getAttribute("data-url");
3440
3519
  if (!r) return;
3441
3520
  let i = document.documentElement.classList.contains("dark"), a = document.createElement("script");
3442
- a.src = Is(r, i);
3521
+ a.src = $s(r, i);
3443
3522
  let o = document.createElement("div");
3444
3523
  o.className = "td-github-wrapper", o.dataset.url = r, o.appendChild(a), t.replaceWith(o), n.push({
3445
3524
  container: o,
@@ -3452,10 +3531,10 @@ function Fs(e) {
3452
3531
  for (let e = n.length - 1; 0 <= e; e--) n[e].container.isConnected || n.splice(e, 1);
3453
3532
  for (let t of n) {
3454
3533
  let n = document.createElement("script");
3455
- n.src = Is(t.url, e), t.container.innerHTML = "", t.container.appendChild(n);
3534
+ n.src = $s(t.url, e), t.container.innerHTML = "", t.container.appendChild(n);
3456
3535
  }
3457
3536
  }
3458
- Xe(() => {
3537
+ V(() => {
3459
3538
  e.register(r);
3460
3539
  let n = document.documentElement.classList.contains("dark");
3461
3540
  t = new MutationObserver(() => {
@@ -3465,15 +3544,15 @@ function Fs(e) {
3465
3544
  attributes: !0,
3466
3545
  attributeFilter: ["class"]
3467
3546
  });
3468
- }), Qe(() => {
3547
+ }), it(() => {
3469
3548
  e.unregister(r), t?.disconnect(), n.length = 0;
3470
3549
  });
3471
3550
  }
3472
- function Is(e, t) {
3473
- return `${Ps}?target=${encodeURIComponent(e)}&style=${t ? "base16/gruvbox-dark-medium" : "grayscale"}&type=code&showBorder=on&showFileMeta=on&showFullPath=on&showCopy=on&showLineNumbers=on`;
3551
+ function $s(e, t) {
3552
+ return `${Zs}?target=${encodeURIComponent(e)}&style=${t ? "base16/gruvbox-dark-medium" : "grayscale"}&type=code&showBorder=on&showFileMeta=on&showFullPath=on&showCopy=on&showLineNumbers=on`;
3474
3553
  }
3475
3554
  // src/client/theme-default/composables/lazy-embed/index.ts
3476
- function Ls() {
3555
+ function ec() {
3477
3556
  let e = [], t = /* @__PURE__ */ new WeakSet(), n = /* @__PURE__ */ new WeakMap(), r, i;
3478
3557
  function a() {
3479
3558
  let i = document.getElementById("td-content");
@@ -3482,7 +3561,7 @@ function Ls() {
3482
3561
  for (let i of e) t.has(i) || (t.add(i), n.set(i, a), r.observe(i));
3483
3562
  }
3484
3563
  }
3485
- Xe(() => {
3564
+ V(() => {
3486
3565
  r = new IntersectionObserver((e) => {
3487
3566
  for (let t of e) if (t.isIntersecting) {
3488
3567
  r?.unobserve(t.target);
@@ -3495,7 +3574,7 @@ function Ls() {
3495
3574
  childList: !0,
3496
3575
  subtree: !0
3497
3576
  }));
3498
- }), Qe(() => {
3577
+ }), it(() => {
3499
3578
  i?.disconnect(), r?.disconnect();
3500
3579
  });
3501
3580
  let o = {
@@ -3507,52 +3586,42 @@ function Ls() {
3507
3586
  n !== -1 && e.splice(n, 1);
3508
3587
  }
3509
3588
  };
3510
- js(o), Ts(o), Fs(o);
3511
- }
3512
- // src/client/theme-default/composables/useLocalStorage.ts
3513
- function Rs(e, t) {
3514
- let n = typeof localStorage < "u" ? localStorage.getItem(e) : null, r = n === null ? t : zs(n, t), i = W(r);
3515
- return X(i, (t) => {
3516
- typeof localStorage < "u" && localStorage.setItem(e, String(t));
3517
- }), i;
3518
- }
3519
- function zs(e, t) {
3520
- return typeof t == "boolean" ? e === "true" : typeof t == "number" ? Number(e) || t : e;
3589
+ Js(o), Hs(o), Qs(o);
3521
3590
  }
3522
3591
  // src/client/theme-default/TdLayout.vue?vue&type=script&setup=true&lang.ts
3523
- var Bs = { class: "td-header" }, Vs = { class: "td-header-left" }, Hs = ["href"], Us = { class: "td-brand-name" }, Ws = { class: "td-header-right" }, Gs = ["href"], Ks = { class: "td-drawer-header" }, qs = ["href"], Js = { class: "td-brand-name" }, Ys = {
3592
+ var tc = { class: "td-header" }, nc = { class: "td-header-left" }, rc = ["href"], ic = { class: "td-brand-name" }, ac = { class: "td-header-right" }, oc = ["href"], sc = { class: "td-drawer-header" }, cc = ["href"], lc = { class: "td-brand-name" }, uc = {
3524
3593
  key: 0,
3525
3594
  class: "pt-4",
3526
3595
  "aria-label": "Site navigation"
3527
- }, Xs = { class: "td-page" }, Zs = ["aria-label"], Qs = {
3596
+ }, dc = { class: "td-page" }, fc = ["aria-label"], pc = {
3528
3597
  key: 2,
3529
3598
  class: "td-sidebar-collapse-label"
3530
- }, $s = ["onKeydown"], ec = { class: "td-main-and-rail" }, tc = { class: "td-main" }, nc = {
3599
+ }, mc = ["onKeydown"], hc = { class: "td-main-and-rail" }, gc = { class: "td-main" }, _c = {
3531
3600
  id: "td-content",
3532
3601
  class: "td-content",
3533
3602
  "data-testid": "content"
3534
- }, rc = {
3603
+ }, vc = {
3535
3604
  key: 0,
3536
3605
  class: "td-page-eyebrow"
3537
- }, ic = {
3606
+ }, yc = {
3538
3607
  key: 1,
3539
3608
  class: "td-page-icon"
3540
- }, ac = ["innerHTML"], oc = {
3609
+ }, bc = ["innerHTML"], xc = {
3541
3610
  key: 3,
3542
3611
  class: "td-page-meta"
3543
- }, sc = { key: 0 }, cc = { class: "td-content-body" }, lc = ["href"], uc = 200, dc = 500, fc = 300, pc = 48, mc = /*#__PURE__*/ j(/* @__PURE__ */ V({
3612
+ }, Sc = { key: 0 }, Cc = { class: "td-content-body" }, wc = ["href"], Tc = /*#__PURE__*/ k(/* @__PURE__ */ z({
3544
3613
  __name: "TdLayout",
3545
3614
  setup(e) {
3546
- let { title: t, page: n } = he(), i = P(() => {
3615
+ let { title: t, page: n } = ye(), i = M(() => {
3547
3616
  let e = n.value.icon;
3548
- return e ? ve(e.name) : void 0;
3549
- }), a = M(), { withBase: o } = a, c = Te(), l = Se(), u = P(() => l.value.ready), { isOpen: d, open: f, close: p } = ca(), m = W(""), h = W(!1), g = W(!1), _ = _e(), v = W(!1);
3550
- X(() => _.path, () => p()), To(), Eo(), Ls();
3551
- let y = Y("sidebarSearch"), x = Y("menuSearch"), S = Y("palette"), { previous: C, next: w } = ua();
3552
- function T() {
3553
- v.value = !1;
3617
+ return e ? Pe(e.name) : void 0;
3618
+ }), a = A(), { withBase: o } = a, c = xe(), l = Ee(), u = M(() => l.value.ready), { isOpen: d, isDrawerMounted: f, open: p, close: m } = ja(), h = U(""), g = U(!1), _ = U(!1), v = Ne(), y = U(!1);
3619
+ Y(() => v.path, () => m()), Jo(), Yo(), ec();
3620
+ let x = J("sidebarSearch"), S = J("menuSearch"), C = J("palette"), { previous: w, next: T } = Na();
3621
+ function E() {
3622
+ y.value = !1;
3554
3623
  }
3555
- function E(e) {
3624
+ function ee(e) {
3556
3625
  let t = a.repo;
3557
3626
  return `${r(t.url)}/edit/main/${[
3558
3627
  t.root,
@@ -3560,268 +3629,281 @@ var Bs = { class: "td-header" }, Vs = { class: "td-header-left" }, Hs = ["href"]
3560
3629
  e
3561
3630
  ].filter(Boolean).join("/")}`;
3562
3631
  }
3563
- function ee() {
3564
- k.value = !1, qe(() => y.value?.focus());
3565
- }
3566
3632
  function te() {
3567
- y.value?.isVisible ? y.value.focus() : (f(), x.value?.focus());
3633
+ O.value = !1, et(() => x.value?.focus());
3568
3634
  }
3569
3635
  function D() {
3570
- S.value?.open();
3636
+ x.value?.isVisible ? x.value.focus() : (p(), S.value?.focus());
3571
3637
  }
3572
3638
  function ne() {
3573
- v.value = !0;
3639
+ C.value?.open();
3574
3640
  }
3575
- ko([Q.Control, Q.k], te), ko([Q.Meta, Q.k], te), ko([Q.Control, Q.FSlash], D), ko([Q.Meta, Q.FSlash], D), ko([Q.Control, Q.ArrowLeft], () => {
3576
- C.value && c.go(C.value.url);
3577
- }, { ignoreWhenTyping: !0 }), ko([Q.Control, Q.ArrowRight], () => {
3641
+ function re() {
3642
+ y.value = !0;
3643
+ }
3644
+ Ea([Q.Control, Q.k], D), Ea([Q.Meta, Q.k], D), Ea([Q.Control, Q.FSlash], ne), Ea([Q.Meta, Q.FSlash], ne), Ea([Q.Control, Q.ArrowLeft], () => {
3578
3645
  w.value && c.go(w.value.url);
3579
- }, { ignoreWhenTyping: !0 }), lt(() => {
3646
+ }, { ignoreWhenTyping: !0 }), Ea([Q.Control, Q.ArrowRight], () => {
3647
+ T.value && c.go(T.value.url);
3648
+ }, { ignoreWhenTyping: !0 }), ht(() => {
3580
3649
  if (typeof document > "u") return;
3581
3650
  let e = t.value, r = a.title;
3582
3651
  document.title = e && e !== r ? `${e} - ${r}` : r;
3583
3652
  let i = n.value.frontmatter?.description === void 0 ? a.description ?? "" : String(n.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
3584
3653
  o && o.setAttribute("content", i);
3585
- }), Fo();
3586
- let O = Rs("td-sidebar-width", fc), k = Rs("td-sidebar-collapsed", !1), re = P(() => k.value ? pc : O.value), ie = W(!1);
3587
- function ae() {
3588
- k.value = !k.value;
3654
+ }), Qo();
3655
+ let { sidebarWidth: ie, sidebarCollapsed: O, sidebarStyle: ae } = Ot(), oe = U(!1);
3656
+ function se() {
3657
+ f.value ? d.value ? m() : p() : ce();
3589
3658
  }
3590
- ko([Q.Control, Q.Backslash], ae, { capture: !0 }), ko([Q.Meta, Q.Backslash], ae, { capture: !0 });
3591
- function oe() {
3592
- O.value = Math.min(dc, O.value + 20);
3659
+ function ce() {
3660
+ O.value = !O.value;
3593
3661
  }
3594
- function se(e) {
3595
- let t = e.clientX, n = O.value, r = e.currentTarget;
3596
- ie.value = !0, r.setPointerCapture(e.pointerId);
3662
+ Ea([Q.Control, Q.Backslash], se, { capture: !0 }), Ea([Q.Meta, Q.Backslash], se, { capture: !0 });
3663
+ function le() {
3664
+ ie.value = Math.min(500, ie.value + 20);
3665
+ }
3666
+ function ue(e) {
3667
+ let t = e.clientX, n = ie.value, r = e.currentTarget;
3668
+ oe.value = !0, r.setPointerCapture(e.pointerId);
3597
3669
  function i(e) {
3598
- let r = Math.min(dc, window.innerWidth * .85), i = Math.min(r, Math.max(uc, n + e.clientX - t));
3599
- O.value = i;
3670
+ let r = Math.min(500, window.innerWidth * .85), i = Math.min(r, Math.max(200, n + e.clientX - t));
3671
+ ie.value = i;
3600
3672
  }
3601
3673
  function a() {
3602
- ie.value = !1, document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a);
3674
+ oe.value = !1, document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a);
3603
3675
  }
3604
3676
  document.body.style.cursor = "col-resize", r.addEventListener("pointermove", i), r.addEventListener("pointerup", a);
3605
3677
  }
3606
- function ce() {
3607
- O.value = Math.max(uc, O.value - 20);
3678
+ function de() {
3679
+ ie.value = Math.max(200, ie.value - 20);
3608
3680
  }
3609
- return (e, r) => (U(), L("div", null, [
3610
- K(e.$slots, "layout-top", {}, void 0, !0),
3611
- r[6] ||= R("a", {
3681
+ return (e, r) => (H(), F("div", null, [
3682
+ G(e.$slots, "layout-top", {}, void 0, !0),
3683
+ r[6] ||= I("a", {
3612
3684
  href: "#td-content",
3613
3685
  class: "td-skip-link"
3614
3686
  }, "Skip to content", -1),
3615
- R("header", Bs, [
3616
- R("div", Vs, [
3617
- B(la, { onClick: J(f) }, null, 8, ["onClick"]),
3618
- R("a", {
3619
- href: J(o)(J(s)("/")),
3687
+ I("header", tc, [
3688
+ I("div", nc, [
3689
+ R(Ma, { onClick: q(p) }, null, 8, ["onClick"]),
3690
+ I("a", {
3691
+ href: q(o)(q(s)("/")),
3620
3692
  class: "td-brand"
3621
- }, [B(Pt), R("span", Us, q(J(a).title || "Typedown"), 1)], 8, Hs),
3622
- B(ui, { class: "td-header-breadcrumb" })
3693
+ }, [R(Xt), I("span", ic, K(q(a).title || "Typedown"), 1)], 8, rc),
3694
+ R(Ei, { class: "td-header-breadcrumb" })
3623
3695
  ]),
3624
- B(J(pi)),
3625
- K(e.$slots, "nav-bar-after", {}, void 0, !0),
3626
- R("div", Ws, [
3627
- B(Or, {
3696
+ R(q(ki)),
3697
+ G(e.$slots, "nav-bar-after", {}, void 0, !0),
3698
+ I("div", ac, [
3699
+ R(Wr, {
3628
3700
  text: "Commands",
3629
3701
  placement: "bottom",
3630
- shortcut: [J(Q).Meta, J(Q).FSlash],
3702
+ shortcut: [q(Q).Meta, q(Q).FSlash],
3631
3703
  always: ""
3632
3704
  }, {
3633
- default: ut(() => [R("button", {
3705
+ default: X(() => [I("button", {
3634
3706
  class: "td-header-commands-btn",
3635
3707
  type: "button",
3636
3708
  "aria-label": "Open command palette",
3637
- onClick: D
3638
- }, [B(J(be), { size: 15 })])]),
3709
+ onClick: ne
3710
+ }, [R(q(Te), { size: 15 })])]),
3639
3711
  _: 1
3640
3712
  }, 8, ["shortcut"]),
3641
- B(wo),
3642
- J(a).repo ? (U(), L("a", {
3713
+ R(qo),
3714
+ q(a).repo ? (H(), F("a", {
3643
3715
  key: 0,
3644
- href: J(a).repo.url,
3716
+ href: q(a).repo.url,
3645
3717
  target: "_blank",
3646
3718
  rel: "noopener noreferrer",
3647
3719
  class: "td-header-icon-link",
3648
3720
  "aria-label": "GitHub repository"
3649
- }, [...r[5] ||= [R("svg", {
3721
+ }, [...r[5] ||= [I("svg", {
3650
3722
  width: "20",
3651
3723
  height: "20",
3652
3724
  viewBox: "0 0 98 96",
3653
3725
  xmlns: "http://www.w3.org/2000/svg",
3654
3726
  "aria-hidden": "true",
3655
3727
  fill: "currentColor"
3656
- }, [R("path", {
3728
+ }, [I("path", {
3657
3729
  "fill-rule": "evenodd",
3658
3730
  "clip-rule": "evenodd",
3659
3731
  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"
3660
- })], -1)]], 8, Gs)) : I("", !0)
3732
+ })], -1)]], 8, oc)) : P("", !0)
3661
3733
  ])
3662
3734
  ]),
3663
- R("div", {
3664
- class: H(["td-drawer-scrim", { "is-open": J(d) }]),
3665
- onClick: r[0] ||= (...e) => J(p) && J(p)(...e)
3666
- }, null, 2),
3667
- R("aside", { class: H(["td-drawer", { "is-open": J(d) }]) }, [
3668
- R("header", Ks, [R("a", {
3669
- href: J(o)(J(s)("/")),
3670
- class: "td-brand"
3671
- }, [B(Pt), R("span", Js, q(J(a).title || "Typedown"), 1)], 8, qs), B(It, {
3672
- label: "Close menu",
3673
- onClick: J(p)
3674
- }, {
3675
- default: ut(() => [B(J(xe), { size: 20 })]),
3676
- _: 1
3677
- }, 8, ["onClick"])]),
3678
- B(J(gi)),
3679
- B(Co, {
3680
- ref_key: "menuSearch",
3681
- ref: x,
3682
- query: m.value,
3683
- "onUpdate:query": r[1] ||= (e) => m.value = e,
3684
- active: g.value,
3685
- "onUpdate:active": r[2] ||= (e) => g.value = e,
3686
- onSelect: J(p)
3687
- }, null, 8, [
3688
- "query",
3689
- "active",
3690
- "onSelect"
3691
- ]),
3692
- g.value ? I("", !0) : (U(), L("nav", Ys, [u.value ? (U(), F(Yr, {
3693
- key: 1,
3694
- tree: J(l).contentTree
3695
- }, null, 8, ["tree"])) : (U(), F(Ha, { key: 0 }))]))
3696
- ], 2),
3697
- R("div", Xs, [R("nav", {
3698
- class: H(["td-sidebar-left", {
3699
- "is-resizing": ie.value,
3700
- "is-collapsed": J(k)
3735
+ R(Je, { name: "td-drawer-scrim" }, {
3736
+ default: X(() => [q(f) ? (H(), F("div", {
3737
+ key: 0,
3738
+ class: B(["td-drawer-scrim", { "is-open": q(d) }]),
3739
+ onClick: r[0] ||= (...e) => q(m) && q(m)(...e)
3740
+ }, null, 2)) : P("", !0)]),
3741
+ _: 1
3742
+ }),
3743
+ R(Je, { name: "td-drawer-panel" }, {
3744
+ default: X(() => [q(f) ? (H(), F("aside", {
3745
+ key: 0,
3746
+ class: B(["td-drawer", { "is-open": q(d) }])
3747
+ }, [
3748
+ I("header", sc, [I("a", {
3749
+ href: q(o)(q(s)("/")),
3750
+ class: "td-brand"
3751
+ }, [R(Xt), I("span", lc, K(q(a).title || "Typedown"), 1)], 8, cc), R(Qt, {
3752
+ label: "Close menu",
3753
+ onClick: q(m)
3754
+ }, {
3755
+ default: X(() => [R(q(Ae), { size: 20 })]),
3756
+ _: 1
3757
+ }, 8, ["onClick"])]),
3758
+ R(q(Mi)),
3759
+ R(Ko, {
3760
+ ref_key: "menuSearch",
3761
+ ref: S,
3762
+ query: h.value,
3763
+ "onUpdate:query": r[1] ||= (e) => h.value = e,
3764
+ active: _.value,
3765
+ "onUpdate:active": r[2] ||= (e) => _.value = e,
3766
+ onSelect: q(m)
3767
+ }, null, 8, [
3768
+ "query",
3769
+ "active",
3770
+ "onSelect"
3771
+ ]),
3772
+ _.value ? P("", !0) : (H(), F("nav", uc, [u.value ? (H(), N(di, {
3773
+ key: 1,
3774
+ tree: q(l).contentTree
3775
+ }, null, 8, ["tree"])) : (H(), N(fo, { key: 0 }))]))
3776
+ ], 2)) : P("", !0)]),
3777
+ _: 1
3778
+ }),
3779
+ I("div", dc, [I("nav", {
3780
+ class: B(["td-sidebar-left", {
3781
+ "is-resizing": oe.value,
3782
+ "is-collapsed": q(O)
3701
3783
  }]),
3702
3784
  "data-testid": "sidebar",
3703
3785
  "aria-label": "Site navigation",
3704
- style: Je({ width: `${re.value}px` })
3786
+ style: tt(q(ae))
3705
3787
  }, [
3706
- J(k) ? (U(), F(Ja, {
3788
+ q(O) ? (H(), N(vo, {
3707
3789
  key: 1,
3708
- tree: J(l).contentTree,
3709
- onSearch: ee
3710
- }, null, 8, ["tree"])) : (U(), L(N, { key: 0 }, [
3711
- K(e.$slots, "sidebar-top", {}, void 0, !0),
3712
- B(Co, {
3790
+ tree: q(l).contentTree,
3791
+ onSearch: te
3792
+ }, null, 8, ["tree"])) : (H(), F(j, { key: 0 }, [
3793
+ G(e.$slots, "sidebar-top", {}, void 0, !0),
3794
+ R(Ko, {
3713
3795
  ref_key: "sidebarSearch",
3714
- ref: y,
3715
- query: m.value,
3716
- "onUpdate:query": r[3] ||= (e) => m.value = e,
3717
- active: h.value,
3718
- "onUpdate:active": r[4] ||= (e) => h.value = e,
3796
+ ref: x,
3797
+ query: h.value,
3798
+ "onUpdate:query": r[3] ||= (e) => h.value = e,
3799
+ active: g.value,
3800
+ "onUpdate:active": r[4] ||= (e) => g.value = e,
3719
3801
  class: "td-sidebar-search"
3720
3802
  }, null, 8, ["query", "active"]),
3721
- B(Ua, {
3722
- tree: J(l).contentTree,
3723
- "search-active": h.value,
3803
+ R(po, {
3804
+ tree: q(l).contentTree,
3805
+ "search-active": g.value,
3724
3806
  ready: u.value
3725
3807
  }, null, 8, [
3726
3808
  "tree",
3727
3809
  "search-active",
3728
3810
  "ready"
3729
3811
  ]),
3730
- K(e.$slots, "sidebar-bottom", {}, void 0, !0)
3812
+ G(e.$slots, "sidebar-bottom", {}, void 0, !0)
3731
3813
  ], 64)),
3732
- R("button", {
3814
+ I("button", {
3733
3815
  class: "td-sidebar-collapse-btn",
3734
3816
  type: "button",
3735
- "aria-label": J(k) ? "Expand sidebar" : "Collapse sidebar",
3736
- onClick: ae
3817
+ "aria-label": q(O) ? "Expand sidebar" : "Collapse sidebar",
3818
+ onClick: ce
3737
3819
  }, [
3738
- J(k) ? (U(), F(J(gt), {
3820
+ q(O) ? (H(), N(q(Mt), {
3739
3821
  key: 1,
3740
3822
  size: 14
3741
- })) : (U(), F(J(ht), {
3823
+ })) : (H(), N(q(jt), {
3742
3824
  key: 0,
3743
3825
  size: 14
3744
3826
  })),
3745
- J(k) ? I("", !0) : (U(), L("span", Qs, "Collapse sidebar")),
3746
- J(k) ? I("", !0) : (U(), F($, {
3827
+ q(O) ? P("", !0) : (H(), F("span", pc, "Collapse sidebar")),
3828
+ q(O) ? P("", !0) : (H(), N($, {
3747
3829
  key: 3,
3748
- keys: [J(Q).Meta, J(Q).Backslash]
3830
+ keys: [q(Q).Meta, q(Q).Backslash]
3749
3831
  }, null, 8, ["keys"]))
3750
- ], 8, Zs),
3751
- J(k) ? I("", !0) : (U(), L("div", {
3832
+ ], 8, fc),
3833
+ q(O) ? P("", !0) : (H(), F("div", {
3752
3834
  key: 2,
3753
3835
  class: "td-resize-handle",
3754
3836
  role: "separator",
3755
3837
  "aria-orientation": "vertical",
3756
3838
  "aria-label": "Resize sidebar",
3757
3839
  tabindex: "0",
3758
- onPointerdown: pt(se, ["prevent"]),
3759
- onKeydown: [ft(pt(ce, ["prevent"]), ["left"]), ft(pt(oe, ["prevent"]), ["right"])]
3760
- }, null, 40, $s))
3761
- ], 6), R("div", ec, [R("main", tc, [R("article", nc, [
3762
- K(e.$slots, "doc-before", {}, void 0, !0),
3763
- J(n).schema ? (U(), L("div", rc, q(J(n).schemaLabel ?? J(n).schema), 1)) : I("", !0),
3764
- i.value ? (U(), L("div", ic, [(U(), F(nt(i.value), { size: 32 }))])) : I("", !0),
3765
- J(t) ? (U(), L("h1", {
3840
+ onPointerdown: vt(ue, ["prevent"]),
3841
+ onKeydown: [_t(vt(de, ["prevent"]), ["left"]), _t(vt(le, ["prevent"]), ["right"])]
3842
+ }, null, 40, mc))
3843
+ ], 6), I("div", hc, [I("main", gc, [I("article", _c, [
3844
+ G(e.$slots, "doc-before", {}, void 0, !0),
3845
+ q(n).schema ? (H(), F("div", vc, K(q(n).schemaLabel ?? q(n).schema), 1)) : P("", !0),
3846
+ i.value ? (H(), F("div", yc, [(H(), N(ct(i.value), { size: 32 }))])) : P("", !0),
3847
+ q(t) ? (H(), F("h1", {
3766
3848
  key: 2,
3767
3849
  class: "td-page-title",
3768
- innerHTML: J(n).titleHtml
3769
- }, null, 8, ac)) : I("", !0),
3770
- J(n).fileMetadata ? (U(), L("div", oc, [R("span", null, q(J(b)(J(n).fileMetadata.mtimeSecs, "Modified")), 1), J(n).fileMetadata.ctimeSecs === J(n).fileMetadata.mtimeSecs ? I("", !0) : (U(), L("span", sc, " · " + q(J(b)(J(n).fileMetadata.ctimeSecs, "Created")), 1))])) : I("", !0),
3771
- B(J(oa), {
3850
+ innerHTML: q(n).titleHtml
3851
+ }, null, 8, bc)) : P("", !0),
3852
+ q(n).fileMetadata ? (H(), F("div", xc, [I("span", null, K(q(b)(q(n).fileMetadata.mtimeSecs, "Modified")), 1), q(n).fileMetadata.ctimeSecs === q(n).fileMetadata.mtimeSecs ? P("", !0) : (H(), F("span", Sc, " · " + K(q(b)(q(n).fileMetadata.ctimeSecs, "Created")), 1))])) : P("", !0),
3853
+ R(q(Sa), {
3772
3854
  class: "td-frontmatter-inline",
3773
- schema: J(n).schema,
3774
- frontmatter: J(n).frontmatter
3855
+ schema: q(n).schema,
3856
+ frontmatter: q(n).frontmatter
3775
3857
  }, null, 8, ["schema", "frontmatter"]),
3776
- J(n).headings.length > 1 ? (U(), F(Fa, {
3858
+ q(n).headings.length > 1 ? (H(), N(io, {
3777
3859
  key: 4,
3778
3860
  class: "td-toc-inline",
3779
- headings: J(n).headings,
3861
+ headings: q(n).headings,
3780
3862
  inline: ""
3781
- }, null, 8, ["headings"])) : I("", !0),
3782
- K(e.$slots, "doc-content-before", {}, void 0, !0),
3783
- R("div", cc, [B(J(ke))]),
3784
- K(e.$slots, "doc-content-after", {}, void 0, !0),
3785
- B(Ca),
3786
- J(a).repo && J(n).filepath ? (U(), L("a", {
3863
+ }, null, 8, ["headings"])) : P("", !0),
3864
+ G(e.$slots, "doc-content-before", {}, void 0, !0),
3865
+ I("div", Cc, [R(q(Me))]),
3866
+ G(e.$slots, "doc-content-after", {}, void 0, !0),
3867
+ R(Ka),
3868
+ q(a).repo && q(n).filepath ? (H(), F("a", {
3787
3869
  key: 5,
3788
- href: E(J(n).filepath),
3870
+ href: ee(q(n).filepath),
3789
3871
  target: "_blank",
3790
3872
  rel: "noopener noreferrer",
3791
3873
  class: "td-page-edit"
3792
- }, "Edit this page", 8, lc)) : I("", !0),
3793
- K(e.$slots, "doc-after", {}, void 0, !0)
3794
- ])]), B(Ba, { class: "td-rail" })])]),
3795
- B(Qr),
3796
- K(e.$slots, "layout-bottom", {}, void 0, !0),
3797
- B(co, {
3874
+ }, "Edit this page", 8, wc)) : P("", !0),
3875
+ G(e.$slots, "doc-after", {}, void 0, !0)
3876
+ ])]), R(lo, { class: "td-rail" })])]),
3877
+ R(mi),
3878
+ G(e.$slots, "layout-bottom", {}, void 0, !0),
3879
+ R(Mo, {
3798
3880
  ref_key: "palette",
3799
- ref: S,
3800
- onToggleSidebar: ae,
3801
- onShowShortcuts: ne
3881
+ ref: C,
3882
+ onToggleSidebar: ce,
3883
+ onShowShortcuts: re
3802
3884
  }, null, 512),
3803
- B(po, {
3804
- open: v.value,
3805
- onClose: T
3885
+ R(Io, {
3886
+ open: y.value,
3887
+ onClose: E
3806
3888
  }, null, 8, ["open"])
3807
3889
  ]));
3808
3890
  }
3809
- }), [["__scopeId", "data-v-7895d684"]]), hc = { class: "pt-16 pb-24" }, gc = ["href"], _c = /* @__PURE__ */ V({
3891
+ }), [["__scopeId", "data-v-e1cb586a"]]), Ec = { class: "pt-16 pb-24" }, Dc = ["href"], Oc = /* @__PURE__ */ z({
3810
3892
  __name: "TdNotFound",
3811
3893
  setup(e) {
3812
- let { withBase: t } = M();
3813
- return (e, n) => (U(), L("div", hc, [
3814
- n[0] ||= R("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
3815
- n[1] ||= R("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
3816
- n[2] ||= R("p", { class: "text-td-fg-muted mt-2 text-td-base leading-td-relaxed" }, " The page you are looking for does not exist. ", -1),
3817
- R("a", {
3894
+ let { withBase: t } = A();
3895
+ return (e, n) => (H(), F("div", Ec, [
3896
+ n[0] ||= I("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
3897
+ n[1] ||= I("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
3898
+ 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),
3899
+ I("a", {
3818
3900
  class: "inline-flex items-center mt-6 text-td-accent text-td-sm font-extrabold tracking-td-tight hover:text-td-accent-hi",
3819
- href: J(t)(J(s)("/"))
3820
- }, "Go Home", 8, gc)
3901
+ href: q(t)(q(s)("/"))
3902
+ }, "Go Home", 8, Dc)
3821
3903
  ]));
3822
3904
  }
3823
- }), vc = {
3824
- Layout: mc,
3825
- NotFound: _c
3905
+ }), kc = {
3906
+ Layout: Tc,
3907
+ NotFound: Oc
3826
3908
  };
3827
- export { Pt as TdBrandIcon, Yr as TdContentNav, Oe as TdDirectoryIndex, Qr as TdFooter, ye as TdGlossaryIndex, $ as TdKbdShortcut, Q as TdKeyName, mc as TdLayout, _c as TdNotFound, Ca as TdPreviousNext, Ba as TdRail, wo as TdThemeToggle, Fa as TdToc, vc as default, Oo as isTypingTarget, To as useCopyCode, ko as useGlobalHotkey, Ao as useLocalHotkeys, Rs as useLocalStorage };
3909
+ export { Tt as SIDEBAR_COLLAPSED_WIDTH, wt as SIDEBAR_DEFAULT_WIDTH, Dt as SIDEBAR_MAX_WIDTH, Et as SIDEBAR_MIN_WIDTH, Xt as TdBrandIcon, di as TdContentNav, Ce as TdDirectoryIndex, mi as TdFooter, Se as TdGlossaryIndex, $ as TdKbdShortcut, Q as TdKeyName, Tc as TdLayout, Oc as TdNotFound, Ka as TdPreviousNext, lo as TdRail, qo as TdThemeToggle, io as TdToc, kc as default, Ta as isTypingTarget, yt as useClientPreferences, Jo as useCopyCode, Ea as useGlobalHotkey, Da as useLocalHotkeys, Ot as useSidebarConfig, he as useTheme };