@ansidev-oss/vitepress-theme-ansidev 1.0.11 → 1.0.12
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/client/{VPAlgoliaSearchBox-BAhNuo7n.js → VPAlgoliaSearchBox-C18GEhLm.js} +1 -1
- package/dist/client/{VPCarbonAds-CSK7KnIu.js → VPCarbonAds-DwoamMao.js} +6 -6
- package/dist/client/{VPLocalSearchBox-TYbANUkJ.js → VPLocalSearchBox-DyteUinQ.js} +2 -2
- package/dist/client/{index-C43AnX3f.js → index-CkmxezC0.js} +917 -917
- package/dist/client/index.js +1 -1
- package/dist/client/plugins/sharing/index.d.ts +4 -0
- package/dist/client/styles.css +1 -1
- package/dist/node/config.d.mts +4 -0
- package/package.json +11 -8
- package/src/client/plugins/sharing/index.ts +4 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Icon as
|
|
1
|
+
import { Icon as ka } from "@iconify/vue";
|
|
2
2
|
import * as pn from "vue";
|
|
3
|
-
import { defineComponent as w, openBlock as c, createElementBlock as h, normalizeClass as ee, renderSlot as k, createTextVNode as Pe, toDisplayString as B, createBlock as F, Transition as Wn, withCtx as T, createCommentVNode as M, computed as D, createElementVNode as b, unref as d, getCurrentScope as fo, onScopeDispose as
|
|
4
|
-
import { useData as Vt, withBase as Yn, getScrollOffset as
|
|
5
|
-
const
|
|
3
|
+
import { defineComponent as w, openBlock as c, createElementBlock as h, normalizeClass as ee, renderSlot as k, createTextVNode as Pe, toDisplayString as B, createBlock as F, Transition as Wn, withCtx as T, createCommentVNode as M, computed as D, createElementVNode as b, unref as d, getCurrentScope as fo, onScopeDispose as La, watch as Ee, toRef as Na, readonly as Bn, customRef as Ta, ref as ae, onMounted as Ve, nextTick as zt, isRef as Gn, getCurrentInstance as Kn, hasInjectionContext as mo, inject as yt, toValue as fe, shallowRef as ge, watchEffect as kt, reactive as ys, onUpdated as Sa, onUnmounted as Qt, watchPostEffect as _o, shallowReadonly as ks, resolveComponent as Ne, Fragment as X, renderList as _e, createVNode as H, defineAsyncComponent as at, resolveDynamicComponent as je, useTemplateRef as Ia, mergeProps as $e, normalizeStyle as po, provide as vo, toHandlers as Pa, withKeys as Oa, onBeforeUnmount as $a, withModifiers as Aa, useSlots as Ca, effectScope as wa, h as ho, Text as Da, normalizeProps as Ma, guardReactiveProps as Va } from "vue";
|
|
4
|
+
import { useData as Vt, withBase as Yn, getScrollOffset as Ra, onContentUpdated as go, inBrowser as Zt, useRoute as Lt, useRouter as Fa } from "vitepress";
|
|
5
|
+
const xa = /* @__PURE__ */ w({
|
|
6
6
|
__name: "VPBadge",
|
|
7
7
|
props: {
|
|
8
8
|
text: {},
|
|
@@ -17,10 +17,10 @@ const xr = /* @__PURE__ */ w({
|
|
|
17
17
|
])
|
|
18
18
|
], 2));
|
|
19
19
|
}
|
|
20
|
-
}),
|
|
20
|
+
}), Ua = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "VPBackdrop"
|
|
23
|
-
},
|
|
23
|
+
}, Ha = /* @__PURE__ */ w({
|
|
24
24
|
__name: "VPBackdrop",
|
|
25
25
|
props: {
|
|
26
26
|
show: { type: Boolean }
|
|
@@ -28,7 +28,7 @@ const xr = /* @__PURE__ */ w({
|
|
|
28
28
|
setup(e) {
|
|
29
29
|
return (t, n) => (c(), F(Wn, { name: "fade" }, {
|
|
30
30
|
default: T(() => [
|
|
31
|
-
e.show ? (c(), h("div",
|
|
31
|
+
e.show ? (c(), h("div", Ua)) : M("", !0)
|
|
32
32
|
]),
|
|
33
33
|
_: 1
|
|
34
34
|
}));
|
|
@@ -38,7 +38,7 @@ const xr = /* @__PURE__ */ w({
|
|
|
38
38
|
for (const [s, o] of t)
|
|
39
39
|
n[s] = o;
|
|
40
40
|
return n;
|
|
41
|
-
},
|
|
41
|
+
}, ja = /* @__PURE__ */ W(Ha, [["__scopeId", "data-v-436ab071"]]), q = Vt, Wa = {}, Xn = /^(?:[a-z]+:|\/\/)/i, Ba = /#.*$/, Ga = /[?#].*$/, Ka = /(?:(^|\/)index)?\.(?:md|html)$/, bo = typeof document < "u";
|
|
42
42
|
function qe(e, t, n = !1) {
|
|
43
43
|
if (t === void 0)
|
|
44
44
|
return !1;
|
|
@@ -46,24 +46,24 @@ function qe(e, t, n = !1) {
|
|
|
46
46
|
return new RegExp(t).test(e);
|
|
47
47
|
if (Ls(t) !== e)
|
|
48
48
|
return !1;
|
|
49
|
-
const s = t.match(
|
|
49
|
+
const s = t.match(Ba);
|
|
50
50
|
return s ? (bo ? location.hash : "") === s[0] : !0;
|
|
51
51
|
}
|
|
52
52
|
function Ls(e) {
|
|
53
|
-
return decodeURI(e).replace(
|
|
53
|
+
return decodeURI(e).replace(Ga, "").replace(Ka, "$1");
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Ya(e) {
|
|
56
56
|
return Xn.test(e);
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const Xa = /[\u0000-\u001F"#$&*+,:;<=>?[\]^`{|}\u007F]/g, qa = /^[a-z]:/i;
|
|
59
59
|
function jp(e) {
|
|
60
|
-
const t =
|
|
61
|
-
return n + e.slice(n.length).replace(
|
|
60
|
+
const t = qa.exec(e), n = t ? t[0] : "";
|
|
61
|
+
return n + e.slice(n.length).replace(Xa, "_").replace(/(^|\/)_+(?=[^/]*$)/, "$1");
|
|
62
62
|
}
|
|
63
63
|
const vn = /* @__PURE__ */ new Set();
|
|
64
|
-
function
|
|
64
|
+
function Ja(e) {
|
|
65
65
|
if (vn.size === 0) {
|
|
66
|
-
const n = typeof process == "object" && process.env?.VITE_EXTRA_EXTENSIONS ||
|
|
66
|
+
const n = typeof process == "object" && process.env?.VITE_EXTRA_EXTENSIONS || Wa?.VITE_EXTRA_EXTENSIONS || "";
|
|
67
67
|
("3g2,3gp,aac,ai,apng,au,avif,bin,bmp,cer,class,conf,crl,css,csv,dll,doc,eps,epub,exe,gif,gz,ics,ief,jar,jpe,jpeg,jpg,js,json,jsonld,m4a,man,mid,midi,mjs,mov,mp2,mp3,mp4,mpe,mpeg,mpg,mpp,oga,ogg,ogv,ogx,opus,otf,p10,p7c,p7m,p7s,pdf,png,ps,qt,roff,rtf,rtx,ser,svg,t,tif,tiff,tr,ts,tsv,ttf,txt,vtt,wav,weba,webm,webp,woff,woff2,xhtml,xml,yaml,yml,zip" + (n && typeof n == "string" ? "," + n : "")).split(",").forEach((s) => vn.add(s));
|
|
68
68
|
}
|
|
69
69
|
const t = e.split(".").pop();
|
|
@@ -75,7 +75,7 @@ function Wp(e) {
|
|
|
75
75
|
function Ns(e) {
|
|
76
76
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function za(e, t) {
|
|
79
79
|
let n, s = !1;
|
|
80
80
|
return () => {
|
|
81
81
|
n && clearTimeout(n), s ? n = setTimeout(e, t) : (e(), (s = !0) && setTimeout(() => s = !1, t));
|
|
@@ -86,55 +86,55 @@ function Tn(e) {
|
|
|
86
86
|
}
|
|
87
87
|
function qn(e) {
|
|
88
88
|
const { pathname: t, search: n, hash: s, protocol: o } = new URL(e, "http://a.com");
|
|
89
|
-
if (
|
|
89
|
+
if (Ya(e) || e.startsWith("#") || !o.startsWith("http") || !Ja(t))
|
|
90
90
|
return e;
|
|
91
|
-
const { site:
|
|
92
|
-
return Yn(
|
|
91
|
+
const { site: a } = q(), r = t.endsWith("/") || t.endsWith(".html") ? e : e.replace(/(?:(^\.+)\/)?.*$/, `$1${t.replace(/(\.md)?$/, a.value.cleanUrls ? "" : ".html")}${n}${s}`);
|
|
92
|
+
return Yn(r);
|
|
93
93
|
}
|
|
94
94
|
function Rt({ correspondingLink: e = !1 } = {}) {
|
|
95
|
-
const { site: t, localeIndex: n, page: s, theme: o, hash:
|
|
95
|
+
const { site: t, localeIndex: n, page: s, theme: o, hash: a } = q(), r = D(() => ({
|
|
96
96
|
label: t.value.locales[n.value]?.label,
|
|
97
97
|
link: t.value.locales[n.value]?.link || (n.value === "root" ? "/" : `/${n.value}/`)
|
|
98
98
|
}));
|
|
99
|
-
return { localeLinks: D(() => Object.entries(t.value.locales).flatMap(([i, f]) =>
|
|
99
|
+
return { localeLinks: D(() => Object.entries(t.value.locales).flatMap(([i, f]) => r.value.label === f.label ? [] : {
|
|
100
100
|
text: f.label,
|
|
101
|
-
link:
|
|
101
|
+
link: Qa(f.link || (i === "root" ? "/" : `/${i}/`), o.value.i18nRouting !== !1 && e, s.value.relativePath.slice(r.value.link.length - 1), !t.value.cleanUrls) + a.value,
|
|
102
102
|
lang: f.lang,
|
|
103
103
|
dir: f.dir
|
|
104
|
-
})), currentLang:
|
|
104
|
+
})), currentLang: r };
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Qa(e, t, n, s) {
|
|
107
107
|
return t ? e.replace(/\/$/, "") + Tn(n.replace(/(^|\/)index\.md$/, "$1").replace(/\.md$/, s ? ".html" : "")) : e;
|
|
108
108
|
}
|
|
109
|
-
const
|
|
109
|
+
const Za = { class: "NotFound" }, er = { class: "code" }, tr = { class: "title" }, nr = { class: "quote" }, sr = { class: "action" }, or = ["href", "aria-label"], ar = /* @__PURE__ */ w({
|
|
110
110
|
__name: "NotFound",
|
|
111
111
|
setup(e) {
|
|
112
112
|
const { theme: t } = q(), { currentLang: n } = Rt();
|
|
113
|
-
return (s, o) => (c(), h("div",
|
|
114
|
-
b("p",
|
|
115
|
-
b("h1",
|
|
113
|
+
return (s, o) => (c(), h("div", Za, [
|
|
114
|
+
b("p", er, B(d(t).notFound?.code ?? "404"), 1),
|
|
115
|
+
b("h1", tr, B(d(t).notFound?.title ?? "PAGE NOT FOUND"), 1),
|
|
116
116
|
o[0] || (o[0] = b("div", { class: "divider" }, null, -1)),
|
|
117
|
-
b("blockquote",
|
|
118
|
-
b("div",
|
|
117
|
+
b("blockquote", nr, B(d(t).notFound?.quote ?? "But if you don't change your direction, and if you keep looking, you may end up where you are heading."), 1),
|
|
118
|
+
b("div", sr, [
|
|
119
119
|
b("a", {
|
|
120
120
|
class: "link",
|
|
121
121
|
href: d(Yn)(d(t).notFound?.link ?? d(n).link),
|
|
122
122
|
"aria-label": d(t).notFound?.linkLabel ?? "go to home"
|
|
123
|
-
}, B(d(t).notFound?.linkText ?? "Take me home"), 9,
|
|
123
|
+
}, B(d(t).notFound?.linkText ?? "Take me home"), 9, or)
|
|
124
124
|
])
|
|
125
125
|
]));
|
|
126
126
|
}
|
|
127
|
-
}),
|
|
127
|
+
}), rr = /* @__PURE__ */ W(ar, [["__scopeId", "data-v-e7f49904"]]);
|
|
128
128
|
function Eo(e, t) {
|
|
129
129
|
if (Array.isArray(e))
|
|
130
130
|
return Kt(e);
|
|
131
131
|
if (e == null)
|
|
132
132
|
return [];
|
|
133
133
|
t = Tn(t);
|
|
134
|
-
const n = Object.keys(e).sort((o,
|
|
134
|
+
const n = Object.keys(e).sort((o, a) => a.split("/").length - o.split("/").length).find((o) => t.startsWith(Tn(o))), s = n ? e[n] : [];
|
|
135
135
|
return Array.isArray(s) ? Kt(s) : Kt(s.items, s.base);
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function lr(e) {
|
|
138
138
|
const t = [];
|
|
139
139
|
let n = 0;
|
|
140
140
|
for (const s in e) {
|
|
@@ -147,7 +147,7 @@ function la(e) {
|
|
|
147
147
|
}
|
|
148
148
|
return t;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function ir(e) {
|
|
151
151
|
const t = [];
|
|
152
152
|
function n(s) {
|
|
153
153
|
for (const o of s)
|
|
@@ -169,33 +169,33 @@ function Kt(e, t) {
|
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
function yo(e, t) {
|
|
172
|
-
return fo() ? (
|
|
172
|
+
return fo() ? (La(e, t), !0) : !1;
|
|
173
173
|
}
|
|
174
|
-
const hn = /* @__PURE__ */ new WeakMap(),
|
|
174
|
+
const hn = /* @__PURE__ */ new WeakMap(), cr = /* @__NO_SIDE_EFFECTS__ */ (...e) => {
|
|
175
175
|
var t;
|
|
176
176
|
const n = e[0], s = (t = Kn()) === null || t === void 0 ? void 0 : t.proxy, o = s ?? fo();
|
|
177
177
|
if (o == null && !mo()) throw new Error("injectLocal must be called in setup");
|
|
178
178
|
return o && hn.has(o) && n in hn.get(o) ? hn.get(o)[n] : yt(...e);
|
|
179
|
-
},
|
|
179
|
+
}, ur = typeof window < "u" && typeof document < "u";
|
|
180
180
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
181
|
-
const
|
|
181
|
+
const dr = (e) => e != null, fr = Object.prototype.toString, mr = (e) => fr.call(e) === "[object Object]", Qe = () => {
|
|
182
182
|
};
|
|
183
183
|
function ko(...e) {
|
|
184
|
-
if (e.length !== 1) return
|
|
184
|
+
if (e.length !== 1) return Na(...e);
|
|
185
185
|
const t = e[0];
|
|
186
|
-
return typeof t == "function" ? Bn(
|
|
186
|
+
return typeof t == "function" ? Bn(Ta(() => ({
|
|
187
187
|
get: t,
|
|
188
188
|
set: Qe
|
|
189
|
-
}))) :
|
|
189
|
+
}))) : ae(t);
|
|
190
190
|
}
|
|
191
191
|
function Jn(e, t) {
|
|
192
192
|
function n(...s) {
|
|
193
|
-
return new Promise((o,
|
|
193
|
+
return new Promise((o, a) => {
|
|
194
194
|
Promise.resolve(e(() => t.apply(this, s), {
|
|
195
195
|
fn: t,
|
|
196
196
|
thisArg: this,
|
|
197
197
|
args: s
|
|
198
|
-
})).then(o).catch(
|
|
198
|
+
})).then(o).catch(a);
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
201
|
return n;
|
|
@@ -203,52 +203,52 @@ function Jn(e, t) {
|
|
|
203
203
|
const Lo = (e) => e();
|
|
204
204
|
function No(e, t = {}) {
|
|
205
205
|
let n, s, o = Qe;
|
|
206
|
-
const
|
|
206
|
+
const a = (i) => {
|
|
207
207
|
clearTimeout(i), o(), o = Qe;
|
|
208
208
|
};
|
|
209
|
-
let
|
|
209
|
+
let r;
|
|
210
210
|
return (i) => {
|
|
211
211
|
const f = fe(e), v = fe(t.maxWait);
|
|
212
|
-
return n &&
|
|
213
|
-
o = t.rejectOnCancel ? E : g,
|
|
214
|
-
n &&
|
|
212
|
+
return n && a(n), f <= 0 || v !== void 0 && v <= 0 ? (s && (a(s), s = void 0), Promise.resolve(i())) : new Promise((g, E) => {
|
|
213
|
+
o = t.rejectOnCancel ? E : g, r = i, v && !s && (s = setTimeout(() => {
|
|
214
|
+
n && a(n), s = void 0, g(r());
|
|
215
215
|
}, v)), n = setTimeout(() => {
|
|
216
|
-
s &&
|
|
216
|
+
s && a(s), s = void 0, g(i());
|
|
217
217
|
}, f);
|
|
218
218
|
});
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
let t = 0, n, s = !0, o = Qe,
|
|
223
|
-
!Gn(e[0]) && typeof e[0] == "object" ? { delay:
|
|
221
|
+
function _r(...e) {
|
|
222
|
+
let t = 0, n, s = !0, o = Qe, a, r, l, i, f;
|
|
223
|
+
!Gn(e[0]) && typeof e[0] == "object" ? { delay: r, trailing: l = !0, leading: i = !0, rejectOnCancel: f = !1 } = e[0] : [r, l = !0, i = !0, f = !1] = e;
|
|
224
224
|
const v = () => {
|
|
225
225
|
n && (clearTimeout(n), n = void 0, o(), o = Qe);
|
|
226
226
|
};
|
|
227
227
|
return (E) => {
|
|
228
|
-
const I = fe(
|
|
229
|
-
return v(), I <= 0 ? (t = Date.now(), O()) : (R > I ? (t = Date.now(), (i || !s) && O()) : l && (
|
|
228
|
+
const I = fe(r), R = Date.now() - t, O = () => a = E();
|
|
229
|
+
return v(), I <= 0 ? (t = Date.now(), O()) : (R > I ? (t = Date.now(), (i || !s) && O()) : l && (a = new Promise(($, _) => {
|
|
230
230
|
o = f ? _ : $, n = setTimeout(() => {
|
|
231
231
|
t = Date.now(), s = !0, $(O()), v();
|
|
232
232
|
}, Math.max(0, I - R));
|
|
233
|
-
})), !i && !n && (n = setTimeout(() => s = !0, I)), s = !1,
|
|
233
|
+
})), !i && !n && (n = setTimeout(() => s = !0, I)), s = !1, a);
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function pr(e = Lo, t = {}) {
|
|
237
237
|
const { initialState: n = "active" } = t, s = ko(n === "active");
|
|
238
238
|
function o() {
|
|
239
239
|
s.value = !1;
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function a() {
|
|
242
242
|
s.value = !0;
|
|
243
243
|
}
|
|
244
|
-
const
|
|
244
|
+
const r = (...l) => {
|
|
245
245
|
s.value && e(...l);
|
|
246
246
|
};
|
|
247
247
|
return {
|
|
248
248
|
isActive: Bn(s),
|
|
249
249
|
pause: o,
|
|
250
|
-
resume:
|
|
251
|
-
eventFilter:
|
|
250
|
+
resume: a,
|
|
251
|
+
eventFilter: r
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
254
|
function Ts(e) {
|
|
@@ -257,27 +257,27 @@ function Ts(e) {
|
|
|
257
257
|
function Yt(e) {
|
|
258
258
|
return Array.isArray(e) ? e : [e];
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function vr(e) {
|
|
261
261
|
return Kn();
|
|
262
262
|
}
|
|
263
263
|
// @__NO_SIDE_EFFECTS__
|
|
264
|
-
function
|
|
264
|
+
function hr(e, t = 200, n = {}) {
|
|
265
265
|
return Jn(No(t, n), e);
|
|
266
266
|
}
|
|
267
267
|
// @__NO_SIDE_EFFECTS__
|
|
268
|
-
function
|
|
269
|
-
return Jn(
|
|
268
|
+
function gr(e, t = 200, n = !1, s = !0, o = !1) {
|
|
269
|
+
return Jn(_r(t, n, s, o), e);
|
|
270
270
|
}
|
|
271
271
|
function To(e, t, n = {}) {
|
|
272
272
|
const { eventFilter: s = Lo, ...o } = n;
|
|
273
273
|
return Ee(e, Jn(s, t), o);
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
const { eventFilter: s, initialState: o = "active", ...
|
|
275
|
+
function br(e, t, n = {}) {
|
|
276
|
+
const { eventFilter: s, initialState: o = "active", ...a } = n, { eventFilter: r, pause: l, resume: i, isActive: f } = pr(s, { initialState: o });
|
|
277
277
|
return {
|
|
278
278
|
stop: To(e, t, {
|
|
279
|
-
...
|
|
280
|
-
eventFilter:
|
|
279
|
+
...a,
|
|
280
|
+
eventFilter: r
|
|
281
281
|
}),
|
|
282
282
|
pause: l,
|
|
283
283
|
resume: i,
|
|
@@ -285,16 +285,16 @@ function ba(e, t, n = {}) {
|
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
287
|
function zn(e, t = !0, n) {
|
|
288
|
-
|
|
288
|
+
vr() ? Ve(e, n) : t ? e() : zt(e);
|
|
289
289
|
}
|
|
290
290
|
function Bp(e, t, n = {}) {
|
|
291
|
-
const { debounce: s = 0, maxWait: o = void 0, ...
|
|
291
|
+
const { debounce: s = 0, maxWait: o = void 0, ...a } = n;
|
|
292
292
|
return To(e, t, {
|
|
293
|
-
...
|
|
293
|
+
...a,
|
|
294
294
|
eventFilter: No(s, { maxWait: o })
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function Er(e, t, n) {
|
|
298
298
|
return Ee(e, t, {
|
|
299
299
|
...n,
|
|
300
300
|
immediate: !0
|
|
@@ -304,7 +304,7 @@ function Gp(e, t, n) {
|
|
|
304
304
|
var s;
|
|
305
305
|
let o;
|
|
306
306
|
Gn(n) ? o = { evaluating: n } : o = n || {};
|
|
307
|
-
const { lazy:
|
|
307
|
+
const { lazy: a = !1, flush: r = "sync", evaluating: l = void 0, shallow: i = !0, onError: f = (s = globalThis.reportError) !== null && s !== void 0 ? s : Qe } = o, v = ge(!a), g = i ? ge(t) : ae(t);
|
|
308
308
|
let E = 0;
|
|
309
309
|
return kt(async (I) => {
|
|
310
310
|
if (!v.value) return;
|
|
@@ -326,37 +326,37 @@ function Gp(e, t, n) {
|
|
|
326
326
|
} finally {
|
|
327
327
|
l && R === E && (l.value = !1), O = !0;
|
|
328
328
|
}
|
|
329
|
-
}, { flush:
|
|
329
|
+
}, { flush: r }), a ? D(() => (v.value = !0, g.value)) : g;
|
|
330
330
|
}
|
|
331
|
-
const Se =
|
|
331
|
+
const Se = ur ? window : void 0;
|
|
332
332
|
function Qn(e) {
|
|
333
333
|
var t;
|
|
334
334
|
const n = fe(e);
|
|
335
335
|
return (t = n?.$el) !== null && t !== void 0 ? t : n;
|
|
336
336
|
}
|
|
337
337
|
function Je(...e) {
|
|
338
|
-
const t = (s, o,
|
|
338
|
+
const t = (s, o, a, r) => (s.addEventListener(o, a, r), () => s.removeEventListener(o, a, r)), n = D(() => {
|
|
339
339
|
const s = Yt(fe(e[0])).filter((o) => o != null);
|
|
340
340
|
return s.every((o) => typeof o != "string") ? s : void 0;
|
|
341
341
|
});
|
|
342
|
-
return
|
|
342
|
+
return Er(() => {
|
|
343
343
|
var s, o;
|
|
344
344
|
return [
|
|
345
|
-
(s = (o = n.value) === null || o === void 0 ? void 0 : o.map((
|
|
345
|
+
(s = (o = n.value) === null || o === void 0 ? void 0 : o.map((a) => Qn(a))) !== null && s !== void 0 ? s : [Se].filter((a) => a != null),
|
|
346
346
|
Yt(fe(n.value ? e[1] : e[0])),
|
|
347
347
|
Yt(d(n.value ? e[2] : e[1])),
|
|
348
348
|
fe(n.value ? e[3] : e[2])
|
|
349
349
|
];
|
|
350
|
-
}, ([s, o,
|
|
351
|
-
if (!s?.length || !o?.length || !
|
|
352
|
-
const f =
|
|
350
|
+
}, ([s, o, a, r], l, i) => {
|
|
351
|
+
if (!s?.length || !o?.length || !a?.length) return;
|
|
352
|
+
const f = mr(r) ? { ...r } : r, v = s.flatMap((g) => o.flatMap((E) => a.map((I) => t(g, E, I, f))));
|
|
353
353
|
i(() => {
|
|
354
354
|
v.forEach((g) => g());
|
|
355
355
|
});
|
|
356
356
|
}, { flush: "post" });
|
|
357
357
|
}
|
|
358
358
|
// @__NO_SIDE_EFFECTS__
|
|
359
|
-
function
|
|
359
|
+
function yr() {
|
|
360
360
|
const e = ge(!1), t = Kn();
|
|
361
361
|
return t && Ve(() => {
|
|
362
362
|
e.value = !0;
|
|
@@ -364,75 +364,75 @@ function ya() {
|
|
|
364
364
|
}
|
|
365
365
|
// @__NO_SIDE_EFFECTS__
|
|
366
366
|
function Zn(e) {
|
|
367
|
-
const t = /* @__PURE__ */
|
|
367
|
+
const t = /* @__PURE__ */ yr();
|
|
368
368
|
return D(() => (t.value, !!e()));
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function kr(e, t, n = {}) {
|
|
371
371
|
const { window: s = Se, ...o } = n;
|
|
372
|
-
let
|
|
373
|
-
const
|
|
374
|
-
|
|
372
|
+
let a;
|
|
373
|
+
const r = /* @__PURE__ */ Zn(() => s && "MutationObserver" in s), l = () => {
|
|
374
|
+
a && (a.disconnect(), a = void 0);
|
|
375
375
|
}, i = Ee(D(() => {
|
|
376
|
-
const g = Yt(fe(e)).map(Qn).filter(
|
|
376
|
+
const g = Yt(fe(e)).map(Qn).filter(dr);
|
|
377
377
|
return new Set(g);
|
|
378
378
|
}), (g) => {
|
|
379
|
-
l(),
|
|
379
|
+
l(), r.value && g.size && (a = new MutationObserver(t), g.forEach((E) => a.observe(E, o)));
|
|
380
380
|
}, {
|
|
381
381
|
immediate: !0,
|
|
382
382
|
flush: "post"
|
|
383
|
-
}), f = () =>
|
|
383
|
+
}), f = () => a?.takeRecords(), v = () => {
|
|
384
384
|
i(), l();
|
|
385
385
|
};
|
|
386
386
|
return yo(v), {
|
|
387
|
-
isSupported:
|
|
387
|
+
isSupported: r,
|
|
388
388
|
stop: v,
|
|
389
389
|
takeRecords: f
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Lr(e) {
|
|
393
393
|
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
394
394
|
}
|
|
395
395
|
function mt(...e) {
|
|
396
396
|
let t, n, s = {};
|
|
397
397
|
e.length === 3 ? (t = e[0], n = e[1], s = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], s = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
398
|
-
const { target: o = Se, eventName:
|
|
399
|
-
return Je(o,
|
|
398
|
+
const { target: o = Se, eventName: a = "keydown", passive: r = !1, dedupe: l = !1 } = s, i = Lr(t);
|
|
399
|
+
return Je(o, a, (v) => {
|
|
400
400
|
v.repeat && fe(l) || i(v) && n(v);
|
|
401
|
-
},
|
|
401
|
+
}, r);
|
|
402
402
|
}
|
|
403
|
-
const
|
|
403
|
+
const Nr = /* @__PURE__ */ Symbol("vueuse-ssr-width");
|
|
404
404
|
// @__NO_SIDE_EFFECTS__
|
|
405
|
-
function
|
|
406
|
-
const e = mo() ? /* @__PURE__ */
|
|
405
|
+
function Tr() {
|
|
406
|
+
const e = mo() ? /* @__PURE__ */ cr(Nr, null) : null;
|
|
407
407
|
return typeof e == "number" ? e : void 0;
|
|
408
408
|
}
|
|
409
409
|
function In(e, t = {}) {
|
|
410
|
-
const { window: n = Se, ssrWidth: s = /* @__PURE__ */
|
|
410
|
+
const { window: n = Se, ssrWidth: s = /* @__PURE__ */ Tr() } = t, o = /* @__PURE__ */ Zn(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), a = ge(typeof s == "number"), r = ge(), l = ge(!1), i = (f) => {
|
|
411
411
|
l.value = f.matches;
|
|
412
412
|
};
|
|
413
413
|
return kt(() => {
|
|
414
|
-
if (
|
|
415
|
-
|
|
414
|
+
if (a.value) {
|
|
415
|
+
a.value = !o.value, l.value = fe(e).split(",").some((f) => {
|
|
416
416
|
const v = f.includes("not all"), g = f.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), E = f.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
417
417
|
let I = !!(g || E);
|
|
418
418
|
return g && I && (I = s >= Ts(g[1])), E && I && (I = s <= Ts(E[1])), v ? !I : I;
|
|
419
419
|
});
|
|
420
420
|
return;
|
|
421
421
|
}
|
|
422
|
-
o.value && (
|
|
423
|
-
}), Je(
|
|
422
|
+
o.value && (r.value = n.matchMedia(fe(e)), l.value = r.value.matches);
|
|
423
|
+
}), Je(r, "change", i, { passive: !0 }), D(() => l.value);
|
|
424
424
|
}
|
|
425
|
-
const Ht = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, jt = "__vueuse_ssr_handlers__",
|
|
426
|
-
function
|
|
425
|
+
const Ht = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, jt = "__vueuse_ssr_handlers__", Sr = /* @__PURE__ */ Ir();
|
|
426
|
+
function Ir() {
|
|
427
427
|
return jt in Ht || (Ht[jt] = Ht[jt] || {}), Ht[jt];
|
|
428
428
|
}
|
|
429
|
-
function
|
|
430
|
-
return
|
|
429
|
+
function Pr(e, t) {
|
|
430
|
+
return Sr[e] || t;
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function Or(e) {
|
|
433
433
|
return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number";
|
|
434
434
|
}
|
|
435
|
-
const $
|
|
435
|
+
const $r = {
|
|
436
436
|
boolean: {
|
|
437
437
|
read: (e) => e === "true",
|
|
438
438
|
write: (e) => String(e)
|
|
@@ -468,21 +468,21 @@ const $a = {
|
|
|
468
468
|
}, Ss = "vueuse-storage";
|
|
469
469
|
function So(e, t, n, s = {}) {
|
|
470
470
|
var o;
|
|
471
|
-
const { flush:
|
|
471
|
+
const { flush: a = "pre", deep: r = !0, listenToStorageChanges: l = !0, writeDefaults: i = !0, mergeDefaults: f = !1, shallow: v, window: g = Se, eventFilter: E, onError: I = (Y) => {
|
|
472
472
|
console.error(Y);
|
|
473
|
-
}, initOnMounted: R } = s, O = (v ? ge :
|
|
473
|
+
}, initOnMounted: R } = s, O = (v ? ge : ae)(typeof t == "function" ? t() : t), $ = D(() => fe(e));
|
|
474
474
|
if (!n) try {
|
|
475
|
-
n =
|
|
475
|
+
n = Pr("getDefaultStorage", () => Se?.localStorage)();
|
|
476
476
|
} catch (Y) {
|
|
477
477
|
I(Y);
|
|
478
478
|
}
|
|
479
479
|
if (!n) return O;
|
|
480
|
-
const _ = fe(t), p =
|
|
481
|
-
flush:
|
|
482
|
-
deep:
|
|
480
|
+
const _ = fe(t), p = Or(_), L = (o = s.serializer) !== null && o !== void 0 ? o : $r[p], { pause: y, resume: C } = br(O, (Y) => se(Y), {
|
|
481
|
+
flush: a,
|
|
482
|
+
deep: r,
|
|
483
483
|
eventFilter: E
|
|
484
484
|
});
|
|
485
|
-
Ee($, () => z(), { flush:
|
|
485
|
+
Ee($, () => z(), { flush: a });
|
|
486
486
|
let V = !1;
|
|
487
487
|
const S = (Y) => {
|
|
488
488
|
R && !V || z(Y);
|
|
@@ -556,8 +556,8 @@ function gn(e) {
|
|
|
556
556
|
return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
|
|
557
557
|
}
|
|
558
558
|
const Is = 1;
|
|
559
|
-
function
|
|
560
|
-
const { throttle: n = 0, idle: s = 200, onStop: o = Qe, onScroll:
|
|
559
|
+
function Ar(e, t = {}) {
|
|
560
|
+
const { throttle: n = 0, idle: s = 200, onStop: o = Qe, onScroll: a = Qe, offset: r = {
|
|
561
561
|
left: 0,
|
|
562
562
|
right: 0,
|
|
563
563
|
top: 0,
|
|
@@ -607,22 +607,22 @@ function Aa(e, t = {}) {
|
|
|
607
607
|
bottom: !1
|
|
608
608
|
}), C = (U) => {
|
|
609
609
|
p.value && (p.value = !1, y.left = !1, y.right = !1, y.top = !1, y.bottom = !1, o(U));
|
|
610
|
-
}, V = /* @__PURE__ */
|
|
610
|
+
}, V = /* @__PURE__ */ hr(C, n + s), S = (U) => {
|
|
611
611
|
var se;
|
|
612
612
|
if (!v) return;
|
|
613
613
|
const ce = (U == null || (se = U.document) === null || se === void 0 ? void 0 : se.documentElement) || U?.documentElement || Qn(U), { display: z, flexDirection: Le, direction: Y } = v.getComputedStyle(ce), Q = Y === "rtl" ? -1 : 1, ue = ce.scrollLeft;
|
|
614
614
|
y.left = ue < I.value, y.right = ue > I.value;
|
|
615
|
-
const ct = Math.abs(ue * Q) <= (
|
|
615
|
+
const ct = Math.abs(ue * Q) <= (r.left || 0), ut = Math.abs(ue * Q) + ce.clientWidth >= ce.scrollWidth - (r.right || 0) - Is;
|
|
616
616
|
z === "flex" && Le === "row-reverse" ? (L.left = ut, L.right = ct) : (L.left = ct, L.right = ut), I.value = ue;
|
|
617
617
|
let Re = ce.scrollTop;
|
|
618
618
|
U === v.document && !Re && (Re = v.document.body.scrollTop), y.top = Re < R.value, y.bottom = Re > R.value;
|
|
619
|
-
const Ce = Math.abs(Re) <= (
|
|
619
|
+
const Ce = Math.abs(Re) <= (r.top || 0), ze = Math.abs(Re) + ce.clientHeight >= ce.scrollHeight - (r.bottom || 0) - Is;
|
|
620
620
|
z === "flex" && Le === "column-reverse" ? (L.top = ze, L.bottom = Ce) : (L.top = Ce, L.bottom = ze), R.value = Re;
|
|
621
621
|
}, K = (U) => {
|
|
622
622
|
var se;
|
|
623
|
-
v && (S((se = U.target.documentElement) !== null && se !== void 0 ? se : U.target), p.value = !0, V(U),
|
|
623
|
+
v && (S((se = U.target.documentElement) !== null && se !== void 0 ? se : U.target), p.value = !0, V(U), a(U));
|
|
624
624
|
};
|
|
625
|
-
return Je(e, "scroll", n ? /* @__PURE__ */
|
|
625
|
+
return Je(e, "scroll", n ? /* @__PURE__ */ gr(K, n, !0, !1) : K, i), zn(() => {
|
|
626
626
|
try {
|
|
627
627
|
const U = fe(e);
|
|
628
628
|
if (!U) return;
|
|
@@ -630,7 +630,7 @@ function Aa(e, t = {}) {
|
|
|
630
630
|
} catch (U) {
|
|
631
631
|
g(U);
|
|
632
632
|
}
|
|
633
|
-
}), E?.mutation && e != null && e !== v && e !== document &&
|
|
633
|
+
}), E?.mutation && e != null && e !== v && e !== document && kr(e, () => {
|
|
634
634
|
const U = fe(e);
|
|
635
635
|
U && S(U);
|
|
636
636
|
}, {
|
|
@@ -654,7 +654,7 @@ function Kp(e, t, n = {}) {
|
|
|
654
654
|
return So(e, t, s?.localStorage, n);
|
|
655
655
|
}
|
|
656
656
|
// @__NO_SIDE_EFFECTS__
|
|
657
|
-
function
|
|
657
|
+
function Cr(e = {}) {
|
|
658
658
|
const { window: t = Se } = e, n = t?.navigator, s = /* @__PURE__ */ Zn(() => n && "language" in n), o = ge(n?.language);
|
|
659
659
|
return Je(t, "languagechange", () => {
|
|
660
660
|
n && (o.value = n.language);
|
|
@@ -667,8 +667,8 @@ const bn = /* @__PURE__ */ new WeakMap();
|
|
|
667
667
|
function Io(e, t = !1) {
|
|
668
668
|
const n = ge(t);
|
|
669
669
|
let s = "";
|
|
670
|
-
Ee(ko(e), (
|
|
671
|
-
const l = gn(fe(
|
|
670
|
+
Ee(ko(e), (r) => {
|
|
671
|
+
const l = gn(fe(r));
|
|
672
672
|
if (l) {
|
|
673
673
|
const i = l;
|
|
674
674
|
if (bn.get(i) || bn.set(i, i.style.overflow), i.style.overflow !== "hidden" && (s = i.style.overflow), i.style.overflow === "hidden") return n.value = !0;
|
|
@@ -676,18 +676,18 @@ function Io(e, t = !1) {
|
|
|
676
676
|
}
|
|
677
677
|
}, { immediate: !0 });
|
|
678
678
|
const o = () => {
|
|
679
|
-
const
|
|
680
|
-
!
|
|
681
|
-
},
|
|
682
|
-
const
|
|
683
|
-
!
|
|
679
|
+
const r = gn(fe(e));
|
|
680
|
+
!r || n.value || (r.style.overflow = "hidden", n.value = !0);
|
|
681
|
+
}, a = () => {
|
|
682
|
+
const r = gn(fe(e));
|
|
683
|
+
!r || !n.value || (r.style.overflow = s, bn.delete(r), n.value = !1);
|
|
684
684
|
};
|
|
685
|
-
return yo(
|
|
685
|
+
return yo(a), D({
|
|
686
686
|
get() {
|
|
687
687
|
return n.value;
|
|
688
688
|
},
|
|
689
|
-
set(
|
|
690
|
-
|
|
689
|
+
set(r) {
|
|
690
|
+
r ? o() : a();
|
|
691
691
|
}
|
|
692
692
|
});
|
|
693
693
|
}
|
|
@@ -697,109 +697,109 @@ function Yp(e, t, n = {}) {
|
|
|
697
697
|
}
|
|
698
698
|
function Po(e = {}) {
|
|
699
699
|
const { window: t = Se, ...n } = e;
|
|
700
|
-
return
|
|
700
|
+
return Ar(t, n);
|
|
701
701
|
}
|
|
702
702
|
// @__NO_SIDE_EFFECTS__
|
|
703
|
-
function
|
|
704
|
-
const { window: t = Se, initialWidth: n = Number.POSITIVE_INFINITY, initialHeight: s = Number.POSITIVE_INFINITY, listenOrientation: o = !0, includeScrollbar:
|
|
705
|
-
if (t) if (
|
|
703
|
+
function wr(e = {}) {
|
|
704
|
+
const { window: t = Se, initialWidth: n = Number.POSITIVE_INFINITY, initialHeight: s = Number.POSITIVE_INFINITY, listenOrientation: o = !0, includeScrollbar: a = !0, type: r = "inner" } = e, l = ge(n), i = ge(s), f = () => {
|
|
705
|
+
if (t) if (r === "outer")
|
|
706
706
|
l.value = t.outerWidth, i.value = t.outerHeight;
|
|
707
|
-
else if (
|
|
707
|
+
else if (r === "visual" && t.visualViewport) {
|
|
708
708
|
const { width: g, height: E, scale: I } = t.visualViewport;
|
|
709
709
|
l.value = Math.round(g * I), i.value = Math.round(E * I);
|
|
710
|
-
} else
|
|
710
|
+
} else a ? (l.value = t.innerWidth, i.value = t.innerHeight) : (l.value = t.document.documentElement.clientWidth, i.value = t.document.documentElement.clientHeight);
|
|
711
711
|
};
|
|
712
712
|
f(), zn(f);
|
|
713
713
|
const v = { passive: !0 };
|
|
714
|
-
return Je("resize", f, v), t &&
|
|
714
|
+
return Je("resize", f, v), t && r === "visual" && t.visualViewport && Je(t.visualViewport, "resize", f, v), o && Ee(In("(orientation: portrait)"), () => f()), {
|
|
715
715
|
width: l,
|
|
716
716
|
height: i
|
|
717
717
|
};
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function Dr() {
|
|
720
720
|
const { hasSidebar: e } = Ge(), t = In("(min-width: 960px)"), n = In("(min-width: 1280px)");
|
|
721
721
|
return {
|
|
722
722
|
isAsideEnabled: D(() => !n.value && !t.value ? !1 : e.value ? n.value : t.value)
|
|
723
723
|
};
|
|
724
724
|
}
|
|
725
|
-
const
|
|
725
|
+
const Mr = /\b(?:VPBadge|header-anchor|footnote-ref|ignore-header)\b/, Pn = [];
|
|
726
726
|
function Oo(e) {
|
|
727
727
|
return typeof e.outline == "object" && !Array.isArray(e.outline) && e.outline.label || e.outlineTitle || "On this page";
|
|
728
728
|
}
|
|
729
|
-
function
|
|
729
|
+
function Vr(e) {
|
|
730
730
|
const t = [
|
|
731
731
|
...document.querySelectorAll(".VPDoc h1, .VPDoc h2, .VPDoc h3, .VPDoc h4, .VPDoc h5, .VPDoc h6")
|
|
732
732
|
].filter((n) => n.id && n.hasChildNodes()).map((n) => {
|
|
733
733
|
const s = Number(n.tagName[1]);
|
|
734
734
|
return {
|
|
735
735
|
element: n,
|
|
736
|
-
title:
|
|
736
|
+
title: Rr(n),
|
|
737
737
|
link: "#" + n.id,
|
|
738
738
|
level: s
|
|
739
739
|
};
|
|
740
740
|
});
|
|
741
|
-
return
|
|
741
|
+
return Fr(t, e);
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function Rr(e) {
|
|
744
744
|
let t = "";
|
|
745
745
|
for (const n of e.childNodes)
|
|
746
746
|
if (n.nodeType === 1) {
|
|
747
|
-
if (
|
|
747
|
+
if (Mr.test(n.className))
|
|
748
748
|
continue;
|
|
749
749
|
t += n.textContent;
|
|
750
750
|
} else n.nodeType === 3 && (t += n.textContent);
|
|
751
751
|
return t.trim();
|
|
752
752
|
}
|
|
753
|
-
function
|
|
753
|
+
function Fr(e, t) {
|
|
754
754
|
if (t === !1)
|
|
755
755
|
return [];
|
|
756
756
|
const n = (typeof t == "object" && !Array.isArray(t) ? t.level : t) || 2, [s, o] = typeof n == "number" ? [n, n] : n === "deep" ? [2, 6] : n;
|
|
757
|
-
return
|
|
757
|
+
return Hr(e, s, o);
|
|
758
758
|
}
|
|
759
|
-
function
|
|
760
|
-
const { isAsideEnabled: n } =
|
|
759
|
+
function xr(e, t) {
|
|
760
|
+
const { isAsideEnabled: n } = Dr(), s = za(a, 100);
|
|
761
761
|
let o = null;
|
|
762
762
|
Ve(() => {
|
|
763
|
-
requestAnimationFrame(
|
|
764
|
-
}),
|
|
765
|
-
|
|
763
|
+
requestAnimationFrame(a), window.addEventListener("scroll", s);
|
|
764
|
+
}), Sa(() => {
|
|
765
|
+
r(location.hash);
|
|
766
766
|
}), Qt(() => {
|
|
767
767
|
window.removeEventListener("scroll", s);
|
|
768
768
|
});
|
|
769
|
-
function
|
|
769
|
+
function a() {
|
|
770
770
|
if (!n.value)
|
|
771
771
|
return;
|
|
772
772
|
const l = window.scrollY, i = window.innerHeight, f = document.body.offsetHeight, v = Math.abs(l + i - f) < 1, g = Pn.map(({ element: I, link: R }) => ({
|
|
773
773
|
link: R,
|
|
774
|
-
top:
|
|
774
|
+
top: Ur(I)
|
|
775
775
|
})).filter(({ top: I }) => !Number.isNaN(I)).sort((I, R) => I.top - R.top);
|
|
776
776
|
if (!g.length) {
|
|
777
|
-
|
|
777
|
+
r(null);
|
|
778
778
|
return;
|
|
779
779
|
}
|
|
780
780
|
if (l < 1) {
|
|
781
|
-
|
|
781
|
+
r(null);
|
|
782
782
|
return;
|
|
783
783
|
}
|
|
784
784
|
if (v) {
|
|
785
|
-
|
|
785
|
+
r(g[g.length - 1].link);
|
|
786
786
|
return;
|
|
787
787
|
}
|
|
788
788
|
let E = null;
|
|
789
789
|
for (const { link: I, top: R } of g) {
|
|
790
|
-
if (R > l +
|
|
790
|
+
if (R > l + Ra() + 4)
|
|
791
791
|
break;
|
|
792
792
|
E = I;
|
|
793
793
|
}
|
|
794
|
-
|
|
794
|
+
r(E);
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function r(l) {
|
|
797
797
|
o && o.classList.remove("active"), l == null ? o = null : o = e.value.querySelector(`a[href="${decodeURIComponent(l)}"]`);
|
|
798
798
|
const i = o;
|
|
799
799
|
i ? (i.classList.add("active"), t.value.style.top = i.offsetTop + 39 + "px", t.value.style.opacity = "1") : (t.value.style.top = "33px", t.value.style.opacity = "0");
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function Ur(e) {
|
|
803
803
|
let t = 0;
|
|
804
804
|
for (; e !== document.body; ) {
|
|
805
805
|
if (e === null)
|
|
@@ -808,23 +808,23 @@ function Ua(e) {
|
|
|
808
808
|
}
|
|
809
809
|
return t;
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function Hr(e, t, n) {
|
|
812
812
|
Pn.length = 0;
|
|
813
813
|
const s = [], o = [];
|
|
814
|
-
return e.forEach((
|
|
815
|
-
const
|
|
814
|
+
return e.forEach((a) => {
|
|
815
|
+
const r = { ...a, children: [] };
|
|
816
816
|
let l = o[o.length - 1];
|
|
817
|
-
for (; l && l.level >=
|
|
817
|
+
for (; l && l.level >= r.level; )
|
|
818
818
|
o.pop(), l = o[o.length - 1];
|
|
819
|
-
if (
|
|
820
|
-
o.push({ level:
|
|
819
|
+
if (r.element.classList.contains("ignore-header") || l && "shouldIgnore" in l) {
|
|
820
|
+
o.push({ level: r.level, shouldIgnore: !0 });
|
|
821
821
|
return;
|
|
822
822
|
}
|
|
823
|
-
|
|
823
|
+
r.level > n || r.level < t || (Pn.push({ element: r.element, link: r.link }), l ? l.children.push(r) : s.push(r), o.push(r));
|
|
824
824
|
}), s;
|
|
825
825
|
}
|
|
826
|
-
const pt =
|
|
827
|
-
function
|
|
826
|
+
const pt = ae(!1);
|
|
827
|
+
function jr(e) {
|
|
828
828
|
let t;
|
|
829
829
|
kt(() => {
|
|
830
830
|
t = pt.value ? document.activeElement : void 0;
|
|
@@ -837,7 +837,7 @@ function ja(e) {
|
|
|
837
837
|
s.key === "Escape" && pt.value && (e(), t?.focus());
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
|
-
function
|
|
840
|
+
function Wr() {
|
|
841
841
|
function e() {
|
|
842
842
|
pt.value = !0;
|
|
843
843
|
}
|
|
@@ -854,16 +854,16 @@ function Wa() {
|
|
|
854
854
|
toggle: n
|
|
855
855
|
};
|
|
856
856
|
}
|
|
857
|
-
function
|
|
858
|
-
const { page: t, hash: n } = q(), s =
|
|
859
|
-
|
|
857
|
+
function Br(e) {
|
|
858
|
+
const { page: t, hash: n } = q(), s = ae(!1), o = D(() => e.value.collapsed != null), a = D(() => !!e.value.link), r = ae(!1), l = () => {
|
|
859
|
+
r.value = qe(t.value.relativePath, e.value.link);
|
|
860
860
|
};
|
|
861
861
|
Ee([t, e, n], l), Ve(l);
|
|
862
|
-
const i = D(() =>
|
|
862
|
+
const i = D(() => r.value ? !0 : e.value.items ? Sn(t.value.relativePath, e.value.items) : !1), f = D(() => !!(e.value.items && e.value.items.length));
|
|
863
863
|
kt(() => {
|
|
864
864
|
s.value = !!(o.value && e.value.collapsed);
|
|
865
865
|
}), _o(() => {
|
|
866
|
-
(
|
|
866
|
+
(r.value || i.value) && (s.value = !1);
|
|
867
867
|
});
|
|
868
868
|
function v() {
|
|
869
869
|
o.value && (s.value = !s.value);
|
|
@@ -871,8 +871,8 @@ function Ba(e) {
|
|
|
871
871
|
return {
|
|
872
872
|
collapsed: s,
|
|
873
873
|
collapsible: o,
|
|
874
|
-
isLink:
|
|
875
|
-
isActiveLink:
|
|
874
|
+
isLink: a,
|
|
875
|
+
isActiveLink: r,
|
|
876
876
|
hasActiveLink: i,
|
|
877
877
|
hasChildren: f,
|
|
878
878
|
toggle: v
|
|
@@ -880,33 +880,33 @@ function Ba(e) {
|
|
|
880
880
|
}
|
|
881
881
|
const On = ge([]), Ot = ge([]), $n = ge(!1);
|
|
882
882
|
function Ge() {
|
|
883
|
-
const { frontmatter: e, theme: t } = q(), n = D(() => !!(e.value.isHome ?? e.value.layout === "home")), s = D(() => e.value.sidebar !== !1 && Ot.value.length > 0 && !n.value), o = D(() => s.value && $n.value),
|
|
883
|
+
const { frontmatter: e, theme: t } = q(), n = D(() => !!(e.value.isHome ?? e.value.layout === "home")), s = D(() => e.value.sidebar !== !1 && Ot.value.length > 0 && !n.value), o = D(() => s.value && $n.value), a = D(() => s.value ? lr(Ot.value) : []), r = D(() => n.value ? !1 : e.value.aside != null ? !!e.value.aside : t.value.aside !== !1), l = D(() => r.value ? e.value.aside == null ? t.value.aside === "left" : e.value.aside === "left" : !1), i = D(() => On.value.length > 0);
|
|
884
884
|
return {
|
|
885
885
|
isHome: n,
|
|
886
886
|
sidebar: ks(Ot),
|
|
887
|
-
sidebarGroups:
|
|
887
|
+
sidebarGroups: a,
|
|
888
888
|
hasSidebar: s,
|
|
889
889
|
isSidebarEnabled: o,
|
|
890
|
-
hasAside:
|
|
890
|
+
hasAside: r,
|
|
891
891
|
leftAside: l,
|
|
892
892
|
headers: ks(On),
|
|
893
893
|
hasLocalNav: i
|
|
894
894
|
};
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function Gr({ closeSidebar: e }) {
|
|
897
897
|
const { frontmatter: t, page: n, theme: s } = q();
|
|
898
|
-
Ee(() => [n.value.relativePath, s.value.sidebar], ([
|
|
899
|
-
const l =
|
|
898
|
+
Ee(() => [n.value.relativePath, s.value.sidebar], ([a, r]) => {
|
|
899
|
+
const l = r ? Eo(r, a) : [];
|
|
900
900
|
JSON.stringify(l) !== JSON.stringify(Ot.value) && (Ot.value = l);
|
|
901
901
|
}, { immediate: !0, deep: !0, flush: "sync" }), go(() => {
|
|
902
|
-
On.value =
|
|
902
|
+
On.value = Vr(t.value.outline ?? s.value.outline);
|
|
903
903
|
}), Zt && ($n.value = window.innerWidth >= 960, window.addEventListener("resize", () => {
|
|
904
904
|
$n.value = window.innerWidth >= 960;
|
|
905
905
|
}, { passive: !0 }));
|
|
906
906
|
const o = Lt();
|
|
907
|
-
Ee(() => o.path, e),
|
|
907
|
+
Ee(() => o.path, e), jr(e);
|
|
908
908
|
}
|
|
909
|
-
const $o = /* @__PURE__ */ Symbol("layout-info"),
|
|
909
|
+
const $o = /* @__PURE__ */ Symbol("layout-info"), Kr = ["href", "title"], Yr = /* @__PURE__ */ w({
|
|
910
910
|
__name: "VPDocOutlineItem",
|
|
911
911
|
props: {
|
|
912
912
|
headers: {},
|
|
@@ -918,12 +918,12 @@ const $o = /* @__PURE__ */ Symbol("layout-info"), Ka = ["href", "title"], Ya = /
|
|
|
918
918
|
return c(), h("ul", {
|
|
919
919
|
class: ee(["VPDocOutlineItem", e.root ? "root" : "nested"])
|
|
920
920
|
}, [
|
|
921
|
-
(c(!0), h(X, null, _e(e.headers, ({ children: o, link:
|
|
921
|
+
(c(!0), h(X, null, _e(e.headers, ({ children: o, link: a, title: r }) => (c(), h("li", null, [
|
|
922
922
|
b("a", {
|
|
923
923
|
class: "outline-link",
|
|
924
|
-
href:
|
|
925
|
-
title:
|
|
926
|
-
}, B(
|
|
924
|
+
href: a,
|
|
925
|
+
title: r
|
|
926
|
+
}, B(r), 9, Kr),
|
|
927
927
|
o?.length ? (c(), F(s, {
|
|
928
928
|
key: 0,
|
|
929
929
|
headers: o
|
|
@@ -932,28 +932,28 @@ const $o = /* @__PURE__ */ Symbol("layout-info"), Ka = ["href", "title"], Ya = /
|
|
|
932
932
|
], 2);
|
|
933
933
|
};
|
|
934
934
|
}
|
|
935
|
-
}), Ao = /* @__PURE__ */ W(
|
|
935
|
+
}), Ao = /* @__PURE__ */ W(Yr, [["__scopeId", "data-v-c85f7dd3"]]), Xr = { class: "content" }, qr = {
|
|
936
936
|
"aria-level": "2",
|
|
937
937
|
class: "outline-title",
|
|
938
938
|
id: "doc-outline-aria-label",
|
|
939
939
|
role: "heading"
|
|
940
|
-
},
|
|
940
|
+
}, Jr = /* @__PURE__ */ w({
|
|
941
941
|
__name: "VPDocAsideOutline",
|
|
942
942
|
setup(e) {
|
|
943
|
-
const { theme: t } = q(), n =
|
|
944
|
-
return
|
|
943
|
+
const { theme: t } = q(), n = ae(), s = ae(), { headers: o, hasLocalNav: a } = Ge();
|
|
944
|
+
return xr(n, s), (r, l) => (c(), h("nav", {
|
|
945
945
|
"aria-labelledby": "doc-outline-aria-label",
|
|
946
|
-
class: ee(["VPDocAsideOutline", { "has-outline": d(
|
|
946
|
+
class: ee(["VPDocAsideOutline", { "has-outline": d(a) }]),
|
|
947
947
|
ref_key: "container",
|
|
948
948
|
ref: n
|
|
949
949
|
}, [
|
|
950
|
-
b("div",
|
|
950
|
+
b("div", Xr, [
|
|
951
951
|
b("div", {
|
|
952
952
|
class: "outline-marker",
|
|
953
953
|
ref_key: "marker",
|
|
954
954
|
ref: s
|
|
955
955
|
}, null, 512),
|
|
956
|
-
b("div",
|
|
956
|
+
b("div", qr, B(d(Oo)(d(t))), 1),
|
|
957
957
|
H(Ao, {
|
|
958
958
|
headers: d(o),
|
|
959
959
|
root: !0
|
|
@@ -961,14 +961,14 @@ const $o = /* @__PURE__ */ Symbol("layout-info"), Ka = ["href", "title"], Ya = /
|
|
|
961
961
|
])
|
|
962
962
|
], 2));
|
|
963
963
|
}
|
|
964
|
-
}),
|
|
964
|
+
}), zr = /* @__PURE__ */ W(Jr, [["__scopeId", "data-v-3f66b9f9"]]), Qr = { class: "VPDocAsideCarbonAds" }, Zr = /* @__PURE__ */ w({
|
|
965
965
|
__name: "VPDocAsideCarbonAds",
|
|
966
966
|
props: {
|
|
967
967
|
carbonAds: {}
|
|
968
968
|
},
|
|
969
969
|
setup(e) {
|
|
970
|
-
const t = __CARBON__ ?
|
|
971
|
-
return (n, s) => (c(), h("div",
|
|
970
|
+
const t = __CARBON__ ? at(() => import("./VPCarbonAds-DwoamMao.js")) : () => null;
|
|
971
|
+
return (n, s) => (c(), h("div", Qr, [
|
|
972
972
|
H(d(t), { "carbon-ads": e.carbonAds }, null, 8, ["carbon-ads"])
|
|
973
973
|
]));
|
|
974
974
|
}
|
|
@@ -979,11 +979,11 @@ const $o = /* @__PURE__ */ Symbol("layout-info"), Ka = ["href", "title"], Ya = /
|
|
|
979
979
|
return (n, s) => (c(), h("div", el, [
|
|
980
980
|
k(n.$slots, "aside-top", {}, void 0, !0),
|
|
981
981
|
k(n.$slots, "aside-outline-before", {}, void 0, !0),
|
|
982
|
-
H(
|
|
982
|
+
H(zr),
|
|
983
983
|
k(n.$slots, "aside-outline-after", {}, void 0, !0),
|
|
984
984
|
s[0] || (s[0] = b("div", { class: "spacer" }, null, -1)),
|
|
985
985
|
k(n.$slots, "aside-ads-before", {}, void 0, !0),
|
|
986
|
-
d(t).carbonAds ? (c(), F(
|
|
986
|
+
d(t).carbonAds ? (c(), F(Zr, {
|
|
987
987
|
key: 0,
|
|
988
988
|
"carbon-ads": d(t).carbonAds
|
|
989
989
|
}, null, 8, ["carbon-ads"])) : M("", !0),
|
|
@@ -991,7 +991,7 @@ const $o = /* @__PURE__ */ Symbol("layout-info"), Ka = ["href", "title"], Ya = /
|
|
|
991
991
|
k(n.$slots, "aside-bottom", {}, void 0, !0)
|
|
992
992
|
]));
|
|
993
993
|
}
|
|
994
|
-
}), nl = /* @__PURE__ */ W(tl, [["__scopeId", "data-v-
|
|
994
|
+
}), nl = /* @__PURE__ */ W(tl, [["__scopeId", "data-v-36367223"]]);
|
|
995
995
|
function sl() {
|
|
996
996
|
const { theme: e, page: t } = q();
|
|
997
997
|
return D(() => {
|
|
@@ -1003,20 +1003,20 @@ function sl() {
|
|
|
1003
1003
|
function ol() {
|
|
1004
1004
|
const { page: e, theme: t, frontmatter: n } = q();
|
|
1005
1005
|
return D(() => {
|
|
1006
|
-
const s = Eo(t.value.sidebar, e.value.relativePath), o =
|
|
1006
|
+
const s = Eo(t.value.sidebar, e.value.relativePath), o = ir(s), a = al(o, (f) => f.link.replace(/[?#].*$/, "")), r = a.findIndex((f) => qe(e.value.relativePath, f.link)), l = t.value.docFooter?.prev === !1 && !n.value.prev || n.value.prev === !1, i = t.value.docFooter?.next === !1 && !n.value.next || n.value.next === !1;
|
|
1007
1007
|
return {
|
|
1008
1008
|
prev: l ? void 0 : {
|
|
1009
|
-
text: (typeof n.value.prev == "string" ? n.value.prev : typeof n.value.prev == "object" ? n.value.prev.text : void 0) ?? r
|
|
1010
|
-
link: (typeof n.value.prev == "object" ? n.value.prev.link : void 0) ?? r
|
|
1009
|
+
text: (typeof n.value.prev == "string" ? n.value.prev : typeof n.value.prev == "object" ? n.value.prev.text : void 0) ?? a[r - 1]?.docFooterText ?? a[r - 1]?.text,
|
|
1010
|
+
link: (typeof n.value.prev == "object" ? n.value.prev.link : void 0) ?? a[r - 1]?.link
|
|
1011
1011
|
},
|
|
1012
1012
|
next: i ? void 0 : {
|
|
1013
|
-
text: (typeof n.value.next == "string" ? n.value.next : typeof n.value.next == "object" ? n.value.next.text : void 0) ?? r
|
|
1014
|
-
link: (typeof n.value.next == "object" ? n.value.next.link : void 0) ?? r
|
|
1013
|
+
text: (typeof n.value.next == "string" ? n.value.next : typeof n.value.next == "object" ? n.value.next.text : void 0) ?? a[r + 1]?.docFooterText ?? a[r + 1]?.text,
|
|
1014
|
+
link: (typeof n.value.next == "object" ? n.value.next.link : void 0) ?? a[r + 1]?.link
|
|
1015
1015
|
}
|
|
1016
1016
|
};
|
|
1017
1017
|
});
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1019
|
+
function al(e, t) {
|
|
1020
1020
|
const n = /* @__PURE__ */ new Set();
|
|
1021
1021
|
return e.filter((s) => {
|
|
1022
1022
|
const o = t(s);
|
|
@@ -1036,7 +1036,7 @@ const We = /* @__PURE__ */ w({
|
|
|
1036
1036
|
const t = e, n = D(() => t.tag ?? (t.href ? "a" : "span")), s = D(
|
|
1037
1037
|
() => t.href && Xn.test(t.href) || t.target === "_blank"
|
|
1038
1038
|
);
|
|
1039
|
-
return (o,
|
|
1039
|
+
return (o, a) => (c(), F(je(n.value), {
|
|
1040
1040
|
class: ee(["VPLink", {
|
|
1041
1041
|
link: e.href,
|
|
1042
1042
|
"vp-external-link-icon": s.value,
|
|
@@ -1052,10 +1052,10 @@ const We = /* @__PURE__ */ w({
|
|
|
1052
1052
|
_: 3
|
|
1053
1053
|
}, 8, ["class", "href", "target", "rel"]));
|
|
1054
1054
|
}
|
|
1055
|
-
}),
|
|
1055
|
+
}), rl = { class: "VPLastUpdated" }, ll = ["datetime"], il = /* @__PURE__ */ w({
|
|
1056
1056
|
__name: "VPDocFooterLastUpdated",
|
|
1057
1057
|
setup(e) {
|
|
1058
|
-
const { theme: t, page: n, lang: s } = q(), { language: o } = /* @__PURE__ */
|
|
1058
|
+
const { theme: t, page: n, lang: s } = q(), { language: o } = /* @__PURE__ */ Cr(), a = Ia("timeRef"), r = D(() => new Date(n.value.lastUpdated)), l = D(() => r.value.toISOString()), i = ge("");
|
|
1059
1059
|
return Ve(() => {
|
|
1060
1060
|
kt(() => {
|
|
1061
1061
|
const f = t.value.lastUpdated?.formatOptions?.forceLocale ? s.value : o.value;
|
|
@@ -1065,18 +1065,18 @@ const We = /* @__PURE__ */ w({
|
|
|
1065
1065
|
dateStyle: "medium",
|
|
1066
1066
|
timeStyle: "medium"
|
|
1067
1067
|
}
|
|
1068
|
-
).format(
|
|
1068
|
+
).format(r.value), f && s.value !== f ? a.value?.setAttribute("lang", f) : a.value?.removeAttribute("lang");
|
|
1069
1069
|
});
|
|
1070
|
-
}), (f, v) => (c(), h("p",
|
|
1070
|
+
}), (f, v) => (c(), h("p", rl, [
|
|
1071
1071
|
Pe(B(d(t).lastUpdated?.text || d(t).lastUpdatedText || "Last updated") + ": ", 1),
|
|
1072
1072
|
b("time", {
|
|
1073
1073
|
ref_key: "timeRef",
|
|
1074
|
-
ref:
|
|
1074
|
+
ref: a,
|
|
1075
1075
|
datetime: l.value
|
|
1076
1076
|
}, B(i.value), 9, ll)
|
|
1077
1077
|
]));
|
|
1078
1078
|
}
|
|
1079
|
-
}), cl = /* @__PURE__ */ W(il, [["__scopeId", "data-v-
|
|
1079
|
+
}), cl = /* @__PURE__ */ W(il, [["__scopeId", "data-v-585b02d2"]]), ul = {
|
|
1080
1080
|
key: 0,
|
|
1081
1081
|
class: "VPDocFooter"
|
|
1082
1082
|
}, dl = {
|
|
@@ -1095,15 +1095,15 @@ const We = /* @__PURE__ */ w({
|
|
|
1095
1095
|
}, pl = { class: "pager" }, vl = ["innerHTML"], hl = ["innerHTML"], gl = { class: "pager" }, bl = ["innerHTML"], El = ["innerHTML"], yl = /* @__PURE__ */ w({
|
|
1096
1096
|
__name: "VPDocFooter",
|
|
1097
1097
|
setup(e) {
|
|
1098
|
-
const { theme: t, page: n, frontmatter: s } = q(), o = sl(),
|
|
1098
|
+
const { theme: t, page: n, frontmatter: s } = q(), o = sl(), a = ol(), r = D(
|
|
1099
1099
|
() => t.value.editLink && s.value.editLink !== !1
|
|
1100
1100
|
), l = D(() => n.value.lastUpdated), i = D(
|
|
1101
|
-
() =>
|
|
1101
|
+
() => r.value || l.value || a.value.prev || a.value.next
|
|
1102
1102
|
);
|
|
1103
1103
|
return (f, v) => i.value ? (c(), h("footer", ul, [
|
|
1104
1104
|
k(f.$slots, "doc-footer-before", {}, void 0, !0),
|
|
1105
|
-
|
|
1106
|
-
|
|
1105
|
+
r.value || l.value ? (c(), h("div", dl, [
|
|
1106
|
+
r.value ? (c(), h("div", fl, [
|
|
1107
1107
|
H(We, {
|
|
1108
1108
|
class: "edit-link-button",
|
|
1109
1109
|
href: d(o).url,
|
|
@@ -1120,16 +1120,16 @@ const We = /* @__PURE__ */ w({
|
|
|
1120
1120
|
H(cl)
|
|
1121
1121
|
])) : M("", !0)
|
|
1122
1122
|
])) : M("", !0),
|
|
1123
|
-
d(
|
|
1123
|
+
d(a).prev?.link || d(a).next?.link ? (c(), h("nav", _l, [
|
|
1124
1124
|
v[1] || (v[1] = b("span", {
|
|
1125
1125
|
class: "visually-hidden",
|
|
1126
1126
|
id: "doc-footer-aria-label"
|
|
1127
1127
|
}, "Pager", -1)),
|
|
1128
1128
|
b("div", pl, [
|
|
1129
|
-
d(
|
|
1129
|
+
d(a).prev?.link ? (c(), F(We, {
|
|
1130
1130
|
key: 0,
|
|
1131
1131
|
class: "pager-link prev",
|
|
1132
|
-
href: d(
|
|
1132
|
+
href: d(a).prev.link
|
|
1133
1133
|
}, {
|
|
1134
1134
|
default: T(() => [
|
|
1135
1135
|
b("span", {
|
|
@@ -1138,17 +1138,17 @@ const We = /* @__PURE__ */ w({
|
|
|
1138
1138
|
}, null, 8, vl),
|
|
1139
1139
|
b("span", {
|
|
1140
1140
|
class: "title",
|
|
1141
|
-
innerHTML: d(
|
|
1141
|
+
innerHTML: d(a).prev.text
|
|
1142
1142
|
}, null, 8, hl)
|
|
1143
1143
|
]),
|
|
1144
1144
|
_: 1
|
|
1145
1145
|
}, 8, ["href"])) : M("", !0)
|
|
1146
1146
|
]),
|
|
1147
1147
|
b("div", gl, [
|
|
1148
|
-
d(
|
|
1148
|
+
d(a).next?.link ? (c(), F(We, {
|
|
1149
1149
|
key: 0,
|
|
1150
1150
|
class: "pager-link next",
|
|
1151
|
-
href: d(
|
|
1151
|
+
href: d(a).next.link
|
|
1152
1152
|
}, {
|
|
1153
1153
|
default: T(() => [
|
|
1154
1154
|
b("span", {
|
|
@@ -1157,7 +1157,7 @@ const We = /* @__PURE__ */ w({
|
|
|
1157
1157
|
}, null, 8, bl),
|
|
1158
1158
|
b("span", {
|
|
1159
1159
|
class: "title",
|
|
1160
|
-
innerHTML: d(
|
|
1160
|
+
innerHTML: d(a).next.text
|
|
1161
1161
|
}, null, 8, El)
|
|
1162
1162
|
]),
|
|
1163
1163
|
_: 1
|
|
@@ -1166,10 +1166,10 @@ const We = /* @__PURE__ */ w({
|
|
|
1166
1166
|
])) : M("", !0)
|
|
1167
1167
|
])) : M("", !0);
|
|
1168
1168
|
}
|
|
1169
|
-
}), kl = /* @__PURE__ */ W(yl, [["__scopeId", "data-v-
|
|
1169
|
+
}), kl = /* @__PURE__ */ W(yl, [["__scopeId", "data-v-7159051d"]]), Ll = { class: "container" }, Nl = { class: "aside-container" }, Tl = { class: "aside-content" }, Sl = { class: "content" }, Il = { class: "content-container" }, Pl = { class: "main" }, Ol = /* @__PURE__ */ w({
|
|
1170
1170
|
__name: "VPDoc",
|
|
1171
1171
|
setup(e) {
|
|
1172
|
-
const { theme: t } = q(), n = Lt(), { hasSidebar: s, hasAside: o, leftAside:
|
|
1172
|
+
const { theme: t } = q(), n = Lt(), { hasSidebar: s, hasAside: o, leftAside: a } = Ge(), r = D(
|
|
1173
1173
|
() => n.path.replace(/[./]+/g, "_").replace(/_html$/, "")
|
|
1174
1174
|
);
|
|
1175
1175
|
return (l, i) => {
|
|
@@ -1181,7 +1181,7 @@ const We = /* @__PURE__ */ w({
|
|
|
1181
1181
|
b("div", Ll, [
|
|
1182
1182
|
d(o) ? (c(), h("div", {
|
|
1183
1183
|
key: 0,
|
|
1184
|
-
class: ee(["aside", { "left-aside": d(
|
|
1184
|
+
class: ee(["aside", { "left-aside": d(a) }])
|
|
1185
1185
|
}, [
|
|
1186
1186
|
i[0] || (i[0] = b("div", { class: "aside-curtain" }, null, -1)),
|
|
1187
1187
|
b("div", Nl, [
|
|
@@ -1216,7 +1216,7 @@ const We = /* @__PURE__ */ w({
|
|
|
1216
1216
|
b("main", Pl, [
|
|
1217
1217
|
H(f, {
|
|
1218
1218
|
class: ee(["vp-doc", [
|
|
1219
|
-
|
|
1219
|
+
r.value,
|
|
1220
1220
|
d(t).externalLinkIcon && "external-link-icon-enabled"
|
|
1221
1221
|
]])
|
|
1222
1222
|
}, null, 8, ["class"])
|
|
@@ -1235,7 +1235,7 @@ const We = /* @__PURE__ */ w({
|
|
|
1235
1235
|
], 2);
|
|
1236
1236
|
};
|
|
1237
1237
|
}
|
|
1238
|
-
}), $l = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-
|
|
1238
|
+
}), $l = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-93b3a288"]]), Al = /* @__PURE__ */ w({
|
|
1239
1239
|
__name: "VPButton",
|
|
1240
1240
|
props: {
|
|
1241
1241
|
tag: {},
|
|
@@ -1250,7 +1250,7 @@ const We = /* @__PURE__ */ w({
|
|
|
1250
1250
|
const t = e, n = D(
|
|
1251
1251
|
() => t.href && Xn.test(t.href)
|
|
1252
1252
|
), s = D(() => t.tag || (t.href ? "a" : "button"));
|
|
1253
|
-
return (o,
|
|
1253
|
+
return (o, a) => (c(), F(je(s.value), {
|
|
1254
1254
|
class: ee(["VPButton", [e.size, e.theme]]),
|
|
1255
1255
|
href: e.href ? d(qn)(e.href) : void 0,
|
|
1256
1256
|
target: t.target ?? (n.value ? "_blank" : void 0),
|
|
@@ -1264,7 +1264,7 @@ const We = /* @__PURE__ */ w({
|
|
|
1264
1264
|
_: 3
|
|
1265
1265
|
}, 8, ["class", "href", "target", "rel"]));
|
|
1266
1266
|
}
|
|
1267
|
-
}), Cl = /* @__PURE__ */ W(Al, [["__scopeId", "data-v-
|
|
1267
|
+
}), Cl = /* @__PURE__ */ W(Al, [["__scopeId", "data-v-10ae0e22"]]), wl = ["src", "alt"], Dl = /* @__PURE__ */ w({
|
|
1268
1268
|
inheritAttrs: !1,
|
|
1269
1269
|
__name: "VPImage",
|
|
1270
1270
|
props: {
|
|
@@ -1296,7 +1296,7 @@ const We = /* @__PURE__ */ w({
|
|
|
1296
1296
|
], 64)) : M("", !0);
|
|
1297
1297
|
};
|
|
1298
1298
|
}
|
|
1299
|
-
}), qt = /* @__PURE__ */ W(Dl, [["__scopeId", "data-v-
|
|
1299
|
+
}), qt = /* @__PURE__ */ W(Dl, [["__scopeId", "data-v-2bc5d0e9"]]), Ml = { class: "container" }, Vl = { class: "main" }, Rl = { class: "heading" }, Fl = ["innerHTML"], xl = ["innerHTML"], Ul = ["innerHTML"], Hl = {
|
|
1300
1300
|
key: 0,
|
|
1301
1301
|
class: "actions"
|
|
1302
1302
|
}, jl = {
|
|
@@ -1375,7 +1375,7 @@ const We = /* @__PURE__ */ w({
|
|
|
1375
1375
|
])
|
|
1376
1376
|
], 2));
|
|
1377
1377
|
}
|
|
1378
|
-
}), Gl = /* @__PURE__ */ W(Bl, [["__scopeId", "data-v-
|
|
1378
|
+
}), Gl = /* @__PURE__ */ W(Bl, [["__scopeId", "data-v-7ccf6a79"]]), Kl = /* @__PURE__ */ w({
|
|
1379
1379
|
__name: "VPHomeHero",
|
|
1380
1380
|
setup(e) {
|
|
1381
1381
|
const { frontmatter: t } = q();
|
|
@@ -1472,10 +1472,10 @@ const We = /* @__PURE__ */ w({
|
|
|
1472
1472
|
_: 1
|
|
1473
1473
|
}, 8, ["href", "rel", "target", "tag"]));
|
|
1474
1474
|
}
|
|
1475
|
-
}), ti = /* @__PURE__ */ W(ei, [["__scopeId", "data-v-
|
|
1475
|
+
}), ti = /* @__PURE__ */ W(ei, [["__scopeId", "data-v-760e2f72"]]), ni = {
|
|
1476
1476
|
key: 0,
|
|
1477
1477
|
class: "VPFeatures"
|
|
1478
|
-
}, si = { class: "container" }, oi = { class: "items" },
|
|
1478
|
+
}, si = { class: "container" }, oi = { class: "items" }, ai = /* @__PURE__ */ w({
|
|
1479
1479
|
__name: "VPFeatures",
|
|
1480
1480
|
props: {
|
|
1481
1481
|
features: {}
|
|
@@ -1497,29 +1497,29 @@ const We = /* @__PURE__ */ w({
|
|
|
1497
1497
|
return (s, o) => e.features ? (c(), h("div", ni, [
|
|
1498
1498
|
b("div", si, [
|
|
1499
1499
|
b("div", oi, [
|
|
1500
|
-
(c(!0), h(X, null, _e(e.features, (
|
|
1501
|
-
key:
|
|
1500
|
+
(c(!0), h(X, null, _e(e.features, (a) => (c(), h("div", {
|
|
1501
|
+
key: a.title,
|
|
1502
1502
|
class: ee(["item", [n.value]])
|
|
1503
1503
|
}, [
|
|
1504
1504
|
H(ti, {
|
|
1505
|
-
icon:
|
|
1506
|
-
title:
|
|
1507
|
-
details:
|
|
1508
|
-
link:
|
|
1509
|
-
"link-text":
|
|
1510
|
-
rel:
|
|
1511
|
-
target:
|
|
1505
|
+
icon: a.icon,
|
|
1506
|
+
title: a.title,
|
|
1507
|
+
details: a.details,
|
|
1508
|
+
link: a.link,
|
|
1509
|
+
"link-text": a.linkText,
|
|
1510
|
+
rel: a.rel,
|
|
1511
|
+
target: a.target
|
|
1512
1512
|
}, null, 8, ["icon", "title", "details", "link", "link-text", "rel", "target"])
|
|
1513
1513
|
], 2))), 128))
|
|
1514
1514
|
])
|
|
1515
1515
|
])
|
|
1516
1516
|
])) : M("", !0);
|
|
1517
1517
|
}
|
|
1518
|
-
}),
|
|
1518
|
+
}), ri = /* @__PURE__ */ W(ai, [["__scopeId", "data-v-a29bb2f4"]]), li = /* @__PURE__ */ w({
|
|
1519
1519
|
__name: "VPHomeFeatures",
|
|
1520
1520
|
setup(e) {
|
|
1521
1521
|
const { frontmatter: t } = q();
|
|
1522
|
-
return (n, s) => d(t).features ? (c(), F(
|
|
1522
|
+
return (n, s) => d(t).features ? (c(), F(ri, {
|
|
1523
1523
|
key: 0,
|
|
1524
1524
|
class: "VPHomeFeatures",
|
|
1525
1525
|
features: d(t).features
|
|
@@ -1528,7 +1528,7 @@ const We = /* @__PURE__ */ w({
|
|
|
1528
1528
|
}), ii = /* @__PURE__ */ w({
|
|
1529
1529
|
__name: "VPHomeContent",
|
|
1530
1530
|
setup(e) {
|
|
1531
|
-
const { width: t } = /* @__PURE__ */
|
|
1531
|
+
const { width: t } = /* @__PURE__ */ wr({
|
|
1532
1532
|
initialWidth: 0,
|
|
1533
1533
|
includeScrollbar: !1
|
|
1534
1534
|
});
|
|
@@ -1539,12 +1539,12 @@ const We = /* @__PURE__ */ w({
|
|
|
1539
1539
|
k(n.$slots, "default", {}, void 0, !0)
|
|
1540
1540
|
], 4));
|
|
1541
1541
|
}
|
|
1542
|
-
}), ci = /* @__PURE__ */ W(ii, [["__scopeId", "data-v-
|
|
1542
|
+
}), ci = /* @__PURE__ */ W(ii, [["__scopeId", "data-v-b07d20a1"]]), ui = /* @__PURE__ */ w({
|
|
1543
1543
|
__name: "VPHome",
|
|
1544
1544
|
setup(e) {
|
|
1545
1545
|
const { frontmatter: t, theme: n } = q();
|
|
1546
1546
|
return (s, o) => {
|
|
1547
|
-
const
|
|
1547
|
+
const a = Ne("Content");
|
|
1548
1548
|
return c(), h("div", {
|
|
1549
1549
|
class: ee(["VPHome", {
|
|
1550
1550
|
"external-link-icon-enabled": d(n).externalLinkIcon
|
|
@@ -1575,14 +1575,14 @@ const We = /* @__PURE__ */ w({
|
|
|
1575
1575
|
k(s.$slots, "home-features-after", {}, void 0, !0),
|
|
1576
1576
|
d(t).markdownStyles !== !1 ? (c(), F(ci, { key: 0 }, {
|
|
1577
1577
|
default: T(() => [
|
|
1578
|
-
H(
|
|
1578
|
+
H(a)
|
|
1579
1579
|
]),
|
|
1580
1580
|
_: 1
|
|
1581
|
-
})) : (c(), F(
|
|
1581
|
+
})) : (c(), F(a, { key: 1 }))
|
|
1582
1582
|
], 2);
|
|
1583
1583
|
};
|
|
1584
1584
|
}
|
|
1585
|
-
}), di = /* @__PURE__ */ W(ui, [["__scopeId", "data-v-
|
|
1585
|
+
}), di = /* @__PURE__ */ W(ui, [["__scopeId", "data-v-a05a1e2d"]]), fi = {}, mi = { class: "VPPage" };
|
|
1586
1586
|
function _i(e, t) {
|
|
1587
1587
|
const n = Ne("Content");
|
|
1588
1588
|
return c(), h("div", mi, [
|
|
@@ -1595,92 +1595,92 @@ const pi = /* @__PURE__ */ W(fi, [["render", _i]]), vi = /* @__PURE__ */ w({
|
|
|
1595
1595
|
__name: "VPContent",
|
|
1596
1596
|
setup(e) {
|
|
1597
1597
|
const { page: t, frontmatter: n } = q(), { isHome: s, hasSidebar: o } = Ge();
|
|
1598
|
-
return (
|
|
1598
|
+
return (a, r) => (c(), h("div", {
|
|
1599
1599
|
class: ee(["VPContent", { "has-sidebar": d(o), "is-home": d(s) }]),
|
|
1600
1600
|
id: "VPContent"
|
|
1601
1601
|
}, [
|
|
1602
|
-
d(t).isNotFound ? k(
|
|
1603
|
-
H(
|
|
1602
|
+
d(t).isNotFound ? k(a.$slots, "not-found", { key: 0 }, () => [
|
|
1603
|
+
H(rr)
|
|
1604
1604
|
], !0) : d(n).layout === "page" ? (c(), F(pi, { key: 1 }, {
|
|
1605
1605
|
"page-top": T(() => [
|
|
1606
|
-
k(
|
|
1606
|
+
k(a.$slots, "page-top", {}, void 0, !0)
|
|
1607
1607
|
]),
|
|
1608
1608
|
"page-bottom": T(() => [
|
|
1609
|
-
k(
|
|
1609
|
+
k(a.$slots, "page-bottom", {}, void 0, !0)
|
|
1610
1610
|
]),
|
|
1611
1611
|
_: 3
|
|
1612
1612
|
})) : d(n).layout === "home" ? (c(), F(di, { key: 2 }, {
|
|
1613
1613
|
"home-hero-before": T(() => [
|
|
1614
|
-
k(
|
|
1614
|
+
k(a.$slots, "home-hero-before", {}, void 0, !0)
|
|
1615
1615
|
]),
|
|
1616
1616
|
"home-hero-info-before": T(() => [
|
|
1617
|
-
k(
|
|
1617
|
+
k(a.$slots, "home-hero-info-before", {}, void 0, !0)
|
|
1618
1618
|
]),
|
|
1619
1619
|
"home-hero-info": T(() => [
|
|
1620
|
-
k(
|
|
1620
|
+
k(a.$slots, "home-hero-info", {}, void 0, !0)
|
|
1621
1621
|
]),
|
|
1622
1622
|
"home-hero-info-after": T(() => [
|
|
1623
|
-
k(
|
|
1623
|
+
k(a.$slots, "home-hero-info-after", {}, void 0, !0)
|
|
1624
1624
|
]),
|
|
1625
1625
|
"home-hero-actions-after": T(() => [
|
|
1626
|
-
k(
|
|
1626
|
+
k(a.$slots, "home-hero-actions-after", {}, void 0, !0)
|
|
1627
1627
|
]),
|
|
1628
1628
|
"home-hero-image": T(() => [
|
|
1629
|
-
k(
|
|
1629
|
+
k(a.$slots, "home-hero-image", {}, void 0, !0)
|
|
1630
1630
|
]),
|
|
1631
1631
|
"home-hero-after": T(() => [
|
|
1632
|
-
k(
|
|
1632
|
+
k(a.$slots, "home-hero-after", {}, void 0, !0)
|
|
1633
1633
|
]),
|
|
1634
1634
|
"home-features-before": T(() => [
|
|
1635
|
-
k(
|
|
1635
|
+
k(a.$slots, "home-features-before", {}, void 0, !0)
|
|
1636
1636
|
]),
|
|
1637
1637
|
"home-features-after": T(() => [
|
|
1638
|
-
k(
|
|
1638
|
+
k(a.$slots, "home-features-after", {}, void 0, !0)
|
|
1639
1639
|
]),
|
|
1640
1640
|
_: 3
|
|
1641
1641
|
})) : d(n).layout && d(n).layout !== "doc" ? (c(), F(je(d(n).layout), { key: 3 })) : (c(), F($l, { key: 4 }, {
|
|
1642
1642
|
"doc-top": T(() => [
|
|
1643
|
-
k(
|
|
1643
|
+
k(a.$slots, "doc-top", {}, void 0, !0)
|
|
1644
1644
|
]),
|
|
1645
1645
|
"doc-bottom": T(() => [
|
|
1646
|
-
k(
|
|
1646
|
+
k(a.$slots, "doc-bottom", {}, void 0, !0)
|
|
1647
1647
|
]),
|
|
1648
1648
|
"doc-footer-before": T(() => [
|
|
1649
|
-
k(
|
|
1649
|
+
k(a.$slots, "doc-footer-before", {}, void 0, !0)
|
|
1650
1650
|
]),
|
|
1651
1651
|
"doc-before": T(() => [
|
|
1652
|
-
k(
|
|
1652
|
+
k(a.$slots, "doc-before", {}, void 0, !0)
|
|
1653
1653
|
]),
|
|
1654
1654
|
"doc-after": T(() => [
|
|
1655
|
-
k(
|
|
1655
|
+
k(a.$slots, "doc-after", {}, void 0, !0)
|
|
1656
1656
|
]),
|
|
1657
1657
|
"aside-top": T(() => [
|
|
1658
|
-
k(
|
|
1658
|
+
k(a.$slots, "aside-top", {}, void 0, !0)
|
|
1659
1659
|
]),
|
|
1660
1660
|
"aside-outline-before": T(() => [
|
|
1661
|
-
k(
|
|
1661
|
+
k(a.$slots, "aside-outline-before", {}, void 0, !0)
|
|
1662
1662
|
]),
|
|
1663
1663
|
"aside-outline-after": T(() => [
|
|
1664
|
-
k(
|
|
1664
|
+
k(a.$slots, "aside-outline-after", {}, void 0, !0)
|
|
1665
1665
|
]),
|
|
1666
1666
|
"aside-ads-before": T(() => [
|
|
1667
|
-
k(
|
|
1667
|
+
k(a.$slots, "aside-ads-before", {}, void 0, !0)
|
|
1668
1668
|
]),
|
|
1669
1669
|
"aside-ads-after": T(() => [
|
|
1670
|
-
k(
|
|
1670
|
+
k(a.$slots, "aside-ads-after", {}, void 0, !0)
|
|
1671
1671
|
]),
|
|
1672
1672
|
"aside-bottom": T(() => [
|
|
1673
|
-
k(
|
|
1673
|
+
k(a.$slots, "aside-bottom", {}, void 0, !0)
|
|
1674
1674
|
]),
|
|
1675
1675
|
_: 3
|
|
1676
1676
|
}))
|
|
1677
1677
|
], 2));
|
|
1678
1678
|
}
|
|
1679
|
-
}), hi = /* @__PURE__ */ W(vi, [["__scopeId", "data-v-
|
|
1679
|
+
}), hi = /* @__PURE__ */ W(vi, [["__scopeId", "data-v-0b2af110"]]), gi = { class: "container" }, bi = ["innerHTML"], Ei = ["innerHTML"], yi = /* @__PURE__ */ w({
|
|
1680
1680
|
__name: "VPFooter",
|
|
1681
1681
|
setup(e) {
|
|
1682
1682
|
const { theme: t, frontmatter: n } = q(), { hasSidebar: s } = Ge();
|
|
1683
|
-
return (o,
|
|
1683
|
+
return (o, a) => d(t).footer && d(n).footer !== !1 ? (c(), h("footer", {
|
|
1684
1684
|
key: 0,
|
|
1685
1685
|
class: ee(["VPFooter", { "has-sidebar": d(s) }])
|
|
1686
1686
|
}, [
|
|
@@ -1698,16 +1698,16 @@ const pi = /* @__PURE__ */ W(fi, [["render", _i]]), vi = /* @__PURE__ */ w({
|
|
|
1698
1698
|
])
|
|
1699
1699
|
], 2)) : M("", !0);
|
|
1700
1700
|
}
|
|
1701
|
-
}), ki = /* @__PURE__ */ W(yi, [["__scopeId", "data-v-
|
|
1701
|
+
}), ki = /* @__PURE__ */ W(yi, [["__scopeId", "data-v-c4d3faf6"]]), Li = { class: "menu-text" }, Ni = { class: "header" }, Ti = { class: "outline" }, Si = /* @__PURE__ */ w({
|
|
1702
1702
|
__name: "VPLocalNavOutlineDropdown",
|
|
1703
1703
|
props: {
|
|
1704
1704
|
headers: {},
|
|
1705
1705
|
navHeight: {}
|
|
1706
1706
|
},
|
|
1707
1707
|
setup(e) {
|
|
1708
|
-
const t = e, { theme: n } = q(), s =
|
|
1708
|
+
const t = e, { theme: n } = q(), s = ae(!1), o = ae(0), a = ae(), r = ae();
|
|
1709
1709
|
function l(g) {
|
|
1710
|
-
|
|
1710
|
+
a.value?.contains(g.target) || (s.value = !1);
|
|
1711
1711
|
}
|
|
1712
1712
|
Ee(s, (g) => {
|
|
1713
1713
|
if (g) {
|
|
@@ -1724,7 +1724,7 @@ const pi = /* @__PURE__ */ W(fi, [["render", _i]]), vi = /* @__PURE__ */ w({
|
|
|
1724
1724
|
s.value = !s.value, o.value = window.innerHeight + Math.min(window.scrollY - t.navHeight, 0);
|
|
1725
1725
|
}
|
|
1726
1726
|
function f(g) {
|
|
1727
|
-
g.target.classList.contains("outline-link") && (
|
|
1727
|
+
g.target.classList.contains("outline-link") && (r.value && (r.value.style.transition = "none"), zt(() => {
|
|
1728
1728
|
s.value = !1;
|
|
1729
1729
|
}));
|
|
1730
1730
|
}
|
|
@@ -1735,7 +1735,7 @@ const pi = /* @__PURE__ */ W(fi, [["render", _i]]), vi = /* @__PURE__ */ w({
|
|
|
1735
1735
|
class: "VPLocalNavOutlineDropdown",
|
|
1736
1736
|
style: po({ "--vp-vh": o.value + "px" }),
|
|
1737
1737
|
ref_key: "main",
|
|
1738
|
-
ref:
|
|
1738
|
+
ref: a
|
|
1739
1739
|
}, [
|
|
1740
1740
|
e.headers.length > 0 ? (c(), h("button", {
|
|
1741
1741
|
key: 0,
|
|
@@ -1753,7 +1753,7 @@ const pi = /* @__PURE__ */ W(fi, [["render", _i]]), vi = /* @__PURE__ */ w({
|
|
|
1753
1753
|
s.value ? (c(), h("div", {
|
|
1754
1754
|
key: 0,
|
|
1755
1755
|
ref_key: "items",
|
|
1756
|
-
ref:
|
|
1756
|
+
ref: r,
|
|
1757
1757
|
class: "items",
|
|
1758
1758
|
onClick: f
|
|
1759
1759
|
}, [
|
|
@@ -1773,14 +1773,14 @@ const pi = /* @__PURE__ */ W(fi, [["render", _i]]), vi = /* @__PURE__ */ w({
|
|
|
1773
1773
|
})
|
|
1774
1774
|
], 4));
|
|
1775
1775
|
}
|
|
1776
|
-
}), Ii = /* @__PURE__ */ W(Si, [["__scopeId", "data-v-
|
|
1776
|
+
}), Ii = /* @__PURE__ */ W(Si, [["__scopeId", "data-v-4627506e"]]), Pi = { class: "container" }, Oi = ["aria-expanded"], $i = { class: "menu-text" }, Ai = /* @__PURE__ */ w({
|
|
1777
1777
|
__name: "VPLocalNav",
|
|
1778
1778
|
props: {
|
|
1779
1779
|
open: { type: Boolean }
|
|
1780
1780
|
},
|
|
1781
1781
|
emits: ["open-menu"],
|
|
1782
1782
|
setup(e) {
|
|
1783
|
-
const { theme: t } = q(), { isHome: n, hasSidebar: s, headers: o, hasLocalNav:
|
|
1783
|
+
const { theme: t } = q(), { isHome: n, hasSidebar: s, headers: o, hasLocalNav: a } = Ge(), { y: r } = Po(), l = ae(0);
|
|
1784
1784
|
Ve(() => {
|
|
1785
1785
|
l.value = parseInt(
|
|
1786
1786
|
getComputedStyle(document.documentElement).getPropertyValue(
|
|
@@ -1791,10 +1791,10 @@ const pi = /* @__PURE__ */ W(fi, [["render", _i]]), vi = /* @__PURE__ */ w({
|
|
|
1791
1791
|
const i = D(() => ({
|
|
1792
1792
|
VPLocalNav: !0,
|
|
1793
1793
|
"has-sidebar": s.value,
|
|
1794
|
-
empty: !
|
|
1795
|
-
fixed: !
|
|
1794
|
+
empty: !a.value,
|
|
1795
|
+
fixed: !a.value && !s.value
|
|
1796
1796
|
}));
|
|
1797
|
-
return (f, v) => !d(n) && (d(
|
|
1797
|
+
return (f, v) => !d(n) && (d(a) || d(s) || d(r) >= l.value) ? (c(), h("div", {
|
|
1798
1798
|
key: 0,
|
|
1799
1799
|
class: ee(i.value)
|
|
1800
1800
|
}, [
|
|
@@ -1816,9 +1816,9 @@ const pi = /* @__PURE__ */ W(fi, [["render", _i]]), vi = /* @__PURE__ */ w({
|
|
|
1816
1816
|
])
|
|
1817
1817
|
], 2)) : M("", !0);
|
|
1818
1818
|
}
|
|
1819
|
-
}), Ci = /* @__PURE__ */ W(Ai, [["__scopeId", "data-v-
|
|
1819
|
+
}), Ci = /* @__PURE__ */ W(Ai, [["__scopeId", "data-v-1238d11a"]]);
|
|
1820
1820
|
function wi() {
|
|
1821
|
-
const e =
|
|
1821
|
+
const e = ae(!1);
|
|
1822
1822
|
function t() {
|
|
1823
1823
|
e.value = !0, window.addEventListener("resize", o);
|
|
1824
1824
|
}
|
|
@@ -1831,8 +1831,8 @@ function wi() {
|
|
|
1831
1831
|
function o() {
|
|
1832
1832
|
window.outerWidth >= 768 && n();
|
|
1833
1833
|
}
|
|
1834
|
-
const
|
|
1835
|
-
return Ee(() =>
|
|
1834
|
+
const a = Lt();
|
|
1835
|
+
return Ee(() => a.path, n), {
|
|
1836
1836
|
isScreenOpen: e,
|
|
1837
1837
|
openScreen: t,
|
|
1838
1838
|
closeScreen: n,
|
|
@@ -1856,28 +1856,28 @@ function Fi(e, t) {
|
|
|
1856
1856
|
])
|
|
1857
1857
|
]);
|
|
1858
1858
|
}
|
|
1859
|
-
const xi = /* @__PURE__ */ W(Di, [["render", Fi], ["__scopeId", "data-v-
|
|
1859
|
+
const xi = /* @__PURE__ */ W(Di, [["render", Fi], ["__scopeId", "data-v-90eda9b7"]]), Ui = /* @__PURE__ */ w({
|
|
1860
1860
|
__name: "VPSwitchAppearance",
|
|
1861
1861
|
setup(e) {
|
|
1862
1862
|
const { isDark: t, theme: n } = q(), s = yt("toggle-appearance", () => {
|
|
1863
1863
|
t.value = !t.value;
|
|
1864
|
-
}), o =
|
|
1864
|
+
}), o = ae("");
|
|
1865
1865
|
return _o(() => {
|
|
1866
1866
|
o.value = t.value ? n.value.lightModeSwitchTitle || "Switch to light theme" : n.value.darkModeSwitchTitle || "Switch to dark theme";
|
|
1867
|
-
}), (
|
|
1867
|
+
}), (a, r) => (c(), F(xi, {
|
|
1868
1868
|
title: o.value,
|
|
1869
1869
|
class: "VPSwitchAppearance",
|
|
1870
1870
|
"aria-checked": d(t),
|
|
1871
1871
|
onClick: d(s)
|
|
1872
1872
|
}, {
|
|
1873
|
-
default: T(() => [...
|
|
1873
|
+
default: T(() => [...r[0] || (r[0] = [
|
|
1874
1874
|
b("span", { class: "vpi-sun sun" }, null, -1),
|
|
1875
1875
|
b("span", { class: "vpi-moon moon" }, null, -1)
|
|
1876
1876
|
])]),
|
|
1877
1877
|
_: 1
|
|
1878
1878
|
}, 8, ["title", "aria-checked", "onClick"]));
|
|
1879
1879
|
}
|
|
1880
|
-
}), ts = /* @__PURE__ */ W(Ui, [["__scopeId", "data-v-
|
|
1880
|
+
}), ts = /* @__PURE__ */ W(Ui, [["__scopeId", "data-v-a6cf2d7d"]]), Hi = {
|
|
1881
1881
|
key: 0,
|
|
1882
1882
|
class: "VPNavBarAppearance"
|
|
1883
1883
|
}, ji = /* @__PURE__ */ w({
|
|
@@ -1888,10 +1888,10 @@ const xi = /* @__PURE__ */ W(Di, [["render", Fi], ["__scopeId", "data-v-7148d462
|
|
|
1888
1888
|
H(ts)
|
|
1889
1889
|
])) : M("", !0);
|
|
1890
1890
|
}
|
|
1891
|
-
}), Wi = /* @__PURE__ */ W(ji, [["__scopeId", "data-v-
|
|
1891
|
+
}), Wi = /* @__PURE__ */ W(ji, [["__scopeId", "data-v-712bd7ba"]]), ns = ae();
|
|
1892
1892
|
let Co = !1, En = 0;
|
|
1893
1893
|
function Bi(e) {
|
|
1894
|
-
const t =
|
|
1894
|
+
const t = ae(!1);
|
|
1895
1895
|
if (bo) {
|
|
1896
1896
|
!Co && Gi(), En++;
|
|
1897
1897
|
const n = Ee(ns, (s) => {
|
|
@@ -1922,7 +1922,7 @@ const Yi = { class: "VPMenuLink" }, Xi = ["innerHTML"], qi = /* @__PURE__ */ w({
|
|
|
1922
1922
|
const t = e, { page: n } = q(), s = D(
|
|
1923
1923
|
() => typeof t.item.link == "function" ? t.item.link(n.value) : t.item.link
|
|
1924
1924
|
);
|
|
1925
|
-
return (o,
|
|
1925
|
+
return (o, a) => (c(), h("div", Yi, [
|
|
1926
1926
|
H(We, $e(o.$attrs, {
|
|
1927
1927
|
class: {
|
|
1928
1928
|
active: d(qe)(
|
|
@@ -1945,7 +1945,7 @@ const Yi = { class: "VPMenuLink" }, Xi = ["innerHTML"], qi = /* @__PURE__ */ w({
|
|
|
1945
1945
|
}, 16, ["class", "href", "target", "rel", "no-icon"])
|
|
1946
1946
|
]));
|
|
1947
1947
|
}
|
|
1948
|
-
}), en = /* @__PURE__ */ W(qi, [["__scopeId", "data-v-
|
|
1948
|
+
}), en = /* @__PURE__ */ W(qi, [["__scopeId", "data-v-83b969af"]]), Ji = { class: "VPMenuGroup" }, zi = {
|
|
1949
1949
|
key: 0,
|
|
1950
1950
|
class: "title"
|
|
1951
1951
|
}, Qi = /* @__PURE__ */ w({
|
|
@@ -1967,7 +1967,7 @@ const Yi = { class: "VPMenuLink" }, Xi = ["innerHTML"], qi = /* @__PURE__ */ w({
|
|
|
1967
1967
|
], 64))), 128))
|
|
1968
1968
|
]));
|
|
1969
1969
|
}
|
|
1970
|
-
}), Zi = /* @__PURE__ */ W(Qi, [["__scopeId", "data-v-
|
|
1970
|
+
}), Zi = /* @__PURE__ */ W(Qi, [["__scopeId", "data-v-dfd706ed"]]), ec = { class: "VPMenu" }, tc = {
|
|
1971
1971
|
key: 0,
|
|
1972
1972
|
class: "items"
|
|
1973
1973
|
}, nc = /* @__PURE__ */ w({
|
|
@@ -1997,10 +1997,10 @@ const Yi = { class: "VPMenuLink" }, Xi = ["innerHTML"], qi = /* @__PURE__ */ w({
|
|
|
1997
1997
|
k(t.$slots, "default", {}, void 0, !0)
|
|
1998
1998
|
]));
|
|
1999
1999
|
}
|
|
2000
|
-
}), sc = /* @__PURE__ */ W(nc, [["__scopeId", "data-v-
|
|
2000
|
+
}), sc = /* @__PURE__ */ W(nc, [["__scopeId", "data-v-43db8bf4"]]), oc = ["aria-expanded", "aria-label"], ac = {
|
|
2001
2001
|
key: 0,
|
|
2002
2002
|
class: "text"
|
|
2003
|
-
},
|
|
2003
|
+
}, rc = ["innerHTML"], lc = {
|
|
2004
2004
|
key: 1,
|
|
2005
2005
|
class: "vpi-more-horizontal icon"
|
|
2006
2006
|
}, ic = { class: "menu" }, cc = /* @__PURE__ */ w({
|
|
@@ -2012,17 +2012,17 @@ const Yi = { class: "VPMenuLink" }, Xi = ["innerHTML"], qi = /* @__PURE__ */ w({
|
|
|
2012
2012
|
items: {}
|
|
2013
2013
|
},
|
|
2014
2014
|
setup(e) {
|
|
2015
|
-
const t =
|
|
2015
|
+
const t = ae(!1), n = ae();
|
|
2016
2016
|
Bi({ el: n, onBlur: s });
|
|
2017
2017
|
function s() {
|
|
2018
2018
|
t.value = !1;
|
|
2019
2019
|
}
|
|
2020
|
-
return (o,
|
|
2020
|
+
return (o, a) => (c(), h("div", {
|
|
2021
2021
|
class: "VPFlyout",
|
|
2022
2022
|
ref_key: "el",
|
|
2023
2023
|
ref: n,
|
|
2024
|
-
onMouseenter:
|
|
2025
|
-
onMouseleave:
|
|
2024
|
+
onMouseenter: a[1] || (a[1] = (r) => t.value = !0),
|
|
2025
|
+
onMouseleave: a[2] || (a[2] = (r) => t.value = !1)
|
|
2026
2026
|
}, [
|
|
2027
2027
|
b("button", {
|
|
2028
2028
|
type: "button",
|
|
@@ -2030,9 +2030,9 @@ const Yi = { class: "VPMenuLink" }, Xi = ["innerHTML"], qi = /* @__PURE__ */ w({
|
|
|
2030
2030
|
"aria-haspopup": "true",
|
|
2031
2031
|
"aria-expanded": t.value,
|
|
2032
2032
|
"aria-label": e.label,
|
|
2033
|
-
onClick:
|
|
2033
|
+
onClick: a[0] || (a[0] = (r) => t.value = !t.value)
|
|
2034
2034
|
}, [
|
|
2035
|
-
e.button || e.icon ? (c(), h("span",
|
|
2035
|
+
e.button || e.icon ? (c(), h("span", ac, [
|
|
2036
2036
|
e.icon ? (c(), h("span", {
|
|
2037
2037
|
key: 0,
|
|
2038
2038
|
class: ee([e.icon, "option-icon"])
|
|
@@ -2040,8 +2040,8 @@ const Yi = { class: "VPMenuLink" }, Xi = ["innerHTML"], qi = /* @__PURE__ */ w({
|
|
|
2040
2040
|
e.button ? (c(), h("span", {
|
|
2041
2041
|
key: 1,
|
|
2042
2042
|
innerHTML: e.button
|
|
2043
|
-
}, null, 8,
|
|
2044
|
-
|
|
2043
|
+
}, null, 8, rc)) : M("", !0),
|
|
2044
|
+
a[3] || (a[3] = b("span", { class: "vpi-chevron-down text-icon" }, null, -1))
|
|
2045
2045
|
])) : (c(), h("span", lc))
|
|
2046
2046
|
], 8, oc),
|
|
2047
2047
|
b("div", ic, [
|
|
@@ -2054,7 +2054,7 @@ const Yi = { class: "VPMenuLink" }, Xi = ["innerHTML"], qi = /* @__PURE__ */ w({
|
|
|
2054
2054
|
])
|
|
2055
2055
|
], 544));
|
|
2056
2056
|
}
|
|
2057
|
-
}), ss = /* @__PURE__ */ W(cc, [["__scopeId", "data-v-
|
|
2057
|
+
}), ss = /* @__PURE__ */ W(cc, [["__scopeId", "data-v-8bb085b9"]]), uc = ["href", "aria-label", "rel", "innerHTML"], dc = /* @__PURE__ */ w({
|
|
2058
2058
|
__name: "VPSocialLink",
|
|
2059
2059
|
props: {
|
|
2060
2060
|
icon: {},
|
|
@@ -2063,7 +2063,7 @@ const Yi = { class: "VPMenuLink" }, Xi = ["innerHTML"], qi = /* @__PURE__ */ w({
|
|
|
2063
2063
|
me: { type: Boolean }
|
|
2064
2064
|
},
|
|
2065
2065
|
setup(e) {
|
|
2066
|
-
const t = e, n =
|
|
2066
|
+
const t = e, n = ae();
|
|
2067
2067
|
Ve(async () => {
|
|
2068
2068
|
await zt();
|
|
2069
2069
|
const o = n.value?.children[0];
|
|
@@ -2073,7 +2073,7 @@ const Yi = { class: "VPMenuLink" }, Xi = ["innerHTML"], qi = /* @__PURE__ */ w({
|
|
|
2073
2073
|
);
|
|
2074
2074
|
});
|
|
2075
2075
|
const s = D(() => typeof t.icon == "object" ? t.icon.svg : `<span class="vpi-social-${t.icon}"></span>`);
|
|
2076
|
-
return (o,
|
|
2076
|
+
return (o, a) => (c(), h("a", {
|
|
2077
2077
|
ref_key: "el",
|
|
2078
2078
|
ref: n,
|
|
2079
2079
|
class: "VPSocialLink no-icon",
|
|
@@ -2084,7 +2084,7 @@ const Yi = { class: "VPMenuLink" }, Xi = ["innerHTML"], qi = /* @__PURE__ */ w({
|
|
|
2084
2084
|
innerHTML: s.value
|
|
2085
2085
|
}, null, 8, uc));
|
|
2086
2086
|
}
|
|
2087
|
-
}), fc = /* @__PURE__ */ W(dc, [["__scopeId", "data-v-
|
|
2087
|
+
}), fc = /* @__PURE__ */ W(dc, [["__scopeId", "data-v-d9afed0b"]]), mc = { class: "VPSocialLinks" }, _c = /* @__PURE__ */ w({
|
|
2088
2088
|
__name: "VPSocialLinks",
|
|
2089
2089
|
props: {
|
|
2090
2090
|
links: {},
|
|
@@ -2092,16 +2092,16 @@ const Yi = { class: "VPMenuLink" }, Xi = ["innerHTML"], qi = /* @__PURE__ */ w({
|
|
|
2092
2092
|
},
|
|
2093
2093
|
setup(e) {
|
|
2094
2094
|
return (t, n) => (c(), h("div", mc, [
|
|
2095
|
-
(c(!0), h(X, null, _e(e.links, ({ link: s, icon: o, ariaLabel:
|
|
2095
|
+
(c(!0), h(X, null, _e(e.links, ({ link: s, icon: o, ariaLabel: a }) => (c(), F(fc, {
|
|
2096
2096
|
key: s,
|
|
2097
2097
|
icon: o,
|
|
2098
2098
|
link: s,
|
|
2099
|
-
ariaLabel:
|
|
2099
|
+
ariaLabel: a,
|
|
2100
2100
|
me: e.me
|
|
2101
2101
|
}, null, 8, ["icon", "link", "ariaLabel", "me"]))), 128))
|
|
2102
2102
|
]));
|
|
2103
2103
|
}
|
|
2104
|
-
}), os = /* @__PURE__ */ W(_c, [["__scopeId", "data-v-
|
|
2104
|
+
}), os = /* @__PURE__ */ W(_c, [["__scopeId", "data-v-fd8e1cef"]]), pc = {
|
|
2105
2105
|
key: 0,
|
|
2106
2106
|
class: "group translations"
|
|
2107
2107
|
}, vc = { class: "trans-title" }, hc = {
|
|
@@ -2113,10 +2113,10 @@ const Yi = { class: "VPMenuLink" }, Xi = ["innerHTML"], qi = /* @__PURE__ */ w({
|
|
|
2113
2113
|
}, kc = { class: "item social-links" }, Lc = /* @__PURE__ */ w({
|
|
2114
2114
|
__name: "VPNavBarExtra",
|
|
2115
2115
|
setup(e) {
|
|
2116
|
-
const { site: t, theme: n } = q(), { localeLinks: s, currentLang: o } = Rt({ correspondingLink: !0 }),
|
|
2116
|
+
const { site: t, theme: n } = q(), { localeLinks: s, currentLang: o } = Rt({ correspondingLink: !0 }), a = D(
|
|
2117
2117
|
() => s.value.length && o.value.label || t.value.appearance || n.value.socialLinks
|
|
2118
2118
|
);
|
|
2119
|
-
return (
|
|
2119
|
+
return (r, l) => a.value ? (c(), F(ss, {
|
|
2120
2120
|
key: 0,
|
|
2121
2121
|
class: "VPNavBarExtra",
|
|
2122
2122
|
label: "extra navigation"
|
|
@@ -2151,7 +2151,7 @@ const Yi = { class: "VPMenuLink" }, Xi = ["innerHTML"], qi = /* @__PURE__ */ w({
|
|
|
2151
2151
|
_: 1
|
|
2152
2152
|
})) : M("", !0);
|
|
2153
2153
|
}
|
|
2154
|
-
}), Nc = /* @__PURE__ */ W(Lc, [["__scopeId", "data-v-
|
|
2154
|
+
}), Nc = /* @__PURE__ */ W(Lc, [["__scopeId", "data-v-1e50e00d"]]), Tc = ["aria-expanded"], Sc = /* @__PURE__ */ w({
|
|
2155
2155
|
__name: "VPNavBarHamburger",
|
|
2156
2156
|
props: {
|
|
2157
2157
|
active: { type: Boolean }
|
|
@@ -2173,7 +2173,7 @@ const Yi = { class: "VPMenuLink" }, Xi = ["innerHTML"], qi = /* @__PURE__ */ w({
|
|
|
2173
2173
|
], -1)
|
|
2174
2174
|
])], 10, Tc));
|
|
2175
2175
|
}
|
|
2176
|
-
}), Ic = /* @__PURE__ */ W(Sc, [["__scopeId", "data-v-
|
|
2176
|
+
}), Ic = /* @__PURE__ */ W(Sc, [["__scopeId", "data-v-16cd65b5"]]), Pc = ["innerHTML"], Oc = /* @__PURE__ */ w({
|
|
2177
2177
|
__name: "VPNavBarMenuLink",
|
|
2178
2178
|
props: {
|
|
2179
2179
|
item: {}
|
|
@@ -2182,7 +2182,7 @@ const Yi = { class: "VPMenuLink" }, Xi = ["innerHTML"], qi = /* @__PURE__ */ w({
|
|
|
2182
2182
|
const t = e, { page: n } = q(), s = D(
|
|
2183
2183
|
() => typeof t.item.link == "function" ? t.item.link(n.value) : t.item.link
|
|
2184
2184
|
);
|
|
2185
|
-
return (o,
|
|
2185
|
+
return (o, a) => (c(), F(We, {
|
|
2186
2186
|
class: ee({
|
|
2187
2187
|
VPNavBarMenuLink: !0,
|
|
2188
2188
|
active: d(qe)(
|
|
@@ -2205,18 +2205,18 @@ const Yi = { class: "VPMenuLink" }, Xi = ["innerHTML"], qi = /* @__PURE__ */ w({
|
|
|
2205
2205
|
_: 1
|
|
2206
2206
|
}, 8, ["class", "href", "target", "rel", "no-icon"]));
|
|
2207
2207
|
}
|
|
2208
|
-
}), $c = /* @__PURE__ */ W(Oc, [["__scopeId", "data-v-
|
|
2208
|
+
}), $c = /* @__PURE__ */ W(Oc, [["__scopeId", "data-v-7ed99013"]]), Ac = /* @__PURE__ */ w({
|
|
2209
2209
|
__name: "VPNavBarMenuGroup",
|
|
2210
2210
|
props: {
|
|
2211
2211
|
item: {}
|
|
2212
2212
|
},
|
|
2213
2213
|
setup(e) {
|
|
2214
|
-
const t = e, { page: n } = q(), s = (
|
|
2214
|
+
const t = e, { page: n } = q(), s = (a) => "component" in a ? !1 : "link" in a ? qe(
|
|
2215
2215
|
n.value.relativePath,
|
|
2216
|
-
typeof
|
|
2216
|
+
typeof a.link == "function" ? a.link(n.value) : a.link,
|
|
2217
2217
|
!!t.item.activeMatch
|
|
2218
|
-
) :
|
|
2219
|
-
return (
|
|
2218
|
+
) : a.items.some(s), o = D(() => s(t.item));
|
|
2219
|
+
return (a, r) => (c(), F(ss, {
|
|
2220
2220
|
class: ee({
|
|
2221
2221
|
VPNavBarMenuGroup: !0,
|
|
2222
2222
|
active: d(qe)(d(n).relativePath, e.item.activeMatch, !!e.item.activeMatch) || o.value
|
|
@@ -2254,7 +2254,7 @@ const Yi = { class: "VPMenuLink" }, Xi = ["innerHTML"], qi = /* @__PURE__ */ w({
|
|
|
2254
2254
|
], 64))), 128))
|
|
2255
2255
|
])) : M("", !0);
|
|
2256
2256
|
}
|
|
2257
|
-
}), Dc = /* @__PURE__ */ W(wc, [["__scopeId", "data-v-
|
|
2257
|
+
}), Dc = /* @__PURE__ */ W(wc, [["__scopeId", "data-v-2bfec5e2"]]);
|
|
2258
2258
|
function Mc(e) {
|
|
2259
2259
|
const t = e.mode ?? "auto", n = Vc(e), s = e.askAi, o = !!(s && typeof s == "object" && s.sidePanel);
|
|
2260
2260
|
switch (t) {
|
|
@@ -2288,7 +2288,7 @@ function Vc(e) {
|
|
|
2288
2288
|
return !!(e.appId && e.apiKey && e.indexName);
|
|
2289
2289
|
}
|
|
2290
2290
|
function Do(e, t) {
|
|
2291
|
-
return [...(Array.isArray(e) ? e : e ? [e] : []).map((o) => Array.isArray(o) ? o.filter((
|
|
2291
|
+
return [...(Array.isArray(e) ? e : e ? [e] : []).map((o) => Array.isArray(o) ? o.filter((a) => typeof a == "string" && !a.startsWith("lang:")) : o).filter((o) => typeof o == "string" ? !o.startsWith("lang:") : Array.isArray(o) && o.length > 0), `lang:${t}`];
|
|
2292
2292
|
}
|
|
2293
2293
|
function Xp(e) {
|
|
2294
2294
|
const t = e.appId, n = e.apiKey, s = e.indexName;
|
|
@@ -2300,9 +2300,9 @@ function Xp(e) {
|
|
|
2300
2300
|
};
|
|
2301
2301
|
}
|
|
2302
2302
|
function Rc(e, t, n) {
|
|
2303
|
-
const s = typeof e == "string", o = !s && e.searchParameters ? { ...e.searchParameters } : void 0,
|
|
2303
|
+
const s = typeof e == "string", o = !s && e.searchParameters ? { ...e.searchParameters } : void 0, a = o?.facetFilters ?? t.searchParameters?.facetFilters, r = Do(a, n), l = {
|
|
2304
2304
|
...o,
|
|
2305
|
-
facetFilters:
|
|
2305
|
+
facetFilters: r.length ? r : void 0
|
|
2306
2306
|
}, i = {
|
|
2307
2307
|
...s ? {} : e,
|
|
2308
2308
|
indexName: s ? t.indexName : e.indexName,
|
|
@@ -2353,7 +2353,7 @@ function jc(e, t) {
|
|
|
2353
2353
|
}, null, -1)
|
|
2354
2354
|
])]);
|
|
2355
2355
|
}
|
|
2356
|
-
const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-
|
|
2356
|
+
const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-b2c82097"]]), Bc = {
|
|
2357
2357
|
type: "button",
|
|
2358
2358
|
class: "VPNavBarSearchButton"
|
|
2359
2359
|
}, Gc = { class: "text" }, Kc = /* @__PURE__ */ w({
|
|
@@ -2378,20 +2378,20 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2378
2378
|
], -1))
|
|
2379
2379
|
]));
|
|
2380
2380
|
}
|
|
2381
|
-
}), Ps = /* @__PURE__ */ W(Kc, [["__scopeId", "data-v-
|
|
2381
|
+
}), Ps = /* @__PURE__ */ W(Kc, [["__scopeId", "data-v-c6603710"]]), Yc = { class: "VPNavBarSearch" }, Xc = /* @__PURE__ */ w({
|
|
2382
2382
|
__name: "VPNavBarSearch",
|
|
2383
2383
|
setup(e) {
|
|
2384
|
-
const t = __VP_LOCAL_SEARCH__ ?
|
|
2384
|
+
const t = __VP_LOCAL_SEARCH__ ? at(() => import("./VPLocalSearchBox-DyteUinQ.js")) : () => null, n = __ALGOLIA__ ? at(() => import("./VPAlgoliaSearchBox-C18GEhLm.js")) : () => null, { theme: s, localeIndex: o, lang: a } = q(), r = __ALGOLIA__ ? "algolia" : __VP_LOCAL_SEARCH__ ? "local" : "", l = xc(() => Fc(
|
|
2385
2385
|
s.value.search?.options || {},
|
|
2386
2386
|
o.value,
|
|
2387
|
-
|
|
2387
|
+
a.value
|
|
2388
2388
|
)), i = D(() => Mc(l.value)), f = D(() => {
|
|
2389
2389
|
if (!i.value.useSidePanel) return null;
|
|
2390
2390
|
const p = l.value.askAi;
|
|
2391
2391
|
return !p || typeof p == "string" || !p.sidePanel ? null : p.sidePanel === !0 ? {} : p.sidePanel;
|
|
2392
|
-
}), v = D(() => f.value?.keyboardShortcuts?.["Ctrl/Cmd+I"] !== !1), g =
|
|
2392
|
+
}), v = D(() => f.value?.keyboardShortcuts?.["Ctrl/Cmd+I"] !== !1), g = ae(null);
|
|
2393
2393
|
let E = 0;
|
|
2394
|
-
const I =
|
|
2394
|
+
const I = ae(!1), R = ae(!1);
|
|
2395
2395
|
Ve(() => {
|
|
2396
2396
|
if (!__ALGOLIA__) return;
|
|
2397
2397
|
const p = "VPAlgoliaPreconnect";
|
|
@@ -2412,7 +2412,7 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2412
2412
|
function O(p) {
|
|
2413
2413
|
I.value || (I.value = !0), g.value = { target: p, nonce: ++E };
|
|
2414
2414
|
}
|
|
2415
|
-
const $ =
|
|
2415
|
+
const $ = ae(!1);
|
|
2416
2416
|
__VP_LOCAL_SEARCH__ && (mt("k", (p) => {
|
|
2417
2417
|
(p.ctrlKey || p.metaKey) && (p.preventDefault(), $.value = !0);
|
|
2418
2418
|
}), mt("/", (p) => {
|
|
@@ -2423,7 +2423,7 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2423
2423
|
return L.isContentEditable || y === "INPUT" || y === "SELECT" || y === "TEXTAREA";
|
|
2424
2424
|
}
|
|
2425
2425
|
return (p, L) => (c(), h("div", Yc, [
|
|
2426
|
-
d(
|
|
2426
|
+
d(r) === "algolia" ? (c(), h(X, { key: 0 }, [
|
|
2427
2427
|
i.value.showKeywordSearch ? (c(), F(Ps, {
|
|
2428
2428
|
key: 0,
|
|
2429
2429
|
text: d(l).translations?.button?.buttonText || "Search",
|
|
@@ -2443,7 +2443,7 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2443
2443
|
"open-request": g.value,
|
|
2444
2444
|
onVnodeBeforeMount: L[2] || (L[2] = (y) => R.value = !0)
|
|
2445
2445
|
}, null, 8, ["algolia-options", "open-request"])) : M("", !0)
|
|
2446
|
-
], 64)) : d(
|
|
2446
|
+
], 64)) : d(r) === "local" ? (c(), h(X, { key: 1 }, [
|
|
2447
2447
|
H(Ps, {
|
|
2448
2448
|
text: d(l).translations?.button?.buttonText || "Search",
|
|
2449
2449
|
"aria-label": d(l).translations?.button?.buttonAriaLabel || "Search",
|
|
@@ -2457,7 +2457,7 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2457
2457
|
], 64)) : M("", !0)
|
|
2458
2458
|
]));
|
|
2459
2459
|
}
|
|
2460
|
-
}), qc = /* @__PURE__ */ W(Xc, [["__scopeId", "data-v-
|
|
2460
|
+
}), qc = /* @__PURE__ */ W(Xc, [["__scopeId", "data-v-73ea1afe"]]), Jc = /* @__PURE__ */ w({
|
|
2461
2461
|
__name: "VPNavBarSocialLinks",
|
|
2462
2462
|
setup(e) {
|
|
2463
2463
|
const { theme: t } = q();
|
|
@@ -2467,12 +2467,12 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2467
2467
|
links: d(t).socialLinks
|
|
2468
2468
|
}, null, 8, ["links"])) : M("", !0);
|
|
2469
2469
|
}
|
|
2470
|
-
}), zc = /* @__PURE__ */ W(Jc, [["__scopeId", "data-v-
|
|
2470
|
+
}), zc = /* @__PURE__ */ W(Jc, [["__scopeId", "data-v-20525b71"]]), Qc = ["href", "rel", "target"], Zc = ["innerHTML"], eu = { key: 2 }, tu = /* @__PURE__ */ w({
|
|
2471
2471
|
__name: "VPNavBarTitle",
|
|
2472
2472
|
setup(e) {
|
|
2473
|
-
const { site: t, theme: n } = q(), { hasSidebar: s } = Ge(), { currentLang: o } = Rt(),
|
|
2473
|
+
const { site: t, theme: n } = q(), { hasSidebar: s } = Ge(), { currentLang: o } = Rt(), a = D(
|
|
2474
2474
|
() => typeof n.value.logoLink == "string" ? n.value.logoLink : n.value.logoLink?.link
|
|
2475
|
-
),
|
|
2475
|
+
), r = D(
|
|
2476
2476
|
() => typeof n.value.logoLink == "string" ? void 0 : n.value.logoLink?.rel
|
|
2477
2477
|
), l = D(
|
|
2478
2478
|
() => typeof n.value.logoLink == "string" ? void 0 : n.value.logoLink?.target
|
|
@@ -2482,8 +2482,8 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2482
2482
|
}, [
|
|
2483
2483
|
b("a", {
|
|
2484
2484
|
class: "title",
|
|
2485
|
-
href:
|
|
2486
|
-
rel:
|
|
2485
|
+
href: a.value ?? d(qn)(d(o).link),
|
|
2486
|
+
rel: r.value,
|
|
2487
2487
|
target: l.value
|
|
2488
2488
|
}, [
|
|
2489
2489
|
k(i.$slots, "nav-bar-title-before", {}, void 0, !0),
|
|
@@ -2500,11 +2500,11 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2500
2500
|
], 8, Qc)
|
|
2501
2501
|
], 2));
|
|
2502
2502
|
}
|
|
2503
|
-
}), nu = /* @__PURE__ */ W(tu, [["__scopeId", "data-v-
|
|
2503
|
+
}), nu = /* @__PURE__ */ W(tu, [["__scopeId", "data-v-39a00ab8"]]), su = { class: "items" }, ou = { class: "title" }, au = /* @__PURE__ */ w({
|
|
2504
2504
|
__name: "VPNavBarTranslations",
|
|
2505
2505
|
setup(e) {
|
|
2506
2506
|
const { theme: t } = q(), { localeLinks: n, currentLang: s } = Rt({ correspondingLink: !0 });
|
|
2507
|
-
return (o,
|
|
2507
|
+
return (o, a) => d(n).length && d(s).label ? (c(), F(ss, {
|
|
2508
2508
|
key: 0,
|
|
2509
2509
|
class: "VPNavBarTranslations",
|
|
2510
2510
|
icon: "vpi-languages",
|
|
@@ -2513,18 +2513,18 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2513
2513
|
default: T(() => [
|
|
2514
2514
|
b("div", su, [
|
|
2515
2515
|
b("p", ou, B(d(s).label), 1),
|
|
2516
|
-
(c(!0), h(X, null, _e(d(n), (
|
|
2517
|
-
key:
|
|
2518
|
-
item:
|
|
2519
|
-
lang:
|
|
2520
|
-
dir:
|
|
2516
|
+
(c(!0), h(X, null, _e(d(n), (r) => (c(), F(en, {
|
|
2517
|
+
key: r.link,
|
|
2518
|
+
item: r,
|
|
2519
|
+
lang: r.lang,
|
|
2520
|
+
dir: r.dir
|
|
2521
2521
|
}, null, 8, ["item", "lang", "dir"]))), 128))
|
|
2522
2522
|
])
|
|
2523
2523
|
]),
|
|
2524
2524
|
_: 1
|
|
2525
2525
|
}, 8, ["label"])) : M("", !0);
|
|
2526
2526
|
}
|
|
2527
|
-
}),
|
|
2527
|
+
}), ru = /* @__PURE__ */ W(au, [["__scopeId", "data-v-e06aa81a"]]), lu = { class: "wrapper" }, iu = { class: "container" }, cu = { class: "title" }, uu = { class: "content" }, du = { class: "content-body" }, fu = /* @__PURE__ */ w({
|
|
2528
2528
|
__name: "VPNavBar",
|
|
2529
2529
|
props: {
|
|
2530
2530
|
isScreenOpen: { type: Boolean }
|
|
@@ -2532,7 +2532,7 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2532
2532
|
emits: ["toggle-screen"],
|
|
2533
2533
|
setup(e) {
|
|
2534
2534
|
const { y: t } = Po(), { isHome: n, hasSidebar: s } = Ge();
|
|
2535
|
-
return (o,
|
|
2535
|
+
return (o, a) => (c(), h("div", {
|
|
2536
2536
|
class: ee(["VPNavBar", {
|
|
2537
2537
|
"has-sidebar": d(s),
|
|
2538
2538
|
home: d(n),
|
|
@@ -2558,7 +2558,7 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2558
2558
|
k(o.$slots, "nav-bar-content-before", {}, void 0, !0),
|
|
2559
2559
|
H(qc, { class: "search" }),
|
|
2560
2560
|
H(Dc, { class: "menu" }),
|
|
2561
|
-
H(
|
|
2561
|
+
H(ru, { class: "translations" }),
|
|
2562
2562
|
H(Wi, { class: "appearance" }),
|
|
2563
2563
|
H(zc, { class: "social-links" }),
|
|
2564
2564
|
H(Nc, { class: "extra" }),
|
|
@@ -2566,18 +2566,18 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2566
2566
|
H(Ic, {
|
|
2567
2567
|
class: "hamburger",
|
|
2568
2568
|
active: e.isScreenOpen,
|
|
2569
|
-
onClick:
|
|
2569
|
+
onClick: a[0] || (a[0] = (r) => o.$emit("toggle-screen"))
|
|
2570
2570
|
}, null, 8, ["active"])
|
|
2571
2571
|
])
|
|
2572
2572
|
])
|
|
2573
2573
|
])
|
|
2574
2574
|
]),
|
|
2575
|
-
|
|
2575
|
+
a[1] || (a[1] = b("div", { class: "divider" }, [
|
|
2576
2576
|
b("div", { class: "divider-line" })
|
|
2577
2577
|
], -1))
|
|
2578
2578
|
], 2));
|
|
2579
2579
|
}
|
|
2580
|
-
}), mu = /* @__PURE__ */ W(fu, [["__scopeId", "data-v-
|
|
2580
|
+
}), mu = /* @__PURE__ */ W(fu, [["__scopeId", "data-v-a4fa96c9"]]), _u = {
|
|
2581
2581
|
key: 0,
|
|
2582
2582
|
class: "VPNavScreenAppearance"
|
|
2583
2583
|
}, pu = { class: "text" }, vu = /* @__PURE__ */ w({
|
|
@@ -2589,7 +2589,7 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2589
2589
|
H(ts)
|
|
2590
2590
|
])) : M("", !0);
|
|
2591
2591
|
}
|
|
2592
|
-
}), hu = /* @__PURE__ */ W(vu, [["__scopeId", "data-v-
|
|
2592
|
+
}), hu = /* @__PURE__ */ W(vu, [["__scopeId", "data-v-f18ca3de"]]), gu = ["innerHTML"], bu = /* @__PURE__ */ w({
|
|
2593
2593
|
__name: "VPNavScreenMenuLink",
|
|
2594
2594
|
props: {
|
|
2595
2595
|
item: {}
|
|
@@ -2603,14 +2603,14 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2603
2603
|
t.item.activeMatch || s.value,
|
|
2604
2604
|
!!t.item.activeMatch
|
|
2605
2605
|
)
|
|
2606
|
-
), { closeScreen:
|
|
2607
|
-
return (
|
|
2606
|
+
), { closeScreen: a } = yt(es);
|
|
2607
|
+
return (r, l) => (c(), F(We, {
|
|
2608
2608
|
class: ee({ VPNavScreenMenuLink: !0, active: o.value }),
|
|
2609
2609
|
href: s.value,
|
|
2610
2610
|
target: e.item.target,
|
|
2611
2611
|
rel: e.item.rel,
|
|
2612
2612
|
"no-icon": e.item.noIcon,
|
|
2613
|
-
onClick: d(
|
|
2613
|
+
onClick: d(a)
|
|
2614
2614
|
}, {
|
|
2615
2615
|
default: T(() => [
|
|
2616
2616
|
b("span", {
|
|
@@ -2620,7 +2620,7 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2620
2620
|
_: 1
|
|
2621
2621
|
}, 8, ["class", "href", "target", "rel", "no-icon", "onClick"]));
|
|
2622
2622
|
}
|
|
2623
|
-
}), Eu = /* @__PURE__ */ W(bu, [["__scopeId", "data-v-
|
|
2623
|
+
}), Eu = /* @__PURE__ */ W(bu, [["__scopeId", "data-v-de663f69"]]), yu = ["innerHTML"], ku = /* @__PURE__ */ w({
|
|
2624
2624
|
__name: "VPNavScreenMenuGroupLink",
|
|
2625
2625
|
props: {
|
|
2626
2626
|
item: {}
|
|
@@ -2634,14 +2634,14 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2634
2634
|
t.item.activeMatch || s.value,
|
|
2635
2635
|
!!t.item.activeMatch
|
|
2636
2636
|
)
|
|
2637
|
-
), { closeScreen:
|
|
2638
|
-
return (
|
|
2637
|
+
), { closeScreen: a } = yt(es);
|
|
2638
|
+
return (r, l) => (c(), F(We, {
|
|
2639
2639
|
class: ee({ VPNavScreenMenuGroupLink: !0, active: o.value }),
|
|
2640
2640
|
href: s.value,
|
|
2641
2641
|
target: e.item.target,
|
|
2642
2642
|
rel: e.item.rel,
|
|
2643
2643
|
"no-icon": e.item.noIcon,
|
|
2644
|
-
onClick: d(
|
|
2644
|
+
onClick: d(a)
|
|
2645
2645
|
}, {
|
|
2646
2646
|
default: T(() => [
|
|
2647
2647
|
b("span", {
|
|
@@ -2651,7 +2651,7 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2651
2651
|
_: 1
|
|
2652
2652
|
}, 8, ["class", "href", "target", "rel", "no-icon", "onClick"]));
|
|
2653
2653
|
}
|
|
2654
|
-
}), Vo = /* @__PURE__ */ W(ku, [["__scopeId", "data-v-
|
|
2654
|
+
}), Vo = /* @__PURE__ */ W(ku, [["__scopeId", "data-v-00826633"]]), Lu = { class: "VPNavScreenMenuGroupSection" }, Nu = {
|
|
2655
2655
|
key: 0,
|
|
2656
2656
|
class: "title"
|
|
2657
2657
|
}, Tu = /* @__PURE__ */ w({
|
|
@@ -2669,7 +2669,7 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2669
2669
|
}, null, 8, ["item"]))), 128))
|
|
2670
2670
|
]));
|
|
2671
2671
|
}
|
|
2672
|
-
}), Su = /* @__PURE__ */ W(Tu, [["__scopeId", "data-v-
|
|
2672
|
+
}), Su = /* @__PURE__ */ W(Tu, [["__scopeId", "data-v-8a20f85d"]]), Iu = ["aria-controls", "aria-expanded"], Pu = ["innerHTML"], Ou = ["id"], $u = {
|
|
2673
2673
|
key: 0,
|
|
2674
2674
|
class: "item"
|
|
2675
2675
|
}, Au = {
|
|
@@ -2685,13 +2685,13 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2685
2685
|
items: {}
|
|
2686
2686
|
},
|
|
2687
2687
|
setup(e) {
|
|
2688
|
-
const t = e, n =
|
|
2688
|
+
const t = e, n = ae(!1), s = D(
|
|
2689
2689
|
() => `NavScreenGroup-${t.text.replace(" ", "-").toLowerCase()}`
|
|
2690
2690
|
);
|
|
2691
2691
|
function o() {
|
|
2692
2692
|
n.value = !n.value;
|
|
2693
2693
|
}
|
|
2694
|
-
return (
|
|
2694
|
+
return (a, r) => (c(), h("div", {
|
|
2695
2695
|
class: ee(["VPNavScreenMenuGroup", { open: n.value }])
|
|
2696
2696
|
}, [
|
|
2697
2697
|
b("button", {
|
|
@@ -2704,7 +2704,7 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2704
2704
|
class: "button-text",
|
|
2705
2705
|
innerHTML: e.text
|
|
2706
2706
|
}, null, 8, Pu),
|
|
2707
|
-
|
|
2707
|
+
r[0] || (r[0] = b("span", { class: "vpi-plus button-icon" }, null, -1))
|
|
2708
2708
|
], 8, Iu),
|
|
2709
2709
|
b("div", {
|
|
2710
2710
|
id: s.value,
|
|
@@ -2727,7 +2727,7 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2727
2727
|
], 8, Ou)
|
|
2728
2728
|
], 2));
|
|
2729
2729
|
}
|
|
2730
|
-
}), Du = /* @__PURE__ */ W(wu, [["__scopeId", "data-v-
|
|
2730
|
+
}), Du = /* @__PURE__ */ W(wu, [["__scopeId", "data-v-bb03657a"]]), Mu = {
|
|
2731
2731
|
key: 0,
|
|
2732
2732
|
class: "VPNavScreenMenu"
|
|
2733
2733
|
}, Vu = /* @__PURE__ */ w({
|
|
@@ -2765,11 +2765,11 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2765
2765
|
}), Fu = { class: "list" }, xu = /* @__PURE__ */ w({
|
|
2766
2766
|
__name: "VPNavScreenTranslations",
|
|
2767
2767
|
setup(e) {
|
|
2768
|
-
const { localeLinks: t, currentLang: n } = Rt({ correspondingLink: !0 }), s =
|
|
2768
|
+
const { localeLinks: t, currentLang: n } = Rt({ correspondingLink: !0 }), s = ae(!1);
|
|
2769
2769
|
function o() {
|
|
2770
2770
|
s.value = !s.value;
|
|
2771
2771
|
}
|
|
2772
|
-
return (
|
|
2772
|
+
return (a, r) => d(t).length && d(n).label ? (c(), h("div", {
|
|
2773
2773
|
key: 0,
|
|
2774
2774
|
class: ee(["VPNavScreenTranslations", { open: s.value }])
|
|
2775
2775
|
}, [
|
|
@@ -2777,9 +2777,9 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2777
2777
|
class: "title",
|
|
2778
2778
|
onClick: o
|
|
2779
2779
|
}, [
|
|
2780
|
-
|
|
2780
|
+
r[0] || (r[0] = b("span", { class: "vpi-languages icon lang" }, null, -1)),
|
|
2781
2781
|
Pe(" " + B(d(n).label) + " ", 1),
|
|
2782
|
-
|
|
2782
|
+
r[1] || (r[1] = b("span", { class: "vpi-chevron-down icon chevron" }, null, -1))
|
|
2783
2783
|
]),
|
|
2784
2784
|
b("ul", Fu, [
|
|
2785
2785
|
(c(!0), h(X, null, _e(d(t), (l) => (c(), h("li", {
|
|
@@ -2801,7 +2801,7 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2801
2801
|
])
|
|
2802
2802
|
], 2)) : M("", !0);
|
|
2803
2803
|
}
|
|
2804
|
-
}), Uu = /* @__PURE__ */ W(xu, [["__scopeId", "data-v-
|
|
2804
|
+
}), Uu = /* @__PURE__ */ W(xu, [["__scopeId", "data-v-d17e5d7a"]]), Hu = {
|
|
2805
2805
|
key: 0,
|
|
2806
2806
|
class: "VPNavScreen",
|
|
2807
2807
|
id: "VPNavScreen"
|
|
@@ -2832,46 +2832,46 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2832
2832
|
_: 3
|
|
2833
2833
|
}));
|
|
2834
2834
|
}
|
|
2835
|
-
}), Bu = /* @__PURE__ */ W(Wu, [["__scopeId", "data-v-
|
|
2835
|
+
}), Bu = /* @__PURE__ */ W(Wu, [["__scopeId", "data-v-2053bf1e"]]), Gu = {
|
|
2836
2836
|
key: 0,
|
|
2837
2837
|
class: "VPNav"
|
|
2838
2838
|
}, Ku = /* @__PURE__ */ w({
|
|
2839
2839
|
__name: "VPNav",
|
|
2840
2840
|
setup(e) {
|
|
2841
|
-
const { isScreenOpen: t, closeScreen: n, toggleScreen: s } = wi(), { frontmatter: o } = q(),
|
|
2841
|
+
const { isScreenOpen: t, closeScreen: n, toggleScreen: s } = wi(), { frontmatter: o } = q(), a = D(() => o.value.navbar !== !1);
|
|
2842
2842
|
return vo(es, { closeScreen: n }), kt(() => {
|
|
2843
|
-
Zt && document.documentElement.classList.toggle("hide-nav", !
|
|
2844
|
-
}), (
|
|
2843
|
+
Zt && document.documentElement.classList.toggle("hide-nav", !a.value);
|
|
2844
|
+
}), (r, l) => a.value ? (c(), h("header", Gu, [
|
|
2845
2845
|
H(mu, {
|
|
2846
2846
|
"is-screen-open": d(t),
|
|
2847
2847
|
onToggleScreen: d(s)
|
|
2848
2848
|
}, {
|
|
2849
2849
|
"nav-bar-title-before": T(() => [
|
|
2850
|
-
k(
|
|
2850
|
+
k(r.$slots, "nav-bar-title-before", {}, void 0, !0)
|
|
2851
2851
|
]),
|
|
2852
2852
|
"nav-bar-title-after": T(() => [
|
|
2853
|
-
k(
|
|
2853
|
+
k(r.$slots, "nav-bar-title-after", {}, void 0, !0)
|
|
2854
2854
|
]),
|
|
2855
2855
|
"nav-bar-content-before": T(() => [
|
|
2856
|
-
k(
|
|
2856
|
+
k(r.$slots, "nav-bar-content-before", {}, void 0, !0)
|
|
2857
2857
|
]),
|
|
2858
2858
|
"nav-bar-content-after": T(() => [
|
|
2859
|
-
k(
|
|
2859
|
+
k(r.$slots, "nav-bar-content-after", {}, void 0, !0)
|
|
2860
2860
|
]),
|
|
2861
2861
|
_: 3
|
|
2862
2862
|
}, 8, ["is-screen-open", "onToggleScreen"]),
|
|
2863
2863
|
H(Bu, { open: d(t) }, {
|
|
2864
2864
|
"nav-screen-content-before": T(() => [
|
|
2865
|
-
k(
|
|
2865
|
+
k(r.$slots, "nav-screen-content-before", {}, void 0, !0)
|
|
2866
2866
|
]),
|
|
2867
2867
|
"nav-screen-content-after": T(() => [
|
|
2868
|
-
k(
|
|
2868
|
+
k(r.$slots, "nav-screen-content-after", {}, void 0, !0)
|
|
2869
2869
|
]),
|
|
2870
2870
|
_: 3
|
|
2871
2871
|
}, 8, ["open"])
|
|
2872
2872
|
])) : M("", !0);
|
|
2873
2873
|
}
|
|
2874
|
-
}), Yu = /* @__PURE__ */ W(Ku, [["__scopeId", "data-v-
|
|
2874
|
+
}), Yu = /* @__PURE__ */ W(Ku, [["__scopeId", "data-v-961d989f"]]), Xu = ["role", "tabindex"], qu = {
|
|
2875
2875
|
key: 1,
|
|
2876
2876
|
class: "items"
|
|
2877
2877
|
}, Ju = /* @__PURE__ */ w({
|
|
@@ -2885,17 +2885,17 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2885
2885
|
collapsed: n,
|
|
2886
2886
|
collapsible: s,
|
|
2887
2887
|
isLink: o,
|
|
2888
|
-
isActiveLink:
|
|
2889
|
-
hasActiveLink:
|
|
2888
|
+
isActiveLink: a,
|
|
2889
|
+
hasActiveLink: r,
|
|
2890
2890
|
hasChildren: l,
|
|
2891
2891
|
toggle: i
|
|
2892
|
-
} =
|
|
2892
|
+
} = Br(D(() => t.item)), f = D(() => l.value ? "section" : "div"), v = D(() => o.value ? "a" : "div"), g = D(() => l.value ? t.depth + 2 === 7 ? "p" : `h${t.depth + 2}` : "p"), E = D(() => o.value ? void 0 : "button"), I = D(() => [
|
|
2893
2893
|
[`level-${t.depth}`],
|
|
2894
2894
|
{ collapsible: s.value },
|
|
2895
2895
|
{ collapsed: n.value },
|
|
2896
2896
|
{ "is-link": o.value },
|
|
2897
|
-
{ "is-active":
|
|
2898
|
-
{ "has-active":
|
|
2897
|
+
{ "is-active": a.value },
|
|
2898
|
+
{ "has-active": r.value }
|
|
2899
2899
|
]);
|
|
2900
2900
|
function R($) {
|
|
2901
2901
|
"key" in $ && $.key !== "Enter" || !t.item.link && i();
|
|
@@ -2913,7 +2913,7 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2913
2913
|
key: 0,
|
|
2914
2914
|
class: "item",
|
|
2915
2915
|
role: E.value
|
|
2916
|
-
},
|
|
2916
|
+
}, Pa(
|
|
2917
2917
|
e.item.items ? { click: R, keydown: R } : {},
|
|
2918
2918
|
!0
|
|
2919
2919
|
), {
|
|
@@ -2946,7 +2946,7 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2946
2946
|
role: "button",
|
|
2947
2947
|
"aria-label": "toggle section",
|
|
2948
2948
|
onClick: O,
|
|
2949
|
-
onKeydown:
|
|
2949
|
+
onKeydown: Oa(O, ["enter"]),
|
|
2950
2950
|
tabindex: "0"
|
|
2951
2951
|
}, [..._[0] || (_[0] = [
|
|
2952
2952
|
b("span", { class: "vpi-chevron-right caret-icon" }, null, -1)
|
|
@@ -2964,31 +2964,31 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2964
2964
|
}, 8, ["class"]);
|
|
2965
2965
|
};
|
|
2966
2966
|
}
|
|
2967
|
-
}), zu = /* @__PURE__ */ W(Ju, [["__scopeId", "data-v-
|
|
2967
|
+
}), zu = /* @__PURE__ */ W(Ju, [["__scopeId", "data-v-c5be0bca"]]), Qu = /* @__PURE__ */ w({
|
|
2968
2968
|
__name: "VPSidebarGroup",
|
|
2969
2969
|
props: {
|
|
2970
2970
|
items: {}
|
|
2971
2971
|
},
|
|
2972
2972
|
setup(e) {
|
|
2973
|
-
const t =
|
|
2973
|
+
const t = ae(!0);
|
|
2974
2974
|
let n = null;
|
|
2975
2975
|
return Ve(() => {
|
|
2976
2976
|
n = setTimeout(() => {
|
|
2977
2977
|
n = null, t.value = !1;
|
|
2978
2978
|
}, 300);
|
|
2979
|
-
}), $
|
|
2979
|
+
}), $a(() => {
|
|
2980
2980
|
n != null && (clearTimeout(n), n = null);
|
|
2981
|
-
}), (s, o) => (c(!0), h(X, null, _e(e.items, (
|
|
2982
|
-
key:
|
|
2981
|
+
}), (s, o) => (c(!0), h(X, null, _e(e.items, (a) => (c(), h("div", {
|
|
2982
|
+
key: a.text,
|
|
2983
2983
|
class: ee(["group", { "no-transition": t.value }])
|
|
2984
2984
|
}, [
|
|
2985
2985
|
H(zu, {
|
|
2986
|
-
item:
|
|
2986
|
+
item: a,
|
|
2987
2987
|
depth: 0
|
|
2988
2988
|
}, null, 8, ["item"])
|
|
2989
2989
|
], 2))), 128));
|
|
2990
2990
|
}
|
|
2991
|
-
}), Zu = /* @__PURE__ */ W(Qu, [["__scopeId", "data-v-
|
|
2991
|
+
}), Zu = /* @__PURE__ */ W(Qu, [["__scopeId", "data-v-f3db574f"]]), ed = {
|
|
2992
2992
|
class: "nav",
|
|
2993
2993
|
id: "VPSidebarNav",
|
|
2994
2994
|
"aria-labelledby": "sidebar-aria-label",
|
|
@@ -2999,19 +2999,19 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
2999
2999
|
open: { type: Boolean }
|
|
3000
3000
|
},
|
|
3001
3001
|
setup(e) {
|
|
3002
|
-
const { sidebarGroups: t, hasSidebar: n } = Ge(), s = e, o =
|
|
3002
|
+
const { sidebarGroups: t, hasSidebar: n } = Ge(), s = e, o = ae(null), a = Io(Zt ? document.body : null);
|
|
3003
3003
|
Ee(
|
|
3004
3004
|
[s, o],
|
|
3005
3005
|
() => {
|
|
3006
|
-
s.open ? (
|
|
3006
|
+
s.open ? (a.value = !0, o.value?.focus()) : a.value = !1;
|
|
3007
3007
|
},
|
|
3008
3008
|
{ immediate: !0, flush: "post" }
|
|
3009
3009
|
);
|
|
3010
|
-
const
|
|
3010
|
+
const r = ae(0);
|
|
3011
3011
|
return Ee(
|
|
3012
3012
|
t,
|
|
3013
3013
|
() => {
|
|
3014
|
-
|
|
3014
|
+
r.value += 1;
|
|
3015
3015
|
},
|
|
3016
3016
|
{ deep: !0 }
|
|
3017
3017
|
), (l, i) => d(n) ? (c(), h("aside", {
|
|
@@ -3019,7 +3019,7 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
3019
3019
|
class: ee(["VPSidebar", { open: e.open }]),
|
|
3020
3020
|
ref_key: "navEl",
|
|
3021
3021
|
ref: o,
|
|
3022
|
-
onClick: i[0] || (i[0] =
|
|
3022
|
+
onClick: i[0] || (i[0] = Aa(() => {
|
|
3023
3023
|
}, ["stop"]))
|
|
3024
3024
|
}, [
|
|
3025
3025
|
i[2] || (i[2] = b("div", { class: "curtain" }, null, -1)),
|
|
@@ -3031,20 +3031,20 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
3031
3031
|
k(l.$slots, "sidebar-nav-before", {}, void 0, !0),
|
|
3032
3032
|
(c(), F(Zu, {
|
|
3033
3033
|
items: d(t),
|
|
3034
|
-
key:
|
|
3034
|
+
key: r.value
|
|
3035
3035
|
}, null, 8, ["items"])),
|
|
3036
3036
|
k(l.$slots, "sidebar-nav-after", {}, void 0, !0)
|
|
3037
3037
|
])
|
|
3038
3038
|
], 2)) : M("", !0);
|
|
3039
3039
|
}
|
|
3040
|
-
}), nd = /* @__PURE__ */ W(td, [["__scopeId", "data-v-
|
|
3040
|
+
}), nd = /* @__PURE__ */ W(td, [["__scopeId", "data-v-baaffd97"]]), sd = {
|
|
3041
3041
|
href: "#VPContent",
|
|
3042
3042
|
class: "VPSkipLink visually-hidden"
|
|
3043
3043
|
}, od = /* @__PURE__ */ w({
|
|
3044
3044
|
__name: "VPSkipLink",
|
|
3045
3045
|
setup(e) {
|
|
3046
|
-
const { theme: t } = q(), n = Lt(), s =
|
|
3047
|
-
return Ee(() => n.path, () => s.value.focus()), (o,
|
|
3046
|
+
const { theme: t } = q(), n = Lt(), s = ae();
|
|
3047
|
+
return Ee(() => n.path, () => s.value.focus()), (o, a) => (c(), h(X, null, [
|
|
3048
3048
|
b("span", {
|
|
3049
3049
|
ref_key: "backToTop",
|
|
3050
3050
|
ref: s,
|
|
@@ -3053,25 +3053,25 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
3053
3053
|
b("a", sd, B(d(t).skipToContentLabel || "Skip to content"), 1)
|
|
3054
3054
|
], 64));
|
|
3055
3055
|
}
|
|
3056
|
-
}),
|
|
3056
|
+
}), ad = /* @__PURE__ */ W(od, [["__scopeId", "data-v-0e343cb0"]]), rd = /* @__PURE__ */ w({
|
|
3057
3057
|
__name: "Layout",
|
|
3058
3058
|
setup(e) {
|
|
3059
3059
|
const {
|
|
3060
3060
|
isOpen: t,
|
|
3061
3061
|
open: n,
|
|
3062
3062
|
close: s
|
|
3063
|
-
} =
|
|
3064
|
-
|
|
3065
|
-
const { frontmatter: o } = q(),
|
|
3066
|
-
return vo($o, { heroImageSlotExists:
|
|
3063
|
+
} = Wr();
|
|
3064
|
+
Gr({ closeSidebar: s });
|
|
3065
|
+
const { frontmatter: o } = q(), a = Ca(), r = D(() => !!a["home-hero-image"]);
|
|
3066
|
+
return vo($o, { heroImageSlotExists: r }), (l, i) => {
|
|
3067
3067
|
const f = Ne("Content");
|
|
3068
3068
|
return d(o).layout !== !1 ? (c(), h("div", {
|
|
3069
3069
|
key: 0,
|
|
3070
3070
|
class: ee(["Layout", d(o).pageClass])
|
|
3071
3071
|
}, [
|
|
3072
3072
|
k(l.$slots, "layout-top", {}, void 0, !0),
|
|
3073
|
-
H(
|
|
3074
|
-
H(
|
|
3073
|
+
H(ad),
|
|
3074
|
+
H(ja, {
|
|
3075
3075
|
class: "backdrop",
|
|
3076
3076
|
show: d(t),
|
|
3077
3077
|
onClick: d(s)
|
|
@@ -3187,10 +3187,10 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
3187
3187
|
], 2)) : (c(), F(f, { key: 1 }));
|
|
3188
3188
|
};
|
|
3189
3189
|
}
|
|
3190
|
-
}), ld = /* @__PURE__ */ W(
|
|
3190
|
+
}), ld = /* @__PURE__ */ W(rd, [["__scopeId", "data-v-5df53dec"]]), Ro = {
|
|
3191
3191
|
Layout: ld,
|
|
3192
3192
|
enhanceApp: ({ app: e }) => {
|
|
3193
|
-
e.component("Badge",
|
|
3193
|
+
e.component("Badge", xa);
|
|
3194
3194
|
}
|
|
3195
3195
|
}, Fo = /* @__PURE__ */ w({
|
|
3196
3196
|
__name: "DonationWidget",
|
|
@@ -3198,8 +3198,8 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
3198
3198
|
direction: {}
|
|
3199
3199
|
},
|
|
3200
3200
|
setup(e) {
|
|
3201
|
-
const { theme: t } = Vt(), s = e.direction === "vertical" ? "space-y-4" : "space-x-4", o = t.value.donation ?
|
|
3202
|
-
return (
|
|
3201
|
+
const { theme: t } = Vt(), s = e.direction === "vertical" ? "space-y-4" : "space-x-4", o = t.value.donation ? at(() => import("./Donation-D9Xn0MPt.js")) : () => null;
|
|
3202
|
+
return (a, r) => (c(), h("div", {
|
|
3203
3203
|
class: ee(["flex flex-wrap py-4 items-center justify-center", d(s)])
|
|
3204
3204
|
}, [
|
|
3205
3205
|
H(d(o), {
|
|
@@ -3210,7 +3210,7 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
3210
3210
|
}), id = { class: "container" }, cd = ["innerHTML"], ud = ["innerHTML"], dd = /* @__PURE__ */ w({
|
|
3211
3211
|
__name: "Footer",
|
|
3212
3212
|
setup(e) {
|
|
3213
|
-
const { theme: t, frontmatter: n } = Vt(), { hasSidebar: s, hasAside: o } = Ge(),
|
|
3213
|
+
const { theme: t, frontmatter: n } = Vt(), { hasSidebar: s, hasAside: o } = Ge(), a = D(() => typeof t.value.themeFooter.copyright == "string" ? t.value.themeFooter.copyright.replace(/#\{present\}/g, (/* @__PURE__ */ new Date()).getFullYear().toString()) : t.value.themeFooter.copyright), r = t.value.googleAnalytics ? at(() => import("./GoogleAnalytics-Dp3EGn1x.js")) : () => null, l = t.value.swetrix ? at(() => import("./Swetrix-CM1mbD6X.js")) : () => null;
|
|
3214
3214
|
return (i, f) => (c(), h(X, null, [
|
|
3215
3215
|
d(o) ? M("", !0) : (c(), F(Fo, {
|
|
3216
3216
|
key: 0,
|
|
@@ -3226,14 +3226,14 @@ const Wc = /* @__PURE__ */ W(Uc, [["render", jc], ["__scopeId", "data-v-5718beec
|
|
|
3226
3226
|
class: "message",
|
|
3227
3227
|
innerHTML: d(t).themeFooter.message
|
|
3228
3228
|
}, null, 8, cd)) : M("", !0),
|
|
3229
|
-
|
|
3229
|
+
a.value ? (c(), h("p", {
|
|
3230
3230
|
key: 1,
|
|
3231
3231
|
class: "copyright",
|
|
3232
|
-
innerHTML:
|
|
3232
|
+
innerHTML: a.value
|
|
3233
3233
|
}, null, 8, ud)) : M("", !0)
|
|
3234
3234
|
])
|
|
3235
3235
|
], 2)) : M("", !0),
|
|
3236
|
-
H(d(
|
|
3236
|
+
H(d(r), {
|
|
3237
3237
|
"google-analytics": d(t).googleAnalytics
|
|
3238
3238
|
}, null, 8, ["google-analytics"]),
|
|
3239
3239
|
H(d(l), {
|
|
@@ -3246,17 +3246,17 @@ function Be(e, t) {
|
|
|
3246
3246
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
3247
3247
|
}
|
|
3248
3248
|
const Os = {};
|
|
3249
|
-
function
|
|
3249
|
+
function as(e) {
|
|
3250
3250
|
Os[e] || (Os[e] = !0, Be(e));
|
|
3251
3251
|
}
|
|
3252
3252
|
const xe = typeof window < "u";
|
|
3253
|
-
let Oe,
|
|
3253
|
+
let Oe, rt;
|
|
3254
3254
|
if (process.env.NODE_ENV !== "production") {
|
|
3255
3255
|
const e = xe && window.performance;
|
|
3256
3256
|
e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
|
|
3257
3257
|
e.clearMeasures && (Oe = (t) => {
|
|
3258
3258
|
e.mark(t);
|
|
3259
|
-
},
|
|
3259
|
+
}, rt = (t, n, s) => {
|
|
3260
3260
|
e.measure(t, n, s), e.clearMarks(n), e.clearMarks(s);
|
|
3261
3261
|
});
|
|
3262
3262
|
}
|
|
@@ -3264,9 +3264,9 @@ const md = /\{([0-9a-zA-Z]+)\}/g;
|
|
|
3264
3264
|
function tn(e, ...t) {
|
|
3265
3265
|
return t.length === 1 && Z(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(md, (n, s) => t.hasOwnProperty(s) ? t[s] : "");
|
|
3266
3266
|
}
|
|
3267
|
-
const Ke = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), _d = (e, t, n) => pd({ l: e, k: t, s: n }), pd = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), he = (e) => typeof e == "number" && isFinite(e), vd = (e) =>
|
|
3267
|
+
const Ke = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), _d = (e, t, n) => pd({ l: e, k: t, s: n }), pd = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), he = (e) => typeof e == "number" && isFinite(e), vd = (e) => rs(e) === "[object Date]", ht = (e) => rs(e) === "[object RegExp]", nn = (e) => J(e) && Object.keys(e).length === 0, be = Object.assign, hd = Object.create, re = (e = null) => hd(e);
|
|
3268
3268
|
let $s;
|
|
3269
|
-
const ot = () => $s || ($s = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global :
|
|
3269
|
+
const ot = () => $s || ($s = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : re());
|
|
3270
3270
|
function As(e) {
|
|
3271
3271
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
3272
3272
|
}
|
|
@@ -3274,7 +3274,7 @@ function Cs(e) {
|
|
|
3274
3274
|
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
3275
3275
|
}
|
|
3276
3276
|
function gd(e) {
|
|
3277
|
-
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (s, o,
|
|
3277
|
+
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (s, o, a) => `${o}="${Cs(a)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (s, o, a) => `${o}='${Cs(a)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && Be("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), [
|
|
3278
3278
|
// In href, src, action, formaction attributes
|
|
3279
3279
|
/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
|
|
3280
3280
|
// In style attributes within url()
|
|
@@ -3287,7 +3287,7 @@ const bd = Object.prototype.hasOwnProperty;
|
|
|
3287
3287
|
function Fe(e, t) {
|
|
3288
3288
|
return bd.call(e, t);
|
|
3289
3289
|
}
|
|
3290
|
-
const me = Array.isArray, le = (e) => typeof e == "function", x = (e) => typeof e == "string", te = (e) => typeof e == "boolean", Z = (e) => e !== null && typeof e == "object", Ed = (e) => Z(e) && le(e.then) && le(e.catch), xo = Object.prototype.toString,
|
|
3290
|
+
const me = Array.isArray, le = (e) => typeof e == "function", x = (e) => typeof e == "string", te = (e) => typeof e == "boolean", Z = (e) => e !== null && typeof e == "object", Ed = (e) => Z(e) && le(e.then) && le(e.catch), xo = Object.prototype.toString, rs = (e) => xo.call(e), J = (e) => rs(e) === "[object Object]", yd = (e) => e == null ? "" : me(e) || J(e) && e.toString === xo ? JSON.stringify(e, null, 2) : String(e);
|
|
3291
3291
|
function ls(e, t = "") {
|
|
3292
3292
|
return e.reduce((n, s, o) => o === 0 ? n + s : n + t + s, "");
|
|
3293
3293
|
}
|
|
@@ -3295,29 +3295,29 @@ const ws = 2;
|
|
|
3295
3295
|
function kd(e, t = 0, n = e.length) {
|
|
3296
3296
|
const s = e.split(/\r?\n/);
|
|
3297
3297
|
let o = 0;
|
|
3298
|
-
const
|
|
3299
|
-
for (let
|
|
3300
|
-
if (o += s[
|
|
3301
|
-
for (let l =
|
|
3298
|
+
const a = [];
|
|
3299
|
+
for (let r = 0; r < s.length; r++)
|
|
3300
|
+
if (o += s[r].length + 1, o >= t) {
|
|
3301
|
+
for (let l = r - ws; l <= r + ws || n > o; l++) {
|
|
3302
3302
|
if (l < 0 || l >= s.length)
|
|
3303
3303
|
continue;
|
|
3304
3304
|
const i = l + 1;
|
|
3305
|
-
|
|
3305
|
+
a.push(`${i}${" ".repeat(3 - String(i).length)}| ${s[l]}`);
|
|
3306
3306
|
const f = s[l].length;
|
|
3307
|
-
if (l ===
|
|
3307
|
+
if (l === r) {
|
|
3308
3308
|
const v = t - (o - f) + 1, g = Math.max(1, n > o ? f - v : n - t);
|
|
3309
|
-
|
|
3310
|
-
} else if (l >
|
|
3309
|
+
a.push(" | " + " ".repeat(v) + "^".repeat(g));
|
|
3310
|
+
} else if (l > r) {
|
|
3311
3311
|
if (n > o) {
|
|
3312
3312
|
const v = Math.max(Math.min(n - o, f), 1);
|
|
3313
|
-
|
|
3313
|
+
a.push(" | " + "^".repeat(v));
|
|
3314
3314
|
}
|
|
3315
3315
|
o += f + 1;
|
|
3316
3316
|
}
|
|
3317
3317
|
}
|
|
3318
3318
|
break;
|
|
3319
3319
|
}
|
|
3320
|
-
return
|
|
3320
|
+
return a.join(`
|
|
3321
3321
|
`);
|
|
3322
3322
|
}
|
|
3323
3323
|
function is() {
|
|
@@ -3344,8 +3344,8 @@ function Xt(e, t) {
|
|
|
3344
3344
|
const n = [{ src: e, des: t }];
|
|
3345
3345
|
for (; n.length; ) {
|
|
3346
3346
|
const { src: s, des: o } = n.pop();
|
|
3347
|
-
Object.keys(s).forEach((
|
|
3348
|
-
|
|
3347
|
+
Object.keys(s).forEach((a) => {
|
|
3348
|
+
a !== "__proto__" && (Z(s[a]) && !Z(o[a]) && (o[a] = Array.isArray(s[a]) ? [] : re()), Wt(o[a]) || Wt(s[a]) ? o[a] = s[a] : n.push({ src: s[a], des: o[a] }));
|
|
3349
3349
|
});
|
|
3350
3350
|
}
|
|
3351
3351
|
}
|
|
@@ -3399,7 +3399,7 @@ const G = {
|
|
|
3399
3399
|
[G.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
3400
3400
|
};
|
|
3401
3401
|
function Nt(e, t, n = {}) {
|
|
3402
|
-
const { domain: s, messages: o, args:
|
|
3402
|
+
const { domain: s, messages: o, args: a } = n, r = process.env.NODE_ENV !== "production" ? tn((o || Td)[e] || "", ...a || []) : e, l = new SyntaxError(String(r));
|
|
3403
3403
|
return l.code = e, t && (l.location = t), l.domain = s, l;
|
|
3404
3404
|
}
|
|
3405
3405
|
function Sd(e) {
|
|
@@ -3409,25 +3409,25 @@ const Id = /<\/?[\w\s="/.':;#-\/]+>/, Pd = (e) => Id.test(e), Ue = " ", Od = "\r
|
|
|
3409
3409
|
`, $d = "\u2028", Ad = "\u2029";
|
|
3410
3410
|
function Cd(e) {
|
|
3411
3411
|
const t = e;
|
|
3412
|
-
let n = 0, s = 1, o = 1,
|
|
3413
|
-
const
|
|
3412
|
+
let n = 0, s = 1, o = 1, a = 0;
|
|
3413
|
+
const r = (S) => t[S] === Od && t[S + 1] === ye, l = (S) => t[S] === ye, i = (S) => t[S] === Ad, f = (S) => t[S] === $d, v = (S) => r(S) || l(S) || i(S) || f(S), g = () => n, E = () => s, I = () => o, R = () => a, O = (S) => r(S) || i(S) || f(S) ? ye : t[S], $ = () => O(n), _ = () => O(n + a);
|
|
3414
3414
|
function p() {
|
|
3415
|
-
return
|
|
3415
|
+
return a = 0, v(n) && (s++, o = 0), r(n) && n++, n++, o++, t[n];
|
|
3416
3416
|
}
|
|
3417
3417
|
function L() {
|
|
3418
|
-
return
|
|
3418
|
+
return r(n + a) && a++, a++, t[n + a];
|
|
3419
3419
|
}
|
|
3420
3420
|
function y() {
|
|
3421
|
-
n = 0, s = 1, o = 1,
|
|
3421
|
+
n = 0, s = 1, o = 1, a = 0;
|
|
3422
3422
|
}
|
|
3423
3423
|
function C(S = 0) {
|
|
3424
|
-
|
|
3424
|
+
a = S;
|
|
3425
3425
|
}
|
|
3426
3426
|
function V() {
|
|
3427
|
-
const S = n +
|
|
3427
|
+
const S = n + a;
|
|
3428
3428
|
for (; S !== n; )
|
|
3429
3429
|
p();
|
|
3430
|
-
|
|
3430
|
+
a = 0;
|
|
3431
3431
|
}
|
|
3432
3432
|
return {
|
|
3433
3433
|
index: g,
|
|
@@ -3446,15 +3446,15 @@ function Cd(e) {
|
|
|
3446
3446
|
}
|
|
3447
3447
|
const Ye = void 0, wd = ".", Ds = "'", Dd = "tokenizer";
|
|
3448
3448
|
function Md(e, t = {}) {
|
|
3449
|
-
const n = t.location !== !1, s = Cd(e), o = () => s.index(),
|
|
3449
|
+
const n = t.location !== !1, s = Cd(e), o = () => s.index(), a = () => Ld(s.line(), s.column(), s.index()), r = a(), l = o(), i = {
|
|
3450
3450
|
currentType: 13,
|
|
3451
3451
|
offset: l,
|
|
3452
|
-
startLoc:
|
|
3453
|
-
endLoc:
|
|
3452
|
+
startLoc: r,
|
|
3453
|
+
endLoc: r,
|
|
3454
3454
|
lastType: 13,
|
|
3455
3455
|
lastOffset: l,
|
|
3456
|
-
lastStartLoc:
|
|
3457
|
-
lastEndLoc:
|
|
3456
|
+
lastStartLoc: r,
|
|
3457
|
+
lastEndLoc: r,
|
|
3458
3458
|
braceNest: 0,
|
|
3459
3459
|
inLinked: !1,
|
|
3460
3460
|
text: ""
|
|
@@ -3470,7 +3470,7 @@ function Md(e, t = {}) {
|
|
|
3470
3470
|
}
|
|
3471
3471
|
}
|
|
3472
3472
|
function E(u, m, P) {
|
|
3473
|
-
u.endLoc =
|
|
3473
|
+
u.endLoc = a(), u.currentType = m;
|
|
3474
3474
|
const j = { type: m };
|
|
3475
3475
|
return n && (j.loc = An(u.startLoc, u.endLoc)), P != null && (j.value = P), j;
|
|
3476
3476
|
}
|
|
@@ -3480,7 +3480,7 @@ function Md(e, t = {}) {
|
|
|
3480
3480
|
/* TokenTypes.EOF */
|
|
3481
3481
|
);
|
|
3482
3482
|
function R(u, m) {
|
|
3483
|
-
return u.currentChar() === m ? (u.next(), m) : (g(G.EXPECTED_TOKEN,
|
|
3483
|
+
return u.currentChar() === m ? (u.next(), m) : (g(G.EXPECTED_TOKEN, a(), 0, m), "");
|
|
3484
3484
|
}
|
|
3485
3485
|
function O(u) {
|
|
3486
3486
|
let m = "";
|
|
@@ -3625,7 +3625,7 @@ function Md(e, t = {}) {
|
|
|
3625
3625
|
P += m;
|
|
3626
3626
|
return P;
|
|
3627
3627
|
}
|
|
3628
|
-
function
|
|
3628
|
+
function an(u) {
|
|
3629
3629
|
let m = "";
|
|
3630
3630
|
for (; ; ) {
|
|
3631
3631
|
const P = u.currentChar();
|
|
@@ -3644,7 +3644,7 @@ function Md(e, t = {}) {
|
|
|
3644
3644
|
}
|
|
3645
3645
|
return m;
|
|
3646
3646
|
}
|
|
3647
|
-
function
|
|
3647
|
+
function rn(u) {
|
|
3648
3648
|
$(u);
|
|
3649
3649
|
let m = "", P = "";
|
|
3650
3650
|
for (; m = ue(u); )
|
|
@@ -3652,14 +3652,14 @@ function Md(e, t = {}) {
|
|
|
3652
3652
|
const j = u.currentChar();
|
|
3653
3653
|
if (j && j !== "}" && j !== Ye && j !== Ue && j !== ye && j !== " ") {
|
|
3654
3654
|
const de = xt(u);
|
|
3655
|
-
return g(G.INVALID_TOKEN_IN_PLACEHOLDER,
|
|
3655
|
+
return g(G.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, P + de), P + de;
|
|
3656
3656
|
}
|
|
3657
|
-
return u.currentChar() === Ye && g(G.UNTERMINATED_CLOSING_BRACE,
|
|
3657
|
+
return u.currentChar() === Ye && g(G.UNTERMINATED_CLOSING_BRACE, a(), 0), P;
|
|
3658
3658
|
}
|
|
3659
3659
|
function ln(u) {
|
|
3660
3660
|
$(u);
|
|
3661
3661
|
let m = "";
|
|
3662
|
-
return u.currentChar() === "-" ? (u.next(), m += `-${ze(u)}`) : m += ze(u), u.currentChar() === Ye && g(G.UNTERMINATED_CLOSING_BRACE,
|
|
3662
|
+
return u.currentChar() === "-" ? (u.next(), m += `-${ze(u)}`) : m += ze(u), u.currentChar() === Ye && g(G.UNTERMINATED_CLOSING_BRACE, a(), 0), m;
|
|
3663
3663
|
}
|
|
3664
3664
|
function cn(u) {
|
|
3665
3665
|
return u !== Ds && u !== ye;
|
|
@@ -3670,7 +3670,7 @@ function Md(e, t = {}) {
|
|
|
3670
3670
|
for (; m = z(u, cn); )
|
|
3671
3671
|
m === "\\" ? P += un(u) : P += m;
|
|
3672
3672
|
const j = u.currentChar();
|
|
3673
|
-
return j === ye || j === Ye ? (g(G.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,
|
|
3673
|
+
return j === ye || j === Ye ? (g(G.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), j === ye && (u.next(), R(u, "'")), P) : (R(u, "'"), P);
|
|
3674
3674
|
}
|
|
3675
3675
|
function un(u) {
|
|
3676
3676
|
const m = u.currentChar();
|
|
@@ -3683,7 +3683,7 @@ function Md(e, t = {}) {
|
|
|
3683
3683
|
case "U":
|
|
3684
3684
|
return Ft(u, m, 6);
|
|
3685
3685
|
default:
|
|
3686
|
-
return g(G.UNKNOWN_ESCAPE_SEQUENCE,
|
|
3686
|
+
return g(G.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, m), "";
|
|
3687
3687
|
}
|
|
3688
3688
|
}
|
|
3689
3689
|
function Ft(u, m, P) {
|
|
@@ -3692,7 +3692,7 @@ function Md(e, t = {}) {
|
|
|
3692
3692
|
for (let de = 0; de < P; de++) {
|
|
3693
3693
|
const pe = Ce(u);
|
|
3694
3694
|
if (!pe) {
|
|
3695
|
-
g(G.INVALID_UNICODE_ESCAPE_SEQUENCE,
|
|
3695
|
+
g(G.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${m}${j}${u.currentChar()}`);
|
|
3696
3696
|
break;
|
|
3697
3697
|
}
|
|
3698
3698
|
j += pe;
|
|
@@ -3735,35 +3735,35 @@ function Md(e, t = {}) {
|
|
|
3735
3735
|
let P = null;
|
|
3736
3736
|
switch (u.currentChar()) {
|
|
3737
3737
|
case "{":
|
|
3738
|
-
return m.braceNest >= 1 && g(G.NOT_ALLOW_NEST_PLACEHOLDER,
|
|
3738
|
+
return m.braceNest >= 1 && g(G.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), u.next(), P = E(
|
|
3739
3739
|
m,
|
|
3740
3740
|
2,
|
|
3741
3741
|
"{"
|
|
3742
3742
|
/* TokenChars.BraceLeft */
|
|
3743
3743
|
), $(u), m.braceNest++, P;
|
|
3744
3744
|
case "}":
|
|
3745
|
-
return m.braceNest > 0 && m.currentType === 2 && g(G.EMPTY_PLACEHOLDER,
|
|
3745
|
+
return m.braceNest > 0 && m.currentType === 2 && g(G.EMPTY_PLACEHOLDER, a(), 0), u.next(), P = E(
|
|
3746
3746
|
m,
|
|
3747
3747
|
3,
|
|
3748
3748
|
"}"
|
|
3749
3749
|
/* TokenChars.BraceRight */
|
|
3750
3750
|
), m.braceNest--, m.braceNest > 0 && $(u), m.inLinked && m.braceNest === 0 && (m.inLinked = !1), P;
|
|
3751
3751
|
case "@":
|
|
3752
|
-
return m.braceNest > 0 && g(G.UNTERMINATED_CLOSING_BRACE,
|
|
3752
|
+
return m.braceNest > 0 && g(G.UNTERMINATED_CLOSING_BRACE, a(), 0), P = tt(u, m) || I(m), m.braceNest = 0, P;
|
|
3753
3753
|
default: {
|
|
3754
3754
|
let de = !0, pe = !0, ne = !0;
|
|
3755
3755
|
if (se(u))
|
|
3756
|
-
return m.braceNest > 0 && g(G.UNTERMINATED_CLOSING_BRACE,
|
|
3756
|
+
return m.braceNest > 0 && g(G.UNTERMINATED_CLOSING_BRACE, a(), 0), P = E(m, 1, Tt(u)), m.braceNest = 0, m.inLinked = !1, P;
|
|
3757
3757
|
if (m.braceNest > 0 && (m.currentType === 4 || m.currentType === 5 || m.currentType === 6))
|
|
3758
|
-
return g(G.UNTERMINATED_CLOSING_BRACE,
|
|
3758
|
+
return g(G.UNTERMINATED_CLOSING_BRACE, a(), 0), m.braceNest = 0, It(u, m);
|
|
3759
3759
|
if (de = L(u, m))
|
|
3760
|
-
return P = E(m, 4,
|
|
3760
|
+
return P = E(m, 4, rn(u)), $(u), P;
|
|
3761
3761
|
if (pe = y(u, m))
|
|
3762
3762
|
return P = E(m, 5, ln(u)), $(u), P;
|
|
3763
3763
|
if (ne = C(u, m))
|
|
3764
3764
|
return P = E(m, 6, bs(u)), $(u), P;
|
|
3765
3765
|
if (!de && !pe && !ne)
|
|
3766
|
-
return P = E(m, 12, xt(u)), g(G.INVALID_TOKEN_IN_PLACEHOLDER,
|
|
3766
|
+
return P = E(m, 12, xt(u)), g(G.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, P.value), $(u), P;
|
|
3767
3767
|
break;
|
|
3768
3768
|
}
|
|
3769
3769
|
}
|
|
@@ -3773,7 +3773,7 @@ function Md(e, t = {}) {
|
|
|
3773
3773
|
const { currentType: P } = m;
|
|
3774
3774
|
let j = null;
|
|
3775
3775
|
const de = u.currentChar();
|
|
3776
|
-
switch ((P === 7 || P === 8 || P === 11 || P === 9) && (de === ye || de === Ue) && g(G.INVALID_LINKED_FORMAT,
|
|
3776
|
+
switch ((P === 7 || P === 8 || P === 11 || P === 9) && (de === ye || de === Ue) && g(G.INVALID_LINKED_FORMAT, a(), 0), de) {
|
|
3777
3777
|
case "@":
|
|
3778
3778
|
return u.next(), j = E(
|
|
3779
3779
|
m,
|
|
@@ -3796,7 +3796,7 @@ function Md(e, t = {}) {
|
|
|
3796
3796
|
/* TokenChars.LinkedDelimiter */
|
|
3797
3797
|
);
|
|
3798
3798
|
default:
|
|
3799
|
-
return se(u) ? (j = E(m, 1, Tt(u)), m.braceNest = 0, m.inLinked = !1, j) : V(u, m) || K(u, m) ? ($(u), tt(u, m)) : S(u, m) ? ($(u), E(m, 11, fn(u))) : U(u, m) ? ($(u), de === "{" ? St(u, m) || j : E(m, 10, mn(u))) : (P === 7 && g(G.INVALID_LINKED_FORMAT,
|
|
3799
|
+
return se(u) ? (j = E(m, 1, Tt(u)), m.braceNest = 0, m.inLinked = !1, j) : V(u, m) || K(u, m) ? ($(u), tt(u, m)) : S(u, m) ? ($(u), E(m, 11, fn(u))) : U(u, m) ? ($(u), de === "{" ? St(u, m) || j : E(m, 10, mn(u))) : (P === 7 && g(G.INVALID_LINKED_FORMAT, a(), 0), m.braceNest = 0, m.inLinked = !1, It(u, m));
|
|
3800
3800
|
}
|
|
3801
3801
|
}
|
|
3802
3802
|
function It(u, m) {
|
|
@@ -3812,7 +3812,7 @@ function Md(e, t = {}) {
|
|
|
3812
3812
|
case "{":
|
|
3813
3813
|
return St(u, m) || I(m);
|
|
3814
3814
|
case "}":
|
|
3815
|
-
return g(G.UNBALANCED_CLOSING_BRACE,
|
|
3815
|
+
return g(G.UNBALANCED_CLOSING_BRACE, a(), 0), u.next(), E(
|
|
3816
3816
|
m,
|
|
3817
3817
|
3,
|
|
3818
3818
|
"}"
|
|
@@ -3824,7 +3824,7 @@ function Md(e, t = {}) {
|
|
|
3824
3824
|
if (se(u))
|
|
3825
3825
|
return P = E(m, 1, Tt(u)), m.braceNest = 0, m.inLinked = !1, P;
|
|
3826
3826
|
if (ce(u))
|
|
3827
|
-
return E(m, 0,
|
|
3827
|
+
return E(m, 0, an(u));
|
|
3828
3828
|
break;
|
|
3829
3829
|
}
|
|
3830
3830
|
}
|
|
@@ -3832,7 +3832,7 @@ function Md(e, t = {}) {
|
|
|
3832
3832
|
}
|
|
3833
3833
|
function _n() {
|
|
3834
3834
|
const { currentType: u, offset: m, startLoc: P, endLoc: j } = i;
|
|
3835
|
-
return i.lastType = u, i.lastOffset = m, i.lastStartLoc = P, i.lastEndLoc = j, i.offset = o(), i.startLoc =
|
|
3835
|
+
return i.lastType = u, i.lastOffset = m, i.lastStartLoc = P, i.lastEndLoc = j, i.offset = o(), i.startLoc = a(), s.currentChar() === Ye ? E(
|
|
3836
3836
|
i,
|
|
3837
3837
|
13
|
|
3838
3838
|
/* TokenTypes.EOF */
|
|
@@ -3841,7 +3841,7 @@ function Md(e, t = {}) {
|
|
|
3841
3841
|
return {
|
|
3842
3842
|
nextToken: _n,
|
|
3843
3843
|
currentOffset: o,
|
|
3844
|
-
currentPosition:
|
|
3844
|
+
currentPosition: a,
|
|
3845
3845
|
context: f
|
|
3846
3846
|
};
|
|
3847
3847
|
}
|
|
@@ -3875,37 +3875,37 @@ function xd(e = {}) {
|
|
|
3875
3875
|
const y = { type: _ };
|
|
3876
3876
|
return t && (y.start = p, y.end = p, y.loc = { start: L, end: L }), y;
|
|
3877
3877
|
}
|
|
3878
|
-
function
|
|
3878
|
+
function a(_, p, L, y) {
|
|
3879
3879
|
t && (_.end = p, _.loc && (_.loc.end = L));
|
|
3880
3880
|
}
|
|
3881
|
-
function
|
|
3881
|
+
function r(_, p) {
|
|
3882
3882
|
const L = _.context(), y = o(3, L.offset, L.startLoc);
|
|
3883
|
-
return y.value = p,
|
|
3883
|
+
return y.value = p, a(y, _.currentOffset(), _.currentPosition()), y;
|
|
3884
3884
|
}
|
|
3885
3885
|
function l(_, p) {
|
|
3886
3886
|
const L = _.context(), { lastOffset: y, lastStartLoc: C } = L, V = o(5, y, C);
|
|
3887
|
-
return V.index = parseInt(p, 10), _.nextToken(),
|
|
3887
|
+
return V.index = parseInt(p, 10), _.nextToken(), a(V, _.currentOffset(), _.currentPosition()), V;
|
|
3888
3888
|
}
|
|
3889
3889
|
function i(_, p) {
|
|
3890
3890
|
const L = _.context(), { lastOffset: y, lastStartLoc: C } = L, V = o(4, y, C);
|
|
3891
|
-
return V.key = p, _.nextToken(),
|
|
3891
|
+
return V.key = p, _.nextToken(), a(V, _.currentOffset(), _.currentPosition()), V;
|
|
3892
3892
|
}
|
|
3893
3893
|
function f(_, p) {
|
|
3894
3894
|
const L = _.context(), { lastOffset: y, lastStartLoc: C } = L, V = o(9, y, C);
|
|
3895
|
-
return V.value = p.replace(Rd, Fd), _.nextToken(),
|
|
3895
|
+
return V.value = p.replace(Rd, Fd), _.nextToken(), a(V, _.currentOffset(), _.currentPosition()), V;
|
|
3896
3896
|
}
|
|
3897
3897
|
function v(_) {
|
|
3898
3898
|
const p = _.nextToken(), L = _.context(), { lastOffset: y, lastStartLoc: C } = L, V = o(8, y, C);
|
|
3899
|
-
return p.type !== 11 ? (s(_, G.UNEXPECTED_EMPTY_LINKED_MODIFIER, L.lastStartLoc, 0), V.value = "",
|
|
3899
|
+
return p.type !== 11 ? (s(_, G.UNEXPECTED_EMPTY_LINKED_MODIFIER, L.lastStartLoc, 0), V.value = "", a(V, y, C), {
|
|
3900
3900
|
nextConsumeToken: p,
|
|
3901
3901
|
node: V
|
|
3902
|
-
}) : (p.value == null && s(_, G.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, He(p)), V.value = p.value || "",
|
|
3902
|
+
}) : (p.value == null && s(_, G.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, He(p)), V.value = p.value || "", a(V, _.currentOffset(), _.currentPosition()), {
|
|
3903
3903
|
node: V
|
|
3904
3904
|
});
|
|
3905
3905
|
}
|
|
3906
3906
|
function g(_, p) {
|
|
3907
3907
|
const L = _.context(), y = o(7, L.offset, L.startLoc);
|
|
3908
|
-
return y.value = p,
|
|
3908
|
+
return y.value = p, a(y, _.currentOffset(), _.currentPosition()), y;
|
|
3909
3909
|
}
|
|
3910
3910
|
function E(_) {
|
|
3911
3911
|
const p = _.context(), L = o(6, p.offset, p.startLoc);
|
|
@@ -3930,13 +3930,13 @@ function xd(e = {}) {
|
|
|
3930
3930
|
default: {
|
|
3931
3931
|
s(_, G.UNEXPECTED_EMPTY_LINKED_KEY, p.lastStartLoc, 0);
|
|
3932
3932
|
const C = _.context(), V = o(7, C.offset, C.startLoc);
|
|
3933
|
-
return V.value = "",
|
|
3933
|
+
return V.value = "", a(V, C.offset, C.startLoc), L.key = V, a(L, C.offset, C.startLoc), {
|
|
3934
3934
|
nextConsumeToken: y,
|
|
3935
3935
|
node: L
|
|
3936
3936
|
};
|
|
3937
3937
|
}
|
|
3938
3938
|
}
|
|
3939
|
-
return
|
|
3939
|
+
return a(L, _.currentOffset(), _.currentPosition()), {
|
|
3940
3940
|
node: L
|
|
3941
3941
|
};
|
|
3942
3942
|
}
|
|
@@ -3948,7 +3948,7 @@ function xd(e = {}) {
|
|
|
3948
3948
|
const U = V || _.nextToken();
|
|
3949
3949
|
switch (V = null, U.type) {
|
|
3950
3950
|
case 0:
|
|
3951
|
-
U.value == null && s(_, G.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, He(U)), C.items.push(
|
|
3951
|
+
U.value == null && s(_, G.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, He(U)), C.items.push(r(_, U.value || ""));
|
|
3952
3952
|
break;
|
|
3953
3953
|
case 5:
|
|
3954
3954
|
U.value == null && s(_, G.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, He(U)), C.items.push(l(_, U.value || ""));
|
|
@@ -3967,7 +3967,7 @@ function xd(e = {}) {
|
|
|
3967
3967
|
}
|
|
3968
3968
|
} while (p.currentType !== 13 && p.currentType !== 1);
|
|
3969
3969
|
const S = p.currentType === 1 ? p.lastOffset : _.currentOffset(), K = p.currentType === 1 ? p.lastEndLoc : _.currentPosition();
|
|
3970
|
-
return
|
|
3970
|
+
return a(C, S, K), C;
|
|
3971
3971
|
}
|
|
3972
3972
|
function R(_, p, L, y) {
|
|
3973
3973
|
const C = _.context();
|
|
@@ -3978,7 +3978,7 @@ function xd(e = {}) {
|
|
|
3978
3978
|
const K = I(_);
|
|
3979
3979
|
V || (V = K.items.length === 0), S.cases.push(K);
|
|
3980
3980
|
} while (C.currentType !== 13);
|
|
3981
|
-
return V && s(_, G.MUST_HAVE_MESSAGES_IN_PLURAL, L, 0),
|
|
3981
|
+
return V && s(_, G.MUST_HAVE_MESSAGES_IN_PLURAL, L, 0), a(S, _.currentOffset(), _.currentPosition()), S;
|
|
3982
3982
|
}
|
|
3983
3983
|
function O(_) {
|
|
3984
3984
|
const p = _.context(), { offset: L, startLoc: y } = p, C = I(_);
|
|
@@ -3986,7 +3986,7 @@ function xd(e = {}) {
|
|
|
3986
3986
|
}
|
|
3987
3987
|
function $(_) {
|
|
3988
3988
|
const p = Md(_, be({}, e)), L = p.context(), y = o(0, L.offset, L.startLoc);
|
|
3989
|
-
return t && y.loc && (y.loc.source = _), y.body = O(p), e.onCacheKey && (y.cacheKey = e.onCacheKey(_)), L.currentType !== 13 && s(p, G.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, _[L.offset] || ""),
|
|
3989
|
+
return t && y.loc && (y.loc.source = _), y.body = O(p), e.onCacheKey && (y.cacheKey = e.onCacheKey(_)), L.currentType !== 13 && s(p, G.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, _[L.offset] || ""), a(y, p.currentOffset(), p.currentPosition()), y;
|
|
3990
3990
|
}
|
|
3991
3991
|
return { parse: $ };
|
|
3992
3992
|
}
|
|
@@ -4001,7 +4001,7 @@ function Ud(e, t = {}) {
|
|
|
4001
4001
|
ast: e,
|
|
4002
4002
|
helpers: /* @__PURE__ */ new Set()
|
|
4003
4003
|
};
|
|
4004
|
-
return { context: () => n, helper: (
|
|
4004
|
+
return { context: () => n, helper: (a) => (n.helpers.add(a), a) };
|
|
4005
4005
|
}
|
|
4006
4006
|
function Ms(e, t) {
|
|
4007
4007
|
for (let n = 0; n < e.length; n++)
|
|
@@ -4138,7 +4138,7 @@ function _t(e) {
|
|
|
4138
4138
|
}
|
|
4139
4139
|
const Bd = "parser";
|
|
4140
4140
|
function Gd(e, t) {
|
|
4141
|
-
const { filename: n, breakLineCode: s, needIndent: o } = t,
|
|
4141
|
+
const { filename: n, breakLineCode: s, needIndent: o } = t, a = t.location !== !1, r = {
|
|
4142
4142
|
filename: n,
|
|
4143
4143
|
code: "",
|
|
4144
4144
|
column: 1,
|
|
@@ -4149,25 +4149,25 @@ function Gd(e, t) {
|
|
|
4149
4149
|
needIndent: o,
|
|
4150
4150
|
indentLevel: 0
|
|
4151
4151
|
};
|
|
4152
|
-
|
|
4153
|
-
const l = () =>
|
|
4152
|
+
a && e.loc && (r.source = e.loc.source);
|
|
4153
|
+
const l = () => r;
|
|
4154
4154
|
function i(O, $) {
|
|
4155
|
-
|
|
4155
|
+
r.code += O;
|
|
4156
4156
|
}
|
|
4157
4157
|
function f(O, $ = !0) {
|
|
4158
4158
|
const _ = $ ? s : "";
|
|
4159
4159
|
i(o ? _ + " ".repeat(O) : _);
|
|
4160
4160
|
}
|
|
4161
4161
|
function v(O = !0) {
|
|
4162
|
-
const $ = ++
|
|
4162
|
+
const $ = ++r.indentLevel;
|
|
4163
4163
|
O && f($);
|
|
4164
4164
|
}
|
|
4165
4165
|
function g(O = !0) {
|
|
4166
|
-
const $ = --
|
|
4166
|
+
const $ = --r.indentLevel;
|
|
4167
4167
|
O && f($);
|
|
4168
4168
|
}
|
|
4169
4169
|
function E() {
|
|
4170
|
-
f(
|
|
4170
|
+
f(r.indentLevel);
|
|
4171
4171
|
}
|
|
4172
4172
|
return {
|
|
4173
4173
|
context: l,
|
|
@@ -4176,7 +4176,7 @@ function Gd(e, t) {
|
|
|
4176
4176
|
deindent: g,
|
|
4177
4177
|
newline: E,
|
|
4178
4178
|
helper: (O) => `_${O}`,
|
|
4179
|
-
needIndent: () =>
|
|
4179
|
+
needIndent: () => r.needIndent
|
|
4180
4180
|
};
|
|
4181
4181
|
}
|
|
4182
4182
|
function Kd(e, t) {
|
|
@@ -4193,7 +4193,7 @@ function Yd(e, t) {
|
|
|
4193
4193
|
/* HelperNameMap.NORMALIZE */
|
|
4194
4194
|
)}([`), e.indent(s());
|
|
4195
4195
|
const o = t.items.length;
|
|
4196
|
-
for (let
|
|
4196
|
+
for (let a = 0; a < o && (gt(e, t.items[a]), a !== o - 1); a++)
|
|
4197
4197
|
e.push(", ");
|
|
4198
4198
|
e.deindent(s()), e.push("])");
|
|
4199
4199
|
}
|
|
@@ -4205,7 +4205,7 @@ function Xd(e, t) {
|
|
|
4205
4205
|
/* HelperNameMap.PLURAL */
|
|
4206
4206
|
)}([`), e.indent(s());
|
|
4207
4207
|
const o = t.cases.length;
|
|
4208
|
-
for (let
|
|
4208
|
+
for (let a = 0; a < o && (gt(e, t.cases[a]), a !== o - 1); a++)
|
|
4209
4209
|
e.push(", ");
|
|
4210
4210
|
e.deindent(s()), e.push("])");
|
|
4211
4211
|
}
|
|
@@ -4270,12 +4270,12 @@ const Jd = (e, t = {}) => {
|
|
|
4270
4270
|
const n = x(t.mode) ? t.mode : "normal", s = x(t.filename) ? t.filename : "message.intl";
|
|
4271
4271
|
t.sourceMap;
|
|
4272
4272
|
const o = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
4273
|
-
`,
|
|
4273
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", r = e.helpers || [], l = Gd(e, {
|
|
4274
4274
|
filename: s,
|
|
4275
4275
|
breakLineCode: o,
|
|
4276
|
-
needIndent:
|
|
4276
|
+
needIndent: a
|
|
4277
4277
|
});
|
|
4278
|
-
l.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(
|
|
4278
|
+
l.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(a), r.length > 0 && (l.push(`const { ${ls(r.map((v) => `${v}: _${v}`), ", ")} } = ctx`), l.newline()), l.push("return "), gt(l, e), l.deindent(a), l.push("}"), delete e.helpers;
|
|
4279
4279
|
const { code: i, map: f } = l.context();
|
|
4280
4280
|
return {
|
|
4281
4281
|
ast: e,
|
|
@@ -4285,8 +4285,8 @@ const Jd = (e, t = {}) => {
|
|
|
4285
4285
|
};
|
|
4286
4286
|
};
|
|
4287
4287
|
function zd(e, t = {}) {
|
|
4288
|
-
const n = be({}, t), s = !!n.jit, o = !!n.minify,
|
|
4289
|
-
return s ? (
|
|
4288
|
+
const n = be({}, t), s = !!n.jit, o = !!n.minify, a = n.optimize == null ? !0 : n.optimize, l = xd(n).parse(e);
|
|
4289
|
+
return s ? (a && jd(l), o && _t(l), { ast: l, code: "" }) : (Hd(l, n), Jd(l, n));
|
|
4290
4290
|
}
|
|
4291
4291
|
function Qd() {
|
|
4292
4292
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ot().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (ot().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
@@ -4357,9 +4357,9 @@ function $t(e) {
|
|
|
4357
4357
|
return new Error(`unhandled node type: ${e}`);
|
|
4358
4358
|
}
|
|
4359
4359
|
function yn(e) {
|
|
4360
|
-
return (n) =>
|
|
4360
|
+
return (n) => af(n, e);
|
|
4361
4361
|
}
|
|
4362
|
-
function
|
|
4362
|
+
function af(e, t) {
|
|
4363
4363
|
const n = Zd(t);
|
|
4364
4364
|
if (n == null)
|
|
4365
4365
|
throw $t(
|
|
@@ -4367,9 +4367,9 @@ function rf(e, t) {
|
|
|
4367
4367
|
/* NodeTypes.Resource */
|
|
4368
4368
|
);
|
|
4369
4369
|
if (us(n) === 1) {
|
|
4370
|
-
const
|
|
4371
|
-
return e.plural(
|
|
4372
|
-
...
|
|
4370
|
+
const a = ef(n);
|
|
4371
|
+
return e.plural(a.reduce((r, l) => [
|
|
4372
|
+
...r,
|
|
4373
4373
|
Rs(e, l)
|
|
4374
4374
|
], []));
|
|
4375
4375
|
} else
|
|
@@ -4380,7 +4380,7 @@ function Rs(e, t) {
|
|
|
4380
4380
|
if (n != null)
|
|
4381
4381
|
return e.type === "text" ? n : e.normalize([n]);
|
|
4382
4382
|
{
|
|
4383
|
-
const s = nf(t).reduce((o,
|
|
4383
|
+
const s = nf(t).reduce((o, a) => [...o, Cn(e, a)], []);
|
|
4384
4384
|
return e.normalize(s);
|
|
4385
4385
|
}
|
|
4386
4386
|
}
|
|
@@ -4408,8 +4408,8 @@ function Cn(e, t) {
|
|
|
4408
4408
|
throw $t(n);
|
|
4409
4409
|
}
|
|
4410
4410
|
case 6: {
|
|
4411
|
-
const s = t, o = sf(s),
|
|
4412
|
-
return e.linked(Cn(e,
|
|
4411
|
+
const s = t, o = sf(s), a = of(s);
|
|
4412
|
+
return e.linked(Cn(e, a), o ? Cn(e, o) : void 0, e.type);
|
|
4413
4413
|
}
|
|
4414
4414
|
case 7:
|
|
4415
4415
|
return Bt(t, n);
|
|
@@ -4419,12 +4419,12 @@ function Cn(e, t) {
|
|
|
4419
4419
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
4420
4420
|
}
|
|
4421
4421
|
}
|
|
4422
|
-
const
|
|
4422
|
+
const rf = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
4423
4423
|
function lf(e, t) {
|
|
4424
|
-
t && Pd(e) && Be(tn(
|
|
4424
|
+
t && Pd(e) && Be(tn(rf, { source: e }));
|
|
4425
4425
|
}
|
|
4426
4426
|
const cf = (e) => e;
|
|
4427
|
-
let Gt =
|
|
4427
|
+
let Gt = re();
|
|
4428
4428
|
function uf(e, t = {}) {
|
|
4429
4429
|
let n = !1;
|
|
4430
4430
|
const s = t.onError || Sd;
|
|
@@ -4437,14 +4437,14 @@ function df(e, t) {
|
|
|
4437
4437
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && x(e)) {
|
|
4438
4438
|
const n = te(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
4439
4439
|
process.env.NODE_ENV !== "production" && lf(e, n);
|
|
4440
|
-
const o = (t.onCacheKey || cf)(e),
|
|
4441
|
-
if (
|
|
4442
|
-
return
|
|
4443
|
-
const { ast:
|
|
4440
|
+
const o = (t.onCacheKey || cf)(e), a = Gt[o];
|
|
4441
|
+
if (a)
|
|
4442
|
+
return a;
|
|
4443
|
+
const { ast: r, detectError: l } = uf(e, {
|
|
4444
4444
|
...t,
|
|
4445
4445
|
location: process.env.NODE_ENV !== "production",
|
|
4446
4446
|
jit: !0
|
|
4447
|
-
}), i = yn(
|
|
4447
|
+
}), i = yn(r);
|
|
4448
4448
|
return l ? i : Gt[o] = i;
|
|
4449
4449
|
} else {
|
|
4450
4450
|
if (process.env.NODE_ENV !== "production" && !Me(e))
|
|
@@ -4524,22 +4524,22 @@ function gf(e, t, n) {
|
|
|
4524
4524
|
function qo(e, t, n) {
|
|
4525
4525
|
const s = x(n) ? n : Ct, o = e;
|
|
4526
4526
|
o.__localeChainCache || (o.__localeChainCache = /* @__PURE__ */ new Map());
|
|
4527
|
-
let
|
|
4528
|
-
if (!
|
|
4529
|
-
|
|
4530
|
-
let
|
|
4531
|
-
for (; me(
|
|
4532
|
-
|
|
4527
|
+
let a = o.__localeChainCache.get(s);
|
|
4528
|
+
if (!a) {
|
|
4529
|
+
a = [];
|
|
4530
|
+
let r = [n];
|
|
4531
|
+
for (; me(r); )
|
|
4532
|
+
r = xs(a, r, t);
|
|
4533
4533
|
const l = me(t) || !J(t) ? t : t.default ? t.default : null;
|
|
4534
|
-
|
|
4534
|
+
r = x(l) ? [l] : l, me(r) && xs(a, r, !1), o.__localeChainCache.set(s, a);
|
|
4535
4535
|
}
|
|
4536
|
-
return
|
|
4536
|
+
return a;
|
|
4537
4537
|
}
|
|
4538
4538
|
function xs(e, t, n) {
|
|
4539
4539
|
let s = !0;
|
|
4540
4540
|
for (let o = 0; o < t.length && te(s); o++) {
|
|
4541
|
-
const
|
|
4542
|
-
x(
|
|
4541
|
+
const a = t[o];
|
|
4542
|
+
x(a) && (s = bf(e, t[o], n));
|
|
4543
4543
|
}
|
|
4544
4544
|
return s;
|
|
4545
4545
|
}
|
|
@@ -4547,8 +4547,8 @@ function bf(e, t, n) {
|
|
|
4547
4547
|
let s;
|
|
4548
4548
|
const o = t.split("-");
|
|
4549
4549
|
do {
|
|
4550
|
-
const
|
|
4551
|
-
s = Ef(e,
|
|
4550
|
+
const a = o.join("-");
|
|
4551
|
+
s = Ef(e, a, n), o.splice(-1, 1);
|
|
4552
4552
|
} while (o.length && s === !0);
|
|
4553
4553
|
return s;
|
|
4554
4554
|
}
|
|
@@ -4773,18 +4773,18 @@ function Tf(e) {
|
|
|
4773
4773
|
}
|
|
4774
4774
|
function Sf(e) {
|
|
4775
4775
|
const t = [];
|
|
4776
|
-
let n = -1, s = 0, o = 0,
|
|
4776
|
+
let n = -1, s = 0, o = 0, a, r, l, i, f, v, g;
|
|
4777
4777
|
const E = [];
|
|
4778
4778
|
E[
|
|
4779
4779
|
0
|
|
4780
4780
|
/* Actions.APPEND */
|
|
4781
4781
|
] = () => {
|
|
4782
|
-
|
|
4782
|
+
r === void 0 ? r = l : r += l;
|
|
4783
4783
|
}, E[
|
|
4784
4784
|
1
|
|
4785
4785
|
/* Actions.PUSH */
|
|
4786
4786
|
] = () => {
|
|
4787
|
-
|
|
4787
|
+
r !== void 0 && (t.push(r), r = void 0);
|
|
4788
4788
|
}, E[
|
|
4789
4789
|
2
|
|
4790
4790
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
@@ -4803,7 +4803,7 @@ function Sf(e) {
|
|
|
4803
4803
|
/* Actions.APPEND */
|
|
4804
4804
|
]();
|
|
4805
4805
|
else {
|
|
4806
|
-
if (o = 0,
|
|
4806
|
+
if (o = 0, r === void 0 || (r = Tf(r), r === !1))
|
|
4807
4807
|
return !1;
|
|
4808
4808
|
E[
|
|
4809
4809
|
1
|
|
@@ -4820,8 +4820,8 @@ function Sf(e) {
|
|
|
4820
4820
|
](), !0;
|
|
4821
4821
|
}
|
|
4822
4822
|
for (; s !== null; )
|
|
4823
|
-
if (n++,
|
|
4824
|
-
if (i = Nf(
|
|
4823
|
+
if (n++, a = e[n], !(a === "\\" && I())) {
|
|
4824
|
+
if (i = Nf(a), g = et[s], f = g[i] || g.l || 8, f === 8 || (s = f[0], f[1] !== void 0 && (v = E[f[1]], v && (l = a, v() === !1))))
|
|
4825
4825
|
return;
|
|
4826
4826
|
if (s === 7)
|
|
4827
4827
|
return t;
|
|
@@ -4838,15 +4838,15 @@ function Pf(e, t) {
|
|
|
4838
4838
|
if (n || (n = Sf(t), n && Us.set(t, n)), !n)
|
|
4839
4839
|
return null;
|
|
4840
4840
|
const s = n.length;
|
|
4841
|
-
let o = e,
|
|
4842
|
-
for (;
|
|
4843
|
-
const
|
|
4844
|
-
if (Xo.includes(
|
|
4841
|
+
let o = e, a = 0;
|
|
4842
|
+
for (; a < s; ) {
|
|
4843
|
+
const r = n[a];
|
|
4844
|
+
if (Xo.includes(r) && Me(o))
|
|
4845
4845
|
return null;
|
|
4846
|
-
const l = o[
|
|
4846
|
+
const l = o[r];
|
|
4847
4847
|
if (l === void 0 || le(o))
|
|
4848
4848
|
return null;
|
|
4849
|
-
o = l,
|
|
4849
|
+
o = l, a++;
|
|
4850
4850
|
}
|
|
4851
4851
|
return o;
|
|
4852
4852
|
}
|
|
@@ -4894,22 +4894,22 @@ let Zo = null;
|
|
|
4894
4894
|
const Vf = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
4895
4895
|
Zo = e;
|
|
4896
4896
|
}, Rf = /* @__NO_SIDE_EFFECTS__ */ () => Zo;
|
|
4897
|
-
let
|
|
4897
|
+
let ea = null;
|
|
4898
4898
|
const js = (e) => {
|
|
4899
|
-
|
|
4900
|
-
}, Ff = () =>
|
|
4899
|
+
ea = e;
|
|
4900
|
+
}, Ff = () => ea;
|
|
4901
4901
|
let Ws = 0;
|
|
4902
4902
|
function xf(e = {}) {
|
|
4903
|
-
const t = le(e.onWarn) ? e.onWarn : Be, n = x(e.version) ? e.version : Af, s = x(e.locale) || le(e.locale) ? e.locale : Ct, o = le(s) ? Ct : s,
|
|
4904
|
-
process.env.NODE_ENV !== "production" && le(e.messageCompiler) &&
|
|
4903
|
+
const t = le(e.onWarn) ? e.onWarn : Be, n = x(e.version) ? e.version : Af, s = x(e.locale) || le(e.locale) ? e.locale : Ct, o = le(s) ? Ct : s, a = me(e.fallbackLocale) || J(e.fallbackLocale) || x(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : o, r = J(e.messages) ? e.messages : Ln(o), l = J(e.datetimeFormats) ? e.datetimeFormats : Ln(o), i = J(e.numberFormats) ? e.numberFormats : Ln(o), f = be(re(), e.modifiers, Cf()), v = e.pluralRules || re(), g = le(e.missing) ? e.missing : null, E = te(e.missingWarn) || ht(e.missingWarn) ? e.missingWarn : !0, I = te(e.fallbackWarn) || ht(e.fallbackWarn) ? e.fallbackWarn : !0, R = !!e.fallbackFormat, O = !!e.unresolving, $ = le(e.postTranslation) ? e.postTranslation : null, _ = J(e.processor) ? e.processor : null, p = te(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, L = !!e.escapeParameter, y = le(e.messageCompiler) ? e.messageCompiler : Jo;
|
|
4904
|
+
process.env.NODE_ENV !== "production" && le(e.messageCompiler) && as(lt(Te.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
4905
4905
|
const C = le(e.messageResolver) ? e.messageResolver : zo || If, V = le(e.localeFallbacker) ? e.localeFallbacker : Qo || gf, S = Z(e.fallbackContext) ? e.fallbackContext : void 0, K = e, U = Z(K.__datetimeFormatters) ? K.__datetimeFormatters : /* @__PURE__ */ new Map(), se = Z(K.__numberFormatters) ? K.__numberFormatters : /* @__PURE__ */ new Map(), ce = Z(K.__meta) ? K.__meta : {};
|
|
4906
4906
|
Ws++;
|
|
4907
4907
|
const z = {
|
|
4908
4908
|
version: n,
|
|
4909
4909
|
cid: Ws,
|
|
4910
4910
|
locale: s,
|
|
4911
|
-
fallbackLocale:
|
|
4912
|
-
messages:
|
|
4911
|
+
fallbackLocale: a,
|
|
4912
|
+
messages: r,
|
|
4913
4913
|
modifiers: f,
|
|
4914
4914
|
pluralRules: v,
|
|
4915
4915
|
missing: g,
|
|
@@ -4930,15 +4930,15 @@ function xf(e = {}) {
|
|
|
4930
4930
|
};
|
|
4931
4931
|
return z.datetimeFormats = l, z.numberFormats = i, z.__datetimeFormatters = U, z.__numberFormatters = se, process.env.NODE_ENV !== "production" && (z.__v_emitter = K.__v_emitter != null ? K.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && mf(z, n, ce), z;
|
|
4932
4932
|
}
|
|
4933
|
-
const Ln = (e) => ({ [e]:
|
|
4933
|
+
const Ln = (e) => ({ [e]: re() });
|
|
4934
4934
|
function on(e, t) {
|
|
4935
4935
|
return e instanceof RegExp ? e.test(t) : e;
|
|
4936
4936
|
}
|
|
4937
|
-
function
|
|
4937
|
+
function ta(e, t) {
|
|
4938
4938
|
return e instanceof RegExp ? e.test(t) : e;
|
|
4939
4939
|
}
|
|
4940
4940
|
function fs(e, t, n, s, o) {
|
|
4941
|
-
const { missing:
|
|
4941
|
+
const { missing: a, onWarn: r } = e;
|
|
4942
4942
|
if (process.env.NODE_ENV !== "production") {
|
|
4943
4943
|
const l = e.__v_emitter;
|
|
4944
4944
|
l && l.emit("missing", {
|
|
@@ -4948,17 +4948,17 @@ function fs(e, t, n, s, o) {
|
|
|
4948
4948
|
groupId: `${o}:${t}`
|
|
4949
4949
|
});
|
|
4950
4950
|
}
|
|
4951
|
-
if (
|
|
4952
|
-
const l =
|
|
4951
|
+
if (a !== null) {
|
|
4952
|
+
const l = a(e, n, t, o);
|
|
4953
4953
|
return x(l) ? l : t;
|
|
4954
4954
|
} else
|
|
4955
|
-
return process.env.NODE_ENV !== "production" &&
|
|
4955
|
+
return process.env.NODE_ENV !== "production" && ta(s, t) && r(lt(Te.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
4956
4956
|
}
|
|
4957
4957
|
function Pt(e, t, n) {
|
|
4958
4958
|
const s = e;
|
|
4959
4959
|
s.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
4960
4960
|
}
|
|
4961
|
-
function
|
|
4961
|
+
function na(e, t) {
|
|
4962
4962
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
4963
4963
|
}
|
|
4964
4964
|
function Uf(e, t) {
|
|
@@ -4966,19 +4966,19 @@ function Uf(e, t) {
|
|
|
4966
4966
|
if (n === -1)
|
|
4967
4967
|
return !1;
|
|
4968
4968
|
for (let s = n + 1; s < t.length; s++)
|
|
4969
|
-
if (
|
|
4969
|
+
if (na(e, t[s]))
|
|
4970
4970
|
return !0;
|
|
4971
4971
|
return !1;
|
|
4972
4972
|
}
|
|
4973
|
-
const Bs = typeof Intl < "u",
|
|
4973
|
+
const Bs = typeof Intl < "u", sa = {
|
|
4974
4974
|
dateTimeFormat: Bs && typeof Intl.DateTimeFormat < "u",
|
|
4975
4975
|
numberFormat: Bs && typeof Intl.NumberFormat < "u"
|
|
4976
4976
|
};
|
|
4977
4977
|
function Gs(e, ...t) {
|
|
4978
|
-
const { datetimeFormats: n, unresolving: s, fallbackLocale: o, onWarn:
|
|
4979
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
4980
|
-
return
|
|
4981
|
-
const [i, f, v, g] = wn(...t), E = te(v.missingWarn) ? v.missingWarn : e.missingWarn, I = te(v.fallbackWarn) ? v.fallbackWarn : e.fallbackWarn, R = !!v.part, O = ds(e, v), $ =
|
|
4978
|
+
const { datetimeFormats: n, unresolving: s, fallbackLocale: o, onWarn: a, localeFallbacker: r } = e, { __datetimeFormatters: l } = e;
|
|
4979
|
+
if (process.env.NODE_ENV !== "production" && !sa.dateTimeFormat)
|
|
4980
|
+
return a(lt(Te.CANNOT_FORMAT_DATE)), Jt;
|
|
4981
|
+
const [i, f, v, g] = wn(...t), E = te(v.missingWarn) ? v.missingWarn : e.missingWarn, I = te(v.fallbackWarn) ? v.fallbackWarn : e.fallbackWarn, R = !!v.part, O = ds(e, v), $ = r(
|
|
4982
4982
|
e,
|
|
4983
4983
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
4984
4984
|
o,
|
|
@@ -4989,7 +4989,7 @@ function Gs(e, ...t) {
|
|
|
4989
4989
|
let _ = {}, p, L = null, y = O, C = null;
|
|
4990
4990
|
const V = "datetime format";
|
|
4991
4991
|
for (let U = 0; U < $.length; U++) {
|
|
4992
|
-
if (p = C = $[U], process.env.NODE_ENV !== "production" && O !== p && on(I, i) &&
|
|
4992
|
+
if (p = C = $[U], process.env.NODE_ENV !== "production" && O !== p && on(I, i) && a(lt(Te.FALLBACK_TO_DATE_FORMAT, {
|
|
4993
4993
|
key: i,
|
|
4994
4994
|
target: p
|
|
4995
4995
|
})), process.env.NODE_ENV !== "production" && O !== p) {
|
|
@@ -5013,7 +5013,7 @@ function Gs(e, ...t) {
|
|
|
5013
5013
|
let K = l.get(S);
|
|
5014
5014
|
return K || (K = new Intl.DateTimeFormat(p, be({}, L, g)), l.set(S, K)), R ? K.formatToParts(f) : K.format(f);
|
|
5015
5015
|
}
|
|
5016
|
-
const
|
|
5016
|
+
const oa = [
|
|
5017
5017
|
"localeMatcher",
|
|
5018
5018
|
"weekday",
|
|
5019
5019
|
"era",
|
|
@@ -5036,8 +5036,8 @@ const or = [
|
|
|
5036
5036
|
"fractionalSecondDigits"
|
|
5037
5037
|
];
|
|
5038
5038
|
function wn(...e) {
|
|
5039
|
-
const [t, n, s, o] = e,
|
|
5040
|
-
let
|
|
5039
|
+
const [t, n, s, o] = e, a = re();
|
|
5040
|
+
let r = re(), l;
|
|
5041
5041
|
if (x(t)) {
|
|
5042
5042
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
5043
5043
|
if (!i)
|
|
@@ -5057,22 +5057,22 @@ function wn(...e) {
|
|
|
5057
5057
|
l = t;
|
|
5058
5058
|
else
|
|
5059
5059
|
throw Xe(ke.INVALID_ARGUMENT);
|
|
5060
|
-
return x(n) ?
|
|
5061
|
-
|
|
5062
|
-
}), x(s) ?
|
|
5060
|
+
return x(n) ? a.key = n : J(n) && Object.keys(n).forEach((i) => {
|
|
5061
|
+
oa.includes(i) ? r[i] = n[i] : a[i] = n[i];
|
|
5062
|
+
}), x(s) ? a.locale = s : J(s) && (r = s), J(o) && (r = o), [a.key || "", l, a, r];
|
|
5063
5063
|
}
|
|
5064
5064
|
function Ks(e, t, n) {
|
|
5065
5065
|
const s = e;
|
|
5066
5066
|
for (const o in n) {
|
|
5067
|
-
const
|
|
5068
|
-
s.__datetimeFormatters.has(
|
|
5067
|
+
const a = `${t}__${o}`;
|
|
5068
|
+
s.__datetimeFormatters.has(a) && s.__datetimeFormatters.delete(a);
|
|
5069
5069
|
}
|
|
5070
5070
|
}
|
|
5071
5071
|
function Ys(e, ...t) {
|
|
5072
|
-
const { numberFormats: n, unresolving: s, fallbackLocale: o, onWarn:
|
|
5073
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
5074
|
-
return
|
|
5075
|
-
const [i, f, v, g] = Dn(...t), E = te(v.missingWarn) ? v.missingWarn : e.missingWarn, I = te(v.fallbackWarn) ? v.fallbackWarn : e.fallbackWarn, R = !!v.part, O = ds(e, v), $ =
|
|
5072
|
+
const { numberFormats: n, unresolving: s, fallbackLocale: o, onWarn: a, localeFallbacker: r } = e, { __numberFormatters: l } = e;
|
|
5073
|
+
if (process.env.NODE_ENV !== "production" && !sa.numberFormat)
|
|
5074
|
+
return a(lt(Te.CANNOT_FORMAT_NUMBER)), Jt;
|
|
5075
|
+
const [i, f, v, g] = Dn(...t), E = te(v.missingWarn) ? v.missingWarn : e.missingWarn, I = te(v.fallbackWarn) ? v.fallbackWarn : e.fallbackWarn, R = !!v.part, O = ds(e, v), $ = r(
|
|
5076
5076
|
e,
|
|
5077
5077
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
5078
5078
|
o,
|
|
@@ -5083,7 +5083,7 @@ function Ys(e, ...t) {
|
|
|
5083
5083
|
let _ = {}, p, L = null, y = O, C = null;
|
|
5084
5084
|
const V = "number format";
|
|
5085
5085
|
for (let U = 0; U < $.length; U++) {
|
|
5086
|
-
if (p = C = $[U], process.env.NODE_ENV !== "production" && O !== p && on(I, i) &&
|
|
5086
|
+
if (p = C = $[U], process.env.NODE_ENV !== "production" && O !== p && on(I, i) && a(lt(Te.FALLBACK_TO_NUMBER_FORMAT, {
|
|
5087
5087
|
key: i,
|
|
5088
5088
|
target: p
|
|
5089
5089
|
})), process.env.NODE_ENV !== "production" && O !== p) {
|
|
@@ -5107,7 +5107,7 @@ function Ys(e, ...t) {
|
|
|
5107
5107
|
let K = l.get(S);
|
|
5108
5108
|
return K || (K = new Intl.NumberFormat(p, be({}, L, g)), l.set(S, K)), R ? K.formatToParts(f) : K.format(f);
|
|
5109
5109
|
}
|
|
5110
|
-
const
|
|
5110
|
+
const aa = [
|
|
5111
5111
|
"localeMatcher",
|
|
5112
5112
|
"style",
|
|
5113
5113
|
"currency",
|
|
@@ -5130,20 +5130,20 @@ const rr = [
|
|
|
5130
5130
|
"trailingZeroDisplay"
|
|
5131
5131
|
];
|
|
5132
5132
|
function Dn(...e) {
|
|
5133
|
-
const [t, n, s, o] = e,
|
|
5134
|
-
let
|
|
5133
|
+
const [t, n, s, o] = e, a = re();
|
|
5134
|
+
let r = re();
|
|
5135
5135
|
if (!he(t))
|
|
5136
5136
|
throw Xe(ke.INVALID_ARGUMENT);
|
|
5137
5137
|
const l = t;
|
|
5138
|
-
return x(n) ?
|
|
5139
|
-
|
|
5140
|
-
}), x(s) ?
|
|
5138
|
+
return x(n) ? a.key = n : J(n) && Object.keys(n).forEach((i) => {
|
|
5139
|
+
aa.includes(i) ? r[i] = n[i] : a[i] = n[i];
|
|
5140
|
+
}), x(s) ? a.locale = s : J(s) && (r = s), J(o) && (r = o), [a.key || "", l, a, r];
|
|
5141
5141
|
}
|
|
5142
5142
|
function Xs(e, t, n) {
|
|
5143
5143
|
const s = e;
|
|
5144
5144
|
for (const o in n) {
|
|
5145
|
-
const
|
|
5146
|
-
s.__numberFormatters.has(
|
|
5145
|
+
const a = `${t}__${o}`;
|
|
5146
|
+
s.__numberFormatters.has(a) && s.__numberFormatters.delete(a);
|
|
5147
5147
|
}
|
|
5148
5148
|
}
|
|
5149
5149
|
const Hf = (e) => e, jf = (e) => "", Wf = "text", Bf = (e) => e.length === 0 ? "" : ls(e), Gf = yd;
|
|
@@ -5158,7 +5158,7 @@ function Yf(e, t) {
|
|
|
5158
5158
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
5159
5159
|
}
|
|
5160
5160
|
function Xf(e = {}) {
|
|
5161
|
-
const t = e.locale, n = Kf(e), s = Z(e.pluralRules) && x(t) && le(e.pluralRules[t]) ? e.pluralRules[t] : qs, o = Z(e.pluralRules) && x(t) && le(e.pluralRules[t]) ? qs : void 0,
|
|
5161
|
+
const t = e.locale, n = Kf(e), s = Z(e.pluralRules) && x(t) && le(e.pluralRules[t]) ? e.pluralRules[t] : qs, o = Z(e.pluralRules) && x(t) && le(e.pluralRules[t]) ? qs : void 0, a = (_) => _[s(n, _.length, o)], r = e.list || [], l = (_) => r[_], i = e.named || re();
|
|
5162
5162
|
he(e.pluralIndex) && Yf(n, i);
|
|
5163
5163
|
const f = (_) => i[_];
|
|
5164
5164
|
function v(_, p) {
|
|
@@ -5168,7 +5168,7 @@ function Xf(e = {}) {
|
|
|
5168
5168
|
const g = (_) => e.modifiers ? e.modifiers[_] : Hf, E = J(e.processor) && le(e.processor.normalize) ? e.processor.normalize : Bf, I = J(e.processor) && le(e.processor.interpolate) ? e.processor.interpolate : Gf, R = J(e.processor) && x(e.processor.type) ? e.processor.type : Wf, $ = {
|
|
5169
5169
|
list: l,
|
|
5170
5170
|
named: f,
|
|
5171
|
-
plural:
|
|
5171
|
+
plural: a,
|
|
5172
5172
|
linked: (_, ...p) => {
|
|
5173
5173
|
const [L, y] = p;
|
|
5174
5174
|
let C = "text", V = "";
|
|
@@ -5183,19 +5183,19 @@ function Xf(e = {}) {
|
|
|
5183
5183
|
type: R,
|
|
5184
5184
|
interpolate: I,
|
|
5185
5185
|
normalize: E,
|
|
5186
|
-
values: be(
|
|
5186
|
+
values: be(re(), r, i)
|
|
5187
5187
|
};
|
|
5188
5188
|
return $;
|
|
5189
5189
|
}
|
|
5190
5190
|
const Js = () => "", we = (e) => le(e);
|
|
5191
5191
|
function zs(e, ...t) {
|
|
5192
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: o, messageCompiler:
|
|
5192
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: o, messageCompiler: a, fallbackLocale: r, messages: l } = e, [i, f] = Mn(...t), v = te(f.missingWarn) ? f.missingWarn : e.missingWarn, g = te(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, E = te(f.escapeParameter) ? f.escapeParameter : e.escapeParameter, I = !!f.resolvedMessage, R = x(f.default) || te(f.default) ? te(f.default) ? a ? i : () => i : f.default : n ? a ? i : () => i : null, O = n || R != null && (x(R) || le(R)), $ = ds(e, f);
|
|
5193
5193
|
E && qf(f);
|
|
5194
5194
|
let [_, p, L] = I ? [
|
|
5195
5195
|
i,
|
|
5196
5196
|
$,
|
|
5197
|
-
l[$] ||
|
|
5198
|
-
] :
|
|
5197
|
+
l[$] || re()
|
|
5198
|
+
] : ra(e, i, $, r, g, v), y = _, C = i;
|
|
5199
5199
|
if (!I && !(x(y) || Me(y) || we(y)) && O && (y = R, C = y), !I && (!(x(y) || Me(y) || we(y)) || !x(p)))
|
|
5200
5200
|
return o ? sn : i;
|
|
5201
5201
|
if (process.env.NODE_ENV !== "production" && x(y) && e.messageCompiler == null)
|
|
@@ -5203,7 +5203,7 @@ function zs(e, ...t) {
|
|
|
5203
5203
|
let V = !1;
|
|
5204
5204
|
const S = () => {
|
|
5205
5205
|
V = !0;
|
|
5206
|
-
}, K = we(y) ? y :
|
|
5206
|
+
}, K = we(y) ? y : la(e, i, p, y, C, S);
|
|
5207
5207
|
if (V)
|
|
5208
5208
|
return y;
|
|
5209
5209
|
const U = Zf(e, p, L, f), se = Xf(U), ce = Jf(e, K, se);
|
|
@@ -5225,12 +5225,12 @@ function qf(e) {
|
|
|
5225
5225
|
x(e.named[t]) && (e.named[t] = As(e.named[t]));
|
|
5226
5226
|
});
|
|
5227
5227
|
}
|
|
5228
|
-
function
|
|
5229
|
-
const { messages:
|
|
5230
|
-
let g =
|
|
5228
|
+
function ra(e, t, n, s, o, a) {
|
|
5229
|
+
const { messages: r, onWarn: l, messageResolver: i, localeFallbacker: f } = e, v = f(e, s, n);
|
|
5230
|
+
let g = re(), E, I = null, R = n, O = null;
|
|
5231
5231
|
const $ = "translate";
|
|
5232
5232
|
for (let _ = 0; _ < v.length; _++) {
|
|
5233
|
-
if (E = O = v[_], process.env.NODE_ENV !== "production" && n !== E && !
|
|
5233
|
+
if (E = O = v[_], process.env.NODE_ENV !== "production" && n !== E && !na(n, E) && on(o, t) && l(lt(Te.FALLBACK_TO_TRANSLATE, {
|
|
5234
5234
|
key: t,
|
|
5235
5235
|
target: E
|
|
5236
5236
|
})), process.env.NODE_ENV !== "production" && n !== E) {
|
|
@@ -5243,7 +5243,7 @@ function ar(e, t, n, s, o, r) {
|
|
|
5243
5243
|
groupId: `${$}:${t}`
|
|
5244
5244
|
});
|
|
5245
5245
|
}
|
|
5246
|
-
g =
|
|
5246
|
+
g = r[E] || re();
|
|
5247
5247
|
let p = null, L, y;
|
|
5248
5248
|
if (process.env.NODE_ENV !== "production" && xe && (p = window.performance.now(), L = "intlify-message-resolve-start", y = "intlify-message-resolve-end", Oe && Oe(L)), (I = i(g, t)) === null && (I = g[t]), process.env.NODE_ENV !== "production" && xe) {
|
|
5249
5249
|
const C = window.performance.now(), V = e.__v_emitter;
|
|
@@ -5253,7 +5253,7 @@ function ar(e, t, n, s, o, r) {
|
|
|
5253
5253
|
message: I,
|
|
5254
5254
|
time: C - p,
|
|
5255
5255
|
groupId: `${$}:${t}`
|
|
5256
|
-
}), L && y && Oe &&
|
|
5256
|
+
}), L && y && Oe && rt && (Oe(y), rt("intlify message resolve", L, y));
|
|
5257
5257
|
}
|
|
5258
5258
|
if (x(I) || Me(I) || we(I))
|
|
5259
5259
|
break;
|
|
@@ -5263,7 +5263,7 @@ function ar(e, t, n, s, o, r) {
|
|
|
5263
5263
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
5264
5264
|
t,
|
|
5265
5265
|
E,
|
|
5266
|
-
|
|
5266
|
+
a,
|
|
5267
5267
|
$
|
|
5268
5268
|
);
|
|
5269
5269
|
C !== t && (I = C);
|
|
@@ -5272,19 +5272,19 @@ function ar(e, t, n, s, o, r) {
|
|
|
5272
5272
|
}
|
|
5273
5273
|
return [I, E, g];
|
|
5274
5274
|
}
|
|
5275
|
-
function
|
|
5276
|
-
const { messageCompiler:
|
|
5275
|
+
function la(e, t, n, s, o, a) {
|
|
5276
|
+
const { messageCompiler: r, warnHtmlMessage: l } = e;
|
|
5277
5277
|
if (we(s)) {
|
|
5278
5278
|
const E = s;
|
|
5279
5279
|
return E.locale = E.locale || n, E.key = E.key || t, E;
|
|
5280
5280
|
}
|
|
5281
|
-
if (
|
|
5281
|
+
if (r == null) {
|
|
5282
5282
|
const E = (() => s);
|
|
5283
5283
|
return E.locale = n, E.key = t, E;
|
|
5284
5284
|
}
|
|
5285
5285
|
let i = null, f, v;
|
|
5286
5286
|
process.env.NODE_ENV !== "production" && xe && (i = window.performance.now(), f = "intlify-message-compilation-start", v = "intlify-message-compilation-end", Oe && Oe(f));
|
|
5287
|
-
const g =
|
|
5287
|
+
const g = r(s, zf(e, n, o, s, l, a));
|
|
5288
5288
|
if (process.env.NODE_ENV !== "production" && xe) {
|
|
5289
5289
|
const E = window.performance.now(), I = e.__v_emitter;
|
|
5290
5290
|
I && i && I.emit("message-compilation", {
|
|
@@ -5292,52 +5292,52 @@ function lr(e, t, n, s, o, r) {
|
|
|
5292
5292
|
message: s,
|
|
5293
5293
|
time: E - i,
|
|
5294
5294
|
groupId: `translate:${t}`
|
|
5295
|
-
}), f && v && Oe &&
|
|
5295
|
+
}), f && v && Oe && rt && (Oe(v), rt("intlify message compilation", f, v));
|
|
5296
5296
|
}
|
|
5297
5297
|
return g.locale = n, g.key = t, g.source = s, g;
|
|
5298
5298
|
}
|
|
5299
5299
|
function Jf(e, t, n) {
|
|
5300
|
-
let s = null, o,
|
|
5301
|
-
process.env.NODE_ENV !== "production" && xe && (s = window.performance.now(), o = "intlify-message-evaluation-start",
|
|
5302
|
-
const
|
|
5300
|
+
let s = null, o, a;
|
|
5301
|
+
process.env.NODE_ENV !== "production" && xe && (s = window.performance.now(), o = "intlify-message-evaluation-start", a = "intlify-message-evaluation-end", Oe && Oe(o));
|
|
5302
|
+
const r = t(n);
|
|
5303
5303
|
if (process.env.NODE_ENV !== "production" && xe) {
|
|
5304
5304
|
const l = window.performance.now(), i = e.__v_emitter;
|
|
5305
5305
|
i && s && i.emit("message-evaluation", {
|
|
5306
5306
|
type: "message-evaluation",
|
|
5307
|
-
value:
|
|
5307
|
+
value: r,
|
|
5308
5308
|
time: l - s,
|
|
5309
5309
|
groupId: `translate:${t.key}`
|
|
5310
|
-
}), o &&
|
|
5310
|
+
}), o && a && Oe && rt && (Oe(a), rt("intlify message evaluation", o, a));
|
|
5311
5311
|
}
|
|
5312
|
-
return
|
|
5312
|
+
return r;
|
|
5313
5313
|
}
|
|
5314
5314
|
function Mn(...e) {
|
|
5315
|
-
const [t, n, s] = e, o =
|
|
5315
|
+
const [t, n, s] = e, o = re();
|
|
5316
5316
|
if (!x(t) && !he(t) && !we(t) && !Me(t))
|
|
5317
5317
|
throw Xe(ke.INVALID_ARGUMENT);
|
|
5318
|
-
const
|
|
5319
|
-
return he(n) ? o.plural = n : x(n) ? o.default = n : J(n) && !nn(n) ? o.named = n : me(n) && (o.list = n), he(s) ? o.plural = s : x(s) ? o.default = s : J(s) && be(o, s), [
|
|
5318
|
+
const a = he(t) ? String(t) : (we(t), t);
|
|
5319
|
+
return he(n) ? o.plural = n : x(n) ? o.default = n : J(n) && !nn(n) ? o.named = n : me(n) && (o.list = n), he(s) ? o.plural = s : x(s) ? o.default = s : J(s) && be(o, s), [a, o];
|
|
5320
5320
|
}
|
|
5321
|
-
function zf(e, t, n, s, o,
|
|
5321
|
+
function zf(e, t, n, s, o, a) {
|
|
5322
5322
|
return {
|
|
5323
5323
|
locale: t,
|
|
5324
5324
|
key: n,
|
|
5325
5325
|
warnHtmlMessage: o,
|
|
5326
|
-
onError: (
|
|
5327
|
-
if (
|
|
5328
|
-
const l = Qf(s), i = `Message compilation error: ${
|
|
5326
|
+
onError: (r) => {
|
|
5327
|
+
if (a && a(r), process.env.NODE_ENV !== "production") {
|
|
5328
|
+
const l = Qf(s), i = `Message compilation error: ${r.message}`, f = r.location && l && kd(l, r.location.start.offset, r.location.end.offset), v = e.__v_emitter;
|
|
5329
5329
|
v && l && v.emit("compile-error", {
|
|
5330
5330
|
message: l,
|
|
5331
|
-
error:
|
|
5332
|
-
start:
|
|
5333
|
-
end:
|
|
5331
|
+
error: r.message,
|
|
5332
|
+
start: r.location && r.location.start.offset,
|
|
5333
|
+
end: r.location && r.location.end.offset,
|
|
5334
5334
|
groupId: `translate:${n}`
|
|
5335
5335
|
}), console.error(f ? `${i}
|
|
5336
5336
|
${f}` : i);
|
|
5337
5337
|
} else
|
|
5338
|
-
throw
|
|
5338
|
+
throw r;
|
|
5339
5339
|
},
|
|
5340
|
-
onCacheKey: (
|
|
5340
|
+
onCacheKey: (r) => _d(t, n, r)
|
|
5341
5341
|
};
|
|
5342
5342
|
}
|
|
5343
5343
|
function Qf(e) {
|
|
@@ -5347,14 +5347,14 @@ function Qf(e) {
|
|
|
5347
5347
|
return e.loc.source;
|
|
5348
5348
|
}
|
|
5349
5349
|
function Zf(e, t, n, s) {
|
|
5350
|
-
const { modifiers: o, pluralRules:
|
|
5350
|
+
const { modifiers: o, pluralRules: a, messageResolver: r, fallbackLocale: l, fallbackWarn: i, missingWarn: f, fallbackContext: v } = e, E = {
|
|
5351
5351
|
locale: t,
|
|
5352
5352
|
modifiers: o,
|
|
5353
|
-
pluralRules:
|
|
5353
|
+
pluralRules: a,
|
|
5354
5354
|
messages: (I, R) => {
|
|
5355
|
-
let O =
|
|
5355
|
+
let O = r(n, I);
|
|
5356
5356
|
if (O == null && (v || R)) {
|
|
5357
|
-
const [, , $] =
|
|
5357
|
+
const [, , $] = ra(
|
|
5358
5358
|
v || e,
|
|
5359
5359
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
5360
5360
|
I,
|
|
@@ -5363,11 +5363,11 @@ function Zf(e, t, n, s) {
|
|
|
5363
5363
|
i,
|
|
5364
5364
|
f
|
|
5365
5365
|
);
|
|
5366
|
-
O =
|
|
5366
|
+
O = r($, I);
|
|
5367
5367
|
}
|
|
5368
5368
|
if (x(O) || Me(O)) {
|
|
5369
5369
|
let $ = !1;
|
|
5370
|
-
const p =
|
|
5370
|
+
const p = la(e, I, t, O, I, () => {
|
|
5371
5371
|
$ = !0;
|
|
5372
5372
|
});
|
|
5373
5373
|
return $ ? Js : p;
|
|
@@ -5378,9 +5378,9 @@ function Zf(e, t, n, s) {
|
|
|
5378
5378
|
}
|
|
5379
5379
|
Qd();
|
|
5380
5380
|
function em() {
|
|
5381
|
-
return
|
|
5381
|
+
return ia().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
5382
5382
|
}
|
|
5383
|
-
function
|
|
5383
|
+
function ia() {
|
|
5384
5384
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
5385
5385
|
}
|
|
5386
5386
|
const tm = typeof Proxy == "function", nm = "devtools-plugin:setup", sm = "plugin:settings:set";
|
|
@@ -5389,50 +5389,50 @@ function om() {
|
|
|
5389
5389
|
var e;
|
|
5390
5390
|
return ft !== void 0 || (typeof window < "u" && window.performance ? (ft = !0, Vn = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (ft = !0, Vn = globalThis.perf_hooks.performance) : ft = !1), ft;
|
|
5391
5391
|
}
|
|
5392
|
-
function
|
|
5392
|
+
function am() {
|
|
5393
5393
|
return om() ? Vn.now() : Date.now();
|
|
5394
5394
|
}
|
|
5395
|
-
class
|
|
5395
|
+
class rm {
|
|
5396
5396
|
constructor(t, n) {
|
|
5397
5397
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
5398
5398
|
const s = {};
|
|
5399
5399
|
if (t.settings)
|
|
5400
|
-
for (const
|
|
5401
|
-
const l = t.settings[
|
|
5402
|
-
s[
|
|
5400
|
+
for (const r in t.settings) {
|
|
5401
|
+
const l = t.settings[r];
|
|
5402
|
+
s[r] = l.defaultValue;
|
|
5403
5403
|
}
|
|
5404
5404
|
const o = `__vue-devtools-plugin-settings__${t.id}`;
|
|
5405
|
-
let
|
|
5405
|
+
let a = Object.assign({}, s);
|
|
5406
5406
|
try {
|
|
5407
|
-
const
|
|
5408
|
-
Object.assign(
|
|
5407
|
+
const r = localStorage.getItem(o), l = JSON.parse(r);
|
|
5408
|
+
Object.assign(a, l);
|
|
5409
5409
|
} catch {
|
|
5410
5410
|
}
|
|
5411
5411
|
this.fallbacks = {
|
|
5412
5412
|
getSettings() {
|
|
5413
|
-
return
|
|
5413
|
+
return a;
|
|
5414
5414
|
},
|
|
5415
|
-
setSettings(
|
|
5415
|
+
setSettings(r) {
|
|
5416
5416
|
try {
|
|
5417
|
-
localStorage.setItem(o, JSON.stringify(
|
|
5417
|
+
localStorage.setItem(o, JSON.stringify(r));
|
|
5418
5418
|
} catch {
|
|
5419
5419
|
}
|
|
5420
|
-
|
|
5420
|
+
a = r;
|
|
5421
5421
|
},
|
|
5422
5422
|
now() {
|
|
5423
|
-
return
|
|
5423
|
+
return am();
|
|
5424
5424
|
}
|
|
5425
|
-
}, n && n.on(sm, (
|
|
5426
|
-
|
|
5425
|
+
}, n && n.on(sm, (r, l) => {
|
|
5426
|
+
r === this.plugin.id && this.fallbacks.setSettings(l);
|
|
5427
5427
|
}), this.proxiedOn = new Proxy({}, {
|
|
5428
|
-
get: (
|
|
5428
|
+
get: (r, l) => this.target ? this.target.on[l] : (...i) => {
|
|
5429
5429
|
this.onQueue.push({
|
|
5430
5430
|
method: l,
|
|
5431
5431
|
args: i
|
|
5432
5432
|
});
|
|
5433
5433
|
}
|
|
5434
5434
|
}), this.proxiedTarget = new Proxy({}, {
|
|
5435
|
-
get: (
|
|
5435
|
+
get: (r, l) => this.target ? this.target[l] : l === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(l) ? (...i) => (this.targetQueue.push({
|
|
5436
5436
|
method: l,
|
|
5437
5437
|
args: i,
|
|
5438
5438
|
resolve: () => {
|
|
@@ -5455,16 +5455,16 @@ class am {
|
|
|
5455
5455
|
}
|
|
5456
5456
|
}
|
|
5457
5457
|
function lm(e, t) {
|
|
5458
|
-
const n = e, s =
|
|
5459
|
-
if (o && (s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !
|
|
5458
|
+
const n = e, s = ia(), o = em(), a = tm && n.enableEarlyProxy;
|
|
5459
|
+
if (o && (s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
5460
5460
|
o.emit(nm, e, t);
|
|
5461
5461
|
else {
|
|
5462
|
-
const
|
|
5462
|
+
const r = a ? new rm(n, o) : null;
|
|
5463
5463
|
(s.__VUE_DEVTOOLS_PLUGINS__ = s.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
5464
5464
|
pluginDescriptor: n,
|
|
5465
5465
|
setupFn: t,
|
|
5466
|
-
proxy:
|
|
5467
|
-
}),
|
|
5466
|
+
proxy: r
|
|
5467
|
+
}), r && t(r.proxiedTarget);
|
|
5468
5468
|
}
|
|
5469
5469
|
}
|
|
5470
5470
|
const im = "11.2.8";
|
|
@@ -5508,7 +5508,7 @@ const um = {
|
|
|
5508
5508
|
[ie.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
5509
5509
|
[ie.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
5510
5510
|
[ie.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
5511
|
-
}, Rn = /* @__PURE__ */ Ke("__translateVNode"), Fn = /* @__PURE__ */ Ke("__datetimeParts"), xn = /* @__PURE__ */ Ke("__numberParts"), it = /* @__PURE__ */ Ke("__enableEmitter"), wt = /* @__PURE__ */ Ke("__disableEmitter"),
|
|
5511
|
+
}, Rn = /* @__PURE__ */ Ke("__translateVNode"), Fn = /* @__PURE__ */ Ke("__datetimeParts"), xn = /* @__PURE__ */ Ke("__numberParts"), it = /* @__PURE__ */ Ke("__enableEmitter"), wt = /* @__PURE__ */ Ke("__disableEmitter"), ca = Ke("__setPluralRules"), ua = /* @__PURE__ */ Ke("__injectWithOption"), Un = /* @__PURE__ */ Ke("__dispose"), De = {
|
|
5512
5512
|
FALLBACK_TO_ROOT: Of,
|
|
5513
5513
|
// 8
|
|
5514
5514
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
@@ -5550,68 +5550,68 @@ function Dt(e) {
|
|
|
5550
5550
|
Z(e[t]) && Dt(e[t]);
|
|
5551
5551
|
else {
|
|
5552
5552
|
const n = t.split("."), s = n.length - 1;
|
|
5553
|
-
let o = e,
|
|
5554
|
-
for (let
|
|
5555
|
-
if (n[
|
|
5556
|
-
throw new Error(`unsafe key: ${n[
|
|
5557
|
-
if (n[
|
|
5553
|
+
let o = e, a = !1;
|
|
5554
|
+
for (let r = 0; r < s; r++) {
|
|
5555
|
+
if (n[r] === "__proto__")
|
|
5556
|
+
throw new Error(`unsafe key: ${n[r]}`);
|
|
5557
|
+
if (n[r] in o || (o[n[r]] = re()), !Z(o[n[r]])) {
|
|
5558
5558
|
process.env.NODE_ENV !== "production" && Be(bt(De.IGNORE_OBJ_FLATTEN, {
|
|
5559
|
-
key: n[
|
|
5560
|
-
})),
|
|
5559
|
+
key: n[r]
|
|
5560
|
+
})), a = !0;
|
|
5561
5561
|
break;
|
|
5562
5562
|
}
|
|
5563
|
-
o = o[n[
|
|
5563
|
+
o = o[n[r]];
|
|
5564
5564
|
}
|
|
5565
|
-
if (
|
|
5566
|
-
const
|
|
5567
|
-
Z(
|
|
5565
|
+
if (a || (Me(o) ? Xo.includes(n[s]) || delete e[t] : (o[n[s]] = e[t], delete e[t])), !Me(o)) {
|
|
5566
|
+
const r = o[n[s]];
|
|
5567
|
+
Z(r) && Dt(r);
|
|
5568
5568
|
}
|
|
5569
5569
|
}
|
|
5570
5570
|
return e;
|
|
5571
5571
|
}
|
|
5572
5572
|
function ms(e, t) {
|
|
5573
|
-
const { messages: n, __i18n: s, messageResolver: o, flatJson:
|
|
5573
|
+
const { messages: n, __i18n: s, messageResolver: o, flatJson: a } = t, r = J(n) ? n : me(s) ? re() : { [e]: re() };
|
|
5574
5574
|
if (me(s) && s.forEach((l) => {
|
|
5575
5575
|
if ("locale" in l && "resource" in l) {
|
|
5576
5576
|
const { locale: i, resource: f } = l;
|
|
5577
|
-
i ? (
|
|
5577
|
+
i ? (r[i] = r[i] || re(), Xt(f, r[i])) : Xt(f, r);
|
|
5578
5578
|
} else
|
|
5579
|
-
x(l) && Xt(JSON.parse(l),
|
|
5580
|
-
}), o == null &&
|
|
5581
|
-
for (const l in
|
|
5582
|
-
Fe(
|
|
5583
|
-
return
|
|
5579
|
+
x(l) && Xt(JSON.parse(l), r);
|
|
5580
|
+
}), o == null && a)
|
|
5581
|
+
for (const l in r)
|
|
5582
|
+
Fe(r, l) && Dt(r[l]);
|
|
5583
|
+
return r;
|
|
5584
5584
|
}
|
|
5585
|
-
function
|
|
5585
|
+
function da(e) {
|
|
5586
5586
|
return e.type;
|
|
5587
5587
|
}
|
|
5588
|
-
function
|
|
5589
|
-
let s = Z(t.messages) ? t.messages :
|
|
5588
|
+
function fa(e, t, n) {
|
|
5589
|
+
let s = Z(t.messages) ? t.messages : re();
|
|
5590
5590
|
"__i18nGlobal" in n && (s = ms(e.locale.value, {
|
|
5591
5591
|
messages: s,
|
|
5592
5592
|
__i18n: n.__i18nGlobal
|
|
5593
5593
|
}));
|
|
5594
5594
|
const o = Object.keys(s);
|
|
5595
|
-
o.length && o.forEach((
|
|
5596
|
-
e.mergeLocaleMessage(
|
|
5595
|
+
o.length && o.forEach((a) => {
|
|
5596
|
+
e.mergeLocaleMessage(a, s[a]);
|
|
5597
5597
|
});
|
|
5598
5598
|
{
|
|
5599
5599
|
if (Z(t.datetimeFormats)) {
|
|
5600
|
-
const
|
|
5601
|
-
|
|
5602
|
-
e.mergeDateTimeFormat(
|
|
5600
|
+
const a = Object.keys(t.datetimeFormats);
|
|
5601
|
+
a.length && a.forEach((r) => {
|
|
5602
|
+
e.mergeDateTimeFormat(r, t.datetimeFormats[r]);
|
|
5603
5603
|
});
|
|
5604
5604
|
}
|
|
5605
5605
|
if (Z(t.numberFormats)) {
|
|
5606
|
-
const
|
|
5607
|
-
|
|
5608
|
-
e.mergeNumberFormat(
|
|
5606
|
+
const a = Object.keys(t.numberFormats);
|
|
5607
|
+
a.length && a.forEach((r) => {
|
|
5608
|
+
e.mergeNumberFormat(r, t.numberFormats[r]);
|
|
5609
5609
|
});
|
|
5610
5610
|
}
|
|
5611
5611
|
}
|
|
5612
5612
|
}
|
|
5613
5613
|
function Qs(e) {
|
|
5614
|
-
return H(
|
|
5614
|
+
return H(Da, null, e, 0);
|
|
5615
5615
|
}
|
|
5616
5616
|
function vt() {
|
|
5617
5617
|
const e = "currentInstance";
|
|
@@ -5625,18 +5625,18 @@ function no(e) {
|
|
|
5625
5625
|
const mm = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
5626
5626
|
const e = vt();
|
|
5627
5627
|
let t = null;
|
|
5628
|
-
return e && (t =
|
|
5628
|
+
return e && (t = da(e)[Zs]) ? { [Zs]: t } : null;
|
|
5629
5629
|
};
|
|
5630
5630
|
function _s(e = {}) {
|
|
5631
|
-
const { __root: t, __injectWithOption: n } = e, s = t === void 0, o = e.flatJson,
|
|
5632
|
-
let
|
|
5633
|
-
const l =
|
|
5631
|
+
const { __root: t, __injectWithOption: n } = e, s = t === void 0, o = e.flatJson, a = xe ? ae : ge;
|
|
5632
|
+
let r = te(e.inheritLocale) ? e.inheritLocale : !0;
|
|
5633
|
+
const l = a(
|
|
5634
5634
|
// prettier-ignore
|
|
5635
|
-
t &&
|
|
5636
|
-
), i =
|
|
5635
|
+
t && r ? t.locale.value : x(e.locale) ? e.locale : Ct
|
|
5636
|
+
), i = a(
|
|
5637
5637
|
// prettier-ignore
|
|
5638
|
-
t &&
|
|
5639
|
-
), f =
|
|
5638
|
+
t && r ? t.fallbackLocale.value : x(e.fallbackLocale) || me(e.fallbackLocale) || J(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
|
|
5639
|
+
), f = a(ms(l.value, e)), v = a(J(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), g = a(J(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
|
|
5640
5640
|
let E = t ? t.missingWarn : te(e.missingWarn) || ht(e.missingWarn) ? e.missingWarn : !0, I = t ? t.fallbackWarn : te(e.fallbackWarn) || ht(e.fallbackWarn) ? e.fallbackWarn : !0, R = t ? t.fallbackRoot : te(e.fallbackRoot) ? e.fallbackRoot : !0, O = !!e.fallbackFormat, $ = le(e.missing) ? e.missing : null, _ = le(e.missing) ? no(e.missing) : null, p = le(e.postTranslation) ? e.postTranslation : null, L = t ? t.warnHtmlMessage : te(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter;
|
|
5641
5641
|
const C = t ? t.modifiers : J(e.modifiers) ? e.modifiers : {};
|
|
5642
5642
|
let V = e.pluralRules || t && t.pluralRules, S;
|
|
@@ -5710,8 +5710,8 @@ function _s(e = {}) {
|
|
|
5710
5710
|
}
|
|
5711
5711
|
if (oe !== "translate exists" && // for not `te` (e.g `t`)
|
|
5712
5712
|
he(dt) && dt === sn || oe === "translate exists" && !dt) {
|
|
5713
|
-
const [st,
|
|
5714
|
-
if (process.env.NODE_ENV !== "production" && t && x(st) && Re(oe,
|
|
5713
|
+
const [st, ya] = A();
|
|
5714
|
+
if (process.env.NODE_ENV !== "production" && t && x(st) && Re(oe, ya) && (R && (on(I, st) || ta(E, st)) && Be(bt(De.FALLBACK_TO_ROOT, {
|
|
5715
5715
|
key: st,
|
|
5716
5716
|
type: oe
|
|
5717
5717
|
})), process.env.NODE_ENV !== "production")) {
|
|
@@ -5733,13 +5733,13 @@ function _s(e = {}) {
|
|
|
5733
5733
|
function ze(...N) {
|
|
5734
5734
|
return Ce((A) => Reflect.apply(zs, null, [A, ...N]), () => Mn(...N), "translate", (A) => Reflect.apply(A.t, A, [...N]), (A) => A, (A) => x(A));
|
|
5735
5735
|
}
|
|
5736
|
-
function
|
|
5736
|
+
function an(...N) {
|
|
5737
5737
|
const [A, oe, ve] = N;
|
|
5738
5738
|
if (ve && !Z(ve))
|
|
5739
5739
|
throw Ie(ie.INVALID_ARGUMENT);
|
|
5740
5740
|
return ze(A, oe, be({ resolvedMessage: !0 }, ve || {}));
|
|
5741
5741
|
}
|
|
5742
|
-
function
|
|
5742
|
+
function rn(...N) {
|
|
5743
5743
|
return Ce((A) => Reflect.apply(Gs, null, [A, ...N]), () => wn(...N), "datetime format", (A) => Reflect.apply(A.d, A, [...N]), () => Jt, (A) => x(A) || me(A));
|
|
5744
5744
|
}
|
|
5745
5745
|
function ln(...N) {
|
|
@@ -5837,19 +5837,19 @@ function _s(e = {}) {
|
|
|
5837
5837
|
g.value[N] = be(g.value[N] || {}, A), S.numberFormats = g.value, Xs(S, N, A);
|
|
5838
5838
|
}
|
|
5839
5839
|
to++, t && xe && (Ee(t.locale, (N) => {
|
|
5840
|
-
|
|
5840
|
+
r && (l.value = N, S.locale = N, Pt(S, l.value, i.value));
|
|
5841
5841
|
}), Ee(t.fallbackLocale, (N) => {
|
|
5842
|
-
|
|
5842
|
+
r && (i.value = N, S.fallbackLocale = N, Pt(S, l.value, i.value));
|
|
5843
5843
|
}));
|
|
5844
5844
|
const ne = {
|
|
5845
5845
|
id: to,
|
|
5846
5846
|
locale: se,
|
|
5847
5847
|
fallbackLocale: ce,
|
|
5848
5848
|
get inheritLocale() {
|
|
5849
|
-
return
|
|
5849
|
+
return r;
|
|
5850
5850
|
},
|
|
5851
5851
|
set inheritLocale(N) {
|
|
5852
|
-
|
|
5852
|
+
r = N, N && t && (l.value = t.locale.value, i.value = t.fallbackLocale.value, Pt(S, l.value, i.value));
|
|
5853
5853
|
},
|
|
5854
5854
|
get availableLocales() {
|
|
5855
5855
|
return Object.keys(f.value).sort();
|
|
@@ -5908,15 +5908,15 @@ function _s(e = {}) {
|
|
|
5908
5908
|
setPostTranslationHandler: ue,
|
|
5909
5909
|
getMissingHandler: ct,
|
|
5910
5910
|
setMissingHandler: ut,
|
|
5911
|
-
[
|
|
5911
|
+
[ca]: fn
|
|
5912
5912
|
};
|
|
5913
|
-
return ne.datetimeFormats = Le, ne.numberFormats = Y, ne.rt =
|
|
5913
|
+
return ne.datetimeFormats = Le, ne.numberFormats = Y, ne.rt = an, ne.te = mn, ne.tm = St, ne.d = rn, ne.n = ln, ne.getDateTimeFormat = u, ne.setDateTimeFormat = m, ne.mergeDateTimeFormat = P, ne.getNumberFormat = j, ne.setNumberFormat = de, ne.mergeNumberFormat = pe, ne[ua] = n, ne[Rn] = Ft, ne[Fn] = xt, ne[xn] = dn, process.env.NODE_ENV !== "production" && (ne[it] = (N) => {
|
|
5914
5914
|
S.__v_emitter = N;
|
|
5915
5915
|
}, ne[wt] = () => {
|
|
5916
5916
|
S.__v_emitter = void 0;
|
|
5917
5917
|
}), ne;
|
|
5918
5918
|
}
|
|
5919
|
-
const
|
|
5919
|
+
const ma = "vue-i18n: composer properties", Nn = {
|
|
5920
5920
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
5921
5921
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
5922
5922
|
"vue-i18n-timeline": "Vue I18n"
|
|
@@ -5935,37 +5935,37 @@ async function vm(e, t) {
|
|
|
5935
5935
|
packageName: "vue-i18n",
|
|
5936
5936
|
homepage: "https://vue-i18n.intlify.dev",
|
|
5937
5937
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
5938
|
-
componentStateTypes: [
|
|
5938
|
+
componentStateTypes: [ma],
|
|
5939
5939
|
app: e
|
|
5940
5940
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
5941
5941
|
}, (o) => {
|
|
5942
|
-
Hn = o, o.on.visitComponentTree(({ componentInstance:
|
|
5943
|
-
hm(
|
|
5944
|
-
}), o.on.inspectComponent(({ componentInstance:
|
|
5945
|
-
|
|
5942
|
+
Hn = o, o.on.visitComponentTree(({ componentInstance: r, treeNode: l }) => {
|
|
5943
|
+
hm(r, l, t);
|
|
5944
|
+
}), o.on.inspectComponent(({ componentInstance: r, instanceData: l }) => {
|
|
5945
|
+
r.__VUE_I18N__ && l && (t.mode === "legacy" ? r.__VUE_I18N__ !== t.global.__composer && so(l, r.__VUE_I18N__) : so(l, r.__VUE_I18N__));
|
|
5946
5946
|
}), o.addInspector({
|
|
5947
5947
|
id: "vue-i18n-resource-inspector",
|
|
5948
5948
|
label: Nn["vue-i18n-resource-inspector"],
|
|
5949
5949
|
icon: "language",
|
|
5950
5950
|
treeFilterPlaceholder: _m["vue-i18n-resource-inspector"]
|
|
5951
|
-
}), o.on.getInspectorTree((
|
|
5952
|
-
|
|
5951
|
+
}), o.on.getInspectorTree((r) => {
|
|
5952
|
+
r.app === e && r.inspectorId === "vue-i18n-resource-inspector" && km(r, t);
|
|
5953
5953
|
});
|
|
5954
|
-
const
|
|
5955
|
-
o.on.getInspectorState(async (
|
|
5956
|
-
if (
|
|
5957
|
-
if (o.unhighlightElement(), Nm(
|
|
5958
|
-
if (!
|
|
5959
|
-
const [l] = await o.getComponentInstances(
|
|
5960
|
-
|
|
5954
|
+
const a = /* @__PURE__ */ new Map();
|
|
5955
|
+
o.on.getInspectorState(async (r) => {
|
|
5956
|
+
if (r.app === e && r.inspectorId === "vue-i18n-resource-inspector")
|
|
5957
|
+
if (o.unhighlightElement(), Nm(r, t), r.nodeId === "global") {
|
|
5958
|
+
if (!a.has(r.app)) {
|
|
5959
|
+
const [l] = await o.getComponentInstances(r.app);
|
|
5960
|
+
a.set(r.app, l);
|
|
5961
5961
|
}
|
|
5962
|
-
o.highlightElement(
|
|
5962
|
+
o.highlightElement(a.get(r.app));
|
|
5963
5963
|
} else {
|
|
5964
|
-
const l = Lm(
|
|
5964
|
+
const l = Lm(r.nodeId, t);
|
|
5965
5965
|
l && o.highlightElement(l);
|
|
5966
5966
|
}
|
|
5967
|
-
}), o.on.editInspectorState((
|
|
5968
|
-
|
|
5967
|
+
}), o.on.editInspectorState((r) => {
|
|
5968
|
+
r.app === e && r.inspectorId === "vue-i18n-resource-inspector" && Sm(r, t);
|
|
5969
5969
|
}), o.addTimelineLayer({
|
|
5970
5970
|
id: "vue-i18n-timeline",
|
|
5971
5971
|
label: Nn["vue-i18n-timeline"],
|
|
@@ -5977,14 +5977,14 @@ async function vm(e, t) {
|
|
|
5977
5977
|
}
|
|
5978
5978
|
});
|
|
5979
5979
|
}
|
|
5980
|
-
function
|
|
5980
|
+
function _a(e) {
|
|
5981
5981
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
5982
5982
|
}
|
|
5983
5983
|
function hm(e, t, n) {
|
|
5984
5984
|
const s = n.mode === "composition" ? n.global : n.global.__composer;
|
|
5985
5985
|
if (e && e.__VUE_I18N__ && e.__VUE_I18N__ !== s) {
|
|
5986
5986
|
const o = {
|
|
5987
|
-
label: `i18n (${
|
|
5987
|
+
label: `i18n (${_a(e)} Scope)`,
|
|
5988
5988
|
textColor: 0,
|
|
5989
5989
|
backgroundColor: 16764185
|
|
5990
5990
|
};
|
|
@@ -5992,7 +5992,7 @@ function hm(e, t, n) {
|
|
|
5992
5992
|
}
|
|
5993
5993
|
}
|
|
5994
5994
|
function so(e, t) {
|
|
5995
|
-
const n =
|
|
5995
|
+
const n = ma;
|
|
5996
5996
|
e.state.push({
|
|
5997
5997
|
type: n,
|
|
5998
5998
|
key: "locale",
|
|
@@ -6064,10 +6064,10 @@ function km(e, t) {
|
|
|
6064
6064
|
});
|
|
6065
6065
|
const n = t.mode === "composition" ? t.global : t.global.__composer;
|
|
6066
6066
|
for (const [s, o] of t.__instances) {
|
|
6067
|
-
const
|
|
6068
|
-
n !==
|
|
6069
|
-
id:
|
|
6070
|
-
label: `${
|
|
6067
|
+
const a = t.mode === "composition" ? o : o.__composer;
|
|
6068
|
+
n !== a && e.rootNodes.push({
|
|
6069
|
+
id: a.id.toString(),
|
|
6070
|
+
label: `${_a(s)} Scope`
|
|
6071
6071
|
});
|
|
6072
6072
|
}
|
|
6073
6073
|
}
|
|
@@ -6082,7 +6082,7 @@ function Lm(e, t) {
|
|
|
6082
6082
|
}
|
|
6083
6083
|
return n;
|
|
6084
6084
|
}
|
|
6085
|
-
function
|
|
6085
|
+
function pa(e, t) {
|
|
6086
6086
|
if (e === "global")
|
|
6087
6087
|
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
6088
6088
|
{
|
|
@@ -6091,7 +6091,7 @@ function pr(e, t) {
|
|
|
6091
6091
|
}
|
|
6092
6092
|
}
|
|
6093
6093
|
function Nm(e, t) {
|
|
6094
|
-
const n =
|
|
6094
|
+
const n = pa(e.nodeId, t);
|
|
6095
6095
|
return n && (e.state = Tm(n)), null;
|
|
6096
6096
|
}
|
|
6097
6097
|
function Tm(e) {
|
|
@@ -6122,7 +6122,7 @@ function Tm(e) {
|
|
|
6122
6122
|
}
|
|
6123
6123
|
];
|
|
6124
6124
|
t[n] = s;
|
|
6125
|
-
const o = "Locale messages info",
|
|
6125
|
+
const o = "Locale messages info", a = [
|
|
6126
6126
|
{
|
|
6127
6127
|
type: o,
|
|
6128
6128
|
key: "messages",
|
|
@@ -6130,17 +6130,17 @@ function Tm(e) {
|
|
|
6130
6130
|
value: ps(e.messages.value)
|
|
6131
6131
|
}
|
|
6132
6132
|
];
|
|
6133
|
-
t[o] =
|
|
6133
|
+
t[o] = a;
|
|
6134
6134
|
{
|
|
6135
|
-
const
|
|
6135
|
+
const r = "Datetime formats info", l = [
|
|
6136
6136
|
{
|
|
6137
|
-
type:
|
|
6137
|
+
type: r,
|
|
6138
6138
|
key: "datetimeFormats",
|
|
6139
6139
|
editable: !1,
|
|
6140
6140
|
value: e.datetimeFormats.value
|
|
6141
6141
|
}
|
|
6142
6142
|
];
|
|
6143
|
-
t[
|
|
6143
|
+
t[r] = l;
|
|
6144
6144
|
const i = "Datetime formats info", f = [
|
|
6145
6145
|
{
|
|
6146
6146
|
type: i,
|
|
@@ -6170,14 +6170,14 @@ function Mt(e, t) {
|
|
|
6170
6170
|
}
|
|
6171
6171
|
}
|
|
6172
6172
|
function Sm(e, t) {
|
|
6173
|
-
const n =
|
|
6173
|
+
const n = pa(e.nodeId, t);
|
|
6174
6174
|
if (n) {
|
|
6175
6175
|
const [s] = e.path;
|
|
6176
6176
|
s === "locale" && x(e.state.value) ? n.locale.value = e.state.value : s === "fallbackLocale" && (x(e.state.value) || me(e.state.value) || Z(e.state.value)) ? n.fallbackLocale.value = e.state.value : s === "inheritLocale" && te(e.state.value) && (n.inheritLocale = e.state.value);
|
|
6177
6177
|
}
|
|
6178
6178
|
}
|
|
6179
6179
|
function Im(e) {
|
|
6180
|
-
const t = x(e.locale) ? e.locale : Ct, n = x(e.fallbackLocale) || me(e.fallbackLocale) || J(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, s = le(e.missing) ? e.missing : void 0, o = te(e.silentTranslationWarn) || ht(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0,
|
|
6180
|
+
const t = x(e.locale) ? e.locale : Ct, n = x(e.fallbackLocale) || me(e.fallbackLocale) || J(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, s = le(e.missing) ? e.missing : void 0, o = te(e.silentTranslationWarn) || ht(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, a = te(e.silentFallbackWarn) || ht(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, r = te(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, i = J(e.modifiers) ? e.modifiers : {}, f = e.pluralizationRules, v = le(e.postTranslation) ? e.postTranslation : void 0, g = x(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, E = !!e.escapeParameterHtml, I = te(e.sync) ? e.sync : !0;
|
|
6181
6181
|
let R = e.messages;
|
|
6182
6182
|
if (J(e.sharedMessages)) {
|
|
6183
6183
|
const C = e.sharedMessages;
|
|
@@ -6196,8 +6196,8 @@ function Im(e) {
|
|
|
6196
6196
|
numberFormats: L,
|
|
6197
6197
|
missing: s,
|
|
6198
6198
|
missingWarn: o,
|
|
6199
|
-
fallbackWarn:
|
|
6200
|
-
fallbackRoot:
|
|
6199
|
+
fallbackWarn: a,
|
|
6200
|
+
fallbackRoot: r,
|
|
6201
6201
|
fallbackFormat: l,
|
|
6202
6202
|
modifiers: i,
|
|
6203
6203
|
pluralRules: f,
|
|
@@ -6320,8 +6320,8 @@ function jn(e = {}) {
|
|
|
6320
6320
|
return Reflect.apply(t.rt, t, [...o]);
|
|
6321
6321
|
},
|
|
6322
6322
|
// te
|
|
6323
|
-
te(o,
|
|
6324
|
-
return t.te(o,
|
|
6323
|
+
te(o, a) {
|
|
6324
|
+
return t.te(o, a);
|
|
6325
6325
|
},
|
|
6326
6326
|
// tm
|
|
6327
6327
|
tm(o) {
|
|
@@ -6332,12 +6332,12 @@ function jn(e = {}) {
|
|
|
6332
6332
|
return t.getLocaleMessage(o);
|
|
6333
6333
|
},
|
|
6334
6334
|
// setLocaleMessage
|
|
6335
|
-
setLocaleMessage(o,
|
|
6336
|
-
t.setLocaleMessage(o,
|
|
6335
|
+
setLocaleMessage(o, a) {
|
|
6336
|
+
t.setLocaleMessage(o, a);
|
|
6337
6337
|
},
|
|
6338
6338
|
// mergeLocaleMessage
|
|
6339
|
-
mergeLocaleMessage(o,
|
|
6340
|
-
t.mergeLocaleMessage(o,
|
|
6339
|
+
mergeLocaleMessage(o, a) {
|
|
6340
|
+
t.mergeLocaleMessage(o, a);
|
|
6341
6341
|
},
|
|
6342
6342
|
// d
|
|
6343
6343
|
d(...o) {
|
|
@@ -6348,12 +6348,12 @@ function jn(e = {}) {
|
|
|
6348
6348
|
return t.getDateTimeFormat(o);
|
|
6349
6349
|
},
|
|
6350
6350
|
// setDateTimeFormat
|
|
6351
|
-
setDateTimeFormat(o,
|
|
6352
|
-
t.setDateTimeFormat(o,
|
|
6351
|
+
setDateTimeFormat(o, a) {
|
|
6352
|
+
t.setDateTimeFormat(o, a);
|
|
6353
6353
|
},
|
|
6354
6354
|
// mergeDateTimeFormat
|
|
6355
|
-
mergeDateTimeFormat(o,
|
|
6356
|
-
t.mergeDateTimeFormat(o,
|
|
6355
|
+
mergeDateTimeFormat(o, a) {
|
|
6356
|
+
t.mergeDateTimeFormat(o, a);
|
|
6357
6357
|
},
|
|
6358
6358
|
// n
|
|
6359
6359
|
n(...o) {
|
|
@@ -6364,17 +6364,17 @@ function jn(e = {}) {
|
|
|
6364
6364
|
return t.getNumberFormat(o);
|
|
6365
6365
|
},
|
|
6366
6366
|
// setNumberFormat
|
|
6367
|
-
setNumberFormat(o,
|
|
6368
|
-
t.setNumberFormat(o,
|
|
6367
|
+
setNumberFormat(o, a) {
|
|
6368
|
+
t.setNumberFormat(o, a);
|
|
6369
6369
|
},
|
|
6370
6370
|
// mergeNumberFormat
|
|
6371
|
-
mergeNumberFormat(o,
|
|
6372
|
-
t.mergeNumberFormat(o,
|
|
6371
|
+
mergeNumberFormat(o, a) {
|
|
6372
|
+
t.mergeNumberFormat(o, a);
|
|
6373
6373
|
}
|
|
6374
6374
|
};
|
|
6375
6375
|
return s.__extender = n, process.env.NODE_ENV !== "production" && (s.__enableEmitter = (o) => {
|
|
6376
|
-
const
|
|
6377
|
-
|
|
6376
|
+
const a = t;
|
|
6377
|
+
a[it] && a[it](o);
|
|
6378
6378
|
}, s.__disableEmitter = () => {
|
|
6379
6379
|
const o = t;
|
|
6380
6380
|
o[wt] && o[wt]();
|
|
@@ -6388,13 +6388,13 @@ function Pm(e, t, n) {
|
|
|
6388
6388
|
throw Ie(ie.UNEXPECTED_ERROR);
|
|
6389
6389
|
const o = this.$options;
|
|
6390
6390
|
if (o.i18n) {
|
|
6391
|
-
const
|
|
6392
|
-
if (o.__i18n && (
|
|
6393
|
-
this.$i18n = oo(e,
|
|
6391
|
+
const a = o.i18n;
|
|
6392
|
+
if (o.__i18n && (a.__i18n = o.__i18n), a.__root = t, this === this.$root)
|
|
6393
|
+
this.$i18n = oo(e, a);
|
|
6394
6394
|
else {
|
|
6395
|
-
|
|
6396
|
-
const
|
|
6397
|
-
|
|
6395
|
+
a.__injectWithOption = !0, a.__extender = n.__vueI18nExtend, this.$i18n = jn(a);
|
|
6396
|
+
const r = this.$i18n;
|
|
6397
|
+
r.__extender && (r.__disposer = r.__extender(this.$i18n));
|
|
6398
6398
|
}
|
|
6399
6399
|
} else if (o.__i18n)
|
|
6400
6400
|
if (this === this.$root)
|
|
@@ -6406,12 +6406,12 @@ function Pm(e, t, n) {
|
|
|
6406
6406
|
__extender: n.__vueI18nExtend,
|
|
6407
6407
|
__root: t
|
|
6408
6408
|
});
|
|
6409
|
-
const
|
|
6410
|
-
|
|
6409
|
+
const a = this.$i18n;
|
|
6410
|
+
a.__extender && (a.__disposer = a.__extender(this.$i18n));
|
|
6411
6411
|
}
|
|
6412
6412
|
else
|
|
6413
6413
|
this.$i18n = e;
|
|
6414
|
-
o.__i18nGlobal &&
|
|
6414
|
+
o.__i18nGlobal && fa(t, o, o), this.$t = (...a) => this.$i18n.t(...a), this.$rt = (...a) => this.$i18n.rt(...a), this.$te = (a, r) => this.$i18n.te(a, r), this.$d = (...a) => this.$i18n.d(...a), this.$n = (...a) => this.$i18n.n(...a), this.$tm = (a) => this.$i18n.tm(a), n.__setInstance(s, this.$i18n);
|
|
6415
6415
|
},
|
|
6416
6416
|
mounted() {
|
|
6417
6417
|
if (process.env.NODE_ENV !== "production" && this.$i18n) {
|
|
@@ -6420,8 +6420,8 @@ function Pm(e, t, n) {
|
|
|
6420
6420
|
return;
|
|
6421
6421
|
const o = this.$i18n;
|
|
6422
6422
|
s.__VUE_I18N__ = o.__composer;
|
|
6423
|
-
const
|
|
6424
|
-
o.__enableEmitter && o.__enableEmitter(
|
|
6423
|
+
const a = this.__v_emitter = is();
|
|
6424
|
+
o.__enableEmitter && o.__enableEmitter(a), a.on("*", Mt);
|
|
6425
6425
|
}
|
|
6426
6426
|
},
|
|
6427
6427
|
unmounted() {
|
|
@@ -6434,7 +6434,7 @@ function Pm(e, t, n) {
|
|
|
6434
6434
|
};
|
|
6435
6435
|
}
|
|
6436
6436
|
function oo(e, t) {
|
|
6437
|
-
e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[
|
|
6437
|
+
e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[ca](t.pluralizationRules || e.pluralizationRules);
|
|
6438
6438
|
const n = ms(e.locale, {
|
|
6439
6439
|
messages: t.messages,
|
|
6440
6440
|
__i18n: t.__i18n
|
|
@@ -6467,9 +6467,9 @@ function Om({ slots: e }, t) {
|
|
|
6467
6467
|
], []) : t.reduce((n, s) => {
|
|
6468
6468
|
const o = e[s];
|
|
6469
6469
|
return o && (n[s] = o()), n;
|
|
6470
|
-
},
|
|
6470
|
+
}, re());
|
|
6471
6471
|
}
|
|
6472
|
-
function
|
|
6472
|
+
function va() {
|
|
6473
6473
|
return X;
|
|
6474
6474
|
}
|
|
6475
6475
|
const $m = /* @__PURE__ */ w({
|
|
@@ -6493,29 +6493,29 @@ const $m = /* @__PURE__ */ w({
|
|
|
6493
6493
|
__useComponent: !0
|
|
6494
6494
|
});
|
|
6495
6495
|
return () => {
|
|
6496
|
-
const
|
|
6497
|
-
e.locale && (
|
|
6498
|
-
const l = Om(t,
|
|
6496
|
+
const a = Object.keys(n).filter((g) => g[0] !== "_"), r = re();
|
|
6497
|
+
e.locale && (r.locale = e.locale), e.plural !== void 0 && (r.plural = x(e.plural) ? +e.plural : e.plural);
|
|
6498
|
+
const l = Om(t, a), i = o[Rn](e.keypath, l, r), f = be(re(), s), v = x(e.tag) || Z(e.tag) ? e.tag : va();
|
|
6499
6499
|
return ho(v, f, i);
|
|
6500
6500
|
};
|
|
6501
6501
|
}
|
|
6502
|
-
}),
|
|
6502
|
+
}), ao = $m;
|
|
6503
6503
|
function Am(e) {
|
|
6504
6504
|
return me(e) && !x(e[0]);
|
|
6505
6505
|
}
|
|
6506
|
-
function
|
|
6507
|
-
const { slots: o, attrs:
|
|
6506
|
+
function ha(e, t, n, s) {
|
|
6507
|
+
const { slots: o, attrs: a } = t;
|
|
6508
6508
|
return () => {
|
|
6509
|
-
const
|
|
6510
|
-
let l =
|
|
6511
|
-
e.locale && (
|
|
6512
|
-
const i = s(e.value,
|
|
6513
|
-
let f = [
|
|
6509
|
+
const r = { part: !0 };
|
|
6510
|
+
let l = re();
|
|
6511
|
+
e.locale && (r.locale = e.locale), x(e.format) ? r.key = e.format : Z(e.format) && (x(e.format.key) && (r.key = e.format.key), l = Object.keys(e.format).reduce((E, I) => n.includes(I) ? be(re(), E, { [I]: e.format[I] }) : E, re()));
|
|
6512
|
+
const i = s(e.value, r, l);
|
|
6513
|
+
let f = [r.key];
|
|
6514
6514
|
me(i) ? f = i.map((E, I) => {
|
|
6515
6515
|
const R = o[E.type], O = R ? R({ [E.type]: E.value, index: I, parts: i }) : [E.value];
|
|
6516
6516
|
return Am(O) && (O[0].key = `${E.type}-${I}`), O;
|
|
6517
6517
|
}) : x(i) && (f = [i]);
|
|
6518
|
-
const v = be(
|
|
6518
|
+
const v = be(re(), a), g = x(e.tag) || Z(e.tag) ? e.tag : va();
|
|
6519
6519
|
return ho(g, v, f);
|
|
6520
6520
|
};
|
|
6521
6521
|
}
|
|
@@ -6538,12 +6538,12 @@ const Cm = /* @__PURE__ */ w({
|
|
|
6538
6538
|
useScope: e.scope,
|
|
6539
6539
|
__useComponent: !0
|
|
6540
6540
|
});
|
|
6541
|
-
return
|
|
6541
|
+
return ha(e, t, aa, (...s) => (
|
|
6542
6542
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6543
6543
|
n[xn](...s)
|
|
6544
6544
|
));
|
|
6545
6545
|
}
|
|
6546
|
-
}),
|
|
6546
|
+
}), ro = Cm;
|
|
6547
6547
|
function wm(e, t) {
|
|
6548
6548
|
const n = e;
|
|
6549
6549
|
if (e.mode === "composition")
|
|
@@ -6554,9 +6554,9 @@ function wm(e, t) {
|
|
|
6554
6554
|
}
|
|
6555
6555
|
}
|
|
6556
6556
|
function Dm(e) {
|
|
6557
|
-
const t = (
|
|
6558
|
-
process.env.NODE_ENV !== "production" &&
|
|
6559
|
-
const { instance: l, value: i } =
|
|
6557
|
+
const t = (r) => {
|
|
6558
|
+
process.env.NODE_ENV !== "production" && as(bt(De.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
6559
|
+
const { instance: l, value: i } = r;
|
|
6560
6560
|
if (!l || !l.$)
|
|
6561
6561
|
throw Ie(ie.UNEXPECTED_ERROR);
|
|
6562
6562
|
const f = wm(e, l.$), v = lo(i);
|
|
@@ -6566,25 +6566,25 @@ function Dm(e) {
|
|
|
6566
6566
|
];
|
|
6567
6567
|
};
|
|
6568
6568
|
return {
|
|
6569
|
-
created: (
|
|
6569
|
+
created: (r, l) => {
|
|
6570
6570
|
const [i, f] = t(l);
|
|
6571
|
-
xe && e.global === f && (
|
|
6571
|
+
xe && e.global === f && (r.__i18nWatcher = Ee(f.locale, () => {
|
|
6572
6572
|
l.instance && l.instance.$forceUpdate();
|
|
6573
|
-
})),
|
|
6573
|
+
})), r.__composer = f, r.textContent = i;
|
|
6574
6574
|
},
|
|
6575
|
-
unmounted: (
|
|
6576
|
-
xe &&
|
|
6575
|
+
unmounted: (r) => {
|
|
6576
|
+
xe && r.__i18nWatcher && (r.__i18nWatcher(), r.__i18nWatcher = void 0, delete r.__i18nWatcher), r.__composer && (r.__composer = void 0, delete r.__composer);
|
|
6577
6577
|
},
|
|
6578
|
-
beforeUpdate: (
|
|
6579
|
-
if (
|
|
6580
|
-
const i =
|
|
6581
|
-
|
|
6578
|
+
beforeUpdate: (r, { value: l }) => {
|
|
6579
|
+
if (r.__composer) {
|
|
6580
|
+
const i = r.__composer, f = lo(l);
|
|
6581
|
+
r.textContent = Reflect.apply(i.t, i, [
|
|
6582
6582
|
...io(f)
|
|
6583
6583
|
]);
|
|
6584
6584
|
}
|
|
6585
6585
|
},
|
|
6586
|
-
getSSRProps: (
|
|
6587
|
-
const [l] = t(
|
|
6586
|
+
getSSRProps: (r) => {
|
|
6587
|
+
const [l] = t(r);
|
|
6588
6588
|
return { textContent: l };
|
|
6589
6589
|
}
|
|
6590
6590
|
};
|
|
@@ -6600,18 +6600,18 @@ function lo(e) {
|
|
|
6600
6600
|
throw Ie(ie.INVALID_VALUE);
|
|
6601
6601
|
}
|
|
6602
6602
|
function io(e) {
|
|
6603
|
-
const { path: t, locale: n, args: s, choice: o, plural:
|
|
6604
|
-
return x(n) && (
|
|
6603
|
+
const { path: t, locale: n, args: s, choice: o, plural: a } = e, r = {}, l = s || {};
|
|
6604
|
+
return x(n) && (r.locale = n), he(o) && (r.plural = o), he(a) && (r.plural = a), [t, l, r];
|
|
6605
6605
|
}
|
|
6606
6606
|
function Mm(e, t, ...n) {
|
|
6607
6607
|
const s = J(n[0]) ? n[0] : {};
|
|
6608
|
-
(!te(s.globalInstall) || s.globalInstall) && ([
|
|
6608
|
+
(!te(s.globalInstall) || s.globalInstall) && ([ao.name, "I18nT"].forEach((a) => e.component(a, ao)), [ro.name, "I18nN"].forEach((a) => e.component(a, ro)), [uo.name, "I18nD"].forEach((a) => e.component(a, uo))), e.directive("t", Dm(t));
|
|
6609
6609
|
}
|
|
6610
6610
|
const Vm = /* @__PURE__ */ Ke("global-vue-i18n");
|
|
6611
6611
|
function Rm(e = {}) {
|
|
6612
6612
|
const t = __VUE_I18N_LEGACY_API__ && te(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
6613
|
-
process.env.NODE_ENV !== "production" && t &&
|
|
6614
|
-
const n = te(e.globalInjection) ? e.globalInjection : !0, s = /* @__PURE__ */ new Map(), [o,
|
|
6613
|
+
process.env.NODE_ENV !== "production" && t && as(bt(De.DEPRECATE_LEGACY_MODE));
|
|
6614
|
+
const n = te(e.globalInjection) ? e.globalInjection : !0, s = /* @__PURE__ */ new Map(), [o, a] = Fm(e, t), r = /* @__PURE__ */ Ke(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
6615
6615
|
function l(g) {
|
|
6616
6616
|
return s.get(g) || null;
|
|
6617
6617
|
}
|
|
@@ -6628,12 +6628,12 @@ function Rm(e = {}) {
|
|
|
6628
6628
|
},
|
|
6629
6629
|
// install plugin
|
|
6630
6630
|
async install(g, ...E) {
|
|
6631
|
-
if (process.env.NODE_ENV !== "production" && (g.__VUE_I18N__ = v), g.__VUE_I18N_SYMBOL__ =
|
|
6631
|
+
if (process.env.NODE_ENV !== "production" && (g.__VUE_I18N__ = v), g.__VUE_I18N_SYMBOL__ = r, g.provide(g.__VUE_I18N_SYMBOL__, v), J(E[0])) {
|
|
6632
6632
|
const O = E[0];
|
|
6633
6633
|
v.__composerExtend = O.__composerExtend, v.__vueI18nExtend = O.__vueI18nExtend;
|
|
6634
6634
|
}
|
|
6635
6635
|
let I = null;
|
|
6636
|
-
!t && n && (I = Km(g, v.global)), __VUE_I18N_FULL_INSTALL__ && Mm(g, v, ...E), __VUE_I18N_LEGACY_API__ && t && g.mixin(Pm(
|
|
6636
|
+
!t && n && (I = Km(g, v.global)), __VUE_I18N_FULL_INSTALL__ && Mm(g, v, ...E), __VUE_I18N_LEGACY_API__ && t && g.mixin(Pm(a, a.__composer, v));
|
|
6637
6637
|
const R = g.unmount;
|
|
6638
6638
|
if (g.unmount = () => {
|
|
6639
6639
|
I && I(), v.dispose(), R();
|
|
@@ -6642,10 +6642,10 @@ function Rm(e = {}) {
|
|
|
6642
6642
|
throw Ie(ie.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
6643
6643
|
const $ = is();
|
|
6644
6644
|
if (t) {
|
|
6645
|
-
const _ =
|
|
6645
|
+
const _ = a;
|
|
6646
6646
|
_.__enableEmitter && _.__enableEmitter($);
|
|
6647
6647
|
} else {
|
|
6648
|
-
const _ =
|
|
6648
|
+
const _ = a;
|
|
6649
6649
|
_[it] && _[it]($);
|
|
6650
6650
|
}
|
|
6651
6651
|
$.on("*", Mt);
|
|
@@ -6653,7 +6653,7 @@ function Rm(e = {}) {
|
|
|
6653
6653
|
},
|
|
6654
6654
|
// global accessor
|
|
6655
6655
|
get global() {
|
|
6656
|
-
return
|
|
6656
|
+
return a;
|
|
6657
6657
|
},
|
|
6658
6658
|
dispose() {
|
|
6659
6659
|
o.stop();
|
|
@@ -6675,24 +6675,24 @@ function Ae(e = {}) {
|
|
|
6675
6675
|
throw Ie(ie.MUST_BE_CALL_SETUP_TOP);
|
|
6676
6676
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
6677
6677
|
throw Ie(ie.NOT_INSTALLED);
|
|
6678
|
-
const n = xm(t), s = Hm(n), o =
|
|
6679
|
-
if (
|
|
6680
|
-
return
|
|
6681
|
-
if (
|
|
6678
|
+
const n = xm(t), s = Hm(n), o = da(t), a = Um(e, o);
|
|
6679
|
+
if (a === "global")
|
|
6680
|
+
return fa(s, e, o), s;
|
|
6681
|
+
if (a === "parent") {
|
|
6682
6682
|
let i = jm(n, t, e.__useComponent);
|
|
6683
6683
|
return i == null && (process.env.NODE_ENV !== "production" && Be(bt(De.NOT_FOUND_PARENT_SCOPE)), i = s), i;
|
|
6684
6684
|
}
|
|
6685
|
-
const
|
|
6686
|
-
let l =
|
|
6685
|
+
const r = n;
|
|
6686
|
+
let l = r.__getInstance(t);
|
|
6687
6687
|
if (l == null) {
|
|
6688
6688
|
const i = be({}, e);
|
|
6689
|
-
"__i18n" in o && (i.__i18n = o.__i18n), s && (i.__root = s), l = _s(i),
|
|
6689
|
+
"__i18n" in o && (i.__i18n = o.__i18n), s && (i.__root = s), l = _s(i), r.__composerExtend && (l[Un] = r.__composerExtend(l)), Bm(r, t, l), r.__setInstance(t, l);
|
|
6690
6690
|
} else
|
|
6691
|
-
process.env.NODE_ENV !== "production" &&
|
|
6691
|
+
process.env.NODE_ENV !== "production" && a === "local" && Be(bt(De.DUPLICATE_USE_I18N_CALLING));
|
|
6692
6692
|
return l;
|
|
6693
6693
|
}
|
|
6694
6694
|
function Fm(e, t) {
|
|
6695
|
-
const n =
|
|
6695
|
+
const n = wa(), s = __VUE_I18N_LEGACY_API__ && t ? n.run(() => jn(e)) : n.run(() => _s(e));
|
|
6696
6696
|
if (s == null)
|
|
6697
6697
|
throw Ie(ie.UNEXPECTED_ERROR);
|
|
6698
6698
|
return [n, s];
|
|
@@ -6712,18 +6712,18 @@ function Hm(e) {
|
|
|
6712
6712
|
function jm(e, t, n = !1) {
|
|
6713
6713
|
let s = null;
|
|
6714
6714
|
const o = t.root;
|
|
6715
|
-
let
|
|
6716
|
-
for (;
|
|
6717
|
-
const
|
|
6715
|
+
let a = Wm(t, n);
|
|
6716
|
+
for (; a != null; ) {
|
|
6717
|
+
const r = e;
|
|
6718
6718
|
if (e.mode === "composition")
|
|
6719
|
-
s =
|
|
6719
|
+
s = r.__getInstance(a);
|
|
6720
6720
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
6721
|
-
const l =
|
|
6722
|
-
l != null && (s = l.__composer, n && s && !s[
|
|
6721
|
+
const l = r.__getInstance(a);
|
|
6722
|
+
l != null && (s = l.__composer, n && s && !s[ua] && (s = null));
|
|
6723
6723
|
}
|
|
6724
|
-
if (s != null || o ===
|
|
6724
|
+
if (s != null || o === a)
|
|
6725
6725
|
break;
|
|
6726
|
-
|
|
6726
|
+
a = a.parent;
|
|
6727
6727
|
}
|
|
6728
6728
|
return s;
|
|
6729
6729
|
}
|
|
@@ -6741,8 +6741,8 @@ function Bm(e, t, n) {
|
|
|
6741
6741
|
}, t), Qt(() => {
|
|
6742
6742
|
const o = n;
|
|
6743
6743
|
process.env.NODE_ENV !== "production" && (s && s.off("*", Mt), o[wt] && o[wt](), delete t.__VUE_I18N__), e.__deleteInstance(t);
|
|
6744
|
-
const
|
|
6745
|
-
|
|
6744
|
+
const a = o[Un];
|
|
6745
|
+
a && (a(), delete o[Un]);
|
|
6746
6746
|
}, t);
|
|
6747
6747
|
}
|
|
6748
6748
|
const Gm = [
|
|
@@ -6753,28 +6753,28 @@ const Gm = [
|
|
|
6753
6753
|
function Km(e, t) {
|
|
6754
6754
|
const n = /* @__PURE__ */ Object.create(null);
|
|
6755
6755
|
return Gm.forEach((o) => {
|
|
6756
|
-
const
|
|
6757
|
-
if (!
|
|
6756
|
+
const a = Object.getOwnPropertyDescriptor(t, o);
|
|
6757
|
+
if (!a)
|
|
6758
6758
|
throw Ie(ie.UNEXPECTED_ERROR);
|
|
6759
|
-
const
|
|
6759
|
+
const r = Gn(a.value) ? {
|
|
6760
6760
|
get() {
|
|
6761
|
-
return
|
|
6761
|
+
return a.value.value;
|
|
6762
6762
|
},
|
|
6763
6763
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6764
6764
|
set(l) {
|
|
6765
|
-
|
|
6765
|
+
a.value.value = l;
|
|
6766
6766
|
}
|
|
6767
6767
|
} : {
|
|
6768
6768
|
get() {
|
|
6769
|
-
return
|
|
6769
|
+
return a.get && a.get();
|
|
6770
6770
|
}
|
|
6771
6771
|
};
|
|
6772
|
-
Object.defineProperty(n, o,
|
|
6772
|
+
Object.defineProperty(n, o, r);
|
|
6773
6773
|
}), e.config.globalProperties.$i18n = n, co.forEach((o) => {
|
|
6774
|
-
const
|
|
6775
|
-
if (!
|
|
6774
|
+
const a = Object.getOwnPropertyDescriptor(t, o);
|
|
6775
|
+
if (!a || !a.value)
|
|
6776
6776
|
throw Ie(ie.UNEXPECTED_ERROR);
|
|
6777
|
-
Object.defineProperty(e.config.globalProperties, `$${o}`,
|
|
6777
|
+
Object.defineProperty(e.config.globalProperties, `$${o}`, a);
|
|
6778
6778
|
}), () => {
|
|
6779
6779
|
delete e.config.globalProperties.$i18n, co.forEach((o) => {
|
|
6780
6780
|
delete e.config.globalProperties[`$${o}`];
|
|
@@ -6800,7 +6800,7 @@ const Ym = /* @__PURE__ */ w({
|
|
|
6800
6800
|
useScope: e.scope,
|
|
6801
6801
|
__useComponent: !0
|
|
6802
6802
|
});
|
|
6803
|
-
return
|
|
6803
|
+
return ha(e, t, oa, (...s) => (
|
|
6804
6804
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6805
6805
|
n[Fn](...s)
|
|
6806
6806
|
));
|
|
@@ -6829,10 +6829,10 @@ const Xm = (e, t) => {
|
|
|
6829
6829
|
},
|
|
6830
6830
|
setup(e) {
|
|
6831
6831
|
const { t, availableLocales: n, locale: s } = Ae(), o = () => Xm(n, s);
|
|
6832
|
-
return (
|
|
6832
|
+
return (a, r) => {
|
|
6833
6833
|
const l = Ne("Icon");
|
|
6834
6834
|
return c(), h(X, null, [
|
|
6835
|
-
|
|
6835
|
+
r[0] || (r[0] = b("div", { class: "divider" }, null, -1)),
|
|
6836
6836
|
b("button", {
|
|
6837
6837
|
"aria-label": d(t)("button.toggle_locale"),
|
|
6838
6838
|
type: "button",
|
|
@@ -6851,9 +6851,9 @@ const Xm = (e, t) => {
|
|
|
6851
6851
|
}), zm = /* @__PURE__ */ W(Jm, [["__scopeId", "data-v-29bd489e"]]), Qm = /* @__PURE__ */ w({
|
|
6852
6852
|
__name: "SharingWidget",
|
|
6853
6853
|
setup(e) {
|
|
6854
|
-
const t = Lt(), { theme: n, frontmatter: s, page: o } = Vt(),
|
|
6855
|
-
return (i, f) => (c(), F(d(
|
|
6856
|
-
url: d(
|
|
6854
|
+
const t = Lt(), { theme: n, frontmatter: s, page: o } = Vt(), a = n.value.sharing ? at(() => import("./Sharing-ZrU7YF-x.js")) : () => null, r = new URL(t.path, n.value.siteURL).href, l = s.value.title || o.value.title;
|
|
6855
|
+
return (i, f) => (c(), F(d(a), {
|
|
6856
|
+
url: d(r),
|
|
6857
6857
|
text: d(l)
|
|
6858
6858
|
}, null, 8, ["url", "text"]));
|
|
6859
6859
|
}
|
|
@@ -6861,18 +6861,18 @@ const Xm = (e, t) => {
|
|
|
6861
6861
|
__name: "Layout",
|
|
6862
6862
|
setup(e) {
|
|
6863
6863
|
const { Layout: t } = Ro, { frontmatter: n, theme: s } = Vt(), o = Lt();
|
|
6864
|
-
let
|
|
6865
|
-
s.value.mediumZoom && (
|
|
6866
|
-
const
|
|
6867
|
-
if (
|
|
6868
|
-
const { useMediumZoom: l } = await
|
|
6864
|
+
let a = null;
|
|
6865
|
+
s.value.mediumZoom && (a = import("./index-DuYWs0vj.js"));
|
|
6866
|
+
const r = async () => {
|
|
6867
|
+
if (a) {
|
|
6868
|
+
const { useMediumZoom: l } = await a;
|
|
6869
6869
|
l(s.value.mediumZoom);
|
|
6870
6870
|
}
|
|
6871
6871
|
};
|
|
6872
|
-
return Ve(
|
|
6872
|
+
return Ve(r), Ee(
|
|
6873
6873
|
() => o.path,
|
|
6874
6874
|
(l, i) => {
|
|
6875
|
-
l !== i &&
|
|
6875
|
+
l !== i && r();
|
|
6876
6876
|
}
|
|
6877
6877
|
), (l, i) => (c(), F(d(t), null, {
|
|
6878
6878
|
"doc-before": T(() => [
|
|
@@ -6895,7 +6895,7 @@ const Xm = (e, t) => {
|
|
|
6895
6895
|
_: 1
|
|
6896
6896
|
}));
|
|
6897
6897
|
}
|
|
6898
|
-
}), t_ = ["href"],
|
|
6898
|
+
}), t_ = ["href"], ga = /* @__PURE__ */ w({
|
|
6899
6899
|
__name: "RouterLink",
|
|
6900
6900
|
props: {
|
|
6901
6901
|
to: {
|
|
@@ -6905,7 +6905,7 @@ const Xm = (e, t) => {
|
|
|
6905
6905
|
}
|
|
6906
6906
|
},
|
|
6907
6907
|
setup(e) {
|
|
6908
|
-
const t =
|
|
6908
|
+
const t = Fa();
|
|
6909
6909
|
return (n, s) => (c(), h("a", $e({
|
|
6910
6910
|
href: e.to,
|
|
6911
6911
|
onClick: s[0] || (s[0] = (o) => d(t).go(e.to))
|
|
@@ -6913,7 +6913,7 @@ const Xm = (e, t) => {
|
|
|
6913
6913
|
k(n.$slots, "default")
|
|
6914
6914
|
], 16, t_));
|
|
6915
6915
|
}
|
|
6916
|
-
}), n_ = ["href"], s_ = ["href"],
|
|
6916
|
+
}), n_ = ["href"], s_ = ["href"], ba = /* @__PURE__ */ w({
|
|
6917
6917
|
__name: "Link",
|
|
6918
6918
|
props: {
|
|
6919
6919
|
href: {
|
|
@@ -6929,7 +6929,7 @@ const Xm = (e, t) => {
|
|
|
6929
6929
|
},
|
|
6930
6930
|
setup(e) {
|
|
6931
6931
|
const t = e, n = t.href?.startsWith("/") && !t.disableRouterLink, s = t.href?.startsWith("#");
|
|
6932
|
-
return (o,
|
|
6932
|
+
return (o, a) => d(n) || d(s) ? (c(), F(ga, $e({
|
|
6933
6933
|
key: 0,
|
|
6934
6934
|
to: e.href
|
|
6935
6935
|
}, o.$attrs), {
|
|
@@ -6969,7 +6969,7 @@ const Xm = (e, t) => {
|
|
|
6969
6969
|
}
|
|
6970
6970
|
},
|
|
6971
6971
|
setup(e) {
|
|
6972
|
-
return (t, n) => (c(), F(
|
|
6972
|
+
return (t, n) => (c(), F(ba, {
|
|
6973
6973
|
key: e.title,
|
|
6974
6974
|
href: e.href,
|
|
6975
6975
|
class: "inline-flex items-center mt-2 mb-2 mr-2 px-5 py-2.5 text-sm font-medium text-center text-white component-border"
|
|
@@ -6981,7 +6981,7 @@ const Xm = (e, t) => {
|
|
|
6981
6981
|
_: 1
|
|
6982
6982
|
}, 8, ["href"]));
|
|
6983
6983
|
}
|
|
6984
|
-
}), Et = (e) => e.replace(/#/, "-sharp-").replace(/\./, "-dot-").replace(/-$/, "").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/đ/g, "d").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, ""),
|
|
6984
|
+
}), Et = (e) => e.replace(/#/, "-sharp-").replace(/\./, "-dot-").replace(/-$/, "").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/đ/g, "d").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, ""), a_ = (e) => (t) => Et(t) === e, r_ = (e) => {
|
|
6985
6985
|
const t = e instanceof Date ? e : new Date(e);
|
|
6986
6986
|
return t.setUTCHours(12), {
|
|
6987
6987
|
time: +t,
|
|
@@ -7038,11 +7038,11 @@ const Xm = (e, t) => {
|
|
|
7038
7038
|
},
|
|
7039
7039
|
setup(e) {
|
|
7040
7040
|
const t = e, { t: n } = Ae(), s = D(
|
|
7041
|
-
() => gs(t.posts.flatMap((
|
|
7041
|
+
() => gs(t.posts.flatMap((a) => new Date(a.date).getFullYear().toString()))
|
|
7042
7042
|
), o = D(
|
|
7043
|
-
() => Object.keys(s.value).map((
|
|
7043
|
+
() => Object.keys(s.value).map((a) => Number(a)).reverse()
|
|
7044
7044
|
);
|
|
7045
|
-
return (
|
|
7045
|
+
return (a, r) => {
|
|
7046
7046
|
const l = Ne("Page");
|
|
7047
7047
|
return c(), F(l, {
|
|
7048
7048
|
title: d(n)("archives")
|
|
@@ -7076,9 +7076,9 @@ const Xm = (e, t) => {
|
|
|
7076
7076
|
},
|
|
7077
7077
|
setup(e) {
|
|
7078
7078
|
const t = e, { t: n } = Ae(), s = D(() => gs(t.posts.flatMap((o) => o.categories)));
|
|
7079
|
-
return (o,
|
|
7080
|
-
const
|
|
7081
|
-
return c(), F(
|
|
7079
|
+
return (o, a) => {
|
|
7080
|
+
const r = Ne("Page");
|
|
7081
|
+
return c(), F(r, {
|
|
7082
7082
|
title: d(n)("categories")
|
|
7083
7083
|
}, {
|
|
7084
7084
|
default: T(() => [
|
|
@@ -7132,7 +7132,7 @@ const Xm = (e, t) => {
|
|
|
7132
7132
|
k(t.$slots, "default")
|
|
7133
7133
|
], 64));
|
|
7134
7134
|
}
|
|
7135
|
-
}),
|
|
7135
|
+
}), Ea = /* @__PURE__ */ w({
|
|
7136
7136
|
__name: "TermLink",
|
|
7137
7137
|
props: {
|
|
7138
7138
|
text: {
|
|
@@ -7146,7 +7146,7 @@ const Xm = (e, t) => {
|
|
|
7146
7146
|
},
|
|
7147
7147
|
setup(e) {
|
|
7148
7148
|
const t = e, n = D(() => Et(t.text)), s = D(() => `${t.basePath}${n.value}`);
|
|
7149
|
-
return (o,
|
|
7149
|
+
return (o, a) => (c(), F(ga, {
|
|
7150
7150
|
to: s.value,
|
|
7151
7151
|
class: "mr-2 text-sm font-medium uppercase link-alt"
|
|
7152
7152
|
}, {
|
|
@@ -7168,7 +7168,7 @@ const Xm = (e, t) => {
|
|
|
7168
7168
|
}
|
|
7169
7169
|
},
|
|
7170
7170
|
setup(e) {
|
|
7171
|
-
const t = e, n = D(() =>
|
|
7171
|
+
const t = e, n = D(() => r_(t.post.date));
|
|
7172
7172
|
return (s, o) => (c(), h("div", g_, [
|
|
7173
7173
|
b("div", b_, [
|
|
7174
7174
|
b("div", E_, B(n.value?.day), 1),
|
|
@@ -7183,9 +7183,9 @@ const Xm = (e, t) => {
|
|
|
7183
7183
|
}, B(e.post.title), 9, L_)
|
|
7184
7184
|
]),
|
|
7185
7185
|
b("div", N_, [
|
|
7186
|
-
(c(!0), h(X, null, _e(e.post.categories, (
|
|
7187
|
-
key:
|
|
7188
|
-
text:
|
|
7186
|
+
(c(!0), h(X, null, _e(e.post.categories, (a) => (c(), F(Ea, {
|
|
7187
|
+
key: a,
|
|
7188
|
+
text: a,
|
|
7189
7189
|
basePath: "/categories/"
|
|
7190
7190
|
}, null, 8, ["text"]))), 128))
|
|
7191
7191
|
]),
|
|
@@ -7255,17 +7255,17 @@ const Xm = (e, t) => {
|
|
|
7255
7255
|
},
|
|
7256
7256
|
setup(e) {
|
|
7257
7257
|
const t = e, { t: n } = Ae(), s = D(() => {
|
|
7258
|
-
const
|
|
7258
|
+
const a = t.date instanceof Date ? t.date : new Date(t.date);
|
|
7259
7259
|
return {
|
|
7260
|
-
time: +
|
|
7261
|
-
string:
|
|
7260
|
+
time: +a,
|
|
7261
|
+
string: a.toLocaleDateString("en-US", {
|
|
7262
7262
|
year: "numeric",
|
|
7263
7263
|
month: "long",
|
|
7264
7264
|
day: "numeric"
|
|
7265
7265
|
})
|
|
7266
7266
|
};
|
|
7267
7267
|
}), o = () => (/* @__PURE__ */ new Date()).toISOString();
|
|
7268
|
-
return (
|
|
7268
|
+
return (a, r) => (c(), h("dl", null, [
|
|
7269
7269
|
b("dt", $_, B(d(n)("posted_on")), 1),
|
|
7270
7270
|
b("dd", {
|
|
7271
7271
|
class: ee(["font-medium leading-6", [e.textSize ? `text-${e.textSize}` : "text-base"]])
|
|
@@ -7343,8 +7343,8 @@ const Xm = (e, t) => {
|
|
|
7343
7343
|
},
|
|
7344
7344
|
setup(e) {
|
|
7345
7345
|
const t = e, { t: n } = Ae(), s = D(() => l_(t.project.developmentStatus));
|
|
7346
|
-
return (o,
|
|
7347
|
-
const
|
|
7346
|
+
return (o, a) => {
|
|
7347
|
+
const r = Ne("Icon");
|
|
7348
7348
|
return c(), h("div", D_, [
|
|
7349
7349
|
b("div", M_, [
|
|
7350
7350
|
b("a", {
|
|
@@ -7359,8 +7359,8 @@ const Xm = (e, t) => {
|
|
|
7359
7359
|
rel: "noopener noreferrer",
|
|
7360
7360
|
href: e.project.showcaseUrl
|
|
7361
7361
|
}, [
|
|
7362
|
-
|
|
7363
|
-
H(
|
|
7362
|
+
a[0] || (a[0] = b("span", { class: "sr-only" }, "external-link", -1)),
|
|
7363
|
+
H(r, {
|
|
7364
7364
|
icon: "bi:box-arrow-up-right",
|
|
7365
7365
|
class: "text-dark dark:text-white ml-2"
|
|
7366
7366
|
})
|
|
@@ -7372,8 +7372,8 @@ const Xm = (e, t) => {
|
|
|
7372
7372
|
rel: "noopener noreferrer",
|
|
7373
7373
|
href: e.project.repositoryUrl
|
|
7374
7374
|
}, [
|
|
7375
|
-
|
|
7376
|
-
H(
|
|
7375
|
+
a[1] || (a[1] = b("span", { class: "sr-only" }, "github", -1)),
|
|
7376
|
+
H(r, {
|
|
7377
7377
|
icon: "bi:github",
|
|
7378
7378
|
class: "text-dark dark:text-white ml-2"
|
|
7379
7379
|
})
|
|
@@ -7387,7 +7387,7 @@ const Xm = (e, t) => {
|
|
|
7387
7387
|
b("div", j_, [
|
|
7388
7388
|
e.project.license ? (c(), h("div", W_, [
|
|
7389
7389
|
Pe(B(d(n)("license")) + ": ", 1),
|
|
7390
|
-
e.project.licenseUrl ? (c(), F(
|
|
7390
|
+
e.project.licenseUrl ? (c(), F(ba, {
|
|
7391
7391
|
key: 0,
|
|
7392
7392
|
href: e.project.licenseUrl,
|
|
7393
7393
|
class: "link-alt"
|
|
@@ -7400,7 +7400,7 @@ const Xm = (e, t) => {
|
|
|
7400
7400
|
])) : M("", !0),
|
|
7401
7401
|
b("div", G_, [
|
|
7402
7402
|
Pe(B(d(n)("development_status.title")) + ": ", 1),
|
|
7403
|
-
H(w_,
|
|
7403
|
+
H(w_, Ma(Va(s.value)), {
|
|
7404
7404
|
default: T(() => [
|
|
7405
7405
|
Pe(B(o.$t(`development_status.${e.project.developmentStatus}`)), 1)
|
|
7406
7406
|
]),
|
|
@@ -7408,7 +7408,7 @@ const Xm = (e, t) => {
|
|
|
7408
7408
|
}, 16)
|
|
7409
7409
|
]),
|
|
7410
7410
|
b("div", K_, [
|
|
7411
|
-
(c(!0), h(X, null, _e(e.project.techs, (l) => (c(), F(
|
|
7411
|
+
(c(!0), h(X, null, _e(e.project.techs, (l) => (c(), F(Ea, {
|
|
7412
7412
|
key: l,
|
|
7413
7413
|
text: l,
|
|
7414
7414
|
basePath: "/projects?tech="
|
|
@@ -7472,7 +7472,7 @@ const Xm = (e, t) => {
|
|
|
7472
7472
|
}
|
|
7473
7473
|
},
|
|
7474
7474
|
setup(e) {
|
|
7475
|
-
const t = e, { t: n } = Ae(), s = t.technology, o = typeof s == "string" && s.length > 0,
|
|
7475
|
+
const t = e, { t: n } = Ae(), s = t.technology, o = typeof s == "string" && s.length > 0, a = (i) => !o || i.techs.some(a_(s)), r = D(() => t.projects.filter(a)), l = D(() => [...new Set(t.projects.flatMap((f) => f.techs))].map((f) => ({
|
|
7476
7476
|
name: f,
|
|
7477
7477
|
slug: Et(f),
|
|
7478
7478
|
selected: o && Et(f) === s
|
|
@@ -7501,7 +7501,7 @@ const Xm = (e, t) => {
|
|
|
7501
7501
|
}, B(g.name), 11, tp))), 256))
|
|
7502
7502
|
])
|
|
7503
7503
|
]),
|
|
7504
|
-
H(Q_, { projects:
|
|
7504
|
+
H(Q_, { projects: r.value }, null, 8, ["projects"])
|
|
7505
7505
|
]),
|
|
7506
7506
|
_: 1
|
|
7507
7507
|
}, 8, ["title"]);
|
|
@@ -7510,7 +7510,7 @@ const Xm = (e, t) => {
|
|
|
7510
7510
|
}), sp = { class: "flex flex-wrap pt-4" }, op = {
|
|
7511
7511
|
key: 0,
|
|
7512
7512
|
class: "mt-2 mb-2 mr-5"
|
|
7513
|
-
},
|
|
7513
|
+
}, ap = /* @__PURE__ */ w({
|
|
7514
7514
|
__name: "TagsPage",
|
|
7515
7515
|
props: {
|
|
7516
7516
|
posts: {
|
|
@@ -7521,9 +7521,9 @@ const Xm = (e, t) => {
|
|
|
7521
7521
|
},
|
|
7522
7522
|
setup(e) {
|
|
7523
7523
|
const t = e, { t: n } = Ae(), s = D(() => gs(t.posts.flatMap((o) => o.tags)));
|
|
7524
|
-
return (o,
|
|
7525
|
-
const
|
|
7526
|
-
return c(), F(
|
|
7524
|
+
return (o, a) => {
|
|
7525
|
+
const r = Ne("Page");
|
|
7526
|
+
return c(), F(r, {
|
|
7527
7527
|
title: d(n)("tags")
|
|
7528
7528
|
}, {
|
|
7529
7529
|
default: T(() => [
|
|
@@ -7541,8 +7541,8 @@ const Xm = (e, t) => {
|
|
|
7541
7541
|
}, 8, ["title"]);
|
|
7542
7542
|
};
|
|
7543
7543
|
}
|
|
7544
|
-
}),
|
|
7545
|
-
button:
|
|
7544
|
+
}), rp = { toggle_locale: "Change language", read_more: "Read more" }, lp = "All posts", ip = "Posted on", cp = "My projects", up = "Categories", dp = "Tags", fp = "Archives", mp = "No post.", _p = "No category.", pp = "No tag.", vp = "No archive.", hp = "License", gp = "Source Code", bp = "Technologies", Ep = { title: "Development status", active: "Active", inactive: "Inactive", unmaintained: "Unmaintained" }, yp = {
|
|
7545
|
+
button: rp,
|
|
7546
7546
|
all_posts: lp,
|
|
7547
7547
|
posted_on: ip,
|
|
7548
7548
|
my_projects: cp,
|
|
@@ -7584,7 +7584,7 @@ const Xm = (e, t) => {
|
|
|
7584
7584
|
extends: Ro,
|
|
7585
7585
|
Layout: e_,
|
|
7586
7586
|
enhanceApp({ app: e }) {
|
|
7587
|
-
e.component("Icon",
|
|
7587
|
+
e.component("Icon", ka), e.component("Page", h_), e.component("PostsPage", O_), e.component("HomePage", __), e.component("ProjectsPage", np), e.component("CategoriesPage", m_), e.component("TagsPage", ap), e.component("ArchivesPage", u_), e.use(Fp);
|
|
7588
7588
|
}
|
|
7589
7589
|
};
|
|
7590
7590
|
export {
|
|
@@ -7598,11 +7598,11 @@ export {
|
|
|
7598
7598
|
Io as g,
|
|
7599
7599
|
Wp as h,
|
|
7600
7600
|
bo as i,
|
|
7601
|
-
|
|
7601
|
+
Dr as j,
|
|
7602
7602
|
qp as k,
|
|
7603
|
-
|
|
7603
|
+
r_ as l,
|
|
7604
7604
|
l_ as m,
|
|
7605
|
-
|
|
7605
|
+
dr as n,
|
|
7606
7606
|
mt as o,
|
|
7607
7607
|
gs as p,
|
|
7608
7608
|
Et as q,
|
|
@@ -7612,5 +7612,5 @@ export {
|
|
|
7612
7612
|
Qn as u,
|
|
7613
7613
|
Xp as v,
|
|
7614
7614
|
Bp as w,
|
|
7615
|
-
|
|
7615
|
+
a_ as x
|
|
7616
7616
|
};
|