@tdacorp/hyle-sdk 0.21.0 → 0.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/README.md +110 -18
  2. package/dist/check-routes-bin.js +154 -42
  3. package/dist/{chunk-X2TLYM7Y.js → chunk-7T5EEJHK.js} +1 -1
  4. package/dist/chunk-DUPT6XLB.js +57 -0
  5. package/dist/{chunk-56Y24XBV.js → chunk-IW3TUD4G.js} +4 -3
  6. package/dist/{chunk-75JFLML4.js → chunk-KU7LWK4E.js} +75 -12
  7. package/dist/{chunk-K5VDLROQ.js → chunk-SFFBZFEN.js} +34 -1
  8. package/dist/{chunk-HJX57NLI.js → chunk-ZIW6FDU2.js} +246 -225
  9. package/dist/{client-LwzHwqpM.d.ts → client-BGjmEWhN.d.cts} +7 -1
  10. package/dist/{client-41fU6OY2.d.cts → client-D0LTpr3Y.d.ts} +7 -1
  11. package/dist/code-copy.cjs +4 -2
  12. package/dist/code-copy.d.cts +5 -2
  13. package/dist/code-copy.d.ts +5 -2
  14. package/dist/code-copy.js +5 -3
  15. package/dist/comments.cjs +11 -6
  16. package/dist/comments.js +11 -6
  17. package/dist/docs-enhance.cjs +7 -4
  18. package/dist/docs-enhance.d.cts +5 -3
  19. package/dist/docs-enhance.d.ts +5 -3
  20. package/dist/docs-enhance.js +8 -5
  21. package/dist/{embed-BUFRQboD.d.ts → embed-CbtsbZs3.d.cts} +4 -2
  22. package/dist/{embed-CYt-q13P.d.cts → embed-Cf_2ZR5x.d.ts} +4 -2
  23. package/dist/html.cjs +11 -6
  24. package/dist/html.d.cts +1 -1
  25. package/dist/html.d.ts +1 -1
  26. package/dist/html.js +2 -2
  27. package/dist/index.cjs +65 -12
  28. package/dist/index.d.cts +13 -11
  29. package/dist/index.d.ts +13 -11
  30. package/dist/index.js +2 -2
  31. package/dist/mermaid-diagram.cjs +46 -6
  32. package/dist/mermaid-diagram.js +15 -6
  33. package/dist/mermaid-image.cjs +4 -1
  34. package/dist/mermaid-image.js +1 -1
  35. package/dist/next.cjs +410 -241
  36. package/dist/next.d.cts +39 -17
  37. package/dist/next.d.ts +39 -17
  38. package/dist/next.js +116 -32
  39. package/dist/print-coordinator.js +1 -1
  40. package/dist/react.cjs +230 -197
  41. package/dist/react.d.cts +17 -6
  42. package/dist/react.d.ts +17 -6
  43. package/dist/react.js +5 -3
  44. package/dist/{resolve-eI1muCKL.d.cts → resolve-BnIv7aB7.d.cts} +1 -1
  45. package/dist/{resolve-BjAK0k_Y.d.ts → resolve-BysHtZ_i.d.ts} +1 -1
  46. package/dist/{sanitize-ijiWjEm9.d.cts → sanitize-BpY_AdZh.d.cts} +1 -1
  47. package/dist/{sanitize-ijiWjEm9.d.ts → sanitize-BpY_AdZh.d.ts} +1 -1
  48. package/dist/styles.css +4 -4
  49. package/dist/toc-spy.cjs +2 -1
  50. package/dist/toc-spy.js +2 -1
  51. package/dist/{types-3F0wqD-o.d.cts → types-D09Z072G.d.cts} +32 -1
  52. package/dist/{types-3F0wqD-o.d.ts → types-D09Z072G.d.ts} +32 -1
  53. package/dist/use-cache.cjs +53 -3
  54. package/dist/use-cache.d.cts +3 -3
  55. package/dist/use-cache.d.ts +3 -3
  56. package/dist/use-cache.js +3 -3
  57. package/package.json +3 -3
  58. package/dist/chunk-67IOIAVW.js +0 -35
package/dist/react.cjs CHANGED
@@ -29,6 +29,7 @@ __export(react_exports, {
29
29
  HyleBody: () => HyleBody,
30
30
  HyleListView: () => HyleListView,
31
31
  HyleReactions: () => import_reactions.HyleReactions,
32
+ HyleTheme: () => HyleTheme,
32
33
  HyleToc: () => HyleToc,
33
34
  ListPage: () => ListPage,
34
35
  MermaidDiagram: () => import_mermaid_diagram2.MermaidDiagram,
@@ -57,12 +58,25 @@ var import_jsx_runtime2 = require("react/jsx-runtime");
57
58
  // src/asset-path.ts
58
59
  var ASSET_ROUTE_PREFIX = "/api/hyle/assets";
59
60
  var UUID = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}";
60
- var EXTENSIONS = "png|jpg|gif|webp|svg|pdf|mp4|webm|mp3|ogg";
61
+ var EXTENSIONS = "png|jpg|gif|webp|svg|pdf|mp4|webm|mp3|ogg|woff2";
61
62
  var ASSET_FILE = new RegExp(`^${UUID}(?:\\.(?:${EXTENSIONS}))?$`);
62
- var HYLE_ASSET_URL = new RegExp(`^/assets/(${UUID}(?:\\.(?:${EXTENSIONS}))?)$`, "i");
63
+ var THEME_FILE = /^theme-([0-9a-f]{16})-([0-9a-f]{64})\.css$/;
64
+ var THEME_FONT = new RegExp(`^/assets/${UUID}\\.woff2$`);
65
+ function themeStylesheetHref({ scope, hash }) {
66
+ const file = `theme-${scope}-${hash}.css`;
67
+ return THEME_FILE.test(file) ? `${ASSET_ROUTE_PREFIX}/${file}` : void 0;
68
+ }
69
+ function themeFontHrefs(preload) {
70
+ return preload.flatMap((src) => typeof src === "string" && THEME_FONT.test(src) ? [hostAssetSrc(src)] : []);
71
+ }
72
+ var PREVIEW_TOKEN_SOURCE = "hyle_pv_[A-Za-z0-9_-]{43}";
73
+ var PREVIEW_TOKEN = new RegExp(`^${PREVIEW_TOKEN_SOURCE}$`);
74
+ var PREVIEW_PARAM = "hyle_preview";
75
+ var PREVIEW_QUERY_SOURCE = `\\?${PREVIEW_PARAM}=${PREVIEW_TOKEN_SOURCE}`;
76
+ var HYLE_ASSET_URL = new RegExp(`^/assets/(${UUID}(?:\\.(?:${EXTENSIONS}))?)(${PREVIEW_QUERY_SOURCE})?$`, "i");
63
77
  function hostAssetSrc(src) {
64
- const file = HYLE_ASSET_URL.exec(src)?.[1];
65
- return file ? `${ASSET_ROUTE_PREFIX}/${file.toLowerCase()}` : src;
78
+ const [, file, query = ""] = HYLE_ASSET_URL.exec(src) ?? [];
79
+ return file ? `${ASSET_ROUTE_PREFIX}/${file.toLowerCase()}${query}` : src;
66
80
  }
67
81
  function hostAssetHtml(html) {
68
82
  return html.replace(new RegExp(`(\\ssrc=")(/assets/${UUID}(?:\\.(?:${EXTENSIONS}))?)(")`, "gi"), (_m, open, url, close) => `${open}${hostAssetSrc(url)}${close}`);
@@ -202,7 +216,7 @@ var ENTITIES = { "&#x3c;": "<", "&#x26;": "&", "&lt;": "<", "&gt;": ">", "&amp;"
202
216
  function mermaidSource(srcDoc) {
203
217
  return MERMAID_SRCDOC.exec(srcDoc)?.[1]?.replace(/&(?:#x3c|#x26|#x27|lt|gt|amp|quot);/gi, (e) => ENTITIES[e.toLowerCase()]);
204
218
  }
205
- var RENDER_REF = /^(\/assets\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\.svg) ([1-9]\d{0,5}) ([1-9]\d{0,5})$/;
219
+ var RENDER_REF = new RegExp(`^(/assets/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\.svg(?:${PREVIEW_QUERY_SOURCE})?) ([1-9]\\d{0,5}) ([1-9]\\d{0,5})$`);
206
220
  var isRenderRef = matches(RENDER_REF);
207
221
  function diagramRender(value) {
208
222
  const m = typeof value === "string" ? RENDER_REF.exec(value) : null;
@@ -339,7 +353,7 @@ function sanitizeHast(tree, title, description) {
339
353
  const [first] = elements;
340
354
  const skip = title !== void 0 && isObject(first) && first.tagName === "h1" && collapse(textOf(first)) === collapse(title) ? first : void 0;
341
355
  const lead = elements[skip ? 1 : 0];
342
- const repeat = description && isObject(lead) && lead.tagName === "p" && collapse(textOf(lead)).startsWith(collapse(description)) && !holdsEmbed(lead) ? lead : void 0;
356
+ const repeat = description && isObject(lead) && lead.tagName === "p" && collapse(textOf(lead)) === collapse(description) && !holdsEmbed(lead) ? lead : void 0;
343
357
  const budget = { nodes: 0, text: 0 };
344
358
  return { type: "root", children: raw.filter((n) => n !== skip && n !== repeat).flatMap((n) => clean(n, 0, { katex: false }, budget)) };
345
359
  }
@@ -1166,47 +1180,62 @@ var import_print_coordinator = require("./print-coordinator.cjs");
1166
1180
  // src/react/pages.tsx
1167
1181
  var import_comments = require("./comments.cjs");
1168
1182
 
1169
- // src/react/embed.tsx
1183
+ // src/react/theme.tsx
1170
1184
  var import_jsx_runtime5 = require("react/jsx-runtime");
1171
- function HyleListView({ items, layout = "list", title, headingLevel = 2, moreHref, olderHref, ...base }) {
1185
+ function HyleTheme({ theme }) {
1186
+ const href = theme ? themeStylesheetHref(theme) : void 0;
1187
+ if (!href) return null;
1188
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
1189
+ themeFontHrefs(Array.isArray(theme?.preload) ? theme.preload : []).map((font) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("link", { rel: "preload", as: "font", type: "font/woff2", href: font, crossOrigin: "anonymous" }, font)),
1190
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("link", { rel: "stylesheet", href, precedence: "hyle-theme" })
1191
+ ] });
1192
+ }
1193
+
1194
+ // src/react/embed.tsx
1195
+ var import_jsx_runtime6 = require("react/jsx-runtime");
1196
+ function HyleListView({ items, layout = "list", title, headingLevel = 2, moreHref, olderHref, theme, ...base }) {
1172
1197
  const c = ctx(base, "en");
1173
1198
  const { s, Link } = c;
1174
1199
  const Row = base.slots?.["list.item"];
1175
1200
  const Heading = `h${headingLevel}`;
1176
1201
  const safe = items.filter((item) => item.canonical_path.startsWith("/"));
1177
- if (safe.length === 0) return base.slots?.["list.empty"] ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "hyle hyle-embed", "data-layout": layout, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Slot, { name: "list.empty", slots: base.slots }) }) : null;
1178
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "hyle hyle-embed", "data-layout": layout, lang: c.locale, children: [
1179
- title ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Heading, { className: "hyle-title", children: title }) : null,
1180
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("ul", { className: "hyle-items", children: safe.map((item) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("li", { children: Row ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Row, { item, href: c.href(item.canonical_path), locale: c.locale }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Link, { className: "hyle-item", href: c.href(item.canonical_path), children: [
1181
- item.published_at ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("time", { dateTime: item.published_at, title: item.published_at, children: formatDate(item.published_at, c.locale) }) : null,
1182
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { children: [
1183
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "t", children: item.title }),
1184
- item.description ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { children: item.description }) : null
1202
+ if (safe.length === 0) return base.slots?.["list.empty"] ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "hyle hyle-embed", "data-layout": layout, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Slot, { name: "list.empty", slots: base.slots }) }) : null;
1203
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "hyle hyle-embed", "data-layout": layout, lang: c.locale, children: [
1204
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(HyleTheme, { theme }),
1205
+ title ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Heading, { className: "hyle-title", children: title }) : null,
1206
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("ul", { className: "hyle-items", children: safe.map((item) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("li", { children: Row ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Row, { item, href: c.href(item.canonical_path), locale: c.locale }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Link, { className: "hyle-item", href: c.href(item.canonical_path), children: [
1207
+ item.published_at ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("time", { dateTime: item.published_at, title: item.published_at, children: formatDate(item.published_at, c.locale) }) : null,
1208
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { children: [
1209
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "t", children: item.title }),
1210
+ item.description ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { children: item.description }) : null
1185
1211
  ] })
1186
1212
  ] }) }, item.canonical_path)) }),
1187
- olderHref ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(OlderNav, { href: olderHref, c }) : null,
1188
- moreHref ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("a", { className: "hyle-more", href: moreHref, children: s.viewAll }) : null
1213
+ olderHref ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(OlderNav, { href: olderHref, c }) : null,
1214
+ moreHref ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("a", { className: "hyle-more", href: moreHref, children: s.viewAll }) : null
1189
1215
  ] });
1190
1216
  }
1191
1217
  function HyleArticleView({ article, headingLevel = 2, ...base }) {
1192
1218
  const { publication: pub } = article;
1193
1219
  const c = ctx(base, pub.locale);
1194
1220
  const Heading = `h${headingLevel}`;
1195
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "hyle hyle-embed", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("article", { lang: c.locale, children: [
1196
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("header", { className: "hyle-head", children: [
1197
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Heading, { className: "hyle-title", children: pub.title }),
1198
- pub.description ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "hyle-desc", children: pub.description }) : null,
1199
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "hyle-meta", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("time", { dateTime: pub.published_at, title: pub.published_at, children: formatDate(pub.published_at, c.locale) }) }) })
1200
- ] }),
1201
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Body, { article, components: base.components, locale: c.locale }),
1202
- pub.canonical_path.startsWith("/") ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("a", { className: "hyle-more", href: c.href(pub.canonical_path, pub.locale), rel: "bookmark", children: [
1203
- c.s.readAtSource,
1204
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "hyle-sr", children: [
1205
- ": ",
1206
- pub.title
1207
- ] })
1208
- ] }) : null
1209
- ] }) });
1221
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "hyle hyle-embed", children: [
1222
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(HyleTheme, { theme: article.theme }),
1223
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("article", { lang: c.locale, children: [
1224
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("header", { className: "hyle-head", children: [
1225
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Heading, { className: "hyle-title", children: pub.title }),
1226
+ pub.description ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "hyle-desc", children: pub.description }) : null,
1227
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "hyle-meta", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("time", { dateTime: pub.published_at, title: pub.published_at, children: formatDate(pub.published_at, c.locale) }) }) })
1228
+ ] }),
1229
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Body, { article, components: base.components, locale: c.locale }),
1230
+ pub.canonical_path.startsWith("/") ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("a", { className: "hyle-more", href: c.href(pub.canonical_path, pub.locale), rel: "bookmark", children: [
1231
+ c.s.readAtSource,
1232
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "hyle-sr", children: [
1233
+ ": ",
1234
+ pub.title
1235
+ ] })
1236
+ ] }) : null
1237
+ ] })
1238
+ ] });
1210
1239
  }
1211
1240
 
1212
1241
  // src/react/seo.ts
@@ -1312,13 +1341,16 @@ function listJsonLd({ list, origin, href, path, locale, description, jsonLd, cur
1312
1341
 
1313
1342
  // src/react/pages.tsx
1314
1343
  var import_toc_spy = require("./toc-spy.cjs");
1315
- var import_jsx_runtime6 = require("react/jsx-runtime");
1344
+ var import_jsx_runtime7 = require("react/jsx-runtime");
1316
1345
  function Slot({ name, slots, tag: Tag = "div", className }) {
1317
1346
  const fill = slots?.[name];
1318
- return fill ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Tag, { "data-slot": name, className, children: fill }) : null;
1347
+ return fill ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Tag, { "data-slot": name, className, children: fill }) : null;
1319
1348
  }
1320
- function Shell({ children }) {
1321
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "hyle", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "hyle-page", children }) });
1349
+ function Shell({ children, theme }) {
1350
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
1351
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(HyleTheme, { theme }),
1352
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "hyle", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "hyle-page", children }) })
1353
+ ] });
1322
1354
  }
1323
1355
  function ctx(p, fallbackLocale) {
1324
1356
  const locale = p.locale ?? fallbackLocale;
@@ -1327,29 +1359,29 @@ function ctx(p, fallbackLocale) {
1327
1359
  function Pager({ prev, next, c }) {
1328
1360
  if (!prev && !next) return null;
1329
1361
  const { Link, s } = c;
1330
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("nav", { className: "hyle-pager", "aria-label": s.pager, children: [
1331
- prev ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Link, { href: c.href(prev.canonical_path), rel: "prev", children: [
1332
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "dir", children: [
1333
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "chev-left" }),
1362
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("nav", { className: "hyle-pager", "aria-label": s.pager, children: [
1363
+ prev ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Link, { href: c.href(prev.canonical_path), rel: "prev", children: [
1364
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { className: "dir", children: [
1365
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "chev-left" }),
1334
1366
  s.prev
1335
1367
  ] }),
1336
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "ttl", children: prev.title })
1337
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "none", "aria-hidden": "true" }),
1338
- next ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Link, { href: c.href(next.canonical_path), rel: "next", className: "next", children: [
1339
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "dir", children: [
1368
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "ttl", children: prev.title })
1369
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "none", "aria-hidden": "true" }),
1370
+ next ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Link, { href: c.href(next.canonical_path), rel: "next", className: "next", children: [
1371
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { className: "dir", children: [
1340
1372
  s.next,
1341
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "chev" })
1373
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "chev" })
1342
1374
  ] }),
1343
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "ttl", children: next.title })
1375
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "ttl", children: next.title })
1344
1376
  ] }) : null
1345
1377
  ] });
1346
1378
  }
1347
1379
  function OlderNav({ href, c }) {
1348
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("nav", { className: "hyle-pagination", "aria-label": c.s.pager, children: [
1349
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "sp" }),
1350
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(c.Link, { className: "hyle-btn sm", href, rel: "next", children: [
1380
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("nav", { className: "hyle-pagination", "aria-label": c.s.pager, children: [
1381
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "sp" }),
1382
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(c.Link, { className: "hyle-btn sm", href, rel: "next", children: [
1351
1383
  c.s.older,
1352
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "chev" })
1384
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "chev" })
1353
1385
  ] })
1354
1386
  ] });
1355
1387
  }
@@ -1360,9 +1392,9 @@ function TocList({ toc }) {
1360
1392
  if (entry.depth === 3 && last) last.subs.push(entry);
1361
1393
  else groups.push({ entry, subs: [] });
1362
1394
  }
1363
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("ul", { children: groups.map(({ entry, subs }) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("li", { children: [
1364
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("a", { href: `#${scopeId(entry.id)}`, children: entry.text }),
1365
- subs.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("ul", { children: subs.map((sub) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("a", { href: `#${scopeId(sub.id)}`, children: sub.text }) }, sub.id)) }) : null
1395
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("ul", { children: groups.map(({ entry, subs }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("li", { children: [
1396
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("a", { href: `#${scopeId(entry.id)}`, children: entry.text }),
1397
+ subs.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("ul", { children: subs.map((sub) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("a", { href: `#${scopeId(sub.id)}`, children: sub.text }) }, sub.id)) }) : null
1366
1398
  ] }, entry.id)) });
1367
1399
  }
1368
1400
  function Toc({ toc, c, aside, spy, className }) {
@@ -1371,21 +1403,21 @@ function Toc({ toc, c, aside, spy, className }) {
1371
1403
  const { s } = c;
1372
1404
  const classes = (own) => className ? `${className} ${own}` : own;
1373
1405
  return {
1374
- narrow: entries.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("details", { className: classes("hyle-toc-m"), children: [
1375
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("summary", { children: [
1376
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "file" }),
1406
+ narrow: entries.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("details", { className: classes("hyle-toc-m"), children: [
1407
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("summary", { children: [
1408
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "file" }),
1377
1409
  s.toc,
1378
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "chev-down", className: "hyle-chev" })
1410
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "chev-down", className: "hyle-chev" })
1379
1411
  ] }),
1380
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("nav", { className: "hyle-toc-list", "aria-label": s.toc, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TocList, { toc: entries }) })
1412
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("nav", { className: "hyle-toc-list", "aria-label": s.toc, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TocList, { toc: entries }) })
1381
1413
  ] }),
1382
- wide: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("aside", { className: classes("hyle-toc-d"), "aria-label": s.toc, children: [
1383
- entries.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1384
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "hyle-toc-title", children: s.toc }),
1385
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("nav", { className: "hyle-toc-list", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TocList, { toc: entries }) })
1414
+ wide: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("aside", { className: classes("hyle-toc-d"), "aria-label": s.toc, children: [
1415
+ entries.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
1416
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "hyle-toc-title", children: s.toc }),
1417
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("nav", { className: "hyle-toc-list", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TocList, { toc: entries }) })
1386
1418
  ] }),
1387
1419
  aside,
1388
- spy && entries.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_toc_spy.TocSpy, { ids: entries.map((t) => scopeId(t.id)) }) : null
1420
+ spy && entries.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_toc_spy.TocSpy, { ids: entries.map((t) => scopeId(t.id)) }) : null
1389
1421
  ] })
1390
1422
  };
1391
1423
  }
@@ -1397,27 +1429,27 @@ function Body({ article, components, locale }) {
1397
1429
  const { content, publication } = article;
1398
1430
  const lang = article.fallback ? void 0 : publication.locale;
1399
1431
  if (content.format === "hast") {
1400
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ProseBody, { className: "hyle-body hyle-prose", lang, tree: content.tree, title: publication.title, description: publication.description, components: components ?? {}, locale });
1432
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ProseBody, { className: "hyle-body hyle-prose", lang, tree: content.tree, title: publication.title, description: publication.description, components: components ?? {}, locale });
1401
1433
  }
1402
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "hyle-body hyle-prose", lang, children: content.format === "html" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TrustedServerHtml, { html: content.html }) : null });
1434
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "hyle-body hyle-prose", lang, children: content.format === "html" ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TrustedServerHtml, { html: content.html }) : null });
1403
1435
  }
1404
1436
  function Languages({ alternates, current, c }) {
1405
1437
  if (alternates.length < 2) return null;
1406
1438
  const { Link, s } = c;
1407
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("nav", { className: "hyle-langs", "aria-label": s.languages, children: [
1408
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: s.readIn }),
1409
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("ul", { children: alternates.map((a) => {
1439
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("nav", { className: "hyle-langs", "aria-label": s.languages, children: [
1440
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: s.readIn }),
1441
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("ul", { children: alternates.map((a) => {
1410
1442
  const label = languageName(a.locale, a.locale);
1411
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("li", { children: a.locale === current ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("a", { href: c.href(a.canonical_path, a.locale), hrefLang: a.locale, lang: a.locale, "aria-current": "true", children: label }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Link, { href: c.href(a.canonical_path, a.locale), hrefLang: a.locale, lang: a.locale, children: label }) }, a.locale);
1443
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("li", { children: a.locale === current ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("a", { href: c.href(a.canonical_path, a.locale), hrefLang: a.locale, lang: a.locale, "aria-current": "true", children: label }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Link, { href: c.href(a.canonical_path, a.locale), hrefLang: a.locale, lang: a.locale, children: label }) }, a.locale);
1412
1444
  }) })
1413
1445
  ] });
1414
1446
  }
1415
1447
  function LdScript({ json }) {
1416
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("script", { type: "application/ld+json", dangerouslySetInnerHTML: { __html: json } });
1448
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("script", { type: "application/ld+json", dangerouslySetInnerHTML: { __html: json } });
1417
1449
  }
1418
1450
  function Crumbs({ items, c }) {
1419
1451
  const { Link } = c;
1420
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("nav", { className: "hyle-crumbs", "aria-label": c.s.crumbs, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("ol", { children: items.map((b, i) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("li", { "aria-current": i === items.length - 1 ? "page" : void 0, children: i === items.length - 1 ? b.title : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Link, { href: crumbHref(c.href, b.canonical_path, c.locale), children: b.title }) }, b.canonical_path)) }) });
1452
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("nav", { className: "hyle-crumbs", "aria-label": c.s.crumbs, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("ol", { children: items.map((b, i) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("li", { "aria-current": i === items.length - 1 ? "page" : void 0, children: i === items.length - 1 ? b.title : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Link, { href: crumbHref(c.href, b.canonical_path, c.locale), children: b.title }) }, b.canonical_path)) }) });
1421
1453
  }
1422
1454
  function ArticlePage({ article, engagement, origin, jsonLd, imageUrl, imageWidth, imageHeight, related, ...base }) {
1423
1455
  const { publication: pub } = article;
@@ -1427,66 +1459,66 @@ function ArticlePage({ article, engagement, origin, jsonLd, imageUrl, imageWidth
1427
1459
  const author = articleAuthor(article, jsonLd)?.name;
1428
1460
  const modified = modifiedAt(pub);
1429
1461
  const words = wordCountOf(pub);
1430
- const toc = Toc({ toc: article.toc, c, spy: true, aside: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Slot, { name: "article.aside", slots: base.slots, className: "hyle-slot-wrap" }) });
1462
+ const toc = Toc({ toc: article.toc, c, spy: true, aside: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Slot, { name: "article.aside", slots: base.slots, className: "hyle-slot-wrap" }) });
1431
1463
  const notTranslated = article.fallback ? s.fallbackTitle.replace("{language}", languageName(article.fallback.requested_locale, c.locale)) : void 0;
1432
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Shell, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("article", { className: "hyle-article", "data-hyle-page": "article", lang: c.locale, children: [
1433
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("header", { className: "hyle-head", children: [
1434
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Slot, { name: "article.before", slots: base.slots, className: "hyle-eyebrow" }),
1435
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Crumbs, { items: breadcrumbItems(article, jsonLd), c }),
1436
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("h1", { className: "hyle-title", children: pub.title }),
1437
- pub.description ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "hyle-desc", children: pub.description }) : null,
1438
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "hyle-meta", children: [
1439
- author ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { children: [
1440
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "hyle-avatar", "aria-hidden": "true", children: author.slice(0, 2).toUpperCase() }),
1441
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { children: [
1442
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "hyle-sr", children: [
1464
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Shell, { theme: article.theme, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("article", { className: "hyle-article", "data-hyle-page": "article", lang: c.locale, children: [
1465
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("header", { className: "hyle-head", children: [
1466
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Slot, { name: "article.before", slots: base.slots, className: "hyle-eyebrow" }),
1467
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Crumbs, { items: breadcrumbItems(article, jsonLd), c }),
1468
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("h1", { className: "hyle-title", children: pub.title }),
1469
+ pub.description ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "hyle-desc", children: pub.description }) : null,
1470
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "hyle-meta", children: [
1471
+ author ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { children: [
1472
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "hyle-avatar", "aria-hidden": "true", children: author.slice(0, 2).toUpperCase() }),
1473
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { children: [
1474
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { className: "hyle-sr", children: [
1443
1475
  s.by,
1444
1476
  " "
1445
1477
  ] }),
1446
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "by", children: author })
1478
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "by", children: author })
1447
1479
  ] })
1448
1480
  ] }) : null,
1449
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { children: [
1450
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "calendar" }),
1451
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("time", { dateTime: pub.published_at, title: pub.published_at, children: formatDate(pub.published_at, c.locale) })
1481
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { children: [
1482
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "calendar" }),
1483
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("time", { dateTime: pub.published_at, title: pub.published_at, children: formatDate(pub.published_at, c.locale) })
1452
1484
  ] }),
1453
- modified ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { children: [
1454
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "calendar" }),
1485
+ modified ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { children: [
1486
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "calendar" }),
1455
1487
  s.updated,
1456
1488
  " ",
1457
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("time", { dateTime: modified, title: modified, children: formatDate(modified, c.locale) })
1489
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("time", { dateTime: modified, title: modified, children: formatDate(modified, c.locale) })
1458
1490
  ] }) : null,
1459
- words ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { children: [
1460
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "clock" }),
1491
+ words ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { children: [
1492
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "clock" }),
1461
1493
  s.readingTime.replace("{n}", String(readingMinutes(words)))
1462
1494
  ] }) : null,
1463
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { children: [
1464
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "globe" }),
1465
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { lang: pub.locale, children: languageName(pub.locale, c.locale) })
1495
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { children: [
1496
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "globe" }),
1497
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { lang: pub.locale, children: languageName(pub.locale, c.locale) })
1466
1498
  ] }),
1467
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Slot, { name: "article.meta", slots: base.slots, tag: "span" })
1499
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Slot, { name: "article.meta", slots: base.slots, tag: "span" })
1468
1500
  ] }),
1469
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Languages, { alternates: article.alternates, current: pub.locale, c }),
1470
- notTranslated ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "hyle-banner", "data-kind": "warn", role: "status", children: [
1471
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "alert" }),
1472
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { children: [
1473
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("b", { children: notTranslated }),
1501
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Languages, { alternates: article.alternates, current: pub.locale, c }),
1502
+ notTranslated ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "hyle-banner", "data-kind": "warn", role: "status", children: [
1503
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "alert" }),
1504
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { children: [
1505
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("b", { children: notTranslated }),
1474
1506
  " ",
1475
1507
  s.fallbackBody
1476
1508
  ] })
1477
1509
  ] }) : null
1478
1510
  ] }),
1479
1511
  toc.narrow,
1480
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Body, { article, components: base.components, locale: c.locale }),
1481
- engagement ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_comments.Comments, { path: pub.canonical_path, endpoint: engagement.endpoint ?? "/api/hyle/engage", signInHref: engagement.signInHref, locale: c.locale, labels: s.comments }) : null,
1482
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Pager, { prev: article.prev, next: article.next, c }),
1483
- related ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1484
- related.items.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(HyleListView, { items: related.items, title: related.title ?? s.moreInSection, ...base, locale: c.locale }) : null,
1485
- article.children.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(HyleListView, { items: article.children.map((child) => ({ ...child, description: null, published_at: "" })), title: s.subPages, ...base, locale: c.locale }) : null
1512
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Body, { article, components: base.components, locale: c.locale }),
1513
+ engagement ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_comments.Comments, { path: pub.canonical_path, endpoint: engagement.endpoint ?? "/api/hyle/engage", signInHref: engagement.signInHref, locale: c.locale, labels: s.comments }) : null,
1514
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Pager, { prev: article.prev, next: article.next, c }),
1515
+ related ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
1516
+ related.items.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(HyleListView, { items: related.items, title: related.title ?? s.moreInSection, ...base, locale: c.locale }) : null,
1517
+ article.children.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(HyleListView, { items: article.children.map((child) => ({ ...child, description: null, published_at: "" })), title: s.subPages, ...base, locale: c.locale }) : null
1486
1518
  ] }) : null,
1487
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Slot, { name: "article.after", slots: base.slots, className: "hyle-after" }),
1519
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Slot, { name: "article.after", slots: base.slots, className: "hyle-after" }),
1488
1520
  toc.wide,
1489
- jsonLdOrigin ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(LdScript, { json: articleJsonLd({ article, origin: jsonLdOrigin, href: c.href, jsonLd, imageUrl, imageWidth, imageHeight }) }) : null
1521
+ jsonLdOrigin ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(LdScript, { json: articleJsonLd({ article, origin: jsonLdOrigin, href: c.href, jsonLd, imageUrl, imageWidth, imageHeight }) }) : null
1490
1522
  ] }) });
1491
1523
  }
1492
1524
  function ListPage({ list, olderHref, description, origin, path, jsonLd, cursor, ...base }) {
@@ -1497,85 +1529,85 @@ function ListPage({ list, olderHref, description, origin, path, jsonLd, cursor,
1497
1529
  for (const item of list.items) groups.set(item.published_at.slice(0, 7), [...groups.get(item.published_at.slice(0, 7)) ?? [], item]);
1498
1530
  const notTranslated = list.fallback ? s.fallbackTitle.replace("{language}", languageName(list.fallback.requested_locale, c.locale)) : void 0;
1499
1531
  const jsonLdOrigin = bareOrigin(origin);
1500
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Shell, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "hyle-listpage", "data-hyle-page": "list", lang: c.locale, children: [
1501
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("header", { className: "hyle-head", children: [
1502
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("h1", { className: "hyle-title", children: list.section.title }),
1503
- description ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "hyle-desc", children: description }) : null,
1504
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Slot, { name: "list.header", slots: base.slots, className: "hyle-slot-wrap" }),
1505
- notTranslated ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "hyle-banner", "data-kind": "warn", role: "status", children: [
1506
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "alert" }),
1507
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { children: [
1508
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("b", { children: notTranslated }),
1532
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Shell, { theme: list.theme, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "hyle-listpage", "data-hyle-page": "list", lang: c.locale, children: [
1533
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("header", { className: "hyle-head", children: [
1534
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("h1", { className: "hyle-title", children: list.section.title }),
1535
+ description ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "hyle-desc", children: description }) : null,
1536
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Slot, { name: "list.header", slots: base.slots, className: "hyle-slot-wrap" }),
1537
+ notTranslated ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "hyle-banner", "data-kind": "warn", role: "status", children: [
1538
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "alert" }),
1539
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { children: [
1540
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("b", { children: notTranslated }),
1509
1541
  " ",
1510
1542
  s.fallbackBody
1511
1543
  ] })
1512
1544
  ] }) : null
1513
1545
  ] }),
1514
- list.items.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "hyle-empty", "data-slot-state": "empty", children: [
1515
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "file" }),
1516
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("h2", { children: s.emptyTitle }),
1517
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { children: s.emptyBody }),
1518
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Slot, { name: "list.empty", slots: base.slots })
1519
- ] }) : [...groups].map(([month, items]) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("section", { "aria-label": formatDate(`${month}-01`, c.locale, { month: "long", year: "numeric" }), children: [
1520
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("h2", { className: "hyle-year", children: formatDate(`${month}-01`, c.locale, { month: "long", year: "numeric" }) }),
1521
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("ul", { className: "hyle-items", children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("li", { children: Row ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Row, { item, href: c.href(item.canonical_path), locale: c.locale }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Link, { className: "hyle-item", href: c.href(item.canonical_path), children: [
1522
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("time", { dateTime: item.published_at, title: item.published_at, children: formatDate(item.published_at, c.locale) }),
1523
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { children: [
1524
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "t", children: item.title }),
1525
- item.description ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { children: item.description }) : null
1546
+ list.items.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "hyle-empty", "data-slot-state": "empty", children: [
1547
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "file" }),
1548
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("h2", { children: s.emptyTitle }),
1549
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { children: s.emptyBody }),
1550
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Slot, { name: "list.empty", slots: base.slots })
1551
+ ] }) : [...groups].map(([month, items]) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("section", { "aria-label": formatDate(`${month}-01`, c.locale, { month: "long", year: "numeric" }), children: [
1552
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("h2", { className: "hyle-year", children: formatDate(`${month}-01`, c.locale, { month: "long", year: "numeric" }) }),
1553
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("ul", { className: "hyle-items", children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("li", { children: Row ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Row, { item, href: c.href(item.canonical_path), locale: c.locale }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Link, { className: "hyle-item", href: c.href(item.canonical_path), children: [
1554
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("time", { dateTime: item.published_at, title: item.published_at, children: formatDate(item.published_at, c.locale) }),
1555
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { children: [
1556
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "t", children: item.title }),
1557
+ item.description ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { children: item.description }) : null
1526
1558
  ] })
1527
1559
  ] }) }, item.canonical_path)) })
1528
1560
  ] }, month)),
1529
- olderHref ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(OlderNav, { href: olderHref, c }) : null,
1530
- jsonLdOrigin && path ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(LdScript, { json: listJsonLd({ list, origin: jsonLdOrigin, href: c.href, path, locale: c.locale, description, jsonLd, cursor }) }) : null
1561
+ olderHref ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(OlderNav, { href: olderHref, c }) : null,
1562
+ jsonLdOrigin && path ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(LdScript, { json: listJsonLd({ list, origin: jsonLdOrigin, href: c.href, path, locale: c.locale, description, jsonLd, cursor }) }) : null
1531
1563
  ] }) });
1532
1564
  }
1533
1565
  function NotFound({ path, homeHref = "/", ...base }) {
1534
1566
  const c = ctx(base, "en");
1535
1567
  const { Link, s } = c;
1536
1568
  const body = base.slots?.["notfound.body"];
1537
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Shell, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("section", { className: "hyle-state", "data-hyle-page": "not-found", lang: c.locale, children: [
1538
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "kind", children: s.nfKind }),
1539
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("h1", { children: s.nfTitle }),
1540
- body ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { "data-slot": "notfound.body", children: body }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { children: s.nfBody }),
1541
- path ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("dl", { className: "hyle-addr", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { children: [
1542
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("dt", { children: s.path }),
1543
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("dd", { children: path })
1569
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Shell, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("section", { className: "hyle-state", "data-hyle-page": "not-found", lang: c.locale, children: [
1570
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "kind", children: s.nfKind }),
1571
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("h1", { children: s.nfTitle }),
1572
+ body ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { "data-slot": "notfound.body", children: body }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { children: s.nfBody }),
1573
+ path ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("dl", { className: "hyle-addr", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { children: [
1574
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("dt", { children: s.path }),
1575
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("dd", { children: path })
1544
1576
  ] }) }) : null,
1545
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "hyle-actions", children: [
1546
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Link, { className: "hyle-btn primary", href: crumbHref(c.href, homeHref, c.locale), children: s.home }),
1547
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Slot, { name: "notfound.actions", slots: base.slots, tag: "span" })
1577
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "hyle-actions", children: [
1578
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Link, { className: "hyle-btn primary", href: crumbHref(c.href, homeHref, c.locale), children: s.home }),
1579
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Slot, { name: "notfound.actions", slots: base.slots, tag: "span" })
1548
1580
  ] })
1549
1581
  ] }) });
1550
1582
  }
1551
1583
  function Unavailable(base) {
1552
1584
  const c = ctx(base, "en");
1553
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Shell, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("section", { className: "hyle-state", "data-hyle-page": "unavailable", lang: c.locale, role: "status", children: [
1554
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "kind", children: c.s.unKind }),
1555
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("h1", { children: c.s.unTitle }),
1556
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { children: c.s.unBody })
1585
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Shell, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("section", { className: "hyle-state", "data-hyle-page": "unavailable", lang: c.locale, role: "status", children: [
1586
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "kind", children: c.s.unKind }),
1587
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("h1", { children: c.s.unTitle }),
1588
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { children: c.s.unBody })
1557
1589
  ] }) });
1558
1590
  }
1559
1591
  function Redirecting({ from, to, ...base }) {
1560
1592
  const c = ctx(base, "en");
1561
1593
  const { Link, s } = c;
1562
1594
  const extra = base.slots?.["redirecting.body"];
1563
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Shell, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("section", { className: "hyle-state", "data-hyle-page": "redirecting", role: "status", lang: c.locale, children: [
1564
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "kind", children: s.rdKind }),
1565
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("h1", { children: s.rdTitle }),
1566
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { children: s.rdBody }),
1567
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("dl", { className: "hyle-addr", children: [
1568
- from ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { children: [
1569
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("dt", { children: s.from }),
1570
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("dd", { children: from })
1595
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Shell, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("section", { className: "hyle-state", "data-hyle-page": "redirecting", role: "status", lang: c.locale, children: [
1596
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "kind", children: s.rdKind }),
1597
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("h1", { children: s.rdTitle }),
1598
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { children: s.rdBody }),
1599
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("dl", { className: "hyle-addr", children: [
1600
+ from ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { children: [
1601
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("dt", { children: s.from }),
1602
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("dd", { children: from })
1571
1603
  ] }) : null,
1572
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { children: [
1573
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("dt", { children: s.to }),
1574
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("dd", { children: to })
1604
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { children: [
1605
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("dt", { children: s.to }),
1606
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("dd", { children: to })
1575
1607
  ] })
1576
1608
  ] }),
1577
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "fine", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Link, { href: c.href(to), children: s.rdFallback }) }),
1578
- extra ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { "data-slot": "redirecting.body", className: "fine", children: extra }) : null
1609
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "fine", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Link, { href: c.href(to), children: s.rdFallback }) }),
1610
+ extra ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { "data-slot": "redirecting.body", className: "fine", children: extra }) : null
1579
1611
  ] }) });
1580
1612
  }
1581
1613
 
@@ -1585,7 +1617,7 @@ var import_reactions = require("./reactions.cjs");
1585
1617
 
1586
1618
  // src/react/docs.tsx
1587
1619
  var import_docs_enhance = require("./docs-enhance.cjs");
1588
- var import_jsx_runtime7 = require("react/jsx-runtime");
1620
+ var import_jsx_runtime8 = require("react/jsx-runtime");
1589
1621
  var ROOT_ID = "hyle-docs";
1590
1622
  var NAV_ID = "hyle-docs-nav";
1591
1623
  function navTreeOf(article) {
@@ -1609,15 +1641,15 @@ function pathTo(nodes, path) {
1609
1641
  }
1610
1642
  function Branch({ nodes, current, onPath, c }) {
1611
1643
  const { Link } = c;
1612
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("ul", { children: nodes.map((node) => {
1613
- const link = /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Link, { href: c.href(node.canonical_path), ...node.canonical_path === current ? { "aria-current": "page" } : {}, children: node.title });
1614
- if (node.children.length === 0) return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("li", { children: link }, node.canonical_path);
1615
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("details", { ...onPath.has(node.canonical_path) ? { open: true } : {}, children: [
1616
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("summary", { children: [
1617
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "chev" }),
1644
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("ul", { children: nodes.map((node) => {
1645
+ const link = /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Link, { href: c.href(node.canonical_path), ...node.canonical_path === current ? { "aria-current": "page" } : {}, children: node.title });
1646
+ if (node.children.length === 0) return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("li", { children: link }, node.canonical_path);
1647
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("details", { ...onPath.has(node.canonical_path) ? { open: true } : {}, children: [
1648
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("summary", { children: [
1649
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "chev" }),
1618
1650
  link
1619
1651
  ] }),
1620
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Branch, { nodes: node.children, current, onPath, c })
1652
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Branch, { nodes: node.children, current, onPath, c })
1621
1653
  ] }) }, node.canonical_path);
1622
1654
  }) });
1623
1655
  }
@@ -1631,47 +1663,47 @@ function DocsPage({ article, ...base }) {
1631
1663
  const siteName = article.breadcrumbs[0]?.title ?? "";
1632
1664
  const headingIds = article.toc.filter((t) => t.depth === 2 || t.depth === 3).map((t) => scopeId(t.id));
1633
1665
  const notTranslated = article.fallback ? s.fallbackTitle.replace("{language}", languageName(article.fallback.requested_locale, c.locale)) : void 0;
1634
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Shell, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "hyle-docs", id: ROOT_ID, lang: c.locale, children: [
1635
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_docs_enhance.DocsEnhance, { headingIds, rootId: ROOT_ID }),
1636
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("button", { type: "button", className: "hyle-nav-bar", popoverTarget: NAV_ID, children: [
1637
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "file" }),
1666
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Shell, { theme: article.theme, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "hyle-docs", id: ROOT_ID, lang: c.locale, children: [
1667
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_docs_enhance.DocsEnhance, { headingIds, rootId: ROOT_ID }),
1668
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("button", { type: "button", className: "hyle-nav-bar", popoverTarget: NAV_ID, children: [
1669
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "file" }),
1638
1670
  s.menu,
1639
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "cur", children: pub.title }),
1640
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "chev-down", className: "hyle-chev" })
1671
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "cur", children: pub.title }),
1672
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "chev-down", className: "hyle-chev" })
1641
1673
  ] }),
1642
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("aside", { className: "hyle-nav-d", id: NAV_ID, popover: "auto", "aria-label": s.docs, children: [
1643
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "hyle-side-head", children: [
1644
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("b", { children: siteName }),
1645
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Slot, { name: "docs.version", slots: base.slots, tag: "span" }),
1646
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("button", { type: "button", className: "hyle-nav-x", popoverTarget: NAV_ID, popoverTargetAction: "hide", "aria-label": s.closeMenu, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "x" }) })
1674
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("aside", { className: "hyle-nav-d", id: NAV_ID, popover: "auto", "aria-label": s.docs, children: [
1675
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "hyle-side-head", children: [
1676
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("b", { children: siteName }),
1677
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Slot, { name: "docs.version", slots: base.slots, tag: "span" }),
1678
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { type: "button", className: "hyle-nav-x", popoverTarget: NAV_ID, popoverTargetAction: "hide", "aria-label": s.closeMenu, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "x" }) })
1647
1679
  ] }),
1648
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Slot, { name: "docs.sidebar-header", slots: base.slots, className: "hyle-side-slot" }),
1649
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("nav", { className: "hyle-tree", "aria-label": s.docs, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Branch, { nodes: tree, current: pub.canonical_path, onPath, c }) }),
1650
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Slot, { name: "docs.sidebar-footer", slots: base.slots, className: "hyle-side-slot" })
1680
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Slot, { name: "docs.sidebar-header", slots: base.slots, className: "hyle-side-slot" }),
1681
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("nav", { className: "hyle-tree", "aria-label": s.docs, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Branch, { nodes: tree, current: pub.canonical_path, onPath, c }) }),
1682
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Slot, { name: "docs.sidebar-footer", slots: base.slots, className: "hyle-side-slot" })
1651
1683
  ] }),
1652
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "hyle-docs-main", "data-hyle-page": "docs", children: [
1653
- notTranslated ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "hyle-banner", "data-kind": "warn", role: "status", children: [
1654
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "alert" }),
1655
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { children: [
1656
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("b", { children: notTranslated }),
1684
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "hyle-docs-main", "data-hyle-page": "docs", children: [
1685
+ notTranslated ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "hyle-banner", "data-kind": "warn", role: "status", children: [
1686
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "alert" }),
1687
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
1688
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("b", { children: notTranslated }),
1657
1689
  " ",
1658
1690
  s.fallbackBody
1659
1691
  ] })
1660
1692
  ] }) : null,
1661
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("nav", { className: "hyle-crumbs", "aria-label": s.crumbs, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("ol", { children: article.breadcrumbs.map((b, i) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("li", { "aria-current": i === article.breadcrumbs.length - 1 ? "page" : void 0, children: i === article.breadcrumbs.length - 1 ? b.title : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Link, { href: c.href(b.canonical_path), children: b.title }) }, b.canonical_path)) }) }),
1662
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("h1", { className: "hyle-title", children: pub.title }),
1663
- pub.description ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "hyle-desc", children: pub.description }) : null,
1664
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("p", { className: "hyle-updated", children: [
1665
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "calendar" }),
1693
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("nav", { className: "hyle-crumbs", "aria-label": s.crumbs, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("ol", { children: article.breadcrumbs.map((b, i) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("li", { "aria-current": i === article.breadcrumbs.length - 1 ? "page" : void 0, children: i === article.breadcrumbs.length - 1 ? b.title : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Link, { href: c.href(b.canonical_path), children: b.title }) }, b.canonical_path)) }) }),
1694
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h1", { className: "hyle-title", children: pub.title }),
1695
+ pub.description ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "hyle-desc", children: pub.description }) : null,
1696
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("p", { className: "hyle-updated", children: [
1697
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "calendar" }),
1666
1698
  s.updated,
1667
1699
  " ",
1668
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("time", { dateTime: pub.updated_at, title: pub.updated_at, children: formatDate(pub.updated_at, c.locale) })
1700
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("time", { dateTime: pub.updated_at, title: pub.updated_at, children: formatDate(pub.updated_at, c.locale) })
1669
1701
  ] }),
1670
1702
  toc.narrow,
1671
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Body, { article, components: base.components, locale: c.locale }),
1672
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Pager, { prev: article.prev, next: article.next, c }),
1673
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Slot, { name: "docs.after", slots: base.slots, className: "hyle-after" }),
1674
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "hyle-docs-end", "aria-hidden": "true" })
1703
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Body, { article, components: base.components, locale: c.locale }),
1704
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Pager, { prev: article.prev, next: article.next, c }),
1705
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Slot, { name: "docs.after", slots: base.slots, className: "hyle-after" }),
1706
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "hyle-docs-end", "aria-hidden": "true" })
1675
1707
  ] }),
1676
1708
  toc.wide
1677
1709
  ] }) });
@@ -1687,6 +1719,7 @@ function DocsPage({ article, ...base }) {
1687
1719
  HyleBody,
1688
1720
  HyleListView,
1689
1721
  HyleReactions,
1722
+ HyleTheme,
1690
1723
  HyleToc,
1691
1724
  ListPage,
1692
1725
  MermaidDiagram,