typerighter 0.30.3 → 0.30.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{app-gH0dpuch.js → app-wLTpP3BP.js} +17 -17
- package/dist/{cli-BFgBPypP.js → cli-DFeDkMZb.js} +5 -5
- package/dist/cli.js +1 -1
- package/dist/client/theme-default.js +876 -875
- package/dist/client.js +1 -1
- package/dist/index.js +2 -2
- package/dist/{init-EKDV1L4U.js → init-4ZHUVwp-.js} +3 -3
- package/dist/shared/types/ssg.d.ts +3 -0
- package/dist/shared/types/ssg.d.ts.map +1 -1
- package/dist/shared/utils/html.d.ts +1 -0
- package/dist/shared/utils/html.d.ts.map +1 -1
- package/dist/{shared-BuA2cqMO.js → shared-B-n46X4N.js} +86 -82
- package/dist/shared.js +2 -2
- package/dist/typerighter.css +1 -1
- package/dist/{vite-CYozrIIG.js → vite-vMuZ0f3f.js} +111 -110
- package/dist/vite.js +1 -1
- package/package.json +3 -3
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { C as
|
|
5
|
-
import { a as
|
|
6
|
-
import { Fragment as
|
|
7
|
-
var
|
|
1
|
+
import { B as e, D as t, E as n, G as r, K as i, M as a, N as o, O as s, P as c, S as l, _ as u, c as d, d as f, f as p, h as m, i as h, j as g, l as _, n as v, o as y, r as b, s as x, v as S, w as C, x as ee, y as w } from "../shared-B-n46X4N.js";
|
|
2
|
+
import { t as te } from "../temml-DZbhOfRE.js";
|
|
3
|
+
import { t as ne } from "../es-ClqUVRJn.js";
|
|
4
|
+
import { C as re, E as T, S as ie, T as E, _ as ae, a as oe, b as se, c as ce, d as le, f as ue, g as de, h as D, i as O, l as k, m as fe, n as pe, o as me, p as he, r as ge, s as _e, v as ve, w as ye, x as be, y as xe } from "../app-wLTpP3BP.js";
|
|
5
|
+
import { a as Se, i as Ce, n as we, t as Te } from "../brand-CG1fQshq.js";
|
|
6
|
+
import { Fragment as A, Teleport as Ee, computed as j, createApp as De, createBlock as M, createCommentVNode as N, createElementBlock as P, createElementVNode as F, createTextVNode as I, createVNode as L, defineComponent as R, getCurrentScope as Oe, markRaw as ke, mergeModels as Ae, mergeProps as je, nextTick as Me, normalizeClass as z, normalizeStyle as Ne, onBeforeUnmount as Pe, onMounted as Fe, onScopeDispose as Ie, onUnmounted as Le, openBlock as B, readonly as Re, ref as V, renderList as H, renderSlot as ze, resolveComponent as Be, resolveDynamicComponent as Ve, shallowReadonly as He, shallowRef as Ue, toDisplayString as U, toValue as We, triggerRef as Ge, unref as W, useModel as Ke, useTemplateRef as qe, vModelText as Je, watch as G, watchEffect as Ye, withCtx as Xe, withDirectives as Ze, withKeys as Qe, withModifiers as $e } from "vue";
|
|
7
|
+
var et = T("arrow-down", [["path", {
|
|
8
8
|
d: "M12 5v14",
|
|
9
9
|
key: "s699le"
|
|
10
10
|
}], ["path", {
|
|
11
11
|
d: "m19 12-7 7-7-7",
|
|
12
12
|
key: "1idqje"
|
|
13
|
-
}]]),
|
|
13
|
+
}]]), tt = T("arrow-left", [["path", {
|
|
14
14
|
d: "m12 19-7-7 7-7",
|
|
15
15
|
key: "1l729n"
|
|
16
16
|
}], ["path", {
|
|
17
17
|
d: "M19 12H5",
|
|
18
18
|
key: "x3x0zl"
|
|
19
|
-
}]]),
|
|
19
|
+
}]]), nt = T("arrow-right", [["path", {
|
|
20
20
|
d: "M5 12h14",
|
|
21
21
|
key: "1ays0h"
|
|
22
22
|
}], ["path", {
|
|
23
23
|
d: "m12 5 7 7-7 7",
|
|
24
24
|
key: "xquz4c"
|
|
25
|
-
}]]),
|
|
25
|
+
}]]), rt = T("arrow-up", [["path", {
|
|
26
26
|
d: "m5 12 7-7 7 7",
|
|
27
27
|
key: "hav0vg"
|
|
28
28
|
}], ["path", {
|
|
29
29
|
d: "M12 19V5",
|
|
30
30
|
key: "x0mq9r"
|
|
31
|
-
}]]),
|
|
31
|
+
}]]), it = T("chevron-down", [["path", {
|
|
32
32
|
d: "m6 9 6 6 6-6",
|
|
33
33
|
key: "qrunsl"
|
|
34
|
-
}]]),
|
|
34
|
+
}]]), at = T("chevron-left", [["path", {
|
|
35
35
|
d: "m15 18-6-6 6-6",
|
|
36
36
|
key: "1wnfg3"
|
|
37
|
-
}]]),
|
|
37
|
+
}]]), ot = T("chevron-right", [["path", {
|
|
38
38
|
d: "m9 18 6-6-6-6",
|
|
39
39
|
key: "mthhwq"
|
|
40
|
-
}]]),
|
|
40
|
+
}]]), st = T("circle-dot", [["circle", {
|
|
41
41
|
cx: "12",
|
|
42
42
|
cy: "12",
|
|
43
43
|
r: "1",
|
|
@@ -47,16 +47,16 @@ var Ze = E("arrow-down", [["path", {
|
|
|
47
47
|
cy: "12",
|
|
48
48
|
r: "10",
|
|
49
49
|
key: "1mglay"
|
|
50
|
-
}]]),
|
|
50
|
+
}]]), ct = T("command", [["path", {
|
|
51
51
|
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",
|
|
52
52
|
key: "11bfej"
|
|
53
|
-
}]]),
|
|
53
|
+
}]]), lt = T("corner-down-left", [["path", {
|
|
54
54
|
d: "M20 4v7a4 4 0 0 1-4 4H4",
|
|
55
55
|
key: "6o5b7l"
|
|
56
56
|
}], ["path", {
|
|
57
57
|
d: "m9 10-5 5 5 5",
|
|
58
58
|
key: "1kshq7"
|
|
59
|
-
}]]),
|
|
59
|
+
}]]), ut = T("delete", [
|
|
60
60
|
["path", {
|
|
61
61
|
d: "M10 5a2 2 0 0 0-1.344.519l-6.328 5.74a1 1 0 0 0 0 1.481l6.328 5.741A2 2 0 0 0 10 19h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z",
|
|
62
62
|
key: "1yo7s0"
|
|
@@ -69,7 +69,7 @@ var Ze = E("arrow-down", [["path", {
|
|
|
69
69
|
d: "m18 9-6 6",
|
|
70
70
|
key: "1fp51s"
|
|
71
71
|
}]
|
|
72
|
-
]),
|
|
72
|
+
]), dt = T("ellipsis", [
|
|
73
73
|
["circle", {
|
|
74
74
|
cx: "12",
|
|
75
75
|
cy: "12",
|
|
@@ -88,10 +88,10 @@ var Ze = E("arrow-down", [["path", {
|
|
|
88
88
|
r: "1",
|
|
89
89
|
key: "1pcz8c"
|
|
90
90
|
}]
|
|
91
|
-
]),
|
|
91
|
+
]), ft = T("folder-open", [["path", {
|
|
92
92
|
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",
|
|
93
93
|
key: "usdka0"
|
|
94
|
-
}]]),
|
|
94
|
+
}]]), pt = T("list", [
|
|
95
95
|
["path", {
|
|
96
96
|
d: "M3 5h.01",
|
|
97
97
|
key: "18ugdj"
|
|
@@ -116,10 +116,10 @@ var Ze = E("arrow-down", [["path", {
|
|
|
116
116
|
d: "M8 19h13",
|
|
117
117
|
key: "m83p4d"
|
|
118
118
|
}]
|
|
119
|
-
]),
|
|
119
|
+
]), mt = T("loader-circle", [["path", {
|
|
120
120
|
d: "M21 12a9 9 0 1 1-6.219-8.56",
|
|
121
121
|
key: "13zald"
|
|
122
|
-
}]]),
|
|
122
|
+
}]]), ht = T("menu", [
|
|
123
123
|
["path", {
|
|
124
124
|
d: "M4 5h16",
|
|
125
125
|
key: "1tepv9"
|
|
@@ -132,22 +132,22 @@ var Ze = E("arrow-down", [["path", {
|
|
|
132
132
|
d: "M4 19h16",
|
|
133
133
|
key: "1djgab"
|
|
134
134
|
}]
|
|
135
|
-
]),
|
|
135
|
+
]), gt = T("option", [["path", {
|
|
136
136
|
d: "M14 3h7",
|
|
137
137
|
key: "16f0ms"
|
|
138
138
|
}], ["path", {
|
|
139
139
|
d: "M3 3h5.28a1 1 0 0 1 .948.684l5.544 16.632a1 1 0 0 0 .949.684H21",
|
|
140
140
|
key: "1qf1im"
|
|
141
|
-
}]]),
|
|
141
|
+
}]]), _t = T("space", [["path", {
|
|
142
142
|
d: "M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",
|
|
143
143
|
key: "lt2kga"
|
|
144
|
-
}]]),
|
|
144
|
+
}]]), vt = T("square-check-big", [["path", {
|
|
145
145
|
d: "M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",
|
|
146
146
|
key: "2acyp4"
|
|
147
147
|
}], ["path", {
|
|
148
148
|
d: "m9 11 3 3L22 4",
|
|
149
149
|
key: "1pflzl"
|
|
150
|
-
}]]),
|
|
150
|
+
}]]), yt = T("tags", [
|
|
151
151
|
["path", {
|
|
152
152
|
d: "M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",
|
|
153
153
|
key: "16rjxf"
|
|
@@ -163,7 +163,7 @@ var Ze = E("arrow-down", [["path", {
|
|
|
163
163
|
fill: "currentColor",
|
|
164
164
|
key: "12ikhr"
|
|
165
165
|
}]
|
|
166
|
-
]),
|
|
166
|
+
]), bt = T("type", [
|
|
167
167
|
["path", {
|
|
168
168
|
d: "M12 4v16",
|
|
169
169
|
key: "1654pz"
|
|
@@ -176,139 +176,139 @@ var Ze = E("arrow-down", [["path", {
|
|
|
176
176
|
d: "M9 20h6",
|
|
177
177
|
key: "s66wpe"
|
|
178
178
|
}]
|
|
179
|
-
]),
|
|
179
|
+
]), xt = T("x", [["path", {
|
|
180
180
|
d: "M18 6 6 18",
|
|
181
181
|
key: "1bl5f8"
|
|
182
182
|
}], ["path", {
|
|
183
183
|
d: "m6 6 12 12",
|
|
184
184
|
key: "d8bk6v"
|
|
185
|
-
}]]),
|
|
185
|
+
}]]), St = [
|
|
186
186
|
"height",
|
|
187
187
|
"width",
|
|
188
188
|
"viewBox"
|
|
189
|
-
],
|
|
189
|
+
], Ct = ["d"], wt = ["d"], Tt = ["d"], Et = /* @__PURE__ */ R({
|
|
190
190
|
__name: "TdBrandIcon",
|
|
191
191
|
props: { size: { default: 28 } },
|
|
192
192
|
setup(e) {
|
|
193
|
-
return (t, n) => (
|
|
193
|
+
return (t, n) => (B(), P("svg", {
|
|
194
194
|
fill: "none",
|
|
195
195
|
height: e.size,
|
|
196
196
|
width: e.size * 208 / 128,
|
|
197
|
-
viewBox:
|
|
197
|
+
viewBox: W(Se),
|
|
198
198
|
xmlns: "http://www.w3.org/2000/svg"
|
|
199
199
|
}, [
|
|
200
|
-
|
|
200
|
+
F("path", {
|
|
201
201
|
"clip-rule": "evenodd",
|
|
202
|
-
d:
|
|
202
|
+
d: W(we),
|
|
203
203
|
"fill-rule": "evenodd",
|
|
204
204
|
fill: "currentColor"
|
|
205
|
-
}, null, 8,
|
|
206
|
-
|
|
207
|
-
d:
|
|
205
|
+
}, null, 8, Ct),
|
|
206
|
+
F("path", {
|
|
207
|
+
d: W(Ce),
|
|
208
208
|
fill: "currentColor"
|
|
209
|
-
}, null, 8,
|
|
210
|
-
|
|
211
|
-
d:
|
|
209
|
+
}, null, 8, wt),
|
|
210
|
+
F("path", {
|
|
211
|
+
d: W(Te),
|
|
212
212
|
fill: "currentColor"
|
|
213
|
-
}, null, 8,
|
|
214
|
-
], 8,
|
|
213
|
+
}, null, 8, Tt)
|
|
214
|
+
], 8, St));
|
|
215
215
|
}
|
|
216
|
-
}),
|
|
216
|
+
}), Dt = ["title", "aria-label"], Ot = /* @__PURE__ */ R({
|
|
217
217
|
__name: "TdButton",
|
|
218
218
|
props: { label: {} },
|
|
219
219
|
setup(e) {
|
|
220
|
-
return (t, n) => (
|
|
220
|
+
return (t, n) => (B(), P("button", {
|
|
221
221
|
type: "button",
|
|
222
222
|
class: "inline-flex items-center justify-center cursor-pointer",
|
|
223
223
|
title: e.label,
|
|
224
224
|
"aria-label": e.label
|
|
225
|
-
}, [
|
|
225
|
+
}, [ze(t.$slots, "default")], 8, Dt));
|
|
226
226
|
}
|
|
227
|
-
}),
|
|
228
|
-
function
|
|
227
|
+
}), kt = /`([^`]+)`|\$([^$]+)\$/g;
|
|
228
|
+
function At(e) {
|
|
229
229
|
let t = 0, n = "";
|
|
230
|
-
for (let r of e.matchAll(
|
|
231
|
-
if (n +=
|
|
230
|
+
for (let r of e.matchAll(kt)) {
|
|
231
|
+
if (n += x(e.slice(t, r.index)), r[1] !== void 0) n += `<code>${x(r[1])}</code>`;
|
|
232
232
|
else if (r[2] !== void 0) try {
|
|
233
|
-
n +=
|
|
233
|
+
n += te.renderToString(r[2], { throwOnError: !1 });
|
|
234
234
|
} catch {
|
|
235
|
-
n +=
|
|
235
|
+
n += x(r[0]);
|
|
236
236
|
}
|
|
237
237
|
t = r.index + r[0].length;
|
|
238
238
|
}
|
|
239
|
-
return n +=
|
|
239
|
+
return n += x(e.slice(t)), n;
|
|
240
240
|
}
|
|
241
241
|
//#endregion
|
|
242
242
|
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
243
|
-
var
|
|
243
|
+
var jt = Math.min, Mt = Math.max, Nt = Math.round, K = (e) => ({
|
|
244
244
|
x: e,
|
|
245
245
|
y: e
|
|
246
|
-
}),
|
|
246
|
+
}), Pt = {
|
|
247
247
|
left: "right",
|
|
248
248
|
right: "left",
|
|
249
249
|
bottom: "top",
|
|
250
250
|
top: "bottom"
|
|
251
251
|
};
|
|
252
|
-
function
|
|
253
|
-
return
|
|
252
|
+
function Ft(e, t, n) {
|
|
253
|
+
return Mt(e, jt(t, n));
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function It(e, t) {
|
|
256
256
|
return typeof e == "function" ? e(t) : e;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function Lt(e) {
|
|
259
259
|
return e.split("-")[0];
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function Rt(e) {
|
|
262
262
|
return e.split("-")[1];
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function zt(e) {
|
|
265
265
|
return e === "x" ? "y" : "x";
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function Bt(e) {
|
|
268
268
|
return e === "y" ? "height" : "width";
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function q(e) {
|
|
271
271
|
let t = e[0];
|
|
272
272
|
return t === "t" || t === "b" ? "y" : "x";
|
|
273
273
|
}
|
|
274
|
-
function
|
|
275
|
-
return
|
|
274
|
+
function Vt(e) {
|
|
275
|
+
return zt(q(e));
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function Ht(e, t, n) {
|
|
278
278
|
n === void 0 && (n = !1);
|
|
279
|
-
let r =
|
|
280
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
279
|
+
let r = Rt(e), i = Vt(e), a = Bt(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
280
|
+
return t.reference[a] > t.floating[a] && (o = Zt(o)), [o, Zt(o)];
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
let t =
|
|
282
|
+
function Ut(e) {
|
|
283
|
+
let t = Zt(e);
|
|
284
284
|
return [
|
|
285
|
-
|
|
285
|
+
Wt(e),
|
|
286
286
|
t,
|
|
287
|
-
|
|
287
|
+
Wt(t)
|
|
288
288
|
];
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Wt(e) {
|
|
291
291
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
292
292
|
}
|
|
293
|
-
var
|
|
294
|
-
function
|
|
293
|
+
var Gt = ["left", "right"], Kt = ["right", "left"], qt = ["top", "bottom"], Jt = ["bottom", "top"];
|
|
294
|
+
function Yt(e, t, n) {
|
|
295
295
|
switch (e) {
|
|
296
296
|
case "top":
|
|
297
|
-
case "bottom": return n ? t ?
|
|
297
|
+
case "bottom": return n ? t ? Kt : Gt : t ? Gt : Kt;
|
|
298
298
|
case "left":
|
|
299
|
-
case "right": return t ?
|
|
299
|
+
case "right": return t ? qt : Jt;
|
|
300
300
|
default: return [];
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
-
function
|
|
304
|
-
let i =
|
|
305
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
303
|
+
function Xt(e, t, n, r) {
|
|
304
|
+
let i = Rt(e), a = Yt(Lt(e), n === "start", r);
|
|
305
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Wt)))), a;
|
|
306
306
|
}
|
|
307
|
-
function
|
|
308
|
-
let t =
|
|
309
|
-
return
|
|
307
|
+
function Zt(e) {
|
|
308
|
+
let t = Lt(e);
|
|
309
|
+
return Pt[t] + e.slice(t.length);
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function Qt(e) {
|
|
312
312
|
return {
|
|
313
313
|
top: e.top ?? 0,
|
|
314
314
|
right: e.right ?? 0,
|
|
@@ -316,15 +316,15 @@ function Yt(e) {
|
|
|
316
316
|
left: e.left ?? 0
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function $t(e) {
|
|
320
320
|
return typeof e == "number" ? {
|
|
321
321
|
top: e,
|
|
322
322
|
right: e,
|
|
323
323
|
bottom: e,
|
|
324
324
|
left: e
|
|
325
|
-
} :
|
|
325
|
+
} : Qt(e);
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function en(e) {
|
|
328
328
|
let { x: t, y: n, width: r, height: i } = e;
|
|
329
329
|
return {
|
|
330
330
|
width: r,
|
|
@@ -339,8 +339,8 @@ function Zt(e) {
|
|
|
339
339
|
}
|
|
340
340
|
//#endregion
|
|
341
341
|
//#region ../../node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
342
|
-
function
|
|
343
|
-
let { reference: r, floating: i } = e, a =
|
|
342
|
+
function tn(e, t, n) {
|
|
343
|
+
let { reference: r, floating: i } = e, a = q(t), o = Vt(t), s = Bt(o), c = Lt(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;
|
|
344
344
|
switch (c) {
|
|
345
345
|
case "top":
|
|
346
346
|
p = {
|
|
@@ -371,12 +371,12 @@ function Qt(e, t, n) {
|
|
|
371
371
|
y: r.y
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
|
-
let m =
|
|
374
|
+
let m = Rt(t);
|
|
375
375
|
return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
|
|
376
376
|
}
|
|
377
|
-
async function
|
|
377
|
+
async function nn(e, t) {
|
|
378
378
|
t === void 0 && (t = {});
|
|
379
|
-
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 } =
|
|
379
|
+
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 } = It(t, e), p = $t(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = en(await i.getClippingRect({
|
|
380
380
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
381
381
|
boundary: c,
|
|
382
382
|
rootBoundary: l,
|
|
@@ -389,7 +389,7 @@ async function $t(e, t) {
|
|
|
389
389
|
} : 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(_)) || {
|
|
390
390
|
x: 1,
|
|
391
391
|
y: 1
|
|
392
|
-
}, y =
|
|
392
|
+
}, y = en(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
393
393
|
elements: o,
|
|
394
394
|
rect: g,
|
|
395
395
|
offsetParent: _,
|
|
@@ -402,15 +402,15 @@ async function $t(e, t) {
|
|
|
402
402
|
right: (y.right - h.right + p.right) / v.x
|
|
403
403
|
};
|
|
404
404
|
}
|
|
405
|
-
var
|
|
405
|
+
var rn = 50, an = async (e, t, n) => {
|
|
406
406
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
407
407
|
...o,
|
|
408
|
-
detectOverflow:
|
|
408
|
+
detectOverflow: nn
|
|
409
409
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
410
410
|
reference: e,
|
|
411
411
|
floating: t,
|
|
412
412
|
strategy: i
|
|
413
|
-
}), { x: u, y: d } =
|
|
413
|
+
}), { x: u, y: d } = tn(l, r, c), f = r, p = 0, m = {};
|
|
414
414
|
for (let n = 0; n < a.length; n++) {
|
|
415
415
|
let h = a[n];
|
|
416
416
|
if (!h) continue;
|
|
@@ -431,11 +431,11 @@ var en = 50, tn = async (e, t, n) => {
|
|
|
431
431
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
432
432
|
...m[g],
|
|
433
433
|
...b
|
|
434
|
-
}, x && p <
|
|
434
|
+
}, x && p < rn && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
435
435
|
reference: e,
|
|
436
436
|
floating: t,
|
|
437
437
|
strategy: i
|
|
438
|
-
}) : x.rects), {x: u, y: d} =
|
|
438
|
+
}) : x.rects), {x: u, y: d} = tn(l, f, c)), n = -1);
|
|
439
439
|
}
|
|
440
440
|
return {
|
|
441
441
|
x: u,
|
|
@@ -444,61 +444,61 @@ var en = 50, tn = async (e, t, n) => {
|
|
|
444
444
|
strategy: i,
|
|
445
445
|
middlewareData: m
|
|
446
446
|
};
|
|
447
|
-
},
|
|
447
|
+
}, on = (e) => ({
|
|
448
448
|
name: "arrow",
|
|
449
449
|
options: e,
|
|
450
450
|
async fn(t) {
|
|
451
|
-
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } =
|
|
451
|
+
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = It(e, t) || {};
|
|
452
452
|
if (l == null) return {};
|
|
453
|
-
let d =
|
|
453
|
+
let d = $t(u), f = {
|
|
454
454
|
x: n,
|
|
455
455
|
y: r
|
|
456
|
-
}, p =
|
|
456
|
+
}, p = Vt(i), m = Bt(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;
|
|
457
457
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
458
|
-
let
|
|
458
|
+
let ee = b / 2 - x / 2, w = C / 2 - h[m] / 2 - 1, te = jt(d[_], w), ne = jt(d[v], w), re = C - h[m] - ne, T = C / 2 - h[m] / 2 + ee, ie = Ft(te, T, re), E = !c.arrow && Rt(i) != null && T !== ie && a.reference[m] / 2 - (T < te ? te : ne) - h[m] / 2 < 0, ae = E ? T < te ? T - te : T - re : 0;
|
|
459
459
|
return {
|
|
460
|
-
[p]: f[p] +
|
|
460
|
+
[p]: f[p] + ae,
|
|
461
461
|
data: {
|
|
462
|
-
[p]:
|
|
463
|
-
centerOffset:
|
|
464
|
-
...
|
|
462
|
+
[p]: ie,
|
|
463
|
+
centerOffset: T - ie - ae,
|
|
464
|
+
...E && { alignmentOffset: ae }
|
|
465
465
|
},
|
|
466
|
-
reset:
|
|
466
|
+
reset: E
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
|
-
}),
|
|
469
|
+
}), sn = function(e) {
|
|
470
470
|
return e === void 0 && (e = {}), {
|
|
471
471
|
name: "flip",
|
|
472
472
|
options: e,
|
|
473
473
|
async fn(t) {
|
|
474
474
|
var n;
|
|
475
|
-
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 } =
|
|
475
|
+
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 } = It(e, t);
|
|
476
476
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
477
|
-
let g =
|
|
478
|
-
!d && x && b.push(...
|
|
479
|
-
let S = [o, ...b], C = await s.detectOverflow(t, h),
|
|
480
|
-
if (l &&
|
|
481
|
-
let e =
|
|
482
|
-
|
|
477
|
+
let g = Lt(r), _ = q(o), v = Lt(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Zt(o)] : Ut(o)), x = p !== "none";
|
|
478
|
+
!d && x && b.push(...Xt(o, m, p, y));
|
|
479
|
+
let S = [o, ...b], C = await s.detectOverflow(t, h), ee = [], w = i.flip?.overflows || [];
|
|
480
|
+
if (l && ee.push(C[g]), u) {
|
|
481
|
+
let e = Ht(r, a, y);
|
|
482
|
+
ee.push(C[e[0]], C[e[1]]);
|
|
483
483
|
}
|
|
484
|
-
if (
|
|
484
|
+
if (w = [...w, {
|
|
485
485
|
placement: r,
|
|
486
|
-
overflows:
|
|
487
|
-
}], !
|
|
486
|
+
overflows: ee
|
|
487
|
+
}], !ee.every((e) => e <= 0)) {
|
|
488
488
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
489
|
-
if (t && (u !== "alignment" || _ ===
|
|
489
|
+
if (t && (u !== "alignment" || _ === q(t) || w.every((e) => q(e.placement) !== _ || e.overflows[0] > 0))) return {
|
|
490
490
|
data: {
|
|
491
491
|
index: e,
|
|
492
|
-
overflows:
|
|
492
|
+
overflows: w
|
|
493
493
|
},
|
|
494
494
|
reset: { placement: t }
|
|
495
495
|
};
|
|
496
|
-
let n =
|
|
496
|
+
let n = w.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
|
|
497
497
|
if (!n) switch (f) {
|
|
498
498
|
case "bestFit": {
|
|
499
|
-
let e =
|
|
499
|
+
let e = w.filter((e) => {
|
|
500
500
|
if (x) {
|
|
501
|
-
let t =
|
|
501
|
+
let t = q(e.placement);
|
|
502
502
|
return t === _ || t === "y";
|
|
503
503
|
}
|
|
504
504
|
return !0;
|
|
@@ -513,9 +513,9 @@ var en = 50, tn = async (e, t, n) => {
|
|
|
513
513
|
return {};
|
|
514
514
|
}
|
|
515
515
|
};
|
|
516
|
-
},
|
|
517
|
-
async function
|
|
518
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
516
|
+
}, cn = /*#__PURE__*/ new Set(["left", "top"]);
|
|
517
|
+
async function ln(e, t) {
|
|
518
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Lt(n), s = Rt(n), c = q(n) === "y", l = cn.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = It(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
519
519
|
mainAxis: d,
|
|
520
520
|
crossAxis: 0,
|
|
521
521
|
alignmentAxis: null
|
|
@@ -532,13 +532,13 @@ async function on(e, t) {
|
|
|
532
532
|
y: p * u
|
|
533
533
|
};
|
|
534
534
|
}
|
|
535
|
-
var
|
|
535
|
+
var un = function(e) {
|
|
536
536
|
return e === void 0 && (e = 0), {
|
|
537
537
|
name: "offset",
|
|
538
538
|
options: e,
|
|
539
539
|
async fn(t) {
|
|
540
540
|
var n;
|
|
541
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
541
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await ln(t, e);
|
|
542
542
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
543
543
|
x: r + s.x,
|
|
544
544
|
y: i + s.y,
|
|
@@ -549,7 +549,7 @@ var sn = function(e) {
|
|
|
549
549
|
};
|
|
550
550
|
}
|
|
551
551
|
};
|
|
552
|
-
},
|
|
552
|
+
}, dn = function(e) {
|
|
553
553
|
return e === void 0 && (e = {}), {
|
|
554
554
|
name: "shift",
|
|
555
555
|
options: e,
|
|
@@ -560,10 +560,10 @@ var sn = function(e) {
|
|
|
560
560
|
x: t,
|
|
561
561
|
y: n
|
|
562
562
|
};
|
|
563
|
-
} }, ...l } =
|
|
563
|
+
} }, ...l } = It(e, t), u = {
|
|
564
564
|
x: n,
|
|
565
565
|
y: r
|
|
566
|
-
}, d = await a.detectOverflow(t, l), f =
|
|
566
|
+
}, d = await a.detectOverflow(t, l), f = q(i), p = zt(f), m = u[p], h = u[f], g = (e, t) => Ft(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
|
|
567
567
|
o && (m = g(p, m)), s && (h = g(f, h));
|
|
568
568
|
let _ = c.fn({
|
|
569
569
|
...t,
|
|
@@ -586,39 +586,39 @@ var sn = function(e) {
|
|
|
586
586
|
};
|
|
587
587
|
//#endregion
|
|
588
588
|
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
589
|
-
function
|
|
589
|
+
function fn() {
|
|
590
590
|
return typeof window < "u";
|
|
591
591
|
}
|
|
592
|
-
function
|
|
593
|
-
return
|
|
592
|
+
function pn(e) {
|
|
593
|
+
return mn(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function J(e) {
|
|
596
596
|
var t;
|
|
597
597
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
598
598
|
}
|
|
599
|
-
function
|
|
600
|
-
return ((
|
|
601
|
-
}
|
|
602
|
-
function fn(e) {
|
|
603
|
-
return ln() ? e instanceof Node || e instanceof X(e).Node : !1;
|
|
599
|
+
function Y(e) {
|
|
600
|
+
return ((mn(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
604
601
|
}
|
|
605
|
-
function
|
|
606
|
-
return
|
|
602
|
+
function mn(e) {
|
|
603
|
+
return fn() ? e instanceof Node || e instanceof J(e).Node : !1;
|
|
607
604
|
}
|
|
608
|
-
function
|
|
609
|
-
return
|
|
605
|
+
function X(e) {
|
|
606
|
+
return fn() ? e instanceof Element || e instanceof J(e).Element : !1;
|
|
610
607
|
}
|
|
611
|
-
function
|
|
612
|
-
return
|
|
608
|
+
function Z(e) {
|
|
609
|
+
return fn() ? e instanceof HTMLElement || e instanceof J(e).HTMLElement : !1;
|
|
613
610
|
}
|
|
614
611
|
function hn(e) {
|
|
615
|
-
|
|
616
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
612
|
+
return !fn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof J(e).ShadowRoot;
|
|
617
613
|
}
|
|
618
614
|
function gn(e) {
|
|
619
|
-
|
|
615
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = Q(e);
|
|
616
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
620
617
|
}
|
|
621
618
|
function _n(e) {
|
|
619
|
+
return /^(table|td|th)$/.test(pn(e));
|
|
620
|
+
}
|
|
621
|
+
function vn(e) {
|
|
622
622
|
try {
|
|
623
623
|
if (e.matches(":popover-open")) return !0;
|
|
624
624
|
} catch {}
|
|
@@ -628,31 +628,31 @@ function _n(e) {
|
|
|
628
628
|
return !1;
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
|
-
var
|
|
632
|
-
function Sn(e) {
|
|
633
|
-
let t = Z(e) ? Q(e) : e;
|
|
634
|
-
return bn(t.transform) || bn(t.translate) || bn(t.scale) || bn(t.rotate) || bn(t.perspective) || !wn() && (bn(t.backdropFilter) || bn(t.filter)) || vn.test(t.willChange || "") || yn.test(t.contain || "");
|
|
635
|
-
}
|
|
631
|
+
var yn = /transform|translate|scale|rotate|perspective|filter/, bn = /paint|layout|strict|content/, xn = (e) => !!e && e !== "none", Sn;
|
|
636
632
|
function Cn(e) {
|
|
637
|
-
let t =
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
633
|
+
let t = X(e) ? Q(e) : e;
|
|
634
|
+
return xn(t.transform) || xn(t.translate) || xn(t.scale) || xn(t.rotate) || xn(t.perspective) || !Tn() && (xn(t.backdropFilter) || xn(t.filter)) || yn.test(t.willChange || "") || bn.test(t.contain || "");
|
|
635
|
+
}
|
|
636
|
+
function wn(e) {
|
|
637
|
+
let t = On(e);
|
|
638
|
+
for (; Z(t) && !En(t);) {
|
|
639
|
+
if (Cn(t)) return t;
|
|
640
|
+
if (vn(t)) return null;
|
|
641
|
+
t = On(t);
|
|
642
642
|
}
|
|
643
643
|
return null;
|
|
644
644
|
}
|
|
645
|
-
function
|
|
646
|
-
return
|
|
645
|
+
function Tn() {
|
|
646
|
+
return Sn ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Sn;
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
return /^(html|body|#document)$/.test(
|
|
648
|
+
function En(e) {
|
|
649
|
+
return /^(html|body|#document)$/.test(pn(e));
|
|
650
650
|
}
|
|
651
651
|
function Q(e) {
|
|
652
|
-
return
|
|
652
|
+
return J(e).getComputedStyle(e);
|
|
653
653
|
}
|
|
654
|
-
function
|
|
655
|
-
return
|
|
654
|
+
function Dn(e) {
|
|
655
|
+
return X(e) ? {
|
|
656
656
|
scrollLeft: e.scrollLeft,
|
|
657
657
|
scrollTop: e.scrollTop
|
|
658
658
|
} : {
|
|
@@ -660,102 +660,102 @@ function En(e) {
|
|
|
660
660
|
scrollTop: e.scrollY
|
|
661
661
|
};
|
|
662
662
|
}
|
|
663
|
-
function Dn(e) {
|
|
664
|
-
if (un(e) === "html") return e;
|
|
665
|
-
let t = e.assignedSlot || e.parentNode || mn(e) && e.host || dn(e);
|
|
666
|
-
return mn(t) ? t.host : t;
|
|
667
|
-
}
|
|
668
663
|
function On(e) {
|
|
669
|
-
|
|
670
|
-
|
|
664
|
+
if (pn(e) === "html") return e;
|
|
665
|
+
let t = e.assignedSlot || e.parentNode || hn(e) && e.host || Y(e);
|
|
666
|
+
return hn(t) ? t.host : t;
|
|
671
667
|
}
|
|
672
|
-
function kn(e
|
|
668
|
+
function kn(e) {
|
|
669
|
+
let t = On(e);
|
|
670
|
+
return En(t) ? (e.ownerDocument || e).body : Z(t) && gn(t) ? t : kn(t);
|
|
671
|
+
}
|
|
672
|
+
function An(e, t, n) {
|
|
673
673
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
674
|
-
let r =
|
|
674
|
+
let r = kn(e), i = r === e.ownerDocument?.body, a = J(r);
|
|
675
675
|
if (i) {
|
|
676
|
-
let e =
|
|
677
|
-
return t.concat(a, a.visualViewport || [],
|
|
676
|
+
let e = jn(a);
|
|
677
|
+
return t.concat(a, a.visualViewport || [], gn(r) ? r : [], e && n ? An(e) : []);
|
|
678
678
|
}
|
|
679
|
-
return t.concat(r,
|
|
679
|
+
return t.concat(r, An(r, [], n));
|
|
680
680
|
}
|
|
681
|
-
function
|
|
681
|
+
function jn(e) {
|
|
682
682
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
683
683
|
}
|
|
684
684
|
//#endregion
|
|
685
685
|
//#region ../../node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
686
|
-
function
|
|
687
|
-
let t = Q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i =
|
|
686
|
+
function Mn(e) {
|
|
687
|
+
let t = Q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Z(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Nt(n) !== a || Nt(r) !== o;
|
|
688
688
|
return s && (n = a, r = o), {
|
|
689
689
|
width: n,
|
|
690
690
|
height: r,
|
|
691
691
|
$: s
|
|
692
692
|
};
|
|
693
693
|
}
|
|
694
|
-
function Mn(e) {
|
|
695
|
-
return Z(e) ? e : e.contextElement;
|
|
696
|
-
}
|
|
697
694
|
function Nn(e) {
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
695
|
+
return X(e) ? e : e.contextElement;
|
|
696
|
+
}
|
|
697
|
+
function Pn(e) {
|
|
698
|
+
let t = Nn(e);
|
|
699
|
+
if (!Z(t)) return K(1);
|
|
700
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Mn(t), o = (a ? Nt(n.width) : n.width) / r, s = (a ? Nt(n.height) : n.height) / i;
|
|
701
701
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
702
702
|
x: o,
|
|
703
703
|
y: s
|
|
704
704
|
};
|
|
705
705
|
}
|
|
706
|
-
var
|
|
707
|
-
function
|
|
708
|
-
let t =
|
|
709
|
-
return !
|
|
706
|
+
var Fn = /*#__PURE__*/ K(0);
|
|
707
|
+
function In(e) {
|
|
708
|
+
let t = J(e);
|
|
709
|
+
return !Tn() || !t.visualViewport ? Fn : {
|
|
710
710
|
x: t.visualViewport.offsetLeft,
|
|
711
711
|
y: t.visualViewport.offsetTop
|
|
712
712
|
};
|
|
713
713
|
}
|
|
714
|
-
function
|
|
715
|
-
return t === void 0 && (t = !1), !!n && t && n ===
|
|
714
|
+
function Ln(e, t, n) {
|
|
715
|
+
return t === void 0 && (t = !1), !!n && t && n === J(e);
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function Rn(e, t, n, r) {
|
|
718
718
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
719
|
-
let i = e.getBoundingClientRect(), a =
|
|
720
|
-
t && (r ?
|
|
721
|
-
let s =
|
|
719
|
+
let i = e.getBoundingClientRect(), a = Nn(e), o = K(1);
|
|
720
|
+
t && (r ? X(r) && (o = Pn(r)) : o = Pn(e));
|
|
721
|
+
let s = Ln(a, n, r) ? In(a) : K(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;
|
|
722
722
|
if (a && r) {
|
|
723
|
-
let e =
|
|
723
|
+
let e = J(a), t = X(r) ? J(r) : r, n = e, i = jn(n);
|
|
724
724
|
for (; i && t !== n;) {
|
|
725
|
-
let e =
|
|
726
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n =
|
|
725
|
+
let e = Pn(i), t = i.getBoundingClientRect(), r = Q(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
726
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = J(i), i = jn(n);
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
|
-
return
|
|
729
|
+
return en({
|
|
730
730
|
width: u,
|
|
731
731
|
height: d,
|
|
732
732
|
x: c,
|
|
733
733
|
y: l
|
|
734
734
|
});
|
|
735
735
|
}
|
|
736
|
-
function Rn(e, t) {
|
|
737
|
-
let n = En(e).scrollLeft;
|
|
738
|
-
return t ? t.left + n : Ln(dn(e)).left + n;
|
|
739
|
-
}
|
|
740
736
|
function zn(e, t) {
|
|
737
|
+
let n = Dn(e).scrollLeft;
|
|
738
|
+
return t ? t.left + n : Rn(Y(e)).left + n;
|
|
739
|
+
}
|
|
740
|
+
function Bn(e, t) {
|
|
741
741
|
let n = e.getBoundingClientRect();
|
|
742
742
|
return {
|
|
743
|
-
x: n.left + t.scrollLeft -
|
|
743
|
+
x: n.left + t.scrollLeft - zn(e, n),
|
|
744
744
|
y: n.top + t.scrollTop
|
|
745
745
|
};
|
|
746
746
|
}
|
|
747
|
-
function
|
|
748
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
747
|
+
function Vn(e) {
|
|
748
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Y(r), s = t ? vn(t.floating) : !1;
|
|
749
749
|
if (r === o || s && a) return n;
|
|
750
750
|
let c = {
|
|
751
751
|
scrollLeft: 0,
|
|
752
752
|
scrollTop: 0
|
|
753
|
-
}, l =
|
|
754
|
-
if ((d || !a) && ((
|
|
755
|
-
let e =
|
|
756
|
-
l =
|
|
753
|
+
}, l = K(1), u = K(0), d = Z(r);
|
|
754
|
+
if ((d || !a) && ((pn(r) !== "body" || gn(o)) && (c = Dn(r)), d)) {
|
|
755
|
+
let e = Rn(r);
|
|
756
|
+
l = Pn(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
757
757
|
}
|
|
758
|
-
let f = o && !d && !a ?
|
|
758
|
+
let f = o && !d && !a ? Bn(o, c) : K(0);
|
|
759
759
|
return {
|
|
760
760
|
width: n.width * l.x,
|
|
761
761
|
height: n.height * l.y,
|
|
@@ -763,29 +763,29 @@ function Bn(e) {
|
|
|
763
763
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
764
764
|
};
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function Hn(e) {
|
|
767
767
|
return e.getClientRects ? Array.from(e.getClientRects()) : [];
|
|
768
768
|
}
|
|
769
|
-
function
|
|
770
|
-
let t =
|
|
771
|
-
return Q(n).direction === "rtl" && (a +=
|
|
769
|
+
function Un(e) {
|
|
770
|
+
let t = Dn(e), n = e.ownerDocument.body, r = Mt(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = Mt(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + zn(e), o = -t.scrollTop;
|
|
771
|
+
return Q(n).direction === "rtl" && (a += Mt(e.clientWidth, n.clientWidth) - r), {
|
|
772
772
|
width: r,
|
|
773
773
|
height: i,
|
|
774
774
|
x: a,
|
|
775
775
|
y: o
|
|
776
776
|
};
|
|
777
777
|
}
|
|
778
|
-
var
|
|
779
|
-
function
|
|
778
|
+
var Wn = 25;
|
|
779
|
+
function Gn(e, t, n) {
|
|
780
780
|
n === void 0 && (n = "viewport");
|
|
781
|
-
let r = n === "layoutViewport", i =
|
|
781
|
+
let r = n === "layoutViewport", i = J(e), a = Y(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
|
|
782
782
|
if (o) {
|
|
783
|
-
let e = !
|
|
783
|
+
let e = !Tn() || t === "fixed";
|
|
784
784
|
r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
|
|
785
785
|
}
|
|
786
|
-
if (
|
|
786
|
+
if (zn(a) <= 0) {
|
|
787
787
|
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;
|
|
788
|
-
o <=
|
|
788
|
+
o <= Wn && (s -= o);
|
|
789
789
|
}
|
|
790
790
|
return {
|
|
791
791
|
width: s,
|
|
@@ -794,8 +794,8 @@ function Wn(e, t, n) {
|
|
|
794
794
|
y: u
|
|
795
795
|
};
|
|
796
796
|
}
|
|
797
|
-
function
|
|
798
|
-
let n =
|
|
797
|
+
function Kn(e, t) {
|
|
798
|
+
let n = Rn(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Pn(e);
|
|
799
799
|
return {
|
|
800
800
|
width: e.clientWidth * a.x,
|
|
801
801
|
height: e.clientHeight * a.y,
|
|
@@ -803,13 +803,13 @@ function Gn(e, t) {
|
|
|
803
803
|
y: r * a.y
|
|
804
804
|
};
|
|
805
805
|
}
|
|
806
|
-
function
|
|
806
|
+
function qn(e, t, n) {
|
|
807
807
|
let r;
|
|
808
|
-
if (t === "viewport" || t === "layoutViewport") r =
|
|
809
|
-
else if (t === "document") r =
|
|
810
|
-
else if (
|
|
808
|
+
if (t === "viewport" || t === "layoutViewport") r = Gn(e, n, t);
|
|
809
|
+
else if (t === "document") r = Un(Y(e));
|
|
810
|
+
else if (X(t)) r = Kn(t, n);
|
|
811
811
|
else {
|
|
812
|
-
let n =
|
|
812
|
+
let n = In(e);
|
|
813
813
|
r = {
|
|
814
814
|
x: t.x - n.x,
|
|
815
815
|
y: t.y - n.y,
|
|
@@ -817,23 +817,23 @@ function Kn(e, t, n) {
|
|
|
817
817
|
height: t.height
|
|
818
818
|
};
|
|
819
819
|
}
|
|
820
|
-
return
|
|
820
|
+
return en(r);
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function Jn(e, t) {
|
|
823
823
|
let n = t.get(e);
|
|
824
824
|
if (n) return n;
|
|
825
|
-
let r =
|
|
826
|
-
for (;
|
|
827
|
-
let e = Q(o), t =
|
|
828
|
-
!t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o =
|
|
825
|
+
let r = An(e, [], !1).filter((e) => X(e) && pn(e) !== "body"), i = null, a = Q(e).position === "fixed", o = a ? On(e) : e;
|
|
826
|
+
for (; X(o) && !En(o);) {
|
|
827
|
+
let e = Q(o), t = Cn(o), n = i ? i.position : a ? "fixed" : "";
|
|
828
|
+
!t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = On(o);
|
|
829
829
|
}
|
|
830
830
|
return t.set(e, r), r;
|
|
831
831
|
}
|
|
832
|
-
function
|
|
833
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
832
|
+
function Yn(e) {
|
|
833
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? vn(t) ? [] : Jn(t, this._c) : [].concat(n), r], o = qn(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
834
834
|
for (let e = 1; e < a.length; e++) {
|
|
835
|
-
let n =
|
|
836
|
-
s =
|
|
835
|
+
let n = qn(t, a[e], i);
|
|
836
|
+
s = Mt(n.top, s), c = jt(n.right, c), l = jt(n.bottom, l), u = Mt(n.left, u);
|
|
837
837
|
}
|
|
838
838
|
return {
|
|
839
839
|
width: c - u,
|
|
@@ -842,24 +842,24 @@ function Jn(e) {
|
|
|
842
842
|
y: s
|
|
843
843
|
};
|
|
844
844
|
}
|
|
845
|
-
function
|
|
846
|
-
let { width: t, height: n } =
|
|
845
|
+
function Xn(e) {
|
|
846
|
+
let { width: t, height: n } = Mn(e);
|
|
847
847
|
return {
|
|
848
848
|
width: t,
|
|
849
849
|
height: n
|
|
850
850
|
};
|
|
851
851
|
}
|
|
852
|
-
function
|
|
853
|
-
let r =
|
|
852
|
+
function Zn(e, t, n) {
|
|
853
|
+
let r = Z(t), i = Y(t), a = n === "fixed", o = Rn(e, !0, a, t), s = {
|
|
854
854
|
scrollLeft: 0,
|
|
855
855
|
scrollTop: 0
|
|
856
|
-
}, c =
|
|
857
|
-
if ((r || !a) && ((
|
|
858
|
-
let e =
|
|
856
|
+
}, c = K(0);
|
|
857
|
+
if ((r || !a) && ((pn(t) !== "body" || gn(i)) && (s = Dn(t)), r)) {
|
|
858
|
+
let e = Rn(t, !0, a, t);
|
|
859
859
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
860
860
|
}
|
|
861
|
-
!r && i && (c.x =
|
|
862
|
-
let l = i && !r && !a ?
|
|
861
|
+
!r && i && (c.x = zn(i));
|
|
862
|
+
let l = i && !r && !a ? Bn(i, s) : K(0);
|
|
863
863
|
return {
|
|
864
864
|
x: o.left + s.scrollLeft - c.x - l.x,
|
|
865
865
|
y: o.top + s.scrollTop - c.y - l.y,
|
|
@@ -867,34 +867,34 @@ function Xn(e, t, n) {
|
|
|
867
867
|
height: o.height
|
|
868
868
|
};
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function Qn(e) {
|
|
871
871
|
return Q(e).position === "static";
|
|
872
872
|
}
|
|
873
|
-
function
|
|
874
|
-
if (!
|
|
873
|
+
function $n(e, t) {
|
|
874
|
+
if (!Z(e) || Q(e).position === "fixed") return null;
|
|
875
875
|
if (t) return t(e);
|
|
876
876
|
let n = e.offsetParent;
|
|
877
|
-
return
|
|
878
|
-
}
|
|
879
|
-
function
|
|
880
|
-
let n =
|
|
881
|
-
if (
|
|
882
|
-
if (!
|
|
883
|
-
let t =
|
|
884
|
-
for (; t && !
|
|
885
|
-
if (
|
|
886
|
-
t =
|
|
877
|
+
return Y(e) === n && (n = n.ownerDocument.body), n;
|
|
878
|
+
}
|
|
879
|
+
function er(e, t) {
|
|
880
|
+
let n = J(e);
|
|
881
|
+
if (vn(e)) return n;
|
|
882
|
+
if (!Z(e)) {
|
|
883
|
+
let t = On(e);
|
|
884
|
+
for (; t && !En(t);) {
|
|
885
|
+
if (X(t) && !Qn(t)) return t;
|
|
886
|
+
t = On(t);
|
|
887
887
|
}
|
|
888
888
|
return n;
|
|
889
889
|
}
|
|
890
|
-
let r =
|
|
891
|
-
for (; r &&
|
|
892
|
-
return r &&
|
|
890
|
+
let r = $n(e, t);
|
|
891
|
+
for (; r && _n(r) && Qn(r);) r = $n(r, t);
|
|
892
|
+
return r && En(r) && Qn(r) && !Cn(r) ? n : r || wn(e) || n;
|
|
893
893
|
}
|
|
894
|
-
var
|
|
895
|
-
let t = this.getOffsetParent ||
|
|
894
|
+
var tr = async function(e) {
|
|
895
|
+
let t = this.getOffsetParent || er, n = this.getDimensions, r = await n(e.floating);
|
|
896
896
|
return {
|
|
897
|
-
reference:
|
|
897
|
+
reference: Zn(e.reference, await t(e.floating), e.strategy),
|
|
898
898
|
floating: {
|
|
899
899
|
x: 0,
|
|
900
900
|
y: 0,
|
|
@@ -903,77 +903,77 @@ var er = async function(e) {
|
|
|
903
903
|
}
|
|
904
904
|
};
|
|
905
905
|
};
|
|
906
|
-
function
|
|
906
|
+
function nr(e) {
|
|
907
907
|
return Q(e).direction === "rtl";
|
|
908
908
|
}
|
|
909
|
-
var
|
|
910
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
911
|
-
getDocumentElement:
|
|
912
|
-
getClippingRect:
|
|
913
|
-
getOffsetParent:
|
|
914
|
-
getElementRects:
|
|
915
|
-
getClientRects:
|
|
916
|
-
getDimensions:
|
|
917
|
-
getScale:
|
|
918
|
-
isElement:
|
|
919
|
-
isRTL:
|
|
920
|
-
},
|
|
909
|
+
var rr = {
|
|
910
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Vn,
|
|
911
|
+
getDocumentElement: Y,
|
|
912
|
+
getClippingRect: Yn,
|
|
913
|
+
getOffsetParent: er,
|
|
914
|
+
getElementRects: tr,
|
|
915
|
+
getClientRects: Hn,
|
|
916
|
+
getDimensions: Xn,
|
|
917
|
+
getScale: Pn,
|
|
918
|
+
isElement: X,
|
|
919
|
+
isRTL: nr
|
|
920
|
+
}, ir = un, ar = dn, or = sn, sr = on, cr = (e, t, n) => {
|
|
921
921
|
let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
|
|
922
|
-
...
|
|
922
|
+
...rr,
|
|
923
923
|
...i.platform,
|
|
924
924
|
_c: r
|
|
925
925
|
};
|
|
926
|
-
return
|
|
926
|
+
return an(e, t, {
|
|
927
927
|
...i,
|
|
928
928
|
platform: a
|
|
929
929
|
});
|
|
930
930
|
};
|
|
931
931
|
//#endregion
|
|
932
932
|
//#region ../../node_modules/.pnpm/@floating-ui+vue@2.0.1_vue@3.5.42_typescript@6.0.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
|
|
933
|
-
function
|
|
933
|
+
function lr(e) {
|
|
934
934
|
return typeof e == "object" && !!e && "$el" in e;
|
|
935
935
|
}
|
|
936
|
-
function
|
|
937
|
-
if (
|
|
936
|
+
function ur(e) {
|
|
937
|
+
if (lr(e)) {
|
|
938
938
|
let t = e.$el;
|
|
939
|
-
return
|
|
939
|
+
return mn(t) && pn(t) === "#comment" ? null : t;
|
|
940
940
|
}
|
|
941
941
|
return e;
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function dr(e) {
|
|
944
944
|
return {
|
|
945
945
|
name: "arrow",
|
|
946
946
|
options: e,
|
|
947
947
|
fn(t) {
|
|
948
|
-
let n =
|
|
949
|
-
return n == null ? {} :
|
|
948
|
+
let n = ur(We(e.element));
|
|
949
|
+
return n == null ? {} : sr({
|
|
950
950
|
element: n,
|
|
951
951
|
padding: e.padding
|
|
952
952
|
}).fn(t);
|
|
953
953
|
}
|
|
954
954
|
};
|
|
955
955
|
}
|
|
956
|
-
function
|
|
956
|
+
function fr(e) {
|
|
957
957
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
958
958
|
}
|
|
959
|
-
function
|
|
960
|
-
let n =
|
|
959
|
+
function pr(e, t) {
|
|
960
|
+
let n = fr(e);
|
|
961
961
|
return Math.round(t * n) / n;
|
|
962
962
|
}
|
|
963
|
-
function
|
|
963
|
+
function mr(e, t, n) {
|
|
964
964
|
n === void 0 && (n = {});
|
|
965
|
-
let r = n.whileElementsMounted, i =
|
|
965
|
+
let r = n.whileElementsMounted, i = j(() => We(n.open) ?? !0), a = j(() => We(n.middleware)), o = j(() => We(n.placement) ?? "bottom"), s = j(() => We(n.strategy) ?? "absolute"), c = j(() => We(n.transform) ?? !0), l = j(() => ur(e.value)), u = j(() => ur(t.value)), d = V(0), f = V(0), p = V(s.value), m = V(o.value), h = Ue({}), g = V(!1), _ = j(() => {
|
|
966
966
|
let e = {
|
|
967
967
|
position: p.value,
|
|
968
968
|
left: "0",
|
|
969
969
|
top: "0"
|
|
970
970
|
};
|
|
971
971
|
if (!u.value) return e;
|
|
972
|
-
let t =
|
|
972
|
+
let t = pr(u.value, d.value), n = pr(u.value, f.value);
|
|
973
973
|
return c.value ? {
|
|
974
974
|
...e,
|
|
975
975
|
transform: "translate(" + t + "px, " + n + "px)",
|
|
976
|
-
...
|
|
976
|
+
...fr(u.value) >= 1.5 && { willChange: "transform" }
|
|
977
977
|
} : {
|
|
978
978
|
position: p.value,
|
|
979
979
|
left: t + "px",
|
|
@@ -983,7 +983,7 @@ function pr(e, t, n) {
|
|
|
983
983
|
function y() {
|
|
984
984
|
if (l.value == null || u.value == null) return;
|
|
985
985
|
let e = i.value;
|
|
986
|
-
|
|
986
|
+
cr(l.value, u.value, {
|
|
987
987
|
middleware: a.value,
|
|
988
988
|
placement: o.value,
|
|
989
989
|
strategy: s.value
|
|
@@ -1007,36 +1007,36 @@ function pr(e, t, n) {
|
|
|
1007
1007
|
function S() {
|
|
1008
1008
|
i.value || (g.value = !1);
|
|
1009
1009
|
}
|
|
1010
|
-
return
|
|
1010
|
+
return G([
|
|
1011
1011
|
a,
|
|
1012
1012
|
o,
|
|
1013
1013
|
s,
|
|
1014
1014
|
i
|
|
1015
|
-
], y, { flush: "sync" }),
|
|
1016
|
-
x:
|
|
1017
|
-
y:
|
|
1018
|
-
strategy:
|
|
1019
|
-
placement:
|
|
1020
|
-
middlewareData:
|
|
1021
|
-
isPositioned:
|
|
1015
|
+
], y, { flush: "sync" }), G([l, u], x, { flush: "sync" }), G(i, S, { flush: "sync" }), Oe() && Ie(b), {
|
|
1016
|
+
x: He(d),
|
|
1017
|
+
y: He(f),
|
|
1018
|
+
strategy: He(p),
|
|
1019
|
+
placement: He(m),
|
|
1020
|
+
middlewareData: He(h),
|
|
1021
|
+
isPositioned: He(g),
|
|
1022
1022
|
floatingStyles: _,
|
|
1023
1023
|
update: y
|
|
1024
1024
|
};
|
|
1025
1025
|
}
|
|
1026
1026
|
//#endregion
|
|
1027
1027
|
//#region src/client/theme-default/components/TdTooltip.vue
|
|
1028
|
-
var
|
|
1028
|
+
var hr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
1029
1029
|
inheritAttrs: !1,
|
|
1030
1030
|
__name: "TdTooltip",
|
|
1031
1031
|
props: { text: {} },
|
|
1032
1032
|
setup(e) {
|
|
1033
|
-
let t =
|
|
1033
|
+
let t = qe("trigger"), n = qe("tooltip"), r = qe("arrowEl"), i = V(!1), a, o, { floatingStyles: s, middlewareData: c, placement: l } = mr(t, n, {
|
|
1034
1034
|
placement: "right",
|
|
1035
1035
|
middleware: [
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1036
|
+
ir(8),
|
|
1037
|
+
or(),
|
|
1038
|
+
ar({ padding: 8 }),
|
|
1039
|
+
dr({ element: r })
|
|
1040
1040
|
]
|
|
1041
1041
|
});
|
|
1042
1042
|
function u() {
|
|
@@ -1048,199 +1048,199 @@ var mr = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1048
1048
|
i.value = !0;
|
|
1049
1049
|
}, 400));
|
|
1050
1050
|
}
|
|
1051
|
-
|
|
1051
|
+
Pe(u);
|
|
1052
1052
|
function f() {
|
|
1053
1053
|
u(), o = setTimeout(() => {
|
|
1054
1054
|
i.value = !1;
|
|
1055
1055
|
}, 100);
|
|
1056
1056
|
}
|
|
1057
|
-
return (r, a) => (
|
|
1057
|
+
return (r, a) => (B(), P(A, null, [F("span", je({
|
|
1058
1058
|
ref_key: "trigger",
|
|
1059
1059
|
ref: t
|
|
1060
1060
|
}, r.$attrs, {
|
|
1061
1061
|
class: "td-tooltip-trigger",
|
|
1062
1062
|
onMouseenter: d,
|
|
1063
1063
|
onMouseleave: f
|
|
1064
|
-
}), [
|
|
1064
|
+
}), [ze(r.$slots, "default", {}, void 0, !0)], 16), (B(), M(Ee, { to: "body" }, [i.value ? (B(), P("div", {
|
|
1065
1065
|
key: 0,
|
|
1066
1066
|
ref_key: "tooltip",
|
|
1067
1067
|
ref: n,
|
|
1068
1068
|
class: "td-tooltip",
|
|
1069
|
-
style:
|
|
1069
|
+
style: Ne(W(s)),
|
|
1070
1070
|
role: "tooltip",
|
|
1071
1071
|
onMouseenter: u,
|
|
1072
1072
|
onMouseleave: f
|
|
1073
|
-
}, [
|
|
1073
|
+
}, [I(U(e.text) + " ", 1), F("div", {
|
|
1074
1074
|
ref: "arrowEl",
|
|
1075
1075
|
class: "td-tooltip-arrow",
|
|
1076
|
-
style:
|
|
1077
|
-
left:
|
|
1078
|
-
top:
|
|
1079
|
-
...
|
|
1080
|
-
...
|
|
1081
|
-
...
|
|
1082
|
-
...
|
|
1076
|
+
style: Ne({
|
|
1077
|
+
left: W(c).arrow?.x === void 0 ? "" : `${W(c).arrow.x}px`,
|
|
1078
|
+
top: W(c).arrow?.y === void 0 ? "" : `${W(c).arrow.y}px`,
|
|
1079
|
+
...W(l).startsWith("bottom") ? { top: "-4px" } : {},
|
|
1080
|
+
...W(l).startsWith("top") ? { bottom: "-4px" } : {},
|
|
1081
|
+
...W(l).startsWith("right") ? { left: "-4px" } : {},
|
|
1082
|
+
...W(l).startsWith("left") ? { right: "-4px" } : {}
|
|
1083
1083
|
})
|
|
1084
|
-
}, null, 4)], 36)) :
|
|
1084
|
+
}, null, 4)], 36)) : N("", !0)]))], 64));
|
|
1085
1085
|
}
|
|
1086
|
-
}), [["__scopeId", "data-v-c90aabc2"]]),
|
|
1086
|
+
}), [["__scopeId", "data-v-c90aabc2"]]), gr = {
|
|
1087
1087
|
key: 0,
|
|
1088
1088
|
class: "td-tree-node"
|
|
1089
|
-
},
|
|
1089
|
+
}, _r = { class: "td-tree-label" }, vr = ["aria-expanded"], yr = { class: "td-tree-label-text" }, br = ["href"], xr = { class: "td-tree-count" }, Sr = {
|
|
1090
1090
|
key: 0,
|
|
1091
1091
|
class: "td-tree-children"
|
|
1092
|
-
},
|
|
1092
|
+
}, Cr = ["href"], wr = ["innerHTML"], Tr = {
|
|
1093
1093
|
key: 2,
|
|
1094
1094
|
class: "td-tree-time"
|
|
1095
|
-
},
|
|
1095
|
+
}, Er = 5, Dr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
1096
1096
|
__name: "TdTreeNode",
|
|
1097
1097
|
props: {
|
|
1098
1098
|
node: {},
|
|
1099
1099
|
urlPrefix: { default: "" }
|
|
1100
1100
|
},
|
|
1101
|
-
setup(
|
|
1102
|
-
let
|
|
1103
|
-
function
|
|
1101
|
+
setup(n) {
|
|
1102
|
+
let r = k(), { withBase: i } = O(), a = j(() => ee(n.urlPrefix, n.node.name)), o = j(() => m(n.node)), s = j(() => o.value ? C(o.value.filepath) : l(a.value)), c = j(() => i(s.value)), d = j(() => o.value?.label ?? e(n.node.name)), f = j(() => o.value?.icon ? ue(o.value.icon.name) : void 0), p = j(() => n.node.entries.filter((e) => e.kind === "dir" || !S(e.item.filepath))), g = j(() => 0 < n.node.entries.length), _ = j(() => v(n.node));
|
|
1103
|
+
function v(e) {
|
|
1104
1104
|
let t = 0;
|
|
1105
|
-
for (let n of e.entries) n.kind === "file" ? t++ : t +=
|
|
1105
|
+
for (let n of e.entries) n.kind === "file" ? t++ : t += v(n.node);
|
|
1106
1106
|
return t;
|
|
1107
1107
|
}
|
|
1108
|
-
let
|
|
1109
|
-
if (
|
|
1108
|
+
let y = V(!t(a.value, r.path)), b = V(!1), x = j(() => p.value.filter((e) => e.kind === "file").length), w = j(() => b.value ? 0 : Math.max(0, x.value - Er)), te = j(() => {
|
|
1109
|
+
if (b.value) return p.value;
|
|
1110
1110
|
let e = 0;
|
|
1111
|
-
return
|
|
1111
|
+
return p.value.filter((t) => t.kind === "dir" || ++e <= Er);
|
|
1112
1112
|
});
|
|
1113
|
-
|
|
1114
|
-
|
|
1113
|
+
G(() => r.path, (e) => {
|
|
1114
|
+
t(a.value, e) && (y.value = !1);
|
|
1115
1115
|
});
|
|
1116
|
-
function
|
|
1117
|
-
|
|
1116
|
+
function ne() {
|
|
1117
|
+
b.value = !0;
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1120
|
-
return
|
|
1119
|
+
function T(e) {
|
|
1120
|
+
return r.path === e;
|
|
1121
1121
|
}
|
|
1122
|
-
function
|
|
1123
|
-
|
|
1122
|
+
function E() {
|
|
1123
|
+
y.value = !y.value;
|
|
1124
1124
|
}
|
|
1125
|
-
return (e,
|
|
1126
|
-
let
|
|
1127
|
-
return
|
|
1128
|
-
|
|
1125
|
+
return (e, t) => {
|
|
1126
|
+
let n = Be("TdTreeNode", !0);
|
|
1127
|
+
return g.value ? (B(), P("div", gr, [F("div", _r, [
|
|
1128
|
+
F("button", {
|
|
1129
1129
|
type: "button",
|
|
1130
1130
|
class: "td-tree-toggle",
|
|
1131
|
-
"aria-expanded": !
|
|
1132
|
-
onClick:
|
|
1133
|
-
}, [
|
|
1131
|
+
"aria-expanded": !y.value,
|
|
1132
|
+
onClick: E
|
|
1133
|
+
}, [L(W(it), {
|
|
1134
1134
|
size: 14,
|
|
1135
|
-
class:
|
|
1136
|
-
}, null, 8, ["class"]),
|
|
1137
|
-
|
|
1135
|
+
class: z(["td-tree-caret", { "is-collapsed": y.value }])
|
|
1136
|
+
}, null, 8, ["class"]), F("span", yr, U(d.value), 1)], 8, vr),
|
|
1137
|
+
F("a", {
|
|
1138
1138
|
href: c.value,
|
|
1139
|
-
class:
|
|
1140
|
-
}, [f.value ? (
|
|
1139
|
+
class: z(["td-tree-index-btn", { "is-active": T(s.value) }])
|
|
1140
|
+
}, [f.value ? (B(), M(Ve(f.value), {
|
|
1141
1141
|
key: 0,
|
|
1142
1142
|
size: 12
|
|
1143
|
-
})) :
|
|
1143
|
+
})) : T(s.value) ? (B(), M(W(ft), {
|
|
1144
1144
|
key: 1,
|
|
1145
1145
|
size: 12
|
|
1146
|
-
})) : (
|
|
1146
|
+
})) : (B(), M(W(ie), {
|
|
1147
1147
|
key: 2,
|
|
1148
1148
|
size: 12
|
|
1149
|
-
}))], 10,
|
|
1150
|
-
|
|
1151
|
-
]),
|
|
1149
|
+
}))], 10, br),
|
|
1150
|
+
F("span", xr, U(_.value), 1)
|
|
1151
|
+
]), y.value ? N("", !0) : (B(), P("div", Sr, [(B(!0), P(A, null, H(te.value, (e) => (B(), P(A, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (B(), M(n, {
|
|
1152
1152
|
key: 0,
|
|
1153
1153
|
node: e.node,
|
|
1154
1154
|
"url-prefix": a.value
|
|
1155
|
-
}, null, 8, ["node", "url-prefix"])) : (
|
|
1155
|
+
}, null, 8, ["node", "url-prefix"])) : (B(), P("a", {
|
|
1156
1156
|
key: 1,
|
|
1157
|
-
href:
|
|
1158
|
-
class:
|
|
1157
|
+
href: W(i)(W(C)(e.item.filepath)),
|
|
1158
|
+
class: z(["td-tree-link", { "is-active": T(W(C)(e.item.filepath)) }])
|
|
1159
1159
|
}, [
|
|
1160
|
-
e.item.icon &&
|
|
1160
|
+
e.item.icon && W(ue)(e.item.icon.name) ? (B(), M(Ve(W(ue)(e.item.icon.name)), {
|
|
1161
1161
|
key: 0,
|
|
1162
1162
|
size: 14,
|
|
1163
1163
|
class: "td-tree-file-icon"
|
|
1164
|
-
})) : (
|
|
1164
|
+
})) : (B(), M(W(re), {
|
|
1165
1165
|
key: 1,
|
|
1166
1166
|
size: 14,
|
|
1167
1167
|
class: "td-tree-file-icon"
|
|
1168
1168
|
})),
|
|
1169
|
-
|
|
1169
|
+
L(hr, {
|
|
1170
1170
|
class: "td-tree-link-text",
|
|
1171
|
-
text:
|
|
1171
|
+
text: W(u)(e.item.filepath, e.item.label)
|
|
1172
1172
|
}, {
|
|
1173
|
-
default:
|
|
1173
|
+
default: Xe(() => [F("span", { innerHTML: W(At)(W(u)(e.item.filepath, e.item.label)) }, null, 8, wr)]),
|
|
1174
1174
|
_: 2
|
|
1175
1175
|
}, 1032, ["text"]),
|
|
1176
|
-
e.item.metadata ? (
|
|
1177
|
-
], 10,
|
|
1176
|
+
e.item.metadata ? (B(), P("span", Tr, U(W(h)(e.item.metadata.mtime)), 1)) : N("", !0)
|
|
1177
|
+
], 10, Cr))], 64))), 128)), w.value > 0 && !b.value ? (B(), P("button", {
|
|
1178
1178
|
key: 0,
|
|
1179
1179
|
class: "td-tree-more",
|
|
1180
1180
|
type: "button",
|
|
1181
|
-
onClick:
|
|
1182
|
-
},
|
|
1181
|
+
onClick: ne
|
|
1182
|
+
}, U(w.value) + " more... ", 1)) : N("", !0)]))])) : N("", !0);
|
|
1183
1183
|
};
|
|
1184
1184
|
}
|
|
1185
|
-
}), [["__scopeId", "data-v-2c080833"]]),
|
|
1185
|
+
}), [["__scopeId", "data-v-2c080833"]]), Or = ["href"], kr = {
|
|
1186
1186
|
key: 0,
|
|
1187
1187
|
class: "td-root-link-time"
|
|
1188
|
-
},
|
|
1188
|
+
}, Ar = ["href"], jr = { class: "td-root-link-text" }, Mr = {
|
|
1189
1189
|
key: 0,
|
|
1190
1190
|
class: "td-root-link-time"
|
|
1191
|
-
},
|
|
1191
|
+
}, Nr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
1192
1192
|
__name: "TdContentNav",
|
|
1193
1193
|
props: { tree: {} },
|
|
1194
1194
|
setup(e) {
|
|
1195
|
-
let
|
|
1196
|
-
function
|
|
1197
|
-
return
|
|
1195
|
+
let t = k(), { withBase: n } = O(), r = j(() => e.tree.entries.find((e) => e.kind === "file" && S(e.item.filepath))?.item), i = j(() => e.tree.entries.filter((e) => e.kind === "dir" || !S(e.item.filepath)));
|
|
1196
|
+
function a(e) {
|
|
1197
|
+
return t.path === e;
|
|
1198
1198
|
}
|
|
1199
|
-
return (e,
|
|
1200
|
-
href:
|
|
1201
|
-
class:
|
|
1199
|
+
return (e, t) => (B(), P("nav", null, [F("a", {
|
|
1200
|
+
href: W(n)(r.value ? W(C)(r.value.filepath) : W(l)("/")),
|
|
1201
|
+
class: z(["td-root-link", { "is-active": a(r.value ? W(C)(r.value.filepath) : W(l)("/")) }])
|
|
1202
1202
|
}, [
|
|
1203
|
-
|
|
1203
|
+
L(W(be), {
|
|
1204
1204
|
size: 14,
|
|
1205
1205
|
class: "td-root-link-icon"
|
|
1206
1206
|
}),
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
], 10,
|
|
1207
|
+
t[0] ||= F("span", { class: "td-root-link-text" }, "Overview", -1),
|
|
1208
|
+
r.value ? (B(), P("span", kr, U(r.value.metadata ? W(h)(r.value.metadata.mtime) : ""), 1)) : N("", !0)
|
|
1209
|
+
], 10, Or), (B(!0), P(A, null, H(i.value, (e) => (B(), P(A, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (B(), M(Dr, {
|
|
1210
1210
|
key: 0,
|
|
1211
1211
|
node: e.node
|
|
1212
|
-
}, null, 8, ["node"])) : (
|
|
1212
|
+
}, null, 8, ["node"])) : (B(), P("a", {
|
|
1213
1213
|
key: 1,
|
|
1214
|
-
href:
|
|
1215
|
-
class:
|
|
1214
|
+
href: W(n)(W(C)(e.item.filepath)),
|
|
1215
|
+
class: z(["td-root-link", { "is-active": a(W(C)(e.item.filepath)) }])
|
|
1216
1216
|
}, [
|
|
1217
|
-
|
|
1217
|
+
L(W(re), {
|
|
1218
1218
|
size: 14,
|
|
1219
1219
|
class: "td-root-link-icon"
|
|
1220
1220
|
}),
|
|
1221
|
-
|
|
1222
|
-
e.item.metadata ? (
|
|
1223
|
-
], 10,
|
|
1221
|
+
F("span", jr, U(W(u)(e.item.filepath, e.item.label)), 1),
|
|
1222
|
+
e.item.metadata ? (B(), P("span", Mr, U(W(h)(e.item.metadata.mtime)), 1)) : N("", !0)
|
|
1223
|
+
], 10, Ar))], 64))), 128))]));
|
|
1224
1224
|
}
|
|
1225
|
-
}), [["__scopeId", "data-v-7cee93ed"]]),
|
|
1225
|
+
}), [["__scopeId", "data-v-7cee93ed"]]), Pr = { class: "td-footer" }, Fr = { key: 0 }, Ir = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
1226
1226
|
__name: "TdFooter",
|
|
1227
1227
|
setup(e) {
|
|
1228
|
-
let t =
|
|
1229
|
-
return (e, r) => (
|
|
1228
|
+
let t = O(), n = (/* @__PURE__ */ new Date()).getFullYear();
|
|
1229
|
+
return (e, r) => (B(), P("footer", Pr, [r[0] ||= F("span", null, [I(" Powered by "), F("a", {
|
|
1230
1230
|
href: "https://github.com/huydo862003/typerighter",
|
|
1231
1231
|
target: "_blank",
|
|
1232
1232
|
rel: "noopener noreferrer",
|
|
1233
1233
|
class: "td-footer-link"
|
|
1234
|
-
}, "Typerighter")], -1),
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
])) :
|
|
1234
|
+
}, "Typerighter")], -1), W(t).author || W(t).license ? (B(), P("span", Fr, [
|
|
1235
|
+
W(t).license ? (B(), P(A, { key: 0 }, [I(U(W(t).license), 1)], 64)) : N("", !0),
|
|
1236
|
+
W(t).license && W(t).author ? (B(), P(A, { key: 1 }, [I(" · ")], 64)) : N("", !0),
|
|
1237
|
+
W(t).author ? (B(), P(A, { key: 2 }, [I("© " + U(W(n)) + " " + U(W(t).author), 1)], 64)) : N("", !0)
|
|
1238
|
+
])) : N("", !0)]));
|
|
1239
1239
|
}
|
|
1240
|
-
}), [["__scopeId", "data-v-1295a06e"]]),
|
|
1240
|
+
}), [["__scopeId", "data-v-1295a06e"]]), Lr = {
|
|
1241
1241
|
key: 0,
|
|
1242
1242
|
class: "td-dropdown-panel"
|
|
1243
|
-
},
|
|
1243
|
+
}, Rr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
1244
1244
|
inheritAttrs: !1,
|
|
1245
1245
|
__name: "TdDropdown",
|
|
1246
1246
|
props: {
|
|
@@ -1252,165 +1252,165 @@ var mr = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1252
1252
|
},
|
|
1253
1253
|
emits: ["update:open"],
|
|
1254
1254
|
setup(e) {
|
|
1255
|
-
let t =
|
|
1255
|
+
let t = Ke(e, "open"), n = qe("wrapper");
|
|
1256
1256
|
function r(e) {
|
|
1257
1257
|
n.value?.contains(e.target) || (t.value = !1);
|
|
1258
1258
|
}
|
|
1259
1259
|
function i() {
|
|
1260
1260
|
t.value = !t.value;
|
|
1261
1261
|
}
|
|
1262
|
-
return
|
|
1262
|
+
return G(t, (e) => {
|
|
1263
1263
|
typeof document > "u" || (e ? document.addEventListener("click", r) : document.removeEventListener("click", r));
|
|
1264
|
-
}),
|
|
1264
|
+
}), Le(() => {
|
|
1265
1265
|
typeof document > "u" || document.removeEventListener("click", r);
|
|
1266
|
-
}), (e, r) => (
|
|
1266
|
+
}), (e, r) => (B(), P("span", je({
|
|
1267
1267
|
ref_key: "wrapper",
|
|
1268
1268
|
ref: n
|
|
1269
|
-
}, e.$attrs, { class: "td-dropdown" }), [
|
|
1269
|
+
}, e.$attrs, { class: "td-dropdown" }), [F("span", { onClick: i }, [ze(e.$slots, "trigger", {}, void 0, !0)]), t.value ? (B(), P("div", Lr, [ze(e.$slots, "default", {}, void 0, !0)])) : N("", !0)], 16));
|
|
1270
1270
|
}
|
|
1271
|
-
}), [["__scopeId", "data-v-d71f3c74"]]),
|
|
1271
|
+
}), [["__scopeId", "data-v-d71f3c74"]]), zr = {
|
|
1272
1272
|
class: "td-breadcrumb",
|
|
1273
1273
|
"aria-label": "Breadcrumb"
|
|
1274
|
-
},
|
|
1274
|
+
}, Br = ["href"], Vr = {
|
|
1275
1275
|
type: "button",
|
|
1276
1276
|
class: "td-breadcrumb-ellipsis"
|
|
1277
|
-
},
|
|
1277
|
+
}, Hr = ["href"], Ur = ["href"], Wr = {
|
|
1278
1278
|
key: 1,
|
|
1279
1279
|
class: "td-breadcrumb-current"
|
|
1280
|
-
},
|
|
1280
|
+
}, Gr = ["href"], Kr = {
|
|
1281
1281
|
key: 1,
|
|
1282
1282
|
class: "td-breadcrumb-current"
|
|
1283
|
-
},
|
|
1283
|
+
}, qr = 3, Jr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
1284
1284
|
__name: "TdBreadcrumb",
|
|
1285
|
-
setup(
|
|
1286
|
-
let
|
|
1287
|
-
let
|
|
1285
|
+
setup(t) {
|
|
1286
|
+
let r = k(), { withBase: i } = O(), o = V(!1), s = j(() => {
|
|
1287
|
+
let t = a(r.path), o = [{
|
|
1288
1288
|
name: "Home",
|
|
1289
|
-
href:
|
|
1289
|
+
href: i(l("/"))
|
|
1290
1290
|
}];
|
|
1291
|
-
if (
|
|
1292
|
-
let
|
|
1293
|
-
for (let
|
|
1294
|
-
let
|
|
1295
|
-
|
|
1296
|
-
name:
|
|
1297
|
-
href:
|
|
1291
|
+
if (t === "/") return o;
|
|
1292
|
+
let s = t.replace(/^\//, "").split("/"), c = n(t) ? s.slice(0, -1) : s;
|
|
1293
|
+
for (let t = 0; t < c.length; t++) {
|
|
1294
|
+
let n = "/" + c.slice(0, t + 1).join("/"), r = t === c.length - 1;
|
|
1295
|
+
o.push({
|
|
1296
|
+
name: e(c[t]),
|
|
1297
|
+
href: i(r ? n : l(n))
|
|
1298
1298
|
});
|
|
1299
1299
|
}
|
|
1300
|
-
return
|
|
1301
|
-
}),
|
|
1302
|
-
return
|
|
1303
|
-
|
|
1304
|
-
}), (e, t) => (
|
|
1305
|
-
href:
|
|
1300
|
+
return o;
|
|
1301
|
+
}), c = j(() => qr < s.value.length), u = j(() => s.value.slice(1, -2));
|
|
1302
|
+
return G(() => r.path, () => {
|
|
1303
|
+
o.value = !1;
|
|
1304
|
+
}), (e, t) => (B(), P("nav", zr, [F("a", {
|
|
1305
|
+
href: s.value[0].href,
|
|
1306
1306
|
class: "td-breadcrumb-link td-breadcrumb-home"
|
|
1307
|
-
},
|
|
1308
|
-
t[2] ||=
|
|
1307
|
+
}, U(s.value[0].name), 9, Br), c.value ? (B(), P(A, { key: 0 }, [
|
|
1308
|
+
t[2] ||= F("span", {
|
|
1309
1309
|
class: "td-breadcrumb-sep",
|
|
1310
1310
|
"aria-hidden": "true"
|
|
1311
1311
|
}, "/", -1),
|
|
1312
|
-
|
|
1313
|
-
open:
|
|
1314
|
-
"onUpdate:open": t[0] ||= (e) =>
|
|
1312
|
+
L(Rr, {
|
|
1313
|
+
open: o.value,
|
|
1314
|
+
"onUpdate:open": t[0] ||= (e) => o.value = e
|
|
1315
1315
|
}, {
|
|
1316
|
-
trigger:
|
|
1317
|
-
default:
|
|
1316
|
+
trigger: Xe(() => [F("button", Vr, [L(W(dt), { size: 14 })])]),
|
|
1317
|
+
default: Xe(() => [(B(!0), P(A, null, H(u.value, (e) => (B(), P("a", {
|
|
1318
1318
|
key: e.href,
|
|
1319
1319
|
href: e.href,
|
|
1320
1320
|
class: "td-breadcrumb-dropdown-item"
|
|
1321
|
-
},
|
|
1321
|
+
}, U(e.name), 9, Hr))), 128))]),
|
|
1322
1322
|
_: 1
|
|
1323
1323
|
}, 8, ["open"]),
|
|
1324
|
-
(
|
|
1324
|
+
(B(!0), P(A, null, H(s.value.slice(-2), (e) => (B(), P(A, { key: e.href }, [t[1] ||= F("span", {
|
|
1325
1325
|
class: "td-breadcrumb-sep",
|
|
1326
1326
|
"aria-hidden": "true"
|
|
1327
|
-
}, "/", -1), e ===
|
|
1327
|
+
}, "/", -1), e === s.value[s.value.length - 1] ? (B(), P("span", Wr, U(e.name), 1)) : (B(), P("a", {
|
|
1328
1328
|
key: 0,
|
|
1329
1329
|
href: e.href,
|
|
1330
1330
|
class: "td-breadcrumb-link"
|
|
1331
|
-
},
|
|
1332
|
-
], 64)) : (
|
|
1331
|
+
}, U(e.name), 9, Ur))], 64))), 128))
|
|
1332
|
+
], 64)) : (B(!0), P(A, { key: 1 }, H(s.value.slice(1), (e, n) => (B(), P(A, { key: e.href }, [t[3] ||= F("span", {
|
|
1333
1333
|
class: "td-breadcrumb-sep",
|
|
1334
1334
|
"aria-hidden": "true"
|
|
1335
|
-
}, "/", -1), n <
|
|
1335
|
+
}, "/", -1), n < s.value.length - 2 ? (B(), P("a", {
|
|
1336
1336
|
key: 0,
|
|
1337
1337
|
href: e.href,
|
|
1338
1338
|
class: "td-breadcrumb-link"
|
|
1339
|
-
},
|
|
1339
|
+
}, U(e.name), 9, Gr)) : (B(), P("span", Kr, U(e.name), 1))], 64))), 128))]));
|
|
1340
1340
|
}
|
|
1341
|
-
}), [["__scopeId", "data-v-5315d390"]]),
|
|
1341
|
+
}), [["__scopeId", "data-v-5315d390"]]), Yr = {
|
|
1342
1342
|
key: 0,
|
|
1343
1343
|
class: "td-header-nav"
|
|
1344
|
-
},
|
|
1344
|
+
}, Xr = [
|
|
1345
1345
|
"href",
|
|
1346
1346
|
"target",
|
|
1347
1347
|
"rel"
|
|
1348
|
-
],
|
|
1348
|
+
], Zr = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
1349
1349
|
__name: "TdHeaderNavBar",
|
|
1350
1350
|
setup(e) {
|
|
1351
|
-
let t =
|
|
1352
|
-
function
|
|
1353
|
-
return !
|
|
1351
|
+
let t = O(), { withBase: n } = t, r = k();
|
|
1352
|
+
function i(e) {
|
|
1353
|
+
return !s(e) && r.path.startsWith(n(e));
|
|
1354
1354
|
}
|
|
1355
|
-
return (e,
|
|
1355
|
+
return (e, r) => W(t).nav?.length ? (B(), P("nav", Yr, [(B(!0), P(A, null, H(W(t).nav, (e) => (B(), P("a", {
|
|
1356
1356
|
key: e.link,
|
|
1357
|
-
href:
|
|
1358
|
-
target:
|
|
1359
|
-
rel:
|
|
1360
|
-
class:
|
|
1361
|
-
}, [
|
|
1357
|
+
href: W(s)(e.link) ? e.link : W(n)(e.link),
|
|
1358
|
+
target: W(s)(e.link) ? "_blank" : void 0,
|
|
1359
|
+
rel: W(s)(e.link) ? "noopener noreferrer" : void 0,
|
|
1360
|
+
class: z(["td-header-nav-link", { "is-active": i(e.link) }])
|
|
1361
|
+
}, [I(U(e.title), 1), W(s)(e.link) ? (B(), M(W(E), {
|
|
1362
1362
|
key: 0,
|
|
1363
1363
|
size: 14
|
|
1364
|
-
})) :
|
|
1364
|
+
})) : N("", !0)], 10, Xr))), 128))])) : N("", !0);
|
|
1365
1365
|
}
|
|
1366
|
-
}), [["__scopeId", "data-v-fbe56ebb"]]),
|
|
1366
|
+
}), [["__scopeId", "data-v-fbe56ebb"]]), Qr = {
|
|
1367
1367
|
key: 0,
|
|
1368
1368
|
class: "td-menu-nav"
|
|
1369
|
-
},
|
|
1369
|
+
}, $r = [
|
|
1370
1370
|
"href",
|
|
1371
1371
|
"target",
|
|
1372
1372
|
"rel"
|
|
1373
|
-
],
|
|
1373
|
+
], ei = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
1374
1374
|
__name: "TdHeaderNavMenu",
|
|
1375
1375
|
setup(e) {
|
|
1376
|
-
let t =
|
|
1377
|
-
function
|
|
1378
|
-
return !
|
|
1376
|
+
let t = O(), { withBase: n } = t, r = k();
|
|
1377
|
+
function i(e) {
|
|
1378
|
+
return !s(e) && r.path.startsWith(n(e));
|
|
1379
1379
|
}
|
|
1380
|
-
return (e,
|
|
1380
|
+
return (e, r) => W(t).nav?.length ? (B(), P("nav", Qr, [(B(!0), P(A, null, H(W(t).nav, (e) => (B(), P("a", {
|
|
1381
1381
|
key: e.link,
|
|
1382
|
-
href:
|
|
1383
|
-
target:
|
|
1384
|
-
rel:
|
|
1385
|
-
class:
|
|
1382
|
+
href: W(s)(e.link) ? e.link : W(n)(e.link),
|
|
1383
|
+
target: W(s)(e.link) ? "_blank" : void 0,
|
|
1384
|
+
rel: W(s)(e.link) ? "noopener noreferrer" : void 0,
|
|
1385
|
+
class: z(["td-menu-nav-item", { "is-active": i(e.link) }])
|
|
1386
1386
|
}, [
|
|
1387
|
-
e.icon ? (
|
|
1387
|
+
e.icon ? (B(), M(le, {
|
|
1388
1388
|
key: 0,
|
|
1389
1389
|
name: e.icon,
|
|
1390
1390
|
size: 16
|
|
1391
|
-
}, null, 8, ["name"])) :
|
|
1392
|
-
|
|
1393
|
-
|
|
1391
|
+
}, null, 8, ["name"])) : N("", !0),
|
|
1392
|
+
F("span", null, U(e.title), 1),
|
|
1393
|
+
W(s)(e.link) ? (B(), M(W(E), {
|
|
1394
1394
|
key: 1,
|
|
1395
1395
|
size: 14
|
|
1396
|
-
})) :
|
|
1397
|
-
], 10,
|
|
1396
|
+
})) : N("", !0)
|
|
1397
|
+
], 10, $r))), 128))])) : N("", !0);
|
|
1398
1398
|
}
|
|
1399
|
-
}), [["__scopeId", "data-v-9c46cb6a"]]),
|
|
1399
|
+
}), [["__scopeId", "data-v-9c46cb6a"]]), ti = { class: "td-widget-checkbox" }, ni = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
1400
1400
|
__name: "TdWidgetCheckbox",
|
|
1401
1401
|
props: { value: {} },
|
|
1402
1402
|
setup(e) {
|
|
1403
|
-
return (t, n) => (
|
|
1403
|
+
return (t, n) => (B(), P("span", ti, [e.value ? (B(), M(W(vt), {
|
|
1404
1404
|
key: 0,
|
|
1405
1405
|
size: 16,
|
|
1406
1406
|
class: "td-widget-checkbox-icon is-checked"
|
|
1407
|
-
})) : (
|
|
1407
|
+
})) : (B(), M(W(ve), {
|
|
1408
1408
|
key: 1,
|
|
1409
1409
|
size: 16,
|
|
1410
1410
|
class: "td-widget-checkbox-icon"
|
|
1411
1411
|
}))]));
|
|
1412
1412
|
}
|
|
1413
|
-
}), [["__scopeId", "data-v-0efb2919"]]),
|
|
1413
|
+
}), [["__scopeId", "data-v-0efb2919"]]), ri = /* @__PURE__ */ new Set([
|
|
1414
1414
|
"png",
|
|
1415
1415
|
"jpg",
|
|
1416
1416
|
"jpeg",
|
|
@@ -1422,43 +1422,43 @@ var mr = /*#__PURE__*/ k(/* @__PURE__ */ z({
|
|
|
1422
1422
|
"ico",
|
|
1423
1423
|
"tiff"
|
|
1424
1424
|
]);
|
|
1425
|
-
function
|
|
1425
|
+
function ii(e) {
|
|
1426
1426
|
if (!e) return;
|
|
1427
1427
|
if (typeof e == "string") {
|
|
1428
1428
|
let t = e.trim();
|
|
1429
|
-
return !t || !
|
|
1429
|
+
return !t || !ai({ url: t }) ? void 0 : {
|
|
1430
1430
|
url: t,
|
|
1431
|
-
name:
|
|
1431
|
+
name: o(t),
|
|
1432
1432
|
isImage: !0
|
|
1433
1433
|
};
|
|
1434
1434
|
}
|
|
1435
1435
|
if (typeof e != "object") return;
|
|
1436
1436
|
let t = e, n = t.$ref ?? t;
|
|
1437
1437
|
if (typeof n.url != "string") return;
|
|
1438
|
-
let r = n.url, i = n.name ??
|
|
1438
|
+
let r = n.url, i = n.name ?? o(r), a = n.format ?? t.format;
|
|
1439
1439
|
return {
|
|
1440
1440
|
url: r,
|
|
1441
1441
|
name: i,
|
|
1442
|
-
format:
|
|
1442
|
+
format: a,
|
|
1443
1443
|
icon: n.icon,
|
|
1444
|
-
isImage:
|
|
1444
|
+
isImage: ai({
|
|
1445
1445
|
url: r,
|
|
1446
1446
|
name: i,
|
|
1447
|
-
format:
|
|
1447
|
+
format: a
|
|
1448
1448
|
})
|
|
1449
1449
|
};
|
|
1450
1450
|
}
|
|
1451
|
-
function
|
|
1452
|
-
if (e.format &&
|
|
1453
|
-
let t =
|
|
1454
|
-
return t ?
|
|
1451
|
+
function ai(e) {
|
|
1452
|
+
if (e.format && ri.has(e.format.toLowerCase())) return !0;
|
|
1453
|
+
let t = c(e.name || e.url).slice(1);
|
|
1454
|
+
return t ? ri.has(t.toLowerCase()) : !1;
|
|
1455
1455
|
}
|
|
1456
1456
|
//#endregion
|
|
1457
1457
|
//#region src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetRelation.vue?vue&type=script&setup=true&lang.ts
|
|
1458
|
-
var
|
|
1458
|
+
var oi = {
|
|
1459
1459
|
key: 0,
|
|
1460
1460
|
class: "td-widget-relation-wrapper"
|
|
1461
|
-
},
|
|
1461
|
+
}, si = ["href", "title"], ci = ["src", "alt"], li = ["href"], ui = { class: "td-widget-file-name" }, di = ["href"], fi = ["href"], pi = { key: 1 }, mi = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
1462
1462
|
__name: "TdWidgetRelation",
|
|
1463
1463
|
props: {
|
|
1464
1464
|
value: {},
|
|
@@ -1468,80 +1468,80 @@ var ai = {
|
|
|
1468
1468
|
}
|
|
1469
1469
|
},
|
|
1470
1470
|
setup(e) {
|
|
1471
|
-
let { withBase: t } =
|
|
1472
|
-
return (
|
|
1471
|
+
let { withBase: t } = O(), n = j(() => ii(e.value)), r = j(() => n.value?.icon ? ue(n.value.icon.name) : void 0), i = j(() => n.value !== void 0 && s(n.value.url));
|
|
1472
|
+
return (a, o) => n.value ? (B(), P("span", oi, [n.value.isImage ? (B(), P("a", {
|
|
1473
1473
|
key: 0,
|
|
1474
|
-
href:
|
|
1474
|
+
href: W(t)(n.value.url),
|
|
1475
1475
|
target: "_blank",
|
|
1476
1476
|
rel: "noopener noreferrer",
|
|
1477
1477
|
class: "td-widget-image-preview",
|
|
1478
|
-
title:
|
|
1479
|
-
}, [
|
|
1480
|
-
src:
|
|
1481
|
-
alt:
|
|
1478
|
+
title: n.value.name
|
|
1479
|
+
}, [F("img", {
|
|
1480
|
+
src: W(t)(n.value.url),
|
|
1481
|
+
alt: n.value.name,
|
|
1482
1482
|
class: "td-widget-image-img",
|
|
1483
1483
|
loading: "lazy"
|
|
1484
|
-
}, null, 8,
|
|
1484
|
+
}, null, 8, ci)], 8, si)) : n.value.format || n.value.url.includes(".") ? (B(), P("a", {
|
|
1485
1485
|
key: 1,
|
|
1486
|
-
href:
|
|
1486
|
+
href: W(t)(n.value.url),
|
|
1487
1487
|
target: "_blank",
|
|
1488
1488
|
rel: "noopener noreferrer",
|
|
1489
1489
|
class: "td-widget-file-link"
|
|
1490
|
-
}, [
|
|
1490
|
+
}, [L(W(ye), { class: "td-widget-file-icon" }), F("span", ui, U(n.value.name), 1)], 8, li)) : i.value ? (B(), P("a", {
|
|
1491
1491
|
key: 2,
|
|
1492
|
-
href:
|
|
1492
|
+
href: n.value.url,
|
|
1493
1493
|
target: "_blank",
|
|
1494
1494
|
rel: "noopener noreferrer",
|
|
1495
1495
|
class: "td-widget-ref td-widget-ref-external"
|
|
1496
|
-
}, [
|
|
1496
|
+
}, [L(W(E), {
|
|
1497
1497
|
size: 12,
|
|
1498
1498
|
class: "td-widget-external-icon"
|
|
1499
|
-
})], 8,
|
|
1499
|
+
})], 8, di)) : (B(), P("a", {
|
|
1500
1500
|
key: 3,
|
|
1501
|
-
href:
|
|
1501
|
+
href: W(t)(n.value.url),
|
|
1502
1502
|
class: "td-widget-ref"
|
|
1503
|
-
}, [
|
|
1503
|
+
}, [r.value && !e.hideIcon ? (B(), M(Ve(r.value), {
|
|
1504
1504
|
key: 0,
|
|
1505
1505
|
size: 14,
|
|
1506
1506
|
class: "td-widget-ref-icon"
|
|
1507
|
-
})) :
|
|
1507
|
+
})) : N("", !0), I(U(n.value.name), 1)], 8, fi))])) : (B(), P("span", pi, U(e.value), 1));
|
|
1508
1508
|
}
|
|
1509
|
-
}), [["__scopeId", "data-v-7f310d52"]]),
|
|
1509
|
+
}), [["__scopeId", "data-v-7f310d52"]]), hi = { key: 0 }, gi = { class: "td-widget-list td-widget-list-icons" }, _i = { key: 1 }, vi = { class: "td-widget-list" }, yi = 5, bi = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
1510
1510
|
__name: "TdWidgetList",
|
|
1511
1511
|
props: {
|
|
1512
1512
|
definition: {},
|
|
1513
1513
|
value: {}
|
|
1514
1514
|
},
|
|
1515
1515
|
setup(e) {
|
|
1516
|
-
let t =
|
|
1516
|
+
let t = V(!1), n = j(() => Array.isArray(e.value) ? e.value : []), r = j(() => e.definition.items?.widget === "relation"), i = j(() => r.value ? n.value.map((e) => ii(e)).filter((e) => e !== void 0) : []), a = j(() => r.value ? Math.max(0, i.value.length - yi) : Math.max(0, n.value.length - yi));
|
|
1517
1517
|
function o() {
|
|
1518
1518
|
t.value = !t.value;
|
|
1519
1519
|
}
|
|
1520
1520
|
function s(e) {
|
|
1521
|
-
return t.value ? e : e.slice(0,
|
|
1521
|
+
return t.value ? e : e.slice(0, yi);
|
|
1522
1522
|
}
|
|
1523
|
-
return (e, c) => r.value ? (
|
|
1523
|
+
return (e, c) => r.value ? (B(), P("div", hi, [F("ul", gi, [(B(!0), P(A, null, H(s(i.value), (e, t) => (B(), P("li", { key: t }, [(B(), M(Ve(e.icon ? W(ue)(e.icon.name) ?? W(re) : W(re)), {
|
|
1524
1524
|
size: 14,
|
|
1525
1525
|
class: "td-widget-list-icon"
|
|
1526
|
-
})),
|
|
1526
|
+
})), L(mi, {
|
|
1527
1527
|
value: { $ref: e },
|
|
1528
1528
|
"hide-icon": ""
|
|
1529
|
-
}, null, 8, ["value"])]))), 128))]), a.value > 0 ? (
|
|
1529
|
+
}, null, 8, ["value"])]))), 128))]), a.value > 0 ? (B(), P("button", {
|
|
1530
1530
|
key: 0,
|
|
1531
1531
|
class: "td-widget-more",
|
|
1532
1532
|
type: "button",
|
|
1533
1533
|
onClick: o
|
|
1534
|
-
},
|
|
1534
|
+
}, U(t.value ? "show less" : `+${a.value} more`), 1)) : N("", !0)])) : (B(), P("div", _i, [F("ul", vi, [(B(!0), P(A, null, H(s(n.value), (e, t) => (B(), P("li", { key: t }, [W(ii)(e) ? (B(), M(mi, {
|
|
1535
1535
|
key: 0,
|
|
1536
1536
|
value: e
|
|
1537
|
-
}, null, 8, ["value"])) : (
|
|
1537
|
+
}, null, 8, ["value"])) : (B(), P(A, { key: 1 }, [I(U(e), 1)], 64))]))), 128))]), a.value > 0 ? (B(), P("button", {
|
|
1538
1538
|
key: 0,
|
|
1539
1539
|
class: "td-widget-more",
|
|
1540
1540
|
type: "button",
|
|
1541
1541
|
onClick: o
|
|
1542
|
-
},
|
|
1542
|
+
}, U(t.value ? "show less" : `+${a.value} more`), 1)) : N("", !0)]));
|
|
1543
1543
|
}
|
|
1544
|
-
}), [["__scopeId", "data-v-30022220"]]),
|
|
1544
|
+
}), [["__scopeId", "data-v-30022220"]]), xi = [
|
|
1545
1545
|
{
|
|
1546
1546
|
fg: "#a0522d",
|
|
1547
1547
|
bg: "rgba(160, 82, 45, 0.1)"
|
|
@@ -1575,206 +1575,206 @@ var ai = {
|
|
|
1575
1575
|
bg: "rgba(239, 68, 68, 0.1)"
|
|
1576
1576
|
}
|
|
1577
1577
|
];
|
|
1578
|
-
function
|
|
1579
|
-
let t =
|
|
1578
|
+
function Si(e) {
|
|
1579
|
+
let t = xi[Ci(String(e ?? "")) % xi.length];
|
|
1580
1580
|
return {
|
|
1581
1581
|
color: t.fg,
|
|
1582
1582
|
background: t.bg
|
|
1583
1583
|
};
|
|
1584
1584
|
}
|
|
1585
|
-
function
|
|
1585
|
+
function Ci(e) {
|
|
1586
1586
|
let t = 0;
|
|
1587
1587
|
for (let n = 0; n < e.length; n++) t = (t << 5) - t + e.charCodeAt(n) | 0;
|
|
1588
1588
|
return Math.abs(t);
|
|
1589
1589
|
}
|
|
1590
1590
|
//#endregion
|
|
1591
1591
|
//#region src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetMultiSelect.vue?vue&type=script&setup=true&lang.ts
|
|
1592
|
-
var
|
|
1592
|
+
var wi = 5, Ti = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
1593
1593
|
__name: "TdWidgetMultiSelect",
|
|
1594
1594
|
props: { value: {} },
|
|
1595
1595
|
setup(e) {
|
|
1596
|
-
let t =
|
|
1596
|
+
let t = V(!1), n = j(() => Array.isArray(e.value) ? e.value : []), r = j(() => t.value ? n.value : n.value.slice(0, wi)), i = j(() => Math.max(0, n.value.length - wi));
|
|
1597
1597
|
function a() {
|
|
1598
1598
|
t.value = !t.value;
|
|
1599
1599
|
}
|
|
1600
|
-
return (e, n) => (
|
|
1600
|
+
return (e, n) => (B(), P(A, null, [(B(!0), P(A, null, H(r.value, (e, t) => (B(), P("span", {
|
|
1601
1601
|
key: t,
|
|
1602
1602
|
class: "td-widget-pill",
|
|
1603
|
-
style:
|
|
1604
|
-
},
|
|
1603
|
+
style: Ne(W(Si)(e))
|
|
1604
|
+
}, U(e), 5))), 128)), i.value > 0 ? (B(), P("button", {
|
|
1605
1605
|
key: 0,
|
|
1606
1606
|
class: "td-widget-more",
|
|
1607
1607
|
type: "button",
|
|
1608
1608
|
onClick: a
|
|
1609
|
-
},
|
|
1609
|
+
}, U(t.value ? "show less" : `+${i.value} more`), 1)) : N("", !0)], 64));
|
|
1610
1610
|
}
|
|
1611
|
-
}), [["__scopeId", "data-v-9686facf"]]),
|
|
1611
|
+
}), [["__scopeId", "data-v-9686facf"]]), Ei = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
1612
1612
|
__name: "TdWidgetSelect",
|
|
1613
1613
|
props: { value: {} },
|
|
1614
1614
|
setup(e) {
|
|
1615
|
-
return (t, n) => (
|
|
1615
|
+
return (t, n) => (B(), P("span", {
|
|
1616
1616
|
class: "td-widget-pill",
|
|
1617
|
-
style:
|
|
1618
|
-
},
|
|
1617
|
+
style: Ne(W(Si)(e.value))
|
|
1618
|
+
}, U(e.value), 5));
|
|
1619
1619
|
}
|
|
1620
|
-
}), [["__scopeId", "data-v-b9e2b4fd"]]),
|
|
1620
|
+
}), [["__scopeId", "data-v-b9e2b4fd"]]), Di = ["href", "title"], Oi = ["src", "alt"], ki = ["href"], Ai = { class: "td-widget-file-name" }, ji = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
1621
1621
|
__name: "TdWidgetText",
|
|
1622
1622
|
props: {
|
|
1623
1623
|
definition: {},
|
|
1624
1624
|
value: {}
|
|
1625
1625
|
},
|
|
1626
1626
|
setup(e) {
|
|
1627
|
-
let { withBase: t } =
|
|
1627
|
+
let { withBase: t } = O(), n = j(() => typeof e.value == "string" ? e.value.trim() : ""), r = j(() => ii(e.value)), i = j(() => r.value ? r.value.isImage : 0 < n.value.length && ai({ url: n.value })), a = j(() => r.value ? r.value.url : n.value), o = j(() => t(a.value)), s = j(() => !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"));
|
|
1628
1628
|
function c(t) {
|
|
1629
|
-
return t == null ? "" : e.definition.widget === "date" ?
|
|
1629
|
+
return t == null ? "" : e.definition.widget === "date" ? v(String(t)) : String(t);
|
|
1630
1630
|
}
|
|
1631
|
-
return (t, a) => i.value ? (
|
|
1631
|
+
return (t, a) => i.value ? (B(), P("a", {
|
|
1632
1632
|
key: 0,
|
|
1633
1633
|
href: o.value,
|
|
1634
1634
|
target: "_blank",
|
|
1635
1635
|
rel: "noopener noreferrer",
|
|
1636
1636
|
class: "td-widget-image-preview",
|
|
1637
1637
|
title: r.value ? r.value.name : n.value
|
|
1638
|
-
}, [
|
|
1638
|
+
}, [F("img", {
|
|
1639
1639
|
src: o.value,
|
|
1640
1640
|
alt: r.value ? r.value.name : n.value,
|
|
1641
1641
|
class: "td-widget-image-img",
|
|
1642
1642
|
loading: "lazy"
|
|
1643
|
-
}, null, 8,
|
|
1643
|
+
}, null, 8, Oi)], 8, Di)) : s.value ? (B(), P("a", {
|
|
1644
1644
|
key: 1,
|
|
1645
1645
|
href: o.value,
|
|
1646
1646
|
target: "_blank",
|
|
1647
1647
|
rel: "noopener noreferrer",
|
|
1648
1648
|
class: "td-widget-file-link"
|
|
1649
|
-
}, [
|
|
1649
|
+
}, [L(W(ye), { class: "td-widget-file-icon" }), F("span", Ai, U(n.value.split("/").pop() ?? n.value), 1)], 8, ki)) : (B(), P(A, { key: 2 }, [I(U(c(e.value)), 1)], 64));
|
|
1650
1650
|
}
|
|
1651
|
-
}), [["__scopeId", "data-v-571e6598"]]),
|
|
1651
|
+
}), [["__scopeId", "data-v-571e6598"]]), Mi = {
|
|
1652
1652
|
key: 0,
|
|
1653
1653
|
class: "td-frontmatter-empty"
|
|
1654
|
-
},
|
|
1654
|
+
}, Ni = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
1655
1655
|
__name: "TdFrontmatterValue",
|
|
1656
1656
|
props: {
|
|
1657
1657
|
definition: {},
|
|
1658
1658
|
value: {}
|
|
1659
1659
|
},
|
|
1660
1660
|
setup(e) {
|
|
1661
|
-
return (t, n) => e.value === void 0 || e.value === null ? (
|
|
1661
|
+
return (t, n) => e.value === void 0 || e.value === null ? (B(), P("span", Mi, "Empty")) : e.definition.widget === "checkbox" ? (B(), M(ni, {
|
|
1662
1662
|
key: 1,
|
|
1663
1663
|
value: e.value
|
|
1664
|
-
}, null, 8, ["value"])) : e.definition.widget === "select" ? (
|
|
1664
|
+
}, null, 8, ["value"])) : e.definition.widget === "select" ? (B(), M(Ei, {
|
|
1665
1665
|
key: 2,
|
|
1666
1666
|
value: e.value
|
|
1667
|
-
}, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (
|
|
1667
|
+
}, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (B(), M(Ti, {
|
|
1668
1668
|
key: 3,
|
|
1669
1669
|
value: e.value
|
|
1670
|
-
}, null, 8, ["value"])) :
|
|
1670
|
+
}, null, 8, ["value"])) : W(ii)(e.value) || e.definition.widget === "relation" ? (B(), M(mi, {
|
|
1671
1671
|
key: 4,
|
|
1672
1672
|
value: e.value
|
|
1673
|
-
}, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (
|
|
1673
|
+
}, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (B(), M(bi, {
|
|
1674
1674
|
key: 5,
|
|
1675
1675
|
definition: e.definition,
|
|
1676
1676
|
value: e.value
|
|
1677
|
-
}, null, 8, ["definition", "value"])) : (
|
|
1677
|
+
}, null, 8, ["definition", "value"])) : (B(), M(ji, {
|
|
1678
1678
|
key: 6,
|
|
1679
1679
|
definition: e.definition,
|
|
1680
1680
|
value: e.value
|
|
1681
1681
|
}, null, 8, ["definition", "value"]));
|
|
1682
1682
|
}
|
|
1683
|
-
}), [["__scopeId", "data-v-d9b33f7b"]]),
|
|
1683
|
+
}), [["__scopeId", "data-v-d9b33f7b"]]), Pi = {
|
|
1684
1684
|
key: 0,
|
|
1685
1685
|
class: "td-fm-rail"
|
|
1686
|
-
},
|
|
1686
|
+
}, Fi = { key: 0 }, Ii = { class: "td-fm-rail-key" }, Li = { class: "td-fm-rail-value" }, Ri = {
|
|
1687
1687
|
key: 1,
|
|
1688
1688
|
class: "td-fm-box"
|
|
1689
|
-
},
|
|
1689
|
+
}, zi = { class: "td-fm-box-label" }, Bi = { class: "td-fm-box-count" }, Vi = { class: "td-fm-box-toggle" }, Hi = {
|
|
1690
1690
|
key: 0,
|
|
1691
1691
|
class: "td-fm-box-body"
|
|
1692
|
-
},
|
|
1692
|
+
}, Ui = { class: "td-fm-box-key" }, Wi = { class: "td-fm-box-value" }, Gi = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
1693
1693
|
__name: "TdFrontmatter",
|
|
1694
1694
|
props: {
|
|
1695
1695
|
mode: { default: "inline" },
|
|
1696
1696
|
schema: { default: () => void 0 },
|
|
1697
1697
|
frontmatter: {}
|
|
1698
1698
|
},
|
|
1699
|
-
setup(
|
|
1700
|
-
let
|
|
1701
|
-
if (
|
|
1702
|
-
}),
|
|
1703
|
-
let
|
|
1704
|
-
|
|
1705
|
-
for (let
|
|
1706
|
-
if (
|
|
1707
|
-
let i =
|
|
1699
|
+
setup(t) {
|
|
1700
|
+
let n = oe(), r = j(() => {
|
|
1701
|
+
if (t.schema) return n.value.schemas[t.schema];
|
|
1702
|
+
}), i = j(() => {
|
|
1703
|
+
let e = r.value, n = [], i = /* @__PURE__ */ new Set();
|
|
1704
|
+
e && Object.keys(e).forEach((e) => i.add(e)), Object.keys(t.frontmatter).forEach((e) => i.add(e));
|
|
1705
|
+
for (let r of i) {
|
|
1706
|
+
if (f(r)) continue;
|
|
1707
|
+
let i = t.frontmatter[r];
|
|
1708
1708
|
if (i == null || Array.isArray(i) && i.length === 0) continue;
|
|
1709
|
-
let a =
|
|
1710
|
-
|
|
1709
|
+
let a = e?.[r] ?? { widget: "text" };
|
|
1710
|
+
n.push([r, a]);
|
|
1711
1711
|
}
|
|
1712
|
-
return
|
|
1713
|
-
}),
|
|
1714
|
-
text:
|
|
1715
|
-
checkbox:
|
|
1716
|
-
select:
|
|
1717
|
-
multiSelect:
|
|
1718
|
-
relation:
|
|
1719
|
-
list:
|
|
1712
|
+
return n;
|
|
1713
|
+
}), a = {
|
|
1714
|
+
text: bt,
|
|
1715
|
+
checkbox: st,
|
|
1716
|
+
select: de,
|
|
1717
|
+
multiSelect: yt,
|
|
1718
|
+
relation: E,
|
|
1719
|
+
list: pt
|
|
1720
1720
|
};
|
|
1721
|
-
function
|
|
1722
|
-
return
|
|
1723
|
-
}
|
|
1724
|
-
let o = H(!1), s = H(!1);
|
|
1725
|
-
function c() {
|
|
1726
|
-
o.value = !o.value;
|
|
1721
|
+
function o(e) {
|
|
1722
|
+
return a[e] ?? bt;
|
|
1727
1723
|
}
|
|
1724
|
+
let s = V(!1), c = V(!1);
|
|
1728
1725
|
function l() {
|
|
1729
1726
|
s.value = !s.value;
|
|
1730
1727
|
}
|
|
1731
|
-
|
|
1728
|
+
function u() {
|
|
1729
|
+
c.value = !c.value;
|
|
1730
|
+
}
|
|
1731
|
+
return (n, r) => t.mode === "rail" && i.value.length > 0 ? (B(), P("div", Pi, [F("button", {
|
|
1732
1732
|
type: "button",
|
|
1733
1733
|
class: "td-fm-rail-header",
|
|
1734
|
-
onClick:
|
|
1735
|
-
}, [
|
|
1734
|
+
onClick: u
|
|
1735
|
+
}, [r[0] ||= F("span", { class: "td-fm-rail-label" }, "Properties", -1), L(W(it), {
|
|
1736
1736
|
size: 14,
|
|
1737
|
-
class:
|
|
1738
|
-
}, null, 8, ["class"])]),
|
|
1739
|
-
key:
|
|
1737
|
+
class: z(["td-fm-rail-caret", { "is-collapsed": c.value }])
|
|
1738
|
+
}, null, 8, ["class"])]), c.value ? N("", !0) : (B(), P("div", Fi, [(B(!0), P(A, null, H(i.value, ([n, r]) => (B(), P("div", {
|
|
1739
|
+
key: n,
|
|
1740
1740
|
class: "td-fm-rail-row"
|
|
1741
|
-
}, [
|
|
1741
|
+
}, [F("span", Ii, [(B(), M(Ve(o(r.widget)), {
|
|
1742
1742
|
size: 12,
|
|
1743
1743
|
class: "td-fm-icon"
|
|
1744
|
-
})),
|
|
1745
|
-
definition:
|
|
1746
|
-
value:
|
|
1747
|
-
}, null, 8, ["definition", "value"])])]))), 128))]))])) :
|
|
1744
|
+
})), I(" " + U(W(e)(n)), 1)]), F("span", Li, [L(Ni, {
|
|
1745
|
+
definition: r,
|
|
1746
|
+
value: t.frontmatter[n]
|
|
1747
|
+
}, null, 8, ["definition", "value"])])]))), 128))]))])) : i.value.length > 0 ? (B(), P("div", Ri, [F("button", {
|
|
1748
1748
|
type: "button",
|
|
1749
1749
|
class: "td-fm-box-header",
|
|
1750
|
-
onClick:
|
|
1751
|
-
}, [
|
|
1750
|
+
onClick: l
|
|
1751
|
+
}, [F("span", zi, [r[1] ||= I("Properties ", -1), F("span", Bi, U(i.value.length), 1)]), F("span", Vi, [I(U(s.value ? "Show" : "Hide") + " ", 1), s.value ? (B(), M(W(ot), {
|
|
1752
1752
|
key: 1,
|
|
1753
1753
|
size: 14
|
|
1754
|
-
})) : (
|
|
1754
|
+
})) : (B(), M(W(it), {
|
|
1755
1755
|
key: 0,
|
|
1756
1756
|
size: 14
|
|
1757
|
-
}))])]),
|
|
1757
|
+
}))])]), s.value ? N("", !0) : (B(), P("div", Hi, [(B(!0), P(A, null, H(i.value, ([n, r]) => (B(), P(A, { key: n }, [F("span", Ui, [(B(), M(Ve(o(r.widget)), {
|
|
1758
1758
|
size: 12,
|
|
1759
1759
|
class: "td-fm-icon"
|
|
1760
|
-
})),
|
|
1761
|
-
definition:
|
|
1762
|
-
value:
|
|
1763
|
-
}, null, 8, ["definition", "value"])])], 64))), 128))]))])) :
|
|
1760
|
+
})), I(" " + U(W(e)(n)), 1)]), F("span", Wi, [L(Ni, {
|
|
1761
|
+
definition: r,
|
|
1762
|
+
value: t.frontmatter[n]
|
|
1763
|
+
}, null, 8, ["definition", "value"])])], 64))), 128))]))])) : N("", !0);
|
|
1764
1764
|
}
|
|
1765
|
-
}), [["__scopeId", "data-v-b72cea28"]]),
|
|
1766
|
-
function
|
|
1765
|
+
}), [["__scopeId", "data-v-b72cea28"]]), Ki = V(!1);
|
|
1766
|
+
function qi() {
|
|
1767
1767
|
function e() {
|
|
1768
|
-
|
|
1768
|
+
Ki.value = !Ki.value;
|
|
1769
1769
|
}
|
|
1770
1770
|
function t() {
|
|
1771
|
-
|
|
1771
|
+
Ki.value = !0;
|
|
1772
1772
|
}
|
|
1773
1773
|
function n() {
|
|
1774
|
-
|
|
1774
|
+
Ki.value = !1;
|
|
1775
1775
|
}
|
|
1776
1776
|
return {
|
|
1777
|
-
isOpen:
|
|
1777
|
+
isOpen: Re(Ki),
|
|
1778
1778
|
toggle: e,
|
|
1779
1779
|
open: t,
|
|
1780
1780
|
close: n
|
|
@@ -1782,21 +1782,21 @@ function Ki() {
|
|
|
1782
1782
|
}
|
|
1783
1783
|
//#endregion
|
|
1784
1784
|
//#region src/client/theme-default/components/TdMenuButton.vue
|
|
1785
|
-
var
|
|
1785
|
+
var Ji = /* @__PURE__ */ R({
|
|
1786
1786
|
__name: "TdMenuButton",
|
|
1787
1787
|
setup(e) {
|
|
1788
|
-
let { isOpen: t, toggle: n } =
|
|
1789
|
-
return (e, r) => (
|
|
1788
|
+
let { isOpen: t, toggle: n } = qi();
|
|
1789
|
+
return (e, r) => (B(), M(Ot, {
|
|
1790
1790
|
class: "td-menu-button w-9 h-9 text-td-neutral-fg-muted group",
|
|
1791
|
-
label:
|
|
1792
|
-
"aria-expanded":
|
|
1793
|
-
onClick:
|
|
1791
|
+
label: W(t) ? "Close menu" : "Open menu",
|
|
1792
|
+
"aria-expanded": W(t),
|
|
1793
|
+
onClick: W(n)
|
|
1794
1794
|
}, {
|
|
1795
|
-
default:
|
|
1795
|
+
default: Xe(() => [W(t) ? (B(), M(W(xt), {
|
|
1796
1796
|
key: 0,
|
|
1797
1797
|
size: 20,
|
|
1798
1798
|
class: "group-hover:text-td-primary-solid transition-colors"
|
|
1799
|
-
})) : (
|
|
1799
|
+
})) : (B(), M(W(ht), {
|
|
1800
1800
|
key: 1,
|
|
1801
1801
|
size: 20,
|
|
1802
1802
|
class: "group-hover:text-td-primary-solid transition-colors"
|
|
@@ -1811,8 +1811,8 @@ var qi = /* @__PURE__ */ z({
|
|
|
1811
1811
|
});
|
|
1812
1812
|
//#endregion
|
|
1813
1813
|
//#region src/client/theme-default/composables/usePreviousNext.ts
|
|
1814
|
-
function
|
|
1815
|
-
let e =
|
|
1814
|
+
function Yi() {
|
|
1815
|
+
let e = oe(), t = k(), { withBase: n } = O(), r = j(() => {
|
|
1816
1816
|
let r = Xi(e.value.contentTree, t.path);
|
|
1817
1817
|
if (r === void 0) return {};
|
|
1818
1818
|
let i = r.pages.findIndex((e) => e.url === t.path);
|
|
@@ -1831,55 +1831,55 @@ function Ji() {
|
|
|
1831
1831
|
};
|
|
1832
1832
|
});
|
|
1833
1833
|
return {
|
|
1834
|
-
previous:
|
|
1835
|
-
next:
|
|
1836
|
-
groupName:
|
|
1834
|
+
previous: j(() => r.value.previous),
|
|
1835
|
+
next: j(() => r.value.next),
|
|
1836
|
+
groupName: j(() => r.value.groupName)
|
|
1837
1837
|
};
|
|
1838
1838
|
}
|
|
1839
|
-
function
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
}
|
|
1849
|
-
for (let
|
|
1850
|
-
if (
|
|
1851
|
-
let e = Zi(
|
|
1839
|
+
function Xi(e, t) {
|
|
1840
|
+
if (e.entries.some((e) => e.kind === "file" && C(e.item.filepath) === t)) {
|
|
1841
|
+
let t = [], n = e.entries.find((e) => e.kind === "file" && S(e.item.filepath));
|
|
1842
|
+
n && n.kind === "file" && t.push(Qi(n.item));
|
|
1843
|
+
for (let n of e.entries) n.kind === "file" ? S(n.item.filepath) || t.push(Qi(n.item)) : t.push($i(n.node, ""));
|
|
1844
|
+
return {
|
|
1845
|
+
pages: t,
|
|
1846
|
+
groupName: ""
|
|
1847
|
+
};
|
|
1848
|
+
}
|
|
1849
|
+
for (let n of e.entries) {
|
|
1850
|
+
if (n.kind !== "dir") continue;
|
|
1851
|
+
let e = Zi(n.node, t, "");
|
|
1852
1852
|
if (e !== void 0) return e;
|
|
1853
1853
|
}
|
|
1854
1854
|
}
|
|
1855
|
-
function Zi(
|
|
1856
|
-
let i =
|
|
1857
|
-
if (
|
|
1858
|
-
let
|
|
1859
|
-
|
|
1860
|
-
for (let
|
|
1855
|
+
function Zi(t, n, r) {
|
|
1856
|
+
let i = ee(r, t.name);
|
|
1857
|
+
if (t.entries.some((e) => e.kind === "file" && C(e.item.filepath) === n)) {
|
|
1858
|
+
let n = [], r = m(t);
|
|
1859
|
+
r && n.push(Qi(r));
|
|
1860
|
+
for (let e of t.entries) e.kind === "file" ? S(e.item.filepath) || n.push(Qi(e.item)) : n.push($i(e.node, i));
|
|
1861
1861
|
return {
|
|
1862
|
-
pages:
|
|
1863
|
-
groupName:
|
|
1862
|
+
pages: n,
|
|
1863
|
+
groupName: e(t.name)
|
|
1864
1864
|
};
|
|
1865
1865
|
}
|
|
1866
|
-
for (let
|
|
1867
|
-
if (
|
|
1868
|
-
let
|
|
1869
|
-
if (
|
|
1866
|
+
for (let e of t.entries) {
|
|
1867
|
+
if (e.kind !== "dir") continue;
|
|
1868
|
+
let t = Zi(e.node, n, i);
|
|
1869
|
+
if (t !== void 0) return t;
|
|
1870
1870
|
}
|
|
1871
1871
|
}
|
|
1872
1872
|
function Qi(e) {
|
|
1873
1873
|
return {
|
|
1874
|
-
url:
|
|
1875
|
-
title:
|
|
1874
|
+
url: C(e.filepath),
|
|
1875
|
+
title: u(e.filepath, e.label)
|
|
1876
1876
|
};
|
|
1877
1877
|
}
|
|
1878
|
-
function $i(
|
|
1879
|
-
let
|
|
1880
|
-
return
|
|
1881
|
-
url: C(
|
|
1882
|
-
title:
|
|
1878
|
+
function $i(t, n) {
|
|
1879
|
+
let r = ee(n, t.name), i = m(t);
|
|
1880
|
+
return {
|
|
1881
|
+
url: i ? C(i.filepath) : l(r),
|
|
1882
|
+
title: e(t.name)
|
|
1883
1883
|
};
|
|
1884
1884
|
}
|
|
1885
1885
|
//#endregion
|
|
@@ -1894,29 +1894,29 @@ var ea = {
|
|
|
1894
1894
|
}, oa = ["href"], sa = { class: "td-prevnext-label" }, ca = { class: "td-prevnext-title" }, la = {
|
|
1895
1895
|
key: 3,
|
|
1896
1896
|
class: "td-prevnext-spacer"
|
|
1897
|
-
}, ua = /*#__PURE__*/
|
|
1897
|
+
}, ua = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
1898
1898
|
__name: "TdPreviousNext",
|
|
1899
1899
|
setup(e) {
|
|
1900
|
-
let { previous: t, next: n, groupName: r } =
|
|
1901
|
-
return (e, i) =>
|
|
1900
|
+
let { previous: t, next: n, groupName: r } = Yi();
|
|
1901
|
+
return (e, i) => W(t) || W(n) ? (B(), P("nav", ea, [F("div", ta, [W(t) ? (B(), P("a", {
|
|
1902
1902
|
key: 0,
|
|
1903
|
-
href:
|
|
1903
|
+
href: W(t).url,
|
|
1904
1904
|
class: "td-prevnext-link is-previous"
|
|
1905
|
-
}, [
|
|
1905
|
+
}, [F("span", ra, [L(W(at), {
|
|
1906
1906
|
size: 16,
|
|
1907
1907
|
class: "td-prevnext-chevron"
|
|
1908
|
-
}),
|
|
1908
|
+
}), I(" " + U(W(r) ? `Previous in ${W(r)}` : "Previous"), 1)]), F("span", ia, U(W(t).title), 1)], 8, na)) : (B(), P("span", aa)), W(n) ? (B(), P("a", {
|
|
1909
1909
|
key: 2,
|
|
1910
|
-
href:
|
|
1910
|
+
href: W(n).url,
|
|
1911
1911
|
class: "td-prevnext-link is-next"
|
|
1912
|
-
}, [
|
|
1912
|
+
}, [F("span", sa, [I(U(W(r) ? `Next in ${W(r)}` : "Next") + " ", 1), L(W(ot), {
|
|
1913
1913
|
size: 16,
|
|
1914
1914
|
class: "td-prevnext-chevron"
|
|
1915
|
-
})]),
|
|
1915
|
+
})]), F("span", ca, U(W(n).title), 1)], 8, oa)) : (B(), P("span", la))])])) : N("", !0);
|
|
1916
1916
|
}
|
|
1917
1917
|
}), [["__scopeId", "data-v-c670dcea"]]), da = 100;
|
|
1918
1918
|
function fa(e) {
|
|
1919
|
-
let t =
|
|
1919
|
+
let t = V(void 0), n = [], r;
|
|
1920
1920
|
function i() {
|
|
1921
1921
|
if (n.length === 0) return;
|
|
1922
1922
|
let e = window.scrollY;
|
|
@@ -1938,12 +1938,12 @@ function fa(e) {
|
|
|
1938
1938
|
let r = new Set(e.map((e) => e.slug));
|
|
1939
1939
|
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();
|
|
1940
1940
|
}
|
|
1941
|
-
return
|
|
1941
|
+
return Fe(() => {
|
|
1942
1942
|
window.addEventListener("scroll", a);
|
|
1943
|
-
}),
|
|
1943
|
+
}), Le(() => {
|
|
1944
1944
|
window.removeEventListener("scroll", a), r !== void 0 && cancelAnimationFrame(r);
|
|
1945
|
-
}),
|
|
1946
|
-
typeof window > "u" ||
|
|
1945
|
+
}), G(e, (e) => {
|
|
1946
|
+
typeof window > "u" || Me(() => o(e));
|
|
1947
1947
|
}, { immediate: !0 }), t;
|
|
1948
1948
|
}
|
|
1949
1949
|
function pa(e) {
|
|
@@ -1956,7 +1956,7 @@ function pa(e) {
|
|
|
1956
1956
|
var ma = {
|
|
1957
1957
|
key: 0,
|
|
1958
1958
|
class: "td-toc"
|
|
1959
|
-
}, ha = { class: "td-toc-list" }, ga = ["href"], _a = /*#__PURE__*/
|
|
1959
|
+
}, ha = { class: "td-toc-list" }, ga = ["href", "innerHTML"], _a = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
1960
1960
|
__name: "TdToc",
|
|
1961
1961
|
props: {
|
|
1962
1962
|
headings: {},
|
|
@@ -1966,34 +1966,35 @@ var ma = {
|
|
|
1966
1966
|
}
|
|
1967
1967
|
},
|
|
1968
1968
|
setup(e) {
|
|
1969
|
-
let t = e.static ?
|
|
1970
|
-
return (n, r) => e.headings.length ? (
|
|
1969
|
+
let t = e.static ? j(() => void 0) : fa(() => e.headings);
|
|
1970
|
+
return (n, r) => e.headings.length ? (B(), P("div", ma, [r[0] ||= F("div", { class: "td-toc-label" }, " On this page ", -1), F("ul", ha, [(B(!0), P(A, null, H(e.headings, (e) => (B(), P("li", {
|
|
1971
1971
|
key: e.slug,
|
|
1972
|
-
class:
|
|
1972
|
+
class: z({
|
|
1973
1973
|
"td-toc-indent-1": e.level === 3,
|
|
1974
1974
|
"td-toc-indent-2": e.level === 4,
|
|
1975
1975
|
"td-toc-indent-3": e.level === 5
|
|
1976
1976
|
})
|
|
1977
|
-
}, [
|
|
1977
|
+
}, [F("a", {
|
|
1978
1978
|
href: e.link,
|
|
1979
|
-
class:
|
|
1980
|
-
|
|
1979
|
+
class: z(["td-toc-link", { "is-active": W(t) === e.slug }]),
|
|
1980
|
+
innerHTML: W(d)(e.titleHtml)
|
|
1981
|
+
}, null, 10, ga)], 2))), 128))])])) : N("", !0);
|
|
1981
1982
|
}
|
|
1982
|
-
}), [["__scopeId", "data-v-
|
|
1983
|
+
}), [["__scopeId", "data-v-9e1e825a"]]), va = { class: "td-rail" }, ya = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
1983
1984
|
__name: "TdRail",
|
|
1984
1985
|
setup(e) {
|
|
1985
|
-
let { page: t } =
|
|
1986
|
-
return (e, n) => (
|
|
1986
|
+
let { page: t } = me();
|
|
1987
|
+
return (e, n) => (B(), P("aside", va, [L(W(Gi), {
|
|
1987
1988
|
mode: "rail",
|
|
1988
|
-
schema:
|
|
1989
|
-
frontmatter:
|
|
1990
|
-
}, null, 8, ["schema", "frontmatter"]),
|
|
1989
|
+
schema: W(t).schema,
|
|
1990
|
+
frontmatter: W(t).frontmatter
|
|
1991
|
+
}, null, 8, ["schema", "frontmatter"]), L(_a, { headings: W(t).headings }, null, 8, ["headings"])]));
|
|
1991
1992
|
}
|
|
1992
1993
|
}), [["__scopeId", "data-v-51f03a3f"]]), ba = {
|
|
1993
1994
|
class: "td-skeleton",
|
|
1994
1995
|
role: "status",
|
|
1995
1996
|
"aria-label": "Loading"
|
|
1996
|
-
}, xa = /*#__PURE__*/
|
|
1997
|
+
}, xa = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
1997
1998
|
__name: "TdSkeleton",
|
|
1998
1999
|
props: { lines: { default: 5 } },
|
|
1999
2000
|
setup(e) {
|
|
@@ -2007,60 +2008,60 @@ var ma = {
|
|
|
2007
2008
|
55,
|
|
2008
2009
|
72
|
|
2009
2010
|
];
|
|
2010
|
-
return (n, r) => (
|
|
2011
|
+
return (n, r) => (B(), P("div", ba, [(B(!0), P(A, null, H(e.lines, (e) => (B(), P("div", {
|
|
2011
2012
|
key: e,
|
|
2012
2013
|
class: "td-skeleton-line",
|
|
2013
|
-
style:
|
|
2014
|
+
style: Ne({ width: `${t[(e - 1) % t.length]}%` })
|
|
2014
2015
|
}, null, 4))), 128))]));
|
|
2015
2016
|
}
|
|
2016
2017
|
}), [["__scopeId", "data-v-3a90c590"]]), $ = /* @__PURE__ */ function(e) {
|
|
2017
2018
|
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;
|
|
2018
|
-
}({}), Sa = { class: "td-kbd-shortcut" }, Ca = /*#__PURE__*/
|
|
2019
|
+
}({}), Sa = { class: "td-kbd-shortcut" }, Ca = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
2019
2020
|
__name: "TdKbdShortcut",
|
|
2020
2021
|
props: { keys: {} },
|
|
2021
2022
|
setup(e) {
|
|
2022
2023
|
let t = {
|
|
2023
|
-
[$.ArrowDown]:
|
|
2024
|
-
[$.ArrowUp]:
|
|
2025
|
-
[$.ArrowLeft]:
|
|
2026
|
-
[$.ArrowRight]:
|
|
2027
|
-
[$.Meta]:
|
|
2028
|
-
[$.Alt]:
|
|
2029
|
-
[$.Enter]:
|
|
2030
|
-
[$.Delete]:
|
|
2031
|
-
[$.Space]:
|
|
2024
|
+
[$.ArrowDown]: et,
|
|
2025
|
+
[$.ArrowUp]: rt,
|
|
2026
|
+
[$.ArrowLeft]: tt,
|
|
2027
|
+
[$.ArrowRight]: nt,
|
|
2028
|
+
[$.Meta]: ct,
|
|
2029
|
+
[$.Alt]: gt,
|
|
2030
|
+
[$.Enter]: lt,
|
|
2031
|
+
[$.Delete]: ut,
|
|
2032
|
+
[$.Space]: _t
|
|
2032
2033
|
}, n = {
|
|
2033
2034
|
[$.Control]: "⌃",
|
|
2034
2035
|
[$.Shift]: "⇧",
|
|
2035
2036
|
[$.Escape]: "Esc",
|
|
2036
2037
|
[$.Tab]: "Tab",
|
|
2037
2038
|
[$.Backspace]: "⌫"
|
|
2038
|
-
}, r =
|
|
2039
|
+
}, r = j(() => e.keys.map((e) => {
|
|
2039
2040
|
let r = t[e];
|
|
2040
2041
|
if (r) return { icon: r };
|
|
2041
2042
|
let i = n[e];
|
|
2042
2043
|
return i ? { label: i } : { label: e.toUpperCase() };
|
|
2043
2044
|
}));
|
|
2044
|
-
return (e, t) => (
|
|
2045
|
+
return (e, t) => (B(), P("span", Sa, [(B(!0), P(A, null, H(r.value, (e, t) => (B(), P("kbd", { key: t }, [e.icon ? (B(), M(Ve(e.icon), {
|
|
2045
2046
|
key: 0,
|
|
2046
2047
|
size: 12
|
|
2047
|
-
})) : (
|
|
2048
|
+
})) : (B(), P(A, { key: 1 }, [I(U(e.label), 1)], 64))]))), 128))]));
|
|
2048
2049
|
}
|
|
2049
2050
|
}), [["__scopeId", "data-v-01ed4b9d"]]), wa = 120, Ta = /^h[1-6]$/i, Ea = 16;
|
|
2050
2051
|
function Da() {
|
|
2051
|
-
let
|
|
2052
|
-
|
|
2053
|
-
|
|
2052
|
+
let e = ge(), t = pe(), n, a = !1, o = Ue([]), s = Ue(!1), c = /* @__PURE__ */ new Map();
|
|
2053
|
+
G(e, () => {
|
|
2054
|
+
n = void 0, c.clear();
|
|
2054
2055
|
});
|
|
2055
|
-
function
|
|
2056
|
-
if (
|
|
2057
|
-
if (
|
|
2058
|
-
fields:
|
|
2056
|
+
function l() {
|
|
2057
|
+
if (n) return n;
|
|
2058
|
+
if (e.value) return n = ke(ne.loadJSON(e.value, {
|
|
2059
|
+
fields: r,
|
|
2059
2060
|
storeFields: i
|
|
2060
|
-
})),
|
|
2061
|
+
})), n;
|
|
2061
2062
|
}
|
|
2062
|
-
function
|
|
2063
|
-
let t = /* @__PURE__ */ new Map(), n =
|
|
2063
|
+
function u(e) {
|
|
2064
|
+
let t = /* @__PURE__ */ new Map(), n = De(e), r = document.createElement("div");
|
|
2064
2065
|
n.config.warnHandler = () => {};
|
|
2065
2066
|
try {
|
|
2066
2067
|
n.mount(r);
|
|
@@ -2068,31 +2069,31 @@ function Da() {
|
|
|
2068
2069
|
for (let n of e) {
|
|
2069
2070
|
let e = n.querySelector("a")?.getAttribute("href")?.slice(1) ?? "", r = "", i = n.nextElementSibling;
|
|
2070
2071
|
for (; i && !Ta.test(i.tagName);) r += i.outerHTML, i = i.nextElementSibling;
|
|
2071
|
-
t.set(e,
|
|
2072
|
+
t.set(e, _(r));
|
|
2072
2073
|
}
|
|
2073
|
-
t.size === 0 ? t.set("",
|
|
2074
|
+
t.size === 0 ? t.set("", _(r.innerHTML)) : t.set("", [...t.values()].join(" "));
|
|
2074
2075
|
} finally {
|
|
2075
2076
|
n.unmount();
|
|
2076
2077
|
}
|
|
2077
2078
|
return t;
|
|
2078
2079
|
}
|
|
2079
|
-
async function
|
|
2080
|
-
if (!
|
|
2081
|
-
let
|
|
2082
|
-
if (!
|
|
2083
|
-
let e = (await n
|
|
2080
|
+
async function d(e) {
|
|
2081
|
+
if (!t) return "";
|
|
2082
|
+
let n = g(e), r = w(e), i = c.get(n);
|
|
2083
|
+
if (!i) try {
|
|
2084
|
+
let e = (await t(n))?.default;
|
|
2084
2085
|
if (!e) return "";
|
|
2085
|
-
if (
|
|
2086
|
-
let e =
|
|
2087
|
-
e !== void 0 &&
|
|
2086
|
+
if (i = u(e), Ea <= c.size) {
|
|
2087
|
+
let e = c.keys().next().value;
|
|
2088
|
+
e !== void 0 && c.delete(e);
|
|
2088
2089
|
}
|
|
2089
|
-
|
|
2090
|
+
c.set(n, i);
|
|
2090
2091
|
} catch {
|
|
2091
2092
|
return "";
|
|
2092
2093
|
}
|
|
2093
|
-
return
|
|
2094
|
+
return i.get(r) ?? i.get("") ?? "";
|
|
2094
2095
|
}
|
|
2095
|
-
function
|
|
2096
|
+
function f(e, t) {
|
|
2096
2097
|
if (!e) return "";
|
|
2097
2098
|
let n = Object.keys(t);
|
|
2098
2099
|
if (n.length === 0) return e.slice(0, wa);
|
|
@@ -2104,8 +2105,8 @@ function Da() {
|
|
|
2104
2105
|
let a = Math.max(0, i - 30), o = Math.min(e.length, a + wa), s = e.slice(a, o).trim();
|
|
2105
2106
|
return 0 < a && (s = "..." + s), o < e.length && (s += "..."), s;
|
|
2106
2107
|
}
|
|
2107
|
-
async function
|
|
2108
|
-
let t =
|
|
2108
|
+
async function m(e) {
|
|
2109
|
+
let t = l();
|
|
2109
2110
|
if (!t) {
|
|
2110
2111
|
s.value = !1;
|
|
2111
2112
|
return;
|
|
@@ -2126,12 +2127,12 @@ function Da() {
|
|
|
2126
2127
|
})), s.value = !1;
|
|
2127
2128
|
for (let [e, t] of n.entries()) {
|
|
2128
2129
|
if (a) return;
|
|
2129
|
-
let n =
|
|
2130
|
+
let n = f(await d(t.id), t.match);
|
|
2130
2131
|
if (a) return;
|
|
2131
|
-
o.value[e].excerpt = n,
|
|
2132
|
+
o.value[e].excerpt = n, Ge(o);
|
|
2132
2133
|
}
|
|
2133
2134
|
}
|
|
2134
|
-
let
|
|
2135
|
+
let h = p((e) => m(e), 150);
|
|
2135
2136
|
function v(e) {
|
|
2136
2137
|
a = !1;
|
|
2137
2138
|
let t = e.trim();
|
|
@@ -2139,15 +2140,15 @@ function Da() {
|
|
|
2139
2140
|
o.value = [], s.value = !1;
|
|
2140
2141
|
return;
|
|
2141
2142
|
}
|
|
2142
|
-
s.value = !0,
|
|
2143
|
+
s.value = !0, h(t);
|
|
2143
2144
|
}
|
|
2144
2145
|
function y() {
|
|
2145
2146
|
a = !0;
|
|
2146
2147
|
}
|
|
2147
2148
|
return {
|
|
2148
2149
|
results: o,
|
|
2149
|
-
searching:
|
|
2150
|
-
indexLoaded:
|
|
2150
|
+
searching: j(() => s.value),
|
|
2151
|
+
indexLoaded: j(() => e.value !== void 0),
|
|
2151
2152
|
search: v,
|
|
2152
2153
|
cancel: y
|
|
2153
2154
|
};
|
|
@@ -2155,10 +2156,10 @@ function Da() {
|
|
|
2155
2156
|
//#endregion
|
|
2156
2157
|
//#region src/client/theme-default/components/TdSiteSearch/highlight.ts
|
|
2157
2158
|
function Oa(e, t) {
|
|
2158
|
-
if (!e || !t) return
|
|
2159
|
-
let n = t.trim().split(/\s+/).filter(Boolean), r =
|
|
2159
|
+
if (!e || !t) return x(e);
|
|
2160
|
+
let n = t.trim().split(/\s+/).filter(Boolean), r = x(e);
|
|
2160
2161
|
for (let e of n) {
|
|
2161
|
-
let t = RegExp(`(${
|
|
2162
|
+
let t = RegExp(`(${y(e)})`, "gi");
|
|
2162
2163
|
r = r.replace(t, "<mark>$1</mark>");
|
|
2163
2164
|
}
|
|
2164
2165
|
return r;
|
|
@@ -2174,7 +2175,7 @@ var ka = { class: "td-search" }, Aa = { class: "td-search-input-wrap" }, ja = {
|
|
|
2174
2175
|
}, Na = { class: "td-search-group-label" }, Pa = ["href"], Fa = ["innerHTML"], Ia = ["innerHTML"], La = {
|
|
2175
2176
|
key: 1,
|
|
2176
2177
|
class: "td-search-empty"
|
|
2177
|
-
}, Ra = /*#__PURE__*/
|
|
2178
|
+
}, Ra = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
2178
2179
|
__name: "TdSiteSearch",
|
|
2179
2180
|
props: {
|
|
2180
2181
|
active: {
|
|
@@ -2185,17 +2186,17 @@ var ka = { class: "td-search" }, Aa = { class: "td-search-input-wrap" }, ja = {
|
|
|
2185
2186
|
query: { default: "" },
|
|
2186
2187
|
queryModifiers: {}
|
|
2187
2188
|
},
|
|
2188
|
-
emits: /*@__PURE__*/
|
|
2189
|
+
emits: /*@__PURE__*/ Ae(["select"], ["update:active", "update:query"]),
|
|
2189
2190
|
setup(t, { expose: n, emit: r }) {
|
|
2190
|
-
let i =
|
|
2191
|
+
let i = Ke(t, "active"), a = Ke(t, "query"), o = r, s = k(), { withBase: c } = O(), { results: l, searching: u, indexLoaded: d, search: f, cancel: p } = Da(), m = V(-1), h = j(() => 0 < a.value.trim().length), _ = j(() => {
|
|
2191
2192
|
let t = [], n = /* @__PURE__ */ new Map();
|
|
2192
2193
|
for (let r of l.value) {
|
|
2193
|
-
let i =
|
|
2194
|
+
let i = g(r.id), a = n.get(i);
|
|
2194
2195
|
if (!a) {
|
|
2195
|
-
let
|
|
2196
|
+
let r = i.split("/").pop() || "index";
|
|
2196
2197
|
a = {
|
|
2197
2198
|
pageUrl: i,
|
|
2198
|
-
pageTitle:
|
|
2199
|
+
pageTitle: e(r),
|
|
2199
2200
|
results: []
|
|
2200
2201
|
}, n.set(i, a), t.push(a);
|
|
2201
2202
|
}
|
|
@@ -2203,119 +2204,119 @@ var ka = { class: "td-search" }, Aa = { class: "td-search-input-wrap" }, ja = {
|
|
|
2203
2204
|
}
|
|
2204
2205
|
return t;
|
|
2205
2206
|
});
|
|
2206
|
-
|
|
2207
|
+
G(h, (e) => {
|
|
2207
2208
|
i.value = e;
|
|
2208
|
-
}),
|
|
2209
|
+
}), G(a, (e, t, n) => {
|
|
2209
2210
|
n(() => p()), m.value = -1, f(e);
|
|
2210
2211
|
});
|
|
2211
|
-
function
|
|
2212
|
+
function v() {
|
|
2212
2213
|
a.value = "";
|
|
2213
2214
|
}
|
|
2214
|
-
let
|
|
2215
|
+
let y = j(() => _.value.flatMap((e) => e.results)), b = j(() => {
|
|
2215
2216
|
let e = /* @__PURE__ */ new Map();
|
|
2216
|
-
for (let t = 0; t <
|
|
2217
|
+
for (let t = 0; t < y.value.length; t++) e.set(y.value[t].id, t);
|
|
2217
2218
|
return e;
|
|
2218
2219
|
});
|
|
2219
|
-
function
|
|
2220
|
-
let t =
|
|
2220
|
+
function x(e) {
|
|
2221
|
+
let t = b.value.size;
|
|
2221
2222
|
if (t !== 0) {
|
|
2222
2223
|
if (e.key === "ArrowDown") e.preventDefault(), m.value = (m.value + 1) % t;
|
|
2223
2224
|
else if (e.key === "ArrowUp") e.preventDefault(), m.value = (m.value - 1 + t) % t;
|
|
2224
2225
|
else if (e.key === "Enter" && 0 <= m.value) {
|
|
2225
2226
|
e.preventDefault();
|
|
2226
|
-
let t =
|
|
2227
|
+
let t = y.value[m.value];
|
|
2227
2228
|
if (!t) return;
|
|
2228
2229
|
document.querySelector(`.td-search-result[href="${CSS.escape(c(t.id))}"]`)?.click();
|
|
2229
2230
|
}
|
|
2230
2231
|
}
|
|
2231
2232
|
}
|
|
2232
|
-
function
|
|
2233
|
+
function S() {
|
|
2233
2234
|
o("select");
|
|
2234
2235
|
}
|
|
2235
|
-
let
|
|
2236
|
+
let C = qe("searchInput");
|
|
2236
2237
|
return n({
|
|
2237
2238
|
focus() {
|
|
2238
|
-
|
|
2239
|
+
C.value?.focus();
|
|
2239
2240
|
},
|
|
2240
2241
|
blur() {
|
|
2241
|
-
|
|
2242
|
+
C.value?.blur();
|
|
2242
2243
|
},
|
|
2243
2244
|
get isVisible() {
|
|
2244
|
-
return
|
|
2245
|
+
return C.value?.offsetParent !== null;
|
|
2245
2246
|
},
|
|
2246
2247
|
get isFocused() {
|
|
2247
|
-
return document.activeElement ===
|
|
2248
|
+
return document.activeElement === C.value;
|
|
2248
2249
|
}
|
|
2249
|
-
}), (e, t) => (
|
|
2250
|
-
|
|
2251
|
-
|
|
2250
|
+
}), (e, t) => (B(), P("div", ka, [
|
|
2251
|
+
F("div", Aa, [
|
|
2252
|
+
L(W(xe), {
|
|
2252
2253
|
size: 14,
|
|
2253
2254
|
class: "td-search-icon"
|
|
2254
2255
|
}),
|
|
2255
|
-
|
|
2256
|
+
Ze(F("input", {
|
|
2256
2257
|
ref_key: "searchInput",
|
|
2257
|
-
ref:
|
|
2258
|
+
ref: C,
|
|
2258
2259
|
"onUpdate:modelValue": t[0] ||= (e) => a.value = e,
|
|
2259
2260
|
class: "td-search-input",
|
|
2260
2261
|
type: "text",
|
|
2261
2262
|
size: "1",
|
|
2262
2263
|
placeholder: "Search...",
|
|
2263
|
-
onKeydown:
|
|
2264
|
-
}, null, 544), [[
|
|
2265
|
-
!h.value && !
|
|
2264
|
+
onKeydown: x
|
|
2265
|
+
}, null, 544), [[Je, a.value]]),
|
|
2266
|
+
!h.value && !W(u) ? (B(), M(Ca, {
|
|
2266
2267
|
key: 0,
|
|
2267
|
-
keys: [
|
|
2268
|
+
keys: [W($).Meta, W($).k],
|
|
2268
2269
|
class: "td-search-kbd"
|
|
2269
|
-
}, null, 8, ["keys"])) :
|
|
2270
|
-
|
|
2270
|
+
}, null, 8, ["keys"])) : N("", !0),
|
|
2271
|
+
W(u) || !W(d) ? (B(), M(W(mt), {
|
|
2271
2272
|
key: 1,
|
|
2272
2273
|
size: 12,
|
|
2273
2274
|
class: "td-search-spinner"
|
|
2274
|
-
})) : h.value ? (
|
|
2275
|
-
a.value ? (
|
|
2275
|
+
})) : h.value ? (B(), P("span", ja, U(W(l).length), 1)) : N("", !0),
|
|
2276
|
+
a.value ? (B(), P("button", {
|
|
2276
2277
|
key: 3,
|
|
2277
2278
|
class: "td-search-clear",
|
|
2278
2279
|
type: "button",
|
|
2279
2280
|
"aria-label": "Clear search",
|
|
2280
|
-
onClick:
|
|
2281
|
-
}, [
|
|
2281
|
+
onClick: v
|
|
2282
|
+
}, [L(W(xt), { size: 12 })])) : N("", !0)
|
|
2282
2283
|
]),
|
|
2283
|
-
h.value &&
|
|
2284
|
+
h.value && W(l).length > 0 ? (B(), P("div", Ma, [(B(!0), P(A, null, H(_.value, (e) => (B(), P("div", {
|
|
2284
2285
|
key: e.pageUrl,
|
|
2285
2286
|
class: "td-search-group"
|
|
2286
|
-
}, [
|
|
2287
|
+
}, [F("div", Na, U(e.pageTitle), 1), (B(!0), P(A, null, H(e.results, (e) => (B(), P("a", {
|
|
2287
2288
|
key: e.id,
|
|
2288
|
-
href:
|
|
2289
|
-
class:
|
|
2290
|
-
"is-selected":
|
|
2291
|
-
"is-current":
|
|
2289
|
+
href: W(c)(e.id),
|
|
2290
|
+
class: z(["td-search-result", {
|
|
2291
|
+
"is-selected": b.value.get(e.id) === m.value,
|
|
2292
|
+
"is-current": W(c)(e.id) === W(s).path
|
|
2292
2293
|
}]),
|
|
2293
|
-
onClick:
|
|
2294
|
-
}, [
|
|
2294
|
+
onClick: S
|
|
2295
|
+
}, [F("span", {
|
|
2295
2296
|
class: "td-search-result-title",
|
|
2296
|
-
innerHTML:
|
|
2297
|
-
}, null, 8, Fa), e.excerpt ? (
|
|
2297
|
+
innerHTML: W(Oa)(e.title, a.value)
|
|
2298
|
+
}, null, 8, Fa), e.excerpt ? (B(), P("span", {
|
|
2298
2299
|
key: 0,
|
|
2299
2300
|
class: "td-search-result-excerpt",
|
|
2300
|
-
innerHTML:
|
|
2301
|
-
}, null, 8, Ia)) :
|
|
2302
|
-
h.value &&
|
|
2301
|
+
innerHTML: W(Oa)(e.excerpt, a.value)
|
|
2302
|
+
}, null, 8, Ia)) : N("", !0)], 10, Pa))), 128))]))), 128))])) : N("", !0),
|
|
2303
|
+
h.value && W(l).length === 0 ? (B(), P("div", La, " No results for \"" + U(a.value) + "\" ", 1)) : N("", !0)
|
|
2303
2304
|
]));
|
|
2304
2305
|
}
|
|
2305
|
-
}), [["__scopeId", "data-v-93a329d9"]]), za = /* @__PURE__ */
|
|
2306
|
+
}), [["__scopeId", "data-v-93a329d9"]]), za = /* @__PURE__ */ R({
|
|
2306
2307
|
__name: "TdThemeToggle",
|
|
2307
2308
|
setup(e) {
|
|
2308
|
-
let { isDark: t, toggle: n } =
|
|
2309
|
-
return (e, r) => (
|
|
2309
|
+
let { isDark: t, toggle: n } = _e();
|
|
2310
|
+
return (e, r) => (B(), M(Ot, {
|
|
2310
2311
|
class: "w-9 h-9 text-td-neutral-fg-muted group hover:opacity-70",
|
|
2311
|
-
label:
|
|
2312
|
-
onClick:
|
|
2312
|
+
label: W(t) ? "Switch to light mode" : "Switch to dark mode",
|
|
2313
|
+
onClick: W(n)
|
|
2313
2314
|
}, {
|
|
2314
|
-
default:
|
|
2315
|
+
default: Xe(() => [W(t) ? (B(), M(W(ae), {
|
|
2315
2316
|
key: 0,
|
|
2316
2317
|
size: 18,
|
|
2317
2318
|
class: "group-hover:text-td-primary-solid transition-colors"
|
|
2318
|
-
})) : (
|
|
2319
|
+
})) : (B(), M(W(se), {
|
|
2319
2320
|
key: 1,
|
|
2320
2321
|
size: 18,
|
|
2321
2322
|
class: "group-hover:text-td-primary-solid transition-colors"
|
|
@@ -2338,9 +2339,9 @@ function Ba() {
|
|
|
2338
2339
|
t.classList.remove("copied"), t.setAttribute("title", i);
|
|
2339
2340
|
}, 2e3);
|
|
2340
2341
|
}
|
|
2341
|
-
|
|
2342
|
+
Fe(() => {
|
|
2342
2343
|
document.addEventListener("click", e);
|
|
2343
|
-
}),
|
|
2344
|
+
}), Le(() => {
|
|
2344
2345
|
document.removeEventListener("click", e);
|
|
2345
2346
|
});
|
|
2346
2347
|
}
|
|
@@ -2356,7 +2357,7 @@ function Ha(e, t) {
|
|
|
2356
2357
|
function n(n) {
|
|
2357
2358
|
n.defaultPrevented || Wa(n, e) && (n.preventDefault(), t(n));
|
|
2358
2359
|
}
|
|
2359
|
-
|
|
2360
|
+
Fe(() => window.addEventListener("keydown", n)), Le(() => window.removeEventListener("keydown", n));
|
|
2360
2361
|
}
|
|
2361
2362
|
function Ua(e) {
|
|
2362
2363
|
let t = [];
|
|
@@ -2372,9 +2373,9 @@ function Ua(e) {
|
|
|
2372
2373
|
return;
|
|
2373
2374
|
}
|
|
2374
2375
|
}
|
|
2375
|
-
return
|
|
2376
|
+
return G(e, (e, t) => {
|
|
2376
2377
|
t?.removeEventListener("keydown", r), e?.addEventListener("keydown", r);
|
|
2377
|
-
}, { immediate: !0 }),
|
|
2378
|
+
}, { immediate: !0 }), Le(() => {
|
|
2378
2379
|
e.value?.removeEventListener("keydown", r);
|
|
2379
2380
|
}), { register: n };
|
|
2380
2381
|
}
|
|
@@ -2417,9 +2418,9 @@ function qa() {
|
|
|
2417
2418
|
}
|
|
2418
2419
|
document.addEventListener("pointermove", o), document.addEventListener("pointerup", s);
|
|
2419
2420
|
}
|
|
2420
|
-
|
|
2421
|
+
Fe(() => {
|
|
2421
2422
|
document.addEventListener("pointermove", r), document.addEventListener("pointerdown", i);
|
|
2422
|
-
}),
|
|
2423
|
+
}), Le(() => {
|
|
2423
2424
|
document.removeEventListener("pointermove", r), document.removeEventListener("pointerdown", i);
|
|
2424
2425
|
});
|
|
2425
2426
|
}
|
|
@@ -2441,173 +2442,173 @@ var Ja = { class: "td-header" }, Ya = { class: "td-header-left" }, Xa = ["href"]
|
|
|
2441
2442
|
}, mo = ["innerHTML"], ho = {
|
|
2442
2443
|
key: 3,
|
|
2443
2444
|
class: "td-page-meta"
|
|
2444
|
-
}, go = { key: 0 }, _o = { class: "td-content-body" }, vo = 200, yo = 500, bo = 272, xo = "td-sidebar-width", So = /*#__PURE__*/
|
|
2445
|
+
}, go = { key: 0 }, _o = { class: "td-content-body" }, vo = 200, yo = 500, bo = 272, xo = "td-sidebar-width", So = /*#__PURE__*/ D(/* @__PURE__ */ R({
|
|
2445
2446
|
__name: "TdLayout",
|
|
2446
2447
|
setup(e) {
|
|
2447
|
-
let { title: t, page: n } =
|
|
2448
|
+
let { title: t, page: n } = me(), r = j(() => {
|
|
2448
2449
|
let e = n.value.icon;
|
|
2449
|
-
return e ?
|
|
2450
|
-
}), i =
|
|
2451
|
-
|
|
2452
|
-
let
|
|
2453
|
-
function
|
|
2454
|
-
if (
|
|
2455
|
-
|
|
2450
|
+
return e ? ue(e.name) : void 0;
|
|
2451
|
+
}), i = O(), { withBase: a } = i, o = oe(), s = j(() => o.value.ready), { isOpen: c, open: u, close: d } = qi(), f = V(""), p = V(!1), m = V(!1), h = k();
|
|
2452
|
+
G(() => h.path, () => d()), Ba();
|
|
2453
|
+
let g = qe("sidebarSearch"), _ = qe("menuSearch");
|
|
2454
|
+
function v() {
|
|
2455
|
+
if (_.value?.isFocused || g.value?.isFocused) {
|
|
2456
|
+
_.value?.blur(), g.value?.blur(), c.value && d();
|
|
2456
2457
|
return;
|
|
2457
2458
|
}
|
|
2458
|
-
c.value ?
|
|
2459
|
+
c.value ? _.value?.focus() : g.value?.isVisible ? g.value.focus() : (u(), Me(() => _.value?.focus()));
|
|
2459
2460
|
}
|
|
2460
|
-
Ha([$.Control, $.k],
|
|
2461
|
+
Ha([$.Control, $.k], v), Ha([$.Meta, $.k], v), Ye(() => {
|
|
2461
2462
|
if (typeof document > "u") return;
|
|
2462
2463
|
let e = t.value, r = i.title;
|
|
2463
2464
|
document.title = e && e !== r ? `${e} - ${r}` : r;
|
|
2464
2465
|
let a = n.value.frontmatter?.description === void 0 ? i.description ?? "" : String(n.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
|
|
2465
2466
|
o && o.setAttribute("content", a);
|
|
2466
2467
|
}), qa();
|
|
2467
|
-
let
|
|
2468
|
-
function
|
|
2469
|
-
|
|
2468
|
+
let y = V(typeof localStorage < "u" && Number(localStorage.getItem(xo)) || bo);
|
|
2469
|
+
function x() {
|
|
2470
|
+
y.value = Math.min(yo, y.value + 20);
|
|
2470
2471
|
}
|
|
2471
|
-
function
|
|
2472
|
-
let t = e.clientX, n =
|
|
2472
|
+
function S(e) {
|
|
2473
|
+
let t = e.clientX, n = y.value, r = e.currentTarget;
|
|
2473
2474
|
r.setPointerCapture(e.pointerId);
|
|
2474
2475
|
function i(e) {
|
|
2475
2476
|
let r = Math.min(yo, Math.max(vo, n + e.clientX - t));
|
|
2476
|
-
|
|
2477
|
+
y.value = r;
|
|
2477
2478
|
}
|
|
2478
2479
|
function a() {
|
|
2479
|
-
document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a), localStorage.setItem(xo, String(
|
|
2480
|
+
document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a), localStorage.setItem(xo, String(y.value));
|
|
2480
2481
|
}
|
|
2481
2482
|
document.body.style.cursor = "col-resize", r.addEventListener("pointermove", i), r.addEventListener("pointerup", a);
|
|
2482
2483
|
}
|
|
2483
|
-
function
|
|
2484
|
-
|
|
2484
|
+
function C() {
|
|
2485
|
+
y.value = Math.max(vo, y.value - 20);
|
|
2485
2486
|
}
|
|
2486
|
-
return (e,
|
|
2487
|
-
|
|
2487
|
+
return (e, u) => (B(), P("div", null, [
|
|
2488
|
+
u[5] ||= F("a", {
|
|
2488
2489
|
href: "#td-content",
|
|
2489
2490
|
class: "td-skip-link"
|
|
2490
2491
|
}, "Skip to content", -1),
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
href:
|
|
2492
|
+
F("header", Ja, [
|
|
2493
|
+
F("div", Ya, [
|
|
2494
|
+
L(Ji),
|
|
2495
|
+
F("a", {
|
|
2496
|
+
href: W(a)(W(l)("/")),
|
|
2496
2497
|
class: "td-brand"
|
|
2497
|
-
}, [
|
|
2498
|
-
|
|
2498
|
+
}, [L(Et), F("span", Za, U(W(i).title || "Typedown"), 1)], 8, Xa),
|
|
2499
|
+
L(Jr, { class: "td-header-breadcrumb" })
|
|
2499
2500
|
]),
|
|
2500
|
-
|
|
2501
|
-
|
|
2501
|
+
L(W(Zr)),
|
|
2502
|
+
F("div", Qa, [L(za), W(i).repo ? (B(), P("a", {
|
|
2502
2503
|
key: 0,
|
|
2503
|
-
href:
|
|
2504
|
+
href: W(i).repo,
|
|
2504
2505
|
target: "_blank",
|
|
2505
2506
|
rel: "noopener noreferrer",
|
|
2506
2507
|
class: "td-header-icon-link",
|
|
2507
2508
|
"aria-label": "GitHub repository"
|
|
2508
|
-
}, [...
|
|
2509
|
+
}, [...u[4] ||= [F("svg", {
|
|
2509
2510
|
width: "20",
|
|
2510
2511
|
height: "20",
|
|
2511
2512
|
viewBox: "0 0 98 96",
|
|
2512
2513
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2513
2514
|
"aria-hidden": "true",
|
|
2514
2515
|
fill: "currentColor"
|
|
2515
|
-
}, [
|
|
2516
|
+
}, [F("path", {
|
|
2516
2517
|
"fill-rule": "evenodd",
|
|
2517
2518
|
"clip-rule": "evenodd",
|
|
2518
2519
|
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"
|
|
2519
|
-
})], -1)]], 8, $a)) :
|
|
2520
|
+
})], -1)]], 8, $a)) : N("", !0)])
|
|
2520
2521
|
]),
|
|
2521
|
-
|
|
2522
|
-
|
|
2522
|
+
F("div", { class: z(["td-menu-overlay", { "is-open": W(c) }]) }, [
|
|
2523
|
+
F("header", eo, [F("div", to, [L(Ot, {
|
|
2523
2524
|
class: "w-9 h-9 text-td-neutral-fg-muted hover:text-td-primary-solid",
|
|
2524
2525
|
label: "Close menu",
|
|
2525
|
-
onClick:
|
|
2526
|
+
onClick: W(d)
|
|
2526
2527
|
}, {
|
|
2527
|
-
default:
|
|
2528
|
+
default: Xe(() => [L(W(xt), { size: 20 })]),
|
|
2528
2529
|
_: 1
|
|
2529
|
-
}, 8, ["onClick"]),
|
|
2530
|
-
href:
|
|
2530
|
+
}, 8, ["onClick"]), F("a", {
|
|
2531
|
+
href: W(a)(W(l)("/")),
|
|
2531
2532
|
class: "td-brand"
|
|
2532
|
-
}, [
|
|
2533
|
-
|
|
2534
|
-
|
|
2533
|
+
}, [L(Et), F("span", ro, U(W(i).title || "Typedown"), 1)], 8, no)])]),
|
|
2534
|
+
L(W(ei)),
|
|
2535
|
+
L(Ra, {
|
|
2535
2536
|
ref_key: "menuSearch",
|
|
2536
|
-
ref:
|
|
2537
|
-
query:
|
|
2538
|
-
"onUpdate:query":
|
|
2539
|
-
active:
|
|
2540
|
-
"onUpdate:active":
|
|
2541
|
-
onSelect:
|
|
2537
|
+
ref: _,
|
|
2538
|
+
query: f.value,
|
|
2539
|
+
"onUpdate:query": u[0] ||= (e) => f.value = e,
|
|
2540
|
+
active: m.value,
|
|
2541
|
+
"onUpdate:active": u[1] ||= (e) => m.value = e,
|
|
2542
|
+
onSelect: W(d)
|
|
2542
2543
|
}, null, 8, [
|
|
2543
2544
|
"query",
|
|
2544
2545
|
"active",
|
|
2545
2546
|
"onSelect"
|
|
2546
2547
|
]),
|
|
2547
|
-
|
|
2548
|
+
m.value ? N("", !0) : (B(), P("nav", io, [s.value ? (B(), M(Nr, {
|
|
2548
2549
|
key: 1,
|
|
2549
|
-
tree:
|
|
2550
|
-
}, null, 8, ["tree"])) : (
|
|
2550
|
+
tree: W(o).contentTree
|
|
2551
|
+
}, null, 8, ["tree"])) : (B(), M(xa, { key: 0 }))]))
|
|
2551
2552
|
], 2),
|
|
2552
|
-
|
|
2553
|
+
F("div", ao, [F("nav", {
|
|
2553
2554
|
class: "td-sidebar-left",
|
|
2554
2555
|
"aria-label": "Site navigation",
|
|
2555
|
-
style:
|
|
2556
|
-
}, [
|
|
2556
|
+
style: Ne({ width: `${y.value}px` })
|
|
2557
|
+
}, [F("div", oo, [L(Ra, {
|
|
2557
2558
|
ref_key: "sidebarSearch",
|
|
2558
|
-
ref:
|
|
2559
|
-
query:
|
|
2560
|
-
"onUpdate:query":
|
|
2561
|
-
active:
|
|
2562
|
-
"onUpdate:active":
|
|
2563
|
-
}, null, 8, ["query", "active"]), !
|
|
2559
|
+
ref: g,
|
|
2560
|
+
query: f.value,
|
|
2561
|
+
"onUpdate:query": u[2] ||= (e) => f.value = e,
|
|
2562
|
+
active: p.value,
|
|
2563
|
+
"onUpdate:active": u[3] ||= (e) => p.value = e
|
|
2564
|
+
}, null, 8, ["query", "active"]), !p.value && !s.value ? (B(), M(xa, { key: 0 })) : p.value ? N("", !0) : (B(), M(Nr, {
|
|
2564
2565
|
key: 1,
|
|
2565
|
-
tree:
|
|
2566
|
-
}, null, 8, ["tree"]))]),
|
|
2566
|
+
tree: W(o).contentTree
|
|
2567
|
+
}, null, 8, ["tree"]))]), F("div", {
|
|
2567
2568
|
class: "td-sidebar-resize",
|
|
2568
2569
|
role: "separator",
|
|
2569
2570
|
"aria-orientation": "vertical",
|
|
2570
2571
|
"aria-label": "Resize sidebar",
|
|
2571
2572
|
tabindex: "0",
|
|
2572
|
-
onPointerdown:
|
|
2573
|
-
onKeydown: [
|
|
2574
|
-
}, null, 40, so)], 4),
|
|
2575
|
-
|
|
2576
|
-
r.value ? (
|
|
2577
|
-
|
|
2573
|
+
onPointerdown: $e(S, ["prevent"]),
|
|
2574
|
+
onKeydown: [Qe($e(C, ["prevent"]), ["left"]), Qe($e(x, ["prevent"]), ["right"])]
|
|
2575
|
+
}, null, 40, so)], 4), F("div", co, [F("main", lo, [F("article", uo, [
|
|
2576
|
+
W(n).schema ? (B(), P("div", fo, U(W(n).schemaLabel ?? W(n).schema), 1)) : N("", !0),
|
|
2577
|
+
r.value ? (B(), P("div", po, [(B(), M(Ve(r.value), { size: 32 }))])) : N("", !0),
|
|
2578
|
+
W(t) ? (B(), P("h1", {
|
|
2578
2579
|
key: 2,
|
|
2579
2580
|
class: "td-page-title",
|
|
2580
|
-
innerHTML:
|
|
2581
|
-
}, null, 8, mo)) :
|
|
2582
|
-
|
|
2583
|
-
|
|
2581
|
+
innerHTML: W(At)(W(t))
|
|
2582
|
+
}, null, 8, mo)) : N("", !0),
|
|
2583
|
+
W(n).metadata ? (B(), P("div", ho, [F("span", null, U(W(b)(W(n).metadata.mtime, "Modified")), 1), W(n).metadata.ctime === W(n).metadata.mtime ? N("", !0) : (B(), P("span", go, " · " + U(W(b)(W(n).metadata.ctime, "Created")), 1))])) : N("", !0),
|
|
2584
|
+
L(W(Gi), {
|
|
2584
2585
|
class: "td-frontmatter-inline",
|
|
2585
|
-
schema:
|
|
2586
|
-
frontmatter:
|
|
2586
|
+
schema: W(n).schema,
|
|
2587
|
+
frontmatter: W(n).frontmatter
|
|
2587
2588
|
}, null, 8, ["schema", "frontmatter"]),
|
|
2588
|
-
|
|
2589
|
+
W(n).headings.length > 0 ? (B(), M(_a, {
|
|
2589
2590
|
key: 4,
|
|
2590
2591
|
class: "td-toc-inline",
|
|
2591
|
-
headings:
|
|
2592
|
+
headings: W(n).headings,
|
|
2592
2593
|
static: ""
|
|
2593
|
-
}, null, 8, ["headings"])) :
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
])]),
|
|
2597
|
-
|
|
2594
|
+
}, null, 8, ["headings"])) : N("", !0),
|
|
2595
|
+
F("div", _o, [L(W(ce))]),
|
|
2596
|
+
L(ua)
|
|
2597
|
+
])]), L(ya, { class: "td-rail" })])]),
|
|
2598
|
+
L(Ir)
|
|
2598
2599
|
]));
|
|
2599
2600
|
}
|
|
2600
|
-
}), [["__scopeId", "data-v-b3cf814d"]]), Co = { class: "pt-16 pb-24" }, wo = ["href"], To = /* @__PURE__ */
|
|
2601
|
+
}), [["__scopeId", "data-v-b3cf814d"]]), Co = { class: "pt-16 pb-24" }, wo = ["href"], To = /* @__PURE__ */ R({
|
|
2601
2602
|
__name: "TdNotFound",
|
|
2602
2603
|
setup(e) {
|
|
2603
|
-
let { withBase: t } =
|
|
2604
|
-
return (e, n) => (
|
|
2605
|
-
n[0] ||=
|
|
2606
|
-
n[1] ||=
|
|
2607
|
-
n[2] ||=
|
|
2608
|
-
|
|
2604
|
+
let { withBase: t } = O();
|
|
2605
|
+
return (e, n) => (B(), P("div", Co, [
|
|
2606
|
+
n[0] ||= F("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
|
|
2607
|
+
n[1] ||= F("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
|
|
2608
|
+
n[2] ||= F("p", { class: "text-td-fg-muted mt-2 text-td-base leading-td-relaxed" }, " The page you are looking for does not exist. ", -1),
|
|
2609
|
+
F("a", {
|
|
2609
2610
|
class: "inline-flex items-center mt-6 text-td-primary-solid text-td-sm font-extrabold tracking-td-tight hover:text-td-primary-solid-hover",
|
|
2610
|
-
href:
|
|
2611
|
+
href: W(t)(W(l)("/"))
|
|
2611
2612
|
}, "Go Home", 8, wo)
|
|
2612
2613
|
]));
|
|
2613
2614
|
}
|
|
@@ -2616,4 +2617,4 @@ var Ja = { class: "td-header" }, Ya = { class: "td-header-left" }, Xa = ["href"]
|
|
|
2616
2617
|
NotFound: To
|
|
2617
2618
|
};
|
|
2618
2619
|
//#endregion
|
|
2619
|
-
export {
|
|
2620
|
+
export { fe as TdDirectoryIndex, he as TdGlossaryIndex, Ca as TdKbdShortcut, $ as TdKeyName, So as TdLayout, To as TdNotFound, Eo as default, Ba as useCopyCode, Ha as useGlobalHotkey, Ua as useLocalHotkeys };
|