@kong-ui-public/documentation 1.8.13 → 1.8.14-pr.4048.7a10d83bb.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 (168) hide show
  1. package/package.json +2 -2
  2. package/dist/abnfDiagram-VCTEODGH-Bzbg7AHk-DFERbIEu.js +0 -92
  3. package/dist/arc-CKhg5DVn-BIpMje7c.js +0 -80
  4. package/dist/architectureDiagram-5GKGNRK7-CqHVyBRI-CLWcRmoG.js +0 -4149
  5. package/dist/astro-DdQ3Kp7Q-BDE5qFXd.js +0 -18
  6. package/dist/blockDiagram-I7D4REHJ-DWFqHR0L-D8v5LhXM.js +0 -2029
  7. package/dist/c-lfOsiBpu-DMPKLUI8.js +0 -4
  8. package/dist/c4Diagram-7LVT6UL2-DXHigzTJ-BR9440iK.js +0 -3067
  9. package/dist/catppuccin-latte-D9NPLB7Y-sAlQrrP2.js +0 -4
  10. package/dist/channel-DUDXYB-g-BsX3Acdu.js +0 -5
  11. package/dist/chunk-2Q5K7J3B-CQFXhYzi-C3CTUgHo.js +0 -12
  12. package/dist/chunk-5VM5RSS4-DF_fkndM-uFSHkP_V.js +0 -19
  13. package/dist/chunk-F27PBJKO-Bf2CKIqN-CUI4z39H.js +0 -65
  14. package/dist/chunk-IMKFNOWR-DIsz_YLV-B6u2fLNJ.js +0 -2116
  15. package/dist/chunk-JWPE2WC7-DI69CthA-D_FsPQj-.js +0 -8
  16. package/dist/chunk-POPQ4Y6H-DycI9Jzm-BWixWzlU.js +0 -24
  17. package/dist/chunk-SHT3W25Y-CKxDgOBI-OOdqZuVE.js +0 -4307
  18. package/dist/chunk-SVP7TREG-tW_qYlvV-vP5bsK2H.js +0 -500
  19. package/dist/chunk-TICWLB2K-CuiDrX3P-WR-FPNea.js +0 -3451
  20. package/dist/chunk-XXDRQBXY-CSrEKR2C-C6SaSSCC.js +0 -8
  21. package/dist/classDiagram-ZZMXUADV-WzcguFxl-CKKn1Tfx.js +0 -17
  22. package/dist/classDiagram-v2-VYDZK3BY-jdAXYY7W-CKKn1Tfx.js +0 -17
  23. package/dist/cose-bilkent-JH36ORCC-DbS7GVMv-bbQOsy5Y.js +0 -2256
  24. package/dist/csharp-RRkgh3c4-lim_vKPd.js +0 -4
  25. package/dist/css-BbwcBM_4-B_2PRTA_.js +0 -4
  26. package/dist/csv-DFU5sVkH-BPWcOTV4.js +0 -4
  27. package/dist/cynefin-OW5HDTMX-CmxQwqmf-D_GdoNIu.js +0 -21781
  28. package/dist/cynefinDiagram-5FMLGOSQ-BNb88xpJ-DfS9O7P4.js +0 -351
  29. package/dist/cytoscape.esm-YSf_2rtb-CoO8mT3p.js +0 -18279
  30. package/dist/dagre-C9xJrfGe-Di-1Ikh0.js +0 -1667
  31. package/dist/dagre-GXQ25YYZ-uiXfyLw2-PU-qeT6_.js +0 -429
  32. package/dist/defaultLocale-TbxLDlcU-BrdwcF9K.js +0 -180
  33. package/dist/diagram-S7CK7UJ4-g67BXvGR-Cp9bzjGj.js +0 -303
  34. package/dist/diagram-UQ7AKVKN-DfJJIsVs-CC7ekguS.js +0 -210
  35. package/dist/diagram-VSXAHHWV-DmtFfqWN-C9ZLHKzj.js +0 -439
  36. package/dist/diagram-VX7I27RA--gfQ90BY-QNtwG6Ck.js +0 -477
  37. package/dist/diagram-Z3DM3KII-Cu_rSHu0-CCCsIuz4.js +0 -127
  38. package/dist/diff-D_LJiFgV-DenOJuyV.js +0 -4
  39. package/dist/docker-DMpUQ2UE-xX8PDoIv.js +0 -4
  40. package/dist/documentation.es.js +0 -7
  41. package/dist/documentation.umd.js +0 -3715
  42. package/dist/ebnfDiagram-PWID7BFC-B_qfACMJ-D_Xjruh2.js +0 -109
  43. package/dist/erDiagram-RLTQ6QDP-Dt9efGmz-BPS1Iwl5.js +0 -2042
  44. package/dist/flowDiagram-HODETNUW-sAcaB3rt-Ci8x-zG0.js +0 -6
  45. package/dist/ganttDiagram-EL5Y4UJY-CtWGP-hX-qar4oLEq.js +0 -3098
  46. package/dist/git-commit--2NDNcyW-Dw9_h8sQ.js +0 -5
  47. package/dist/git-rebase-CbNvxADk-DAgBrkyL.js +0 -5
  48. package/dist/gitGraphDiagram-WWUBYQGX-B7B7IG_5-x8UcOce8.js +0 -737
  49. package/dist/go-BEdBk4fh-DqSXHrGo.js +0 -4
  50. package/dist/graphql-BMuT9GwB-BP9pcQru.js +0 -14
  51. package/dist/haml-D3QmTYiV-BTaBXoPr.js +0 -10
  52. package/dist/handlebars-C_aYHp26-CWcrQHYv.js +0 -14
  53. package/dist/haskell-DSSJ-2AO-BlmVjKNy.js +0 -4
  54. package/dist/html-derivative-DgZQ_xNe-BAs__2u-.js +0 -5
  55. package/dist/html-zcQqUZxh-Dg8OkMBp.js +0 -10
  56. package/dist/http-BGkfDG8i-lqXytFlH.js +0 -14
  57. package/dist/index-BaAWoj3P.js +0 -43522
  58. package/dist/infoDiagram-27XIBGKW-DAx9hub5-CDUrF89O.js +0 -18
  59. package/dist/ini-CmgEGOBJ-70PBzbbb.js +0 -4
  60. package/dist/init-Cgg2UTSf-BsHkAom2.js +0 -15
  61. package/dist/ishikawaDiagram-5VMMS53U-CnBB9iXH-2YyZ3Nxy.js +0 -729
  62. package/dist/java-CaG1IqbK-D6YBp1XX.js +0 -4
  63. package/dist/javascript--0qAxhnA-BRPKgr3C.js +0 -4
  64. package/dist/journeyDiagram-3NMN7TZE-B0a4pOJX-CgtsuE-Y.js +0 -909
  65. package/dist/json-DVwBUiza-D8uacQj0.js +0 -4
  66. package/dist/json5-D2Eltym1-Biib5ALh.js +0 -4
  67. package/dist/jsonc-BPIJyZ7u-BZEKkMok.js +0 -4
  68. package/dist/jsonl-BGkjXns2-BG2V-IA2.js +0 -4
  69. package/dist/jsx-cVAJ0Z2c-Cl0AMtmu.js +0 -4
  70. package/dist/kanban-definition-UXKFOSKX-BGnOZMUl-CHT2EG_7.js +0 -1029
  71. package/dist/katex-Be3DWdAP-BWcdC2Xb.js +0 -22287
  72. package/dist/kotlin-CQsNEM2o-Dy_91eL4.js +0 -4
  73. package/dist/latex-g3NZbvcl-tKQf8TuW.js +0 -5
  74. package/dist/less-9LYkHheD-tcNg8M2_.js +0 -4
  75. package/dist/linear-Cf872ac2-BjGvLlX5.js +0 -254
  76. package/dist/liquid-CG3ph2-5-wZo8nDay.js +0 -14
  77. package/dist/lua-BdA7_iyX-Fg4s9W4F.js +0 -5
  78. package/dist/make-CE9Hryyp-CrUl7LOH.js +0 -4
  79. package/dist/markdown-Gqx6-FHJ-Bcqt-5kX.js +0 -4
  80. package/dist/material-theme-darker-DL4lHZSa-DMHCIvq5.js +0 -4
  81. package/dist/mdc-C-RLGlI2-DzcUIqJQ.js +0 -12
  82. package/dist/mdx-DswfiFg4-CK6jOqmu.js +0 -4
  83. package/dist/mermaid-CAl3BhSL-CpQh0Vft.js +0 -4
  84. package/dist/mindmap-definition-YA3MSWOX-D0iYuN9C-B3uI77eT.js +0 -1026
  85. package/dist/nginx-CokYOiS8-DjML3dpY.js +0 -5
  86. package/dist/objective-c-DK-EKgyd-C809HPrX.js +0 -4
  87. package/dist/ordinal-CNzaYghg-B_JXdapq.js +0 -63
  88. package/dist/pascal-CRtegPzh-a8whuidZ.js +0 -4
  89. package/dist/pegDiagram-XKGWAZYB-6oG4KeYC-CG27veJ_.js +0 -104
  90. package/dist/perl-C45KUBhP-Q6opd9qO.js +0 -16
  91. package/dist/php-COzTb61D-DW91EkjY.js +0 -18
  92. package/dist/pieDiagram-E7YTZNPT-DsNO0m7t-CMKObJlC.js +0 -191
  93. package/dist/plsql-Bx7tup_v-BJoF2Vrf.js +0 -4
  94. package/dist/postcss-DjDdOEzv-DaHMm3XW.js +0 -4
  95. package/dist/powershell-BeUvHe6o-BC3uPZPS.js +0 -4
  96. package/dist/proto-DGLklcji-w0B_itsp.js +0 -4
  97. package/dist/pug-BQ5MM2xz-DMZvJUHt.js +0 -12
  98. package/dist/python-C_6ySqsv-D_5pfY__.js +0 -4
  99. package/dist/quadrantDiagram-AXDQQJYC-B6Dc7fje-C23uvcHP.js +0 -2046
  100. package/dist/r-CNL4a0Qi-pixge7f9.js +0 -4
  101. package/dist/railroadDiagram-O6MQD6OU-D8qLcD4O-B_Hr3s-n.js +0 -80
  102. package/dist/reg-D6txjqBF-bHAwx9Pm.js +0 -4
  103. package/dist/requirementDiagram-BXWQKSXE-Cx28BZaS-Bu-h1fa9.js +0 -2283
  104. package/dist/rst-xmthoFSf-BdN-iqJu.js +0 -20
  105. package/dist/ruby-CmwqiOyg-B5qGUHPy.js +0 -44
  106. package/dist/rust-BrRMzTsN-CaZtBt24.js +0 -4
  107. package/dist/sankeyDiagram-P5KCCOFB-CqEXebJJ-BrChTi-e.js +0 -948
  108. package/dist/sass-CL6GLiPQ-pslLeRRb.js +0 -4
  109. package/dist/scss-CiLZCexj-CladYQkr.js +0 -5
  110. package/dist/sequenceDiagram-WJ2MYXX4-Bs_1V5D1-Da6JW3KG.js +0 -4263
  111. package/dist/shellscript-Dfpezy65-BtH46UX7.js +0 -4
  112. package/dist/shellsession-CRcAC04a-BFLTslz7.js +0 -5
  113. package/dist/sizeCapture-INFHLROL-Bc4fS2u3-DMniWWy4.js +0 -46
  114. package/dist/splunk-MGILMmew-BP8P7eWt.js +0 -4
  115. package/dist/sql-D_W5grEC-Dcn2WLbD.js +0 -4
  116. package/dist/ssh-config-CFmUyPR7-BB1rrGb9.js +0 -4
  117. package/dist/stateDiagram-D77RDMKH-oTiwIYVV-BphZk0uR.js +0 -210
  118. package/dist/stateDiagram-v2-MP3YSRHH-gbAY2cmo-D78HyGx1.js +0 -17
  119. package/dist/style.css +0 -1
  120. package/dist/stylus-Kh83dApl-DAu5PNZ9.js +0 -4
  121. package/dist/svelte-HVIHTyhe-BdPJXyv7.js +0 -14
  122. package/dist/swift-B7Z-rXzN-CQtmhAMw.js +0 -4
  123. package/dist/swimlanes-42K2YHIH-BSXAPn2j-C7pTnVuk.js +0 -4983
  124. package/dist/swimlanesDiagram-VR7AAH4N-Ror_0lre-Di8OVgei.js +0 -17
  125. package/dist/timeline-definition-24CTP7MA-gOHmAY1H-aIgAzo7s.js +0 -1096
  126. package/dist/toml-CIQJnU5u-DjT9Bjqu.js +0 -4
  127. package/dist/tsx-DiMnnori-B-5hSr15.js +0 -4
  128. package/dist/twig-BXXOiPVV-CmgmU-L-.js +0 -18
  129. package/dist/types/components/DiscardChangesPrompt.vue.d.ts +0 -35
  130. package/dist/types/components/DiscardChangesPrompt.vue.d.ts.map +0 -1
  131. package/dist/types/components/DocumentationContent.vue.d.ts +0 -186
  132. package/dist/types/components/DocumentationContent.vue.d.ts.map +0 -1
  133. package/dist/types/components/DocumentationDisplay.vue.d.ts +0 -105
  134. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +0 -1
  135. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +0 -31
  136. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +0 -1
  137. package/dist/types/components/ProductDocumentModal.vue.d.ts +0 -72
  138. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +0 -1
  139. package/dist/types/composables/index.d.ts +0 -6
  140. package/dist/types/composables/index.d.ts.map +0 -1
  141. package/dist/types/composables/useI18n.d.ts +0 -9
  142. package/dist/types/composables/useI18n.d.ts.map +0 -1
  143. package/dist/types/external-links.d.ts +0 -5
  144. package/dist/types/external-links.d.ts.map +0 -1
  145. package/dist/types/helpers.d.ts +0 -8
  146. package/dist/types/helpers.d.ts.map +0 -1
  147. package/dist/types/index.d.ts +0 -7
  148. package/dist/types/index.d.ts.map +0 -1
  149. package/dist/types/types/document-list.d.ts +0 -28
  150. package/dist/types/types/document-list.d.ts.map +0 -1
  151. package/dist/types/types/document-modal.d.ts +0 -8
  152. package/dist/types/types/document-modal.d.ts.map +0 -1
  153. package/dist/types/types/index.d.ts +0 -3
  154. package/dist/types/types/index.d.ts.map +0 -1
  155. package/dist/typescript-DFf19o_s-B0ag8pir.js +0 -4
  156. package/dist/v-DbYZLS97-CAPuTPjr.js +0 -4
  157. package/dist/vb-DRaXf86R-Bx9Rwnco.js +0 -4
  158. package/dist/vennDiagram-4TSXK5OY-Cr4BWMuk-BjBvyxCC.js +0 -1911
  159. package/dist/viml-DgaHry3T-BeYQ8dZh.js +0 -4
  160. package/dist/vue-DPI5F0qT-D-Ahkoja.js +0 -22
  161. package/dist/vue-html-D7FCsiW2-DLSUNIPr.js +0 -5
  162. package/dist/wardleyDiagram-VM6X3IG4-a6H91k9Q-CsH4gQQ0.js +0 -639
  163. package/dist/wasm-DXa1gtBd-CfuK9YWP.js +0 -4
  164. package/dist/wgsl-Vcm3Lg52-C2IZ7ENh.js +0 -4
  165. package/dist/xml-DnOpIvRK-C-akVYiK.js +0 -5
  166. package/dist/xsl-K_2BlT3G-D3eRZGNO.js +0 -5
  167. package/dist/xychartDiagram-S5SC5T6Z-7mX_nPmO-CoM4SG9q.js +0 -2218
  168. package/dist/yaml-BswqmnDe-X78l_Ibz.js +0 -4
@@ -1,948 +0,0 @@
1
- import { j as xt, k as kt, n as bt, r as vt, e as Lt, t as wt, a as g, c as it, u as Et, G as tt, bk as At, b as St, $ as Mt } from "./index-BaAWoj3P.js";
2
- import { s as It } from "./ordinal-CNzaYghg-B_JXdapq.js";
3
- function $t(t) {
4
- for (var r = t.length / 6 | 0, s = Array(r), l = 0; l < r; ) s[l] = "#" + t.slice(l * 6, ++l * 6);
5
- return s;
6
- }
7
- var Pt = $t("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
8
- function ht(t, r) {
9
- let s;
10
- if (r === void 0) for (let l of t) l != null && (s < l || s === void 0 && l >= l) && (s = l);
11
- else {
12
- let l = -1;
13
- for (let h of t) (h = r(h, ++l, t)) != null && (s < h || s === void 0 && h >= h) && (s = h);
14
- }
15
- return s;
16
- }
17
- function pt(t, r) {
18
- let s;
19
- if (r === void 0) for (let l of t) l != null && (s > l || s === void 0 && l >= l) && (s = l);
20
- else {
21
- let l = -1;
22
- for (let h of t) (h = r(h, ++l, t)) != null && (s > h || s === void 0 && h >= h) && (s = h);
23
- }
24
- return s;
25
- }
26
- function et(t, r) {
27
- let s = 0;
28
- if (r === void 0) for (let l of t) (l = +l) && (s += l);
29
- else {
30
- let l = -1;
31
- for (let h of t) (h = +r(h, ++l, t)) && (s += h);
32
- }
33
- return s;
34
- }
35
- function Nt(t) {
36
- return t.target.depth;
37
- }
38
- function Ct(t) {
39
- return t.depth;
40
- }
41
- function Ot(t, r) {
42
- return r - 1 - t.height;
43
- }
44
- function _t(t, r) {
45
- return t.sourceLinks.length ? t.depth : r - 1;
46
- }
47
- function Tt(t) {
48
- return t.targetLinks.length ? t.depth : t.sourceLinks.length ? pt(t.sourceLinks, Nt) - 1 : 0;
49
- }
50
- function Q(t) {
51
- return function() {
52
- return t;
53
- };
54
- }
55
- function ut(t, r) {
56
- return K(t.source, r.source) || t.index - r.index;
57
- }
58
- function ct(t, r) {
59
- return K(t.target, r.target) || t.index - r.index;
60
- }
61
- function K(t, r) {
62
- return t.y0 - r.y0;
63
- }
64
- function nt(t) {
65
- return t.value;
66
- }
67
- function Dt(t) {
68
- return t.index;
69
- }
70
- function jt(t) {
71
- return t.nodes;
72
- }
73
- function zt(t) {
74
- return t.links;
75
- }
76
- function ft(t, r) {
77
- let s = t.get(r);
78
- if (!s) throw Error("missing: " + r);
79
- return s;
80
- }
81
- function yt({ nodes: t }) {
82
- for (let r of t) {
83
- let s = r.y0, l = s;
84
- for (let h of r.sourceLinks) h.y0 = s + h.width / 2, s += h.width;
85
- for (let h of r.targetLinks) h.y1 = l + h.width / 2, l += h.width;
86
- }
87
- }
88
- function Ft() {
89
- let t = 0, r = 0, s = 1, l = 1, h = 24, m = 8, n, f = Dt, u = _t, y, _, d = jt, A = zt, v = 6;
90
- function x() {
91
- let i = {
92
- nodes: d.apply(null, arguments),
93
- links: A.apply(null, arguments)
94
- };
95
- return $(i), I(i), T(i), C(i), S(i), yt(i), i;
96
- }
97
- x.update = function(i) {
98
- return yt(i), i;
99
- }, x.nodeId = function(i) {
100
- return arguments.length ? (f = typeof i == "function" ? i : Q(i), x) : f;
101
- }, x.nodeAlign = function(i) {
102
- return arguments.length ? (u = typeof i == "function" ? i : Q(i), x) : u;
103
- }, x.nodeSort = function(i) {
104
- return arguments.length ? (y = i, x) : y;
105
- }, x.nodeWidth = function(i) {
106
- return arguments.length ? (h = +i, x) : h;
107
- }, x.nodePadding = function(i) {
108
- return arguments.length ? (m = n = +i, x) : m;
109
- }, x.nodes = function(i) {
110
- return arguments.length ? (d = typeof i == "function" ? i : Q(i), x) : d;
111
- }, x.links = function(i) {
112
- return arguments.length ? (A = typeof i == "function" ? i : Q(i), x) : A;
113
- }, x.linkSort = function(i) {
114
- return arguments.length ? (_ = i, x) : _;
115
- }, x.size = function(i) {
116
- return arguments.length ? (t = r = 0, s = +i[0], l = +i[1], x) : [s - t, l - r];
117
- }, x.extent = function(i) {
118
- return arguments.length ? (t = +i[0][0], s = +i[1][0], r = +i[0][1], l = +i[1][1], x) : [[t, r], [s, l]];
119
- }, x.iterations = function(i) {
120
- return arguments.length ? (v = +i, x) : v;
121
- };
122
- function $({ nodes: i, links: c }) {
123
- for (let [o, a] of i.entries()) a.index = o, a.sourceLinks = [], a.targetLinks = [];
124
- let e = new Map(i.map((o, a) => [f(o, a, i), o]));
125
- for (let [o, a] of c.entries()) {
126
- a.index = o;
127
- let { source: p, target: b } = a;
128
- typeof p != "object" && (p = a.source = ft(e, p)), typeof b != "object" && (b = a.target = ft(e, b)), p.sourceLinks.push(a), b.targetLinks.push(a);
129
- }
130
- if (_ != null) for (let { sourceLinks: o, targetLinks: a } of i) o.sort(_), a.sort(_);
131
- }
132
- function I({ nodes: i }) {
133
- for (let c of i) c.value = c.fixedValue === void 0 ? Math.max(et(c.sourceLinks, nt), et(c.targetLinks, nt)) : c.fixedValue;
134
- }
135
- function T({ nodes: i }) {
136
- let c = i.length, e = new Set(i), o = /* @__PURE__ */ new Set(), a = 0;
137
- for (; e.size; ) {
138
- for (let p of e) {
139
- p.depth = a;
140
- for (let { target: b } of p.sourceLinks) o.add(b);
141
- }
142
- if (++a > c) throw Error("circular link");
143
- e = o, o = /* @__PURE__ */ new Set();
144
- }
145
- }
146
- function C({ nodes: i }) {
147
- let c = i.length, e = new Set(i), o = /* @__PURE__ */ new Set(), a = 0;
148
- for (; e.size; ) {
149
- for (let p of e) {
150
- p.height = a;
151
- for (let { source: b } of p.targetLinks) o.add(b);
152
- }
153
- if (++a > c) throw Error("circular link");
154
- e = o, o = /* @__PURE__ */ new Set();
155
- }
156
- }
157
- function P({ nodes: i }) {
158
- let c = ht(i, (a) => a.depth) + 1, e = (s - t - h) / (c - 1), o = Array(c);
159
- for (let a of i) {
160
- let p = Math.max(0, Math.min(c - 1, Math.floor(u.call(null, a, c))));
161
- a.layer = p, a.x0 = t + p * e, a.x1 = a.x0 + h, o[p] ? o[p].push(a) : o[p] = [a];
162
- }
163
- if (y) for (let a of o) a.sort(y);
164
- return o;
165
- }
166
- function k(i) {
167
- let c = pt(i, (e) => (l - r - (e.length - 1) * n) / et(e, nt));
168
- for (let e of i) {
169
- let o = r;
170
- for (let a of e) {
171
- a.y0 = o, a.y1 = o + a.value * c, o = a.y1 + n;
172
- for (let p of a.sourceLinks) p.width = p.value * c;
173
- }
174
- o = (l - o + n) / (e.length + 1);
175
- for (let a = 0; a < e.length; ++a) {
176
- let p = e[a];
177
- p.y0 += o * (a + 1), p.y1 += o * (a + 1);
178
- }
179
- F(e);
180
- }
181
- }
182
- function S(i) {
183
- let c = P(i);
184
- n = Math.min(m, (l - r) / (ht(c, (e) => e.length) - 1)), k(c);
185
- for (let e = 0; e < v; ++e) {
186
- let o = 0.99 ** e, a = Math.max(1 - o, (e + 1) / v);
187
- j(c, o, a), D(c, o, a);
188
- }
189
- }
190
- function D(i, c, e) {
191
- for (let o = 1, a = i.length; o < a; ++o) {
192
- let p = i[o];
193
- for (let b of p) {
194
- let w = 0, G = 0;
195
- for (let { source: X, value: q } of b.targetLinks) {
196
- let at = q * (b.layer - X.layer);
197
- w += M(X, b) * at, G += at;
198
- }
199
- if (!(G > 0)) continue;
200
- let V = (w / G - b.y0) * c;
201
- b.y0 += V, b.y1 += V, L(b);
202
- }
203
- y === void 0 && p.sort(K), U(p, e);
204
- }
205
- }
206
- function j(i, c, e) {
207
- for (let o = i.length - 2; o >= 0; --o) {
208
- let a = i[o];
209
- for (let p of a) {
210
- let b = 0, w = 0;
211
- for (let { target: V, value: X } of p.sourceLinks) {
212
- let q = X * (V.layer - p.layer);
213
- b += E(p, V) * q, w += q;
214
- }
215
- if (!(w > 0)) continue;
216
- let G = (b / w - p.y0) * c;
217
- p.y0 += G, p.y1 += G, L(p);
218
- }
219
- y === void 0 && a.sort(K), U(a, e);
220
- }
221
- }
222
- function U(i, c) {
223
- let e = i.length >> 1, o = i[e];
224
- z(i, o.y0 - n, e - 1, c), N(i, o.y1 + n, e + 1, c), z(i, l, i.length - 1, c), N(i, r, 0, c);
225
- }
226
- function N(i, c, e, o) {
227
- for (; e < i.length; ++e) {
228
- let a = i[e], p = (c - a.y0) * o;
229
- p > 1e-6 && (a.y0 += p, a.y1 += p), c = a.y1 + n;
230
- }
231
- }
232
- function z(i, c, e, o) {
233
- for (; e >= 0; --e) {
234
- let a = i[e], p = (a.y1 - c) * o;
235
- p > 1e-6 && (a.y0 -= p, a.y1 -= p), c = a.y0 - n;
236
- }
237
- }
238
- function L({ sourceLinks: i, targetLinks: c }) {
239
- if (_ === void 0) {
240
- for (let { source: { sourceLinks: e } } of c) e.sort(ct);
241
- for (let { target: { targetLinks: e } } of i) e.sort(ut);
242
- }
243
- }
244
- function F(i) {
245
- if (_ === void 0) for (let { sourceLinks: c, targetLinks: e } of i) c.sort(ct), e.sort(ut);
246
- }
247
- function M(i, c) {
248
- let e = i.y0 - (i.sourceLinks.length - 1) * n / 2;
249
- for (let { target: o, width: a } of i.sourceLinks) {
250
- if (o === c) break;
251
- e += a + n;
252
- }
253
- for (let { source: o, width: a } of c.targetLinks) {
254
- if (o === i) break;
255
- e -= a;
256
- }
257
- return e;
258
- }
259
- function E(i, c) {
260
- let e = c.y0 - (c.targetLinks.length - 1) * n / 2;
261
- for (let { source: o, width: a } of c.targetLinks) {
262
- if (o === i) break;
263
- e += a + n;
264
- }
265
- for (let { target: o, width: a } of i.sourceLinks) {
266
- if (o === c) break;
267
- e -= a;
268
- }
269
- return e;
270
- }
271
- return x;
272
- }
273
- var rt = Math.PI, st = 2 * rt, W = 1e-6, Wt = st - W;
274
- function ot() {
275
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
276
- }
277
- function mt() {
278
- return new ot();
279
- }
280
- ot.prototype = mt.prototype = {
281
- constructor: ot,
282
- moveTo: function(t, r) {
283
- this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +r);
284
- },
285
- closePath: function() {
286
- this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z");
287
- },
288
- lineTo: function(t, r) {
289
- this._ += "L" + (this._x1 = +t) + "," + (this._y1 = +r);
290
- },
291
- quadraticCurveTo: function(t, r, s, l) {
292
- this._ += "Q" + +t + "," + +r + "," + (this._x1 = +s) + "," + (this._y1 = +l);
293
- },
294
- bezierCurveTo: function(t, r, s, l, h, m) {
295
- this._ += "C" + +t + "," + +r + "," + +s + "," + +l + "," + (this._x1 = +h) + "," + (this._y1 = +m);
296
- },
297
- arcTo: function(t, r, s, l, h) {
298
- t = +t, r = +r, s = +s, l = +l, h = +h;
299
- var m = this._x1, n = this._y1, f = s - t, u = l - r, y = m - t, _ = n - r, d = y * y + _ * _;
300
- if (h < 0) throw Error("negative radius: " + h);
301
- if (this._x1 === null) this._ += "M" + (this._x1 = t) + "," + (this._y1 = r);
302
- else if (d > W)
303
- if (!(Math.abs(_ * f - u * y) > W) || !h) this._ += "L" + (this._x1 = t) + "," + (this._y1 = r);
304
- else {
305
- var A = s - m, v = l - n, x = f * f + u * u, $ = A * A + v * v, I = Math.sqrt(x), T = Math.sqrt(d), C = h * Math.tan((rt - Math.acos((x + d - $) / (2 * I * T))) / 2), P = C / T, k = C / I;
306
- Math.abs(P - 1) > W && (this._ += "L" + (t + P * y) + "," + (r + P * _)), this._ += "A" + h + "," + h + ",0,0," + +(_ * A > y * v) + "," + (this._x1 = t + k * f) + "," + (this._y1 = r + k * u);
307
- }
308
- },
309
- arc: function(t, r, s, l, h, m) {
310
- t = +t, r = +r, s = +s, m = !!m;
311
- var n = s * Math.cos(l), f = s * Math.sin(l), u = t + n, y = r + f, _ = 1 ^ m, d = m ? l - h : h - l;
312
- if (s < 0) throw Error("negative radius: " + s);
313
- this._x1 === null ? this._ += "M" + u + "," + y : (Math.abs(this._x1 - u) > W || Math.abs(this._y1 - y) > W) && (this._ += "L" + u + "," + y), s && (d < 0 && (d = d % st + st), d > Wt ? this._ += "A" + s + "," + s + ",0,1," + _ + "," + (t - n) + "," + (r - f) + "A" + s + "," + s + ",0,1," + _ + "," + (this._x1 = u) + "," + (this._y1 = y) : d > W && (this._ += "A" + s + "," + s + ",0," + +(d >= rt) + "," + _ + "," + (this._x1 = t + s * Math.cos(h)) + "," + (this._y1 = r + s * Math.sin(h))));
314
- },
315
- rect: function(t, r, s, l) {
316
- this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +r) + "h" + +s + "v" + +l + "h" + -s + "Z";
317
- },
318
- toString: function() {
319
- return this._;
320
- }
321
- };
322
- function dt(t) {
323
- return function() {
324
- return t;
325
- };
326
- }
327
- function Ut(t) {
328
- return t[0];
329
- }
330
- function Gt(t) {
331
- return t[1];
332
- }
333
- var Rt = Array.prototype.slice;
334
- function Bt(t) {
335
- return t.source;
336
- }
337
- function Vt(t) {
338
- return t.target;
339
- }
340
- function Xt(t) {
341
- var r = Bt, s = Vt, l = Ut, h = Gt, m = null;
342
- function n() {
343
- var f, u = Rt.call(arguments), y = r.apply(this, u), _ = s.apply(this, u);
344
- if (m ||= f = mt(), t(m, +l.apply(this, (u[0] = y, u)), +h.apply(this, u), +l.apply(this, (u[0] = _, u)), +h.apply(this, u)), f) return m = null, f + "" || null;
345
- }
346
- return n.source = function(f) {
347
- return arguments.length ? (r = f, n) : r;
348
- }, n.target = function(f) {
349
- return arguments.length ? (s = f, n) : s;
350
- }, n.x = function(f) {
351
- return arguments.length ? (l = typeof f == "function" ? f : dt(+f), n) : l;
352
- }, n.y = function(f) {
353
- return arguments.length ? (h = typeof f == "function" ? f : dt(+f), n) : h;
354
- }, n.context = function(f) {
355
- return arguments.length ? (m = f ?? null, n) : m;
356
- }, n;
357
- }
358
- function qt(t, r, s, l, h) {
359
- t.moveTo(r, s), t.bezierCurveTo(r = (r + l) / 2, s, r, h, l, h);
360
- }
361
- function Qt() {
362
- return Xt(qt);
363
- }
364
- function Yt(t) {
365
- return [t.source.x1, t.y0];
366
- }
367
- function Ht(t) {
368
- return [t.target.x0, t.y1];
369
- }
370
- function Kt() {
371
- return Qt().source(Yt).target(Ht);
372
- }
373
- var lt = (function() {
374
- var t = /* @__PURE__ */ g(function(n, f, u, y) {
375
- for (u ||= {}, y = n.length; y--; u[n[y]] = f) ;
376
- return u;
377
- }, "o"), r = [1, 9], s = [1, 10], l = [
378
- 1,
379
- 5,
380
- 10,
381
- 12
382
- ], h = {
383
- trace: /* @__PURE__ */ g(function() {
384
- }, "trace"),
385
- yy: {},
386
- symbols_: {
387
- error: 2,
388
- start: 3,
389
- SANKEY: 4,
390
- NEWLINE: 5,
391
- csv: 6,
392
- opt_eof: 7,
393
- record: 8,
394
- csv_tail: 9,
395
- EOF: 10,
396
- "field[source]": 11,
397
- COMMA: 12,
398
- "field[target]": 13,
399
- "field[value]": 14,
400
- field: 15,
401
- escaped: 16,
402
- non_escaped: 17,
403
- DQUOTE: 18,
404
- ESCAPED_TEXT: 19,
405
- NON_ESCAPED_TEXT: 20,
406
- $accept: 0,
407
- $end: 1
408
- },
409
- terminals_: {
410
- 2: "error",
411
- 4: "SANKEY",
412
- 5: "NEWLINE",
413
- 10: "EOF",
414
- 11: "field[source]",
415
- 12: "COMMA",
416
- 13: "field[target]",
417
- 14: "field[value]",
418
- 18: "DQUOTE",
419
- 19: "ESCAPED_TEXT",
420
- 20: "NON_ESCAPED_TEXT"
421
- },
422
- productions_: [
423
- 0,
424
- [3, 4],
425
- [6, 2],
426
- [9, 2],
427
- [9, 0],
428
- [7, 1],
429
- [7, 0],
430
- [8, 5],
431
- [15, 1],
432
- [15, 1],
433
- [16, 3],
434
- [17, 1]
435
- ],
436
- performAction: /* @__PURE__ */ g(function(n, f, u, y, _, d, A) {
437
- var v = d.length - 1;
438
- switch (_) {
439
- case 7:
440
- let x = y.findOrCreateNode(d[v - 4].trim().replaceAll('""', '"')), $ = y.findOrCreateNode(d[v - 2].trim().replaceAll('""', '"')), I = parseFloat(d[v].trim());
441
- y.addLink(x, $, I);
442
- break;
443
- case 8:
444
- case 9:
445
- case 11:
446
- this.$ = d[v];
447
- break;
448
- case 10:
449
- this.$ = d[v - 1];
450
- }
451
- }, "anonymous"),
452
- table: [
453
- {
454
- 3: 1,
455
- 4: [1, 2]
456
- },
457
- { 1: [3] },
458
- { 5: [1, 3] },
459
- {
460
- 6: 4,
461
- 8: 5,
462
- 15: 6,
463
- 16: 7,
464
- 17: 8,
465
- 18: r,
466
- 20: s
467
- },
468
- {
469
- 1: [2, 6],
470
- 7: 11,
471
- 10: [1, 12]
472
- },
473
- t(s, [2, 4], {
474
- 9: 13,
475
- 5: [1, 14]
476
- }),
477
- { 12: [1, 15] },
478
- t(l, [2, 8]),
479
- t(l, [2, 9]),
480
- { 19: [1, 16] },
481
- t(l, [2, 11]),
482
- { 1: [2, 1] },
483
- { 1: [2, 5] },
484
- t(s, [2, 2]),
485
- {
486
- 6: 17,
487
- 8: 5,
488
- 15: 6,
489
- 16: 7,
490
- 17: 8,
491
- 18: r,
492
- 20: s
493
- },
494
- {
495
- 15: 18,
496
- 16: 7,
497
- 17: 8,
498
- 18: r,
499
- 20: s
500
- },
501
- { 18: [1, 19] },
502
- t(s, [2, 3]),
503
- { 12: [1, 20] },
504
- t(l, [2, 10]),
505
- {
506
- 15: 21,
507
- 16: 7,
508
- 17: 8,
509
- 18: r,
510
- 20: s
511
- },
512
- t([
513
- 1,
514
- 5,
515
- 10
516
- ], [2, 7])
517
- ],
518
- defaultActions: {
519
- 11: [2, 1],
520
- 12: [2, 5]
521
- },
522
- parseError: /* @__PURE__ */ g(function(n, f) {
523
- if (f.recoverable) this.trace(n);
524
- else {
525
- var u = Error(n);
526
- throw u.hash = f, u;
527
- }
528
- }, "parseError"),
529
- parse: /* @__PURE__ */ g(function(n) {
530
- var f = this, u = [0], y = [], _ = [null], d = [], A = this.table, v = "", x = 0, $ = 0, I = 0, T = 2, C = 1, P = d.slice.call(arguments, 1), k = Object.create(this.lexer), S = { yy: {} };
531
- for (var D in this.yy) Object.prototype.hasOwnProperty.call(this.yy, D) && (S.yy[D] = this.yy[D]);
532
- k.setInput(n, S.yy), S.yy.lexer = k, S.yy.parser = this, k.yylloc === void 0 && (k.yylloc = {});
533
- var j = k.yylloc;
534
- d.push(j);
535
- var U = k.options && k.options.ranges;
536
- this.parseError = typeof S.yy.parseError == "function" ? S.yy.parseError : Object.getPrototypeOf(this).parseError;
537
- function N(w) {
538
- u.length -= 2 * w, _.length -= w, d.length -= w;
539
- }
540
- g(N, "popStack");
541
- function z() {
542
- var w = y.pop() || k.lex() || C;
543
- return typeof w != "number" && (w instanceof Array && (y = w, w = y.pop()), w = f.symbols_[w] || w), w;
544
- }
545
- g(z, "lex");
546
- for (var L, F, M, E, i, c = {}, e, o, a, p; ; ) {
547
- if (M = u[u.length - 1], this.defaultActions[M] ? E = this.defaultActions[M] : (L ??= z(), E = A[M] && A[M][L]), E === void 0 || !E.length || !E[0]) {
548
- var b = "";
549
- for (e in p = [], A[M]) this.terminals_[e] && e > T && p.push("'" + this.terminals_[e] + "'");
550
- b = k.showPosition ? "Parse error on line " + (x + 1) + `:
551
- ` + k.showPosition() + `
552
- Expecting ` + p.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : "Parse error on line " + (x + 1) + ": Unexpected " + (L == C ? "end of input" : "'" + (this.terminals_[L] || L) + "'"), this.parseError(b, {
553
- text: k.match,
554
- token: this.terminals_[L] || L,
555
- line: k.yylineno,
556
- loc: j,
557
- expected: p
558
- });
559
- }
560
- if (E[0] instanceof Array && E.length > 1) throw Error("Parse Error: multiple actions possible at state: " + M + ", token: " + L);
561
- switch (E[0]) {
562
- case 1:
563
- u.push(L), _.push(k.yytext), d.push(k.yylloc), u.push(E[1]), L = null, F ? (L = F, F = null) : ($ = k.yyleng, v = k.yytext, x = k.yylineno, j = k.yylloc, I > 0);
564
- break;
565
- case 2:
566
- if (o = this.productions_[E[1]][1], c.$ = _[_.length - o], c._$ = {
567
- first_line: d[d.length - (o || 1)].first_line,
568
- last_line: d[d.length - 1].last_line,
569
- first_column: d[d.length - (o || 1)].first_column,
570
- last_column: d[d.length - 1].last_column
571
- }, U && (c._$.range = [d[d.length - (o || 1)].range[0], d[d.length - 1].range[1]]), i = this.performAction.apply(c, [
572
- v,
573
- $,
574
- x,
575
- S.yy,
576
- E[1],
577
- _,
578
- d
579
- ].concat(P)), i !== void 0) return i;
580
- o && (u = u.slice(0, -1 * o * 2), _ = _.slice(0, -1 * o), d = d.slice(0, -1 * o)), u.push(this.productions_[E[1]][0]), _.push(c.$), d.push(c._$), a = A[u[u.length - 2]][u[u.length - 1]], u.push(a);
581
- break;
582
- case 3:
583
- return !0;
584
- }
585
- }
586
- return !0;
587
- }, "parse")
588
- };
589
- h.lexer = /* @__PURE__ */ (function() {
590
- return {
591
- EOF: 1,
592
- parseError: /* @__PURE__ */ g(function(n, f) {
593
- if (this.yy.parser) this.yy.parser.parseError(n, f);
594
- else throw Error(n);
595
- }, "parseError"),
596
- setInput: /* @__PURE__ */ g(function(n, f) {
597
- return this.yy = f || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
598
- first_line: 1,
599
- first_column: 0,
600
- last_line: 1,
601
- last_column: 0
602
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
603
- }, "setInput"),
604
- input: /* @__PURE__ */ g(function() {
605
- var n = this._input[0];
606
- return this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n, n.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
607
- }, "input"),
608
- unput: /* @__PURE__ */ g(function(n) {
609
- var f = n.length, u = n.split(/(?:\r\n?|\n)/g);
610
- this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - f), this.offset -= f;
611
- var y = this.match.split(/(?:\r\n?|\n)/g);
612
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), u.length - 1 && (this.yylineno -= u.length - 1);
613
- var _ = this.yylloc.range;
614
- return this.yylloc = {
615
- first_line: this.yylloc.first_line,
616
- last_line: this.yylineno + 1,
617
- first_column: this.yylloc.first_column,
618
- last_column: u ? (u.length === y.length ? this.yylloc.first_column : 0) + y[y.length - u.length].length - u[0].length : this.yylloc.first_column - f
619
- }, this.options.ranges && (this.yylloc.range = [_[0], _[0] + this.yyleng - f]), this.yyleng = this.yytext.length, this;
620
- }, "unput"),
621
- more: /* @__PURE__ */ g(function() {
622
- return this._more = !0, this;
623
- }, "more"),
624
- reject: /* @__PURE__ */ g(function() {
625
- if (this.options.backtrack_lexer) this._backtrack = !0;
626
- else return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
627
- ` + this.showPosition(), {
628
- text: "",
629
- token: null,
630
- line: this.yylineno
631
- });
632
- return this;
633
- }, "reject"),
634
- less: /* @__PURE__ */ g(function(n) {
635
- this.unput(this.match.slice(n));
636
- }, "less"),
637
- pastInput: /* @__PURE__ */ g(function() {
638
- var n = this.matched.substr(0, this.matched.length - this.match.length);
639
- return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
640
- }, "pastInput"),
641
- upcomingInput: /* @__PURE__ */ g(function() {
642
- var n = this.match;
643
- return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
644
- }, "upcomingInput"),
645
- showPosition: /* @__PURE__ */ g(function() {
646
- var n = this.pastInput(), f = Array(n.length + 1).join("-");
647
- return n + this.upcomingInput() + `
648
- ` + f + "^";
649
- }, "showPosition"),
650
- test_match: /* @__PURE__ */ g(function(n, f) {
651
- var u, y, _;
652
- if (this.options.backtrack_lexer && (_ = {
653
- yylineno: this.yylineno,
654
- yylloc: {
655
- first_line: this.yylloc.first_line,
656
- last_line: this.last_line,
657
- first_column: this.yylloc.first_column,
658
- last_column: this.yylloc.last_column
659
- },
660
- yytext: this.yytext,
661
- match: this.match,
662
- matches: this.matches,
663
- matched: this.matched,
664
- yyleng: this.yyleng,
665
- offset: this.offset,
666
- _more: this._more,
667
- _input: this._input,
668
- yy: this.yy,
669
- conditionStack: this.conditionStack.slice(0),
670
- done: this.done
671
- }, this.options.ranges && (_.yylloc.range = this.yylloc.range.slice(0))), y = n[0].match(/(?:\r\n?|\n).*/g), y && (this.yylineno += y.length), this.yylloc = {
672
- first_line: this.yylloc.last_line,
673
- last_line: this.yylineno + 1,
674
- first_column: this.yylloc.last_column,
675
- last_column: y ? y[y.length - 1].length - y[y.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
676
- }, this.yytext += n[0], this.match += n[0], this.matches = n, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(n[0].length), this.matched += n[0], u = this.performAction.call(this, this.yy, this, f, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), u) return u;
677
- if (this._backtrack) {
678
- for (var d in _) this[d] = _[d];
679
- return !1;
680
- }
681
- return !1;
682
- }, "test_match"),
683
- next: /* @__PURE__ */ g(function() {
684
- if (this.done) return this.EOF;
685
- this._input || (this.done = !0);
686
- var n, f, u, y;
687
- this._more || (this.yytext = "", this.match = "");
688
- for (var _ = this._currentRules(), d = 0; d < _.length; d++) if (u = this._input.match(this.rules[_[d]]), u && (!f || u[0].length > f[0].length)) {
689
- if (f = u, y = d, this.options.backtrack_lexer) {
690
- if (n = this.test_match(u, _[d]), n !== !1) return n;
691
- if (this._backtrack) {
692
- f = !1;
693
- continue;
694
- }
695
- return !1;
696
- }
697
- if (!this.options.flex) break;
698
- }
699
- return f ? (n = this.test_match(f, _[y]), n !== !1 && n) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
700
- ` + this.showPosition(), {
701
- text: "",
702
- token: null,
703
- line: this.yylineno
704
- });
705
- }, "next"),
706
- lex: /* @__PURE__ */ g(function() {
707
- return this.next() || this.lex();
708
- }, "lex"),
709
- begin: /* @__PURE__ */ g(function(n) {
710
- this.conditionStack.push(n);
711
- }, "begin"),
712
- popState: /* @__PURE__ */ g(function() {
713
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
714
- }, "popState"),
715
- _currentRules: /* @__PURE__ */ g(function() {
716
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
717
- }, "_currentRules"),
718
- topState: /* @__PURE__ */ g(function(n) {
719
- return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL";
720
- }, "topState"),
721
- pushState: /* @__PURE__ */ g(function(n) {
722
- this.begin(n);
723
- }, "pushState"),
724
- stateStackSize: /* @__PURE__ */ g(function() {
725
- return this.conditionStack.length;
726
- }, "stateStackSize"),
727
- options: { "case-insensitive": !0 },
728
- performAction: /* @__PURE__ */ g(function(n, f, u, y) {
729
- switch (u) {
730
- case 0:
731
- return this.pushState("csv"), 4;
732
- case 1:
733
- return this.pushState("csv"), 4;
734
- case 2:
735
- return 10;
736
- case 3:
737
- return 5;
738
- case 4:
739
- return 12;
740
- case 5:
741
- return this.pushState("escaped_text"), 18;
742
- case 6:
743
- return 20;
744
- case 7:
745
- return this.popState("escaped_text"), 18;
746
- case 8:
747
- return 19;
748
- }
749
- }, "anonymous"),
750
- rules: [
751
- /^(?:sankey-beta\b)/i,
752
- /^(?:sankey\b)/i,
753
- /^(?:$)/i,
754
- /^(?:((\u000D\u000A)|(\u000A)))/i,
755
- /^(?:(\u002C))/i,
756
- /^(?:(\u0022))/i,
757
- /^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,
758
- /^(?:(\u0022)(?!(\u0022)))/i,
759
- /^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i
760
- ],
761
- conditions: {
762
- csv: {
763
- rules: [
764
- 2,
765
- 3,
766
- 4,
767
- 5,
768
- 6,
769
- 7,
770
- 8
771
- ],
772
- inclusive: !1
773
- },
774
- escaped_text: {
775
- rules: [7, 8],
776
- inclusive: !1
777
- },
778
- INITIAL: {
779
- rules: [
780
- 0,
781
- 1,
782
- 2,
783
- 3,
784
- 4,
785
- 5,
786
- 6,
787
- 7,
788
- 8
789
- ],
790
- inclusive: !0
791
- }
792
- }
793
- };
794
- })();
795
- function m() {
796
- this.yy = {};
797
- }
798
- return g(m, "Parser"), m.prototype = h, h.Parser = m, new m();
799
- })();
800
- lt.parser = lt;
801
- var Z = lt, J = [], Y = [], H = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */ g(() => {
802
- J = [], Y = [], H = /* @__PURE__ */ new Map(), Mt();
803
- }, "clear"), R, Jt = (R = class {
804
- constructor(r, s, l = 0) {
805
- this.source = r, this.target = s, this.value = l;
806
- }
807
- }, g(R, "SankeyLink"), R), te = /* @__PURE__ */ g((t, r, s) => {
808
- J.push(new Jt(t, r, s));
809
- }, "addLink"), B, ee = (B = class {
810
- constructor(r) {
811
- this.ID = r;
812
- }
813
- }, g(B, "SankeyNode"), B), ne = {
814
- nodesMap: H,
815
- getConfig: /* @__PURE__ */ g(() => it().sankey, "getConfig"),
816
- getNodes: /* @__PURE__ */ g(() => Y, "getNodes"),
817
- getLinks: /* @__PURE__ */ g(() => J, "getLinks"),
818
- getGraph: /* @__PURE__ */ g(() => ({
819
- nodes: Y.map((t) => ({ id: t.ID })),
820
- links: J.map((t) => ({
821
- source: t.source.ID,
822
- target: t.target.ID,
823
- value: t.value
824
- }))
825
- }), "getGraph"),
826
- addLink: te,
827
- findOrCreateNode: /* @__PURE__ */ g((t) => {
828
- t = St.sanitizeText(t, it());
829
- let r = H.get(t);
830
- return r === void 0 && (r = new ee(t), H.set(t, r), Y.push(r)), r;
831
- }, "findOrCreateNode"),
832
- getAccTitle: wt,
833
- setAccTitle: Lt,
834
- getAccDescription: vt,
835
- setAccDescription: bt,
836
- getDiagramTitle: kt,
837
- setDiagramTitle: xt,
838
- clear: Zt
839
- }, O, gt = (O = class {
840
- static next(r) {
841
- return new O(r + ++O.count);
842
- }
843
- constructor(r) {
844
- this.id = r, this.href = `#${r}`;
845
- }
846
- toString() {
847
- return "url(" + this.href + ")";
848
- }
849
- }, g(O, "Uid"), O.count = 0, O), ie = {
850
- left: Ct,
851
- right: Ot,
852
- center: Tt,
853
- justify: _t
854
- }, re = /* @__PURE__ */ g((t) => {
855
- let r = 0, s = 0;
856
- for (let l of t) {
857
- let h = l.value ?? 0;
858
- h > r && (r = h, s = l.layer ?? 0);
859
- }
860
- return s;
861
- }, "findCentralNodeLayer"), se = { draw: /* @__PURE__ */ g(function(t, r, s, l) {
862
- let { securityLevel: h, sankey: m } = it(), n = Et.sankey, f;
863
- h === "sandbox" && (f = tt("#i" + r));
864
- let u = tt(h === "sandbox" ? f.nodes()[0].contentDocument.body : "body"), y = h === "sandbox" ? u.select(`[id="${r}"]`) : tt(`[id="${r}"]`), _ = m?.width ?? n.width, d = m?.height ?? n.width, A = m?.useMaxWidth ?? n.useMaxWidth, v = m?.nodeAlignment ?? n.nodeAlignment, x = m?.prefix ?? n.prefix, $ = m?.suffix ?? n.suffix, I = m?.showValues ?? n.showValues, T = m?.nodeWidth ?? n.nodeWidth ?? 10, C = m?.nodePadding ?? n.nodePadding ?? 12, P = m?.labelStyle ?? n.labelStyle ?? "legacy", k = m?.nodeColors ?? {}, S = l.db.getGraph(), D = ie[v];
865
- Ft().nodeId((e) => e.id).nodeWidth(T).nodePadding(C + (I ? 15 : 0)).nodeAlign(D).extent([[0, 0], [_, d]])(S);
866
- let j = re(S.nodes), U = It(Pt), N = /* @__PURE__ */ g((e) => k[e] ?? U(e), "getNodeColor");
867
- y.append("g").attr("class", "nodes").selectAll(".node").data(S.nodes).join("g").attr("class", "node").attr("id", (e) => (e.uid = gt.next("node-")).id).attr("transform", function(e) {
868
- return "translate(" + e.x0 + "," + e.y0 + ")";
869
- }).attr("x", (e) => e.x0).attr("y", (e) => e.y0).append("rect").attr("height", (e) => e.y1 - e.y0).attr("width", (e) => e.x1 - e.x0).attr("fill", (e) => N(e.id));
870
- let z = /* @__PURE__ */ g(({ id: e, value: o }) => I ? `${e}
871
- ${x}${Math.round(o * 100) / 100}${$}` : e, "getText"), L = /* @__PURE__ */ g((e) => P === "outlined" ? (e.layer ?? 0) < j ? {
872
- x: e.x0 - 6,
873
- anchor: "end"
874
- } : {
875
- x: e.x1 + 6,
876
- anchor: "start"
877
- } : e.x0 < _ / 2 ? {
878
- x: e.x1 + 6,
879
- anchor: "start"
880
- } : {
881
- x: e.x0 - 6,
882
- anchor: "end"
883
- }, "getLabelPosition"), F = y.append("g").attr("class", "node-labels").attr("font-size", 14), M = /* @__PURE__ */ g((e) => F.selectAll(e ? `.${e}` : "text").data(S.nodes).join("text").attr("class", e ?? null).attr("x", (o) => L(o).x).attr("y", (o) => (o.y1 + o.y0) / 2).attr("dy", `${I ? "0" : "0.35"}em`).attr("text-anchor", (o) => L(o).anchor).text(z), "appendLabel");
884
- P === "outlined" ? (M("sankey-label-bg"), M("sankey-label-fg")) : M();
885
- let E = y.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(S.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), i = m?.linkColor ?? "gradient";
886
- if (i === "gradient") {
887
- let e = E.append("linearGradient").attr("id", (o) => (o.uid = gt.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (o) => o.source.x1).attr("x2", (o) => o.target.x0);
888
- e.append("stop").attr("offset", "0%").attr("stop-color", (o) => N(o.source.id)), e.append("stop").attr("offset", "100%").attr("stop-color", (o) => N(o.target.id));
889
- }
890
- let c;
891
- switch (i) {
892
- case "gradient":
893
- c = /* @__PURE__ */ g((e) => e.uid, "coloring");
894
- break;
895
- case "source":
896
- c = /* @__PURE__ */ g((e) => N(e.source.id), "coloring");
897
- break;
898
- case "target":
899
- c = /* @__PURE__ */ g((e) => N(e.target.id), "coloring");
900
- break;
901
- default:
902
- c = i;
903
- }
904
- E.append("path").attr("d", Kt()).attr("stroke", c).attr("stroke-width", (e) => Math.max(1, e.width)), At(void 0, y, 0, A);
905
- }, "draw") }, oe = /* @__PURE__ */ g((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
906
- `).trim(), "prepareTextForParsing"), le = /* @__PURE__ */ g((t) => `.label {
907
- font-family: ${t.fontFamily};
908
- }
909
-
910
- .node-labels {
911
- font-family: ${t.fontFamily};
912
- }
913
-
914
- /* Outlined label style - background stroke for better readability */
915
- .sankey-label-bg {
916
- stroke: ${t.mainBkg || t.background || "#fff"};
917
- stroke-width: 4px;
918
- stroke-linejoin: round;
919
- paint-order: stroke;
920
- }
921
-
922
- /* Foreground label text */
923
- .sankey-label-fg {
924
- fill: ${t.textColor};
925
- }
926
-
927
- /* Node styling */
928
- .node rect {
929
- shape-rendering: crispEdges;
930
- }
931
-
932
- /* Link styling */
933
- .link {
934
- fill: none;
935
- stroke-opacity: 0.5;
936
- mix-blend-mode: multiply;
937
- }
938
- `, "getStyles"), ae = Z.parse.bind(Z);
939
- Z.parse = (t) => ae(oe(t));
940
- var ce = {
941
- styles: le,
942
- parser: Z,
943
- db: ne,
944
- renderer: se
945
- };
946
- export {
947
- ce as diagram
948
- };