@tdacorp/hyle-sdk 0.17.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 (92) hide show
  1. package/README.md +261 -42
  2. package/dist/check-routes-bin.js +190 -53
  3. package/dist/{chunk-6VOHFFA5.js → chunk-7T5EEJHK.js} +2 -2
  4. package/dist/chunk-DUPT6XLB.js +57 -0
  5. package/dist/chunk-IW3TUD4G.js +841 -0
  6. package/dist/{chunk-MGSUQBDW.js → chunk-KU7LWK4E.js} +249 -24
  7. package/dist/{chunk-BUJFMR3M.js → chunk-QVYQM5R2.js} +15 -6
  8. package/dist/chunk-SFFBZFEN.js +178 -0
  9. package/dist/chunk-U74B7AUG.js +398 -0
  10. package/dist/chunk-ZIW6FDU2.js +1126 -0
  11. package/dist/client-BGjmEWhN.d.cts +207 -0
  12. package/dist/client-D0LTpr3Y.d.ts +207 -0
  13. package/dist/code-copy.cjs +74 -0
  14. package/dist/code-copy.d.cts +18 -0
  15. package/dist/code-copy.d.ts +18 -0
  16. package/dist/code-copy.js +50 -0
  17. package/dist/comments.cjs +738 -280
  18. package/dist/comments.d.cts +66 -3
  19. package/dist/comments.d.ts +66 -3
  20. package/dist/comments.js +419 -331
  21. package/dist/{diagram-viewer-FJPED4SN.js → diagram-viewer-XY3CG75U.js} +62 -21
  22. package/dist/docs-enhance.cjs +7 -4
  23. package/dist/docs-enhance.d.cts +5 -3
  24. package/dist/docs-enhance.d.ts +5 -3
  25. package/dist/docs-enhance.js +8 -5
  26. package/dist/{embed-DNTZ2UXv.d.ts → embed-CbtsbZs3.d.cts} +5 -3
  27. package/dist/{embed-BmdwA2G9.d.cts → embed-Cf_2ZR5x.d.ts} +5 -3
  28. package/dist/fragment-alias.cjs +51 -0
  29. package/dist/fragment-alias.d.cts +7 -0
  30. package/dist/fragment-alias.d.ts +7 -0
  31. package/dist/fragment-alias.js +27 -0
  32. package/dist/html.cjs +886 -0
  33. package/dist/html.d.cts +20 -0
  34. package/dist/html.d.ts +20 -0
  35. package/dist/html.js +45 -0
  36. package/dist/index.cjs +244 -24
  37. package/dist/index.d.cts +22 -68
  38. package/dist/index.d.ts +22 -68
  39. package/dist/index.js +12 -2
  40. package/dist/{labels-nmukKYgL.d.cts → labels-CrA-iqTN.d.cts} +9 -0
  41. package/dist/{labels-nmukKYgL.d.ts → labels-CrA-iqTN.d.ts} +9 -0
  42. package/dist/mermaid-diagram.cjs +441 -125
  43. package/dist/mermaid-diagram.d.cts +23 -7
  44. package/dist/mermaid-diagram.d.ts +23 -7
  45. package/dist/mermaid-diagram.js +213 -51
  46. package/dist/mermaid-image.cjs +137 -60
  47. package/dist/mermaid-image.d.cts +4 -3
  48. package/dist/mermaid-image.d.ts +4 -3
  49. package/dist/mermaid-image.js +27 -28
  50. package/dist/next.cjs +836 -304
  51. package/dist/next.d.cts +45 -20
  52. package/dist/next.d.ts +45 -20
  53. package/dist/next.js +151 -40
  54. package/dist/print-coordinator.cjs +157 -0
  55. package/dist/print-coordinator.d.cts +27 -0
  56. package/dist/print-coordinator.d.ts +27 -0
  57. package/dist/print-coordinator.js +83 -0
  58. package/dist/react.cjs +603 -240
  59. package/dist/react.d.cts +148 -30
  60. package/dist/react.d.ts +148 -30
  61. package/dist/react.js +26 -4
  62. package/dist/reactions.cjs +653 -0
  63. package/dist/reactions.d.cts +27 -0
  64. package/dist/reactions.d.ts +27 -0
  65. package/dist/reactions.js +364 -0
  66. package/dist/{resolve-euZ4-aC9.d.cts → resolve-BnIv7aB7.d.cts} +2 -2
  67. package/dist/{resolve-Ae7UFjsQ.d.ts → resolve-BysHtZ_i.d.ts} +2 -2
  68. package/dist/revalidation-callback-BQl77tQR.d.cts +75 -0
  69. package/dist/revalidation-callback-BQl77tQR.d.ts +75 -0
  70. package/dist/sanitize-BpY_AdZh.d.cts +23 -0
  71. package/dist/sanitize-BpY_AdZh.d.ts +23 -0
  72. package/dist/styles.css +100 -29
  73. package/dist/toc-spy.cjs +60 -0
  74. package/dist/toc-spy.d.cts +15 -0
  75. package/dist/toc-spy.d.ts +15 -0
  76. package/dist/toc-spy.js +36 -0
  77. package/dist/{types-Czt887Iv.d.cts → types-D09Z072G.d.cts} +57 -2
  78. package/dist/{types-Czt887Iv.d.ts → types-D09Z072G.d.ts} +57 -2
  79. package/dist/use-cache.cjs +89 -13
  80. package/dist/use-cache.d.cts +12 -5
  81. package/dist/use-cache.d.ts +12 -5
  82. package/dist/use-cache.js +8 -8
  83. package/dist/youtube-facade.cjs +50 -0
  84. package/dist/youtube-facade.d.cts +17 -0
  85. package/dist/youtube-facade.d.ts +17 -0
  86. package/dist/youtube-facade.js +26 -0
  87. package/package.json +16 -3
  88. package/dist/chunk-67IOIAVW.js +0 -35
  89. package/dist/chunk-DMK4XQLU.js +0 -1556
  90. package/dist/chunk-PJMJMP66.js +0 -63
  91. package/dist/revalidation-callback-D7Ms_Puz.d.cts +0 -42
  92. package/dist/revalidation-callback-D7Ms_Puz.d.ts +0 -42
@@ -0,0 +1,841 @@
1
+ import {
2
+ PREVIEW_QUERY_SOURCE,
3
+ hostAssetSrc
4
+ } from "./chunk-DUPT6XLB.js";
5
+
6
+ // src/react/sanitize.ts
7
+ var HastLimitError = class extends Error {
8
+ constructor(message) {
9
+ super(message);
10
+ this.name = "HastLimitError";
11
+ }
12
+ };
13
+ var MAX_NODES = 2e4;
14
+ var MAX_TEXT = 512 * 1024;
15
+ var MAX_DEPTH = 128;
16
+ var MAX_SRCDOC = 1024 * 1024;
17
+ var DROP = /* @__PURE__ */ new Set(["script", "style", "template", "noscript"]);
18
+ var VOID = /* @__PURE__ */ new Set(["br", "hr", "img", "input", "path"]);
19
+ var isString = (v) => typeof v === "string";
20
+ var isScalar = (v) => typeof v === "string" || typeof v === "number" || typeof v === "boolean";
21
+ var matches = (re) => (v) => typeof v === "string" && re.test(v);
22
+ var ID_PREFIX = "user-content-";
23
+ var scopeId = (id) => id.startsWith(ID_PREFIX) ? id : ID_PREFIX + id;
24
+ var ID_BODY = /^[\p{L}\p{M}\p{N}\p{Pc}:.-]{1,180}$/u;
25
+ function isIdValue(v) {
26
+ if (typeof v !== "string") return false;
27
+ try {
28
+ return ID_BODY.test(decodeURIComponent(v.startsWith(ID_PREFIX) ? v.slice(ID_PREFIX.length) : v));
29
+ } catch {
30
+ return false;
31
+ }
32
+ }
33
+ var CLASS_TOKEN = /^[A-Za-z_][\w:-]*$/;
34
+ var classTokens = (v) => {
35
+ const tokens = Array.isArray(v) ? v : typeof v === "string" ? v.split(/\s+/) : [];
36
+ return tokens.length > 0 && tokens.every((t) => typeof t === "string" && CLASS_TOKEN.test(t)) ? tokens : void 0;
37
+ };
38
+ var isClass = (v) => classTokens(v) !== void 0;
39
+ var isAlign = matches(/^(left|right|center)$/);
40
+ var isPixels = (v) => typeof v === "number" ? Number.isInteger(v) && v > 0 : typeof v === "string" && /^[1-9]\d*$/.test(v);
41
+ var isLength = matches(/^[\d.]+(em|px|%)?$/);
42
+ var STYLE_PROPS = /* @__PURE__ */ new Set(["height", "vertical-align", "margin-left", "margin-right", "margin-top", "margin-bottom", "top", "width", "min-width", "border-bottom-width", "padding-left"]);
43
+ var STYLE_LENGTH = /^(-?\d+(?:\.\d+)?)(em|px|%)?$/;
44
+ var MAX_STYLE_MAGNITUDE = 100;
45
+ var MAX_MARGIN_MAGNITUDE = 20;
46
+ function isKatexStyle(v, ctx) {
47
+ if (typeof v !== "string" || !ctx.katex) return false;
48
+ return v.split(";").filter((d) => d !== "").every((decl) => {
49
+ const [prop, value, ...extra] = decl.split(":");
50
+ if (extra.length > 0 || prop === void 0 || value === void 0) return false;
51
+ if (prop === "position") return value === "relative";
52
+ const m = STYLE_LENGTH.exec(value);
53
+ const max = prop.startsWith("margin-") ? MAX_MARGIN_MAGNITUDE : MAX_STYLE_MAGNITUDE;
54
+ return STYLE_PROPS.has(prop) && m !== null && Math.abs(Number(m[1])) <= max;
55
+ });
56
+ }
57
+ function isSafeUrl(value, kind) {
58
+ if (typeof value !== "string") return false;
59
+ const url = value.trim();
60
+ if (url.length === 0 || /[\u0000-\u001f\u007f\\]/.test(url)) return false;
61
+ if (url.startsWith("#")) return kind === "href";
62
+ if (url.startsWith("/")) return !url.startsWith("//");
63
+ try {
64
+ const { protocol } = new URL(url);
65
+ return protocol === "https:" || protocol === "http:" || kind === "href" && protocol === "mailto:";
66
+ } catch {
67
+ return false;
68
+ }
69
+ }
70
+ var isHref = (v) => isSafeUrl(v, "href") && (typeof v !== "string" || !v.trim().startsWith("#") || isIdValue(v.trim().slice(1)));
71
+ var isSrc = (v) => isSafeUrl(v, "src");
72
+ var MERMAID_SCRIPT_URL = "https://cdnjs.cloudflare.com/ajax/libs/mermaid/11.9.0/mermaid.min.js";
73
+ var MERMAID_SRCDOC = new RegExp(
74
+ `^<!doctype html><html><head><meta charset="utf-8"></head><body><div class="mermaid">([^<]*)</div><script src="${MERMAID_SCRIPT_URL.replace(/[.]/g, "\\.")}"></script><script>mermaid\\.initialize\\(\\{ startOnLoad: true, securityLevel: "strict" \\}\\);</script></body></html>$`
75
+ );
76
+ var isMermaidSrcdoc = (v) => typeof v === "string" && v.length <= MAX_SRCDOC && MERMAID_SRCDOC.test(v);
77
+ var ENTITIES = { "&#x3c;": "<", "&#x26;": "&", "&lt;": "<", "&gt;": ">", "&amp;": "&", "&quot;": '"', "&#x27;": "'" };
78
+ function mermaidSource(srcDoc) {
79
+ return MERMAID_SRCDOC.exec(srcDoc)?.[1]?.replace(/&(?:#x3c|#x26|#x27|lt|gt|amp|quot);/gi, (e) => ENTITIES[e.toLowerCase()]);
80
+ }
81
+ 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})$`);
82
+ var isRenderRef = matches(RENDER_REF);
83
+ function diagramRender(value) {
84
+ const m = typeof value === "string" ? RENDER_REF.exec(value) : null;
85
+ return m ? { src: hostAssetSrc(m[1]), width: Number(m[2]), height: Number(m[3]) } : void 0;
86
+ }
87
+ var YOUTUBE_WATCH = /^https:\/\/www\.youtube\.com\/watch\?v=([A-Za-z0-9_-]{11})$/;
88
+ var youtubeId = (href) => typeof href === "string" ? YOUTUBE_WATCH.exec(href)?.[1] : void 0;
89
+ var heading = { id: isIdValue, className: isClass };
90
+ var ATTRS = new Map(
91
+ Object.entries({
92
+ p: {},
93
+ em: {},
94
+ strong: {},
95
+ del: {},
96
+ hr: {},
97
+ br: {},
98
+ sup: {},
99
+ blockquote: {},
100
+ thead: {},
101
+ tbody: {},
102
+ tr: {},
103
+ ol: {},
104
+ kbd: {},
105
+ ul: { className: isClass },
106
+ li: { id: isIdValue, className: isClass },
107
+ h1: heading,
108
+ h2: heading,
109
+ h3: heading,
110
+ h4: heading,
111
+ h5: heading,
112
+ h6: heading,
113
+ a: { href: isHref, id: isIdValue, ariaDescribedBy: isIdValue, ariaLabel: isString, dataFootnoteRef: isScalar, dataFootnoteBackref: isScalar, dataEmbed: matches(/^youtube$/), className: isClass },
114
+ img: { src: isSrc, alt: isString, title: isString, width: isPixels, height: isPixels },
115
+ table: {},
116
+ th: { scope: matches(/^(row|col|rowgroup|colgroup)$/), align: isAlign },
117
+ td: { align: isAlign },
118
+ pre: { className: isClass },
119
+ code: { className: isClass },
120
+ section: { dataFootnotes: isScalar, className: isClass },
121
+ input: { type: matches(/^checkbox$/), disabled: isScalar, checked: isScalar },
122
+ span: { className: isClass, style: isKatexStyle, ariaHidden: matches(/^(true|false)$/) },
123
+ svg: { xmlns: matches(/^http:\/\/www\.w3\.org\/2000\/svg$/), width: isLength, height: isLength, viewBox: matches(/^-?[\d.]+ -?[\d.]+ -?[\d.]+ -?[\d.]+$/), preserveAspectRatio: matches(/^[\w ]+$/) },
124
+ path: { d: matches(/^[MLCSQTAHVZmlcsqtahvz0-9.,\-\s]+$/) },
125
+ video: { src: isSrc, controls: isScalar },
126
+ audio: { src: isSrc, controls: isScalar },
127
+ // hyle's sandboxed Mermaid frame (ADR 0001). The renderer emits `sandbox` as ["allow-scripts"]; it is normalized below.
128
+ iframe: { sandbox: (v) => v === "allow-scripts" || Array.isArray(v) && v.length === 1 && v[0] === "allow-scripts", srcdoc: isMermaidSrcdoc, dataLight: isRenderRef, dataDark: isRenderRef }
129
+ })
130
+ );
131
+ var isObject = (v) => typeof v === "object" && v !== null;
132
+ function textOf(node, depth = 0) {
133
+ if (!isObject(node) || depth > MAX_DEPTH) return "";
134
+ if (node.type === "text") return typeof node.value === "string" ? node.value : "";
135
+ return Array.isArray(node.children) ? node.children.map((c) => textOf(c, depth + 1)).join("") : "";
136
+ }
137
+ var holdsEmbed = (node, depth = 0) => isObject(node) && depth <= MAX_DEPTH && (isObject(node.properties) && "dataEmbed" in node.properties || Array.isArray(node.children) && node.children.some((c) => holdsEmbed(c, depth + 1)));
138
+ var collapse = (text) => text.replace(/\s+/g, " ").trim();
139
+ var CALLOUT_MARKER = /^\s*\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]\s*/i;
140
+ var CALLOUT_KIND = { note: "note", tip: "tip", important: "important", warning: "warning", caution: "caution" };
141
+ function toCallout(children) {
142
+ const first = children.find((c) => c.type === "element");
143
+ const lead = first?.tagName === "p" ? first.children[0] : void 0;
144
+ const marker = lead?.type === "text" ? CALLOUT_MARKER.exec(lead.value) : null;
145
+ if (!first || lead?.type !== "text" || !marker) return void 0;
146
+ const rest = lead.value.slice(marker[0].length);
147
+ const firstChildren = rest ? [{ type: "text", value: rest }, ...first.children.slice(1)] : first.children.slice(1);
148
+ const body = firstChildren.length > 0 ? [{ ...first, children: firstChildren }] : [];
149
+ const kind = CALLOUT_KIND[(marker[1] ?? "note").toLowerCase()] ?? "note";
150
+ return { type: "element", tagName: "callout", properties: { kind }, children: [...body, ...children.slice(children.indexOf(first) + 1)] };
151
+ }
152
+ var isBlank = (node) => node.type === "text" && node.value.trim() === "";
153
+ function soleElement(children) {
154
+ const [only, ...more] = children.filter((c) => !isBlank(c));
155
+ return more.length === 0 && only?.type === "element" ? only : void 0;
156
+ }
157
+ function toFigure(children) {
158
+ const only = soleElement(children);
159
+ const img = only?.tagName === "a" ? soleElement(only.children) : only;
160
+ if (!only || img?.tagName !== "img" || typeof img.properties.src !== "string") return void 0;
161
+ const { title, ...properties } = img.properties;
162
+ const bare = { ...img, properties };
163
+ const media = only === img ? bare : { ...only, children: [bare] };
164
+ const caption = typeof title === "string" && title.trim() ? [{ type: "element", tagName: "figcaption", properties: {}, children: [{ type: "text", value: title }] }] : [];
165
+ return { type: "element", tagName: "figure", properties: { dataSlotComponent: "Image" }, children: [media, ...caption] };
166
+ }
167
+ function clean(node, depth, ctx, budget) {
168
+ if (!isObject(node) || depth > MAX_DEPTH) return [];
169
+ if (++budget.nodes > MAX_NODES) throw new HastLimitError("content has too many nodes");
170
+ if (node.type === "text") {
171
+ if (typeof node.value !== "string") return [];
172
+ budget.text += node.value.length;
173
+ if (budget.text > MAX_TEXT) throw new HastLimitError("content is too large");
174
+ return [{ type: "text", value: node.value }];
175
+ }
176
+ if (node.type !== "element" || typeof node.tagName !== "string" || DROP.has(node.tagName)) return [];
177
+ const tag = node.tagName;
178
+ const rules = ATTRS.get(tag);
179
+ const own = isObject(node.properties) ? classTokens(node.properties.className) : void 0;
180
+ const inner = tag === "span" && own?.some((t) => t === "katex" || t.startsWith("katex-")) ? { katex: true } : ctx;
181
+ const children = Array.isArray(node.children) ? node.children.flatMap((c) => clean(c, depth + 1, inner, budget)) : [];
182
+ if (!rules) return children;
183
+ const properties = {};
184
+ if (isObject(node.properties)) {
185
+ for (const [key, value] of Object.entries(node.properties)) {
186
+ if (Object.hasOwn(rules, key) && rules[key](value, inner)) properties[key] = value;
187
+ }
188
+ }
189
+ if ((tag === "img" || tag === "video" || tag === "audio") && typeof properties.src === "string") properties.src = hostAssetSrc(properties.src);
190
+ if (tag === "iframe") {
191
+ if (properties.sandbox === void 0 || properties.srcdoc === void 0) return [];
192
+ properties.sandbox = "allow-scripts";
193
+ }
194
+ if (tag === "input") {
195
+ if (properties.type !== "checkbox") return [];
196
+ properties.disabled = true;
197
+ }
198
+ for (const key of ["id", "ariaDescribedBy"]) if (typeof properties[key] === "string") properties[key] = scopeId(properties[key]);
199
+ if (tag === "a" && typeof properties.href === "string" && properties.href.trim().startsWith("#")) properties.href = `#${scopeId(properties.href.trim().slice(1))}`;
200
+ if (tag === "a" && properties.dataEmbed !== void 0 && youtubeId(properties.href) === void 0) delete properties.dataEmbed;
201
+ if (tag === "p") {
202
+ const figure = toFigure(children);
203
+ if (figure) return [figure];
204
+ }
205
+ if (tag === "blockquote") {
206
+ const callout = toCallout(children);
207
+ if (callout) return [callout];
208
+ }
209
+ const tagName = tag === "h1" ? "h2" : tag;
210
+ return [{ type: "element", tagName, properties, children: VOID.has(tag) ? [] : children }];
211
+ }
212
+ function sanitizeHast(tree, title, description) {
213
+ const raw = isObject(tree) && tree.type === "root" && Array.isArray(tree.children) ? tree.children : [];
214
+ const elements = raw.filter((n) => isObject(n) && n.type === "element");
215
+ const [first] = elements;
216
+ const skip = title !== void 0 && isObject(first) && first.tagName === "h1" && collapse(textOf(first)) === collapse(title) ? first : void 0;
217
+ const lead = elements[skip ? 1 : 0];
218
+ const repeat = description && isObject(lead) && lead.tagName === "p" && collapse(textOf(lead)) === collapse(description) && !holdsEmbed(lead) ? lead : void 0;
219
+ const budget = { nodes: 0, text: 0 };
220
+ return { type: "root", children: raw.filter((n) => n !== skip && n !== repeat).flatMap((n) => clean(n, 0, { katex: false }, budget)) };
221
+ }
222
+
223
+ // src/react/viewer/labels.ts
224
+ var VIEWER_LABELS_EN = {
225
+ expand: "Expand diagram",
226
+ expandHint: "Expand",
227
+ viewer: "Diagram viewer",
228
+ close: "Close",
229
+ zoomIn: "Zoom in",
230
+ zoomOut: "Zoom out",
231
+ fit: "Fit to window",
232
+ actual: "100%: actual size",
233
+ search: "Find in diagram",
234
+ searchPlaceholder: "Find",
235
+ noMatch: "No match",
236
+ matchOf: "{n} of {total}",
237
+ copySource: "MMD: copy diagram source",
238
+ downloadSvg: "SVG: download",
239
+ downloadPng: "PNG: download",
240
+ copyImage: "IMG: copy as image",
241
+ pngScale: "PNG scale",
242
+ fullscreen: "Fullscreen",
243
+ exitFullscreen: "Exit fullscreen",
244
+ copied: "Copied",
245
+ saved: "Saved",
246
+ unavailable: "Not available here",
247
+ hint: "Scroll to zoom, drag to pan, click a node to trace its paths, press / to search",
248
+ legendSelected: "Selected",
249
+ legendUpstream: "Upstream",
250
+ legendDownstream: "Downstream",
251
+ outgoing: "outgoing",
252
+ tracing: "{label}: {up} upstream, {down} downstream",
253
+ map: "Overview map",
254
+ largeTitle: "Large diagram, not drawn automatically",
255
+ largeBody: "Drawing a diagram this size can freeze this page for a few seconds, so it waits until you ask. Press Draw diagram: it takes a couple of seconds (a few more on a phone) and the page may pause while it works.",
256
+ drawLarge: "Draw diagram",
257
+ drawing: "Drawing\u2026",
258
+ drawingBody: "Drawing the diagram\u2026 this takes a couple of seconds.",
259
+ drawAgain: "Draw again",
260
+ showSource: "Show full source",
261
+ hideSource: "Show less",
262
+ printPreparing: "Preparing diagrams for print\u2026 Esc cancels between steps."
263
+ };
264
+ var VIEWER_LABELS_FR = {
265
+ expand: "Agrandir le sch\xE9ma",
266
+ expandHint: "Agrandir",
267
+ viewer: "Visionneuse de sch\xE9ma",
268
+ close: "Fermer",
269
+ zoomIn: "Zoom avant",
270
+ zoomOut: "Zoom arri\xE8re",
271
+ fit: "Ajuster \xE0 la fen\xEAtre",
272
+ actual: "100% : taille r\xE9elle",
273
+ search: "Rechercher dans le sch\xE9ma",
274
+ searchPlaceholder: "Rechercher",
275
+ noMatch: "Aucun r\xE9sultat",
276
+ matchOf: "{n} sur {total}",
277
+ copySource: "MMD : copier la source du sch\xE9ma",
278
+ downloadSvg: "SVG : t\xE9l\xE9charger",
279
+ downloadPng: "PNG : t\xE9l\xE9charger",
280
+ copyImage: "IMG : copier comme image",
281
+ pngScale: "\xC9chelle du PNG",
282
+ fullscreen: "Plein \xE9cran",
283
+ exitFullscreen: "Quitter le plein \xE9cran",
284
+ copied: "Copi\xE9",
285
+ saved: "Enregistr\xE9",
286
+ unavailable: "Indisponible ici",
287
+ hint: "Molette pour zoomer, glisser pour d\xE9placer, cliquer un n\u0153ud pour suivre ses chemins, / pour chercher",
288
+ legendSelected: "S\xE9lection",
289
+ legendUpstream: "En amont",
290
+ legendDownstream: "En aval",
291
+ outgoing: "sortants",
292
+ tracing: "{label} : {up} en amont, {down} en aval",
293
+ map: "Carte d'ensemble",
294
+ largeTitle: "Grand sch\xE9ma, non dessin\xE9 automatiquement",
295
+ largeBody: "Dessiner un sch\xE9ma de cette taille peut figer la page quelques secondes, il attend donc votre demande. Appuyez sur Dessiner le sch\xE9ma : cela prend quelques secondes (un peu plus sur un t\xE9l\xE9phone) et la page peut se figer pendant ce temps.",
296
+ drawLarge: "Dessiner le sch\xE9ma",
297
+ drawing: "Dessin en cours\u2026",
298
+ drawingBody: "Dessin du sch\xE9ma\u2026 cela prend quelques secondes.",
299
+ drawAgain: "Redessiner",
300
+ showSource: "Afficher toute la source",
301
+ hideSource: "R\xE9duire",
302
+ printPreparing: "Pr\xE9paration des sch\xE9mas pour l'impression\u2026 \xC9chap annule entre deux \xE9tapes."
303
+ };
304
+ var VIEWER_LABELS_ES = {
305
+ expand: "Ampliar el diagrama",
306
+ expandHint: "Ampliar",
307
+ viewer: "Visor de diagramas",
308
+ close: "Cerrar",
309
+ zoomIn: "Acercar",
310
+ zoomOut: "Alejar",
311
+ fit: "Ajustar a la ventana",
312
+ actual: "100%: tama\xF1o real",
313
+ search: "Buscar en el diagrama",
314
+ searchPlaceholder: "Buscar",
315
+ noMatch: "Sin resultados",
316
+ matchOf: "{n} de {total}",
317
+ copySource: "MMD: copiar el c\xF3digo del diagrama",
318
+ downloadSvg: "SVG: descargar",
319
+ downloadPng: "PNG: descargar",
320
+ copyImage: "IMG: copiar como imagen",
321
+ pngScale: "Escala del PNG",
322
+ fullscreen: "Pantalla completa",
323
+ exitFullscreen: "Salir de pantalla completa",
324
+ copied: "Copiado",
325
+ saved: "Guardado",
326
+ unavailable: "No disponible aqu\xED",
327
+ hint: "Rueda para acercar, arrastra para mover, pulsa un nodo para seguir sus caminos, / para buscar",
328
+ legendSelected: "Seleccionado",
329
+ legendUpstream: "Aguas arriba",
330
+ legendDownstream: "Aguas abajo",
331
+ outgoing: "salientes",
332
+ tracing: "{label}: {up} aguas arriba, {down} aguas abajo",
333
+ map: "Mapa general",
334
+ largeTitle: "Diagrama grande, no se dibuja autom\xE1ticamente",
335
+ largeBody: "Dibujar un diagrama de este tama\xF1o puede bloquear la p\xE1gina unos segundos, as\xED que espera a que lo pidas. Pulsa Dibujar el diagrama: tarda un par de segundos (algo m\xE1s en un tel\xE9fono) y la p\xE1gina puede detenerse mientras tanto.",
336
+ drawLarge: "Dibujar el diagrama",
337
+ drawing: "Dibujando\u2026",
338
+ drawingBody: "Dibujando el diagrama\u2026 tarda un par de segundos.",
339
+ drawAgain: "Dibujar de nuevo",
340
+ showSource: "Mostrar todo el c\xF3digo",
341
+ hideSource: "Mostrar menos",
342
+ printPreparing: "Preparando los diagramas para imprimir\u2026 Esc cancela entre pasos."
343
+ };
344
+
345
+ // src/react/comments-labels.ts
346
+ var COMMENT_LABELS_EN = {
347
+ heading: "Comments",
348
+ countLabel: "{n} comments",
349
+ likeArticle: "Like this article",
350
+ likedArticle: "Liked",
351
+ likeArticleSignIn: "(sign in), ",
352
+ likeComment: "Like this comment, ",
353
+ likeCommentSignIn: "Sign in to like this comment, ",
354
+ signInTitle: "Sign in to join the discussion",
355
+ signInBody: "Anyone can read. To comment or like, sign in.",
356
+ signIn: "Sign in",
357
+ commentingAs: "Commenting as {name}",
358
+ write: "Write a comment",
359
+ placeholder: "Add to the discussion",
360
+ help: "Markdown: links, emphasis, code and quotes.",
361
+ chars: "{n} / {max}",
362
+ post: "Post comment",
363
+ posting: "Posting",
364
+ reply: "Reply",
365
+ replyTo: "Reply to {name}",
366
+ replyPlaceholder: "Write a reply",
367
+ cancel: "Cancel",
368
+ edit: "Edit",
369
+ editLeft: "({n} min left)",
370
+ save: "Save",
371
+ delete: "Delete",
372
+ deleteConfirm: "Delete this comment?",
373
+ keep: "Keep",
374
+ you: "You",
375
+ edited: "edited",
376
+ removed: "This comment was removed.",
377
+ removedByModerator: "This comment was removed by a moderator.",
378
+ removedByAuthor: "This comment was deleted by its author.",
379
+ unrenderable: "This comment cannot be displayed.",
380
+ depthEnd: "Replies end at this depth",
381
+ held: "Awaiting approval.",
382
+ heldBanner: "Thanks, your comment is awaiting approval",
383
+ heldBannerBody: "New commenters may be reviewed first. You will see it here, marked as pending, until a moderator approves it. Nobody else can see it yet.",
384
+ heldNote: "Only you can see this until a moderator approves it.",
385
+ heldLive: "Comment awaiting approval",
386
+ postedLive: "Comment posted",
387
+ deletedLive: "Comment deleted",
388
+ savedLive: "Comment saved",
389
+ empty: "No comments yet",
390
+ emptyBody: "Start the discussion. Comments may be reviewed before they appear.",
391
+ loading: "Loading comments",
392
+ loadError: "Comments could not be loaded",
393
+ loadErrorBody: "The article is fine. The comments service did not answer.",
394
+ retry: "Try again",
395
+ postError: "Your comment was not posted. We kept your text, so nothing is lost. Check your connection and try again.",
396
+ tooLong: "That comment is too long or empty. Comments are 1 to 4000 characters.",
397
+ editClosed: "Comments can be edited for ten minutes after posting. That time has passed.",
398
+ actionError: "That did not go through. Please try again.",
399
+ rateTitle: "You are commenting too quickly",
400
+ rateBody: "Please wait before posting again. Your draft is kept in the box below.",
401
+ rateWait: "You can post again in {n} seconds.",
402
+ bannedTitle: "You cannot comment right now",
403
+ bannedBody: "Commenting is not available for your account on this site. You can still read every comment. If you think this is a mistake, contact the site team.",
404
+ expired: "Your session ended. Sign in again to post. Your text is kept.",
405
+ more: "Load more comments",
406
+ truncated: "Only the first part of this discussion is shown.",
407
+ justNow: "just now",
408
+ react: "React",
409
+ reactions: "Reactions",
410
+ reactionLike: "Like",
411
+ reactionLove: "Love",
412
+ reactionInsightful: "Insightful",
413
+ reactionCelebrate: "Celebrate",
414
+ reactionSignIn: "Sign in to react, ",
415
+ reactionAddedLive: "{kind} reaction added",
416
+ reactionRemovedLive: "{kind} reaction removed",
417
+ reactionsLoading: "Loading reactions",
418
+ reactionsError: "Reactions could not be loaded",
419
+ votesOn: "Votes on the comment by {name}",
420
+ score: "Score {n}",
421
+ upvote: "Upvote",
422
+ downvote: "Downvote",
423
+ upvoteSignIn: "Sign in to upvote",
424
+ downvoteSignIn: "Sign in to downvote",
425
+ upvotedLive: "Upvoted. Score {n}",
426
+ downvotedLive: "Downvoted. Score {n}",
427
+ voteRemovedLive: "Vote removed. Score {n}",
428
+ voteRefused: "That vote was not accepted. You cannot vote on your own comment.",
429
+ slowDown: "Too many actions in a short time. Wait a moment and try again.",
430
+ sort: "Sort comments",
431
+ sortNewest: "Newest",
432
+ sortTop: "Top",
433
+ sortedNewestLive: "Showing newest comments first",
434
+ sortedTopLive: "Showing top comments first",
435
+ sortError: "The comments could not be sorted. Please try again.",
436
+ newerLater: "Newer comments appear after you load more.",
437
+ moreError: "More comments could not be loaded. Please try again.",
438
+ loadedLive: "{n} comments loaded"
439
+ };
440
+ var COMMENT_LABELS_FR = {
441
+ heading: "Commentaires",
442
+ countLabel: "{n} commentaires",
443
+ likeArticle: "Aimer cet article",
444
+ likedArticle: "Aim\xE9",
445
+ likeArticleSignIn: "(connexion requise), ",
446
+ likeComment: "Aimer ce commentaire, ",
447
+ likeCommentSignIn: "Connectez-vous pour aimer ce commentaire, ",
448
+ signInTitle: "Connectez-vous pour participer \xE0 la discussion",
449
+ signInBody: "Tout le monde peut lire. Pour commenter ou aimer, connectez-vous.",
450
+ signIn: "Se connecter",
451
+ commentingAs: "Vous commentez en tant que {name}",
452
+ write: "\xC9crire un commentaire",
453
+ placeholder: "Participez \xE0 la discussion",
454
+ help: "Markdown : liens, emphase, code et citations.",
455
+ chars: "{n} / {max}",
456
+ post: "Publier le commentaire",
457
+ posting: "Publication",
458
+ reply: "R\xE9pondre",
459
+ replyTo: "R\xE9pondre \xE0 {name}",
460
+ replyPlaceholder: "\xC9crire une r\xE9ponse",
461
+ cancel: "Annuler",
462
+ edit: "Modifier",
463
+ editLeft: "({n} min restantes)",
464
+ save: "Enregistrer",
465
+ delete: "Supprimer",
466
+ deleteConfirm: "Supprimer ce commentaire ?",
467
+ keep: "Conserver",
468
+ you: "Vous",
469
+ edited: "modifi\xE9",
470
+ removed: "Ce commentaire a \xE9t\xE9 retir\xE9.",
471
+ removedByModerator: "Ce commentaire a \xE9t\xE9 retir\xE9 par un mod\xE9rateur.",
472
+ removedByAuthor: "Ce commentaire a \xE9t\xE9 supprim\xE9 par son auteur.",
473
+ unrenderable: "Ce commentaire ne peut pas \xEAtre affich\xE9.",
474
+ depthEnd: "Les r\xE9ponses s'arr\xEAtent \xE0 ce niveau",
475
+ held: "En attente d'approbation.",
476
+ heldBanner: "Merci, votre commentaire est en attente d'approbation",
477
+ heldBannerBody: "Les nouveaux commentaires peuvent \xEAtre relus d'abord. Vous le voyez ici, marqu\xE9 en attente, jusqu'\xE0 son approbation par un mod\xE9rateur. Personne d'autre ne peut le voir.",
478
+ heldNote: "Vous seul le voyez tant qu'un mod\xE9rateur ne l'a pas approuv\xE9.",
479
+ heldLive: "Commentaire en attente d'approbation",
480
+ postedLive: "Commentaire publi\xE9",
481
+ deletedLive: "Commentaire supprim\xE9",
482
+ savedLive: "Commentaire enregistr\xE9",
483
+ empty: "Aucun commentaire pour l'instant",
484
+ emptyBody: "Lancez la discussion. Les commentaires peuvent \xEAtre relus avant d'appara\xEEtre.",
485
+ loading: "Chargement des commentaires",
486
+ loadError: "Les commentaires n'ont pas pu \xEAtre charg\xE9s",
487
+ loadErrorBody: "L'article est intact. Le service de commentaires n'a pas r\xE9pondu.",
488
+ retry: "R\xE9essayer",
489
+ postError: "Votre commentaire n'a pas \xE9t\xE9 publi\xE9. Votre texte est conserv\xE9. V\xE9rifiez votre connexion et r\xE9essayez.",
490
+ tooLong: "Ce commentaire est trop long ou vide. Un commentaire compte de 1 \xE0 4000 caract\xE8res.",
491
+ editClosed: "Un commentaire peut \xEAtre modifi\xE9 pendant dix minutes apr\xE8s sa publication. Ce d\xE9lai est \xE9coul\xE9.",
492
+ actionError: "L'action a \xE9chou\xE9. R\xE9essayez.",
493
+ rateTitle: "Vous commentez trop vite",
494
+ rateBody: "Patientez avant de publier \xE0 nouveau. Votre brouillon est conserv\xE9 dans la zone ci-dessous.",
495
+ rateWait: "Vous pourrez publier \xE0 nouveau dans {n} secondes.",
496
+ bannedTitle: "Vous ne pouvez pas commenter pour le moment",
497
+ bannedBody: "Les commentaires ne sont pas disponibles pour votre compte sur ce site. Vous pouvez toujours tout lire. Si vous pensez \xE0 une erreur, contactez l'\xE9quipe du site.",
498
+ expired: "Votre session a expir\xE9. Reconnectez-vous pour publier. Votre texte est conserv\xE9.",
499
+ more: "Charger plus de commentaires",
500
+ truncated: "Seul le d\xE9but de cette discussion est affich\xE9.",
501
+ justNow: "\xE0 l'instant",
502
+ react: "R\xE9agir",
503
+ reactions: "R\xE9actions",
504
+ reactionLike: "J'aime",
505
+ reactionLove: "J'adore",
506
+ reactionInsightful: "Instructif",
507
+ reactionCelebrate: "Bravo",
508
+ reactionSignIn: "Connectez-vous pour r\xE9agir, ",
509
+ reactionAddedLive: "R\xE9action {kind} ajout\xE9e",
510
+ reactionRemovedLive: "R\xE9action {kind} retir\xE9e",
511
+ reactionsLoading: "Chargement des r\xE9actions",
512
+ reactionsError: "Les r\xE9actions n'ont pas pu \xEAtre charg\xE9es",
513
+ votesOn: "Votes sur le commentaire de {name}",
514
+ score: "Score {n}",
515
+ upvote: "Voter pour",
516
+ downvote: "Voter contre",
517
+ upvoteSignIn: "Connectez-vous pour voter pour",
518
+ downvoteSignIn: "Connectez-vous pour voter contre",
519
+ upvotedLive: "Vote pour enregistr\xE9. Score {n}",
520
+ downvotedLive: "Vote contre enregistr\xE9. Score {n}",
521
+ voteRemovedLive: "Vote retir\xE9. Score {n}",
522
+ voteRefused: "Ce vote a \xE9t\xE9 refus\xE9. Vous ne pouvez pas voter pour votre propre commentaire.",
523
+ slowDown: "Trop d'actions en peu de temps. Patientez un instant et r\xE9essayez.",
524
+ sort: "Trier les commentaires",
525
+ sortNewest: "R\xE9cents",
526
+ sortTop: "Meilleurs",
527
+ sortedNewestLive: "Commentaires les plus r\xE9cents en premier",
528
+ sortedTopLive: "Meilleurs commentaires en premier",
529
+ sortError: "Les commentaires n'ont pas pu \xEAtre tri\xE9s. R\xE9essayez.",
530
+ newerLater: "Les commentaires plus r\xE9cents apparaissent apr\xE8s le chargement de la suite.",
531
+ moreError: "La suite des commentaires n'a pas pu \xEAtre charg\xE9e. R\xE9essayez.",
532
+ loadedLive: "{n} commentaires charg\xE9s"
533
+ };
534
+ var COMMENT_LABELS_ES = {
535
+ heading: "Comentarios",
536
+ countLabel: "{n} comentarios",
537
+ likeArticle: "Me gusta este art\xEDculo",
538
+ likedArticle: "Te gusta",
539
+ likeArticleSignIn: "(inicia sesi\xF3n), ",
540
+ likeComment: "Me gusta este comentario, ",
541
+ likeCommentSignIn: "Inicia sesi\xF3n para dar me gusta a este comentario, ",
542
+ signInTitle: "Inicia sesi\xF3n para unirte a la conversaci\xF3n",
543
+ signInBody: "Todos pueden leer. Para comentar o dar me gusta, inicia sesi\xF3n.",
544
+ signIn: "Iniciar sesi\xF3n",
545
+ commentingAs: "Comentando como {name}",
546
+ write: "Escribe un comentario",
547
+ placeholder: "A\xF1ade a la conversaci\xF3n",
548
+ help: "Markdown: enlaces, \xE9nfasis, c\xF3digo y citas.",
549
+ chars: "{n} / {max}",
550
+ post: "Publicar comentario",
551
+ posting: "Publicando",
552
+ reply: "Responder",
553
+ replyTo: "Responder a {name}",
554
+ replyPlaceholder: "Escribe una respuesta",
555
+ cancel: "Cancelar",
556
+ edit: "Editar",
557
+ editLeft: "(quedan {n} min)",
558
+ save: "Guardar",
559
+ delete: "Eliminar",
560
+ deleteConfirm: "\xBFEliminar este comentario?",
561
+ keep: "Conservar",
562
+ you: "T\xFA",
563
+ edited: "editado",
564
+ removed: "Este comentario fue eliminado.",
565
+ removedByModerator: "Un moderador elimin\xF3 este comentario.",
566
+ removedByAuthor: "Su autor elimin\xF3 este comentario.",
567
+ unrenderable: "Este comentario no se puede mostrar.",
568
+ depthEnd: "Las respuestas terminan en este nivel",
569
+ held: "Pendiente de aprobaci\xF3n.",
570
+ heldBanner: "Gracias, tu comentario est\xE1 pendiente de aprobaci\xF3n",
571
+ heldBannerBody: "Los comentarios nuevos pueden revisarse primero. Lo ves aqu\xED, marcado como pendiente, hasta que un moderador lo apruebe. Nadie m\xE1s puede verlo todav\xEDa.",
572
+ heldNote: "Solo t\xFA lo ves hasta que un moderador lo apruebe.",
573
+ heldLive: "Comentario pendiente de aprobaci\xF3n",
574
+ postedLive: "Comentario publicado",
575
+ deletedLive: "Comentario eliminado",
576
+ savedLive: "Comentario guardado",
577
+ empty: "A\xFAn no hay comentarios",
578
+ emptyBody: "Empieza la conversaci\xF3n. Los comentarios pueden revisarse antes de aparecer.",
579
+ loading: "Cargando comentarios",
580
+ loadError: "No se pudieron cargar los comentarios",
581
+ loadErrorBody: "El art\xEDculo est\xE1 bien. El servicio de comentarios no respondi\xF3.",
582
+ retry: "Reintentar",
583
+ postError: "Tu comentario no se public\xF3. Hemos conservado tu texto. Revisa tu conexi\xF3n e int\xE9ntalo de nuevo.",
584
+ tooLong: "Ese comentario es demasiado largo o est\xE1 vac\xEDo. Los comentarios tienen de 1 a 4000 caracteres.",
585
+ editClosed: "Un comentario puede editarse durante diez minutos tras publicarlo. Ese tiempo ya pas\xF3.",
586
+ actionError: "No se pudo completar. Int\xE9ntalo de nuevo.",
587
+ rateTitle: "Est\xE1s comentando demasiado r\xE1pido",
588
+ rateBody: "Espera antes de publicar de nuevo. Tu borrador se conserva en el cuadro de abajo.",
589
+ rateWait: "Podr\xE1s publicar de nuevo en {n} segundos.",
590
+ bannedTitle: "No puedes comentar por ahora",
591
+ bannedBody: "Los comentarios no est\xE1n disponibles para tu cuenta en este sitio. A\xFAn puedes leerlos todos. Si crees que es un error, contacta con el equipo del sitio.",
592
+ expired: "Tu sesi\xF3n termin\xF3. Inicia sesi\xF3n de nuevo para publicar. Tu texto se conserva.",
593
+ more: "Cargar m\xE1s comentarios",
594
+ truncated: "Solo se muestra la primera parte de esta conversaci\xF3n.",
595
+ justNow: "ahora mismo",
596
+ react: "Reaccionar",
597
+ reactions: "Reacciones",
598
+ reactionLike: "Me gusta",
599
+ reactionLove: "Me encanta",
600
+ reactionInsightful: "Interesante",
601
+ reactionCelebrate: "Celebrar",
602
+ reactionSignIn: "Inicia sesi\xF3n para reaccionar, ",
603
+ reactionAddedLive: "Reacci\xF3n {kind} a\xF1adida",
604
+ reactionRemovedLive: "Reacci\xF3n {kind} eliminada",
605
+ reactionsLoading: "Cargando reacciones",
606
+ reactionsError: "No se pudieron cargar las reacciones",
607
+ votesOn: "Votos del comentario de {name}",
608
+ score: "Puntuaci\xF3n {n}",
609
+ upvote: "Votar a favor",
610
+ downvote: "Votar en contra",
611
+ upvoteSignIn: "Inicia sesi\xF3n para votar a favor",
612
+ downvoteSignIn: "Inicia sesi\xF3n para votar en contra",
613
+ upvotedLive: "Voto a favor registrado. Puntuaci\xF3n {n}",
614
+ downvotedLive: "Voto en contra registrado. Puntuaci\xF3n {n}",
615
+ voteRemovedLive: "Voto retirado. Puntuaci\xF3n {n}",
616
+ voteRefused: "No se acept\xF3 el voto. No puedes votar tu propio comentario.",
617
+ slowDown: "Demasiadas acciones en poco tiempo. Espera un momento e int\xE9ntalo de nuevo.",
618
+ sort: "Ordenar comentarios",
619
+ sortNewest: "Recientes",
620
+ sortTop: "Destacados",
621
+ sortedNewestLive: "Comentarios m\xE1s recientes primero",
622
+ sortedTopLive: "Comentarios destacados primero",
623
+ sortError: "No se pudieron ordenar los comentarios. Int\xE9ntalo de nuevo.",
624
+ newerLater: "Los comentarios m\xE1s recientes aparecen al cargar m\xE1s.",
625
+ moreError: "No se pudieron cargar m\xE1s comentarios. Int\xE9ntalo de nuevo.",
626
+ loadedLive: "{n} comentarios cargados"
627
+ };
628
+
629
+ // src/react/strings.ts
630
+ var en = {
631
+ toc: "On this page",
632
+ prev: "Previous",
633
+ next: "Next",
634
+ pager: "Pager",
635
+ languages: "Languages",
636
+ readIn: "Read in",
637
+ anchor: "Link to this section",
638
+ table: "Table",
639
+ crumbs: "Breadcrumb",
640
+ by: "By",
641
+ note: "Note",
642
+ warning: "Heads up",
643
+ tip: "Tip",
644
+ caution: "Caution",
645
+ important: "Important",
646
+ copyCode: "Copy code",
647
+ copied: "Copied",
648
+ copyBlocked: "Copy blocked",
649
+ done: "Done",
650
+ notDone: "Not done",
651
+ playVideo: "Play video",
652
+ videoFrame: "YouTube video",
653
+ diagram: "Diagram",
654
+ diagramError: "This diagram could not be rendered.",
655
+ diagramLoading: "Loading the diagram",
656
+ diagramSource: "Diagram source",
657
+ contentError: "This content cannot be displayed.",
658
+ fallbackTitle: "Not translated into {language} yet.",
659
+ fallbackBody: "You are reading the original.",
660
+ readingTime: "{n} min read",
661
+ readingTimeLabel: "Reading time",
662
+ older: "Older posts",
663
+ viewAll: "View all",
664
+ moreInSection: "More in this section",
665
+ subPages: "In this section",
666
+ readAtSource: "Read at source",
667
+ emptyTitle: "Nothing published here yet",
668
+ emptyBody: "Documents published to this section will appear here, newest first.",
669
+ docs: "Documentation",
670
+ menu: "Menu",
671
+ closeMenu: "Close menu",
672
+ updated: "Last updated",
673
+ nfKind: "404 \xB7 Not found",
674
+ nfTitle: "This page does not exist",
675
+ nfBody: "The address may be mistyped, or the document may have been unpublished or moved.",
676
+ path: "Path",
677
+ home: "Go to home",
678
+ rdKind: "Moved",
679
+ rdTitle: "This page has moved",
680
+ rdBody: "You are being taken to its new address.",
681
+ from: "From",
682
+ to: "To",
683
+ rdFallback: "If nothing happens, go to the new address.",
684
+ unKind: "Unavailable",
685
+ unTitle: "This page is temporarily unavailable",
686
+ unBody: "The content could not be loaded. Please try again in a moment.",
687
+ viewer: VIEWER_LABELS_EN,
688
+ comments: COMMENT_LABELS_EN
689
+ };
690
+ var fr = {
691
+ toc: "Sur cette page",
692
+ prev: "Pr\xE9c\xE9dent",
693
+ next: "Suivant",
694
+ pager: "Pagination",
695
+ languages: "Langues",
696
+ readIn: "Lire en",
697
+ anchor: "Lien vers cette section",
698
+ table: "Tableau",
699
+ crumbs: "Fil d'Ariane",
700
+ by: "Par",
701
+ note: "Remarque",
702
+ warning: "Attention",
703
+ tip: "Astuce",
704
+ caution: "Danger",
705
+ important: "Important",
706
+ copyCode: "Copier le code",
707
+ copied: "Copi\xE9",
708
+ copyBlocked: "Copie bloqu\xE9e",
709
+ done: "Termin\xE9",
710
+ notDone: "\xC0 faire",
711
+ playVideo: "Lire la vid\xE9o",
712
+ videoFrame: "Vid\xE9o YouTube",
713
+ diagram: "Sch\xE9ma",
714
+ diagramError: "Ce sch\xE9ma n'a pas pu \xEAtre affich\xE9.",
715
+ diagramLoading: "Chargement du sch\xE9ma",
716
+ diagramSource: "Source du sch\xE9ma",
717
+ contentError: "Ce contenu ne peut pas \xEAtre affich\xE9.",
718
+ fallbackTitle: "Pas encore traduit en {language}.",
719
+ fallbackBody: "Vous lisez l'original.",
720
+ readingTime: "{n} min de lecture",
721
+ readingTimeLabel: "Temps de lecture",
722
+ older: "Articles plus anciens",
723
+ viewAll: "Tout voir",
724
+ moreInSection: "Plus dans cette section",
725
+ subPages: "Dans cette section",
726
+ readAtSource: "Lire \xE0 la source",
727
+ emptyTitle: "Rien n'est encore publi\xE9 ici",
728
+ emptyBody: "Les documents publi\xE9s dans cette section appara\xEEtront ici, du plus r\xE9cent au plus ancien.",
729
+ docs: "Documentation",
730
+ menu: "Menu",
731
+ closeMenu: "Fermer le menu",
732
+ updated: "Derni\xE8re mise \xE0 jour",
733
+ nfKind: "404 \xB7 Introuvable",
734
+ nfTitle: "Cette page n'existe pas",
735
+ nfBody: "L'adresse est peut-\xEAtre mal saisie, ou le document a \xE9t\xE9 d\xE9publi\xE9 ou d\xE9plac\xE9.",
736
+ path: "Chemin",
737
+ home: "Aller \xE0 l'accueil",
738
+ rdKind: "D\xE9plac\xE9e",
739
+ rdTitle: "Cette page a \xE9t\xE9 d\xE9plac\xE9e",
740
+ rdBody: "Vous \xEAtes redirig\xE9 vers sa nouvelle adresse.",
741
+ from: "De",
742
+ to: "Vers",
743
+ rdFallback: "Si rien ne se passe, allez \xE0 la nouvelle adresse.",
744
+ unKind: "Indisponible",
745
+ unTitle: "Cette page est momentan\xE9ment indisponible",
746
+ unBody: "Le contenu n'a pas pu \xEAtre charg\xE9. R\xE9essayez dans un instant.",
747
+ viewer: VIEWER_LABELS_FR,
748
+ comments: COMMENT_LABELS_FR
749
+ };
750
+ var es = {
751
+ toc: "En esta p\xE1gina",
752
+ prev: "Anterior",
753
+ next: "Siguiente",
754
+ pager: "Paginaci\xF3n",
755
+ languages: "Idiomas",
756
+ readIn: "Leer en",
757
+ anchor: "Enlace a esta secci\xF3n",
758
+ table: "Tabla",
759
+ crumbs: "Ruta de navegaci\xF3n",
760
+ by: "Por",
761
+ note: "Nota",
762
+ warning: "Atenci\xF3n",
763
+ tip: "Consejo",
764
+ caution: "Peligro",
765
+ important: "Importante",
766
+ copyCode: "Copiar el c\xF3digo",
767
+ copied: "Copiado",
768
+ copyBlocked: "Copia bloqueada",
769
+ done: "Hecho",
770
+ notDone: "Pendiente",
771
+ playVideo: "Reproducir el v\xEDdeo",
772
+ videoFrame: "V\xEDdeo de YouTube",
773
+ diagram: "Diagrama",
774
+ diagramError: "No se pudo mostrar este diagrama.",
775
+ diagramLoading: "Cargando el diagrama",
776
+ diagramSource: "C\xF3digo del diagrama",
777
+ contentError: "No se puede mostrar este contenido.",
778
+ fallbackTitle: "A\xFAn no est\xE1 traducida al {language}.",
779
+ fallbackBody: "Est\xE1s leyendo el original.",
780
+ readingTime: "{n} min de lectura",
781
+ readingTimeLabel: "Tiempo de lectura",
782
+ older: "Entradas anteriores",
783
+ viewAll: "Ver todo",
784
+ moreInSection: "M\xE1s en esta secci\xF3n",
785
+ subPages: "En esta secci\xF3n",
786
+ readAtSource: "Leer en la fuente",
787
+ emptyTitle: "A\xFAn no hay nada publicado aqu\xED",
788
+ emptyBody: "Los documentos publicados en esta secci\xF3n aparecer\xE1n aqu\xED, del m\xE1s reciente al m\xE1s antiguo.",
789
+ docs: "Documentaci\xF3n",
790
+ menu: "Men\xFA",
791
+ closeMenu: "Cerrar el men\xFA",
792
+ updated: "\xDAltima actualizaci\xF3n",
793
+ nfKind: "404 \xB7 No encontrada",
794
+ nfTitle: "Esta p\xE1gina no existe",
795
+ nfBody: "Puede que la direcci\xF3n est\xE9 mal escrita, o que el documento se haya despublicado o movido.",
796
+ path: "Ruta",
797
+ home: "Ir al inicio",
798
+ rdKind: "Movida",
799
+ rdTitle: "Esta p\xE1gina se ha movido",
800
+ rdBody: "Te estamos llevando a su nueva direcci\xF3n.",
801
+ from: "Desde",
802
+ to: "A",
803
+ rdFallback: "Si no pasa nada, ve a la nueva direcci\xF3n.",
804
+ unKind: "No disponible",
805
+ unTitle: "Esta p\xE1gina no est\xE1 disponible por el momento",
806
+ unBody: "No se pudo cargar el contenido. Int\xE9ntalo de nuevo en un momento.",
807
+ viewer: VIEWER_LABELS_ES,
808
+ comments: COMMENT_LABELS_ES
809
+ };
810
+ var TABLE = { en, fr, es };
811
+ function stringsFor(locale) {
812
+ return TABLE[(locale ?? "en").slice(0, 2).toLowerCase()] ?? en;
813
+ }
814
+ function languageName(code, inLocale) {
815
+ try {
816
+ return new Intl.DisplayNames([inLocale], { type: "language" }).of(code) ?? code;
817
+ } catch {
818
+ return code;
819
+ }
820
+ }
821
+ function formatDate(iso, locale, options = { dateStyle: "medium" }) {
822
+ try {
823
+ return new Intl.DateTimeFormat(locale, { ...options, timeZone: "UTC" }).format(new Date(iso));
824
+ } catch {
825
+ return iso.slice(0, 10);
826
+ }
827
+ }
828
+
829
+ export {
830
+ HastLimitError,
831
+ scopeId,
832
+ isSafeUrl,
833
+ mermaidSource,
834
+ diagramRender,
835
+ youtubeId,
836
+ sanitizeHast,
837
+ VIEWER_LABELS_EN,
838
+ stringsFor,
839
+ languageName,
840
+ formatDate
841
+ };