@antdv-next/x 1.2.1-beta.1 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/attachments/index.js +1 -2
  2. package/dist/code-highlighter/style/index.d.ts +51 -19
  3. package/dist/code-highlighter/style/index.js +44 -31
  4. package/dist/index.umd.js +54 -44
  5. package/dist/package.js +1 -1
  6. package/dist/sender/hooks/use-speech.js +1 -2
  7. package/dist/suggestion/useActive.js +2 -0
  8. package/dist/theme/util/alias.js +5 -5
  9. package/dist/think/Think.js +2 -3
  10. package/dist/thought-chain/Node.js +2 -3
  11. package/dist/x-provider/index.js +2 -3
  12. package/es/{_basePickBy-CrbncDqR.js → _basePickBy-BL4DHvHb.js} +1 -1
  13. package/es/{_baseUniq-B-qU_Imh.js → _baseUniq-CyFYmJd-.js} +7 -7
  14. package/es/antdv-next-x.esm.js +253 -245
  15. package/es/architecture-PBZL5I3N-M9p1teRv.js +3 -0
  16. package/es/{architectureDiagram-2XIMDMQ5-OvuktNfv.js → architectureDiagram-2XIMDMQ5-zW5aGalx.js} +99 -89
  17. package/es/{blockDiagram-WCTKOSBZ-CS-kh74L.js → blockDiagram-WCTKOSBZ-0QujSG-h.js} +36 -33
  18. package/es/{c4Diagram-IC4MRINW-BZGIF4Dk.js → c4Diagram-IC4MRINW-B7y07WFn.js} +24 -16
  19. package/es/{channel-DrSSYyxp.js → channel-CxLj88Pg.js} +1 -1
  20. package/es/{chunk-4BX2VUAB-Rm8-te6i.js → chunk-4BX2VUAB-CprgMM4u.js} +1 -1
  21. package/es/{chunk-55IACEB6-Tre45n-8.js → chunk-55IACEB6-BpkEkHy8.js} +1 -1
  22. package/es/{chunk-7R4GIKGN-scch4dXY.js → chunk-7R4GIKGN-mKY502R8.js} +6 -4
  23. package/es/{chunk-FMBD7UC4-JmekSPZP.js → chunk-FMBD7UC4-B88neS61.js} +1 -1
  24. package/es/{chunk-GEFDOKGD-BEzc6NZw.js → chunk-GEFDOKGD-oBEpn5hN.js} +67 -27
  25. package/es/chunk-GLR3WWYH-B2D9kjtF.js +41 -0
  26. package/es/chunk-HHEYEP7N-DcZkCke2.js +9 -0
  27. package/es/{chunk-JSJVCQXG-_l_UVbaa.js → chunk-JSJVCQXG-BbVOaXjl.js} +3 -3
  28. package/es/{chunk-KX2RTZJC-BUWM8pJz.js → chunk-KX2RTZJC-Dw3D7Wrw.js} +2 -2
  29. package/es/{chunk-KYZI473N-BSgb_E0Q.js → chunk-KYZI473N-33-uii7Y.js} +10 -10
  30. package/es/{chunk-MX3YWQON-D602L8pU.js → chunk-MX3YWQON-D4cz36rq.js} +1 -1
  31. package/es/{chunk-NQ4KR5QH-BPQV0i93.js → chunk-NQ4KR5QH-CprADZhD.js} +44 -40
  32. package/es/{chunk-O4XLMI2P-BMqc3iYa.js → chunk-O4XLMI2P-DBAvycZ-.js} +13 -14
  33. package/es/{chunk-PQ6SQG4A-DcYrzB1X.js → chunk-PQ6SQG4A-BITIwHAS.js} +2 -2
  34. package/es/{chunk-PU5JKC2W-TuGY6X1n.js → chunk-PU5JKC2W-DIl8TkGX.js} +22 -26
  35. package/es/{chunk-QZHKN3VN-CKbD02cl.js → chunk-QZHKN3VN-Cg0ROtzE.js} +1 -1
  36. package/es/{chunk-WL4C6EOR-B31ErTFp.js → chunk-WL4C6EOR-Bhp_3T_o.js} +15 -15
  37. package/es/chunk-XPW4576I-255j2Rgd.js +1146 -0
  38. package/es/{chunk-XZSTWKYB-DYKLwCEy.js → chunk-XZSTWKYB-kjAdbx6i.js} +266 -321
  39. package/es/{chunk-YBOYWFTD-CRiKEIiS.js → chunk-YBOYWFTD-C2IdGsg8.js} +5 -5
  40. package/es/classDiagram-VBA2DB6C-BQonl2jX.js +29 -0
  41. package/es/classDiagram-v2-RAHNMMFH-C9U3lqTc.js +29 -0
  42. package/es/{clone-yzFtXY5G.js → clone-DIGEZsKS.js} +1 -1
  43. package/es/{cose-bilkent-S5V4N54A-BM90wTBk.js → cose-bilkent-S5V4N54A-Cyxewg9z.js} +36 -31
  44. package/es/{cytoscape.esm-B_-hKv4-.js → cytoscape.esm-DBPri10E.js} +197 -155
  45. package/es/{dagre-DCYVBij1.js → dagre-BHOjJWBG.js} +26 -24
  46. package/es/{dagre-KLK3FWXG-Ced70SgJ.js → dagre-KLK3FWXG-CnJPDj7X.js} +17 -18
  47. package/es/{defaultLocale-yzzuPw6P.js → defaultLocale-aSMWOJHq.js} +4 -1
  48. package/es/{diagram-E7M64L7V-xZCloH_i.js → diagram-E7M64L7V-CBOCgbMd.js} +22 -24
  49. package/es/{diagram-IFDJBPK2-BTmFZhvz.js → diagram-IFDJBPK2-BtubJp0H.js} +11 -11
  50. package/es/{diagram-P4PSJMXO-DX_3B0LB.js → diagram-P4PSJMXO-CI30BBYG.js} +10 -10
  51. package/es/{dist-h4ggShny.js → dist-BpM0Gz7z.js} +1 -1
  52. package/es/{erDiagram-INFDFZHY-MJ_HVY-7.js → erDiagram-INFDFZHY-C8hYuPxm.js} +21 -21
  53. package/es/{flowDiagram-PKNHOUZH-CQIRy1sx.js → flowDiagram-PKNHOUZH-D5vrDkks.js} +40 -33
  54. package/es/{ganttDiagram-A5KZAMGK-Dw9bjWjx.js → ganttDiagram-A5KZAMGK-BmIEQBGq.js} +33 -21
  55. package/es/gitGraph-HDMCJU4V-x8fnR2OX.js +3 -0
  56. package/es/{gitGraphDiagram-K3NZZRJ6-Gk6FiGbZ.js → gitGraphDiagram-K3NZZRJ6-PO0pMJD3.js} +7 -7
  57. package/es/{graphlib-BMvIh7N7.js → graphlib-DqWOhV4K.js} +2 -2
  58. package/es/info-3K5VOQVL-CRBCVSej.js +3 -0
  59. package/es/{infoDiagram-LFFYTUFH-CS64-uil.js → infoDiagram-LFFYTUFH-DOcKfbXf.js} +4 -4
  60. package/es/{init-sjaVZO3f.js → init-Co4dhKfe.js} +3 -1
  61. package/es/isEmpty-BJdINx-6.js +35 -0
  62. package/es/{ishikawaDiagram-PHBUUO56-C_Hw5UnV.js → ishikawaDiagram-PHBUUO56-DM1elxPS.js} +12 -12
  63. package/es/{journeyDiagram-4ABVD52K-CFFyM4Ar.js → journeyDiagram-4ABVD52K-BnYWOH1P.js} +11 -11
  64. package/es/{kanban-definition-K7BYSVSG-B_R-mA10.js → kanban-definition-K7BYSVSG-Ys7nAs7y.js} +27 -26
  65. package/es/{katex-C-qdUNlg.js → katex-olkKUfKs.js} +52 -62
  66. package/es/{line-D05MESIS.js → line-Cm2n2y9Z.js} +1 -1
  67. package/es/{linear-B8tPH2Pw.js → linear-D-yDc6KG.js} +6 -4
  68. package/es/{mermaid-parser.core-C_69nk7j.js → mermaid-parser.core-DFgQn74w.js} +8 -8
  69. package/es/mermaid.core-BzgA0NbC.js +680 -0
  70. package/es/{mindmap-definition-YRQLILUH-qgGUYYe3.js → mindmap-definition-YRQLILUH-Ca8psfLi.js} +26 -24
  71. package/es/{ordinal-CNQzPcrr.js → ordinal-95c16pGC.js} +1 -1
  72. package/es/packet-RMMSAZCW-CyE-elPF.js +3 -0
  73. package/es/pie-UPGHQEXC-EfdQ-_OF.js +3 -0
  74. package/es/{pieDiagram-SKSYHLDU-B8-AVOmP.js → pieDiagram-SKSYHLDU-DhQSMJCw.js} +11 -11
  75. package/es/{quadrantDiagram-337W2JSQ-C2Z0CN4Z.js → quadrantDiagram-337W2JSQ-jOtIC8r0.js} +9 -9
  76. package/es/radar-KQ55EAFF-B68vkNB4.js +3 -0
  77. package/es/{requirementDiagram-Z7DCOOCP-Cdj7PwWC.js → requirementDiagram-Z7DCOOCP-CNngzPE4.js} +18 -18
  78. package/es/{rolldown-runtime-CEY2VRuR.js → rolldown-runtime-Dv1pqm0U.js} +2 -2
  79. package/es/{sankeyDiagram-WA2Y5GQK-BNmU-dM1.js → sankeyDiagram-WA2Y5GQK-BgsyVNdD.js} +9 -9
  80. package/es/{sequenceDiagram-2WXFIKYE-pj0uPf22.js → sequenceDiagram-2WXFIKYE-BAc5PP9P.js} +46 -34
  81. package/es/{shiki-runtime-7QG17np_.js → shiki-runtime-BlKUZiZP.js} +41 -44
  82. package/es/{src-Dynw_Lub.js → src-3T61hYex.js} +1 -1
  83. package/es/{stateDiagram-RAJIS63D-BgCfMnGb.js → stateDiagram-RAJIS63D-153LjStx.js} +18 -18
  84. package/es/stateDiagram-v2-FVOUBMTO-BXEvy1YD.js +27 -0
  85. package/es/{timeline-definition-YZTLITO2-Bj5QKnBI.js → timeline-definition-YZTLITO2-BLhlkb_X.js} +8 -8
  86. package/es/treemap-KZPCXAKY-Dg_ShzRB.js +3 -0
  87. package/es/{vennDiagram-LZ73GAT5-lpWcIvN6.js → vennDiagram-LZ73GAT5-BTYWphmf.js} +13 -13
  88. package/es/{xychartDiagram-JWTSCODW-De1M-7Yz.js → xychartDiagram-JWTSCODW-B9Nlu6S_.js} +29 -25
  89. package/package.json +1 -1
  90. package/es/architecture-PBZL5I3N-BRGGaMu3.js +0 -3
  91. package/es/classDiagram-VBA2DB6C-BDqwxUdU.js +0 -29
  92. package/es/classDiagram-v2-RAHNMMFH-DdmOjeUb.js +0 -29
  93. package/es/gitGraph-HDMCJU4V-oForq_Vw.js +0 -3
  94. package/es/info-3K5VOQVL-0F-ZLEMx.js +0 -3
  95. package/es/mermaid.core-BVGVwWcu.js +0 -1914
  96. package/es/packet-RMMSAZCW-CeqtQQ_e.js +0 -3
  97. package/es/pie-UPGHQEXC-BI60FhK4.js +0 -3
  98. package/es/radar-KQ55EAFF-CRwOOFw0.js +0 -3
  99. package/es/stateDiagram-v2-FVOUBMTO-ByMhP6Xo.js +0 -27
  100. package/es/treemap-KZPCXAKY-BlOAFUbR.js +0 -3
@@ -1,1914 +0,0 @@
1
- import { n as e, r as t, t as n } from "./Serializer-Sc9uEpQk.js";
2
- import { _ as r, g as i, h as a, p as o } from "./src-Dynw_Lub.js";
3
- import { G as s, I as c, L as l, U as u, V as d, b as f, f as p, g as m, m as h, w as g, x as _, y as v } from "./isArrayLikeObject-Dqk_yOP-.js";
4
- import { a as ee, d as te, h as y, i as ne, m as re, r as ie, u as ae } from "./chunk-GEFDOKGD-BEzc6NZw.js";
5
- import { F as b, G as oe, H as se, J as ce, M as x, N as le, S as ue, T as de, X as fe, Y as pe, Z as me, b as he, c as ge, f as _e, g as ve, h as ye, l as be, n as xe, p as Se, r as Ce, s as we, t as Te, w as Ee, x as De, y as S, z as Oe } from "./chunk-7R4GIKGN-scch4dXY.js";
6
- import { i as ke, o as Ae } from "./chunk-PU5JKC2W-TuGY6X1n.js";
7
- import "./chunk-MX3YWQON-D602L8pU.js";
8
- import "./chunk-YBOYWFTD-CRiKEIiS.js";
9
- import "./chunk-PQ6SQG4A-DcYrzB1X.js";
10
- import { a as je, i as Me, s as Ne } from "./chunk-KYZI473N-BSgb_E0Q.js";
11
- import { a as Pe, i as Fe, n as Ie, r as Le } from "./chunk-O4XLMI2P-BMqc3iYa.js";
12
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_WeakMap.js
13
- var Re = c(s, "WeakMap"), ze = h(Object.keys, Object), Be = Object.prototype.hasOwnProperty;
14
- function Ve(e) {
15
- if (!_(e)) return ze(e);
16
- var t = [];
17
- for (var n in Object(e)) Be.call(e, n) && n != "constructor" && t.push(n);
18
- return t;
19
- }
20
- //#endregion
21
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_DataView.js
22
- var He = c(s, "DataView"), Ue = c(s, "Promise"), We = c(s, "Set"), Ge = "[object Map]", Ke = "[object Object]", qe = "[object Promise]", Je = "[object Set]", Ye = "[object WeakMap]", Xe = "[object DataView]", Ze = l(He), Qe = l(p), $e = l(Ue), et = l(We), tt = l(Re), C = u;
23
- (He && C(new He(/* @__PURE__ */ new ArrayBuffer(1))) != Xe || p && C(new p()) != Ge || Ue && C(Ue.resolve()) != qe || We && C(new We()) != Je || Re && C(new Re()) != Ye) && (C = function(e) {
24
- var t = u(e), n = t == Ke ? e.constructor : void 0, r = n ? l(n) : "";
25
- if (r) switch (r) {
26
- case Ze: return Xe;
27
- case Qe: return Ge;
28
- case $e: return qe;
29
- case et: return Je;
30
- case tt: return Ye;
31
- }
32
- return t;
33
- });
34
- var nt = C, rt = "[object Map]", it = "[object Set]", at = Object.prototype.hasOwnProperty;
35
- function ot(e) {
36
- if (e == null) return !0;
37
- if (g(e) && (d(e) || typeof e == "string" || typeof e.splice == "function" || v(e) || m(e) || f(e))) return !e.length;
38
- var t = nt(e);
39
- if (t == rt || t == it) return !e.size;
40
- if (_(e)) return !Ve(e).length;
41
- for (var n in e) if (at.call(e, n)) return !1;
42
- return !0;
43
- }
44
- //#endregion
45
- //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HHEYEP7N.mjs
46
- var st = /* @__PURE__ */ a((e) => {
47
- let { securityLevel: t } = he(), n = o("body");
48
- if (t === "sandbox") {
49
- let t = o(`#i${e}`).node()?.contentDocument ?? document;
50
- n = o(t.body);
51
- }
52
- return n.select(`#${e}`);
53
- }, "selectSvgElement"), ct = {
54
- common: we,
55
- getConfig: S,
56
- insertCluster: Me,
57
- insertEdge: Ie,
58
- insertEdgeLabel: Le,
59
- insertMarkers: Fe,
60
- insertNode: je,
61
- interpolateToCurve: ae,
62
- labelHelper: Ne,
63
- log: i,
64
- positionEdgeLabel: Pe
65
- }, w = {}, lt = /* @__PURE__ */ a((e) => {
66
- for (let t of e) w[t.name] = t;
67
- }, "registerLayoutLoaders");
68
- (/* @__PURE__ */ a(() => {
69
- lt([{
70
- name: "dagre",
71
- loader: /* @__PURE__ */ a(async () => await import("./dagre-KLK3FWXG-Ced70SgJ.js"), "loader")
72
- }, {
73
- name: "cose-bilkent",
74
- loader: /* @__PURE__ */ a(async () => await import("./cose-bilkent-S5V4N54A-BM90wTBk.js"), "loader")
75
- }]);
76
- }, "registerDefaultLayoutLoaders"))();
77
- var ut = /* @__PURE__ */ a(async (e, t) => {
78
- if (!(e.layoutAlgorithm in w)) throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);
79
- let n = w[e.layoutAlgorithm];
80
- return (await n.loader()).render(e, t, ct, { algorithm: n.algorithm });
81
- }, "render"), dt = /* @__PURE__ */ a((e = "", { fallback: t = "dagre" } = {}) => {
82
- if (e in w) return e;
83
- if (t in w) return i.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`), t;
84
- throw Error(`Both layout algorithms ${e} and ${t} are not registered.`);
85
- }, "getRegisteredLayoutAlgorithm");
86
- //#endregion
87
- //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XPW4576I.mjs
88
- function ft(e) {
89
- return e == null;
90
- }
91
- a(ft, "isNothing");
92
- function pt(e) {
93
- return typeof e == "object" && !!e;
94
- }
95
- a(pt, "isObject");
96
- function mt(e) {
97
- return Array.isArray(e) ? e : ft(e) ? [] : [e];
98
- }
99
- a(mt, "toArray");
100
- function ht(e, t) {
101
- var n, r, i, a;
102
- if (t) for (a = Object.keys(t), n = 0, r = a.length; n < r; n += 1) i = a[n], e[i] = t[i];
103
- return e;
104
- }
105
- a(ht, "extend");
106
- function gt(e, t) {
107
- var n = "", r;
108
- for (r = 0; r < t; r += 1) n += e;
109
- return n;
110
- }
111
- a(gt, "repeat");
112
- function _t(e) {
113
- return e === 0 && 1 / e == -Infinity;
114
- }
115
- a(_t, "isNegativeZero");
116
- var T = {
117
- isNothing: ft,
118
- isObject: pt,
119
- toArray: mt,
120
- repeat: gt,
121
- isNegativeZero: _t,
122
- extend: ht
123
- };
124
- function vt(e, t) {
125
- var n = "", r = e.reason || "(unknown reason)";
126
- return e.mark ? (e.mark.name && (n += "in \"" + e.mark.name + "\" "), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += "\n\n" + e.mark.snippet), r + " " + n) : r;
127
- }
128
- a(vt, "formatError");
129
- function E(e, t) {
130
- Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = vt(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ Error()).stack || "";
131
- }
132
- a(E, "YAMLException$1"), E.prototype = Object.create(Error.prototype), E.prototype.constructor = E, E.prototype.toString = /* @__PURE__ */ a(function(e) {
133
- return this.name + ": " + vt(this, e);
134
- }, "toString");
135
- var D = E;
136
- function yt(e, t, n, r, i) {
137
- var a = "", o = "", s = Math.floor(i / 2) - 1;
138
- return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
139
- str: a + e.slice(t, n).replace(/\t/g, "→") + o,
140
- pos: r - t + a.length
141
- };
142
- }
143
- a(yt, "getLine");
144
- function bt(e, t) {
145
- return T.repeat(" ", t - e.length) + e;
146
- }
147
- a(bt, "padStart");
148
- function xt(e, t) {
149
- if (t = Object.create(t || null), !e.buffer) return null;
150
- t.maxLength || (t.maxLength = 79), typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
151
- for (var n = /\r?\n|\r|\0/g, r = [0], i = [], a, o = -1; a = n.exec(e.buffer);) i.push(a.index), r.push(a.index + a[0].length), e.position <= a.index && o < 0 && (o = r.length - 2);
152
- o < 0 && (o = r.length - 1);
153
- var s = "", c, l, u = Math.min(e.line + t.linesAfter, i.length).toString().length, d = t.maxLength - (t.indent + u + 3);
154
- for (c = 1; c <= t.linesBefore && !(o - c < 0); c++) l = yt(e.buffer, r[o - c], i[o - c], e.position - (r[o] - r[o - c]), d), s = T.repeat(" ", t.indent) + bt((e.line - c + 1).toString(), u) + " | " + l.str + "\n" + s;
155
- for (l = yt(e.buffer, r[o], i[o], e.position, d), s += T.repeat(" ", t.indent) + bt((e.line + 1).toString(), u) + " | " + l.str + "\n", s += T.repeat("-", t.indent + u + 3 + l.pos) + "^\n", c = 1; c <= t.linesAfter && !(o + c >= i.length); c++) l = yt(e.buffer, r[o + c], i[o + c], e.position - (r[o] - r[o + c]), d), s += T.repeat(" ", t.indent) + bt((e.line + c + 1).toString(), u) + " | " + l.str + "\n";
156
- return s.replace(/\n$/, "");
157
- }
158
- a(xt, "makeSnippet");
159
- var St = xt, Ct = [
160
- "kind",
161
- "multi",
162
- "resolve",
163
- "construct",
164
- "instanceOf",
165
- "predicate",
166
- "represent",
167
- "representName",
168
- "defaultStyle",
169
- "styleAliases"
170
- ], wt = [
171
- "scalar",
172
- "sequence",
173
- "mapping"
174
- ];
175
- function Tt(e) {
176
- var t = {};
177
- return e !== null && Object.keys(e).forEach(function(n) {
178
- e[n].forEach(function(e) {
179
- t[String(e)] = n;
180
- });
181
- }), t;
182
- }
183
- a(Tt, "compileStyleAliases");
184
- function Et(e, t) {
185
- if (t ||= {}, Object.keys(t).forEach(function(t) {
186
- if (Ct.indexOf(t) === -1) throw new D("Unknown option \"" + t + "\" is met in definition of \"" + e + "\" YAML type.");
187
- }), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
188
- return !0;
189
- }, this.construct = t.construct || function(e) {
190
- return e;
191
- }, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = Tt(t.styleAliases || null), wt.indexOf(this.kind) === -1) throw new D("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
192
- }
193
- a(Et, "Type$1");
194
- var O = Et;
195
- function Dt(e, t) {
196
- var n = [];
197
- return e[t].forEach(function(e) {
198
- var t = n.length;
199
- n.forEach(function(n, r) {
200
- n.tag === e.tag && n.kind === e.kind && n.multi === e.multi && (t = r);
201
- }), n[t] = e;
202
- }), n;
203
- }
204
- a(Dt, "compileList");
205
- function Ot() {
206
- var e = {
207
- scalar: {},
208
- sequence: {},
209
- mapping: {},
210
- fallback: {},
211
- multi: {
212
- scalar: [],
213
- sequence: [],
214
- mapping: [],
215
- fallback: []
216
- }
217
- }, t, n;
218
- function r(t) {
219
- t.multi ? (e.multi[t.kind].push(t), e.multi.fallback.push(t)) : e[t.kind][t.tag] = e.fallback[t.tag] = t;
220
- }
221
- for (a(r, "collectType"), t = 0, n = arguments.length; t < n; t += 1) arguments[t].forEach(r);
222
- return e;
223
- }
224
- a(Ot, "compileMap");
225
- function kt(e) {
226
- return this.extend(e);
227
- }
228
- a(kt, "Schema$1"), kt.prototype.extend = /* @__PURE__ */ a(function(e) {
229
- var t = [], n = [];
230
- if (e instanceof O) n.push(e);
231
- else if (Array.isArray(e)) n = n.concat(e);
232
- else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit))) e.implicit && (t = t.concat(e.implicit)), e.explicit && (n = n.concat(e.explicit));
233
- else throw new D("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
234
- t.forEach(function(e) {
235
- if (!(e instanceof O)) throw new D("Specified list of YAML types (or a single Type object) contains a non-Type object.");
236
- if (e.loadKind && e.loadKind !== "scalar") throw new D("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
237
- if (e.multi) throw new D("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
238
- }), n.forEach(function(e) {
239
- if (!(e instanceof O)) throw new D("Specified list of YAML types (or a single Type object) contains a non-Type object.");
240
- });
241
- var r = Object.create(kt.prototype);
242
- return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = Dt(r, "implicit"), r.compiledExplicit = Dt(r, "explicit"), r.compiledTypeMap = Ot(r.compiledImplicit, r.compiledExplicit), r;
243
- }, "extend");
244
- var At = new kt({ explicit: [
245
- new O("tag:yaml.org,2002:str", {
246
- kind: "scalar",
247
- construct: /* @__PURE__ */ a(function(e) {
248
- return e === null ? "" : e;
249
- }, "construct")
250
- }),
251
- new O("tag:yaml.org,2002:seq", {
252
- kind: "sequence",
253
- construct: /* @__PURE__ */ a(function(e) {
254
- return e === null ? [] : e;
255
- }, "construct")
256
- }),
257
- new O("tag:yaml.org,2002:map", {
258
- kind: "mapping",
259
- construct: /* @__PURE__ */ a(function(e) {
260
- return e === null ? {} : e;
261
- }, "construct")
262
- })
263
- ] });
264
- function jt(e) {
265
- if (e === null) return !0;
266
- var t = e.length;
267
- return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
268
- }
269
- a(jt, "resolveYamlNull");
270
- function Mt() {
271
- return null;
272
- }
273
- a(Mt, "constructYamlNull");
274
- function Nt(e) {
275
- return e === null;
276
- }
277
- a(Nt, "isNull");
278
- var Pt = new O("tag:yaml.org,2002:null", {
279
- kind: "scalar",
280
- resolve: jt,
281
- construct: Mt,
282
- predicate: Nt,
283
- represent: {
284
- canonical: /* @__PURE__ */ a(function() {
285
- return "~";
286
- }, "canonical"),
287
- lowercase: /* @__PURE__ */ a(function() {
288
- return "null";
289
- }, "lowercase"),
290
- uppercase: /* @__PURE__ */ a(function() {
291
- return "NULL";
292
- }, "uppercase"),
293
- camelcase: /* @__PURE__ */ a(function() {
294
- return "Null";
295
- }, "camelcase"),
296
- empty: /* @__PURE__ */ a(function() {
297
- return "";
298
- }, "empty")
299
- },
300
- defaultStyle: "lowercase"
301
- });
302
- function Ft(e) {
303
- if (e === null) return !1;
304
- var t = e.length;
305
- return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
306
- }
307
- a(Ft, "resolveYamlBoolean");
308
- function It(e) {
309
- return e === "true" || e === "True" || e === "TRUE";
310
- }
311
- a(It, "constructYamlBoolean");
312
- function Lt(e) {
313
- return Object.prototype.toString.call(e) === "[object Boolean]";
314
- }
315
- a(Lt, "isBoolean");
316
- var Rt = new O("tag:yaml.org,2002:bool", {
317
- kind: "scalar",
318
- resolve: Ft,
319
- construct: It,
320
- predicate: Lt,
321
- represent: {
322
- lowercase: /* @__PURE__ */ a(function(e) {
323
- return e ? "true" : "false";
324
- }, "lowercase"),
325
- uppercase: /* @__PURE__ */ a(function(e) {
326
- return e ? "TRUE" : "FALSE";
327
- }, "uppercase"),
328
- camelcase: /* @__PURE__ */ a(function(e) {
329
- return e ? "True" : "False";
330
- }, "camelcase")
331
- },
332
- defaultStyle: "lowercase"
333
- });
334
- function zt(e) {
335
- return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
336
- }
337
- a(zt, "isHexCode");
338
- function Bt(e) {
339
- return 48 <= e && e <= 55;
340
- }
341
- a(Bt, "isOctCode");
342
- function Vt(e) {
343
- return 48 <= e && e <= 57;
344
- }
345
- a(Vt, "isDecCode");
346
- function Ht(e) {
347
- if (e === null) return !1;
348
- var t = e.length, n = 0, r = !1, i;
349
- if (!t) return !1;
350
- if (i = e[n], (i === "-" || i === "+") && (i = e[++n]), i === "0") {
351
- if (n + 1 === t) return !0;
352
- if (i = e[++n], i === "b") {
353
- for (n++; n < t; n++) if (i = e[n], i !== "_") {
354
- if (i !== "0" && i !== "1") return !1;
355
- r = !0;
356
- }
357
- return r && i !== "_";
358
- }
359
- if (i === "x") {
360
- for (n++; n < t; n++) if (i = e[n], i !== "_") {
361
- if (!zt(e.charCodeAt(n))) return !1;
362
- r = !0;
363
- }
364
- return r && i !== "_";
365
- }
366
- if (i === "o") {
367
- for (n++; n < t; n++) if (i = e[n], i !== "_") {
368
- if (!Bt(e.charCodeAt(n))) return !1;
369
- r = !0;
370
- }
371
- return r && i !== "_";
372
- }
373
- }
374
- if (i === "_") return !1;
375
- for (; n < t; n++) if (i = e[n], i !== "_") {
376
- if (!Vt(e.charCodeAt(n))) return !1;
377
- r = !0;
378
- }
379
- return !(!r || i === "_");
380
- }
381
- a(Ht, "resolveYamlInteger");
382
- function Ut(e) {
383
- var t = e, n = 1, r;
384
- if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), r = t[0], (r === "-" || r === "+") && (r === "-" && (n = -1), t = t.slice(1), r = t[0]), t === "0") return 0;
385
- if (r === "0") {
386
- if (t[1] === "b") return n * parseInt(t.slice(2), 2);
387
- if (t[1] === "x") return n * parseInt(t.slice(2), 16);
388
- if (t[1] === "o") return n * parseInt(t.slice(2), 8);
389
- }
390
- return n * parseInt(t, 10);
391
- }
392
- a(Ut, "constructYamlInteger");
393
- function Wt(e) {
394
- return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !T.isNegativeZero(e);
395
- }
396
- a(Wt, "isInteger");
397
- var Gt = new O("tag:yaml.org,2002:int", {
398
- kind: "scalar",
399
- resolve: Ht,
400
- construct: Ut,
401
- predicate: Wt,
402
- represent: {
403
- binary: /* @__PURE__ */ a(function(e) {
404
- return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
405
- }, "binary"),
406
- octal: /* @__PURE__ */ a(function(e) {
407
- return e >= 0 ? "0o" + e.toString(8) : "-0o" + e.toString(8).slice(1);
408
- }, "octal"),
409
- decimal: /* @__PURE__ */ a(function(e) {
410
- return e.toString(10);
411
- }, "decimal"),
412
- hexadecimal: /* @__PURE__ */ a(function(e) {
413
- return e >= 0 ? "0x" + e.toString(16).toUpperCase() : "-0x" + e.toString(16).toUpperCase().slice(1);
414
- }, "hexadecimal")
415
- },
416
- defaultStyle: "decimal",
417
- styleAliases: {
418
- binary: [2, "bin"],
419
- octal: [8, "oct"],
420
- decimal: [10, "dec"],
421
- hexadecimal: [16, "hex"]
422
- }
423
- }), Kt = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
424
- function qt(e) {
425
- return !(e === null || !Kt.test(e) || e[e.length - 1] === "_");
426
- }
427
- a(qt, "resolveYamlFloat");
428
- function Jt(e) {
429
- var t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1;
430
- return "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Infinity : -Infinity : t === ".nan" ? NaN : n * parseFloat(t, 10);
431
- }
432
- a(Jt, "constructYamlFloat");
433
- var Yt = /^[-+]?[0-9]+e/;
434
- function Xt(e, t) {
435
- var n;
436
- if (isNaN(e)) switch (t) {
437
- case "lowercase": return ".nan";
438
- case "uppercase": return ".NAN";
439
- case "camelcase": return ".NaN";
440
- }
441
- else if (e === Infinity) switch (t) {
442
- case "lowercase": return ".inf";
443
- case "uppercase": return ".INF";
444
- case "camelcase": return ".Inf";
445
- }
446
- else if (e === -Infinity) switch (t) {
447
- case "lowercase": return "-.inf";
448
- case "uppercase": return "-.INF";
449
- case "camelcase": return "-.Inf";
450
- }
451
- else if (T.isNegativeZero(e)) return "-0.0";
452
- return n = e.toString(10), Yt.test(n) ? n.replace("e", ".e") : n;
453
- }
454
- a(Xt, "representYamlFloat");
455
- function Zt(e) {
456
- return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 || T.isNegativeZero(e));
457
- }
458
- a(Zt, "isFloat");
459
- var Qt = new O("tag:yaml.org,2002:float", {
460
- kind: "scalar",
461
- resolve: qt,
462
- construct: Jt,
463
- predicate: Zt,
464
- represent: Xt,
465
- defaultStyle: "lowercase"
466
- }), $t = At.extend({ implicit: [
467
- Pt,
468
- Rt,
469
- Gt,
470
- Qt
471
- ] }), en = $t, tn = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), nn = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
472
- function rn(e) {
473
- return e === null ? !1 : tn.exec(e) !== null || nn.exec(e) !== null;
474
- }
475
- a(rn, "resolveYamlTimestamp");
476
- function an(e) {
477
- var t, n, r, i, a, o, s, c = 0, l = null, u, d, f;
478
- if (t = tn.exec(e), t === null && (t = nn.exec(e)), t === null) throw Error("Date resolve error");
479
- if (n = +t[1], r = t[2] - 1, i = +t[3], !t[4]) return new Date(Date.UTC(n, r, i));
480
- if (a = +t[4], o = +t[5], s = +t[6], t[7]) {
481
- for (c = t[7].slice(0, 3); c.length < 3;) c += "0";
482
- c = +c;
483
- }
484
- return t[9] && (u = +t[10], d = +(t[11] || 0), l = (u * 60 + d) * 6e4, t[9] === "-" && (l = -l)), f = new Date(Date.UTC(n, r, i, a, o, s, c)), l && f.setTime(f.getTime() - l), f;
485
- }
486
- a(an, "constructYamlTimestamp");
487
- function on(e) {
488
- return e.toISOString();
489
- }
490
- a(on, "representYamlTimestamp");
491
- var sn = new O("tag:yaml.org,2002:timestamp", {
492
- kind: "scalar",
493
- resolve: rn,
494
- construct: an,
495
- instanceOf: Date,
496
- represent: on
497
- });
498
- function cn(e) {
499
- return e === "<<" || e === null;
500
- }
501
- a(cn, "resolveYamlMerge");
502
- var ln = new O("tag:yaml.org,2002:merge", {
503
- kind: "scalar",
504
- resolve: cn
505
- }), un = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
506
- function dn(e) {
507
- if (e === null) return !1;
508
- var t, n, r = 0, i = e.length, a = un;
509
- for (n = 0; n < i; n++) if (t = a.indexOf(e.charAt(n)), !(t > 64)) {
510
- if (t < 0) return !1;
511
- r += 6;
512
- }
513
- return r % 8 == 0;
514
- }
515
- a(dn, "resolveYamlBinary");
516
- function fn(e) {
517
- var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = un, o = 0, s = [];
518
- for (t = 0; t < i; t++) t % 4 == 0 && t && (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)), o = o << 6 | a.indexOf(r.charAt(t));
519
- return n = i % 4 * 6, n === 0 ? (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)) : n === 18 ? (s.push(o >> 10 & 255), s.push(o >> 2 & 255)) : n === 12 && s.push(o >> 4 & 255), new Uint8Array(s);
520
- }
521
- a(fn, "constructYamlBinary");
522
- function pn(e) {
523
- var t = "", n = 0, r, i, a = e.length, o = un;
524
- for (r = 0; r < a; r++) r % 3 == 0 && r && (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]), n = (n << 8) + e[r];
525
- return i = a % 3, i === 0 ? (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]) : i === 2 ? (t += o[n >> 10 & 63], t += o[n >> 4 & 63], t += o[n << 2 & 63], t += o[64]) : i === 1 && (t += o[n >> 2 & 63], t += o[n << 4 & 63], t += o[64], t += o[64]), t;
526
- }
527
- a(pn, "representYamlBinary");
528
- function mn(e) {
529
- return Object.prototype.toString.call(e) === "[object Uint8Array]";
530
- }
531
- a(mn, "isBinary");
532
- var hn = new O("tag:yaml.org,2002:binary", {
533
- kind: "scalar",
534
- resolve: dn,
535
- construct: fn,
536
- predicate: mn,
537
- represent: pn
538
- }), gn = Object.prototype.hasOwnProperty, _n = Object.prototype.toString;
539
- function vn(e) {
540
- if (e === null) return !0;
541
- var t = [], n, r, i, a, o, s = e;
542
- for (n = 0, r = s.length; n < r; n += 1) {
543
- if (i = s[n], o = !1, _n.call(i) !== "[object Object]") return !1;
544
- for (a in i) if (gn.call(i, a)) if (!o) o = !0;
545
- else return !1;
546
- if (!o) return !1;
547
- if (t.indexOf(a) === -1) t.push(a);
548
- else return !1;
549
- }
550
- return !0;
551
- }
552
- a(vn, "resolveYamlOmap");
553
- function yn(e) {
554
- return e === null ? [] : e;
555
- }
556
- a(yn, "constructYamlOmap");
557
- var bn = new O("tag:yaml.org,2002:omap", {
558
- kind: "sequence",
559
- resolve: vn,
560
- construct: yn
561
- }), xn = Object.prototype.toString;
562
- function Sn(e) {
563
- if (e === null) return !0;
564
- var t, n, r, i, a, o = e;
565
- for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) {
566
- if (r = o[t], xn.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1;
567
- a[t] = [i[0], r[i[0]]];
568
- }
569
- return !0;
570
- }
571
- a(Sn, "resolveYamlPairs");
572
- function Cn(e) {
573
- if (e === null) return [];
574
- var t, n, r, i, a, o = e;
575
- for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) r = o[t], i = Object.keys(r), a[t] = [i[0], r[i[0]]];
576
- return a;
577
- }
578
- a(Cn, "constructYamlPairs");
579
- var wn = new O("tag:yaml.org,2002:pairs", {
580
- kind: "sequence",
581
- resolve: Sn,
582
- construct: Cn
583
- }), Tn = Object.prototype.hasOwnProperty;
584
- function En(e) {
585
- if (e === null) return !0;
586
- var t, n = e;
587
- for (t in n) if (Tn.call(n, t) && n[t] !== null) return !1;
588
- return !0;
589
- }
590
- a(En, "resolveYamlSet");
591
- function Dn(e) {
592
- return e === null ? {} : e;
593
- }
594
- a(Dn, "constructYamlSet");
595
- var On = new O("tag:yaml.org,2002:set", {
596
- kind: "mapping",
597
- resolve: En,
598
- construct: Dn
599
- }), kn = en.extend({
600
- implicit: [sn, ln],
601
- explicit: [
602
- hn,
603
- bn,
604
- wn,
605
- On
606
- ]
607
- }), k = Object.prototype.hasOwnProperty, A = 1, An = 2, jn = 3, Mn = 4, Nn = 1, Pn = 2, Fn = 3, In = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ln = /[\x85\u2028\u2029]/, Rn = /[,\[\]\{\}]/, zn = /^(?:!|!!|![a-z\-]+!)$/i, Bn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
608
- function Vn(e) {
609
- return Object.prototype.toString.call(e);
610
- }
611
- a(Vn, "_class");
612
- function j(e) {
613
- return e === 10 || e === 13;
614
- }
615
- a(j, "is_EOL");
616
- function M(e) {
617
- return e === 9 || e === 32;
618
- }
619
- a(M, "is_WHITE_SPACE");
620
- function N(e) {
621
- return e === 9 || e === 32 || e === 10 || e === 13;
622
- }
623
- a(N, "is_WS_OR_EOL");
624
- function P(e) {
625
- return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
626
- }
627
- a(P, "is_FLOW_INDICATOR");
628
- function Hn(e) {
629
- var t;
630
- return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
631
- }
632
- a(Hn, "fromHexCode");
633
- function Un(e) {
634
- return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
635
- }
636
- a(Un, "escapedHexLen");
637
- function Wn(e) {
638
- return 48 <= e && e <= 57 ? e - 48 : -1;
639
- }
640
- a(Wn, "fromDecimalCode");
641
- function Gn(e) {
642
- return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? "\n" : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? "\"" : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? "\xA0" : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
643
- }
644
- a(Gn, "simpleEscapeSequence");
645
- function Kn(e) {
646
- return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
647
- }
648
- a(Kn, "charFromCodepoint");
649
- function qn(e, t, n) {
650
- t === "__proto__" ? Object.defineProperty(e, t, {
651
- configurable: !0,
652
- enumerable: !0,
653
- writable: !0,
654
- value: n
655
- }) : e[t] = n;
656
- }
657
- a(qn, "setProperty");
658
- var Jn = Array(256), Yn = Array(256);
659
- for (F = 0; F < 256; F++) Jn[F] = +!!Gn(F), Yn[F] = Gn(F);
660
- var F;
661
- function Xn(e, t) {
662
- this.input = e, this.filename = t.filename || null, this.schema = t.schema || kn, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
663
- }
664
- a(Xn, "State$1");
665
- function Zn(e, t) {
666
- var n = {
667
- name: e.filename,
668
- buffer: e.input.slice(0, -1),
669
- position: e.position,
670
- line: e.line,
671
- column: e.position - e.lineStart
672
- };
673
- return n.snippet = St(n), new D(t, n);
674
- }
675
- a(Zn, "generateError");
676
- function I(e, t) {
677
- throw Zn(e, t);
678
- }
679
- a(I, "throwError");
680
- function L(e, t) {
681
- e.onWarning && e.onWarning.call(null, Zn(e, t));
682
- }
683
- a(L, "throwWarning");
684
- var Qn = {
685
- YAML: /* @__PURE__ */ a(function(e, t, n) {
686
- var r, i, a;
687
- e.version !== null && I(e, "duplication of %YAML directive"), n.length !== 1 && I(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), r === null && I(e, "ill-formed argument of the YAML directive"), i = parseInt(r[1], 10), a = parseInt(r[2], 10), i !== 1 && I(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && L(e, "unsupported YAML version of the document");
688
- }, "handleYamlDirective"),
689
- TAG: /* @__PURE__ */ a(function(e, t, n) {
690
- var r, i;
691
- n.length !== 2 && I(e, "TAG directive accepts exactly two arguments"), r = n[0], i = n[1], zn.test(r) || I(e, "ill-formed tag handle (first argument) of the TAG directive"), k.call(e.tagMap, r) && I(e, "there is a previously declared suffix for \"" + r + "\" tag handle"), Bn.test(i) || I(e, "ill-formed tag prefix (second argument) of the TAG directive");
692
- try {
693
- i = decodeURIComponent(i);
694
- } catch {
695
- I(e, "tag prefix is malformed: " + i);
696
- }
697
- e.tagMap[r] = i;
698
- }, "handleTagDirective")
699
- };
700
- function R(e, t, n, r) {
701
- var i, a, o, s;
702
- if (t < n) {
703
- if (s = e.input.slice(t, n), r) for (i = 0, a = s.length; i < a; i += 1) o = s.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 || I(e, "expected valid JSON character");
704
- else In.test(s) && I(e, "the stream contains non-printable characters");
705
- e.result += s;
706
- }
707
- }
708
- a(R, "captureSegment");
709
- function $n(e, t, n, r) {
710
- var i, a, o, s;
711
- for (T.isObject(n) || I(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), o = 0, s = i.length; o < s; o += 1) a = i[o], k.call(t, a) || (qn(t, a, n[a]), r[a] = !0);
712
- }
713
- a($n, "mergeMappings");
714
- function z(e, t, n, r, i, a, o, s, c) {
715
- var l, u;
716
- if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), l = 0, u = i.length; l < u; l += 1) Array.isArray(i[l]) && I(e, "nested arrays are not supported inside keys"), typeof i == "object" && Vn(i[l]) === "[object Object]" && (i[l] = "[object Object]");
717
- if (typeof i == "object" && Vn(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge") if (Array.isArray(a)) for (l = 0, u = a.length; l < u; l += 1) $n(e, t, a[l], n);
718
- else $n(e, t, a, n);
719
- else !e.json && !k.call(n, i) && k.call(t, i) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = c || e.position, I(e, "duplicated mapping key")), qn(t, i, a), delete n[i];
720
- return t;
721
- }
722
- a(z, "storeMappingPair");
723
- function er(e) {
724
- var t = e.input.charCodeAt(e.position);
725
- t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : I(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
726
- }
727
- a(er, "readLineBreak");
728
- function B(e, t, n) {
729
- for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0;) {
730
- for (; M(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
731
- if (t && i === 35) do
732
- i = e.input.charCodeAt(++e.position);
733
- while (i !== 10 && i !== 13 && i !== 0);
734
- if (j(i)) for (er(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
735
- else break;
736
- }
737
- return n !== -1 && r !== 0 && e.lineIndent < n && L(e, "deficient indentation"), r;
738
- }
739
- a(B, "skipSeparationSpace");
740
- function V(e) {
741
- var t = e.position, n = e.input.charCodeAt(t);
742
- return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || N(n)));
743
- }
744
- a(V, "testDocumentSeparator");
745
- function tr(e, t) {
746
- t === 1 ? e.result += " " : t > 1 && (e.result += T.repeat("\n", t - 1));
747
- }
748
- a(tr, "writeFoldedLines");
749
- function nr(e, t, n) {
750
- var r, i, a, o, s, c, l, u, d = e.kind, f = e.result, p = e.input.charCodeAt(e.position);
751
- if (N(p) || P(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = e.input.charCodeAt(e.position + 1), N(i) || n && P(i))) return !1;
752
- for (e.kind = "scalar", e.result = "", a = o = e.position, s = !1; p !== 0;) {
753
- if (p === 58) {
754
- if (i = e.input.charCodeAt(e.position + 1), N(i) || n && P(i)) break;
755
- } else if (p === 35) {
756
- if (r = e.input.charCodeAt(e.position - 1), N(r)) break;
757
- } else if (e.position === e.lineStart && V(e) || n && P(p)) break;
758
- else if (j(p)) {
759
- if (c = e.line, l = e.lineStart, u = e.lineIndent, B(e, !1, -1), e.lineIndent >= t) {
760
- s = !0, p = e.input.charCodeAt(e.position);
761
- continue;
762
- }
763
- e.position = o, e.line = c, e.lineStart = l, e.lineIndent = u;
764
- break;
765
- }
766
- s &&= (R(e, a, o, !1), tr(e, e.line - c), a = o = e.position, !1), M(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
767
- }
768
- return R(e, a, o, !1), e.result ? !0 : (e.kind = d, e.result = f, !1);
769
- }
770
- a(nr, "readPlainScalar");
771
- function rr(e, t) {
772
- var n = e.input.charCodeAt(e.position), r, i;
773
- if (n !== 39) return !1;
774
- for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0;) if (n === 39) if (R(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39) r = e.position, e.position++, i = e.position;
775
- else return !0;
776
- else j(n) ? (R(e, r, i, !0), tr(e, B(e, !1, t)), r = i = e.position) : e.position === e.lineStart && V(e) ? I(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
777
- I(e, "unexpected end of the stream within a single quoted scalar");
778
- }
779
- a(rr, "readSingleQuotedScalar");
780
- function ir(e, t) {
781
- var n, r, i, a, o, s = e.input.charCodeAt(e.position);
782
- if (s !== 34) return !1;
783
- for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0;) if (s === 34) return R(e, n, e.position, !0), e.position++, !0;
784
- else if (s === 92) {
785
- if (R(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), j(s)) B(e, !1, t);
786
- else if (s < 256 && Jn[s]) e.result += Yn[s], e.position++;
787
- else if ((o = Un(s)) > 0) {
788
- for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o = Hn(s)) >= 0 ? a = (a << 4) + o : I(e, "expected hexadecimal character");
789
- e.result += Kn(a), e.position++;
790
- } else I(e, "unknown escape sequence");
791
- n = r = e.position;
792
- } else j(s) ? (R(e, n, r, !0), tr(e, B(e, !1, t)), n = r = e.position) : e.position === e.lineStart && V(e) ? I(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
793
- I(e, "unexpected end of the stream within a double quoted scalar");
794
- }
795
- a(ir, "readDoubleQuotedScalar");
796
- function ar(e, t) {
797
- var n = !0, r, i, a, o = e.tag, s, c = e.anchor, l, u, d, f, p, m = /* @__PURE__ */ Object.create(null), h, g, _, v = e.input.charCodeAt(e.position);
798
- if (v === 91) u = 93, p = !1, s = [];
799
- else if (v === 123) u = 125, p = !0, s = {};
800
- else return !1;
801
- for (e.anchor !== null && (e.anchorMap[e.anchor] = s), v = e.input.charCodeAt(++e.position); v !== 0;) {
802
- if (B(e, !0, t), v = e.input.charCodeAt(e.position), v === u) return e.position++, e.tag = o, e.anchor = c, e.kind = p ? "mapping" : "sequence", e.result = s, !0;
803
- n ? v === 44 && I(e, "expected the node content, but found ','") : I(e, "missed comma between flow collection entries"), g = h = _ = null, d = f = !1, v === 63 && (l = e.input.charCodeAt(e.position + 1), N(l) && (d = f = !0, e.position++, B(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, H(e, t, A, !1, !0), g = e.tag, h = e.result, B(e, !0, t), v = e.input.charCodeAt(e.position), (f || e.line === r) && v === 58 && (d = !0, v = e.input.charCodeAt(++e.position), B(e, !0, t), H(e, t, A, !1, !0), _ = e.result), p ? z(e, s, m, g, h, _, r, i, a) : d ? s.push(z(e, null, m, g, h, _, r, i, a)) : s.push(h), B(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
804
- }
805
- I(e, "unexpected end of the stream within a flow collection");
806
- }
807
- a(ar, "readFlowCollection");
808
- function or(e, t) {
809
- var n, r, i = Nn, a = !1, o = !1, s = t, c = 0, l = !1, u, d = e.input.charCodeAt(e.position);
810
- if (d === 124) r = !1;
811
- else if (d === 62) r = !0;
812
- else return !1;
813
- for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45) Nn === i ? i = d === 43 ? Fn : Pn : I(e, "repeat of a chomping mode identifier");
814
- else if ((u = Wn(d)) >= 0) u === 0 ? I(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? I(e, "repeat of an indentation width identifier") : (s = t + u - 1, o = !0);
815
- else break;
816
- if (M(d)) {
817
- do
818
- d = e.input.charCodeAt(++e.position);
819
- while (M(d));
820
- if (d === 35) do
821
- d = e.input.charCodeAt(++e.position);
822
- while (!j(d) && d !== 0);
823
- }
824
- for (; d !== 0;) {
825
- for (er(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && d === 32;) e.lineIndent++, d = e.input.charCodeAt(++e.position);
826
- if (!o && e.lineIndent > s && (s = e.lineIndent), j(d)) {
827
- c++;
828
- continue;
829
- }
830
- if (e.lineIndent < s) {
831
- i === Fn ? e.result += T.repeat("\n", a ? 1 + c : c) : i === Nn && a && (e.result += "\n");
832
- break;
833
- }
834
- for (r ? M(d) ? (l = !0, e.result += T.repeat("\n", a ? 1 + c : c)) : l ? (l = !1, e.result += T.repeat("\n", c + 1)) : c === 0 ? a && (e.result += " ") : e.result += T.repeat("\n", c) : e.result += T.repeat("\n", a ? 1 + c : c), a = !0, o = !0, c = 0, n = e.position; !j(d) && d !== 0;) d = e.input.charCodeAt(++e.position);
835
- R(e, n, e.position, !1);
836
- }
837
- return !0;
838
- }
839
- a(or, "readBlockScalar");
840
- function sr(e, t) {
841
- var n, r = e.tag, i = e.anchor, a = [], o, s = !1, c;
842
- if (e.firstTabInLine !== -1) return !1;
843
- for (e.anchor !== null && (e.anchorMap[e.anchor] = a), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, I(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !N(o))));) {
844
- if (s = !0, e.position++, B(e, !0, -1) && e.lineIndent <= t) {
845
- a.push(null), c = e.input.charCodeAt(e.position);
846
- continue;
847
- }
848
- if (n = e.line, H(e, t, jn, !1, !0), a.push(e.result), B(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && c !== 0) I(e, "bad indentation of a sequence entry");
849
- else if (e.lineIndent < t) break;
850
- }
851
- return s ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
852
- }
853
- a(sr, "readBlockSequence");
854
- function cr(e, t, n) {
855
- var r, i, a, o, s, c, l = e.tag, u = e.anchor, d = {}, f = /* @__PURE__ */ Object.create(null), p = null, m = null, h = null, g = !1, _ = !1, v;
856
- if (e.firstTabInLine !== -1) return !1;
857
- for (e.anchor !== null && (e.anchorMap[e.anchor] = d), v = e.input.charCodeAt(e.position); v !== 0;) {
858
- if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, I(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (v === 63 || v === 58) && N(r)) v === 63 ? (g && (z(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !0, i = !0) : g ? (g = !1, i = !0) : I(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = r;
859
- else {
860
- if (o = e.line, s = e.lineStart, c = e.position, !H(e, n, An, !1, !0)) break;
861
- if (e.line === a) {
862
- for (v = e.input.charCodeAt(e.position); M(v);) v = e.input.charCodeAt(++e.position);
863
- if (v === 58) v = e.input.charCodeAt(++e.position), N(v) || I(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (z(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !1, i = !1, p = e.tag, m = e.result;
864
- else if (_) I(e, "can not read an implicit mapping pair; a colon is missed");
865
- else return e.tag = l, e.anchor = u, !0;
866
- } else if (_) I(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
867
- else return e.tag = l, e.anchor = u, !0;
868
- }
869
- if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position), H(e, t, Mn, !0, i) && (g ? m = e.result : h = e.result), g || (z(e, d, f, p, m, h, o, s, c), p = m = h = null), B(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && v !== 0) I(e, "bad indentation of a mapping entry");
870
- else if (e.lineIndent < t) break;
871
- }
872
- return g && z(e, d, f, p, m, null, o, s, c), _ && (e.tag = l, e.anchor = u, e.kind = "mapping", e.result = d), _;
873
- }
874
- a(cr, "readBlockMapping");
875
- function lr(e) {
876
- var t, n = !1, r = !1, i, a, o = e.input.charCodeAt(e.position);
877
- if (o !== 33) return !1;
878
- if (e.tag !== null && I(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (n = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (r = !0, i = "!!", o = e.input.charCodeAt(++e.position)) : i = "!", t = e.position, n) {
879
- do
880
- o = e.input.charCodeAt(++e.position);
881
- while (o !== 0 && o !== 62);
882
- e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : I(e, "unexpected end of the stream within a verbatim tag");
883
- } else {
884
- for (; o !== 0 && !N(o);) o === 33 && (r ? I(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), zn.test(i) || I(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
885
- a = e.input.slice(t, e.position), Rn.test(a) && I(e, "tag suffix cannot contain flow indicator characters");
886
- }
887
- a && !Bn.test(a) && I(e, "tag name cannot contain such characters: " + a);
888
- try {
889
- a = decodeURIComponent(a);
890
- } catch {
891
- I(e, "tag name is malformed: " + a);
892
- }
893
- return n ? e.tag = a : k.call(e.tagMap, i) ? e.tag = e.tagMap[i] + a : i === "!" ? e.tag = "!" + a : i === "!!" ? e.tag = "tag:yaml.org,2002:" + a : I(e, "undeclared tag handle \"" + i + "\""), !0;
894
- }
895
- a(lr, "readTagProperty");
896
- function ur(e) {
897
- var t, n = e.input.charCodeAt(e.position);
898
- if (n !== 38) return !1;
899
- for (e.anchor !== null && I(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !N(n) && !P(n);) n = e.input.charCodeAt(++e.position);
900
- return e.position === t && I(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
901
- }
902
- a(ur, "readAnchorProperty");
903
- function dr(e) {
904
- var t, n, r = e.input.charCodeAt(e.position);
905
- if (r !== 42) return !1;
906
- for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !N(r) && !P(r);) r = e.input.charCodeAt(++e.position);
907
- return e.position === t && I(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), k.call(e.anchorMap, n) || I(e, "unidentified alias \"" + n + "\""), e.result = e.anchorMap[n], B(e, !0, -1), !0;
908
- }
909
- a(dr, "readAlias");
910
- function H(e, t, n, r, i) {
911
- var a, o, s, c = 1, l = !1, u = !1, d, f, p, m, h, g;
912
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s = Mn === n || jn === n, r && B(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (; lr(e) || ur(e);) B(e, !0, -1) ? (l = !0, s = a, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
913
- if (s &&= l || i, (c === 1 || Mn === n) && (h = A === n || An === n ? t : t + 1, g = e.position - e.lineStart, c === 1 ? s && (sr(e, g) || cr(e, g, h)) || ar(e, h) ? u = !0 : (o && or(e, h) || rr(e, h) || ir(e, h) ? u = !0 : dr(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && I(e, "alias node should not have any properties")) : nr(e, h, A === n) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = s && sr(e, g))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
914
- else if (e.tag === "?") {
915
- for (e.result !== null && e.kind !== "scalar" && I(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\""), d = 0, f = e.implicitTypes.length; d < f; d += 1) if (m = e.implicitTypes[d], m.resolve(e.result)) {
916
- e.result = m.construct(e.result), e.tag = m.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
917
- break;
918
- }
919
- } else if (e.tag !== "!") {
920
- if (k.call(e.typeMap[e.kind || "fallback"], e.tag)) m = e.typeMap[e.kind || "fallback"][e.tag];
921
- else for (m = null, p = e.typeMap.multi[e.kind || "fallback"], d = 0, f = p.length; d < f; d += 1) if (e.tag.slice(0, p[d].tag.length) === p[d].tag) {
922
- m = p[d];
923
- break;
924
- }
925
- m || I(e, "unknown tag !<" + e.tag + ">"), e.result !== null && m.kind !== e.kind && I(e, "unacceptable node kind for !<" + e.tag + "> tag; it should be \"" + m.kind + "\", not \"" + e.kind + "\""), m.resolve(e.result, e.tag) ? (e.result = m.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : I(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
926
- }
927
- return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || u;
928
- }
929
- a(H, "composeNode");
930
- function fr(e) {
931
- var t = e.position, n, r, i, a = !1, o;
932
- for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (B(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37));) {
933
- for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !N(o);) o = e.input.charCodeAt(++e.position);
934
- for (r = e.input.slice(n, e.position), i = [], r.length < 1 && I(e, "directive name must not be less than one character in length"); o !== 0;) {
935
- for (; M(o);) o = e.input.charCodeAt(++e.position);
936
- if (o === 35) {
937
- do
938
- o = e.input.charCodeAt(++e.position);
939
- while (o !== 0 && !j(o));
940
- break;
941
- }
942
- if (j(o)) break;
943
- for (n = e.position; o !== 0 && !N(o);) o = e.input.charCodeAt(++e.position);
944
- i.push(e.input.slice(n, e.position));
945
- }
946
- o !== 0 && er(e), k.call(Qn, r) ? Qn[r](e, r, i) : L(e, "unknown document directive \"" + r + "\"");
947
- }
948
- if (B(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, B(e, !0, -1)) : a && I(e, "directives end mark is expected"), H(e, e.lineIndent - 1, Mn, !1, !0), B(e, !0, -1), e.checkLineBreaks && Ln.test(e.input.slice(t, e.position)) && L(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && V(e)) {
949
- e.input.charCodeAt(e.position) === 46 && (e.position += 3, B(e, !0, -1));
950
- return;
951
- }
952
- if (e.position < e.length - 1) I(e, "end of the stream or a document separator is expected");
953
- else return;
954
- }
955
- a(fr, "readDocument");
956
- function pr(e, t) {
957
- e = String(e), t ||= {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += "\n"), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
958
- var n = new Xn(e, t), r = e.indexOf("\0");
959
- for (r !== -1 && (n.position = r, I(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
960
- for (; n.position < n.length - 1;) fr(n);
961
- return n.documents;
962
- }
963
- a(pr, "loadDocuments");
964
- function mr(e, t, n) {
965
- typeof t == "object" && t && n === void 0 && (n = t, t = null);
966
- var r = pr(e, n);
967
- if (typeof t != "function") return r;
968
- for (var i = 0, a = r.length; i < a; i += 1) t(r[i]);
969
- }
970
- a(mr, "loadAll$1");
971
- function hr(e, t) {
972
- var n = pr(e, t);
973
- if (n.length !== 0) {
974
- if (n.length === 1) return n[0];
975
- throw new D("expected a single document in the stream, but found more");
976
- }
977
- }
978
- a(hr, "load$1");
979
- var gr = {
980
- loadAll: mr,
981
- load: hr
982
- }, _r = Object.prototype.toString, vr = Object.prototype.hasOwnProperty, yr = 65279, br = 9, U = 10, xr = 13, Sr = 32, Cr = 33, wr = 34, Tr = 35, Er = 37, Dr = 38, Or = 39, kr = 42, Ar = 44, jr = 45, Mr = 58, Nr = 61, Pr = 62, Fr = 63, Ir = 64, Lr = 91, Rr = 93, zr = 96, Br = 123, Vr = 124, Hr = 125, W = {};
983
- W[0] = "\\0", W[7] = "\\a", W[8] = "\\b", W[9] = "\\t", W[10] = "\\n", W[11] = "\\v", W[12] = "\\f", W[13] = "\\r", W[27] = "\\e", W[34] = "\\\"", W[92] = "\\\\", W[133] = "\\N", W[160] = "\\_", W[8232] = "\\L", W[8233] = "\\P";
984
- var Ur = [
985
- "y",
986
- "Y",
987
- "yes",
988
- "Yes",
989
- "YES",
990
- "on",
991
- "On",
992
- "ON",
993
- "n",
994
- "N",
995
- "no",
996
- "No",
997
- "NO",
998
- "off",
999
- "Off",
1000
- "OFF"
1001
- ], Wr = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
1002
- function Gr(e, t) {
1003
- var n, r, i, a, o, s, c;
1004
- if (t === null) return {};
1005
- for (n = {}, r = Object.keys(t), i = 0, a = r.length; i < a; i += 1) o = r[i], s = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && vr.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
1006
- return n;
1007
- }
1008
- a(Gr, "compileStyleMap");
1009
- function Kr(e) {
1010
- var t = e.toString(16).toUpperCase(), n, r;
1011
- if (e <= 255) n = "x", r = 2;
1012
- else if (e <= 65535) n = "u", r = 4;
1013
- else if (e <= 4294967295) n = "U", r = 8;
1014
- else throw new D("code point within a string may not be greater than 0xFFFFFFFF");
1015
- return "\\" + n + T.repeat("0", r - t.length) + t;
1016
- }
1017
- a(Kr, "encodeHex");
1018
- var qr = 1, G = 2;
1019
- function Jr(e) {
1020
- this.schema = e.schema || kn, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = T.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Gr(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === "\"" ? G : qr, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
1021
- }
1022
- a(Jr, "State");
1023
- function Yr(e, t) {
1024
- for (var n = T.repeat(" ", t), r = 0, i = -1, a = "", o, s = e.length; r < s;) i = e.indexOf("\n", r), i === -1 ? (o = e.slice(r), r = s) : (o = e.slice(r, i + 1), r = i + 1), o.length && o !== "\n" && (a += n), a += o;
1025
- return a;
1026
- }
1027
- a(Yr, "indentString");
1028
- function Xr(e, t) {
1029
- return "\n" + T.repeat(" ", e.indent * t);
1030
- }
1031
- a(Xr, "generateNextLine");
1032
- function Zr(e, t) {
1033
- var n, r, i;
1034
- for (n = 0, r = e.implicitTypes.length; n < r; n += 1) if (i = e.implicitTypes[n], i.resolve(t)) return !0;
1035
- return !1;
1036
- }
1037
- a(Zr, "testImplicitResolving");
1038
- function K(e) {
1039
- return e === Sr || e === br;
1040
- }
1041
- a(K, "isWhitespace");
1042
- function q(e) {
1043
- return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== yr || 65536 <= e && e <= 1114111;
1044
- }
1045
- a(q, "isPrintable");
1046
- function Qr(e) {
1047
- return q(e) && e !== yr && e !== xr && e !== U;
1048
- }
1049
- a(Qr, "isNsCharOrWhitespace");
1050
- function $r(e, t, n) {
1051
- var r = Qr(e), i = r && !K(e);
1052
- return (n ? r : r && e !== Ar && e !== Lr && e !== Rr && e !== Br && e !== Hr) && e !== Tr && !(t === Mr && !i) || Qr(t) && !K(t) && e === Tr || t === Mr && i;
1053
- }
1054
- a($r, "isPlainSafe");
1055
- function ei(e) {
1056
- return q(e) && e !== yr && !K(e) && e !== jr && e !== Fr && e !== Mr && e !== Ar && e !== Lr && e !== Rr && e !== Br && e !== Hr && e !== Tr && e !== Dr && e !== kr && e !== Cr && e !== Vr && e !== Nr && e !== Pr && e !== Or && e !== wr && e !== Er && e !== Ir && e !== zr;
1057
- }
1058
- a(ei, "isPlainSafeFirst");
1059
- function ti(e) {
1060
- return !K(e) && e !== Mr;
1061
- }
1062
- a(ti, "isPlainSafeLast");
1063
- function J(e, t) {
1064
- var n = e.charCodeAt(t), r;
1065
- return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
1066
- }
1067
- a(J, "codePointAt");
1068
- function ni(e) {
1069
- return /^\n* /.test(e);
1070
- }
1071
- a(ni, "needIndentIndicator");
1072
- var ri = 1, ii = 2, ai = 3, oi = 4, Y = 5;
1073
- function si(e, t, n, r, i, a, o, s) {
1074
- var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = ei(J(e, 0)) && ti(J(e, e.length - 1));
1075
- if (t || o) for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
1076
- if (l = J(e, c), !q(l)) return Y;
1077
- h &&= $r(l, u, s), u = l;
1078
- }
1079
- else {
1080
- for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
1081
- if (l = J(e, c), l === U) d = !0, p && (f ||= c - m - 1 > r && e[m + 1] !== " ", m = c);
1082
- else if (!q(l)) return Y;
1083
- h &&= $r(l, u, s), u = l;
1084
- }
1085
- f ||= p && c - m - 1 > r && e[m + 1] !== " ";
1086
- }
1087
- return !d && !f ? h && !o && !i(e) ? ri : a === G ? Y : ii : n > 9 && ni(e) ? Y : o ? a === G ? Y : ii : f ? oi : ai;
1088
- }
1089
- a(si, "chooseScalarStyle");
1090
- function ci(e, t, n, r, i) {
1091
- e.dump = (function() {
1092
- if (t.length === 0) return e.quotingType === G ? "\"\"" : "''";
1093
- if (!e.noCompatMode && (Ur.indexOf(t) !== -1 || Wr.test(t))) return e.quotingType === G ? "\"" + t + "\"" : "'" + t + "'";
1094
- var o = e.indent * Math.max(1, n), s = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), c = r || e.flowLevel > -1 && n >= e.flowLevel;
1095
- function l(t) {
1096
- return Zr(e, t);
1097
- }
1098
- switch (a(l, "testAmbiguity"), si(t, c, e.indent, s, l, e.quotingType, e.forceQuotes && !r, i)) {
1099
- case ri: return t;
1100
- case ii: return "'" + t.replace(/'/g, "''") + "'";
1101
- case ai: return "|" + li(t, e.indent) + ui(Yr(t, o));
1102
- case oi: return ">" + li(t, e.indent) + ui(Yr(di(t, s), o));
1103
- case Y: return "\"" + pi(t) + "\"";
1104
- default: throw new D("impossible error: invalid scalar style");
1105
- }
1106
- })();
1107
- }
1108
- a(ci, "writeScalar");
1109
- function li(e, t) {
1110
- var n = ni(e) ? String(t) : "", r = e[e.length - 1] === "\n";
1111
- return n + (r && (e[e.length - 2] === "\n" || e === "\n") ? "+" : r ? "" : "-") + "\n";
1112
- }
1113
- a(li, "blockHeader");
1114
- function ui(e) {
1115
- return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
1116
- }
1117
- a(ui, "dropEndingNewline");
1118
- function di(e, t) {
1119
- for (var n = /(\n+)([^\n]*)/g, r = (function() {
1120
- var r = e.indexOf("\n");
1121
- return r = r === -1 ? e.length : r, n.lastIndex = r, fi(e.slice(0, r), t);
1122
- })(), i = e[0] === "\n" || e[0] === " ", a, o; o = n.exec(e);) {
1123
- var s = o[1], c = o[2];
1124
- a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") + fi(c, t), i = a;
1125
- }
1126
- return r;
1127
- }
1128
- a(di, "foldString");
1129
- function fi(e, t) {
1130
- if (e === "" || e[0] === " ") return e;
1131
- for (var n = / [^ ]/g, r, i = 0, a, o = 0, s = 0, c = ""; r = n.exec(e);) s = r.index, s - i > t && (a = o > i ? o : s, c += "\n" + e.slice(i, a), i = a + 1), o = s;
1132
- return c += "\n", e.length - i > t && o > i ? c += e.slice(i, o) + "\n" + e.slice(o + 1) : c += e.slice(i), c.slice(1);
1133
- }
1134
- a(fi, "foldLine");
1135
- function pi(e) {
1136
- for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n = J(e, i), r = W[n], !r && q(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || Kr(n);
1137
- return t;
1138
- }
1139
- a(pi, "escapeString");
1140
- function mi(e, t, n) {
1141
- var r = "", i = e.tag, a, o, s;
1142
- for (a = 0, o = n.length; a < o; a += 1) s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (X(e, t, s, !1, !1) || s === void 0 && X(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
1143
- e.tag = i, e.dump = "[" + r + "]";
1144
- }
1145
- a(mi, "writeFlowSequence");
1146
- function hi(e, t, n, r) {
1147
- var i = "", a = e.tag, o, s, c;
1148
- for (o = 0, s = n.length; o < s; o += 1) c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (X(e, t + 1, c, !0, !0, !1, !0) || c === void 0 && X(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += Xr(e, t)), e.dump && U === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
1149
- e.tag = a, e.dump = i || "[]";
1150
- }
1151
- a(hi, "writeBlockSequence");
1152
- function gi(e, t, n) {
1153
- var r = "", i = e.tag, a = Object.keys(n), o, s, c, l, u;
1154
- for (o = 0, s = a.length; o < s; o += 1) u = "", r !== "" && (u += ", "), e.condenseFlow && (u += "\""), c = a[o], l = n[c], e.replacer && (l = e.replacer.call(n, c, l)), X(e, t, c, !1, !1) && (e.dump.length > 1024 && (u += "? "), u += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), X(e, t, l, !1, !1) && (u += e.dump, r += u));
1155
- e.tag = i, e.dump = "{" + r + "}";
1156
- }
1157
- a(gi, "writeFlowMapping");
1158
- function _i(e, t, n, r) {
1159
- var i = "", a = e.tag, o = Object.keys(n), s, c, l, u, d, f;
1160
- if (e.sortKeys === !0) o.sort();
1161
- else if (typeof e.sortKeys == "function") o.sort(e.sortKeys);
1162
- else if (e.sortKeys) throw new D("sortKeys must be a boolean or a function");
1163
- for (s = 0, c = o.length; s < c; s += 1) f = "", (!r || i !== "") && (f += Xr(e, t)), l = o[s], u = n[l], e.replacer && (u = e.replacer.call(n, l, u)), X(e, t + 1, l, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && U === e.dump.charCodeAt(0) ? f += "?" : f += "? "), f += e.dump, d && (f += Xr(e, t)), X(e, t + 1, u, !0, d) && (e.dump && U === e.dump.charCodeAt(0) ? f += ":" : f += ": ", f += e.dump, i += f));
1164
- e.tag = a, e.dump = i || "{}";
1165
- }
1166
- a(_i, "writeBlockMapping");
1167
- function vi(e, t, n) {
1168
- var r, i = n ? e.explicitTypes : e.implicitTypes, a, o, s, c;
1169
- for (a = 0, o = i.length; a < o; a += 1) if (s = i[a], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof t == "object" && t instanceof s.instanceOf) && (!s.predicate || s.predicate(t))) {
1170
- if (e.tag = n ? s.multi && s.representName ? s.representName(t) : s.tag : "?", s.represent) {
1171
- if (c = e.styleMap[s.tag] || s.defaultStyle, _r.call(s.represent) === "[object Function]") r = s.represent(t, c);
1172
- else if (vr.call(s.represent, c)) r = s.represent[c](t, c);
1173
- else throw new D("!<" + s.tag + "> tag resolver accepts not \"" + c + "\" style");
1174
- e.dump = r;
1175
- }
1176
- return !0;
1177
- }
1178
- return !1;
1179
- }
1180
- a(vi, "detectType");
1181
- function X(e, t, n, r, i, a, o) {
1182
- e.tag = null, e.dump = n, vi(e, n, !1) || vi(e, n, !0);
1183
- var s = _r.call(e.dump), c = r, l;
1184
- r &&= e.flowLevel < 0 || e.flowLevel > t;
1185
- var u = s === "[object Object]" || s === "[object Array]", d, f;
1186
- if (u && (d = e.duplicates.indexOf(n), f = d !== -1), (e.tag !== null && e.tag !== "?" || f || e.indent !== 2 && t > 0) && (i = !1), f && e.usedDuplicates[d]) e.dump = "*ref_" + d;
1187
- else {
1188
- if (u && f && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (_i(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (gi(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
1189
- else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? hi(e, t - 1, e.dump, i) : hi(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (mi(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
1190
- else if (s === "[object String]") e.tag !== "?" && ci(e, e.dump, t, a, c);
1191
- else if (s === "[object Undefined]") return !1;
1192
- else {
1193
- if (e.skipInvalid) return !1;
1194
- throw new D("unacceptable kind of an object to dump " + s);
1195
- }
1196
- e.tag !== null && e.tag !== "?" && (l = encodeURI(e.tag[0] === "!" ? e.tag.slice(1) : e.tag).replace(/!/g, "%21"), l = e.tag[0] === "!" ? "!" + l : l.slice(0, 18) === "tag:yaml.org,2002:" ? "!!" + l.slice(18) : "!<" + l + ">", e.dump = l + " " + e.dump);
1197
- }
1198
- return !0;
1199
- }
1200
- a(X, "writeNode");
1201
- function yi(e, t) {
1202
- var n = [], r = [], i, a;
1203
- for (Z(e, n, r), i = 0, a = r.length; i < a; i += 1) t.duplicates.push(n[r[i]]);
1204
- t.usedDuplicates = Array(a);
1205
- }
1206
- a(yi, "getDuplicateReferences");
1207
- function Z(e, t, n) {
1208
- var r, i, a;
1209
- if (typeof e == "object" && e) if (i = t.indexOf(e), i !== -1) n.indexOf(i) === -1 && n.push(i);
1210
- else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1) Z(e[i], t, n);
1211
- else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1) Z(e[r[i]], t, n);
1212
- }
1213
- a(Z, "inspectNode");
1214
- function bi(e, t) {
1215
- t ||= {};
1216
- var n = new Jr(t);
1217
- n.noRefs || yi(e, n);
1218
- var r = e;
1219
- return n.replacer && (r = n.replacer.call({ "": r }, "", r)), X(n, 0, r, !0, !0) ? n.dump + "\n" : "";
1220
- }
1221
- a(bi, "dump$1");
1222
- var xi = { dump: bi };
1223
- function Si(e, t) {
1224
- return function() {
1225
- throw Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
1226
- };
1227
- }
1228
- a(Si, "renamed");
1229
- var Ci = $t, wi = gr.load;
1230
- gr.loadAll, xi.dump;
1231
- //#endregion
1232
- //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/mermaid.core.mjs
1233
- var Ti = "c4", Ei = {
1234
- id: Ti,
1235
- detector: /* @__PURE__ */ a((e) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e), "detector"),
1236
- loader: /* @__PURE__ */ a(async () => {
1237
- let { diagram: e } = await import("./c4Diagram-IC4MRINW-BZGIF4Dk.js");
1238
- return {
1239
- id: Ti,
1240
- diagram: e
1241
- };
1242
- }, "loader")
1243
- }, Di = "flowchart", Oi = {
1244
- id: Di,
1245
- detector: /* @__PURE__ */ a((e, t) => t?.flowchart?.defaultRenderer === "dagre-wrapper" || t?.flowchart?.defaultRenderer === "elk" ? !1 : /^\s*graph/.test(e), "detector"),
1246
- loader: /* @__PURE__ */ a(async () => {
1247
- let { diagram: e } = await import("./flowDiagram-PKNHOUZH-CQIRy1sx.js");
1248
- return {
1249
- id: Di,
1250
- diagram: e
1251
- };
1252
- }, "loader")
1253
- }, ki = "flowchart-v2", Ai = {
1254
- id: ki,
1255
- detector: /* @__PURE__ */ a((e, t) => t?.flowchart?.defaultRenderer !== "dagre-d3" && (t?.flowchart?.defaultRenderer === "elk" && (t.layout = "elk"), /^\s*graph/.test(e) && t?.flowchart?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(e)), "detector"),
1256
- loader: /* @__PURE__ */ a(async () => {
1257
- let { diagram: e } = await import("./flowDiagram-PKNHOUZH-CQIRy1sx.js");
1258
- return {
1259
- id: ki,
1260
- diagram: e
1261
- };
1262
- }, "loader")
1263
- }, ji = "er", Mi = {
1264
- id: ji,
1265
- detector: /* @__PURE__ */ a((e) => /^\s*erDiagram/.test(e), "detector"),
1266
- loader: /* @__PURE__ */ a(async () => {
1267
- let { diagram: e } = await import("./erDiagram-INFDFZHY-MJ_HVY-7.js");
1268
- return {
1269
- id: ji,
1270
- diagram: e
1271
- };
1272
- }, "loader")
1273
- }, Ni = "gitGraph", Pi = {
1274
- id: Ni,
1275
- detector: /* @__PURE__ */ a((e) => /^\s*gitGraph/.test(e), "detector"),
1276
- loader: /* @__PURE__ */ a(async () => {
1277
- let { diagram: e } = await import("./gitGraphDiagram-K3NZZRJ6-Gk6FiGbZ.js");
1278
- return {
1279
- id: Ni,
1280
- diagram: e
1281
- };
1282
- }, "loader")
1283
- }, Fi = "gantt", Ii = {
1284
- id: Fi,
1285
- detector: /* @__PURE__ */ a((e) => /^\s*gantt/.test(e), "detector"),
1286
- loader: /* @__PURE__ */ a(async () => {
1287
- let { diagram: e } = await import("./ganttDiagram-A5KZAMGK-Dw9bjWjx.js");
1288
- return {
1289
- id: Fi,
1290
- diagram: e
1291
- };
1292
- }, "loader")
1293
- }, Li = "info", Ri = {
1294
- id: Li,
1295
- detector: /* @__PURE__ */ a((e) => /^\s*info/.test(e), "detector"),
1296
- loader: /* @__PURE__ */ a(async () => {
1297
- let { diagram: e } = await import("./infoDiagram-LFFYTUFH-CS64-uil.js");
1298
- return {
1299
- id: Li,
1300
- diagram: e
1301
- };
1302
- }, "loader")
1303
- }, zi = "pie", Bi = {
1304
- id: zi,
1305
- detector: /* @__PURE__ */ a((e) => /^\s*pie/.test(e), "detector"),
1306
- loader: /* @__PURE__ */ a(async () => {
1307
- let { diagram: e } = await import("./pieDiagram-SKSYHLDU-B8-AVOmP.js");
1308
- return {
1309
- id: zi,
1310
- diagram: e
1311
- };
1312
- }, "loader")
1313
- }, Vi = "quadrantChart", Hi = {
1314
- id: Vi,
1315
- detector: /* @__PURE__ */ a((e) => /^\s*quadrantChart/.test(e), "detector"),
1316
- loader: /* @__PURE__ */ a(async () => {
1317
- let { diagram: e } = await import("./quadrantDiagram-337W2JSQ-C2Z0CN4Z.js");
1318
- return {
1319
- id: Vi,
1320
- diagram: e
1321
- };
1322
- }, "loader")
1323
- }, Ui = "xychart", Wi = {
1324
- id: Ui,
1325
- detector: /* @__PURE__ */ a((e) => /^\s*xychart(-beta)?/.test(e), "detector"),
1326
- loader: /* @__PURE__ */ a(async () => {
1327
- let { diagram: e } = await import("./xychartDiagram-JWTSCODW-De1M-7Yz.js");
1328
- return {
1329
- id: Ui,
1330
- diagram: e
1331
- };
1332
- }, "loader")
1333
- }, Gi = "requirement", Ki = {
1334
- id: Gi,
1335
- detector: /* @__PURE__ */ a((e) => /^\s*requirement(Diagram)?/.test(e), "detector"),
1336
- loader: /* @__PURE__ */ a(async () => {
1337
- let { diagram: e } = await import("./requirementDiagram-Z7DCOOCP-Cdj7PwWC.js");
1338
- return {
1339
- id: Gi,
1340
- diagram: e
1341
- };
1342
- }, "loader")
1343
- }, qi = "sequence", Ji = {
1344
- id: qi,
1345
- detector: /* @__PURE__ */ a((e) => /^\s*sequenceDiagram/.test(e), "detector"),
1346
- loader: /* @__PURE__ */ a(async () => {
1347
- let { diagram: e } = await import("./sequenceDiagram-2WXFIKYE-pj0uPf22.js");
1348
- return {
1349
- id: qi,
1350
- diagram: e
1351
- };
1352
- }, "loader")
1353
- }, Yi = "class", Xi = {
1354
- id: Yi,
1355
- detector: /* @__PURE__ */ a((e, t) => t?.class?.defaultRenderer !== "dagre-wrapper" && /^\s*classDiagram/.test(e), "detector"),
1356
- loader: /* @__PURE__ */ a(async () => {
1357
- let { diagram: e } = await import("./classDiagram-VBA2DB6C-BDqwxUdU.js");
1358
- return {
1359
- id: Yi,
1360
- diagram: e
1361
- };
1362
- }, "loader")
1363
- }, Zi = "classDiagram", Qi = {
1364
- id: Zi,
1365
- detector: /* @__PURE__ */ a((e, t) => /^\s*classDiagram/.test(e) && t?.class?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(e), "detector"),
1366
- loader: /* @__PURE__ */ a(async () => {
1367
- let { diagram: e } = await import("./classDiagram-v2-RAHNMMFH-DdmOjeUb.js");
1368
- return {
1369
- id: Zi,
1370
- diagram: e
1371
- };
1372
- }, "loader")
1373
- }, $i = "state", ea = {
1374
- id: $i,
1375
- detector: /* @__PURE__ */ a((e, t) => t?.state?.defaultRenderer !== "dagre-wrapper" && /^\s*stateDiagram/.test(e), "detector"),
1376
- loader: /* @__PURE__ */ a(async () => {
1377
- let { diagram: e } = await import("./stateDiagram-RAJIS63D-BgCfMnGb.js");
1378
- return {
1379
- id: $i,
1380
- diagram: e
1381
- };
1382
- }, "loader")
1383
- }, ta = "stateDiagram", na = {
1384
- id: ta,
1385
- detector: /* @__PURE__ */ a((e, t) => !!(/^\s*stateDiagram-v2/.test(e) || /^\s*stateDiagram/.test(e) && t?.state?.defaultRenderer === "dagre-wrapper"), "detector"),
1386
- loader: /* @__PURE__ */ a(async () => {
1387
- let { diagram: e } = await import("./stateDiagram-v2-FVOUBMTO-ByMhP6Xo.js");
1388
- return {
1389
- id: ta,
1390
- diagram: e
1391
- };
1392
- }, "loader")
1393
- }, ra = "journey", ia = {
1394
- id: ra,
1395
- detector: /* @__PURE__ */ a((e) => /^\s*journey/.test(e), "detector"),
1396
- loader: /* @__PURE__ */ a(async () => {
1397
- let { diagram: e } = await import("./journeyDiagram-4ABVD52K-CFFyM4Ar.js");
1398
- return {
1399
- id: ra,
1400
- diagram: e
1401
- };
1402
- }, "loader")
1403
- }, aa = { draw: /* @__PURE__ */ a((e, t, n) => {
1404
- i.debug("rendering svg for syntax error\n");
1405
- let r = st(t), a = r.append("g");
1406
- r.attr("viewBox", "0 0 2412 512"), ge(r, 100, 512, !0), a.append("path").attr("class", "error-icon").attr("d", "m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"), a.append("path").attr("class", "error-icon").attr("d", "m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"), a.append("path").attr("class", "error-icon").attr("d", "m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"), a.append("path").attr("class", "error-icon").attr("d", "m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"), a.append("path").attr("class", "error-icon").attr("d", "m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"), a.append("path").attr("class", "error-icon").attr("d", "m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"), a.append("text").attr("class", "error-text").attr("x", 1440).attr("y", 250).attr("font-size", "150px").style("text-anchor", "middle").text("Syntax error in text"), a.append("text").attr("class", "error-text").attr("x", 1250).attr("y", 400).attr("font-size", "100px").style("text-anchor", "middle").text(`mermaid version ${n}`);
1407
- }, "draw") }, oa = aa, sa = {
1408
- db: {},
1409
- renderer: aa,
1410
- parser: { parse: /* @__PURE__ */ a(() => {}, "parse") }
1411
- }, ca = "flowchart-elk", la = {
1412
- id: ca,
1413
- detector: /* @__PURE__ */ a((e, t = {}) => /^\s*flowchart-elk/.test(e) || /^\s*(flowchart|graph)/.test(e) && t?.flowchart?.defaultRenderer === "elk" ? (t.layout = "elk", !0) : !1, "detector"),
1414
- loader: /* @__PURE__ */ a(async () => {
1415
- let { diagram: e } = await import("./flowDiagram-PKNHOUZH-CQIRy1sx.js");
1416
- return {
1417
- id: ca,
1418
- diagram: e
1419
- };
1420
- }, "loader")
1421
- }, ua = "timeline", da = {
1422
- id: ua,
1423
- detector: /* @__PURE__ */ a((e) => /^\s*timeline/.test(e), "detector"),
1424
- loader: /* @__PURE__ */ a(async () => {
1425
- let { diagram: e } = await import("./timeline-definition-YZTLITO2-Bj5QKnBI.js");
1426
- return {
1427
- id: ua,
1428
- diagram: e
1429
- };
1430
- }, "loader")
1431
- }, fa = "mindmap", pa = {
1432
- id: fa,
1433
- detector: /* @__PURE__ */ a((e) => /^\s*mindmap/.test(e), "detector"),
1434
- loader: /* @__PURE__ */ a(async () => {
1435
- let { diagram: e } = await import("./mindmap-definition-YRQLILUH-qgGUYYe3.js");
1436
- return {
1437
- id: fa,
1438
- diagram: e
1439
- };
1440
- }, "loader")
1441
- }, ma = "kanban", ha = {
1442
- id: ma,
1443
- detector: /* @__PURE__ */ a((e) => /^\s*kanban/.test(e), "detector"),
1444
- loader: /* @__PURE__ */ a(async () => {
1445
- let { diagram: e } = await import("./kanban-definition-K7BYSVSG-B_R-mA10.js");
1446
- return {
1447
- id: ma,
1448
- diagram: e
1449
- };
1450
- }, "loader")
1451
- }, ga = "sankey", _a = {
1452
- id: ga,
1453
- detector: /* @__PURE__ */ a((e) => /^\s*sankey(-beta)?/.test(e), "detector"),
1454
- loader: /* @__PURE__ */ a(async () => {
1455
- let { diagram: e } = await import("./sankeyDiagram-WA2Y5GQK-BNmU-dM1.js");
1456
- return {
1457
- id: ga,
1458
- diagram: e
1459
- };
1460
- }, "loader")
1461
- }, va = "packet", ya = {
1462
- id: va,
1463
- detector: /* @__PURE__ */ a((e) => /^\s*packet(-beta)?/.test(e), "detector"),
1464
- loader: /* @__PURE__ */ a(async () => {
1465
- let { diagram: e } = await import("./diagram-P4PSJMXO-DX_3B0LB.js");
1466
- return {
1467
- id: va,
1468
- diagram: e
1469
- };
1470
- }, "loader")
1471
- }, ba = "radar", xa = {
1472
- id: ba,
1473
- detector: /* @__PURE__ */ a((e) => /^\s*radar-beta/.test(e), "detector"),
1474
- loader: /* @__PURE__ */ a(async () => {
1475
- let { diagram: e } = await import("./diagram-IFDJBPK2-BTmFZhvz.js");
1476
- return {
1477
- id: ba,
1478
- diagram: e
1479
- };
1480
- }, "loader")
1481
- }, Sa = "block", Ca = {
1482
- id: Sa,
1483
- detector: /* @__PURE__ */ a((e) => /^\s*block(-beta)?/.test(e), "detector"),
1484
- loader: /* @__PURE__ */ a(async () => {
1485
- let { diagram: e } = await import("./blockDiagram-WCTKOSBZ-CS-kh74L.js");
1486
- return {
1487
- id: Sa,
1488
- diagram: e
1489
- };
1490
- }, "loader")
1491
- }, wa = "architecture", Ta = {
1492
- id: wa,
1493
- detector: /* @__PURE__ */ a((e) => /^\s*architecture/.test(e), "detector"),
1494
- loader: /* @__PURE__ */ a(async () => {
1495
- let { diagram: e } = await import("./architectureDiagram-2XIMDMQ5-OvuktNfv.js");
1496
- return {
1497
- id: wa,
1498
- diagram: e
1499
- };
1500
- }, "loader")
1501
- }, Ea = "ishikawa", Da = {
1502
- id: Ea,
1503
- detector: /* @__PURE__ */ a((e) => /^\s*ishikawa(-beta)?\b/i.test(e), "detector"),
1504
- loader: /* @__PURE__ */ a(async () => {
1505
- let { diagram: e } = await import("./ishikawaDiagram-PHBUUO56-C_Hw5UnV.js");
1506
- return {
1507
- id: Ea,
1508
- diagram: e
1509
- };
1510
- }, "loader")
1511
- }, Oa = "venn", ka = {
1512
- id: Oa,
1513
- detector: /* @__PURE__ */ a((e) => /^\s*venn-beta/.test(e), "detector"),
1514
- loader: /* @__PURE__ */ a(async () => {
1515
- let { diagram: e } = await import("./vennDiagram-LZ73GAT5-lpWcIvN6.js");
1516
- return {
1517
- id: Oa,
1518
- diagram: e
1519
- };
1520
- }, "loader")
1521
- }, Aa = "treemap", ja = {
1522
- id: Aa,
1523
- detector: /* @__PURE__ */ a((e) => /^\s*treemap/.test(e), "detector"),
1524
- loader: /* @__PURE__ */ a(async () => {
1525
- let { diagram: e } = await import("./diagram-E7M64L7V-xZCloH_i.js");
1526
- return {
1527
- id: Aa,
1528
- diagram: e
1529
- };
1530
- }, "loader")
1531
- }, Ma = !1, Na = /* @__PURE__ */ a(() => {
1532
- Ma || (Ma = !0, x("error", sa, (e) => e.toLowerCase().trim() === "error"), x("---", {
1533
- db: { clear: /* @__PURE__ */ a(() => {}, "clear") },
1534
- styles: {},
1535
- renderer: { draw: /* @__PURE__ */ a(() => {}, "draw") },
1536
- parser: { parse: /* @__PURE__ */ a(() => {
1537
- throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks");
1538
- }, "parse") },
1539
- init: /* @__PURE__ */ a(() => null, "init")
1540
- }, (e) => e.toLowerCase().trimStart().startsWith("---")), le(la, pa, Ta), le(Ei, ha, Qi, Xi, Mi, Ii, Ri, Bi, Ki, Ji, Ai, Oi, da, Pi, na, ea, ia, Hi, _a, ya, Wi, Ca, xa, Da, ja, ka));
1541
- }, "addDiagrams"), Pa = /* @__PURE__ */ a(async () => {
1542
- i.debug("Loading registered diagrams");
1543
- let e = (await Promise.allSettled(Object.entries(Se).map(async ([e, { detector: t, loader: n }]) => {
1544
- if (n) try {
1545
- De(e);
1546
- } catch {
1547
- try {
1548
- let { diagram: e, id: r } = await n();
1549
- x(r, e, t);
1550
- } catch (t) {
1551
- throw i.error(`Failed to load external diagram with key ${e}. Removing from detectors.`), delete Se[e], t;
1552
- }
1553
- }
1554
- }))).filter((e) => e.status === "rejected");
1555
- if (e.length > 0) {
1556
- i.error(`Failed to load ${e.length} external diagrams`);
1557
- for (let t of e) i.error(t);
1558
- throw Error(`Failed to load ${e.length} external diagrams`);
1559
- }
1560
- }, "loadRegisteredDiagrams"), Fa = "graphics-document document";
1561
- function Ia(e, t) {
1562
- e.attr("role", Fa), t !== "" && e.attr("aria-roledescription", t);
1563
- }
1564
- a(Ia, "setA11yDiagramInfo");
1565
- function La(e, t, n, r) {
1566
- if (e.insert !== void 0) {
1567
- if (n) {
1568
- let t = `chart-desc-${r}`;
1569
- e.attr("aria-describedby", t), e.insert("desc", ":first-child").attr("id", t).text(n);
1570
- }
1571
- if (t) {
1572
- let n = `chart-title-${r}`;
1573
- e.attr("aria-labelledby", n), e.insert("title", ":first-child").attr("id", n).text(t);
1574
- }
1575
- }
1576
- }
1577
- a(La, "addSVGa11yTitleDescription");
1578
- var Ra = class e {
1579
- constructor(e, t, n, r, i) {
1580
- this.type = e, this.text = t, this.db = n, this.parser = r, this.renderer = i;
1581
- }
1582
- static {
1583
- a(this, "Diagram");
1584
- }
1585
- static async fromText(t, n = {}) {
1586
- let r = S(), i = _e(t, r);
1587
- t = ee(t) + "\n";
1588
- try {
1589
- De(i);
1590
- } catch {
1591
- let e = ue(i);
1592
- if (!e) throw new Te(`Diagram ${i} not found.`);
1593
- let { id: t, diagram: n } = await e();
1594
- x(t, n);
1595
- }
1596
- let { db: a, parser: o, renderer: s, init: c } = De(i);
1597
- return o.parser && (o.parser.yy = a), a.clear?.(), c?.(r), n.title && a.setDiagramTitle?.(n.title), await o.parse(t), new e(i, t, a, o, s);
1598
- }
1599
- async render(e, t) {
1600
- await this.renderer.draw(this.text, e, t, this);
1601
- }
1602
- getParser() {
1603
- return this.parser;
1604
- }
1605
- getType() {
1606
- return this.type;
1607
- }
1608
- }, za = [], Ba = /* @__PURE__ */ a(() => {
1609
- za.forEach((e) => {
1610
- e();
1611
- }), za = [];
1612
- }, "attachFunctions"), Va = /* @__PURE__ */ a((e) => e.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments");
1613
- function Ha(e) {
1614
- let t = e.match(ve);
1615
- if (!t) return {
1616
- text: e,
1617
- metadata: {}
1618
- };
1619
- let n = wi(t[1], { schema: Ci }) ?? {};
1620
- n = typeof n == "object" && !Array.isArray(n) ? n : {};
1621
- let r = {};
1622
- return n.displayMode && (r.displayMode = n.displayMode.toString()), n.title && (r.title = n.title.toString()), n.config && (r.config = n.config), {
1623
- text: e.slice(t[0].length),
1624
- metadata: r
1625
- };
1626
- }
1627
- a(Ha, "extractFrontMatter");
1628
- var Ua = /* @__PURE__ */ a((e) => e.replace(/\r\n?/g, "\n").replace(/<(\w+)([^>]*)>/g, (e, t, n) => "<" + t + n.replace(/="([^"]*)"/g, "='$1'") + ">"), "cleanupText"), Wa = /* @__PURE__ */ a((e) => {
1629
- let { text: t, metadata: n } = Ha(e), { displayMode: r, title: i, config: a = {} } = n;
1630
- return r && (a.gantt ||= {}, a.gantt.displayMode = r), {
1631
- title: i,
1632
- config: a,
1633
- text: t
1634
- };
1635
- }, "processFrontmatter"), Ga = /* @__PURE__ */ a((e) => {
1636
- let t = y.detectInit(e) ?? {}, n = y.detectDirective(e, "wrap");
1637
- return Array.isArray(n) ? t.wrap = n.some(({ type: e }) => e === "wrap") : n?.type === "wrap" && (t.wrap = !0), {
1638
- text: re(e),
1639
- directive: t
1640
- };
1641
- }, "processDirectives");
1642
- function Ka(e) {
1643
- let t = Wa(Ua(e)), n = Ga(t.text), r = ie(t.config, n.directive);
1644
- return e = Va(n.text), {
1645
- code: e,
1646
- title: t.title,
1647
- config: r
1648
- };
1649
- }
1650
- a(Ka, "preprocessDiagram");
1651
- function qa(e) {
1652
- let t = new TextEncoder().encode(e), n = Array.from(t, (e) => String.fromCodePoint(e)).join("");
1653
- return btoa(n);
1654
- }
1655
- a(qa, "toBase64");
1656
- var Ja = 5e4, Ya = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", Xa = "sandbox", Za = "loose", Qa = "http://www.w3.org/2000/svg", $a = "http://www.w3.org/1999/xlink", eo = "http://www.w3.org/1999/xhtml", to = "100%", no = "100%", ro = "border:0;margin:0;", io = "margin:0", ao = "allow-top-navigation-by-user-activation allow-popups", oo = "The \"iframe\" tag is not supported by your browser.", so = ["foreignobject"], co = ["dominant-baseline"];
1657
- function lo(e) {
1658
- let t = Ka(e);
1659
- return b(), xe(t.config ?? {}), t;
1660
- }
1661
- a(lo, "processAndSetConfigs");
1662
- async function uo(e, t) {
1663
- Na();
1664
- try {
1665
- let { code: t, config: n } = lo(e);
1666
- return {
1667
- diagramType: (await So(t)).type,
1668
- config: n
1669
- };
1670
- } catch (e) {
1671
- if (t?.suppressErrors) return !1;
1672
- throw e;
1673
- }
1674
- }
1675
- a(uo, "parse");
1676
- var fo = /* @__PURE__ */ a((e, t, n = []) => `
1677
- .${e} ${t} { ${n.join(" !important; ")} !important; }`, "cssImportantStyles"), po = /* @__PURE__ */ a((e, t = /* @__PURE__ */ new Map()) => {
1678
- let n = "";
1679
- if (e.themeCSS !== void 0 && (n += `
1680
- ${e.themeCSS}`), e.fontFamily !== void 0 && (n += `
1681
- :root { --mermaid-font-family: ${e.fontFamily}}`), e.altFontFamily !== void 0 && (n += `
1682
- :root { --mermaid-alt-font-family: ${e.altFontFamily}}`), t instanceof Map) {
1683
- let r = Ee(e) ? ["> *", "span"] : [
1684
- "rect",
1685
- "polygon",
1686
- "ellipse",
1687
- "circle",
1688
- "path"
1689
- ];
1690
- t.forEach((e) => {
1691
- ot(e.styles) || r.forEach((t) => {
1692
- n += fo(e.id, t, e.styles);
1693
- }), ot(e.textStyles) || (n += fo(e.id, "tspan", (e?.textStyles || []).map((e) => e.replace("color", "fill"))));
1694
- });
1695
- }
1696
- return n;
1697
- }, "createCssStyles"), mo = /* @__PURE__ */ a((r, i, a, o) => {
1698
- let s = po(r, a), c = ce(i, s, r.themeVariables);
1699
- return n(t(`${o}{${c}}`), e);
1700
- }, "createUserStyles"), ho = /* @__PURE__ */ a((e = "", t, n) => {
1701
- let r = e;
1702
- return !n && !t && (r = r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g, "marker-end=\"url(#")), r = ne(r), r = r.replace(/<br>/g, "<br/>"), r;
1703
- }, "cleanUpSvgCode"), go = /* @__PURE__ */ a((e = "", t) => `<iframe style="width:${to};height:${t?.viewBox?.baseVal?.height ? t.viewBox.baseVal.height + "px" : no};${ro}" src="data:text/html;charset=UTF-8;base64,${qa(`<body style="${io}">${e}</body>`)}" sandbox="${ao}">
1704
- ${oo}
1705
- </iframe>`, "putIntoIFrame"), _o = /* @__PURE__ */ a((e, t, n, r, i) => {
1706
- let a = e.append("div");
1707
- a.attr("id", n), r && a.attr("style", r);
1708
- let o = a.append("svg").attr("id", t).attr("width", "100%").attr("xmlns", Qa);
1709
- return i && o.attr("xmlns:xlink", i), o.append("g"), e;
1710
- }, "appendDivSvgG");
1711
- function vo(e, t) {
1712
- return e.append("iframe").attr("id", t).attr("style", "width: 100%; height: 100%;").attr("sandbox", "");
1713
- }
1714
- a(vo, "sandboxedIframe");
1715
- var yo = /* @__PURE__ */ a((e, t, n, r) => {
1716
- e.getElementById(t)?.remove(), e.getElementById(n)?.remove(), e.getElementById(r)?.remove();
1717
- }, "removeExistingElements"), bo = /* @__PURE__ */ a(async function(e, t, n) {
1718
- Na();
1719
- let r = lo(t);
1720
- t = r.code;
1721
- let s = S();
1722
- i.debug(s), t.length > (s?.maxTextSize ?? Ja) && (t = Ya);
1723
- let c = "#" + e, l = "i" + e, u = "#" + l, d = "d" + e, f = "#" + d, p = /* @__PURE__ */ a(() => {
1724
- let e = o(h ? u : f).node();
1725
- e && "remove" in e && e.remove();
1726
- }, "removeTempElements"), m = o("body"), h = s.securityLevel === Xa, g = s.securityLevel === Za, _ = s.fontFamily;
1727
- if (n !== void 0) {
1728
- if (n && (n.innerHTML = ""), h) {
1729
- let e = vo(o(n), l);
1730
- m = o(e.nodes()[0].contentDocument.body), m.node().style.margin = 0;
1731
- } else m = o(n);
1732
- _o(m, e, d, `font-family: ${_}`, $a);
1733
- } else {
1734
- if (yo(document, e, d, l), h) {
1735
- let e = vo(o("body"), l);
1736
- m = o(e.nodes()[0].contentDocument.body), m.node().style.margin = 0;
1737
- } else m = o("body");
1738
- _o(m, e, d);
1739
- }
1740
- let v, ee;
1741
- try {
1742
- v = await Ra.fromText(t, { title: r.title });
1743
- } catch (e) {
1744
- if (s.suppressErrorRendering) throw p(), e;
1745
- v = await Ra.fromText("error"), ee = e;
1746
- }
1747
- let te = m.select(f).node(), y = v.type, ne = te.firstChild, re = ne.firstChild, ie = v.renderer.getClasses?.(t, v), ae = mo(s, y, ie, c), b = document.createElement("style");
1748
- b.innerHTML = ae, ne.insertBefore(b, re);
1749
- try {
1750
- await v.renderer.draw(t, e, "11.13.0", v);
1751
- } catch (n) {
1752
- throw s.suppressErrorRendering ? p() : oa.draw(t, e, "11.13.0"), n;
1753
- }
1754
- let oe = m.select(`${f} svg`), se = v.db.getAccTitle?.(), ce = v.db.getAccDescription?.();
1755
- Co(y, oe, se, ce), m.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns", eo);
1756
- let x = m.select(f).node().innerHTML;
1757
- if (i.debug("config.arrowMarkerAbsolute", s.arrowMarkerAbsolute), x = ho(x, h, ye(s.arrowMarkerAbsolute)), h) {
1758
- let e = m.select(f + " svg").node();
1759
- x = go(x, e);
1760
- } else g || (x = me.sanitize(x, {
1761
- ADD_TAGS: so,
1762
- ADD_ATTR: co,
1763
- HTML_INTEGRATION_POINTS: { foreignobject: !0 }
1764
- }));
1765
- if (Ba(), ee) throw ee;
1766
- return p(), {
1767
- diagramType: y,
1768
- svg: x,
1769
- bindFunctions: v.db.bindFunctions
1770
- };
1771
- }, "render");
1772
- function xo(e = {}) {
1773
- let t = Ce({}, e);
1774
- t?.fontFamily && !t.themeVariables?.fontFamily && (t.themeVariables ||= {}, t.themeVariables.fontFamily = t.fontFamily), Oe(t), t?.theme && t.theme in pe ? t.themeVariables = pe[t.theme].getThemeVariables(t.themeVariables) : t && (t.themeVariables = pe.default.getThemeVariables(t.themeVariables));
1775
- let n = typeof t == "object" ? oe(t) : de();
1776
- r(n.logLevel), Na();
1777
- }
1778
- a(xo, "initialize");
1779
- var So = /* @__PURE__ */ a((e, t = {}) => {
1780
- let { code: n } = Ka(e);
1781
- return Ra.fromText(n, t);
1782
- }, "getDiagramFromText");
1783
- function Co(e, t, n, r) {
1784
- Ia(t, e), La(t, n, r, t.attr("id"));
1785
- }
1786
- a(Co, "addA11yInfo");
1787
- var Q = Object.freeze({
1788
- render: bo,
1789
- parse: uo,
1790
- getDiagramFromText: So,
1791
- initialize: xo,
1792
- getConfig: S,
1793
- setConfig: se,
1794
- getSiteConfig: de,
1795
- updateSiteConfig: fe,
1796
- reset: /* @__PURE__ */ a(() => {
1797
- b();
1798
- }, "reset"),
1799
- globalReset: /* @__PURE__ */ a(() => {
1800
- b(be);
1801
- }, "globalReset"),
1802
- defaultConfig: be
1803
- });
1804
- r(S().logLevel), b(S());
1805
- var wo = /* @__PURE__ */ a((e, t, n) => {
1806
- i.warn(e), te(e) ? (n && n(e.str, e.hash), t.push({
1807
- ...e,
1808
- message: e.str,
1809
- error: e
1810
- })) : (n && n(e), e instanceof Error && t.push({
1811
- str: e.message,
1812
- message: e.message,
1813
- hash: e.name,
1814
- error: e
1815
- }));
1816
- }, "handleError"), To = /* @__PURE__ */ a(async function(e = { querySelector: ".mermaid" }) {
1817
- try {
1818
- await Eo(e);
1819
- } catch (t) {
1820
- if (te(t) && i.error(t.str), $.parseError && $.parseError(t), !e.suppressErrors) throw i.error("Use the suppressErrors option to suppress these errors"), t;
1821
- }
1822
- }, "run"), Eo = /* @__PURE__ */ a(async function({ postRenderCallback: e, querySelector: t, nodes: n } = { querySelector: ".mermaid" }) {
1823
- let r = Q.getConfig();
1824
- i.debug(`${e ? "" : "No "}Callback function found`);
1825
- let a;
1826
- if (n) a = n;
1827
- else if (t) a = document.querySelectorAll(t);
1828
- else throw Error("Nodes and querySelector are both undefined");
1829
- i.debug(`Found ${a.length} diagrams`), r?.startOnLoad !== void 0 && (i.debug("Start On Load: " + r?.startOnLoad), Q.updateSiteConfig({ startOnLoad: r?.startOnLoad }));
1830
- let o = new y.InitIDGenerator(r.deterministicIds, r.deterministicIDSeed), s, c = [];
1831
- for (let t of Array.from(a)) {
1832
- if (i.info("Rendering diagram: " + t.id), t.getAttribute("data-processed")) continue;
1833
- t.setAttribute("data-processed", "true");
1834
- let n = `mermaid-${o.next()}`;
1835
- s = t.innerHTML, s = Ae(y.entityDecode(s)).trim().replace(/<br\s*\/?>/gi, "<br/>");
1836
- let r = y.detectInit(s);
1837
- r && i.debug("Detected early reinit: ", r);
1838
- try {
1839
- let { svg: r, bindFunctions: i } = await Io(n, s, t);
1840
- t.innerHTML = r, e && await e(n), i && i(t);
1841
- } catch (e) {
1842
- wo(e, c, $.parseError);
1843
- }
1844
- }
1845
- if (c.length > 0) throw c[0];
1846
- }, "runThrowsErrors"), Do = /* @__PURE__ */ a(function(e) {
1847
- Q.initialize(e);
1848
- }, "initialize"), Oo = /* @__PURE__ */ a(async function(e, t, n) {
1849
- i.warn("mermaid.init is deprecated. Please use run instead."), e && Do(e);
1850
- let r = {
1851
- postRenderCallback: n,
1852
- querySelector: ".mermaid"
1853
- };
1854
- typeof t == "string" ? r.querySelector = t : t && (r.nodes = t instanceof HTMLElement ? [t] : t), await To(r);
1855
- }, "init"), ko = /* @__PURE__ */ a(async (e, { lazyLoad: t = !0 } = {}) => {
1856
- Na(), le(...e), t === !1 && await Pa();
1857
- }, "registerExternalDiagrams"), Ao = /* @__PURE__ */ a(function() {
1858
- if ($.startOnLoad) {
1859
- let { startOnLoad: e } = Q.getConfig();
1860
- e && $.run().catch((e) => i.error("Mermaid failed to initialize", e));
1861
- }
1862
- }, "contentLoaded");
1863
- typeof document < "u" && window.addEventListener("load", Ao, !1);
1864
- var jo = /* @__PURE__ */ a(function(e) {
1865
- $.parseError = e;
1866
- }, "setParseErrorHandler"), Mo = [], No = !1, Po = /* @__PURE__ */ a(async () => {
1867
- if (!No) {
1868
- for (No = !0; Mo.length > 0;) {
1869
- let e = Mo.shift();
1870
- if (e) try {
1871
- await e();
1872
- } catch (e) {
1873
- i.error("Error executing queue", e);
1874
- }
1875
- }
1876
- No = !1;
1877
- }
1878
- }, "executeQueue"), Fo = /* @__PURE__ */ a(async (e, t) => new Promise((n, r) => {
1879
- let o = /* @__PURE__ */ a(() => new Promise((a, o) => {
1880
- Q.parse(e, t).then((e) => {
1881
- a(e), n(e);
1882
- }, (e) => {
1883
- i.error("Error parsing", e), $.parseError?.(e), o(e), r(e);
1884
- });
1885
- }), "performCall");
1886
- Mo.push(o), Po().catch(r);
1887
- }), "parse"), Io = /* @__PURE__ */ a((e, t, n) => new Promise((r, o) => {
1888
- let s = /* @__PURE__ */ a(() => new Promise((a, s) => {
1889
- Q.render(e, t, n).then((e) => {
1890
- a(e), r(e);
1891
- }, (e) => {
1892
- i.error("Error parsing", e), $.parseError?.(e), s(e), o(e);
1893
- });
1894
- }), "performCall");
1895
- Mo.push(s), Po().catch(o);
1896
- }), "render"), $ = {
1897
- startOnLoad: !0,
1898
- mermaidAPI: Q,
1899
- parse: Fo,
1900
- render: Io,
1901
- init: Oo,
1902
- run: To,
1903
- registerExternalDiagrams: ko,
1904
- registerLayoutLoaders: lt,
1905
- initialize: Do,
1906
- parseError: void 0,
1907
- contentLoaded: Ao,
1908
- setParseErrorHandler: jo,
1909
- detectType: _e,
1910
- registerIconPacks: ke,
1911
- getRegisteredDiagramsMetadata: /* @__PURE__ */ a(() => Object.keys(Se).map((e) => ({ id: e })), "getRegisteredDiagramsMetadata")
1912
- }, Lo = $;
1913
- //#endregion
1914
- export { st as a, We as c, Lo as default, ut as i, Ve as l, wi as n, ot as o, dt as r, nt as s, Ci as t };