@antdv-next/x 1.0.2-beta.1 → 1.0.2-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/dist/code-highlighter/CodeHighlighter.js +24 -7
  2. package/dist/index.umd.js +49 -8
  3. package/dist/package.js +1 -1
  4. package/dist/x-provider/context.d.ts +5 -1
  5. package/dist/x-provider/index.d.ts +47 -0
  6. package/dist/x-provider/index.js +25 -0
  7. package/{dist-browser/_basePickBy-Cy7KVmkk.js → es/_basePickBy-DPqob0cQ.js} +2 -2
  8. package/{dist-browser/_baseUniq-Ch3HuHeT.js → es/_baseUniq-AMhRdOMz.js} +2 -2
  9. package/es/antdv-next-x.esm.js +22171 -0
  10. package/es/architecture-PBZL5I3N-CBmkTWjb.js +3 -0
  11. package/{dist-browser/architectureDiagram-2XIMDMQ5-D3IYLROv.js → es/architectureDiagram-2XIMDMQ5-ZOgJV9Kg.js} +84 -84
  12. package/{dist-browser/blockDiagram-WCTKOSBZ-nXanZ0sc.js → es/blockDiagram-WCTKOSBZ-8iZwAKBK.js} +529 -529
  13. package/{dist-browser/c4Diagram-IC4MRINW-C-gVp6th.js → es/c4Diagram-IC4MRINW-DrH9eRMR.js} +168 -168
  14. package/{dist-browser/channel-DoEe9DF9.js → es/channel-DIQFjdG3.js} +1 -1
  15. package/{dist-browser/chunk-4BX2VUAB-fLFD6XW0.js → es/chunk-4BX2VUAB-DUVpjbJi.js} +1 -1
  16. package/{dist-browser/chunk-55IACEB6-OtyKJzCH.js → es/chunk-55IACEB6-RlJ-J3tE.js} +1 -1
  17. package/{dist-browser/chunk-7E7YKBS2-C1dd36rm.js → es/chunk-7E7YKBS2-ChLFamzc.js} +1 -1
  18. package/{dist-browser/chunk-7R4GIKGN-DuTRhdsf.js → es/chunk-7R4GIKGN-B9vamSzt.js} +2 -2
  19. package/{dist-browser/chunk-C72U2L5F-ClmZGhFC.js → es/chunk-C72U2L5F-BV-rXau1.js} +1 -1
  20. package/{dist-browser/chunk-EGIJ26TM-Bar_u1MN.js → es/chunk-EGIJ26TM-GvsuORRL.js} +1 -1
  21. package/{dist-browser/chunk-FMBD7UC4-C_uJ_JJA.js → es/chunk-FMBD7UC4-D6ZlqqMC.js} +1 -1
  22. package/{dist-browser/chunk-GEFDOKGD-P7WhyrTU.js → es/chunk-GEFDOKGD-DM6dsEsk.js} +251 -251
  23. package/{dist-browser/chunk-GLR3WWYH-BvazRgdo.js → es/chunk-GLR3WWYH-CqFdLic9.js} +16 -16
  24. package/{dist-browser/chunk-HHEYEP7N-rv5s5WD4.js → es/chunk-HHEYEP7N-FVfYw94p.js} +2 -2
  25. package/{dist-browser/chunk-JSJVCQXG-89HUGe9V.js → es/chunk-JSJVCQXG-Wr9uPcCh.js} +2 -2
  26. package/{dist-browser/chunk-KX2RTZJC-pMHnNRQg.js → es/chunk-KX2RTZJC-BGffjoxB.js} +2 -2
  27. package/{dist-browser/chunk-KYZI473N-DJmSs1gK.js → es/chunk-KYZI473N-Bit5smNE.js} +571 -571
  28. package/{dist-browser/chunk-L3YUKLVL-Ck54qytQ.js → es/chunk-L3YUKLVL-DBuHDpQ2.js} +1 -1
  29. package/{dist-browser/chunk-MX3YWQON-MkpK3uBD.js → es/chunk-MX3YWQON-Cbj2WwUZ.js} +1 -1
  30. package/{dist-browser/chunk-NQ4KR5QH-DGshodQv.js → es/chunk-NQ4KR5QH-FPQ-IHJN.js} +119 -119
  31. package/{dist-browser/chunk-O4XLMI2P-e-ZzDQwg.js → es/chunk-O4XLMI2P-BCDk0ZIW.js} +237 -237
  32. package/{dist-browser/chunk-OZEHJAEY-DULNd43V.js → es/chunk-OZEHJAEY-BZ24IOgQ.js} +1 -1
  33. package/{dist-browser/chunk-PQ6SQG4A-CQ9Csv7s.js → es/chunk-PQ6SQG4A-DpwBx6Hx.js} +2 -2
  34. package/{dist-browser/chunk-PU5JKC2W-DkEFvrjH.js → es/chunk-PU5JKC2W-BNpJuXxn.js} +63 -63
  35. package/{dist-browser/chunk-QZHKN3VN-qww1plfw.js → es/chunk-QZHKN3VN-NEMwPryC.js} +1 -1
  36. package/{dist-browser/chunk-R5LLSJPH-BERXSDGJ.js → es/chunk-R5LLSJPH-g44vgerl.js} +1 -1
  37. package/{dist-browser/chunk-WL4C6EOR-C-d8WPS7.js → es/chunk-WL4C6EOR-B6l-Yy2t.js} +119 -119
  38. package/{dist-browser/chunk-XIRO2GV7-CFHofxVB.js → es/chunk-XIRO2GV7-CaFInIOW.js} +1 -1
  39. package/{dist-browser/chunk-XPW4576I-DgvoNZkW.js → es/chunk-XPW4576I-Cp1j6iTN.js} +1 -1
  40. package/{dist-browser/chunk-XZSTWKYB-k8_EXrSa.js → es/chunk-XZSTWKYB-CGk7ipHd.js} +5 -5
  41. package/{dist-browser/chunk-YBOYWFTD-BUW4AzEX.js → es/chunk-YBOYWFTD-dOTBpTYs.js} +7 -7
  42. package/es/classDiagram-VBA2DB6C-B3yBiQy3.js +29 -0
  43. package/es/classDiagram-v2-RAHNMMFH-jbFYm_Xj.js +29 -0
  44. package/{dist-browser/clone-BXDbKCDu.js → es/clone-DXVS0uSx.js} +1 -1
  45. package/{dist-browser/cose-bilkent-S5V4N54A-CnrS2OC1.js → es/cose-bilkent-S5V4N54A-DlmXyn6m.js} +1 -1
  46. package/{dist-browser/css-Dh17kjFY.js → es/css-DyS1hwc1.js} +1 -1
  47. package/es/css-HrHT_VUz.js +2 -0
  48. package/{dist-browser/dagre-BJOzGlhW.js → es/dagre-B1qTL793.js} +6 -6
  49. package/es/dagre-KLK3FWXG-CEhXRLVR.js +294 -0
  50. package/{dist-browser/diagram-E7M64L7V-DxuJj8ZG.js → es/diagram-E7M64L7V-Dnd8N74o.js} +59 -59
  51. package/{dist-browser/diagram-IFDJBPK2-BOpPZ6pu.js → es/diagram-IFDJBPK2-Dan7RsGr.js} +30 -30
  52. package/{dist-browser/diagram-P4PSJMXO--ChDmcya.js → es/diagram-P4PSJMXO-DwKJpttH.js} +31 -31
  53. package/{dist-browser/erDiagram-INFDFZHY-BA3m-v87.js → es/erDiagram-INFDFZHY-CGO6k23w.js} +127 -127
  54. package/{dist-browser/flowDiagram-PKNHOUZH-BCq6k3kr.js → es/flowDiagram-PKNHOUZH-DFN1GsRx.js} +155 -155
  55. package/{dist-browser/ganttDiagram-A5KZAMGK-DdMePS21.js → es/ganttDiagram-A5KZAMGK-Cf5NxH1w.js} +599 -602
  56. package/es/gitGraph-HDMCJU4V-CrEEHSZS.js +3 -0
  57. package/{dist-browser/gitGraphDiagram-K3NZZRJ6-CLbRwChG.js → es/gitGraphDiagram-K3NZZRJ6-BgE6aSZO.js} +175 -175
  58. package/{dist-browser/graphlib-C7ysKz4u.js → es/graphlib-DFxSohCv.js} +3 -3
  59. package/{dist-browser/html-BmZO1Eoo.js → es/html-C2-_98S6.js} +2 -2
  60. package/es/html-JbFqcNgP.js +2 -0
  61. package/es/info-3K5VOQVL-Dg3DCp4F.js +3 -0
  62. package/{dist-browser/infoDiagram-LFFYTUFH-DQAZ-vFk.js → es/infoDiagram-LFFYTUFH-WcApcdl5.js} +4 -4
  63. package/{dist-browser/isEmpty-2JxdWtc-.js → es/isEmpty-B1YrVV8B.js} +1 -1
  64. package/{dist-browser/ishikawaDiagram-PHBUUO56-B0r2IgGz.js → es/ishikawaDiagram-PHBUUO56-DwK7J31a.js} +65 -65
  65. package/{dist-browser/journeyDiagram-4ABVD52K-DnMUhOvg.js → es/journeyDiagram-4ABVD52K-CWuA57by.js} +4 -4
  66. package/{dist-browser/kanban-definition-K7BYSVSG-Da5Y-nJy.js → es/kanban-definition-K7BYSVSG-DBt3gYRQ.js} +10 -10
  67. package/{dist-browser/line-h2iCTGsE.js → es/line-zOBKZCP5.js} +1 -1
  68. package/{dist-browser/linear-Bv7XrZCH.js → es/linear-DttXWw4q.js} +1 -1
  69. package/{dist-browser/mermaid-parser.core-kTgpNO7M.js → es/mermaid-parser.core-CWNEdmZ_.js} +15 -15
  70. package/{dist-browser/mermaid.core-DRuUNxpC.js → es/mermaid.core-DPBXXViR.js} +206 -206
  71. package/{dist-browser/mindmap-definition-YRQLILUH-CYeqnCde.js → es/mindmap-definition-YRQLILUH-Bq2xqboX.js} +12 -12
  72. package/es/packet-RMMSAZCW-Dk7mKMJ4.js +3 -0
  73. package/es/pie-UPGHQEXC-CnM5YLNO.js +3 -0
  74. package/{dist-browser/pieDiagram-SKSYHLDU-DAsfTGvY.js → es/pieDiagram-SKSYHLDU-D4iMzwzH.js} +24 -24
  75. package/{dist-browser/quadrantDiagram-337W2JSQ-CZLbmQS4.js → es/quadrantDiagram-337W2JSQ-DSbXC0z6.js} +3 -3
  76. package/es/radar-KQ55EAFF-BwfADDx8.js +3 -0
  77. package/{dist-browser/requirementDiagram-Z7DCOOCP-Cb_Ygnfe.js → es/requirementDiagram-Z7DCOOCP-D7eLn3fs.js} +58 -58
  78. package/{dist-browser/sankeyDiagram-WA2Y5GQK-DBe5YfW4.js → es/sankeyDiagram-WA2Y5GQK-DN5ZPgWU.js} +2 -2
  79. package/{dist-browser/sequenceDiagram-2WXFIKYE-C_KUoojT.js → es/sequenceDiagram-2WXFIKYE-CRFEBP8-.js} +388 -388
  80. package/{dist-browser/stateDiagram-RAJIS63D-boG6DyfW.js → es/stateDiagram-RAJIS63D-CfO23QJX.js} +67 -67
  81. package/es/stateDiagram-v2-FVOUBMTO-BGWbXepL.js +27 -0
  82. package/{dist-browser/timeline-definition-YZTLITO2-pFt6rZ6S.js → es/timeline-definition-YZTLITO2-DmpPrD-3.js} +2 -2
  83. package/es/treemap-KZPCXAKY-BWfn7JxQ.js +3 -0
  84. package/{dist-browser/vennDiagram-LZ73GAT5-VaCO6k4H.js → es/vennDiagram-LZ73GAT5-B80Xr4jV.js} +104 -104
  85. package/{dist-browser/vue-BJ0ov2CZ.js → es/vue-DTiWrQBM.js} +3 -3
  86. package/{dist-browser/vue-html-D0gyDbfn.js → es/vue-html-BG3Xflut.js} +1 -1
  87. package/{dist-browser/xychartDiagram-JWTSCODW-xS5ybemA.js → es/xychartDiagram-JWTSCODW-DvQyPDr4.js} +98 -98
  88. package/package.json +13 -11
  89. package/dist/index.esm.js +0 -11377
  90. package/dist-browser/architecture-PBZL5I3N-DHfBr78A.js +0 -3
  91. package/dist-browser/classDiagram-VBA2DB6C-DWTAs0Zm.js +0 -29
  92. package/dist-browser/classDiagram-v2-RAHNMMFH-CoxCdmrt.js +0 -29
  93. package/dist-browser/css-D9vrnIUE.js +0 -2
  94. package/dist-browser/dagre-KLK3FWXG-CFC0naVr.js +0 -294
  95. package/dist-browser/gitGraph-HDMCJU4V-DbzpICZW.js +0 -3
  96. package/dist-browser/html-DnTYsv5k.js +0 -2
  97. package/dist-browser/index.es.js +0 -56150
  98. package/dist-browser/index.umd.js +0 -3281
  99. package/dist-browser/info-3K5VOQVL-CpUiQuel.js +0 -3
  100. package/dist-browser/packet-RMMSAZCW-UTFQ0FQx.js +0 -3
  101. package/dist-browser/pie-UPGHQEXC-CarAcBSi.js +0 -3
  102. package/dist-browser/radar-KQ55EAFF-NXK5PC9R.js +0 -3
  103. package/dist-browser/stateDiagram-v2-FVOUBMTO-DHCajhrN.js +0 -27
  104. package/dist-browser/treemap-KZPCXAKY-Cj9QakFB.js +0 -3
  105. /package/{dist-browser → es}/Serializer-y_SfSPKv.js +0 -0
  106. /package/{dist-browser → es}/arc-caEkbRYF.js +0 -0
  107. /package/{dist-browser → es}/array-CWNufkl9.js +0 -0
  108. /package/{dist-browser → es}/bash-CXEwhtGQ.js +0 -0
  109. /package/{dist-browser → es}/chunk-WQLz0Won.js +0 -0
  110. /package/{dist-browser → es}/cytoscape.esm-BY3wHcbp.js +0 -0
  111. /package/{dist-browser → es}/defaultLocale-BaPFSbai.js +0 -0
  112. /package/{dist-browser → es}/diff-BSu5dsa2.js +0 -0
  113. /package/{dist-browser → es}/dist-DltyvPj3.js +0 -0
  114. /package/{dist-browser → es}/init-PAs0hR-b.js +0 -0
  115. /package/{dist-browser/isArrayLikeObject-y3HlYDaX.js → es/isArrayLikeObject-BEG9p74d.js} +0 -0
  116. /package/{dist-browser → es}/javascript-BXHK_bZ2.js +0 -0
  117. /package/{dist-browser → es}/javascript-NV_FQBab.js +0 -0
  118. /package/{dist-browser → es}/json-C8Y9C4Ne.js +0 -0
  119. /package/{dist-browser → es}/json-DZ_9-j3Q.js +0 -0
  120. /package/{dist-browser → es}/jsx-CxlNNvOI.js +0 -0
  121. /package/{dist-browser/katex-b-xdokOf.js → es/katex-OR8z_f6I.js} +0 -0
  122. /package/{dist-browser → es}/markdown-BKwT7HWz.js +0 -0
  123. /package/{dist-browser → es}/math-DPzKeDKn.js +0 -0
  124. /package/{dist-browser → es}/mermaid-C1RUu_Iw.js +0 -0
  125. /package/{dist-browser → es}/ordinal-D8PKtxfM.js +0 -0
  126. /package/{dist-browser → es}/path-DZ-6AyWK.js +0 -0
  127. /package/{dist-browser → es}/python-BQM8giqx.js +0 -0
  128. /package/{dist-browser → es}/rough.esm-C_hJ3ICT.js +0 -0
  129. /package/{dist-browser/src-BukXhifV.js → es/src-BH16DVv0.js} +0 -0
  130. /package/{dist-browser → es}/tsx-DIYEV_g7.js +0 -0
  131. /package/{dist-browser → es}/typescript-B6MWEsBH.js +0 -0
  132. /package/{dist-browser → es}/typescript-CR48gG1F.js +0 -0
  133. /package/{dist-browser → es}/yaml-Y0CqUPTQ.js +0 -0
@@ -1,69 +1,69 @@
1
- import { g as e, h as t, p as n } from "./src-BukXhifV.js";
2
- import { A as r, B as i, F as a, H as o, O as s, R as c, S as l, U as u, V as d, b as f, c as p, g as ee, i as te, j as m, l as h, n as g, p as _, r as ne, s as re, t as ie, u as v, y as ae } from "./isArrayLikeObject-y3HlYDaX.js";
3
- import { I as y, f as oe, m as b, r as se, s as x } from "./chunk-7R4GIKGN-DuTRhdsf.js";
1
+ import { A as e, B as t, F as n, H as r, O as i, R as a, S as o, U as s, V as c, b as l, c as u, g as ee, i as te, j as d, l as f, n as p, p as m, r as ne, s as re, t as ie, u as h, y as ae } from "./isArrayLikeObject-BEG9p74d.js";
2
+ import { g, h as _, p as v } from "./src-BH16DVv0.js";
3
+ import { I as y, f as oe, m as b, r as se, s as x } from "./chunk-7R4GIKGN-B9vamSzt.js";
4
4
  import "./math-DPzKeDKn.js";
5
5
  import { t as ce } from "./dist-DltyvPj3.js";
6
6
  //#region ../../node_modules/lodash-es/isPlainObject.js
7
- var le = "[object Object]", ue = Function.prototype, de = Object.prototype, S = ue.toString, fe = de.hasOwnProperty, pe = S.call(Object);
8
- function me(e) {
9
- if (!o(e) || u(e) != le) return !1;
10
- var t = h(e);
7
+ var le = "[object Object]", ue = Function.prototype, de = Object.prototype, fe = ue.toString, pe = de.hasOwnProperty, me = fe.call(Object);
8
+ function he(e) {
9
+ if (!r(e) || s(e) != le) return !1;
10
+ var t = f(e);
11
11
  if (t === null) return !0;
12
- var n = fe.call(t, "constructor") && t.constructor;
13
- return typeof n == "function" && n instanceof n && S.call(n) == pe;
12
+ var n = pe.call(t, "constructor") && t.constructor;
13
+ return typeof n == "function" && n instanceof n && fe.call(n) == me;
14
14
  }
15
15
  //#endregion
16
16
  //#region ../../node_modules/lodash-es/_assignMergeValue.js
17
- function C(e, t, n) {
18
- (n !== void 0 && !r(e[t], n) || n === void 0 && !(t in e)) && m(e, t, n);
17
+ function S(t, n, r) {
18
+ (r !== void 0 && !e(t[n], r) || r === void 0 && !(n in t)) && d(t, n, r);
19
19
  }
20
20
  //#endregion
21
21
  //#region ../../node_modules/lodash-es/_safeGet.js
22
- function w(e, t) {
22
+ function C(e, t) {
23
23
  if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__") return e[t];
24
24
  }
25
25
  //#endregion
26
26
  //#region ../../node_modules/lodash-es/toPlainObject.js
27
- function he(e) {
28
- return s(e, _(e));
27
+ function ge(e) {
28
+ return i(e, m(e));
29
29
  }
30
30
  //#endregion
31
31
  //#region ../../node_modules/lodash-es/_baseMergeDeep.js
32
- function ge(e, t, n, r, o, s, l) {
33
- var u = w(e, n), p = w(t, n), m = l.get(p);
32
+ function _e(e, r, i, o, s, u, d) {
33
+ var f = C(e, i), p = C(r, i), m = d.get(p);
34
34
  if (m) {
35
- C(e, n, m);
35
+ S(e, i, m);
36
36
  return;
37
37
  }
38
- var h = s ? s(u, p, n + "", e, t, l) : void 0, g = h === void 0;
38
+ var h = u ? u(f, p, i + "", e, r, d) : void 0, g = h === void 0;
39
39
  if (g) {
40
- var _ = d(p), v = !_ && ae(p), y = !_ && !v && ee(p);
41
- h = p, _ || v || y ? d(u) ? h = u : ie(u) ? h = a(u) : v ? (g = !1, h = re(p, !0)) : y ? (g = !1, h = te(p, !0)) : h = [] : me(p) || f(p) ? (h = u, f(u) ? h = he(u) : (!i(u) || c(u)) && (h = ne(p))) : g = !1;
40
+ var _ = c(p), v = !_ && ae(p), y = !_ && !v && ee(p);
41
+ h = p, _ || v || y ? c(f) ? h = f : ie(f) ? h = n(f) : v ? (g = !1, h = re(p, !0)) : y ? (g = !1, h = te(p, !0)) : h = [] : he(p) || l(p) ? (h = f, l(f) ? h = ge(f) : (!t(f) || a(f)) && (h = ne(p))) : g = !1;
42
42
  }
43
- g && (l.set(p, h), o(h, p, r, s, l), l.delete(p)), C(e, n, h);
43
+ g && (d.set(p, h), s(h, p, o, u, d), d.delete(p)), S(e, i, h);
44
44
  }
45
45
  //#endregion
46
46
  //#region ../../node_modules/lodash-es/_baseMerge.js
47
- function _e(e, t, n, r, a) {
48
- e !== t && g(t, function(o, s) {
49
- if (a ||= new p(), i(o)) ge(e, t, s, n, _e, r, a);
47
+ function ve(e, n, r, i, a) {
48
+ e !== n && p(n, function(o, s) {
49
+ if (a ||= new u(), t(o)) _e(e, n, s, r, ve, i, a);
50
50
  else {
51
- var c = r ? r(w(e, s), o, s + "", e, t, a) : void 0;
52
- c === void 0 && (c = o), C(e, s, c);
51
+ var c = i ? i(C(e, s), o, s + "", e, n, a) : void 0;
52
+ c === void 0 && (c = o), S(e, s, c);
53
53
  }
54
- }, _);
54
+ }, m);
55
55
  }
56
56
  //#endregion
57
57
  //#region ../../node_modules/lodash-es/merge.js
58
- var ve = l(function(e, t, n) {
59
- _e(e, t, n);
58
+ var ye = o(function(e, t, n) {
59
+ ve(e, t, n);
60
60
  });
61
61
  //#endregion
62
62
  //#region ../../node_modules/d3-shape/src/curve/linear.js
63
- function ye(e) {
63
+ function w(e) {
64
64
  this._context = e;
65
65
  }
66
- ye.prototype = {
66
+ w.prototype = {
67
67
  areaStart: function() {
68
68
  this._line = 0;
69
69
  },
@@ -89,7 +89,7 @@ ye.prototype = {
89
89
  }
90
90
  };
91
91
  function be(e) {
92
- return new ye(e);
92
+ return new w(e);
93
93
  }
94
94
  //#endregion
95
95
  //#region ../../node_modules/d3-shape/src/curve/bump.js
@@ -122,24 +122,24 @@ var xe = class {
122
122
  this._x0 = e, this._y0 = t;
123
123
  }
124
124
  };
125
- function T(e) {
125
+ function Se(e) {
126
126
  return new xe(e, !0);
127
127
  }
128
- function E(e) {
128
+ function Ce(e) {
129
129
  return new xe(e, !1);
130
130
  }
131
131
  //#endregion
132
132
  //#region ../../node_modules/d3-shape/src/noop.js
133
- function D() {}
133
+ function T() {}
134
134
  //#endregion
135
135
  //#region ../../node_modules/d3-shape/src/curve/basis.js
136
- function O(e, t, n) {
136
+ function E(e, t, n) {
137
137
  e._context.bezierCurveTo((2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, (e._x0 + 2 * e._x1) / 3, (e._y0 + 2 * e._y1) / 3, (e._x0 + 4 * e._x1 + t) / 6, (e._y0 + 4 * e._y1 + n) / 6);
138
138
  }
139
- function k(e) {
139
+ function D(e) {
140
140
  this._context = e;
141
141
  }
142
- k.prototype = {
142
+ D.prototype = {
143
143
  areaStart: function() {
144
144
  this._line = 0;
145
145
  },
@@ -151,7 +151,7 @@ k.prototype = {
151
151
  },
152
152
  lineEnd: function() {
153
153
  switch (this._point) {
154
- case 3: O(this, this._x1, this._y1);
154
+ case 3: E(this, this._x1, this._y1);
155
155
  case 2:
156
156
  this._context.lineTo(this._x1, this._y1);
157
157
  break;
@@ -168,23 +168,23 @@ k.prototype = {
168
168
  break;
169
169
  case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
170
170
  default:
171
- O(this, e, t);
171
+ E(this, e, t);
172
172
  break;
173
173
  }
174
174
  this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
175
175
  }
176
176
  };
177
- function A(e) {
178
- return new k(e);
177
+ function we(e) {
178
+ return new D(e);
179
179
  }
180
180
  //#endregion
181
181
  //#region ../../node_modules/d3-shape/src/curve/basisClosed.js
182
- function j(e) {
182
+ function Te(e) {
183
183
  this._context = e;
184
184
  }
185
- j.prototype = {
186
- areaStart: D,
187
- areaEnd: D,
185
+ Te.prototype = {
186
+ areaStart: T,
187
+ areaEnd: T,
188
188
  lineStart: function() {
189
189
  this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
190
190
  },
@@ -213,21 +213,21 @@ j.prototype = {
213
213
  this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6);
214
214
  break;
215
215
  default:
216
- O(this, e, t);
216
+ E(this, e, t);
217
217
  break;
218
218
  }
219
219
  this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
220
220
  }
221
221
  };
222
- function Se(e) {
223
- return new j(e);
222
+ function Ee(e) {
223
+ return new Te(e);
224
224
  }
225
225
  //#endregion
226
226
  //#region ../../node_modules/d3-shape/src/curve/basisOpen.js
227
- function M(e) {
227
+ function De(e) {
228
228
  this._context = e;
229
229
  }
230
- M.prototype = {
230
+ De.prototype = {
231
231
  areaStart: function() {
232
232
  this._line = 0;
233
233
  },
@@ -255,21 +255,21 @@ M.prototype = {
255
255
  break;
256
256
  case 3: this._point = 4;
257
257
  default:
258
- O(this, e, t);
258
+ E(this, e, t);
259
259
  break;
260
260
  }
261
261
  this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
262
262
  }
263
263
  };
264
- function Ce(e) {
265
- return new M(e);
264
+ function Oe(e) {
265
+ return new De(e);
266
266
  }
267
267
  //#endregion
268
268
  //#region ../../node_modules/d3-shape/src/curve/bundle.js
269
- function N(e, t) {
270
- this._basis = new k(e), this._beta = t;
269
+ function ke(e, t) {
270
+ this._basis = new D(e), this._beta = t;
271
271
  }
272
- N.prototype = {
272
+ ke.prototype = {
273
273
  lineStart: function() {
274
274
  this._x = [], this._y = [], this._basis.lineStart();
275
275
  },
@@ -282,9 +282,9 @@ N.prototype = {
282
282
  this._x.push(+e), this._y.push(+t);
283
283
  }
284
284
  };
285
- var we = (function e(t) {
285
+ var Ae = (function e(t) {
286
286
  function n(e) {
287
- return t === 1 ? new k(e) : new N(e, t);
287
+ return t === 1 ? new D(e) : new ke(e, t);
288
288
  }
289
289
  return n.beta = function(t) {
290
290
  return e(+t);
@@ -292,13 +292,13 @@ var we = (function e(t) {
292
292
  })(.85);
293
293
  //#endregion
294
294
  //#region ../../node_modules/d3-shape/src/curve/cardinal.js
295
- function P(e, t, n) {
295
+ function O(e, t, n) {
296
296
  e._context.bezierCurveTo(e._x1 + e._k * (e._x2 - e._x0), e._y1 + e._k * (e._y2 - e._y0), e._x2 + e._k * (e._x1 - t), e._y2 + e._k * (e._y1 - n), e._x2, e._y2);
297
297
  }
298
- function F(e, t) {
298
+ function k(e, t) {
299
299
  this._context = e, this._k = (1 - t) / 6;
300
300
  }
301
- F.prototype = {
301
+ k.prototype = {
302
302
  areaStart: function() {
303
303
  this._line = 0;
304
304
  },
@@ -314,7 +314,7 @@ F.prototype = {
314
314
  this._context.lineTo(this._x2, this._y2);
315
315
  break;
316
316
  case 3:
317
- P(this, this._x1, this._y1);
317
+ O(this, this._x1, this._y1);
318
318
  break;
319
319
  }
320
320
  (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
@@ -329,15 +329,15 @@ F.prototype = {
329
329
  break;
330
330
  case 2: this._point = 3;
331
331
  default:
332
- P(this, e, t);
332
+ O(this, e, t);
333
333
  break;
334
334
  }
335
335
  this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
336
336
  }
337
337
  };
338
- var I = (function e(t) {
338
+ var je = (function e(t) {
339
339
  function n(e) {
340
- return new F(e, t);
340
+ return new k(e, t);
341
341
  }
342
342
  return n.tension = function(t) {
343
343
  return e(+t);
@@ -345,12 +345,12 @@ var I = (function e(t) {
345
345
  })(0);
346
346
  //#endregion
347
347
  //#region ../../node_modules/d3-shape/src/curve/cardinalClosed.js
348
- function L(e, t) {
348
+ function A(e, t) {
349
349
  this._context = e, this._k = (1 - t) / 6;
350
350
  }
351
- L.prototype = {
352
- areaStart: D,
353
- areaEnd: D,
351
+ A.prototype = {
352
+ areaStart: T,
353
+ areaEnd: T,
354
354
  lineStart: function() {
355
355
  this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._point = 0;
356
356
  },
@@ -379,15 +379,15 @@ L.prototype = {
379
379
  this._point = 3, this._x5 = e, this._y5 = t;
380
380
  break;
381
381
  default:
382
- P(this, e, t);
382
+ O(this, e, t);
383
383
  break;
384
384
  }
385
385
  this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
386
386
  }
387
387
  };
388
- var Te = (function e(t) {
388
+ var Me = (function e(t) {
389
389
  function n(e) {
390
- return new L(e, t);
390
+ return new A(e, t);
391
391
  }
392
392
  return n.tension = function(t) {
393
393
  return e(+t);
@@ -395,10 +395,10 @@ var Te = (function e(t) {
395
395
  })(0);
396
396
  //#endregion
397
397
  //#region ../../node_modules/d3-shape/src/curve/cardinalOpen.js
398
- function R(e, t) {
398
+ function j(e, t) {
399
399
  this._context = e, this._k = (1 - t) / 6;
400
400
  }
401
- R.prototype = {
401
+ j.prototype = {
402
402
  areaStart: function() {
403
403
  this._line = 0;
404
404
  },
@@ -424,15 +424,15 @@ R.prototype = {
424
424
  break;
425
425
  case 3: this._point = 4;
426
426
  default:
427
- P(this, e, t);
427
+ O(this, e, t);
428
428
  break;
429
429
  }
430
430
  this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
431
431
  }
432
432
  };
433
- var Ee = (function e(t) {
433
+ var Ne = (function e(t) {
434
434
  function n(e) {
435
- return new R(e, t);
435
+ return new j(e, t);
436
436
  }
437
437
  return n.tension = function(t) {
438
438
  return e(+t);
@@ -440,7 +440,7 @@ var Ee = (function e(t) {
440
440
  })(0);
441
441
  //#endregion
442
442
  //#region ../../node_modules/d3-shape/src/curve/catmullRom.js
443
- function z(e, t, n) {
443
+ function M(e, t, n) {
444
444
  var r = e._x1, i = e._y1, a = e._x2, o = e._y2;
445
445
  if (e._l01_a > 1e-12) {
446
446
  var s = 2 * e._l01_2a + 3 * e._l01_a * e._l12_a + e._l12_2a, c = 3 * e._l01_a * (e._l01_a + e._l12_a);
@@ -452,10 +452,10 @@ function z(e, t, n) {
452
452
  }
453
453
  e._context.bezierCurveTo(r, i, a, o, e._x2, e._y2);
454
454
  }
455
- function B(e, t) {
455
+ function N(e, t) {
456
456
  this._context = e, this._alpha = t;
457
457
  }
458
- B.prototype = {
458
+ N.prototype = {
459
459
  areaStart: function() {
460
460
  this._line = 0;
461
461
  },
@@ -490,15 +490,15 @@ B.prototype = {
490
490
  break;
491
491
  case 2: this._point = 3;
492
492
  default:
493
- z(this, e, t);
493
+ M(this, e, t);
494
494
  break;
495
495
  }
496
496
  this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
497
497
  }
498
498
  };
499
- var De = (function e(t) {
499
+ var P = (function e(t) {
500
500
  function n(e) {
501
- return t ? new B(e, t) : new F(e, 0);
501
+ return t ? new N(e, t) : new k(e, 0);
502
502
  }
503
503
  return n.alpha = function(t) {
504
504
  return e(+t);
@@ -506,12 +506,12 @@ var De = (function e(t) {
506
506
  })(.5);
507
507
  //#endregion
508
508
  //#region ../../node_modules/d3-shape/src/curve/catmullRomClosed.js
509
- function Oe(e, t) {
509
+ function F(e, t) {
510
510
  this._context = e, this._alpha = t;
511
511
  }
512
- Oe.prototype = {
513
- areaStart: D,
514
- areaEnd: D,
512
+ F.prototype = {
513
+ areaStart: T,
514
+ areaEnd: T,
515
515
  lineStart: function() {
516
516
  this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
517
517
  },
@@ -544,15 +544,15 @@ Oe.prototype = {
544
544
  this._point = 3, this._x5 = e, this._y5 = t;
545
545
  break;
546
546
  default:
547
- z(this, e, t);
547
+ M(this, e, t);
548
548
  break;
549
549
  }
550
550
  this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
551
551
  }
552
552
  };
553
- var ke = (function e(t) {
553
+ var Pe = (function e(t) {
554
554
  function n(e) {
555
- return t ? new Oe(e, t) : new L(e, 0);
555
+ return t ? new F(e, t) : new A(e, 0);
556
556
  }
557
557
  return n.alpha = function(t) {
558
558
  return e(+t);
@@ -560,10 +560,10 @@ var ke = (function e(t) {
560
560
  })(.5);
561
561
  //#endregion
562
562
  //#region ../../node_modules/d3-shape/src/curve/catmullRomOpen.js
563
- function Ae(e, t) {
563
+ function I(e, t) {
564
564
  this._context = e, this._alpha = t;
565
565
  }
566
- Ae.prototype = {
566
+ I.prototype = {
567
567
  areaStart: function() {
568
568
  this._line = 0;
569
569
  },
@@ -593,15 +593,15 @@ Ae.prototype = {
593
593
  break;
594
594
  case 3: this._point = 4;
595
595
  default:
596
- z(this, e, t);
596
+ M(this, e, t);
597
597
  break;
598
598
  }
599
599
  this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
600
600
  }
601
601
  };
602
- var je = (function e(t) {
602
+ var Fe = (function e(t) {
603
603
  function n(e) {
604
- return t ? new Ae(e, t) : new R(e, 0);
604
+ return t ? new I(e, t) : new j(e, 0);
605
605
  }
606
606
  return n.alpha = function(t) {
607
607
  return e(+t);
@@ -609,12 +609,12 @@ var je = (function e(t) {
609
609
  })(.5);
610
610
  //#endregion
611
611
  //#region ../../node_modules/d3-shape/src/curve/linearClosed.js
612
- function Me(e) {
612
+ function L(e) {
613
613
  this._context = e;
614
614
  }
615
- Me.prototype = {
616
- areaStart: D,
617
- areaEnd: D,
615
+ L.prototype = {
616
+ areaStart: T,
617
+ areaEnd: T,
618
618
  lineStart: function() {
619
619
  this._point = 0;
620
620
  },
@@ -625,30 +625,30 @@ Me.prototype = {
625
625
  e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
626
626
  }
627
627
  };
628
- function Ne(e) {
629
- return new Me(e);
628
+ function Ie(e) {
629
+ return new L(e);
630
630
  }
631
631
  //#endregion
632
632
  //#region ../../node_modules/d3-shape/src/curve/monotone.js
633
- function Pe(e) {
633
+ function R(e) {
634
634
  return e < 0 ? -1 : 1;
635
635
  }
636
- function Fe(e, t, n) {
636
+ function z(e, t, n) {
637
637
  var r = e._x1 - e._x0, i = t - e._x1, a = (e._y1 - e._y0) / (r || i < 0 && -0), o = (n - e._y1) / (i || r < 0 && -0), s = (a * i + o * r) / (r + i);
638
- return (Pe(a) + Pe(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
638
+ return (R(a) + R(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
639
639
  }
640
- function Ie(e, t) {
640
+ function Le(e, t) {
641
641
  var n = e._x1 - e._x0;
642
642
  return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
643
643
  }
644
- function V(e, t, n) {
644
+ function B(e, t, n) {
645
645
  var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;
646
646
  e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);
647
647
  }
648
- function H(e) {
648
+ function V(e) {
649
649
  this._context = e;
650
650
  }
651
- H.prototype = {
651
+ V.prototype = {
652
652
  areaStart: function() {
653
653
  this._line = 0;
654
654
  },
@@ -664,7 +664,7 @@ H.prototype = {
664
664
  this._context.lineTo(this._x1, this._y1);
665
665
  break;
666
666
  case 3:
667
- V(this, this._t0, Ie(this, this._t0));
667
+ B(this, this._t0, Le(this, this._t0));
668
668
  break;
669
669
  }
670
670
  (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
@@ -680,26 +680,26 @@ H.prototype = {
680
680
  this._point = 2;
681
681
  break;
682
682
  case 2:
683
- this._point = 3, V(this, Ie(this, n = Fe(this, e, t)), n);
683
+ this._point = 3, B(this, Le(this, n = z(this, e, t)), n);
684
684
  break;
685
685
  default:
686
- V(this, this._t0, n = Fe(this, e, t));
686
+ B(this, this._t0, n = z(this, e, t));
687
687
  break;
688
688
  }
689
689
  this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
690
690
  }
691
691
  }
692
692
  };
693
- function Le(e) {
694
- this._context = new Re(e);
693
+ function Re(e) {
694
+ this._context = new ze(e);
695
695
  }
696
- (Le.prototype = Object.create(H.prototype)).point = function(e, t) {
697
- H.prototype.point.call(this, t, e);
696
+ (Re.prototype = Object.create(V.prototype)).point = function(e, t) {
697
+ V.prototype.point.call(this, t, e);
698
698
  };
699
- function Re(e) {
699
+ function ze(e) {
700
700
  this._context = e;
701
701
  }
702
- Re.prototype = {
702
+ ze.prototype = {
703
703
  moveTo: function(e, t) {
704
704
  this._context.moveTo(t, e);
705
705
  },
@@ -713,18 +713,18 @@ Re.prototype = {
713
713
  this._context.bezierCurveTo(t, e, r, n, a, i);
714
714
  }
715
715
  };
716
- function ze(e) {
717
- return new H(e);
718
- }
719
716
  function Be(e) {
720
- return new Le(e);
717
+ return new V(e);
718
+ }
719
+ function Ve(e) {
720
+ return new Re(e);
721
721
  }
722
722
  //#endregion
723
723
  //#region ../../node_modules/d3-shape/src/curve/natural.js
724
- function Ve(e) {
724
+ function He(e) {
725
725
  this._context = e;
726
726
  }
727
- Ve.prototype = {
727
+ He.prototype = {
728
728
  areaStart: function() {
729
729
  this._line = 0;
730
730
  },
@@ -737,14 +737,14 @@ Ve.prototype = {
737
737
  lineEnd: function() {
738
738
  var e = this._x, t = this._y, n = e.length;
739
739
  if (n) if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), n === 2) this._context.lineTo(e[1], t[1]);
740
- else for (var r = He(e), i = He(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
740
+ else for (var r = Ue(e), i = Ue(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
741
741
  (this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
742
742
  },
743
743
  point: function(e, t) {
744
744
  this._x.push(+e), this._y.push(+t);
745
745
  }
746
746
  };
747
- function He(e) {
747
+ function Ue(e) {
748
748
  var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);
749
749
  for (i[0] = 0, a[0] = 2, o[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t) i[t] = 1, a[t] = 4, o[t] = 4 * e[t] + 2 * e[t + 1];
750
750
  for (i[n - 1] = 2, a[n - 1] = 7, o[n - 1] = 8 * e[n - 1] + e[n], t = 1; t < n; ++t) r = i[t] / a[t - 1], a[t] -= r, o[t] -= r * o[t - 1];
@@ -752,15 +752,15 @@ function He(e) {
752
752
  for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
753
753
  return [i, a];
754
754
  }
755
- function Ue(e) {
756
- return new Ve(e);
755
+ function We(e) {
756
+ return new He(e);
757
757
  }
758
758
  //#endregion
759
759
  //#region ../../node_modules/d3-shape/src/curve/step.js
760
- function U(e, t) {
760
+ function H(e, t) {
761
761
  this._context = e, this._t = t;
762
762
  }
763
- U.prototype = {
763
+ H.prototype = {
764
764
  areaStart: function() {
765
765
  this._line = 0;
766
766
  },
@@ -790,40 +790,40 @@ U.prototype = {
790
790
  this._x = e, this._y = t;
791
791
  }
792
792
  };
793
- function We(e) {
794
- return new U(e, .5);
795
- }
796
793
  function Ge(e) {
797
- return new U(e, 0);
794
+ return new H(e, .5);
798
795
  }
799
796
  function Ke(e) {
800
- return new U(e, 1);
797
+ return new H(e, 0);
798
+ }
799
+ function qe(e) {
800
+ return new H(e, 1);
801
801
  }
802
802
  //#endregion
803
803
  //#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-GEFDOKGD.mjs
804
- var qe = ce(), Je = {
805
- curveBasis: A,
806
- curveBasisClosed: Se,
807
- curveBasisOpen: Ce,
808
- curveBumpX: T,
809
- curveBumpY: E,
810
- curveBundle: we,
811
- curveCardinalClosed: Te,
812
- curveCardinalOpen: Ee,
813
- curveCardinal: I,
814
- curveCatmullRomClosed: ke,
815
- curveCatmullRomOpen: je,
816
- curveCatmullRom: De,
804
+ var Je = ce(), Ye = {
805
+ curveBasis: we,
806
+ curveBasisClosed: Ee,
807
+ curveBasisOpen: Oe,
808
+ curveBumpX: Se,
809
+ curveBumpY: Ce,
810
+ curveBundle: Ae,
811
+ curveCardinalClosed: Me,
812
+ curveCardinalOpen: Ne,
813
+ curveCardinal: je,
814
+ curveCatmullRomClosed: Pe,
815
+ curveCatmullRomOpen: Fe,
816
+ curveCatmullRom: P,
817
817
  curveLinear: be,
818
- curveLinearClosed: Ne,
819
- curveMonotoneX: ze,
820
- curveMonotoneY: Be,
821
- curveNatural: Ue,
822
- curveStep: We,
823
- curveStepAfter: Ke,
824
- curveStepBefore: Ge
825
- }, Ye = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Xe = /* @__PURE__ */ t(function(e, t) {
826
- let n = Ze(e, /(?:init\b)|(?:initialize\b)/), r = {};
818
+ curveLinearClosed: Ie,
819
+ curveMonotoneX: Be,
820
+ curveMonotoneY: Ve,
821
+ curveNatural: We,
822
+ curveStep: Ge,
823
+ curveStepAfter: qe,
824
+ curveStepBefore: Ke
825
+ }, Xe = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Ze = /* @__PURE__ */ _(function(e, t) {
826
+ let n = Qe(e, /(?:init\b)|(?:initialize\b)/), r = {};
827
827
  if (Array.isArray(n)) {
828
828
  let e = n.map((e) => e.args);
829
829
  y(e), r = se(r, [...e]);
@@ -831,75 +831,75 @@ var qe = ce(), Je = {
831
831
  if (!r) return;
832
832
  let i = oe(e, t), a = "config";
833
833
  return r[a] !== void 0 && (i === "flowchart-v2" && (i = "flowchart"), r[i] = r[a], delete r[a]), r;
834
- }, "detectInit"), Ze = /* @__PURE__ */ t(function(t, n = null) {
834
+ }, "detectInit"), Qe = /* @__PURE__ */ _(function(e, t = null) {
835
835
  try {
836
- let r = RegExp(`[%]{2}(?![{]${Ye.source})(?=[}][%]{2}).*
836
+ let n = RegExp(`[%]{2}(?![{]${Xe.source})(?=[}][%]{2}).*
837
837
  `, "ig");
838
- t = t.trim().replace(r, "").replace(/'/gm, "\""), e.debug(`Detecting diagram directive${n === null ? "" : " type:" + n} based on the text:${t}`);
839
- let i, a = [];
840
- for (; (i = b.exec(t)) !== null;) if (i.index === b.lastIndex && b.lastIndex++, i && !n || n && i[1]?.match(n) || n && i[2]?.match(n)) {
841
- let e = i[1] ? i[1] : i[2], t = i[3] ? i[3].trim() : i[4] ? JSON.parse(i[4].trim()) : null;
842
- a.push({
838
+ e = e.trim().replace(n, "").replace(/'/gm, "\""), g.debug(`Detecting diagram directive${t === null ? "" : " type:" + t} based on the text:${e}`);
839
+ let r, i = [];
840
+ for (; (r = b.exec(e)) !== null;) if (r.index === b.lastIndex && b.lastIndex++, r && !t || t && r[1]?.match(t) || t && r[2]?.match(t)) {
841
+ let e = r[1] ? r[1] : r[2], t = r[3] ? r[3].trim() : r[4] ? JSON.parse(r[4].trim()) : null;
842
+ i.push({
843
843
  type: e,
844
844
  args: t
845
845
  });
846
846
  }
847
- return a.length === 0 ? {
848
- type: t,
847
+ return i.length === 0 ? {
848
+ type: e,
849
849
  args: null
850
- } : a.length === 1 ? a[0] : a;
851
- } catch (r) {
852
- return e.error(`ERROR: ${r.message} - Unable to parse directive type: '${n}' based on the text: '${t}'`), {
850
+ } : i.length === 1 ? i[0] : i;
851
+ } catch (n) {
852
+ return g.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`), {
853
853
  type: void 0,
854
854
  args: null
855
855
  };
856
856
  }
857
- }, "detectDirective"), Qe = /* @__PURE__ */ t(function(e) {
857
+ }, "detectDirective"), $e = /* @__PURE__ */ _(function(e) {
858
858
  return e.replace(b, "");
859
- }, "removeDirectives"), $e = /* @__PURE__ */ t(function(e, t) {
859
+ }, "removeDirectives"), et = /* @__PURE__ */ _(function(e, t) {
860
860
  for (let [n, r] of t.entries()) if (r.match(e)) return n;
861
861
  return -1;
862
862
  }, "isSubstringInArray");
863
- function W(e, t) {
864
- return e ? Je[`curve${e.charAt(0).toUpperCase() + e.slice(1)}`] ?? t : t;
863
+ function U(e, t) {
864
+ return e ? Ye[`curve${e.charAt(0).toUpperCase() + e.slice(1)}`] ?? t : t;
865
865
  }
866
- t(W, "interpolateToCurve");
867
- function et(e, t) {
866
+ _(U, "interpolateToCurve");
867
+ function tt(e, t) {
868
868
  let n = e.trim();
869
- if (n) return t.securityLevel === "loose" ? n : (0, qe.sanitizeUrl)(n);
869
+ if (n) return t.securityLevel === "loose" ? n : (0, Je.sanitizeUrl)(n);
870
870
  }
871
- t(et, "formatUrl");
872
- var tt = /* @__PURE__ */ t((t, ...n) => {
873
- let r = t.split("."), i = r.length - 1, a = r[i], o = window;
874
- for (let n = 0; n < i; n++) if (o = o[r[n]], !o) {
875
- e.error(`Function name: ${t} not found in window`);
871
+ _(tt, "formatUrl");
872
+ var nt = /* @__PURE__ */ _((e, ...t) => {
873
+ let n = e.split("."), r = n.length - 1, i = n[r], a = window;
874
+ for (let t = 0; t < r; t++) if (a = a[n[t]], !a) {
875
+ g.error(`Function name: ${e} not found in window`);
876
876
  return;
877
877
  }
878
- o[a](...n);
878
+ a[i](...t);
879
879
  }, "runFunc");
880
- function G(e, t) {
880
+ function W(e, t) {
881
881
  return !e || !t ? 0 : Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2);
882
882
  }
883
- t(G, "distance");
884
- function nt(e) {
883
+ _(W, "distance");
884
+ function rt(e) {
885
885
  let t, n = 0;
886
886
  return e.forEach((e) => {
887
- n += G(e, t), t = e;
888
- }), K(e, n / 2);
887
+ n += W(e, t), t = e;
888
+ }), G(e, n / 2);
889
889
  }
890
- t(nt, "traverseEdge");
891
- function rt(e) {
892
- return e.length === 1 ? e[0] : nt(e);
890
+ _(rt, "traverseEdge");
891
+ function it(e) {
892
+ return e.length === 1 ? e[0] : rt(e);
893
893
  }
894
- t(rt, "calcLabelPosition");
895
- var it = /* @__PURE__ */ t((e, t = 2) => {
894
+ _(it, "calcLabelPosition");
895
+ var at = /* @__PURE__ */ _((e, t = 2) => {
896
896
  let n = 10 ** t;
897
897
  return Math.round(e * n) / n;
898
- }, "roundNumber"), K = /* @__PURE__ */ t((e, t) => {
898
+ }, "roundNumber"), G = /* @__PURE__ */ _((e, t) => {
899
899
  let n, r = t;
900
900
  for (let t of e) {
901
901
  if (n) {
902
- let e = G(t, n);
902
+ let e = W(t, n);
903
903
  if (e === 0) return n;
904
904
  if (e < r) r -= e;
905
905
  else {
@@ -910,33 +910,33 @@ var it = /* @__PURE__ */ t((e, t = 2) => {
910
910
  y: t.y
911
911
  };
912
912
  if (i > 0 && i < 1) return {
913
- x: it((1 - i) * n.x + i * t.x, 5),
914
- y: it((1 - i) * n.y + i * t.y, 5)
913
+ x: at((1 - i) * n.x + i * t.x, 5),
914
+ y: at((1 - i) * n.y + i * t.y, 5)
915
915
  };
916
916
  }
917
917
  }
918
918
  n = t;
919
919
  }
920
920
  throw Error("Could not find a suitable point for the given distance");
921
- }, "calculatePoint"), at = /* @__PURE__ */ t((t, n, r) => {
922
- e.info(`our points ${JSON.stringify(n)}`), n[0] !== r && (n = n.reverse());
923
- let i = K(n, 25), a = t ? 10 : 5, o = Math.atan2(n[0].y - i.y, n[0].x - i.x), s = {
921
+ }, "calculatePoint"), ot = /* @__PURE__ */ _((e, t, n) => {
922
+ g.info(`our points ${JSON.stringify(t)}`), t[0] !== n && (t = t.reverse());
923
+ let r = G(t, 25), i = e ? 10 : 5, a = Math.atan2(t[0].y - r.y, t[0].x - r.x), o = {
924
924
  x: 0,
925
925
  y: 0
926
926
  };
927
- return s.x = Math.sin(o) * a + (n[0].x + i.x) / 2, s.y = -Math.cos(o) * a + (n[0].y + i.y) / 2, s;
927
+ return o.x = Math.sin(a) * i + (t[0].x + r.x) / 2, o.y = -Math.cos(a) * i + (t[0].y + r.y) / 2, o;
928
928
  }, "calcCardinalityPosition");
929
- function ot(t, n, r) {
930
- let i = structuredClone(r);
931
- e.info("our points", i), n !== "start_left" && n !== "start_right" && i.reverse();
932
- let a = K(i, 25 + t), o = 10 + t * .5, s = Math.atan2(i[0].y - a.y, i[0].x - a.x), c = {
929
+ function st(e, t, n) {
930
+ let r = structuredClone(n);
931
+ g.info("our points", r), t !== "start_left" && t !== "start_right" && r.reverse();
932
+ let i = G(r, 25 + e), a = 10 + e * .5, o = Math.atan2(r[0].y - i.y, r[0].x - i.x), s = {
933
933
  x: 0,
934
934
  y: 0
935
935
  };
936
- return n === "start_left" ? (c.x = Math.sin(s + Math.PI) * o + (i[0].x + a.x) / 2, c.y = -Math.cos(s + Math.PI) * o + (i[0].y + a.y) / 2) : n === "end_right" ? (c.x = Math.sin(s - Math.PI) * o + (i[0].x + a.x) / 2 - 5, c.y = -Math.cos(s - Math.PI) * o + (i[0].y + a.y) / 2 - 5) : n === "end_left" ? (c.x = Math.sin(s) * o + (i[0].x + a.x) / 2 - 5, c.y = -Math.cos(s) * o + (i[0].y + a.y) / 2 - 5) : (c.x = Math.sin(s) * o + (i[0].x + a.x) / 2, c.y = -Math.cos(s) * o + (i[0].y + a.y) / 2), c;
936
+ return t === "start_left" ? (s.x = Math.sin(o + Math.PI) * a + (r[0].x + i.x) / 2, s.y = -Math.cos(o + Math.PI) * a + (r[0].y + i.y) / 2) : t === "end_right" ? (s.x = Math.sin(o - Math.PI) * a + (r[0].x + i.x) / 2 - 5, s.y = -Math.cos(o - Math.PI) * a + (r[0].y + i.y) / 2 - 5) : t === "end_left" ? (s.x = Math.sin(o) * a + (r[0].x + i.x) / 2 - 5, s.y = -Math.cos(o) * a + (r[0].y + i.y) / 2 - 5) : (s.x = Math.sin(o) * a + (r[0].x + i.x) / 2, s.y = -Math.cos(o) * a + (r[0].y + i.y) / 2), s;
937
937
  }
938
- t(ot, "calcTerminalLabelPosition");
939
- function q(e) {
938
+ _(st, "calcTerminalLabelPosition");
939
+ function K(e) {
940
940
  let t = "", n = "";
941
941
  for (let r of e) r !== void 0 && (r.startsWith("color:") || r.startsWith("text-align:") ? n = n + r + ";" : t = t + r + ";");
942
942
  return {
@@ -944,15 +944,15 @@ function q(e) {
944
944
  labelStyle: n
945
945
  };
946
946
  }
947
- t(q, "getStylesFromArray");
948
- var st = 0, ct = /* @__PURE__ */ t(() => (st++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + st), "generateId");
947
+ _(K, "getStylesFromArray");
948
+ var q = 0, ct = /* @__PURE__ */ _(() => (q++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + q), "generateId");
949
949
  function lt(e) {
950
950
  let t = "";
951
951
  for (let n = 0; n < e; n++) t += "0123456789abcdef".charAt(Math.floor(Math.random() * 16));
952
952
  return t;
953
953
  }
954
- t(lt, "makeRandomHex");
955
- var ut = /* @__PURE__ */ t((e) => lt(e.length), "random"), dt = /* @__PURE__ */ t(function() {
954
+ _(lt, "makeRandomHex");
955
+ var ut = /* @__PURE__ */ _((e) => lt(e.length), "random"), dt = /* @__PURE__ */ _(function() {
956
956
  return {
957
957
  x: 0,
958
958
  y: 0,
@@ -967,12 +967,12 @@ var ut = /* @__PURE__ */ t((e) => lt(e.length), "random"), dt = /* @__PURE__ */
967
967
  valign: void 0,
968
968
  text: ""
969
969
  };
970
- }, "getTextObj"), ft = /* @__PURE__ */ t(function(e, t) {
970
+ }, "getTextObj"), ft = /* @__PURE__ */ _(function(e, t) {
971
971
  let n = t.text.replace(x.lineBreakRegex, " "), [, r] = Q(t.fontSize), i = e.append("text");
972
972
  i.attr("x", t.x), i.attr("y", t.y), i.style("text-anchor", t.anchor), i.style("font-family", t.fontFamily), i.style("font-size", r), i.style("font-weight", t.fontWeight), i.attr("fill", t.fill), t.class !== void 0 && i.attr("class", t.class);
973
973
  let a = i.append("tspan");
974
974
  return a.attr("x", t.x + t.textMargin * 2), a.attr("fill", t.fill), a.text(n), i;
975
- }, "drawSimpleText"), pt = v((e, t, n) => {
975
+ }, "drawSimpleText"), pt = h((e, t, n) => {
976
976
  if (!e || (n = Object.assign({
977
977
  fontSize: 12,
978
978
  fontWeight: 400,
@@ -988,7 +988,7 @@ var ut = /* @__PURE__ */ t((e) => lt(e.length), "random"), dt = /* @__PURE__ */
988
988
  } else c + s >= t ? (i.push(a), a = e) : a = [a, e].filter(Boolean).join(" ");
989
989
  o + 1 === r.length && i.push(a);
990
990
  }), i.filter((e) => e !== "").join(n.joinWith);
991
- }, (e, t, n) => `${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`), mt = v((e, t, n = "-", r) => {
991
+ }, (e, t, n) => `${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`), mt = h((e, t, n = "-", r) => {
992
992
  r = Object.assign({
993
993
  fontSize: 12,
994
994
  fontWeight: 400,
@@ -1010,67 +1010,67 @@ var ut = /* @__PURE__ */ t((e) => lt(e.length), "random"), dt = /* @__PURE__ */
1010
1010
  function J(e, t) {
1011
1011
  return X(e, t).height;
1012
1012
  }
1013
- t(J, "calculateTextHeight");
1013
+ _(J, "calculateTextHeight");
1014
1014
  function Y(e, t) {
1015
1015
  return X(e, t).width;
1016
1016
  }
1017
- t(Y, "calculateTextWidth");
1018
- var X = v((e, t) => {
1019
- let { fontSize: r = 12, fontFamily: i = "Arial", fontWeight: a = 400 } = t;
1017
+ _(Y, "calculateTextWidth");
1018
+ var X = h((e, t) => {
1019
+ let { fontSize: n = 12, fontFamily: r = "Arial", fontWeight: i = 400 } = t;
1020
1020
  if (!e) return {
1021
1021
  width: 0,
1022
1022
  height: 0
1023
1023
  };
1024
- let [, o] = Q(r), s = ["sans-serif", i], c = e.split(x.lineBreakRegex), l = [], u = n("body");
1025
- if (!u.remove) return {
1024
+ let [, a] = Q(n), o = ["sans-serif", r], s = e.split(x.lineBreakRegex), c = [], l = v("body");
1025
+ if (!l.remove) return {
1026
1026
  width: 0,
1027
1027
  height: 0,
1028
1028
  lineHeight: 0
1029
1029
  };
1030
- let d = u.append("svg");
1031
- for (let e of s) {
1030
+ let u = l.append("svg");
1031
+ for (let e of o) {
1032
1032
  let t = 0, n = {
1033
1033
  width: 0,
1034
1034
  height: 0,
1035
1035
  lineHeight: 0
1036
1036
  };
1037
- for (let r of c) {
1038
- let i = dt();
1039
- i.text = r || "​";
1040
- let s = ft(d, i).style("font-size", o).style("font-weight", a).style("font-family", e), c = (s._groups || s)[0][0].getBBox();
1037
+ for (let r of s) {
1038
+ let o = dt();
1039
+ o.text = r || "​";
1040
+ let s = ft(u, o).style("font-size", a).style("font-weight", i).style("font-family", e), c = (s._groups || s)[0][0].getBBox();
1041
1041
  if (c.width === 0 && c.height === 0) throw Error("svg element not in render tree");
1042
1042
  n.width = Math.round(Math.max(n.width, c.width)), t = Math.round(c.height), n.height += t, n.lineHeight = Math.round(Math.max(n.lineHeight, t));
1043
1043
  }
1044
- l.push(n);
1044
+ c.push(n);
1045
1045
  }
1046
- return d.remove(), l[isNaN(l[1].height) || isNaN(l[1].width) || isNaN(l[1].lineHeight) || l[0].height > l[1].height && l[0].width > l[1].width && l[0].lineHeight > l[1].lineHeight ? 0 : 1];
1046
+ return u.remove(), c[isNaN(c[1].height) || isNaN(c[1].width) || isNaN(c[1].lineHeight) || c[0].height > c[1].height && c[0].width > c[1].width && c[0].lineHeight > c[1].lineHeight ? 0 : 1];
1047
1047
  }, (e, t) => `${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`), ht = class {
1048
1048
  constructor(e = !1, t) {
1049
1049
  this.count = 0, this.count = t ? t.length : 0, this.next = e ? () => this.count++ : () => Date.now();
1050
1050
  }
1051
1051
  static {
1052
- t(this, "InitIDGenerator");
1052
+ _(this, "InitIDGenerator");
1053
1053
  }
1054
- }, Z, gt = /* @__PURE__ */ t(function(e) {
1054
+ }, Z, gt = /* @__PURE__ */ _(function(e) {
1055
1055
  return Z ||= document.createElement("div"), e = escape(e).replace(/%26/g, "&").replace(/%23/g, "#").replace(/%3B/g, ";"), Z.innerHTML = e, unescape(Z.textContent);
1056
1056
  }, "entityDecode");
1057
1057
  function _t(e) {
1058
1058
  return "str" in e;
1059
1059
  }
1060
- t(_t, "isDetailedError");
1061
- var vt = /* @__PURE__ */ t((e, t, n, r) => {
1060
+ _(_t, "isDetailedError");
1061
+ var vt = /* @__PURE__ */ _((e, t, n, r) => {
1062
1062
  if (!r) return;
1063
1063
  let i = e.node()?.getBBox();
1064
1064
  i && e.append("text").text(r).attr("text-anchor", "middle").attr("x", i.x + i.width / 2).attr("y", -n).attr("class", t);
1065
- }, "insertTitle"), Q = /* @__PURE__ */ t((e) => {
1065
+ }, "insertTitle"), Q = /* @__PURE__ */ _((e) => {
1066
1066
  if (typeof e == "number") return [e, e + "px"];
1067
1067
  let t = parseInt(e ?? "", 10);
1068
1068
  return Number.isNaN(t) ? [void 0, void 0] : e === String(t) ? [t, e + "px"] : [t, e];
1069
1069
  }, "parseFontSize");
1070
1070
  function $(e, t) {
1071
- return ve({}, e, t);
1071
+ return ye({}, e, t);
1072
1072
  }
1073
- t($, "cleanAndMerge");
1073
+ _($, "cleanAndMerge");
1074
1074
  var yt = {
1075
1075
  assignWithDepth: se,
1076
1076
  wrapLabel: pt,
@@ -1078,24 +1078,24 @@ var yt = {
1078
1078
  calculateTextWidth: Y,
1079
1079
  calculateTextDimensions: X,
1080
1080
  cleanAndMerge: $,
1081
- detectInit: Xe,
1082
- detectDirective: Ze,
1083
- isSubstringInArray: $e,
1084
- interpolateToCurve: W,
1085
- calcLabelPosition: rt,
1086
- calcCardinalityPosition: at,
1087
- calcTerminalLabelPosition: ot,
1088
- formatUrl: et,
1089
- getStylesFromArray: q,
1081
+ detectInit: Ze,
1082
+ detectDirective: Qe,
1083
+ isSubstringInArray: et,
1084
+ interpolateToCurve: U,
1085
+ calcLabelPosition: it,
1086
+ calcCardinalityPosition: ot,
1087
+ calcTerminalLabelPosition: st,
1088
+ formatUrl: tt,
1089
+ getStylesFromArray: K,
1090
1090
  generateId: ct,
1091
1091
  random: ut,
1092
- runFunc: tt,
1092
+ runFunc: nt,
1093
1093
  entityDecode: gt,
1094
1094
  insertTitle: vt,
1095
1095
  isLabelCoordinateInPath: wt,
1096
1096
  parseFontSize: Q,
1097
1097
  InitIDGenerator: ht
1098
- }, bt = /* @__PURE__ */ t(function(e) {
1098
+ }, bt = /* @__PURE__ */ _(function(e) {
1099
1099
  let t = e;
1100
1100
  return t = t.replace(/style.*:\S*#.*;/g, function(e) {
1101
1101
  return e.substring(0, e.length - 1);
@@ -1105,17 +1105,17 @@ var yt = {
1105
1105
  let t = e.substring(1, e.length - 1);
1106
1106
  return /^\+?\d+$/.test(t) ? "fl°°" + t + "¶ß" : "fl°" + t + "¶ß";
1107
1107
  }), t;
1108
- }, "encodeEntities"), xt = /* @__PURE__ */ t(function(e) {
1108
+ }, "encodeEntities"), xt = /* @__PURE__ */ _(function(e) {
1109
1109
  return e.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";");
1110
- }, "decodeEntities"), St = /* @__PURE__ */ t((e, t, { counter: n = 0, prefix: r, suffix: i }, a) => a || `${r ? `${r}_` : ""}${e}_${t}_${n}${i ? `_${i}` : ""}`, "getEdgeId");
1110
+ }, "decodeEntities"), St = /* @__PURE__ */ _((e, t, { counter: n = 0, prefix: r, suffix: i }, a) => a || `${r ? `${r}_` : ""}${e}_${t}_${n}${i ? `_${i}` : ""}`, "getEdgeId");
1111
1111
  function Ct(e) {
1112
1112
  return e ?? null;
1113
1113
  }
1114
- t(Ct, "handleUndefinedAttr");
1114
+ _(Ct, "handleUndefinedAttr");
1115
1115
  function wt(e, t) {
1116
1116
  let n = Math.round(e.x), r = Math.round(e.y), i = t.replace(/(\d+\.\d+)/g, (e) => Math.round(parseFloat(e)).toString());
1117
1117
  return i.includes(n.toString()) || i.includes(r.toString());
1118
1118
  }
1119
- t(wt, "isLabelCoordinateInPath");
1119
+ _(wt, "isLabelCoordinateInPath");
1120
1120
  //#endregion
1121
- export { De as C, E as D, T as E, be as O, Be as S, A as T, Ke as _, bt as a, Ue as b, q as c, _t as d, Q as f, pt as g, yt as h, xt as i, ve as k, Ct as l, Qe as m, Y as n, ct as o, ut as p, $ as r, St as s, J as t, W as u, Ge as v, I as w, ze as x, We as y };
1121
+ export { P as C, Ce as D, Se as E, be as O, Ve as S, we as T, qe as _, bt as a, We as b, K as c, _t as d, Q as f, pt as g, yt as h, xt as i, ye as k, Ct as l, $e as m, Y as n, ct as o, ut as p, $ as r, St as s, J as t, U as u, Ke as v, je as w, Be as x, Ge as y };