smart-chat-asp 1.0.11 → 1.0.13-alpha

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 (46) hide show
  1. package/lib/arc-cab4cbad.mjs +86 -0
  2. package/lib/{blockDiagram-38ab4fdb-33db3c0f.mjs → blockDiagram-38ab4fdb-81b97d14.mjs} +47 -47
  3. package/lib/{c4Diagram-3d4e48cf-c36fa0b9.mjs → c4Diagram-3d4e48cf-b4173ca6.mjs} +58 -58
  4. package/lib/channel-c3ca711c.mjs +5 -0
  5. package/lib/{classDiagram-70f12bd4-6410d057.mjs → classDiagram-70f12bd4-cabdaef2.mjs} +8 -8
  6. package/lib/{classDiagram-v2-f2320105-55750de6.mjs → classDiagram-v2-f2320105-dfec51ea.mjs} +19 -19
  7. package/lib/{clone-50ddce3b.mjs → clone-1557b364.mjs} +1 -1
  8. package/lib/{createText-2e5e7dd3-9711772c.mjs → createText-2e5e7dd3-ad6efae9.mjs} +1 -1
  9. package/lib/{edges-e0da2a9e-785d6ef8.mjs → edges-e0da2a9e-53d5b23c.mjs} +42 -42
  10. package/lib/{erDiagram-9861fffd-72cd1f68.mjs → erDiagram-9861fffd-4fc0c29a.mjs} +23 -23
  11. package/lib/{flowDb-956e92f1-3a5cf20d.mjs → flowDb-956e92f1-48dd34e4.mjs} +154 -154
  12. package/lib/{flowDiagram-66a62f08-90b82120.mjs → flowDiagram-66a62f08-780b5a4d.mjs} +27 -27
  13. package/lib/flowDiagram-v2-96b9c2cf-0d3f1ca0.mjs +26 -0
  14. package/lib/{flowchart-elk-definition-4a651766-c1dc5d96.mjs → flowchart-elk-definition-4a651766-65ff4f10.mjs} +5 -5
  15. package/lib/{ganttDiagram-c361ad54-3450738b.mjs → ganttDiagram-c361ad54-80a98ea1.mjs} +218 -218
  16. package/lib/{gitGraphDiagram-72cf32ee-a00f4e22.mjs → gitGraphDiagram-72cf32ee-fed7356e.mjs} +72 -72
  17. package/lib/{graph-506000a3.mjs → graph-591edfa0.mjs} +31 -31
  18. package/lib/{index-3862675e-e4df1fd4.mjs → index-3862675e-fbefce7f.mjs} +15 -15
  19. package/lib/{infoDiagram-f8f76790-ae5c5c92.mjs → infoDiagram-f8f76790-25fb7a1d.mjs} +8 -8
  20. package/lib/{journeyDiagram-49397b02-a14e6c4e.mjs → journeyDiagram-49397b02-29b3c3a4.mjs} +36 -36
  21. package/lib/layout-d282d70f.mjs +1525 -0
  22. package/lib/{lib-abebf4b0.mjs → lib-d40a5a89.mjs} +30006 -39252
  23. package/lib/{line-3d01b1e8.mjs → line-9b71f1d1.mjs} +6 -6
  24. package/lib/{linear-995d9014.mjs → linear-75d2e6c7.mjs} +34 -34
  25. package/lib/{mindmap-definition-fc14e90a-ba7f399b.mjs → mindmap-definition-fc14e90a-9ee60c0d.mjs} +2 -2
  26. package/lib/{pieDiagram-8a3498a8-dfaa8ad1.mjs → pieDiagram-8a3498a8-4bcb632e.mjs} +30 -30
  27. package/lib/{quadrantDiagram-120e2f19-1b32b8de.mjs → quadrantDiagram-120e2f19-0937dd93.mjs} +20 -20
  28. package/lib/{requirementDiagram-deff3bca-ea505094.mjs → requirementDiagram-deff3bca-f32db420.mjs} +94 -94
  29. package/lib/{sankeyDiagram-04a897e0-a4e711a8.mjs → sankeyDiagram-04a897e0-bc899b38.mjs} +75 -75
  30. package/lib/{sequenceDiagram-704730f1-58ae790e.mjs → sequenceDiagram-704730f1-1ed36919.mjs} +223 -223
  31. package/lib/smart-chat.es.js +1 -1
  32. package/lib/{stateDiagram-587899a1-0b4049b2.mjs → stateDiagram-587899a1-cfb0c054.mjs} +14 -14
  33. package/lib/{stateDiagram-v2-d93cdb3a-9b2d98bc.mjs → stateDiagram-v2-d93cdb3a-7074146e.mjs} +27 -27
  34. package/lib/style.css +1 -1
  35. package/lib/{styles-6aaf32cf-18e7fcf4.mjs → styles-6aaf32cf-b4355926.mjs} +10 -10
  36. package/lib/{styles-9a916d00-0693720a.mjs → styles-9a916d00-bf86fc56.mjs} +31 -31
  37. package/lib/{styles-c10674c1-38fa5583.mjs → styles-c10674c1-bcd2b439.mjs} +21 -21
  38. package/lib/{svgDrawCommon-08f97a94-d8f8065f.mjs → svgDrawCommon-08f97a94-1b32e0ec.mjs} +3 -3
  39. package/lib/{timeline-definition-85554ec2-b6bb6177.mjs → timeline-definition-85554ec2-1eb279d6.mjs} +110 -110
  40. package/lib/{xychartDiagram-e933f94c-8c5f93dc.mjs → xychartDiagram-e933f94c-ee543365.mjs} +4 -4
  41. package/package.json +4 -4
  42. package/lib/arc-a4e9eab0.mjs +0 -86
  43. package/lib/channel-5888949f.mjs +0 -5
  44. package/lib/flowDiagram-v2-96b9c2cf-b29b4270.mjs +0 -26
  45. package/lib/index-eb7e5d56.mjs +0 -1507
  46. package/lib/layout-419b364f.mjs +0 -1495
@@ -0,0 +1,86 @@
1
+ import { w as ln, c as L } from "./path-428ebac9.mjs";
2
+ import { aI as an, aJ as V, aK as I, aL as rn, aM as y, V as on, aN as B, aO as _, aP as un, aQ as t, aR as sn, aS as tn, aT as fn } from "./lib-d40a5a89.mjs";
3
+ function cn(l) {
4
+ return l.innerRadius;
5
+ }
6
+ function yn(l) {
7
+ return l.outerRadius;
8
+ }
9
+ function gn(l) {
10
+ return l.startAngle;
11
+ }
12
+ function mn(l) {
13
+ return l.endAngle;
14
+ }
15
+ function pn(l) {
16
+ return l && l.padAngle;
17
+ }
18
+ function dn(l, h, q, O, v, R, M, a) {
19
+ var D = q - l, i = O - h, n = M - v, m = a - R, r = m * D - n * i;
20
+ if (!(r * r < y))
21
+ return r = (n * (h - R) - m * (l - v)) / r, [l + r * D, h + r * i];
22
+ }
23
+ function W(l, h, q, O, v, R, M) {
24
+ var a = l - q, D = h - O, i = (M ? R : -R) / B(a * a + D * D), n = i * D, m = -i * a, r = l + n, s = h + m, f = q + n, c = O + m, N = (r + f) / 2, o = (s + c) / 2, p = f - r, g = c - s, A = p * p + g * g, T = v - R, P = r * c - f * s, E = (g < 0 ? -1 : 1) * B(fn(0, T * T * A - P * P)), J = (P * g - p * E) / A, K = (-P * p - g * E) / A, w = (P * g + p * E) / A, d = (-P * p + g * E) / A, x = J - N, e = K - o, u = w - N, Q = d - o;
25
+ return x * x + e * e > u * u + Q * Q && (J = w, K = d), {
26
+ cx: J,
27
+ cy: K,
28
+ x01: -n,
29
+ y01: -m,
30
+ x11: J * (v / T - 1),
31
+ y11: K * (v / T - 1)
32
+ };
33
+ }
34
+ function vn() {
35
+ var l = cn, h = yn, q = L(0), O = null, v = gn, R = mn, M = pn, a = null, D = ln(i);
36
+ function i() {
37
+ var n, m, r = +l.apply(this, arguments), s = +h.apply(this, arguments), f = v.apply(this, arguments) - rn, c = R.apply(this, arguments) - rn, N = un(c - f), o = c > f;
38
+ if (a || (a = n = D()), s < r && (m = s, s = r, r = m), !(s > y))
39
+ a.moveTo(0, 0);
40
+ else if (N > on - y)
41
+ a.moveTo(s * V(f), s * I(f)), a.arc(0, 0, s, f, c, !o), r > y && (a.moveTo(r * V(c), r * I(c)), a.arc(0, 0, r, c, f, o));
42
+ else {
43
+ var p = f, g = c, A = f, T = c, P = N, E = N, J = M.apply(this, arguments) / 2, K = J > y && (O ? +O.apply(this, arguments) : B(r * r + s * s)), w = _(un(s - r) / 2, +q.apply(this, arguments)), d = w, x = w, e, u;
44
+ if (K > y) {
45
+ var Q = sn(K / r * I(J)), C = sn(K / s * I(J));
46
+ (P -= Q * 2) > y ? (Q *= o ? 1 : -1, A += Q, T -= Q) : (P = 0, A = T = (f + c) / 2), (E -= C * 2) > y ? (C *= o ? 1 : -1, p += C, g -= C) : (E = 0, p = g = (f + c) / 2);
47
+ }
48
+ var j = s * V(p), z = s * I(p), F = r * V(T), G = r * I(T);
49
+ if (w > y) {
50
+ var H = s * V(g), U = s * I(g), X = r * V(A), Y = r * I(A), S;
51
+ if (N < an)
52
+ if (S = dn(j, z, X, Y, H, U, F, G)) {
53
+ var Z = j - S[0], $ = z - S[1], k = H - S[0], b = U - S[1], nn = 1 / I(tn((Z * k + $ * b) / (B(Z * Z + $ * $) * B(k * k + b * b))) / 2), en = B(S[0] * S[0] + S[1] * S[1]);
54
+ d = _(w, (r - en) / (nn - 1)), x = _(w, (s - en) / (nn + 1));
55
+ } else
56
+ d = x = 0;
57
+ }
58
+ E > y ? x > y ? (e = W(X, Y, j, z, s, x, o), u = W(H, U, F, G, s, x, o), a.moveTo(e.cx + e.x01, e.cy + e.y01), x < w ? a.arc(e.cx, e.cy, x, t(e.y01, e.x01), t(u.y01, u.x01), !o) : (a.arc(e.cx, e.cy, x, t(e.y01, e.x01), t(e.y11, e.x11), !o), a.arc(0, 0, s, t(e.cy + e.y11, e.cx + e.x11), t(u.cy + u.y11, u.cx + u.x11), !o), a.arc(u.cx, u.cy, x, t(u.y11, u.x11), t(u.y01, u.x01), !o))) : (a.moveTo(j, z), a.arc(0, 0, s, p, g, !o)) : a.moveTo(j, z), !(r > y) || !(P > y) ? a.lineTo(F, G) : d > y ? (e = W(F, G, H, U, r, -d, o), u = W(j, z, X, Y, r, -d, o), a.lineTo(e.cx + e.x01, e.cy + e.y01), d < w ? a.arc(e.cx, e.cy, d, t(e.y01, e.x01), t(u.y01, u.x01), !o) : (a.arc(e.cx, e.cy, d, t(e.y01, e.x01), t(e.y11, e.x11), !o), a.arc(0, 0, r, t(e.cy + e.y11, e.cx + e.x11), t(u.cy + u.y11, u.cx + u.x11), o), a.arc(u.cx, u.cy, d, t(u.y11, u.x11), t(u.y01, u.x01), !o))) : a.arc(0, 0, r, T, A, o);
59
+ }
60
+ if (a.closePath(), n)
61
+ return a = null, n + "" || null;
62
+ }
63
+ return i.centroid = function() {
64
+ var n = (+l.apply(this, arguments) + +h.apply(this, arguments)) / 2, m = (+v.apply(this, arguments) + +R.apply(this, arguments)) / 2 - an / 2;
65
+ return [V(m) * n, I(m) * n];
66
+ }, i.innerRadius = function(n) {
67
+ return arguments.length ? (l = typeof n == "function" ? n : L(+n), i) : l;
68
+ }, i.outerRadius = function(n) {
69
+ return arguments.length ? (h = typeof n == "function" ? n : L(+n), i) : h;
70
+ }, i.cornerRadius = function(n) {
71
+ return arguments.length ? (q = typeof n == "function" ? n : L(+n), i) : q;
72
+ }, i.padRadius = function(n) {
73
+ return arguments.length ? (O = n == null ? null : typeof n == "function" ? n : L(+n), i) : O;
74
+ }, i.startAngle = function(n) {
75
+ return arguments.length ? (v = typeof n == "function" ? n : L(+n), i) : v;
76
+ }, i.endAngle = function(n) {
77
+ return arguments.length ? (R = typeof n == "function" ? n : L(+n), i) : R;
78
+ }, i.padAngle = function(n) {
79
+ return arguments.length ? (M = typeof n == "function" ? n : L(+n), i) : M;
80
+ }, i.context = function(n) {
81
+ return arguments.length ? (a = n ?? null, i) : a;
82
+ }, i;
83
+ }
84
+ export {
85
+ vn as a
86
+ };
@@ -1,13 +1,13 @@
1
- import { X as he, aI as se, a0 as H, a2 as ye, a1 as S, an as Ee, ak as we, a4 as De, a8 as ve } from "./lib-abebf4b0.mjs";
2
- import { c as Ne } from "./clone-50ddce3b.mjs";
3
- import { i as ke, c as Ie, b as Oe, d as Te, a as ge, p as ze } from "./edges-e0da2a9e-785d6ef8.mjs";
4
- import { G as Ce } from "./graph-506000a3.mjs";
1
+ import { c as he, _ as se, h as H, i as Ee, l as S, E as ye, B as we, j as De, o as ve } from "./lib-d40a5a89.mjs";
2
+ import { c as Ne } from "./clone-1557b364.mjs";
3
+ import { i as ke, c as Ie, b as Oe, d as Te, a as ge, p as ze } from "./edges-e0da2a9e-53d5b23c.mjs";
4
+ import { G as Ce } from "./graph-591edfa0.mjs";
5
5
  import { o as Ae } from "./ordinal-980380c7.mjs";
6
6
  import { s as Re } from "./Tableau10-2ff7471d.mjs";
7
- import { c as Be } from "./channel-5888949f.mjs";
7
+ import { c as Be } from "./channel-c3ca711c.mjs";
8
8
  import "vue";
9
- import "./createText-2e5e7dd3-9711772c.mjs";
10
- import "./line-3d01b1e8.mjs";
9
+ import "./createText-2e5e7dd3-ad6efae9.mjs";
10
+ import "./line-9b71f1d1.mjs";
11
11
  import "./array-2ff2c7a6.mjs";
12
12
  import "./path-428ebac9.mjs";
13
13
  import "./init-f9637058.mjs";
@@ -16,7 +16,7 @@ var le, oe, ee = function() {
16
16
  for (s = s || {}, i = D.length; i--; s[D[i]] = o)
17
17
  ;
18
18
  return s;
19
- }, a = [1, 7], d = [1, 13], c = [1, 14], n = [1, 15], g = [1, 19], l = [1, 16], f = [1, 17], b = [1, 18], p = [8, 30], x = [8, 21, 28, 29, 30, 31, 32, 40, 44, 47], y = [1, 23], T = [1, 24], v = [8, 15, 16, 21, 28, 29, 30, 31, 32, 40, 44, 47], N = [8, 15, 16, 21, 27, 28, 29, 30, 31, 32, 40, 44, 47], E = [1, 49], L = {
19
+ }, a = [1, 7], d = [1, 13], c = [1, 14], n = [1, 15], g = [1, 19], l = [1, 16], f = [1, 17], b = [1, 18], p = [8, 30], x = [8, 21, 28, 29, 30, 31, 32, 40, 44, 47], E = [1, 23], T = [1, 24], v = [8, 15, 16, 21, 28, 29, 30, 31, 32, 40, 44, 47], N = [8, 15, 16, 21, 27, 28, 29, 30, 31, 32, 40, 44, 47], y = [1, 49], L = {
20
20
  trace: function() {
21
21
  },
22
22
  yy: {},
@@ -122,7 +122,7 @@ var le, oe, ee = function() {
122
122
  break;
123
123
  }
124
124
  },
125
- table: [{ 9: 1, 10: [1, 2] }, { 1: [3] }, { 11: 3, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: d, 29: c, 31: n, 32: g, 40: l, 44: f, 47: b }, { 8: [1, 20] }, e(p, [2, 12], { 13: 4, 19: 5, 20: 6, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 11: 21, 21: a, 28: d, 29: c, 31: n, 32: g, 40: l, 44: f, 47: b }), e(x, [2, 16], { 14: 22, 15: y, 16: T }), e(x, [2, 17]), e(x, [2, 18]), e(x, [2, 19]), e(x, [2, 20]), e(x, [2, 21]), e(x, [2, 22]), e(v, [2, 25], { 27: [1, 25] }), e(x, [2, 26]), { 19: 26, 26: 12, 32: g }, { 11: 27, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: d, 29: c, 31: n, 32: g, 40: l, 44: f, 47: b }, { 41: [1, 28], 43: [1, 29] }, { 45: [1, 30] }, { 48: [1, 31] }, e(N, [2, 29], { 33: 32, 36: [1, 33], 38: [1, 34] }), { 1: [2, 7] }, e(p, [2, 13]), { 26: 35, 32: g }, { 32: [2, 14] }, { 17: [1, 36] }, e(v, [2, 24]), { 11: 37, 13: 4, 14: 22, 15: y, 16: T, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: d, 29: c, 31: n, 32: g, 40: l, 44: f, 47: b }, { 30: [1, 38] }, { 42: [1, 39] }, { 42: [1, 40] }, { 46: [1, 41] }, { 49: [1, 42] }, e(N, [2, 30]), { 18: [1, 43] }, { 18: [1, 44] }, e(v, [2, 23]), { 18: [1, 45] }, { 30: [1, 46] }, e(x, [2, 28]), e(x, [2, 35]), e(x, [2, 36]), e(x, [2, 37]), e(x, [2, 38]), { 37: [1, 47] }, { 34: 48, 35: E }, { 15: [1, 50] }, e(x, [2, 27]), e(N, [2, 33]), { 39: [1, 51] }, { 34: 52, 35: E, 39: [2, 31] }, { 32: [2, 15] }, e(N, [2, 34]), { 39: [2, 32] }],
125
+ table: [{ 9: 1, 10: [1, 2] }, { 1: [3] }, { 11: 3, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: d, 29: c, 31: n, 32: g, 40: l, 44: f, 47: b }, { 8: [1, 20] }, e(p, [2, 12], { 13: 4, 19: 5, 20: 6, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 11: 21, 21: a, 28: d, 29: c, 31: n, 32: g, 40: l, 44: f, 47: b }), e(x, [2, 16], { 14: 22, 15: E, 16: T }), e(x, [2, 17]), e(x, [2, 18]), e(x, [2, 19]), e(x, [2, 20]), e(x, [2, 21]), e(x, [2, 22]), e(v, [2, 25], { 27: [1, 25] }), e(x, [2, 26]), { 19: 26, 26: 12, 32: g }, { 11: 27, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: d, 29: c, 31: n, 32: g, 40: l, 44: f, 47: b }, { 41: [1, 28], 43: [1, 29] }, { 45: [1, 30] }, { 48: [1, 31] }, e(N, [2, 29], { 33: 32, 36: [1, 33], 38: [1, 34] }), { 1: [2, 7] }, e(p, [2, 13]), { 26: 35, 32: g }, { 32: [2, 14] }, { 17: [1, 36] }, e(v, [2, 24]), { 11: 37, 13: 4, 14: 22, 15: E, 16: T, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: d, 29: c, 31: n, 32: g, 40: l, 44: f, 47: b }, { 30: [1, 38] }, { 42: [1, 39] }, { 42: [1, 40] }, { 46: [1, 41] }, { 49: [1, 42] }, e(N, [2, 30]), { 18: [1, 43] }, { 18: [1, 44] }, e(v, [2, 23]), { 18: [1, 45] }, { 30: [1, 46] }, e(x, [2, 28]), e(x, [2, 35]), e(x, [2, 36]), e(x, [2, 37]), e(x, [2, 38]), { 37: [1, 47] }, { 34: 48, 35: y }, { 15: [1, 50] }, e(x, [2, 27]), e(N, [2, 33]), { 39: [1, 51] }, { 34: 52, 35: y, 39: [2, 31] }, { 32: [2, 15] }, e(N, [2, 34]), { 39: [2, 32] }],
126
126
  defaultActions: { 20: [2, 7], 23: [2, 14], 50: [2, 15], 52: [2, 32] },
127
127
  parseError: function(o, s) {
128
128
  if (s.recoverable)
@@ -609,12 +609,12 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : $ = "
609
609
  }();
610
610
  ee.parser = ee;
611
611
  const Pe = ee;
612
- let O = {}, ie = [], V = {};
612
+ let O = {}, ie = [], j = {};
613
613
  const ce = "color", ue = "fill", Fe = "bgFill", pe = ",", Ke = he();
614
- let j = {};
614
+ let V = {};
615
615
  const Me = (e) => De.sanitizeText(e, Ke), Ye = function(e, a = "") {
616
- j[e] === void 0 && (j[e] = { id: e, styles: [], textStyles: [] });
617
- const d = j[e];
616
+ V[e] === void 0 && (V[e] = { id: e, styles: [], textStyles: [] });
617
+ const d = V[e];
618
618
  a != null && a.split(pe).forEach((c) => {
619
619
  const n = c.replace(/([^;]*);/, "$1").trim();
620
620
  if (c.match(ce)) {
@@ -626,7 +626,7 @@ const Me = (e) => De.sanitizeText(e, Ke), Ye = function(e, a = "") {
626
626
  }, We = function(e, a = "") {
627
627
  const d = O[e];
628
628
  a != null && (d.styles = a.split(pe));
629
- }, Ve = function(e, a) {
629
+ }, je = function(e, a) {
630
630
  e.split(",").forEach(function(d) {
631
631
  let c = O[d];
632
632
  if (c === void 0) {
@@ -643,7 +643,7 @@ const Me = (e) => De.sanitizeText(e, Ke), Ye = function(e, a = "") {
643
643
  continue;
644
644
  }
645
645
  if (n.type === "applyClass") {
646
- Ve(n.id, (n == null ? void 0 : n.styleClass) || "");
646
+ je(n.id, (n == null ? void 0 : n.styleClass) || "");
647
647
  continue;
648
648
  }
649
649
  if (n.type === "applyStyles") {
@@ -653,7 +653,7 @@ const Me = (e) => De.sanitizeText(e, Ke), Ye = function(e, a = "") {
653
653
  if (n.type === "column-setting")
654
654
  a.columns = n.columns || -1;
655
655
  else if (n.type === "edge")
656
- V[n.id] ? V[n.id]++ : V[n.id] = 1, n.id = V[n.id] + "-" + n.id, ie.push(n);
656
+ j[n.id] ? j[n.id]++ : j[n.id] = 1, n.id = j[n.id] + "-" + n.id, ie.push(n);
657
657
  else {
658
658
  n.label || (n.type === "composite" ? n.label = "" : n.label = n.id);
659
659
  const g = !O[n.id];
@@ -670,8 +670,8 @@ const Me = (e) => De.sanitizeText(e, Ke), Ye = function(e, a = "") {
670
670
  a.children = c;
671
671
  };
672
672
  let re = [], U = { id: "root", type: "composite", children: [], columns: -1 };
673
- const je = () => {
674
- S.debug("Clear called"), Ee(), U = { id: "root", type: "composite", children: [], columns: -1 }, O = { root: U }, re = [], j = {}, ie = [], V = {};
673
+ const Ve = () => {
674
+ S.debug("Clear called"), ye(), U = { id: "root", type: "composite", children: [], columns: -1 }, O = { root: U }, re = [], V = {}, ie = [], j = {};
675
675
  };
676
676
  function Ue(e) {
677
677
  switch (S.debug("typeStr2Type", e), e) {
@@ -736,7 +736,7 @@ const He = () => (de++, "id-" + Math.random().toString(36).substr(2, 12) + "-" +
736
736
  }, Je = () => [...Object.values(O)], Qe = () => re || [], $e = () => ie, et = (e) => O[e], tt = (e) => {
737
737
  O[e.id] = e;
738
738
  }, st = () => console, it = function() {
739
- return j;
739
+ return V;
740
740
  }, rt = {
741
741
  getConfig: () => se().block,
742
742
  typeStr2Type: Ue,
@@ -751,7 +751,7 @@ const He = () => (de++, "id-" + Math.random().toString(36).substr(2, 12) + "-" +
751
751
  setBlock: tt,
752
752
  getColumns: Ze,
753
753
  getClasses: it,
754
- clear: je,
754
+ clear: Ve,
755
755
  generateId: He
756
756
  }, nt = rt, q = (e, a) => {
757
757
  const d = Be, c = d(e, "r"), n = d(e, "g"), g = d(e, "b");
@@ -936,15 +936,15 @@ function be(e, a, d = !1) {
936
936
  default:
937
937
  p = "rect";
938
938
  }
939
- const y = ve((l == null ? void 0 : l.styles) || []), T = l.label, v = l.size || { width: 0, height: 0, x: 0, y: 0 };
939
+ const E = ve((l == null ? void 0 : l.styles) || []), T = l.label, v = l.size || { width: 0, height: 0, x: 0, y: 0 };
940
940
  return {
941
- labelStyle: y.labelStyle,
941
+ labelStyle: E.labelStyle,
942
942
  shape: p,
943
943
  labelText: T,
944
944
  rx: b,
945
945
  ry: b,
946
946
  class: f,
947
- style: y.style,
947
+ style: E.style,
948
948
  id: l.id,
949
949
  directions: l.directions,
950
950
  width: v.width,
@@ -1000,7 +1000,7 @@ async function ht(e, a, d, c, n) {
1000
1000
  if (l.start && l.end) {
1001
1001
  const f = c.getBlock(l.start), b = c.getBlock(l.end);
1002
1002
  if (f != null && f.size && (b != null && b.size)) {
1003
- const p = f.size, x = b.size, y = [
1003
+ const p = f.size, x = b.size, E = [
1004
1004
  { x: p.x, y: p.y },
1005
1005
  { x: p.x + (x.x - p.x) / 2, y: p.y + (x.y - p.y) / 2 },
1006
1006
  { x: x.x, y: x.y }
@@ -1012,7 +1012,7 @@ async function ht(e, a, d, c, n) {
1012
1012
  ...l,
1013
1013
  arrowTypeEnd: l.arrowTypeEnd,
1014
1014
  arrowTypeStart: l.arrowTypeStart,
1015
- points: y,
1015
+ points: E,
1016
1016
  classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
1017
1017
  },
1018
1018
  void 0,
@@ -1025,12 +1025,12 @@ async function ht(e, a, d, c, n) {
1025
1025
  labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
1026
1026
  arrowTypeEnd: l.arrowTypeEnd,
1027
1027
  arrowTypeStart: l.arrowTypeStart,
1028
- points: y,
1028
+ points: E,
1029
1029
  classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
1030
1030
  }), await Te(
1031
- { ...l, x: y[1].x, y: y[1].y },
1031
+ { ...l, x: E[1].x, y: E[1].y },
1032
1032
  {
1033
- originalPath: y
1033
+ originalPath: E
1034
1034
  }
1035
1035
  ));
1036
1036
  }
@@ -1070,7 +1070,7 @@ const pt = (e) => {
1070
1070
  return { width: a, height: d };
1071
1071
  };
1072
1072
  function te(e, a, d = 0, c = 0) {
1073
- var n, g, l, f, b, p, x, y, T, v, N;
1073
+ var n, g, l, f, b, p, x, E, T, v, N;
1074
1074
  S.debug(
1075
1075
  "setBlockSizes abc95 (start)",
1076
1076
  e.id,
@@ -1085,20 +1085,20 @@ function te(e, a, d = 0, c = 0) {
1085
1085
  x: 0,
1086
1086
  y: 0
1087
1087
  });
1088
- let E = 0, L = 0;
1088
+ let y = 0, L = 0;
1089
1089
  if (((l = e.children) == null ? void 0 : l.length) > 0) {
1090
1090
  for (const h of e.children)
1091
1091
  te(h, a);
1092
1092
  const A = pt(e);
1093
- E = A.width, L = A.height, S.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", E, L);
1093
+ y = A.width, L = A.height, S.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", y, L);
1094
1094
  for (const h of e.children)
1095
1095
  h.size && (S.debug(
1096
- `abc95 Setting size of children of ${e.id} id=${h.id} ${E} ${L} ${h.size}`
1097
- ), h.size.width = E * (h.widthInColumns || 1) + _ * ((h.widthInColumns || 1) - 1), h.size.height = L, h.size.x = 0, h.size.y = 0, S.debug(
1098
- `abc95 updating size of ${e.id} children child:${h.id} maxWidth:${E} maxHeight:${L}`
1096
+ `abc95 Setting size of children of ${e.id} id=${h.id} ${y} ${L} ${h.size}`
1097
+ ), h.size.width = y * (h.widthInColumns || 1) + _ * ((h.widthInColumns || 1) - 1), h.size.height = L, h.size.x = 0, h.size.y = 0, S.debug(
1098
+ `abc95 updating size of ${e.id} children child:${h.id} maxWidth:${y} maxHeight:${L}`
1099
1099
  ));
1100
1100
  for (const h of e.children)
1101
- te(h, a, E, L);
1101
+ te(h, a, y, L);
1102
1102
  const k = e.columns || -1;
1103
1103
  let D = 0;
1104
1104
  for (const h of e.children)
@@ -1106,13 +1106,13 @@ function te(e, a, d = 0, c = 0) {
1106
1106
  let o = e.children.length;
1107
1107
  k > 0 && k < D && (o = k), e.widthInColumns;
1108
1108
  const s = Math.ceil(D / o);
1109
- let i = o * (E + _) + _, u = s * (L + _) + _;
1109
+ let i = o * (y + _) + _, u = s * (L + _) + _;
1110
1110
  if (i < d) {
1111
1111
  S.debug(
1112
1112
  `Detected to small siebling: abc95 ${e.id} sieblingWidth ${d} sieblingHeight ${c} width ${i}`
1113
1113
  ), i = d, u = c;
1114
1114
  const h = (d - o * _ - _) / o, t = (c - s * _ - _) / s;
1115
- S.debug("Size indata abc88", e.id, "childWidth", h, "maxWidth", E), S.debug("Size indata abc88", e.id, "childHeight", t, "maxHeight", L), S.debug("Size indata abc88 xSize", o, "padding", _);
1115
+ S.debug("Size indata abc88", e.id, "childWidth", h, "maxWidth", y), S.debug("Size indata abc88", e.id, "childHeight", t, "maxHeight", L), S.debug("Size indata abc88 xSize", o, "padding", _);
1116
1116
  for (const m of e.children)
1117
1117
  m.size && (m.size.width = h, m.size.height = t, m.size.x = 0, m.size.y = 0);
1118
1118
  }
@@ -1138,14 +1138,14 @@ function te(e, a, d = 0, c = 0) {
1138
1138
  S.debug(
1139
1139
  "setBlockSizes abc94 (done)",
1140
1140
  e.id,
1141
- (y = e == null ? void 0 : e.size) == null ? void 0 : y.x,
1141
+ (E = e == null ? void 0 : e.size) == null ? void 0 : E.x,
1142
1142
  (T = e == null ? void 0 : e.size) == null ? void 0 : T.width,
1143
1143
  (v = e == null ? void 0 : e.size) == null ? void 0 : v.y,
1144
1144
  (N = e == null ? void 0 : e.size) == null ? void 0 : N.height
1145
1145
  );
1146
1146
  }
1147
1147
  function xe(e, a) {
1148
- var d, c, n, g, l, f, b, p, x, y, T, v, N, E, L, A, k;
1148
+ var d, c, n, g, l, f, b, p, x, E, T, v, N, y, L, A, k;
1149
1149
  S.debug(
1150
1150
  `abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(d = e == null ? void 0 : e.size) == null ? void 0 : d.x} y: ${(c = e == null ? void 0 : e.size) == null ? void 0 : c.y} width: ${(n = e == null ? void 0 : e.size) == null ? void 0 : n.width}`
1151
1151
  );
@@ -1162,8 +1162,8 @@ function xe(e, a) {
1162
1162
  if (!t.size)
1163
1163
  continue;
1164
1164
  const { width: r, height: R } = t.size, { px: Y, py: F } = gt(D, i);
1165
- if (F != h && (h = F, u = (y = e == null ? void 0 : e.size) != null && y.x ? ((T = e == null ? void 0 : e.size) == null ? void 0 : T.x) + (-((v = e == null ? void 0 : e.size) == null ? void 0 : v.width) / 2 || 0) : -_, S.debug("New row in layout for block", e.id, " and child ", t.id, h)), S.debug(
1166
- `abc89 layout blocks (child) id: ${t.id} Pos: ${i} (px, py) ${Y},${F} (${(N = m == null ? void 0 : m.size) == null ? void 0 : N.x},${(E = m == null ? void 0 : m.size) == null ? void 0 : E.y}) parent: ${m.id} width: ${r}${_}`
1165
+ if (F != h && (h = F, u = (E = e == null ? void 0 : e.size) != null && E.x ? ((T = e == null ? void 0 : e.size) == null ? void 0 : T.x) + (-((v = e == null ? void 0 : e.size) == null ? void 0 : v.width) / 2 || 0) : -_, S.debug("New row in layout for block", e.id, " and child ", t.id, h)), S.debug(
1166
+ `abc89 layout blocks (child) id: ${t.id} Pos: ${i} (px, py) ${Y},${F} (${(N = m == null ? void 0 : m.size) == null ? void 0 : N.x},${(y = m == null ? void 0 : m.size) == null ? void 0 : y.y}) parent: ${m.id} width: ${r}${_}`
1167
1167
  ), m.size) {
1168
1168
  const C = r / 2;
1169
1169
  t.size.x = u + _ + C, S.debug(
@@ -1205,12 +1205,12 @@ const bt = function(e, a) {
1205
1205
  n === "sandbox" && (f = H("#i" + a));
1206
1206
  const b = n === "sandbox" ? H(f.nodes()[0].contentDocument.body) : H("body"), p = n === "sandbox" ? b.select(`[id="${a}"]`) : H(`[id="${a}"]`);
1207
1207
  ke(p, ["point", "circle", "cross"], c.type, a);
1208
- const y = l.getBlocks(), T = l.getBlocksFlat(), v = l.getEdges(), N = p.insert("g").attr("class", "block");
1209
- await ut(N, y, l);
1210
- const E = ft(l);
1211
- if (await dt(N, y, l), await ht(N, v, T, l, a), E) {
1212
- const L = E, A = Math.max(1, Math.round(0.125 * (L.width / L.height))), k = L.height + A + 10, D = L.width + 10, { useMaxWidth: o } = g;
1213
- ye(p, k, D, !!o), S.debug("Here Bounds", E, L), p.attr(
1208
+ const E = l.getBlocks(), T = l.getBlocksFlat(), v = l.getEdges(), N = p.insert("g").attr("class", "block");
1209
+ await ut(N, E, l);
1210
+ const y = ft(l);
1211
+ if (await dt(N, E, l), await ht(N, v, T, l, a), y) {
1212
+ const L = y, A = Math.max(1, Math.round(0.125 * (L.width / L.height))), k = L.height + A + 10, D = L.width + 10, { useMaxWidth: o } = g;
1213
+ Ee(p, k, D, !!o), S.debug("Here Bounds", y, L), p.attr(
1214
1214
  "viewBox",
1215
1215
  `${L.x - 5} ${L.y - 5} ${L.width + 10} ${L.height + 10}`
1216
1216
  );