@kong-ui-public/documentation 0.3.42 → 0.4.0

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 (155) hide show
  1. package/dist/Tableau10-GLA_9iAD-BMurskAd.js +9 -0
  2. package/dist/arc-BSRpyMf3-C5dasNo_.js +86 -0
  3. package/dist/array-CqVTtuYm-fKLgkG2b.js +6 -0
  4. package/dist/astro-mwoSwJnq-CNh-xuM0.js +27 -0
  5. package/dist/blockDiagram-6b2b5046-D02VCbQO-CPmGy0xX.js +1224 -0
  6. package/dist/c-eDnjw9rh-eDnjw9rh.js +87 -0
  7. package/dist/c4Diagram-b947cdbb-gYcL5VzP-DIDY83e1.js +1578 -0
  8. package/dist/channel-DHTQ8Ynn-7OPGex2S.js +5 -0
  9. package/dist/classDiagram-35230388-JdSKLSZv-D2crBRy-.js +217 -0
  10. package/dist/classDiagram-v2-412acd34-DFFRHXE_-B6aCxlD1.js +200 -0
  11. package/dist/clone-p6h9XXNm-3JQ-HRC6.js +8 -0
  12. package/dist/coffee-CRlSxcc3-CY091_1T.js +108 -0
  13. package/dist/cpp-DizfY48B-CA38N4Mn.js +208 -0
  14. package/dist/createText-423428c9-LivTKT7b-BXNfjcdp.js +2964 -0
  15. package/dist/csharp-uGDiXTZn-uGDiXTZn.js +762 -0
  16. package/dist/css-CAzixsid-CEpuX1HY.js +511 -0
  17. package/dist/csv-D4BoHddH-D4BoHddH.js +7 -0
  18. package/dist/diff-Bo5iyMQ2-Bo5iyMQ2.js +7 -0
  19. package/dist/docker-B10O2enb-B10O2enb.js +7 -0
  20. package/dist/documentation.es.js +5 -3130
  21. package/dist/documentation.umd.js +10152 -50
  22. package/dist/edges-d417c7a0-C1ggiwWz-Aj0OUf7e.js +1082 -0
  23. package/dist/erDiagram-0ea73325-mz0Z_-DA-Dr01LsTB.js +924 -0
  24. package/dist/flowDb-d35e309a-CPyxEMIt-lofeyUuw.js +1126 -0
  25. package/dist/flowDiagram-d949d7c1-DqCa0HNN-BK5wNO9Z.js +782 -0
  26. package/dist/flowDiagram-v2-49332944-UMosz1sZ-BG39AuNP.js +17 -0
  27. package/dist/flowchart-elk-definition-27cc417a-D2UKpS6N-r2p34307.js +48387 -0
  28. package/dist/ganttDiagram-5c869e3b-CVBHw4pG-CaG9QXQM.js +2490 -0
  29. package/dist/git-commit-CWf81VOF-DtOZSoIU.js +9 -0
  30. package/dist/git-rebase-sR-yVH_J-D5M2oE9O.js +9 -0
  31. package/dist/gitGraphDiagram-b9d81de9-BGm3fU0n-CbCpf-4j.js +1262 -0
  32. package/dist/go-BCCWZWY1-BCCWZWY1.js +7 -0
  33. package/dist/graph-4FyIWFHN-774TpNLL.js +870 -0
  34. package/dist/graphql-CT32SSoq-1pBWfpcR.js +18 -0
  35. package/dist/haml-8RvrfhLO-Bbc4xoLP.js +19 -0
  36. package/dist/handlebars-Cr5ro0bH-CLcCNLtV.js +15 -0
  37. package/dist/haskell-BfFu8DD8-BmkPJdLL.js +565 -0
  38. package/dist/html-BZB5lEhh-B74zAnWx.js +84 -0
  39. package/dist/html-derivative-0y7sV5Qc-D8-muTWn.js +9 -0
  40. package/dist/index-8fae9850-_CN7MNjP-Cq-s0PmS.js +373 -0
  41. package/dist/index-B-5DuDrq.js +29996 -0
  42. package/dist/infoDiagram-db7b18fc-V446j9uR-GSa8bniv.js +319 -0
  43. package/dist/ini-BsUFIxsI-BsUFIxsI.js +7 -0
  44. package/dist/init-DjUOC4st-C8Nwz6AJ.js +16 -0
  45. package/dist/java-Bk2JzfKB-Bk2JzfKB.js +74 -0
  46. package/dist/javascript-DqVBMyXe-DqVBMyXe.js +705 -0
  47. package/dist/journeyDiagram-d5636530-CFiu7dnV-DJMu6A22.js +803 -0
  48. package/dist/json-B12k4-6m-B12k4-6m.js +31 -0
  49. package/dist/json5-CvqQZK9I-CvqQZK9I.js +23 -0
  50. package/dist/jsonc-v2qGKRJY-v2qGKRJY.js +31 -0
  51. package/dist/jsonl-izxnMeZX-izxnMeZX.js +31 -0
  52. package/dist/jsx-aDp7j9_Z-aDp7j9_Z.js +705 -0
  53. package/dist/kotlin-NOMOielb-NOMOielb.js +7 -0
  54. package/dist/latex-Bw_ghldO-BlUAi6pB.js +339 -0
  55. package/dist/layout-2-aEcfuw-BqqWy5wB.js +1524 -0
  56. package/dist/less-CW2GmQHL-CW2GmQHL.js +165 -0
  57. package/dist/line-nVq5kEiy-DtZd3PHZ.js +34 -0
  58. package/dist/linear-Bz4oRFvQ-C869GXbm.js +447 -0
  59. package/dist/liquid-DJ2rh7oT-FwZwa67Y.js +28 -0
  60. package/dist/lua-5TZ-G8Be-CogscVHC.js +9 -0
  61. package/dist/make-whncTQWE-whncTQWE.js +7 -0
  62. package/dist/markdown-DYKdIx5--DYKdIx5-.js +135 -0
  63. package/dist/material-theme-lighter-BRE1Bis3-BRE1Bis3.js +769 -0
  64. package/dist/material-theme-palenight-Dhz61Tee-Dhz61Tee.js +769 -0
  65. package/dist/mdc-D0DPLwil-BfE3hy8_.js +88 -0
  66. package/dist/mdx-CKDMxEaL-CKDMxEaL.js +7 -0
  67. package/dist/mermaid-BxNM-z-u-BxNM-z-u.js +7 -0
  68. package/dist/mindmap-definition-377f8f1f-C2vFYDMs-B71SGbvx.js +19078 -0
  69. package/dist/nginx-C082G13W-vryM9k1W.js +9 -0
  70. package/dist/objective-c-BVtzkNiv-BVtzkNiv.js +115 -0
  71. package/dist/onig-BonMD2gC-BonMD2gC.js +4 -0
  72. package/dist/ordinal-MUacOSdK-B1MUT0BL.js +65 -0
  73. package/dist/pascal-CrvtytWS-CrvtytWS.js +7 -0
  74. package/dist/path-Crsf9Nsj-SiSjwXsf.js +91 -0
  75. package/dist/perl-D29UPKP6-Dez6-HRy.js +17 -0
  76. package/dist/php-D7Tl-iS7-BtPFrDEt.js +789 -0
  77. package/dist/pieDiagram-b0208e96-DhA_SoTh-CfDd9YdA.js +501 -0
  78. package/dist/plsql-8SPzZKaa-8SPzZKaa.js +7 -0
  79. package/dist/postcss-Cz2vjx_4-Cz2vjx_4.js +7 -0
  80. package/dist/powershell-B0buHCuS-B0buHCuS.js +7 -0
  81. package/dist/proto-6YaU_lta-6YaU_lta.js +7 -0
  82. package/dist/pug-DbFO7359-duYD8LVa.js +21 -0
  83. package/dist/python-BQXev0_W-BQXev0_W.js +524 -0
  84. package/dist/quadrantDiagram-0332be45-C8q96Ohm-DMblaqnx.js +903 -0
  85. package/dist/r-DU7Q70f1-DU7Q70f1.js +7 -0
  86. package/dist/reg-DoGLEyFr-DoGLEyFr.js +7 -0
  87. package/dist/requirementDiagram-bf7890df-D30zCZjB-B_JBC9RM.js +767 -0
  88. package/dist/rst-Bm1i8IkK-C9EaDq6g.js +26 -0
  89. package/dist/ruby-CZZKXaz8-BxaDEkRP.js +102 -0
  90. package/dist/rust-CIl6NRUt-CIl6NRUt.js +7 -0
  91. package/dist/sankeyDiagram-0acdec17-B4vNjMaS-Bauvtonp.js +816 -0
  92. package/dist/sass-LqXmC1Fh-LqXmC1Fh.js +8 -0
  93. package/dist/scss-DjxgF7f7-DGTzny6p.js +98 -0
  94. package/dist/sequenceDiagram-c18d009d-BniqGSPK-DuYYUmiZ.js +2201 -0
  95. package/dist/shellscript-CUUTQKn5-CUUTQKn5.js +7 -0
  96. package/dist/shellsession-BIPXtZci-D6avbCwN.js +9 -0
  97. package/dist/splunk-C0K00wNV-C0K00wNV.js +7 -0
  98. package/dist/sql-DkzN59UV-DkzN59UV.js +27 -0
  99. package/dist/ssh-config-BbWAW6SY-BbWAW6SY.js +7 -0
  100. package/dist/stateDiagram-43596fc0-F0V9suMd-L2Ywe-J_.js +266 -0
  101. package/dist/stateDiagram-v2-2ead4f9c-DUgJH8tF-BVo1q2i1.js +184 -0
  102. package/dist/style.css +1 -1
  103. package/dist/styles-6860f46c-Dflmq0ac-BRNSwis6.js +1089 -0
  104. package/dist/styles-7383a064-Dg7mXkpq-C4bItohl.js +430 -0
  105. package/dist/styles-b2c874b6-HpcOhE4Y-Bj0upXzO.js +960 -0
  106. package/dist/stylus-CAHdVuhm-CAHdVuhm.js +21 -0
  107. package/dist/svelte-DAxjO8Sh-D0e501jC.js +29 -0
  108. package/dist/svgDrawCommon-0ee1b4e9-CNkCfzsJ-Bz_doYLk.js +64 -0
  109. package/dist/swift-x2DVyVjN-Bz5PC9YM.js +550 -0
  110. package/dist/timeline-definition-d977decf-Cl38e_0g-D_Dlqa-R.js +794 -0
  111. package/dist/toml-Dbtbfmwk-Dbtbfmwk.js +75 -0
  112. package/dist/tsx-BmwsDeeh-BmwsDeeh.js +705 -0
  113. package/dist/twig-B_Gr-ODl-Cl9Q0GWo.js +58 -0
  114. package/dist/types/components/DocumentationContent.vue.d.ts +8 -1
  115. package/dist/types/components/DocumentationContent.vue.d.ts.map +1 -1
  116. package/dist/types/components/DocumentationDisplay.vue.d.ts +5 -1
  117. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +1 -1
  118. package/dist/types/components/ProductDocumentModal.vue.d.ts +1 -1
  119. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +1 -1
  120. package/dist/types/composables/useI18n.d.ts +4 -0
  121. package/dist/types/composables/useI18n.d.ts.map +1 -1
  122. package/dist/typescript-AEg-ehu7-AEg-ehu7.js +672 -0
  123. package/dist/v-BuvBsUKm-BuvBsUKm.js +7 -0
  124. package/dist/vb-cqjo5dul-cqjo5dul.js +7 -0
  125. package/dist/viml-h3ATW6He-h3ATW6He.js +7 -0
  126. package/dist/vue-Dz-azHaT-B9qBHMZi.js +71 -0
  127. package/dist/vue-html-DIGKAAs4-BeHSIJcx.js +11 -0
  128. package/dist/wasm-xOGcJ9Ts-xOGcJ9Ts.js +7 -0
  129. package/dist/wgsl-hGLOfCya-hGLOfCya.js +7 -0
  130. package/dist/xml-CfRpfi_B-BH3JRQfc.js +9 -0
  131. package/dist/xsl-BAqhSCYL-BTKPZRNQ.js +9 -0
  132. package/dist/xychartDiagram-e50adddc-JdLmRUgg-HmDalTeo.js +1282 -0
  133. package/dist/yaml-PGla5xPP-HJurM_FJ.js +206 -0
  134. package/package.json +13 -13
  135. package/dist/prism-bash.min-DDo5CyRs-DihCfXgx.js +0 -7
  136. package/dist/prism-css.min-BrrzZC7b-BrrzZC7b.js +0 -7
  137. package/dist/prism-docker.min-DnIEokC3-D0v8IWN_.js +0 -22
  138. package/dist/prism-go.min-C7UmK6TW-C7UmK6TW.js +0 -1
  139. package/dist/prism-http.min-CsU3-jB8-CQ8PCDXl.js +0 -23
  140. package/dist/prism-javascript.min-CEqHqgbm-CEqHqgbm.js +0 -8
  141. package/dist/prism-jq.min-Q555vXZm-Q555vXZm.js +0 -8
  142. package/dist/prism-json.min-B1GJqK1k-B1GJqK1k.js +0 -1
  143. package/dist/prism-log.min-SDopTpKN-SDopTpKN.js +0 -1
  144. package/dist/prism-lua.min-DwRnUVfS-DwRnUVfS.js +0 -1
  145. package/dist/prism-makefile.min-DyutknhE-DyutknhE.js +0 -1
  146. package/dist/prism-markdown.min-B7US-xc7-DB9aF_ZA.js +0 -63
  147. package/dist/prism-python.min-BIfpAh5K-BIfpAh5K.js +0 -1
  148. package/dist/prism-regex.min-f8DNqi8X-f8DNqi8X.js +0 -4
  149. package/dist/prism-rest.min-B6veHRJF-B6veHRJF.js +0 -1
  150. package/dist/prism-rust.min-Cb-Mi-h0-Cb-Mi-h0.js +0 -9
  151. package/dist/prism-scss.min-B0csyGJo-B0csyGJo.js +0 -1
  152. package/dist/prism-sql.min-BHXzX-c_-BHXzX-c_.js +0 -1
  153. package/dist/prism-typescript.min-oSVeWCAd-oSVeWCAd.js +0 -5
  154. package/dist/prism-xml-doc.min-yj0YzRGe-KgTQx-dc.js +0 -7
  155. package/dist/prism-yaml.min-CTetcdKA-C1YzP_OY.js +0 -28
@@ -0,0 +1,782 @@
1
+ import { X as mt, j as W } from "./flowDb-d35e309a-CPyxEMIt-lofeyUuw.js";
2
+ import { Z as kt, E as k, m as K } from "./graph-4FyIWFHN-774TpNLL.js";
3
+ import { h as w, o as O, p as J, c as H, j as tt, l as U, q, r as R, t as St } from "./index-B-5DuDrq.js";
4
+ import { e as Lt, N as _t, V as At, A as It, L as C } from "./layout-2-aEcfuw-BqqWy5wB.js";
5
+ import { u as Tt, w as Et, O as et, Q as Mt, Z as T, d as rt, f as _, p as at, b as nt } from "./styles-7383a064-Dg7mXkpq-C4bItohl.js";
6
+ import { P as Nt } from "./line-nVq5kEiy-DtZd3PHZ.js";
7
+ function Bt(r) {
8
+ if (!r.ok)
9
+ throw new Error(r.status + " " + r.statusText);
10
+ return r.text();
11
+ }
12
+ function $t(r, e) {
13
+ return fetch(r, e).then(Bt);
14
+ }
15
+ function Ct(r) {
16
+ return (e, t) => $t(e, t).then((a) => new DOMParser().parseFromString(a, r));
17
+ }
18
+ var Dt = Ct("image/svg+xml"), P = {
19
+ normal: Rt,
20
+ vee: Wt,
21
+ undirected: qt
22
+ };
23
+ function Ut(r) {
24
+ P = r;
25
+ }
26
+ function Rt(r, e, t, a) {
27
+ var n = r.append("marker").attr("id", e).attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerUnits", "strokeWidth").attr("markerWidth", 8).attr("markerHeight", 6).attr("orient", "auto"), i = n.append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").style("stroke-width", 1).style("stroke-dasharray", "1,0");
28
+ T(i, t[a + "Style"]), t[a + "Class"] && i.attr("class", t[a + "Class"]);
29
+ }
30
+ function Wt(r, e, t, a) {
31
+ var n = r.append("marker").attr("id", e).attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerUnits", "strokeWidth").attr("markerWidth", 8).attr("markerHeight", 6).attr("orient", "auto"), i = n.append("path").attr("d", "M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width", 1).style("stroke-dasharray", "1,0");
32
+ T(i, t[a + "Style"]), t[a + "Class"] && i.attr("class", t[a + "Class"]);
33
+ }
34
+ function qt(r, e, t, a) {
35
+ var n = r.append("marker").attr("id", e).attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerUnits", "strokeWidth").attr("markerWidth", 8).attr("markerHeight", 6).attr("orient", "auto"), i = n.append("path").attr("d", "M 0 5 L 10 5").style("stroke-width", 1).style("stroke-dasharray", "1,0");
36
+ T(i, t[a + "Style"]), t[a + "Class"] && i.attr("class", t[a + "Class"]);
37
+ }
38
+ function Ot(r, e) {
39
+ var t = r;
40
+ return t.node().appendChild(e.label), T(t, e.labelStyle), t;
41
+ }
42
+ function Pt(r, e) {
43
+ for (var t = r.append("text"), a = zt(e.label).split(`
44
+ `), n = 0; n < a.length; n++)
45
+ t.append("tspan").attr("xml:space", "preserve").attr("dy", "1em").attr("x", "1").text(a[n]);
46
+ return T(t, e.labelStyle), t;
47
+ }
48
+ function zt(r) {
49
+ for (var e = "", t = !1, a, n = 0; n < r.length; ++n)
50
+ if (a = r[n], t) {
51
+ switch (a) {
52
+ case "n":
53
+ e += `
54
+ `;
55
+ break;
56
+ default:
57
+ e += a;
58
+ }
59
+ t = !1;
60
+ } else
61
+ a === "\\" ? t = !0 : e += a;
62
+ return e;
63
+ }
64
+ function G(r, e, t) {
65
+ var a = e.label, n = r.append("g");
66
+ e.labelType === "svg" ? Ot(n, e) : typeof a != "string" || e.labelType === "html" ? et(n, e) : Pt(n, e);
67
+ var i = n.node().getBBox(), s;
68
+ switch (t) {
69
+ case "top":
70
+ s = -e.height / 2;
71
+ break;
72
+ case "bottom":
73
+ s = e.height / 2 - i.height;
74
+ break;
75
+ default:
76
+ s = -i.height / 2;
77
+ }
78
+ return n.attr("transform", "translate(" + -i.width / 2 + "," + s + ")"), n;
79
+ }
80
+ var z = function(r, e) {
81
+ var t = e.nodes().filter(function(i) {
82
+ return rt(e, i);
83
+ }), a = r.selectAll("g.cluster").data(t, function(i) {
84
+ return i;
85
+ });
86
+ _(a.exit(), e).style("opacity", 0).remove();
87
+ var n = a.enter().append("g").attr("class", "cluster").attr("id", function(i) {
88
+ var s = e.node(i);
89
+ return s.id;
90
+ }).style("opacity", 0).each(function(i) {
91
+ var s = e.node(i), o = w(this);
92
+ w(this).append("rect");
93
+ var l = o.append("g").attr("class", "label");
94
+ G(l, s, s.clusterLabelPos);
95
+ });
96
+ return a = a.merge(n), a = _(a, e).style("opacity", 1), a.selectAll("rect").each(function(i) {
97
+ var s = e.node(i), o = w(this);
98
+ T(o, s.style);
99
+ }), a;
100
+ };
101
+ function Vt(r) {
102
+ z = r;
103
+ }
104
+ let V = function(r, e) {
105
+ var t = r.selectAll("g.edgeLabel").data(e.edges(), function(n) {
106
+ return at(n);
107
+ }).classed("update", !0);
108
+ t.exit().remove(), t.enter().append("g").classed("edgeLabel", !0).style("opacity", 0), t = r.selectAll("g.edgeLabel"), t.each(function(n) {
109
+ var i = w(this);
110
+ i.select(".label").remove();
111
+ var s = e.edge(n), o = G(i, e.edge(n), 0).classed("label", !0), l = o.node().getBBox();
112
+ s.labelId && o.attr("id", s.labelId), k(s, "width") || (s.width = l.width), k(s, "height") || (s.height = l.height);
113
+ });
114
+ var a;
115
+ return t.exit ? a = t.exit() : a = t.selectAll(null), _(a, e).style("opacity", 0).remove(), t;
116
+ };
117
+ function Xt(r) {
118
+ V = r;
119
+ }
120
+ function Q(r, e) {
121
+ return r.intersect(e);
122
+ }
123
+ var X = function(r, e, t) {
124
+ var a = r.selectAll("g.edgePath").data(e.edges(), function(s) {
125
+ return at(s);
126
+ }).classed("update", !0), n = Ft(a, e);
127
+ Qt(a, e);
128
+ var i = a.merge !== void 0 ? a.merge(n) : a;
129
+ return _(i, e).style("opacity", 1), i.each(function(s) {
130
+ var o = w(this), l = e.edge(s);
131
+ l.elem = this, l.id && o.attr("id", l.id), nt(
132
+ o,
133
+ l.class,
134
+ (o.classed("update") ? "update " : "") + "edgePath"
135
+ );
136
+ }), i.selectAll("path.path").each(function(s) {
137
+ var o = e.edge(s);
138
+ o.arrowheadId = Lt("arrowhead");
139
+ var l = w(this).attr("marker-end", function() {
140
+ return "url(" + Yt(location.href, o.arrowheadId) + ")";
141
+ }).style("fill", "none");
142
+ _(l, e).attr("d", function(c) {
143
+ return Ht(e, c);
144
+ }), T(l, o.style);
145
+ }), i.selectAll("defs *").remove(), i.selectAll("defs").each(function(s) {
146
+ var o = e.edge(s), l = t[o.arrowhead];
147
+ l(w(this), o.arrowheadId, o, "arrowhead");
148
+ }), i;
149
+ };
150
+ function jt(r) {
151
+ X = r;
152
+ }
153
+ function Yt(r, e) {
154
+ var t = r.split("#")[0];
155
+ return t + "#" + e;
156
+ }
157
+ function Ht(r, e) {
158
+ var t = r.edge(e), a = r.node(e.v), n = r.node(e.w), i = t.points.slice(1, t.points.length - 1);
159
+ return i.unshift(Q(a, i[0])), i.push(Q(n, i[i.length - 1])), it(t, i);
160
+ }
161
+ function it(r, e) {
162
+ var t = (Nt || Dt.line)().x(function(a) {
163
+ return a.x;
164
+ }).y(function(a) {
165
+ return a.y;
166
+ });
167
+ return (t.curve || t.interpolate)(r.curve), t(e);
168
+ }
169
+ function Gt(r) {
170
+ var e = r.getBBox(), t = r.ownerSVGElement.getScreenCTM().inverse().multiply(r.getScreenCTM()).translate(e.width / 2, e.height / 2);
171
+ return { x: t.e, y: t.f };
172
+ }
173
+ function Ft(r, e) {
174
+ var t = r.enter().append("g").attr("class", "edgePath").style("opacity", 0);
175
+ return t.append("path").attr("class", "path").attr("d", function(a) {
176
+ var n = e.edge(a), i = e.node(a.v).elem, s = _t(n.points.length).map(function() {
177
+ return Gt(i);
178
+ });
179
+ return it(n, s);
180
+ }), t.append("defs"), t;
181
+ }
182
+ function Qt(r, e) {
183
+ var t = r.exit();
184
+ _(t, e).style("opacity", 0).remove();
185
+ }
186
+ var j = function(r, e, t) {
187
+ var a = e.nodes().filter(function(s) {
188
+ return !rt(e, s);
189
+ }), n = r.selectAll("g.node").data(a, function(s) {
190
+ return s;
191
+ }).classed("update", !0);
192
+ n.exit().remove(), n.enter().append("g").attr("class", "node").style("opacity", 0), n = r.selectAll("g.node"), n.each(function(s) {
193
+ var o = e.node(s), l = w(this);
194
+ nt(
195
+ l,
196
+ o.class,
197
+ (l.classed("update") ? "update " : "") + "node"
198
+ ), l.select("g.label").remove();
199
+ var c = l.append("g").attr("class", "label"), d = G(c, o), g = t[o.shape], f = At(d.node().getBBox(), "width", "height");
200
+ o.elem = this, o.id && l.attr("id", o.id), o.labelId && c.attr("id", o.labelId), k(o, "width") && (f.width = o.width), k(o, "height") && (f.height = o.height), f.width += o.paddingLeft + o.paddingRight, f.height += o.paddingTop + o.paddingBottom, c.attr(
201
+ "transform",
202
+ "translate(" + (o.paddingLeft - o.paddingRight) / 2 + "," + (o.paddingTop - o.paddingBottom) / 2 + ")"
203
+ );
204
+ var h = w(this);
205
+ h.select(".label-container").remove();
206
+ var p = g(h, f, o).classed("label-container", !0);
207
+ T(p, o.style);
208
+ var u = p.node().getBBox();
209
+ o.width = u.width, o.height = u.height;
210
+ });
211
+ var i;
212
+ return n.exit ? i = n.exit() : i = n.selectAll(null), _(i, e).style("opacity", 0).remove(), n;
213
+ };
214
+ function Zt(r) {
215
+ j = r;
216
+ }
217
+ function Kt(r, e) {
218
+ var t = r.filter(function() {
219
+ return !w(this).classed("update");
220
+ });
221
+ function a(n) {
222
+ var i = e.node(n);
223
+ return "translate(" + i.x + "," + i.y + ")";
224
+ }
225
+ t.attr("transform", a), _(r, e).style("opacity", 1).attr("transform", a), _(t.selectAll("rect"), e).attr("width", function(n) {
226
+ return e.node(n).width;
227
+ }).attr("height", function(n) {
228
+ return e.node(n).height;
229
+ }).attr("x", function(n) {
230
+ var i = e.node(n);
231
+ return -i.width / 2;
232
+ }).attr("y", function(n) {
233
+ var i = e.node(n);
234
+ return -i.height / 2;
235
+ });
236
+ }
237
+ function Jt(r, e) {
238
+ var t = r.filter(function() {
239
+ return !w(this).classed("update");
240
+ });
241
+ function a(n) {
242
+ var i = e.edge(n);
243
+ return k(i, "x") ? "translate(" + i.x + "," + i.y + ")" : "";
244
+ }
245
+ t.attr("transform", a), _(r, e).style("opacity", 1).attr("transform", a);
246
+ }
247
+ function te(r, e) {
248
+ var t = r.filter(function() {
249
+ return !w(this).classed("update");
250
+ });
251
+ function a(n) {
252
+ var i = e.node(n);
253
+ return "translate(" + i.x + "," + i.y + ")";
254
+ }
255
+ t.attr("transform", a), _(r, e).style("opacity", 1).attr("transform", a);
256
+ }
257
+ function st(r, e, t, a) {
258
+ var n = r.x, i = r.y, s = n - a.x, o = i - a.y, l = Math.sqrt(e * e * o * o + t * t * s * s), c = Math.abs(e * t * s / l);
259
+ a.x < n && (c = -c);
260
+ var d = Math.abs(e * t * o / l);
261
+ return a.y < i && (d = -d), { x: n + c, y: i + d };
262
+ }
263
+ function ee(r, e, t) {
264
+ return st(r, e, e, t);
265
+ }
266
+ function re(r, e, t, a) {
267
+ var n, i, s, o, l, c, d, g, f, h, p, u, x, v, S;
268
+ if (n = e.y - r.y, s = r.x - e.x, l = e.x * r.y - r.x * e.y, f = n * t.x + s * t.y + l, h = n * a.x + s * a.y + l, !(f !== 0 && h !== 0 && Z(f, h)) && (i = a.y - t.y, o = t.x - a.x, c = a.x * t.y - t.x * a.y, d = i * r.x + o * r.y + c, g = i * e.x + o * e.y + c, !(d !== 0 && g !== 0 && Z(d, g)) && (p = n * o - i * s, p !== 0)))
269
+ return u = Math.abs(p / 2), x = s * c - o * l, v = x < 0 ? (x - u) / p : (x + u) / p, x = i * l - n * c, S = x < 0 ? (x - u) / p : (x + u) / p, { x: v, y: S };
270
+ }
271
+ function Z(r, e) {
272
+ return r * e > 0;
273
+ }
274
+ function I(r, e, t) {
275
+ var a = r.x, n = r.y, i = [], s = Number.POSITIVE_INFINITY, o = Number.POSITIVE_INFINITY;
276
+ e.forEach(function(p) {
277
+ s = Math.min(s, p.x), o = Math.min(o, p.y);
278
+ });
279
+ for (var l = a - r.width / 2 - s, c = n - r.height / 2 - o, d = 0; d < e.length; d++) {
280
+ var g = e[d], f = e[d < e.length - 1 ? d + 1 : 0], h = re(
281
+ r,
282
+ t,
283
+ { x: l + g.x, y: c + g.y },
284
+ { x: l + f.x, y: c + f.y }
285
+ );
286
+ h && i.push(h);
287
+ }
288
+ return i.length ? (i.length > 1 && i.sort(function(p, u) {
289
+ var x = p.x - t.x, v = p.y - t.y, S = Math.sqrt(x * x + v * v), A = u.x - t.x, B = u.y - t.y, y = Math.sqrt(A * A + B * B);
290
+ return S < y ? -1 : S === y ? 0 : 1;
291
+ }), i[0]) : (console.log("NO INTERSECTION FOUND, RETURN NODE CENTER", r), r);
292
+ }
293
+ function F(r, e) {
294
+ var t = r.x, a = r.y, n = e.x - t, i = e.y - a, s = r.width / 2, o = r.height / 2, l, c;
295
+ return Math.abs(i) * s > Math.abs(n) * o ? (i < 0 && (o = -o), l = i === 0 ? 0 : o * n / i, c = o) : (n < 0 && (s = -s), l = s, c = n === 0 ? 0 : s * i / n), { x: t + l, y: a + c };
296
+ }
297
+ var Y = {
298
+ rect: ne,
299
+ ellipse: ie,
300
+ circle: se,
301
+ diamond: oe
302
+ };
303
+ function ae(r) {
304
+ Y = r;
305
+ }
306
+ function ne(r, e, t) {
307
+ var a = r.insert("rect", ":first-child").attr("rx", t.rx).attr("ry", t.ry).attr("x", -e.width / 2).attr("y", -e.height / 2).attr("width", e.width).attr("height", e.height);
308
+ return t.intersect = function(n) {
309
+ return F(t, n);
310
+ }, a;
311
+ }
312
+ function ie(r, e, t) {
313
+ var a = e.width / 2, n = e.height / 2, i = r.insert("ellipse", ":first-child").attr("x", -e.width / 2).attr("y", -e.height / 2).attr("rx", a).attr("ry", n);
314
+ return t.intersect = function(s) {
315
+ return st(t, a, n, s);
316
+ }, i;
317
+ }
318
+ function se(r, e, t) {
319
+ var a = Math.max(e.width, e.height) / 2, n = r.insert("circle", ":first-child").attr("x", -e.width / 2).attr("y", -e.height / 2).attr("r", a);
320
+ return t.intersect = function(i) {
321
+ return ee(t, a, i);
322
+ }, n;
323
+ }
324
+ function oe(r, e, t) {
325
+ var a = e.width * Math.SQRT2 / 2, n = e.height * Math.SQRT2 / 2, i = [
326
+ { x: 0, y: -n },
327
+ { x: -a, y: 0 },
328
+ { x: 0, y: n },
329
+ { x: a, y: 0 }
330
+ ], s = r.insert("polygon", ":first-child").attr(
331
+ "points",
332
+ i.map(function(o) {
333
+ return o.x + "," + o.y;
334
+ }).join(" ")
335
+ );
336
+ return t.intersect = function(o) {
337
+ return I(t, i, o);
338
+ }, s;
339
+ }
340
+ function le() {
341
+ var r = function(e, t) {
342
+ he(t);
343
+ var a = D(e, "output"), n = D(a, "clusters"), i = D(a, "edgePaths"), s = V(D(a, "edgeLabels"), t), o = j(D(a, "nodes"), t, Y);
344
+ It(t), te(o, t), Jt(s, t), X(i, t, P);
345
+ var l = z(n, t);
346
+ Kt(l, t), ue(t);
347
+ };
348
+ return r.createNodes = function(e) {
349
+ return arguments.length ? (Zt(e), r) : j;
350
+ }, r.createClusters = function(e) {
351
+ return arguments.length ? (Vt(e), r) : z;
352
+ }, r.createEdgeLabels = function(e) {
353
+ return arguments.length ? (Xt(e), r) : V;
354
+ }, r.createEdgePaths = function(e) {
355
+ return arguments.length ? (jt(e), r) : X;
356
+ }, r.shapes = function(e) {
357
+ return arguments.length ? (ae(e), r) : Y;
358
+ }, r.arrows = function(e) {
359
+ return arguments.length ? (Ut(e), r) : P;
360
+ }, r;
361
+ }
362
+ var de = {
363
+ paddingLeft: 10,
364
+ paddingRight: 10,
365
+ paddingTop: 10,
366
+ paddingBottom: 10,
367
+ rx: 0,
368
+ ry: 0,
369
+ shape: "rect"
370
+ }, ce = {
371
+ arrowhead: "normal",
372
+ curve: R
373
+ };
374
+ function he(r) {
375
+ r.nodes().forEach(function(e) {
376
+ var t = r.node(e);
377
+ !k(t, "label") && !r.children(e).length && (t.label = e), k(t, "paddingX") && C(t, {
378
+ paddingLeft: t.paddingX,
379
+ paddingRight: t.paddingX
380
+ }), k(t, "paddingY") && C(t, {
381
+ paddingTop: t.paddingY,
382
+ paddingBottom: t.paddingY
383
+ }), k(t, "padding") && C(t, {
384
+ paddingLeft: t.padding,
385
+ paddingRight: t.padding,
386
+ paddingTop: t.padding,
387
+ paddingBottom: t.padding
388
+ }), C(t, de), K(["paddingLeft", "paddingRight", "paddingTop", "paddingBottom"], function(a) {
389
+ t[a] = Number(t[a]);
390
+ }), k(t, "width") && (t._prevWidth = t.width), k(t, "height") && (t._prevHeight = t.height);
391
+ }), r.edges().forEach(function(e) {
392
+ var t = r.edge(e);
393
+ k(t, "label") || (t.label = ""), C(t, ce);
394
+ });
395
+ }
396
+ function ue(r) {
397
+ K(r.nodes(), function(e) {
398
+ var t = r.node(e);
399
+ k(t, "_prevWidth") ? t.width = t._prevWidth : delete t.width, k(t, "_prevHeight") ? t.height = t._prevHeight : delete t.height, delete t._prevWidth, delete t._prevHeight;
400
+ });
401
+ }
402
+ function D(r, e) {
403
+ var t = r.select("g." + e);
404
+ return t.empty() && (t = r.append("g").attr("class", e)), t;
405
+ }
406
+ function ot(r, e, t) {
407
+ const a = e.width, n = e.height, i = (a + n) * 0.9, s = [
408
+ { x: i / 2, y: 0 },
409
+ { x: i, y: -i / 2 },
410
+ { x: i / 2, y: -i },
411
+ { x: 0, y: -i / 2 }
412
+ ], o = E(r, i, i, s);
413
+ return t.intersect = function(l) {
414
+ return I(t, s, l);
415
+ }, o;
416
+ }
417
+ function lt(r, e, t) {
418
+ const a = e.height, n = a / 4, i = e.width + 2 * n, s = [
419
+ { x: n, y: 0 },
420
+ { x: i - n, y: 0 },
421
+ { x: i, y: -a / 2 },
422
+ { x: i - n, y: -a },
423
+ { x: n, y: -a },
424
+ { x: 0, y: -a / 2 }
425
+ ], o = E(r, i, a, s);
426
+ return t.intersect = function(l) {
427
+ return I(t, s, l);
428
+ }, o;
429
+ }
430
+ function dt(r, e, t) {
431
+ const a = e.width, n = e.height, i = [
432
+ { x: -n / 2, y: 0 },
433
+ { x: a, y: 0 },
434
+ { x: a, y: -n },
435
+ { x: -n / 2, y: -n },
436
+ { x: 0, y: -n / 2 }
437
+ ], s = E(r, a, n, i);
438
+ return t.intersect = function(o) {
439
+ return I(t, i, o);
440
+ }, s;
441
+ }
442
+ function ct(r, e, t) {
443
+ const a = e.width, n = e.height, i = [
444
+ { x: -2 * n / 6, y: 0 },
445
+ { x: a - n / 6, y: 0 },
446
+ { x: a + 2 * n / 6, y: -n },
447
+ { x: n / 6, y: -n }
448
+ ], s = E(r, a, n, i);
449
+ return t.intersect = function(o) {
450
+ return I(t, i, o);
451
+ }, s;
452
+ }
453
+ function ht(r, e, t) {
454
+ const a = e.width, n = e.height, i = [
455
+ { x: 2 * n / 6, y: 0 },
456
+ { x: a + n / 6, y: 0 },
457
+ { x: a - 2 * n / 6, y: -n },
458
+ { x: -n / 6, y: -n }
459
+ ], s = E(r, a, n, i);
460
+ return t.intersect = function(o) {
461
+ return I(t, i, o);
462
+ }, s;
463
+ }
464
+ function ut(r, e, t) {
465
+ const a = e.width, n = e.height, i = [
466
+ { x: -2 * n / 6, y: 0 },
467
+ { x: a + 2 * n / 6, y: 0 },
468
+ { x: a - n / 6, y: -n },
469
+ { x: n / 6, y: -n }
470
+ ], s = E(r, a, n, i);
471
+ return t.intersect = function(o) {
472
+ return I(t, i, o);
473
+ }, s;
474
+ }
475
+ function ft(r, e, t) {
476
+ const a = e.width, n = e.height, i = [
477
+ { x: n / 6, y: 0 },
478
+ { x: a - n / 6, y: 0 },
479
+ { x: a + 2 * n / 6, y: -n },
480
+ { x: -2 * n / 6, y: -n }
481
+ ], s = E(r, a, n, i);
482
+ return t.intersect = function(o) {
483
+ return I(t, i, o);
484
+ }, s;
485
+ }
486
+ function pt(r, e, t) {
487
+ const a = e.width, n = e.height, i = [
488
+ { x: 0, y: 0 },
489
+ { x: a + n / 2, y: 0 },
490
+ { x: a, y: -n / 2 },
491
+ { x: a + n / 2, y: -n },
492
+ { x: 0, y: -n }
493
+ ], s = E(r, a, n, i);
494
+ return t.intersect = function(o) {
495
+ return I(t, i, o);
496
+ }, s;
497
+ }
498
+ function gt(r, e, t) {
499
+ const a = e.height, n = e.width + a / 4, i = r.insert("rect", ":first-child").attr("rx", a / 2).attr("ry", a / 2).attr("x", -n / 2).attr("y", -a / 2).attr("width", n).attr("height", a);
500
+ return t.intersect = function(s) {
501
+ return F(t, s);
502
+ }, i;
503
+ }
504
+ function yt(r, e, t) {
505
+ const a = e.width, n = e.height, i = [
506
+ { x: 0, y: 0 },
507
+ { x: a, y: 0 },
508
+ { x: a, y: -n },
509
+ { x: 0, y: -n },
510
+ { x: 0, y: 0 },
511
+ { x: -8, y: 0 },
512
+ { x: a + 8, y: 0 },
513
+ { x: a + 8, y: -n },
514
+ { x: -8, y: -n },
515
+ { x: -8, y: 0 }
516
+ ], s = E(r, a, n, i);
517
+ return t.intersect = function(o) {
518
+ return I(t, i, o);
519
+ }, s;
520
+ }
521
+ function xt(r, e, t) {
522
+ const a = e.width, n = a / 2, i = n / (2.5 + a / 50), s = e.height + i, o = "M 0," + i + " a " + n + "," + i + " 0,0,0 " + a + " 0 a " + n + "," + i + " 0,0,0 " + -a + " 0 l 0," + s + " a " + n + "," + i + " 0,0,0 " + a + " 0 l 0," + -s, l = r.attr("label-offset-y", i).insert("path", ":first-child").attr("d", o).attr("transform", "translate(" + -a / 2 + "," + -(s / 2 + i) + ")");
523
+ return t.intersect = function(c) {
524
+ const d = F(t, c), g = d.x - t.x;
525
+ if (n != 0 && (Math.abs(g) < t.width / 2 || Math.abs(g) == t.width / 2 && Math.abs(d.y - t.y) > t.height / 2 - i)) {
526
+ let f = i * i * (1 - g * g / (n * n));
527
+ f != 0 && (f = Math.sqrt(f)), f = i - f, c.y - t.y > 0 && (f = -f), d.y += f;
528
+ }
529
+ return d;
530
+ }, l;
531
+ }
532
+ function fe(r) {
533
+ r.shapes().question = ot, r.shapes().hexagon = lt, r.shapes().stadium = gt, r.shapes().subroutine = yt, r.shapes().cylinder = xt, r.shapes().rect_left_inv_arrow = dt, r.shapes().lean_right = ct, r.shapes().lean_left = ht, r.shapes().trapezoid = ut, r.shapes().inv_trapezoid = ft, r.shapes().rect_right_inv_arrow = pt;
534
+ }
535
+ function pe(r) {
536
+ r({ question: ot }), r({ hexagon: lt }), r({ stadium: gt }), r({ subroutine: yt }), r({ cylinder: xt }), r({ rect_left_inv_arrow: dt }), r({ lean_right: ct }), r({ lean_left: ht }), r({ trapezoid: ut }), r({ inv_trapezoid: ft }), r({ rect_right_inv_arrow: pt });
537
+ }
538
+ function E(r, e, t, a) {
539
+ return r.insert("polygon", ":first-child").attr(
540
+ "points",
541
+ a.map(function(n) {
542
+ return n.x + "," + n.y;
543
+ }).join(" ")
544
+ ).attr("transform", "translate(" + -e / 2 + "," + t / 2 + ")");
545
+ }
546
+ const ge = {
547
+ addToRender: fe,
548
+ addToRenderV2: pe
549
+ }, vt = {}, ye = function(r) {
550
+ const e = Object.keys(r);
551
+ for (const t of e)
552
+ vt[t] = r[t];
553
+ }, wt = function(r, e, t, a, n, i) {
554
+ const s = a ? a.select(`[id="${t}"]`) : w(`[id="${t}"]`), o = n || document;
555
+ Object.keys(r).forEach(function(l) {
556
+ const c = r[l];
557
+ let d = "default";
558
+ c.classes.length > 0 && (d = c.classes.join(" "));
559
+ const g = O(c.styles);
560
+ let f = c.text !== void 0 ? c.text : c.id, h;
561
+ if (J(H().flowchart.htmlLabels)) {
562
+ const x = {
563
+ label: f.replace(
564
+ /fa[blrs]?:fa-[\w-]+/g,
565
+ (v) => `<i class='${v.replace(":", " ")}'></i>`
566
+ )
567
+ };
568
+ h = et(s, x).node(), h.parentNode.removeChild(h);
569
+ } else {
570
+ const x = o.createElementNS("http://www.w3.org/2000/svg", "text");
571
+ x.setAttribute("style", g.labelStyle.replace("color:", "fill:"));
572
+ const v = f.split(tt.lineBreakRegex);
573
+ for (const S of v) {
574
+ const A = o.createElementNS("http://www.w3.org/2000/svg", "tspan");
575
+ A.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), A.setAttribute("dy", "1em"), A.setAttribute("x", "1"), A.textContent = S, x.appendChild(A);
576
+ }
577
+ h = x;
578
+ }
579
+ let p = 0, u = "";
580
+ switch (c.type) {
581
+ case "round":
582
+ p = 5, u = "rect";
583
+ break;
584
+ case "square":
585
+ u = "rect";
586
+ break;
587
+ case "diamond":
588
+ u = "question";
589
+ break;
590
+ case "hexagon":
591
+ u = "hexagon";
592
+ break;
593
+ case "odd":
594
+ u = "rect_left_inv_arrow";
595
+ break;
596
+ case "lean_right":
597
+ u = "lean_right";
598
+ break;
599
+ case "lean_left":
600
+ u = "lean_left";
601
+ break;
602
+ case "trapezoid":
603
+ u = "trapezoid";
604
+ break;
605
+ case "inv_trapezoid":
606
+ u = "inv_trapezoid";
607
+ break;
608
+ case "odd_right":
609
+ u = "rect_left_inv_arrow";
610
+ break;
611
+ case "circle":
612
+ u = "circle";
613
+ break;
614
+ case "ellipse":
615
+ u = "ellipse";
616
+ break;
617
+ case "stadium":
618
+ u = "stadium";
619
+ break;
620
+ case "subroutine":
621
+ u = "subroutine";
622
+ break;
623
+ case "cylinder":
624
+ u = "cylinder";
625
+ break;
626
+ case "group":
627
+ u = "rect";
628
+ break;
629
+ default:
630
+ u = "rect";
631
+ }
632
+ U.warn("Adding node", c.id, c.domId), e.setNode(i.db.lookUpDomId(c.id), {
633
+ labelType: "svg",
634
+ labelStyle: g.labelStyle,
635
+ shape: u,
636
+ label: h,
637
+ rx: p,
638
+ ry: p,
639
+ class: d,
640
+ style: g.style,
641
+ id: i.db.lookUpDomId(c.id)
642
+ });
643
+ });
644
+ }, bt = function(r, e, t) {
645
+ let a = 0, n, i;
646
+ if (r.defaultStyle !== void 0) {
647
+ const s = O(r.defaultStyle);
648
+ n = s.style, i = s.labelStyle;
649
+ }
650
+ r.forEach(function(s) {
651
+ a++;
652
+ const o = "L-" + s.start + "-" + s.end, l = "LS-" + s.start, c = "LE-" + s.end, d = {};
653
+ s.type === "arrow_open" ? d.arrowhead = "none" : d.arrowhead = "normal";
654
+ let g = "", f = "";
655
+ if (s.style !== void 0) {
656
+ const h = O(s.style);
657
+ g = h.style, f = h.labelStyle;
658
+ } else
659
+ switch (s.stroke) {
660
+ case "normal":
661
+ g = "fill:none", n !== void 0 && (g = n), i !== void 0 && (f = i);
662
+ break;
663
+ case "dotted":
664
+ g = "fill:none;stroke-width:2px;stroke-dasharray:3;";
665
+ break;
666
+ case "thick":
667
+ g = " stroke-width: 3.5px;fill:none";
668
+ break;
669
+ }
670
+ d.style = g, d.labelStyle = f, s.interpolate !== void 0 ? d.curve = q(s.interpolate, R) : r.defaultInterpolate !== void 0 ? d.curve = q(r.defaultInterpolate, R) : d.curve = q(vt.curve, R), s.text === void 0 ? s.style !== void 0 && (d.arrowheadStyle = "fill: #333") : (d.arrowheadStyle = "fill: #333", d.labelpos = "c", J(H().flowchart.htmlLabels) ? (d.labelType = "html", d.label = `<span id="L-${o}" class="edgeLabel L-${l}' L-${c}" style="${d.labelStyle}">${s.text.replace(
671
+ /fa[blrs]?:fa-[\w-]+/g,
672
+ (h) => `<i class='${h.replace(":", " ")}'></i>`
673
+ )}</span>`) : (d.labelType = "text", d.label = s.text.replace(tt.lineBreakRegex, `
674
+ `), s.style === void 0 && (d.style = d.style || "stroke: #333; stroke-width: 1.5px;fill:none"), d.labelStyle = d.labelStyle.replace("color:", "fill:"))), d.id = o, d.class = l + " " + c, d.minlen = s.length || 1, e.setEdge(t.db.lookUpDomId(s.start), t.db.lookUpDomId(s.end), d, a);
675
+ });
676
+ }, xe = function(r, e) {
677
+ return U.info("Extracting classes"), e.db.getClasses();
678
+ }, ve = function(r, e, t, a) {
679
+ U.info("Drawing flowchart");
680
+ const { securityLevel: n, flowchart: i } = H();
681
+ let s;
682
+ n === "sandbox" && (s = w("#i" + e));
683
+ const o = n === "sandbox" ? w(s.nodes()[0].contentDocument.body) : w("body"), l = n === "sandbox" ? s.nodes()[0].contentDocument : document;
684
+ let c = a.db.getDirection();
685
+ c === void 0 && (c = "TD");
686
+ const d = i.nodeSpacing || 50, g = i.rankSpacing || 50, f = new kt({
687
+ multigraph: !0,
688
+ compound: !0
689
+ }).setGraph({
690
+ rankdir: c,
691
+ nodesep: d,
692
+ ranksep: g,
693
+ marginx: 8,
694
+ marginy: 8
695
+ }).setDefaultEdgeLabel(function() {
696
+ return {};
697
+ });
698
+ let h;
699
+ const p = a.db.getSubGraphs();
700
+ for (let y = p.length - 1; y >= 0; y--)
701
+ h = p[y], a.db.addVertex(h.id, h.title, "group", void 0, h.classes);
702
+ const u = a.db.getVertices();
703
+ U.warn("Get vertices", u);
704
+ const x = a.db.getEdges();
705
+ let v = 0;
706
+ for (v = p.length - 1; v >= 0; v--) {
707
+ h = p[v], Mt("cluster").append("text");
708
+ for (let y = 0; y < h.nodes.length; y++)
709
+ U.warn(
710
+ "Setting subgraph",
711
+ h.nodes[y],
712
+ a.db.lookUpDomId(h.nodes[y]),
713
+ a.db.lookUpDomId(h.id)
714
+ ), f.setParent(a.db.lookUpDomId(h.nodes[y]), a.db.lookUpDomId(h.id));
715
+ }
716
+ wt(u, f, e, o, l, a), bt(x, f, a);
717
+ const S = new le();
718
+ ge.addToRender(S), S.arrows().none = function(y, b, L, m) {
719
+ const M = y.append("marker").attr("id", b).attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerUnits", "strokeWidth").attr("markerWidth", 8).attr("markerHeight", 6).attr("orient", "auto").append("path").attr("d", "M 0 0 L 0 0 L 0 0 z");
720
+ T(M, L[m + "Style"]);
721
+ }, S.arrows().normal = function(y, b) {
722
+ y.append("marker").attr("id", b).attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerUnits", "strokeWidth").attr("markerWidth", 8).attr("markerHeight", 6).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowheadPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
723
+ };
724
+ const A = o.select(`[id="${e}"]`), B = o.select("#" + e + " g");
725
+ for (S(B, f), B.selectAll("g.node").attr("title", function() {
726
+ return a.db.getTooltip(this.id);
727
+ }), a.db.indexNodes("subGraph" + v), v = 0; v < p.length; v++)
728
+ if (h = p[v], h.title !== "undefined") {
729
+ const y = l.querySelectorAll(
730
+ "#" + e + ' [id="' + a.db.lookUpDomId(h.id) + '"] rect'
731
+ ), b = l.querySelectorAll(
732
+ "#" + e + ' [id="' + a.db.lookUpDomId(h.id) + '"]'
733
+ ), L = y[0].x.baseVal.value, m = y[0].y.baseVal.value, M = y[0].width.baseVal.value, $ = w(b[0]).select(".label");
734
+ $.attr("transform", `translate(${L + M / 2}, ${m + 14})`), $.attr("id", e + "Text");
735
+ for (let N = 0; N < h.classes.length; N++)
736
+ b[0].classList.add(h.classes[N]);
737
+ }
738
+ if (!i.htmlLabels) {
739
+ const y = l.querySelectorAll('[id="' + e + '"] .edgeLabel .label');
740
+ for (const b of y) {
741
+ const L = b.getBBox(), m = l.createElementNS("http://www.w3.org/2000/svg", "rect");
742
+ m.setAttribute("rx", 0), m.setAttribute("ry", 0), m.setAttribute("width", L.width), m.setAttribute("height", L.height), b.insertBefore(m, b.firstChild);
743
+ }
744
+ }
745
+ St(f, A, i.diagramPadding, i.useMaxWidth), Object.keys(u).forEach(function(y) {
746
+ const b = u[y];
747
+ if (b.link) {
748
+ const L = o.select("#" + e + ' [id="' + a.db.lookUpDomId(y) + '"]');
749
+ if (L) {
750
+ const m = l.createElementNS("http://www.w3.org/2000/svg", "a");
751
+ m.setAttributeNS("http://www.w3.org/2000/svg", "class", b.classes.join(" ")), m.setAttributeNS("http://www.w3.org/2000/svg", "href", b.link), m.setAttributeNS("http://www.w3.org/2000/svg", "rel", "noopener"), n === "sandbox" ? m.setAttributeNS("http://www.w3.org/2000/svg", "target", "_top") : b.linkTarget && m.setAttributeNS("http://www.w3.org/2000/svg", "target", b.linkTarget);
752
+ const M = L.insert(function() {
753
+ return m;
754
+ }, ":first-child"), $ = L.select(".label-container");
755
+ $ && M.append(function() {
756
+ return $.node();
757
+ });
758
+ const N = L.select(".label");
759
+ N && M.append(function() {
760
+ return N.node();
761
+ });
762
+ }
763
+ }
764
+ });
765
+ }, we = {
766
+ setConf: ye,
767
+ addVertices: wt,
768
+ addEdges: bt,
769
+ getClasses: xe,
770
+ draw: ve
771
+ }, Ae = {
772
+ parser: mt,
773
+ db: W,
774
+ renderer: Tt,
775
+ styles: Et,
776
+ init: (r) => {
777
+ r.flowchart || (r.flowchart = {}), r.flowchart.arrowMarkerAbsolute = r.arrowMarkerAbsolute, we.setConf(r.flowchart), W.clear(), W.setGen("gen-1");
778
+ }
779
+ };
780
+ export {
781
+ Ae as diagram
782
+ };