@ucap-llm/ai-ui 1.1.13 → 1.1.15

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 (111) hide show
  1. package/_basePickBy-DMehTBs0-8955b30b.mjs +151 -0
  2. package/_basePickBy-e7598e72.mjs +153 -0
  3. package/{_baseUniq-2bcae05e.mjs → _baseUniq-8cd7fbc4.mjs} +150 -150
  4. package/_baseUniq-DPnX6tpB-5eb6efbd.mjs +615 -0
  5. package/ai-ui.es.js +9 -8
  6. package/ai-ui.umd.js +3425 -923
  7. package/arc-8909f880.mjs +85 -0
  8. package/arc-qimaJRLH-591a6072.mjs +85 -0
  9. package/architecture-4AB2E3PP-DFmEpUnA-62fe65dd.mjs +10 -0
  10. package/architecture-4AB2E3PP-b04ae9dd.mjs +10 -0
  11. package/{architectureDiagram-IEHRJDOE-e4684ef3.mjs → architectureDiagram-IEHRJDOE-1ccc2c64.mjs} +123 -123
  12. package/architectureDiagram-IEHRJDOE-BRVAVUEE-c068faae.mjs +4641 -0
  13. package/{blockDiagram-JOT3LUYC-504ee31e.mjs → blockDiagram-JOT3LUYC-63569de5.mjs} +5 -5
  14. package/blockDiagram-JOT3LUYC-Cs4tSRey-54d8e29b.mjs +2251 -0
  15. package/{c4Diagram-VJAJSXHY-c5ba6af4.mjs → c4Diagram-VJAJSXHY-355a4170.mjs} +23 -23
  16. package/c4Diagram-VJAJSXHY-C3F9fO0L-0df97cd8.mjs +1583 -0
  17. package/channel-CuHzivgY-bb3d765a.mjs +5 -0
  18. package/channel-a1f4f18c.mjs +5 -0
  19. package/{chunk-4BMEZGHF-8d9a2e4f.mjs → chunk-4BMEZGHF-705995af.mjs} +1 -1
  20. package/chunk-4BMEZGHF-btTOjzEX-c9c5432c.mjs +9 -0
  21. package/{chunk-A2AXSNBT-41ae29f2.mjs → chunk-A2AXSNBT-3a857566.mjs} +10 -10
  22. package/chunk-A2AXSNBT-CPBZRsS7-a80df701.mjs +1373 -0
  23. package/{chunk-AEK57VVT-69e121d6.mjs → chunk-AEK57VVT-6c60e1ee.mjs} +45 -45
  24. package/chunk-AEK57VVT-D62Iwyam-238a3d85.mjs +1361 -0
  25. package/{chunk-D6G4REZN-472adc5b.mjs → chunk-D6G4REZN-11c52918.mjs} +5 -5
  26. package/chunk-D6G4REZN-HlFmQTJy-20704636.mjs +64 -0
  27. package/chunk-RZ5BOZE2-DIFgOqDt-495bec03.mjs +24 -0
  28. package/{chunk-RZ5BOZE2-b7d5d4f5.mjs → chunk-RZ5BOZE2-d6db8103.mjs} +9 -9
  29. package/chunk-XZIHB7SX-CCrbsG0u-f30e4124.mjs +15 -0
  30. package/{chunk-XZIHB7SX-56c08d07.mjs → chunk-XZIHB7SX-fafd3ca2.mjs} +1 -1
  31. package/classDiagram-GIVACNV2-Bv5U0XPL-622b22ed.mjs +18 -0
  32. package/{classDiagram-v2-COTLJTTW-1deea5cc.mjs → classDiagram-GIVACNV2-eca9aeb6.mjs} +5 -5
  33. package/classDiagram-v2-COTLJTTW-Bv5U0XPL-622b22ed.mjs +18 -0
  34. package/{classDiagram-GIVACNV2-1deea5cc.mjs → classDiagram-v2-COTLJTTW-eca9aeb6.mjs} +5 -5
  35. package/{clone-1f18a17f.mjs → clone-327a1426.mjs} +1 -1
  36. package/clone-Csc9uFbU-6c4f28bd.mjs +8 -0
  37. package/cytoscape.esm-Swd9B-1A-3101f241.mjs +18730 -0
  38. package/{dagre-OKDRZEBW-74e73dcf.mjs → dagre-OKDRZEBW-9059bb36.mjs} +81 -81
  39. package/dagre-OKDRZEBW-CoMQYlxF-96274fb0.mjs +448 -0
  40. package/{diagram-SSKATNLV-1a562cb0.mjs → diagram-SSKATNLV-70f68e72.mjs} +34 -34
  41. package/diagram-SSKATNLV-CPuZUaGP-50edcaa0.mjs +225 -0
  42. package/{diagram-VNBRO52H-b765e46f.mjs → diagram-VNBRO52H-39273710.mjs} +35 -35
  43. package/diagram-VNBRO52H-DIIZ-Sll-969266e6.mjs +130 -0
  44. package/{erDiagram-Q7BY3M3F-022c4343.mjs → erDiagram-Q7BY3M3F-96ba3906.mjs} +3 -3
  45. package/erDiagram-Q7BY3M3F-ZKWAM_uE-41c0350d.mjs +843 -0
  46. package/{flowDiagram-4HSFHLVR-6036e284.mjs → flowDiagram-4HSFHLVR-795e3830.mjs} +29 -29
  47. package/flowDiagram-4HSFHLVR-CUJXGEG3-801dde13.mjs +1624 -0
  48. package/{ganttDiagram-APWFNJXF-be871387.mjs → ganttDiagram-APWFNJXF-736e67b6.mjs} +398 -398
  49. package/ganttDiagram-APWFNJXF-C1pgubbs-20beffc3.mjs +2527 -0
  50. package/gitGraph-O2Q2CXLX-00465db9.mjs +10 -0
  51. package/gitGraph-O2Q2CXLX-BYavwGzs-e5f1990e.mjs +10 -0
  52. package/{gitGraphDiagram-7IBYFJ6S-da63c888.mjs → gitGraphDiagram-7IBYFJ6S-115329ab.mjs} +88 -88
  53. package/gitGraphDiagram-7IBYFJ6S-CndxirR4-b39d4089.mjs +716 -0
  54. package/{graph-e71f0e3e.mjs → graph-9e073c5f.mjs} +8 -8
  55. package/graph-DOmtxVvg-727f4e14.mjs +247 -0
  56. package/index-433e2395.mjs +168385 -0
  57. package/info-4N47QTOZ-688db415.mjs +10 -0
  58. package/info-4N47QTOZ-DPyDFN1Z-821cf2f7.mjs +10 -0
  59. package/{infoDiagram-PH2N3AL5-3e1c1c1f.mjs → infoDiagram-PH2N3AL5-29e9585a.mjs} +9 -9
  60. package/infoDiagram-PH2N3AL5-BkSS3vpU-ef4bf66d.mjs +26 -0
  61. package/init-DjUOC4st-87c930f1.mjs +16 -0
  62. package/{journeyDiagram-U35MCT3I-6d29748d.mjs → journeyDiagram-U35MCT3I-7c5644d1.mjs} +41 -41
  63. package/journeyDiagram-U35MCT3I-BN-kCDeJ-ac350902.mjs +811 -0
  64. package/{kanban-definition-NDS4AKOZ-c231ae4c.mjs → kanban-definition-NDS4AKOZ-eff441f9.mjs} +47 -47
  65. package/kanban-definition-NDS4AKOZ-gaDUOiKt-efdba942.mjs +720 -0
  66. package/{layout-b9b9e407.mjs → layout-501d22f0.mjs} +19 -19
  67. package/layout-8X5HiOVA-b6e13cf9.mjs +1323 -0
  68. package/linear-BgV5F0PU-8137edad.mjs +447 -0
  69. package/{linear-99040ddc.mjs → linear-fd3cd932.mjs} +56 -56
  70. package/{mermaid-parser.core-55f134dc.mjs → mermaid-parser.core-6eb44241.mjs} +160 -160
  71. package/mermaid-parser.core-BTS3sfcL-8c80284a.mjs +12810 -0
  72. package/{mindmap-definition-ALO5MXBD-938e2e65.mjs → mindmap-definition-ALO5MXBD-2fe3c748.mjs} +1 -1
  73. package/mindmap-definition-ALO5MXBD-B8q_1sIj-c3599d3c.mjs +3225 -0
  74. package/ordinal-DfAQgscy-1c8e46a9.mjs +65 -0
  75. package/package.json +2 -2
  76. package/packet-KVYON367-DcfdOX-U-afac932a.mjs +10 -0
  77. package/packet-KVYON367-c82af3fe.mjs +10 -0
  78. package/pie-R6RNRRYF-DKruFncB-d07f60c2.mjs +10 -0
  79. package/pie-R6RNRRYF-eb27797b.mjs +10 -0
  80. package/pieDiagram-IB7DONF6-Bijui6_Q-db9fdf3a.mjs +166 -0
  81. package/{pieDiagram-IB7DONF6-6a11673b.mjs → pieDiagram-IB7DONF6-e6863984.mjs} +36 -36
  82. package/{quadrantDiagram-7GDLP6J5-a4a4d9ac.mjs → quadrantDiagram-7GDLP6J5-88df12c2.mjs} +15 -15
  83. package/quadrantDiagram-7GDLP6J5-DzIzViUj-b13add98.mjs +1027 -0
  84. package/radar-MK3ICKWK-723229d0.mjs +10 -0
  85. package/radar-MK3ICKWK-D8wbkmr5-3165faf6.mjs +10 -0
  86. package/{requirementDiagram-KVF5MWMF-a7093c74.mjs → requirementDiagram-KVF5MWMF-7228051c.mjs} +50 -50
  87. package/requirementDiagram-KVF5MWMF-Hqsbdpfq-23374f24.mjs +853 -0
  88. package/{sankeyDiagram-QLVOVGJD-f4bcbb2d.mjs → sankeyDiagram-QLVOVGJD-00a31a99.mjs} +87 -87
  89. package/sankeyDiagram-QLVOVGJD-DGCeusqJ-8ca7e64d.mjs +826 -0
  90. package/{sequenceDiagram-X6HHIX6F-9071cfff.mjs → sequenceDiagram-X6HHIX6F-de203309.mjs} +3 -3
  91. package/sequenceDiagram-X6HHIX6F-kuEE9wSd-5f0ec5cd.mjs +2283 -0
  92. package/{stateDiagram-DGXRK772-fb22a7a5.mjs → stateDiagram-DGXRK772-2341237a.mjs} +48 -48
  93. package/stateDiagram-DGXRK772-Cq-Ce3WP-266efa7f.mjs +274 -0
  94. package/{stateDiagram-v2-YXO3MK2T-67326b76.mjs → stateDiagram-v2-YXO3MK2T-8c81deed.mjs} +5 -5
  95. package/stateDiagram-v2-YXO3MK2T-CplwFWn1-c0024e4e.mjs +18 -0
  96. package/style.css +10 -1
  97. package/timeline-definition-BDJGKUSR-USv5sZzx-22548912.mjs +806 -0
  98. package/{timeline-definition-BDJGKUSR-44f50d45.mjs → timeline-definition-BDJGKUSR-e615901b.mjs} +79 -79
  99. package/{xychartDiagram-VJFVF3MP-2df503f6.mjs → xychartDiagram-VJFVF3MP-9ad66a6b.mjs} +28 -28
  100. package/xychartDiagram-VJFVF3MP-CXCfFZBM-e5ca151e.mjs +1306 -0
  101. package/_basePickBy-12958109.mjs +0 -153
  102. package/arc-14f9a207.mjs +0 -85
  103. package/architecture-4AB2E3PP-bb512ddb.mjs +0 -10
  104. package/channel-7bd711b4.mjs +0 -5
  105. package/gitGraph-O2Q2CXLX-83cfcbef.mjs +0 -10
  106. package/index-f83d4b07.mjs +0 -97448
  107. package/info-4N47QTOZ-20cf90f5.mjs +0 -10
  108. package/katex-2e45926a.mjs +0 -11700
  109. package/packet-KVYON367-453a49e8.mjs +0 -10
  110. package/pie-R6RNRRYF-4d95c8dc.mjs +0 -10
  111. package/radar-MK3ICKWK-100e8fa4.mjs +0 -10
@@ -1,24 +1,24 @@
1
- import { s as W, S as N, a as P } from "./chunk-AEK57VVT-69e121d6.mjs";
2
- import { _ as u, d as t, j as H, l as S, k as C, e as z, Q as U, R as F, u as O } from "./index-f83d4b07.mjs";
3
- import { G as J } from "./graph-e71f0e3e.mjs";
4
- import { l as X } from "./layout-b9b9e407.mjs";
5
- import "./chunk-RZ5BOZE2-b7d5d4f5.mjs";
1
+ import { s as _, S as N, a as P } from "./chunk-AEK57VVT-6c60e1ee.mjs";
2
+ import { bz as u, bF as t, bL as H, bM as S, bN as C, bH as T, cx as F, cy as U, bV as O } from "./index-433e2395.mjs";
3
+ import { G as J } from "./graph-9e073c5f.mjs";
4
+ import { l as X } from "./layout-501d22f0.mjs";
5
+ import "./chunk-RZ5BOZE2-d6db8103.mjs";
6
6
  import "vue";
7
- import "./_baseUniq-2bcae05e.mjs";
8
- import "./_basePickBy-12958109.mjs";
7
+ import "./_baseUniq-8cd7fbc4.mjs";
8
+ import "./_basePickBy-e7598e72.mjs";
9
9
  var L = {}, D = /* @__PURE__ */ u((e, i) => {
10
10
  L[e] = i;
11
- }, "set"), Y = /* @__PURE__ */ u((e) => L[e], "get"), A = /* @__PURE__ */ u(() => Object.keys(L), "keys"), I = /* @__PURE__ */ u(() => A().length, "size"), $ = {
11
+ }, "set"), Y = /* @__PURE__ */ u((e) => L[e], "get"), R = /* @__PURE__ */ u(() => Object.keys(L), "keys"), I = /* @__PURE__ */ u(() => R().length, "size"), $ = {
12
12
  get: Y,
13
13
  set: D,
14
- keys: A,
14
+ keys: R,
15
15
  size: I
16
- }, j = /* @__PURE__ */ u((e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), "drawStartState"), q = /* @__PURE__ */ u((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), Q = /* @__PURE__ */ u((e, i) => {
16
+ }, j = /* @__PURE__ */ u((e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), "drawStartState"), q = /* @__PURE__ */ u((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), V = /* @__PURE__ */ u((e, i) => {
17
17
  const d = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), o = d.node().getBBox();
18
18
  return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", o.width + 2 * t().state.padding).attr("height", o.height + 2 * t().state.padding).attr("rx", t().state.radius), d;
19
19
  }, "drawSimpleState"), Z = /* @__PURE__ */ u((e, i) => {
20
- const d = /* @__PURE__ */ u(function(l, B, m) {
21
- const k = l.append("tspan").attr("x", 2 * t().state.padding).text(B);
20
+ const d = /* @__PURE__ */ u(function(l, b, m) {
21
+ const k = l.append("tspan").attr("x", 2 * t().state.padding).text(b);
22
22
  m || k.attr("dy", t().state.textHeight);
23
23
  }, "addTspan"), n = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 1.3 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.descriptions[0]).node().getBBox(), g = n.height, x = e.append("text").attr("x", t().state.padding).attr(
24
24
  "y",
@@ -35,20 +35,20 @@ var L = {}, D = /* @__PURE__ */ u((e, i) => {
35
35
  let c = Math.max(p, x);
36
36
  c === x && (c = c + n);
37
37
  let l;
38
- const B = e.node().getBBox();
39
- i.doc, l = a - o, p > x && (l = (x - c) / 2 + o), Math.abs(a - B.x) < o && p > x && (l = a - (p - x) / 2);
38
+ const b = e.node().getBBox();
39
+ i.doc, l = a - o, p > x && (l = (x - c) / 2 + o), Math.abs(a - b.x) < o && p > x && (l = a - (p - x) / 2);
40
40
  const m = 1 - t().state.textHeight;
41
41
  return e.insert("rect", ":first-child").attr("x", l).attr("y", m).attr("class", d ? "alt-composit" : "composit").attr("width", c).attr(
42
42
  "height",
43
- B.height + t().state.textHeight + t().state.titleShift + 1
43
+ b.height + t().state.textHeight + t().state.titleShift + 1
44
44
  ).attr("rx", "0"), s.attr("x", l + o), p <= x && s.attr("x", a + (c - n) / 2 - p / 2 + o), e.insert("rect", ":first-child").attr("x", l).attr(
45
45
  "y",
46
46
  t().state.titleShift - t().state.textHeight - t().state.padding
47
47
  ).attr("width", c).attr("height", t().state.textHeight * 3).attr("rx", t().state.radius), e.insert("rect", ":first-child").attr("x", l).attr(
48
48
  "y",
49
49
  t().state.titleShift - t().state.textHeight - t().state.padding
50
- ).attr("width", c).attr("height", B.height + 3 + 2 * t().state.textHeight).attr("rx", t().state.radius), e;
51
- }, "addTitleAndBox"), V = /* @__PURE__ */ u((e) => (e.append("circle").attr("class", "end-state-outer").attr("r", t().state.sizeUnit + t().state.miniPadding).attr(
50
+ ).attr("width", c).attr("height", b.height + 3 + 2 * t().state.textHeight).attr("rx", t().state.radius), e;
51
+ }, "addTitleAndBox"), Q = /* @__PURE__ */ u((e) => (e.append("circle").attr("class", "end-state-outer").attr("r", t().state.sizeUnit + t().state.miniPadding).attr(
52
52
  "cx",
53
53
  t().state.padding + t().state.sizeUnit + t().state.miniPadding
54
54
  ).attr(
@@ -67,7 +67,7 @@ var L = {}, D = /* @__PURE__ */ u((e, i) => {
67
67
  g.style("text-anchor", "start"), g.attr("class", "noteText");
68
68
  let x = e.replace(/\r\n/g, "<br/>");
69
69
  x = x.replace(/\n/g, "<br/>");
70
- const a = x.split(z.lineBreakRegex);
70
+ const a = x.split(T.lineBreakRegex);
71
71
  let s = 1.25 * t().state.noteMargin;
72
72
  for (const y of a) {
73
73
  const p = y.trim();
@@ -85,17 +85,17 @@ var L = {}, D = /* @__PURE__ */ u((e, i) => {
85
85
  i.attr("class", "state-note");
86
86
  const d = i.append("rect").attr("x", 0).attr("y", t().state.padding), o = i.append("g"), { textWidth: n, textHeight: g } = et(e, 0, 0, o);
87
87
  return d.attr("height", g + 2 * t().state.noteMargin), d.attr("width", n + t().state.noteMargin * 2), d;
88
- }, "drawNote"), R = /* @__PURE__ */ u(function(e, i) {
88
+ }, "drawNote"), A = /* @__PURE__ */ u(function(e, i) {
89
89
  const d = i.id, o = {
90
90
  id: d,
91
91
  label: i.id,
92
92
  width: 0,
93
93
  height: 0
94
94
  }, n = e.append("g").attr("id", d).attr("class", "stateGroup");
95
- i.type === "start" && j(n), i.type === "end" && V(n), (i.type === "fork" || i.type === "join") && tt(n, i), i.type === "note" && at(i.note.text, n), i.type === "divider" && q(n), i.type === "default" && i.descriptions.length === 0 && Q(n, i), i.type === "default" && i.descriptions.length > 0 && Z(n, i);
95
+ i.type === "start" && j(n), i.type === "end" && Q(n), (i.type === "fork" || i.type === "join") && tt(n, i), i.type === "note" && at(i.note.text, n), i.type === "divider" && q(n), i.type === "default" && i.descriptions.length === 0 && V(n, i), i.type === "default" && i.descriptions.length > 0 && Z(n, i);
96
96
  const g = n.node().getBBox();
97
97
  return o.width = g.width + 2 * t().state.padding, o.height = g.height + 2 * t().state.padding, $.set(d, o), o;
98
- }, "drawState"), _ = 0, it = /* @__PURE__ */ u(function(e, i, d) {
98
+ }, "drawState"), G = 0, it = /* @__PURE__ */ u(function(e, i, d) {
99
99
  const o = /* @__PURE__ */ u(function(s) {
100
100
  switch (s) {
101
101
  case N.relationType.AGGREGATION:
@@ -109,38 +109,38 @@ var L = {}, D = /* @__PURE__ */ u((e, i) => {
109
109
  }
110
110
  }, "getRelationType");
111
111
  i.points = i.points.filter((s) => !Number.isNaN(s.y));
112
- const n = i.points, g = U().x(function(s) {
112
+ const n = i.points, g = F().x(function(s) {
113
113
  return s.x;
114
114
  }).y(function(s) {
115
115
  return s.y;
116
- }).curve(F), x = e.append("path").attr("d", g(n)).attr("id", "edge" + _).attr("class", "transition");
116
+ }).curve(U), x = e.append("path").attr("d", g(n)).attr("id", "edge" + G).attr("class", "transition");
117
117
  let a = "";
118
118
  if (t().state.arrowMarkerAbsolute && (a = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, a = a.replace(/\(/g, "\\("), a = a.replace(/\)/g, "\\)")), x.attr(
119
119
  "marker-end",
120
120
  "url(" + a + "#" + o(N.relationType.DEPENDENCY) + "End)"
121
121
  ), d.title !== void 0) {
122
- const s = e.append("g").attr("class", "stateLabel"), { x: y, y: p } = O.calcLabelPosition(i.points), c = z.getRows(d.title);
122
+ const s = e.append("g").attr("class", "stateLabel"), { x: y, y: p } = O.calcLabelPosition(i.points), c = T.getRows(d.title);
123
123
  let l = 0;
124
- const B = [];
124
+ const b = [];
125
125
  let m = 0, k = 0;
126
126
  for (let f = 0; f <= c.length; f++) {
127
127
  const h = s.append("text").attr("text-anchor", "middle").text(c[f]).attr("x", y).attr("y", p + l), w = h.node().getBBox();
128
- m = Math.max(m, w.width), k = Math.min(k, w.x), S.info(w.x, y, p + l), l === 0 && (l = h.node().getBBox().height, S.info("Title height", l, p)), B.push(h);
128
+ m = Math.max(m, w.width), k = Math.min(k, w.x), S.info(w.x, y, p + l), l === 0 && (l = h.node().getBBox().height, S.info("Title height", l, p)), b.push(h);
129
129
  }
130
130
  let E = l * c.length;
131
131
  if (c.length > 1) {
132
132
  const f = (c.length - 1) * l * 0.5;
133
- B.forEach((h, w) => h.attr("y", p + w * l - f)), E = l * c.length;
133
+ b.forEach((h, w) => h.attr("y", p + w * l - f)), E = l * c.length;
134
134
  }
135
135
  const r = s.node().getBBox();
136
136
  s.insert("rect", ":first-child").attr("class", "box").attr("x", y - m / 2 - t().state.padding / 2).attr("y", p - E / 2 - t().state.padding / 2 - 3.5).attr("width", m + t().state.padding).attr("height", E + t().state.padding), S.info(r);
137
137
  }
138
- _++;
139
- }, "drawEdge"), b, T = {}, rt = /* @__PURE__ */ u(function() {
138
+ G++;
139
+ }, "drawEdge"), B, z = {}, rt = /* @__PURE__ */ u(function() {
140
140
  }, "setConf"), nt = /* @__PURE__ */ u(function(e) {
141
141
  e.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
142
142
  }, "insertMarkers"), st = /* @__PURE__ */ u(function(e, i, d, o) {
143
- b = t().state;
143
+ B = t().state;
144
144
  const n = t().securityLevel;
145
145
  let g;
146
146
  n === "sandbox" && (g = H("#i" + i));
@@ -149,13 +149,13 @@ var L = {}, D = /* @__PURE__ */ u((e, i) => {
149
149
  const s = x.select(`[id='${i}']`);
150
150
  nt(s);
151
151
  const y = o.db.getRootDoc();
152
- G(y, s, void 0, !1, x, a, o);
153
- const p = b.padding, c = s.node().getBBox(), l = c.width + p * 2, B = c.height + p * 2, m = l * 1.75;
154
- C(s, B, m, b.useMaxWidth), s.attr(
152
+ W(y, s, void 0, !1, x, a, o);
153
+ const p = B.padding, c = s.node().getBBox(), l = c.width + p * 2, b = c.height + p * 2, m = l * 1.75;
154
+ C(s, b, m, B.useMaxWidth), s.attr(
155
155
  "viewBox",
156
- `${c.x - b.padding} ${c.y - b.padding} ` + l + " " + B
156
+ `${c.x - B.padding} ${c.y - B.padding} ` + l + " " + b
157
157
  );
158
- }, "draw"), dt = /* @__PURE__ */ u((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"), G = /* @__PURE__ */ u((e, i, d, o, n, g, x) => {
158
+ }, "draw"), dt = /* @__PURE__ */ u((e) => e ? e.length * B.fontSizeFactor : 1, "getLabelWidth"), W = /* @__PURE__ */ u((e, i, d, o, n, g, x) => {
159
159
  const a = new J({
160
160
  compound: !0,
161
161
  multigraph: !0
@@ -172,7 +172,7 @@ var L = {}, D = /* @__PURE__ */ u((e, i) => {
172
172
  compound: !0,
173
173
  // acyclicer: 'greedy',
174
174
  ranker: "tight-tree",
175
- ranksep: y ? 1 : b.edgeLengthFactor,
175
+ ranksep: y ? 1 : B.edgeLengthFactor,
176
176
  nodeSep: y ? 1 : 50,
177
177
  isMultiGraph: !0
178
178
  // ranksep: 5,
@@ -184,7 +184,7 @@ var L = {}, D = /* @__PURE__ */ u((e, i) => {
184
184
  // isCompound: true,
185
185
  // acyclicer: 'greedy',
186
186
  // ranker: 'longest-path'
187
- ranksep: y ? 1 : b.edgeLengthFactor,
187
+ ranksep: y ? 1 : B.edgeLengthFactor,
188
188
  nodeSep: y ? 1 : 50,
189
189
  ranker: "tight-tree",
190
190
  // ranker: 'network-simplex'
@@ -199,45 +199,45 @@ var L = {}, D = /* @__PURE__ */ u((e, i) => {
199
199
  let h;
200
200
  if (f.doc) {
201
201
  let w = i.append("g").attr("id", f.id).attr("class", "stateGroup");
202
- h = G(f.doc, w, f.id, !o, n, g, x);
202
+ h = W(f.doc, w, f.id, !o, n, g, x);
203
203
  {
204
204
  w = K(w, f, o);
205
205
  let v = w.node().getBBox();
206
- h.width = v.width, h.height = v.height + b.padding / 2, T[f.id] = { y: b.compositTitleSize };
206
+ h.width = v.width, h.height = v.height + B.padding / 2, z[f.id] = { y: B.compositTitleSize };
207
207
  }
208
208
  } else
209
- h = R(i, f, a);
209
+ h = A(i, f, a);
210
210
  if (f.note) {
211
211
  const w = {
212
212
  descriptions: [],
213
213
  id: f.id + "-note",
214
214
  note: f.note,
215
215
  type: "note"
216
- }, v = R(i, w, a);
216
+ }, v = A(i, w, a);
217
217
  f.note.position === "left of" ? (a.setNode(h.id + "-note", v), a.setNode(h.id, h)) : (a.setNode(h.id, h), a.setNode(h.id + "-note", v)), a.setParent(h.id, h.id + "-group"), a.setParent(h.id + "-note", h.id + "-group");
218
218
  } else
219
219
  a.setNode(h.id, h);
220
220
  }
221
221
  S.debug("Count=", a.nodeCount(), a);
222
- let B = 0;
222
+ let b = 0;
223
223
  c.forEach(function(r) {
224
- B++, S.debug("Setting edge", r), a.setEdge(
224
+ b++, S.debug("Setting edge", r), a.setEdge(
225
225
  r.id1,
226
226
  r.id2,
227
227
  {
228
228
  relation: r,
229
229
  width: dt(r.title),
230
- height: b.labelHeight * z.getRows(r.title).length,
230
+ height: B.labelHeight * T.getRows(r.title).length,
231
231
  labelpos: "c"
232
232
  },
233
- "id" + B
233
+ "id" + b
234
234
  );
235
235
  }), X(a), S.debug("Graph after layout", a.nodes());
236
236
  const m = i.node();
237
237
  a.nodes().forEach(function(r) {
238
238
  r !== void 0 && a.node(r) !== void 0 ? (S.warn("Node " + r + ": " + JSON.stringify(a.node(r))), n.select("#" + m.id + " #" + r).attr(
239
239
  "transform",
240
- "translate(" + (a.node(r).x - a.node(r).width / 2) + "," + (a.node(r).y + (T[r] ? T[r].y : 0) - a.node(r).height / 2) + " )"
240
+ "translate(" + (a.node(r).x - a.node(r).width / 2) + "," + (a.node(r).y + (z[r] ? z[r].y : 0) - a.node(r).height / 2) + " )"
241
241
  ), n.select("#" + m.id + " #" + r).attr("data-x-shift", a.node(r).x - a.node(r).width / 2), g.querySelectorAll("#" + m.id + " #" + r + " .divider").forEach((h) => {
242
242
  const w = h.parentElement;
243
243
  let v = 0, M = 0;
@@ -254,12 +254,12 @@ var L = {}, D = /* @__PURE__ */ u((e, i) => {
254
254
  width: 0,
255
255
  height: 0
256
256
  };
257
- return E.width = k.width + 2 * b.padding, E.height = k.height + 2 * b.padding, S.debug("Doc rendered", E, a), E;
257
+ return E.width = k.width + 2 * B.padding, E.height = k.height + 2 * B.padding, S.debug("Doc rendered", E, a), E;
258
258
  }, "renderDoc"), ot = {
259
259
  setConf: rt,
260
260
  draw: st
261
261
  }, wt = {
262
- parser: W,
262
+ parser: _,
263
263
  get db() {
264
264
  return new N(1);
265
265
  },
@@ -0,0 +1,274 @@
1
+ import { X as R, J as v, q as O } from "./chunk-AEK57VVT-D62Iwyam-238a3d85.mjs";
2
+ import { v as f, l as t, e as M, J as E, X as P, T, ab as U, am as I, q as C } from "./index-433e2395.mjs";
3
+ import { L as J } from "./graph-DOmtxVvg-727f4e14.mjs";
4
+ import { o as W } from "./layout-8X5HiOVA-b6e13cf9.mjs";
5
+ import "./chunk-RZ5BOZE2-DIFgOqDt-495bec03.mjs";
6
+ import "vue";
7
+ import "./_baseUniq-DPnX6tpB-5eb6efbd.mjs";
8
+ import "./_basePickBy-DMehTBs0-8955b30b.mjs";
9
+ var H = {}, $ = /* @__PURE__ */ f((e, n) => {
10
+ H[e] = n;
11
+ }, "set"), X = /* @__PURE__ */ f((e) => H[e], "get"), A = /* @__PURE__ */ f(() => Object.keys(H), "keys"), q = /* @__PURE__ */ f(() => A().length, "size"), j = {
12
+ get: X,
13
+ set: $,
14
+ keys: A,
15
+ size: q
16
+ }, F = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), "drawStartState"), Y = /* @__PURE__ */ f((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), Z = /* @__PURE__ */ f((e, n) => {
17
+ const o = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(n.id), r = o.node().getBBox();
18
+ return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", r.width + 2 * t().state.padding).attr("height", r.height + 2 * t().state.padding).attr("rx", t().state.radius), o;
19
+ }, "drawSimpleState"), _ = /* @__PURE__ */ f((e, n) => {
20
+ const o = /* @__PURE__ */ f(function(g, u, B) {
21
+ const m = g.append("tspan").attr("x", 2 * t().state.padding).text(u);
22
+ B || m.attr("dy", t().state.textHeight);
23
+ }, "addTspan"), r = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 1.3 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(n.descriptions[0]).node().getBBox(), d = r.height, h = e.append("text").attr("x", t().state.padding).attr(
24
+ "y",
25
+ d + t().state.padding * 0.4 + t().state.dividerMargin + t().state.textHeight
26
+ ).attr("class", "state-description");
27
+ let l = !0, a = !0;
28
+ n.descriptions.forEach(function(g) {
29
+ l || (o(h, g, a), a = !1), l = !1;
30
+ });
31
+ const s = e.append("line").attr("x1", t().state.padding).attr("y1", t().state.padding + d + t().state.dividerMargin / 2).attr("y2", t().state.padding + d + t().state.dividerMargin / 2).attr("class", "descr-divider"), x = h.node().getBBox(), c = Math.max(x.width, r.width);
32
+ return s.attr("x2", c + 3 * t().state.padding), e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", c + 2 * t().state.padding).attr("height", x.height + d + 2 * t().state.padding).attr("rx", t().state.radius), e;
33
+ }, "drawDescrState"), K = /* @__PURE__ */ f((e, n, o) => {
34
+ const r = t().state.padding, d = 2 * t().state.padding, h = e.node().getBBox(), l = h.width, a = h.x, s = e.append("text").attr("x", 0).attr("y", t().state.titleShift).attr("font-size", t().state.fontSize).attr("class", "state-title").text(n.id), x = s.node().getBBox().width + d;
35
+ let c = Math.max(x, l);
36
+ c === l && (c = c + d);
37
+ let g;
38
+ const u = e.node().getBBox();
39
+ n.doc, g = a - r, x > l && (g = (l - c) / 2 + r), Math.abs(a - u.x) < r && x > l && (g = a - (x - l) / 2);
40
+ const B = 1 - t().state.textHeight;
41
+ return e.insert("rect", ":first-child").attr("x", g).attr("y", B).attr("class", o ? "alt-composit" : "composit").attr("width", c).attr(
42
+ "height",
43
+ u.height + t().state.textHeight + t().state.titleShift + 1
44
+ ).attr("rx", "0"), s.attr("x", g + r), x <= l && s.attr("x", a + (c - d) / 2 - x / 2 + r), e.insert("rect", ":first-child").attr("x", g).attr(
45
+ "y",
46
+ t().state.titleShift - t().state.textHeight - t().state.padding
47
+ ).attr("width", c).attr("height", t().state.textHeight * 3).attr("rx", t().state.radius), e.insert("rect", ":first-child").attr("x", g).attr(
48
+ "y",
49
+ t().state.titleShift - t().state.textHeight - t().state.padding
50
+ ).attr("width", c).attr("height", u.height + 3 + 2 * t().state.textHeight).attr("rx", t().state.radius), e;
51
+ }, "addTitleAndBox"), Q = /* @__PURE__ */ f((e) => (e.append("circle").attr("class", "end-state-outer").attr("r", t().state.sizeUnit + t().state.miniPadding).attr(
52
+ "cx",
53
+ t().state.padding + t().state.sizeUnit + t().state.miniPadding
54
+ ).attr(
55
+ "cy",
56
+ t().state.padding + t().state.sizeUnit + t().state.miniPadding
57
+ ), e.append("circle").attr("class", "end-state-inner").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit + 2).attr("cy", t().state.padding + t().state.sizeUnit + 2)), "drawEndState"), V = /* @__PURE__ */ f((e, n) => {
58
+ let o = t().state.forkWidth, r = t().state.forkHeight;
59
+ if (n.parentId) {
60
+ let d = o;
61
+ o = r, r = d;
62
+ }
63
+ return e.append("rect").style("stroke", "black").style("fill", "black").attr("width", o).attr("height", r).attr("x", t().state.padding).attr("y", t().state.padding);
64
+ }, "drawForkJoinState"), tt = /* @__PURE__ */ f((e, n, o, r) => {
65
+ let d = 0;
66
+ const h = r.append("text");
67
+ h.style("text-anchor", "start"), h.attr("class", "noteText");
68
+ let l = e.replace(/\r\n/g, "<br/>");
69
+ l = l.replace(/\n/g, "<br/>");
70
+ const a = l.split(T.lineBreakRegex);
71
+ let s = 1.25 * t().state.noteMargin;
72
+ for (const x of a) {
73
+ const c = x.trim();
74
+ if (c.length > 0) {
75
+ const g = h.append("tspan");
76
+ if (g.text(c), s === 0) {
77
+ const u = g.node().getBBox();
78
+ s += u.height;
79
+ }
80
+ d += s, g.attr("x", n + t().state.noteMargin), g.attr("y", o + d + 1.25 * t().state.noteMargin);
81
+ }
82
+ }
83
+ return { textWidth: h.node().getBBox().width, textHeight: d };
84
+ }, "_drawLongText"), et = /* @__PURE__ */ f((e, n) => {
85
+ n.attr("class", "state-note");
86
+ const o = n.append("rect").attr("x", 0).attr("y", t().state.padding), r = n.append("g"), { textWidth: d, textHeight: h } = tt(e, 0, 0, r);
87
+ return o.attr("height", h + 2 * t().state.noteMargin), o.attr("width", d + t().state.noteMargin * 2), o;
88
+ }, "drawNote"), L = /* @__PURE__ */ f(function(e, n) {
89
+ const o = n.id, r = {
90
+ id: o,
91
+ label: n.id,
92
+ width: 0,
93
+ height: 0
94
+ }, d = e.append("g").attr("id", o).attr("class", "stateGroup");
95
+ n.type === "start" && F(d), n.type === "end" && Q(d), (n.type === "fork" || n.type === "join") && V(d, n), n.type === "note" && et(n.note.text, d), n.type === "divider" && Y(d), n.type === "default" && n.descriptions.length === 0 && Z(d, n), n.type === "default" && n.descriptions.length > 0 && _(d, n);
96
+ const h = d.node().getBBox();
97
+ return r.width = h.width + 2 * t().state.padding, r.height = h.height + 2 * t().state.padding, j.set(o, r), r;
98
+ }, "drawState"), D = 0, at = /* @__PURE__ */ f(function(e, n, o) {
99
+ const r = /* @__PURE__ */ f(function(s) {
100
+ switch (s) {
101
+ case v.relationType.AGGREGATION:
102
+ return "aggregation";
103
+ case v.relationType.EXTENSION:
104
+ return "extension";
105
+ case v.relationType.COMPOSITION:
106
+ return "composition";
107
+ case v.relationType.DEPENDENCY:
108
+ return "dependency";
109
+ }
110
+ }, "getRelationType");
111
+ n.points = n.points.filter((s) => !Number.isNaN(s.y));
112
+ const d = n.points, h = U().x(function(s) {
113
+ return s.x;
114
+ }).y(function(s) {
115
+ return s.y;
116
+ }).curve(I), l = e.append("path").attr("d", h(d)).attr("id", "edge" + D).attr("class", "transition");
117
+ let a = "";
118
+ if (t().state.arrowMarkerAbsolute && (a = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, a = a.replace(/\(/g, "\\("), a = a.replace(/\)/g, "\\)")), l.attr(
119
+ "marker-end",
120
+ "url(" + a + "#" + r(v.relationType.DEPENDENCY) + "End)"
121
+ ), o.title !== void 0) {
122
+ const s = e.append("g").attr("class", "stateLabel"), { x, y: c } = C.calcLabelPosition(n.points), g = T.getRows(o.title);
123
+ let u = 0;
124
+ const B = [];
125
+ let m = 0, N = 0;
126
+ for (let y = 0; y <= g.length; y++) {
127
+ const p = s.append("text").attr("text-anchor", "middle").text(g[y]).attr("x", x).attr("y", c + u), w = p.node().getBBox();
128
+ m = Math.max(m, w.width), N = Math.min(N, w.x), E.info(w.x, x, c + u), u === 0 && (u = p.node().getBBox().height, E.info("Title height", u, c)), B.push(p);
129
+ }
130
+ let S = u * g.length;
131
+ if (g.length > 1) {
132
+ const y = (g.length - 1) * u * 0.5;
133
+ B.forEach((p, w) => p.attr("y", c + w * u - y)), S = u * g.length;
134
+ }
135
+ const i = s.node().getBBox();
136
+ s.insert("rect", ":first-child").attr("class", "box").attr("x", x - m / 2 - t().state.padding / 2).attr("y", c - S / 2 - t().state.padding / 2 - 3.5).attr("width", m + t().state.padding).attr("height", S + t().state.padding), E.info(i);
137
+ }
138
+ D++;
139
+ }, "drawEdge"), b, z = {}, nt = /* @__PURE__ */ f(function() {
140
+ }, "setConf"), it = /* @__PURE__ */ f(function(e) {
141
+ e.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
142
+ }, "insertMarkers"), dt = /* @__PURE__ */ f(function(e, n, o, r) {
143
+ b = t().state;
144
+ const d = t().securityLevel;
145
+ let h;
146
+ d === "sandbox" && (h = M("#i" + n));
147
+ const l = d === "sandbox" ? M(h.nodes()[0].contentDocument.body) : M("body"), a = d === "sandbox" ? h.nodes()[0].contentDocument : document;
148
+ E.debug("Rendering diagram " + e);
149
+ const s = l.select(`[id='${n}']`);
150
+ it(s);
151
+ const x = r.db.getRootDoc();
152
+ G(x, s, void 0, !1, l, a, r);
153
+ const c = b.padding, g = s.node().getBBox(), u = g.width + c * 2, B = g.height + c * 2, m = u * 1.75;
154
+ P(s, B, m, b.useMaxWidth), s.attr(
155
+ "viewBox",
156
+ `${g.x - b.padding} ${g.y - b.padding} ` + u + " " + B
157
+ );
158
+ }, "draw"), rt = /* @__PURE__ */ f((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"), G = /* @__PURE__ */ f((e, n, o, r, d, h, l) => {
159
+ const a = new J({
160
+ compound: !0,
161
+ multigraph: !0
162
+ });
163
+ let s, x = !0;
164
+ for (s = 0; s < e.length; s++)
165
+ if (e[s].stmt === "relation") {
166
+ x = !1;
167
+ break;
168
+ }
169
+ o ? a.setGraph({
170
+ rankdir: "LR",
171
+ multigraph: !0,
172
+ compound: !0,
173
+ // acyclicer: 'greedy',
174
+ ranker: "tight-tree",
175
+ ranksep: x ? 1 : b.edgeLengthFactor,
176
+ nodeSep: x ? 1 : 50,
177
+ isMultiGraph: !0
178
+ // ranksep: 5,
179
+ // nodesep: 1
180
+ }) : a.setGraph({
181
+ rankdir: "TB",
182
+ multigraph: !0,
183
+ compound: !0,
184
+ // isCompound: true,
185
+ // acyclicer: 'greedy',
186
+ // ranker: 'longest-path'
187
+ ranksep: x ? 1 : b.edgeLengthFactor,
188
+ nodeSep: x ? 1 : 50,
189
+ ranker: "tight-tree",
190
+ // ranker: 'network-simplex'
191
+ isMultiGraph: !0
192
+ }), a.setDefaultEdgeLabel(function() {
193
+ return {};
194
+ });
195
+ const c = l.db.getStates(), g = l.db.getRelations(), u = Object.keys(c);
196
+ for (const i of u) {
197
+ const y = c[i];
198
+ o && (y.parentId = o);
199
+ let p;
200
+ if (y.doc) {
201
+ let w = n.append("g").attr("id", y.id).attr("class", "stateGroup");
202
+ p = G(y.doc, w, y.id, !r, d, h, l);
203
+ {
204
+ w = K(w, y, r);
205
+ let k = w.node().getBBox();
206
+ p.width = k.width, p.height = k.height + b.padding / 2, z[y.id] = { y: b.compositTitleSize };
207
+ }
208
+ } else
209
+ p = L(n, y, a);
210
+ if (y.note) {
211
+ const w = {
212
+ descriptions: [],
213
+ id: y.id + "-note",
214
+ note: y.note,
215
+ type: "note"
216
+ }, k = L(n, w, a);
217
+ y.note.position === "left of" ? (a.setNode(p.id + "-note", k), a.setNode(p.id, p)) : (a.setNode(p.id, p), a.setNode(p.id + "-note", k)), a.setParent(p.id, p.id + "-group"), a.setParent(p.id + "-note", p.id + "-group");
218
+ } else
219
+ a.setNode(p.id, p);
220
+ }
221
+ E.debug("Count=", a.nodeCount(), a);
222
+ let B = 0;
223
+ g.forEach(function(i) {
224
+ B++, E.debug("Setting edge", i), a.setEdge(
225
+ i.id1,
226
+ i.id2,
227
+ {
228
+ relation: i,
229
+ width: rt(i.title),
230
+ height: b.labelHeight * T.getRows(i.title).length,
231
+ labelpos: "c"
232
+ },
233
+ "id" + B
234
+ );
235
+ }), W(a), E.debug("Graph after layout", a.nodes());
236
+ const m = n.node();
237
+ a.nodes().forEach(function(i) {
238
+ i !== void 0 && a.node(i) !== void 0 ? (E.warn("Node " + i + ": " + JSON.stringify(a.node(i))), d.select("#" + m.id + " #" + i).attr(
239
+ "transform",
240
+ "translate(" + (a.node(i).x - a.node(i).width / 2) + "," + (a.node(i).y + (z[i] ? z[i].y : 0) - a.node(i).height / 2) + " )"
241
+ ), d.select("#" + m.id + " #" + i).attr("data-x-shift", a.node(i).x - a.node(i).width / 2), h.querySelectorAll("#" + m.id + " #" + i + " .divider").forEach((y) => {
242
+ const p = y.parentElement;
243
+ let w = 0, k = 0;
244
+ p && (p.parentElement && (w = p.parentElement.getBBox().width), k = parseInt(p.getAttribute("data-x-shift"), 10), Number.isNaN(k) && (k = 0)), y.setAttribute("x1", 0 - k + 8), y.setAttribute("x2", w - k - 8);
245
+ })) : E.debug("No Node " + i + ": " + JSON.stringify(a.node(i)));
246
+ });
247
+ let N = m.getBBox();
248
+ a.edges().forEach(function(i) {
249
+ i !== void 0 && a.edge(i) !== void 0 && (E.debug("Edge " + i.v + " -> " + i.w + ": " + JSON.stringify(a.edge(i))), at(n, a.edge(i), a.edge(i).relation));
250
+ }), N = m.getBBox();
251
+ const S = {
252
+ id: o || "root",
253
+ label: o || "root",
254
+ width: 0,
255
+ height: 0
256
+ };
257
+ return S.width = N.width + 2 * b.padding, S.height = N.height + 2 * b.padding, E.debug("Doc rendered", S, a), S;
258
+ }, "renderDoc"), st = {
259
+ setConf: nt,
260
+ draw: dt
261
+ }, ut = {
262
+ parser: R,
263
+ get db() {
264
+ return new v(1);
265
+ },
266
+ renderer: st,
267
+ styles: O,
268
+ init: /* @__PURE__ */ f((e) => {
269
+ e.state || (e.state = {}), e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
270
+ }, "init")
271
+ };
272
+ export {
273
+ ut as diagram
274
+ };
@@ -1,8 +1,8 @@
1
- import { s as t, S as r, b as a, a as s } from "./chunk-AEK57VVT-69e121d6.mjs";
2
- import { _ as i } from "./index-f83d4b07.mjs";
3
- import "./chunk-RZ5BOZE2-b7d5d4f5.mjs";
1
+ import { s as t, S as r, b as a, a as s } from "./chunk-AEK57VVT-6c60e1ee.mjs";
2
+ import { bz as i } from "./index-433e2395.mjs";
3
+ import "./chunk-RZ5BOZE2-d6db8103.mjs";
4
4
  import "vue";
5
- var l = {
5
+ var u = {
6
6
  parser: t,
7
7
  get db() {
8
8
  return new r(2);
@@ -14,5 +14,5 @@ var l = {
14
14
  }, "init")
15
15
  };
16
16
  export {
17
- l as diagram
17
+ u as diagram
18
18
  };
@@ -0,0 +1,18 @@
1
+ import { X as t, J as e, K as a, q as s } from "./chunk-AEK57VVT-D62Iwyam-238a3d85.mjs";
2
+ import { v as o } from "./index-433e2395.mjs";
3
+ import "./chunk-RZ5BOZE2-DIFgOqDt-495bec03.mjs";
4
+ import "vue";
5
+ var b = {
6
+ parser: t,
7
+ get db() {
8
+ return new e(2);
9
+ },
10
+ renderer: a,
11
+ styles: s,
12
+ init: /* @__PURE__ */ o((r) => {
13
+ r.state || (r.state = {}), r.state.arrowMarkerAbsolute = r.arrowMarkerAbsolute;
14
+ }, "init")
15
+ };
16
+ export {
17
+ b as diagram
18
+ };