markstream-vue 0.0.2-beta.8 → 0.0.2-beta.9

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.
@@ -0,0 +1,4827 @@
1
+ var Lo = Object.defineProperty, No = Object.defineProperties;
2
+ var jo = Object.getOwnPropertyDescriptors;
3
+ var Qn = Object.getOwnPropertySymbols;
4
+ var Ho = Object.prototype.hasOwnProperty, Ro = Object.prototype.propertyIsEnumerable;
5
+ var eo = (t, n, e) => n in t ? Lo(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, qe = (t, n) => {
6
+ for (var e in n || (n = {}))
7
+ Ho.call(n, e) && eo(t, e, n[e]);
8
+ if (Qn)
9
+ for (var e of Qn(n))
10
+ Ro.call(n, e) && eo(t, e, n[e]);
11
+ return t;
12
+ }, ut = (t, n) => No(t, jo(n));
13
+ var N = (t, n, e) => new Promise((a, r) => {
14
+ var u = (f) => {
15
+ try {
16
+ d(e.next(f));
17
+ } catch (l) {
18
+ r(l);
19
+ }
20
+ }, s = (f) => {
21
+ try {
22
+ d(e.throw(f));
23
+ } catch (l) {
24
+ r(l);
25
+ }
26
+ }, d = (f) => f.done ? a(f.value) : Promise.resolve(f.value).then(u, s);
27
+ d((e = e.apply(t, n)).next());
28
+ });
29
+ import { getMarkdown as Do, parseMarkdownToStructure as zo, setDefaultMathOptions as Ao } from "stream-markdown-parser";
30
+ import { defineComponent as V, createElementBlock as g, openBlock as m, withMemo as Dt, createVNode as Ye, unref as B, createElementVNode as h, Fragment as ae, renderList as pe, toDisplayString as ee, computed as E, ref as M, watch as U, nextTick as ue, onBeforeUnmount as hn, createBlock as de, Teleport as fo, Transition as fn, withCtx as Bt, withDirectives as sn, normalizeClass as A, normalizeStyle as Re, vShow as ln, createApp as Po, h as In, inject as Vo, provide as Ko, createCommentVNode as se, renderSlot as Je, shallowRef as vo, readonly as Wo, defineAsyncComponent as zt, resolveDynamicComponent as Ne, useAttrs as Oo, mergeProps as Rt, isMemoSame as po, onMounted as go, onUnmounted as Fo, withModifiers as Xo, markRaw as to, reactive as Mn } from "vue";
31
+ import { autoUpdate as no, offset as Yo, flip as qo, shift as Uo, computePosition as Zo } from "@floating-ui/dom";
32
+ const Go = ["cite"], Jo = /* @__PURE__ */ V({
33
+ __name: "BlockquoteNode",
34
+ props: {
35
+ node: {},
36
+ indexKey: {},
37
+ typewriter: { type: Boolean },
38
+ customId: {}
39
+ },
40
+ emits: ["copy"],
41
+ setup(t) {
42
+ const n = t;
43
+ return (e, a) => (m(), g("blockquote", {
44
+ class: "blockquote",
45
+ dir: "auto",
46
+ cite: t.node.cite
47
+ }, [
48
+ Dt([n.node.children], () => Ye(B(Xe), {
49
+ "index-key": `blockquote-${n.indexKey}`,
50
+ nodes: n.node.children || [],
51
+ "custom-id": n.customId,
52
+ typewriter: n.typewriter,
53
+ onCopy: a[0] || (a[0] = (r) => e.$emit("copy", r))
54
+ }, null, 8, ["index-key", "nodes", "custom-id", "typewriter"]), a, 1)
55
+ ], 8, Go));
56
+ }
57
+ }), O = (t, n) => {
58
+ const e = t.__vccOpts || t;
59
+ for (const [a, r] of n)
60
+ e[a] = r;
61
+ return e;
62
+ }, Zt = /* @__PURE__ */ O(Jo, [["__scopeId", "data-v-eeadc8a3"]]);
63
+ Zt.install = (t) => {
64
+ t.component(Zt.__name, Zt);
65
+ };
66
+ const Qo = { class: "checkbox-node" }, er = ["checked"], tr = /* @__PURE__ */ V({
67
+ __name: "CheckboxNode",
68
+ props: {
69
+ node: {}
70
+ },
71
+ setup(t) {
72
+ return (n, e) => (m(), g("span", Qo, [
73
+ h("input", {
74
+ type: "checkbox",
75
+ checked: t.node.checked,
76
+ disabled: "",
77
+ class: "checkbox-input"
78
+ }, null, 8, er)
79
+ ]));
80
+ }
81
+ }), Qe = /* @__PURE__ */ O(tr, [["__scopeId", "data-v-8dc6c46f"]]);
82
+ Qe.install = (t) => {
83
+ t.component(Qe.__name, Qe);
84
+ };
85
+ const nr = { class: "definition-list" }, or = { class: "definition-term" }, rr = { class: "definition-desc" }, ar = /* @__PURE__ */ V({
86
+ __name: "DefinitionListNode",
87
+ props: {
88
+ node: {},
89
+ indexKey: {},
90
+ typewriter: { type: Boolean },
91
+ customId: {}
92
+ },
93
+ emits: ["copy"],
94
+ setup(t) {
95
+ const n = t;
96
+ return (e, a) => (m(), g("dl", nr, [
97
+ (m(!0), g(ae, null, pe(n.node.items, (r, u) => (m(), g(ae, { key: u }, [
98
+ h("dt", or, [
99
+ Ye(B(Xe), {
100
+ "index-key": `definition-term-${n.indexKey}-${u}`,
101
+ nodes: r.term,
102
+ "custom-id": n.customId,
103
+ typewriter: n.typewriter,
104
+ onCopy: a[0] || (a[0] = (s) => e.$emit("copy", s))
105
+ }, null, 8, ["index-key", "nodes", "custom-id", "typewriter"])
106
+ ]),
107
+ h("dd", rr, [
108
+ Ye(B(Xe), {
109
+ "index-key": `definition-desc-${n.indexKey}-${u}`,
110
+ nodes: r.definition,
111
+ "custom-id": n.customId,
112
+ typewriter: n.typewriter,
113
+ onCopy: a[1] || (a[1] = (s) => e.$emit("copy", s))
114
+ }, null, 8, ["index-key", "nodes", "custom-id", "typewriter"])
115
+ ])
116
+ ], 64))), 128))
117
+ ]));
118
+ }
119
+ }), Gt = /* @__PURE__ */ O(ar, [["__scopeId", "data-v-f88691d6"]]);
120
+ Gt.install = (t) => {
121
+ t.component(Gt.__name, Gt);
122
+ };
123
+ const ir = { class: "emoji-node" }, sr = /* @__PURE__ */ V({
124
+ __name: "EmojiNode",
125
+ props: {
126
+ node: {}
127
+ },
128
+ setup(t) {
129
+ return (n, e) => (m(), g("span", ir, ee(t.node.name), 1));
130
+ }
131
+ }), Be = /* @__PURE__ */ O(sr, [["__scopeId", "data-v-de55dc97"]]);
132
+ Be.install = (t) => {
133
+ t.component(Be.__name, Be);
134
+ };
135
+ const cn = "__global__", Mt = {};
136
+ function Gs(t, n) {
137
+ typeof t == "string" ? Mt[t] = n || {} : Mt[cn] = t || {};
138
+ }
139
+ function et(t) {
140
+ return t ? Mt[t] || Mt[cn] || {} : Mt[cn] || {};
141
+ }
142
+ function Js(t) {
143
+ if (t === cn)
144
+ throw new Error("removeCustomComponents: use clearGlobalCustomComponents() to clear the global mapping");
145
+ delete Mt[t];
146
+ }
147
+ function Qs() {
148
+ delete Mt[cn];
149
+ }
150
+ const lr = ["id"], cr = ["title"], ur = /* @__PURE__ */ V({
151
+ __name: "FootnoteReferenceNode",
152
+ props: {
153
+ node: {}
154
+ },
155
+ setup(t) {
156
+ const e = `#footnote-${t.node.id}`;
157
+ function a() {
158
+ if (typeof document == "undefined")
159
+ return;
160
+ const r = document.querySelector(e);
161
+ r ? r.scrollIntoView({ behavior: "smooth" }) : console.warn(`Element with href: ${e} not found`);
162
+ }
163
+ return (r, u) => (m(), g("sup", {
164
+ id: `fnref-${t.node.id}`,
165
+ class: "footnote-reference",
166
+ onClick: a
167
+ }, [
168
+ h("span", {
169
+ href: e,
170
+ title: `查看脚注 ${t.node.id}`,
171
+ class: "footnote-link cursor-pointer"
172
+ }, "[" + ee(t.node.id) + "]", 9, cr)
173
+ ], 8, lr));
174
+ }
175
+ }), $e = /* @__PURE__ */ O(ur, [["__scopeId", "data-v-01af0fee"]]);
176
+ $e.install = (t) => {
177
+ t.component($e.__name, $e);
178
+ };
179
+ const dr = { class: "inline text-[85%] px-1 py-0.5 rounded font-mono bg-secondary whitespace-normal break-words max-w-full before:content-[''] after:content-['']" }, Ie = /* @__PURE__ */ V({
180
+ __name: "InlineCodeNode",
181
+ props: {
182
+ node: {}
183
+ },
184
+ setup(t) {
185
+ return (n, e) => (m(), g("code", dr, ee(t.node.code), 1));
186
+ }
187
+ });
188
+ Ie.install = (t) => {
189
+ t.component(Ie.__name, Ie);
190
+ };
191
+ const mr = ["id"], hr = /* @__PURE__ */ V({
192
+ __name: "Tooltip",
193
+ props: {
194
+ visible: { type: Boolean },
195
+ anchorEl: {},
196
+ content: {},
197
+ placement: {},
198
+ offset: {},
199
+ originX: {},
200
+ originY: {},
201
+ id: {},
202
+ isDark: { type: [Boolean, null] }
203
+ },
204
+ setup(t) {
205
+ const n = t, e = E(() => {
206
+ if (n.isDark !== void 0 && n.isDark !== null)
207
+ return !!n.isDark;
208
+ if (typeof document != "undefined")
209
+ try {
210
+ if (document.documentElement.classList.contains("dark") || window != null && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches)
211
+ return !0;
212
+ } catch (f) {
213
+ }
214
+ return !1;
215
+ }), a = M(null), r = M({ transform: "translate3d(0px, 0px, 0px)", left: "0px", top: "0px" }), u = M(!1);
216
+ let s = null;
217
+ function d() {
218
+ return N(this, null, function* () {
219
+ var p, _;
220
+ if (!n.anchorEl || !a.value)
221
+ return;
222
+ const f = [Yo((p = n.offset) != null ? p : 8), qo(), Uo({ padding: 8 })], { x: l, y: k } = yield Zo(n.anchorEl, a.value, {
223
+ placement: (_ = n.placement) != null ? _ : "top",
224
+ middleware: f,
225
+ strategy: "fixed"
226
+ });
227
+ r.value.transform = `translate3d(${Math.round(l)}px, ${Math.round(k)}px, 0)`, r.value.left = "0px", r.value.top = "0px";
228
+ });
229
+ }
230
+ return U(
231
+ () => n.visible,
232
+ (f) => N(null, null, function* () {
233
+ if (f)
234
+ if (u.value = !1, yield ue(), n.anchorEl && a.value)
235
+ try {
236
+ const l = n.anchorEl.getBoundingClientRect();
237
+ yield d();
238
+ const k = r.value.transform;
239
+ if (n.originX != null && n.originY != null) {
240
+ const p = Math.abs(Number(n.originX) - l.left), _ = Math.abs(Number(n.originY) - l.top);
241
+ Math.hypot(p, _) > 120 ? (r.value.transform = `translate3d(${Math.round(n.originX)}px, ${Math.round(n.originY)}px, 0)`, yield ue(), u.value = !0, yield ue(), r.value.transform = k) : u.value = !0;
242
+ } else
243
+ u.value = !0;
244
+ s = no(n.anchorEl, a.value, d);
245
+ } catch (l) {
246
+ yield d(), u.value = !0, s = no(n.anchorEl, a.value, d);
247
+ }
248
+ else
249
+ u.value = !0;
250
+ else
251
+ u.value = !1, s && (s(), s = null);
252
+ })
253
+ ), U([
254
+ () => n.anchorEl,
255
+ () => n.placement,
256
+ () => n.content
257
+ ], () => N(null, null, function* () {
258
+ n.visible && n.anchorEl && a.value && (yield ue(), yield d());
259
+ })), hn(() => {
260
+ s && s();
261
+ }), (f, l) => (m(), de(fo, { to: "body" }, [
262
+ Ye(fn, {
263
+ name: "tooltip",
264
+ appear: ""
265
+ }, {
266
+ default: Bt(() => [
267
+ sn(h("div", {
268
+ id: n.id,
269
+ ref_key: "tooltip",
270
+ ref: a,
271
+ style: Re({ position: "fixed", left: r.value.left, top: r.value.top, transform: r.value.transform }),
272
+ class: A(["z-[9999] inline-block text-base py-2 px-3 rounded-md shadow-md whitespace-nowrap pointer-events-none tooltip-element border", [e.value ? "bg-gray-900 text-white border-gray-700 border is-dark" : "bg-white text-gray-900 border-gray-200 border"]]),
273
+ role: "tooltip"
274
+ }, ee(t.content), 15, mr), [
275
+ [ln, t.visible && u.value]
276
+ ])
277
+ ]),
278
+ _: 1
279
+ })
280
+ ]));
281
+ }
282
+ }), fr = /* @__PURE__ */ O(hr, [["__scopeId", "data-v-993f63aa"]]), Pn = M(!1), wo = M(""), ko = M("top"), Jt = M(null), un = M(null), Vn = M(null), Kn = M(null), yo = M(null);
283
+ let Cn = null, _n = null;
284
+ function xo() {
285
+ Cn && (clearTimeout(Cn), Cn = null), _n && (clearTimeout(_n), _n = null);
286
+ }
287
+ let oo = !1;
288
+ function vr() {
289
+ if (oo || typeof document == "undefined")
290
+ return;
291
+ oo = !0;
292
+ const t = document.createElement("div");
293
+ t.setAttribute("data-singleton-tooltip", "1"), document.body.appendChild(t), Po({
294
+ setup() {
295
+ return () => {
296
+ var e;
297
+ return In(fr, {
298
+ visible: Pn.value,
299
+ "anchor-el": Jt.value,
300
+ content: wo.value,
301
+ placement: ko.value,
302
+ id: un.value,
303
+ originX: Vn.value,
304
+ originY: Kn.value,
305
+ isDark: (e = yo.value) != null ? e : void 0
306
+ });
307
+ };
308
+ }
309
+ }).mount(t);
310
+ }
311
+ function dn(t, n, e = "top", a = !1, r, u) {
312
+ if (!t)
313
+ return;
314
+ vr(), xo();
315
+ const s = () => {
316
+ var d, f;
317
+ un.value = `tooltip-${Date.now()}-${Math.floor(Math.random() * 1e3)}`, Jt.value = t, wo.value = n, ko.value = e, Vn.value = (d = r == null ? void 0 : r.x) != null ? d : null, Kn.value = (f = r == null ? void 0 : r.y) != null ? f : null, yo.value = typeof u == "boolean" ? u : null, Pn.value = !0;
318
+ try {
319
+ t.setAttribute("aria-describedby", un.value);
320
+ } catch (l) {
321
+ }
322
+ };
323
+ a ? s() : Cn = setTimeout(s, 80);
324
+ }
325
+ function Wn(t = !1) {
326
+ xo();
327
+ const n = () => {
328
+ if (Jt.value && un.value)
329
+ try {
330
+ Jt.value.removeAttribute("aria-describedby");
331
+ } catch (e) {
332
+ }
333
+ Pn.value = !1, Jt.value = null, un.value = null, Vn.value = null, Kn.value = null;
334
+ };
335
+ t ? n() : _n = setTimeout(n, 120);
336
+ }
337
+ function pr(t) {
338
+ return (t.split(".").pop() || t).replace(/[_-]/g, " ").replace(/([A-Z])/g, " $1").replace(/\s+/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()).trim();
339
+ }
340
+ const bo = {
341
+ "common.copy": "Copy",
342
+ "common.copySuccess": "Copied",
343
+ "common.decrease": "Decrease",
344
+ "common.reset": "Reset",
345
+ "common.increase": "Increase",
346
+ "common.expand": "Expand",
347
+ "common.collapse": "Collapse",
348
+ "common.preview": "Preview",
349
+ "common.source": "Source",
350
+ "common.export": "Export",
351
+ "common.open": "Open",
352
+ "common.zoomIn": "Zoom in",
353
+ "common.zoomOut": "Zoom out",
354
+ "common.resetZoom": "Reset zoom",
355
+ "image.loadError": "Image failed to load",
356
+ "image.loading": "Loading image..."
357
+ };
358
+ function el(t) {
359
+ Object.assign(bo, t);
360
+ }
361
+ function On() {
362
+ try {
363
+ const n = globalThis.$vueI18nUse || null;
364
+ if (n && typeof n == "function")
365
+ try {
366
+ const e = n();
367
+ if (e && typeof e.t == "function")
368
+ return { t: e.t.bind(e) };
369
+ } catch (e) {
370
+ }
371
+ } catch (n) {
372
+ }
373
+ const t = (n) => {
374
+ var e;
375
+ return (e = bo[n]) != null ? e : pr(n);
376
+ };
377
+ return N(null, null, function* () {
378
+ try {
379
+ const n = yield import("vue-i18n"), e = n.useI18n || n.default && n.default.useI18n;
380
+ if (e && typeof e == "function")
381
+ try {
382
+ const a = e();
383
+ if (a && typeof a.t == "function")
384
+ try {
385
+ globalThis.$vueI18nUse = () => a;
386
+ } catch (r) {
387
+ }
388
+ } catch (a) {
389
+ }
390
+ } catch (n) {
391
+ }
392
+ }), { t };
393
+ }
394
+ const Mo = Symbol("ViewportPriority");
395
+ function gr(t, n) {
396
+ const e = typeof window != "undefined" && typeof document != "undefined", a = typeof n == "boolean" ? M(n) : n;
397
+ let r = null;
398
+ const u = /* @__PURE__ */ new WeakMap();
399
+ function s() {
400
+ var l;
401
+ if (r || !e)
402
+ return r;
403
+ if (typeof IntersectionObserver == "undefined")
404
+ return null;
405
+ const f = (l = t()) != null ? l : null;
406
+ return r = new IntersectionObserver((k) => {
407
+ for (const p of k) {
408
+ const _ = u.get(p.target);
409
+ if (!_)
410
+ continue;
411
+ if (p.isIntersecting || p.intersectionRatio > 0) {
412
+ if (!_.visible.value) {
413
+ _.visible.value = !0;
414
+ try {
415
+ _.resolve();
416
+ } catch (P) {
417
+ }
418
+ }
419
+ r == null || r.unobserve(p.target), u.delete(p.target);
420
+ }
421
+ }
422
+ }, {
423
+ root: f,
424
+ rootMargin: "300px",
425
+ // prefetch slightly before entering viewport
426
+ threshold: 0
427
+ }), r;
428
+ }
429
+ const d = (f, l) => {
430
+ const k = M(!1);
431
+ let p = !1, _;
432
+ const T = new Promise((X) => {
433
+ _ = () => {
434
+ p || (p = !0, X());
435
+ };
436
+ }), P = () => {
437
+ try {
438
+ r == null || r.unobserve(f);
439
+ } catch (X) {
440
+ }
441
+ u.delete(f);
442
+ };
443
+ if (!e || !a.value)
444
+ return k.value = !0, _(), { isVisible: k, whenVisible: T, destroy: P };
445
+ const K = s();
446
+ return K ? (u.set(f, { resolve: _, visible: k }), K.observe(f), { isVisible: k, whenVisible: T, destroy: P }) : (k.value = !0, _(), { isVisible: k, whenVisible: T, destroy: P });
447
+ };
448
+ return Ko(Mo, d), d;
449
+ }
450
+ function Fn() {
451
+ const t = Vo(Mo, void 0);
452
+ if (t)
453
+ return t;
454
+ const n = /* @__PURE__ */ new WeakMap();
455
+ let e = null;
456
+ const a = () => e || (typeof window == "undefined" || typeof IntersectionObserver == "undefined" ? null : (e = new IntersectionObserver((u) => {
457
+ for (const s of u) {
458
+ const d = n.get(s.target);
459
+ if (!d)
460
+ continue;
461
+ if (s.isIntersecting || s.intersectionRatio > 0) {
462
+ if (!d.visible.value) {
463
+ d.visible.value = !0;
464
+ try {
465
+ d.resolve();
466
+ } catch (l) {
467
+ }
468
+ }
469
+ e == null || e.unobserve(s.target), n.delete(s.target);
470
+ }
471
+ }
472
+ }, { root: null, rootMargin: "300px", threshold: 0 }), e));
473
+ return (u) => {
474
+ const s = M(!1);
475
+ let d = !1, f;
476
+ const l = new Promise((_) => {
477
+ f = () => {
478
+ d || (d = !0, _());
479
+ };
480
+ }), k = () => {
481
+ try {
482
+ e == null || e.unobserve(u);
483
+ } catch (_) {
484
+ }
485
+ n.delete(u);
486
+ }, p = a();
487
+ return p ? (n.set(u, { resolve: f, visible: s }), p.observe(u), { isVisible: s, whenVisible: l, destroy: k }) : (s.value = !0, f(), { isVisible: s, whenVisible: l, destroy: k });
488
+ };
489
+ }
490
+ const wr = { class: "relative inline-block" }, kr = ["src", "alt", "title", "loading", "tabindex", "aria-label"], yr = { class: "text-sm whitespace-nowrap" }, xr = {
491
+ key: 1,
492
+ class: "text-sm text-gray-500"
493
+ }, br = {
494
+ key: "error",
495
+ class: "px-4 py-2 bg-gray-100 flex items-center justify-center rounded-lg gap-2 text-red-500"
496
+ }, Mr = { class: "text-sm whitespace-nowrap" }, Cr = {
497
+ key: 0,
498
+ class: "mt-2 text-sm text-gray-500 italic"
499
+ }, _r = /* @__PURE__ */ V({
500
+ __name: "ImageNode",
501
+ props: {
502
+ node: {},
503
+ fallbackSrc: { default: "" },
504
+ showCaption: { type: Boolean, default: !1 },
505
+ lazy: { type: Boolean, default: !0 },
506
+ svgMinHeight: { default: "12rem" },
507
+ usePlaceholder: { type: Boolean, default: !0 }
508
+ },
509
+ emits: ["load", "error", "click"],
510
+ setup(t, { emit: n }) {
511
+ const e = t, a = n, r = M(!1), u = M(!1), s = M(!1), d = M(null), f = Fn(), l = M(null), k = M(typeof window == "undefined");
512
+ typeof window != "undefined" && U(
513
+ () => d.value,
514
+ (L) => {
515
+ var W;
516
+ if ((W = l.value) == null || W.destroy(), l.value = null, !L) {
517
+ k.value = !1;
518
+ return;
519
+ }
520
+ const ke = f(L, { rootMargin: "400px" });
521
+ l.value = ke, k.value = ke.isVisible.value, ke.whenVisible.then(() => {
522
+ k.value = !0;
523
+ });
524
+ },
525
+ { immediate: !0 }
526
+ ), hn(() => {
527
+ var L;
528
+ (L = l.value) == null || L.destroy(), l.value = null;
529
+ });
530
+ const p = E(() => u.value && e.fallbackSrc ? e.fallbackSrc : e.node.src), _ = E(() => !e.lazy || k.value), T = E(() => /\.svg(?:\?|$)/i.test(p.value));
531
+ function P() {
532
+ e.fallbackSrc && !s.value ? (s.value = !0, u.value = !0) : (u.value = !0, a("error", e.node.src));
533
+ }
534
+ function K() {
535
+ r.value = !0, u.value = !1, a("load", p.value);
536
+ }
537
+ function X(L) {
538
+ L.preventDefault(), !(!r.value || u.value) && a("click", [L, p.value]);
539
+ }
540
+ const { t: R } = On();
541
+ return U(p, () => {
542
+ r.value = !1, u.value = !1;
543
+ }), (L, ke) => (m(), g("figure", {
544
+ ref_key: "figureRef",
545
+ ref: d,
546
+ class: "text-center my-8"
547
+ }, [
548
+ h("div", wr, [
549
+ Ye(fn, {
550
+ name: "img-switch",
551
+ mode: "out-in"
552
+ }, {
553
+ default: Bt(() => {
554
+ var W, Z, S, le, te;
555
+ return [
556
+ !t.node.loading && !u.value && _.value ? (m(), g("img", {
557
+ key: "image",
558
+ src: p.value,
559
+ alt: String((Z = (W = e.node.alt) != null ? W : e.node.title) != null ? Z : ""),
560
+ title: String((le = (S = e.node.title) != null ? S : e.node.alt) != null ? le : ""),
561
+ class: A(["max-w-96 h-auto rounded-lg transition-opacity duration-200 ease-in-out", { "opacity-0": !r.value, "opacity-100": r.value, "cursor-pointer": r.value }]),
562
+ style: Re(T.value ? { minHeight: e.svgMinHeight, width: "100%", height: "auto", objectFit: "contain" } : void 0),
563
+ loading: e.lazy ? "lazy" : "eager",
564
+ decoding: "async",
565
+ tabindex: r.value ? 0 : -1,
566
+ "aria-label": (te = e.node.alt) != null ? te : B(R)("image.preview"),
567
+ onError: P,
568
+ onLoad: K,
569
+ onClick: X
570
+ }, null, 46, kr)) : u.value ? !t.node.loading && !e.fallbackSrc ? (m(), g("div", br, [
571
+ Je(L.$slots, "error", {
572
+ node: e.node,
573
+ displaySrc: p.value,
574
+ imageLoaded: r.value,
575
+ hasError: u.value,
576
+ fallbackSrc: e.fallbackSrc,
577
+ lazy: e.lazy,
578
+ isSvg: T.value
579
+ }, () => [
580
+ ke[1] || (ke[1] = h("svg", {
581
+ xmlns: "http://www.w3.org/2000/svg",
582
+ width: "16",
583
+ height: "16",
584
+ viewBox: "0 0 24 24"
585
+ }, [
586
+ h("path", {
587
+ fill: "currentColor",
588
+ d: "M2 2h20v10h-2V4H4v9.586l5-5L14.414 14L13 15.414l-4-4l-5 5V20h8v2H2zm13.547 5a1 1 0 1 0 0 2a1 1 0 0 0 0-2m-3 1a3 3 0 1 1 6 0a3 3 0 0 1-6 0m3.625 6.757L19 17.586l2.828-2.829l1.415 1.415L20.414 19l2.829 2.828l-1.415 1.415L19 20.414l-2.828 2.829l-1.415-1.415L17.586 19l-2.829-2.828z"
589
+ })
590
+ ], -1)),
591
+ h("span", Mr, ee(B(R)("image.loadError")), 1)
592
+ ], !0)
593
+ ])) : se("", !0) : (m(), g("div", {
594
+ key: "placeholder",
595
+ class: "placeholder-layer max-w-96 inline-flex items-center justify-center gap-2",
596
+ style: Re(T.value ? { minHeight: e.svgMinHeight, width: "100%" } : { minHeight: "6rem" })
597
+ }, [
598
+ e.usePlaceholder ? Je(L.$slots, "placeholder", {
599
+ key: 0,
600
+ node: e.node,
601
+ displaySrc: p.value,
602
+ imageLoaded: r.value,
603
+ hasError: u.value,
604
+ fallbackSrc: e.fallbackSrc,
605
+ lazy: e.lazy,
606
+ isSvg: T.value
607
+ }, () => [
608
+ ke[0] || (ke[0] = h("div", {
609
+ class: "w-4 h-4 rounded-full border-2 border-solid border-current border-t-transparent animate-spin",
610
+ "aria-hidden": "true"
611
+ }, null, -1)),
612
+ h("span", yr, ee(B(R)("image.loading")), 1)
613
+ ], !0) : (m(), g("span", xr, ee(t.node.raw), 1))
614
+ ], 4))
615
+ ];
616
+ }),
617
+ _: 3
618
+ })
619
+ ]),
620
+ e.showCaption && e.node.alt ? (m(), g("figcaption", Cr, ee(e.node.alt), 1)) : se("", !0)
621
+ ], 512));
622
+ }
623
+ }), dt = /* @__PURE__ */ O(_r, [["__scopeId", "data-v-7ca79b66"]]);
624
+ dt.install = (t) => {
625
+ t.component(dt.__name, dt);
626
+ };
627
+ let Ut = null, Bn = !1, Xn = Co;
628
+ function Co() {
629
+ return N(null, null, function* () {
630
+ const t = yield import("katex");
631
+ return yield import("katex/contrib/mhchem"), t;
632
+ });
633
+ }
634
+ function Br() {
635
+ Ut = null, Bn = !1;
636
+ }
637
+ function _o(t) {
638
+ Xn = t, Br();
639
+ }
640
+ function tl(t) {
641
+ _o(t != null ? t : Co);
642
+ }
643
+ function nl() {
644
+ _o(null);
645
+ }
646
+ function Bo() {
647
+ return typeof Xn == "function";
648
+ }
649
+ function Yn() {
650
+ return N(this, null, function* () {
651
+ if (Ut)
652
+ return Ut;
653
+ if (Bn)
654
+ return null;
655
+ const t = Xn;
656
+ if (!t)
657
+ return Bn = !0, null;
658
+ try {
659
+ const n = yield t();
660
+ if (n)
661
+ return Ut = n, Ut;
662
+ } catch (n) {
663
+ }
664
+ return Bn = !0, null;
665
+ });
666
+ }
667
+ const Rn = vo(!1);
668
+ let ro = null;
669
+ function $o() {
670
+ return ro || (ro = Yn().then((t) => {
671
+ Rn.value = !!t;
672
+ }).catch(() => {
673
+ Rn.value = !1;
674
+ })), Wo(Rn);
675
+ }
676
+ const $r = /* @__PURE__ */ V({
677
+ __name: "TextNode",
678
+ props: {
679
+ node: {}
680
+ },
681
+ emits: ["copy"],
682
+ setup(t) {
683
+ const n = $o();
684
+ return (e, a) => (m(), g("span", {
685
+ class: A([[B(n) && t.node.center ? "text-node-center" : ""], "whitespace-pre-wrap break-words text-node"])
686
+ }, ee(t.node.content), 3));
687
+ }
688
+ }), ge = /* @__PURE__ */ O($r, [["__scopeId", "data-v-56f30838"]]);
689
+ ge.install = (t) => {
690
+ t.component(ge.__name, ge);
691
+ };
692
+ const tt = zt(() => N(null, null, function* () {
693
+ var n, e;
694
+ if (typeof globalThis != "undefined" && typeof globalThis.process != "undefined" && ((e = (n = globalThis.process) == null ? void 0 : n.env) == null ? void 0 : e.NODE_ENV) === "test")
695
+ return (a) => {
696
+ var r, u;
697
+ return In(ge, ut(qe({}, a), {
698
+ node: ut(qe({}, a.node), {
699
+ content: (u = a.node.raw) != null ? u : `$${(r = a.node.content) != null ? r : ""}$`
700
+ })
701
+ }));
702
+ };
703
+ try {
704
+ if (yield Yn())
705
+ return (yield import("./index-DoRl8S3_.js")).default;
706
+ } catch (a) {
707
+ console.warn(
708
+ '[markstream-vue] Optional peer dependencies for MathInlineNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',
709
+ a
710
+ );
711
+ }
712
+ return (a) => {
713
+ var r, u;
714
+ return In(ge, ut(qe({}, a), {
715
+ node: ut(qe({}, a.node), {
716
+ content: (u = a.node.raw) != null ? u : `$${(r = a.node.content) != null ? r : ""}$`
717
+ })
718
+ }));
719
+ };
720
+ })), Ir = zt(() => N(null, null, function* () {
721
+ try {
722
+ if (yield Yn())
723
+ return (yield import("./index-DdtMPiwH.js")).default;
724
+ } catch (t) {
725
+ console.warn(
726
+ '[markstream-vue] Optional peer dependencies for MathBlockNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',
727
+ t
728
+ );
729
+ }
730
+ return (t) => {
731
+ var n, e;
732
+ return In(ge, ut(qe({}, t), {
733
+ node: ut(qe({}, t.node), {
734
+ content: (e = t.node.raw) != null ? e : `$$${(n = t.node.content) != null ? n : ""}$$`
735
+ })
736
+ }));
737
+ };
738
+ })), Te = /* @__PURE__ */ V({
739
+ __name: "ReferenceNode",
740
+ props: {
741
+ node: {},
742
+ messageId: {},
743
+ threadId: {}
744
+ },
745
+ emits: ["click", "mouseEnter", "mouseLeave"],
746
+ setup(t) {
747
+ return (n, e) => (m(), g("span", {
748
+ class: "reference-node cursor-pointer bg-accent text-xs rounded-md px-1.5 mx-0.5 hover:bg-secondary",
749
+ role: "button",
750
+ tabindex: "0",
751
+ onClick: e[0] || (e[0] = (a) => n.$emit("click", a, t.node.id, t.messageId, t.threadId)),
752
+ onMouseenter: e[1] || (e[1] = (a) => n.$emit("mouseEnter", a, t.node.id, t.messageId, t.threadId)),
753
+ onMouseleave: e[2] || (e[2] = (a) => n.$emit("mouseLeave", a, t.node.id, t.messageId, t.threadId))
754
+ }, ee(t.node.id), 33));
755
+ }
756
+ });
757
+ Te.install = (t) => {
758
+ t.component(Te.__name, Te);
759
+ };
760
+ const Tr = { class: "superscript-node" }, Sr = { key: 1 }, Er = /* @__PURE__ */ V({
761
+ __name: "SuperscriptNode",
762
+ props: {
763
+ node: {},
764
+ customId: {},
765
+ indexKey: {}
766
+ },
767
+ setup(t) {
768
+ const n = t, e = et(n.customId), a = {
769
+ text: e.text || ge,
770
+ inline_code: e.inline_code || Ie,
771
+ link: e.link || Le,
772
+ strong: e.strong || Se,
773
+ emphasis: e.emphasis || Ve,
774
+ footnote_reference: e.footnote_reference || $e,
775
+ strikethrough: e.strikethrough || Ee,
776
+ highlight: e.highlight || Pe,
777
+ insert: e.insert || Ae,
778
+ subscript: e.subscript || ze,
779
+ emoji: e.emoji || Be,
780
+ math_inline: e.math_inline || tt,
781
+ reference: e.reference || Te
782
+ };
783
+ return (r, u) => (m(), g("sup", Tr, [
784
+ (m(!0), g(ae, null, pe(t.node.children, (s, d) => (m(), g(ae, {
785
+ key: `${t.indexKey || "superscript"}-${d}`
786
+ }, [
787
+ a[s.type] ? (m(), de(Ne(a[s.type]), {
788
+ key: 0,
789
+ node: s,
790
+ "custom-id": n.customId,
791
+ "index-key": `${t.indexKey || "superscript"}-${d}`
792
+ }, null, 8, ["node", "custom-id", "index-key"])) : (m(), g("span", Sr, ee(s.content || s.raw), 1))
793
+ ], 64))), 128))
794
+ ]));
795
+ }
796
+ }), De = /* @__PURE__ */ O(Er, [["__scopeId", "data-v-61b3fc8c"]]);
797
+ De.install = (t) => {
798
+ t.component(De.__name, De);
799
+ };
800
+ const Lr = { class: "subscript-node" }, Nr = { key: 1 }, jr = /* @__PURE__ */ V({
801
+ __name: "SubscriptNode",
802
+ props: {
803
+ node: {},
804
+ customId: {},
805
+ indexKey: {}
806
+ },
807
+ setup(t) {
808
+ const n = t, e = et(n.customId), a = {
809
+ text: e.text || ge,
810
+ inline_code: e.inline_code || Ie,
811
+ link: e.link || Le,
812
+ strong: e.strong || Se,
813
+ emphasis: e.emphasis || Ve,
814
+ footnote_reference: e.footnote_reference || $e,
815
+ strikethrough: e.strikethrough || Ee,
816
+ highlight: e.highlight || Pe,
817
+ insert: e.insert || Ae,
818
+ superscript: e.superscript || De,
819
+ emoji: e.emoji || Be,
820
+ math_inline: e.math_inline || tt,
821
+ reference: e.reference || Te
822
+ };
823
+ return (r, u) => (m(), g("sub", Lr, [
824
+ (m(!0), g(ae, null, pe(t.node.children, (s, d) => (m(), g(ae, {
825
+ key: `${t.indexKey || "subscript"}-${d}`
826
+ }, [
827
+ a[s.type] ? (m(), de(Ne(a[s.type]), {
828
+ key: 0,
829
+ node: s,
830
+ "custom-id": n.customId,
831
+ "index-key": `${t.indexKey || "subscript"}-${d}`
832
+ }, null, 8, ["node", "custom-id", "index-key"])) : (m(), g("span", Nr, ee(s.content || s.raw), 1))
833
+ ], 64))), 128))
834
+ ]));
835
+ }
836
+ }), ze = /* @__PURE__ */ O(jr, [["__scopeId", "data-v-7ab6b46a"]]);
837
+ ze.install = (t) => {
838
+ t.component(ze.__name, ze);
839
+ };
840
+ const Hr = { class: "strong-node" }, Rr = /* @__PURE__ */ V({
841
+ __name: "StrongNode",
842
+ props: {
843
+ node: {},
844
+ customId: {},
845
+ indexKey: {}
846
+ },
847
+ setup(t) {
848
+ const n = t, e = et(n.customId), a = {
849
+ text: e.text || ge,
850
+ inline_code: e.inline_code || Ie,
851
+ link: e.link || Le,
852
+ emphasis: e.emphasis || Ve,
853
+ strikethrough: e.strikethrough || Ee,
854
+ highlight: e.highlight || Pe,
855
+ insert: e.insert || Ae,
856
+ subscript: e.subscript || ze,
857
+ superscript: e.superscript || De,
858
+ emoji: e.emoji || Be,
859
+ footnote_reference: e.footnote_reference || $e,
860
+ math_inline: e.math_inline || tt,
861
+ reference: e.reference || Te
862
+ };
863
+ return (r, u) => (m(), g("strong", Hr, [
864
+ (m(!0), g(ae, null, pe(t.node.children, (s, d) => (m(), de(Ne(a[s.type]), {
865
+ key: `${t.indexKey || "strong"}-${d}`,
866
+ "index-key": `${t.indexKey || "strong"}-${d}`,
867
+ node: s,
868
+ "custom-id": n.customId
869
+ }, null, 8, ["index-key", "node", "custom-id"]))), 128))
870
+ ]));
871
+ }
872
+ }), Se = /* @__PURE__ */ O(Rr, [["__scopeId", "data-v-fa84457b"]]);
873
+ Se.install = (t) => {
874
+ t.component(Se.__name, Se);
875
+ };
876
+ const Dr = { class: "strikethrough-node" }, zr = /* @__PURE__ */ V({
877
+ __name: "StrikethroughNode",
878
+ props: {
879
+ node: {},
880
+ customId: {},
881
+ indexKey: {}
882
+ },
883
+ setup(t) {
884
+ const n = t, e = et(n.customId), a = {
885
+ text: e.text || ge,
886
+ inline_code: e.inline_code || Ie,
887
+ link: e.link || Le,
888
+ strong: e.strong || Se,
889
+ emphasis: e.emphasis || Ve,
890
+ highlight: e.highlight || Pe,
891
+ insert: e.insert || Ae,
892
+ subscript: e.subscript || ze,
893
+ superscript: e.superscript || De,
894
+ emoji: e.emoji || Be,
895
+ footnote_reference: e.footnote_reference || $e,
896
+ math_inline: e.math_inline || tt,
897
+ reference: e.reference || Te
898
+ };
899
+ return (r, u) => (m(), g("del", Dr, [
900
+ (m(!0), g(ae, null, pe(t.node.children, (s, d) => (m(), de(Ne(a[s.type]), {
901
+ key: `${t.indexKey || "strikethrough"}-${d}`,
902
+ node: s,
903
+ "custom-id": n.customId,
904
+ "index-key": `${t.indexKey || "strikethrough"}-${d}`
905
+ }, null, 8, ["node", "custom-id", "index-key"]))), 128))
906
+ ]));
907
+ }
908
+ }), Ee = /* @__PURE__ */ O(zr, [["__scopeId", "data-v-b5c4d542"]]);
909
+ Ee.install = (t) => {
910
+ t.component(Ee.__name, Ee);
911
+ };
912
+ const Ar = ["href", "title", "aria-label", "aria-hidden"], Pr = ["aria-hidden"], Vr = { class: "link-text-wrapper relative inline-flex" }, Kr = { class: "leading-[normal] link-text" }, Wr = { class: "leading-[normal] link-text" }, Or = /* @__PURE__ */ V({
913
+ __name: "LinkNode",
914
+ props: {
915
+ node: {},
916
+ indexKey: {},
917
+ customId: {},
918
+ showTooltip: { type: Boolean, default: !0 },
919
+ color: {},
920
+ underlineHeight: {},
921
+ underlineBottom: {},
922
+ animationDuration: {},
923
+ animationOpacity: {},
924
+ animationTiming: {},
925
+ animationIteration: {}
926
+ },
927
+ setup(t) {
928
+ const n = t, e = E(() => {
929
+ var l, k, p, _, T, P;
930
+ const f = n.underlineBottom !== void 0 ? typeof n.underlineBottom == "number" ? `${n.underlineBottom}px` : String(n.underlineBottom) : "-3px";
931
+ return {
932
+ "--link-color": (l = n.color) != null ? l : "#0366d6",
933
+ "--underline-height": `${(k = n.underlineHeight) != null ? k : 2}px`,
934
+ "--underline-bottom": f,
935
+ "--underline-opacity": String((p = n.animationOpacity) != null ? p : 0.9),
936
+ "--underline-duration": `${(_ = n.animationDuration) != null ? _ : 0.8}s`,
937
+ "--underline-timing": (T = n.animationTiming) != null ? T : "linear",
938
+ "--underline-iteration": typeof n.animationIteration == "number" ? String(n.animationIteration) : (P = n.animationIteration) != null ? P : "infinite"
939
+ };
940
+ }), a = {
941
+ text: ge,
942
+ strong: Se,
943
+ strikethrough: Ee,
944
+ emphasis: Ve,
945
+ image: dt
946
+ }, r = Oo();
947
+ function u(f) {
948
+ var _, T, P;
949
+ if (!n.showTooltip)
950
+ return;
951
+ const l = f, k = (l == null ? void 0 : l.clientX) != null && (l == null ? void 0 : l.clientY) != null ? { x: l.clientX, y: l.clientY } : void 0, p = ((_ = n.node) == null ? void 0 : _.title) || ((T = n.node) == null ? void 0 : T.href) || ((P = n.node) == null ? void 0 : P.text) || "";
952
+ dn(f.currentTarget, p, "top", !1, k);
953
+ }
954
+ function s() {
955
+ n.showTooltip && Wn();
956
+ }
957
+ const d = E(() => {
958
+ var f, l;
959
+ return String((l = (f = n.node.title) != null ? f : n.node.href) != null ? l : "");
960
+ });
961
+ return (f, l) => t.node.loading ? (m(), g("span", Rt({
962
+ key: 1,
963
+ class: "link-loading inline-flex items-baseline gap-1.5",
964
+ "aria-hidden": t.node.loading ? "false" : "true"
965
+ }, B(r), { style: e.value }), [
966
+ h("span", Vr, [
967
+ h("span", Kr, [
968
+ h("span", Wr, ee(t.node.text), 1)
969
+ ]),
970
+ l[1] || (l[1] = h("span", {
971
+ class: "underline-anim",
972
+ "aria-hidden": "true"
973
+ }, null, -1))
974
+ ])
975
+ ], 16, Pr)) : (m(), g("a", Rt({
976
+ key: 0,
977
+ class: "link-node",
978
+ href: t.node.href,
979
+ title: t.showTooltip ? "" : d.value,
980
+ "aria-label": `Link: ${d.value}`,
981
+ "aria-hidden": t.node.loading ? "true" : "false",
982
+ target: "_blank",
983
+ rel: "noopener noreferrer"
984
+ }, B(r), {
985
+ style: e.value,
986
+ onMouseenter: l[0] || (l[0] = (k) => u(k)),
987
+ onMouseleave: s
988
+ }), [
989
+ (m(!0), g(ae, null, pe(t.node.children, (k, p) => (m(), de(Ne(a[k.type]), {
990
+ key: `${t.indexKey || "emphasis"}-${p}`,
991
+ node: k,
992
+ "custom-id": n.customId,
993
+ "index-key": `${t.indexKey || "link-text"}-${p}`
994
+ }, null, 8, ["node", "custom-id", "index-key"]))), 128))
995
+ ], 16, Ar));
996
+ }
997
+ }), Le = /* @__PURE__ */ O(Or, [["__scopeId", "data-v-80b69735"]]);
998
+ Le.install = (t) => {
999
+ t.component(Le.__name, Le);
1000
+ };
1001
+ const Fr = { class: "insert-node" }, Xr = /* @__PURE__ */ V({
1002
+ __name: "InsertNode",
1003
+ props: {
1004
+ node: {},
1005
+ customId: {},
1006
+ indexKey: {}
1007
+ },
1008
+ setup(t) {
1009
+ const n = t, e = et(n.customId), a = {
1010
+ text: e.text || ge,
1011
+ inline_code: e.inline_code || Ie,
1012
+ link: e.link || Le,
1013
+ strong: e.strong || Se,
1014
+ emphasis: e.emphasis || Ve,
1015
+ strikethrough: e.strikethrough || Ee,
1016
+ highlight: e.highlight || Pe,
1017
+ subscript: e.subscript || ze,
1018
+ superscript: e.superscript || De,
1019
+ emoji: e.emoji || Be,
1020
+ footnote_reference: e.footnote_reference || $e,
1021
+ math_inline: e.math_inline || tt,
1022
+ reference: e.reference || Te
1023
+ };
1024
+ return (r, u) => (m(), g("ins", Fr, [
1025
+ (m(!0), g(ae, null, pe(t.node.children, (s, d) => (m(), de(Ne(a[s.type]), {
1026
+ key: `${t.indexKey || "insert"}-${d}`,
1027
+ node: s,
1028
+ "custom-id": n.customId,
1029
+ "index-key": `${t.indexKey || "insert"}-${d}`
1030
+ }, null, 8, ["node", "custom-id", "index-key"]))), 128))
1031
+ ]));
1032
+ }
1033
+ }), Ae = /* @__PURE__ */ O(Xr, [["__scopeId", "data-v-f8fcda3c"]]);
1034
+ Ae.install = (t) => {
1035
+ t.component(Ae.__name, Ae);
1036
+ };
1037
+ const Yr = { class: "highlight-node" }, qr = /* @__PURE__ */ V({
1038
+ __name: "HighlightNode",
1039
+ props: {
1040
+ node: {},
1041
+ customId: {},
1042
+ indexKey: {}
1043
+ },
1044
+ setup(t) {
1045
+ const n = t, e = et(n.customId), a = {
1046
+ text: e.text || ge,
1047
+ inline_code: e.inline_code || Ie,
1048
+ link: e.link || Le,
1049
+ strong: e.strong || Se,
1050
+ emphasis: e.emphasis || Ve,
1051
+ strikethrough: e.strikethrough || Ee,
1052
+ insert: e.insert || Ae,
1053
+ subscript: e.subscript || ze,
1054
+ superscript: e.superscript || De,
1055
+ emoji: e.emoji || Be,
1056
+ footnote_reference: e.footnote_reference || $e,
1057
+ math_inline: e.math_inline || tt,
1058
+ reference: e.reference || Te
1059
+ };
1060
+ return (r, u) => (m(), g("mark", Yr, [
1061
+ (m(!0), g(ae, null, pe(t.node.children, (s, d) => (m(), de(Ne(a[s.type]), {
1062
+ key: `${t.indexKey || "highlight"}-${d}`,
1063
+ node: s,
1064
+ "custom-id": n.customId,
1065
+ "index-key": `${t.indexKey || "highlight"}-${d}`
1066
+ }, null, 8, ["node", "custom-id", "index-key"]))), 128))
1067
+ ]));
1068
+ }
1069
+ }), Pe = /* @__PURE__ */ O(qr, [["__scopeId", "data-v-d99ab14d"]]);
1070
+ Pe.install = (t) => {
1071
+ t.component(Pe.__name, Pe);
1072
+ };
1073
+ const Ur = { class: "emphasis-node" }, Zr = /* @__PURE__ */ V({
1074
+ __name: "EmphasisNode",
1075
+ props: {
1076
+ node: {},
1077
+ customId: {},
1078
+ indexKey: {}
1079
+ },
1080
+ setup(t) {
1081
+ const n = t, e = et(n.customId), a = {
1082
+ text: e.text || ge,
1083
+ inline_code: e.inline_code || Ie,
1084
+ link: e.link || Le,
1085
+ strong: e.strong || Se,
1086
+ strikethrough: e.strikethrough || Ee,
1087
+ highlight: e.highlight || Pe,
1088
+ insert: e.insert || Ae,
1089
+ subscript: e.subscript || ze,
1090
+ superscript: e.superscript || De,
1091
+ emoji: e.emoji || Be,
1092
+ footnote_reference: e.footnote_reference || $e,
1093
+ math_inline: e.math_inline || tt,
1094
+ reference: e.reference || Te
1095
+ };
1096
+ return (r, u) => (m(), g("em", Ur, [
1097
+ (m(!0), g(ae, null, pe(t.node.children, (s, d) => (m(), de(Ne(a[s.type]), {
1098
+ key: `${t.indexKey || "emphasis"}-${d}`,
1099
+ node: s,
1100
+ "custom-id": n.customId,
1101
+ "index-key": `${t.indexKey || "emphasis"}-${d}`
1102
+ }, null, 8, ["node", "custom-id", "index-key"]))), 128))
1103
+ ]));
1104
+ }
1105
+ }), Ve = /* @__PURE__ */ O(Zr, [["__scopeId", "data-v-836b7830"]]);
1106
+ Ve.install = (t) => {
1107
+ t.component(Ve.__name, Ve);
1108
+ };
1109
+ const Gr = ["href", "title"], Jr = /* @__PURE__ */ V({
1110
+ __name: "FootnoteAnchorNode",
1111
+ props: {
1112
+ node: {}
1113
+ },
1114
+ setup(t) {
1115
+ const n = t;
1116
+ function e(a) {
1117
+ var s;
1118
+ if (a.preventDefault(), typeof document == "undefined")
1119
+ return;
1120
+ const r = `fnref-${String((s = n.node.id) != null ? s : "")}`, u = document.getElementById(r);
1121
+ u && u.scrollIntoView({ behavior: "smooth" });
1122
+ }
1123
+ return (a, r) => (m(), g("a", {
1124
+ class: "footnote-anchor text-sm text-[#0366d6] hover:underline cursor-pointer",
1125
+ href: `#fnref-${t.node.id}`,
1126
+ title: `返回引用 ${t.node.id}`,
1127
+ onClick: e
1128
+ }, " ↩︎ ", 8, Gr));
1129
+ }
1130
+ }), Nt = /* @__PURE__ */ O(Jr, [["__scopeId", "data-v-4756ce0d"]]);
1131
+ Nt.install = (t) => {
1132
+ t.component(Nt.__name, Nt);
1133
+ };
1134
+ const Qr = ["id"], ea = { class: "flex-1" }, Qt = /* @__PURE__ */ V({
1135
+ __name: "FootnoteNode",
1136
+ props: {
1137
+ node: {},
1138
+ indexKey: {},
1139
+ typewriter: { type: Boolean },
1140
+ customId: {}
1141
+ },
1142
+ emits: ["copy"],
1143
+ setup(t) {
1144
+ const n = t;
1145
+ return (e, a) => (m(), g("div", {
1146
+ id: `fnref--${t.node.id}`,
1147
+ class: "flex mt-2 mb-2 text-sm leading-relaxed border-t border-[#eaecef] pt-2"
1148
+ }, [
1149
+ h("div", ea, [
1150
+ Dt([n.node.children], () => Ye(B(Xe), {
1151
+ "index-key": `footnote-${n.indexKey}`,
1152
+ nodes: n.node.children,
1153
+ "custom-id": n.customId,
1154
+ typewriter: n.typewriter,
1155
+ onCopy: a[0] || (a[0] = (r) => e.$emit("copy", r))
1156
+ }, null, 8, ["index-key", "nodes", "custom-id", "typewriter"]), a, 1)
1157
+ ])
1158
+ ], 8, Qr));
1159
+ }
1160
+ });
1161
+ Qt.install = (t) => {
1162
+ t.component(Qt.__name, Qt);
1163
+ };
1164
+ const ta = { class: "hard-break" }, na = /* @__PURE__ */ V({
1165
+ __name: "HardBreakNode",
1166
+ props: {
1167
+ node: {}
1168
+ },
1169
+ setup(t) {
1170
+ return (n, e) => (m(), g("br", ta));
1171
+ }
1172
+ }), Ct = /* @__PURE__ */ O(na, [["__scopeId", "data-v-50c58f70"]]);
1173
+ Ct.install = (t) => {
1174
+ t.component(Ct.__name, Ct);
1175
+ };
1176
+ const oa = /* @__PURE__ */ V({
1177
+ __name: "HeadingNode",
1178
+ props: {
1179
+ node: {},
1180
+ customId: {},
1181
+ indexKey: {}
1182
+ },
1183
+ setup(t) {
1184
+ const n = t, e = et(n.customId), a = {
1185
+ text: e.text || ge,
1186
+ inline_code: e.inline_code || Ie,
1187
+ link: e.link || Le,
1188
+ image: e.image || dt,
1189
+ strong: e.strong || Se,
1190
+ emphasis: e.emphasis || Ve,
1191
+ strikethrough: e.strikethrough || Ee,
1192
+ highlight: e.highlight || Pe,
1193
+ insert: e.insert || Ae,
1194
+ subscript: e.subscript || ze,
1195
+ superscript: e.superscript || De,
1196
+ emoji: e.emoji || Be,
1197
+ checkbox: e.checkbox || Qe,
1198
+ checkbox_input: e.checkbox_input || Qe,
1199
+ footnote_reference: e.footnote_reference || $e,
1200
+ hardbreak: e.hardbreak || Ct,
1201
+ math_inline: e.math_inline || tt,
1202
+ reference: e.reference || Te
1203
+ };
1204
+ return (r, u) => Dt([t.node.children], () => (m(), de(Ne(`h${t.node.level}`), {
1205
+ class: A(["heading-node", [`heading-${t.node.level}`]]),
1206
+ dir: "auto"
1207
+ }, {
1208
+ default: Bt(() => [
1209
+ (m(!0), g(ae, null, pe(t.node.children, (s, d, f, l) => {
1210
+ const k = [s];
1211
+ if (l && l.key === `${t.indexKey || "heading"}-${d}` && po(l, k)) return l;
1212
+ const p = (m(), de(Ne(a[s.type]), {
1213
+ key: `${t.indexKey || "heading"}-${d}`,
1214
+ "custom-id": n.customId,
1215
+ node: s,
1216
+ "index-key": `${t.indexKey || "heading"}-${d}`
1217
+ }, null, 8, ["custom-id", "node", "index-key"]));
1218
+ return p.memo = k, p;
1219
+ }, u, 0), 128))
1220
+ ]),
1221
+ _: 1
1222
+ }, 8, ["class"])), u, 2);
1223
+ }
1224
+ }), Dn = /* @__PURE__ */ O(oa, [["__scopeId", "data-v-8712d23e"]]), qn = Dn;
1225
+ qn.install = (t) => {
1226
+ t.component(Dn.__name, Dn);
1227
+ };
1228
+ const ra = /* @__PURE__ */ V({
1229
+ __name: "ListItemNode",
1230
+ props: {
1231
+ item: {},
1232
+ indexKey: {},
1233
+ value: {},
1234
+ customId: {},
1235
+ typewriter: { type: Boolean }
1236
+ },
1237
+ emits: ["copy"],
1238
+ setup(t) {
1239
+ const n = t, e = E(
1240
+ () => n.value == null ? {} : { value: n.value }
1241
+ );
1242
+ return (a, r) => (m(), g("li", Rt({
1243
+ class: "list-item pl-1.5 my-2",
1244
+ dir: "auto"
1245
+ }, e.value), [
1246
+ Dt([n.item.children], () => Ye(B(Xe), {
1247
+ "index-key": `list-item-${n.indexKey}`,
1248
+ nodes: n.item.children,
1249
+ "custom-id": n.customId,
1250
+ typewriter: n.typewriter,
1251
+ "batch-rendering": !1,
1252
+ onCopy: r[0] || (r[0] = (u) => a.$emit("copy", u))
1253
+ }, null, 8, ["index-key", "nodes", "custom-id", "typewriter"]), r, 1)
1254
+ ], 16));
1255
+ }
1256
+ }), en = /* @__PURE__ */ O(ra, [["__scopeId", "data-v-7a618746"]]);
1257
+ en.install = (t) => {
1258
+ t.component(en.__name, en);
1259
+ };
1260
+ const aa = /* @__PURE__ */ V({
1261
+ __name: "ListNode",
1262
+ props: {
1263
+ node: {},
1264
+ customId: {},
1265
+ indexKey: {},
1266
+ typewriter: { type: Boolean }
1267
+ },
1268
+ emits: ["copy"],
1269
+ setup(t) {
1270
+ return (n, e) => (m(), de(Ne(t.node.ordered ? "ol" : "ul"), {
1271
+ class: A(["list-node", { "list-decimal": t.node.ordered, "list-disc": !t.node.ordered }])
1272
+ }, {
1273
+ default: Bt(() => [
1274
+ (m(!0), g(ae, null, pe(t.node.items, (a, r, u, s) => {
1275
+ var l;
1276
+ const d = [a];
1277
+ if (s && s.key === `${t.indexKey || "list"}-${r}` && po(s, d)) return s;
1278
+ const f = (m(), de(B(en), {
1279
+ key: `${t.indexKey || "list"}-${r}`,
1280
+ item: a,
1281
+ "custom-id": t.customId,
1282
+ "index-key": `${t.indexKey || "list"}-${r}`,
1283
+ typewriter: t.typewriter,
1284
+ value: t.node.ordered ? ((l = t.node.start) != null ? l : 1) + r : void 0,
1285
+ onCopy: e[0] || (e[0] = (k) => n.$emit("copy", k))
1286
+ }, null, 8, ["item", "custom-id", "index-key", "typewriter", "value"]));
1287
+ return f.memo = d, f;
1288
+ }, e, 1), 128))
1289
+ ]),
1290
+ _: 1
1291
+ }, 8, ["class"]));
1292
+ }
1293
+ }), tn = /* @__PURE__ */ O(aa, [["__scopeId", "data-v-79057d57"]]);
1294
+ tn.install = (t) => {
1295
+ t.component(tn.__name, tn);
1296
+ };
1297
+ const ia = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20width='16'%20height='16'%3e%3cpath%20fill='none'%20stroke='%23ca9ee6'%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M1.5%202.5c0%206%202.25%205.75%204%207%20.83.67%201.17%202%201%204h3c-.17-2%20.17-3.33%201-4%201.75-1.25%204-1%204-7C12%202.5%2010%203%208%207%206%203%204%202.5%201.5%202.5'%20/%3e%3c/svg%3e";
1298
+ function sa(t) {
1299
+ try {
1300
+ if (typeof globalThis != "undefined" && typeof globalThis.requestAnimationFrame == "function")
1301
+ return globalThis.requestAnimationFrame(t);
1302
+ } catch (n) {
1303
+ }
1304
+ return globalThis.setTimeout(t, 0);
1305
+ }
1306
+ const Un = () => import("mermaid");
1307
+ let Lt = null, Zn = Un;
1308
+ function la() {
1309
+ Lt = null;
1310
+ }
1311
+ function Io(t) {
1312
+ Zn = t, la();
1313
+ }
1314
+ function ol(t) {
1315
+ Io(t != null ? t : Un);
1316
+ }
1317
+ function rl() {
1318
+ Io(null);
1319
+ }
1320
+ function ca() {
1321
+ return typeof Zn == "function";
1322
+ }
1323
+ function ua(t) {
1324
+ if (!t)
1325
+ return t;
1326
+ const n = t && t.default ? t.default : t;
1327
+ if (n && (typeof n.render == "function" || typeof n.parse == "function" || typeof n.initialize == "function"))
1328
+ return n;
1329
+ if (n && n.mermaidAPI && (typeof n.mermaidAPI.render == "function" || typeof n.mermaidAPI.parse == "function")) {
1330
+ const e = n.mermaidAPI;
1331
+ return ut(qe({}, n), {
1332
+ render: e.render.bind(e),
1333
+ parse: e.parse ? e.parse.bind(e) : void 0,
1334
+ initialize: (a) => typeof n.initialize == "function" ? n.initialize(a) : e.initialize ? e.initialize(a) : void 0
1335
+ });
1336
+ }
1337
+ return t.mermaid && typeof t.mermaid.render == "function" ? t.mermaid : n;
1338
+ }
1339
+ function da(t) {
1340
+ if (t)
1341
+ try {
1342
+ const n = t == null ? void 0 : t.initialize;
1343
+ t.initialize = (e) => {
1344
+ const a = qe({ suppressErrorRendering: !0 }, e || {});
1345
+ if (typeof n == "function")
1346
+ return n.call(t, a);
1347
+ if (t != null && t.mermaidAPI && typeof t.mermaidAPI.initialize == "function")
1348
+ return t.mermaidAPI.initialize(a);
1349
+ };
1350
+ } catch (n) {
1351
+ }
1352
+ }
1353
+ function ma() {
1354
+ return N(this, null, function* () {
1355
+ if (Lt)
1356
+ return Lt;
1357
+ const t = Zn;
1358
+ if (!t)
1359
+ return null;
1360
+ let n;
1361
+ try {
1362
+ n = yield t();
1363
+ } catch (e) {
1364
+ throw t === Un ? new Error('Optional dependency "mermaid" is not installed. Please install it to enable mermaid diagrams.') : e;
1365
+ }
1366
+ return n ? (Lt = ua(n), da(Lt), Lt) : null;
1367
+ });
1368
+ }
1369
+ let ve = null, mt = null;
1370
+ const me = /* @__PURE__ */ new Map(), ha = 5;
1371
+ let Tn = ha, zn = !1;
1372
+ function al(t) {
1373
+ zn = !!t;
1374
+ }
1375
+ function il(t) {
1376
+ Number.isFinite(t) && t > 0 && (Tn = Math.floor(t));
1377
+ }
1378
+ function sl() {
1379
+ return { inFlight: me.size, max: Tn };
1380
+ }
1381
+ const fa = "WORKER_BUSY", va = "MERMAID_DISABLED";
1382
+ function ll(t) {
1383
+ ve = t, mt = null;
1384
+ const n = t;
1385
+ ve.onmessage = (e) => {
1386
+ if (ve !== n)
1387
+ return;
1388
+ const { id: a, ok: r, result: u, error: s } = e.data, d = me.get(a);
1389
+ d && (r === !1 || s ? d.reject(new Error(s || "Unknown error")) : d.resolve(u));
1390
+ }, ve.onerror = (e) => {
1391
+ var a, r;
1392
+ if (ve === n) {
1393
+ if (me.size === 0) {
1394
+ (a = console.debug) == null || a.call(console, "[mermaidWorkerClient] Worker error (no pending):", (e == null ? void 0 : e.message) || e);
1395
+ return;
1396
+ }
1397
+ try {
1398
+ zn ? console.error("[mermaidWorkerClient] Worker error:", (e == null ? void 0 : e.message) || e) : (r = console.debug) == null || r.call(console, "[mermaidWorkerClient] Worker error:", (e == null ? void 0 : e.message) || e);
1399
+ } catch (u) {
1400
+ }
1401
+ for (const [u, s] of me.entries())
1402
+ s.reject(new Error(`Worker error: ${e.message}`));
1403
+ me.clear();
1404
+ }
1405
+ }, ve.onmessageerror = (e) => {
1406
+ var a, r;
1407
+ if (ve === n) {
1408
+ if (me.size === 0) {
1409
+ (a = console.debug) == null || a.call(console, "[mermaidWorkerClient] Worker messageerror (no pending):", e);
1410
+ return;
1411
+ }
1412
+ try {
1413
+ zn ? console.error("[mermaidWorkerClient] Worker messageerror:", e) : (r = console.debug) == null || r.call(console, "[mermaidWorkerClient] Worker messageerror:", e);
1414
+ } catch (u) {
1415
+ }
1416
+ for (const [u, s] of me.entries())
1417
+ s.reject(new Error("Worker messageerror"));
1418
+ me.clear();
1419
+ }
1420
+ };
1421
+ }
1422
+ function cl() {
1423
+ var t;
1424
+ if (ve)
1425
+ try {
1426
+ for (const [n, e] of me.entries())
1427
+ e.reject(new Error("Worker cleared"));
1428
+ me.clear(), (t = ve.terminate) == null || t.call(ve);
1429
+ } catch (n) {
1430
+ }
1431
+ ve = null, mt = null;
1432
+ }
1433
+ function pa() {
1434
+ return ve || (mt = new Error("[mermaidWorkerClient] No worker instance set. Please inject a Worker via setMermaidWorker()."), mt.name = "WorkerInitError", mt.code = "WORKER_INIT_ERROR", null);
1435
+ }
1436
+ function To(t, n, e = 1400) {
1437
+ if (!ca()) {
1438
+ const r = new Error("Mermaid rendering disabled");
1439
+ return r.name = "MermaidDisabled", r.code = va, Promise.reject(r);
1440
+ }
1441
+ if (mt)
1442
+ return Promise.reject(mt);
1443
+ const a = pa();
1444
+ if (!a)
1445
+ return Promise.reject(mt);
1446
+ if (me.size >= Tn) {
1447
+ const r = new Error("Worker busy");
1448
+ return r.name = "WorkerBusy", r.code = fa, r.inFlight = me.size, r.max = Tn, Promise.reject(r);
1449
+ }
1450
+ return new Promise((r, u) => {
1451
+ const s = Math.random().toString(36).slice(2);
1452
+ let d = !1, f;
1453
+ const l = () => {
1454
+ d || (d = !0, f != null && globalThis.clearTimeout(f), me.delete(s));
1455
+ }, k = {
1456
+ resolve: (p) => {
1457
+ l(), r(p);
1458
+ },
1459
+ reject: (p) => {
1460
+ l(), u(p);
1461
+ }
1462
+ };
1463
+ me.set(s, k);
1464
+ try {
1465
+ a.postMessage({ id: s, action: t, payload: n });
1466
+ } catch (p) {
1467
+ me.delete(s), u(p);
1468
+ return;
1469
+ }
1470
+ f = globalThis.setTimeout(() => {
1471
+ const p = new Error("Worker call timed out");
1472
+ p.name = "WorkerTimeout", p.code = "WORKER_TIMEOUT";
1473
+ const _ = me.get(s);
1474
+ _ && _.reject(p);
1475
+ }, e);
1476
+ });
1477
+ }
1478
+ function ga(t, n, e = 1400) {
1479
+ return N(this, null, function* () {
1480
+ try {
1481
+ return yield To("canParse", { code: t, theme: n }, e);
1482
+ } catch (a) {
1483
+ return Promise.reject(a);
1484
+ }
1485
+ });
1486
+ }
1487
+ function wa(t, n, e = 1400) {
1488
+ return N(this, null, function* () {
1489
+ try {
1490
+ return yield To("findPrefix", { code: t, theme: n }, e);
1491
+ } catch (a) {
1492
+ return Promise.reject(a);
1493
+ }
1494
+ });
1495
+ }
1496
+ function ao() {
1497
+ if (ve)
1498
+ try {
1499
+ for (const [t, n] of me.entries())
1500
+ n.reject(new Error("Worker terminated"));
1501
+ me.clear(), ve.terminate();
1502
+ } finally {
1503
+ ve = null;
1504
+ }
1505
+ }
1506
+ const ka = { key: 0 }, ya = {
1507
+ key: 1,
1508
+ class: "flex items-center space-x-2 overflow-hidden"
1509
+ }, xa = ["src"], ba = { key: 2 }, Ma = { class: "flex items-center space-x-1" }, Ca = { class: "flex items-center space-x-1" }, _a = { key: 4 }, Ba = {
1510
+ key: 5,
1511
+ class: "flex items-center space-x-1"
1512
+ }, $a = ["aria-pressed"], Ia = {
1513
+ key: 0,
1514
+ xmlns: "http://www.w3.org/2000/svg",
1515
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
1516
+ "aria-hidden": "true",
1517
+ role: "img",
1518
+ width: "1em",
1519
+ height: "1em",
1520
+ viewBox: "0 0 24 24",
1521
+ class: "w-3 h-3"
1522
+ }, Ta = {
1523
+ key: 1,
1524
+ xmlns: "http://www.w3.org/2000/svg",
1525
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
1526
+ "aria-hidden": "true",
1527
+ role: "img",
1528
+ width: "1em",
1529
+ height: "1em",
1530
+ viewBox: "0 0 24 24",
1531
+ class: "w-3 h-3"
1532
+ }, Sa = ["disabled"], Ea = ["disabled"], La = {
1533
+ key: 0,
1534
+ xmlns: "http://www.w3.org/2000/svg",
1535
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
1536
+ "aria-hidden": "true",
1537
+ role: "img",
1538
+ width: "0.75rem",
1539
+ height: "0.75rem",
1540
+ viewBox: "0 0 24 24"
1541
+ }, Na = {
1542
+ key: 1,
1543
+ xmlns: "http://www.w3.org/2000/svg",
1544
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
1545
+ "aria-hidden": "true",
1546
+ role: "img",
1547
+ width: "0.75rem",
1548
+ height: "0.75rem",
1549
+ viewBox: "0 0 24 24"
1550
+ }, ja = {
1551
+ key: 1,
1552
+ class: "relative"
1553
+ }, Ha = {
1554
+ key: 0,
1555
+ class: "absolute top-2 right-2 z-10 rounded-lg"
1556
+ }, Ra = { class: "flex items-center gap-2 backdrop-blur rounded-lg" }, Da = { class: "absolute top-6 right-6 z-50 flex items-center gap-2" }, za = 300, Aa = 500, Pa = /* @__PURE__ */ V({
1557
+ __name: "MermaidBlockNode",
1558
+ props: {
1559
+ node: {},
1560
+ maxHeight: { default: "500px" },
1561
+ loading: { type: Boolean, default: !0 },
1562
+ isDark: { type: Boolean },
1563
+ workerTimeoutMs: { default: 1400 },
1564
+ parseTimeoutMs: { default: 1800 },
1565
+ renderTimeoutMs: { default: 2500 },
1566
+ fullRenderTimeoutMs: { default: 4e3 },
1567
+ showHeader: { type: Boolean, default: !0 },
1568
+ showModeToggle: { type: Boolean, default: !0 },
1569
+ showCopyButton: { type: Boolean, default: !0 },
1570
+ showExportButton: { type: Boolean, default: !0 },
1571
+ showFullscreenButton: { type: Boolean, default: !0 },
1572
+ showCollapseButton: { type: Boolean, default: !0 },
1573
+ showZoomControls: { type: Boolean, default: !0 }
1574
+ },
1575
+ emits: ["copy", "export", "openModal", "toggleMode"],
1576
+ setup(t, { emit: n }) {
1577
+ var Gn, Jn;
1578
+ const e = t, a = n, { t: r } = On(), u = M(!1);
1579
+ function s() {
1580
+ return N(this, null, function* () {
1581
+ try {
1582
+ const i = yield ma();
1583
+ return u.value = !!i, i;
1584
+ } catch (i) {
1585
+ throw u.value = !1, i;
1586
+ }
1587
+ });
1588
+ }
1589
+ typeof window != "undefined" && N(null, null, function* () {
1590
+ var i;
1591
+ try {
1592
+ const o = yield s();
1593
+ if (!o)
1594
+ return;
1595
+ (i = o == null ? void 0 : o.initialize) == null || i.call(o, { startOnLoad: !1, securityLevel: "loose" });
1596
+ } catch (o) {
1597
+ u.value = !1, console.warn("[markstream-vue] Failed to initialize mermaid renderer. Call enableMermaid() to configure a loader.", o);
1598
+ }
1599
+ });
1600
+ const d = M(!1), f = M(!1), l = M(), k = M(), p = M(), _ = M(), T = M(null), P = Fn(), K = M(null), X = M(typeof window == "undefined"), R = M(), L = E(() => e.node.code.replace(/\]::([^:])/g, "]:::$1").replace(/:::subgraphNode$/gm, "::subgraphNode"));
1601
+ function ke(i) {
1602
+ const o = L.value, b = `%%{init: {"theme": "${i === "dark" ? "dark" : "default"}"}}%%
1603
+ `;
1604
+ return o.trim().startsWith("%%{") ? o : b + o;
1605
+ }
1606
+ const W = M(1), Z = M(0), S = M(0), le = M(!1), te = M({ x: 0, y: 0 }), Y = M(!1), be = M(!1), G = M(!1), ct = M(null), nt = M(0), ot = M(!1);
1607
+ let Ke = null;
1608
+ const ie = M("360px");
1609
+ let oe = null;
1610
+ const D = M(!1), ye = M(!1), je = M({}), rt = M(null), Me = M(""), ft = M(0);
1611
+ let he = null;
1612
+ const Ce = M(!1), We = M({
1613
+ zoom: 1,
1614
+ translateX: 0,
1615
+ translateY: 0,
1616
+ containerHeight: "360px"
1617
+ }), x = E(() => {
1618
+ var i, o, c, b;
1619
+ return {
1620
+ worker: (i = e.workerTimeoutMs) != null ? i : 1400,
1621
+ parse: (o = e.parseTimeoutMs) != null ? o : 1800,
1622
+ render: (c = e.renderTimeoutMs) != null ? c : 2500,
1623
+ fullRender: (b = e.fullRenderTimeoutMs) != null ? b : 4e3
1624
+ };
1625
+ }), y = (Gn = globalThis.cancelIdleCallback) != null ? Gn : ((i) => clearTimeout(i));
1626
+ let $ = null, re = null, ce = !1, vt = 800, xe = null, pt = 0, At = !0;
1627
+ typeof window != "undefined" && U(
1628
+ () => l.value,
1629
+ (i) => {
1630
+ var c;
1631
+ if ((c = K.value) == null || c.destroy(), K.value = null, !i) {
1632
+ X.value = !1;
1633
+ return;
1634
+ }
1635
+ const o = P(i, { rootMargin: "400px" });
1636
+ K.value = o, X.value = o.isVisible.value, o.whenVisible.then(() => {
1637
+ X.value = !0;
1638
+ });
1639
+ },
1640
+ { immediate: !0 }
1641
+ ), hn(() => {
1642
+ var i;
1643
+ (i = K.value) == null || i.destroy(), K.value = null;
1644
+ });
1645
+ function Ue(i, o) {
1646
+ const c = o == null ? void 0 : o.timeoutMs, b = o == null ? void 0 : o.signal;
1647
+ if (b != null && b.aborted)
1648
+ return Promise.reject(new DOMException("Aborted", "AbortError"));
1649
+ let j = null, I = !1, q = null;
1650
+ return new Promise((z, fe) => {
1651
+ const ne = () => {
1652
+ j != null && clearTimeout(j), q && b && b.removeEventListener("abort", q);
1653
+ };
1654
+ c && c > 0 && (j = globalThis.setTimeout(() => {
1655
+ I || (I = !0, ne(), fe(new Error("Operation timed out")));
1656
+ }, c)), b && (q = () => {
1657
+ I || (I = !0, ne(), fe(new DOMException("Aborted", "AbortError")));
1658
+ }, b.addEventListener("abort", q)), i().then((Et) => {
1659
+ I || (I = !0, ne(), z(Et));
1660
+ }).catch((Et) => {
1661
+ I || (I = !0, ne(), fe(Et));
1662
+ });
1663
+ });
1664
+ }
1665
+ function at(i) {
1666
+ if (typeof document == "undefined" || !p.value)
1667
+ return;
1668
+ const o = document.createElement("div");
1669
+ o.className = "text-red-500 p-4", o.textContent = "Failed to render diagram: ";
1670
+ const c = document.createElement("span");
1671
+ c.textContent = i instanceof Error ? i.message : "Unknown error", o.appendChild(c), p.value.innerHTML = "", p.value.appendChild(o), ie.value = "360px", Ce.value = !0, xt();
1672
+ }
1673
+ function gt(i) {
1674
+ const o = i;
1675
+ return !o || o.disabled;
1676
+ }
1677
+ function J(i, o, c = "top") {
1678
+ if (gt(i.currentTarget))
1679
+ return;
1680
+ const b = i, j = (b == null ? void 0 : b.clientX) != null && (b == null ? void 0 : b.clientY) != null ? { x: b.clientX, y: b.clientY } : void 0;
1681
+ dn(i.currentTarget, o, c, !1, j, e.isDark);
1682
+ }
1683
+ function Q() {
1684
+ Wn();
1685
+ }
1686
+ function Pt(i) {
1687
+ if (gt(i.currentTarget))
1688
+ return;
1689
+ const o = d.value ? r("common.copied") || "Copied" : r("common.copy") || "Copy", c = i, b = (c == null ? void 0 : c.clientX) != null && (c == null ? void 0 : c.clientY) != null ? { x: c.clientX, y: c.clientY } : void 0;
1690
+ dn(i.currentTarget, o, "top", !1, b, e.isDark);
1691
+ }
1692
+ function Vt(i, o) {
1693
+ const b = `%%{init: {"theme": "${o === "dark" ? "dark" : "default"}"}}%%
1694
+ `;
1695
+ return i.trimStart().startsWith("%%{") ? i : b + i;
1696
+ }
1697
+ function Kt() {
1698
+ return At && !Y.value && !D.value && !Ce.value;
1699
+ }
1700
+ function vn(i) {
1701
+ const o = i.split(/\r?\n/);
1702
+ for (; o.length > 0; ) {
1703
+ const b = o[o.length - 1].trimEnd();
1704
+ if (b === "") {
1705
+ o.pop();
1706
+ continue;
1707
+ }
1708
+ if (/^[-=~>|<\s]+$/.test(b.trim()) || /(?:--|==|~~|->|<-|-\||-\)|-x|o-|\|-|\.-)\s*$/.test(b) || /[-|><]$/.test(b) || /(?:graph|flowchart|sequenceDiagram|classDiagram|stateDiagram|erDiagram|gantt)\s*$/i.test(b)) {
1709
+ o.pop();
1710
+ continue;
1711
+ }
1712
+ break;
1713
+ }
1714
+ return o.join(`
1715
+ `);
1716
+ }
1717
+ function pn(i, o, c) {
1718
+ return N(this, null, function* () {
1719
+ var z, fe;
1720
+ const b = yield s();
1721
+ if (!b)
1722
+ return;
1723
+ const j = b, I = Vt(i, o);
1724
+ if (typeof j.parse == "function")
1725
+ return yield Ue(() => j.parse(I), {
1726
+ timeoutMs: (z = c == null ? void 0 : c.timeoutMs) != null ? z : x.value.parse,
1727
+ signal: c == null ? void 0 : c.signal
1728
+ }), !0;
1729
+ const q = `mermaid-parse-${Math.random().toString(36).slice(2, 9)}`;
1730
+ return yield Ue(() => b.render(q, I), {
1731
+ timeoutMs: (fe = c == null ? void 0 : c.timeoutMs) != null ? fe : x.value.render,
1732
+ signal: c == null ? void 0 : c.signal
1733
+ }), !0;
1734
+ });
1735
+ }
1736
+ function $t(i, o, c) {
1737
+ return N(this, null, function* () {
1738
+ var b;
1739
+ try {
1740
+ return yield ga(i, o, (b = c == null ? void 0 : c.timeoutMs) != null ? b : x.value.worker);
1741
+ } catch (j) {
1742
+ return yield pn(i, o, c);
1743
+ }
1744
+ });
1745
+ }
1746
+ function Sn(i, o, c) {
1747
+ return N(this, null, function* () {
1748
+ var j;
1749
+ try {
1750
+ if (yield $t(i, o, c))
1751
+ return { fullOk: !0, prefixOk: !1 };
1752
+ } catch (I) {
1753
+ if ((I == null ? void 0 : I.name) === "AbortError")
1754
+ throw I;
1755
+ }
1756
+ let b = vn(i);
1757
+ if (b && b.trim() && b !== i)
1758
+ try {
1759
+ try {
1760
+ const q = yield wa(i, o, (j = c == null ? void 0 : c.timeoutMs) != null ? j : x.value.worker);
1761
+ q && q.trim() && (b = q);
1762
+ } catch (q) {
1763
+ }
1764
+ if (yield $t(b, o, c))
1765
+ return { fullOk: !1, prefixOk: !0, prefix: b };
1766
+ } catch (I) {
1767
+ if ((I == null ? void 0 : I.name) === "AbortError")
1768
+ throw I;
1769
+ }
1770
+ return { fullOk: !1, prefixOk: !1 };
1771
+ });
1772
+ }
1773
+ const wt = E(() => Y.value || G.value || f.value);
1774
+ function It(i) {
1775
+ if (!l.value || !p.value)
1776
+ return;
1777
+ const o = p.value.querySelector("svg");
1778
+ if (!o)
1779
+ return;
1780
+ let c = 0, b = 0;
1781
+ const j = o.getAttribute("viewBox"), I = o.getAttribute("width"), q = o.getAttribute("height");
1782
+ if (j) {
1783
+ const z = j.split(" ");
1784
+ z.length === 4 && (c = Number.parseFloat(z[2]), b = Number.parseFloat(z[3]));
1785
+ }
1786
+ if ((!c || !b) && I && q && (c = Number.parseFloat(I), b = Number.parseFloat(q)), Number.isNaN(c) || Number.isNaN(b) || c <= 0 || b <= 0)
1787
+ try {
1788
+ const z = o.getBBox();
1789
+ z && z.width > 0 && z.height > 0 && (c = z.width, b = z.height);
1790
+ } catch (z) {
1791
+ console.error("Failed to get SVG BBox:", z);
1792
+ return;
1793
+ }
1794
+ if (c > 0 && b > 0) {
1795
+ const z = b / c;
1796
+ let ne = (i != null ? i : l.value.clientWidth) * z;
1797
+ ne > b && (ne = b), ie.value = `${ne}px`;
1798
+ }
1799
+ }
1800
+ const Ze = M(!1), Wt = E(() => ({
1801
+ transform: `translate(${Z.value}px, ${S.value}px) scale(${W.value})`
1802
+ }));
1803
+ function gn(i) {
1804
+ i.key === "Escape" && Ze.value && Tt();
1805
+ }
1806
+ function wn() {
1807
+ if (Ze.value = !0, typeof document != "undefined")
1808
+ try {
1809
+ document.body.style.overflow = "hidden";
1810
+ } catch (i) {
1811
+ }
1812
+ if (typeof window != "undefined")
1813
+ try {
1814
+ window.addEventListener("keydown", gn);
1815
+ } catch (i) {
1816
+ }
1817
+ ue(() => {
1818
+ if (l.value && _.value) {
1819
+ const i = l.value.cloneNode(!0);
1820
+ i.classList.add("fullscreen");
1821
+ const o = i.querySelector(
1822
+ "[data-mermaid-wrapper]"
1823
+ );
1824
+ o && (T.value = o, o.style.transform = Wt.value.transform), _.value.innerHTML = "", _.value.appendChild(i);
1825
+ }
1826
+ });
1827
+ }
1828
+ function Tt() {
1829
+ if (Ze.value = !1, _.value && (_.value.innerHTML = ""), T.value = null, typeof document != "undefined")
1830
+ try {
1831
+ document.body.style.overflow = "";
1832
+ } catch (i) {
1833
+ }
1834
+ if (typeof window != "undefined")
1835
+ try {
1836
+ window.removeEventListener("keydown", gn);
1837
+ } catch (i) {
1838
+ }
1839
+ }
1840
+ function kn(i, o) {
1841
+ let c = null;
1842
+ return (...b) => {
1843
+ c && clearTimeout(c), c = setTimeout(() => i(...b), o);
1844
+ };
1845
+ }
1846
+ function v() {
1847
+ if (!Y.value || !u.value)
1848
+ return;
1849
+ const i = L.value.length;
1850
+ i !== nt.value && (ot.value = !0, nt.value = i, Ke && clearTimeout(Ke), Ke = setTimeout(() => {
1851
+ ot.value && Y.value && L.value.trim() && (ot.value = !1, Ft("preview"));
1852
+ }, Aa));
1853
+ }
1854
+ U(
1855
+ Wt,
1856
+ (i) => {
1857
+ Ze.value && T.value && (T.value.style.transform = i.transform);
1858
+ },
1859
+ { immediate: !0 }
1860
+ );
1861
+ function w() {
1862
+ W.value < 3 && (W.value += 0.1);
1863
+ }
1864
+ function C() {
1865
+ W.value > 0.5 && (W.value -= 0.1);
1866
+ }
1867
+ function F() {
1868
+ W.value = 1, Z.value = 0, S.value = 0;
1869
+ }
1870
+ function H(i) {
1871
+ le.value = !0, i instanceof MouseEvent ? te.value = {
1872
+ x: i.clientX - Z.value,
1873
+ y: i.clientY - S.value
1874
+ } : te.value = {
1875
+ x: i.touches[0].clientX - Z.value,
1876
+ y: i.touches[0].clientY - S.value
1877
+ };
1878
+ }
1879
+ function we(i) {
1880
+ if (!le.value)
1881
+ return;
1882
+ let o, c;
1883
+ i instanceof MouseEvent ? (o = i.clientX, c = i.clientY) : (o = i.touches[0].clientX, c = i.touches[0].clientY), Z.value = o - te.value.x, S.value = c - te.value.y;
1884
+ }
1885
+ function He() {
1886
+ le.value = !1;
1887
+ }
1888
+ function it(i) {
1889
+ if (i.ctrlKey || i.metaKey) {
1890
+ if (i.preventDefault(), !l.value)
1891
+ return;
1892
+ const o = l.value.getBoundingClientRect(), c = i.clientX - o.left, b = i.clientY - o.top, j = o.width / 2, I = o.height / 2, q = c - j, z = b - I, fe = (q - Z.value) / W.value, ne = (z - S.value) / W.value, Eo = -i.deltaY * 0.01, bn = Math.min(Math.max(W.value + Eo, 0.5), 3);
1893
+ bn !== W.value && (Z.value = q - fe * bn, S.value = z - ne * bn, W.value = bn);
1894
+ }
1895
+ }
1896
+ function Oe() {
1897
+ return N(this, null, function* () {
1898
+ try {
1899
+ typeof navigator != "undefined" && navigator.clipboard && typeof navigator.clipboard.writeText == "function" && (yield navigator.clipboard.writeText(L.value)), d.value = !0, a("copy", L.value), setTimeout(() => {
1900
+ d.value = !1;
1901
+ }, 1e3);
1902
+ } catch (i) {
1903
+ console.error("Failed to copy:", i);
1904
+ }
1905
+ });
1906
+ }
1907
+ function kt(i, o = null) {
1908
+ return N(this, null, function* () {
1909
+ try {
1910
+ const c = o != null ? o : new XMLSerializer().serializeToString(i), b = new Blob([c], { type: "image/svg+xml;charset=utf-8" }), j = URL.createObjectURL(b);
1911
+ if (typeof document != "undefined") {
1912
+ const I = document.createElement("a");
1913
+ I.href = j, I.download = `mermaid-diagram-${Date.now()}.svg`;
1914
+ try {
1915
+ document.body.appendChild(I), I.click(), document.body.removeChild(I);
1916
+ } catch (q) {
1917
+ }
1918
+ URL.revokeObjectURL(j);
1919
+ }
1920
+ } catch (c) {
1921
+ console.error("Failed to export SVG:", c);
1922
+ }
1923
+ });
1924
+ }
1925
+ function St() {
1926
+ var b;
1927
+ const i = (b = p.value) == null ? void 0 : b.querySelector("svg");
1928
+ if (!i) {
1929
+ console.error("SVG element not found");
1930
+ return;
1931
+ }
1932
+ const o = new XMLSerializer().serializeToString(i), c = {
1933
+ payload: { type: "export" },
1934
+ defaultPrevented: !1,
1935
+ preventDefault() {
1936
+ this.defaultPrevented = !0;
1937
+ },
1938
+ svgElement: i,
1939
+ svgString: o
1940
+ };
1941
+ a("export", c), c.defaultPrevented || kt(i, o);
1942
+ }
1943
+ function En() {
1944
+ var b, j;
1945
+ const i = (j = (b = p.value) == null ? void 0 : b.querySelector("svg")) != null ? j : null, o = i ? new XMLSerializer().serializeToString(i) : null, c = {
1946
+ payload: { type: "open-modal" },
1947
+ defaultPrevented: !1,
1948
+ preventDefault() {
1949
+ this.defaultPrevented = !0;
1950
+ },
1951
+ svgElement: i,
1952
+ svgString: o
1953
+ };
1954
+ a("openModal", c), c.defaultPrevented || wn();
1955
+ }
1956
+ function Ot(i) {
1957
+ const o = {
1958
+ payload: { type: "toggle-mode", target: i },
1959
+ defaultPrevented: !1,
1960
+ preventDefault() {
1961
+ this.defaultPrevented = !0;
1962
+ }
1963
+ };
1964
+ a("toggleMode", i, o), o.defaultPrevented || Ft(i);
1965
+ }
1966
+ function Ft(i) {
1967
+ return N(this, null, function* () {
1968
+ const o = R.value;
1969
+ if (!o) {
1970
+ be.value = !0, Y.value = i === "source";
1971
+ return;
1972
+ }
1973
+ const c = o.getBoundingClientRect().height;
1974
+ o.style.height = `${c}px`, o.style.overflow = "hidden", be.value = !0, Y.value = i === "source", yield ue();
1975
+ const b = o.scrollHeight;
1976
+ o.style.transition = "height 180ms ease", o.offsetHeight, o.style.height = `${b}px`;
1977
+ const j = () => {
1978
+ o.style.transition = "", o.style.height = "", o.style.overflow = "", o.removeEventListener("transitionend", I);
1979
+ };
1980
+ function I() {
1981
+ j();
1982
+ }
1983
+ o.addEventListener("transitionend", I), setTimeout(() => j(), 220);
1984
+ });
1985
+ }
1986
+ function yt() {
1987
+ return N(this, null, function* () {
1988
+ if (G.value)
1989
+ return ct.value;
1990
+ if (!p.value && (yield ue(), !p.value)) {
1991
+ console.warn("Mermaid container not ready");
1992
+ return;
1993
+ }
1994
+ return G.value = !0, ct.value = N(null, null, function* () {
1995
+ var i;
1996
+ p.value && (p.value.style.opacity = "0");
1997
+ try {
1998
+ const o = yield s();
1999
+ if (!o)
2000
+ return;
2001
+ const c = `mermaid-${Date.now()}-${Math.random().toString(36).substring(2, 11)}`;
2002
+ !D.value && !ye.value && ((i = o.initialize) == null || i.call(o, {
2003
+ securityLevel: "loose",
2004
+ startOnLoad: !1
2005
+ }));
2006
+ const b = e.isDark ? "dark" : "light", j = ke(b), I = yield Ue(
2007
+ () => o.render(
2008
+ c,
2009
+ j
2010
+ // mermaidContent.value,
2011
+ ),
2012
+ { timeoutMs: x.value.fullRender }
2013
+ ), q = I == null ? void 0 : I.svg, z = I == null ? void 0 : I.bindFunctions;
2014
+ if (p.value) {
2015
+ p.value.innerHTML = q, z == null || z(p.value), !D.value && !ye.value && (It(), D.value = !0, We.value = {
2016
+ zoom: W.value,
2017
+ translateX: Z.value,
2018
+ translateY: S.value,
2019
+ containerHeight: ie.value
2020
+ });
2021
+ const fe = e.isDark ? "dark" : "light";
2022
+ je.value[fe] = q, ye.value && (ye.value = !1), Ce.value = !1;
2023
+ }
2024
+ } catch (o) {
2025
+ console.error("Failed to render mermaid diagram:", o), e.loading === !1 && at(o);
2026
+ } finally {
2027
+ yield ue(), p.value && (p.value.style.opacity = "1"), G.value = !1, ct.value = null;
2028
+ }
2029
+ }), ct.value;
2030
+ });
2031
+ }
2032
+ function Ln(i) {
2033
+ return N(this, null, function* () {
2034
+ if (Kt() && !(!p.value && (yield ue(), !p.value)) && !G.value) {
2035
+ G.value = !0;
2036
+ try {
2037
+ const o = yield s();
2038
+ if (!o)
2039
+ return;
2040
+ const c = `mermaid-partial-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`, b = e.isDark ? "dark" : "light", j = vn(i), I = j && j.trim() ? j : i, q = Vt(I, b);
2041
+ p.value && (p.value.style.opacity = "0");
2042
+ const z = yield Ue(
2043
+ () => o.render(c, q),
2044
+ { timeoutMs: x.value.render }
2045
+ ), fe = z == null ? void 0 : z.svg, ne = z == null ? void 0 : z.bindFunctions;
2046
+ p.value && fe && (p.value.innerHTML = fe, ne == null || ne(p.value), It());
2047
+ } catch (o) {
2048
+ } finally {
2049
+ yield ue(), p.value && (p.value.style.opacity = "1"), G.value = !1;
2050
+ }
2051
+ }
2052
+ });
2053
+ }
2054
+ const Nn = (Jn = globalThis.requestIdleCallback) != null ? Jn : ((i, o) => setTimeout(() => i({ didTimeout: !0 }), 16));
2055
+ function Xt() {
2056
+ return N(this, null, function* () {
2057
+ var z, fe;
2058
+ const i = Date.now(), o = ++ft.value;
2059
+ he && he.abort(), he = new AbortController();
2060
+ const c = he.signal, b = e.isDark ? "dark" : "light", j = L.value, I = j.replace(/\s+/g, "");
2061
+ if (!j.trim()) {
2062
+ p.value && (p.value.innerHTML = ""), rt.value = null, Me.value = "", Ce.value = !1;
2063
+ return;
2064
+ }
2065
+ if (I === Me.value)
2066
+ return;
2067
+ try {
2068
+ const ne = yield Sn(j, b, { signal: c, timeoutMs: x.value.worker });
2069
+ if (ne.fullOk) {
2070
+ yield yt(), ft.value === o && (rt.value = (fe = (z = p.value) == null ? void 0 : z.innerHTML) != null ? fe : null, Me.value = I, Ce.value = !1);
2071
+ return;
2072
+ }
2073
+ const Et = pt && i <= pt;
2074
+ if (ne.prefixOk && ne.prefix && Kt() && !Et) {
2075
+ yield Ln(ne.prefix);
2076
+ return;
2077
+ }
2078
+ } catch (ne) {
2079
+ if ((ne == null ? void 0 : ne.name) === "AbortError")
2080
+ return;
2081
+ }
2082
+ if (ft.value !== o || Ce.value)
2083
+ return;
2084
+ const q = je.value[b];
2085
+ q && p.value && (p.value.innerHTML = q);
2086
+ });
2087
+ }
2088
+ const Yt = kn(() => {
2089
+ Nn(() => {
2090
+ Xt();
2091
+ }, { timeout: 500 });
2092
+ }, za);
2093
+ function xt() {
2094
+ ce && (ce = !1, vt = 800, At = !1, xe && (xe.abort(), xe = null), $ && (globalThis.clearTimeout($), $ = null), re && (y(re), re = null), pt = Date.now());
2095
+ }
2096
+ function yn() {
2097
+ if (xt(), he) {
2098
+ try {
2099
+ he.abort();
2100
+ } catch (i) {
2101
+ }
2102
+ he = null;
2103
+ }
2104
+ if (xe) {
2105
+ try {
2106
+ xe.abort();
2107
+ } catch (i) {
2108
+ }
2109
+ xe = null;
2110
+ }
2111
+ ao();
2112
+ }
2113
+ function jn(i = 800) {
2114
+ ce && ($ && globalThis.clearTimeout($), $ = globalThis.setTimeout(() => {
2115
+ re = Nn(() => N(null, null, function* () {
2116
+ if (!ce)
2117
+ return;
2118
+ if (Y.value || D.value) {
2119
+ xt();
2120
+ return;
2121
+ }
2122
+ const o = e.isDark ? "dark" : "light", c = L.value;
2123
+ if (!c.trim()) {
2124
+ jn(vt);
2125
+ return;
2126
+ }
2127
+ xe && xe.abort(), xe = new AbortController();
2128
+ try {
2129
+ if ((yield $t(c, o, { signal: xe.signal, timeoutMs: x.value.worker })) && (yield yt(), D.value)) {
2130
+ xt();
2131
+ return;
2132
+ }
2133
+ } catch (b) {
2134
+ }
2135
+ vt = Math.min(Math.floor(vt * 1.5), 4e3), jn(vt);
2136
+ }), { timeout: 500 });
2137
+ }, i));
2138
+ }
2139
+ function Hn() {
2140
+ ce || Y.value || D.value || (ce = !0, pt = 0, At = !0, jn(500));
2141
+ }
2142
+ U(
2143
+ () => L.value,
2144
+ () => {
2145
+ D.value = !1, je.value = {}, Yt(), !Y.value && u.value && Hn(), v();
2146
+ }
2147
+ ), U(() => e.isDark, () => N(null, null, function* () {
2148
+ if (!D.value || Ce.value)
2149
+ return;
2150
+ const i = e.isDark ? "dark" : "light";
2151
+ if (je.value[i]) {
2152
+ p.value && (p.value.innerHTML = je.value[i]);
2153
+ return;
2154
+ }
2155
+ const o = {
2156
+ zoom: W.value,
2157
+ translateX: Z.value,
2158
+ translateY: S.value,
2159
+ containerHeight: ie.value
2160
+ }, c = W.value !== 1 || Z.value !== 0 || S.value !== 0;
2161
+ ye.value = !0, c && (W.value = 1, Z.value = 0, S.value = 0, yield ue()), yield yt(), c && (yield ue(), W.value = o.zoom, Z.value = o.translateX, S.value = o.translateY, ie.value = o.containerHeight, We.value = o);
2162
+ })), U(
2163
+ () => Y.value,
2164
+ (i) => N(null, null, function* () {
2165
+ if (i)
2166
+ xt(), D.value && (We.value = {
2167
+ zoom: W.value,
2168
+ translateX: Z.value,
2169
+ translateY: S.value,
2170
+ containerHeight: ie.value
2171
+ });
2172
+ else {
2173
+ if (Ce.value)
2174
+ return;
2175
+ const o = e.isDark ? "dark" : "light";
2176
+ if (D.value && je.value[o]) {
2177
+ yield ue(), p.value && (p.value.innerHTML = je.value[o]), W.value = We.value.zoom, Z.value = We.value.translateX, S.value = We.value.translateY, ie.value = We.value.containerHeight;
2178
+ return;
2179
+ }
2180
+ if (yield ue(), !u.value)
2181
+ return;
2182
+ yield Xt(), Hn();
2183
+ }
2184
+ })
2185
+ ), U(
2186
+ () => e.loading,
2187
+ (i, o) => N(null, null, function* () {
2188
+ if (o === !0 && i === !1) {
2189
+ const c = L.value.trim();
2190
+ if (!c)
2191
+ return yn();
2192
+ const b = e.isDark ? "dark" : "light", j = c.replace(/\s+/g, "");
2193
+ if (D.value && j === Me.value) {
2194
+ yield ue(), p.value && !p.value.querySelector("svg") && je.value[b] && (p.value.innerHTML = je.value[b]), yn();
2195
+ return;
2196
+ }
2197
+ try {
2198
+ yield $t(c, b, { timeoutMs: x.value.worker }), yield yt(), Me.value = j, Ce.value = !1, yn();
2199
+ } catch (I) {
2200
+ yn(), at(I);
2201
+ }
2202
+ }
2203
+ })
2204
+ ), U(
2205
+ l,
2206
+ (i) => {
2207
+ oe && oe.disconnect(), i && !D.value && !ye.value && (oe = new ResizeObserver((o) => {
2208
+ o && o.length > 0 && !D.value && !ye.value && sa(() => {
2209
+ const c = o[0].contentRect.width;
2210
+ It(c);
2211
+ });
2212
+ }), oe.observe(i));
2213
+ },
2214
+ { immediate: !0 }
2215
+ ), go(() => N(null, null, function* () {
2216
+ yield ue(), be.value || (Y.value = !u.value), X.value && (Yt(), nt.value = L.value.length);
2217
+ })), U(
2218
+ () => u.value,
2219
+ (i) => {
2220
+ be.value || (Y.value = !i);
2221
+ }
2222
+ ), U(
2223
+ () => X.value,
2224
+ (i) => {
2225
+ i && (D.value || (Yt(), nt.value = L.value.length), !e.loading && !D.value && Yt());
2226
+ },
2227
+ { immediate: !1 }
2228
+ ), Fo(() => {
2229
+ Ke && clearTimeout(Ke), oe && oe.disconnect(), he && (he.abort(), he = null), ao(), xt();
2230
+ }), U(
2231
+ () => f.value,
2232
+ (i) => N(null, null, function* () {
2233
+ i ? (xt(), he && he.abort()) : D.value || (yield ue(), Yt(), Y.value || Hn());
2234
+ }),
2235
+ { immediate: !1 }
2236
+ );
2237
+ const xn = E(() => e.isDark ? "mermaid-action-btn p-2 text-xs rounded text-gray-400 hover:bg-gray-700 hover:text-gray-200" : "mermaid-action-btn p-2 text-xs rounded text-gray-600 hover:bg-gray-200 hover:text-gray-700");
2238
+ return (i, o) => (m(), g("div", {
2239
+ class: A(["my-4 rounded-lg border overflow-hidden shadow-sm", [
2240
+ e.isDark ? "border-gray-700/30" : "border-gray-200",
2241
+ { "is-rendering": e.loading }
2242
+ ]])
2243
+ }, [
2244
+ e.showHeader ? (m(), g("div", {
2245
+ key: 0,
2246
+ class: A(["mermaid-block-header flex justify-between items-center px-4 py-2.5 border-b", e.isDark ? "bg-gray-800 border-gray-700/30" : "bg-gray-50 border-gray-200"])
2247
+ }, [
2248
+ i.$slots["header-left"] ? (m(), g("div", ka, [
2249
+ Je(i.$slots, "header-left", {}, void 0, !0)
2250
+ ])) : (m(), g("div", ya, [
2251
+ h("img", {
2252
+ src: B(ia),
2253
+ class: "w-4 h-4 my-0",
2254
+ alt: "Mermaid"
2255
+ }, null, 8, xa),
2256
+ h("span", {
2257
+ class: A(["text-sm font-medium font-mono truncate", e.isDark ? "text-gray-400" : "text-gray-600"])
2258
+ }, "Mermaid", 2)
2259
+ ])),
2260
+ i.$slots["header-center"] ? (m(), g("div", ba, [
2261
+ Je(i.$slots, "header-center", {}, void 0, !0)
2262
+ ])) : e.showModeToggle && u.value ? (m(), g("div", {
2263
+ key: 3,
2264
+ class: A(["flex items-center space-x-1 rounded-md p-0.5", e.isDark ? "bg-gray-700" : "bg-gray-100"])
2265
+ }, [
2266
+ h("button", {
2267
+ class: A(["px-2.5 py-1 text-xs rounded transition-colors", [
2268
+ Y.value ? e.isDark ? "text-gray-400 hover:text-gray-200" : "text-gray-500 hover:text-gray-700" : e.isDark ? "bg-gray-600 text-gray-200 shadow-sm" : "bg-white text-gray-700 shadow-sm"
2269
+ ]]),
2270
+ onClick: o[0] || (o[0] = () => Ot("preview")),
2271
+ onMouseenter: o[1] || (o[1] = (c) => J(c, B(r)("common.preview") || "Preview")),
2272
+ onFocus: o[2] || (o[2] = (c) => J(c, B(r)("common.preview") || "Preview")),
2273
+ onMouseleave: Q,
2274
+ onBlur: Q
2275
+ }, [
2276
+ h("div", Ma, [
2277
+ o[21] || (o[21] = h("svg", {
2278
+ xmlns: "http://www.w3.org/2000/svg",
2279
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
2280
+ "aria-hidden": "true",
2281
+ role: "img",
2282
+ width: "1em",
2283
+ height: "1em",
2284
+ viewBox: "0 0 24 24",
2285
+ class: "w-3 h-3"
2286
+ }, [
2287
+ h("g", {
2288
+ fill: "none",
2289
+ stroke: "currentColor",
2290
+ "stroke-linecap": "round",
2291
+ "stroke-linejoin": "round",
2292
+ "stroke-width": "2"
2293
+ }, [
2294
+ h("path", { d: "M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0" }),
2295
+ h("circle", {
2296
+ cx: "12",
2297
+ cy: "12",
2298
+ r: "3"
2299
+ })
2300
+ ])
2301
+ ], -1)),
2302
+ h("span", null, ee(B(r)("common.preview") || "Preview"), 1)
2303
+ ])
2304
+ ], 34),
2305
+ h("button", {
2306
+ class: A(["px-2.5 py-1 text-xs rounded transition-colors", [
2307
+ Y.value ? e.isDark ? "bg-gray-600 text-gray-200 shadow-sm" : "bg-white text-gray-700 shadow-sm" : e.isDark ? "text-gray-400 hover:text-gray-200" : "text-gray-500 hover:text-gray-700"
2308
+ ]]),
2309
+ onClick: o[3] || (o[3] = () => Ot("source")),
2310
+ onMouseenter: o[4] || (o[4] = (c) => J(c, B(r)("common.source") || "Source")),
2311
+ onFocus: o[5] || (o[5] = (c) => J(c, B(r)("common.source") || "Source")),
2312
+ onMouseleave: Q,
2313
+ onBlur: Q
2314
+ }, [
2315
+ h("div", Ca, [
2316
+ o[22] || (o[22] = h("svg", {
2317
+ xmlns: "http://www.w3.org/2000/svg",
2318
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
2319
+ "aria-hidden": "true",
2320
+ role: "img",
2321
+ width: "1em",
2322
+ height: "1em",
2323
+ viewBox: "0 0 24 24",
2324
+ class: "w-3 h-3"
2325
+ }, [
2326
+ h("path", {
2327
+ fill: "none",
2328
+ stroke: "currentColor",
2329
+ "stroke-linecap": "round",
2330
+ "stroke-linejoin": "round",
2331
+ "stroke-width": "2",
2332
+ d: "m16 18l6-6l-6-6M8 6l-6 6l6 6"
2333
+ })
2334
+ ], -1)),
2335
+ h("span", null, ee(B(r)("common.source") || "Source"), 1)
2336
+ ])
2337
+ ], 34)
2338
+ ], 2)) : se("", !0),
2339
+ i.$slots["header-right"] ? (m(), g("div", _a, [
2340
+ Je(i.$slots, "header-right", {}, void 0, !0)
2341
+ ])) : (m(), g("div", Ba, [
2342
+ e.showCollapseButton ? (m(), g("button", {
2343
+ key: 0,
2344
+ class: A(xn.value),
2345
+ "aria-pressed": f.value,
2346
+ onClick: o[6] || (o[6] = (c) => f.value = !f.value),
2347
+ onMouseenter: o[7] || (o[7] = (c) => J(c, f.value ? B(r)("common.expand") || "Expand" : B(r)("common.collapse") || "Collapse")),
2348
+ onFocus: o[8] || (o[8] = (c) => J(c, f.value ? B(r)("common.expand") || "Expand" : B(r)("common.collapse") || "Collapse")),
2349
+ onMouseleave: Q,
2350
+ onBlur: Q
2351
+ }, [
2352
+ (m(), g("svg", {
2353
+ style: Re({ rotate: f.value ? "0deg" : "90deg" }),
2354
+ xmlns: "http://www.w3.org/2000/svg",
2355
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
2356
+ "aria-hidden": "true",
2357
+ role: "img",
2358
+ width: "1em",
2359
+ height: "1em",
2360
+ viewBox: "0 0 24 24",
2361
+ class: "w-3 h-3"
2362
+ }, [...o[23] || (o[23] = [
2363
+ h("path", {
2364
+ fill: "none",
2365
+ stroke: "currentColor",
2366
+ "stroke-linecap": "round",
2367
+ "stroke-linejoin": "round",
2368
+ "stroke-width": "2",
2369
+ d: "m9 18l6-6l-6-6"
2370
+ }, null, -1)
2371
+ ])], 4))
2372
+ ], 42, $a)) : se("", !0),
2373
+ e.showCopyButton ? (m(), g("button", {
2374
+ key: 1,
2375
+ class: A(xn.value),
2376
+ onClick: Oe,
2377
+ onMouseenter: o[9] || (o[9] = (c) => Pt(c)),
2378
+ onFocus: o[10] || (o[10] = (c) => Pt(c)),
2379
+ onMouseleave: Q,
2380
+ onBlur: Q
2381
+ }, [
2382
+ d.value ? (m(), g("svg", Ta, [...o[25] || (o[25] = [
2383
+ h("path", {
2384
+ fill: "none",
2385
+ stroke: "currentColor",
2386
+ "stroke-linecap": "round",
2387
+ "stroke-linejoin": "round",
2388
+ "stroke-width": "2",
2389
+ d: "M20 6L9 17l-5-5"
2390
+ }, null, -1)
2391
+ ])])) : (m(), g("svg", Ia, [...o[24] || (o[24] = [
2392
+ h("g", {
2393
+ fill: "none",
2394
+ stroke: "currentColor",
2395
+ "stroke-linecap": "round",
2396
+ "stroke-linejoin": "round",
2397
+ "stroke-width": "2"
2398
+ }, [
2399
+ h("rect", {
2400
+ width: "14",
2401
+ height: "14",
2402
+ x: "8",
2403
+ y: "8",
2404
+ rx: "2",
2405
+ ry: "2"
2406
+ }),
2407
+ h("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
2408
+ ], -1)
2409
+ ])]))
2410
+ ], 34)) : se("", !0),
2411
+ e.showExportButton && u.value ? (m(), g("button", {
2412
+ key: 2,
2413
+ class: A(`${xn.value} ${wt.value ? "opacity-50 cursor-not-allowed" : ""}`),
2414
+ disabled: wt.value,
2415
+ onClick: St,
2416
+ onMouseenter: o[11] || (o[11] = (c) => J(c, B(r)("common.export") || "Export")),
2417
+ onFocus: o[12] || (o[12] = (c) => J(c, B(r)("common.export") || "Export")),
2418
+ onMouseleave: Q,
2419
+ onBlur: Q
2420
+ }, [...o[26] || (o[26] = [
2421
+ h("svg", {
2422
+ xmlns: "http://www.w3.org/2000/svg",
2423
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
2424
+ "aria-hidden": "true",
2425
+ role: "img",
2426
+ width: "1em",
2427
+ height: "1em",
2428
+ viewBox: "0 0 24 24",
2429
+ class: "w-3 h-3"
2430
+ }, [
2431
+ h("g", {
2432
+ fill: "none",
2433
+ stroke: "currentColor",
2434
+ "stroke-linecap": "round",
2435
+ "stroke-linejoin": "round",
2436
+ "stroke-width": "2"
2437
+ }, [
2438
+ h("path", { d: "M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
2439
+ h("path", { d: "m7 10l5 5l5-5" })
2440
+ ])
2441
+ ], -1)
2442
+ ])], 42, Sa)) : se("", !0),
2443
+ e.showFullscreenButton && u.value ? (m(), g("button", {
2444
+ key: 3,
2445
+ class: A(`${xn.value} ${wt.value ? "opacity-50 cursor-not-allowed" : ""}`),
2446
+ disabled: wt.value,
2447
+ onClick: En,
2448
+ onMouseenter: o[13] || (o[13] = (c) => J(c, Ze.value ? B(r)("common.minimize") || "Minimize" : B(r)("common.open") || "Open")),
2449
+ onFocus: o[14] || (o[14] = (c) => J(c, Ze.value ? B(r)("common.minimize") || "Minimize" : B(r)("common.open") || "Open")),
2450
+ onMouseleave: Q,
2451
+ onBlur: Q
2452
+ }, [
2453
+ Ze.value ? (m(), g("svg", Na, [...o[28] || (o[28] = [
2454
+ h("path", {
2455
+ fill: "none",
2456
+ stroke: "currentColor",
2457
+ "stroke-linecap": "round",
2458
+ "stroke-linejoin": "round",
2459
+ "stroke-width": "2",
2460
+ d: "m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"
2461
+ }, null, -1)
2462
+ ])])) : (m(), g("svg", La, [...o[27] || (o[27] = [
2463
+ h("path", {
2464
+ fill: "none",
2465
+ stroke: "currentColor",
2466
+ "stroke-linecap": "round",
2467
+ "stroke-linejoin": "round",
2468
+ "stroke-width": "2",
2469
+ d: "M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"
2470
+ }, null, -1)
2471
+ ])]))
2472
+ ], 42, Ea)) : se("", !0)
2473
+ ]))
2474
+ ], 2)) : se("", !0),
2475
+ sn(h("div", {
2476
+ ref_key: "modeContainerRef",
2477
+ ref: R
2478
+ }, [
2479
+ Y.value ? (m(), g("div", {
2480
+ key: 0,
2481
+ class: A(["p-4", e.isDark ? "bg-gray-900" : "bg-gray-50"])
2482
+ }, [
2483
+ h("pre", {
2484
+ class: A(["text-sm font-mono whitespace-pre-wrap", e.isDark ? "text-gray-300" : "text-gray-700"])
2485
+ }, ee(L.value), 3)
2486
+ ], 2)) : (m(), g("div", ja, [
2487
+ e.showZoomControls ? (m(), g("div", Ha, [
2488
+ h("div", Ra, [
2489
+ h("button", {
2490
+ class: A(["p-2 text-xs rounded transition-colors", [e.isDark ? "text-gray-400 hover:bg-gray-700" : "text-gray-600 hover:bg-gray-200"]]),
2491
+ onClick: w,
2492
+ onMouseenter: o[15] || (o[15] = (c) => J(c, B(r)("common.zoomIn") || "Zoom in")),
2493
+ onFocus: o[16] || (o[16] = (c) => J(c, B(r)("common.zoomIn") || "Zoom in")),
2494
+ onMouseleave: Q,
2495
+ onBlur: Q
2496
+ }, [...o[29] || (o[29] = [
2497
+ h("svg", {
2498
+ xmlns: "http://www.w3.org/2000/svg",
2499
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
2500
+ "aria-hidden": "true",
2501
+ role: "img",
2502
+ width: "1em",
2503
+ height: "1em",
2504
+ viewBox: "0 0 24 24",
2505
+ class: "w-3 h-3"
2506
+ }, [
2507
+ h("g", {
2508
+ fill: "none",
2509
+ stroke: "currentColor",
2510
+ "stroke-linecap": "round",
2511
+ "stroke-linejoin": "round",
2512
+ "stroke-width": "2"
2513
+ }, [
2514
+ h("circle", {
2515
+ cx: "11",
2516
+ cy: "11",
2517
+ r: "8"
2518
+ }),
2519
+ h("path", { d: "m21 21l-4.35-4.35M11 8v6m-3-3h6" })
2520
+ ])
2521
+ ], -1)
2522
+ ])], 34),
2523
+ h("button", {
2524
+ class: A(["p-2 text-xs rounded transition-colors", [e.isDark ? "text-gray-400 hover:bg-gray-700" : "text-gray-600 hover:bg-gray-200"]]),
2525
+ onClick: C,
2526
+ onMouseenter: o[17] || (o[17] = (c) => J(c, B(r)("common.zoomOut") || "Zoom out")),
2527
+ onFocus: o[18] || (o[18] = (c) => J(c, B(r)("common.zoomOut") || "Zoom out")),
2528
+ onMouseleave: Q,
2529
+ onBlur: Q
2530
+ }, [...o[30] || (o[30] = [
2531
+ h("svg", {
2532
+ xmlns: "http://www.w3.org/2000/svg",
2533
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
2534
+ "aria-hidden": "true",
2535
+ role: "img",
2536
+ width: "1em",
2537
+ height: "1em",
2538
+ viewBox: "0 0 24 24",
2539
+ class: "w-3 h-3"
2540
+ }, [
2541
+ h("g", {
2542
+ fill: "none",
2543
+ stroke: "currentColor",
2544
+ "stroke-linecap": "round",
2545
+ "stroke-linejoin": "round",
2546
+ "stroke-width": "2"
2547
+ }, [
2548
+ h("circle", {
2549
+ cx: "11",
2550
+ cy: "11",
2551
+ r: "8"
2552
+ }),
2553
+ h("path", { d: "m21 21l-4.35-4.35M8 11h6" })
2554
+ ])
2555
+ ], -1)
2556
+ ])], 34),
2557
+ h("button", {
2558
+ class: A(["p-2 text-xs rounded transition-colors", [e.isDark ? "text-gray-400 hover:bg-gray-700" : "text-gray-600 hover:bg-gray-200"]]),
2559
+ onClick: F,
2560
+ onMouseenter: o[19] || (o[19] = (c) => J(c, B(r)("common.resetZoom") || "Reset zoom")),
2561
+ onFocus: o[20] || (o[20] = (c) => J(c, B(r)("common.resetZoom") || "Reset zoom")),
2562
+ onMouseleave: Q,
2563
+ onBlur: Q
2564
+ }, ee(Math.round(W.value * 100)) + "% ", 35)
2565
+ ])
2566
+ ])) : se("", !0),
2567
+ h("div", {
2568
+ ref_key: "mermaidContainer",
2569
+ ref: l,
2570
+ class: A(["min-h-[360px] relative transition-all duration-100 overflow-hidden block", e.isDark ? "bg-gray-900" : "bg-gray-50"]),
2571
+ style: Re({ height: ie.value }),
2572
+ onWheel: it,
2573
+ onMousedown: H,
2574
+ onMousemove: we,
2575
+ onMouseup: He,
2576
+ onMouseleave: He,
2577
+ onTouchstartPassive: H,
2578
+ onTouchmovePassive: we,
2579
+ onTouchendPassive: He
2580
+ }, [
2581
+ h("div", {
2582
+ ref_key: "mermaidWrapper",
2583
+ ref: k,
2584
+ "data-mermaid-wrapper": "",
2585
+ class: A(["absolute inset-0 cursor-grab", { "cursor-grabbing": le.value }]),
2586
+ style: Re(Wt.value)
2587
+ }, [
2588
+ h("div", {
2589
+ ref_key: "mermaidContent",
2590
+ ref: p,
2591
+ class: "_mermaid w-full text-center flex items-center justify-center min-h-full"
2592
+ }, null, 512)
2593
+ ], 6)
2594
+ ], 38),
2595
+ (m(), de(fo, { to: "body" }, [
2596
+ Ye(fn, {
2597
+ name: "mermaid-dialog",
2598
+ appear: ""
2599
+ }, {
2600
+ default: Bt(() => [
2601
+ Ze.value ? (m(), g("div", {
2602
+ key: 0,
2603
+ class: "fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",
2604
+ onClick: Xo(Tt, ["self"])
2605
+ }, [
2606
+ h("div", {
2607
+ class: A(["dialog-panel relative w-full h-full max-w-full max-h-full rounded shadow-lg overflow-hidden", e.isDark ? "bg-gray-900" : "bg-white"])
2608
+ }, [
2609
+ h("div", Da, [
2610
+ h("button", {
2611
+ class: A(["p-2 text-xs rounded transition-colors", [e.isDark ? "text-gray-400 hover:bg-gray-700" : "text-gray-600 hover:bg-gray-200"]]),
2612
+ onClick: w
2613
+ }, [...o[31] || (o[31] = [
2614
+ h("svg", {
2615
+ xmlns: "http://www.w3.org/2000/svg",
2616
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
2617
+ "aria-hidden": "true",
2618
+ role: "img",
2619
+ width: "1em",
2620
+ height: "1em",
2621
+ viewBox: "0 0 24 24",
2622
+ class: "w-3 h-3"
2623
+ }, [
2624
+ h("g", {
2625
+ fill: "none",
2626
+ stroke: "currentColor",
2627
+ "stroke-linecap": "round",
2628
+ "stroke-linejoin": "round",
2629
+ "stroke-width": "2"
2630
+ }, [
2631
+ h("circle", {
2632
+ cx: "11",
2633
+ cy: "11",
2634
+ r: "8"
2635
+ }),
2636
+ h("path", { d: "m21 21l-4.35-4.35M11 8v6m-3-3h6" })
2637
+ ])
2638
+ ], -1)
2639
+ ])], 2),
2640
+ h("button", {
2641
+ class: A(["p-2 text-xs rounded transition-colors", [e.isDark ? "text-gray-400 hover:bg-gray-700" : "text-gray-600 hover:bg-gray-200"]]),
2642
+ onClick: C
2643
+ }, [...o[32] || (o[32] = [
2644
+ h("svg", {
2645
+ xmlns: "http://www.w3.org/2000/svg",
2646
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
2647
+ "aria-hidden": "true",
2648
+ role: "img",
2649
+ width: "1em",
2650
+ height: "1em",
2651
+ viewBox: "0 0 24 24",
2652
+ class: "w-3 h-3"
2653
+ }, [
2654
+ h("g", {
2655
+ fill: "none",
2656
+ stroke: "currentColor",
2657
+ "stroke-linecap": "round",
2658
+ "stroke-linejoin": "round",
2659
+ "stroke-width": "2"
2660
+ }, [
2661
+ h("circle", {
2662
+ cx: "11",
2663
+ cy: "11",
2664
+ r: "8"
2665
+ }),
2666
+ h("path", { d: "m21 21l-4.35-4.35M8 11h6" })
2667
+ ])
2668
+ ], -1)
2669
+ ])], 2),
2670
+ h("button", {
2671
+ class: A(["p-2 text-xs rounded transition-colors", [e.isDark ? "text-gray-400 hover:bg-gray-700" : "text-gray-600 hover:bg-gray-200"]]),
2672
+ onClick: F
2673
+ }, ee(Math.round(W.value * 100)) + "% ", 3),
2674
+ h("button", {
2675
+ class: A(["inline-flex items-center justify-center p-2 rounded transition-colors", [e.isDark ? "text-gray-400 hover:bg-gray-700" : "text-gray-600 hover:bg-gray-200"]]),
2676
+ onClick: Tt
2677
+ }, [...o[33] || (o[33] = [
2678
+ h("svg", {
2679
+ xmlns: "http://www.w3.org/2000/svg",
2680
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
2681
+ "aria-hidden": "true",
2682
+ role: "img",
2683
+ width: "1em",
2684
+ height: "1em",
2685
+ viewBox: "0 0 24 24",
2686
+ class: "w-3 h-3"
2687
+ }, [
2688
+ h("path", {
2689
+ fill: "none",
2690
+ stroke: "currentColor",
2691
+ "stroke-linecap": "round",
2692
+ "stroke-linejoin": "round",
2693
+ "stroke-width": "2",
2694
+ d: "M18 6L6 18M6 6l12 12"
2695
+ })
2696
+ ], -1)
2697
+ ])], 2)
2698
+ ]),
2699
+ h("div", {
2700
+ ref_key: "modalContent",
2701
+ ref: _,
2702
+ class: "w-full h-full flex items-center justify-center p-4 overflow-hidden",
2703
+ onWheel: it,
2704
+ onMousedown: H,
2705
+ onMousemove: we,
2706
+ onMouseup: He,
2707
+ onMouseleave: He,
2708
+ onTouchstart: H,
2709
+ onTouchmove: we,
2710
+ onTouchend: He
2711
+ }, null, 544)
2712
+ ], 2)
2713
+ ])) : se("", !0)
2714
+ ]),
2715
+ _: 1
2716
+ })
2717
+ ]))
2718
+ ]))
2719
+ ], 512), [
2720
+ [ln, !f.value]
2721
+ ])
2722
+ ], 2));
2723
+ }
2724
+ }), jt = /* @__PURE__ */ O(Pa, [["__scopeId", "data-v-32888c9e"]]);
2725
+ jt.install = (t) => {
2726
+ t.component(jt.__name, jt);
2727
+ };
2728
+ const Va = {
2729
+ dir: "auto",
2730
+ class: "paragraph-node"
2731
+ }, Ka = /* @__PURE__ */ V({
2732
+ __name: "ParagraphNode",
2733
+ props: {
2734
+ node: {},
2735
+ customId: {},
2736
+ indexKey: {}
2737
+ },
2738
+ setup(t) {
2739
+ const n = t, e = et(n.customId), a = {
2740
+ inline_code: e.inline_code || Ie,
2741
+ image: e.image || dt,
2742
+ link: e.link || Le,
2743
+ hardbreak: e.hardbreak || Ct,
2744
+ emphasis: e.emphasis || Ve,
2745
+ strong: e.strong || Se,
2746
+ strikethrough: e.strikethrough || Ee,
2747
+ highlight: e.highlight || Pe,
2748
+ insert: e.insert || Ae,
2749
+ subscript: e.subscript || ze,
2750
+ superscript: e.superscript || De,
2751
+ emoji: e.emoji || Be,
2752
+ checkbox: e.checkbox || Qe,
2753
+ math_inline: e.math_inline || tt,
2754
+ checkbox_input: e.checkbox_input || Qe,
2755
+ reference: e.reference || Te,
2756
+ footnote_anchor: e.footnote_anchor || Nt,
2757
+ footnote_reference: e.footnote_reference || $e
2758
+ }, r = $o();
2759
+ return (u, s) => (m(), g("p", Va, [
2760
+ (m(!0), g(ae, null, pe(t.node.children, (d, f) => (m(), g(ae, {
2761
+ key: `${t.indexKey || "paragraph"}-${f}`
2762
+ }, [
2763
+ d.type !== "text" ? (m(), de(Ne(a[d.type]), {
2764
+ key: 0,
2765
+ node: d,
2766
+ "index-key": `${t.indexKey}-${f}`,
2767
+ "custom-id": n.customId
2768
+ }, null, 8, ["node", "index-key", "custom-id"])) : (m(), g("span", {
2769
+ key: 1,
2770
+ class: A([[B(r) && d.center ? "text-node-center" : ""], "whitespace-pre-wrap break-words text-node"])
2771
+ }, ee(d.content), 3))
2772
+ ], 64))), 128))
2773
+ ]));
2774
+ }
2775
+ }), nn = /* @__PURE__ */ O(Ka, [["__scopeId", "data-v-5edcac7a"]]);
2776
+ nn.install = (t) => {
2777
+ t.component(nn.__name, nn);
2778
+ };
2779
+ const Wa = ["aria-busy", "aria-label", "data-language"], Oa = ["textContent"], Ht = /* @__PURE__ */ V({
2780
+ __name: "PreCodeNode",
2781
+ props: {
2782
+ node: {}
2783
+ },
2784
+ setup(t) {
2785
+ const n = t, e = E(() => {
2786
+ var f, l, k;
2787
+ const u = String((l = (f = n.node) == null ? void 0 : f.language) != null ? l : "");
2788
+ return String((k = String(u).split(/\s+/g)[0]) != null ? k : "").toLowerCase().replace(/[^\w-]/g, "") || "plaintext";
2789
+ }), a = E(() => `language-${e.value}`), r = E(() => {
2790
+ const u = e.value;
2791
+ return u ? `Code block: ${u}` : "Code block";
2792
+ });
2793
+ return (u, s) => (m(), g("pre", {
2794
+ class: A([a.value]),
2795
+ "aria-busy": t.node.loading === !0,
2796
+ "aria-label": r.value,
2797
+ "data-language": e.value,
2798
+ tabindex: "0"
2799
+ }, [
2800
+ h("code", {
2801
+ translate: "no",
2802
+ textContent: ee(t.node.code)
2803
+ }, null, 8, Oa)
2804
+ ], 10, Wa));
2805
+ }
2806
+ });
2807
+ Ht.install = (t) => {
2808
+ t.component(Ht.__name, Ht);
2809
+ };
2810
+ const Fa = { class: "table-node-wrapper" }, Xa = ["aria-busy"], Ya = { class: "border-[var(--table-border,#cbd5e1)]" }, qa = { class: "border-b" }, Ua = {
2811
+ key: 0,
2812
+ class: "table-node__loading",
2813
+ role: "status",
2814
+ "aria-live": "polite"
2815
+ }, Za = /* @__PURE__ */ V({
2816
+ __name: "TableNode",
2817
+ props: {
2818
+ node: {},
2819
+ indexKey: {},
2820
+ isDark: { type: Boolean },
2821
+ typewriter: { type: Boolean },
2822
+ customId: {}
2823
+ },
2824
+ emits: ["copy"],
2825
+ setup(t) {
2826
+ const n = t, e = E(() => {
2827
+ var s, d, f, l;
2828
+ return (l = (f = (d = (s = n.node) == null ? void 0 : s.header) == null ? void 0 : d.cells) == null ? void 0 : f.length) != null ? l : 0;
2829
+ }), a = E(() => {
2830
+ const s = e.value || 1, d = Math.floor(100 / s);
2831
+ return Array.from({ length: s }).map(
2832
+ (f, l) => l === s - 1 ? `${100 - d * (s - 1)}%` : `${d}%`
2833
+ );
2834
+ }), r = E(() => {
2835
+ var s;
2836
+ return (s = n.node.loading) != null ? s : !1;
2837
+ }), u = E(() => {
2838
+ var s;
2839
+ return (s = n.node.rows) != null ? s : [];
2840
+ });
2841
+ return (s, d) => (m(), g("div", Fa, [
2842
+ h("table", {
2843
+ class: A(["w-full my-8 text-sm table-fixed table-node", { "table-node--loading": r.value }]),
2844
+ "aria-busy": r.value
2845
+ }, [
2846
+ h("colgroup", null, [
2847
+ (m(!0), g(ae, null, pe(a.value, (f, l) => (m(), g("col", {
2848
+ key: `col-${l}`,
2849
+ style: Re({ width: f })
2850
+ }, null, 4))), 128))
2851
+ ]),
2852
+ h("thead", Ya, [
2853
+ h("tr", qa, [
2854
+ (m(!0), g(ae, null, pe(t.node.header.cells, (f, l) => (m(), g("th", {
2855
+ key: `header-${l}`,
2856
+ dir: "auto",
2857
+ class: A(["font-semibold p-[calc(4/7*1em)] overflow-x-auto", [
2858
+ f.align === "right" ? "text-right" : f.align === "center" ? "text-center" : "text-left"
2859
+ ]])
2860
+ }, [
2861
+ Ye(B(Xe), {
2862
+ nodes: f.children,
2863
+ "index-key": `table-th-${n.indexKey}`,
2864
+ "custom-id": n.customId,
2865
+ typewriter: n.typewriter,
2866
+ onCopy: d[0] || (d[0] = (k) => s.$emit("copy", k))
2867
+ }, null, 8, ["nodes", "index-key", "custom-id", "typewriter"])
2868
+ ], 2))), 128))
2869
+ ])
2870
+ ]),
2871
+ h("tbody", null, [
2872
+ (m(!0), g(ae, null, pe(u.value, (f, l) => (m(), g("tr", {
2873
+ key: `row-${l}`,
2874
+ class: A(["border-[var(--table-border,#cbd5e1)]", [l < u.value.length - 1 ? "border-b" : ""]])
2875
+ }, [
2876
+ (m(!0), g(ae, null, pe(f.cells, (k, p) => (m(), g("td", {
2877
+ key: `cell-${l}-${p}`,
2878
+ class: A(["p-[calc(4/7*1em)] overflow-x-auto", [
2879
+ k.align === "right" ? "text-right" : k.align === "center" ? "text-center" : "text-left"
2880
+ ]]),
2881
+ dir: "auto"
2882
+ }, [
2883
+ Ye(B(Xe), {
2884
+ nodes: k.children,
2885
+ "index-key": `table-td-${n.indexKey}`,
2886
+ "custom-id": n.customId,
2887
+ typewriter: n.typewriter,
2888
+ onCopy: d[1] || (d[1] = (_) => s.$emit("copy", _))
2889
+ }, null, 8, ["nodes", "index-key", "custom-id", "typewriter"])
2890
+ ], 2))), 128))
2891
+ ], 2))), 128))
2892
+ ])
2893
+ ], 10, Xa),
2894
+ Ye(fn, { name: "table-node-fade" }, {
2895
+ default: Bt(() => [
2896
+ r.value ? (m(), g("div", Ua, [
2897
+ Je(s.$slots, "loading", { isLoading: r.value }, () => [
2898
+ d[2] || (d[2] = h("span", {
2899
+ class: "table-node__spinner animate-spin",
2900
+ "aria-hidden": "true"
2901
+ }, null, -1)),
2902
+ d[3] || (d[3] = h("span", { class: "sr-only" }, "Loading", -1))
2903
+ ], !0)
2904
+ ])) : se("", !0)
2905
+ ]),
2906
+ _: 3
2907
+ })
2908
+ ]));
2909
+ }
2910
+ }), on = /* @__PURE__ */ O(Za, [["__scopeId", "data-v-a874491c"]]);
2911
+ on.install = (t) => {
2912
+ t.component(on.__name, on);
2913
+ };
2914
+ const Ga = {}, Ja = { class: "hr-node" };
2915
+ function Qa(t, n) {
2916
+ return m(), g("hr", Ja);
2917
+ }
2918
+ const rn = /* @__PURE__ */ O(Ga, [["render", Qa], ["__scopeId", "data-v-639cbad9"]]);
2919
+ rn.install = (t) => {
2920
+ t.component(rn.__name, rn);
2921
+ };
2922
+ const ei = {
2923
+ key: 1,
2924
+ class: "html-block-node__placeholder"
2925
+ }, ti = /* @__PURE__ */ V({
2926
+ __name: "HtmlBlockNode",
2927
+ props: {
2928
+ node: {}
2929
+ },
2930
+ setup(t) {
2931
+ const n = t, e = E(() => {
2932
+ const l = n.node.attrs;
2933
+ if (l) {
2934
+ if (Array.isArray(l)) {
2935
+ const k = {};
2936
+ for (const p of l) {
2937
+ if (!p || p.length < 2)
2938
+ continue;
2939
+ const [_, T] = p;
2940
+ _ != null && (k[String(_)] = T == null ? "" : String(T));
2941
+ }
2942
+ return k;
2943
+ }
2944
+ return l;
2945
+ }
2946
+ }), a = M(null), r = M(typeof window == "undefined"), u = M(n.node.content), s = Fn(), d = M(null), f = !!n.node.loading;
2947
+ return typeof window != "undefined" ? (U(
2948
+ a,
2949
+ (l) => {
2950
+ var p, _;
2951
+ if ((_ = (p = d.value) == null ? void 0 : p.destroy) == null || _.call(p), d.value = null, !f) {
2952
+ r.value = !0, u.value = n.node.content;
2953
+ return;
2954
+ }
2955
+ if (!l) {
2956
+ r.value = !1;
2957
+ return;
2958
+ }
2959
+ const k = s(l, { rootMargin: "400px" });
2960
+ d.value = k, r.value = k.isVisible.value, k.whenVisible.then(() => {
2961
+ r.value = !0;
2962
+ });
2963
+ },
2964
+ { immediate: !0 }
2965
+ ), U(
2966
+ () => n.node.content,
2967
+ (l) => {
2968
+ (!f || r.value) && (u.value = l);
2969
+ }
2970
+ )) : r.value = !0, hn(() => {
2971
+ var l, k;
2972
+ (k = (l = d.value) == null ? void 0 : l.destroy) == null || k.call(l), d.value = null;
2973
+ }), (l, k) => (m(), g("div", Rt({
2974
+ ref_key: "htmlRef",
2975
+ ref: a,
2976
+ class: "html-block-node"
2977
+ }, e.value), [
2978
+ r.value ? Dt([u.value], () => (m(), g("div", {
2979
+ key: 0,
2980
+ innerHTML: u.value
2981
+ }, null, 8, ["innerHTML"])), k, 0) : (m(), g("div", ei, [
2982
+ Je(l.$slots, "placeholder", { node: t.node }, () => [
2983
+ k[1] || (k[1] = h("span", { class: "html-block-node__placeholder-bar" }, null, -1)),
2984
+ k[2] || (k[2] = h("span", { class: "html-block-node__placeholder-bar w-4/5" }, null, -1)),
2985
+ k[3] || (k[3] = h("span", { class: "html-block-node__placeholder-bar w-2/3" }, null, -1))
2986
+ ], !0)
2987
+ ]))
2988
+ ], 16));
2989
+ }
2990
+ }), ni = /* @__PURE__ */ O(ti, [["__scopeId", "data-v-ed22b926"]]), oi = { class: "unknown-node" }, io = /* @__PURE__ */ V({
2991
+ __name: "FallbackComponent",
2992
+ props: {
2993
+ node: {}
2994
+ },
2995
+ setup(t) {
2996
+ return (n, e) => (m(), g("div", oi, ee(t.node.raw), 1));
2997
+ }
2998
+ }), ri = ["data-node-index", "data-node-type"], ai = /* @__PURE__ */ V({
2999
+ __name: "NodeRenderer",
3000
+ props: {
3001
+ content: {},
3002
+ nodes: {},
3003
+ parseOptions: {},
3004
+ customMarkdownIt: {},
3005
+ viewportPriority: { type: Boolean },
3006
+ codeBlockStream: { type: Boolean, default: !0 },
3007
+ codeBlockDarkTheme: {},
3008
+ codeBlockLightTheme: {},
3009
+ codeBlockMonacoOptions: {},
3010
+ renderCodeBlocksAsPre: { type: Boolean },
3011
+ codeBlockMinWidth: {},
3012
+ codeBlockMaxWidth: {},
3013
+ codeBlockProps: {},
3014
+ themes: {},
3015
+ isDark: { type: Boolean },
3016
+ customId: {},
3017
+ indexKey: {},
3018
+ typewriter: { type: Boolean, default: !0 },
3019
+ batchRendering: { type: Boolean, default: !0 },
3020
+ initialRenderBatchSize: { default: 40 },
3021
+ renderBatchSize: { default: 80 },
3022
+ renderBatchDelay: { default: 16 },
3023
+ renderBatchBudgetMs: { default: 6 },
3024
+ renderBatchIdleTimeoutMs: { default: 120 },
3025
+ deferNodesUntilVisible: { type: Boolean, default: !0 },
3026
+ maxLiveNodes: { default: 320 },
3027
+ liveNodeBuffer: { default: 60 }
3028
+ },
3029
+ emits: ["copy", "handleArtifactClick", "click", "mouseover", "mouseout"],
3030
+ setup(t, { emit: n }) {
3031
+ var wn, Tt, kn;
3032
+ const e = t, a = n, r = M(), u = M(e.viewportPriority !== !1), s = gr(() => r.value, u), d = Do(), f = E(() => e.customMarkdownIt ? e.customMarkdownIt(d) : d), l = E(() => {
3033
+ var v;
3034
+ if ((v = e.nodes) != null && v.length)
3035
+ return to(e.nodes.slice());
3036
+ if (e.content) {
3037
+ const w = zo(e.content, f.value, e.parseOptions);
3038
+ return to(w);
3039
+ }
3040
+ return [];
3041
+ }), k = typeof window != "undefined", p = k && typeof window.requestAnimationFrame == "function" ? window.requestAnimationFrame.bind(window) : null, _ = k && typeof window.cancelAnimationFrame == "function" ? window.cancelAnimationFrame.bind(window) : null, T = typeof globalThis != "undefined" && typeof globalThis.process != "undefined" && ((Tt = (wn = globalThis.process) == null ? void 0 : wn.env) == null ? void 0 : Tt.NODE_ENV) === "test", P = k && typeof window.requestIdleCallback == "function", K = E(() => {
3042
+ var w;
3043
+ const v = Math.trunc((w = e.renderBatchSize) != null ? w : 80);
3044
+ return Number.isFinite(v) ? Math.max(0, v) : 0;
3045
+ }), X = E(() => {
3046
+ var w;
3047
+ const v = Math.trunc((w = e.initialRenderBatchSize) != null ? w : K.value);
3048
+ return Number.isFinite(v) ? Math.max(0, v) : K.value;
3049
+ }), R = E(() => e.batchRendering !== !1 && K.value > 0 && k && !T), L = M(0), ke = M({
3050
+ key: e.indexKey,
3051
+ total: 0
3052
+ }), W = M({
3053
+ batchSize: K.value,
3054
+ initial: X.value,
3055
+ delay: (kn = e.renderBatchDelay) != null ? kn : 16,
3056
+ enabled: R.value
3057
+ }), Z = vo([]), S = M(Math.max(1, K.value || 1)), le = Mn({}), te = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map(), be = E(() => e.deferNodesUntilVisible !== !1 && u.value !== !1), G = E(() => {
3058
+ var v;
3059
+ return ((v = e.maxLiveNodes) != null ? v : 0) > 0;
3060
+ }), ct = E(() => !!s && (be.value || G.value)), nt = E(() => {
3061
+ var v;
3062
+ return Math.max(1, (v = e.maxLiveNodes) != null ? v : 320);
3063
+ }), ot = E(() => {
3064
+ var v;
3065
+ return Math.max(0, (v = e.liveNodeBuffer) != null ? v : 60);
3066
+ }), Ke = M(0), ie = Mn({ start: 0, end: 0 }), oe = /* @__PURE__ */ new Map(), D = E(() => {
3067
+ if (!G.value)
3068
+ return l.value.length;
3069
+ const v = ot.value, w = Math.max(ie.end + v, X.value), C = Math.min(l.value.length, w);
3070
+ return Math.max(L.value, C);
3071
+ });
3072
+ function ye(v, w, C) {
3073
+ return Math.min(Math.max(v, w), C);
3074
+ }
3075
+ function je() {
3076
+ const v = l.value.length;
3077
+ if (!G.value || v === 0) {
3078
+ ie.start = 0, ie.end = v;
3079
+ return;
3080
+ }
3081
+ const w = Math.min(nt.value, v), C = ot.value, F = ye(Ke.value - C, 0, Math.max(0, v - w));
3082
+ ie.start = F, ie.end = Math.min(v, F + w);
3083
+ }
3084
+ const rt = Mn({}), Me = Mn({ total: 0, count: 0 });
3085
+ function ft(v, w) {
3086
+ if (!Number.isFinite(w) || w <= 0)
3087
+ return;
3088
+ const C = rt[v];
3089
+ rt[v] = w, C ? Me.total += w - C : (Me.total += w, Me.count++);
3090
+ }
3091
+ const he = E(() => Me.count > 0 ? Math.max(12, Me.total / Me.count) : 32);
3092
+ function Ce(v, w) {
3093
+ var F;
3094
+ if (v >= w)
3095
+ return 0;
3096
+ let C = 0;
3097
+ for (let H = v; H < w; H++)
3098
+ C += (F = rt[H]) != null ? F : he.value;
3099
+ return C;
3100
+ }
3101
+ const We = E(() => {
3102
+ if (!G.value)
3103
+ return l.value.map((F, H) => ({ node: F, index: H }));
3104
+ const v = l.value.length, w = ye(ie.start, 0, v), C = ye(ie.end, w, v);
3105
+ return l.value.slice(w, C).map((F, H) => ({
3106
+ node: F,
3107
+ index: w + H
3108
+ }));
3109
+ }), x = E(() => G.value ? Ce(0, Math.min(ie.start, l.value.length)) : 0), y = E(() => {
3110
+ if (!G.value)
3111
+ return 0;
3112
+ const v = l.value.length, w = Math.min(ie.end, v);
3113
+ return Ce(w, v);
3114
+ });
3115
+ function $() {
3116
+ const v = l.value.length, w = Math.min(v, L.value);
3117
+ if (w <= 0) {
3118
+ Z.value = [], re(0);
3119
+ return;
3120
+ }
3121
+ if (w >= v) {
3122
+ Z.value = l.value, re(w);
3123
+ return;
3124
+ }
3125
+ Z.value = l.value.slice(0, w), re(w);
3126
+ }
3127
+ function re(v) {
3128
+ if (te.size)
3129
+ for (const [w, C] of te)
3130
+ w >= v && (C.destroy(), te.delete(w), be.value && delete le[w], Y.delete(w));
3131
+ }
3132
+ function ce(v, w) {
3133
+ be.value && (le[v] = w), w && (Ke.value = ye(v, 0, Math.max(0, l.value.length - 1)));
3134
+ }
3135
+ function vt(v) {
3136
+ return !be.value || v < X.value ? !0 : le[v] === !0;
3137
+ }
3138
+ function xe(v) {
3139
+ const w = te.get(v);
3140
+ w && (w.destroy(), te.delete(v));
3141
+ }
3142
+ function pt(v, w) {
3143
+ if (w ? Y.set(v, w) : Y.delete(v), !ct.value || !s) {
3144
+ xe(v), w ? ce(v, !0) : be.value && delete le[v];
3145
+ return;
3146
+ }
3147
+ if (v < X.value && !G.value) {
3148
+ xe(v), ce(v, !0);
3149
+ return;
3150
+ }
3151
+ if (!w) {
3152
+ xe(v), be.value && delete le[v];
3153
+ return;
3154
+ }
3155
+ xe(v);
3156
+ const C = s(w, { rootMargin: "400px" });
3157
+ C && (te.set(v, C), ce(v, C.isVisible.value), C.whenVisible.then(() => {
3158
+ ce(v, !0);
3159
+ }).catch(() => {
3160
+ }));
3161
+ }
3162
+ function At(v, w) {
3163
+ if (!w) {
3164
+ oe.delete(v);
3165
+ return;
3166
+ }
3167
+ oe.set(v, w), queueMicrotask(() => {
3168
+ ft(v, w.offsetHeight);
3169
+ });
3170
+ }
3171
+ let Ue = null, at = null, gt = !1, J = null, Q = null;
3172
+ function Pt() {
3173
+ k && (Ue != null && (_ == null || _(Ue), Ue = null), at != null && (window.clearTimeout(at), at = null), Q != null && typeof window.cancelIdleCallback == "function" && (window.cancelIdleCallback(Q), Q = null), gt = !1, J = null);
3174
+ }
3175
+ function Vt(v, w = {}) {
3176
+ var He, it;
3177
+ if (!R.value)
3178
+ return;
3179
+ const C = D.value;
3180
+ if (L.value >= C)
3181
+ return;
3182
+ const F = Math.max(1, v), H = (Oe) => {
3183
+ var Ft;
3184
+ Ue = null, at = null, Q = null, gt = !1;
3185
+ const kt = J != null ? J : F;
3186
+ J = null;
3187
+ const St = Math.max(2, (Ft = e.renderBatchBudgetMs) != null ? Ft : 6), En = (yt) => {
3188
+ const Ln = typeof performance != "undefined" ? performance.now() : Date.now();
3189
+ L.value = Math.min(C, L.value + Math.max(1, yt)), $();
3190
+ const Xt = (typeof performance != "undefined" ? performance.now() : Date.now()) - Ln;
3191
+ return vn(Xt), Xt;
3192
+ };
3193
+ let Ot = kt;
3194
+ for (; En(Ot), !(L.value >= C || !Oe || (typeof Oe.timeRemaining == "function" ? Oe.timeRemaining() : 0) <= St * 0.5); )
3195
+ Ot = Math.max(1, Math.round(S.value));
3196
+ L.value < C && Kt();
3197
+ };
3198
+ if (!k || w.immediate) {
3199
+ H();
3200
+ return;
3201
+ }
3202
+ const we = Math.max(0, (He = e.renderBatchDelay) != null ? He : 16);
3203
+ if (J = J != null ? Math.max(J, F) : F, !gt) {
3204
+ if (gt = !0, !T && P && window.requestIdleCallback) {
3205
+ const Oe = Math.max(0, (it = e.renderBatchIdleTimeoutMs) != null ? it : 120);
3206
+ Q = window.requestIdleCallback((kt) => {
3207
+ H(kt);
3208
+ }, { timeout: Oe });
3209
+ return;
3210
+ }
3211
+ if (!p || T) {
3212
+ at = window.setTimeout(() => H(), we);
3213
+ return;
3214
+ }
3215
+ Ue = p(() => {
3216
+ if (we === 0) {
3217
+ H();
3218
+ return;
3219
+ }
3220
+ at = window.setTimeout(() => H(), we);
3221
+ });
3222
+ }
3223
+ }
3224
+ function Kt() {
3225
+ const v = R.value ? Math.max(1, Math.round(S.value)) : Math.max(1, K.value);
3226
+ Vt(v);
3227
+ }
3228
+ function vn(v) {
3229
+ var H;
3230
+ if (!R.value)
3231
+ return;
3232
+ const w = Math.max(2, (H = e.renderBatchBudgetMs) != null ? H : 6), C = Math.max(1, K.value || 1), F = Math.max(1, Math.floor(C / 4));
3233
+ v > w * 1.2 ? S.value = Math.max(F, Math.floor(S.value * 0.7)) : v < w * 0.5 && S.value < C && (S.value = Math.min(C, Math.ceil(S.value * 1.2)));
3234
+ }
3235
+ U(
3236
+ [
3237
+ () => l.value,
3238
+ () => l.value.length,
3239
+ () => R.value,
3240
+ () => K.value,
3241
+ () => X.value,
3242
+ () => e.renderBatchDelay,
3243
+ () => e.indexKey
3244
+ ],
3245
+ () => {
3246
+ var St;
3247
+ const w = l.value.length, C = ke.value, F = e.indexKey, H = F !== void 0 ? F !== C.key : w !== C.total;
3248
+ ke.value = { key: F, total: w };
3249
+ const we = W.value, He = (St = e.renderBatchDelay) != null ? St : 16, it = we.batchSize !== K.value || we.initial !== X.value || we.delay !== He || we.enabled !== R.value;
3250
+ W.value = {
3251
+ batchSize: K.value,
3252
+ initial: X.value,
3253
+ delay: He,
3254
+ enabled: R.value
3255
+ }, (H || it || !R.value) && Pt(), (H || it) && (S.value = Math.max(1, K.value || 1));
3256
+ const Oe = D.value;
3257
+ if (!w) {
3258
+ L.value = 0, $();
3259
+ return;
3260
+ }
3261
+ if (!R.value) {
3262
+ L.value = Oe, $();
3263
+ return;
3264
+ }
3265
+ H || it ? L.value = Math.min(Oe, X.value) : L.value = Math.min(L.value, Oe);
3266
+ const kt = Math.max(1, X.value || K.value || w);
3267
+ L.value < Oe ? Vt(kt, { immediate: !k }) : $();
3268
+ },
3269
+ { immediate: !0 }
3270
+ ), U(
3271
+ () => be.value,
3272
+ (v) => {
3273
+ if (!v) {
3274
+ for (const w of te.values())
3275
+ w.destroy();
3276
+ te.clear();
3277
+ for (const w of Object.keys(le))
3278
+ delete le[w];
3279
+ for (const [w, C] of Y)
3280
+ C && ce(w, !0);
3281
+ return;
3282
+ }
3283
+ for (const [w, C] of Y)
3284
+ pt(w, C);
3285
+ },
3286
+ { immediate: !1 }
3287
+ ), U(
3288
+ () => L.value,
3289
+ (v, w) => {
3290
+ G.value && (typeof w == "number" && v <= w || v > 0 && (Ke.value = v - 1));
3291
+ }
3292
+ ), U(
3293
+ [Ke, nt, ot, () => l.value.length, G],
3294
+ () => {
3295
+ je();
3296
+ },
3297
+ { immediate: !0 }
3298
+ ), U(
3299
+ () => D.value,
3300
+ (v, w) => {
3301
+ R.value && (typeof w == "number" && v <= w || v > L.value && Kt());
3302
+ }
3303
+ ), hn(() => {
3304
+ Pt();
3305
+ for (const v of te.values())
3306
+ v.destroy();
3307
+ te.clear();
3308
+ });
3309
+ const pn = zt(() => N(null, null, function* () {
3310
+ try {
3311
+ return (yield import("./index-CDRkq20z.js")).default;
3312
+ } catch (v) {
3313
+ return console.warn(
3314
+ '[markstream-vue] Optional peer dependencies for CodeBlockNode are missing. Falling back to inline-code rendering (no Monaco). To enable full code block features, please install "stream-monaco".',
3315
+ v
3316
+ ), Ht;
3317
+ }
3318
+ })), $t = E(() => e.renderCodeBlocksAsPre ? Ht : pn), Sn = {
3319
+ text: ge,
3320
+ paragraph: nn,
3321
+ heading: qn,
3322
+ code_block: pn,
3323
+ list: tn,
3324
+ blockquote: Zt,
3325
+ table: on,
3326
+ definition_list: Gt,
3327
+ footnote: Qt,
3328
+ footnote_reference: $e,
3329
+ footnote_anchor: Nt,
3330
+ admonition: an,
3331
+ hardbreak: Ct,
3332
+ link: Le,
3333
+ image: dt,
3334
+ thematic_break: rn,
3335
+ math_inline: tt,
3336
+ math_block: Ir,
3337
+ strong: Se,
3338
+ emphasis: Ve,
3339
+ strikethrough: Ee,
3340
+ highlight: Pe,
3341
+ insert: Ae,
3342
+ subscript: ze,
3343
+ superscript: De,
3344
+ emoji: Be,
3345
+ checkbox: Qe,
3346
+ checkbox_input: Qe,
3347
+ inline_code: Ie,
3348
+ reference: Te,
3349
+ html_block: ni
3350
+ // 可以添加更多节点类型
3351
+ // 例如:custom_node: CustomNode,
3352
+ };
3353
+ function wt(v) {
3354
+ var F;
3355
+ if (!v)
3356
+ return io;
3357
+ const w = et(e.customId), C = w[String(v.type)];
3358
+ if (v.type === "code_block") {
3359
+ if (String((F = v.language) != null ? F : "").trim().toLowerCase() === "mermaid")
3360
+ return w.mermaid || jt;
3361
+ if (C)
3362
+ return C;
3363
+ const we = w.code_block;
3364
+ return we || $t.value;
3365
+ }
3366
+ return C || Sn[String(v.type)] || io;
3367
+ }
3368
+ function It(v) {
3369
+ var w;
3370
+ return (v == null ? void 0 : v.type) === "code_block" && String((w = v.language) != null ? w : "").trim().toLowerCase() === "mermaid" ? {} : v.type === "code_block" ? qe({
3371
+ // streaming behavior control for CodeBlockNode
3372
+ stream: e.codeBlockStream,
3373
+ darkTheme: e.codeBlockDarkTheme,
3374
+ lightTheme: e.codeBlockLightTheme,
3375
+ monacoOptions: e.codeBlockMonacoOptions,
3376
+ themes: e.themes,
3377
+ minWidth: e.codeBlockMinWidth,
3378
+ maxWidth: e.codeBlockMaxWidth
3379
+ }, e.codeBlockProps || {}) : {
3380
+ // Forward `typewriter` flag to non-code node components so they can
3381
+ // opt in/out of enter transitions or other typewriter-like behaviour.
3382
+ typewriter: e.typewriter
3383
+ };
3384
+ }
3385
+ function Ze(v) {
3386
+ a("click", v);
3387
+ }
3388
+ function Wt(v) {
3389
+ var C;
3390
+ (C = v.target) != null && C.closest("[data-node-index]") && a("mouseover", v);
3391
+ }
3392
+ function gn(v) {
3393
+ var C;
3394
+ (C = v.target) != null && C.closest("[data-node-index]") && a("mouseout", v);
3395
+ }
3396
+ return (v, w) => (m(), g("div", {
3397
+ ref_key: "containerRef",
3398
+ ref: r,
3399
+ class: "markdown-renderer",
3400
+ onClick: Ze,
3401
+ onMouseover: Wt,
3402
+ onMouseout: gn
3403
+ }, [
3404
+ G.value ? (m(), g("div", {
3405
+ key: 0,
3406
+ class: "node-spacer",
3407
+ style: Re({ height: `${x.value}px` }),
3408
+ "aria-hidden": "true"
3409
+ }, null, 4)) : se("", !0),
3410
+ (m(!0), g(ae, null, pe(We.value, (C) => {
3411
+ var F;
3412
+ return m(), g("div", {
3413
+ key: C.index,
3414
+ ref_for: !0,
3415
+ ref: (H) => pt(C.index, H),
3416
+ class: "node-slot",
3417
+ "data-node-index": C.index,
3418
+ "data-node-type": C.node.type
3419
+ }, [
3420
+ vt(C.index) ? (m(), g("div", {
3421
+ key: 0,
3422
+ ref_for: !0,
3423
+ ref: (H) => At(C.index, H),
3424
+ class: "node-content"
3425
+ }, [
3426
+ C.node.type !== "code_block" && e.typewriter !== !1 ? (m(), de(fn, {
3427
+ key: 0,
3428
+ name: "typewriter",
3429
+ appear: ""
3430
+ }, {
3431
+ default: Bt(() => [
3432
+ (m(), de(Ne(wt(C.node)), Rt({
3433
+ node: C.node,
3434
+ loading: C.node.loading,
3435
+ "index-key": `${t.indexKey || "markdown-renderer"}-${C.index}`
3436
+ }, { ref_for: !0 }, It(C.node), {
3437
+ "custom-id": e.customId,
3438
+ "is-dark": e.isDark,
3439
+ onCopy: w[0] || (w[0] = (H) => a("copy", H)),
3440
+ onHandleArtifactClick: w[1] || (w[1] = (H) => a("handleArtifactClick", H))
3441
+ }), null, 16, ["node", "loading", "index-key", "custom-id", "is-dark"]))
3442
+ ]),
3443
+ _: 2
3444
+ }, 1024)) : (m(), de(Ne(wt(C.node)), Rt({
3445
+ key: 1,
3446
+ node: C.node,
3447
+ loading: C.node.loading,
3448
+ "index-key": `${t.indexKey || "markdown-renderer"}-${C.index}`
3449
+ }, { ref_for: !0 }, It(C.node), {
3450
+ "custom-id": e.customId,
3451
+ "is-dark": e.isDark,
3452
+ onCopy: w[2] || (w[2] = (H) => a("copy", H)),
3453
+ onHandleArtifactClick: w[3] || (w[3] = (H) => a("handleArtifactClick", H))
3454
+ }), null, 16, ["node", "loading", "index-key", "custom-id", "is-dark"]))
3455
+ ], 512)) : (m(), g("div", {
3456
+ key: 1,
3457
+ class: "node-placeholder",
3458
+ style: Re({ height: `${(F = rt[C.index]) != null ? F : he.value}px` })
3459
+ }, null, 4))
3460
+ ], 8, ri);
3461
+ }), 128)),
3462
+ G.value ? (m(), g("div", {
3463
+ key: 1,
3464
+ class: "node-spacer",
3465
+ style: Re({ height: `${y.value}px` }),
3466
+ "aria-hidden": "true"
3467
+ }, null, 4)) : se("", !0)
3468
+ ], 544));
3469
+ }
3470
+ }), Xe = /* @__PURE__ */ O(ai, [["__scopeId", "data-v-c1cf4dae"]]);
3471
+ Xe.install = (t) => {
3472
+ var e, a;
3473
+ const n = (a = (e = Xe.__name) != null ? e : Xe.name) != null ? a : "NodeRenderer";
3474
+ t.component(n, Xe);
3475
+ };
3476
+ const ii = {
3477
+ key: 0,
3478
+ class: "admonition-icon"
3479
+ }, si = { class: "admonition-title" }, li = ["aria-expanded", "aria-controls", "title"], ci = { key: 0 }, ui = { key: 1 }, di = ["id"], mi = /* @__PURE__ */ V({
3480
+ __name: "AdmonitionNode",
3481
+ props: {
3482
+ node: {},
3483
+ indexKey: {},
3484
+ isDark: { type: Boolean },
3485
+ typewriter: { type: Boolean },
3486
+ customId: {}
3487
+ },
3488
+ emits: ["copy"],
3489
+ setup(t, { emit: n }) {
3490
+ var l;
3491
+ const e = t, a = n, r = {
3492
+ note: "ℹ️",
3493
+ info: "ℹ️",
3494
+ tip: "💡",
3495
+ warning: "⚠️",
3496
+ danger: "❗",
3497
+ // 'error' is a common alias for 'danger' in some markdown flavors
3498
+ error: "⛔",
3499
+ caution: "⚠️"
3500
+ }, u = E(() => {
3501
+ if (e.node.title && e.node.title.trim().length)
3502
+ return e.node.title;
3503
+ const k = e.node.kind || "note";
3504
+ return k.charAt(0).toUpperCase() + k.slice(1);
3505
+ }), s = M(e.node.collapsible ? !((l = e.node.open) == null || l) : !1);
3506
+ function d() {
3507
+ e.node.collapsible && (s.value = !s.value);
3508
+ }
3509
+ const f = `admonition-${Math.random().toString(36).slice(2, 9)}`;
3510
+ return (k, p) => (m(), g("div", {
3511
+ class: A(["admonition", [`admonition-${e.node.kind}`, e.isDark ? "is-dark" : ""]])
3512
+ }, [
3513
+ h("div", {
3514
+ id: f,
3515
+ class: "admonition-header"
3516
+ }, [
3517
+ r[e.node.kind] ? (m(), g("span", ii, ee(r[e.node.kind]), 1)) : se("", !0),
3518
+ h("span", si, ee(u.value), 1),
3519
+ e.node.collapsible ? (m(), g("button", {
3520
+ key: 1,
3521
+ class: "admonition-toggle",
3522
+ "aria-expanded": !s.value,
3523
+ "aria-controls": `${f}-content`,
3524
+ title: s.value ? "Expand" : "Collapse",
3525
+ onClick: d
3526
+ }, [
3527
+ s.value ? (m(), g("span", ci, "▶")) : (m(), g("span", ui, "▼"))
3528
+ ], 8, li)) : se("", !0)
3529
+ ]),
3530
+ sn(h("div", {
3531
+ id: `${f}-content`,
3532
+ class: "admonition-content",
3533
+ "aria-labelledby": f
3534
+ }, [
3535
+ Dt([e.node.children], () => Ye(B(Xe), {
3536
+ "index-key": `admonition-${t.indexKey}`,
3537
+ nodes: e.node.children,
3538
+ "custom-id": e.customId,
3539
+ typewriter: e.typewriter,
3540
+ onCopy: p[0] || (p[0] = (_) => a("copy", _))
3541
+ }, null, 8, ["index-key", "nodes", "custom-id", "typewriter"]), p, 1)
3542
+ ], 8, di), [
3543
+ [ln, !s.value]
3544
+ ])
3545
+ ], 2));
3546
+ }
3547
+ }), an = /* @__PURE__ */ O(mi, [["__scopeId", "data-v-5e95c2b7"]]);
3548
+ an.install = (t) => {
3549
+ t.component(an.__name, an);
3550
+ };
3551
+ let so = !1;
3552
+ function hi(t) {
3553
+ return N(this, null, function* () {
3554
+ if (!so)
3555
+ return so = !0, t.preloadMonacoWorkers();
3556
+ });
3557
+ }
3558
+ let qt = null, lo = !1;
3559
+ function ul() {
3560
+ return N(this, null, function* () {
3561
+ if (qt)
3562
+ return qt;
3563
+ if (lo)
3564
+ return null;
3565
+ try {
3566
+ return qt = yield import("stream-monaco"), yield hi(qt), qt;
3567
+ } catch (t) {
3568
+ return lo = !0, null;
3569
+ }
3570
+ });
3571
+ }
3572
+ const fi = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><path fill="#0f23c3" d="M24.554 20.075c.209.27 1.356.961 1.37 1.246a7 7 0 0 0-1.4-.324a17 17 0 0 1-1.412-.48a9.2 9.2 0 0 1-2.375-1.3A3.15 3.15 0 0 1 19.3 16.75a1.72 1.72 0 0 1 1.767-1.822a3.6 3.6 0 0 1 1.593.321c.146.066 1.31.606 1.256.809a5.5 5.5 0 0 0-1.41-.112c-.649.244-.4.828-.168 1.311a8 8 0 0 0 1.078 1.554c.164.194.884 1.271 1.138 1.264"/><path fill="#1a1978" d="M24.141 16.276c.128-.59.819-1.384 1.344-.773a4.2 4.2 0 0 1 .578 1.918c.12.656.2 1.327.261 1.982c.038.379.34 1.794.123 2.075a23 23 0 0 1-2.922-2.838a3.76 3.76 0 0 1-.925-1.7c-.1-1.073.879-.73 1.541-.664"/><path fill="#0f23c3" d="M26.3 17.781c.141-.732-.406-2.592-1.067-2.949a.06.06 0 0 0 .044-.007c-.156-.444-1.359 1.116-1.228 1.174c-.316-.138.774-1.984.988-2.16c.7-.578 1.372-.086 1.845.543a6.04 6.04 0 0 1 .733 4.434a4.5 4.5 0 0 1-.421 1.312c-.1.22-.45 1.1-.682 1.174a14.8 14.8 0 0 0-.212-3.521"/><path fill="#d2d2d2" d="M3.687 8.4c.179-.188-.041-1.527.324-1.548c.262-.015.553 1.741.627 1.968a9.2 9.2 0 0 0 1.127 2.329a7.53 7.53 0 0 0 4.016 2.978a4.55 4.55 0 0 0 2.366.2c.931-.208 1.82-.577 2.757-.765c1.35-.27 3.342-.352 4.438.647c.7.641.376.76.043 1.421a2.44 2.44 0 0 0 .178 2.562c.235.342 1.033.827.675 1.094c-.567.424-1.277-.452-1.636-.776c-1.4-1.264-2.711-1.313-4.492-1.074a9 9 0 0 1-4.883-.708A9.47 9.47 0 0 1 3.687 8.4M19.941 30a3.6 3.6 0 0 1-2.325-.817c.469-.092 1.021.025 1.508-.044a9.7 9.7 0 0 0 1.754-.43a10.5 10.5 0 0 0 3.022-1.554a6.55 6.55 0 0 0 2.757-5.214c.149-.088.316 1.034.319 1.091a5.8 5.8 0 0 1-.19 1.727a6.9 6.9 0 0 1-1.423 2.774A7.3 7.3 0 0 1 19.941 30"/><path fill="#d2d2d2" d="M18.962 19.109a5.8 5.8 0 0 1-2.05.859a13.4 13.4 0 0 1-2.224.549a8.86 8.86 0 0 1-4.435-.51a9.94 9.94 0 0 1-3.849-2.4c-.352-.367-2.104-2.417-1.548-3.05c.248-.282.875.846 1 .992a5 5 0 0 0 1.357 1.11a10.9 10.9 0 0 0 4.035 1.456a6.7 6.7 0 0 0 2.34-.094a13 13 0 0 1 1.694-.485a4 4 0 0 1 2.113.457c.344.17 1.523.743 1.567 1.116m9.351-4.031a19.3 19.3 0 0 1-.453 3.774c-.176-.242.016-1.47 0-1.792a6 6 0 0 0-.384-2.087a4.9 4.9 0 0 0-1.376-1.661a15 15 0 0 1-1.27-1.536c-1.837-2.382-3.245-5.211-2.9-8.3c.034-.308.069-1.448.411-1.445c.152 0 .266 1.561.29 1.718a12.5 12.5 0 0 0 1.224 4.116c.67 1.222 1.947 2.023 2.825 3.1a6.58 6.58 0 0 1 1.633 4.113M15.7 26.935a10.85 10.85 0 0 0 6.436-.687a6.94 6.94 0 0 0 4.278-4.418c.319.2-.048 1.529-.128 1.781a5.7 5.7 0 0 1-1.01 1.813a8.9 8.9 0 0 1-3.257 2.514c-1.703.772-5.662 1.652-6.319-1.003"/><path fill="#d2d2d2" d="M19.151 19.376c.367 2.107-2.957 3.124-4.478 3.213c-1.859.11-4.929-.292-6.06-2.031c-.673-1.035.781-.09 1.188.058a8.7 8.7 0 0 0 3.06.5a11.6 11.6 0 0 0 3.305-.5a14 14 0 0 0 1.533-.576c.301-.132 1.124-.691 1.452-.664m4.991 4.084c.4-.945-1.883-1.578-2.445-1.858a4.9 4.9 0 0 1-1.315-.867c-.181-.181-.872-.92-.807-1.219a5 5 0 0 1 1.087-.175a6 6 0 0 1 .855.588a10 10 0 0 0 .964.5a16 16 0 0 0 2.119.771c.308.09 1.549.208 1.727.428c-.04.296-1.97 2.021-2.185 1.832"/><path fill="#d2d2d2" d="M26.1 22.172c.265.43-1.08 1.831-1.363 2.105a9.3 9.3 0 0 1-2.566 1.728a7.8 7.8 0 0 1-2.56.753c-.679.058-1.966-.124-2.141-.979a7 7 0 0 1 1.177-.086c.462-.059.921-.149 1.376-.246a13 13 0 0 0 2.184-.645a11.5 11.5 0 0 0 2.084-1.11a11 11 0 0 0 1.078-.822c.105-.089.617-.702.731-.698m-7.342-10.207c-.1-1.308 2.612-1.3 3.271-1.092a5.98 5.98 0 0 1 2.982 2.475c-1.082.8-2.449.094-3.3-.654a4.3 4.3 0 0 0-1.481-1.029c-.809-.265-.818.094-1.472.3"/><path fill="#d2d2d2" d="M25.783 13.341c-.444-.029-.316.071-.647-.212c-.358-.307-.614-.795-.945-1.141c-.534-.558-1.242-.895-1.723-1.485a7.27 7.27 0 0 1-1.624-4.848c.018-1.489.407.187.551.675a12.3 12.3 0 0 0 1.126 2.708a46 46 0 0 0 3.4 4.321c-.039.002-.097-.021-.138-.018m-5.715 1.415c.033-.625-.911-.792-1.211-1.42c-.164-.343-.211-.569.029-.7c.082-.045.383.012.5-.02c.271-.076.335-.273.581-.4a1.193 1.193 0 0 1 1.633 1.021a1.82 1.82 0 0 1-1.532 1.519"/><path fill="#d2d2d2" d="M20.5 14.745a1.93 1.93 0 0 0 1.323-1.7c.524.139.928.658 1.521.771a2.6 2.6 0 0 0 1.029-.017c.207-.045.54-.274.721-.259c-.033.163-.464.546-.565.717a4.2 4.2 0 0 0-.388.9c-.229.741-.061.739-.709.311a4.3 4.3 0 0 0-1.957-.72c-.266-.026-.881.019-.975-.003m-.595 5.989a2.01 2.01 0 0 1-1.4 1.712c-.205.091-2.018.733-2.032.348c-.007-.2 1.624-.954 1.809-1.11a3.4 3.4 0 0 0 .867-1.071c.055-.112.232-.925.271-.943c.224-.106.488.93.485 1.064m-8.532-8.202a10.6 10.6 0 0 1 3.71-.914a10.3 10.3 0 0 1 1.865.024c.366.039 1.469.054 1.74.343a.255.255 0 0 1-.273.173c-.037.077.251.371.3.425c-.034.034-1.445-.4-1.572-.424a10.6 10.6 0 0 0-2.282-.134a16 16 0 0 0-1.841.194a6.2 6.2 0 0 1-1.647.313m11.139-1.801a1.89 1.89 0 0 1-1.517-.6c-.247-.349-.737-1.692-.385-2.021c.209-.2.384.662.484.846a11 11 0 0 0 1.418 1.775m5.276 8.469a19 19 0 0 1-.749 3.313c-.173-.077-.275-.778-.562-.95a4.1 4.1 0 0 0 .76-1.154c.152-.302.303-1.046.551-1.209m-7.807-7.357c-.132.268-.932 1.1-1.118.481c-.107-.356.876-.841 1.118-.481m-.747.45c.228.006.012-.248.012-.266c-.001-.043-.368.266-.012.266"/></svg>', vi = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3573
+ <path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="M14.4561802 11.3673353C13.0276218 14.1261537 11.8858593 15.5 10.8437759 15.5 10.3588459 15.5 9.88231005 15.3491298 9.41749082 15.0543006 8.74000639 14.6241577 7.8668418 14.6059458 7.17068967 15.0074382 6.60881451 15.3319356 6.07177167 15.5 5.56305868 15.5 4.02887542 15.5 1.5 10.9491129 1.5 8.45090396 1.5 5.78581061 2.95006811 3.551507 5.15647301 3.551507 6.19383481 3.551507 7.09007204 4.20001691 7.84308619 4.497206 8.16210316 4.62512517 8.52255587 4.61592787 8.83410596 4.47192 9.44477141 4.18872223 10.2497236 3.551507 11.2503615 3.551507 12.4715175 3.551507 13.5338865 4.33779342 14.4184071 5.47479877 14.5532906 5.64778615 14.5172013 5.89341518 14.3377895 6.02349446 13.3500923 6.736546 12.8746057 7.53893969 12.8746057 8.45090396 12.8746057 9.36404821 13.3502672 10.1652619 14.3377895 10.8793249 14.4946576 10.992887 14.5445377 11.1984946 14.4561802 11.3673353ZM8.5 3C8.5 3 8.3468635 1.3936039 10 1" />
3574
+ </svg>
3575
+ `, pi = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3576
+ <rect width="8" height="13.001" x="4" y="1.499" fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" rx="2.286" ry="2.286" />
3577
+ <path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="M 4,4.500025 H 1.5 M 4,7.9999993 H 1.5 M 4,11.499973 H 1.5 m 13,-6.999948 H 12 m 2.5,3.4999743 H 12 m 2.5,3.4999737 H 12" />
3578
+ </svg>
3579
+ `, gi = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3580
+ <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="m 4.0559072,12.951629 c 2.7459832,2.734744 7.1981158,2.734744 9.9441188,0 l -1.789955,-1.782586 c -1.75742,1.750224 -4.6067879,1.750224 -6.3642294,0 -1.7574416,-1.7502236 -1.7574416,-4.587893 0,-6.338097 1.7574415,-1.750224 4.6068094,-1.750224 6.3642294,0 l 0.894977,-0.8912929 0.894978,-0.891293 c -2.746003,-2.73472867 -7.1981359,-2.73472867 -9.944119,0 -2.7459858,2.7347089 -2.7459858,7.1685599 2e-7,9.9032689 z" clip-rule="evenodd" />
3581
+ </svg>
3582
+ `, wi = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3583
+ <g fill="none" stroke-linecap="round" stroke-linejoin="round">
3584
+ <path stroke="#a6d189" d="M14.17 10.03A6.5 6.5 0 011.81 6.02" />
3585
+ <path stroke="#8caaee" d="M1.87 5.85A6.5 6.5 0 0114.22 9.9" />
3586
+ <path stroke="#a6d189" d="M6.36 4.9a3.5 3.5 0 103.41 6.12" />
3587
+ <path stroke="#8caaee" d="M9.77 11.02a3.5 3.5 0 00-3.03-6.29" />
3588
+ <path stroke="#c6d0f5" d="M8 7.5s-1.66 2.48-1.5 3.65" />
3589
+ <path stroke="#c6d0f5" d="M1.81 6.02C2.47 5 3.83 4.49 5 4.46c4.06 0 3 5.56 5.03 6.86 1.21.52 3.5-.21 4.15-1.32" />
3590
+ </g>
3591
+ </svg>
3592
+ `, ki = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3593
+ <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M6.74 2.24c.32-1.32 2.2-1.32 2.52 0a1.3 1.3 0 001.93.8c1.15-.7 2.48.62 1.77 1.77a1.3 1.3 0 00.8 1.93c1.32.32 1.32 2.2 0 2.52a1.3 1.3 0 00-.8 1.93c.7 1.15-.62 2.48-1.77 1.77a1.3 1.3 0 00-1.93.8c-.32 1.32-2.2 1.32-2.52 0a1.3 1.3 0 00-1.93-.8c-1.15.7-2.48-.62-1.77-1.77a1.3 1.3 0 00-.8-1.93c-1.32-.32-1.32-2.2 0-2.52a1.3 1.3 0 00.8-1.93c-.7-1.15.62-2.48 1.77-1.77a1.3 1.3 0 001.93-.8M10 6.5a2.5 2.5 0 100 3" />
3594
+ </svg>
3595
+ `, yi = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3596
+ <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="m 2.5559121,12.951629 c 2.7459832,2.734744 7.1981158,2.734744 9.9441189,0 l -1.789955,-1.782586 c -1.7574201,1.750224 -4.606788,1.750224 -6.3642295,0 -1.7574416,-1.7502236 -1.7574416,-4.587893 0,-6.338097 1.7574415,-1.750224 4.6068094,-1.750224 6.3642295,0 l 0.894977,-0.8912929 0.894978,-0.891293 c -2.7460031,-2.73472867 -7.198136,-2.73472867 -9.9441191,0 -2.74598585,2.7347089 -2.74598585,7.1685599 2e-7,9.9032689 z" clip-rule="evenodd" />
3597
+ <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M7.5 6v4M5.513524 7.9999996H9.51304M13.486476 5.9999996v4M11.5 7.9999992h3.999516" />
3598
+ </svg>
3599
+ `, xi = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3600
+ <path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="m 15.4712,10.050637 -5.433601,5.433968 c -0.015,0.01505 -0.04554,0.01505 -0.09055,0.01505 L 2.536327,13.517264 c -0.015,0 -0.04501,-0.01505 -0.06055,-0.06072 L 0.50026325,6.0396501 a 0.21432208,0.21495127 0 0 1 0.015,-0.090817 L 5.9483283,0.5154023 c 0.015,-0.0150465 0.04501,-0.0150465 0.09055,-0.0150465 l 7.4101857,1.997972 c 0.015,0 0.04501,0.015046 0.06055,0.060724 l 1.977121,7.4158186 c 0.03001,0.03063 0.01608,0.060724 -0.01554,0.07577 M 8.2121063,4.1480782 0.93801425,6.1154197 q -0.0225,0 0,0.04514 L 6.2655263,11.50371 c 0.015,0.01505 0.015,0 0.04501,0 l 1.962119,-7.2803988 c -0.03054,-0.075233 -0.06055,-0.075233 -0.06055,-0.075233" />
3601
+ </svg>
3602
+ `, bi = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3603
+ <path fill="none" stroke="#8caaee" d="m 6.665625,1.0107144 c 0.54375,0.090628 0.9125,0.6062693 0.821875,1.1500367 L 7.18125,3.9983098 h 2.971875 L 10.5125,1.8326156 c 0.09063,-0.5437673 0.60625,-0.9125291 1.15,-0.8219012 0.54375,0.090628 0.9125,0.6062693 0.821875,1.1500367 L 12.18125,3.9983098 H 14 c 0.553125,0 1,0.4468892 1,1.0000319 0,0.5531426 -0.446875,1.0000319 -1,1.0000319 H 11.846875 L 11.18125,9.9985013 H 13 c 0.553125,0 1,0.4468897 1,1.0000317 0,0.553143 -0.446875,1.000032 -1,1.000032 H 10.846875 L 10.4875,14.164259 c -0.09063,0.543768 -0.60625,0.912529 -1.15,0.821902 -0.54375,-0.09063 -0.9125,-0.60627 -0.821875,-1.150037 l 0.30625,-1.834434 h -2.975 L 5.4875,14.167384 c -0.090625,0.543768 -0.60625,0.91253 -1.15,0.821902 C 3.79375,14.898658 3.425,14.383016 3.515625,13.839249 L 3.81875,11.998565 H 2 c -0.553125,0 -1,-0.446889 -1,-1.000032 C 1,10.445391 1.446875,9.9985013 2,9.9985013 H 4.153125 L 4.81875,5.9983736 H 3 c -0.553125,0 -1,-0.4468893 -1,-1.0000319 C 2,4.445199 2.446875,3.9983098 3,3.9983098 H 5.153125 L 5.5125,1.8326156 C 5.603125,1.2888483 6.11875,0.9200865 6.6625,1.0107144 Z M 6.846875,5.9983736 6.18125,9.9985013 H 9.153125 L 9.81875,5.9983736 Z" />
3604
+ </svg>
3605
+ `, Mi = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3606
+ <g fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round">
3607
+ <path d="m4 1.5h8c1.38 0 2.5 1.12 2.5 2.5v8c0 1.38-1.12 2.5-2.5 2.5h-8c-1.38 0-2.5-1.12-2.5-2.5v-8c0-1.38 1.12-2.5 2.5-2.5z" />
3608
+ <path stroke-width=".814" d="m 10.240861,11.529149 c 0,0.58011 0.437448,1.039154 0.96002,1.035371 l 0.451635,-0.0032 c 0.522572,-0.0036 0.949379,-0.451477 0.949379,-1.032848 0,-0.581372 -0.426807,-1.065638 -0.949379,-1.065638 l -0.451635,3.4e-5 c -0.522572,3.9e-5 -0.949379,-0.4855273 -0.949379,-1.0656374 0,-0.5801104 0.426807,-1.0378931 0.949379,-1.0378931 l 0.451635,2.825e-4 c 0.522572,3.267e-4 0.951743,0.4577827 0.951743,1.0378931 M 6.8003972,11.529149 c 0,0.58011 0.4374474,1.039154 0.9600196,1.035371 l 0.46464,-0.0032 c 0.5225722,-0.0035 0.9363738,-0.451477 0.9363738,-1.031587 0,-0.580111 -0.4090724,-1.065638 -0.9316446,-1.065638 l -0.4693692,3.4e-5 c -0.5225722,3.8e-5 -0.949379,-0.4855272 -0.949379,-1.0656373 0,-0.5801104 0.4268068,-1.0378931 0.949379,-1.0378931 h 0.4516348 c 0.5225722,0 0.9635665,0.4577827 0.9635665,1.0378931 M 3.4072246,11.529149 c 0,0.58011 0.4374474,1.051765 0.9600196,1.051765 H 4.818879 c 0.5225722,0 0.949379,-0.456521 0.949379,-1.037893 m 0.01129,-2.1312747 c 0,-0.5801103 -0.4374474,-1.037893 -0.9600196,-1.037893 L 4.3678939,8.3741358 C 3.8453217,8.3744624 3.4078743,8.8420074 3.4078743,9.4233788 v 2.1186642" />
3609
+ </g>
3610
+ </svg>
3611
+ `, Ci = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3612
+ <g fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round">
3613
+ <path d="M7 14.5h4.5v-3h3V7L9.17 1.64c-.28-.29-.8-.47-1.17-.29L3.5 3.5 1.35 8c-.18.37 0 .88.3 1.17z" />
3614
+ <path d="M3.5 11V3.5H11m-7.5 0 8 8" />
3615
+ </g>
3616
+ </svg>
3617
+ `, _i = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><defs><linearGradient id="SVGMV3iTbAN" x1="185.455" x2="181.955" y1="1601.641" y2="1630.224" gradientTransform="translate(-62.523 -666.646)scale(.427)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient><linearGradient id="SVGniw2Mvsa" x1="176.136" x2="172.636" y1="1600.5" y2="1629.083" href="#SVGMV3iTbAN"/></defs><path fill="#b03931" d="m3.978 15.462l-.009-6.953a.59.59 0 0 1 .531-.562h.076l6.074-.009a15.7 15.7 0 0 1 6.067.95a8.9 8.9 0 0 1 2.244 1.359a4.47 4.47 0 0 1 2.946-1.083a4.11 4.11 0 0 1 4.276 3.92A4.11 4.11 0 0 1 21.907 17c-.089 0-.177-.008-.265-.012a7 7 0 0 1-.232.953a85 85 0 0 1 8.59 2.6V2H2v13.4q.992.02 1.978.062m22.8-7.944a1.32 1.32 0 0 1 1.374 1.259a1.379 1.379 0 0 1-2.747 0a1.32 1.32 0 0 1 1.375-1.26Z"/><path fill="#b03931" d="M17.861 15.787a4.11 4.11 0 0 0-1.748-3.458a5.8 5.8 0 0 0-1.508-.822a7.4 7.4 0 0 0-1.629-.438a22 22 0 0 0-2.588-.1H7.769l.006 4.737a89 89 0 0 1 9.91 1.408a5 5 0 0 0 .176-1.327m3.132 3.192a7.9 7.9 0 0 1-2.128 2.582a9.7 9.7 0 0 1-3.256 1.71a11.6 11.6 0 0 1-1.971.472h-.015a32 32 0 0 1-3.326.111l-5.625.022a.616.616 0 0 1-.686-.681l-.01-7.734Q2.992 15.42 2 15.4V30h28v-9.456a85 85 0 0 0-8.59-2.6a7 7 0 0 1-.417 1.035"/><path fill="url(#SVGMV3iTbAN)" d="M20.993 18.979a7.9 7.9 0 0 1-2.128 2.582a9.7 9.7 0 0 1-3.256 1.71a11.6 11.6 0 0 1-1.971.472h-.015a32 32 0 0 1-3.326.111l-5.625.022a.616.616 0 0 1-.686-.681l-.01-7.734Q2.992 15.42 2 15.4V30h28v-9.456a85 85 0 0 0-8.59-2.6a7 7 0 0 1-.417 1.035" opacity=".3"/><path fill="#b03931" d="M10.477 20.835a16 16 0 0 0 2.877-.2a7.6 7.6 0 0 0 1.628-.5a5.6 5.6 0 0 0 1.187-.748a4.46 4.46 0 0 0 1.518-2.271a89 89 0 0 0-9.91-1.408l.006 5.133Z"/><path fill="url(#SVGniw2Mvsa)" d="M10.477 20.835a16 16 0 0 0 2.877-.2a7.6 7.6 0 0 0 1.628-.5a5.6 5.6 0 0 0 1.187-.748a4.46 4.46 0 0 0 1.518-2.271a89 89 0 0 0-9.91-1.408l.006 5.133Z" opacity=".3"/><path fill="#fff" d="M20.383 11.746a7 7 0 0 1 1.36 4.148a6.6 6.6 0 0 1-.1 1.1c.088 0 .176.012.265.012a4.11 4.11 0 0 0 4.276-3.92a4.11 4.11 0 0 0-4.276-3.92a4.47 4.47 0 0 0-2.946 1.083a8 8 0 0 1 1.421 1.497"/><ellipse cx="26.78" cy="8.777" fill="#fff" rx="1.374" ry="1.259"/><path fill="#fff" d="m4.673 23.877l5.625-.022a32 32 0 0 0 3.326-.111h.015a11.5 11.5 0 0 0 1.971-.472a9.7 9.7 0 0 0 3.256-1.71a7.9 7.9 0 0 0 2.128-2.582a7 7 0 0 0 .417-1.034a7 7 0 0 0 .332-2.051a7 7 0 0 0-1.36-4.148a8 8 0 0 0-1.421-1.5a8.9 8.9 0 0 0-2.244-1.359a15.7 15.7 0 0 0-6.067-.95l-6.074.009h-.076a.59.59 0 0 0-.532.562l.009 6.952l.01 7.734a.616.616 0 0 0 .685.682m3.1-12.908h2.619a22 22 0 0 1 2.588.1a7.4 7.4 0 0 1 1.629.438a5.8 5.8 0 0 1 1.508.822a4.12 4.12 0 0 1 1.748 3.458a5 5 0 0 1-.175 1.327a4.46 4.46 0 0 1-1.518 2.271a5.6 5.6 0 0 1-1.187.748a7.7 7.7 0 0 1-1.628.5a16 16 0 0 1-2.877.2H7.786L7.78 15.7Z"/></svg>', Bi = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3618
+ <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M.5 8.5H11l.75-.5a5.35 5.35 0 010-3.5c1 .6 1 1.88 1.74 2 .77-.09 1.23.01 2 .52 0 0-.97 1.77-2.5 1.98-1.93 3.65-4.5 5.5-6.98 5.5C0 14.5.5 8.5.5 8.5m1 0v-2m0 0h8m-6 2v-4m0 0h4m-2-2h2m-2 6v-6m2 6v-6m2 6v-2" />
3619
+ </svg>
3620
+ `, $i = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3621
+ <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M8.03 14.5C5 14.5 3.5 12.49 3.5 10.01c0-2.82 2.25-7.02 4.62-8.48a.24.24 0 01.24 0c.08.04.12.12.11.2-.13 1.25.22 2.5.98 3.54.3.43.63.8 1.02 1.27.54.66.94 1.03 1.52 2.08l.01.02c.33.56.5 1.2.5 1.84 0 2.03-1.69 4.02-4.47 4.02" />
3622
+ </svg>
3623
+ `, Ii = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3624
+ <g fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round">
3625
+ <path d="M6.5 5.5c0-1.25 1-2 2-2s2 .75 2 2z" />
3626
+ <path d="M13.5 13c.47-.57 1.12-1.24 1.5-2l-2.25-1.25c-.74 1.36-1.76 2.75-3.25 2.75-2.1 0-3-2.3-3-5h8c.05-1.61-.31-3.45-1-4.5M3 13c-1.08-1.3-1.5-3-1.5-5S2.1 4.24 3 3" />
3627
+ </g>
3628
+ </svg>
3629
+ `, Ti = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3630
+ <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M7.5 14.5v-1l-1-1v-3h2l1 2h1v-6h-1l-1 2h-2v-4h5l1 3h1v-5h-11v1l1 1v9l-1 1.25v.75z" />
3631
+ </svg>
3632
+ `, Si = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3633
+ <path fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round" d="m15.48 8.06-4.85.48m4.85-.48a4.98 4.98 0 01-4.54 5.42 5 5 0 112.95-8.66l-1.7 1.84a2.5 2.5 0 00-4.18 2.06c.05.57.3 1.1.69 1.51.25.27 1 .83 1.78.82.8-.02 1.58-.25 2.07-.81 0 0 .8-.96.68-1.88M2.5 8.5l-2 .01m1.5 2h1.5m-2-3.99 2-.02" />
3634
+ </svg>
3635
+ `, Ei = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3636
+ <g fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round">
3637
+ <path d="M11.68 5.38c.4.19.54.68 1.53 3.25 1 2.57-.92 4.07-.92 4.07s-6.73 2.47-6.73 1.63c-.18-.92-1.92-2.08-1.92-2.08s-.52-.63.06-.75c5.89-1.27 6.96-.61 7.3-2" />
3638
+ <path d="M7.38 10.63C2.62 10.88 2.48 8.08 2.5 8 3.6 4.6 9.24.91 10.8 1.58 14.07 3.04 9.2 8.96 7 8.5c-4.02-.83 1.5-4 1.5-4" />
3639
+ </g>
3640
+ </svg>
3641
+ `, Li = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3642
+ <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M12.5 4.5h3m-1.5 3h1.5m-10 6 2.5-5-2.5-5H8l5.6 10h-2.53l-1.52-2.92L8 13.5zm-5 0 2.5-5-2.5-5H3l2.5 5-2.5 5z" />
3643
+ </svg>
3644
+ `, Ni = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3645
+ <g fill="none" stroke-linecap="round" stroke-linejoin="round">
3646
+ <path stroke="#ef9f76" d="M1.5 1.5h13L13 13l-5 2-5-2z" />
3647
+ <path stroke="#c6d0f5" d="M11 4.5H5l.25 3h5.5l-.25 3-2.5 1-2.5-1-.08-1" />
3648
+ </g>
3649
+ </svg>
3650
+ `, ji = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3651
+ <g fill="none" stroke-linecap="round" stroke-linejoin="round">
3652
+ <path stroke="#c6d0f5" d="M10.73 8.41c.57 3 1.59 5.83 2.77 7.09-6.63-3.45-9.76-1.75-10.5 0-.66-3.4-.54-5.74.09-7.78" />
3653
+ <path stroke="#e78284" d="M8.5 7c.63.34 1.82 1.07 2.24 1.41-.54-2.9-.64-5.96-.74-7.91-2.13.58-5.73 1.98-6.9 7.22.52-.69 1.72-1.05 2.4-1.22" />
3654
+ <path stroke="#e78284" d="M5.5 7A1.5 1.5 0 007 8.5 1.5 1.5 0 008.5 7 1.5 1.5 0 007 5.5 1.5 1.5 0 005.5 7" />
3655
+ </g>
3656
+ </svg>
3657
+ `, Hi = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3658
+ <g fill="none" stroke="#99d1db" stroke-linecap="round" stroke-linejoin="round">
3659
+ <path d="M8 10.8c4.14 0 7.5-1.25 7.5-2.8S12.14 5.2 8 5.2.5 6.45.5 8s3.36 2.8 7.5 2.8" />
3660
+ <path d="M5.52 9.4c2.07 3.5 4.86 5.72 6.23 4.95 1.37-.78.8-4.24-1.27-7.75C8.41 3.1 5.62.88 4.25 1.65c-1.37.78-.8 4.24 1.27 7.75" />
3661
+ <path d="M5.52 6.6c-2.07 3.5-2.64 6.97-1.27 7.75 1.37.77 4.16-1.45 6.23-4.95s2.64-6.97 1.27-7.75C10.38.88 7.59 3.1 5.52 6.6" />
3662
+ <path d="M8.5 8a.5.5 0 01-.5.5.5.5 0 01-.5-.5.5.5 0 01.5-.5.5.5 0 01.5.5" />
3663
+ </g>
3664
+ </svg>
3665
+ `, Ri = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3666
+ <g fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round">
3667
+ <path d="M4.5 11c0 .828427.6715729 1.5 1.5 1.5.8284271 0 1.5-.671573 1.5-1.5V7.5M12.5 8.75C12.5 8.05964406 11.9627417 7.5 11.3 7.5L10.7 7.5C10.0372583 7.5 9.5 8.05964406 9.5 8.75 9.5 9.44035594 10.0372583 10 10.7 10L11.3 10C11.9627417 10 12.5 10.5596441 12.5 11.25 12.5 11.9403559 11.9627417 12.5 11.3 12.5L10.7 12.5C10.0372583 12.5 9.5 11.9403559 9.5 11.25" />
3668
+ <path d="m 4,1.5 h 8 c 1.385,0 2.5,1.115 2.5,2.5 v 8 c 0,1.385 -1.115,2.5 -2.5,2.5 H 4 C 2.615,14.5 1.5,13.385 1.5,12 V 4 C 1.5,2.615 2.615,1.5 4,1.5 Z" />
3669
+ </g>
3670
+ </svg>
3671
+ `, Di = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3672
+ <path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M4.5 2.5H4c-.75 0-1.5.75-1.5 1.5v2c0 1.1-1 2-1.83 2 .83 0 1.83.9 1.83 2v2c0 .75.75 1.5 1.5 1.5h.5m7-11h.5c.75 0 1.5.75 1.5 1.5v2c0 1.1 1 2 1.83 2-.83 0-1.83.9-1.83 2v2c0 .74-.75 1.5-1.5 1.5h-.5m-6.5-3a.5.5 0 100-1 .5.5 0 000 1m3 0a.5.5 0 100-1 .5.5 0 000 1m3 0a.5.5 0 100-1 .5.5 0 000 1" />
3673
+ </svg>
3674
+ `, zi = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3675
+ <g fill="none" stroke-linecap="round" stroke-linejoin="round">
3676
+ <path stroke="#a6d189" d="M10.5 5a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />
3677
+ <path stroke="#e78284" d="M6.5 11a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />
3678
+ <path stroke="#ca9ee6" d="M14.5 11a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />
3679
+ </g>
3680
+ </svg>
3681
+ `, Ai = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3682
+ <g fill="none" stroke-linecap="round" stroke-linejoin="round">
3683
+ <path stroke="#ca9ee6" d="M2.5 13.5h11L8 8" />
3684
+ <path stroke="#ef9f76" d="M8.03 2.5h5.47l-8 8" />
3685
+ <path stroke="#e78284" d="M2.5 13.5V8" />
3686
+ <path stroke="#85c1dc" d="M8 2.5H2.5V8l3-2.5" />
3687
+ </g>
3688
+ </svg>
3689
+ `, Pi = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3690
+ <g fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round">
3691
+ <path d="M.5 5.06v6.07C.5 12.41.82 13 2.27 13h5.6c1.04 0 1.63-.51 1.63-1.62 0-.85-.2-1.88-1.5-1.88h-.36C6.4 9.5 6 8.77 6 7.75 6 6.81 6.8 6 7.49 6h2.68" />
3692
+ <path d="M3.5 10.5V4.99C3.5 3.89 3.62 3 5 3h9c.97 0 1.5.99 1.5 1.63.12 1.55-.98 1.62-2.1 2.16-.58.26-1.4.52-1.4.98V11" />
3693
+ </g>
3694
+ </svg>
3695
+ `, Vi = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3696
+ <g fill="none" stroke-linecap="round" stroke-linejoin="round">
3697
+ <path stroke="#c6d0f5" d="M10.5 7A1.5 1.5 0 019 8.5 1.5 1.5 0 017.5 7 1.5 1.5 0 019 5.5 1.5 1.5 0 0110.5 7" />
3698
+ <path stroke="#8caaee" d="M7 2.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13m7-2a1.5 1.5 0 100 3 1.5 1.5 0 000-3" />
3699
+ </g>
3700
+ </svg>
3701
+ `, Ki = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3702
+ <path fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round" d="m9.25 8.25 2.25 2.25 2.25-2.25M3.5 11V5.5l2.04 3 1.96-3V11m4-.5V5M1.65 2.5h12.7c.59 0 1.15.49 1.15 1v9c0 .51-.56 1-1.15 1H1.65c-.59 0-1.15-.49-1.15-1V3.58c0-.5.56-1.08 1.15-1.08" />
3703
+ </svg>
3704
+ `, Wi = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3705
+ <g fill="none" stroke-linecap="round" stroke-linejoin="round">
3706
+ <path stroke="#85c1dc" d="M4 11 .5 8.5 5 7q.78-1.77 1.89-1.89c.74-.07 1.94-1.28 3.61-3.61M5 7l1.5 1.5" />
3707
+ <path stroke="#ef9f76" d="m15.5 12.5-5-11C8.5 6.83 6.33 10 4 11c1.67-.33 2.67.83 3 3.5 3.5-1.5 3.5-3.5 5-4s1.5 1.5 3.5 2" />
3708
+ </g>
3709
+ </svg>
3710
+ `, Oi = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3711
+ <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M1.5 2.5c0 6 2.25 5.75 4 7 .83.67 1.17 2 1 4h3c-.17-2 .17-3.33 1-4 1.75-1.25 4-1 4-7C12 2.5 10 3 8 7 6 3 4 2.5 1.5 2.5" />
3712
+ </svg>
3713
+ `, Fi = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3714
+ <path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M1 7 .5 4.5l1.01.67c.28-.27.47-.48 1.18-.85l.56-1.82L4.5 3.84c.77-.18 1.53-.36 2.4-.33L8 1.5l1.1 2.01c.87-.03 1.63.15 2.4.33l1.25-1.34.56 1.82c.7.37.9.58 1.18.85l1.01-.67L15 7m-1.5 1C13 6.5 11 5.5 8 5.5S3 6.5 2.5 8m11.5.75L13.5 8l-1 1.5-1.5.5-3-1.5L5 10l-1.5-.5-1-1.5-.5.75L1 7l1.25 3.75C3 12.75 6 13.5 8 13.5s5-.75 5.75-2.75L15 7z" />
3715
+ </svg>
3716
+ `, Xi = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><path fill="#c2c2c2" d="M11.29 15.976a8.9 8.9 0 0 0 1.039 4.557a4.82 4.82 0 0 0 5.579 2.13a3.79 3.79 0 0 0 2.734-3.181c.095-.535.1-.54.1-.54c1.537.222 4.014.582 5.55.8l-.1.389A9.96 9.96 0 0 1 23.8 24.9a8.35 8.35 0 0 1-4.747 2.378a12.93 12.93 0 0 1-7.322-.725a8.98 8.98 0 0 1-5.106-5.524A14.35 14.35 0 0 1 6.642 10.9a9.32 9.32 0 0 1 7.929-6.24a11.8 11.8 0 0 1 5.9.491a8.47 8.47 0 0 1 5.456 6.1c.083.311.1.369.1.369c-1.709.311-3.821.705-5.518 1.075c-.323-1.695-1.122-3.029-2.831-3.445a4.656 4.656 0 0 0-5.853 3.158a9 9 0 0 0-.341 1.273a11 11 0 0 0-.194 2.295"/><path fill="#c2c2c2" d="M2.033 30V2h5.934v2.227H4.723v23.546h3.244V30zm27.934-.001h-5.934v-2.228h3.244V4.226h-3.244V1.999h5.934z"/></svg>', Yi = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><path fill="#c2c2c2" d="M19.5 24.833a11.24 11.24 0 0 1-5.13 1.009a8.37 8.37 0 0 1-6.492-2.576A9.75 9.75 0 0 1 5.512 16.4a10.4 10.4 0 0 1 2.659-7.406a9.02 9.02 0 0 1 6.9-2.841a12.2 12.2 0 0 1 4.43.7v4.129a7.5 7.5 0 0 0-4.108-1.142a5.28 5.28 0 0 0-4.075 1.685A6.48 6.48 0 0 0 9.766 16.1a6.37 6.37 0 0 0 1.464 4.4a5.02 5.02 0 0 0 3.941 1.639a8.03 8.03 0 0 0 4.329-1.223Z"/><path fill="#c2c2c2" d="M16.572 15.081V13.24h1.841v1.841h1.84v1.84h-1.84v1.841h-1.841v-1.841h-1.839V15.08zm6.44 0V13.24h1.841v1.841h1.84v1.84h-1.84v1.841h-1.841v-1.841h-1.839V15.08zM2.035 30V2.001h5.933v2.227H4.725v23.545h3.243V30z"/><path fill="#c2c2c2" d="M29.965 29.999h-5.933v-2.228h3.243V4.227h-3.243V2h5.933z"/></svg>', qi = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3717
+ <g fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round">
3718
+ <path d="M1.5 8V3c0-.83.67-1.5 1.5-1.5h10c.83 0 1.5.67 1.5 1.5v10c0 .83-.67 1.5-1.5 1.5H9" />
3719
+ <path d="m1.5 8 1.14-2.3q.09-.21.36-.24a.8.8 0 01.44.13c.18.12.23.53.28.64.06.1.64 1.23.85 1.23.2 0 .71-1.47.71-1.47s.37-.49.72-.49.55.32.67.49c.12.16.24 1.76.46 2.01s1.32.87 1.67.73c.34-.13.53-.4.63-.73.1-.34-.14-.75 0-1a1.1 1.1 0 011.02-.55c.56.03 2.05.56 2.05 1.05q0 .75-1.5.75c-.48 1.33.28 2.22-3 2.25l1 4" />
3720
+ <path d="m4.5 14.5 1.5-4 1 4zm-2 0 1.5-4-1.5-.5-1 1.54V14l1 .49Z" />
3721
+ </g>
3722
+ </svg>
3723
+ `, Ui = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3724
+ <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M12.5 14.5v-3.34c-1-.66-1-1.35-1-2.66m-3 1 .02 2.53.98 2.47m-4-5v5m9 0V9.23s.17-1.73-1-1.73c0-1.5-.5-6-2.5-6S8.75 4.25 8.75 4.25A3.67 3.67 0 006.5 7.12v-3.5c0-.63-.85-1.32-1.5-1.32-.92 0-1.33.59-1.5 1.2H2.25c-.42.11-.75.59-.75 1 0 .5.28 1 .75 1h1.22l.02 3c.01.75.51 1 1.51 1h4.5" />
3725
+ </svg>
3726
+ `, Zi = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3727
+ <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M0.5,12.5 L0.5,13.24 C0.5,14 1.27360724,14.5 2,14.5 C2.9375516,14.5 3.5,14 3.5,13.2445661 L3.5,6.00089968 C3.5,4.28551107 4.99401107,2.52263547 7.14960413,2.5 C9.49387886,2.5 11,4.0579782 11,5.5 C11.1657296,8.48962302 9.57820404,9.63684469 7.49621582,10.5 L7.49621582,14.5 L15.4979764,14.5 L15.4979764,9 C15.5394484,8.36478228 14.9387379,7.15595371 14.1308258,6.5 C13.1942239,5.80827275 12.0584852,5.50253264 11,5.5 M11.5,14.5 L11.5,11.5 M6,6.5 C6.27614237,6.5 6.5,6.27614237 6.5,6 C6.5,5.72385763 6.27614237,5.5 6,5.5 C5.72385763,5.5 5.5,5.72385763 5.5,6 C5.5,6.27614237 5.72385763,6.5 6,6.5 Z" />
3728
+ </svg>
3729
+ `, Gi = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3730
+ <path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="M4.5 13.5c-.33.33-.5.67-.5 1s.17.67.5 1c.17-.67.5-1 1-1s.83.33 1 1c.33-.33.5-.83.5-1.5h2c0 .67.17 1.17.5 1.5.17-.67.5-1 1-1s.83.33 1 1c.33-.33.5-.67.5-1s-.17-.67-.5-1l1-1 1.25 1.25c0-2.75 1-2.75 1-5.75a7.1 7.1 0 00-2-5.25A3.64 3.64 0 0113 .5c-1.17 0-2 .42-2.5 1.25A3.08 3.08 0 008 .5c-1 0-1.83.42-2.5 1.25C5 .92 4.17.5 3 .5c.5.83.58 1.58.25 2.25a7.1 7.1 0 00-2 5.25c0 3 1 3 1 5.75L3.5 12.5zm6-5a2 2 0 100-4 2 2 0 000 4m-5 0a2 2 0 100-4 2 2 0 000 4M7 8l1 2.5L9 8m1.5-1.5" />
3731
+ </svg>
3732
+ `, Ji = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3733
+ <g fill="none" stroke-linecap="round" stroke-linejoin="round">
3734
+ <path stroke="#8caaee" d="M8.5 5.5h-3m6 0V3c0-.8-.7-1.5-1.5-1.5H7c-.8 0-1.5.7-1.5 1.5v2.5H3c-.8 0-1.5.7-1.5 1.5v2c0 .8.7 1.5 1.48 1.5" />
3735
+ <path stroke="#e5c890" d="M10.5 10.5h-3m-3 0V13c0 .8.7 1.5 1.5 1.5h3c.8 0 1.5-.7 1.5-1.5v-2.5H13c.8 0 1.5-.7 1.5-1.5V7c0-.8-.7-1.5-1.48-1.5H11.5c0 1.5 0 2-1 2h-2" />
3736
+ <path stroke="#8caaee" d="M2.98 10.5H4.5c0-1.5 0-2 1-2h2M7.5 3.5v0" />
3737
+ <path stroke="#e5c890" d="m 8.5,12.5 v 0" />
3738
+ </g>
3739
+ </svg>
3740
+ `, Qi = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3741
+ <g fill="none" stroke-linecap="round" stroke-linejoin="round">
3742
+ <path stroke="#838ba7" d="M13.5 9.5c.63-.7 1-1.54 1-2.43 0-2.52-2.91-4.57-6.5-4.57S1.5 4.55 1.5 7.07c0 1.9 1.65 3.53 4 4.22" />
3743
+ <path stroke="#8caaee" d="M10.5 9.5c.4 0 .86.34 1 .7l1 3.3m-5 0v-8h3.05c.95 0 1.95 1 1.95 2s-1 2-1.95 2H7.5Z" />
3744
+ </g>
3745
+ </svg>
3746
+ `, es = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3747
+ <path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="M1.5 9.06v2.5c.02.86.36 1.61.9 2.15 1.76 1.76 5.71.65 8.84-2.47 3.12-3.13 4.23-7.08 2.47-8.84a3.1 3.1 0 00-2.15-.9h-2.5M14.5 4l-.25 10.25L4 14.5m4.39-6.11c2.34-2.35 3.29-5.2 2.12-6.37S6.49 1.8 4.14 4.14C1.8 6.5.85 9.34 2.02 10.51s4.02.22 6.37-2.12M5.5 14.5l.25-3.75L11 11l-.25-5.25 3.75-.25" />
3748
+ </svg>
3749
+ `, ts = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3750
+ <g fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round">
3751
+ <path d="M15.5 9.5Q8 13.505.5 9.5l1-1-1-2 2-.5V4.5h2l.5-2 1.5 1 1.5-2 1.5 2 1.5-1 .5 2h2V6l2 .5-1 2z" />
3752
+ <path d="M6.5 7.5a1 1 0 01-1 1 1 1 0 01-1-1 1 1 0 011-1 1 1 0 011 1m5 0a1 1 0 01-1 1 1 1 0 01-1-1 1 1 0 011-1 1 1 0 011 1M4 11.02c-.67.37-1.5.98-1.5 2.23s1.22 1.22 2 1.25v-2M12 11c.67.37 1.5 1 1.5 2.25s-1.22 1.22-2 1.25v-2" />
3753
+ </g>
3754
+ </svg>
3755
+ `, ns = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3756
+ <path fill="none" stroke="#f4b8e4" stroke-linecap="round" stroke-linejoin="round" d="M6.75 6.38c1.85 1.07 3.35.74 4.83-.2 1.5-.95 2.7-2.78 1.3-4.15-.7-.68-3.25-.8-5.62.19-2.36.99-4.59 3.02-4.74 4.11-.31 2.19 3.15 2.88 3.64 4.23s.28 1.98-.2 2.83c-.5.85-1.96 1.62-2.8.68-.83-.95 1.67-2.75 2.98-3.25 1.3-.5 3.1-.4 3.69.25.58.64-.07 1.79-.03 1.79" />
3757
+ </svg>
3758
+ `, os = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3759
+ <path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="m2.5 2.48 11-.98v3.04l-11 1zm0 5 11-.98v3.04l-11 1zm0 5 11-.98v3.04l-11 1z" />
3760
+ </svg>
3761
+ `, rs = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3762
+ <g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">
3763
+ <path d="M2 15.5c-.7 0-1.5-.8-1.5-1.5V5c0-.7.8-1.5 1.5-1.5h9c.7 0 1.5.8 1.5 1.5v9c0 .7-.8 1.5-1.5 1.5z" />
3764
+ <path d="m1.2 3.8 3.04-2.5S5.17.5 5.7.5h8.4c.66 0 1.4.73 1.4 1.4v7.73a2.7 2.7 0 01-.7 1.75l-2.68 3.51M3 8.5l3 2-3 2m4 0h2" />
3765
+ </g>
3766
+ </svg>
3767
+ `, as = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3768
+ <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="m3 11.5 2.5 4 2.5-4 2.5 4 2.5-4-2.5-4-2.5 4m2.5 4h-5m7.5-4H3m10-7-2.5-4-2.5 4-2.5-4-2.5 4 2.5 4 2.5-4M5.5.5h5M3 4.5h10" />
3769
+ </svg>
3770
+ `, is = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3771
+ <path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M8 6.5c3.59 0 6.5-1.4 6.5-2.68S11.59 1.5 8 1.5 1.5 2.54 1.5 3.82 4.41 6.5 8 6.5M14.5 8c0 .83-1.24 1.79-3.25 2.2s-4.49.41-6.5 0S1.5 8.83 1.5 8m13 4.18c0 .83-1.24 1.6-3.25 2-2.01.42-4.49.42-6.5 0-2.01-.4-3.25-1.17-3.25-2m0-8.3v8.3m13-8.3v8.3" />
3772
+ </svg>
3773
+ `, ss = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16"><!-- Icon from Lucide by Lucide Contributors - https://github.com/lucide-icons/lucide/blob/main/LICENSE --><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m10 9l-3 3l3 3m4 0l3-3l-3-3"/><rect width="18" height="18" x="3" y="3" rx="2"/></g></svg>', ls = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3774
+ <path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="m4.54 10 6.92-4m-6.92 4a1.5 1.5 0 10-2.6 1.5 1.5 1.5 0 002.6-1.5M8 4v8m0-8a1.5 1.5 0 100-3 1.5 1.5 0 000 3M4.54 6l6.92 4M4.54 6a1.5 1.5 0 10-2.6-1.5A1.5 1.5 0 004.54 6M8 12a1.5 1.5 0 100 3 1.5 1.5 0 000-3m3.46-2a1.5 1.5 0 102.6 1.5 1.5 1.5 0 00-2.6-1.5m0-4a1.5 1.5 0 102.6-1.5 1.5 1.5 0 00-2.6 1.5" />
3775
+ </svg>
3776
+ `, cs = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3777
+ <path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="M14.34 10.2c.34-1.08 1.1-5.07-4.45-8.62a.48.48 0 00-.6.07.44.44 0 00-.02.6c.03.02 2.07 2.5 1.34 5.34-1.26-.86-6.24-4.81-6.24-4.81L7.25 7.5 1.9 4.05S5.68 8.7 8 10.45c-1.12.4-3.56.82-6.78-1.18a.48.48 0 00-.58.06.44.44 0 00-.08.56c.11.18 2.7 4.36 8.14 4.36 1.5 0 2.37-.42 3.08-.77.43-.2.77-.37 1.14-.37.93 0 1.54.92 1.54.93.1.14.27.22.44.21a.46.46 0 00.4-.28c.67-1.55-.49-3.2-.96-3.78h0Z" />
3778
+ </svg>
3779
+ `, us = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3780
+ <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="m1.5 6 8 4.25 4-2.25m-12-2V1.5l8 4.25 4-2.25V8m-4-2.25v8.75M5.53 3.82 5.5 12.5l4 2" />
3781
+ </svg>
3782
+ `, ds = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3783
+ <g fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round">
3784
+ <path d="M13.5 6.5v6a2 2 0 01-2 2h-7a2 2 0 01-2-2v-9c0-1.1.9-2 2-2h4.01" />
3785
+ <path d="m8.5 1.5 5 5h-4a1 1 0 01-1-1zm-3 10h5m-5-3h5m-5-3h1" />
3786
+ </g>
3787
+ </svg>
3788
+ `, ms = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3789
+ <g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">
3790
+ <path d="M8 11.3c4.14 0 7.5-1.28 7.5-2.86S12.14 5.58 8 5.58.5 6.86.5 8.44s3.36 2.87 7.5 2.87Z" />
3791
+ <path d="M5.52 9.87c2.07 3.6 4.86 5.86 6.23 5.07 1.37-.8.8-4.34-1.27-7.93S5.62 1.16 4.25 1.95s-.8 4.34 1.27 7.92" />
3792
+ <path d="M5.52 7.01c-2.07 3.59-2.64 7.14-1.27 7.93s4.16-1.48 6.23-5.07c2.07-3.58 2.64-7.13 1.27-7.92-1.37-.8-4.16 1.47-6.23 5.06" />
3793
+ <path d="M8.5 8.44a.5.5 0 01-.5.5.5.5 0 01-.5-.5.5.5 0 01.5-.5.5.5 0 01.5.5" />
3794
+ </g>
3795
+ </svg>
3796
+ `, hs = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3797
+ <g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">
3798
+ <path d="M4 1.5h8A2.5 2.5 0 0114.5 4v8a2.5 2.5 0 01-2.5 2.5H4A2.5 2.5 0 011.5 12V4A2.5 2.5 0 014 1.5" />
3799
+ <path d="M12.5 8.75c0-.69-.54-1.25-1.2-1.25h-.6c-.66 0-1.2.56-1.2 1.25S10.04 10 10.7 10h.6c.66 0 1.2.56 1.2 1.25s-.54 1.25-1.2 1.25h-.6c-.66 0-1.2-.56-1.2-1.25m-3-3.75v5M5 7.5h3" />
3800
+ </g>
3801
+ </svg>
3802
+ `, fs = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><path fill="#00519a" d="M6.67 7.836L9 18.915l2.336-11.079H16l-4.664 16.328H6.672L2 7.836Zm11.661 0h7.6a4.08 4.08 0 0 1 2.9 1.749a3.8 3.8 0 0 1 .571 2.04a4 4 0 0 1-.571 2.034a4.1 4.1 0 0 1-2.341 1.763a4.1 4.1 0 0 1 2.929 1.756a3.8 3.8 0 0 1 .58 2.1a4.66 4.66 0 0 1-.579 2.546a5.05 5.05 0 0 1-3.5 2.338h-7.589ZM23 14.252h1.166a1.754 1.754 0 0 0 0-3.5H23Zm0 7h1.39a2.047 2.047 0 0 0 0-4.089H23Z"/></svg>', vs = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3803
+ <g fill="none" stroke="#a6d189" stroke-linecap="round" stroke-linejoin="round">
3804
+ <path d="M1 1.5h5.44L8 4.56 9.56 1.5H15l-6.99 13z" />
3805
+ <path d="M12.05 1.73 8 9.28 3.95 1.73" />
3806
+ </g>
3807
+ </svg>
3808
+ `, ps = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3809
+ <path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="M4.5 4.5 1 8 4.5 11.5M11.5 4.5 15 8 11.5 11.5M9.5 2 6.5 14" />
3810
+ </svg>
3811
+ `, gs = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
3812
+ <path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="M2.5 1.5h3l3 4 3-4h3l-9 13h-3L7 8z" />
3813
+ </svg>
3814
+ `;
3815
+ let An = null;
3816
+ function ws(t) {
3817
+ An = t != null ? t : null;
3818
+ }
3819
+ function ks(t) {
3820
+ if (An) {
3821
+ const n = An(t);
3822
+ if (n != null && n !== "")
3823
+ return n;
3824
+ }
3825
+ switch (t) {
3826
+ case "javascript":
3827
+ case "js":
3828
+ return Ri;
3829
+ case "typescript":
3830
+ case "ts":
3831
+ return hs;
3832
+ case "jsx":
3833
+ return Hi;
3834
+ case "tsx":
3835
+ return ms;
3836
+ case "html":
3837
+ return Ni;
3838
+ case "css":
3839
+ return Mi;
3840
+ case "scss":
3841
+ return ns;
3842
+ case "json":
3843
+ return Di;
3844
+ case "python":
3845
+ case "py":
3846
+ return Ji;
3847
+ case "ruby":
3848
+ case "rb":
3849
+ return es;
3850
+ case "go":
3851
+ case "golang":
3852
+ return Si;
3853
+ case "r":
3854
+ return Qi;
3855
+ case "java":
3856
+ return ji;
3857
+ case "kotlin":
3858
+ case "kt":
3859
+ return Ai;
3860
+ case "c":
3861
+ return gi;
3862
+ case "cpp":
3863
+ case "c++":
3864
+ return yi;
3865
+ case "cs":
3866
+ case "csharp":
3867
+ return bi;
3868
+ case "php":
3869
+ return Zi;
3870
+ case "scala":
3871
+ return os;
3872
+ case "shell":
3873
+ case "sh":
3874
+ case "bash":
3875
+ case "zsh":
3876
+ case "powershell":
3877
+ case "ps1":
3878
+ case "bat":
3879
+ case "batch":
3880
+ case "shellscript":
3881
+ return rs;
3882
+ case "sql":
3883
+ return is;
3884
+ case "yaml":
3885
+ case "yml":
3886
+ return gs;
3887
+ case "markdown":
3888
+ case "md":
3889
+ return Ki;
3890
+ case "xml":
3891
+ return ps;
3892
+ case "rust":
3893
+ case "rs":
3894
+ return ts;
3895
+ case "swift":
3896
+ return cs;
3897
+ case "perl":
3898
+ return Ui;
3899
+ case "lua":
3900
+ return Vi;
3901
+ case "haskell":
3902
+ return Li;
3903
+ case "erlang":
3904
+ return Ii;
3905
+ case "clojure":
3906
+ return wi;
3907
+ case "vue":
3908
+ return vs;
3909
+ case "svg":
3910
+ return ls;
3911
+ case "mermaid":
3912
+ return Oi;
3913
+ case "dart":
3914
+ return Ci;
3915
+ case "assembly":
3916
+ return pi;
3917
+ case "dockerfile":
3918
+ return Bi;
3919
+ case "fortran":
3920
+ return Ti;
3921
+ case "lisp":
3922
+ return Pi;
3923
+ case "ocaml":
3924
+ return qi;
3925
+ case "prolog":
3926
+ return Gi;
3927
+ case "groovy":
3928
+ return Ei;
3929
+ case "matlab":
3930
+ return Wi;
3931
+ case "cobol":
3932
+ return ki;
3933
+ case "ada":
3934
+ return fi;
3935
+ case "julia":
3936
+ return zi;
3937
+ case "elixir":
3938
+ return $i;
3939
+ case "vb.net":
3940
+ return fs;
3941
+ case "nim":
3942
+ return Fi;
3943
+ case "crystal":
3944
+ return xi;
3945
+ case "d":
3946
+ return _i;
3947
+ case "applescript":
3948
+ return vi;
3949
+ case "solidity":
3950
+ return as;
3951
+ case "objectivec":
3952
+ return Xi;
3953
+ case "objectivecpp":
3954
+ return Yi;
3955
+ case "terraform":
3956
+ return us;
3957
+ case "plain":
3958
+ case "text":
3959
+ return ds;
3960
+ default:
3961
+ return ss;
3962
+ }
3963
+ }
3964
+ const ys = {
3965
+ js: "JavaScript",
3966
+ ts: "TypeScript",
3967
+ jsx: "JSX",
3968
+ tsx: "TSX",
3969
+ html: "HTML",
3970
+ css: "CSS",
3971
+ scss: "SCSS",
3972
+ json: "JSON",
3973
+ py: "Python",
3974
+ python: "Python",
3975
+ rb: "Ruby",
3976
+ go: "Go",
3977
+ java: "Java",
3978
+ c: "C",
3979
+ cpp: "C++",
3980
+ cs: "C#",
3981
+ php: "PHP",
3982
+ sh: "Shell",
3983
+ bash: "Bash",
3984
+ sql: "SQL",
3985
+ yaml: "YAML",
3986
+ md: "Markdown",
3987
+ "": "Plain Text",
3988
+ plain: "Plain Text"
3989
+ }, xs = {
3990
+ key: 0,
3991
+ class: "code-block-header flex justify-between items-center px-4 py-2.5 border-b border-gray-400/5",
3992
+ style: { color: "var(--vscode-editor-foreground)", "background-color": "var(--vscode-editor-background)" }
3993
+ }, bs = { class: "flex items-center space-x-2" }, Ms = ["innerHTML"], Cs = { class: "text-sm font-medium font-mono" }, _s = { class: "flex items-center space-x-2" }, Bs = ["aria-pressed"], $s = ["disabled"], Is = ["disabled"], Ts = ["disabled"], Ss = ["aria-label"], Es = {
3994
+ key: 0,
3995
+ xmlns: "http://www.w3.org/2000/svg",
3996
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
3997
+ "aria-hidden": "true",
3998
+ role: "img",
3999
+ width: "1em",
4000
+ height: "1em",
4001
+ viewBox: "0 0 24 24",
4002
+ class: "w-3 h-3"
4003
+ }, Ls = {
4004
+ key: 1,
4005
+ xmlns: "http://www.w3.org/2000/svg",
4006
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
4007
+ "aria-hidden": "true",
4008
+ role: "img",
4009
+ width: "1em",
4010
+ height: "1em",
4011
+ viewBox: "0 0 24 24",
4012
+ class: "w-3 h-3"
4013
+ }, Ns = ["aria-pressed"], js = {
4014
+ key: 0,
4015
+ xmlns: "http://www.w3.org/2000/svg",
4016
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
4017
+ "aria-hidden": "true",
4018
+ role: "img",
4019
+ width: "0.75rem",
4020
+ height: "0.75rem",
4021
+ viewBox: "0 0 24 24"
4022
+ }, Hs = {
4023
+ key: 1,
4024
+ xmlns: "http://www.w3.org/2000/svg",
4025
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
4026
+ "aria-hidden": "true",
4027
+ role: "img",
4028
+ width: "0.75rem",
4029
+ height: "0.75rem",
4030
+ viewBox: "0 0 24 24"
4031
+ }, Rs = ["aria-label"], Ds = { class: "code-loading-placeholder" }, co = 10, uo = 36, mo = 1, zs = /* @__PURE__ */ V({
4032
+ __name: "MarkdownCodeBlockNode",
4033
+ props: {
4034
+ node: {},
4035
+ loading: { type: Boolean, default: !0 },
4036
+ stream: { type: Boolean, default: !0 },
4037
+ darkTheme: { default: "vitesse-dark" },
4038
+ lightTheme: { default: "vitesse-light" },
4039
+ isDark: { type: Boolean, default: !1 },
4040
+ isShowPreview: { type: Boolean, default: !0 },
4041
+ enableFontSizeControl: { type: Boolean, default: !0 },
4042
+ minWidth: { default: void 0 },
4043
+ maxWidth: { default: void 0 },
4044
+ themes: {},
4045
+ showHeader: { type: Boolean, default: !0 },
4046
+ showCopyButton: { type: Boolean, default: !0 },
4047
+ showExpandButton: { type: Boolean, default: !0 },
4048
+ showPreviewButton: { type: Boolean, default: !0 },
4049
+ showFontSizeButtons: { type: Boolean, default: !0 }
4050
+ },
4051
+ emits: ["previewCode", "copy"],
4052
+ setup(t, { emit: n }) {
4053
+ var We;
4054
+ const e = t, a = n, { t: r } = On(), u = M(String((We = e.node.language) != null ? We : "")), s = M(!1), d = M(!1), f = M(!1), l = M(null), k = M(!0), p = M(0), _ = M(14), T = M(_.value), P = E(() => {
4055
+ const x = _.value, y = T.value;
4056
+ return typeof x == "number" && Number.isFinite(x) && x > 0 && typeof y == "number" && Number.isFinite(y) && y > 0;
4057
+ }), K = E(() => {
4058
+ const x = u.value.trim().toLowerCase();
4059
+ return ys[x] || x.charAt(0).toUpperCase() + x.slice(1);
4060
+ }), X = E(
4061
+ () => u.value.trim().toLowerCase() === "mermaid"
4062
+ ), R = E(() => {
4063
+ const x = u.value.trim().toLowerCase();
4064
+ return ks(x.split(":")[0]);
4065
+ }), L = E(() => {
4066
+ const x = u.value.trim().toLowerCase();
4067
+ return e.isShowPreview && (x === "html" || x === "svg");
4068
+ }), ke = E(() => {
4069
+ const x = {}, y = (ce) => {
4070
+ if (ce != null)
4071
+ return typeof ce == "number" ? `${ce}px` : String(ce);
4072
+ }, $ = y(e.minWidth), re = y(e.maxWidth);
4073
+ return $ && (x.minWidth = $), re && (x.maxWidth = re), x;
4074
+ }), W = E(() => ({
4075
+ fontSize: `${T.value}px`
4076
+ }));
4077
+ function Z() {
4078
+ return e.isDark ? e.darkTheme : e.lightTheme;
4079
+ }
4080
+ let S, le, te, Y = () => {
4081
+ };
4082
+ function be() {
4083
+ return N(this, null, function* () {
4084
+ if (!le)
4085
+ try {
4086
+ const x = yield import("stream-markdown");
4087
+ if (le = x.createShikiStreamRenderer, te = x.registerHighlight, Y = x.disposeHighlighter, te({ themes: e.themes }), S = le(l.value, {
4088
+ theme: Z()
4089
+ }), !e.loading) {
4090
+ const y = u.value.split(":")[0].toLocaleLowerCase().trim();
4091
+ S.updateCode(e.node.code, y);
4092
+ }
4093
+ } catch (x) {
4094
+ console.warn("[MarkdownCodeBlockNode] stream-markdown not available:", x);
4095
+ }
4096
+ });
4097
+ }
4098
+ function G() {
4099
+ return N(this, null, function* () {
4100
+ if (X.value) {
4101
+ Y(), S == null || S.dispose();
4102
+ return;
4103
+ }
4104
+ be();
4105
+ });
4106
+ }
4107
+ G(), go(() => {
4108
+ G();
4109
+ }), U(() => e.themes, () => N(null, null, function* () {
4110
+ te && te({ themes: e.themes });
4111
+ })), U(() => [e.node.code, e.node.language], ($) => N(null, [$], function* ([x, y]) {
4112
+ if (y !== u.value && (u.value = y.trim()), !!l.value) {
4113
+ if (X.value) {
4114
+ Y(), S == null || S.dispose();
4115
+ return;
4116
+ }
4117
+ S || (yield G()), !(!S || !x) && (e.stream === !1 && e.loading || (y = y.split(":")[0].toLocaleLowerCase().trim(), S.updateCode(x, y)));
4118
+ }
4119
+ }));
4120
+ const ct = U(
4121
+ () => [e.darkTheme, e.lightTheme],
4122
+ () => N(null, null, function* () {
4123
+ if (l.value) {
4124
+ if (X.value)
4125
+ return Y(), S == null || S.dispose(), ct();
4126
+ S || (yield G()), S == null || S.setTheme(Z());
4127
+ }
4128
+ })
4129
+ );
4130
+ U(() => e.node.code, () => N(null, null, function* () {
4131
+ if (d.value || !k.value)
4132
+ return;
4133
+ yield ue();
4134
+ const x = l.value;
4135
+ x && x.scrollHeight > x.clientHeight && (x.scrollTop = x.scrollHeight);
4136
+ }));
4137
+ function nt(x, y = 50) {
4138
+ return x.scrollHeight - x.scrollTop - x.clientHeight <= y;
4139
+ }
4140
+ function ot() {
4141
+ const x = l.value;
4142
+ if (!x || d.value)
4143
+ return;
4144
+ const y = x.scrollTop;
4145
+ y < p.value ? k.value = !1 : nt(x) && (k.value = !0), p.value = y;
4146
+ }
4147
+ function Ke() {
4148
+ return N(this, null, function* () {
4149
+ try {
4150
+ typeof navigator != "undefined" && navigator.clipboard && typeof navigator.clipboard.writeText == "function" && (yield navigator.clipboard.writeText(e.node.code)), s.value = !0, a("copy", e.node.code), setTimeout(() => {
4151
+ s.value = !1;
4152
+ }, 1e3);
4153
+ } catch (x) {
4154
+ console.error("Copy failed:", x);
4155
+ }
4156
+ });
4157
+ }
4158
+ function ie(x) {
4159
+ const y = x;
4160
+ return !y || y.disabled;
4161
+ }
4162
+ function oe(x, y, $ = "top") {
4163
+ if (ie(x.currentTarget))
4164
+ return;
4165
+ const re = x, ce = (re == null ? void 0 : re.clientX) != null && (re == null ? void 0 : re.clientY) != null ? { x: re.clientX, y: re.clientY } : void 0;
4166
+ dn(x.currentTarget, y, $, !1, ce, e.isDark);
4167
+ }
4168
+ function D() {
4169
+ Wn();
4170
+ }
4171
+ function ye(x) {
4172
+ if (ie(x.currentTarget))
4173
+ return;
4174
+ const y = s.value ? r("common.copied") || "Copied" : r("common.copy") || "Copy", $ = x, re = ($ == null ? void 0 : $.clientX) != null && ($ == null ? void 0 : $.clientY) != null ? { x: $.clientX, y: $.clientY } : void 0;
4175
+ dn(x.currentTarget, y, "top", !1, re, e.isDark);
4176
+ }
4177
+ function je() {
4178
+ d.value = !d.value;
4179
+ const x = l.value;
4180
+ x && (d.value ? (x.style.maxHeight = "none", x.style.overflow = "visible") : (x.style.maxHeight = "500px", x.style.overflow = "auto", k.value = !0, ue(() => {
4181
+ x.scrollHeight > x.clientHeight && (x.scrollTop = x.scrollHeight);
4182
+ })));
4183
+ }
4184
+ function rt() {
4185
+ f.value = !f.value;
4186
+ }
4187
+ function Me() {
4188
+ const x = Math.min(uo, T.value + mo);
4189
+ T.value = x;
4190
+ }
4191
+ function ft() {
4192
+ const x = Math.max(co, T.value - mo);
4193
+ T.value = x;
4194
+ }
4195
+ function he() {
4196
+ T.value = _.value;
4197
+ }
4198
+ function Ce() {
4199
+ if (!L.value)
4200
+ return;
4201
+ const x = (u.value || e.node.language).toLowerCase(), y = x === "html" ? "text/html" : "image/svg+xml", $ = x === "html" ? "HTML Preview" : "SVG Preview";
4202
+ a("previewCode", {
4203
+ type: y,
4204
+ content: e.node.code,
4205
+ title: $
4206
+ });
4207
+ }
4208
+ return (x, y) => X.value ? (m(), de(B(jt), {
4209
+ key: 0,
4210
+ node: t.node,
4211
+ "is-dark": e.isDark,
4212
+ loading: e.loading
4213
+ }, null, 8, ["node", "is-dark", "loading"])) : (m(), g("div", {
4214
+ key: 1,
4215
+ style: Re(ke.value),
4216
+ class: A(["code-block-container my-4 rounded-lg border overflow-hidden shadow-sm", [e.isDark ? "border-gray-700/30 bg-gray-900" : "border-gray-200 bg-white", e.isDark ? "is-dark" : ""]])
4217
+ }, [
4218
+ e.showHeader ? (m(), g("div", xs, [
4219
+ Je(x.$slots, "header-left", {}, () => [
4220
+ h("div", bs, [
4221
+ h("span", {
4222
+ class: "icon-slot h-4 w-4 flex-shrink-0",
4223
+ innerHTML: R.value
4224
+ }, null, 8, Ms),
4225
+ h("span", Cs, ee(K.value), 1)
4226
+ ])
4227
+ ], !0),
4228
+ Je(x.$slots, "header-right", {}, () => [
4229
+ h("div", _s, [
4230
+ h("button", {
4231
+ type: "button",
4232
+ class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",
4233
+ "aria-pressed": f.value,
4234
+ onClick: rt,
4235
+ onMouseenter: y[0] || (y[0] = ($) => oe($, f.value ? B(r)("common.expand") || "Expand" : B(r)("common.collapse") || "Collapse")),
4236
+ onFocus: y[1] || (y[1] = ($) => oe($, f.value ? B(r)("common.expand") || "Expand" : B(r)("common.collapse") || "Collapse")),
4237
+ onMouseleave: D,
4238
+ onBlur: D
4239
+ }, [
4240
+ (m(), g("svg", {
4241
+ style: Re({ rotate: f.value ? "0deg" : "90deg" }),
4242
+ xmlns: "http://www.w3.org/2000/svg",
4243
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
4244
+ "aria-hidden": "true",
4245
+ role: "img",
4246
+ width: "1em",
4247
+ height: "1em",
4248
+ viewBox: "0 0 24 24",
4249
+ class: "w-3 h-3"
4250
+ }, [...y[17] || (y[17] = [
4251
+ h("path", {
4252
+ fill: "none",
4253
+ stroke: "currentColor",
4254
+ "stroke-linecap": "round",
4255
+ "stroke-linejoin": "round",
4256
+ "stroke-width": "2",
4257
+ d: "m9 18l6-6l-6-6"
4258
+ }, null, -1)
4259
+ ])], 4))
4260
+ ], 40, Bs),
4261
+ e.showFontSizeButtons && e.enableFontSizeControl ? (m(), g(ae, { key: 0 }, [
4262
+ h("button", {
4263
+ type: "button",
4264
+ class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",
4265
+ disabled: Number.isFinite(T.value) ? T.value <= co : !1,
4266
+ onClick: y[2] || (y[2] = ($) => ft()),
4267
+ onMouseenter: y[3] || (y[3] = ($) => oe($, B(r)("common.decrease") || "Decrease")),
4268
+ onFocus: y[4] || (y[4] = ($) => oe($, B(r)("common.decrease") || "Decrease")),
4269
+ onMouseleave: D,
4270
+ onBlur: D
4271
+ }, [...y[18] || (y[18] = [
4272
+ h("svg", {
4273
+ xmlns: "http://www.w3.org/2000/svg",
4274
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
4275
+ "aria-hidden": "true",
4276
+ role: "img",
4277
+ width: "1em",
4278
+ height: "1em",
4279
+ viewBox: "0 0 24 24",
4280
+ class: "w-3 h-3"
4281
+ }, [
4282
+ h("path", {
4283
+ fill: "none",
4284
+ stroke: "currentColor",
4285
+ "stroke-linecap": "round",
4286
+ "stroke-linejoin": "round",
4287
+ "stroke-width": "2",
4288
+ d: "M5 12h14"
4289
+ })
4290
+ ], -1)
4291
+ ])], 40, $s),
4292
+ h("button", {
4293
+ type: "button",
4294
+ class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",
4295
+ disabled: !P.value || T.value === _.value,
4296
+ onClick: y[5] || (y[5] = ($) => he()),
4297
+ onMouseenter: y[6] || (y[6] = ($) => oe($, B(r)("common.reset") || "Reset")),
4298
+ onFocus: y[7] || (y[7] = ($) => oe($, B(r)("common.reset") || "Reset")),
4299
+ onMouseleave: D,
4300
+ onBlur: D
4301
+ }, [...y[19] || (y[19] = [
4302
+ h("svg", {
4303
+ xmlns: "http://www.w3.org/2000/svg",
4304
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
4305
+ "aria-hidden": "true",
4306
+ role: "img",
4307
+ width: "1em",
4308
+ height: "1em",
4309
+ viewBox: "0 0 24 24",
4310
+ class: "w-3 h-3"
4311
+ }, [
4312
+ h("g", {
4313
+ fill: "none",
4314
+ stroke: "currentColor",
4315
+ "stroke-linecap": "round",
4316
+ "stroke-linejoin": "round",
4317
+ "stroke-width": "2"
4318
+ }, [
4319
+ h("path", { d: "M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8" }),
4320
+ h("path", { d: "M3 3v5h5" })
4321
+ ])
4322
+ ], -1)
4323
+ ])], 40, Is),
4324
+ h("button", {
4325
+ type: "button",
4326
+ class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",
4327
+ disabled: Number.isFinite(T.value) ? T.value >= uo : !1,
4328
+ onClick: y[8] || (y[8] = ($) => Me()),
4329
+ onMouseenter: y[9] || (y[9] = ($) => oe($, B(r)("common.increase") || "Increase")),
4330
+ onFocus: y[10] || (y[10] = ($) => oe($, B(r)("common.increase") || "Increase")),
4331
+ onMouseleave: D,
4332
+ onBlur: D
4333
+ }, [...y[20] || (y[20] = [
4334
+ h("svg", {
4335
+ xmlns: "http://www.w3.org/2000/svg",
4336
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
4337
+ "aria-hidden": "true",
4338
+ role: "img",
4339
+ width: "1em",
4340
+ height: "1em",
4341
+ viewBox: "0 0 24 24",
4342
+ class: "w-3 h-3"
4343
+ }, [
4344
+ h("path", {
4345
+ fill: "none",
4346
+ stroke: "currentColor",
4347
+ "stroke-linecap": "round",
4348
+ "stroke-linejoin": "round",
4349
+ "stroke-width": "2",
4350
+ d: "M5 12h14m-7-7v14"
4351
+ })
4352
+ ], -1)
4353
+ ])], 40, Ts)
4354
+ ], 64)) : se("", !0),
4355
+ e.showCopyButton ? (m(), g("button", {
4356
+ key: 1,
4357
+ type: "button",
4358
+ class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",
4359
+ "aria-label": s.value ? B(r)("common.copied") || "Copied" : B(r)("common.copy") || "Copy",
4360
+ onClick: Ke,
4361
+ onMouseenter: y[11] || (y[11] = ($) => ye($)),
4362
+ onFocus: y[12] || (y[12] = ($) => ye($)),
4363
+ onMouseleave: D,
4364
+ onBlur: D
4365
+ }, [
4366
+ s.value ? (m(), g("svg", Ls, [...y[22] || (y[22] = [
4367
+ h("path", {
4368
+ fill: "none",
4369
+ stroke: "currentColor",
4370
+ "stroke-linecap": "round",
4371
+ "stroke-linejoin": "round",
4372
+ "stroke-width": "2",
4373
+ d: "M20 6L9 17l-5-5"
4374
+ }, null, -1)
4375
+ ])])) : (m(), g("svg", Es, [...y[21] || (y[21] = [
4376
+ h("g", {
4377
+ fill: "none",
4378
+ stroke: "currentColor",
4379
+ "stroke-linecap": "round",
4380
+ "stroke-linejoin": "round",
4381
+ "stroke-width": "2"
4382
+ }, [
4383
+ h("rect", {
4384
+ width: "14",
4385
+ height: "14",
4386
+ x: "8",
4387
+ y: "8",
4388
+ rx: "2",
4389
+ ry: "2"
4390
+ }),
4391
+ h("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
4392
+ ], -1)
4393
+ ])]))
4394
+ ], 40, Ss)) : se("", !0),
4395
+ e.showExpandButton ? (m(), g("button", {
4396
+ key: 2,
4397
+ type: "button",
4398
+ class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",
4399
+ "aria-pressed": d.value,
4400
+ onClick: je,
4401
+ onMouseenter: y[13] || (y[13] = ($) => oe($, d.value ? B(r)("common.collapse") || "Collapse" : B(r)("common.expand") || "Expand")),
4402
+ onFocus: y[14] || (y[14] = ($) => oe($, d.value ? B(r)("common.collapse") || "Collapse" : B(r)("common.expand") || "Expand")),
4403
+ onMouseleave: D,
4404
+ onBlur: D
4405
+ }, [
4406
+ d.value ? (m(), g("svg", js, [...y[23] || (y[23] = [
4407
+ h("path", {
4408
+ fill: "none",
4409
+ stroke: "currentColor",
4410
+ "stroke-linecap": "round",
4411
+ "stroke-linejoin": "round",
4412
+ "stroke-width": "2",
4413
+ d: "M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"
4414
+ }, null, -1)
4415
+ ])])) : (m(), g("svg", Hs, [...y[24] || (y[24] = [
4416
+ h("path", {
4417
+ fill: "none",
4418
+ stroke: "currentColor",
4419
+ "stroke-linecap": "round",
4420
+ "stroke-linejoin": "round",
4421
+ "stroke-width": "2",
4422
+ d: "m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"
4423
+ }, null, -1)
4424
+ ])]))
4425
+ ], 40, Ns)) : se("", !0),
4426
+ L.value && e.showPreviewButton ? (m(), g("button", {
4427
+ key: 3,
4428
+ type: "button",
4429
+ class: "code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",
4430
+ "aria-label": B(r)("common.preview") || "Preview",
4431
+ onClick: Ce,
4432
+ onMouseenter: y[15] || (y[15] = ($) => oe($, B(r)("common.preview") || "Preview")),
4433
+ onFocus: y[16] || (y[16] = ($) => oe($, B(r)("common.preview") || "Preview")),
4434
+ onMouseleave: D,
4435
+ onBlur: D
4436
+ }, [...y[25] || (y[25] = [
4437
+ h("svg", {
4438
+ "data-v-3d59cc65": "",
4439
+ xmlns: "http://www.w3.org/2000/svg",
4440
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
4441
+ "aria-hidden": "true",
4442
+ role: "img",
4443
+ width: "1em",
4444
+ height: "1em",
4445
+ viewBox: "0 0 24 24",
4446
+ class: "w-3 h-3"
4447
+ }, [
4448
+ h("g", {
4449
+ fill: "none",
4450
+ stroke: "currentColor",
4451
+ "stroke-linecap": "round",
4452
+ "stroke-linejoin": "round",
4453
+ "stroke-width": "2"
4454
+ }, [
4455
+ h("path", { d: "M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0" }),
4456
+ h("circle", {
4457
+ cx: "12",
4458
+ cy: "12",
4459
+ r: "3"
4460
+ })
4461
+ ])
4462
+ ], -1)
4463
+ ])], 40, Rs)) : se("", !0)
4464
+ ])
4465
+ ], !0)
4466
+ ])) : se("", !0),
4467
+ sn(h("div", {
4468
+ ref_key: "codeBlockContent",
4469
+ ref: l,
4470
+ class: "code-block-content",
4471
+ style: Re(W.value),
4472
+ onScroll: ot
4473
+ }, null, 36), [
4474
+ [ln, !f.value && (t.stream ? !0 : !t.loading)]
4475
+ ]),
4476
+ sn(h("div", Ds, [
4477
+ Je(x.$slots, "loading", {
4478
+ loading: t.loading,
4479
+ stream: t.stream
4480
+ }, () => [
4481
+ y[26] || (y[26] = h("div", { class: "loading-skeleton" }, [
4482
+ h("div", { class: "skeleton-line" }),
4483
+ h("div", { class: "skeleton-line" }),
4484
+ h("div", { class: "skeleton-line short" })
4485
+ ], -1))
4486
+ ], !0)
4487
+ ], 512), [
4488
+ [ln, !t.stream && t.loading]
4489
+ ])
4490
+ ], 6));
4491
+ }
4492
+ }), $n = /* @__PURE__ */ O(zs, [["__scopeId", "data-v-493dbba3"]]);
4493
+ $n.install = (t) => {
4494
+ t.component($n.__name, $n);
4495
+ };
4496
+ let Fe = null, ht = null, ho = !1;
4497
+ const _e = /* @__PURE__ */ new Map(), st = /* @__PURE__ */ new Map(), So = 200;
4498
+ let _t = 5;
4499
+ const bt = /* @__PURE__ */ new Set();
4500
+ function mn() {
4501
+ if (_e.size < _t && bt.size) {
4502
+ const t = Array.from(bt);
4503
+ bt.clear();
4504
+ for (const n of t)
4505
+ try {
4506
+ n();
4507
+ } catch (e) {
4508
+ }
4509
+ }
4510
+ }
4511
+ let Ge = null;
4512
+ function dl(t) {
4513
+ Fe = t, ht = null, Fe.onmessage = (n) => {
4514
+ const { id: e, html: a, error: r } = n.data, u = _e.get(e);
4515
+ if (u)
4516
+ if (_e.delete(e), clearTimeout(u.timeoutId), mn(), r)
4517
+ u.reject(new Error(r));
4518
+ else {
4519
+ const { content: s, displayMode: d } = n.data;
4520
+ if (s) {
4521
+ const f = `${d ? "d" : "i"}:${s}`;
4522
+ if (st.set(f, a), st.size > So) {
4523
+ const l = st.keys().next().value;
4524
+ st.delete(l);
4525
+ }
4526
+ }
4527
+ u.resolve(a);
4528
+ }
4529
+ }, Fe.onerror = (n) => {
4530
+ console.error("[katexWorkerClient] Worker error:", n);
4531
+ for (const [e, a] of _e.entries())
4532
+ clearTimeout(a.timeoutId), a.reject(new Error(`Worker error: ${n.message}`));
4533
+ _e.clear(), mn();
4534
+ };
4535
+ }
4536
+ function ml() {
4537
+ var t;
4538
+ Fe && ((t = Fe.terminate) == null || t.call(Fe)), Fe = null, ht = null;
4539
+ }
4540
+ function As() {
4541
+ return Fe || (ht = new Error("[katexWorkerClient] No worker instance set. Please inject a Worker via setKaTeXWorker()."), ht.name = "WorkerInitError", ht.code = "WORKER_INIT_ERROR", null);
4542
+ }
4543
+ function hl(t) {
4544
+ ho = !!t, Fe && Fe.postMessage({ type: "init", debug: ho });
4545
+ }
4546
+ function Ps(t, n = !0, e = 2e3, a) {
4547
+ return N(this, null, function* () {
4548
+ const r = performance.now();
4549
+ if (!Bo()) {
4550
+ const f = new Error("KaTeX rendering disabled");
4551
+ return f.name = "KaTeXDisabled", f.code = "KATEX_DISABLED", Promise.reject(f);
4552
+ }
4553
+ if (ht)
4554
+ return Promise.reject(ht);
4555
+ const u = `${n ? "d" : "i"}:${t}`, s = st.get(u);
4556
+ if (s)
4557
+ return Ge && Ge.recordRender({
4558
+ type: "cache-hit",
4559
+ duration: performance.now() - r,
4560
+ formulaLength: t.length,
4561
+ timestamp: Date.now(),
4562
+ success: !0
4563
+ }), Promise.resolve(s);
4564
+ const d = As();
4565
+ if (!d)
4566
+ return Promise.reject(ht);
4567
+ if (_e.size >= _t) {
4568
+ const f = new Error("Worker busy");
4569
+ return f.name = "WorkerBusy", f.code = "WORKER_BUSY", f.busy = !0, f.inFlight = _e.size, f.max = _t, Ge && Ge.recordRender({
4570
+ type: "worker",
4571
+ duration: performance.now() - r,
4572
+ formulaLength: t.length,
4573
+ timestamp: Date.now(),
4574
+ success: !1,
4575
+ error: "busy"
4576
+ }), Promise.reject(f);
4577
+ }
4578
+ return new Promise((f, l) => {
4579
+ if (a != null && a.aborted) {
4580
+ const R = new Error("Aborted");
4581
+ R.name = "AbortError", l(R);
4582
+ return;
4583
+ }
4584
+ const k = Math.random().toString(36).slice(2), p = globalThis.setTimeout(() => {
4585
+ _e.delete(k);
4586
+ const R = new Error("Worker render timed out");
4587
+ R.name = "WorkerTimeout", R.code = "WORKER_TIMEOUT", Ge && Ge.recordRender({
4588
+ type: "worker",
4589
+ duration: performance.now() - r,
4590
+ formulaLength: t.length,
4591
+ timestamp: Date.now(),
4592
+ success: !1,
4593
+ error: "timeout"
4594
+ }), l(R), mn();
4595
+ }, e), _ = () => {
4596
+ globalThis.clearTimeout(p), _e.has(k) && _e.delete(k);
4597
+ const R = new Error("Aborted");
4598
+ R.name = "AbortError", l(R), mn();
4599
+ };
4600
+ a && a.addEventListener("abort", _, { once: !0 });
4601
+ const T = f, P = l, K = (R) => {
4602
+ Ge && Ge.recordRender({
4603
+ type: "worker",
4604
+ duration: performance.now() - r,
4605
+ formulaLength: t.length,
4606
+ timestamp: Date.now(),
4607
+ success: !0
4608
+ }), T(R);
4609
+ }, X = (R) => {
4610
+ Ge && Ge.recordRender({
4611
+ type: "worker",
4612
+ duration: performance.now() - r,
4613
+ formulaLength: t.length,
4614
+ timestamp: Date.now(),
4615
+ success: !1,
4616
+ error: (R == null ? void 0 : R.message) || String(R)
4617
+ }), P(R);
4618
+ };
4619
+ _e.set(k, { resolve: K, reject: X, timeoutId: p }), d.postMessage({ id: k, content: t, displayMode: n });
4620
+ });
4621
+ });
4622
+ }
4623
+ function fl(t, n = !0, e) {
4624
+ const a = `${n ? "d" : "i"}:${t}`;
4625
+ if (st.set(a, e), st.size > So) {
4626
+ const r = st.keys().next().value;
4627
+ st.delete(r);
4628
+ }
4629
+ }
4630
+ function vl() {
4631
+ return { inFlight: _e.size, max: _t };
4632
+ }
4633
+ function pl(t) {
4634
+ Number.isFinite(t) && t > 0 && (_t = Math.floor(t));
4635
+ }
4636
+ const Vs = "WORKER_BUSY";
4637
+ function gl() {
4638
+ return _e.size >= _t;
4639
+ }
4640
+ function Ks(t = 2e3, n) {
4641
+ return _e.size < _t ? Promise.resolve() : new Promise((e, a) => {
4642
+ let r = !1, u;
4643
+ const s = () => {
4644
+ r || (r = !0, u && globalThis.clearTimeout(u), bt.delete(s), e());
4645
+ };
4646
+ if (bt.add(s), u = globalThis.setTimeout(() => {
4647
+ if (r)
4648
+ return;
4649
+ r = !0, bt.delete(s);
4650
+ const d = new Error("Wait for worker slot timed out");
4651
+ d.name = "WorkerBusyTimeout", d.code = "WORKER_BUSY_TIMEOUT", a(d);
4652
+ }, t), queueMicrotask(() => mn()), n) {
4653
+ const d = () => {
4654
+ if (r)
4655
+ return;
4656
+ r = !0, u && globalThis.clearTimeout(u), bt.delete(s);
4657
+ const f = new Error("Aborted");
4658
+ f.name = "AbortError", a(f);
4659
+ };
4660
+ n.aborted ? d() : n.addEventListener("abort", d, { once: !0 });
4661
+ }
4662
+ });
4663
+ }
4664
+ const lt = {
4665
+ timeout: 2e3,
4666
+ waitTimeout: 1500,
4667
+ backoffMs: 30,
4668
+ maxRetries: 1
4669
+ };
4670
+ function wl(t) {
4671
+ t.timeout != null && (lt.timeout = Math.max(0, Math.floor(t.timeout))), t.waitTimeout != null && (lt.waitTimeout = Math.max(0, Math.floor(t.waitTimeout))), t.backoffMs != null && (lt.backoffMs = Math.max(0, Math.floor(t.backoffMs))), t.maxRetries != null && (lt.maxRetries = Math.max(0, Math.floor(t.maxRetries)));
4672
+ }
4673
+ function kl() {
4674
+ return qe({}, lt);
4675
+ }
4676
+ function yl(a) {
4677
+ return N(this, arguments, function* (t, n = !0, e = {}) {
4678
+ var k, p, _, T;
4679
+ if (!Bo()) {
4680
+ const P = new Error("KaTeX rendering disabled");
4681
+ throw P.name = "KaTeXDisabled", P.code = "KATEX_DISABLED", P;
4682
+ }
4683
+ const r = (k = e.timeout) != null ? k : lt.timeout, u = (p = e.waitTimeout) != null ? p : lt.waitTimeout, s = (_ = e.backoffMs) != null ? _ : lt.backoffMs, d = (T = e.maxRetries) != null ? T : lt.maxRetries, f = e.signal;
4684
+ let l = 0;
4685
+ for (; ; ) {
4686
+ if (f != null && f.aborted) {
4687
+ const P = new Error("Aborted");
4688
+ throw P.name = "AbortError", P;
4689
+ }
4690
+ try {
4691
+ return yield Ps(t, n, r, f);
4692
+ } catch (P) {
4693
+ if ((P == null ? void 0 : P.code) !== Vs || l >= d)
4694
+ throw P;
4695
+ if (l++, yield Ks(u, f).catch(() => {
4696
+ }), f != null && f.aborted) {
4697
+ const K = new Error("Aborted");
4698
+ throw K.name = "AbortError", K;
4699
+ }
4700
+ s > 0 && (yield new Promise((K) => globalThis.setTimeout(K, s * l)));
4701
+ }
4702
+ }
4703
+ });
4704
+ }
4705
+ const Ws = zt(() => import("./index-CDRkq20z.js")), Os = zt(() => import("./index-DdtMPiwH.js")), Fs = zt(() => import("./index-DoRl8S3_.js")), Xs = {
4706
+ AdmonitionNode: an,
4707
+ BlockquoteNode: Zt,
4708
+ CheckboxNode: Qe,
4709
+ CodeBlockNode: Ws,
4710
+ DefinitionListNode: Gt,
4711
+ EmojiNode: Be,
4712
+ FootnoteNode: Qt,
4713
+ FootnoteReferenceNode: $e,
4714
+ FootnoteAnchorNode: Nt,
4715
+ HardBreakNode: Ct,
4716
+ HeadingNode: qn,
4717
+ HighlightNode: Pe,
4718
+ ImageNode: dt,
4719
+ InlineCodeNode: Ie,
4720
+ PreCodeNode: Ht,
4721
+ InsertNode: Ae,
4722
+ LinkNode: Le,
4723
+ ListItemNode: en,
4724
+ ListNode: tn,
4725
+ MathBlockNode: Os,
4726
+ MathInlineNode: Fs,
4727
+ MermaidBlockNode: jt,
4728
+ ParagraphNode: nn,
4729
+ StrikethroughNode: Ee,
4730
+ StrongNode: Se,
4731
+ SubscriptNode: ze,
4732
+ SuperscriptNode: De,
4733
+ TableNode: on,
4734
+ TextNode: ge,
4735
+ ThematicBreakNode: rn,
4736
+ ReferenceNode: Te,
4737
+ MarkdownCodeBlockNode: $n
4738
+ }, xl = {
4739
+ install(t, n) {
4740
+ Object.entries(Xs).forEach(([e, a]) => {
4741
+ t.component(e, a);
4742
+ }), n != null && n.getLanguageIcon && ws(n.getLanguageIcon), n != null && n.mathOptions && Ao(n.mathOptions);
4743
+ }
4744
+ };
4745
+ export {
4746
+ Se as $,
4747
+ an as A,
4748
+ Zt as B,
4749
+ Qe as C,
4750
+ Gt as D,
4751
+ Be as E,
4752
+ Nt as F,
4753
+ ca as G,
4754
+ Ct as H,
4755
+ dt as I,
4756
+ en as J,
4757
+ tn as K,
4758
+ Le as L,
4759
+ $n as M,
4760
+ Xe as N,
4761
+ Os as O,
4762
+ Fs as P,
4763
+ jt as Q,
4764
+ nn as R,
4765
+ Te as S,
4766
+ Js as T,
4767
+ Gs as U,
4768
+ el as V,
4769
+ Vs as W,
4770
+ _o as X,
4771
+ Io as Y,
4772
+ Ee as Z,
4773
+ O as _,
4774
+ Fn as a,
4775
+ ze as a0,
4776
+ De as a1,
4777
+ on as a2,
4778
+ ge as a3,
4779
+ rn as a4,
4780
+ xl as a5,
4781
+ ws as a6,
4782
+ dl as a7,
4783
+ ml as a8,
4784
+ hl as a9,
4785
+ Ps as aa,
4786
+ vl as ab,
4787
+ pl as ac,
4788
+ gl as ad,
4789
+ Ks as ae,
4790
+ wl as af,
4791
+ kl as ag,
4792
+ al as ah,
4793
+ il as ai,
4794
+ sl as aj,
4795
+ fa as ak,
4796
+ va as al,
4797
+ ll as am,
4798
+ cl as an,
4799
+ ga as ao,
4800
+ wa as ap,
4801
+ ao as aq,
4802
+ ks as b,
4803
+ Ht as c,
4804
+ dn as d,
4805
+ Yn as e,
4806
+ fl as f,
4807
+ ul as g,
4808
+ Wn as h,
4809
+ Qs as i,
4810
+ Ws as j,
4811
+ nl as k,
4812
+ ys as l,
4813
+ rl as m,
4814
+ tl as n,
4815
+ ol as o,
4816
+ Qt as p,
4817
+ $e as q,
4818
+ yl as r,
4819
+ sa as s,
4820
+ et as t,
4821
+ On as u,
4822
+ qn as v,
4823
+ Pe as w,
4824
+ Ie as x,
4825
+ Ae as y,
4826
+ Bo as z
4827
+ };