@marimo-team/islands 0.14.11-dev7 → 0.14.11-dev72

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 (74) hide show
  1. package/dist/{ConnectedDataExplorerComponent-VTfcqOZN.js → ConnectedDataExplorerComponent-CDia3Uq3.js} +4 -4
  2. package/dist/{ImageComparisonComponent-b5udtUaG.js → ImageComparisonComponent-D8GDn93y.js} +1 -1
  3. package/dist/{VegaLite-CZ2MktvJ.js → VegaLite-B0DAcE_0.js} +6799 -7018
  4. package/dist/{_baseUniq-Dxs4JH0Y.js → _baseUniq-C0VlTHW8.js} +48 -48
  5. package/dist/{any-language-editor-CPmAtELv.js → any-language-editor-DPcbYqjc.js} +1 -1
  6. package/dist/{architectureDiagram-IEHRJDOE-CP88TKjC.js → architectureDiagram-NQ2NVSRB-C2Ajtpmz.js} +897 -894
  7. package/dist/assets/{save-worker-BIDtxCd1.js → save-worker-fI5ofStJ.js} +1040 -1405
  8. package/dist/assets/worker-BLUAwPAO.js +3790 -0
  9. package/dist/assets/worker-BldghCZh.js +3752 -0
  10. package/dist/{blockDiagram-JOT3LUYC-C2rusulX.js → blockDiagram-PHRCVELO-xrhIbibO.js} +534 -522
  11. package/dist/{c4Diagram-VJAJSXHY-CE4R-Yj-.js → c4Diagram-6F6E4RAY-B9M8UZ5C.js} +4 -4
  12. package/dist/{channel-BTOPiHD4.js → channel-D3Z57-L0.js} +1 -1
  13. package/dist/{chunk-4BMEZGHF-BGr1mHPI.js → chunk-353BL4L5-B8RJflA2.js} +1 -1
  14. package/dist/{chunk-D6G4REZN-B3t5XG_V.js → chunk-67H74DCK-DjF3P_6n.js} +1 -1
  15. package/dist/chunk-6OLS64BW-DwBPGTBy.js +1383 -0
  16. package/dist/{chunk-XZIHB7SX-Bb6YfyvK.js → chunk-AACKK3MU-BNqFtiBq.js} +1 -1
  17. package/dist/chunk-BFAMUDN2-C7-45IWl.js +8 -0
  18. package/dist/chunk-E2GYISFI-D6ZMZ5f1.js +19 -0
  19. package/dist/{chunk-A2AXSNBT-BNYLnU9D.js → chunk-QEP2MXWD-ThQxWRcu.js} +30 -27
  20. package/dist/chunk-SKB7J2MH-DSRt4RR9.js +20 -0
  21. package/dist/{classDiagram-GIVACNV2-BGu4avYg.js → classDiagram-BGRH5UQR-Dhwtv8yj.js} +2 -2
  22. package/dist/{classDiagram-v2-COTLJTTW-BGu4avYg.js → classDiagram-v2-O24JOBDK-Dhwtv8yj.js} +2 -2
  23. package/dist/{clone-gdQZ-8A5.js → clone-CdbI6pj6.js} +1 -1
  24. package/dist/{dagre-OKDRZEBW-B4FgIhBO.js → dagre-FFZHY6LT-D2JmeFTB.js} +8 -8
  25. package/dist/data-grid-overlay-editor-CKgEMxxc.js +105 -0
  26. package/dist/diagram-3EMPZRKU-JHPbiJCi.js +313 -0
  27. package/dist/diagram-5UYTHUR4-eEJi5-6t.js +137 -0
  28. package/dist/{diagram-SSKATNLV-DYldQ1nJ.js → diagram-ZTM2IBQH-D88l5hnm.js} +3 -3
  29. package/dist/{erDiagram-Q7BY3M3F-Bn1YCXnZ.js → erDiagram-R3QVA2FD-BGlTaWTV.js} +6 -5
  30. package/dist/{flowDiagram-4HSFHLVR-Cv6sE3SQ.js → flowDiagram-PKI6S5ZS-CQVcnZSd.js} +283 -278
  31. package/dist/{ganttDiagram-APWFNJXF-CCEsgCwo.js → ganttDiagram-EK5VF46D-CkFx0RaP.js} +459 -445
  32. package/dist/{gitGraphDiagram-7IBYFJ6S-CXgtNvZc.js → gitGraphDiagram-GW3U2K7C-D-gRVxCj.js} +35 -35
  33. package/dist/glide-data-editor-BLSOKrmw.js +12893 -0
  34. package/dist/{graph-N78OoukA.js → graph-Dz3qJaaG.js} +3 -3
  35. package/dist/{index-DLWDWxiI.js → index-Bxfs9Hk_.js} +6 -3
  36. package/dist/{index-s-KrzpFz.js → index-CDGjWl9n.js} +4 -4
  37. package/dist/{index-B6r1oHeS.js → index-CaY3iMRr.js} +1 -1
  38. package/dist/{index-BTWM953l.js → index-DwK5Y7p2.js} +3 -3
  39. package/dist/index-pBmAzQJl.js +235 -0
  40. package/dist/{infoDiagram-PH2N3AL5-DqyXVVcE.js → infoDiagram-RLU2ROGC-DtDTKm7d.js} +5 -3
  41. package/dist/journeyDiagram-EWQZEKCU-Bf6s-6jc.js +836 -0
  42. package/dist/{kanban-definition-NDS4AKOZ-CwEmTRTQ.js → kanban-definition-ILFWEQ3N-DAtyajgG.js} +41 -39
  43. package/dist/{layout-ClDNXAo5.js → layout-C2EoBYrV.js} +35 -35
  44. package/dist/{linear-lyO559qg.js → linear-D6CkH6Kj.js} +25 -25
  45. package/dist/{main-DGt3HrKs.js → main-ZWGPaFnn.js} +55759 -55421
  46. package/dist/main.js +2 -2
  47. package/dist/{mermaid-q6_P6X8T.js → mermaid-CzkcAUDB.js} +4925 -4853
  48. package/dist/{min-ByCW12IZ.js → min-Bo5Qh008.js} +24 -24
  49. package/dist/{mindmap-definition-ALO5MXBD-ixE8jD_p.js → mindmap-definition-CZNETY7S-CqwLUoQ1.js} +3 -3
  50. package/dist/number-overlay-editor-mhiEvTMk.js +599 -0
  51. package/dist/{pieDiagram-IB7DONF6-CmGcPA5S.js → pieDiagram-NIOCPIFQ-BVoanLni.js} +3 -3
  52. package/dist/{quadrantDiagram-7GDLP6J5-BcuouniC.js → quadrantDiagram-2OG54O6I-C_U4EVXZ.js} +2 -2
  53. package/dist/{react-plotly-CKjey4TC.js → react-plotly-DY4XU5-Q.js} +1 -1
  54. package/dist/{requirementDiagram-KVF5MWMF-CpADntW_.js → requirementDiagram-SO3GGRV7-B_IuYu5S.js} +5 -4
  55. package/dist/{sankeyDiagram-QLVOVGJD-RiHM-gc1.js → sankeyDiagram-4UZDY2LN-DHDmWj2L.js} +11 -11
  56. package/dist/{sequenceDiagram-X6HHIX6F-zjDlErjG.js → sequenceDiagram-ZIKVLSP4-B0FsKMNg.js} +151 -149
  57. package/dist/{slides-component-D-T7V3Um.js → slides-component-CQ1m__jq.js} +969 -962
  58. package/dist/stateDiagram-XX37X6EN-CVOR_WQQ.js +264 -0
  59. package/dist/{stateDiagram-v2-YXO3MK2T-hmq0VkWg.js → stateDiagram-v2-GD6S3NHB-BDaP6oYI.js} +2 -2
  60. package/dist/style.css +1 -1
  61. package/dist/{time-CySBB51c.js → time-95e914-x.js} +2 -2
  62. package/dist/{timeline-definition-BDJGKUSR-BFWD7bgu.js → timeline-definition-RI47OAVP-Bc7rrp3P.js} +99 -102
  63. package/dist/{radar-MK3ICKWK-DD-wL37j.js → treemap-FKARHQ26-DFP3Gxy8.js} +2469 -2330
  64. package/dist/{vega-component-D8e5IG1f.js → vega-component-C6HtQfwj.js} +19 -19
  65. package/dist/{xychartDiagram-VJFVF3MP-BO6y-mli.js → xychartDiagram-H2YORKM3-sWRpcEy4.js} +409 -375
  66. package/package.json +45 -44
  67. package/dist/assets/worker-BcyuOSTi.js +0 -4117
  68. package/dist/assets/worker-Dz6PPEGc.js +0 -4115
  69. package/dist/chunk-AEK57VVT-BjKsSzf4.js +0 -1416
  70. package/dist/chunk-RZ5BOZE2-BQRA6_lz.js +0 -24
  71. package/dist/data-editor-LPDyjTPa.js +0 -32933
  72. package/dist/diagram-VNBRO52H-BtnkOAZg.js +0 -126
  73. package/dist/journeyDiagram-U35MCT3I-7reCe8rl.js +0 -809
  74. package/dist/stateDiagram-DGXRK772-DwIrysh_.js +0 -271
@@ -1,7 +1,7 @@
1
- import { p as Y } from "./chunk-4BMEZGHF-BGr1mHPI.js";
2
- import { I as K } from "./chunk-XZIHB7SX-Bb6YfyvK.js";
3
- import { _ as l, t as U, q as V, s as X, g as J, a as Q, b as Z, l as b, c as rr, d as er, u as tr, E as ar, z as sr, k as C, F as nr, G as or, H as cr, I as ir } from "./mermaid-q6_P6X8T.js";
4
- import { p as dr } from "./radar-MK3ICKWK-DD-wL37j.js";
1
+ import { p as Y } from "./chunk-353BL4L5-B8RJflA2.js";
2
+ import { I as K } from "./chunk-AACKK3MU-BNqFtiBq.js";
3
+ import { _ as l, t as U, q as V, s as X, g as J, a as Q, b as Z, l as m, c as rr, d as er, u as tr, E as ar, z as sr, k as C, F as nr, G as or, H as cr, I as ir } from "./mermaid-CzkcAUDB.js";
4
+ import { p as dr } from "./treemap-FKARHQ26-DFP3Gxy8.js";
5
5
  var p = {
6
6
  NORMAL: 0,
7
7
  REVERSE: 1,
@@ -40,11 +40,11 @@ l(F, "uniqBy");
40
40
  var lr = /* @__PURE__ */ l(function(t) {
41
41
  c.records.direction = t;
42
42
  }, "setDirection"), $r = /* @__PURE__ */ l(function(t) {
43
- b.debug("options str", t), t = t == null ? void 0 : t.trim(), t = t || "{}";
43
+ m.debug("options str", t), t = t == null ? void 0 : t.trim(), t = t || "{}";
44
44
  try {
45
45
  c.records.options = JSON.parse(t);
46
46
  } catch (r) {
47
- b.error("error while parsing gitGraph options", r.message);
47
+ m.error("error while parsing gitGraph options", r.message);
48
48
  }
49
49
  }, "setOptions"), fr = /* @__PURE__ */ l(function() {
50
50
  return c.records.options;
@@ -52,7 +52,7 @@ var lr = /* @__PURE__ */ l(function(t) {
52
52
  let r = t.msg, s = t.id;
53
53
  const n = t.type;
54
54
  let e = t.tags;
55
- b.info("commit", r, s, n, e), b.debug("Entering commit:", r, s, n, e);
55
+ m.info("commit", r, s, n, e), m.debug("Entering commit:", r, s, n, e);
56
56
  const a = I();
57
57
  s = C.sanitizeText(s, a), r = C.sanitizeText(r, a), e = e == null ? void 0 : e.map((o) => C.sanitizeText(o, a));
58
58
  const d = {
@@ -64,7 +64,7 @@ var lr = /* @__PURE__ */ l(function(t) {
64
64
  parents: c.records.head == null ? [] : [c.records.head.id],
65
65
  branch: c.records.currBranch
66
66
  };
67
- c.records.head = d, b.info("main branch", a.mainBranchName), c.records.commits.set(d.id, d), c.records.branches.set(c.records.currBranch, d.id), b.debug("in pushCommit " + d.id);
67
+ c.records.head = d, m.info("main branch", a.mainBranchName), c.records.commits.has(d.id) && m.warn(`Commit ID ${d.id} already exists`), c.records.commits.set(d.id, d), c.records.branches.set(c.records.currBranch, d.id), m.debug("in pushCommit " + d.id);
68
68
  }, "commit"), yr = /* @__PURE__ */ l(function(t) {
69
69
  let r = t.name;
70
70
  const s = t.order;
@@ -72,7 +72,7 @@ var lr = /* @__PURE__ */ l(function(t) {
72
72
  throw new Error(
73
73
  `Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`
74
74
  );
75
- c.records.branches.set(r, c.records.head != null ? c.records.head.id : null), c.records.branchConfig.set(r, { name: r, order: s }), D(r), b.debug("in createBranch");
75
+ c.records.branches.set(r, c.records.head != null ? c.records.head.id : null), c.records.branchConfig.set(r, { name: r, order: s }), D(r), m.debug("in createBranch");
76
76
  }, "branch"), ur = /* @__PURE__ */ l((t) => {
77
77
  let r = t.branch, s = t.id;
78
78
  const n = t.type, e = t.tags, a = I();
@@ -128,7 +128,7 @@ var lr = /* @__PURE__ */ l(function(t) {
128
128
  }
129
129
  if (s && c.records.commits.has(s)) {
130
130
  const i = new Error(
131
- 'Incorrect usage of "merge". Commit with id:' + s + " already exists, use different custom Id"
131
+ 'Incorrect usage of "merge". Commit with id:' + s + " already exists, use different custom id"
132
132
  );
133
133
  throw i.hash = {
134
134
  text: `merge ${r} ${s} ${n} ${e == null ? void 0 : e.join(" ")}`,
@@ -149,10 +149,10 @@ var lr = /* @__PURE__ */ l(function(t) {
149
149
  customId: !!s,
150
150
  tags: e ?? []
151
151
  };
152
- c.records.head = g, c.records.commits.set(g.id, g), c.records.branches.set(c.records.currBranch, g.id), b.debug(c.records.branches), b.debug("in mergeBranch");
152
+ c.records.head = g, c.records.commits.set(g.id, g), c.records.branches.set(c.records.currBranch, g.id), m.debug(c.records.branches), m.debug("in mergeBranch");
153
153
  }, "merge"), xr = /* @__PURE__ */ l(function(t) {
154
154
  let r = t.id, s = t.targetId, n = t.tags, e = t.parent;
155
- b.debug("Entering cherryPick:", r, s, n);
155
+ m.debug("Entering cherryPick:", r, s, n);
156
156
  const a = I();
157
157
  if (r = C.sanitizeText(r, a), s = C.sanitizeText(s, a), n = n == null ? void 0 : n.map((f) => C.sanitizeText(f, a)), e = C.sanitizeText(e, a), !r || !c.records.commits.has(r)) {
158
158
  const f = new Error(
@@ -220,7 +220,7 @@ var lr = /* @__PURE__ */ l(function(t) {
220
220
  `cherry-pick:${d.id}${d.type === p.MERGE ? `|parent:${e}` : ""}`
221
221
  ]
222
222
  };
223
- c.records.head = $, c.records.commits.set($.id, $), c.records.branches.set(c.records.currBranch, $.id), b.debug(c.records.branches), b.debug("in cherryPick");
223
+ c.records.head = $, c.records.commits.set($.id, $), c.records.branches.set(c.records.currBranch, $.id), m.debug(c.records.branches), m.debug("in cherryPick");
224
224
  }
225
225
  }, "cherryPick"), D = /* @__PURE__ */ l(function(t) {
226
226
  if (t = C.sanitizeText(t, I()), c.records.branches.has(t)) {
@@ -252,7 +252,7 @@ function P(t) {
252
252
  const n = [s, r.id, r.seq];
253
253
  for (const e in c.records.branches)
254
254
  c.records.branches.get(e) === r.id && n.push(e);
255
- if (b.debug(n.join(" ")), r.parents && r.parents.length == 2 && r.parents[0] && r.parents[1]) {
255
+ if (m.debug(n.join(" ")), r.parents && r.parents.length == 2 && r.parents[0] && r.parents[1]) {
256
256
  const e = c.records.commits.get(r.parents[0]);
257
257
  _(t, r, e), r.parents[1] && t.push(c.records.commits.get(r.parents[1]));
258
258
  } else {
@@ -267,12 +267,12 @@ function P(t) {
267
267
  }
268
268
  l(P, "prettyPrintCommitHistory");
269
269
  var pr = /* @__PURE__ */ l(function() {
270
- b.debug(c.records.commits);
270
+ m.debug(c.records.commits);
271
271
  const t = N()[0];
272
272
  P([t]);
273
- }, "prettyPrint"), br = /* @__PURE__ */ l(function() {
273
+ }, "prettyPrint"), mr = /* @__PURE__ */ l(function() {
274
274
  c.reset(), sr();
275
- }, "clear"), mr = /* @__PURE__ */ l(function() {
275
+ }, "clear"), br = /* @__PURE__ */ l(function() {
276
276
  return [...c.records.branchConfig.values()].map((r, s) => r.order !== null && r.order !== void 0 ? r : {
277
277
  ...r,
278
278
  order: parseFloat(`0.${s}`)
@@ -284,7 +284,7 @@ var pr = /* @__PURE__ */ l(function() {
284
284
  }, "getCommits"), N = /* @__PURE__ */ l(function() {
285
285
  const t = [...c.records.commits.values()];
286
286
  return t.forEach(function(r) {
287
- b.debug(r.id);
287
+ m.debug(r.id);
288
288
  }), t.sort((r, s) => r.seq - s.seq), t;
289
289
  }, "getCommitsArray"), Cr = /* @__PURE__ */ l(function() {
290
290
  return c.records.currBranch;
@@ -305,8 +305,8 @@ var pr = /* @__PURE__ */ l(function() {
305
305
  checkout: D,
306
306
  //reset,
307
307
  prettyPrint: pr,
308
- clear: br,
309
- getBranchesAsObjArray: mr,
308
+ clear: mr,
309
+ getBranchesAsObjArray: br,
310
310
  getBranches: wr,
311
311
  getCommits: vr,
312
312
  getCommitsArray: N,
@@ -331,7 +331,7 @@ var pr = /* @__PURE__ */ l(function() {
331
331
  Checkout: /* @__PURE__ */ l((e) => r.checkout(Rr(e)), "Checkout"),
332
332
  CherryPicking: /* @__PURE__ */ l((e) => r.cherryPick(Gr(e)), "CherryPicking")
333
333
  }[t.$type];
334
- n ? n(t) : b.error(`Unknown statement type: ${t.$type}`);
334
+ n ? n(t) : m.error(`Unknown statement type: ${t.$type}`);
335
335
  }, "parseStatement"), kr = /* @__PURE__ */ l((t) => ({
336
336
  id: t.id,
337
337
  msg: t.message ?? "",
@@ -356,10 +356,10 @@ var pr = /* @__PURE__ */ l(function() {
356
356
  }, "parseCherryPicking"), Or = {
357
357
  parse: /* @__PURE__ */ l(async (t) => {
358
358
  const r = await dr("gitGraph", t);
359
- b.debug(r), Br(r, S);
359
+ m.debug(r), Br(r, S);
360
360
  }, "parse")
361
- }, qr = rr(), v = qr == null ? void 0 : qr.gitGraph, L = 10, k = 40, E = 4, T = 2, M = 8, m = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), O = 30, R = /* @__PURE__ */ new Map(), q = [], B = 0, u = "LR", Ar = /* @__PURE__ */ l(() => {
362
- m.clear(), w.clear(), R.clear(), B = 0, q = [], u = "LR";
361
+ }, qr = rr(), v = qr == null ? void 0 : qr.gitGraph, L = 10, k = 40, E = 4, T = 2, M = 8, b = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), O = 30, R = /* @__PURE__ */ new Map(), q = [], B = 0, u = "LR", Ar = /* @__PURE__ */ l(() => {
362
+ b.clear(), w.clear(), R.clear(), B = 0, q = [], u = "LR";
363
363
  }, "clear"), W = /* @__PURE__ */ l((t) => {
364
364
  const r = document.createElementNS("http://www.w3.org/2000/svg", "text");
365
365
  return (typeof t == "string" ? t.split(/\\n|\n|<br\s*\/?>/gi) : t).forEach((n) => {
@@ -394,7 +394,7 @@ var pr = /* @__PURE__ */ l(function() {
394
394
  if (o == null ? void 0 : o.parents.length) {
395
395
  const f = Hr(o.parents);
396
396
  n = w.get(f).y - k, n <= e && (e = n);
397
- const h = m.get(o.branch).pos, $ = n - L;
397
+ const h = b.get(o.branch).pos, $ = n - L;
398
398
  w.set(o.id, { x: h, y: $ });
399
399
  }
400
400
  });
@@ -408,13 +408,13 @@ var pr = /* @__PURE__ */ l(function() {
408
408
  throw new Error(`Closest parent position not found for commit ${t.id}`);
409
409
  return s;
410
410
  }, "findClosestParentPos"), zr = /* @__PURE__ */ l((t) => Pr(t) + k, "calculateCommitPosition"), Fr = /* @__PURE__ */ l((t, r) => {
411
- const s = m.get(t.branch);
411
+ const s = b.get(t.branch);
412
412
  if (!s)
413
413
  throw new Error(`Branch not found for commit ${t.id}`);
414
414
  const n = s.pos, e = r + L;
415
415
  return w.set(t.id, { x: n, y: e }), { x: n, y: e };
416
416
  }, "setCommitPosition"), Dr = /* @__PURE__ */ l((t, r, s) => {
417
- const n = m.get(t.branch);
417
+ const n = b.get(t.branch);
418
418
  if (!n)
419
419
  throw new Error(`Branch not found for commit ${t.id}`);
420
420
  const e = r + s, a = n.pos;
@@ -535,7 +535,7 @@ var pr = /* @__PURE__ */ l(function() {
535
535
  return 0;
536
536
  }, "calculatePosition"), Kr = /* @__PURE__ */ l((t, r, s) => {
537
537
  var _a, _b;
538
- const n = u === "BT" && s ? r : r + L, e = u === "TB" || u === "BT" ? n : (_a = m.get(t.branch)) == null ? void 0 : _a.pos, a = u === "TB" || u === "BT" ? (_b = m.get(t.branch)) == null ? void 0 : _b.pos : n;
538
+ const n = u === "BT" && s ? r : r + L, e = u === "TB" || u === "BT" ? n : (_a = b.get(t.branch)) == null ? void 0 : _a.pos, a = u === "TB" || u === "BT" ? (_b = b.get(t.branch)) == null ? void 0 : _b.pos : n;
539
539
  if (a === void 0 || e === void 0)
540
540
  throw new Error(`Position were undefined for commit ${t.id}`);
541
541
  return { x: a, y: e, posWithOffset: n };
@@ -558,7 +558,7 @@ var pr = /* @__PURE__ */ l(function() {
558
558
  o && (a = Yr(g, u, a, w));
559
559
  const i = Kr(g, a, o);
560
560
  if (s) {
561
- const y = jr(g), x = g.customType ?? g.type, H = ((_a = m.get(g.branch)) == null ? void 0 : _a.index) ?? 0;
561
+ const y = jr(g), x = g.customType ?? g.type, H = ((_a = b.get(g.branch)) == null ? void 0 : _a.index) ?? 0;
562
562
  Nr(n, g, i, y, H, x), Sr(e, g, i, a), Wr(e, g, i, a);
563
563
  }
564
564
  u === "TB" || u === "BT" ? w.set(g.id, { x: i.x, y: i.posWithOffset }) : w.set(g.id, { x: i.posWithOffset, y: i.y }), a = u === "BT" && o ? a + k : a + k + L, a > B && (B = a);
@@ -580,13 +580,13 @@ var pr = /* @__PURE__ */ l(function() {
580
580
  if (e === void 0 || a === void 0)
581
581
  throw new Error(`Commit positions not found for commits ${r.id} and ${s.id}`);
582
582
  const d = Ur(r, s, e, a, n);
583
- let o = "", f = "", h = 0, $ = 0, g = (_a = m.get(s.branch)) == null ? void 0 : _a.index;
584
- s.type === p.MERGE && r.id !== s.parents[0] && (g = (_b = m.get(r.branch)) == null ? void 0 : _b.index);
583
+ let o = "", f = "", h = 0, $ = 0, g = (_a = b.get(s.branch)) == null ? void 0 : _a.index;
584
+ s.type === p.MERGE && r.id !== s.parents[0] && (g = (_b = b.get(r.branch)) == null ? void 0 : _b.index);
585
585
  let i;
586
586
  if (d) {
587
587
  o = "A 10 10, 0, 0, 0,", f = "A 10 10, 0, 0, 1,", h = 10, $ = 10;
588
588
  const y = e.y < a.y ? G(e.y, a.y) : G(a.y, e.y), x = e.x < a.x ? G(e.x, a.x) : G(a.x, e.x);
589
- u === "TB" ? e.x < a.x ? i = `M ${e.x} ${e.y} L ${x - h} ${e.y} ${f} ${x} ${e.y + $} L ${x} ${a.y - h} ${o} ${x + $} ${a.y} L ${a.x} ${a.y}` : (g = (_c = m.get(r.branch)) == null ? void 0 : _c.index, i = `M ${e.x} ${e.y} L ${x + h} ${e.y} ${o} ${x} ${e.y + $} L ${x} ${a.y - h} ${f} ${x - $} ${a.y} L ${a.x} ${a.y}`) : u === "BT" ? e.x < a.x ? i = `M ${e.x} ${e.y} L ${x - h} ${e.y} ${o} ${x} ${e.y - $} L ${x} ${a.y + h} ${f} ${x + $} ${a.y} L ${a.x} ${a.y}` : (g = (_d = m.get(r.branch)) == null ? void 0 : _d.index, i = `M ${e.x} ${e.y} L ${x + h} ${e.y} ${f} ${x} ${e.y - $} L ${x} ${a.y + h} ${o} ${x - $} ${a.y} L ${a.x} ${a.y}`) : e.y < a.y ? i = `M ${e.x} ${e.y} L ${e.x} ${y - h} ${o} ${e.x + $} ${y} L ${a.x - h} ${y} ${f} ${a.x} ${y + $} L ${a.x} ${a.y}` : (g = (_e = m.get(r.branch)) == null ? void 0 : _e.index, i = `M ${e.x} ${e.y} L ${e.x} ${y + h} ${f} ${e.x + $} ${y} L ${a.x - h} ${y} ${o} ${a.x} ${y - $} L ${a.x} ${a.y}`);
589
+ u === "TB" ? e.x < a.x ? i = `M ${e.x} ${e.y} L ${x - h} ${e.y} ${f} ${x} ${e.y + $} L ${x} ${a.y - h} ${o} ${x + $} ${a.y} L ${a.x} ${a.y}` : (g = (_c = b.get(r.branch)) == null ? void 0 : _c.index, i = `M ${e.x} ${e.y} L ${x + h} ${e.y} ${o} ${x} ${e.y + $} L ${x} ${a.y - h} ${f} ${x - $} ${a.y} L ${a.x} ${a.y}`) : u === "BT" ? e.x < a.x ? i = `M ${e.x} ${e.y} L ${x - h} ${e.y} ${o} ${x} ${e.y - $} L ${x} ${a.y + h} ${f} ${x + $} ${a.y} L ${a.x} ${a.y}` : (g = (_d = b.get(r.branch)) == null ? void 0 : _d.index, i = `M ${e.x} ${e.y} L ${x + h} ${e.y} ${f} ${x} ${e.y - $} L ${x} ${a.y + h} ${o} ${x - $} ${a.y} L ${a.x} ${a.y}`) : e.y < a.y ? i = `M ${e.x} ${e.y} L ${e.x} ${y - h} ${o} ${e.x + $} ${y} L ${a.x - h} ${y} ${f} ${a.x} ${y + $} L ${a.x} ${a.y}` : (g = (_e = b.get(r.branch)) == null ? void 0 : _e.index, i = `M ${e.x} ${e.y} L ${e.x} ${y + h} ${f} ${e.x + $} ${y} L ${a.x - h} ${y} ${o} ${a.x} ${y - $} L ${a.x} ${a.y}`);
590
590
  } else
591
591
  o = "A 20 20, 0, 0, 0,", f = "A 20 20, 0, 0, 1,", h = 20, $ = 20, u === "TB" ? (e.x < a.x && (s.type === p.MERGE && r.id !== s.parents[0] ? i = `M ${e.x} ${e.y} L ${e.x} ${a.y - h} ${o} ${e.x + $} ${a.y} L ${a.x} ${a.y}` : i = `M ${e.x} ${e.y} L ${a.x - h} ${e.y} ${f} ${a.x} ${e.y + $} L ${a.x} ${a.y}`), e.x > a.x && (o = "A 20 20, 0, 0, 0,", f = "A 20 20, 0, 0, 1,", h = 20, $ = 20, s.type === p.MERGE && r.id !== s.parents[0] ? i = `M ${e.x} ${e.y} L ${e.x} ${a.y - h} ${f} ${e.x - $} ${a.y} L ${a.x} ${a.y}` : i = `M ${e.x} ${e.y} L ${a.x + h} ${e.y} ${o} ${a.x} ${e.y + $} L ${a.x} ${a.y}`), e.x === a.x && (i = `M ${e.x} ${e.y} L ${a.x} ${a.y}`)) : u === "BT" ? (e.x < a.x && (s.type === p.MERGE && r.id !== s.parents[0] ? i = `M ${e.x} ${e.y} L ${e.x} ${a.y + h} ${f} ${e.x + $} ${a.y} L ${a.x} ${a.y}` : i = `M ${e.x} ${e.y} L ${a.x - h} ${e.y} ${o} ${a.x} ${e.y - $} L ${a.x} ${a.y}`), e.x > a.x && (o = "A 20 20, 0, 0, 0,", f = "A 20 20, 0, 0, 1,", h = 20, $ = 20, s.type === p.MERGE && r.id !== s.parents[0] ? i = `M ${e.x} ${e.y} L ${e.x} ${a.y + h} ${o} ${e.x - $} ${a.y} L ${a.x} ${a.y}` : i = `M ${e.x} ${e.y} L ${a.x - h} ${e.y} ${o} ${a.x} ${e.y - $} L ${a.x} ${a.y}`), e.x === a.x && (i = `M ${e.x} ${e.y} L ${a.x} ${a.y}`)) : (e.y < a.y && (s.type === p.MERGE && r.id !== s.parents[0] ? i = `M ${e.x} ${e.y} L ${a.x - h} ${e.y} ${f} ${a.x} ${e.y + $} L ${a.x} ${a.y}` : i = `M ${e.x} ${e.y} L ${e.x} ${a.y - h} ${o} ${e.x + $} ${a.y} L ${a.x} ${a.y}`), e.y > a.y && (s.type === p.MERGE && r.id !== s.parents[0] ? i = `M ${e.x} ${e.y} L ${a.x - h} ${e.y} ${o} ${a.x} ${e.y - $} L ${a.x} ${a.y}` : i = `M ${e.x} ${e.y} L ${e.x} ${a.y + h} ${f} ${e.x + $} ${a.y} L ${a.x} ${a.y}`), e.y === a.y && (i = `M ${e.x} ${e.y} L ${a.x} ${a.y}`));
592
592
  if (i === void 0)
@@ -604,7 +604,7 @@ var pr = /* @__PURE__ */ l(function() {
604
604
  const s = t.append("g");
605
605
  r.forEach((n, e) => {
606
606
  var _a;
607
- const a = e % M, d = (_a = m.get(n.name)) == null ? void 0 : _a.pos;
607
+ const a = e % M, d = (_a = b.get(n.name)) == null ? void 0 : _a.pos;
608
608
  if (d === void 0)
609
609
  throw new Error(`Position not found for branch ${n.name}`);
610
610
  const o = s.append("line");
@@ -618,9 +618,9 @@ var pr = /* @__PURE__ */ l(function() {
618
618
  ), u === "TB" ? ($.attr("x", d - y.width / 2 - 10).attr("y", 0), i.attr("transform", "translate(" + (d - y.width / 2 - 5) + ", 0)")) : u === "BT" ? ($.attr("x", d - y.width / 2 - 10).attr("y", B), i.attr("transform", "translate(" + (d - y.width / 2 - 5) + ", " + B + ")")) : $.attr("transform", "translate(-19, " + (d - y.height / 2) + ")");
619
619
  });
620
620
  }, "drawBranches"), Qr = /* @__PURE__ */ l(function(t, r, s, n, e) {
621
- return m.set(t, { pos: r, index: s }), r += 50 + (e ? 40 : 0) + (u === "TB" || u === "BT" ? n.width / 2 : 0), r;
621
+ return b.set(t, { pos: r, index: s }), r += 50 + (e ? 40 : 0) + (u === "TB" || u === "BT" ? n.width / 2 : 0), r;
622
622
  }, "setBranchPosition"), Zr = /* @__PURE__ */ l(function(t, r, s, n) {
623
- if (Ar(), b.debug("in gitgraph renderer", t + `
623
+ if (Ar(), m.debug("in gitgraph renderer", t + `
624
624
  `, "id:", r, s), !v)
625
625
  throw new Error("GitGraph config not found");
626
626
  const e = v.rotateCommitLabel ?? false, a = n.db;