@nimtech/nimpress 2.6.13 → 2.6.14

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/cli.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { d as z, c as Ae, r as Me, s as Gt, p as Ht, a as st, b as pe, e as Ut, f as Zt, g as De, h as nt, i as Vt, j as ot, k as Kt, l as Yt, m as Qt, C as ge, n as Xt, o as rt, q as Ge, w as me, t as it, u as qt, v as es, x as He, y as ts, z as ss, A as ns, B as os, D as we, E as rs } from "./plugin-CnifGnSA.js";
1
+ import { d as z, c as Ae, r as Me, s as Gt, p as Ht, a as st, b as pe, e as Ut, f as Zt, g as De, h as nt, i as Vt, j as ot, k as Kt, l as Yt, m as Qt, C as ge, n as Xt, o as rt, q as Ge, w as me, t as it, u as qt, v as es, x as He, y as ts, z as ss, A as ns, B as os, D as we, E as rs } from "./plugin-Cdb4soOD.js";
2
2
  import { join as d, dirname as N, relative as F, sep as L, extname as fe, resolve as x, basename as D } from "node:path";
3
3
  import { readdirSync as ie, existsSync as b, writeFileSync as W, mkdirSync as B, rmSync as ee, readFileSync as C, statSync as at, watch as Ue } from "node:fs";
4
4
  import ue from "gray-matter";
@@ -1,13 +1,13 @@
1
- import { readFile as ce, readdir as Jt, writeFile as me, copyFile as mn, cp as fn, mkdir as Ue } from "node:fs/promises";
1
+ import { readFile as ce, readdir as Ut, writeFile as me, copyFile as un, cp as mn, mkdir as Ue } from "node:fs/promises";
2
2
  import { existsSync as fe, readFileSync as Ce, statSync as gt, readdirSync as Le, createReadStream as Ro } from "node:fs";
3
3
  import { createRequire as In } from "node:module";
4
4
  import { request as Bo } from "node:http";
5
5
  import { execFileSync as Wo } from "node:child_process";
6
- import { resolve as G, dirname as Y, join as U, relative as Se, basename as Pe, extname as Gt, isAbsolute as $e, sep as ke } from "node:path";
6
+ import { resolve as G, dirname as Y, join as U, relative as je, basename as Pe, extname as Jt, isAbsolute as $e, sep as ke } from "node:path";
7
7
  import { createHash as Fn } from "node:crypto";
8
8
  import _t from "gray-matter";
9
9
  import Rn from "markdown-it";
10
- import dn from "markdown-it-anchor";
10
+ import fn from "markdown-it-anchor";
11
11
  import Lo from "markdown-it-attrs";
12
12
  import Ho from "markdown-it-container";
13
13
  import Bn from "markdown-it-deflist";
@@ -16,11 +16,11 @@ import qo from "markdown-it-task-lists";
16
16
  import { z as m } from "zod";
17
17
  import { parse as Wn, stringify as Uo } from "yaml";
18
18
  import { createHighlighter as Jo } from "shiki";
19
- import { fileURLToPath as Go, pathToFileURL as hn } from "node:url";
19
+ import { fileURLToPath as Go, pathToFileURL as dn } from "node:url";
20
20
  import { exporter as Vo } from "@dbml/core";
21
- import { n as Xo, r as et, e as yt, b as Wt, p as Ln, c as Vt, d as Xt, g as bt, h as Yo, k as Yt, o as Ko, s as Zo, j as we, m as Qo, l as es, q as ts, t as ns, a as os } from "./typeMembers-CNvE92EX.js";
21
+ import { n as Xo, r as et, e as yt, b as Bt, p as Ln, c as Gt, d as Vt, g as bt, h as Yo, k as Xt, o as Ko, s as Zo, j as we, m as Qo, l as es, q as ts, t as ns, a as os } from "./typeMembers-CNvE92EX.js";
22
22
  import { loadConfigFromFile as ss } from "vite";
23
- const gn = {
23
+ const hn = {
24
24
  out: "dist",
25
25
  cache: "node_modules/.nimpress",
26
26
  export: ".nimpress",
@@ -36,7 +36,7 @@ const gn = {
36
36
  contentDir: "docs",
37
37
  assetsDir: "assets",
38
38
  assetUrlBase: "/assets",
39
- paths: gn,
39
+ paths: hn,
40
40
  exclude: [],
41
41
  defaultFrontmatter: {},
42
42
  defaultFrontmatterExclude: [],
@@ -49,7 +49,7 @@ const gn = {
49
49
  pageTypes: {},
50
50
  modules: {
51
51
  dir: "modules",
52
- route: `/${gn.modules}`,
52
+ route: `/${hn.modules}`,
53
53
  systems: {}
54
54
  }
55
55
  }, ft = ["stock", "glass"], rs = [
@@ -231,21 +231,21 @@ const as = m.object({
231
231
  pageTypes: m.record(m.string()).optional(),
232
232
  modules: m.array(ps).optional()
233
233
  }).passthrough();
234
- function _n(e, t) {
234
+ function gn(e, t) {
235
235
  const n = us.safeParse(e);
236
236
  return n.success ? n.data : (console.warn(`[nimpress] invalid config in ${t}: ${n.error.message}`), {});
237
237
  }
238
238
  const ms = ["nimpress.config.ts", "nimpress.config.js", "nimpress.config.mjs", "nimpress.config.json"];
239
- function yn(e) {
239
+ function _n(e) {
240
240
  return typeof e == "object" && e !== null && !Array.isArray(e);
241
241
  }
242
- function Lt(e, t) {
242
+ function Wt(e, t) {
243
243
  if (!t) return e;
244
244
  const n = { ...e };
245
245
  for (const [o, s] of Object.entries(t)) {
246
246
  if (s === void 0) continue;
247
247
  const r = n[o];
248
- yn(r) && yn(s) ? n[o] = Lt(r, s) : n[o] = s;
248
+ _n(r) && _n(s) ? n[o] = Wt(r, s) : n[o] = s;
249
249
  }
250
250
  return n;
251
251
  }
@@ -255,17 +255,17 @@ async function fs(e) {
255
255
  if (!fe(n)) continue;
256
256
  if (t.endsWith(".json")) {
257
257
  const r = JSON.parse(Ce(n, "utf-8"));
258
- return { config: _n(r, n), file: n };
258
+ return { config: gn(r, n), file: n };
259
259
  }
260
260
  const s = (await ss({ command: "serve", mode: "development" }, n, e))?.config ?? {};
261
- return { config: _n(s, n), file: n };
261
+ return { config: gn(s, n), file: n };
262
262
  }
263
263
  return null;
264
264
  }
265
265
  async function ds(e, t) {
266
266
  const n = await fs(e), o = n?.config ? { ...n.config, modules: void 0 } : void 0, s = t ? { ...t, modules: void 0 } : void 0;
267
- let r = Lt(Ke, o);
268
- r = Lt(r, s), r.css = typeof r.css == "string" ? [r.css] : r.css ?? [], r.base = Xo(r.base);
267
+ let r = Wt(Ke, o);
268
+ r = Wt(r, s), r.css = typeof r.css == "string" ? [r.css] : r.css ?? [], r.base = Xo(r.base);
269
269
  const a = t?.modules ?? n?.config?.modules;
270
270
  return r.modules = {
271
271
  dir: Ke.modules.dir,
@@ -2495,8 +2495,8 @@ function Ns() {
2495
2495
  return {};
2496
2496
  }
2497
2497
  }
2498
- const Is = 27, Fs = 14, Rs = 16, Bs = 20, Ws = 17, Ls = 14, zn = 110, Hs = 60, zs = 120, Ze = 40, qs = 200, Us = 420, Js = 24, Gs = 7.6, Vs = 6.6, qn = 7.4, Xs = 5.4, Ys = 5.8, Ks = 6.2, Zs = 34, Qs = 48, bn = 8, er = 260, tr = 18, nr = 6.2, or = 30, wn = 24, vn = 24;
2499
- class Kt extends Error {
2498
+ const Is = 27, Fs = 14, Rs = 16, Bs = 20, Ws = 17, Ls = 14, zn = 110, Hs = 60, zs = 120, Ze = 40, qs = 200, Us = 420, Js = 24, Gs = 7.6, Vs = 6.6, qn = 7.4, Xs = 5.4, Ys = 5.8, Ks = 6.2, Zs = 34, Qs = 48, yn = 8, er = 260, tr = 18, nr = 6.2, or = 30, bn = 24, wn = 24;
2499
+ class Yt extends Error {
2500
2500
  }
2501
2501
  function sr(e) {
2502
2502
  const t = e?.diags;
@@ -2510,7 +2510,7 @@ function rr(e) {
2510
2510
  try {
2511
2511
  return JSON.parse(Vo.export(e, "json"));
2512
2512
  } catch (t) {
2513
- throw new Kt(sr(t));
2513
+ throw new Yt(sr(t));
2514
2514
  }
2515
2515
  }
2516
2516
  function ar(e) {
@@ -2550,8 +2550,8 @@ function ur(e) {
2550
2550
  return Math.round(s + r + c + 2);
2551
2551
  }
2552
2552
  function mr(e) {
2553
- const t = e.width - wn, n = ht(e.body, nr, t), o = e.title ? or : 0;
2554
- return Math.round(wn + o + Math.max(1, n) * tr);
2553
+ const t = e.width - bn, n = ht(e.body, nr, t), o = e.title ? or : 0;
2554
+ return Math.round(bn + o + Math.max(1, n) * tr);
2555
2555
  }
2556
2556
  function fr(e, t, n) {
2557
2557
  return e.x < t.x + t.width + n && t.x < e.x + e.width + n && e.y < t.y + t.height + n && t.y < e.y + e.height + n;
@@ -2612,8 +2612,8 @@ function gr(e, t) {
2612
2612
  const p = [];
2613
2613
  for (const d of [...c.keys()].sort((g, w) => g - w)) {
2614
2614
  const g = c.get(d) ?? [];
2615
- for (let w = 0; w < g.length; w += bn)
2616
- p.push(g.slice(w, w + bn));
2615
+ for (let w = 0; w < g.length; w += yn)
2616
+ p.push(g.slice(w, w + yn));
2617
2617
  }
2618
2618
  return p;
2619
2619
  }
@@ -2747,9 +2747,9 @@ function yr(e) {
2747
2747
  width: er,
2748
2748
  height: 0
2749
2749
  };
2750
- F.height = mr(F), M.push(F), v += F.height + vn;
2750
+ F.height = mr(F), M.push(F), v += F.height + wn;
2751
2751
  }
2752
- dr([...A, ...M], vn);
2752
+ dr([...A, ...M], wn);
2753
2753
  const R = [];
2754
2754
  for (const x of w) {
2755
2755
  const E = c.get(x.parent), F = c.get(x.child);
@@ -2787,14 +2787,14 @@ ${n}`;
2787
2787
  }
2788
2788
  const p = /* @__PURE__ */ new Map(), d = o.match(/(?:const|let)\s*\{([\s\S]*?)\}\s*=\s*(?:withDefaults\s*\(\s*)?defineProps/);
2789
2789
  if (d)
2790
- for (const h of Wt(d[1])) {
2790
+ for (const h of Bt(d[1])) {
2791
2791
  const v = h.match(/^([A-Za-z_$][\w$]*)\s*=\s*([\s\S]+)$/);
2792
2792
  v && p.set(v[1], Ln(v[2]));
2793
2793
  }
2794
2794
  const g = [];
2795
2795
  if (a)
2796
- for (const h of Vt(a)) {
2797
- const v = Xt(
2796
+ for (const h of Gt(a)) {
2797
+ const v = Vt(
2798
2798
  bt(h.name, h.type, h.optional, r, h.description),
2799
2799
  h
2800
2800
  );
@@ -2839,7 +2839,7 @@ function wr(e, t, n = "") {
2839
2839
  const o = e.match(/<script[^>]*>([\s\S]*?)<\/script>/)?.[1] ?? "", s = `${o}
2840
2840
  ${n}`, r = o.match(/(?:let|const)\s*\{([\s\S]*?)\}\s*(?::\s*([\s\S]*?))?=\s*\$props\(\)/), a = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Set();
2841
2841
  if (r)
2842
- for (const A of Wt(r[1])) {
2842
+ for (const A of Bt(r[1])) {
2843
2843
  const M = A.match(/^([A-Za-z_$][\w$]*)\s*=\s*([\s\S]+)$/);
2844
2844
  if (!M) continue;
2845
2845
  const h = M[2].trim().match(/^\$bindable\(([\s\S]*)\)$/);
@@ -2856,7 +2856,7 @@ ${n}`, r = o.match(/(?:let|const)\s*\{([\s\S]*?)\}\s*(?::\s*([\s\S]*?))?=\s*\$pr
2856
2856
  }
2857
2857
  const g = [], w = [], P = [];
2858
2858
  if (p)
2859
- for (const A of Vt(p)) {
2859
+ for (const A of Gt(p)) {
2860
2860
  if (/\bSnippet\b/.test(A.type)) {
2861
2861
  w.push({ name: A.name, kind: "slot", type: A.type, required: !A.optional });
2862
2862
  continue;
@@ -2865,14 +2865,14 @@ ${n}`, r = o.match(/(?:let|const)\s*\{([\s\S]*?)\}\s*(?::\s*([\s\S]*?))?=\s*\$pr
2865
2865
  P.push(A.name);
2866
2866
  continue;
2867
2867
  }
2868
- const M = Xt(
2868
+ const M = Vt(
2869
2869
  bt(A.name, A.type, A.optional, s, A.description),
2870
2870
  A
2871
2871
  );
2872
2872
  a.has(A.name) && (M.default = a.get(A.name)), c.has(A.name) && (M.bindable = !0), g.push(M);
2873
2873
  }
2874
2874
  else if (r) {
2875
- for (const A of Wt(r[1])) {
2875
+ for (const A of Bt(r[1])) {
2876
2876
  const M = A.match(/^([A-Za-z_$][\w$]*)/)?.[1];
2877
2877
  if (!M || M === "children") continue;
2878
2878
  const h = { name: M, kind: "json", type: "unknown" };
@@ -2917,7 +2917,7 @@ function di(e, t) {
2917
2917
  const n = yt(e, `${t}Props`) ?? yt(e, "Props");
2918
2918
  if (!n) return;
2919
2919
  const o = [], s = [], r = [];
2920
- for (const a of Vt(n)) {
2920
+ for (const a of Gt(n)) {
2921
2921
  if (/\bSnippet\b/.test(a.type)) {
2922
2922
  s.push({ name: a.name, kind: "slot", type: a.type, required: !a.optional });
2923
2923
  continue;
@@ -2926,7 +2926,7 @@ function di(e, t) {
2926
2926
  r.push(a.name);
2927
2927
  continue;
2928
2928
  }
2929
- o.push(Xt(bt(a.name, a.type, a.optional, e, a.description), a));
2929
+ o.push(Vt(bt(a.name, a.type, a.optional, e, a.description), a));
2930
2930
  }
2931
2931
  return { component: t, props: o, slots: s, emits: r };
2932
2932
  }
@@ -2984,13 +2984,13 @@ A module shared across chunks statically imports a component that got its own ch
2984
2984
  }
2985
2985
  };
2986
2986
  }
2987
- function Zt(e, t) {
2987
+ function Kt(e, t) {
2988
2988
  if (!t) return e;
2989
2989
  const n = { ...e };
2990
2990
  for (const [o, s] of Object.entries(t)) {
2991
2991
  if (s === void 0) continue;
2992
2992
  const r = n[o], a = (c) => typeof c == "object" && c !== null && !Array.isArray(c);
2993
- a(r) && a(s) ? n[o] = Zt(r, s) : n[o] = s;
2993
+ a(r) && a(s) ? n[o] = Kt(r, s) : n[o] = s;
2994
2994
  }
2995
2995
  return n;
2996
2996
  }
@@ -3015,7 +3015,7 @@ async function gi(e) {
3015
3015
  ...s ? { rollupOptions: { input: s } } : {}
3016
3016
  }
3017
3017
  };
3018
- return Zt(c, o.vite);
3018
+ return Kt(c, o.vite);
3019
3019
  }
3020
3020
  function $t(e, t, n, o, s) {
3021
3021
  const r = t.systems[n];
@@ -3036,7 +3036,7 @@ function $t(e, t, n, o, s) {
3036
3036
  async function Yn(e, t = []) {
3037
3037
  let n;
3038
3038
  try {
3039
- n = await Jt(e, { withFileTypes: !0 });
3039
+ n = await Ut(e, { withFileTypes: !0 });
3040
3040
  } catch {
3041
3041
  return t;
3042
3042
  }
@@ -3085,7 +3085,7 @@ function tt(e, t) {
3085
3085
  return t === "yml" ? Uo(e) : JSON.stringify(e, null, 2) + `
3086
3086
  `;
3087
3087
  }
3088
- async function Qt(e, t, n) {
3088
+ async function Zt(e, t, n) {
3089
3089
  try {
3090
3090
  return await Gr(Y(e), e, t, n);
3091
3091
  } catch (o) {
@@ -3113,7 +3113,7 @@ function Qe(e, t) {
3113
3113
  }
3114
3114
  return t.items && (n.items = e.items ? Qe(e.items, t.items) : t.items), t.additionalProperties && (n.additionalProperties = e.additionalProperties ? Qe(e.additionalProperties, t.additionalProperties) : t.additionalProperties), n;
3115
3115
  }
3116
- function en(e, t) {
3116
+ function Qt(e, t) {
3117
3117
  const n = t, o = { added: [], missing: [] }, s = {};
3118
3118
  for (const [p, d] of Object.entries(n.properties ?? {})) {
3119
3119
  const g = e.properties?.[p];
@@ -3133,14 +3133,14 @@ function en(e, t) {
3133
3133
  a.includes(p) || (a.push(p), o.missing.push(`emit ${p}`));
3134
3134
  return { merged: { ...e, ...t, properties: s, slots: r, emits: a }, report: o };
3135
3135
  }
3136
- const Ye = [], kn = /* @__PURE__ */ new Set();
3136
+ const Ye = [], vn = /* @__PURE__ */ new Set();
3137
3137
  function Sr(e) {
3138
3138
  return `${e.component}|${e.kind}|${e.path}`;
3139
3139
  }
3140
- function $n(e) {
3140
+ function kn(e) {
3141
3141
  for (const t of e) {
3142
3142
  const n = Sr(t);
3143
- kn.has(n) || (kn.add(n), Ye.push(t));
3143
+ vn.has(n) || (vn.add(n), Ye.push(t));
3144
3144
  }
3145
3145
  }
3146
3146
  const jr = {
@@ -3165,7 +3165,7 @@ function Je(e = process.cwd()) {
3165
3165
  r.push(` ${Ee}${kt}nimpress modules${le} ${Te}${n} ${o} in ${t.size} ${s}${le}`), r.push("");
3166
3166
  for (const [a, c] of t) {
3167
3167
  const p = c.find((w) => w.sourceFile)?.sourceFile;
3168
- r.push(` ${Hn}${kt}${a}${le}${p ? ` ${dt}${Se(e, p)}${le}` : ""}`);
3168
+ r.push(` ${Hn}${kt}${a}${le}${p ? ` ${dt}${je(e, p)}${le}` : ""}`);
3169
3169
  const d = Math.max(...c.map((w) => (w.line ? `L${w.line}` : "·").length)), g = Math.max(...c.map((w) => (w.path || "(component)").length));
3170
3170
  for (const w of c) {
3171
3171
  const P = (w.line ? `L${w.line}` : "·").padStart(d), A = (w.path || "(component)").padEnd(g);
@@ -3178,7 +3178,7 @@ function Je(e = process.cwd()) {
3178
3178
  console.warn(r.join(`
3179
3179
  `));
3180
3180
  }
3181
- function xn(e, t) {
3181
+ function $n(e, t) {
3182
3182
  if (!e) return;
3183
3183
  const n = t.split(".").filter((a) => a && a !== "[]").pop();
3184
3184
  if (!n) return;
@@ -3190,23 +3190,23 @@ function xn(e, t) {
3190
3190
  for (let a = 0; a < o.length; a++)
3191
3191
  if (r.test(o[a])) return a + 1;
3192
3192
  }
3193
- function Sn(e, t, n = {}) {
3194
- const o = [], s = Yt(e, t);
3193
+ function xn(e, t, n = {}) {
3194
+ const o = [], s = Xt(e, t);
3195
3195
  for (const r of s.props.filter((a) => !a.description))
3196
- o.push({ component: e, sourceFile: n.sourceFile, line: xn(n.sourceText, r.name), path: r.name, detail: "has no description", kind: "undocumented" });
3196
+ o.push({ component: e, sourceFile: n.sourceFile, line: $n(n.sourceText, r.name), path: r.name, detail: "has no description", kind: "undocumented" });
3197
3197
  for (const r of Ko(s.props))
3198
- o.push({ component: e, sourceFile: n.sourceFile, line: xn(n.sourceText, r.path), path: r.path, detail: `type ${r.type} is opaque`, kind: "opaque" });
3198
+ o.push({ component: e, sourceFile: n.sourceFile, line: $n(n.sourceText, r.path), path: r.path, detail: `type ${r.type} is opaque`, kind: "opaque" });
3199
3199
  for (const r of n.report?.missing ?? [])
3200
3200
  o.push({ component: e, sourceFile: n.sourceFile, path: r, detail: "has no counterpart in the component source", kind: "orphan" });
3201
3201
  return o;
3202
3202
  }
3203
- async function tn(e, t, n, o) {
3203
+ async function en(e, t, n, o) {
3204
3204
  if (!n) return;
3205
3205
  const s = Zo(t, n.props, n.slots, n.emits), r = o ? await ce(o, "utf-8").catch(() => {
3206
3206
  }) : void 0, a = ot(e);
3207
3207
  if (!a) {
3208
3208
  const P = U(e, "schema.json");
3209
- await me(P, tt(s, "json")), console.log(`nimpress modules: ${t} schema seeded at ${P} — the file is yours to author from here`), $n(Sn(t, s, { sourceFile: o, sourceText: r }));
3209
+ await me(P, tt(s, "json")), console.log(`nimpress modules: ${t} schema seeded at ${P} — the file is yours to author from here`), kn(xn(t, s, { sourceFile: o, sourceText: r }));
3210
3210
  return;
3211
3211
  }
3212
3212
  const c = await ce(a.path, "utf-8");
@@ -3217,15 +3217,15 @@ async function tn(e, t, n, o) {
3217
3217
  console.warn(`nimpress modules: ${t} ${Pe(a.path)} failed to parse, left untouched: ${String(P)}`);
3218
3218
  return;
3219
3219
  }
3220
- const { merged: d, report: g } = en(p, s), w = tt(d, a.form);
3220
+ const { merged: d, report: g } = Qt(p, s), w = tt(d, a.form);
3221
3221
  if (w !== c) {
3222
3222
  await me(a.path, w);
3223
3223
  const P = g.added.length ? `, added ${g.added.join(", ")}` : "";
3224
3224
  console.log(`nimpress modules: ${t} schema upserted at ${a.path}${P}`);
3225
3225
  }
3226
- $n(Sn(t, d, { sourceFile: o, sourceText: r, report: g }));
3226
+ kn(xn(t, d, { sourceFile: o, sourceText: r, report: g }));
3227
3227
  }
3228
- const jn = /* @__PURE__ */ new Map();
3228
+ const Sn = /* @__PURE__ */ new Map();
3229
3229
  async function Ar(e, t, n, o) {
3230
3230
  let s;
3231
3231
  try {
@@ -3234,10 +3234,10 @@ async function Ar(e, t, n, o) {
3234
3234
  return;
3235
3235
  }
3236
3236
  const r = Fn("sha1").update(s).digest("hex");
3237
- if (jn.get(n) === r) return;
3238
- jn.set(n, r);
3239
- const a = await Qt(n, o, t);
3240
- a && await tn(e, t, a, n);
3237
+ if (Sn.get(n) === r) return;
3238
+ Sn.set(n, r);
3239
+ const a = await Zt(n, o, t);
3240
+ a && await en(e, t, a, n);
3241
3241
  }
3242
3242
  async function _i(e, t) {
3243
3243
  const n = ot(e);
@@ -3245,11 +3245,11 @@ async function _i(e, t) {
3245
3245
  await me(U(e, "schema.json"), tt(t, "json"));
3246
3246
  return;
3247
3247
  }
3248
- const o = await ce(n.path, "utf-8"), s = st(o, n.form), { merged: r } = en(t, s);
3248
+ const o = await ce(n.path, "utf-8"), s = st(o, n.form), { merged: r } = Qt(t, s);
3249
3249
  await me(n.path, tt(r, n.form));
3250
3250
  }
3251
- function Ht(e) {
3252
- const t = Gt(e);
3251
+ function Lt(e) {
3252
+ const t = Jt(e);
3253
3253
  return t === ".vue" ? "vue" : t === ".svelte" ? "svelte" : null;
3254
3254
  }
3255
3255
  function Er(e, t, n) {
@@ -3266,10 +3266,10 @@ function Cr(e, t, n) {
3266
3266
  async function Or(e, t, n) {
3267
3267
  const o = await xt(e, t.contentDir), s = G(e, n);
3268
3268
  if ((n.includes("/") || n.includes("\\")) && fe(s)) {
3269
- const d = Ht(s);
3269
+ const d = Lt(s);
3270
3270
  if (!d)
3271
3271
  throw new Error(`[nimpress] modules: ${n} is not a .vue or .svelte component file`);
3272
- const g = Pe(s, Gt(s)), w = Er(e, t, s);
3272
+ const g = Pe(s, Jt(s)), w = Er(e, t, s);
3273
3273
  if (!w)
3274
3274
  throw new Error(`[nimpress] modules: ${n} sits under no configured system source`);
3275
3275
  const P = Cr(o, w, g);
@@ -3291,7 +3291,7 @@ async function Or(e, t, n) {
3291
3291
  throw new Error(
3292
3292
  `[nimpress] modules: no source file found for ${a.system}/${a.component}, the schema upsert needs the component source`
3293
3293
  );
3294
- const p = Ht(c.componentFile) ?? c.systemConfig.framework;
3294
+ const p = Lt(c.componentFile) ?? c.systemConfig.framework;
3295
3295
  return {
3296
3296
  system: a.system,
3297
3297
  component: a.component,
@@ -3301,12 +3301,12 @@ async function Or(e, t, n) {
3301
3301
  };
3302
3302
  }
3303
3303
  async function Dr(e, t, n) {
3304
- const o = await Or(e, t, n), s = await Qt(o.componentFile, o.framework, o.component);
3304
+ const o = await Or(e, t, n), s = await Zt(o.componentFile, o.framework, o.component);
3305
3305
  if (!s)
3306
3306
  throw new Error(`[nimpress] modules: schema parse produced nothing for ${o.component}`);
3307
- await tn(o.pageDir, o.component, s);
3307
+ await en(o.pageDir, o.component, s);
3308
3308
  const r = ot(o.pageDir);
3309
- return Se(e, r?.path ?? U(o.pageDir, "schema.json"));
3309
+ return je(e, r?.path ?? U(o.pageDir, "schema.json"));
3310
3310
  }
3311
3311
  async function yi(e, t, n = {}) {
3312
3312
  if (n.ref)
@@ -3320,20 +3320,20 @@ async function yi(e, t, n = {}) {
3320
3320
  console.warn(`nimpress modules: no source for ${r.system}/${r.component}, skipped`);
3321
3321
  continue;
3322
3322
  }
3323
- const c = Ht(a.componentFile) ?? a.systemConfig.framework, p = await Qt(a.componentFile, c, r.component);
3324
- p && (await tn(Y(r.pageFile), r.component, p), s++);
3323
+ const c = Lt(a.componentFile) ?? a.systemConfig.framework, p = await Zt(a.componentFile, c, r.component);
3324
+ p && (await en(Y(r.pageFile), r.component, p), s++);
3325
3325
  }
3326
3326
  return s;
3327
3327
  }
3328
- const Mr = 6161, zt = "virtual:nimpress-harness/";
3329
- function qt(e, t) {
3328
+ const Mr = 6161, Ht = "virtual:nimpress-harness/";
3329
+ function zt(e, t) {
3330
3330
  const n = e.systems[t]?.port;
3331
3331
  if (n) return n;
3332
3332
  const o = Object.keys(e.systems).sort();
3333
3333
  return Mr + Math.max(0, o.indexOf(t));
3334
3334
  }
3335
3335
  function Kn(e, t) {
3336
- return `${zt}${e}/${t}/entry`;
3336
+ return `${Ht}${e}/${t}/entry`;
3337
3337
  }
3338
3338
  function Zn() {
3339
3339
  return `const params = new URLSearchParams(location.search)
@@ -3698,7 +3698,7 @@ function Ir(e) {
3698
3698
  } catch {
3699
3699
  return {};
3700
3700
  }
3701
- const n = Yt(e.component, t), o = {};
3701
+ const n = Xt(e.component, t), o = {};
3702
3702
  for (const s of n.props) {
3703
3703
  if (!s.required) continue;
3704
3704
  const r = s.default !== void 0 ? s.default : Qo(s, 0);
@@ -3710,7 +3710,7 @@ function Fr(e, t, n, o, s) {
3710
3710
  const r = Ir(t);
3711
3711
  return e === "vue" ? Tr(t, n, o, s, r) : Nr(t, n, o, s, r);
3712
3712
  }
3713
- function Pn(e, t, n) {
3713
+ function jn(e, t, n) {
3714
3714
  const o = n.map((s) => ` <link rel="stylesheet" href="${s}" />`).join(`
3715
3715
  `);
3716
3716
  return `<!doctype html>
@@ -3750,9 +3750,9 @@ async function Rr(e, t) {
3750
3750
  } catch {
3751
3751
  throw new Error("[nimpress] modules system with framework vue requires @vitejs/plugin-vue installed in the consumer");
3752
3752
  }
3753
- const s = await import(hn(o).href), a = [(s.default ?? s)()];
3753
+ const s = await import(dn(o).href), a = [(s.default ?? s)()];
3754
3754
  try {
3755
- const c = n.resolve("@vitejs/plugin-vue-jsx"), p = await import(hn(c).href), d = p.default ?? p;
3755
+ const c = n.resolve("@vitejs/plugin-vue-jsx"), p = await import(dn(c).href), d = p.default ?? p;
3756
3756
  a.push(d());
3757
3757
  } catch {
3758
3758
  }
@@ -3802,7 +3802,7 @@ function Lr(e, t) {
3802
3802
  function Hr(e, t, n, o, s) {
3803
3803
  const r = (t.css ?? []).map(
3804
3804
  (P) => P.startsWith(".") || $e(P) ? G(e, P) : P
3805
- ), a = Wr(e, t), c = Lr(e, t), p = new Map(o.map((P) => [P.component, P])), d = "\0" + zt, g = (P) => {
3805
+ ), a = Wr(e, t), c = Lr(e, t), p = new Map(o.map((P) => [P.component, P])), d = "\0" + Ht, g = (P) => {
3806
3806
  if (!P.startsWith(d)) return null;
3807
3807
  const A = P.slice(d.length).split("/");
3808
3808
  return A[0] === n && A[1] ? A[1] : null;
@@ -3810,7 +3810,7 @@ function Hr(e, t, n, o, s) {
3810
3810
  return {
3811
3811
  name: "nimpress:harness",
3812
3812
  resolveId(P) {
3813
- return P.startsWith(d) ? P : P.startsWith(zt) ? "\0" + P : null;
3813
+ return P.startsWith(d) ? P : P.startsWith(Ht) ? "\0" + P : null;
3814
3814
  },
3815
3815
  load(P) {
3816
3816
  const A = g(P);
@@ -3829,7 +3829,7 @@ function Hr(e, t, n, o, s) {
3829
3829
  const E = R.slice(1).join("/");
3830
3830
  if (E === "" || E === "index.html") {
3831
3831
  const F = ` <script type="module" src="${s}@vite/client"><\/script>
3832
- </head>`, z = Pn(x, "./entry.js", []).replace(" </head>", F);
3832
+ </head>`, z = jn(x, "./entry.js", []).replace(" </head>", F);
3833
3833
  M.statusCode = 200, M.setHeader("Content-Type", "text/html"), M.end(z);
3834
3834
  return;
3835
3835
  }
@@ -3862,7 +3862,7 @@ function Hr(e, t, n, o, s) {
3862
3862
  this.emitFile({
3863
3863
  type: "asset",
3864
3864
  fileName: `${v.component}/index.html`,
3865
- source: Pn(v.component, s + h.fileName, R)
3865
+ source: jn(v.component, s + h.fileName, R)
3866
3866
  });
3867
3867
  }
3868
3868
  }
@@ -3888,12 +3888,12 @@ async function bi(e, t, n, o) {
3888
3888
  },
3889
3889
  server: {
3890
3890
  host: "127.0.0.1",
3891
- port: qt(s, n),
3891
+ port: zt(s, n),
3892
3892
  strictPort: !0,
3893
3893
  fs: { allow: [e, d] },
3894
3894
  hmr: {
3895
3895
  host: "127.0.0.1",
3896
- clientPort: qt(s, n)
3896
+ clientPort: zt(s, n)
3897
3897
  }
3898
3898
  },
3899
3899
  build: {
@@ -3906,7 +3906,7 @@ async function bi(e, t, n, o) {
3906
3906
  },
3907
3907
  base: P
3908
3908
  };
3909
- return Zt(M, t.vite);
3909
+ return Kt(M, t.vite);
3910
3910
  }
3911
3911
  function Ot(e, t) {
3912
3912
  const n = e.search(new RegExp(`\\b${t}\\s*:`));
@@ -3942,7 +3942,7 @@ function oo(e, t) {
3942
3942
  async function zr(e) {
3943
3943
  let t;
3944
3944
  try {
3945
- t = await Jt(e, { withFileTypes: !0 });
3945
+ t = await Ut(e, { withFileTypes: !0 });
3946
3946
  } catch {
3947
3947
  return [];
3948
3948
  }
@@ -3987,7 +3987,7 @@ function qr(e) {
3987
3987
  }
3988
3988
  return null;
3989
3989
  }
3990
- function An(e, t) {
3990
+ function Pn(e, t) {
3991
3991
  return !e.endsWith(".vue") && !e.endsWith(".svelte") ? t : [...t.matchAll(/<script[^>]*>([\s\S]*?)<\/script>/g)].map((n) => n[1]).join(`
3992
3992
  `);
3993
3993
  }
@@ -3997,7 +3997,7 @@ async function Ur(e, t, n) {
3997
3997
  for (; r.length; ) {
3998
3998
  const c = r.shift();
3999
3999
  if (!c || c.depth >= 3) continue;
4000
- const p = An(c.file, c.text);
4000
+ const p = Pn(c.file, c.text);
4001
4001
  for (const d of p.matchAll(/from\s+['"]([^'"]+)['"]/g)) {
4002
4002
  const g = d[1];
4003
4003
  let w = null;
@@ -4008,7 +4008,7 @@ async function Ur(e, t, n) {
4008
4008
  if (s.has(M) || s.size > 50) continue;
4009
4009
  s.add(M);
4010
4010
  const h = await ce(A, "utf-8");
4011
- a += An(A, h) + `
4011
+ a += Pn(A, h) + `
4012
4012
  `, r.push({ file: A, text: h, depth: c.depth + 1 });
4013
4013
  }
4014
4014
  }
@@ -4063,7 +4063,7 @@ async function Vr(e) {
4063
4063
  );
4064
4064
  let M, h;
4065
4065
  if (g)
4066
- w.push(g.componentFile), h = Se(t, g.claudeMdPath), fe(g.claudeMdPath) && (M = await ce(g.claudeMdPath, "utf-8"), w.push(g.claudeMdPath));
4066
+ w.push(g.componentFile), h = je(t, g.claudeMdPath), fe(g.claudeMdPath) && (M = await ce(g.claudeMdPath, "utf-8"), w.push(g.claudeMdPath));
4067
4067
  else {
4068
4068
  const x = typeof s.package == "string" ? s.package : n.systems[a]?.package;
4069
4069
  if (x) {
@@ -4075,8 +4075,8 @@ async function Vr(e) {
4075
4075
  }
4076
4076
  }
4077
4077
  const v = s.schema && typeof s.schema == "object" && !Array.isArray(s.schema) ? s.schema : void 0;
4078
- v && (P = P ? en(v, P).merged : v);
4079
- const D = P ? Yt(c, P) : void 0, R = n.route.replace(/\/$/, "");
4078
+ v && (P = P ? Qt(v, P).merged : v);
4079
+ const D = P ? Xt(c, P) : void 0, R = n.route.replace(/\/$/, "");
4080
4080
  return {
4081
4081
  data: {
4082
4082
  system: a,
@@ -4088,7 +4088,7 @@ async function Vr(e) {
4088
4088
  editable: r && !!g,
4089
4089
  harnessPath: `${R}/${encodeURIComponent(a)}/${encodeURIComponent(c)}/`,
4090
4090
  schema: D,
4091
- schemaPath: A ? Se(t, A.path) : void 0,
4091
+ schemaPath: A ? je(t, A.path) : void 0,
4092
4092
  stories: d
4093
4093
  },
4094
4094
  watchFiles: w
@@ -4131,7 +4131,7 @@ function ye(e) {
4131
4131
  function Kr(e) {
4132
4132
  return `<![CDATA[${e.replace(/\]\]>/g, "]]]]><![CDATA[>")}]]>`;
4133
4133
  }
4134
- function En(e) {
4134
+ function An(e) {
4135
4135
  return e === 0 ? "rss.xml" : `rss-${e + 1}.xml`;
4136
4136
  }
4137
4137
  const It = [
@@ -4175,7 +4175,7 @@ const It = [
4175
4175
  function Zr(e) {
4176
4176
  return `<script type="application/ld+json">${(typeof e == "string" ? e : JSON.stringify(e)).replace(/</g, "\\u003c")}<\/script>`;
4177
4177
  }
4178
- const Ft = (e) => e.visibility === "hidden", je = (e) => e.visibility === "hidden" || e.visibility === "dev-only", mt = (e) => e.visibility === "dev-only", Qr = {
4178
+ const En = (e) => e.visibility === "hidden", Se = (e) => e.visibility === "hidden" || e.visibility === "dev-only", mt = (e) => e.visibility === "dev-only", Qr = {
4179
4179
  milestone: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"/><line x1="4" x2="4" y1="22" y2="15"/></svg>',
4180
4180
  epic: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"/><path d="m3.3 7 8.7 5 8.7-5"/><path d="M12 22V12"/></svg>',
4181
4181
  feature: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"/><path d="M20 3v4"/><path d="M22 5h-4"/><path d="M4 17v2"/><path d="M5 18H3"/></svg>',
@@ -4344,12 +4344,12 @@ function aa(e, t) {
4344
4344
  return 0;
4345
4345
  }
4346
4346
  function ia(e, t) {
4347
- const n = Se(e, t).split(ke).join("/");
4347
+ const n = je(e, t).split(ke).join("/");
4348
4348
  if (!(!n || n.startsWith("..") || $e(n)))
4349
4349
  return `/${n}`;
4350
4350
  }
4351
4351
  function io(e, t) {
4352
- const n = Se(e, t).split(ke).join("/");
4352
+ const n = je(e, t).split(ke).join("/");
4353
4353
  if (n.startsWith("..") || $e(n))
4354
4354
  throw new Error(
4355
4355
  `[nimpress] content file is outside contentDir.
@@ -4374,10 +4374,10 @@ function co(e) {
4374
4374
  function pa(e, t, n) {
4375
4375
  return co(n ?? la(io(e, t)));
4376
4376
  }
4377
- async function nn(e, t = []) {
4377
+ async function tn(e, t = []) {
4378
4378
  let n;
4379
4379
  try {
4380
- n = await Jt(e, { withFileTypes: !0 });
4380
+ n = await Ut(e, { withFileTypes: !0 });
4381
4381
  } catch {
4382
4382
  return t;
4383
4383
  }
@@ -4385,7 +4385,7 @@ async function nn(e, t = []) {
4385
4385
  const s = U(e, o.name);
4386
4386
  if (o.isDirectory()) {
4387
4387
  if (o.name.startsWith(".") || o.name === "node_modules") continue;
4388
- await nn(s, t);
4388
+ await tn(s, t);
4389
4389
  } else o.isFile() && o.name.endsWith(".md") && t.push(s);
4390
4390
  }
4391
4391
  return t;
@@ -4393,7 +4393,7 @@ async function nn(e, t = []) {
4393
4393
  function Ie(e) {
4394
4394
  return e.toLowerCase().replace(/[^a-z0-9\s-]/g, "").trim().replace(/\s+/g, "-");
4395
4395
  }
4396
- function Rt(e) {
4396
+ function Ft(e) {
4397
4397
  return e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
4398
4398
  }
4399
4399
  const Cn = {
@@ -4686,7 +4686,7 @@ function Ea(e, t) {
4686
4686
  return n ? n[1] : null;
4687
4687
  }
4688
4688
  const Ca = new Set("a an the and or but if then else of to in on at by for with from as is are was were be been being it its this that these those there here which who whom what when where why how not no yes you your we our they their he she his her them us me my i so do does did done can could should would will shall may might must into over under again more most some any each every all both few own same than too very just also only such other another one two three first last new use used using page pages file files field fields set sets value values see".split(" "));
4689
- function Bt(e) {
4689
+ function Rt(e) {
4690
4690
  return e.toLowerCase().replace(/```[\s\S]*?```/g, " ").replace(/`[^`]*`/g, " ").replace(/[^\p{L}\p{N}\s-]/gu, " ").split(/\s+/).map((t) => t.replace(/^-+|-+$/g, "")).filter((t) => t.length > 2 && !Ca.has(t) && !/^\d+$/.test(t));
4691
4691
  }
4692
4692
  function Oa(e) {
@@ -4702,7 +4702,7 @@ function Da(e) {
4702
4702
  const a = /* @__PURE__ */ new Map(), c = (p, d) => {
4703
4703
  for (const g of p) a.set(g, (a.get(g) ?? 0) + d);
4704
4704
  };
4705
- c(Bt(r.title), 6), c(Bt(r.headings.join(" ")), 3), c(r.tags.map((p) => p.toLowerCase()), 8), c(Bt(r.body), 1);
4705
+ c(Rt(r.title), 6), c(Rt(r.headings.join(" ")), 3), c(r.tags.map((p) => p.toLowerCase()), 8), c(Rt(r.body), 1);
4706
4706
  for (const p of a.keys()) t.set(p, (t.get(p) ?? 0) + 1);
4707
4707
  return { source: r, counts: a };
4708
4708
  }), o = Math.max(e.length, 1), s = /* @__PURE__ */ new Map();
@@ -4785,9 +4785,9 @@ function Tn(e, t = { route: "/_components" }, n = "/", o = { math: !0 }) {
4785
4785
  Q.imageCount = (Q.imageCount ?? 0) + 1, Q.imageCount > 1 && !E.attrGet("loading") && E.attrSet("loading", "lazy");
4786
4786
  const re = p(h, v, D, R, x), he = E.meta?.figure ? E.attrGet("title") : null;
4787
4787
  return he ? `${re}<figcaption class="np-figcaption">${s.utils.escapeHtml(he)}</figcaption>` : re;
4788
- }, s.use(dn, {
4788
+ }, s.use(fn, {
4789
4789
  slugify: Ie,
4790
- permalink: dn.permalink.headerLink({ safariReaderFix: !0 })
4790
+ permalink: fn.permalink.headerLink({ safariReaderFix: !0 })
4791
4791
  }), s.use(Lo), s.use(Bn), s.use(zo), s.use(qo, { enabled: !0 }), s.use(gs), s.inline.ruler.before("emphasis", "np_ins", ma), s.renderer.rules.s_open = () => "<del>", s.renderer.rules.s_close = () => "</del>", s.use(bs), s.use(ks), s.inline.ruler.before("emphasis", "np_keys", fa), s.core.ruler.push("np_figures", da), s.block.ruler.before("reference", "np_abbr_definition", $a, { alt: ["paragraph", "reference", "blockquote", "list"] }), s.core.ruler.after("inline", "np_abbr", Sa(o.glossary ?? [])), s.core.ruler.push("np_glossary_anchors", ja), s.core.ruler.after("footnote_tail", "np_footnote_tips", Pa);
4792
4792
  const d = s.renderer.rules.footnote_ref ?? r;
4793
4793
  s.renderer.rules.footnote_ref = (h, v, D, R, x) => {
@@ -5026,7 +5026,7 @@ function La(e, t, n) {
5026
5026
  try {
5027
5027
  s = Un(e);
5028
5028
  } catch (d) {
5029
- r = d instanceof Kt ? d.message : String(d), console.warn(`[nimpress] invalid dbml in ${n}:
5029
+ r = d instanceof Yt ? d.message : String(d), console.warn(`[nimpress] invalid dbml in ${n}:
5030
5030
  ${r}`);
5031
5031
  }
5032
5032
  const a = Buffer.from(s, "utf-8").toString("base64"), c = typeof o.height == "string" ? o.height : "";
@@ -5095,13 +5095,13 @@ function Nn(e) {
5095
5095
  function Ve(e) {
5096
5096
  return e ? e.replace(/[-_]/g, " ").replace(/\b\w/g, (t) => t.toUpperCase()) : "";
5097
5097
  }
5098
- function Ut(e) {
5098
+ function qt(e) {
5099
5099
  e.sort((t, n) => {
5100
5100
  const o = t.order ?? Number.MAX_SAFE_INTEGER, s = n.order ?? Number.MAX_SAFE_INTEGER;
5101
5101
  return o !== s ? o - s : t.text.localeCompare(n.text);
5102
5102
  });
5103
5103
  for (const t of e)
5104
- t.items && Ut(t.items);
5104
+ t.items && qt(t.items);
5105
5105
  }
5106
5106
  function Ua(e) {
5107
5107
  let t = Ke, n = G(process.cwd(), Ke.contentDir), o = G(process.cwd(), Ke.assetsDir), s = /* @__PURE__ */ new Map(), r = null, a = G(process.cwd(), "dist"), c = !1, p = null;
@@ -5333,7 +5333,7 @@ function Ua(e) {
5333
5333
  try {
5334
5334
  V = await ce(N, "utf-8"), q = Un(V);
5335
5335
  } catch (Z) {
5336
- X = Z instanceof Kt ? Z.message : String(Z);
5336
+ X = Z instanceof Yt ? Z.message : String(Z);
5337
5337
  const ue = `${i} -> ${f.spec}
5338
5338
  ${X}`;
5339
5339
  if (c) throw new Error(`[nimpress] invalid dbml in ${ue}`);
@@ -5431,7 +5431,7 @@ function Ua(e) {
5431
5431
  return !1;
5432
5432
  }
5433
5433
  async function He() {
5434
- const i = await nn(n), l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map();
5434
+ const i = await tn(n), l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map();
5435
5435
  let f, _;
5436
5436
  const C = [], $ = [];
5437
5437
  let S = [];
@@ -5505,7 +5505,7 @@ function Ua(e) {
5505
5505
  throw new Error(
5506
5506
  `[nimpress] path ${W} is occupied by both a changelog collection and a regular page`
5507
5507
  );
5508
- const T = O.filter((I) => !(c && je(I.frontmatter)));
5508
+ const T = O.filter((I) => !(c && Se(I.frontmatter)));
5509
5509
  if (T.length === 0) continue;
5510
5510
  T.sort((I, N) => {
5511
5511
  const q = String(I.frontmatter.data?.version ?? ""), V = String(N.frontmatter.data?.version ?? "");
@@ -5582,8 +5582,8 @@ function Ua(e) {
5582
5582
  function uo(i) {
5583
5583
  const l = [];
5584
5584
  for (const u of i.values()) {
5585
- if (u.frontmatter.subscribe !== !0 || Ft(u.frontmatter)) continue;
5586
- const b = u.effectivePath === "/" ? "" : u.effectivePath, y = `${ve(u) ? `/${t.paths.guarded}/${rt(u)}` : ""}${b}/${En(0)}`;
5585
+ if (u.frontmatter.subscribe !== !0 || En(u.frontmatter)) continue;
5586
+ const b = u.effectivePath === "/" ? "" : u.effectivePath, y = `${ve(u) ? `/${t.paths.guarded}/${rt(u)}` : ""}${b}/${An(0)}`;
5587
5587
  if (!ze.has(y)) continue;
5588
5588
  const f = {
5589
5589
  path: u.effectivePath,
@@ -5614,7 +5614,7 @@ function Ua(e) {
5614
5614
  }
5615
5615
  const b = (u.changelogEntries ?? []).filter((H) => !H.hidden);
5616
5616
  if (b.length === 0) continue;
5617
- const k = u.effectivePath === "/" ? "" : u.effectivePath, y = `${l}${we(t.base, k || "/")}`, f = ve(u) ? `/${t.paths.guarded}/${rt(u)}` : "", _ = (H) => `${f}${k}/${En(H)}`, C = b.map((H) => H.releaseDate ? new Date(H.releaseDate).getTime() : Number.NaN).filter((H) => !Number.isNaN(H)).sort((H, ne) => ne - H), $ = [];
5617
+ const k = u.effectivePath === "/" ? "" : u.effectivePath, y = `${l}${we(t.base, k || "/")}`, f = ve(u) ? `/${t.paths.guarded}/${rt(u)}` : "", _ = (H) => `${f}${k}/${An(H)}`, C = b.map((H) => H.releaseDate ? new Date(H.releaseDate).getTime() : Number.NaN).filter((H) => !Number.isNaN(H)).sort((H, ne) => ne - H), $ = [];
5618
5618
  for (let H = 0; H + 1 < C.length; H++) $.push(C[H] - C[H + 1]);
5619
5619
  const S = $.length ? Math.round($.reduce((H, ne) => H + ne, 0) / $.length / 1e3) : void 0, J = S ? Math.min(43200, Math.max(60, Math.round(S / 60))) : 1440, j = S ? S <= 172800 ? "daily" : S <= 1209600 ? "weekly" : S <= 5184e3 ? "monthly" : "yearly" : "weekly", O = C.length ? new Date(C[0]).toUTCString() : void 0, B = ye(u.frontmatter.title), W = ye(
5620
5620
  u.frontmatter.description ?? t.site?.description ?? u.frontmatter.title
@@ -5675,16 +5675,16 @@ function Ua(e) {
5675
5675
  } catch {
5676
5676
  return [];
5677
5677
  }
5678
- return u.filter((b) => U(l, b) !== i.filePath).map((b) => Se(process.cwd(), U(l, b)));
5678
+ return u.filter((b) => U(l, b) !== i.filePath).map((b) => je(process.cwd(), U(l, b)));
5679
5679
  }
5680
5680
  function rt(i) {
5681
5681
  const l = t.auth?.guard;
5682
- return typeof l == "function" ? l(i.frontmatter, Se(process.cwd(), i.filePath), fo(i)) : i.frontmatter.gate ?? "default";
5682
+ return typeof l == "function" ? l(i.frontmatter, je(process.cwd(), i.filePath), fo(i)) : i.frontmatter.gate ?? "default";
5683
5683
  }
5684
5684
  function ho() {
5685
5685
  const i = [];
5686
5686
  for (const l of s.values())
5687
- l.sidebarOnly || Ft(l.frontmatter) || ve(l) || i.push(l);
5687
+ l.sidebarOnly || Se(l.frontmatter) || ve(l) || i.push(l);
5688
5688
  return i;
5689
5689
  }
5690
5690
  function Ae(i) {
@@ -5692,7 +5692,7 @@ function Ua(e) {
5692
5692
  if (l)
5693
5693
  return l + we(t.base, i.startsWith("/") ? i : "/" + i);
5694
5694
  }
5695
- function on(i) {
5695
+ function nn(i) {
5696
5696
  if (Pt.has(i)) return Pt.get(i);
5697
5697
  let l;
5698
5698
  try {
@@ -5763,7 +5763,7 @@ function Ua(e) {
5763
5763
  description: $,
5764
5764
  url: S,
5765
5765
  isPartOf: q ? `${q}${we(t.base, "/")}#website` : void 0,
5766
- dateModified: on(i.filePath)
5766
+ dateModified: nn(i.filePath)
5767
5767
  }), k.jsonLd && V.push(k.jsonLd);
5768
5768
  for (const K of V) N.push(Zr(K));
5769
5769
  return `
@@ -5795,7 +5795,7 @@ function Ua(e) {
5795
5795
  '<?xml version="1.0" encoding="UTF-8"?>',
5796
5796
  '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">',
5797
5797
  i.map((k) => {
5798
- const y = `${l}${we(t.base, k.effectivePath === "/" ? "/" : k.effectivePath)}`, f = k.effectivePath.split("/").filter(Boolean).length, _ = f === 0 ? "1.0" : f === 1 ? "0.8" : "0.6", C = f === 0 ? "weekly" : "monthly", $ = on(k.filePath), S = [` <loc>${ye(y)}</loc>`];
5798
+ const y = `${l}${we(t.base, k.effectivePath === "/" ? "/" : k.effectivePath)}`, f = k.effectivePath.split("/").filter(Boolean).length, _ = f === 0 ? "1.0" : f === 1 ? "0.8" : "0.6", C = f === 0 ? "weekly" : "monthly", $ = nn(k.filePath), S = [` <loc>${ye(y)}</loc>`];
5799
5799
  $ && S.push(` <lastmod>${ye($)}</lastmod>`), S.push(` <changefreq>${C}</changefreq>`), S.push(` <priority>${_}</priority>`);
5800
5800
  for (const J of u)
5801
5801
  S.push(` <xhtml:link rel="alternate" hreflang="${ye(J)}" href="${ye(y)}"/>`);
@@ -5874,7 +5874,7 @@ ${S.join(`
5874
5874
  }
5875
5875
  }
5876
5876
  async function $o() {
5877
- const i = [...s.values()].filter((f) => !Ft(f.frontmatter) && ve(f)), l = {}, u = /* @__PURE__ */ new Map();
5877
+ const i = [...s.values()].filter((f) => !En(f.frontmatter) && ve(f)), l = {}, u = /* @__PURE__ */ new Map();
5878
5878
  for (const f of i) {
5879
5879
  const _ = rt(f);
5880
5880
  l[f.effectivePath] = { gate: f.frontmatter.gate, bundle: _, denied: f.frontmatter.gateDenied === void 0 ? void 0 : String(f.frontmatter.gateDenied) };
@@ -5919,8 +5919,8 @@ ${S.join(`
5919
5919
  }
5920
5920
  await me(
5921
5921
  U(C, "manifest.json"),
5922
- JSON.stringify({ shells: S, styles: $, sidebar: an(!0) })
5923
- ), await me(U(C, "search.json"), JSON.stringify(ln(!0, _))), y[f] = {
5922
+ JSON.stringify({ shells: S, styles: $, sidebar: rn(!0) })
5923
+ ), await me(U(C, "search.json"), JSON.stringify(cn(!0, _))), y[f] = {
5924
5924
  pages: Object.fromEntries(_.map((j) => [j.effectivePath, j.frontmatter.gate ?? ""])),
5925
5925
  files: J
5926
5926
  };
@@ -5960,11 +5960,11 @@ ${S.join(`
5960
5960
  if (!H) continue;
5961
5961
  const ne = String(H).trim();
5962
5962
  if (!ne) continue;
5963
- const ae = sn(T.filePath, ne);
5963
+ const ae = on(T.filePath, ne);
5964
5964
  if (!ae) continue;
5965
5965
  const ee = b.get(ae);
5966
5966
  if (!ee) continue;
5967
- const I = String(L?.version ?? ""), N = rn(L?.release_date), q = L?.status;
5967
+ const I = String(L?.version ?? ""), N = sn(L?.release_date), q = L?.status;
5968
5968
  let V, K = !1;
5969
5969
  if (typeof q == "string") {
5970
5970
  const se = q.trim().toLowerCase();
@@ -5989,11 +5989,11 @@ ${S.join(`
5989
5989
  }), B.set(ee.filePath, X);
5990
5990
  }
5991
5991
  const W = J.map((T) => {
5992
- const L = T.frontmatter.data, H = T.type, ne = rn(L?.date ?? L?.target_date);
5992
+ const L = T.frontmatter.data, H = T.type, ne = sn(L?.date ?? L?.target_date);
5993
5993
  let ae;
5994
5994
  const ee = L?.parent;
5995
5995
  if (typeof ee == "string" && ee.trim()) {
5996
- const X = sn(T.filePath, ee.trim());
5996
+ const X = on(T.filePath, ee.trim());
5997
5997
  X && b.has(X) && (ae = b.get(X).effectivePath);
5998
5998
  }
5999
5999
  const I = (B.get(T.filePath) ?? []).slice().sort(
@@ -6027,11 +6027,11 @@ ${S.join(`
6027
6027
  function So(i) {
6028
6028
  return i === "milestone" || i === "epic" || i === "feature" || i === "bug";
6029
6029
  }
6030
- function sn(i, l) {
6030
+ function on(i, l) {
6031
6031
  const u = Y(i), b = l.replace(/\\/g, "/").trim(), k = b.endsWith(".md") ? b : `${b}.md`;
6032
6032
  return G(u, k);
6033
6033
  }
6034
- function rn(i) {
6034
+ function sn(i) {
6035
6035
  if (i == null) return;
6036
6036
  if (i instanceof Date) return i.toISOString();
6037
6037
  const l = String(i).trim();
@@ -6055,10 +6055,10 @@ ${S.join(`
6055
6055
  return;
6056
6056
  }
6057
6057
  }
6058
- function an(i = !1) {
6058
+ function rn(i = !1) {
6059
6059
  const l = { children: /* @__PURE__ */ new Map() }, u = /* @__PURE__ */ new Map();
6060
6060
  for (const y of s.values()) {
6061
- if (c && (je(y.frontmatter) || !i && ve(y)) || y.type === "404" && !y.frontmatter.sidebar?.name) continue;
6061
+ if (c && (Se(y.frontmatter) || !i && ve(y)) || y.type === "404" && !y.frontmatter.sidebar?.name) continue;
6062
6062
  const f = y.frontmatter.sidebar;
6063
6063
  if (y.effectivePath === "/" && !f?.name) continue;
6064
6064
  const _ = y.effectivePath === "/" ? [f.path ?? f.name] : y.effectivePath.split("/").filter(Boolean), C = y.filePath.endsWith(`${ke}index.md`);
@@ -6091,7 +6091,7 @@ ${S.join(`
6091
6091
  function b(y) {
6092
6092
  const f = [];
6093
6093
  for (const $ of y.children.values()) f.push(b($));
6094
- if (Ut(f), y.page) {
6094
+ if (qt(f), y.page) {
6095
6095
  const $ = {
6096
6096
  text: Nn(y.page),
6097
6097
  link: y.page.linkTo ?? y.page.effectivePath,
@@ -6156,7 +6156,7 @@ ${S.join(`
6156
6156
  X = {
6157
6157
  text: se ? Nn(se) : Ve(Pe(K)),
6158
6158
  link: se?.effectivePath,
6159
- slug: `${y.page.slug}__${Se(O, K).split(ke).join("/")}`,
6159
+ slug: `${y.page.slug}__${je(O, K).split(ke).join("/")}`,
6160
6160
  order: q,
6161
6161
  items: []
6162
6162
  }, ne.set(K, X), H.push(X);
@@ -6178,8 +6178,8 @@ ${S.join(`
6178
6178
  order: -1
6179
6179
  }, O = (y.page.componentData?.stories ?? []).map((B, W) => ({
6180
6180
  text: B.sidebar?.name ?? B.name,
6181
- link: `${y.page.effectivePath}/${Rt(B.name)}`,
6182
- slug: `${y.page.slug}__story__${Rt(B.name)}`,
6181
+ link: `${y.page.effectivePath}/${Ft(B.name)}`,
6182
+ slug: `${y.page.slug}__story__${Ft(B.name)}`,
6183
6183
  icon: qe(B.sidebar?.icon, y.page.filePath),
6184
6184
  style: B.sidebar?.style,
6185
6185
  order: W
@@ -6203,7 +6203,7 @@ ${S.join(`
6203
6203
  }
6204
6204
  const k = [];
6205
6205
  for (const y of l.children.values()) k.push(b(y));
6206
- return Ut(k), k;
6206
+ return qt(k), k;
6207
6207
  }
6208
6208
  function jo(i) {
6209
6209
  return `tag-${Ie(i)}`;
@@ -6214,10 +6214,10 @@ ${S.join(`
6214
6214
  const u = l[t.tags?.map?.[i] ?? i] ?? l.default;
6215
6215
  return u ? qe(u, G(process.cwd(), "nimpress.config.json")) : void 0;
6216
6216
  }
6217
- function cn() {
6217
+ function an() {
6218
6218
  const i = /* @__PURE__ */ new Map();
6219
6219
  for (const l of s.values())
6220
- if (!(l.sidebarOnly || l.type === "404" || l.type === "tags") && !(c && (je(l.frontmatter) || ve(l))))
6220
+ if (!(l.sidebarOnly || l.type === "404" || l.type === "tags") && !(c && (Se(l.frontmatter) || ve(l))))
6221
6221
  for (const u of Re(l.frontmatter.tags)) {
6222
6222
  const b = i.get(u) ?? { name: u, slug: jo(u), icon: Po(u), pages: [] };
6223
6223
  b.pages.push({ slug: l.slug, title: l.frontmatter.title, path: l.effectivePath, description: l.frontmatter.description }), i.set(u, b);
@@ -6232,7 +6232,7 @@ ${S.join(`
6232
6232
  function Eo() {
6233
6233
  const i = {}, l = {};
6234
6234
  for (const [k, y] of s) {
6235
- if (c && (je(y.frontmatter) || ve(y)) || y.sidebarOnly) continue;
6235
+ if (c && (Se(y.frontmatter) || ve(y)) || y.sidebarOnly) continue;
6236
6236
  const f = {
6237
6237
  slug: k,
6238
6238
  path: y.effectivePath,
@@ -6244,29 +6244,29 @@ ${S.join(`
6244
6244
  order: y.frontmatter.order,
6245
6245
  hidden: mt(y.frontmatter),
6246
6246
  hide: y.type === "fullpage" ? Array.from(/* @__PURE__ */ new Set(["navigation", "path", "toc", "footer", ...y.frontmatter.hide ?? []])) : y.frontmatter.hide,
6247
- source: Se(n, y.filePath).split(ke).join("/"),
6247
+ source: je(n, y.filePath).split(ke).join("/"),
6248
6248
  tags: Re(y.frontmatter.tags),
6249
6249
  redirect: y.frontmatter.redirect,
6250
6250
  meta: y.frontmatter.meta
6251
6251
  };
6252
6252
  if (i[k] = f, l[y.effectivePath] = k, y.type === "component")
6253
6253
  for (const _ of y.componentData?.stories ?? [])
6254
- l[`${y.effectivePath}/${Rt(_.name)}`] = k;
6254
+ l[`${y.effectivePath}/${Ft(_.name)}`] = k;
6255
6255
  }
6256
6256
  const u = {}, b = Ao();
6257
6257
  b && (u["/"] = b);
6258
6258
  for (const k of s.values())
6259
- k.sidebarOnly || c && (je(k.frontmatter) || ve(k)) || k.pageCss && (u[k.effectivePath] = [u[k.effectivePath], k.pageCss].filter(Boolean).join(`
6259
+ k.sidebarOnly || c && (Se(k.frontmatter) || ve(k)) || k.pageCss && (u[k.effectivePath] = [u[k.effectivePath], k.pageCss].filter(Boolean).join(`
6260
6260
  `));
6261
- return { pages: i, byPath: l, sidebar: an(), styles: u, tags: cn(), glossary: g };
6261
+ return { pages: i, byPath: l, sidebar: rn(), styles: u, tags: an(), glossary: g };
6262
6262
  }
6263
- function ln(i = !1, l) {
6263
+ function cn(i = !1, l) {
6264
6264
  const u = [], b = l ? l.map((k) => [k.slug, k]) : s;
6265
6265
  for (const [k, y] of b) {
6266
6266
  if (y.sidebarOnly || y.type === "404") continue;
6267
6267
  if (i) {
6268
- if (je(y.frontmatter) || !ve(y)) continue;
6269
- } else if (c && (je(y.frontmatter) || ve(y))) continue;
6268
+ if (Se(y.frontmatter) || !ve(y)) continue;
6269
+ } else if (c && (Se(y.frontmatter) || ve(y))) continue;
6270
6270
  const f = y.rawText.replace(/```[\s\S]*?```/g, "").replace(/[#*`>_\[\]\(\)]/g, " "), _ = y.type === "openapi" ? Co(y.openApiSpec) : "", C = y.type === "roadmap" ? Oo(y.roadmapEntries ?? []) : "", $ = y.componentData ? [
6271
6271
  y.componentData.component,
6272
6272
  y.componentData.system,
@@ -6289,7 +6289,7 @@ ${S.join(`
6289
6289
  }
6290
6290
  return u;
6291
6291
  }
6292
- function pn(i) {
6292
+ function ln(i) {
6293
6293
  return i ? i.replace(/<[^>]+>/g, " ").replace(/&[a-z]+;/gi, " ") : "";
6294
6294
  }
6295
6295
  function Co(i) {
@@ -6313,7 +6313,7 @@ ${S.join(`
6313
6313
  }
6314
6314
  for (const [$, S] of Object.entries(f)) {
6315
6315
  if ($ === "description_html" || $ === "summary_html" || $ === "requestBodyHtml") {
6316
- typeof S == "string" && u.push(pn(S));
6316
+ typeof S == "string" && u.push(ln(S));
6317
6317
  continue;
6318
6318
  }
6319
6319
  u.push($), y(S, _ + 1);
@@ -6340,7 +6340,7 @@ ${S.join(`
6340
6340
  function Oo(i) {
6341
6341
  const l = [];
6342
6342
  for (const u of i) {
6343
- l.push(u.slug, u.kind, u.title), u.description && l.push(u.description), u.targetDate && l.push(u.targetDate), u.html && l.push(pn(u.html));
6343
+ l.push(u.slug, u.kind, u.title), u.description && l.push(u.description), u.targetDate && l.push(u.targetDate), u.html && l.push(ln(u.html));
6344
6344
  for (const b of u.changelog)
6345
6345
  l.push(b.version, b.title), b.description && l.push(b.description), b.releaseDate && l.push(b.releaseDate);
6346
6346
  }
@@ -6359,7 +6359,7 @@ ${S.join(`
6359
6359
  function De(i) {
6360
6360
  return i === "" ? "__root__" : i;
6361
6361
  }
6362
- function un(i) {
6362
+ function pn(i) {
6363
6363
  return i === "__root__" ? "" : i;
6364
6364
  }
6365
6365
  function at(i) {
@@ -6377,7 +6377,7 @@ ${S.join(`
6377
6377
  function Do() {
6378
6378
  const i = [];
6379
6379
  for (const [l, u] of s) {
6380
- if (u.sidebarOnly || c && (je(u.frontmatter) || ve(u))) continue;
6380
+ if (u.sidebarOnly || c && (Se(u.frontmatter) || ve(u))) continue;
6381
6381
  const b = `${Ge}${De(l)}.svelte`;
6382
6382
  i.push(` ${JSON.stringify(l)}: () => import(${JSON.stringify(b)})`);
6383
6383
  }
@@ -6391,7 +6391,7 @@ export default pages
6391
6391
  function Mo() {
6392
6392
  const i = [];
6393
6393
  for (const [l, u] of s) {
6394
- if (u.sidebarOnly || c && (je(u.frontmatter) || ve(u))) continue;
6394
+ if (u.sidebarOnly || c && (Se(u.frontmatter) || ve(u))) continue;
6395
6395
  const b = `${We}${De(l)}.js`;
6396
6396
  i.push(` ${JSON.stringify(l)}: () => import(${JSON.stringify(b)})`);
6397
6397
  }
@@ -6403,7 +6403,7 @@ export default bodies
6403
6403
  `;
6404
6404
  }
6405
6405
  function To(i) {
6406
- if (i.type === "tags") return [...i.headings, ...cn().map((l) => ({ level: 2, text: l.name, slug: l.slug }))];
6406
+ if (i.type === "tags") return [...i.headings, ...an().map((l) => ({ level: 2, text: l.name, slug: l.slug }))];
6407
6407
  if (i.type === "glossary") return [...i.headings, ...g.map((l) => ({ level: 2, text: l.term, slug: l.slug }))];
6408
6408
  if (i.type === "team") {
6409
6409
  const l = i.frontmatter.data?.members ?? [];
@@ -6525,7 +6525,7 @@ ${C}
6525
6525
  async closeBundle(i) {
6526
6526
  if (!c || i) return;
6527
6527
  const l = U(a, "index.html"), u = U(a, "404.html");
6528
- if (await mn(l, u), await me(U(a, ".nojekyll"), ""), fe(n) && await fn(n, a, {
6528
+ if (await un(l, u), await me(U(a, ".nojekyll"), ""), fe(n) && await mn(n, a, {
6529
6529
  recursive: !0,
6530
6530
  filter: (k) => {
6531
6531
  try {
@@ -6536,15 +6536,15 @@ ${C}
6536
6536
  }
6537
6537
  }), fe(o)) {
6538
6538
  const k = U(a, t.assetUrlBase.replace(/^\//, ""));
6539
- await fn(o, k, { recursive: !0 });
6539
+ await mn(o, k, { recursive: !0 });
6540
6540
  }
6541
6541
  for (const [k, y] of ze) {
6542
6542
  const f = U(a, k.replace(/^\//, ""));
6543
6543
  await Ue(Y(f), { recursive: !0 }), await me(f, y);
6544
6544
  }
6545
6545
  await me(U(a, "subscribe.map.json"), jt), await ko();
6546
- const b = Array.from(s.values()).find((k) => k.type === "404" && !je(k.frontmatter) && !ve(k));
6547
- b && await mn(U(a, b.effectivePath.replace(/^\//, ""), "index.html"), U(a, "404.html")), await $o();
6546
+ const b = Array.from(s.values()).find((k) => k.type === "404" && !Se(k.frontmatter) && !ve(k));
6547
+ b && await un(U(a, b.effectivePath.replace(/^\//, ""), "index.html"), U(a, "404.html")), await $o();
6548
6548
  },
6549
6549
  configureServer(i) {
6550
6550
  p = i, i.watcher.add(n), i.watcher.add(o);
@@ -6614,7 +6614,7 @@ ${C}
6614
6614
  }, k = t.assetUrlBase, y = (f, _, C) => {
6615
6615
  if (!_ || _.endsWith(".md")) return !1;
6616
6616
  const $ = U(f, decodeURIComponent(_));
6617
- return !$.startsWith(f) || !fe($) || !gt($).isFile() ? !1 : (C.setHeader("Content-Type", b[Gt($).toLowerCase()] ?? "application/octet-stream"), Ro($).pipe(C), !0);
6617
+ return !$.startsWith(f) || !fe($) || !gt($).isFile() ? !1 : (C.setHeader("Content-Type", b[Jt($).toLowerCase()] ?? "application/octet-stream"), Ro($).pipe(C), !0);
6618
6618
  };
6619
6619
  return i.middlewares.use((f, _, C) => {
6620
6620
  const $ = (f.url ?? "").split("?")[0], S = os(t.base, $);
@@ -6675,7 +6675,7 @@ ${C}
6675
6675
  const L = Bo(
6676
6676
  {
6677
6677
  host: "127.0.0.1",
6678
- port: qt(t.modules, W),
6678
+ port: zt(t.modules, W),
6679
6679
  path: `${S}${(f.url ?? "").includes("?") ? `?${(f.url ?? "").split("?").slice(1).join("?")}` : ""}`,
6680
6680
  method: f.method,
6681
6681
  headers: f.headers
@@ -6774,18 +6774,18 @@ app.mount(target)
6774
6774
  `;
6775
6775
  }
6776
6776
  if (i === "\0" + lt)
6777
- return `export default ${JSON.stringify(ln())}`;
6777
+ return `export default ${JSON.stringify(cn())}`;
6778
6778
  if (i === "\0" + pt)
6779
6779
  return Do();
6780
6780
  if (i === "\0" + ut)
6781
6781
  return Mo();
6782
6782
  if (i.startsWith(Ge) && i.endsWith(".svelte")) {
6783
6783
  const l = i.slice(Ge.length, -7);
6784
- return Fo(un(l));
6784
+ return Fo(pn(l));
6785
6785
  }
6786
6786
  if (i.startsWith(We) && i.endsWith(".js")) {
6787
6787
  const l = i.slice(We.length, -3);
6788
- return No(un(l));
6788
+ return No(pn(l));
6789
6789
  }
6790
6790
  return null;
6791
6791
  }
@@ -6795,7 +6795,7 @@ function ki(e) {
6795
6795
  return e;
6796
6796
  }
6797
6797
  async function $i(e, t) {
6798
- const n = G(e, t), o = await nn(n), s = [];
6798
+ const n = G(e, t), o = await tn(n), s = [];
6799
6799
  for (const r of o) {
6800
6800
  let a;
6801
6801
  try {
@@ -6806,7 +6806,7 @@ async function $i(e, t) {
6806
6806
  const { data: c, content: p } = _t(a);
6807
6807
  typeof c.type == "number" && (c.type = String(c.type));
6808
6808
  for (const d of ao(c, p))
6809
- s.push(`${Se(n, r).split(ke).join("/")}: ${d}`);
6809
+ s.push(`${je(n, r).split(ke).join("/")}: ${d}`);
6810
6810
  }
6811
6811
  return s;
6812
6812
  }
@@ -6822,16 +6822,16 @@ export {
6822
6822
  Mn as I,
6823
6823
  Oa as J,
6824
6824
  zr as a,
6825
- Qt as b,
6825
+ Zt as b,
6826
6826
  xt as c,
6827
6827
  Ke as d,
6828
- $n as e,
6829
- Sn as f,
6828
+ kn as e,
6829
+ xn as f,
6830
6830
  Je as g,
6831
6831
  gi as h,
6832
6832
  Xr as i,
6833
6833
  bi as j,
6834
- qt as k,
6834
+ zt as k,
6835
6835
  oa as l,
6836
6836
  $i as m,
6837
6837
  Ea as n,
@@ -6843,7 +6843,7 @@ export {
6843
6843
  _i as t,
6844
6844
  vr as u,
6845
6845
  di as v,
6846
- tn as w,
6846
+ en as w,
6847
6847
  wi as x,
6848
6848
  yi as y,
6849
6849
  Dr as z
package/dist/plugin.es.js CHANGED
@@ -13,7 +13,7 @@ import "markdown-it-container";
13
13
  import "markdown-it-deflist";
14
14
  import "markdown-it-footnote";
15
15
  import "markdown-it-task-lists";
16
- import { C as O, F as P, n as T, G as V, H as b, m as h, E as x, I as y, J as B, A as D, B as E, l as F } from "./plugin-CnifGnSA.js";
16
+ import { C as O, F as P, n as T, G as V, H as b, m as h, E as x, I as y, J as B, A as D, B as E, l as F } from "./plugin-Cdb4soOD.js";
17
17
  import "zod";
18
18
  import "yaml";
19
19
  import "shiki";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimtech/nimpress",
3
- "version": "2.6.13",
3
+ "version": "2.6.14",
4
4
  "description": "Svelte 5 docs framework that supports it all.",
5
5
  "author": "nimling",
6
6
  "license": "Apache-2.0",