@marimo-team/islands 0.12.1-dev7 → 0.12.2-dev0

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 (92) hide show
  1. package/dist/{ConnectedDataExplorerComponent-BERPq-7i.js → ConnectedDataExplorerComponent-DlGGxGp0.js} +8 -8
  2. package/dist/{VegaLite-C2a1fRyf.js → VegaLite-C8_-Rteo.js} +2456 -2455
  3. package/dist/{_baseUniq-CduQYEg0.js → _baseUniq-DcMHqcMx.js} +1 -1
  4. package/dist/{any-language-editor-iAFPE9Wa.js → any-language-editor-Djf8tYu3.js} +176 -177
  5. package/dist/architectureDiagram-IEHRJDOE-Dpk5J_Ka.js +4634 -0
  6. package/dist/assets/{save-worker-J2nVA3vw.js → save-worker-CYdkP5Ic.js} +5 -5
  7. package/dist/assets/{worker-6ypxTHEH.js → worker-CH7zxkMA.js} +5 -5
  8. package/dist/assets/{worker-0hM8VAjI.js → worker-DEw2ZetQ.js} +5 -5
  9. package/dist/{blockDiagram-ZHA2E4KO-D0GjioNB.js → blockDiagram-JOT3LUYC-DqCrJqje.js} +4 -4
  10. package/dist/{c4Diagram-6F5ED5ID-DMQc8sn0.js → c4Diagram-VJAJSXHY-SiC0ZWnY.js} +2 -2
  11. package/dist/{channel-BQPTUN0j.js → channel-CTzwA6OW.js} +1 -1
  12. package/dist/{chunk-TMUBEWPD-B5nG3-4_.js → chunk-4BMEZGHF-BJFa_HSm.js} +1 -1
  13. package/dist/chunk-A2AXSNBT-C4rIQGEB.js +1372 -0
  14. package/dist/chunk-AEK57VVT-C2E3avBd.js +1415 -0
  15. package/dist/{chunk-ASOPGD6M-C66YPQw_.js → chunk-D6G4REZN-jvun3rFz.js} +1 -1
  16. package/dist/{chunk-5HRBRIJM-BJ4JduJ4.js → chunk-RZ5BOZE2-DDyCzZLD.js} +1 -1
  17. package/dist/{chunk-KFBOBJHC-D7ImvFdf.js → chunk-XZIHB7SX-B-_oUPxx.js} +1 -1
  18. package/dist/classDiagram-GIVACNV2-gMXntfgi.js +16 -0
  19. package/dist/classDiagram-v2-COTLJTTW-gMXntfgi.js +16 -0
  20. package/dist/{clike-BLr83cjT.js → clike-BUuHEmgZ.js} +19 -17
  21. package/dist/{clone-BPM1grmT.js → clone-np3PejDV.js} +1 -1
  22. package/dist/{dagre-4EVJKHTY-taV4nXAZ.js → dagre-OKDRZEBW-Dk9EOtRZ.js} +46 -46
  23. package/dist/{data-editor-CP7A6R7x.js → data-editor-CCGJMQ-A.js} +27 -22
  24. package/dist/diagram-SSKATNLV-BdlMuz26.js +221 -0
  25. package/dist/{diagram-QW4FP2JN-DvfDoD4R.js → diagram-VNBRO52H-DHK51oAq.js} +28 -28
  26. package/dist/{dockerfile-CFG_IPGn.js → dockerfile-DIy8NleC.js} +1 -1
  27. package/dist/erDiagram-Q7BY3M3F-xH-9At_V.js +841 -0
  28. package/dist/{factor-DJHfQ4a1.js → factor-DDOC7X6P.js} +1 -1
  29. package/dist/flowDiagram-4HSFHLVR-DwmcRrr2.js +1622 -0
  30. package/dist/ganttDiagram-APWFNJXF-DQSjywCU.js +1681 -0
  31. package/dist/{gitGraphDiagram-NRZ2UAAF-4kw3hKkI.js → gitGraphDiagram-7IBYFJ6S-DVQbpHsO.js} +55 -55
  32. package/dist/{graph-Ct8J3K-U.js → graph-DDoPYpXh.js} +3 -3
  33. package/dist/{groovy-CdgvOO23.js → groovy-DZeT_VM-.js} +1 -1
  34. package/dist/{index-4rX0HueT.js → index-B4ZiakJ2.js} +1 -1
  35. package/dist/{index-DcIxs1SB.js → index-B6VRSn0G.js} +1 -1
  36. package/dist/{index-DCTyxe1r.js → index-B9TiK-1N.js} +1 -1
  37. package/dist/{index-CMPKyInT.js → index-BaI2S4NP.js} +1 -1
  38. package/dist/{index-Ttf47Jzx.js → index-BpZdfrrE.js} +1 -1
  39. package/dist/{index-CB_J72aP.js → index-CHJbM8NH.js} +1 -1
  40. package/dist/{index-JOf7zIR3.js → index-CMOfndh8.js} +1 -1
  41. package/dist/{index-CP0DlVCF.js → index-CZ4qAWqA.js} +1 -1
  42. package/dist/{index-CQARR2Zu.js → index-Ck_knR8D.js} +1 -1
  43. package/dist/{index-ChVYxFE2.js → index-DHX724WI.js} +1 -1
  44. package/dist/{index-Dg-6DK-t.js → index-D_51duzM.js} +1 -1
  45. package/dist/{index-CGLMoK_7.js → index-DaRv_uSA.js} +1 -1
  46. package/dist/{index-DjuGc3PT.js → index-V_2bVjlK.js} +3 -3
  47. package/dist/{index-CTDpfz0V.js → index-ZrcB1I9v.js} +1 -1
  48. package/dist/{index-Bclp07uz.js → index-pgxH06N0.js} +1 -1
  49. package/dist/{infoDiagram-A4XQUW5V-Cjc2sW3v.js → infoDiagram-PH2N3AL5-DN7Ua0i-.js} +5 -5
  50. package/dist/{journeyDiagram-G5WM74LC-BRuUsJcp.js → journeyDiagram-U35MCT3I-Oc-2jK1T.js} +34 -35
  51. package/dist/{kanban-definition-QRCXZQQD-BdcV-_PG.js → kanban-definition-NDS4AKOZ-B6Srvldc.js} +26 -25
  52. package/dist/{layout-mBe7V6XD.js → layout-BOIe2TUO.js} +4 -4
  53. package/dist/{linear-D1lI84Kf.js → linear-B1wK8jL2.js} +1 -1
  54. package/dist/{main-Br5eJ3xj.js → main-TZD_8qdu.js} +30944 -30438
  55. package/dist/main.js +1 -1
  56. package/dist/mermaid-bM0PMjHu.js +11991 -0
  57. package/dist/{min-CaUxuWMi.js → min-C1JTrbkM.js} +2 -2
  58. package/dist/{mindmap-definition-GWI6TPTV-BAe-w3fl.js → mindmap-definition-ALO5MXBD-Ce4ZNQeo.js} +3 -2
  59. package/dist/{nsis-BtA0qkjU.js → nsis-fePjrhq7.js} +1 -1
  60. package/dist/{pascal-ixanSKUz.js → pascal-De0D6mP7.js} +1 -1
  61. package/dist/{pieDiagram-YF2LJOPJ-DXtbtIhU.js → pieDiagram-IB7DONF6-B8oplxmT.js} +38 -38
  62. package/dist/{quadrantDiagram-OS5C2QUG-q7UzXGha.js → quadrantDiagram-7GDLP6J5-B1uy7zDH.js} +2 -2
  63. package/dist/{gitGraph-YCYPL57B-BYkc7Tmr.js → radar-MK3ICKWK-D18QsrcW.js} +3259 -2897
  64. package/dist/{react-plotly-DxTX0xij.js → react-plotly-Cqh5R1OO.js} +1 -1
  65. package/dist/requirementDiagram-KVF5MWMF-B8Re_64r.js +851 -0
  66. package/dist/{sankeyDiagram-Y46BX6SQ-BP3WClHp.js → sankeyDiagram-QLVOVGJD-CDTRxxiE.js} +152 -149
  67. package/dist/sequenceDiagram-X6HHIX6F-r8RuFeB3.js +2281 -0
  68. package/dist/{simple-mode-HGTvdazT.js → simple-mode-B0dvCdAA.js} +15 -14
  69. package/dist/slides-component-CNd_TxKo.js +3782 -0
  70. package/dist/{stateDiagram-MAYHULR4-BeqZ24-x.js → stateDiagram-DGXRK772-CDkxp576.js} +41 -39
  71. package/dist/stateDiagram-v2-YXO3MK2T-Cl3HeC-N.js +16 -0
  72. package/dist/style.css +1 -1
  73. package/dist/{time-iUCPkF1n.js → time-D2pH4chu.js} +2 -2
  74. package/dist/{timeline-definition-U7ZMHBDA-KODR30fP.js → timeline-definition-BDJGKUSR-DOJemw50.js} +25 -25
  75. package/dist/{vega-component-CgI2jbza.js → vega-component-Df9L7pHW.js} +2 -2
  76. package/dist/{xquery-xQxle02u.js → xquery-BUQdORAS.js} +72 -76
  77. package/dist/{xychartDiagram-6QU3TZC5-D4FODTRk.js → xychartDiagram-VJFVF3MP-9rVSkwOp.js} +11 -11
  78. package/package.json +26 -24
  79. package/dist/architectureDiagram-UYN6MBPD-CRNipS_I.js +0 -4595
  80. package/dist/chunk-7U56Z5CX-DD_mllcM.js +0 -1215
  81. package/dist/chunk-T2TOU4HS-91K54MXN.js +0 -1303
  82. package/dist/classDiagram-LNE6IOMH-CECok1Lr.js +0 -14
  83. package/dist/classDiagram-v2-MQ7JQ4JX-CECok1Lr.js +0 -14
  84. package/dist/erDiagram-6RL3IURR-DUa_nn4Y.js +0 -938
  85. package/dist/flowDiagram-7ASYPVHJ-D4jAZDX5.js +0 -1484
  86. package/dist/ganttDiagram-NTVNEXSI-CytePZBz.js +0 -1679
  87. package/dist/mermaid-CWYkSuCE.js +0 -12937
  88. package/dist/requirementDiagram-MIRIMTAZ-By-bdQmW.js +0 -769
  89. package/dist/sequenceDiagram-G6AWOVSC-Cyb7nkt-.js +0 -2274
  90. package/dist/slides-component-Dahr8CLe.js +0 -3776
  91. package/dist/stateDiagram-v2-4JROLMXI-C82KMuZU.js +0 -14
  92. package/dist/stex-92raWT1r.js +0 -129
@@ -1,7 +1,7 @@
1
- import { s as W, a as N, b as P } from "./chunk-7U56Z5CX-DD_mllcM.js";
2
- import { _ as u, c as t, d as H, l as S, e as C, k as z, u as U } from "./mermaid-CWYkSuCE.js";
3
- import { G as F } from "./graph-Ct8J3K-U.js";
4
- import { l as O } from "./layout-mBe7V6XD.js";
1
+ import { s as W, a as P, S as N } from "./chunk-AEK57VVT-C2E3avBd.js";
2
+ import { _ as u, c as t, d as H, l as S, e as C, k as z, u as U } from "./mermaid-bM0PMjHu.js";
3
+ import { G as F } from "./graph-DDoPYpXh.js";
4
+ import { l as O } from "./layout-BOIe2TUO.js";
5
5
  import { l as J, k as X } from "./timer-ly3uOrxC.js";
6
6
  var L = {}, D = /* @__PURE__ */ u((e, i) => {
7
7
  L[e] = i;
@@ -10,35 +10,35 @@ var L = {}, D = /* @__PURE__ */ u((e, i) => {
10
10
  set: D,
11
11
  keys: G,
12
12
  size: I
13
- }, q = /* @__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"), Z = /* @__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"), j = /* @__PURE__ */ u((e, i) => {
13
+ }, 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"), Z = /* @__PURE__ */ u((e, i) => {
14
14
  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();
15
15
  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;
16
16
  }, "drawSimpleState"), K = /* @__PURE__ */ u((e, i) => {
17
17
  const d = /* @__PURE__ */ u(function(l, B, m) {
18
18
  const k = l.append("tspan").attr("x", 2 * t().state.padding).text(B);
19
19
  m || k.attr("dy", t().state.textHeight);
20
- }, "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, p = e.append("text").attr("x", t().state.padding).attr(
20
+ }, "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(
21
21
  "y",
22
22
  g + t().state.padding * 0.4 + t().state.dividerMargin + t().state.textHeight
23
23
  ).attr("class", "state-description");
24
24
  let a = !0, s = !0;
25
25
  i.descriptions.forEach(function(l) {
26
- a || (d(p, l, s), s = !1), a = !1;
26
+ a || (d(x, l, s), s = !1), a = !1;
27
27
  });
28
- const y = e.append("line").attr("x1", t().state.padding).attr("y1", t().state.padding + g + t().state.dividerMargin / 2).attr("y2", t().state.padding + g + t().state.dividerMargin / 2).attr("class", "descr-divider"), x = p.node().getBBox(), c = Math.max(x.width, n.width);
29
- return y.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 + g + 2 * t().state.padding).attr("rx", t().state.radius), e;
28
+ const y = e.append("line").attr("x1", t().state.padding).attr("y1", t().state.padding + g + t().state.dividerMargin / 2).attr("y2", t().state.padding + g + t().state.dividerMargin / 2).attr("class", "descr-divider"), p = x.node().getBBox(), c = Math.max(p.width, n.width);
29
+ return y.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", p.height + g + 2 * t().state.padding).attr("rx", t().state.radius), e;
30
30
  }, "drawDescrState"), Q = /* @__PURE__ */ u((e, i, d) => {
31
- const o = t().state.padding, n = 2 * t().state.padding, g = e.node().getBBox(), p = g.width, a = g.x, s = e.append("text").attr("x", 0).attr("y", t().state.titleShift).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), x = s.node().getBBox().width + n;
32
- let c = Math.max(x, p);
33
- c === p && (c = c + n);
31
+ const o = t().state.padding, n = 2 * t().state.padding, g = e.node().getBBox(), x = g.width, a = g.x, s = e.append("text").attr("x", 0).attr("y", t().state.titleShift).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), p = s.node().getBBox().width + n;
32
+ let c = Math.max(p, x);
33
+ c === x && (c = c + n);
34
34
  let l;
35
35
  const B = e.node().getBBox();
36
- i.doc, l = a - o, x > p && (l = (p - c) / 2 + o), Math.abs(a - B.x) < o && x > p && (l = a - (x - p) / 2);
36
+ 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);
37
37
  const m = 1 - t().state.textHeight;
38
38
  return e.insert("rect", ":first-child").attr("x", l).attr("y", m).attr("class", d ? "alt-composit" : "composit").attr("width", c).attr(
39
39
  "height",
40
40
  B.height + t().state.textHeight + t().state.titleShift + 1
41
- ).attr("rx", "0"), s.attr("x", l + o), x <= p && s.attr("x", a + (c - n) / 2 - x / 2 + o), e.insert("rect", ":first-child").attr("x", l).attr(
41
+ ).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(
42
42
  "y",
43
43
  t().state.titleShift - t().state.textHeight - t().state.padding
44
44
  ).attr("width", c).attr("height", t().state.textHeight * 3).attr("rx", t().state.radius), e.insert("rect", ":first-child").attr("x", l).attr(
@@ -62,15 +62,15 @@ var L = {}, D = /* @__PURE__ */ u((e, i) => {
62
62
  let n = 0;
63
63
  const g = o.append("text");
64
64
  g.style("text-anchor", "start"), g.attr("class", "noteText");
65
- let p = e.replace(/\r\n/g, "<br/>");
66
- p = p.replace(/\n/g, "<br/>");
67
- const a = p.split(z.lineBreakRegex);
65
+ let x = e.replace(/\r\n/g, "<br/>");
66
+ x = x.replace(/\n/g, "<br/>");
67
+ const a = x.split(z.lineBreakRegex);
68
68
  let s = 1.25 * t().state.noteMargin;
69
69
  for (const y of a) {
70
- const x = y.trim();
71
- if (x.length > 0) {
70
+ const p = y.trim();
71
+ if (p.length > 0) {
72
72
  const c = g.append("tspan");
73
- if (c.text(x), s === 0) {
73
+ if (c.text(p), s === 0) {
74
74
  const l = c.node().getBBox();
75
75
  s += l.height;
76
76
  }
@@ -89,7 +89,7 @@ var L = {}, D = /* @__PURE__ */ u((e, i) => {
89
89
  width: 0,
90
90
  height: 0
91
91
  }, n = e.append("g").attr("id", d).attr("class", "stateGroup");
92
- i.type === "start" && q(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" && Z(n), i.type === "default" && i.descriptions.length === 0 && j(n, i), i.type === "default" && i.descriptions.length > 0 && K(n, i);
92
+ 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 && Z(n, i), i.type === "default" && i.descriptions.length > 0 && K(n, i);
93
93
  const g = n.node().getBBox();
94
94
  return o.width = g.width + 2 * t().state.padding, o.height = g.height + 2 * t().state.padding, $.set(d, o), o;
95
95
  }, "drawState"), A = 0, it = /* @__PURE__ */ u(function(e, i, d) {
@@ -110,27 +110,27 @@ var L = {}, D = /* @__PURE__ */ u((e, i) => {
110
110
  return s.x;
111
111
  }).y(function(s) {
112
112
  return s.y;
113
- }).curve(X), p = e.append("path").attr("d", g(n)).attr("id", "edge" + A).attr("class", "transition");
113
+ }).curve(X), x = e.append("path").attr("d", g(n)).attr("id", "edge" + A).attr("class", "transition");
114
114
  let a = "";
115
- 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, "\\)")), p.attr(
115
+ 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(
116
116
  "marker-end",
117
117
  "url(" + a + "#" + o(N.relationType.DEPENDENCY) + "End)"
118
118
  ), d.title !== void 0) {
119
- const s = e.append("g").attr("class", "stateLabel"), { x: y, y: x } = U.calcLabelPosition(i.points), c = z.getRows(d.title);
119
+ const s = e.append("g").attr("class", "stateLabel"), { x: y, y: p } = U.calcLabelPosition(i.points), c = z.getRows(d.title);
120
120
  let l = 0;
121
121
  const B = [];
122
122
  let m = 0, k = 0;
123
123
  for (let f = 0; f <= c.length; f++) {
124
- const h = s.append("text").attr("text-anchor", "middle").text(c[f]).attr("x", y).attr("y", x + l), w = h.node().getBBox();
125
- m = Math.max(m, w.width), k = Math.min(k, w.x), S.info(w.x, y, x + l), l === 0 && (l = h.node().getBBox().height, S.info("Title height", l, x)), B.push(h);
124
+ const h = s.append("text").attr("text-anchor", "middle").text(c[f]).attr("x", y).attr("y", p + l), w = h.node().getBBox();
125
+ 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);
126
126
  }
127
127
  let E = l * c.length;
128
128
  if (c.length > 1) {
129
129
  const f = (c.length - 1) * l * 0.5;
130
- B.forEach((h, w) => h.attr("y", x + w * l - f)), E = l * c.length;
130
+ B.forEach((h, w) => h.attr("y", p + w * l - f)), E = l * c.length;
131
131
  }
132
132
  const r = s.node().getBBox();
133
- s.insert("rect", ":first-child").attr("class", "box").attr("x", y - m / 2 - t().state.padding / 2).attr("y", x - E / 2 - t().state.padding / 2 - 3.5).attr("width", m + t().state.padding).attr("height", E + t().state.padding), S.info(r);
133
+ 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);
134
134
  }
135
135
  A++;
136
136
  }, "drawEdge"), b, T = {}, rt = /* @__PURE__ */ u(function() {
@@ -141,18 +141,18 @@ var L = {}, D = /* @__PURE__ */ u((e, i) => {
141
141
  const n = t().securityLevel;
142
142
  let g;
143
143
  n === "sandbox" && (g = H("#i" + i));
144
- const p = n === "sandbox" ? H(g.nodes()[0].contentDocument.body) : H("body"), a = n === "sandbox" ? g.nodes()[0].contentDocument : document;
144
+ const x = n === "sandbox" ? H(g.nodes()[0].contentDocument.body) : H("body"), a = n === "sandbox" ? g.nodes()[0].contentDocument : document;
145
145
  S.debug("Rendering diagram " + e);
146
- const s = p.select(`[id='${i}']`);
146
+ const s = x.select(`[id='${i}']`);
147
147
  nt(s);
148
148
  const y = o.db.getRootDoc();
149
- R(y, s, void 0, !1, p, a, o);
150
- const x = b.padding, c = s.node().getBBox(), l = c.width + x * 2, B = c.height + x * 2, m = l * 1.75;
149
+ R(y, s, void 0, !1, x, a, o);
150
+ const p = b.padding, c = s.node().getBBox(), l = c.width + p * 2, B = c.height + p * 2, m = l * 1.75;
151
151
  C(s, B, m, b.useMaxWidth), s.attr(
152
152
  "viewBox",
153
153
  `${c.x - b.padding} ${c.y - b.padding} ` + l + " " + B
154
154
  );
155
- }, "draw"), dt = /* @__PURE__ */ u((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"), R = /* @__PURE__ */ u((e, i, d, o, n, g, p) => {
155
+ }, "draw"), dt = /* @__PURE__ */ u((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"), R = /* @__PURE__ */ u((e, i, d, o, n, g, x) => {
156
156
  const a = new F({
157
157
  compound: !0,
158
158
  multigraph: !0
@@ -188,15 +188,15 @@ var L = {}, D = /* @__PURE__ */ u((e, i) => {
188
188
  isMultiGraph: !0
189
189
  }), a.setDefaultEdgeLabel(function() {
190
190
  return {};
191
- }), p.db.extract(e);
192
- const x = p.db.getStates(), c = p.db.getRelations(), l = Object.keys(x);
191
+ });
192
+ const p = x.db.getStates(), c = x.db.getRelations(), l = Object.keys(p);
193
193
  for (const r of l) {
194
- const f = x[r];
194
+ const f = p[r];
195
195
  d && (f.parentId = d);
196
196
  let h;
197
197
  if (f.doc) {
198
198
  let w = i.append("g").attr("id", f.id).attr("class", "stateGroup");
199
- h = R(f.doc, w, f.id, !o, n, g, p);
199
+ h = R(f.doc, w, f.id, !o, n, g, x);
200
200
  {
201
201
  w = Q(w, f, o);
202
202
  let v = w.node().getBBox();
@@ -257,11 +257,13 @@ var L = {}, D = /* @__PURE__ */ u((e, i) => {
257
257
  draw: st
258
258
  }, xt = {
259
259
  parser: P,
260
- db: N,
260
+ get db() {
261
+ return new N(1);
262
+ },
261
263
  renderer: ot,
262
264
  styles: W,
263
265
  init: /* @__PURE__ */ u((e) => {
264
- e.state || (e.state = {}), e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute, N.clear();
266
+ e.state || (e.state = {}), e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
265
267
  }, "init")
266
268
  };
267
269
  export {
@@ -0,0 +1,16 @@
1
+ import { s as a, b as t, a as r, S as s } from "./chunk-AEK57VVT-C2E3avBd.js";
2
+ import { _ as i } from "./mermaid-bM0PMjHu.js";
3
+ var _ = {
4
+ parser: r,
5
+ get db() {
6
+ return new s(2);
7
+ },
8
+ renderer: t,
9
+ styles: a,
10
+ init: /* @__PURE__ */ i((e) => {
11
+ e.state || (e.state = {}), e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
12
+ }, "init")
13
+ };
14
+ export {
15
+ _ as diagram
16
+ };