@kong-ui-public/documentation 1.4.31 → 1.4.32-pr.2694.d983d66d0.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 (163) hide show
  1. package/package.json +2 -2
  2. package/dist/_basePickBy-BCsiP0lE-DJBdvZNn.js +0 -151
  3. package/dist/_baseUniq-CsvgMmt0-CCBG5z_B.js +0 -614
  4. package/dist/arc-DYb5Ak6k-js8YHzj6.js +0 -83
  5. package/dist/architecture-U656AL7Q-LZu-yAfZ-CQD6AyxA.js +0 -5
  6. package/dist/architectureDiagram-KFL7JDKH-BK_an8l5-D20M_MXF.js +0 -4665
  7. package/dist/astro-Uf8_VxKJ-CZxoSljj.js +0 -16
  8. package/dist/blockDiagram-ZYB65J3Q-C0KtqCEe-pwEm3-ie.js +0 -2265
  9. package/dist/c-DASdrs7p-DASdrs7p.js +0 -6
  10. package/dist/c4Diagram-AAMF2YG6-DYHWlrmc-C6NWDsTV.js +0 -1581
  11. package/dist/channel-3QVQMCTA-BwyrTaJi.js +0 -5
  12. package/dist/chunk-ANTBXLJU-BhR1MDfy-Bec7kb00.js +0 -9
  13. package/dist/chunk-FHKO5MBM-z_nuC8Da-Dge2Nbr5.js +0 -15
  14. package/dist/chunk-GLLZNHP4-DgwBbAOT-BUrsAxH8.js +0 -19
  15. package/dist/chunk-JBRWN2VN-CHua2TSC-BYWS19Oz.js +0 -1374
  16. package/dist/chunk-LXBSTHXV-CoED0jHL-Cc8w4JL1.js +0 -1382
  17. package/dist/chunk-NRVI72HA-DxsqT4Dt-Bo_vu9qn.js +0 -20
  18. package/dist/chunk-OMD6QJNC-_VI6zVGr-Bb4P7zNG.js +0 -64
  19. package/dist/chunk-WVR4S24B-C4HIWky3-CkJ0DHSJ.js +0 -8
  20. package/dist/classDiagram-3BZAVTQC-DrmNjTt_-CS9fxl_R.js +0 -16
  21. package/dist/classDiagram-v2-QTMF73CY-DrmNjTt_-CS9fxl_R.js +0 -16
  22. package/dist/clone-C0dvnYv6-BozdSvey.js +0 -8
  23. package/dist/csharp-CYWRhZ2R-CYWRhZ2R.js +0 -6
  24. package/dist/css-D1aVdRIU-D1aVdRIU.js +0 -6
  25. package/dist/csv-DvCncUGQ-Tno401i9.js +0 -6
  26. package/dist/cytoscape.esm-CjI2IsL8-DYIumutE.js +0 -18721
  27. package/dist/dagre-2BBEFEWP-Bh_bYuL8-Cej31YXN.js +0 -447
  28. package/dist/defaultLocale-D7EN2tov-CK6dgF7Y.js +0 -171
  29. package/dist/diagram-4IRLE6MV-34TaesxP-XfF-gcP2.js +0 -533
  30. package/dist/diagram-GUPCWM2R-Cr4-5_uX-B8mxM1Uc.js +0 -143
  31. package/dist/diagram-RP2FKANI-COpvHjzI-C-_mZxuk.js +0 -221
  32. package/dist/diff-XmNrvgM1-XmNrvgM1.js +0 -6
  33. package/dist/docker-DWH2onkn-DWH2onkn.js +0 -6
  34. package/dist/documentation.es.js +0 -7
  35. package/dist/documentation.umd.js +0 -2865
  36. package/dist/erDiagram-HZWUO2LU-Cu2MerRS-KziSgDQg.js +0 -840
  37. package/dist/flowDiagram-THRYKUMA-CfrQTB8C-BYn8LF24.js +0 -1627
  38. package/dist/ganttDiagram-WV7ZQ7D5-gkieebY_-C7YOriZ4.js +0 -2504
  39. package/dist/git-commit-BspYIY3P-VkbIfR3L.js +0 -8
  40. package/dist/git-rebase--zLBTjUa-DEW2tfKx.js +0 -8
  41. package/dist/gitGraph-F6HP7TQM-suE5ufvy-CQDQV2yP.js +0 -5
  42. package/dist/gitGraphDiagram-OJR772UL-CYA7EIoU-Bqc1qZk4.js +0 -712
  43. package/dist/go-BErP6iv1-BErP6iv1.js +0 -6
  44. package/dist/graph-B_1gOUDz-Dm6REFzZ.js +0 -247
  45. package/dist/graphql-DWpQF4JI-C-3VJmtp.js +0 -14
  46. package/dist/haml-CMN0hQaL-BV5BsZTy.js +0 -10
  47. package/dist/handlebars-Cc-7fXX5-B9YgDKzT.js +0 -14
  48. package/dist/haskell-CtlGos0K-CtlGos0K.js +0 -6
  49. package/dist/html-B0P_v3yU-BojM9zZg.js +0 -10
  50. package/dist/html-derivative-BJFFAxYV-iD6NAoKm.js +0 -8
  51. package/dist/http-Dcjm_K1m-1LFSbOE1.js +0 -14
  52. package/dist/index-BDD0CD9m.js +0 -37385
  53. package/dist/info-NVLQJR56-CdsHk-Jf-tf8zb8tD.js +0 -5
  54. package/dist/infoDiagram-6WOFNB3A-ajp3t5Lm-D80dGo5F.js +0 -24
  55. package/dist/ini-BUcvsX-U-BUcvsX-U.js +0 -6
  56. package/dist/init-DjUOC4st-C8Nwz6AJ.js +0 -16
  57. package/dist/java-B7odJ7Ap-B7odJ7Ap.js +0 -6
  58. package/dist/javascript-fa8UlHZE-fa8UlHZE.js +0 -6
  59. package/dist/journeyDiagram-FFXJYRFH-kgCEEPLo-CakI8CyJ.js +0 -834
  60. package/dist/json-71t8ZF9g-71t8ZF9g.js +0 -6
  61. package/dist/json5-Z7F6rA6a-Z7F6rA6a.js +0 -6
  62. package/dist/jsonc-Dphhs4m2-Dphhs4m2.js +0 -6
  63. package/dist/jsonl-D9jj92Gg-D9jj92Gg.js +0 -6
  64. package/dist/jsx-Bkesy5tT-Bkesy5tT.js +0 -6
  65. package/dist/kanban-definition-KOZQBZVT-CmM4CHe6-rjuufCiO.js +0 -720
  66. package/dist/katex-C0Lgw_Sx-CbX2I1cQ.js +0 -11687
  67. package/dist/kotlin-DCgZY7Ii-DCgZY7Ii.js +0 -6
  68. package/dist/latex-CZXk8SiZ-DbjDPp_f.js +0 -11
  69. package/dist/layout-9vIfpCf3-FfABA43y.js +0 -1321
  70. package/dist/less-DQA4v-Nm-DQA4v-Nm.js +0 -6
  71. package/dist/linear-C-k9vokG-Md9dfBfB.js +0 -259
  72. package/dist/liquid-CvufO3kO-D90bBAdm.js +0 -14
  73. package/dist/lua-BVfhNLDr-DAa90qLN.js +0 -8
  74. package/dist/make-BjuHP00g-BjuHP00g.js +0 -6
  75. package/dist/markdown-B6guhLWd-B6guhLWd.js +0 -6
  76. package/dist/material-theme-lighter-BUBw43Yz-BUBw43Yz.js +0 -4
  77. package/dist/material-theme-palenight-C1RVm8K1-C1RVm8K1.js +0 -4
  78. package/dist/mdc-Bq810vct-Dr8CpN8f.js +0 -12
  79. package/dist/mdx-DIoECIFU-DIoECIFU.js +0 -6
  80. package/dist/mermaid-BZ7WHNIe-BZ7WHNIe.js +0 -6
  81. package/dist/mermaid-parser.core-DHL9WXVx-DeKF3RZx.js +0 -12890
  82. package/dist/mindmap-definition-LNHGMQRG-BsypuFYj-DSVrvuog.js +0 -3231
  83. package/dist/nginx-Can2eAjw-DKMoypYC.js +0 -8
  84. package/dist/objective-c-BGg9R27G-BGg9R27G.js +0 -6
  85. package/dist/ordinal-DfAQgscy-BEJTu10r.js +0 -61
  86. package/dist/packet-BFZMPI3H-BcK9kJ-B-BxxCPBGn.js +0 -5
  87. package/dist/pascal-l2bqd7Dz-l2bqd7Dz.js +0 -6
  88. package/dist/perl-DaMQyPwp-Cxx4wmV7.js +0 -16
  89. package/dist/php-BL3EfPBi-BZu5YwDX.js +0 -18
  90. package/dist/pie-7BOR55EZ-Vt5px0F3-BM7egbMh.js +0 -5
  91. package/dist/pieDiagram-DBDJKBY4-Bam6gKTi-BOqYeC6c.js +0 -161
  92. package/dist/plsql-oVq_K_wH-oVq_K_wH.js +0 -6
  93. package/dist/postcss-BZ3MNRIJ-BZ3MNRIJ.js +0 -6
  94. package/dist/powershell-Diwyv8Eh-Diwyv8Eh.js +0 -6
  95. package/dist/proto-o9HLmF90-o9HLmF90.js +0 -6
  96. package/dist/pug-HKe4Luo3-BYb0El_4.js +0 -12
  97. package/dist/python-xYxLFJY--xYxLFJY-.js +0 -6
  98. package/dist/quadrantDiagram-YPSRARAO-CJwMw09m-CN2OO-Le.js +0 -1024
  99. package/dist/r-F-9I-ITZ-F-9I-ITZ.js +0 -6
  100. package/dist/radar-NHE76QYJ-Br11XWE4-4RP4MPFA.js +0 -5
  101. package/dist/reg-CMUdAgIP-CMUdAgIP.js +0 -6
  102. package/dist/requirementDiagram-EGVEC5DT-DkRytT0X-C2zigskn.js +0 -850
  103. package/dist/rst-B8JEEtLI-Dyxh6LOj.js +0 -22
  104. package/dist/ruby-FDlfLkNa-nf7VLvCK.js +0 -50
  105. package/dist/rust-Pc7DCsZD-Pc7DCsZD.js +0 -6
  106. package/dist/sankeyDiagram-HRAUVNP4-08s1UHMk-2j8idkNs.js +0 -810
  107. package/dist/sass-iCyS6eP9-iCyS6eP9.js +0 -6
  108. package/dist/scss-DhHc4lxB-D1lMETuy.js +0 -8
  109. package/dist/sequenceDiagram-WFGC7UMF-6_s7-CN7-D-oTpLFJ.js +0 -2283
  110. package/dist/shellscript-Dn0-btNd-Dn0-btNd.js +0 -6
  111. package/dist/shellsession-8OLo3sB6-DD6AdPYk.js +0 -8
  112. package/dist/splunk-CTqDjQdo-CTqDjQdo.js +0 -6
  113. package/dist/sql-DCkt643--DCkt643-.js +0 -6
  114. package/dist/ssh-config-DHHGll-v-DHHGll-v.js +0 -6
  115. package/dist/stateDiagram-UUKSUZ4H-eWajY90l-BlM614AN.js +0 -263
  116. package/dist/stateDiagram-v2-EYPG3UTE-Dh7Ngu1O-YVMiocHE.js +0 -16
  117. package/dist/style.css +0 -1
  118. package/dist/stylus-n_9f0QQ5-n_9f0QQ5.js +0 -6
  119. package/dist/svelte-01qw6Rxm-Cjp5Srko.js +0 -14
  120. package/dist/swift-BAWqNR8A-BAWqNR8A.js +0 -6
  121. package/dist/timeline-definition-3HZDQTIS-4TPEOhE8-fDDLVlO8.js +0 -799
  122. package/dist/toml-CQSfOn0e-CQSfOn0e.js +0 -6
  123. package/dist/treemap-KMMF4GRG-nu7WEuPi-C1YG24W8.js +0 -5
  124. package/dist/tsx-DiGsgWT8-DiGsgWT8.js +0 -6
  125. package/dist/twig-DxrNSc26-BIWbKTFO.js +0 -18
  126. package/dist/types/components/DiscardChangesPrompt.vue.d.ts +0 -35
  127. package/dist/types/components/DiscardChangesPrompt.vue.d.ts.map +0 -1
  128. package/dist/types/components/DocumentationContent.vue.d.ts +0 -175
  129. package/dist/types/components/DocumentationContent.vue.d.ts.map +0 -1
  130. package/dist/types/components/DocumentationDisplay.vue.d.ts +0 -94
  131. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +0 -1
  132. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +0 -31
  133. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +0 -1
  134. package/dist/types/components/ProductDocumentModal.vue.d.ts +0 -72
  135. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +0 -1
  136. package/dist/types/composables/index.d.ts +0 -6
  137. package/dist/types/composables/index.d.ts.map +0 -1
  138. package/dist/types/composables/useI18n.d.ts +0 -9
  139. package/dist/types/composables/useI18n.d.ts.map +0 -1
  140. package/dist/types/external-links.d.ts +0 -5
  141. package/dist/types/external-links.d.ts.map +0 -1
  142. package/dist/types/helpers.d.ts +0 -8
  143. package/dist/types/helpers.d.ts.map +0 -1
  144. package/dist/types/index.d.ts +0 -7
  145. package/dist/types/index.d.ts.map +0 -1
  146. package/dist/types/types/document-list.d.ts +0 -28
  147. package/dist/types/types/document-list.d.ts.map +0 -1
  148. package/dist/types/types/document-modal.d.ts +0 -8
  149. package/dist/types/types/document-modal.d.ts.map +0 -1
  150. package/dist/types/types/index.d.ts +0 -3
  151. package/dist/types/types/index.d.ts.map +0 -1
  152. package/dist/typescript-buWNZFwO-buWNZFwO.js +0 -6
  153. package/dist/v-wa8Orrdd-wa8Orrdd.js +0 -6
  154. package/dist/vb-E2_-jk4M-E2_-jk4M.js +0 -6
  155. package/dist/viml-B-zWOd7Z-B-zWOd7Z.js +0 -6
  156. package/dist/vue-DdqTpW8B-BrYVXV7A.js +0 -31
  157. package/dist/vue-html-B9t4RWro-D1UeMTSX.js +0 -10
  158. package/dist/wasm-Bv5f0gKv-Bv5f0gKv.js +0 -6
  159. package/dist/wgsl-DnPoPGDU-DnPoPGDU.js +0 -6
  160. package/dist/xml-ChBsf5uy-0Ovnixsj.js +0 -8
  161. package/dist/xsl-BefjlXrd-CZ7IlB9K.js +0 -8
  162. package/dist/xychartDiagram-FDP5SA34-BbtKlU7T-D1BI5nWs.js +0 -1340
  163. package/dist/yaml-Bbg74JKr-Bbg74JKr.js +0 -6
@@ -1,447 +0,0 @@
1
- import { _ as v, m as L, c as M, a as j, b as F, l as t, g as Y, u as _, s as H, i as $, d as q, e as z, p as D, f as K, h as Q, j as U } from "./index-BDD0CD9m.js";
2
- import { L as k } from "./graph-B_1gOUDz-Dm6REFzZ.js";
3
- import { o as V } from "./layout-9vIfpCf3-FfABA43y.js";
4
- import { E as S } from "./_baseUniq-CsvgMmt0-CCBG5z_B.js";
5
- import { a as W } from "./clone-C0dvnYv6-BozdSvey.js";
6
- import { g as G } from "./_basePickBy-BCsiP0lE-DJBdvZNn.js";
7
- function X(e) {
8
- var n = {
9
- options: {
10
- directed: e.isDirected(),
11
- multigraph: e.isMultigraph(),
12
- compound: e.isCompound()
13
- },
14
- nodes: Z(e),
15
- edges: ee(e)
16
- };
17
- return S(e.graph()) || (n.value = W(e.graph())), n;
18
- }
19
- function Z(e) {
20
- return G(e.nodes(), function(n) {
21
- var r = e.node(n), s = e.parent(n), d = { v: n };
22
- return S(r) || (d.value = r), S(s) || (d.parent = s), d;
23
- });
24
- }
25
- function ee(e) {
26
- return G(e.edges(), function(n) {
27
- var r = e.edge(n), s = { v: n.v, w: n.w };
28
- return S(n.name) || (s.name = n.name), S(r) || (s.value = r), s;
29
- });
30
- }
31
- var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), ne = /* @__PURE__ */ v(() => {
32
- N.clear(), B.clear(), u.clear();
33
- }, "clear"), I = /* @__PURE__ */ v((e, n) => {
34
- const r = N.get(n) || [];
35
- return t.trace("In isDescendant", n, " ", e, " = ", r.includes(e)), r.includes(e);
36
- }, "isDescendant"), re = /* @__PURE__ */ v((e, n) => {
37
- const r = N.get(n) || [];
38
- return t.info("Descendants of ", n, " is ", r), t.info("Edge is ", e), e.v === n || e.w === n ? !1 : r ? r.includes(e.v) || I(e.v, n) || I(e.w, n) || r.includes(e.w) : (t.debug("Tilt, ", n, ",not in descendants"), !1);
39
- }, "edgeInCluster"), J = /* @__PURE__ */ v((e, n, r, s) => {
40
- t.warn(
41
- "Copying children of ",
42
- e,
43
- "root",
44
- s,
45
- "data",
46
- n.node(e),
47
- s
48
- );
49
- const d = n.children(e) || [];
50
- e !== s && d.push(e), t.warn("Copying (nodes) clusterId", e, "nodes", d), d.forEach((c) => {
51
- if (n.children(c).length > 0)
52
- J(c, n, r, s);
53
- else {
54
- const a = n.node(c);
55
- t.info("cp ", c, " to ", s, " with parent ", e), r.setNode(c, a), s !== n.parent(c) && (t.warn("Setting parent", c, n.parent(c)), r.setParent(c, n.parent(c))), e !== s && c !== e ? (t.debug("Setting parent", c, e), r.setParent(c, e)) : (t.info("In copy ", e, "root", s, "data", n.node(e), s), t.debug(
56
- "Not Setting parent for node=",
57
- c,
58
- "cluster!==rootId",
59
- e !== s,
60
- "node!==clusterId",
61
- c !== e
62
- ));
63
- const l = n.edges(c);
64
- t.debug("Copying Edges", l), l.forEach((f) => {
65
- t.info("Edge", f);
66
- const E = n.edge(f.v, f.w, f.name);
67
- t.info("Edge data", E, s);
68
- try {
69
- re(f, s) ? (t.info("Copying as ", f.v, f.w, E, f.name), r.setEdge(f.v, f.w, E, f.name), t.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : t.info(
70
- "Skipping copy of edge ",
71
- f.v,
72
- "-->",
73
- f.w,
74
- " rootId: ",
75
- s,
76
- " clusterId:",
77
- e
78
- );
79
- } catch (C) {
80
- t.error(C);
81
- }
82
- });
83
- }
84
- t.debug("Removing node", c), n.removeNode(c);
85
- });
86
- }, "copy"), P = /* @__PURE__ */ v((e, n) => {
87
- const r = n.children(e);
88
- let s = [...r];
89
- for (const d of r)
90
- B.set(d, e), s = [...s, ...P(d, n)];
91
- return s;
92
- }, "extractDescendants"), te = /* @__PURE__ */ v((e, n, r) => {
93
- const s = e.edges().filter((l) => l.v === n || l.w === n), d = e.edges().filter((l) => l.v === r || l.w === r), c = s.map((l) => ({ v: l.v === n ? r : l.v, w: l.w === n ? n : l.w })), a = d.map((l) => ({ v: l.v, w: l.w }));
94
- return c.filter((l) => a.some((f) => l.v === f.v && l.w === f.w));
95
- }, "findCommonEdges"), x = /* @__PURE__ */ v((e, n, r) => {
96
- const s = n.children(e);
97
- if (t.trace("Searching children of id ", e, s), s.length < 1)
98
- return e;
99
- let d;
100
- for (const c of s) {
101
- const a = x(c, n, r), l = te(n, r, a);
102
- if (a)
103
- if (l.length > 0)
104
- d = a;
105
- else
106
- return a;
107
- }
108
- return d;
109
- }, "findNonClusterChild"), O = /* @__PURE__ */ v((e) => !u.has(e) || !u.get(e).externalConnections ? e : u.has(e) ? u.get(e).id : e, "getAnchorId"), ie = /* @__PURE__ */ v((e, n) => {
110
- if (!e || n > 10) {
111
- t.debug("Opting out, no graph ");
112
- return;
113
- } else
114
- t.debug("Opting in, graph ");
115
- e.nodes().forEach(function(r) {
116
- e.children(r).length > 0 && (t.warn(
117
- "Cluster identified",
118
- r,
119
- " Replacement id in edges: ",
120
- x(r, e, r)
121
- ), N.set(r, P(r, e)), u.set(r, { id: x(r, e, r), clusterData: e.node(r) }));
122
- }), e.nodes().forEach(function(r) {
123
- const s = e.children(r), d = e.edges();
124
- s.length > 0 ? (t.debug("Cluster identified", r, N), d.forEach((c) => {
125
- const a = I(c.v, r), l = I(c.w, r);
126
- a ^ l && (t.warn("Edge: ", c, " leaves cluster ", r), t.warn("Descendants of XXX ", r, ": ", N.get(r)), u.get(r).externalConnections = !0);
127
- })) : t.debug("Not a cluster ", r, N);
128
- });
129
- for (let r of u.keys()) {
130
- const s = u.get(r).id, d = e.parent(s);
131
- d !== r && u.has(d) && !u.get(d).externalConnections && (u.get(r).id = d);
132
- }
133
- e.edges().forEach(function(r) {
134
- const s = e.edge(r);
135
- t.warn("Edge " + r.v + " -> " + r.w + ": " + JSON.stringify(r)), t.warn("Edge " + r.v + " -> " + r.w + ": " + JSON.stringify(e.edge(r)));
136
- let d = r.v, c = r.w;
137
- if (t.warn(
138
- "Fix XXX",
139
- u,
140
- "ids:",
141
- r.v,
142
- r.w,
143
- "Translating: ",
144
- u.get(r.v),
145
- " --- ",
146
- u.get(r.w)
147
- ), u.get(r.v) || u.get(r.w)) {
148
- if (t.warn("Fixing and trying - removing XXX", r.v, r.w, r.name), d = O(r.v), c = O(r.w), e.removeEdge(r.v, r.w, r.name), d !== r.v) {
149
- const a = e.parent(d);
150
- u.get(a).externalConnections = !0, s.fromCluster = r.v;
151
- }
152
- if (c !== r.w) {
153
- const a = e.parent(c);
154
- u.get(a).externalConnections = !0, s.toCluster = r.w;
155
- }
156
- t.warn("Fix Replacing with XXX", d, c, r.name), e.setEdge(d, c, s, r.name);
157
- }
158
- }), t.warn("Adjusted Graph", X(e)), T(e, 0), t.trace(u);
159
- }, "adjustClustersAndEdges"), T = /* @__PURE__ */ v((e, n) => {
160
- var r, s;
161
- if (t.warn("extractor - ", n, X(e), e.children("D")), n > 10) {
162
- t.error("Bailing out");
163
- return;
164
- }
165
- let d = e.nodes(), c = !1;
166
- for (const a of d) {
167
- const l = e.children(a);
168
- c = c || l.length > 0;
169
- }
170
- if (!c) {
171
- t.debug("Done, no node has children", e.nodes());
172
- return;
173
- }
174
- t.debug("Nodes = ", d, n);
175
- for (const a of d)
176
- if (t.debug(
177
- "Extracting node",
178
- a,
179
- u,
180
- u.has(a) && !u.get(a).externalConnections,
181
- !e.parent(a),
182
- e.node(a),
183
- e.children("D"),
184
- " Depth ",
185
- n
186
- ), !u.has(a))
187
- t.debug("Not a cluster", a, n);
188
- else if (!u.get(a).externalConnections && e.children(a) && e.children(a).length > 0) {
189
- t.warn(
190
- "Cluster without external connections, without a parent and with children",
191
- a,
192
- n
193
- );
194
- let l = e.graph().rankdir === "TB" ? "LR" : "TB";
195
- (s = (r = u.get(a)) == null ? void 0 : r.clusterData) != null && s.dir && (l = u.get(a).clusterData.dir, t.warn("Fixing dir", u.get(a).clusterData.dir, l));
196
- const f = new k({
197
- multigraph: !0,
198
- compound: !0
199
- }).setGraph({
200
- rankdir: l,
201
- nodesep: 50,
202
- ranksep: 50,
203
- marginx: 8,
204
- marginy: 8
205
- }).setDefaultEdgeLabel(function() {
206
- return {};
207
- });
208
- t.warn("Old graph before copy", X(e)), J(a, e, f, a), e.setNode(a, {
209
- clusterNode: !0,
210
- id: a,
211
- clusterData: u.get(a).clusterData,
212
- label: u.get(a).label,
213
- graph: f
214
- }), t.warn("New graph after copy node: (", a, ")", X(f)), t.debug("Old graph after copy", X(e));
215
- } else
216
- t.warn(
217
- "Cluster ** ",
218
- a,
219
- " **not meeting the criteria !externalConnections:",
220
- !u.get(a).externalConnections,
221
- " no parent: ",
222
- !e.parent(a),
223
- " children ",
224
- e.children(a) && e.children(a).length > 0,
225
- e.children("D"),
226
- n
227
- ), t.debug(u);
228
- d = e.nodes(), t.warn("New list of nodes", d);
229
- for (const a of d) {
230
- const l = e.node(a);
231
- t.warn(" Now next level", a, l), l != null && l.clusterNode && T(l.graph, n + 1);
232
- }
233
- }, "extractor"), A = /* @__PURE__ */ v((e, n) => {
234
- if (n.length === 0)
235
- return [];
236
- let r = Object.assign([], n);
237
- return n.forEach((s) => {
238
- const d = e.children(s), c = A(e, d);
239
- r = [...r, ...c];
240
- }), r;
241
- }, "sorter"), ae = /* @__PURE__ */ v((e) => A(e, e.children()), "sortNodesByHierarchy"), R = /* @__PURE__ */ v(async (e, n, r, s, d, c) => {
242
- t.warn("Graph in recursive render:XAX", X(n), d);
243
- const a = n.graph().rankdir;
244
- t.trace("Dir in recursive render - dir:", a);
245
- const l = e.insert("g").attr("class", "root");
246
- n.nodes() ? t.info("Recursive render XXX", n.nodes()) : t.info("No nodes found for", n), n.edges().length > 0 && t.info("Recursive edges", n.edge(n.edges()[0]));
247
- const f = l.insert("g").attr("class", "clusters"), E = l.insert("g").attr("class", "edgePaths"), C = l.insert("g").attr("class", "edgeLabels"), p = l.insert("g").attr("class", "nodes");
248
- await Promise.all(
249
- n.nodes().map(async function(g) {
250
- const o = n.node(g);
251
- if (d !== void 0) {
252
- const i = JSON.parse(JSON.stringify(d.clusterData));
253
- t.trace(
254
- `Setting data for parent cluster XXX
255
- Node.id = `,
256
- g,
257
- `
258
- data=`,
259
- i.height,
260
- `
261
- Parent cluster`,
262
- d.height
263
- ), n.setNode(d.id, i), n.parent(g) || (t.trace("Setting parent", g, d.id), n.setParent(g, d.id, i));
264
- }
265
- if (t.info("(Insert) Node XXX" + g + ": " + JSON.stringify(n.node(g))), o != null && o.clusterNode) {
266
- t.info("Cluster identified XBX", g, o.width, n.node(g));
267
- const { ranksep: i, nodesep: w } = n.graph();
268
- o.graph.setGraph({
269
- ...o.graph.graph(),
270
- ranksep: i + 25,
271
- nodesep: w
272
- });
273
- const m = await R(
274
- p,
275
- o.graph,
276
- r,
277
- s,
278
- n.node(g),
279
- c
280
- ), b = m.elem;
281
- _(o, b), o.diff = m.diff || 0, t.info(
282
- "New compound node after recursive render XAX",
283
- g,
284
- "width",
285
- // node,
286
- o.width,
287
- "height",
288
- o.height
289
- // node.x,
290
- // node.y
291
- ), H(b, o);
292
- } else
293
- n.children(g).length > 0 ? (t.trace(
294
- "Cluster - the non recursive path XBX",
295
- g,
296
- o.id,
297
- o,
298
- o.width,
299
- "Graph:",
300
- n
301
- ), t.trace(x(o.id, n)), u.set(o.id, { id: x(o.id, n), node: o })) : (t.trace("Node - the non recursive path XAX", g, p, n.node(g), a), await $(p, n.node(g), { config: c, dir: a }));
302
- })
303
- ), await (/* @__PURE__ */ v(async () => {
304
- const g = n.edges().map(async function(o) {
305
- const i = n.edge(o.v, o.w, o.name);
306
- t.info("Edge " + o.v + " -> " + o.w + ": " + JSON.stringify(o)), t.info("Edge " + o.v + " -> " + o.w + ": ", o, " ", JSON.stringify(n.edge(o))), t.info(
307
- "Fix",
308
- u,
309
- "ids:",
310
- o.v,
311
- o.w,
312
- "Translating: ",
313
- u.get(o.v),
314
- u.get(o.w)
315
- ), await q(C, i);
316
- });
317
- await Promise.all(g);
318
- }, "processEdges"))(), t.info("Graph before layout:", JSON.stringify(X(n))), t.info("############################################# XXX"), t.info("### Layout ### XXX"), t.info("############################################# XXX"), V(n), t.info("Graph after layout:", JSON.stringify(X(n)));
319
- let h = 0, { subGraphTitleTotalMargin: y } = z(c);
320
- return await Promise.all(
321
- ae(n).map(async function(g) {
322
- var o;
323
- const i = n.node(g);
324
- if (t.info(
325
- "Position XBX => " + g + ": (" + i.x,
326
- "," + i.y,
327
- ") width: ",
328
- i.width,
329
- " height: ",
330
- i.height
331
- ), i != null && i.clusterNode)
332
- i.y += y, t.info(
333
- "A tainted cluster node XBX1",
334
- g,
335
- i.id,
336
- i.width,
337
- i.height,
338
- i.x,
339
- i.y,
340
- n.parent(g)
341
- ), u.get(i.id).node = i, D(i);
342
- else if (n.children(g).length > 0) {
343
- t.info(
344
- "A pure cluster node XBX1",
345
- g,
346
- i.id,
347
- i.x,
348
- i.y,
349
- i.width,
350
- i.height,
351
- n.parent(g)
352
- ), i.height += y, n.node(i.parentId);
353
- const w = (i == null ? void 0 : i.padding) / 2 || 0, m = ((o = i == null ? void 0 : i.labelBBox) == null ? void 0 : o.height) || 0, b = m - w || 0;
354
- t.debug("OffsetY", b, "labelHeight", m, "halfPadding", w), await K(f, i), u.get(i.id).node = i;
355
- } else {
356
- const w = n.node(i.parentId);
357
- i.y += y / 2, t.info(
358
- "A regular node XBX1 - using the padding",
359
- i.id,
360
- "parent",
361
- i.parentId,
362
- i.width,
363
- i.height,
364
- i.x,
365
- i.y,
366
- "offsetY",
367
- i.offsetY,
368
- "parent",
369
- w,
370
- w == null ? void 0 : w.offsetY,
371
- i
372
- ), D(i);
373
- }
374
- })
375
- ), n.edges().forEach(function(g) {
376
- const o = n.edge(g);
377
- t.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(o), o), o.points.forEach((b) => b.y += y / 2);
378
- const i = n.node(g.v);
379
- var w = n.node(g.w);
380
- const m = Q(E, o, u, r, i, w, s);
381
- U(o, m);
382
- }), n.nodes().forEach(function(g) {
383
- const o = n.node(g);
384
- t.info(g, o.type, o.diff), o.isGroup && (h = o.diff);
385
- }), t.warn("Returning from recursive render XAX", l, h), { elem: l, diff: h };
386
- }, "recursiveRender"), ue = /* @__PURE__ */ v(async (e, n) => {
387
- var r, s, d, c, a, l;
388
- const f = new k({
389
- multigraph: !0,
390
- compound: !0
391
- }).setGraph({
392
- rankdir: e.direction,
393
- nodesep: ((r = e.config) == null ? void 0 : r.nodeSpacing) || ((d = (s = e.config) == null ? void 0 : s.flowchart) == null ? void 0 : d.nodeSpacing) || e.nodeSpacing,
394
- ranksep: ((c = e.config) == null ? void 0 : c.rankSpacing) || ((l = (a = e.config) == null ? void 0 : a.flowchart) == null ? void 0 : l.rankSpacing) || e.rankSpacing,
395
- marginx: 8,
396
- marginy: 8
397
- }).setDefaultEdgeLabel(function() {
398
- return {};
399
- }), E = n.select("g");
400
- L(E, e.markers, e.type, e.diagramId), M(), j(), F(), ne(), e.nodes.forEach((p) => {
401
- f.setNode(p.id, { ...p }), p.parentId && f.setParent(p.id, p.parentId);
402
- }), t.debug("Edges:", e.edges), e.edges.forEach((p) => {
403
- if (p.start === p.end) {
404
- const h = p.start, y = h + "---" + h + "---1", g = h + "---" + h + "---2", o = f.node(h);
405
- f.setNode(y, {
406
- domId: y,
407
- id: y,
408
- parentId: o.parentId,
409
- labelStyle: "",
410
- label: "",
411
- padding: 0,
412
- shape: "labelRect",
413
- // shape: 'rect',
414
- style: "",
415
- width: 10,
416
- height: 10
417
- }), f.setParent(y, o.parentId), f.setNode(g, {
418
- domId: g,
419
- id: g,
420
- parentId: o.parentId,
421
- labelStyle: "",
422
- padding: 0,
423
- // shape: 'rect',
424
- shape: "labelRect",
425
- label: "",
426
- style: "",
427
- width: 10,
428
- height: 10
429
- }), f.setParent(g, o.parentId);
430
- const i = structuredClone(p), w = structuredClone(p), m = structuredClone(p);
431
- i.label = "", i.arrowTypeEnd = "none", i.id = h + "-cyclic-special-1", w.arrowTypeStart = "none", w.arrowTypeEnd = "none", w.id = h + "-cyclic-special-mid", m.label = "", o.isGroup && (i.fromCluster = h, m.toCluster = h), m.id = h + "-cyclic-special-2", m.arrowTypeStart = "none", f.setEdge(h, y, i, h + "-cyclic-special-0"), f.setEdge(y, g, w, h + "-cyclic-special-1"), f.setEdge(g, h, m, h + "-cyc<lic-special-2");
432
- } else
433
- f.setEdge(p.start, p.end, { ...p }, p.id);
434
- }), t.warn("Graph at first:", JSON.stringify(X(f))), ie(f), t.warn("Graph after XAX:", JSON.stringify(X(f)));
435
- const C = Y();
436
- await R(
437
- E,
438
- f,
439
- e.type,
440
- e.diagramId,
441
- void 0,
442
- C
443
- );
444
- }, "render");
445
- export {
446
- ue as render
447
- };
@@ -1,171 +0,0 @@
1
- function J(t) {
2
- return Math.abs(t = Math.round(t)) >= 1e21 ? t.toLocaleString("en").replace(/,/g, "") : t.toString(10);
3
- }
4
- function N(t, i) {
5
- if ((o = (t = i ? t.toExponential(i - 1) : t.toExponential()).indexOf("e")) < 0) return null;
6
- var o, r = t.slice(0, o);
7
- return [
8
- r.length > 1 ? r[0] + r.slice(2) : r,
9
- +t.slice(o + 1)
10
- ];
11
- }
12
- function K(t) {
13
- return t = N(Math.abs(t)), t ? t[1] : NaN;
14
- }
15
- function P(t, i) {
16
- return function(o, r) {
17
- for (var n = o.length, s = [], d = 0, u = t[0], y = 0; n > 0 && u > 0 && (y + u + 1 > r && (u = Math.max(1, r - y)), s.push(o.substring(n -= u, n + u)), !((y += u + 1) > r)); )
18
- u = t[d = (d + 1) % t.length];
19
- return s.reverse().join(i);
20
- };
21
- }
22
- function Q(t) {
23
- return function(i) {
24
- return i.replace(/[0-9]/g, function(o) {
25
- return t[+o];
26
- });
27
- };
28
- }
29
- var R = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
30
- function E(t) {
31
- if (!(i = R.exec(t))) throw new Error("invalid format: " + t);
32
- var i;
33
- return new $({
34
- fill: i[1],
35
- align: i[2],
36
- sign: i[3],
37
- symbol: i[4],
38
- zero: i[5],
39
- width: i[6],
40
- comma: i[7],
41
- precision: i[8] && i[8].slice(1),
42
- trim: i[9],
43
- type: i[10]
44
- });
45
- }
46
- E.prototype = $.prototype;
47
- function $(t) {
48
- this.fill = t.fill === void 0 ? " " : t.fill + "", this.align = t.align === void 0 ? ">" : t.align + "", this.sign = t.sign === void 0 ? "-" : t.sign + "", this.symbol = t.symbol === void 0 ? "" : t.symbol + "", this.zero = !!t.zero, this.width = t.width === void 0 ? void 0 : +t.width, this.comma = !!t.comma, this.precision = t.precision === void 0 ? void 0 : +t.precision, this.trim = !!t.trim, this.type = t.type === void 0 ? "" : t.type + "";
49
- }
50
- $.prototype.toString = function() {
51
- return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
52
- };
53
- function V(t) {
54
- t: for (var i = t.length, o = 1, r = -1, n; o < i; ++o)
55
- switch (t[o]) {
56
- case ".":
57
- r = n = o;
58
- break;
59
- case "0":
60
- r === 0 && (r = o), n = o;
61
- break;
62
- default:
63
- if (!+t[o]) break t;
64
- r > 0 && (r = 0);
65
- break;
66
- }
67
- return r > 0 ? t.slice(0, r) + t.slice(n + 1) : t;
68
- }
69
- var q;
70
- function W(t, i) {
71
- var o = N(t, i);
72
- if (!o) return t + "";
73
- var r = o[0], n = o[1], s = n - (q = Math.max(-8, Math.min(8, Math.floor(n / 3))) * 3) + 1, d = r.length;
74
- return s === d ? r : s > d ? r + new Array(s - d + 1).join("0") : s > 0 ? r.slice(0, s) + "." + r.slice(s) : "0." + new Array(1 - s).join("0") + N(t, Math.max(0, i + s - 1))[0];
75
- }
76
- function O(t, i) {
77
- var o = N(t, i);
78
- if (!o) return t + "";
79
- var r = o[0], n = o[1];
80
- return n < 0 ? "0." + new Array(-n).join("0") + r : r.length > n + 1 ? r.slice(0, n + 1) + "." + r.slice(n + 1) : r + new Array(n - r.length + 2).join("0");
81
- }
82
- const T = {
83
- "%": (t, i) => (t * 100).toFixed(i),
84
- b: (t) => Math.round(t).toString(2),
85
- c: (t) => t + "",
86
- d: J,
87
- e: (t, i) => t.toExponential(i),
88
- f: (t, i) => t.toFixed(i),
89
- g: (t, i) => t.toPrecision(i),
90
- o: (t) => Math.round(t).toString(8),
91
- p: (t, i) => O(t * 100, i),
92
- r: O,
93
- s: W,
94
- X: (t) => Math.round(t).toString(16).toUpperCase(),
95
- x: (t) => Math.round(t).toString(16)
96
- };
97
- function U(t) {
98
- return t;
99
- }
100
- var Y = Array.prototype.map, Z = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
101
- function _(t) {
102
- var i = t.grouping === void 0 || t.thousands === void 0 ? U : P(Y.call(t.grouping, Number), t.thousands + ""), o = t.currency === void 0 ? "" : t.currency[0] + "", r = t.currency === void 0 ? "" : t.currency[1] + "", n = t.decimal === void 0 ? "." : t.decimal + "", s = t.numerals === void 0 ? U : Q(Y.call(t.numerals, String)), d = t.percent === void 0 ? "%" : t.percent + "", u = t.minus === void 0 ? "−" : t.minus + "", y = t.nan === void 0 ? "NaN" : t.nan + "";
103
- function C(a) {
104
- a = E(a);
105
- var M = a.fill, b = a.align, h = a.sign, w = a.symbol, v = a.zero, x = a.width, j = a.comma, g = a.precision, F = a.trim, c = a.type;
106
- c === "n" ? (j = !0, c = "g") : T[c] || (g === void 0 && (g = 12), F = !0, c = "g"), (v || M === "0" && b === "=") && (v = !0, M = "0", b = "=");
107
- var D = w === "$" ? o : w === "#" && /[boxX]/.test(c) ? "0" + c.toLowerCase() : "", H = w === "$" ? r : /[%p]/.test(c) ? d : "", L = T[c], I = /[defgprs%]/.test(c);
108
- g = g === void 0 ? 6 : /[gprs]/.test(c) ? Math.max(1, Math.min(21, g)) : Math.max(0, Math.min(20, g));
109
- function X(e) {
110
- var m = D, l = H, p, G, k;
111
- if (c === "c")
112
- l = L(e) + l, e = "";
113
- else {
114
- e = +e;
115
- var S = e < 0 || 1 / e < 0;
116
- if (e = isNaN(e) ? y : L(Math.abs(e), g), F && (e = V(e)), S && +e == 0 && h !== "+" && (S = !1), m = (S ? h === "(" ? h : u : h === "-" || h === "(" ? "" : h) + m, l = (c === "s" ? Z[8 + q / 3] : "") + l + (S && h === "(" ? ")" : ""), I) {
117
- for (p = -1, G = e.length; ++p < G; )
118
- if (k = e.charCodeAt(p), 48 > k || k > 57) {
119
- l = (k === 46 ? n + e.slice(p + 1) : e.slice(p)) + l, e = e.slice(0, p);
120
- break;
121
- }
122
- }
123
- }
124
- j && !v && (e = i(e, 1 / 0));
125
- var z = m.length + e.length + l.length, f = z < x ? new Array(x - z + 1).join(M) : "";
126
- switch (j && v && (e = i(f + e, f.length ? x - l.length : 1 / 0), f = ""), b) {
127
- case "<":
128
- e = m + e + l + f;
129
- break;
130
- case "=":
131
- e = m + f + e + l;
132
- break;
133
- case "^":
134
- e = f.slice(0, z = f.length >> 1) + m + e + l + f.slice(z);
135
- break;
136
- default:
137
- e = f + m + e + l;
138
- break;
139
- }
140
- return s(e);
141
- }
142
- return X.toString = function() {
143
- return a + "";
144
- }, X;
145
- }
146
- function B(a, M) {
147
- var b = C((a = E(a), a.type = "f", a)), h = Math.max(-8, Math.min(8, Math.floor(K(M) / 3))) * 3, w = Math.pow(10, -h), v = Z[8 + h / 3];
148
- return function(x) {
149
- return b(w * x) + v;
150
- };
151
- }
152
- return {
153
- format: C,
154
- formatPrefix: B
155
- };
156
- }
157
- var A, tt, it;
158
- et({
159
- thousands: ",",
160
- grouping: [3],
161
- currency: ["$", ""]
162
- });
163
- function et(t) {
164
- return A = _(t), tt = A.format, it = A.formatPrefix, A;
165
- }
166
- export {
167
- K as J,
168
- E as N,
169
- tt as n,
170
- it as t
171
- };