@kong-ui-public/documentation 1.5.77 → 1.6.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 (63) hide show
  1. package/dist/{arc-DZdQjcG8-C_2Dx6GQ.js → arc-DZdQjcG8-CduayE88.js} +2 -2
  2. package/dist/{architectureDiagram-3BPJPVTR-By_DXDyu-DTj86bUZ.js → architectureDiagram-3BPJPVTR-By_DXDyu-U3MSLbOU.js} +1506 -1513
  3. package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CKP-SiVG.js +3268 -0
  4. package/dist/{c4Diagram-AAUBKEIU-ftdwlfdB-CYiERTWJ.js → c4Diagram-AAUBKEIU-ftdwlfdB-D3A61SdV.js} +11 -12
  5. package/dist/{channel-DM9j7IFL-CjNPz4Hd.js → channel-DM9j7IFL-DxqBUxfY.js} +1 -1
  6. package/dist/{chunk-2J33WTMH-CBbjVzWb-BAAd-TK5.js → chunk-2J33WTMH-CBbjVzWb-0og4LHQ-.js} +7 -8
  7. package/dist/chunk-4BX2VUAB-C_NnimAy--QQ0Db2V.js +8 -0
  8. package/dist/{chunk-55IACEB6-DZn1aNO0-_bs5ibIB.js → chunk-55IACEB6-DZn1aNO0-A3zOZ7dT.js} +1 -1
  9. package/dist/{chunk-727SXJPM-B2_6_WLv-CzbzsbtK.js → chunk-727SXJPM-B2_6_WLv-Bs3CxHaX.js} +548 -549
  10. package/dist/{chunk-AQP2D5EJ-DEAEiJjW-BPr5JvkB.js → chunk-AQP2D5EJ-DEAEiJjW-DTbwZT8N.js} +446 -458
  11. package/dist/{chunk-FMBD7UC4-D_tZ4Dxg-BUygZnCT.js → chunk-FMBD7UC4-D_tZ4Dxg-DwjoPGUH.js} +1 -1
  12. package/dist/{chunk-ND2GUHAM-Duw3k8MU-Dr8SD23L.js → chunk-ND2GUHAM-Duw3k8MU-HmrdHLJ9.js} +1 -1
  13. package/dist/{chunk-QZHKN3VN-DN6nBdn0-DxWE5zsM.js → chunk-QZHKN3VN-DN6nBdn0-BvQOETVz.js} +1 -1
  14. package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-BqXc0etQ.js +17 -0
  15. package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-BqXc0etQ.js +17 -0
  16. package/dist/{cose-bilkent-S5V4N54A-0ZumbVgj-BKcFQWbE.js → cose-bilkent-S5V4N54A-0ZumbVgj-0z7CQbIH.js} +465 -465
  17. package/dist/{cytoscape.esm-BDIiOYYO-BbddfVIJ.js → cytoscape.esm-BDIiOYYO-C1jMBhD8.js} +356 -371
  18. package/dist/dagre-BM42HDAG-qMWMsyLb-DGMrq3i3.js +288 -0
  19. package/dist/{dagre-DJxg_nfI-BzVw7cNP.js → dagre-DJxg_nfI-hVOVexz-.js} +9 -9
  20. package/dist/{diagram-2AECGRRQ-B2gF_dHe-DCRSlKG-.js → diagram-2AECGRRQ-B2gF_dHe-Bv_EpxRz.js} +10 -14
  21. package/dist/{diagram-5GNKFQAL-DJ9WwRrD-DtSWJY6-.js → diagram-5GNKFQAL-DJ9WwRrD-WVvm0Icu.js} +4 -4
  22. package/dist/{diagram-KO2AKTUF-RfkqD-VW-ZR9mxccc.js → diagram-KO2AKTUF-RfkqD-VW-yyAds1Qq.js} +153 -156
  23. package/dist/{diagram-LMA3HP47-Ct7s9hIt-DXtPBRn4.js → diagram-LMA3HP47-Ct7s9hIt-Dy6f9BAO.js} +21 -22
  24. package/dist/{diagram-OG6HWLK6-BSYJ2CoI-DX1BfXw6.js → diagram-OG6HWLK6-BSYJ2CoI-ckmfat-L.js} +79 -81
  25. package/dist/documentation.es.js +1 -1
  26. package/dist/documentation.umd.js +374 -374
  27. package/dist/{erDiagram-TEJ5UH35-BudwiSYX-BPA5-1u6.js → erDiagram-TEJ5UH35-BudwiSYX-bVzp1Kjr.js} +134 -135
  28. package/dist/{flowDiagram-I6XJVG4X-B23Smlxp-Cb24VZnb.js → flowDiagram-I6XJVG4X-B23Smlxp-ClHvdCdJ.js} +842 -849
  29. package/dist/{ganttDiagram-6RSMTGT7-C-i89z_P-DEdTFlTH.js → ganttDiagram-6RSMTGT7-C-i89z_P-t5UAyRM5.js} +46 -46
  30. package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-Cg3smOdz.js +734 -0
  31. package/dist/{graphlib-D2YdGpuK-CM8PX5pf.js → graphlib-D2YdGpuK-CnQPmzkS.js} +17 -17
  32. package/dist/{index-Dpyqhws4.js → index-DfVKdDwj.js} +16258 -16515
  33. package/dist/{infoDiagram-5YYISTIA-CDUwzFql-BsbTK2Me.js → infoDiagram-5YYISTIA-CDUwzFql-Bmthmcp4.js} +2 -2
  34. package/dist/{ishikawaDiagram-YF4QCWOH-MfYdx0rK-DsWP0O6d.js → ishikawaDiagram-YF4QCWOH-MfYdx0rK-cbltssua.js} +137 -138
  35. package/dist/{journeyDiagram-JHISSGLW-C_udOPtJ-BkIf9B4Q.js → journeyDiagram-JHISSGLW-C_udOPtJ-BjAvgSAR.js} +13 -13
  36. package/dist/{kanban-definition-UN3LZRKU-C1Su-UOY-6sw-wDwK.js → kanban-definition-UN3LZRKU-C1Su-UOY-DZ93dsWZ.js} +334 -336
  37. package/dist/{katex-D7tFlpqA-B7yKriH4.js → katex-D7tFlpqA-BOSQxXe1.js} +254 -256
  38. package/dist/{linear-1MXhYum8-CfR5ywK4.js → linear-1MXhYum8-9C1jno9G.js} +5 -5
  39. package/dist/{mindmap-definition-RKZ34NQL-MuSV765K-Cv2rDIFS.js → mindmap-definition-RKZ34NQL-MuSV765K-Kub1iXFv.js} +94 -97
  40. package/dist/{ordinal-D9ksOc8y-CrGveXkB.js → ordinal-D9ksOc8y-2hZwLyEk.js} +1 -1
  41. package/dist/{pieDiagram-4H26LBE5-TgFp7J6_-C8m2xJbj.js → pieDiagram-4H26LBE5-TgFp7J6_-i6NxP3Xz.js} +43 -44
  42. package/dist/{quadrantDiagram-W4KKPZXB-DKPne3o_-D0Tfl8NQ.js → quadrantDiagram-W4KKPZXB-DKPne3o_-DXLHqRuR.js} +351 -353
  43. package/dist/{requirementDiagram-4Y6WPE33-vh8uUAp_-C5zLx-_o.js → requirementDiagram-4Y6WPE33-vh8uUAp_-CHtsISxP.js} +384 -386
  44. package/dist/{sankeyDiagram-5OEKKPKP-Cgs6W_El-DBrv4QL_.js → sankeyDiagram-5OEKKPKP-Cgs6W_El-D7GZyd8n.js} +178 -178
  45. package/dist/{sequenceDiagram-3UESZ5HK-C5F57Dkt-D6DqZiJP.js → sequenceDiagram-3UESZ5HK-C5F57Dkt-BW1Hb7UW.js} +643 -653
  46. package/dist/{stateDiagram-AJRCARHV-09dUKG6Y-9QhAIhCk.js → stateDiagram-AJRCARHV-09dUKG6Y-Dm2a1vNu.js} +5 -5
  47. package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-DbWzZ-j-.js +16 -0
  48. package/dist/style.css +1 -1
  49. package/dist/timeline-definition-PNZ67QCA-CCndyx0V-B5CT96H-.js +1095 -0
  50. package/dist/{vennDiagram-CIIHVFJN-DQfKxM3L-086u82L3.js → vennDiagram-CIIHVFJN-DQfKxM3L-qUaKEl7l.js} +596 -603
  51. package/dist/{wardley-L42UT6IY-BjAkE_cs-li1xYed9.js → wardley-L42UT6IY-BjAkE_cs-C-giFqos.js} +5760 -5809
  52. package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-DXPF2Ee9.js +639 -0
  53. package/dist/{xychartDiagram-2RQKCTM6-ChNH3q1U--vbcTXH5.js → xychartDiagram-2RQKCTM6-ChNH3q1U-a59DsJDA.js} +10 -10
  54. package/package.json +4 -4
  55. package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CSQRWfog.js +0 -3278
  56. package/dist/chunk-4BX2VUAB-C_NnimAy-B-8x_g6K.js +0 -9
  57. package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-DLmqgbj1.js +0 -17
  58. package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-DLmqgbj1.js +0 -17
  59. package/dist/dagre-BM42HDAG-qMWMsyLb-BzK2-5zM.js +0 -291
  60. package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-BtfdBLxW.js +0 -747
  61. package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-Br5eF-5b.js +0 -16
  62. package/dist/timeline-definition-PNZ67QCA-CCndyx0V-CkhwKYjQ.js +0 -1106
  63. package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-CCMCDU5F.js +0 -647
@@ -1,5 +1,5 @@
1
- import { f as xt, i as kt, G as bt, K as vt, U as Lt, W as Et, p, Z as it, $ as wt, q as tt, au as At, a as St, H as Mt } from "./index-Dpyqhws4.js";
2
- import { s as It } from "./ordinal-D9ksOc8y-CrGveXkB.js";
1
+ import { f as xt, i as kt, G as bt, K as vt, U as Lt, W as Et, p as g, Z as it, $ as wt, q as tt, au as At, a as St, H as Mt } from "./index-DfVKdDwj.js";
2
+ import { s as It } from "./ordinal-D9ksOc8y-2hZwLyEk.js";
3
3
  function $t(t) {
4
4
  for (var r = t.length / 6 | 0, s = Array(r), l = 0; l < r; ) s[l] = "#" + t.slice(l * 6, ++l * 6);
5
5
  return s;
@@ -86,10 +86,10 @@ function yt({ nodes: t }) {
86
86
  }
87
87
  }
88
88
  function Ft() {
89
- let t = 0, r = 0, s = 1, l = 1, h = 24, f = 8, n, y = Dt, u = _t, d, m, g = jt, A = zt, v = 6;
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
90
  function x() {
91
91
  let i = {
92
- nodes: g.apply(null, arguments),
92
+ nodes: d.apply(null, arguments),
93
93
  links: A.apply(null, arguments)
94
94
  };
95
95
  return $(i), I(i), T(i), C(i), S(i), yt(i), i;
@@ -97,21 +97,21 @@ function Ft() {
97
97
  x.update = function(i) {
98
98
  return yt(i), i;
99
99
  }, x.nodeId = function(i) {
100
- return arguments.length ? (y = typeof i == "function" ? i : X(i), x) : y;
100
+ return arguments.length ? (f = typeof i == "function" ? i : X(i), x) : f;
101
101
  }, x.nodeAlign = function(i) {
102
102
  return arguments.length ? (u = typeof i == "function" ? i : X(i), x) : u;
103
103
  }, x.nodeSort = function(i) {
104
- return arguments.length ? (d = i, x) : d;
104
+ return arguments.length ? (y = i, x) : y;
105
105
  }, x.nodeWidth = function(i) {
106
106
  return arguments.length ? (h = +i, x) : h;
107
107
  }, x.nodePadding = function(i) {
108
- return arguments.length ? (f = n = +i, x) : f;
108
+ return arguments.length ? (m = n = +i, x) : m;
109
109
  }, x.nodes = function(i) {
110
- return arguments.length ? (g = typeof i == "function" ? i : X(i), x) : g;
110
+ return arguments.length ? (d = typeof i == "function" ? i : X(i), x) : d;
111
111
  }, x.links = function(i) {
112
112
  return arguments.length ? (A = typeof i == "function" ? i : X(i), x) : A;
113
113
  }, x.linkSort = function(i) {
114
- return arguments.length ? (m = i, x) : m;
114
+ return arguments.length ? (_ = i, x) : _;
115
115
  }, x.size = function(i) {
116
116
  return arguments.length ? (t = r = 0, s = +i[0], l = +i[1], x) : [s - t, l - r];
117
117
  }, x.extent = function(i) {
@@ -121,13 +121,13 @@ function Ft() {
121
121
  };
122
122
  function $({ nodes: i, links: c }) {
123
123
  for (let [o, a] of i.entries()) a.index = o, a.sourceLinks = [], a.targetLinks = [];
124
- let e = new Map(i.map((o, a) => [y(o, a, i), o]));
124
+ let e = new Map(i.map((o, a) => [f(o, a, i), o]));
125
125
  for (let [o, a] of c.entries()) {
126
126
  a.index = o;
127
- let { source: _, target: b } = a;
128
- typeof _ != "object" && (_ = a.source = ft(e, _)), typeof b != "object" && (b = a.target = ft(e, b)), _.sourceLinks.push(a), b.targetLinks.push(a);
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
129
  }
130
- if (m != null) for (let { sourceLinks: o, targetLinks: a } of i) o.sort(m), a.sort(m);
130
+ if (_ != null) for (let { sourceLinks: o, targetLinks: a } of i) o.sort(_), a.sort(_);
131
131
  }
132
132
  function I({ nodes: i }) {
133
133
  for (let c of i) c.value = c.fixedValue === void 0 ? Math.max(et(c.sourceLinks, nt), et(c.targetLinks, nt)) : c.fixedValue;
@@ -135,9 +135,9 @@ function Ft() {
135
135
  function T({ nodes: i }) {
136
136
  let c = i.length, e = new Set(i), o = /* @__PURE__ */ new Set(), a = 0;
137
137
  for (; e.size; ) {
138
- for (let _ of e) {
139
- _.depth = a;
140
- for (let { target: b } of _.sourceLinks) o.add(b);
138
+ for (let p of e) {
139
+ p.depth = a;
140
+ for (let { target: b } of p.sourceLinks) o.add(b);
141
141
  }
142
142
  if (++a > c) throw Error("circular link");
143
143
  e = o, o = /* @__PURE__ */ new Set();
@@ -146,9 +146,9 @@ function Ft() {
146
146
  function C({ nodes: i }) {
147
147
  let c = i.length, e = new Set(i), o = /* @__PURE__ */ new Set(), a = 0;
148
148
  for (; e.size; ) {
149
- for (let _ of e) {
150
- _.height = a;
151
- for (let { source: b } of _.targetLinks) o.add(b);
149
+ for (let p of e) {
150
+ p.height = a;
151
+ for (let { source: b } of p.targetLinks) o.add(b);
152
152
  }
153
153
  if (++a > c) throw Error("circular link");
154
154
  e = o, o = /* @__PURE__ */ new Set();
@@ -157,10 +157,10 @@ function Ft() {
157
157
  function P({ nodes: i }) {
158
158
  let c = ht(i, (a) => a.depth) + 1, e = (s - t - h) / (c - 1), o = Array(c);
159
159
  for (let a of i) {
160
- let _ = Math.max(0, Math.min(c - 1, Math.floor(u.call(null, a, c))));
161
- a.layer = _, a.x0 = t + _ * e, a.x1 = a.x0 + h, o[_] ? o[_].push(a) : o[_] = [a];
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
162
  }
163
- if (d) for (let a of o) a.sort(d);
163
+ if (y) for (let a of o) a.sort(y);
164
164
  return o;
165
165
  }
166
166
  function k(i) {
@@ -169,19 +169,19 @@ function Ft() {
169
169
  let o = r;
170
170
  for (let a of e) {
171
171
  a.y0 = o, a.y1 = o + a.value * c, o = a.y1 + n;
172
- for (let _ of a.sourceLinks) _.width = _.value * c;
172
+ for (let p of a.sourceLinks) p.width = p.value * c;
173
173
  }
174
174
  o = (l - o + n) / (e.length + 1);
175
175
  for (let a = 0; a < e.length; ++a) {
176
- let _ = e[a];
177
- _.y0 += o * (a + 1), _.y1 += o * (a + 1);
176
+ let p = e[a];
177
+ p.y0 += o * (a + 1), p.y1 += o * (a + 1);
178
178
  }
179
179
  F(e);
180
180
  }
181
181
  }
182
182
  function S(i) {
183
183
  let c = P(i);
184
- n = Math.min(f, (l - r) / (ht(c, (e) => e.length) - 1)), k(c);
184
+ n = Math.min(m, (l - r) / (ht(c, (e) => e.length) - 1)), k(c);
185
185
  for (let e = 0; e < v; ++e) {
186
186
  let o = 0.99 ** e, a = Math.max(1 - o, (e + 1) / v);
187
187
  j(c, o, a), D(c, o, a);
@@ -189,8 +189,8 @@ function Ft() {
189
189
  }
190
190
  function D(i, c, e) {
191
191
  for (let o = 1, a = i.length; o < a; ++o) {
192
- let _ = i[o];
193
- for (let b of _) {
192
+ let p = i[o];
193
+ for (let b of p) {
194
194
  let E = 0, G = 0;
195
195
  for (let { source: V, value: K } of b.targetLinks) {
196
196
  let at = K * (b.layer - V.layer);
@@ -200,23 +200,23 @@ function Ft() {
200
200
  let R = (E / G - b.y0) * c;
201
201
  b.y0 += R, b.y1 += R, L(b);
202
202
  }
203
- d === void 0 && _.sort(Q), U(_, e);
203
+ y === void 0 && p.sort(Q), U(p, e);
204
204
  }
205
205
  }
206
206
  function j(i, c, e) {
207
207
  for (let o = i.length - 2; o >= 0; --o) {
208
208
  let a = i[o];
209
- for (let _ of a) {
209
+ for (let p of a) {
210
210
  let b = 0, E = 0;
211
- for (let { target: R, value: V } of _.sourceLinks) {
212
- let K = V * (R.layer - _.layer);
213
- b += w(_, R) * K, E += K;
211
+ for (let { target: R, value: V } of p.sourceLinks) {
212
+ let K = V * (R.layer - p.layer);
213
+ b += w(p, R) * K, E += K;
214
214
  }
215
215
  if (!(E > 0)) continue;
216
- let G = (b / E - _.y0) * c;
217
- _.y0 += G, _.y1 += G, L(_);
216
+ let G = (b / E - p.y0) * c;
217
+ p.y0 += G, p.y1 += G, L(p);
218
218
  }
219
- d === void 0 && a.sort(Q), U(a, e);
219
+ y === void 0 && a.sort(Q), U(a, e);
220
220
  }
221
221
  }
222
222
  function U(i, c) {
@@ -225,24 +225,24 @@ function Ft() {
225
225
  }
226
226
  function N(i, c, e, o) {
227
227
  for (; e < i.length; ++e) {
228
- let a = i[e], _ = (c - a.y0) * o;
229
- _ > 1e-6 && (a.y0 += _, a.y1 += _), c = a.y1 + n;
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
230
  }
231
231
  }
232
232
  function z(i, c, e, o) {
233
233
  for (; e >= 0; --e) {
234
- let a = i[e], _ = (a.y1 - c) * o;
235
- _ > 1e-6 && (a.y0 -= _, a.y1 -= _), c = a.y0 - n;
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
236
  }
237
237
  }
238
238
  function L({ sourceLinks: i, targetLinks: c }) {
239
- if (m === void 0) {
239
+ if (_ === void 0) {
240
240
  for (let { source: { sourceLinks: e } } of c) e.sort(ct);
241
241
  for (let { target: { targetLinks: e } } of i) e.sort(ut);
242
242
  }
243
243
  }
244
244
  function F(i) {
245
- if (m === void 0) for (let { sourceLinks: c, targetLinks: e } of i) c.sort(ct), e.sort(ut);
245
+ if (_ === void 0) for (let { sourceLinks: c, targetLinks: e } of i) c.sort(ct), e.sort(ut);
246
246
  }
247
247
  function M(i, c) {
248
248
  let e = i.y0 - (i.sourceLinks.length - 1) * n / 2;
@@ -291,25 +291,25 @@ ot.prototype = mt.prototype = {
291
291
  quadraticCurveTo: function(t, r, s, l) {
292
292
  this._ += "Q" + +t + "," + +r + "," + (this._x1 = +s) + "," + (this._y1 = +l);
293
293
  },
294
- bezierCurveTo: function(t, r, s, l, h, f) {
295
- this._ += "C" + +t + "," + +r + "," + +s + "," + +l + "," + (this._x1 = +h) + "," + (this._y1 = +f);
294
+ bezierCurveTo: function(t, r, s, l, h, m) {
295
+ this._ += "C" + +t + "," + +r + "," + +s + "," + +l + "," + (this._x1 = +h) + "," + (this._y1 = +m);
296
296
  },
297
297
  arcTo: function(t, r, s, l, h) {
298
298
  t = +t, r = +r, s = +s, l = +l, h = +h;
299
- var f = this._x1, n = this._y1, y = s - t, u = l - r, d = f - t, m = n - r, g = d * d + m * m;
299
+ var m = this._x1, n = this._y1, f = s - t, u = l - r, y = m - t, _ = n - r, d = y * y + _ * _;
300
300
  if (h < 0) throw Error("negative radius: " + h);
301
301
  if (this._x1 === null) this._ += "M" + (this._x1 = t) + "," + (this._y1 = r);
302
- else if (g > W) if (!(Math.abs(m * y - u * d) > W) || !h) this._ += "L" + (this._x1 = t) + "," + (this._y1 = r);
302
+ else if (d > W) if (!(Math.abs(_ * f - u * y) > W) || !h) this._ += "L" + (this._x1 = t) + "," + (this._y1 = r);
303
303
  else {
304
- var A = s - f, v = l - n, x = y * y + u * u, $ = A * A + v * v, I = Math.sqrt(x), T = Math.sqrt(g), C = h * Math.tan((rt - Math.acos((x + g - $) / (2 * I * T))) / 2), P = C / T, k = C / I;
305
- Math.abs(P - 1) > W && (this._ += "L" + (t + P * d) + "," + (r + P * m)), this._ += "A" + h + "," + h + ",0,0," + +(m * A > d * v) + "," + (this._x1 = t + k * y) + "," + (this._y1 = r + k * u);
304
+ 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;
305
+ 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);
306
306
  }
307
307
  },
308
- arc: function(t, r, s, l, h, f) {
309
- t = +t, r = +r, s = +s, f = !!f;
310
- var n = s * Math.cos(l), y = s * Math.sin(l), u = t + n, d = r + y, m = 1 ^ f, g = f ? l - h : h - l;
308
+ arc: function(t, r, s, l, h, m) {
309
+ t = +t, r = +r, s = +s, m = !!m;
310
+ 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;
311
311
  if (s < 0) throw Error("negative radius: " + s);
312
- this._x1 === null ? this._ += "M" + u + "," + d : (Math.abs(this._x1 - u) > W || Math.abs(this._y1 - d) > W) && (this._ += "L" + u + "," + d), s && (g < 0 && (g = g % st + st), g > Wt ? this._ += "A" + s + "," + s + ",0,1," + m + "," + (t - n) + "," + (r - y) + "A" + s + "," + s + ",0,1," + m + "," + (this._x1 = u) + "," + (this._y1 = d) : g > W && (this._ += "A" + s + "," + s + ",0," + +(g >= rt) + "," + m + "," + (this._x1 = t + s * Math.cos(h)) + "," + (this._y1 = r + s * Math.sin(h))));
312
+ 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))));
313
313
  },
314
314
  rect: function(t, r, s, l) {
315
315
  this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +r) + "h" + +s + "v" + +l + "h" + -s + "Z";
@@ -337,21 +337,21 @@ function Rt(t) {
337
337
  return t.target;
338
338
  }
339
339
  function Vt(t) {
340
- var r = Bt, s = Rt, l = Ut, h = Gt, f = null;
340
+ var r = Bt, s = Rt, l = Ut, h = Gt, m = null;
341
341
  function n() {
342
- var y, u = qt.call(arguments), d = r.apply(this, u), m = s.apply(this, u);
343
- if (f || (f = y = mt()), t(f, +l.apply(this, (u[0] = d, u)), +h.apply(this, u), +l.apply(this, (u[0] = m, u)), +h.apply(this, u)), y) return f = null, y + "" || null;
344
- }
345
- return n.source = function(y) {
346
- return arguments.length ? (r = y, n) : r;
347
- }, n.target = function(y) {
348
- return arguments.length ? (s = y, n) : s;
349
- }, n.x = function(y) {
350
- return arguments.length ? (l = typeof y == "function" ? y : dt(+y), n) : l;
351
- }, n.y = function(y) {
352
- return arguments.length ? (h = typeof y == "function" ? y : dt(+y), n) : h;
353
- }, n.context = function(y) {
354
- return arguments.length ? (f = y ?? null, n) : f;
342
+ var f, u = qt.call(arguments), y = r.apply(this, u), _ = s.apply(this, u);
343
+ 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;
344
+ }
345
+ return n.source = function(f) {
346
+ return arguments.length ? (r = f, n) : r;
347
+ }, n.target = function(f) {
348
+ return arguments.length ? (s = f, n) : s;
349
+ }, n.x = function(f) {
350
+ return arguments.length ? (l = typeof f == "function" ? f : dt(+f), n) : l;
351
+ }, n.y = function(f) {
352
+ return arguments.length ? (h = typeof f == "function" ? f : dt(+f), n) : h;
353
+ }, n.context = function(f) {
354
+ return arguments.length ? (m = f ?? null, n) : m;
355
355
  }, n;
356
356
  }
357
357
  function Kt(t, r, s, l, h) {
@@ -369,9 +369,9 @@ function Ht(t) {
369
369
  function Qt() {
370
370
  return Xt().source(Zt).target(Ht);
371
371
  }
372
- var lt = function() {
373
- var t = /* @__PURE__ */ p(function(n, y, u, d) {
374
- for (u || (u = {}), d = n.length; d--; u[n[d]] = y) ;
372
+ var lt = (function() {
373
+ var t = /* @__PURE__ */ g(function(n, f, u, y) {
374
+ for (u ||= {}, y = n.length; y--; u[n[y]] = f) ;
375
375
  return u;
376
376
  }, "o"), r = [1, 9], s = [1, 10], l = [
377
377
  1,
@@ -379,7 +379,7 @@ var lt = function() {
379
379
  10,
380
380
  12
381
381
  ], h = {
382
- trace: /* @__PURE__ */ p(function() {
382
+ trace: /* @__PURE__ */ g(function() {
383
383
  }, "trace"),
384
384
  yy: {},
385
385
  symbols_: {
@@ -432,20 +432,20 @@ var lt = function() {
432
432
  [16, 3],
433
433
  [17, 1]
434
434
  ],
435
- performAction: /* @__PURE__ */ p(function(n, y, u, d, m, g, A) {
436
- var v = g.length - 1;
437
- switch (m) {
435
+ performAction: /* @__PURE__ */ g(function(n, f, u, y, _, d, A) {
436
+ var v = d.length - 1;
437
+ switch (_) {
438
438
  case 7:
439
- let x = d.findOrCreateNode(g[v - 4].trim().replaceAll('""', '"')), $ = d.findOrCreateNode(g[v - 2].trim().replaceAll('""', '"')), I = parseFloat(g[v].trim());
440
- d.addLink(x, $, I);
439
+ let x = y.findOrCreateNode(d[v - 4].trim().replaceAll('""', '"')), $ = y.findOrCreateNode(d[v - 2].trim().replaceAll('""', '"')), I = parseFloat(d[v].trim());
440
+ y.addLink(x, $, I);
441
441
  break;
442
442
  case 8:
443
443
  case 9:
444
444
  case 11:
445
- this.$ = g[v];
445
+ this.$ = d[v];
446
446
  break;
447
447
  case 10:
448
- this.$ = g[v - 1];
448
+ this.$ = d[v - 1];
449
449
  break;
450
450
  }
451
451
  }, "anonymous"),
@@ -519,65 +519,65 @@ var lt = function() {
519
519
  11: [2, 1],
520
520
  12: [2, 5]
521
521
  },
522
- parseError: /* @__PURE__ */ p(function(n, y) {
523
- if (y.recoverable) this.trace(n);
522
+ parseError: /* @__PURE__ */ g(function(n, f) {
523
+ if (f.recoverable) this.trace(n);
524
524
  else {
525
525
  var u = Error(n);
526
- throw u.hash = y, u;
526
+ throw u.hash = f, u;
527
527
  }
528
528
  }, "parseError"),
529
- parse: /* @__PURE__ */ p(function(n) {
530
- var y = this, u = [0], d = [], m = [null], g = [], A = this.table, v = "", x = 0, $ = 0, I = 0, T = 2, C = 1, P = g.slice.call(arguments, 1), k = Object.create(this.lexer), S = { yy: {} };
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
531
  for (var D in this.yy) Object.prototype.hasOwnProperty.call(this.yy, D) && (S.yy[D] = this.yy[D]);
532
532
  k.setInput(n, S.yy), S.yy.lexer = k, S.yy.parser = this, k.yylloc === void 0 && (k.yylloc = {});
533
533
  var j = k.yylloc;
534
- g.push(j);
534
+ d.push(j);
535
535
  var U = k.options && k.options.ranges;
536
536
  typeof S.yy.parseError == "function" ? this.parseError = S.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
537
537
  function N(E) {
538
- u.length -= 2 * E, m.length -= E, g.length -= E;
538
+ u.length -= 2 * E, _.length -= E, d.length -= E;
539
539
  }
540
- p(N, "popStack");
540
+ g(N, "popStack");
541
541
  function z() {
542
- var E = d.pop() || k.lex() || C;
543
- return typeof E != "number" && (E instanceof Array && (d = E, E = d.pop()), E = y.symbols_[E] || E), E;
542
+ var E = y.pop() || k.lex() || C;
543
+ return typeof E != "number" && (E instanceof Array && (y = E, E = y.pop()), E = f.symbols_[E] || E), E;
544
544
  }
545
- p(z, "lex");
546
- for (var L, F, M, w, i, c = {}, e, o, a, _; ; ) {
547
- if (M = u[u.length - 1], this.defaultActions[M] ? w = this.defaultActions[M] : (L ?? (L = z()), w = A[M] && A[M][L]), w === void 0 || !w.length || !w[0]) {
545
+ g(z, "lex");
546
+ for (var L, F, M, w, i, c = {}, e, o, a, p; ; ) {
547
+ if (M = u[u.length - 1], this.defaultActions[M] ? w = this.defaultActions[M] : (L ??= z(), w = A[M] && A[M][L]), w === void 0 || !w.length || !w[0]) {
548
548
  var b = "";
549
- for (e in _ = [], A[M]) this.terminals_[e] && e > T && _.push("'" + this.terminals_[e] + "'");
549
+ for (e in p = [], A[M]) this.terminals_[e] && e > T && p.push("'" + this.terminals_[e] + "'");
550
550
  b = k.showPosition ? "Parse error on line " + (x + 1) + `:
551
551
  ` + k.showPosition() + `
552
- Expecting ` + _.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, {
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
553
  text: k.match,
554
554
  token: this.terminals_[L] || L,
555
555
  line: k.yylineno,
556
556
  loc: j,
557
- expected: _
557
+ expected: p
558
558
  });
559
559
  }
560
560
  if (w[0] instanceof Array && w.length > 1) throw Error("Parse Error: multiple actions possible at state: " + M + ", token: " + L);
561
561
  switch (w[0]) {
562
562
  case 1:
563
- u.push(L), m.push(k.yytext), g.push(k.yylloc), u.push(w[1]), L = null, F ? (L = F, F = null) : ($ = k.yyleng, v = k.yytext, x = k.yylineno, j = k.yylloc, I > 0);
563
+ u.push(L), _.push(k.yytext), d.push(k.yylloc), u.push(w[1]), L = null, F ? (L = F, F = null) : ($ = k.yyleng, v = k.yytext, x = k.yylineno, j = k.yylloc, I > 0);
564
564
  break;
565
565
  case 2:
566
- if (o = this.productions_[w[1]][1], c.$ = m[m.length - o], c._$ = {
567
- first_line: g[g.length - (o || 1)].first_line,
568
- last_line: g[g.length - 1].last_line,
569
- first_column: g[g.length - (o || 1)].first_column,
570
- last_column: g[g.length - 1].last_column
571
- }, U && (c._$.range = [g[g.length - (o || 1)].range[0], g[g.length - 1].range[1]]), i = this.performAction.apply(c, [
566
+ if (o = this.productions_[w[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
572
  v,
573
573
  $,
574
574
  x,
575
575
  S.yy,
576
576
  w[1],
577
- m,
578
- g
577
+ _,
578
+ d
579
579
  ].concat(P)), i !== void 0) return i;
580
- o && (u = u.slice(0, -1 * o * 2), m = m.slice(0, -1 * o), g = g.slice(0, -1 * o)), u.push(this.productions_[w[1]][0]), m.push(c.$), g.push(c._$), a = A[u[u.length - 2]][u[u.length - 1]], u.push(a);
580
+ o && (u = u.slice(0, -1 * o * 2), _ = _.slice(0, -1 * o), d = d.slice(0, -1 * o)), u.push(this.productions_[w[1]][0]), _.push(c.$), d.push(c._$), a = A[u[u.length - 2]][u[u.length - 1]], u.push(a);
581
581
  break;
582
582
  case 3:
583
583
  return !0;
@@ -586,42 +586,42 @@ Expecting ` + _.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : "Pars
586
586
  return !0;
587
587
  }, "parse")
588
588
  };
589
- h.lexer = /* @__PURE__ */ function() {
589
+ h.lexer = /* @__PURE__ */ (function() {
590
590
  return {
591
591
  EOF: 1,
592
- parseError: /* @__PURE__ */ p(function(n, y) {
593
- if (this.yy.parser) this.yy.parser.parseError(n, y);
592
+ parseError: /* @__PURE__ */ g(function(n, f) {
593
+ if (this.yy.parser) this.yy.parser.parseError(n, f);
594
594
  else throw Error(n);
595
595
  }, "parseError"),
596
- setInput: /* @__PURE__ */ p(function(n, y) {
597
- return this.yy = y || 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 = {
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
598
  first_line: 1,
599
599
  first_column: 0,
600
600
  last_line: 1,
601
601
  last_column: 0
602
602
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
603
603
  }, "setInput"),
604
- input: /* @__PURE__ */ p(function() {
604
+ input: /* @__PURE__ */ g(function() {
605
605
  var n = this._input[0];
606
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
607
  }, "input"),
608
- unput: /* @__PURE__ */ p(function(n) {
609
- var y = n.length, u = n.split(/(?:\r\n?|\n)/g);
610
- this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - y), this.offset -= y;
611
- var d = this.match.split(/(?:\r\n?|\n)/g);
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
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 m = this.yylloc.range;
613
+ var _ = this.yylloc.range;
614
614
  return this.yylloc = {
615
615
  first_line: this.yylloc.first_line,
616
616
  last_line: this.yylineno + 1,
617
617
  first_column: this.yylloc.first_column,
618
- last_column: u ? (u.length === d.length ? this.yylloc.first_column : 0) + d[d.length - u.length].length - u[0].length : this.yylloc.first_column - y
619
- }, this.options.ranges && (this.yylloc.range = [m[0], m[0] + this.yyleng - y]), this.yyleng = this.yytext.length, this;
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
620
  }, "unput"),
621
- more: /* @__PURE__ */ p(function() {
621
+ more: /* @__PURE__ */ g(function() {
622
622
  return this._more = !0, this;
623
623
  }, "more"),
624
- reject: /* @__PURE__ */ p(function() {
624
+ reject: /* @__PURE__ */ g(function() {
625
625
  if (this.options.backtrack_lexer) this._backtrack = !0;
626
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
627
  ` + this.showPosition(), {
@@ -631,25 +631,25 @@ Expecting ` + _.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : "Pars
631
631
  });
632
632
  return this;
633
633
  }, "reject"),
634
- less: /* @__PURE__ */ p(function(n) {
634
+ less: /* @__PURE__ */ g(function(n) {
635
635
  this.unput(this.match.slice(n));
636
636
  }, "less"),
637
- pastInput: /* @__PURE__ */ p(function() {
637
+ pastInput: /* @__PURE__ */ g(function() {
638
638
  var n = this.matched.substr(0, this.matched.length - this.match.length);
639
639
  return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
640
640
  }, "pastInput"),
641
- upcomingInput: /* @__PURE__ */ p(function() {
641
+ upcomingInput: /* @__PURE__ */ g(function() {
642
642
  var n = this.match;
643
643
  return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
644
644
  }, "upcomingInput"),
645
- showPosition: /* @__PURE__ */ p(function() {
646
- var n = this.pastInput(), y = Array(n.length + 1).join("-");
645
+ showPosition: /* @__PURE__ */ g(function() {
646
+ var n = this.pastInput(), f = Array(n.length + 1).join("-");
647
647
  return n + this.upcomingInput() + `
648
- ` + y + "^";
648
+ ` + f + "^";
649
649
  }, "showPosition"),
650
- test_match: /* @__PURE__ */ p(function(n, y) {
651
- var u, d, m;
652
- if (this.options.backtrack_lexer && (m = {
650
+ test_match: /* @__PURE__ */ g(function(n, f) {
651
+ var u, y, _;
652
+ if (this.options.backtrack_lexer && (_ = {
653
653
  yylineno: this.yylineno,
654
654
  yylloc: {
655
655
  first_line: this.yylloc.first_line,
@@ -668,62 +668,62 @@ Expecting ` + _.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : "Pars
668
668
  yy: this.yy,
669
669
  conditionStack: this.conditionStack.slice(0),
670
670
  done: this.done
671
- }, this.options.ranges && (m.yylloc.range = this.yylloc.range.slice(0))), d = n[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
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
672
  first_line: this.yylloc.last_line,
673
673
  last_line: this.yylineno + 1,
674
674
  first_column: this.yylloc.last_column,
675
- last_column: d ? d[d.length - 1].length - d[d.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, y, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), u) return u;
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
677
  if (this._backtrack) {
678
- for (var g in m) this[g] = m[g];
678
+ for (var d in _) this[d] = _[d];
679
679
  return !1;
680
680
  }
681
681
  return !1;
682
682
  }, "test_match"),
683
- next: /* @__PURE__ */ p(function() {
683
+ next: /* @__PURE__ */ g(function() {
684
684
  if (this.done) return this.EOF;
685
685
  this._input || (this.done = !0);
686
- var n, y, u, d;
686
+ var n, f, u, y;
687
687
  this._more || (this.yytext = "", this.match = "");
688
- for (var m = this._currentRules(), g = 0; g < m.length; g++) if (u = this._input.match(this.rules[m[g]]), u && (!y || u[0].length > y[0].length)) {
689
- if (y = u, d = g, this.options.backtrack_lexer) {
690
- if (n = this.test_match(u, m[g]), n !== !1) return n;
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
691
  if (this._backtrack) {
692
- y = !1;
692
+ f = !1;
693
693
  continue;
694
694
  } else return !1;
695
695
  } else if (!this.options.flex) break;
696
696
  }
697
- return y ? (n = this.test_match(y, m[d]), n === !1 ? !1 : n) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
697
+ return f ? (n = this.test_match(f, _[y]), n === !1 ? !1 : n) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
698
698
  ` + this.showPosition(), {
699
699
  text: "",
700
700
  token: null,
701
701
  line: this.yylineno
702
702
  });
703
703
  }, "next"),
704
- lex: /* @__PURE__ */ p(function() {
704
+ lex: /* @__PURE__ */ g(function() {
705
705
  return this.next() || this.lex();
706
706
  }, "lex"),
707
- begin: /* @__PURE__ */ p(function(n) {
707
+ begin: /* @__PURE__ */ g(function(n) {
708
708
  this.conditionStack.push(n);
709
709
  }, "begin"),
710
- popState: /* @__PURE__ */ p(function() {
710
+ popState: /* @__PURE__ */ g(function() {
711
711
  return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
712
712
  }, "popState"),
713
- _currentRules: /* @__PURE__ */ p(function() {
713
+ _currentRules: /* @__PURE__ */ g(function() {
714
714
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
715
715
  }, "_currentRules"),
716
- topState: /* @__PURE__ */ p(function(n) {
716
+ topState: /* @__PURE__ */ g(function(n) {
717
717
  return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL";
718
718
  }, "topState"),
719
- pushState: /* @__PURE__ */ p(function(n) {
719
+ pushState: /* @__PURE__ */ g(function(n) {
720
720
  this.begin(n);
721
721
  }, "pushState"),
722
- stateStackSize: /* @__PURE__ */ p(function() {
722
+ stateStackSize: /* @__PURE__ */ g(function() {
723
723
  return this.conditionStack.length;
724
724
  }, "stateStackSize"),
725
725
  options: { "case-insensitive": !0 },
726
- performAction: /* @__PURE__ */ p(function(n, y, u, d) {
726
+ performAction: /* @__PURE__ */ g(function(n, f, u, y) {
727
727
  switch (u) {
728
728
  case 0:
729
729
  return this.pushState("csv"), 4;
@@ -789,31 +789,31 @@ Expecting ` + _.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : "Pars
789
789
  }
790
790
  }
791
791
  };
792
- }();
793
- function f() {
792
+ })();
793
+ function m() {
794
794
  this.yy = {};
795
795
  }
796
- return p(f, "Parser"), f.prototype = h, h.Parser = f, new f();
797
- }();
796
+ return g(m, "Parser"), m.prototype = h, h.Parser = m, new m();
797
+ })();
798
798
  lt.parser = lt;
799
- var Y = lt, J = [], Z = [], H = /* @__PURE__ */ new Map(), Yt = /* @__PURE__ */ p(() => {
799
+ var Y = lt, J = [], Z = [], H = /* @__PURE__ */ new Map(), Yt = /* @__PURE__ */ g(() => {
800
800
  J = [], Z = [], H = /* @__PURE__ */ new Map(), Mt();
801
801
  }, "clear"), q, Jt = (q = class {
802
802
  constructor(r, s, l = 0) {
803
803
  this.source = r, this.target = s, this.value = l;
804
804
  }
805
- }, p(q, "SankeyLink"), q), te = /* @__PURE__ */ p((t, r, s) => {
805
+ }, g(q, "SankeyLink"), q), te = /* @__PURE__ */ g((t, r, s) => {
806
806
  J.push(new Jt(t, r, s));
807
807
  }, "addLink"), B, ee = (B = class {
808
808
  constructor(r) {
809
809
  this.ID = r;
810
810
  }
811
- }, p(B, "SankeyNode"), B), ne = {
811
+ }, g(B, "SankeyNode"), B), ne = {
812
812
  nodesMap: H,
813
- getConfig: /* @__PURE__ */ p(() => it().sankey, "getConfig"),
814
- getNodes: /* @__PURE__ */ p(() => Z, "getNodes"),
815
- getLinks: /* @__PURE__ */ p(() => J, "getLinks"),
816
- getGraph: /* @__PURE__ */ p(() => ({
813
+ getConfig: /* @__PURE__ */ g(() => it().sankey, "getConfig"),
814
+ getNodes: /* @__PURE__ */ g(() => Z, "getNodes"),
815
+ getLinks: /* @__PURE__ */ g(() => J, "getLinks"),
816
+ getGraph: /* @__PURE__ */ g(() => ({
817
817
  nodes: Z.map((t) => ({ id: t.ID })),
818
818
  links: J.map((t) => ({
819
819
  source: t.source.ID,
@@ -822,7 +822,7 @@ var Y = lt, J = [], Z = [], H = /* @__PURE__ */ new Map(), Yt = /* @__PURE__ */
822
822
  }))
823
823
  }), "getGraph"),
824
824
  addLink: te,
825
- findOrCreateNode: /* @__PURE__ */ p((t) => {
825
+ findOrCreateNode: /* @__PURE__ */ g((t) => {
826
826
  t = St.sanitizeText(t, it());
827
827
  let r = H.get(t);
828
828
  return r === void 0 && (r = new ee(t), H.set(t, r), Z.push(r)), r;
@@ -844,43 +844,43 @@ var Y = lt, J = [], Z = [], H = /* @__PURE__ */ new Map(), Yt = /* @__PURE__ */
844
844
  toString() {
845
845
  return "url(" + this.href + ")";
846
846
  }
847
- }, p(O, "Uid"), O.count = 0, O), ie = {
847
+ }, g(O, "Uid"), O.count = 0, O), ie = {
848
848
  left: Ct,
849
849
  right: Ot,
850
850
  center: Tt,
851
851
  justify: _t
852
- }, re = /* @__PURE__ */ p((t) => {
852
+ }, re = /* @__PURE__ */ g((t) => {
853
853
  let r = 0, s = 0;
854
854
  for (let l of t) {
855
855
  let h = l.value ?? 0;
856
856
  h > r && (r = h, s = l.layer ?? 0);
857
857
  }
858
858
  return s;
859
- }, "findCentralNodeLayer"), se = { draw: /* @__PURE__ */ p(function(t, r, s, l) {
860
- let { securityLevel: h, sankey: f } = it(), n = wt.sankey, y;
861
- h === "sandbox" && (y = tt("#i" + r));
862
- let u = tt(h === "sandbox" ? y.nodes()[0].contentDocument.body : "body"), d = h === "sandbox" ? u.select(`[id="${r}"]`) : tt(`[id="${r}"]`), m = (f == null ? void 0 : f.width) ?? n.width, g = (f == null ? void 0 : f.height) ?? n.width, A = (f == null ? void 0 : f.useMaxWidth) ?? n.useMaxWidth, v = (f == null ? void 0 : f.nodeAlignment) ?? n.nodeAlignment, x = (f == null ? void 0 : f.prefix) ?? n.prefix, $ = (f == null ? void 0 : f.suffix) ?? n.suffix, I = (f == null ? void 0 : f.showValues) ?? n.showValues, T = (f == null ? void 0 : f.nodeWidth) ?? n.nodeWidth ?? 10, C = (f == null ? void 0 : f.nodePadding) ?? n.nodePadding ?? 12, P = (f == null ? void 0 : f.labelStyle) ?? n.labelStyle ?? "legacy", k = (f == null ? void 0 : f.nodeColors) ?? {}, S = l.db.getGraph(), D = ie[v];
863
- Ft().nodeId((e) => e.id).nodeWidth(T).nodePadding(C + (I ? 15 : 0)).nodeAlign(D).extent([[0, 0], [m, g]])(S);
864
- let j = re(S.nodes), U = It(Pt), N = /* @__PURE__ */ p((e) => k[e] ?? U(e), "getNodeColor");
865
- d.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) {
859
+ }, "findCentralNodeLayer"), se = { draw: /* @__PURE__ */ g(function(t, r, s, l) {
860
+ let { securityLevel: h, sankey: m } = it(), n = wt.sankey, f;
861
+ h === "sandbox" && (f = tt("#i" + r));
862
+ 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];
863
+ Ft().nodeId((e) => e.id).nodeWidth(T).nodePadding(C + (I ? 15 : 0)).nodeAlign(D).extent([[0, 0], [_, d]])(S);
864
+ let j = re(S.nodes), U = It(Pt), N = /* @__PURE__ */ g((e) => k[e] ?? U(e), "getNodeColor");
865
+ 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) {
866
866
  return "translate(" + e.x0 + "," + e.y0 + ")";
867
867
  }).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));
868
- let z = /* @__PURE__ */ p(({ id: e, value: o }) => I ? `${e}
869
- ${x}${Math.round(o * 100) / 100}${$}` : e, "getText"), L = /* @__PURE__ */ p((e) => P === "outlined" ? (e.layer ?? 0) < j ? {
868
+ let z = /* @__PURE__ */ g(({ id: e, value: o }) => I ? `${e}
869
+ ${x}${Math.round(o * 100) / 100}${$}` : e, "getText"), L = /* @__PURE__ */ g((e) => P === "outlined" ? (e.layer ?? 0) < j ? {
870
870
  x: e.x0 - 6,
871
871
  anchor: "end"
872
872
  } : {
873
873
  x: e.x1 + 6,
874
874
  anchor: "start"
875
- } : e.x0 < m / 2 ? {
875
+ } : e.x0 < _ / 2 ? {
876
876
  x: e.x1 + 6,
877
877
  anchor: "start"
878
878
  } : {
879
879
  x: e.x0 - 6,
880
880
  anchor: "end"
881
- }, "getLabelPosition"), F = d.append("g").attr("class", "node-labels").attr("font-size", 14), M = /* @__PURE__ */ p((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");
881
+ }, "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");
882
882
  P === "outlined" ? (M("sankey-label-bg"), M("sankey-label-fg")) : M();
883
- let w = d.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 = (f == null ? void 0 : f.linkColor) ?? "gradient";
883
+ let w = 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";
884
884
  if (i === "gradient") {
885
885
  let e = w.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);
886
886
  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));
@@ -888,20 +888,20 @@ ${x}${Math.round(o * 100) / 100}${$}` : e, "getText"), L = /* @__PURE__ */ p((e)
888
888
  let c;
889
889
  switch (i) {
890
890
  case "gradient":
891
- c = /* @__PURE__ */ p((e) => e.uid, "coloring");
891
+ c = /* @__PURE__ */ g((e) => e.uid, "coloring");
892
892
  break;
893
893
  case "source":
894
- c = /* @__PURE__ */ p((e) => N(e.source.id), "coloring");
894
+ c = /* @__PURE__ */ g((e) => N(e.source.id), "coloring");
895
895
  break;
896
896
  case "target":
897
- c = /* @__PURE__ */ p((e) => N(e.target.id), "coloring");
897
+ c = /* @__PURE__ */ g((e) => N(e.target.id), "coloring");
898
898
  break;
899
899
  default:
900
900
  c = i;
901
901
  }
902
- w.append("path").attr("d", Qt()).attr("stroke", c).attr("stroke-width", (e) => Math.max(1, e.width)), At(void 0, d, 0, A);
903
- }, "draw") }, oe = /* @__PURE__ */ p((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
904
- `).trim(), "prepareTextForParsing"), le = /* @__PURE__ */ p((t) => `.label {
902
+ w.append("path").attr("d", Qt()).attr("stroke", c).attr("stroke-width", (e) => Math.max(1, e.width)), At(void 0, y, 0, A);
903
+ }, "draw") }, oe = /* @__PURE__ */ g((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
904
+ `).trim(), "prepareTextForParsing"), le = /* @__PURE__ */ g((t) => `.label {
905
905
  font-family: ${t.fontFamily};
906
906
  }
907
907