@aiderdesk/aiderdesk 0.76.0 → 0.78.0

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 (106) hide show
  1. package/out/cli.js +124 -17
  2. package/out/renderer/assets/{AgentSettings-Dc8h1zSI.js → AgentSettings-mSGpRs0A.js} +1228 -4469
  3. package/out/renderer/assets/{InfoIcon-BuABw5oZ.js → InfoIcon-Dllba1sv.js} +1 -1
  4. package/out/renderer/assets/{Onboarding-lX23sGcW.js → Onboarding-D_AT4vxY.js} +4 -4
  5. package/out/renderer/assets/{ProviderHeader-s7JSikLR.js → ProviderHeader-DAchpkUt.js} +8 -20
  6. package/out/renderer/assets/{SettingsPage-CcsH6kmE.js → SettingsPage-DPaPSR-0.js} +5649 -299
  7. package/out/renderer/assets/{UsageDashboard-oAQNYvYh.js → UsageDashboard-CfP-txzz.js} +3 -3
  8. package/out/renderer/assets/abnfDiagram-N423BO3Z-tqPb0OUs.js +118 -0
  9. package/out/renderer/assets/{arc-BiaIwS79.js → arc-lUzj6CoE.js} +1 -1
  10. package/out/renderer/assets/{architectureDiagram-3BPJPVTR-d7fu6X13.js → architectureDiagram-T3A2C74G-CuNUo8J6.js} +242 -133
  11. package/out/renderer/assets/{blockDiagram-GPEHLZMM-CWD8GVpw.js → blockDiagram-VBNYF7ZC-CIiOkZ_D.js} +76 -77
  12. package/out/renderer/assets/{c4Diagram-AAUBKEIU-b5nYOm14.js → c4Diagram-5PPSVZJV-DcgBNVnI.js} +2 -2
  13. package/out/renderer/assets/{channel-B99g0IUF.js → channel-PMBABQAa.js} +1 -1
  14. package/out/renderer/assets/{chunk-ND2GUHAM-BkVCmcvx.js → chunk-2GRJ4B5K-CJI-utiZ.js} +4 -4
  15. package/out/renderer/assets/{chunk-QZHKN3VN-DwLbWeqf.js → chunk-2Q5K7J3B-D8LOcAuY.js} +1 -1
  16. package/out/renderer/assets/{chunk-AQP2D5EJ-m8ArTZfD.js → chunk-5RXB4S5H-dp0xqMbI.js} +67 -32
  17. package/out/renderer/assets/{chunk-FMBD7UC4-yWO_9Kky.js → chunk-5VM5RSS4-D731WvT8.js} +1 -1
  18. package/out/renderer/assets/chunk-6Q2QTUOP-BjzdFhNB.js +860 -0
  19. package/out/renderer/assets/{chunk-727SXJPM-CVxcBF7D.js → chunk-GF5L2VYU-Ct3zh1DW.js} +18 -8
  20. package/out/renderer/assets/{chunk-4BX2VUAB-4Soxfj2i.js → chunk-JWPE2WC7-OPg0X7jU.js} +1 -1
  21. package/out/renderer/assets/{chunk-2J33WTMH-DmrXuNY-.js → chunk-KBJHAD2P-qbM4OnIO.js} +1 -1
  22. package/out/renderer/assets/{dagre-BM42HDAG-D_Val_ih.js → chunk-RYQCIY6F-DQI4Jds6.js} +85 -316
  23. package/out/renderer/assets/{chunk-55IACEB6-BtS727h4.js → chunk-XXDRQBXY-D_LC4QkV.js} +1 -1
  24. package/out/renderer/assets/{classDiagram-4FO5ZUOK-B3t9RWJZ.js → classDiagram-JCYQIIEL-D4e_9tkA.js} +6 -6
  25. package/out/renderer/assets/{classDiagram-v2-Q7XG4LA2-B3t9RWJZ.js → classDiagram-v2-OCEON4UE-D4e_9tkA.js} +6 -6
  26. package/out/renderer/assets/{cose-bilkent-S5V4N54A-W70GNPEp.js → cose-bilkent-JH36ORCC-tRlBuEjd.js} +2 -2
  27. package/out/renderer/assets/{wardley-L42UT6IY-Dnx4ZTc4.js → cynefin-VYW2F7L2-BiEI2vQb.js} +1527 -120
  28. package/out/renderer/assets/cynefinDiagram-MW4NZA55-DBSV1HcE.js +453 -0
  29. package/out/renderer/assets/{cytoscape.esm-BNSvh83I.js → cytoscape.esm-Bx_1tVW-.js} +160 -67
  30. package/out/renderer/assets/dagre-VZM6K2ZE-DRrMrSSw.js +522 -0
  31. package/out/renderer/assets/diagram-7IWD3JNH-CreTV9nH.js +488 -0
  32. package/out/renderer/assets/{diagram-KO2AKTUF-CGi0HZww.js → diagram-B4RE2ZJO-3tlgxoIb.js} +3 -3
  33. package/out/renderer/assets/{diagram-LMA3HP47-bdoVxL2p.js → diagram-LBJQPF4R-BFO2qTLJ.js} +3 -3
  34. package/out/renderer/assets/{diagram-OG6HWLK6-2K829auL.js → diagram-Q27KOJAE-BDgXUH9Q.js} +30 -24
  35. package/out/renderer/assets/{diagram-2AECGRRQ-Z7UeOtJN.js → diagram-UB23O5K3-Qw-ipaCG.js} +18 -8
  36. package/out/renderer/assets/ebnfDiagram-BXEA7PRR-izS1zYs0.js +138 -0
  37. package/out/renderer/assets/{erDiagram-TEJ5UH35-D4sO1GH8.js → erDiagram-JOGREHBK-ld9lNh2F.js} +88 -77
  38. package/out/renderer/assets/{flowDiagram-I6XJVG4X-DQNz4Jg_.js → flowDiagram-UKHOOZJN-g11KS_zg.js} +112 -96
  39. package/out/renderer/assets/{ganttDiagram-6RSMTGT7-B3dUFX1p.js → ganttDiagram-PKOTCBZU-CMsbJWqv.js} +31 -19
  40. package/out/renderer/assets/{gitGraphDiagram-PVQCEYII-B95Lrq_7.js → gitGraphDiagram-DS77QQ5N-CKiYKjBJ.js} +4 -4
  41. package/out/renderer/assets/{graph-7kCtdoo_.js → graph--1WSNErU.js} +10 -10
  42. package/out/renderer/assets/{index-58fbbmhI.js → index-BJGP-Ed0.js} +1 -1
  43. package/out/renderer/assets/{index-Bihcg0ql.js → index-BSQTFZZV.js} +1 -1
  44. package/out/renderer/assets/{index-GRVDmgjb.js → index-BSRjTKaQ.js} +1 -1
  45. package/out/renderer/assets/{index-CNgsMipO.js → index-BahRAP01.js} +7200 -3741
  46. package/out/renderer/assets/{index-BoogYopJ.js → index-BbYkC4ZX.js} +1 -1
  47. package/out/renderer/assets/{index-BHaWBJe9.js → index-BktqS5iT.js} +1 -1
  48. package/out/renderer/assets/{index-BnFS7uhp.js → index-DJfxm3SJ.js} +3 -3
  49. package/out/renderer/assets/{index-DcD881Q1.css → index-DVEVSdXO.css} +21 -0
  50. package/out/renderer/assets/{index-B2TL7Kll.js → index-DqZ8FyZG.js} +1 -1
  51. package/out/renderer/assets/{index-CRfveI6m.js → index-r15oFU5X.js} +1 -1
  52. package/out/renderer/assets/{index-pvhejocY.js → index-xC4jIIdf.js} +1 -1
  53. package/out/renderer/assets/{infoDiagram-5YYISTIA-C0OH2to7.js → infoDiagram-6WML65LV-CZoJK8b2.js} +3 -3
  54. package/out/renderer/assets/{ishikawaDiagram-YF4QCWOH-DsgR-cKp.js → ishikawaDiagram-WSZJBQD7-BrUuSNZ-.js} +1 -1
  55. package/out/renderer/assets/{journeyDiagram-JHISSGLW-Bg6okgzG.js → journeyDiagram-NVQOT4AX-w91U6vB5.js} +4 -4
  56. package/out/renderer/assets/{jsx-dev-runtime-DLJNe6VM.js → jsx-dev-runtime-Bu2_G2cv.js} +1 -1
  57. package/out/renderer/assets/{kanban-definition-UN3LZRKU-1UvLCrWk.js → kanban-definition-27J2QSJJ-DVuGbAnS.js} +2 -2
  58. package/out/renderer/assets/{katex-Co8xHYNH.js → katex-oVG3DVWa.js} +4039 -4063
  59. package/out/renderer/assets/{layout-9w0fH2nL.js → layout-BA4uCGdL.js} +36 -320
  60. package/out/renderer/assets/{linear-WTE7GZY2.js → linear-CWQmShZV.js} +1 -1
  61. package/out/renderer/assets/map-DSwlVIuN.js +299 -0
  62. package/out/renderer/assets/{mindmap-definition-RKZ34NQL-BlxjYw-a.js → mindmap-definition-FAOFIHXS-CbswsknG.js} +3 -3
  63. package/out/renderer/assets/pegDiagram-VL7TDLO6-CCqeWB6l.js +126 -0
  64. package/out/renderer/assets/{pieDiagram-4H26LBE5-C4jZuzAH.js → pieDiagram-7S7Q4E2Y-Chd5qh8F.js} +89 -19
  65. package/out/renderer/assets/pierre-dark-BL-l9r39.js +4 -0
  66. package/out/renderer/assets/pierre-dark-protanopia-deuteranopia-BBjGuJQU.js +4 -0
  67. package/out/renderer/assets/pierre-dark-soft-B6TBhICr.js +4 -0
  68. package/out/renderer/assets/pierre-dark-tritanopia-f-j_EX9A.js +4 -0
  69. package/out/renderer/assets/pierre-dark-vibrant-yElMGqZN.js +4 -0
  70. package/out/renderer/assets/pierre-light-BUzWTcjO.js +4 -0
  71. package/out/renderer/assets/pierre-light-protanopia-deuteranopia-DlvVSCaI.js +4 -0
  72. package/out/renderer/assets/pierre-light-soft-CCMU-Zh0.js +4 -0
  73. package/out/renderer/assets/pierre-light-tritanopia-v4xacE1C.js +4 -0
  74. package/out/renderer/assets/pierre-light-vibrant-BRUbQnMc.js +4 -0
  75. package/out/renderer/assets/{quadrantDiagram-W4KKPZXB-BLG4PrcM.js → quadrantDiagram-CIZ2JOQS-CzmUVvXi.js} +8 -9
  76. package/out/renderer/assets/railroadDiagram-AXF67PYL-CXY83yzR.js +92 -0
  77. package/out/renderer/assets/{requirementDiagram-4Y6WPE33-CTTFFDvR.js → requirementDiagram-LRYGKXZP-DToxgkKr.js} +3 -3
  78. package/out/renderer/assets/{sankeyDiagram-5OEKKPKP-CjDlOfXf.js → sankeyDiagram-W5VNT64P-CRs67mfK.js} +1 -1
  79. package/out/renderer/assets/{sequenceDiagram-3UESZ5HK-6PJo_0SQ.js → sequenceDiagram-SI44F4Z6-CzmgqSt2.js} +11 -11
  80. package/out/renderer/assets/sizeCapture-X5ZJPWSS-mheyKWG9.js +62 -0
  81. package/out/renderer/assets/{stateDiagram-AJRCARHV-Cnhm9mmx.js → stateDiagram-OKZ733FA-DGyuxXU_.js} +8 -6
  82. package/out/renderer/assets/{stateDiagram-v2-BHNVJYJU-BxKTEg-3.js → stateDiagram-v2-UEYNNEHI-TldVLbtJ.js} +5 -4
  83. package/out/renderer/assets/swimlanes-SLNWSIFB-B3lFy2HE.js +8557 -0
  84. package/out/renderer/assets/swimlanesDiagram-ULZ7WXOC-BxN-HDA3.js +20 -0
  85. package/out/renderer/assets/{time-YGhgEMYh.js → time-DcFzC-ob.js} +1 -1
  86. package/out/renderer/assets/{timeline-definition-PNZ67QCA-ooi5Tti4.js → timeline-definition-Z64GVDOM-DQ7vCcJR.js} +2 -2
  87. package/out/renderer/assets/{vennDiagram-CIIHVFJN-B_kwCHhU.js → vennDiagram-T6HMQDX7-MrgLWWY3.js} +32 -3
  88. package/out/renderer/assets/{wardleyDiagram-YWT4CUSO-cqZcXF7R.js → wardleyDiagram-T6FBY63Y-BCA6xyJ2.js} +3 -3
  89. package/out/renderer/assets/{worker-BdXuKH1Q.js → worker-CdcPcIJG.js} +322 -102
  90. package/out/renderer/assets/{xychartDiagram-2RQKCTM6-BBUpFNY4.js → xychartDiagram-ELKLHX3M-BZmPte5b.js} +125 -57
  91. package/out/renderer/index.html +2 -2
  92. package/out/renderer/sw.js +4 -0
  93. package/out/resources/connector/connector.py +3 -1
  94. package/out/resources/prompts/init-project.hbs +16 -42
  95. package/out/resources/prompts/system-prompt.hbs +25 -60
  96. package/out/resources/prompts/workflow.hbs +17 -52
  97. package/out/resources/skills/extension-creator/SKILL.md +1 -0
  98. package/out/resources/skills/extension-creator/references/event-types.md +13 -1
  99. package/out/resources/skills/extension-creator/references/extension-interface.md +3 -0
  100. package/out/runner.js +5735 -3379
  101. package/package.json +5 -4
  102. package/out/renderer/assets/diagram-5GNKFQAL-DY9Yifty.js +0 -169
  103. package/out/renderer/assets/pierre-dark-C-Drv5KU.js +0 -4
  104. package/out/renderer/assets/pierre-dark-soft-Cd74uQaL.js +0 -4
  105. package/out/renderer/assets/pierre-light-CfQnmt6J.js +0 -4
  106. package/out/renderer/assets/pierre-light-soft-DMVdU74b.js +0 -4
@@ -1,7 +1,7 @@
1
- import { g as getIconStyles } from "./chunk-FMBD7UC4-yWO_9Kky.js";
2
- import { be as isPrimitive, bf as getTag, bg as isTypedArray, bh as arrayBufferTag, bi as dataViewTag, bj as booleanTag, bk as numberTag, bl as stringTag, bm as dateTag, bn as regexpTag, bo as symbolTag, bp as mapTag, bq as setTag, br as argumentsTag, bs as uint32ArrayTag, bt as uint16ArrayTag, bu as uint8ClampedArrayTag, bv as uint8ArrayTag, bw as objectTag, bx as int32ArrayTag, by as int16ArrayTag, bz as int8ArrayTag, bA as float64ArrayTag, bB as float32ArrayTag, bC as arrayTag, _ as __name, ai as getConfig, N as select, Q as configureSvgSize, O as log, ac as clear, ae as rgba, bD as getLineFunctionsWithOffset, aF as shapeLine, aN as curveBasis, L as getConfig2, aK as getUrl, bE as getEffectiveHtmlLabels, bF as createText, bG as computeLabelTransform, bH as getSubGraphTitleMargins, a4 as utils_default, Z as common_default, bI as getStylesFromArray, W as sanitizeText, bJ as decodeEntities, bK as configureLabelImages } from "./index-CNgsMipO.js";
3
- import { G as Graph } from "./graph-7kCtdoo_.js";
4
- import { c as channel } from "./channel-B99g0IUF.js";
1
+ import { g as getIconStyles } from "./chunk-5VM5RSS4-D731WvT8.js";
2
+ import { bs as isPrimitive, bt as getTag, bu as isTypedArray, bv as arrayBufferTag, bw as dataViewTag, bx as booleanTag, by as numberTag, bz as stringTag, bA as dateTag, bB as regexpTag, bC as symbolTag, bD as mapTag, bE as setTag, bF as argumentsTag, bG as uint32ArrayTag, bH as uint16ArrayTag, bI as uint8ClampedArrayTag, bJ as uint8ArrayTag, bK as objectTag, bL as int32ArrayTag, bM as int16ArrayTag, bN as int8ArrayTag, bO as float64ArrayTag, bP as float32ArrayTag, bQ as arrayTag, _ as __name, ac as getConfig, N as select, Q as configureSvgSize, O as log, a5 as clear, a7 as rgba, L as getConfig2, bR as getLineFunctionsWithOffset, az as shapeLine, aL as curveBasis, aH as getUrl, bS as getEffectiveHtmlLabels, bT as createText, bU as computeLabelTransform, b5 as getSubGraphTitleMargins, ab as utils_default, Z as common_default, bV as getStylesFromArray, W as sanitizeText, bW as decodeEntities, bX as configureLabelImages } from "./index-BahRAP01.js";
3
+ import { G as Graph } from "./graph--1WSNErU.js";
4
+ import { c as channel } from "./channel-PMBABQAa.js";
5
5
  function isArray(value) {
6
6
  return Array.isArray(value);
7
7
  }
@@ -1109,10 +1109,9 @@ var COLOR_KEYWORD = "color";
1109
1109
  var FILL_KEYWORD = "fill";
1110
1110
  var BG_FILL = "bgFill";
1111
1111
  var STYLECLASS_SEP = ",";
1112
- var config = getConfig2();
1113
1112
  var classes = /* @__PURE__ */ new Map();
1114
1113
  var diagramId = "";
1115
- var sanitizeText2 = /* @__PURE__ */ __name((txt) => common_default.sanitizeText(txt, config), "sanitizeText");
1114
+ var sanitizeText2 = /* @__PURE__ */ __name((txt) => common_default.sanitizeText(txt, getConfig2()), "sanitizeText");
1116
1115
  var addStyleClass = /* @__PURE__ */ __name(function(id, styleAttributes = "") {
1117
1116
  let foundClass = classes.get(id);
1118
1117
  if (!foundClass) {
@@ -1578,7 +1577,6 @@ var markers = {
1578
1577
  barb
1579
1578
  };
1580
1579
  var markers_default = insertMarkers;
1581
- var padding = getConfig2()?.block?.padding ?? 8;
1582
1580
  function calculateBlockPosition(columns, position) {
1583
1581
  if (columns === 0 || !Number.isInteger(columns)) {
1584
1582
  throw new Error("Columns must be an integer !== 0.");
@@ -1628,7 +1626,7 @@ var getMaxChildSize = /* @__PURE__ */ __name((block) => {
1628
1626
  }
1629
1627
  return { width: maxWidth, height: maxHeight };
1630
1628
  }, "getMaxChildSize");
1631
- function setBlockSizes(block, db2, siblingWidth = 0, siblingHeight = 0) {
1629
+ function setBlockSizes(block, db2, siblingWidth = 0, siblingHeight = 0, padding = 8) {
1632
1630
  log.debug(
1633
1631
  "setBlockSizes abc95 (start)",
1634
1632
  block.id,
@@ -1650,7 +1648,7 @@ function setBlockSizes(block, db2, siblingWidth = 0, siblingHeight = 0) {
1650
1648
  let maxHeight = 0;
1651
1649
  if (block.children?.length > 0) {
1652
1650
  for (const child of block.children) {
1653
- setBlockSizes(child, db2);
1651
+ setBlockSizes(child, db2, 0, 0, padding);
1654
1652
  }
1655
1653
  const childSize = getMaxChildSize(block);
1656
1654
  maxWidth = childSize.width;
@@ -1671,7 +1669,7 @@ function setBlockSizes(block, db2, siblingWidth = 0, siblingHeight = 0) {
1671
1669
  }
1672
1670
  }
1673
1671
  for (const child of block.children) {
1674
- setBlockSizes(child, db2, maxWidth, maxHeight);
1672
+ setBlockSizes(child, db2, maxWidth, maxHeight, padding);
1675
1673
  }
1676
1674
  const columns = block.columns ?? -1;
1677
1675
  let numItems = 0;
@@ -1738,7 +1736,7 @@ function setBlockSizes(block, db2, siblingWidth = 0, siblingHeight = 0) {
1738
1736
  );
1739
1737
  }
1740
1738
  __name(setBlockSizes, "setBlockSizes");
1741
- function layoutBlocks(block, db2) {
1739
+ function layoutBlocks(block, db2, padding = 8) {
1742
1740
  log.debug(
1743
1741
  `abc85 layout blocks (=>layoutBlocks) ${block.id} x: ${block?.size?.x} y: ${block?.size?.y} width: ${block?.size?.width}`
1744
1742
  );
@@ -1811,7 +1809,7 @@ function layoutBlocks(block, db2) {
1811
1809
  );
1812
1810
  }
1813
1811
  if (child.children) {
1814
- layoutBlocks(child);
1812
+ layoutBlocks(child, db2, padding);
1815
1813
  }
1816
1814
  let columnsFilled = child?.widthInColumns ?? 1;
1817
1815
  if (columns > 0) {
@@ -1855,8 +1853,9 @@ function layout(db2) {
1855
1853
  if (!root) {
1856
1854
  return;
1857
1855
  }
1858
- setBlockSizes(root, db2, 0, 0);
1859
- layoutBlocks(root);
1856
+ const padding = getConfig2()?.block?.padding ?? 8;
1857
+ setBlockSizes(root, db2, 0, 0, padding);
1858
+ layoutBlocks(root, db2, padding);
1860
1859
  log.debug("getBlocks", JSON.stringify(root, null, 2));
1861
1860
  const { minX, minY, maxX, maxY } = findBounds(root);
1862
1861
  const height = maxY - minY;
@@ -1869,8 +1868,8 @@ var createLabel = /* @__PURE__ */ __name(async (element, _vertexText, style, isT
1869
1868
  if (typeof vertexText === "object") {
1870
1869
  vertexText = vertexText[0];
1871
1870
  }
1872
- const config2 = getConfig2();
1873
- const useHtmlLabels = getEffectiveHtmlLabels(config2);
1871
+ const config = getConfig2();
1872
+ const useHtmlLabels = getEffectiveHtmlLabels(config);
1874
1873
  return await createText(
1875
1874
  element,
1876
1875
  vertexText,
@@ -1882,7 +1881,7 @@ var createLabel = /* @__PURE__ */ __name(async (element, _vertexText, style, isT
1882
1881
  isNode,
1883
1882
  width: Number.POSITIVE_INFINITY
1884
1883
  },
1885
- config2
1884
+ config
1886
1885
  );
1887
1886
  }, "createLabel");
1888
1887
  var createLabel_default = createLabel;
@@ -1917,8 +1916,8 @@ var addEdgeMarker = /* @__PURE__ */ __name((svgPath, position, arrowType, url, i
1917
1916
  var edgeLabels = {};
1918
1917
  var terminalLabels = {};
1919
1918
  var insertEdgeLabel = /* @__PURE__ */ __name(async (elem, edge) => {
1920
- const config2 = getConfig2();
1921
- const useHtmlLabels = getEffectiveHtmlLabels(config2);
1919
+ const config = getConfig2();
1920
+ const useHtmlLabels = getEffectiveHtmlLabels(config);
1922
1921
  const edgeLabel = elem.insert("g").attr("class", "edgeLabel");
1923
1922
  const label = edgeLabel.insert("g").attr("class", "label");
1924
1923
  const isMarkdown = edge.labelType === "markdown";
@@ -1936,7 +1935,7 @@ var insertEdgeLabel = /* @__PURE__ */ __name(async (elem, edge) => {
1936
1935
  // If using markdown, wrap using default width
1937
1936
  width: isMarkdown ? void 0 : Number.POSITIVE_INFINITY
1938
1937
  },
1939
- config2
1938
+ config
1940
1939
  );
1941
1940
  label.node().appendChild(labelElement);
1942
1941
  let bbox = labelElement.getBBox();
@@ -2313,28 +2312,28 @@ var getArrowPoints = /* @__PURE__ */ __name((duplicatedDirections, bbox, node, t
2313
2312
  const height = bbox.height + 2 * node.padding;
2314
2313
  const midpoint = height / f;
2315
2314
  const width = totalWidth ?? bbox.width + 2 * midpoint + node.padding;
2316
- const padding2 = node.padding / 2;
2315
+ const padding = node.padding / 2;
2317
2316
  if (directions.has("right") && directions.has("left") && directions.has("up") && directions.has("down")) {
2318
2317
  return [
2319
2318
  // Bottom
2320
2319
  { x: 0, y: 0 },
2321
2320
  { x: midpoint, y: 0 },
2322
- { x: width / 2, y: 2 * padding2 },
2321
+ { x: width / 2, y: 2 * padding },
2323
2322
  { x: width - midpoint, y: 0 },
2324
2323
  { x: width, y: 0 },
2325
2324
  // Right
2326
2325
  { x: width, y: -height / 3 },
2327
- { x: width + 2 * padding2, y: -height / 2 },
2326
+ { x: width + 2 * padding, y: -height / 2 },
2328
2327
  { x: width, y: -2 * height / 3 },
2329
2328
  { x: width, y: -height },
2330
2329
  // Top
2331
2330
  { x: width - midpoint, y: -height },
2332
- { x: width / 2, y: -height - 2 * padding2 },
2331
+ { x: width / 2, y: -height - 2 * padding },
2333
2332
  { x: midpoint, y: -height },
2334
2333
  // Left
2335
2334
  { x: 0, y: -height },
2336
2335
  { x: 0, y: -2 * height / 3 },
2337
- { x: -2 * padding2, y: -height / 2 },
2336
+ { x: -2 * padding, y: -height / 2 },
2338
2337
  { x: 0, y: -height / 3 }
2339
2338
  ];
2340
2339
  }
@@ -2375,13 +2374,13 @@ var getArrowPoints = /* @__PURE__ */ __name((duplicatedDirections, bbox, node, t
2375
2374
  if (directions.has("right") && directions.has("left")) {
2376
2375
  return [
2377
2376
  { x: midpoint, y: 0 },
2378
- { x: midpoint, y: -padding2 },
2379
- { x: width - midpoint, y: -padding2 },
2377
+ { x: midpoint, y: -padding },
2378
+ { x: width - midpoint, y: -padding },
2380
2379
  { x: width - midpoint, y: 0 },
2381
2380
  { x: width, y: -height / 2 },
2382
2381
  { x: width - midpoint, y: -height },
2383
- { x: width - midpoint, y: -height + padding2 },
2384
- { x: midpoint, y: -height + padding2 },
2382
+ { x: width - midpoint, y: -height + padding },
2383
+ { x: midpoint, y: -height + padding },
2385
2384
  { x: midpoint, y: -height },
2386
2385
  { x: 0, y: -height / 2 }
2387
2386
  ];
@@ -2390,19 +2389,19 @@ var getArrowPoints = /* @__PURE__ */ __name((duplicatedDirections, bbox, node, t
2390
2389
  return [
2391
2390
  // Bottom center
2392
2391
  { x: width / 2, y: 0 },
2393
- // Left pont of bottom arrow
2394
- { x: 0, y: -padding2 },
2395
- { x: midpoint, y: -padding2 },
2392
+ // Left point of bottom arrow
2393
+ { x: 0, y: -padding },
2394
+ { x: midpoint, y: -padding },
2396
2395
  // Left top over vertical section
2397
- { x: midpoint, y: -height + padding2 },
2398
- { x: 0, y: -height + padding2 },
2396
+ { x: midpoint, y: -height + padding },
2397
+ { x: 0, y: -height + padding },
2399
2398
  // Top of arrow
2400
2399
  { x: width / 2, y: -height },
2401
- { x: width, y: -height + padding2 },
2400
+ { x: width, y: -height + padding },
2402
2401
  // Top of right vertical bar
2403
- { x: width - midpoint, y: -height + padding2 },
2404
- { x: width - midpoint, y: -padding2 },
2405
- { x: width, y: -padding2 }
2402
+ { x: width - midpoint, y: -height + padding },
2403
+ { x: width - midpoint, y: -padding },
2404
+ { x: width, y: -padding }
2406
2405
  ];
2407
2406
  }
2408
2407
  if (directions.has("right") && directions.has("up")) {
@@ -2435,26 +2434,26 @@ var getArrowPoints = /* @__PURE__ */ __name((duplicatedDirections, bbox, node, t
2435
2434
  }
2436
2435
  if (directions.has("right")) {
2437
2436
  return [
2438
- { x: midpoint, y: -padding2 },
2439
- { x: midpoint, y: -padding2 },
2440
- { x: width - midpoint, y: -padding2 },
2437
+ { x: midpoint, y: -padding },
2438
+ { x: midpoint, y: -padding },
2439
+ { x: width - midpoint, y: -padding },
2441
2440
  { x: width - midpoint, y: 0 },
2442
2441
  { x: width, y: -height / 2 },
2443
2442
  { x: width - midpoint, y: -height },
2444
- { x: width - midpoint, y: -height + padding2 },
2443
+ { x: width - midpoint, y: -height + padding },
2445
2444
  // top left corner of arrow
2446
- { x: midpoint, y: -height + padding2 },
2447
- { x: midpoint, y: -height + padding2 }
2445
+ { x: midpoint, y: -height + padding },
2446
+ { x: midpoint, y: -height + padding }
2448
2447
  ];
2449
2448
  }
2450
2449
  if (directions.has("left")) {
2451
2450
  return [
2452
2451
  { x: midpoint, y: 0 },
2453
- { x: midpoint, y: -padding2 },
2452
+ { x: midpoint, y: -padding },
2454
2453
  // Two points, the right corners
2455
- { x: width - midpoint, y: -padding2 },
2456
- { x: width - midpoint, y: -height + padding2 },
2457
- { x: midpoint, y: -height + padding2 },
2454
+ { x: width - midpoint, y: -padding },
2455
+ { x: width - midpoint, y: -height + padding },
2456
+ { x: midpoint, y: -height + padding },
2458
2457
  { x: midpoint, y: -height },
2459
2458
  { x: 0, y: -height / 2 }
2460
2459
  ];
@@ -2462,30 +2461,30 @@ var getArrowPoints = /* @__PURE__ */ __name((duplicatedDirections, bbox, node, t
2462
2461
  if (directions.has("up")) {
2463
2462
  return [
2464
2463
  // Bottom center
2465
- { x: midpoint, y: -padding2 },
2464
+ { x: midpoint, y: -padding },
2466
2465
  // Left top over vertical section
2467
- { x: midpoint, y: -height + padding2 },
2468
- { x: 0, y: -height + padding2 },
2466
+ { x: midpoint, y: -height + padding },
2467
+ { x: 0, y: -height + padding },
2469
2468
  // Top of arrow
2470
2469
  { x: width / 2, y: -height },
2471
- { x: width, y: -height + padding2 },
2470
+ { x: width, y: -height + padding },
2472
2471
  // Top of right vertical bar
2473
- { x: width - midpoint, y: -height + padding2 },
2474
- { x: width - midpoint, y: -padding2 }
2472
+ { x: width - midpoint, y: -height + padding },
2473
+ { x: width - midpoint, y: -padding }
2475
2474
  ];
2476
2475
  }
2477
2476
  if (directions.has("down")) {
2478
2477
  return [
2479
2478
  // Bottom center
2480
2479
  { x: width / 2, y: 0 },
2481
- // Left pont of bottom arrow
2482
- { x: 0, y: -padding2 },
2483
- { x: midpoint, y: -padding2 },
2480
+ // Left point of bottom arrow
2481
+ { x: 0, y: -padding },
2482
+ { x: midpoint, y: -padding },
2484
2483
  // Left top over vertical section
2485
- { x: midpoint, y: -height + padding2 },
2486
- { x: width - midpoint, y: -height + padding2 },
2487
- { x: width - midpoint, y: -padding2 },
2488
- { x: width, y: -padding2 }
2484
+ { x: midpoint, y: -height + padding },
2485
+ { x: width - midpoint, y: -height + padding },
2486
+ { x: width - midpoint, y: -padding },
2487
+ { x: width, y: -padding }
2489
2488
  ];
2490
2489
  }
2491
2490
  return [{ x: 0, y: 0 }];
@@ -2636,9 +2635,9 @@ var intersect_default = {
2636
2635
  rect: intersect_rect_default
2637
2636
  };
2638
2637
  var labelHelper = /* @__PURE__ */ __name(async (parent, node, _classes, isNode) => {
2639
- const config2 = getConfig2();
2638
+ const config = getConfig2();
2640
2639
  let classes2;
2641
- const useHtmlLabels = node.useHtmlLabels || getEffectiveHtmlLabels(config2);
2640
+ const useHtmlLabels = node.useHtmlLabels || getEffectiveHtmlLabels(config);
2642
2641
  if (!_classes) {
2643
2642
  classes2 = "node default";
2644
2643
  } else {
@@ -2656,18 +2655,18 @@ var labelHelper = /* @__PURE__ */ __name(async (parent, node, _classes, isNode)
2656
2655
  if (node.labelType === "markdown") {
2657
2656
  text = createText(
2658
2657
  label,
2659
- sanitizeText(decodeEntities(labelText), config2),
2658
+ sanitizeText(decodeEntities(labelText), config),
2660
2659
  {
2661
2660
  useHtmlLabels,
2662
- width: node.width || config2.flowchart.wrappingWidth,
2661
+ width: node.width || config.flowchart.wrappingWidth,
2663
2662
  classes: "markdown-node-label"
2664
2663
  },
2665
- config2
2664
+ config
2666
2665
  );
2667
2666
  } else {
2668
2667
  text = await createLabel_default(
2669
2668
  label,
2670
- sanitizeText(decodeEntities(labelText), config2),
2669
+ sanitizeText(decodeEntities(labelText), config),
2671
2670
  node.labelStyle,
2672
2671
  false,
2673
2672
  isNode
@@ -2675,7 +2674,7 @@ var labelHelper = /* @__PURE__ */ __name(async (parent, node, _classes, isNode)
2675
2674
  }
2676
2675
  let bbox = text.getBBox();
2677
2676
  const halfPadding = node.padding / 2;
2678
- if (getEffectiveHtmlLabels(config2)) {
2677
+ if (getEffectiveHtmlLabels(config)) {
2679
2678
  const div = text.children[0];
2680
2679
  const dv = select(text);
2681
2680
  await configureLabelImages(div, labelText);
@@ -3542,12 +3541,12 @@ var positionNode = /* @__PURE__ */ __name((node) => {
3542
3541
  node,
3543
3542
  "translate(" + (node.x - node.width / 2 - 5) + ", " + node.width / 2 + ")"
3544
3543
  );
3545
- const padding2 = 8;
3544
+ const padding = 8;
3546
3545
  const diff = node.diff || 0;
3547
3546
  if (node.clusterNode) {
3548
3547
  el.attr(
3549
3548
  "transform",
3550
- "translate(" + (node.x + diff - node.width / 2) + ", " + (node.y - node.height / 2 - padding2) + ")"
3549
+ "translate(" + (node.x + diff - node.width / 2) + ", " + (node.y - node.height / 2 - padding) + ")"
3551
3550
  );
3552
3551
  } else {
3553
3552
  el.attr("transform", "translate(" + node.x + ", " + node.y + ")");
@@ -3563,7 +3562,7 @@ function getNodeFromBlock(block, db2, positioned = false) {
3563
3562
  classStr = classStr + " flowchart-label";
3564
3563
  let radius = 0;
3565
3564
  let shape = "";
3566
- let padding2;
3565
+ let padding;
3567
3566
  switch (vertex.type) {
3568
3567
  case "round":
3569
3568
  radius = 5;
@@ -3572,7 +3571,7 @@ function getNodeFromBlock(block, db2, positioned = false) {
3572
3571
  case "composite":
3573
3572
  radius = 0;
3574
3573
  shape = "composite";
3575
- padding2 = 0;
3574
+ padding = 0;
3576
3575
  break;
3577
3576
  case "square":
3578
3577
  shape = "rect";
@@ -3650,7 +3649,7 @@ function getNodeFromBlock(block, db2, positioned = false) {
3650
3649
  positioned,
3651
3650
  intersect: void 0,
3652
3651
  type: vertex.type,
3653
- padding: padding2 ?? getConfig()?.block?.padding ?? 0,
3652
+ padding: padding ?? getConfig()?.block?.padding ?? 0,
3654
3653
  widthInColumns: vertex.widthInColumns ?? 1
3655
3654
  };
3656
3655
  return node;
@@ -3661,8 +3660,8 @@ async function calculateBlockSize(elem, block, db2) {
3661
3660
  if (node.type === "group") {
3662
3661
  return;
3663
3662
  }
3664
- const config2 = getConfig();
3665
- const nodeEl = await insertNode(elem, node, { config: config2 });
3663
+ const config = getConfig();
3664
+ const nodeEl = await insertNode(elem, node, { config });
3666
3665
  const boundingBox = nodeEl.node().getBBox();
3667
3666
  const obj = db2.getBlock(node.id);
3668
3667
  obj.size = { width: boundingBox.width, height: boundingBox.height, x: 0, y: 0, node: nodeEl };
@@ -3674,8 +3673,8 @@ async function insertBlockPositioned(elem, block, db2) {
3674
3673
  const node = getNodeFromBlock(block, db2, true);
3675
3674
  const obj = db2.getBlock(node.id);
3676
3675
  if (obj.type !== "space") {
3677
- const config2 = getConfig();
3678
- await insertNode(elem, node, { config: config2 });
3676
+ const config = getConfig();
3677
+ await insertNode(elem, node, { config });
3679
3678
  block.intersect = node?.intersect;
3680
3679
  positionNode(node);
3681
3680
  }
@@ -1,5 +1,5 @@
1
- import { g as getNoteRect, d as drawRect } from "./chunk-ND2GUHAM-BkVCmcvx.js";
2
- import { C as setAccDescription, H as getAccDescription, J as getAccTitle, K as setAccTitle, _ as __name, L as getConfig2, N as select, O as log, Q as configureSvgSize, T as assignWithDepth_default, U as calculateTextWidth, W as sanitizeText, X as distExports, Y as wrapLabel, Z as common_default, $ as calculateTextHeight } from "./index-CNgsMipO.js";
1
+ import { g as getNoteRect, d as drawRect } from "./chunk-2GRJ4B5K-CJI-utiZ.js";
2
+ import { C as setAccDescription, H as getAccDescription, J as getAccTitle, K as setAccTitle, _ as __name, L as getConfig2, N as select, O as log, Q as configureSvgSize, T as assignWithDepth_default, U as calculateTextWidth, W as sanitizeText, X as distExports, Y as wrapLabel, Z as common_default, $ as calculateTextHeight } from "./index-BahRAP01.js";
3
3
  var parser = (function() {
4
4
  var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
5
5
  for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
@@ -1,4 +1,4 @@
1
- import { af as Utils, ag as Color } from "./index-CNgsMipO.js";
1
+ import { a1 as Utils, a2 as Color } from "./index-BahRAP01.js";
2
2
  const channel = (color, channel2) => {
3
3
  return Utils.lang.round(Color.parse(color)[channel2]);
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as __name, N as select, a0 as lineBreakRegex, X as distExports } from "./index-CNgsMipO.js";
1
+ import { _ as __name, N as select, a0 as lineBreakRegex, X as distExports } from "./index-BahRAP01.js";
2
2
  var drawRect = /* @__PURE__ */ __name((element, rectData) => {
3
3
  const rectElement = element.append("rect");
4
4
  rectElement.attr("x", rectData.x);
@@ -107,10 +107,10 @@ var createTooltip = /* @__PURE__ */ __name(() => {
107
107
  export {
108
108
  drawBackgroundRect as a,
109
109
  getTextObj as b,
110
- createTooltip as c,
110
+ drawEmbeddedImage as c,
111
111
  drawRect as d,
112
- drawEmbeddedImage as e,
113
- drawImage as f,
112
+ drawImage as e,
113
+ createTooltip as f,
114
114
  getNoteRect as g,
115
115
  drawText as h
116
116
  };
@@ -1,4 +1,4 @@
1
- import { _ as __name } from "./index-CNgsMipO.js";
1
+ import { _ as __name } from "./index-BahRAP01.js";
2
2
  var ImperativeState = class {
3
3
  /**
4
4
  * @param init - Function that creates the default state.