@ucap-llm/ai-ui 1.1.20 → 1.1.22

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 (69) hide show
  1. package/_basePickBy-49aBLVXj.mjs +151 -0
  2. package/_baseUniq-Duw-LCxN.mjs +418 -0
  3. package/ai-ui.es.js +5 -5
  4. package/ai-ui.umd.js +441 -398
  5. package/{arc-e33cf4bd.mjs → arc-CxnBoKcf.mjs} +3 -5
  6. package/architecture-4AB2E3PP-DpATI33S.mjs +5 -0
  7. package/{architectureDiagram-IEHRJDOE-8c0644d3.mjs → architectureDiagram-IEHRJDOE-CaoKd3s2.mjs} +774 -781
  8. package/{blockDiagram-JOT3LUYC-2e03b1f8.mjs → blockDiagram-JOT3LUYC-Dno4VG8f.mjs} +17 -21
  9. package/{c4Diagram-VJAJSXHY-0d7e02b1.mjs → c4Diagram-VJAJSXHY-D5HK6aXG.mjs} +45 -47
  10. package/channel-CjgQSUhn.mjs +5 -0
  11. package/{chunk-4BMEZGHF-c55a79e8.mjs → chunk-4BMEZGHF-B5q96F5j.mjs} +1 -1
  12. package/{chunk-A2AXSNBT-72cb8e03.mjs → chunk-A2AXSNBT-CwIw1dro.mjs} +31 -32
  13. package/{chunk-AEK57VVT-103a8016.mjs → chunk-AEK57VVT-CgqpfRdv.mjs} +29 -30
  14. package/{chunk-D6G4REZN-eb0c0a03.mjs → chunk-D6G4REZN-BuQQgKKf.mjs} +24 -24
  15. package/chunk-RZ5BOZE2-nBulgjak.mjs +24 -0
  16. package/{chunk-XZIHB7SX-697eddab.mjs → chunk-XZIHB7SX-ChfFX5tX.mjs} +1 -1
  17. package/classDiagram-GIVACNV2-DW4s6Pgr.mjs +16 -0
  18. package/classDiagram-v2-COTLJTTW-DW4s6Pgr.mjs +16 -0
  19. package/{clone-e06e1908.mjs → clone-BWxZJOIB.mjs} +1 -1
  20. package/{cytoscape.esm-9ffb4bbe.mjs → cytoscape.esm-D1A2YP3J.mjs} +133 -240
  21. package/{dagre-OKDRZEBW-1380cf0d.mjs → dagre-OKDRZEBW-BF7VSsgY.mjs} +25 -26
  22. package/{diagram-SSKATNLV-1e22cab7.mjs → diagram-SSKATNLV-BHV-tmQz.mjs} +48 -52
  23. package/{diagram-VNBRO52H-63b9b854.mjs → diagram-VNBRO52H-DhnmXzVl.mjs} +31 -35
  24. package/{erDiagram-Q7BY3M3F-6f4f40c6.mjs → erDiagram-Q7BY3M3F-yoOr4S3e.mjs} +32 -34
  25. package/{flowDiagram-4HSFHLVR-217f422a.mjs → flowDiagram-4HSFHLVR-Dypn-7OY.mjs} +21 -23
  26. package/{ganttDiagram-APWFNJXF-b1c138fc.mjs → ganttDiagram-APWFNJXF-Bpg6PwzQ.mjs} +933 -961
  27. package/gitGraph-O2Q2CXLX-B57Ivesv.mjs +5 -0
  28. package/{gitGraphDiagram-7IBYFJ6S-a40cd00c.mjs → gitGraphDiagram-7IBYFJ6S-C2SKSevj.mjs} +27 -31
  29. package/{graph-c2e1b9d5.mjs → graph-BqoU6xY2.mjs} +7 -9
  30. package/{index-4283477e.mjs → index-LXAHF7dZ.mjs} +56792 -32545
  31. package/info-4N47QTOZ-rUYWBWKH.mjs +5 -0
  32. package/infoDiagram-PH2N3AL5-Dwh9BN3B.mjs +22 -0
  33. package/{journeyDiagram-U35MCT3I-ea34e89d.mjs → journeyDiagram-U35MCT3I-BuJo6oNZ.mjs} +26 -28
  34. package/{kanban-definition-NDS4AKOZ-3dc1bdfc.mjs → kanban-definition-NDS4AKOZ-3bBL0X_A.mjs} +22 -23
  35. package/{layout-b7402112.mjs → layout-UCl5QdSx.mjs} +288 -308
  36. package/{linear-6028b26a.mjs → linear-5kjmVbWx.mjs} +136 -160
  37. package/{mermaid-parser.core-89f41f6f.mjs → mermaid-parser.core-BTQeWTCL.mjs} +2510 -2520
  38. package/{mindmap-definition-ALO5MXBD-cf0036bd.mjs → mindmap-definition-ALO5MXBD-pyGAc115.mjs} +309 -311
  39. package/{ordinal-980380c7.mjs → ordinal-C0oynhte.mjs} +4 -8
  40. package/package.json +2 -2
  41. package/packet-KVYON367-B0aEJOd2.mjs +5 -0
  42. package/pie-R6RNRRYF-mat_xgAT.mjs +5 -0
  43. package/pieDiagram-IB7DONF6-Dfr5jCmu.mjs +161 -0
  44. package/{quadrantDiagram-7GDLP6J5-4e41575d.mjs → quadrantDiagram-7GDLP6J5-CUP0tYJI.mjs} +28 -31
  45. package/radar-MK3ICKWK-ae8hsHN1.mjs +5 -0
  46. package/{requirementDiagram-KVF5MWMF-edfb0543.mjs → requirementDiagram-KVF5MWMF-O1db62rc.mjs} +47 -49
  47. package/{sankeyDiagram-QLVOVGJD-c0853822.mjs → sankeyDiagram-QLVOVGJD-CCf-MSR0.mjs} +113 -131
  48. package/{sequenceDiagram-X6HHIX6F-96ff1e7c.mjs → sequenceDiagram-X6HHIX6F-CrB4QPFZ.mjs} +40 -42
  49. package/{stateDiagram-DGXRK772-7c6ceb1c.mjs → stateDiagram-DGXRK772-DWFrvHEL.mjs} +8 -12
  50. package/stateDiagram-v2-YXO3MK2T-BuEm2W4g.mjs +16 -0
  51. package/style.css +10 -1
  52. package/{timeline-definition-BDJGKUSR-23f3d39c.mjs → timeline-definition-BDJGKUSR-ThsfvZPa.mjs} +11 -13
  53. package/{xychartDiagram-VJFVF3MP-9b2268b5.mjs → xychartDiagram-VJFVF3MP-D7Ns77UK.mjs} +161 -163
  54. package/_basePickBy-576eaf6e.mjs +0 -153
  55. package/_baseUniq-83e8b0cb.mjs +0 -440
  56. package/architecture-4AB2E3PP-1faad353.mjs +0 -10
  57. package/channel-283b31f1.mjs +0 -5
  58. package/chunk-RZ5BOZE2-97e0c31b.mjs +0 -24
  59. package/classDiagram-GIVACNV2-306a98b6.mjs +0 -18
  60. package/classDiagram-v2-COTLJTTW-306a98b6.mjs +0 -18
  61. package/gitGraph-O2Q2CXLX-804a8ebe.mjs +0 -10
  62. package/info-4N47QTOZ-6f3c3677.mjs +0 -10
  63. package/infoDiagram-PH2N3AL5-4c0f80b6.mjs +0 -26
  64. package/packet-KVYON367-3ead67ef.mjs +0 -10
  65. package/pie-R6RNRRYF-41122910.mjs +0 -10
  66. package/pieDiagram-IB7DONF6-9b4a5b06.mjs +0 -167
  67. package/radar-MK3ICKWK-0d996d37.mjs +0 -10
  68. package/stateDiagram-v2-YXO3MK2T-012aec41.mjs +0 -18
  69. /package/{init-f9637058.mjs → init-DjUOC4st.mjs} +0 -0
@@ -1,11 +1,10 @@
1
- import { _ as X, aq as F, ar as Y, as as _, at as H, l as i, d as V, au as q, av as U, af as $, ak as z, ag as P, ae as K, aw as Q, ax as W, ay as Z } from "./index-4283477e.mjs";
2
- import { G as B } from "./graph-c2e1b9d5.mjs";
3
- import { l as I } from "./layout-b7402112.mjs";
4
- import { i as x } from "./_baseUniq-83e8b0cb.mjs";
5
- import { c as L } from "./clone-e06e1908.mjs";
6
- import { m as A } from "./_basePickBy-576eaf6e.mjs";
7
- import "vue";
8
- function E(e) {
1
+ import { _ as X, aq as F, ar as Y, as as _, at as H, l as i, c as V, au as q, av as U, af as $, ak as z, ag as P, ae as K, aw as Q, ax as W, ay as Z } from "./index-LXAHF7dZ.mjs";
2
+ import { G as B } from "./graph-BqoU6xY2.mjs";
3
+ import { l as I } from "./layout-UCl5QdSx.mjs";
4
+ import { i as x } from "./_baseUniq-Duw-LCxN.mjs";
5
+ import { c as L } from "./clone-BWxZJOIB.mjs";
6
+ import { m as A } from "./_basePickBy-49aBLVXj.mjs";
7
+ function p(e) {
9
8
  var t = {
10
9
  options: {
11
10
  directed: e.isDirected(),
@@ -156,10 +155,10 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
156
155
  }
157
156
  i.warn("Fix Replacing with XXX", c, a, n.name), e.setEdge(c, a, o, n.name);
158
157
  }
159
- }), i.warn("Adjusted Graph", E(e)), T(e, 0), i.trace(f);
158
+ }), i.warn("Adjusted Graph", p(e)), T(e, 0), i.trace(f);
160
159
  }, "adjustClustersAndEdges"), T = /* @__PURE__ */ X((e, t) => {
161
160
  var c, a;
162
- if (i.warn("extractor - ", t, E(e), e.children("D")), t > 10) {
161
+ if (i.warn("extractor - ", t, p(e), e.children("D")), t > 10) {
163
162
  i.error("Bailing out");
164
163
  return;
165
164
  }
@@ -206,13 +205,13 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
206
205
  }).setDefaultEdgeLabel(function() {
207
206
  return {};
208
207
  });
209
- i.warn("Old graph before copy", E(e)), G(r, e, h, r), e.setNode(r, {
208
+ i.warn("Old graph before copy", p(e)), G(r, e, h, r), e.setNode(r, {
210
209
  clusterNode: !0,
211
210
  id: r,
212
211
  clusterData: f.get(r).clusterData,
213
212
  label: f.get(r).label,
214
213
  graph: h
215
- }), i.warn("New graph after copy node: (", r, ")", E(h)), i.debug("Old graph after copy", E(e));
214
+ }), i.warn("New graph after copy node: (", r, ")", p(h)), i.debug("Old graph after copy", p(e));
216
215
  } else
217
216
  i.warn(
218
217
  "Cluster ** ",
@@ -240,7 +239,7 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
240
239
  n = [...n, ...a];
241
240
  }), n;
242
241
  }, "sorter"), oe = /* @__PURE__ */ X((e) => M(e, e.children()), "sortNodesByHierarchy"), j = /* @__PURE__ */ X(async (e, t, n, o, c, a) => {
243
- i.warn("Graph in recursive render:XAX", E(t), c);
242
+ i.warn("Graph in recursive render:XAX", p(t), c);
244
243
  const r = t.graph().rankdir;
245
244
  i.trace("Dir in recursive render - dir:", r);
246
245
  const u = e.insert("g").attr("class", "root");
@@ -316,8 +315,8 @@ Parent cluster`,
316
315
  ), await Z(C, w);
317
316
  });
318
317
  await Promise.all(d);
319
- }, "processEdges"))(), i.info("Graph before layout:", JSON.stringify(E(t))), i.info("############################################# XXX"), i.info("### Layout ### XXX"), i.info("############################################# XXX"), I(t), i.info("Graph after layout:", JSON.stringify(E(t)));
320
- let p = 0, { subGraphTitleTotalMargin: y } = z(a);
318
+ }, "processEdges"))(), i.info("Graph before layout:", JSON.stringify(p(t))), i.info("############################################# XXX"), i.info("### Layout ### XXX"), i.info("############################################# XXX"), I(t), i.info("Graph after layout:", JSON.stringify(p(t)));
319
+ let E = 0, { subGraphTitleTotalMargin: y } = z(a);
321
320
  return await Promise.all(
322
321
  oe(t).map(async function(d) {
323
322
  var w;
@@ -382,9 +381,9 @@ Parent cluster`,
382
381
  W(s, N);
383
382
  }), t.nodes().forEach(function(d) {
384
383
  const s = t.node(d);
385
- i.info(d, s.type, s.diff), s.isGroup && (p = s.diff);
386
- }), i.warn("Returning from recursive render XAX", u, p), { elem: u, diff: p };
387
- }, "recursiveRender"), we = /* @__PURE__ */ X(async (e, t) => {
384
+ i.info(d, s.type, s.diff), s.isGroup && (E = s.diff);
385
+ }), i.warn("Returning from recursive render XAX", u, E), { elem: u, diff: E };
386
+ }, "recursiveRender"), ge = /* @__PURE__ */ X(async (e, t) => {
388
387
  var a, r, u, l, h, C;
389
388
  const n = new B({
390
389
  multigraph: !0,
@@ -402,10 +401,10 @@ Parent cluster`,
402
401
  n.setNode(g.id, { ...g }), g.parentId && n.setParent(g.id, g.parentId);
403
402
  }), i.debug("Edges:", e.edges), e.edges.forEach((g) => {
404
403
  if (g.start === g.end) {
405
- const v = g.start, p = v + "---" + v + "---1", y = v + "---" + v + "---2", d = n.node(v);
406
- n.setNode(p, {
407
- domId: p,
408
- id: p,
404
+ const v = g.start, E = v + "---" + v + "---1", y = v + "---" + v + "---2", d = n.node(v);
405
+ n.setNode(E, {
406
+ domId: E,
407
+ id: E,
409
408
  parentId: d.parentId,
410
409
  labelStyle: "",
411
410
  label: "",
@@ -415,7 +414,7 @@ Parent cluster`,
415
414
  style: "",
416
415
  width: 10,
417
416
  height: 10
418
- }), n.setParent(p, d.parentId), n.setNode(y, {
417
+ }), n.setParent(E, d.parentId), n.setNode(y, {
419
418
  domId: y,
420
419
  id: y,
421
420
  parentId: d.parentId,
@@ -429,10 +428,10 @@ Parent cluster`,
429
428
  height: 10
430
429
  }), n.setParent(y, d.parentId);
431
430
  const s = structuredClone(g), w = structuredClone(g), m = structuredClone(g);
432
- s.label = "", s.arrowTypeEnd = "none", s.id = v + "-cyclic-special-1", w.arrowTypeStart = "none", w.arrowTypeEnd = "none", w.id = v + "-cyclic-special-mid", m.label = "", d.isGroup && (s.fromCluster = v, m.toCluster = v), m.id = v + "-cyclic-special-2", m.arrowTypeStart = "none", n.setEdge(v, p, s, v + "-cyclic-special-0"), n.setEdge(p, y, w, v + "-cyclic-special-1"), n.setEdge(y, v, m, v + "-cyc<lic-special-2");
431
+ s.label = "", s.arrowTypeEnd = "none", s.id = v + "-cyclic-special-1", w.arrowTypeStart = "none", w.arrowTypeEnd = "none", w.id = v + "-cyclic-special-mid", m.label = "", d.isGroup && (s.fromCluster = v, m.toCluster = v), m.id = v + "-cyclic-special-2", m.arrowTypeStart = "none", n.setEdge(v, E, s, v + "-cyclic-special-0"), n.setEdge(E, y, w, v + "-cyclic-special-1"), n.setEdge(y, v, m, v + "-cyc<lic-special-2");
433
432
  } else
434
433
  n.setEdge(g.start, g.end, { ...g }, g.id);
435
- }), i.warn("Graph at first:", JSON.stringify(E(n))), re(n), i.warn("Graph after XAX:", JSON.stringify(E(n)));
434
+ }), i.warn("Graph at first:", JSON.stringify(p(n))), re(n), i.warn("Graph after XAX:", JSON.stringify(p(n)));
436
435
  const c = V();
437
436
  await j(
438
437
  o,
@@ -444,5 +443,5 @@ Parent cluster`,
444
443
  );
445
444
  }, "render");
446
445
  export {
447
- we as render
446
+ ge as render
448
447
  };
@@ -1,11 +1,7 @@
1
- import { p as k } from "./chunk-4BMEZGHF-c55a79e8.mjs";
2
- import { C as R, _ as l, s as E, g as I, n as _, o as D, b as F, c as G, l as P, D as y, E as C, t as z, H, K as V } from "./index-4283477e.mjs";
3
- import { p as W } from "./mermaid-parser.core-89f41f6f.mjs";
4
- import "vue";
5
- import "./_baseUniq-83e8b0cb.mjs";
6
- import "./_basePickBy-576eaf6e.mjs";
7
- import "./clone-e06e1908.mjs";
8
- var h = {
1
+ import { p as k } from "./chunk-4BMEZGHF-B5q96F5j.mjs";
2
+ import { _ as l, s as R, g as E, q as F, p as I, a as _, b as D, H as G, y as P, D as f, E as C, F as z, l as H, K as V } from "./index-LXAHF7dZ.mjs";
3
+ import { p as W } from "./mermaid-parser.core-BTQeWTCL.mjs";
4
+ var x = {
9
5
  showLegend: !0,
10
6
  ticks: 5,
11
7
  max: null,
@@ -14,22 +10,22 @@ var h = {
14
10
  }, w = {
15
11
  axes: [],
16
12
  curves: [],
17
- options: h
18
- }, m = structuredClone(w), B = R.radar, j = /* @__PURE__ */ l(() => y({
13
+ options: x
14
+ }, h = structuredClone(w), B = z.radar, j = /* @__PURE__ */ l(() => f({
19
15
  ...B,
20
16
  ...C().radar
21
- }), "getConfig"), b = /* @__PURE__ */ l(() => m.axes, "getAxes"), K = /* @__PURE__ */ l(() => m.curves, "getCurves"), N = /* @__PURE__ */ l(() => m.options, "getOptions"), U = /* @__PURE__ */ l((a) => {
22
- m.axes = a.map((t) => ({
17
+ }), "getConfig"), b = /* @__PURE__ */ l(() => h.axes, "getAxes"), q = /* @__PURE__ */ l(() => h.curves, "getCurves"), K = /* @__PURE__ */ l(() => h.options, "getOptions"), N = /* @__PURE__ */ l((a) => {
18
+ h.axes = a.map((t) => ({
23
19
  name: t.name,
24
20
  label: t.label ?? t.name
25
21
  }));
26
- }, "setAxes"), X = /* @__PURE__ */ l((a) => {
27
- m.curves = a.map((t) => ({
22
+ }, "setAxes"), U = /* @__PURE__ */ l((a) => {
23
+ h.curves = a.map((t) => ({
28
24
  name: t.name,
29
25
  label: t.label ?? t.name,
30
- entries: Y(t.entries)
26
+ entries: X(t.entries)
31
27
  }));
32
- }, "setCurves"), Y = /* @__PURE__ */ l((a) => {
28
+ }, "setCurves"), X = /* @__PURE__ */ l((a) => {
33
29
  if (a[0].axis == null)
34
30
  return a.map((e) => e.value);
35
31
  const t = b();
@@ -44,36 +40,36 @@ var h = {
44
40
  throw new Error("Missing entry for axis " + e.label);
45
41
  return r.value;
46
42
  });
47
- }, "computeCurveEntries"), Z = /* @__PURE__ */ l((a) => {
43
+ }, "computeCurveEntries"), Y = /* @__PURE__ */ l((a) => {
48
44
  var e, r, s, o, i;
49
45
  const t = a.reduce(
50
46
  (n, c) => (n[c.name] = c, n),
51
47
  {}
52
48
  );
53
- m.options = {
54
- showLegend: ((e = t.showLegend) == null ? void 0 : e.value) ?? h.showLegend,
55
- ticks: ((r = t.ticks) == null ? void 0 : r.value) ?? h.ticks,
56
- max: ((s = t.max) == null ? void 0 : s.value) ?? h.max,
57
- min: ((o = t.min) == null ? void 0 : o.value) ?? h.min,
58
- graticule: ((i = t.graticule) == null ? void 0 : i.value) ?? h.graticule
49
+ h.options = {
50
+ showLegend: ((e = t.showLegend) == null ? void 0 : e.value) ?? x.showLegend,
51
+ ticks: ((r = t.ticks) == null ? void 0 : r.value) ?? x.ticks,
52
+ max: ((s = t.max) == null ? void 0 : s.value) ?? x.max,
53
+ min: ((o = t.min) == null ? void 0 : o.value) ?? x.min,
54
+ graticule: ((i = t.graticule) == null ? void 0 : i.value) ?? x.graticule
59
55
  };
60
- }, "setOptions"), q = /* @__PURE__ */ l(() => {
61
- z(), m = structuredClone(w);
56
+ }, "setOptions"), Z = /* @__PURE__ */ l(() => {
57
+ P(), h = structuredClone(w);
62
58
  }, "clear"), $ = {
63
59
  getAxes: b,
64
- getCurves: K,
65
- getOptions: N,
66
- setAxes: U,
67
- setCurves: X,
68
- setOptions: Z,
60
+ getCurves: q,
61
+ getOptions: K,
62
+ setAxes: N,
63
+ setCurves: U,
64
+ setOptions: Y,
69
65
  getConfig: j,
70
- clear: q,
71
- setAccTitle: E,
72
- getAccTitle: I,
73
- setDiagramTitle: _,
74
- getDiagramTitle: D,
75
- getAccDescription: F,
76
- setAccDescription: G
66
+ clear: Z,
67
+ setAccTitle: D,
68
+ getAccTitle: _,
69
+ setDiagramTitle: I,
70
+ getDiagramTitle: F,
71
+ getAccDescription: E,
72
+ setAccDescription: R
77
73
  }, J = /* @__PURE__ */ l((a) => {
78
74
  k(a, $);
79
75
  const { axes: t, curves: e, options: r } = a;
@@ -81,11 +77,11 @@ var h = {
81
77
  }, "populate"), Q = {
82
78
  parse: /* @__PURE__ */ l(async (a) => {
83
79
  const t = await W("radar", a);
84
- P.debug(t), J(t);
80
+ H.debug(t), J(t);
85
81
  }, "parse")
86
82
  }, tt = /* @__PURE__ */ l((a, t, e, r) => {
87
- const s = r.db, o = s.getAxes(), i = s.getCurves(), n = s.getOptions(), c = s.getConfig(), d = s.getDiagramTitle(), u = H(t), p = et(u, c), g = n.max ?? Math.max(...i.map((f) => Math.max(...f.entries))), x = n.min, v = Math.min(c.width, c.height) / 2;
88
- at(p, o, v, n.ticks, n.graticule), rt(p, o, v, c), M(p, o, i, x, g, n.graticule, c), T(p, i, n.showLegend, c), p.append("text").attr("class", "radarTitle").text(d).attr("x", 0).attr("y", -c.height / 2 - c.marginTop);
83
+ const s = r.db, o = s.getAxes(), i = s.getCurves(), n = s.getOptions(), c = s.getConfig(), d = s.getDiagramTitle(), p = G(t), u = et(p, c), g = n.max ?? Math.max(...i.map((y) => Math.max(...y.entries))), m = n.min, v = Math.min(c.width, c.height) / 2;
84
+ at(u, o, v, n.ticks, n.graticule), rt(u, o, v, c), M(u, o, i, m, g, n.graticule, c), T(u, i, n.showLegend, c), u.append("text").attr("class", "radarTitle").text(d).attr("x", 0).attr("y", -c.height / 2 - c.marginTop);
89
85
  }, "draw"), et = /* @__PURE__ */ l((a, t) => {
90
86
  const e = t.width + t.marginLeft + t.marginRight, r = t.height + t.marginTop + t.marginBottom, s = {
91
87
  x: t.marginLeft + t.width / 2,
@@ -101,9 +97,9 @@ var h = {
101
97
  else if (s === "polygon") {
102
98
  const o = t.length;
103
99
  for (let i = 0; i < r; i++) {
104
- const n = e * (i + 1) / r, c = t.map((d, u) => {
105
- const p = 2 * u * Math.PI / o - Math.PI / 2, g = n * Math.cos(p), x = n * Math.sin(p);
106
- return `${g},${x}`;
100
+ const n = e * (i + 1) / r, c = t.map((d, p) => {
101
+ const u = 2 * p * Math.PI / o - Math.PI / 2, g = n * Math.cos(u), m = n * Math.sin(u);
102
+ return `${g},${m}`;
107
103
  }).join(" ");
108
104
  a.append("polygon").attr("points", c).attr("class", "radarGraticule");
109
105
  }
@@ -117,14 +113,14 @@ var h = {
117
113
  }, "drawAxes");
118
114
  function M(a, t, e, r, s, o, i) {
119
115
  const n = t.length, c = Math.min(i.width, i.height) / 2;
120
- e.forEach((d, u) => {
116
+ e.forEach((d, p) => {
121
117
  if (d.entries.length !== n)
122
118
  return;
123
- const p = d.entries.map((g, x) => {
124
- const v = 2 * Math.PI * x / n - Math.PI / 2, f = A(g, r, s, c), O = f * Math.cos(v), S = f * Math.sin(v);
119
+ const u = d.entries.map((g, m) => {
120
+ const v = 2 * Math.PI * m / n - Math.PI / 2, y = A(g, r, s, c), O = y * Math.cos(v), S = y * Math.sin(v);
125
121
  return { x: O, y: S };
126
122
  });
127
- o === "circle" ? a.append("path").attr("d", L(p, i.curveTension)).attr("class", `radarCurve-${u}`) : o === "polygon" && a.append("polygon").attr("points", p.map((g) => `${g.x},${g.y}`).join(" ")).attr("class", `radarCurve-${u}`);
123
+ o === "circle" ? a.append("path").attr("d", L(u, i.curveTension)).attr("class", `radarCurve-${p}`) : o === "polygon" && a.append("polygon").attr("points", u.map((g) => `${g.x},${g.y}`).join(" ")).attr("class", `radarCurve-${p}`);
128
124
  });
129
125
  }
130
126
  l(M, "drawCurves");
@@ -140,11 +136,11 @@ function L(a, t) {
140
136
  const o = a[(s - 1 + e) % e], i = a[s], n = a[(s + 1) % e], c = a[(s + 2) % e], d = {
141
137
  x: i.x + (n.x - o.x) * t,
142
138
  y: i.y + (n.y - o.y) * t
143
- }, u = {
139
+ }, p = {
144
140
  x: n.x - (c.x - i.x) * t,
145
141
  y: n.y - (c.y - i.y) * t
146
142
  };
147
- r += ` C${d.x},${d.y} ${u.x},${u.y} ${n.x},${n.y}`;
143
+ r += ` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`;
148
144
  }
149
145
  return `${r} Z`;
150
146
  }
@@ -180,7 +176,7 @@ var st = { draw: tt }, nt = /* @__PURE__ */ l((a, t) => {
180
176
  }
181
177
  return e;
182
178
  }, "genIndexStyles"), ot = /* @__PURE__ */ l((a) => {
183
- const t = V(), e = C(), r = y(t, e.themeVariables), s = y(r.radar, a);
179
+ const t = V(), e = C(), r = f(t, e.themeVariables), s = f(r.radar, a);
184
180
  return { themeVariables: r, radarOptions: s };
185
181
  }, "buildRadarStyleOptions"), it = /* @__PURE__ */ l(({ radar: a } = {}) => {
186
182
  const { themeVariables: t, radarOptions: e } = ot(a);
@@ -214,12 +210,12 @@ var st = { draw: tt }, nt = /* @__PURE__ */ l((a, t) => {
214
210
  }
215
211
  ${nt(t, e)}
216
212
  `;
217
- }, "styles"), ht = {
213
+ }, "styles"), ut = {
218
214
  parser: Q,
219
215
  db: $,
220
216
  renderer: st,
221
217
  styles: it
222
218
  };
223
219
  export {
224
- ht as diagram
220
+ ut as diagram
225
221
  };
@@ -1,34 +1,30 @@
1
- import { p as w } from "./chunk-4BMEZGHF-c55a79e8.mjs";
2
- import { C as B, s as S, g as F, n as z, o as P, b as W, c as D, _ as n, l as v, D as x, E as T, t as E, H as _, k as A } from "./index-4283477e.mjs";
3
- import { p as N } from "./mermaid-parser.core-89f41f6f.mjs";
4
- import "vue";
5
- import "./_baseUniq-83e8b0cb.mjs";
6
- import "./_basePickBy-576eaf6e.mjs";
7
- import "./clone-e06e1908.mjs";
1
+ import { p as w } from "./chunk-4BMEZGHF-B5q96F5j.mjs";
2
+ import { _ as n, s as B, g as S, q as F, p as z, a as P, b as W, D as x, H as D, e as T, y as E, E as _, F as A, l as m } from "./index-LXAHF7dZ.mjs";
3
+ import { p as N } from "./mermaid-parser.core-BTQeWTCL.mjs";
8
4
  var C = {
9
5
  packet: []
10
- }, m = structuredClone(C), L = B.packet, Y = /* @__PURE__ */ n(() => {
6
+ }, v = structuredClone(C), L = A.packet, Y = /* @__PURE__ */ n(() => {
11
7
  const t = x({
12
8
  ...L,
13
- ...T().packet
9
+ ..._().packet
14
10
  });
15
11
  return t.showBits && (t.paddingY += 10), t;
16
- }, "getConfig"), H = /* @__PURE__ */ n(() => m.packet, "getPacket"), I = /* @__PURE__ */ n((t) => {
17
- t.length > 0 && m.packet.push(t);
12
+ }, "getConfig"), H = /* @__PURE__ */ n(() => v.packet, "getPacket"), I = /* @__PURE__ */ n((t) => {
13
+ t.length > 0 && v.packet.push(t);
18
14
  }, "pushWord"), M = /* @__PURE__ */ n(() => {
19
- E(), m = structuredClone(C);
15
+ E(), v = structuredClone(C);
20
16
  }, "clear"), h = {
21
17
  pushWord: I,
22
18
  getPacket: H,
23
19
  getConfig: Y,
24
20
  clear: M,
25
- setAccTitle: S,
26
- getAccTitle: F,
21
+ setAccTitle: W,
22
+ getAccTitle: P,
27
23
  setDiagramTitle: z,
28
- getDiagramTitle: P,
29
- getAccDescription: W,
30
- setAccDescription: D
31
- }, O = 1e4, G = /* @__PURE__ */ n((t) => {
24
+ getDiagramTitle: F,
25
+ getAccDescription: S,
26
+ setAccDescription: B
27
+ }, O = 1e4, q = /* @__PURE__ */ n((t) => {
32
28
  w(t, h);
33
29
  let e = -1, o = [], s = 1;
34
30
  const { bitsPerRow: i } = h.getConfig();
@@ -39,15 +35,15 @@ var C = {
39
35
  throw new Error(
40
36
  `Packet block ${a} - ${r ?? a} is not contiguous. It should start from ${e + 1}.`
41
37
  );
42
- for (e = r ?? a, v.debug(`Packet block ${a} - ${e} with label ${p}`); o.length <= i + 1 && h.getPacket().length < O; ) {
43
- const [b, c] = K({ start: a, end: r, label: p }, s, i);
38
+ for (e = r ?? a, m.debug(`Packet block ${a} - ${e} with label ${p}`); o.length <= i + 1 && h.getPacket().length < O; ) {
39
+ const [b, c] = G({ start: a, end: r, label: p }, s, i);
44
40
  if (o.push(b), b.end + 1 === s * i && (h.pushWord(o), o = [], s++), !c)
45
41
  break;
46
42
  ({ start: a, end: r, label: p } = c);
47
43
  }
48
44
  }
49
45
  h.pushWord(o);
50
- }, "populate"), K = /* @__PURE__ */ n((t, e, o) => {
46
+ }, "populate"), G = /* @__PURE__ */ n((t, e, o) => {
51
47
  if (t.end === void 0 && (t.end = t.start), t.start > t.end)
52
48
  throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);
53
49
  return t.end + 1 <= e * o ? [t, void 0] : [
@@ -62,18 +58,18 @@ var C = {
62
58
  label: t.label
63
59
  }
64
60
  ];
65
- }, "getNextFittingBlock"), R = {
61
+ }, "getNextFittingBlock"), K = {
66
62
  parse: /* @__PURE__ */ n(async (t) => {
67
63
  const e = await N("packet", t);
68
- v.debug(e), G(e);
64
+ m.debug(e), q(e);
69
65
  }, "parse")
70
- }, U = /* @__PURE__ */ n((t, e, o, s) => {
71
- const i = s.db, a = i.getConfig(), { rowHeight: r, paddingY: p, bitWidth: b, bitsPerRow: c } = a, u = i.getPacket(), l = i.getDiagramTitle(), g = r + p, d = g * (u.length + 1) - (l ? 0 : r), k = b * c + 2, f = _(e);
72
- f.attr("viewbox", `0 0 ${k} ${d}`), A(f, d, k, a.useMaxWidth);
73
- for (const [$, y] of u.entries())
74
- X(f, y, $, a);
66
+ }, R = /* @__PURE__ */ n((t, e, o, s) => {
67
+ const i = s.db, a = i.getConfig(), { rowHeight: r, paddingY: p, bitWidth: b, bitsPerRow: c } = a, u = i.getPacket(), l = i.getDiagramTitle(), g = r + p, d = g * (u.length + 1) - (l ? 0 : r), k = b * c + 2, f = D(e);
68
+ f.attr("viewbox", `0 0 ${k} ${d}`), T(f, d, k, a.useMaxWidth);
69
+ for (const [y, $] of u.entries())
70
+ U(f, $, y, a);
75
71
  f.append("text").text(l).attr("x", k / 2).attr("y", d - g / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle");
76
- }, "draw"), X = /* @__PURE__ */ n((t, e, o, { rowHeight: s, paddingX: i, paddingY: a, bitWidth: r, bitsPerRow: p, showBits: b }) => {
72
+ }, "draw"), U = /* @__PURE__ */ n((t, e, o, { rowHeight: s, paddingX: i, paddingY: a, bitWidth: r, bitsPerRow: p, showBits: b }) => {
77
73
  const c = t.append("g"), u = o * (s + a) + a;
78
74
  for (const l of e) {
79
75
  const g = l.start % p * r + 1, d = (l.end - l.start + 1) * r - i;
@@ -82,7 +78,7 @@ var C = {
82
78
  const k = l.end === l.start, f = u - 2;
83
79
  c.append("text").attr("x", g + (k ? d / 2 : 0)).attr("y", f).attr("class", "packetByte start").attr("dominant-baseline", "auto").attr("text-anchor", k ? "middle" : "start").text(l.start), k || c.append("text").attr("x", g + d).attr("y", f).attr("class", "packetByte end").attr("dominant-baseline", "auto").attr("text-anchor", "end").text(l.end);
84
80
  }
85
- }, "drawWord"), j = { draw: U }, q = {
81
+ }, "drawWord"), X = { draw: R }, j = {
86
82
  byteFontSize: "10px",
87
83
  startByteColor: "black",
88
84
  endByteColor: "black",
@@ -94,7 +90,7 @@ var C = {
94
90
  blockStrokeWidth: "1",
95
91
  blockFillColor: "#efefef"
96
92
  }, J = /* @__PURE__ */ n(({ packet: t } = {}) => {
97
- const e = x(q, t);
93
+ const e = x(j, t);
98
94
  return `
99
95
  .packetByte {
100
96
  font-size: ${e.byteFontSize};
@@ -119,12 +115,12 @@ var C = {
119
115
  fill: ${e.blockFillColor};
120
116
  }
121
117
  `;
122
- }, "styles"), ot = {
123
- parser: R,
118
+ }, "styles"), tt = {
119
+ parser: K,
124
120
  db: h,
125
- renderer: j,
121
+ renderer: X,
126
122
  styles: J
127
123
  };
128
124
  export {
129
- ot as diagram
125
+ tt as diagram
130
126
  };
@@ -1,20 +1,18 @@
1
- import { g as Dt, s as wt } from "./chunk-RZ5BOZE2-97e0c31b.mjs";
2
- import { _ as u, s as Vt, g as Lt, c as Mt, b as Bt, n as Ft, o as Yt, d as tt, l as D, t as Pt, r as zt, B as Gt, y as Kt, z as Zt, j as Ut, u as jt, A as Wt } from "./index-4283477e.mjs";
3
- import { c as Qt } from "./channel-283b31f1.mjs";
4
- import "vue";
1
+ import { g as Dt, s as wt } from "./chunk-RZ5BOZE2-nBulgjak.mjs";
2
+ import { _ as u, b as Vt, a as Lt, s as Mt, g as Bt, p as Ft, q as Yt, c as tt, l as D, y as Pt, x as zt, A as Gt, B as Kt, o as Zt, r as Ut, d as jt, u as Wt } from "./index-LXAHF7dZ.mjs";
3
+ import { c as Qt } from "./channel-CjgQSUhn.mjs";
5
4
  var dt = function() {
6
5
  var s = /* @__PURE__ */ u(function(R, n, a, c) {
7
- for (a = a || {}, c = R.length; c--; a[R[c]] = n)
8
- ;
6
+ for (a = a || {}, c = R.length; c--; a[R[c]] = n) ;
9
7
  return a;
10
- }, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 50], h = [1, 10], d = [1, 11], o = [1, 12], l = [1, 13], f = [1, 20], _ = [1, 21], E = [1, 22], w = [1, 23], Z = [1, 24], S = [1, 19], et = [1, 25], U = [1, 26], T = [1, 18], V = [1, 33], st = [1, 34], it = [1, 35], rt = [1, 36], nt = [1, 37], pt = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 50, 63, 64, 65, 66, 67], O = [1, 42], A = [1, 43], L = [1, 52], M = [40, 50, 68, 69], B = [1, 63], F = [1, 61], N = [1, 58], Y = [1, 62], P = [1, 64], j = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 63, 64, 65, 66, 67], yt = [63, 64, 65, 66, 67], ft = [1, 81], _t = [1, 80], gt = [1, 78], bt = [1, 79], mt = [6, 10, 42, 47], v = [6, 10, 13, 41, 42, 47, 48, 49], W = [1, 89], Q = [1, 88], X = [1, 87], z = [19, 56], Et = [1, 98], kt = [1, 97], at = [19, 56, 58, 60], ct = {
8
+ }, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 50], h = [1, 10], d = [1, 11], o = [1, 12], l = [1, 13], f = [1, 20], _ = [1, 21], E = [1, 22], V = [1, 23], Z = [1, 24], S = [1, 19], et = [1, 25], U = [1, 26], T = [1, 18], L = [1, 33], st = [1, 34], it = [1, 35], rt = [1, 36], nt = [1, 37], pt = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 50, 63, 64, 65, 66, 67], O = [1, 42], A = [1, 43], M = [1, 52], B = [40, 50, 68, 69], F = [1, 63], Y = [1, 61], N = [1, 58], P = [1, 62], z = [1, 64], j = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 63, 64, 65, 66, 67], yt = [63, 64, 65, 66, 67], ft = [1, 81], _t = [1, 80], gt = [1, 78], bt = [1, 79], mt = [6, 10, 42, 47], v = [6, 10, 13, 41, 42, 47, 48, 49], W = [1, 89], Q = [1, 88], X = [1, 87], G = [19, 56], Et = [1, 98], kt = [1, 97], at = [19, 56, 58, 60], ct = {
11
9
  trace: /* @__PURE__ */ u(function() {
12
10
  }, "trace"),
13
11
  yy: {},
14
12
  symbols_: { error: 2, start: 3, ER_DIAGRAM: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, entityName: 11, relSpec: 12, COLON: 13, role: 14, STYLE_SEPARATOR: 15, idList: 16, BLOCK_START: 17, attributes: 18, BLOCK_STOP: 19, SQS: 20, SQE: 21, title: 22, title_value: 23, acc_title: 24, acc_title_value: 25, acc_descr: 26, acc_descr_value: 27, acc_descr_multiline_value: 28, direction: 29, classDefStatement: 30, classStatement: 31, styleStatement: 32, direction_tb: 33, direction_bt: 34, direction_rl: 35, direction_lr: 36, CLASSDEF: 37, stylesOpt: 38, separator: 39, UNICODE_TEXT: 40, STYLE_TEXT: 41, COMMA: 42, CLASS: 43, STYLE: 44, style: 45, styleComponent: 46, SEMI: 47, NUM: 48, BRKT: 49, ENTITY_NAME: 50, attribute: 51, attributeType: 52, attributeName: 53, attributeKeyTypeList: 54, attributeComment: 55, ATTRIBUTE_WORD: 56, attributeKeyType: 57, ",": 58, ATTRIBUTE_KEY: 59, COMMENT: 60, cardinality: 61, relType: 62, ZERO_OR_ONE: 63, ZERO_OR_MORE: 64, ONE_OR_MORE: 65, ONLY_ONE: 66, MD_PARENT: 67, NON_IDENTIFYING: 68, IDENTIFYING: 69, WORD: 70, $accept: 0, $end: 1 },
15
13
  terminals_: { 2: "error", 4: "ER_DIAGRAM", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 13: "COLON", 15: "STYLE_SEPARATOR", 17: "BLOCK_START", 19: "BLOCK_STOP", 20: "SQS", 21: "SQE", 22: "title", 23: "title_value", 24: "acc_title", 25: "acc_title_value", 26: "acc_descr", 27: "acc_descr_value", 28: "acc_descr_multiline_value", 33: "direction_tb", 34: "direction_bt", 35: "direction_rl", 36: "direction_lr", 37: "CLASSDEF", 40: "UNICODE_TEXT", 41: "STYLE_TEXT", 42: "COMMA", 43: "CLASS", 44: "STYLE", 47: "SEMI", 48: "NUM", 49: "BRKT", 50: "ENTITY_NAME", 56: "ATTRIBUTE_WORD", 58: ",", 59: "ATTRIBUTE_KEY", 60: "COMMENT", 63: "ZERO_OR_ONE", 64: "ZERO_OR_MORE", 65: "ONE_OR_MORE", 66: "ONLY_ONE", 67: "MD_PARENT", 68: "NON_IDENTIFYING", 69: "IDENTIFYING", 70: "WORD" },
16
14
  productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 5], [9, 9], [9, 7], [9, 7], [9, 4], [9, 6], [9, 3], [9, 5], [9, 1], [9, 3], [9, 7], [9, 9], [9, 6], [9, 8], [9, 4], [9, 6], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [29, 1], [29, 1], [29, 1], [29, 1], [30, 4], [16, 1], [16, 1], [16, 3], [16, 3], [31, 3], [32, 4], [38, 1], [38, 3], [45, 1], [45, 2], [39, 1], [39, 1], [39, 1], [46, 1], [46, 1], [46, 1], [46, 1], [11, 1], [11, 1], [18, 1], [18, 2], [51, 2], [51, 3], [51, 3], [51, 4], [52, 1], [53, 1], [54, 1], [54, 3], [57, 1], [55, 1], [12, 3], [61, 1], [61, 1], [61, 1], [61, 1], [61, 1], [62, 1], [62, 1], [14, 1], [14, 1], [14, 1]],
17
- performAction: /* @__PURE__ */ u(function(n, a, c, r, p, t, G) {
15
+ performAction: /* @__PURE__ */ u(function(n, a, c, r, p, t, K) {
18
16
  var e = t.length - 1;
19
17
  switch (p) {
20
18
  case 1:
@@ -190,7 +188,7 @@ var dt = function() {
190
188
  break;
191
189
  }
192
190
  }, "anonymous"),
193
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, s(i, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 22: h, 24: d, 26: o, 28: l, 29: 14, 30: 15, 31: 16, 32: 17, 33: f, 34: _, 35: E, 36: w, 37: Z, 40: S, 43: et, 44: U, 50: T }, s(i, [2, 7], { 1: [2, 1] }), s(i, [2, 3]), { 9: 27, 11: 9, 22: h, 24: d, 26: o, 28: l, 29: 14, 30: 15, 31: 16, 32: 17, 33: f, 34: _, 35: E, 36: w, 37: Z, 40: S, 43: et, 44: U, 50: T }, s(i, [2, 5]), s(i, [2, 6]), s(i, [2, 16], { 12: 28, 61: 32, 15: [1, 29], 17: [1, 30], 20: [1, 31], 63: V, 64: st, 65: it, 66: rt, 67: nt }), { 23: [1, 38] }, { 25: [1, 39] }, { 27: [1, 40] }, s(i, [2, 27]), s(i, [2, 28]), s(i, [2, 29]), s(i, [2, 30]), s(i, [2, 31]), s(pt, [2, 54]), s(pt, [2, 55]), s(i, [2, 32]), s(i, [2, 33]), s(i, [2, 34]), s(i, [2, 35]), { 16: 41, 40: O, 41: A }, { 16: 44, 40: O, 41: A }, { 16: 45, 40: O, 41: A }, s(i, [2, 4]), { 11: 46, 40: S, 50: T }, { 16: 47, 40: O, 41: A }, { 18: 48, 19: [1, 49], 51: 50, 52: 51, 56: L }, { 11: 53, 40: S, 50: T }, { 62: 54, 68: [1, 55], 69: [1, 56] }, s(M, [2, 69]), s(M, [2, 70]), s(M, [2, 71]), s(M, [2, 72]), s(M, [2, 73]), s(i, [2, 24]), s(i, [2, 25]), s(i, [2, 26]), { 13: B, 38: 57, 41: F, 42: N, 45: 59, 46: 60, 48: Y, 49: P }, s(j, [2, 37]), s(j, [2, 38]), { 16: 65, 40: O, 41: A, 42: N }, { 13: B, 38: 66, 41: F, 42: N, 45: 59, 46: 60, 48: Y, 49: P }, { 13: [1, 67], 15: [1, 68] }, s(i, [2, 17], { 61: 32, 12: 69, 17: [1, 70], 42: N, 63: V, 64: st, 65: it, 66: rt, 67: nt }), { 19: [1, 71] }, s(i, [2, 14]), { 18: 72, 19: [2, 56], 51: 50, 52: 51, 56: L }, { 53: 73, 56: [1, 74] }, { 56: [2, 62] }, { 21: [1, 75] }, { 61: 76, 63: V, 64: st, 65: it, 66: rt, 67: nt }, s(yt, [2, 74]), s(yt, [2, 75]), { 6: ft, 10: _t, 39: 77, 42: gt, 47: bt }, { 40: [1, 82], 41: [1, 83] }, s(mt, [2, 43], { 46: 84, 13: B, 41: F, 48: Y, 49: P }), s(v, [2, 45]), s(v, [2, 50]), s(v, [2, 51]), s(v, [2, 52]), s(v, [2, 53]), s(i, [2, 41], { 42: N }), { 6: ft, 10: _t, 39: 85, 42: gt, 47: bt }, { 14: 86, 40: W, 50: Q, 70: X }, { 16: 90, 40: O, 41: A }, { 11: 91, 40: S, 50: T }, { 18: 92, 19: [1, 93], 51: 50, 52: 51, 56: L }, s(i, [2, 12]), { 19: [2, 57] }, s(z, [2, 58], { 54: 94, 55: 95, 57: 96, 59: Et, 60: kt }), s([19, 56, 59, 60], [2, 63]), s(i, [2, 22], { 15: [1, 100], 17: [1, 99] }), s([40, 50], [2, 68]), s(i, [2, 36]), { 13: B, 41: F, 45: 101, 46: 60, 48: Y, 49: P }, s(i, [2, 47]), s(i, [2, 48]), s(i, [2, 49]), s(j, [2, 39]), s(j, [2, 40]), s(v, [2, 46]), s(i, [2, 42]), s(i, [2, 8]), s(i, [2, 76]), s(i, [2, 77]), s(i, [2, 78]), { 13: [1, 102], 42: N }, { 13: [1, 104], 15: [1, 103] }, { 19: [1, 105] }, s(i, [2, 15]), s(z, [2, 59], { 55: 106, 58: [1, 107], 60: kt }), s(z, [2, 60]), s(at, [2, 64]), s(z, [2, 67]), s(at, [2, 66]), { 18: 108, 19: [1, 109], 51: 50, 52: 51, 56: L }, { 16: 110, 40: O, 41: A }, s(mt, [2, 44], { 46: 84, 13: B, 41: F, 48: Y, 49: P }), { 14: 111, 40: W, 50: Q, 70: X }, { 16: 112, 40: O, 41: A }, { 14: 113, 40: W, 50: Q, 70: X }, s(i, [2, 13]), s(z, [2, 61]), { 57: 114, 59: Et }, { 19: [1, 115] }, s(i, [2, 20]), s(i, [2, 23], { 17: [1, 116], 42: N }), s(i, [2, 11]), { 13: [1, 117], 42: N }, s(i, [2, 10]), s(at, [2, 65]), s(i, [2, 18]), { 18: 118, 19: [1, 119], 51: 50, 52: 51, 56: L }, { 14: 120, 40: W, 50: Q, 70: X }, { 19: [1, 121] }, s(i, [2, 21]), s(i, [2, 9]), s(i, [2, 19])],
191
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, s(i, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 22: h, 24: d, 26: o, 28: l, 29: 14, 30: 15, 31: 16, 32: 17, 33: f, 34: _, 35: E, 36: V, 37: Z, 40: S, 43: et, 44: U, 50: T }, s(i, [2, 7], { 1: [2, 1] }), s(i, [2, 3]), { 9: 27, 11: 9, 22: h, 24: d, 26: o, 28: l, 29: 14, 30: 15, 31: 16, 32: 17, 33: f, 34: _, 35: E, 36: V, 37: Z, 40: S, 43: et, 44: U, 50: T }, s(i, [2, 5]), s(i, [2, 6]), s(i, [2, 16], { 12: 28, 61: 32, 15: [1, 29], 17: [1, 30], 20: [1, 31], 63: L, 64: st, 65: it, 66: rt, 67: nt }), { 23: [1, 38] }, { 25: [1, 39] }, { 27: [1, 40] }, s(i, [2, 27]), s(i, [2, 28]), s(i, [2, 29]), s(i, [2, 30]), s(i, [2, 31]), s(pt, [2, 54]), s(pt, [2, 55]), s(i, [2, 32]), s(i, [2, 33]), s(i, [2, 34]), s(i, [2, 35]), { 16: 41, 40: O, 41: A }, { 16: 44, 40: O, 41: A }, { 16: 45, 40: O, 41: A }, s(i, [2, 4]), { 11: 46, 40: S, 50: T }, { 16: 47, 40: O, 41: A }, { 18: 48, 19: [1, 49], 51: 50, 52: 51, 56: M }, { 11: 53, 40: S, 50: T }, { 62: 54, 68: [1, 55], 69: [1, 56] }, s(B, [2, 69]), s(B, [2, 70]), s(B, [2, 71]), s(B, [2, 72]), s(B, [2, 73]), s(i, [2, 24]), s(i, [2, 25]), s(i, [2, 26]), { 13: F, 38: 57, 41: Y, 42: N, 45: 59, 46: 60, 48: P, 49: z }, s(j, [2, 37]), s(j, [2, 38]), { 16: 65, 40: O, 41: A, 42: N }, { 13: F, 38: 66, 41: Y, 42: N, 45: 59, 46: 60, 48: P, 49: z }, { 13: [1, 67], 15: [1, 68] }, s(i, [2, 17], { 61: 32, 12: 69, 17: [1, 70], 42: N, 63: L, 64: st, 65: it, 66: rt, 67: nt }), { 19: [1, 71] }, s(i, [2, 14]), { 18: 72, 19: [2, 56], 51: 50, 52: 51, 56: M }, { 53: 73, 56: [1, 74] }, { 56: [2, 62] }, { 21: [1, 75] }, { 61: 76, 63: L, 64: st, 65: it, 66: rt, 67: nt }, s(yt, [2, 74]), s(yt, [2, 75]), { 6: ft, 10: _t, 39: 77, 42: gt, 47: bt }, { 40: [1, 82], 41: [1, 83] }, s(mt, [2, 43], { 46: 84, 13: F, 41: Y, 48: P, 49: z }), s(v, [2, 45]), s(v, [2, 50]), s(v, [2, 51]), s(v, [2, 52]), s(v, [2, 53]), s(i, [2, 41], { 42: N }), { 6: ft, 10: _t, 39: 85, 42: gt, 47: bt }, { 14: 86, 40: W, 50: Q, 70: X }, { 16: 90, 40: O, 41: A }, { 11: 91, 40: S, 50: T }, { 18: 92, 19: [1, 93], 51: 50, 52: 51, 56: M }, s(i, [2, 12]), { 19: [2, 57] }, s(G, [2, 58], { 54: 94, 55: 95, 57: 96, 59: Et, 60: kt }), s([19, 56, 59, 60], [2, 63]), s(i, [2, 22], { 15: [1, 100], 17: [1, 99] }), s([40, 50], [2, 68]), s(i, [2, 36]), { 13: F, 41: Y, 45: 101, 46: 60, 48: P, 49: z }, s(i, [2, 47]), s(i, [2, 48]), s(i, [2, 49]), s(j, [2, 39]), s(j, [2, 40]), s(v, [2, 46]), s(i, [2, 42]), s(i, [2, 8]), s(i, [2, 76]), s(i, [2, 77]), s(i, [2, 78]), { 13: [1, 102], 42: N }, { 13: [1, 104], 15: [1, 103] }, { 19: [1, 105] }, s(i, [2, 15]), s(G, [2, 59], { 55: 106, 58: [1, 107], 60: kt }), s(G, [2, 60]), s(at, [2, 64]), s(G, [2, 67]), s(at, [2, 66]), { 18: 108, 19: [1, 109], 51: 50, 52: 51, 56: M }, { 16: 110, 40: O, 41: A }, s(mt, [2, 44], { 46: 84, 13: F, 41: Y, 48: P, 49: z }), { 14: 111, 40: W, 50: Q, 70: X }, { 16: 112, 40: O, 41: A }, { 14: 113, 40: W, 50: Q, 70: X }, s(i, [2, 13]), s(G, [2, 61]), { 57: 114, 59: Et }, { 19: [1, 115] }, s(i, [2, 20]), s(i, [2, 23], { 17: [1, 116], 42: N }), s(i, [2, 11]), { 13: [1, 117], 42: N }, s(i, [2, 10]), s(at, [2, 65]), s(i, [2, 18]), { 18: 118, 19: [1, 119], 51: 50, 52: 51, 56: M }, { 14: 120, 40: W, 50: Q, 70: X }, { 19: [1, 121] }, s(i, [2, 21]), s(i, [2, 9]), s(i, [2, 19])],
194
192
  defaultActions: { 52: [2, 62], 72: [2, 57] },
195
193
  parseError: /* @__PURE__ */ u(function(n, a) {
196
194
  if (a.recoverable)
@@ -201,14 +199,14 @@ var dt = function() {
201
199
  }
202
200
  }, "parseError"),
203
201
  parse: /* @__PURE__ */ u(function(n) {
204
- var a = this, c = [0], r = [], p = [null], t = [], G = this.table, e = "", H = 0, St = 0, It = 2, Tt = 1, xt = t.slice.call(arguments, 1), y = Object.create(this.lexer), I = { yy: {} };
202
+ var a = this, c = [0], r = [], p = [null], t = [], K = this.table, e = "", H = 0, St = 0, xt = 2, Tt = 1, It = t.slice.call(arguments, 1), y = Object.create(this.lexer), x = { yy: {} };
205
203
  for (var lt in this.yy)
206
- Object.prototype.hasOwnProperty.call(this.yy, lt) && (I.yy[lt] = this.yy[lt]);
207
- y.setInput(n, I.yy), I.yy.lexer = y, I.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
204
+ Object.prototype.hasOwnProperty.call(this.yy, lt) && (x.yy[lt] = this.yy[lt]);
205
+ y.setInput(n, x.yy), x.yy.lexer = y, x.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
208
206
  var ot = y.yylloc;
209
207
  t.push(ot);
210
208
  var vt = y.options && y.options.ranges;
211
- typeof I.yy.parseError == "function" ? this.parseError = I.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
209
+ typeof x.yy.parseError == "function" ? this.parseError = x.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
212
210
  function Ct(b) {
213
211
  c.length = c.length - 2 * b, p.length = p.length - b, t.length = t.length - b;
214
212
  }
@@ -218,12 +216,12 @@ var dt = function() {
218
216
  return b = r.pop() || y.lex() || Tt, typeof b != "number" && (b instanceof Array && (r = b, b = r.pop()), b = a.symbols_[b] || b), b;
219
217
  }
220
218
  u(Ot, "lex");
221
- for (var g, x, m, ht, C = {}, J, k, At, $; ; ) {
222
- if (x = c[c.length - 1], this.defaultActions[x] ? m = this.defaultActions[x] : ((g === null || typeof g > "u") && (g = Ot()), m = G[x] && G[x][g]), typeof m > "u" || !m.length || !m[0]) {
219
+ for (var g, I, m, ht, C = {}, J, k, At, $; ; ) {
220
+ if (I = c[c.length - 1], this.defaultActions[I] ? m = this.defaultActions[I] : ((g === null || typeof g > "u") && (g = Ot()), m = K[I] && K[I][g]), typeof m > "u" || !m.length || !m[0]) {
223
221
  var ut = "";
224
222
  $ = [];
225
- for (J in G[x])
226
- this.terminals_[J] && J > It && $.push("'" + this.terminals_[J] + "'");
223
+ for (J in K[I])
224
+ this.terminals_[J] && J > xt && $.push("'" + this.terminals_[J] + "'");
227
225
  y.showPosition ? ut = "Parse error on line " + (H + 1) + `:
228
226
  ` + y.showPosition() + `
229
227
  Expecting ` + $.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : ut = "Parse error on line " + (H + 1) + ": Unexpected " + (g == Tt ? "end of input" : "'" + (this.terminals_[g] || g) + "'"), this.parseError(ut, {
@@ -235,7 +233,7 @@ Expecting ` + $.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : ut =
235
233
  });
236
234
  }
237
235
  if (m[0] instanceof Array && m.length > 1)
238
- throw new Error("Parse Error: multiple actions possible at state: " + x + ", token: " + g);
236
+ throw new Error("Parse Error: multiple actions possible at state: " + I + ", token: " + g);
239
237
  switch (m[0]) {
240
238
  case 1:
241
239
  c.push(g), p.push(y.yytext), t.push(y.yylloc), c.push(m[1]), g = null, St = y.yyleng, e = y.yytext, H = y.yylineno, ot = y.yylloc;
@@ -253,13 +251,13 @@ Expecting ` + $.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : ut =
253
251
  e,
254
252
  St,
255
253
  H,
256
- I.yy,
254
+ x.yy,
257
255
  m[1],
258
256
  p,
259
257
  t
260
- ].concat(xt)), typeof ht < "u")
258
+ ].concat(It)), typeof ht < "u")
261
259
  return ht;
262
- k && (c = c.slice(0, -1 * k * 2), p = p.slice(0, -1 * k), t = t.slice(0, -1 * k)), c.push(this.productions_[m[1]][0]), p.push(C.$), t.push(C._$), At = G[c[c.length - 2]][c[c.length - 1]], c.push(At);
260
+ k && (c = c.slice(0, -1 * k * 2), p = p.slice(0, -1 * k), t = t.slice(0, -1 * k)), c.push(this.productions_[m[1]][0]), p.push(C.$), t.push(C._$), At = K[c[c.length - 2]][c[c.length - 1]], c.push(At);
263
261
  break;
264
262
  case 3:
265
263
  return !0;
@@ -605,7 +603,7 @@ Expecting ` + $.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : ut =
605
603
  return u(q, "Parser"), q.prototype = ct, ct.Parser = q, new q();
606
604
  }();
607
605
  dt.parser = dt;
608
- var Xt = dt, K, qt = (K = class {
606
+ var Xt = dt, w, qt = (w = class {
609
607
  constructor() {
610
608
  this.entities = /* @__PURE__ */ new Map(), this.relationships = [], this.classes = /* @__PURE__ */ new Map(), this.direction = "TB", this.Cardinality = {
611
609
  ZERO_OR_ONE: "ZERO_OR_ONE",
@@ -750,24 +748,24 @@ var Xt = dt, K, qt = (K = class {
750
748
  }
751
749
  return { nodes: i, edges: h, other: {}, config: d, direction: "TB" };
752
750
  }
753
- }, u(K, "ErDB"), K), Nt = {};
754
- Gt(Nt, {
751
+ }, u(w, "ErDB"), w), Nt = {};
752
+ Kt(Nt, {
755
753
  draw: () => Ht
756
754
  });
757
755
  var Ht = /* @__PURE__ */ u(async function(s, i, h, d) {
758
756
  D.info("REF0:"), D.info("Drawing er diagram (unified)", i);
759
757
  const { securityLevel: o, er: l, layout: f } = tt(), _ = d.db.getData(), E = Dt(i, o);
760
- _.type = d.type, _.layoutAlgorithm = Kt(f), _.config.flowchart.nodeSpacing = (l == null ? void 0 : l.nodeSpacing) || 140, _.config.flowchart.rankSpacing = (l == null ? void 0 : l.rankSpacing) || 80, _.direction = d.db.getDirection(), _.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], _.diagramId = i, await Zt(_, E), _.layoutAlgorithm === "elk" && E.select(".edges").lower();
761
- const w = E.selectAll('[id*="-background"]');
762
- Array.from(w).length > 0 && w.each(function() {
763
- const S = Ut(this), U = S.attr("id").replace("-background", ""), T = E.select(`#${CSS.escape(U)}`);
758
+ _.type = d.type, _.layoutAlgorithm = Zt(f), _.config.flowchart.nodeSpacing = (l == null ? void 0 : l.nodeSpacing) || 140, _.config.flowchart.rankSpacing = (l == null ? void 0 : l.rankSpacing) || 80, _.direction = d.db.getDirection(), _.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], _.diagramId = i, await Ut(_, E), _.layoutAlgorithm === "elk" && E.select(".edges").lower();
759
+ const V = E.selectAll('[id*="-background"]');
760
+ Array.from(V).length > 0 && V.each(function() {
761
+ const S = jt(this), U = S.attr("id").replace("-background", ""), T = E.select(`#${CSS.escape(U)}`);
764
762
  if (!T.empty()) {
765
- const V = T.attr("transform");
766
- S.attr("transform", V);
763
+ const L = T.attr("transform");
764
+ S.attr("transform", L);
767
765
  }
768
766
  });
769
767
  const Z = 8;
770
- jt.insertTitle(
768
+ Wt.insertTitle(
771
769
  E,
772
770
  "erDiagramTitleText",
773
771
  (l == null ? void 0 : l.titleTopMargin) ?? 25,
@@ -775,7 +773,7 @@ var Ht = /* @__PURE__ */ u(async function(s, i, h, d) {
775
773
  ), wt(E, Z, "erDiagram", (l == null ? void 0 : l.useMaxWidth) ?? !0);
776
774
  }, "draw"), Jt = /* @__PURE__ */ u((s, i) => {
777
775
  const h = Qt, d = h(s, "r"), o = h(s, "g"), l = h(s, "b");
778
- return Wt(d, o, l, i);
776
+ return Gt(d, o, l, i);
779
777
  }, "fade"), $t = /* @__PURE__ */ u((s) => `
780
778
  .entityBox {
781
779
  fill: ${s.mainBkg};
@@ -830,7 +828,7 @@ var Ht = /* @__PURE__ */ u(async function(s, i, h, d) {
830
828
  stroke: ${s.lineColor} !important;
831
829
  stroke-width: 1;
832
830
  }
833
- `, "getStyles"), te = $t, ne = {
831
+ `, "getStyles"), te = $t, re = {
834
832
  parser: Xt,
835
833
  get db() {
836
834
  return new qt();
@@ -839,5 +837,5 @@ var Ht = /* @__PURE__ */ u(async function(s, i, h, d) {
839
837
  styles: te
840
838
  };
841
839
  export {
842
- ne as diagram
840
+ re as diagram
843
841
  };