@sme.up/ketchup2 2.0.0-SNAPSHOT-20251201091718 → 2.0.0-SNAPSHOT-20251201100226

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 (121) hide show
  1. package/dist/{_baseIsEqual-Db0sDqoQ.cjs → _baseIsEqual-CPwO9vpI.cjs} +1 -1
  2. package/dist/{_baseIsEqual-DsC1R1xa.js → _baseIsEqual-DyMI3QgY.js} +1 -1
  3. package/dist/{_basePickBy-BgjH0GAR.js → _basePickBy-CvdBWdAX.js} +3 -3
  4. package/dist/{_basePickBy-QQ1Bdl_C.cjs → _basePickBy-UUTHWEmE.cjs} +1 -1
  5. package/dist/{_baseUniq-DHhqYxbL.js → _baseUniq-BnMAs5Ho.js} +2 -2
  6. package/dist/{_baseUniq-BUYj7dw_.cjs → _baseUniq-CrYeQAxd.cjs} +1 -1
  7. package/dist/{arc-BEv4yWZf.cjs → arc-CClIGOb9.cjs} +1 -1
  8. package/dist/{arc-B93pubnc.js → arc-Dfw_VOXC.js} +1 -1
  9. package/dist/{architecture-O4VJ6CD3-CN2e96Lv.cjs → architecture-O4VJ6CD3-DolpLF8u.cjs} +1 -1
  10. package/dist/{architecture-O4VJ6CD3-Cq7RdM5L.js → architecture-O4VJ6CD3-rp9G2buq.js} +1 -1
  11. package/dist/{architectureDiagram-VXUJARFQ-D8QZQ6Wm.cjs → architectureDiagram-VXUJARFQ-BZDn3tnm.cjs} +1 -1
  12. package/dist/{architectureDiagram-VXUJARFQ-C1NUDmGV.js → architectureDiagram-VXUJARFQ-DaSqLkER.js} +3 -3
  13. package/dist/{blockDiagram-VD42YOAC-Dk-TK5ax.js → blockDiagram-VD42YOAC-BEbpfdGW.js} +5 -5
  14. package/dist/{blockDiagram-VD42YOAC-B6Bzm3CW.cjs → blockDiagram-VD42YOAC-BO3TP1Kp.cjs} +1 -1
  15. package/dist/{c4Diagram-YG6GDRKO-BmLmyKH6.js → c4Diagram-YG6GDRKO-BavjdR5h.js} +2 -2
  16. package/dist/{c4Diagram-YG6GDRKO-B5vCQ6kg.cjs → c4Diagram-YG6GDRKO-D0LjXx3e.cjs} +1 -1
  17. package/dist/channel-CAVLXaWO.cjs +1 -0
  18. package/dist/{channel-CsEqwJIO.js → channel-DQKqG8qc.js} +1 -1
  19. package/dist/{chunk-4BX2VUAB-Cx20FuGv.cjs → chunk-4BX2VUAB-BYyPFsvA.cjs} +1 -1
  20. package/dist/{chunk-4BX2VUAB-2STJSegM.js → chunk-4BX2VUAB-w6VY2TVv.js} +1 -1
  21. package/dist/{chunk-55IACEB6-sqXDGc7Z.cjs → chunk-55IACEB6-C4bcMJTm.cjs} +1 -1
  22. package/dist/{chunk-55IACEB6-DH1qit26.js → chunk-55IACEB6-wJU2fDzn.js} +1 -1
  23. package/dist/{chunk-B4BG7PRW-CSd2nkvT.cjs → chunk-B4BG7PRW-D7vbGzrD.cjs} +1 -1
  24. package/dist/{chunk-B4BG7PRW-BQJ7xv33.js → chunk-B4BG7PRW-S3mHH33n.js} +4 -4
  25. package/dist/{chunk-DI55MBZ5-B7aj4F8P.cjs → chunk-DI55MBZ5-C4y_S2xm.cjs} +1 -1
  26. package/dist/{chunk-DI55MBZ5-BtX6Sztz.js → chunk-DI55MBZ5-C5npflg_.js} +3 -3
  27. package/dist/{chunk-FMBD7UC4-Wn1hvv-B.cjs → chunk-FMBD7UC4-Bhme03QU.cjs} +1 -1
  28. package/dist/{chunk-FMBD7UC4-DxuGusm9.js → chunk-FMBD7UC4-T1D2LBu9.js} +1 -1
  29. package/dist/{chunk-QN33PNHL-BBUNJf51.js → chunk-QN33PNHL-BDxqfDj2.js} +1 -1
  30. package/dist/{chunk-QN33PNHL-BaVWijPr.cjs → chunk-QN33PNHL-CKAfbMFi.cjs} +1 -1
  31. package/dist/{chunk-QZHKN3VN-BjyhwDmh.js → chunk-QZHKN3VN-C7TXRMrr.js} +1 -1
  32. package/dist/{chunk-QZHKN3VN-DEwHmOqu.cjs → chunk-QZHKN3VN-D0MRSmoP.cjs} +1 -1
  33. package/dist/{chunk-TZMSLE5B-DnI9g4h2.cjs → chunk-TZMSLE5B-CT5zSWGS.cjs} +1 -1
  34. package/dist/{chunk-TZMSLE5B-Dr3ERbUF.js → chunk-TZMSLE5B-Cg4hCUAK.js} +1 -1
  35. package/dist/{classDiagram-2ON5EDUG-Cm0ktRmO.cjs → classDiagram-2ON5EDUG-C3spJq9b.cjs} +1 -1
  36. package/dist/{classDiagram-v2-WZHVMYZB-t5u8yZ5S.js → classDiagram-2ON5EDUG-hRJrlXY1.js} +2 -2
  37. package/dist/{classDiagram-v2-WZHVMYZB-Cm0ktRmO.cjs → classDiagram-v2-WZHVMYZB-C3spJq9b.cjs} +1 -1
  38. package/dist/{classDiagram-2ON5EDUG-t5u8yZ5S.js → classDiagram-v2-WZHVMYZB-hRJrlXY1.js} +2 -2
  39. package/dist/{clone-1teBJIJ5.js → clone--i50qHRn.js} +1 -1
  40. package/dist/clone-15NSMZdA.cjs +1 -0
  41. package/dist/{cloneDeep-DsKDgmF-.js → cloneDeep-BrOy29l5.js} +1 -1
  42. package/dist/{cloneDeep-BP01RXuN.cjs → cloneDeep-CVMaiStp.cjs} +1 -1
  43. package/dist/{cose-bilkent-S5V4N54A-ct_pVBsW.cjs → cose-bilkent-S5V4N54A-CEpK5UfU.cjs} +1 -1
  44. package/dist/{cose-bilkent-S5V4N54A-Dgk-xiBR.js → cose-bilkent-S5V4N54A-DOtJIMvx.js} +1 -1
  45. package/dist/{dagre-6UL2VRFP-DqfWmOw8.js → dagre-6UL2VRFP-ChoO__yl.js} +6 -6
  46. package/dist/{dagre-6UL2VRFP-DxdO0tHk.cjs → dagre-6UL2VRFP-CkyXF-wa.cjs} +1 -1
  47. package/dist/{diagram-PSM6KHXK-DxPgHd4B.js → diagram-PSM6KHXK-C6MSQwBV.js} +4 -4
  48. package/dist/{diagram-PSM6KHXK-BZmy34WX.cjs → diagram-PSM6KHXK-Cj43bfSe.cjs} +1 -1
  49. package/dist/{diagram-QEK2KX5R-CW3cucgN.cjs → diagram-QEK2KX5R-BRrIoinp.cjs} +1 -1
  50. package/dist/{diagram-QEK2KX5R-Cogaceal.js → diagram-QEK2KX5R-CdBxW_tb.js} +3 -3
  51. package/dist/{diagram-S2PKOQOG-DBpjb1VC.cjs → diagram-S2PKOQOG-Cvyuth1U.cjs} +1 -1
  52. package/dist/{diagram-S2PKOQOG-C2MZVUxG.js → diagram-S2PKOQOG-DFkxokvT.js} +3 -3
  53. package/dist/{erDiagram-Q2GNP2WA-CGm4yVvc.cjs → erDiagram-Q2GNP2WA-Ck5MoIro.cjs} +1 -1
  54. package/dist/{erDiagram-Q2GNP2WA-BhUwrWj6.js → erDiagram-Q2GNP2WA-FaszPFJq.js} +4 -4
  55. package/dist/{flowDiagram-NV44I4VS-BXHxFvRL.cjs → flowDiagram-NV44I4VS-Drf9-dq1.cjs} +1 -1
  56. package/dist/{flowDiagram-NV44I4VS-BAGcD86u.js → flowDiagram-NV44I4VS-JLcui5en.js} +5 -5
  57. package/dist/functional-components/overlay-panel/overlay-panel-types.d.ts +4 -1
  58. package/dist/functional-components/overlay-panel/overlay-panel-types.d.ts.map +1 -1
  59. package/dist/functional-components/overlay-panel/overlay-panel.d.ts.map +1 -1
  60. package/dist/{ganttDiagram-LVOFAZNH-CS9rI0Ym.js → ganttDiagram-LVOFAZNH-BKiiirtw.js} +2 -2
  61. package/dist/{ganttDiagram-LVOFAZNH-DcjmpMuY.cjs → ganttDiagram-LVOFAZNH-DWYML8e8.cjs} +1 -1
  62. package/dist/{gitGraph-ZV4HHKMB-CXYrxBy2.cjs → gitGraph-ZV4HHKMB-BqUY4AfD.cjs} +1 -1
  63. package/dist/{gitGraph-ZV4HHKMB-BiK1eCZU.js → gitGraph-ZV4HHKMB-DRC08bsI.js} +1 -1
  64. package/dist/{gitGraphDiagram-NY62KEGX-nD57QcQY.cjs → gitGraphDiagram-NY62KEGX-CLJ_zK8y.cjs} +1 -1
  65. package/dist/{gitGraphDiagram-NY62KEGX-CR-qB5Ib.js → gitGraphDiagram-NY62KEGX-xgS03POm.js} +4 -4
  66. package/dist/{graph-voJv2WTw.js → graph-Chxc6U1N.js} +3 -3
  67. package/dist/{graph-BJpk6aCn.cjs → graph-CyXULrD6.cjs} +1 -1
  68. package/dist/{index-BbEE-9BW.cjs → index-Be-BWA_-.cjs} +5 -5
  69. package/dist/{index-CQH0Eeg7.js → index-CHr4dOgM.js} +64 -56
  70. package/dist/info-63CPKGFF-Cp5TnjVl.js +5 -0
  71. package/dist/{info-63CPKGFF-CfafgDrT.cjs → info-63CPKGFF-DjgMrG0F.cjs} +1 -1
  72. package/dist/{infoDiagram-F6ZHWCRC-DGjCTYmo.cjs → infoDiagram-F6ZHWCRC-CyREz8EB.cjs} +1 -1
  73. package/dist/{infoDiagram-F6ZHWCRC-BjQBagRp.js → infoDiagram-F6ZHWCRC-ySWP3R9P.js} +2 -2
  74. package/dist/{journeyDiagram-XKPGCS4Q-B7RGjuiU.cjs → journeyDiagram-XKPGCS4Q-C2fKgrSB.cjs} +1 -1
  75. package/dist/{journeyDiagram-XKPGCS4Q-BthgK7Qx.js → journeyDiagram-XKPGCS4Q-D6cIxQgZ.js} +4 -4
  76. package/dist/{kanban-definition-3W4ZIXB7-CAHPm-sj.js → kanban-definition-3W4ZIXB7-CxNXclSo.js} +2 -2
  77. package/dist/{kanban-definition-3W4ZIXB7-Dz9COA8n.cjs → kanban-definition-3W4ZIXB7-E9Zt4k9d.cjs} +1 -1
  78. package/dist/ketchup2.cjs.js +1 -1
  79. package/dist/ketchup2.es.js +1 -1
  80. package/dist/{layout-Cf94X7c7.cjs → layout-C3LkewUl.cjs} +1 -1
  81. package/dist/{layout-cN3lauF0.js → layout-DPcPqMG_.js} +5 -5
  82. package/dist/{linear-B7weRKZ9.cjs → linear-5MA0OTl2.cjs} +1 -1
  83. package/dist/{linear-C-1egziS.js → linear-B_psuOVW.js} +1 -1
  84. package/dist/{mermaid-parser.core-ByHAw50M.cjs → mermaid-parser.core-BTMVNUdG.cjs} +2 -2
  85. package/dist/{mermaid-parser.core-DCuq84OX.js → mermaid-parser.core-DecMyV0T.js} +12 -12
  86. package/dist/{mindmap-definition-VGOIOE7T-DcXg6pFS.cjs → mindmap-definition-VGOIOE7T-CkA0dYIM.cjs} +1 -1
  87. package/dist/{mindmap-definition-VGOIOE7T-Bax3A817.js → mindmap-definition-VGOIOE7T-pVjTS7wC.js} +3 -3
  88. package/dist/{packet-HUATNLJX-Dmbn4Q8J.cjs → packet-HUATNLJX-B00k8qdF.cjs} +1 -1
  89. package/dist/{packet-HUATNLJX-CLyvB1N0.js → packet-HUATNLJX-DDzNy9hI.js} +1 -1
  90. package/dist/pie-WTHONI2E-CNi1omgA.js +5 -0
  91. package/dist/{pie-WTHONI2E-CXiXJg82.cjs → pie-WTHONI2E-CaMco2l7.cjs} +1 -1
  92. package/dist/{pieDiagram-ADFJNKIX-OZjIhzkf.cjs → pieDiagram-ADFJNKIX-CTkSXHh5.cjs} +1 -1
  93. package/dist/{pieDiagram-ADFJNKIX-zfoZFMf_.js → pieDiagram-ADFJNKIX-bLlwKZwY.js} +4 -4
  94. package/dist/{quadrantDiagram-AYHSOK5B-CmbVsTas.js → quadrantDiagram-AYHSOK5B-FyGCrNEW.js} +2 -2
  95. package/dist/{quadrantDiagram-AYHSOK5B-BBJ34xDw.cjs → quadrantDiagram-AYHSOK5B-KY1NGdGE.cjs} +1 -1
  96. package/dist/{quill-D3cMV_uj.js → quill-B15K1whb.js} +3 -3
  97. package/dist/{quill-PFS19xBk.cjs → quill-BomazKGo.cjs} +1 -1
  98. package/dist/radar-NJJJXTRR-BUrsKA4t.js +5 -0
  99. package/dist/{radar-NJJJXTRR-D5vxZlJb.cjs → radar-NJJJXTRR-yTz0rMqd.cjs} +1 -1
  100. package/dist/{requirementDiagram-UZGBJVZJ-B62sosAK.cjs → requirementDiagram-UZGBJVZJ-BhPaiKlL.cjs} +1 -1
  101. package/dist/{requirementDiagram-UZGBJVZJ-BOm8eYnZ.js → requirementDiagram-UZGBJVZJ-Bqphu-YB.js} +3 -3
  102. package/dist/{sankeyDiagram-TZEHDZUN-CEBP-VLp.js → sankeyDiagram-TZEHDZUN-CEgFJQ6a.js} +1 -1
  103. package/dist/{sankeyDiagram-TZEHDZUN-oq3dUtsH.cjs → sankeyDiagram-TZEHDZUN-pbGICL0S.cjs} +1 -1
  104. package/dist/{sequenceDiagram-WL72ISMW-CethFBtt.js → sequenceDiagram-WL72ISMW-Cl-uyqOg.js} +3 -3
  105. package/dist/{sequenceDiagram-WL72ISMW-B9TNUKhT.cjs → sequenceDiagram-WL72ISMW-DSDV7eud.cjs} +1 -1
  106. package/dist/{stateDiagram-FKZM4ZOC-CIXdPZ4o.js → stateDiagram-FKZM4ZOC-CVYY3As9.js} +4 -4
  107. package/dist/{stateDiagram-FKZM4ZOC-COk5dxXE.cjs → stateDiagram-FKZM4ZOC-tN5tDUD1.cjs} +1 -1
  108. package/dist/{stateDiagram-v2-4FDKWEC3-BeLm6JGS.cjs → stateDiagram-v2-4FDKWEC3-CZ5p3nbd.cjs} +1 -1
  109. package/dist/{stateDiagram-v2-4FDKWEC3-Y57bWswx.js → stateDiagram-v2-4FDKWEC3-hFHf4G2h.js} +2 -2
  110. package/dist/{timeline-definition-IT6M3QCI-DeucA7O4.js → timeline-definition-IT6M3QCI-CLkayfYQ.js} +2 -2
  111. package/dist/{timeline-definition-IT6M3QCI-DrvQo2Ho.cjs → timeline-definition-IT6M3QCI-GwHovQ8K.cjs} +1 -1
  112. package/dist/{treemap-75Q7IDZK-BV7fMQ-x.js → treemap-75Q7IDZK-D7NAN367.js} +1 -1
  113. package/dist/{treemap-75Q7IDZK-CDWy96yU.cjs → treemap-75Q7IDZK-kFaSuXA8.cjs} +1 -1
  114. package/dist/{xychartDiagram-PRI3JC2R-DMDQF1eG.cjs → xychartDiagram-PRI3JC2R-DUPN_2wi.cjs} +1 -1
  115. package/dist/{xychartDiagram-PRI3JC2R-BQSd9Pep.js → xychartDiagram-PRI3JC2R-N6kNy8wY.js} +2 -2
  116. package/package.json +1 -1
  117. package/dist/channel-PRosvhLl.cjs +0 -1
  118. package/dist/clone-CwXssmJq.cjs +0 -1
  119. package/dist/info-63CPKGFF-v_j05JhI.js +0 -5
  120. package/dist/pie-WTHONI2E-DC7uOp7j.js +0 -5
  121. package/dist/radar-NJJJXTRR-C2UZBKtS.js +0 -5
@@ -7299,51 +7299,59 @@ const ia = {
7299
7299
  }, W5 = ({
7300
7300
  open: e,
7301
7301
  position: t = "center",
7302
- width: r,
7303
- isModal: n = !0,
7304
- closeOnClickOutside: i = !1,
7305
- onClose: a,
7306
- children: o,
7307
- className: s
7302
+ maxWidth: r,
7303
+ maxHeight: n,
7304
+ minWidth: i,
7305
+ minHeight: a,
7306
+ isModal: o = !0,
7307
+ closeOnClickOutside: s = !1,
7308
+ onClose: l,
7309
+ children: u,
7310
+ className: c
7308
7311
  }) => {
7309
- const l = qt(null), u = qt(null), { shouldRender: c, isExiting: h, isVisible: f } = fX(e, {
7312
+ const h = qt(null), f = qt(null), { shouldRender: d, isExiting: p, isVisible: v } = fX(e, {
7310
7313
  exitDuration: 300
7311
7314
  // Match CSS transition duration
7312
7315
  });
7313
- Su([l], e && i && !n, () => {
7314
- a && a();
7316
+ Su([h], e && s && !o, () => {
7317
+ l && l();
7315
7318
  });
7316
- const d = `
7319
+ const g = `
7317
7320
  ${vf["smp-overlay-panel"]}
7318
7321
  ${vf[`smp-overlay-panel-${t}`] || ""}
7319
- ${h ? vf["smp-overlay-panel-closing"] : ""}
7320
- `.trim(), p = s ? `${s} ${d}` : d;
7321
- return c ? /* @__PURE__ */ B.jsxs(xi, { children: [
7322
- c && n && /* @__PURE__ */ B.jsx(
7322
+ ${p ? vf["smp-overlay-panel-closing"] : ""}
7323
+ `.trim(), m = {
7324
+ ...r && { maxWidth: r },
7325
+ ...i && { minWidth: i },
7326
+ ...n && { maxHeight: n },
7327
+ ...a && { minHeight: a }
7328
+ }, y = c ? `${c} ${g}` : g;
7329
+ return d ? /* @__PURE__ */ B.jsxs(xi, { children: [
7330
+ d && o && /* @__PURE__ */ B.jsx(
7323
7331
  "div",
7324
7332
  {
7325
- ref: u,
7326
- className: `${vf["smp-overlay-panel-backdrop"]} ${h ? vf["smp-backdrop-closing"] : ""}`,
7333
+ ref: f,
7334
+ className: `${vf["smp-overlay-panel-backdrop"]} ${p ? vf["smp-backdrop-closing"] : ""}`,
7327
7335
  role: "button",
7328
- tabIndex: i ? 0 : -1,
7336
+ tabIndex: s ? 0 : -1,
7329
7337
  "aria-label": "Close overlay",
7330
7338
  onClick: () => {
7331
- i && a && a();
7339
+ s && l && l();
7332
7340
  },
7333
- onKeyDown: (v) => {
7334
- i && (v.key === "Enter" || v.key === " ") && (v.preventDefault(), a && a());
7341
+ onKeyDown: (_) => {
7342
+ s && (_.key === "Enter" || _.key === " ") && (_.preventDefault(), l && l());
7335
7343
  }
7336
7344
  }
7337
7345
  ),
7338
7346
  /* @__PURE__ */ B.jsx(
7339
7347
  "dialog",
7340
7348
  {
7341
- ref: l,
7342
- className: p,
7343
- onClose: a,
7344
- style: r ? { width: r } : void 0,
7345
- open: f,
7346
- children: o
7349
+ ref: h,
7350
+ className: y,
7351
+ onClose: l,
7352
+ style: m,
7353
+ open: v,
7354
+ children: u
7347
7355
  }
7348
7356
  )
7349
7357
  ] }) : null;
@@ -7480,7 +7488,7 @@ const ia = {
7480
7488
  let $;
7481
7489
  return (async () => {
7482
7490
  try {
7483
- const G = (await import("./quill-D3cMV_uj.js")).default, W = N.appendChild(
7491
+ const G = (await import("./quill-B15K1whb.js")).default, W = N.appendChild(
7484
7492
  document.createElement("div")
7485
7493
  ), j = new G(W, {
7486
7494
  theme: "snow",
@@ -24980,11 +24988,11 @@ var Est = /* @__PURE__ */ M((e, t, r, n) => {
24980
24988
  bG([
24981
24989
  {
24982
24990
  name: "dagre",
24983
- loader: /* @__PURE__ */ M(async () => await import("./dagre-6UL2VRFP-DqfWmOw8.js"), "loader")
24991
+ loader: /* @__PURE__ */ M(async () => await import("./dagre-6UL2VRFP-ChoO__yl.js"), "loader")
24984
24992
  },
24985
24993
  {
24986
24994
  name: "cose-bilkent",
24987
- loader: /* @__PURE__ */ M(async () => await import("./cose-bilkent-S5V4N54A-Dgk-xiBR.js"), "loader")
24995
+ loader: /* @__PURE__ */ M(async () => await import("./cose-bilkent-S5V4N54A-DOtJIMvx.js"), "loader")
24988
24996
  }
24989
24997
  ]);
24990
24998
  }, "registerDefaultLayoutLoaders");
@@ -25331,119 +25339,119 @@ function CM(e) {
25331
25339
  return !0;
25332
25340
  }
25333
25341
  var DG = "c4", Alt = /* @__PURE__ */ M((e) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e), "detector"), Dlt = /* @__PURE__ */ M(async () => {
25334
- const { diagram: e } = await import("./c4Diagram-YG6GDRKO-BmLmyKH6.js");
25342
+ const { diagram: e } = await import("./c4Diagram-YG6GDRKO-BavjdR5h.js");
25335
25343
  return { id: DG, diagram: e };
25336
25344
  }, "loader"), Llt = {
25337
25345
  id: DG,
25338
25346
  detector: Alt,
25339
25347
  loader: Dlt
25340
25348
  }, Elt = Llt, LG = "flowchart", Mlt = /* @__PURE__ */ M((e, t) => t?.flowchart?.defaultRenderer === "dagre-wrapper" || t?.flowchart?.defaultRenderer === "elk" ? !1 : /^\s*graph/.test(e), "detector"), Ilt = /* @__PURE__ */ M(async () => {
25341
- const { diagram: e } = await import("./flowDiagram-NV44I4VS-BAGcD86u.js");
25349
+ const { diagram: e } = await import("./flowDiagram-NV44I4VS-JLcui5en.js");
25342
25350
  return { id: LG, diagram: e };
25343
25351
  }, "loader"), Plt = {
25344
25352
  id: LG,
25345
25353
  detector: Mlt,
25346
25354
  loader: Ilt
25347
25355
  }, Rlt = Plt, EG = "flowchart-v2", Nlt = /* @__PURE__ */ M((e, t) => t?.flowchart?.defaultRenderer === "dagre-d3" ? !1 : (t?.flowchart?.defaultRenderer === "elk" && (t.layout = "elk"), /^\s*graph/.test(e) && t?.flowchart?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(e)), "detector"), Olt = /* @__PURE__ */ M(async () => {
25348
- const { diagram: e } = await import("./flowDiagram-NV44I4VS-BAGcD86u.js");
25356
+ const { diagram: e } = await import("./flowDiagram-NV44I4VS-JLcui5en.js");
25349
25357
  return { id: EG, diagram: e };
25350
25358
  }, "loader"), Blt = {
25351
25359
  id: EG,
25352
25360
  detector: Nlt,
25353
25361
  loader: Olt
25354
25362
  }, Flt = Blt, MG = "er", $lt = /* @__PURE__ */ M((e) => /^\s*erDiagram/.test(e), "detector"), Vlt = /* @__PURE__ */ M(async () => {
25355
- const { diagram: e } = await import("./erDiagram-Q2GNP2WA-BhUwrWj6.js");
25363
+ const { diagram: e } = await import("./erDiagram-Q2GNP2WA-FaszPFJq.js");
25356
25364
  return { id: MG, diagram: e };
25357
25365
  }, "loader"), zlt = {
25358
25366
  id: MG,
25359
25367
  detector: $lt,
25360
25368
  loader: Vlt
25361
25369
  }, Glt = zlt, IG = "gitGraph", Wlt = /* @__PURE__ */ M((e) => /^\s*gitGraph/.test(e), "detector"), Hlt = /* @__PURE__ */ M(async () => {
25362
- const { diagram: e } = await import("./gitGraphDiagram-NY62KEGX-CR-qB5Ib.js");
25370
+ const { diagram: e } = await import("./gitGraphDiagram-NY62KEGX-xgS03POm.js");
25363
25371
  return { id: IG, diagram: e };
25364
25372
  }, "loader"), jlt = {
25365
25373
  id: IG,
25366
25374
  detector: Wlt,
25367
25375
  loader: Hlt
25368
25376
  }, Ult = jlt, PG = "gantt", Ylt = /* @__PURE__ */ M((e) => /^\s*gantt/.test(e), "detector"), qlt = /* @__PURE__ */ M(async () => {
25369
- const { diagram: e } = await import("./ganttDiagram-LVOFAZNH-CS9rI0Ym.js");
25377
+ const { diagram: e } = await import("./ganttDiagram-LVOFAZNH-BKiiirtw.js");
25370
25378
  return { id: PG, diagram: e };
25371
25379
  }, "loader"), Xlt = {
25372
25380
  id: PG,
25373
25381
  detector: Ylt,
25374
25382
  loader: qlt
25375
25383
  }, Zlt = Xlt, RG = "info", Klt = /* @__PURE__ */ M((e) => /^\s*info/.test(e), "detector"), Qlt = /* @__PURE__ */ M(async () => {
25376
- const { diagram: e } = await import("./infoDiagram-F6ZHWCRC-BjQBagRp.js");
25384
+ const { diagram: e } = await import("./infoDiagram-F6ZHWCRC-ySWP3R9P.js");
25377
25385
  return { id: RG, diagram: e };
25378
25386
  }, "loader"), Jlt = {
25379
25387
  id: RG,
25380
25388
  detector: Klt,
25381
25389
  loader: Qlt
25382
25390
  }, NG = "pie", tut = /* @__PURE__ */ M((e) => /^\s*pie/.test(e), "detector"), eut = /* @__PURE__ */ M(async () => {
25383
- const { diagram: e } = await import("./pieDiagram-ADFJNKIX-zfoZFMf_.js");
25391
+ const { diagram: e } = await import("./pieDiagram-ADFJNKIX-bLlwKZwY.js");
25384
25392
  return { id: NG, diagram: e };
25385
25393
  }, "loader"), rut = {
25386
25394
  id: NG,
25387
25395
  detector: tut,
25388
25396
  loader: eut
25389
25397
  }, OG = "quadrantChart", nut = /* @__PURE__ */ M((e) => /^\s*quadrantChart/.test(e), "detector"), iut = /* @__PURE__ */ M(async () => {
25390
- const { diagram: e } = await import("./quadrantDiagram-AYHSOK5B-CmbVsTas.js");
25398
+ const { diagram: e } = await import("./quadrantDiagram-AYHSOK5B-FyGCrNEW.js");
25391
25399
  return { id: OG, diagram: e };
25392
25400
  }, "loader"), aut = {
25393
25401
  id: OG,
25394
25402
  detector: nut,
25395
25403
  loader: iut
25396
25404
  }, out = aut, BG = "xychart", sut = /* @__PURE__ */ M((e) => /^\s*xychart(-beta)?/.test(e), "detector"), lut = /* @__PURE__ */ M(async () => {
25397
- const { diagram: e } = await import("./xychartDiagram-PRI3JC2R-BQSd9Pep.js");
25405
+ const { diagram: e } = await import("./xychartDiagram-PRI3JC2R-N6kNy8wY.js");
25398
25406
  return { id: BG, diagram: e };
25399
25407
  }, "loader"), uut = {
25400
25408
  id: BG,
25401
25409
  detector: sut,
25402
25410
  loader: lut
25403
25411
  }, cut = uut, FG = "requirement", hut = /* @__PURE__ */ M((e) => /^\s*requirement(Diagram)?/.test(e), "detector"), fut = /* @__PURE__ */ M(async () => {
25404
- const { diagram: e } = await import("./requirementDiagram-UZGBJVZJ-BOm8eYnZ.js");
25412
+ const { diagram: e } = await import("./requirementDiagram-UZGBJVZJ-Bqphu-YB.js");
25405
25413
  return { id: FG, diagram: e };
25406
25414
  }, "loader"), dut = {
25407
25415
  id: FG,
25408
25416
  detector: hut,
25409
25417
  loader: fut
25410
25418
  }, put = dut, $G = "sequence", vut = /* @__PURE__ */ M((e) => /^\s*sequenceDiagram/.test(e), "detector"), gut = /* @__PURE__ */ M(async () => {
25411
- const { diagram: e } = await import("./sequenceDiagram-WL72ISMW-CethFBtt.js");
25419
+ const { diagram: e } = await import("./sequenceDiagram-WL72ISMW-Cl-uyqOg.js");
25412
25420
  return { id: $G, diagram: e };
25413
25421
  }, "loader"), mut = {
25414
25422
  id: $G,
25415
25423
  detector: vut,
25416
25424
  loader: gut
25417
25425
  }, yut = mut, VG = "class", _ut = /* @__PURE__ */ M((e, t) => t?.class?.defaultRenderer === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(e), "detector"), xut = /* @__PURE__ */ M(async () => {
25418
- const { diagram: e } = await import("./classDiagram-2ON5EDUG-t5u8yZ5S.js");
25426
+ const { diagram: e } = await import("./classDiagram-2ON5EDUG-hRJrlXY1.js");
25419
25427
  return { id: VG, diagram: e };
25420
25428
  }, "loader"), but = {
25421
25429
  id: VG,
25422
25430
  detector: _ut,
25423
25431
  loader: xut
25424
25432
  }, Sut = but, zG = "classDiagram", wut = /* @__PURE__ */ M((e, t) => /^\s*classDiagram/.test(e) && t?.class?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(e), "detector"), Cut = /* @__PURE__ */ M(async () => {
25425
- const { diagram: e } = await import("./classDiagram-v2-WZHVMYZB-t5u8yZ5S.js");
25433
+ const { diagram: e } = await import("./classDiagram-v2-WZHVMYZB-hRJrlXY1.js");
25426
25434
  return { id: zG, diagram: e };
25427
25435
  }, "loader"), Tut = {
25428
25436
  id: zG,
25429
25437
  detector: wut,
25430
25438
  loader: Cut
25431
25439
  }, kut = Tut, GG = "state", Aut = /* @__PURE__ */ M((e, t) => t?.state?.defaultRenderer === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(e), "detector"), Dut = /* @__PURE__ */ M(async () => {
25432
- const { diagram: e } = await import("./stateDiagram-FKZM4ZOC-CIXdPZ4o.js");
25440
+ const { diagram: e } = await import("./stateDiagram-FKZM4ZOC-CVYY3As9.js");
25433
25441
  return { id: GG, diagram: e };
25434
25442
  }, "loader"), Lut = {
25435
25443
  id: GG,
25436
25444
  detector: Aut,
25437
25445
  loader: Dut
25438
25446
  }, Eut = Lut, WG = "stateDiagram", Mut = /* @__PURE__ */ M((e, t) => !!(/^\s*stateDiagram-v2/.test(e) || /^\s*stateDiagram/.test(e) && t?.state?.defaultRenderer === "dagre-wrapper"), "detector"), Iut = /* @__PURE__ */ M(async () => {
25439
- const { diagram: e } = await import("./stateDiagram-v2-4FDKWEC3-Y57bWswx.js");
25447
+ const { diagram: e } = await import("./stateDiagram-v2-4FDKWEC3-hFHf4G2h.js");
25440
25448
  return { id: WG, diagram: e };
25441
25449
  }, "loader"), Put = {
25442
25450
  id: WG,
25443
25451
  detector: Mut,
25444
25452
  loader: Iut
25445
25453
  }, Rut = Put, HG = "journey", Nut = /* @__PURE__ */ M((e) => /^\s*journey/.test(e), "detector"), Out = /* @__PURE__ */ M(async () => {
25446
- const { diagram: e } = await import("./journeyDiagram-XKPGCS4Q-BthgK7Qx.js");
25454
+ const { diagram: e } = await import("./journeyDiagram-XKPGCS4Q-D6cIxQgZ.js");
25447
25455
  return { id: HG, diagram: e };
25448
25456
  }, "loader"), But = {
25449
25457
  id: HG,
@@ -25484,70 +25492,70 @@ var DG = "c4", Alt = /* @__PURE__ */ M((e) => /^\s*C4Context|C4Container|C4Compo
25484
25492
  /^\s*flowchart-elk/.test(e) || // If a flowchart/graph diagram has their default renderer set to elk
25485
25493
  /^\s*(flowchart|graph)/.test(e) && t?.flowchart?.defaultRenderer === "elk" ? (t.layout = "elk", !0) : !1
25486
25494
  ), "detector"), Hut = /* @__PURE__ */ M(async () => {
25487
- const { diagram: e } = await import("./flowDiagram-NV44I4VS-BAGcD86u.js");
25495
+ const { diagram: e } = await import("./flowDiagram-NV44I4VS-JLcui5en.js");
25488
25496
  return { id: UG, diagram: e };
25489
25497
  }, "loader"), jut = {
25490
25498
  id: UG,
25491
25499
  detector: Wut,
25492
25500
  loader: Hut
25493
25501
  }, Uut = jut, YG = "timeline", Yut = /* @__PURE__ */ M((e) => /^\s*timeline/.test(e), "detector"), qut = /* @__PURE__ */ M(async () => {
25494
- const { diagram: e } = await import("./timeline-definition-IT6M3QCI-DeucA7O4.js");
25502
+ const { diagram: e } = await import("./timeline-definition-IT6M3QCI-CLkayfYQ.js");
25495
25503
  return { id: YG, diagram: e };
25496
25504
  }, "loader"), Xut = {
25497
25505
  id: YG,
25498
25506
  detector: Yut,
25499
25507
  loader: qut
25500
25508
  }, Zut = Xut, qG = "mindmap", Kut = /* @__PURE__ */ M((e) => /^\s*mindmap/.test(e), "detector"), Qut = /* @__PURE__ */ M(async () => {
25501
- const { diagram: e } = await import("./mindmap-definition-VGOIOE7T-Bax3A817.js");
25509
+ const { diagram: e } = await import("./mindmap-definition-VGOIOE7T-pVjTS7wC.js");
25502
25510
  return { id: qG, diagram: e };
25503
25511
  }, "loader"), Jut = {
25504
25512
  id: qG,
25505
25513
  detector: Kut,
25506
25514
  loader: Qut
25507
25515
  }, tct = Jut, XG = "kanban", ect = /* @__PURE__ */ M((e) => /^\s*kanban/.test(e), "detector"), rct = /* @__PURE__ */ M(async () => {
25508
- const { diagram: e } = await import("./kanban-definition-3W4ZIXB7-CAHPm-sj.js");
25516
+ const { diagram: e } = await import("./kanban-definition-3W4ZIXB7-CxNXclSo.js");
25509
25517
  return { id: XG, diagram: e };
25510
25518
  }, "loader"), nct = {
25511
25519
  id: XG,
25512
25520
  detector: ect,
25513
25521
  loader: rct
25514
25522
  }, ict = nct, ZG = "sankey", act = /* @__PURE__ */ M((e) => /^\s*sankey(-beta)?/.test(e), "detector"), oct = /* @__PURE__ */ M(async () => {
25515
- const { diagram: e } = await import("./sankeyDiagram-TZEHDZUN-CEBP-VLp.js");
25523
+ const { diagram: e } = await import("./sankeyDiagram-TZEHDZUN-CEgFJQ6a.js");
25516
25524
  return { id: ZG, diagram: e };
25517
25525
  }, "loader"), sct = {
25518
25526
  id: ZG,
25519
25527
  detector: act,
25520
25528
  loader: oct
25521
25529
  }, lct = sct, KG = "packet", uct = /* @__PURE__ */ M((e) => /^\s*packet(-beta)?/.test(e), "detector"), cct = /* @__PURE__ */ M(async () => {
25522
- const { diagram: e } = await import("./diagram-S2PKOQOG-C2MZVUxG.js");
25530
+ const { diagram: e } = await import("./diagram-S2PKOQOG-DFkxokvT.js");
25523
25531
  return { id: KG, diagram: e };
25524
25532
  }, "loader"), hct = {
25525
25533
  id: KG,
25526
25534
  detector: uct,
25527
25535
  loader: cct
25528
25536
  }, QG = "radar", fct = /* @__PURE__ */ M((e) => /^\s*radar-beta/.test(e), "detector"), dct = /* @__PURE__ */ M(async () => {
25529
- const { diagram: e } = await import("./diagram-QEK2KX5R-Cogaceal.js");
25537
+ const { diagram: e } = await import("./diagram-QEK2KX5R-CdBxW_tb.js");
25530
25538
  return { id: QG, diagram: e };
25531
25539
  }, "loader"), pct = {
25532
25540
  id: QG,
25533
25541
  detector: fct,
25534
25542
  loader: dct
25535
25543
  }, JG = "block", vct = /* @__PURE__ */ M((e) => /^\s*block(-beta)?/.test(e), "detector"), gct = /* @__PURE__ */ M(async () => {
25536
- const { diagram: e } = await import("./blockDiagram-VD42YOAC-Dk-TK5ax.js");
25544
+ const { diagram: e } = await import("./blockDiagram-VD42YOAC-BEbpfdGW.js");
25537
25545
  return { id: JG, diagram: e };
25538
25546
  }, "loader"), mct = {
25539
25547
  id: JG,
25540
25548
  detector: vct,
25541
25549
  loader: gct
25542
25550
  }, yct = mct, tW = "architecture", _ct = /* @__PURE__ */ M((e) => /^\s*architecture/.test(e), "detector"), xct = /* @__PURE__ */ M(async () => {
25543
- const { diagram: e } = await import("./architectureDiagram-VXUJARFQ-C1NUDmGV.js");
25551
+ const { diagram: e } = await import("./architectureDiagram-VXUJARFQ-DaSqLkER.js");
25544
25552
  return { id: tW, diagram: e };
25545
25553
  }, "loader"), bct = {
25546
25554
  id: tW,
25547
25555
  detector: _ct,
25548
25556
  loader: xct
25549
25557
  }, Sct = bct, eW = "treemap", wct = /* @__PURE__ */ M((e) => /^\s*treemap/.test(e), "detector"), Cct = /* @__PURE__ */ M(async () => {
25550
- const { diagram: e } = await import("./diagram-PSM6KHXK-DxPgHd4B.js");
25558
+ const { diagram: e } = await import("./diagram-PSM6KHXK-C6MSQwBV.js");
25551
25559
  return { id: eW, diagram: e };
25552
25560
  }, "loader"), Tct = {
25553
25561
  id: eW,
@@ -0,0 +1,5 @@
1
+ import { I as r, c as a } from "./mermaid-parser.core-DecMyV0T.js";
2
+ export {
3
+ r as InfoModule,
4
+ a as createInfoServices
5
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-ByHAw50M.cjs");exports.InfoModule=e.InfoModule;exports.createInfoServices=e.createInfoServices;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-BTMVNUdG.cjs");exports.InfoModule=e.InfoModule;exports.createInfoServices=e.createInfoServices;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BbEE-9BW.cjs"),s=require("./mermaid-parser.core-ByHAw50M.cjs");var o={parse:e.__name(async r=>{const a=await s.parse("info",r);e.log.debug(a)},"parse")},i={version:e.package_default.version+""},g=e.__name(()=>i.version,"getVersion"),d={getVersion:g},v=e.__name((r,a,n)=>{e.log.debug(`rendering info diagram
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Be-BWA_-.cjs"),s=require("./mermaid-parser.core-BTMVNUdG.cjs");var o={parse:e.__name(async r=>{const a=await s.parse("info",r);e.log.debug(a)},"parse")},i={version:e.package_default.version+""},g=e.__name(()=>i.version,"getVersion"),d={getVersion:g},v=e.__name((r,a,n)=>{e.log.debug(`rendering info diagram
2
2
  `+r);const t=e.selectSvgElement(a);e.configureSvgSize(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw"),c={draw:v},p={parser:o,db:d,renderer:c};exports.diagram=p;
@@ -1,5 +1,5 @@
1
- import { _ as e, l as s, H as o, e as i, I as g } from "./index-CQH0Eeg7.js";
2
- import { p } from "./mermaid-parser.core-DCuq84OX.js";
1
+ import { _ as e, l as s, H as o, e as i, I as g } from "./index-CHr4dOgM.js";
2
+ import { p } from "./mermaid-parser.core-DecMyV0T.js";
3
3
  var v = {
4
4
  parse: /* @__PURE__ */ e(async (r) => {
5
5
  const a = await p("info", r);
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("./chunk-TZMSLE5B-DnI9g4h2.cjs"),ft=require("./chunk-FMBD7UC4-Wn1hvv-B.cjs"),i=require("./index-BbEE-9BW.cjs"),tt=require("./arc-BEv4yWZf.cjs");var H=function(){var t=i.__name(function(h,n,s,l){for(s=s||{},l=h.length;l--;s[h[l]]=n);return s},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],c=[1,10],r=[1,11],f=[1,12],u=[1,13],y=[1,14],_={trace:i.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:i.__name(function(n,s,l,d,p,o,b){var x=o.length-1;switch(p){case 1:return o[x-1];case 2:this.$=[];break;case 3:o[x-1].push(o[x]),this.$=o[x-1];break;case 4:case 5:this.$=o[x];break;case 6:case 7:this.$=[];break;case 8:d.setDiagramTitle(o[x].substr(6)),this.$=o[x].substr(6);break;case 9:this.$=o[x].trim(),d.setAccTitle(this.$);break;case 10:case 11:this.$=o[x].trim(),d.setAccDescription(this.$);break;case 12:d.addSection(o[x].substr(8)),this.$=o[x].substr(8);break;case 13:d.addTask(o[x-1],o[x]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:c,14:r,16:f,17:u,18:y},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:c,14:r,16:f,17:u,18:y},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:i.__name(function(n,s){if(s.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=s,l}},"parseError"),parse:i.__name(function(n){var s=this,l=[0],d=[],p=[null],o=[],b=this.table,x="",E=0,D=0,ht=2,J=1,ut=o.slice.call(arguments,1),k=Object.create(this.lexer),A={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(A.yy[q]=this.yy[q]);k.setInput(n,A.yy),A.yy.lexer=k,A.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var O=k.yylloc;o.push(O);var dt=k.options&&k.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(w){l.length=l.length-2*w,p.length=p.length-w,o.length=o.length-w}i.__name(yt,"popStack");function K(){var w;return w=d.pop()||k.lex()||J,typeof w!="number"&&(w instanceof Array&&(d=w,w=d.pop()),w=s.symbols_[w]||w),w}i.__name(K,"lex");for(var v,I,T,Y,F={},N,M,Q,z;;){if(I=l[l.length-1],this.defaultActions[I]?T=this.defaultActions[I]:((v===null||typeof v>"u")&&(v=K()),T=b[I]&&b[I][v]),typeof T>"u"||!T.length||!T[0]){var X="";z=[];for(N in b[I])this.terminals_[N]&&N>ht&&z.push("'"+this.terminals_[N]+"'");k.showPosition?X="Parse error on line "+(E+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("./chunk-TZMSLE5B-CT5zSWGS.cjs"),ft=require("./chunk-FMBD7UC4-Bhme03QU.cjs"),i=require("./index-Be-BWA_-.cjs"),tt=require("./arc-CClIGOb9.cjs");var H=function(){var t=i.__name(function(h,n,s,l){for(s=s||{},l=h.length;l--;s[h[l]]=n);return s},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],c=[1,10],r=[1,11],f=[1,12],u=[1,13],y=[1,14],_={trace:i.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:i.__name(function(n,s,l,d,p,o,b){var x=o.length-1;switch(p){case 1:return o[x-1];case 2:this.$=[];break;case 3:o[x-1].push(o[x]),this.$=o[x-1];break;case 4:case 5:this.$=o[x];break;case 6:case 7:this.$=[];break;case 8:d.setDiagramTitle(o[x].substr(6)),this.$=o[x].substr(6);break;case 9:this.$=o[x].trim(),d.setAccTitle(this.$);break;case 10:case 11:this.$=o[x].trim(),d.setAccDescription(this.$);break;case 12:d.addSection(o[x].substr(8)),this.$=o[x].substr(8);break;case 13:d.addTask(o[x-1],o[x]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:c,14:r,16:f,17:u,18:y},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:c,14:r,16:f,17:u,18:y},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:i.__name(function(n,s){if(s.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=s,l}},"parseError"),parse:i.__name(function(n){var s=this,l=[0],d=[],p=[null],o=[],b=this.table,x="",E=0,D=0,ht=2,J=1,ut=o.slice.call(arguments,1),k=Object.create(this.lexer),A={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(A.yy[q]=this.yy[q]);k.setInput(n,A.yy),A.yy.lexer=k,A.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var O=k.yylloc;o.push(O);var dt=k.options&&k.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(w){l.length=l.length-2*w,p.length=p.length-w,o.length=o.length-w}i.__name(yt,"popStack");function K(){var w;return w=d.pop()||k.lex()||J,typeof w!="number"&&(w instanceof Array&&(d=w,w=d.pop()),w=s.symbols_[w]||w),w}i.__name(K,"lex");for(var v,I,T,Y,F={},N,M,Q,z;;){if(I=l[l.length-1],this.defaultActions[I]?T=this.defaultActions[I]:((v===null||typeof v>"u")&&(v=K()),T=b[I]&&b[I][v]),typeof T>"u"||!T.length||!T[0]){var X="";z=[];for(N in b[I])this.terminals_[N]&&N>ht&&z.push("'"+this.terminals_[N]+"'");k.showPosition?X="Parse error on line "+(E+1)+`:
2
2
  `+k.showPosition()+`
3
3
  Expecting `+z.join(", ")+", got '"+(this.terminals_[v]||v)+"'":X="Parse error on line "+(E+1)+": Unexpected "+(v==J?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(X,{text:k.match,token:this.terminals_[v]||v,line:k.yylineno,loc:O,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+v);switch(T[0]){case 1:l.push(v),p.push(k.yytext),o.push(k.yylloc),l.push(T[1]),v=null,D=k.yyleng,x=k.yytext,E=k.yylineno,O=k.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=p[p.length-M],F._$={first_line:o[o.length-(M||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(M||1)].first_column,last_column:o[o.length-1].last_column},dt&&(F._$.range=[o[o.length-(M||1)].range[0],o[o.length-1].range[1]]),Y=this.performAction.apply(F,[x,D,E,A.yy,T[1],p,o].concat(ut)),typeof Y<"u")return Y;M&&(l=l.slice(0,-1*M*2),p=p.slice(0,-1*M),o=o.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),p.push(F.$),o.push(F._$),Q=b[l[l.length-2]][l[l.length-1]],l.push(Q);break;case 3:return!0}}return!0},"parse")},g=function(){var h={EOF:1,parseError:i.__name(function(s,l){if(this.yy.parser)this.yy.parser.parseError(s,l);else throw new Error(s)},"parseError"),setInput:i.__name(function(n,s){return this.yy=s||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i.__name(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var s=n.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:i.__name(function(n){var s=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===d.length?this.yylloc.first_column:0)+d[d.length-l.length].length-l[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:i.__name(function(){return this._more=!0,this},"more"),reject:i.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i.__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:i.__name(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i.__name(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i.__name(function(){var n=this.pastInput(),s=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
@@ -1,7 +1,7 @@
1
- import { a as gt, g as lt, f as mt, d as xt } from "./chunk-TZMSLE5B-Dr3ERbUF.js";
2
- import { g as kt } from "./chunk-FMBD7UC4-DxuGusm9.js";
3
- import { _ as n, g as _t, s as vt, a as bt, b as wt, q as Tt, p as St, c as R, d as G, e as $t, y as Mt } from "./index-CQH0Eeg7.js";
4
- import { d as et } from "./arc-B93pubnc.js";
1
+ import { a as gt, g as lt, f as mt, d as xt } from "./chunk-TZMSLE5B-Cg4hCUAK.js";
2
+ import { g as kt } from "./chunk-FMBD7UC4-T1D2LBu9.js";
3
+ import { _ as n, g as _t, s as vt, a as bt, b as wt, q as Tt, p as St, c as R, d as G, e as $t, y as Mt } from "./index-CHr4dOgM.js";
4
+ import { d as et } from "./arc-Dfw_VOXC.js";
5
5
  var U = function() {
6
6
  var t = /* @__PURE__ */ n(function(h, i, a, l) {
7
7
  for (a = a || {}, l = h.length; l--; a[h[l]] = i) ;
@@ -1,5 +1,5 @@
1
- import { _ as o, l as te, c as U, H as fe, ah as ye, ai as be, aj as me, V as _e, F as Y, i as F, t as Ee, J as ke, W as Se, X as ce, Y as le } from "./index-CQH0Eeg7.js";
2
- import { g as Ne } from "./chunk-FMBD7UC4-DxuGusm9.js";
1
+ import { _ as o, l as te, c as U, H as fe, ah as ye, ai as be, aj as me, V as _e, F as Y, i as F, t as Ee, J as ke, W as Se, X as ce, Y as le } from "./index-CHr4dOgM.js";
2
+ import { g as Ne } from "./chunk-FMBD7UC4-T1D2LBu9.js";
3
3
  var $ = function() {
4
4
  var e = /* @__PURE__ */ o(function(O, i, n, r) {
5
5
  for (n = n || {}, r = O.length; r--; n[O[r]] = i) ;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-BbEE-9BW.cjs"),le=require("./chunk-FMBD7UC4-Wn1hvv-B.cjs");var J=function(){var e=n.__name(function(O,s,i,a){for(i=i||{},a=O.length;a--;i[O[a]]=s);return i},"o"),u=[1,4],p=[1,13],r=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],C=[1,26],g=[1,24],T=[1,25],b=[6,7,11],F=[1,31],x=[6,7,11,24],B=[1,6,13,16,17,20,23],y=[1,35],w=[1,36],L=[1,6,7,11,13,16,17,20,23],M=[1,38],A={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:n.__name(function(s,i,a,o,h,t,G){var c=t.length-1;switch(h){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",t[c-1].id),o.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:o.getLogger().info("Node: ",t[c].id),o.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:o.getLogger().trace("Icon: ",t[c]),o.decorateNode({icon:t[c]});break;case 18:case 23:o.decorateNode({class:t[c]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",t[c-1].id),o.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:o.getLogger().trace("Node: ",t[c].id),o.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:o.decorateNode({icon:t[c]});break;case 27:o.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:o.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:u},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:u},{6:p,7:[1,10],9:9,12:11,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:C,7:g,10:23,11:T},e(b,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(b,[2,19]),e(b,[2,21],{15:30,24:F}),e(b,[2,22]),e(b,[2,23]),e(x,[2,25]),e(x,[2,26]),e(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:g,10:34,11:T},{1:[2,7],6:p,12:21,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(B,[2,14],{7:y,11:w}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(b,[2,16],{15:37,24:F}),e(b,[2,17]),e(b,[2,18]),e(b,[2,20],{24:M}),e(x,[2,31]),{21:[1,39]},{22:[1,40]},e(B,[2,13],{7:y,11:w}),e(L,[2,11]),e(L,[2,12]),e(b,[2,15],{24:M}),e(x,[2,30]),{22:[1,41]},e(x,[2,27]),e(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:n.__name(function(s,i){if(i.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=i,a}},"parseError"),parse:n.__name(function(s){var i=this,a=[0],o=[],h=[null],t=[],G=this.table,c="",U=0,ee=0,re=2,te=1,ae=t.slice.call(arguments,1),_=Object.create(this.lexer),R={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(R.yy[X]=this.yy[X]);_.setInput(s,R.yy),R.yy.lexer=_,R.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var K=_.yylloc;t.push(K);var oe=_.options&&_.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(S){a.length=a.length-2*S,h.length=h.length-S,t.length=t.length-S}n.__name(ce,"popStack");function ne(){var S;return S=o.pop()||_.lex()||te,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=i.symbols_[S]||S),S}n.__name(ne,"lex");for(var E,P,N,Y,j={},H,I,ie,z;;){if(P=a[a.length-1],this.defaultActions[P]?N=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=ne()),N=G[P]&&G[P][E]),typeof N>"u"||!N.length||!N[0]){var q="";z=[];for(H in G[P])this.terminals_[H]&&H>re&&z.push("'"+this.terminals_[H]+"'");_.showPosition?q="Parse error on line "+(U+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-Be-BWA_-.cjs"),le=require("./chunk-FMBD7UC4-Bhme03QU.cjs");var J=function(){var e=n.__name(function(O,s,i,a){for(i=i||{},a=O.length;a--;i[O[a]]=s);return i},"o"),u=[1,4],p=[1,13],r=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],C=[1,26],g=[1,24],T=[1,25],b=[6,7,11],F=[1,31],x=[6,7,11,24],B=[1,6,13,16,17,20,23],y=[1,35],w=[1,36],L=[1,6,7,11,13,16,17,20,23],M=[1,38],A={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:n.__name(function(s,i,a,o,h,t,G){var c=t.length-1;switch(h){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",t[c-1].id),o.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:o.getLogger().info("Node: ",t[c].id),o.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:o.getLogger().trace("Icon: ",t[c]),o.decorateNode({icon:t[c]});break;case 18:case 23:o.decorateNode({class:t[c]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",t[c-1].id),o.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:o.getLogger().trace("Node: ",t[c].id),o.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:o.decorateNode({icon:t[c]});break;case 27:o.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:o.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:u},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:u},{6:p,7:[1,10],9:9,12:11,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:C,7:g,10:23,11:T},e(b,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(b,[2,19]),e(b,[2,21],{15:30,24:F}),e(b,[2,22]),e(b,[2,23]),e(x,[2,25]),e(x,[2,26]),e(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:g,10:34,11:T},{1:[2,7],6:p,12:21,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(B,[2,14],{7:y,11:w}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(b,[2,16],{15:37,24:F}),e(b,[2,17]),e(b,[2,18]),e(b,[2,20],{24:M}),e(x,[2,31]),{21:[1,39]},{22:[1,40]},e(B,[2,13],{7:y,11:w}),e(L,[2,11]),e(L,[2,12]),e(b,[2,15],{24:M}),e(x,[2,30]),{22:[1,41]},e(x,[2,27]),e(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:n.__name(function(s,i){if(i.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=i,a}},"parseError"),parse:n.__name(function(s){var i=this,a=[0],o=[],h=[null],t=[],G=this.table,c="",U=0,ee=0,re=2,te=1,ae=t.slice.call(arguments,1),_=Object.create(this.lexer),R={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(R.yy[X]=this.yy[X]);_.setInput(s,R.yy),R.yy.lexer=_,R.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var K=_.yylloc;t.push(K);var oe=_.options&&_.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(S){a.length=a.length-2*S,h.length=h.length-S,t.length=t.length-S}n.__name(ce,"popStack");function ne(){var S;return S=o.pop()||_.lex()||te,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=i.symbols_[S]||S),S}n.__name(ne,"lex");for(var E,P,N,Y,j={},H,I,ie,z;;){if(P=a[a.length-1],this.defaultActions[P]?N=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=ne()),N=G[P]&&G[P][E]),typeof N>"u"||!N.length||!N[0]){var q="";z=[];for(H in G[P])this.terminals_[H]&&H>re&&z.push("'"+this.terminals_[H]+"'");_.showPosition?q="Parse error on line "+(U+1)+`:
2
2
  `+_.showPosition()+`
3
3
  Expecting `+z.join(", ")+", got '"+(this.terminals_[E]||E)+"'":q="Parse error on line "+(U+1)+": Unexpected "+(E==te?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(q,{text:_.match,token:this.terminals_[E]||E,line:_.yylineno,loc:K,expected:z})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(N[0]){case 1:a.push(E),h.push(_.yytext),t.push(_.yylloc),a.push(N[1]),E=null,ee=_.yyleng,c=_.yytext,U=_.yylineno,K=_.yylloc;break;case 2:if(I=this.productions_[N[1]][1],j.$=h[h.length-I],j._$={first_line:t[t.length-(I||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(I||1)].first_column,last_column:t[t.length-1].last_column},oe&&(j._$.range=[t[t.length-(I||1)].range[0],t[t.length-1].range[1]]),Y=this.performAction.apply(j,[c,ee,U,R.yy,N[1],h,t].concat(ae)),typeof Y<"u")return Y;I&&(a=a.slice(0,-1*I*2),h=h.slice(0,-1*I),t=t.slice(0,-1*I)),a.push(this.productions_[N[1]][0]),h.push(j.$),t.push(j._$),ie=G[a[a.length-2]][a[a.length-1]],a.push(ie);break;case 3:return!0}}return!0},"parse")},W=function(){var O={EOF:1,parseError:n.__name(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:n.__name(function(s,i){return this.yy=i||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n.__name(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:n.__name(function(s){var i=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var h=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:n.__name(function(){return this._more=!0,this},"more"),reject:n.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n.__name(function(s){this.unput(this.match.slice(s))},"less"),pastInput:n.__name(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-BbEE-9BW.cjs");exports.AdvanceResearchContext=t.AdvanceResearchContext;exports.AppBar=t.AppBar;exports.Autocomplete=t.Autocomplete;exports.BoxList=t.BoxList;exports.Breadcrumbs=t.Breadcrumbs;exports.Button=t.Button;exports.ButtonList=t.ButtonList;exports.Chat=t.Chat;exports.Checkbox=t.Checkbox;exports.Chips=t.Chips;exports.Combobox=t.Combobox;exports.DashList=t.DashList;exports.DataTableComponent=t.DataTableComponent;exports.DatePicker=t.DatePicker;exports.Drawer=t.Drawer;exports.EchartsGraph=t.EchartsGraph;exports.Field=t.Field;exports.FileUpload=t.FileUpload;exports.INPUT_PANEL_COMMAND_SUBMIT_EVENT_NAME=t.INPUT_PANEL_COMMAND_SUBMIT_EVENT_NAME;exports.Icon=t.Icon;exports.InputPanel=t.InputPanel;exports.MermaidChart=t.MermaidChart;exports.MultipleSelect=t.MultipleSelect;exports.Notification=t.Notification;exports.NotificationWidget=t.NotificationWidget;exports.OverlayPanel=t.OverlayPanel;exports.Password=t.Password;exports.Path=t.Path;exports.Scaffold=t.Scaffold;exports.Select=t.Select;exports.Spotlight=t.Spotlight;exports.TabBar=t.TabBar;exports.Textarea=t.Textarea;exports.Textfield=t.Textfield;exports.Toolbar=t.Toolbar;exports.Typography=t.Typography;exports.configurePaths=t.configurePaths;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-Be-BWA_-.cjs");exports.AdvanceResearchContext=t.AdvanceResearchContext;exports.AppBar=t.AppBar;exports.Autocomplete=t.Autocomplete;exports.BoxList=t.BoxList;exports.Breadcrumbs=t.Breadcrumbs;exports.Button=t.Button;exports.ButtonList=t.ButtonList;exports.Chat=t.Chat;exports.Checkbox=t.Checkbox;exports.Chips=t.Chips;exports.Combobox=t.Combobox;exports.DashList=t.DashList;exports.DataTableComponent=t.DataTableComponent;exports.DatePicker=t.DatePicker;exports.Drawer=t.Drawer;exports.EchartsGraph=t.EchartsGraph;exports.Field=t.Field;exports.FileUpload=t.FileUpload;exports.INPUT_PANEL_COMMAND_SUBMIT_EVENT_NAME=t.INPUT_PANEL_COMMAND_SUBMIT_EVENT_NAME;exports.Icon=t.Icon;exports.InputPanel=t.InputPanel;exports.MermaidChart=t.MermaidChart;exports.MultipleSelect=t.MultipleSelect;exports.Notification=t.Notification;exports.NotificationWidget=t.NotificationWidget;exports.OverlayPanel=t.OverlayPanel;exports.Password=t.Password;exports.Path=t.Path;exports.Scaffold=t.Scaffold;exports.Select=t.Select;exports.Spotlight=t.Spotlight;exports.TabBar=t.TabBar;exports.Textarea=t.Textarea;exports.Textfield=t.Textfield;exports.Toolbar=t.Toolbar;exports.Typography=t.Typography;exports.configurePaths=t.configurePaths;
@@ -1,4 +1,4 @@
1
- import { cb as t, bF as b, bU as e, bG as c, bN as o, bV as r, bW as i, c8 as l, bX as n, bY as p, bZ as h, bH as d, bI as T, b_ as P, bJ as C, bS as N, bK as f, c7 as u, bM as x, b$ as B, bL as M, bO as m, c1 as A, c9 as S, c0 as _, cd as D, c2 as E, bP as I, bT as L, c3 as g, cc as U, bQ as y, c4 as F, c5 as O, bR as k, c6 as v, ca as w } from "./index-CQH0Eeg7.js";
1
+ import { cb as t, bF as b, bU as e, bG as c, bN as o, bV as r, bW as i, c8 as l, bX as n, bY as p, bZ as h, bH as d, bI as T, b_ as P, bJ as C, bS as N, bK as f, c7 as u, bM as x, b$ as B, bL as M, bO as m, c1 as A, c9 as S, c0 as _, cd as D, c2 as E, bP as I, bT as L, c3 as g, cc as U, bQ as y, c4 as F, c5 as O, bR as k, c6 as v, ca as w } from "./index-CHr4dOgM.js";
2
2
  export {
3
3
  t as AdvanceResearchContext,
4
4
  b as AppBar,
@@ -1 +1 @@
1
- "use strict";const E=require("./graph-BJpk6aCn.cjs"),f=require("./_baseUniq-BUYj7dw_.cjs"),l=require("./_basePickBy-QQ1Bdl_C.cjs"),m=require("./index-BbEE-9BW.cjs"),he=require("./cloneDeep-BP01RXuN.cjs");function le(e){return m.setToString(m.overRest(e,void 0,l.flatten),e+"")}function ve(e,n){return e==null?e:m.baseFor(e,f.castFunction(n),m.keysIn)}function pe(e,n){return e&&f.baseForOwn(e,f.castFunction(n))}function we(e,n){return e>n}function C(e,n){var r={};return n=f.baseIteratee(n),f.baseForOwn(e,function(a,t,o){m.baseAssignValue(r,t,n(a,t,o))}),r}function g(e){return e&&e.length?l.baseExtremum(e,m.identity,we):void 0}function j(e,n){return e&&e.length?l.baseExtremum(e,f.baseIteratee(n),l.baseLt):void 0}function me(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}function be(e,n){if(e!==n){var r=e!==void 0,a=e===null,t=e===e,o=f.isSymbol(e),i=n!==void 0,u=n===null,d=n===n,c=f.isSymbol(n);if(!u&&!c&&!o&&e>n||o&&i&&d&&!u&&!c||a&&i&&d||!r&&d||!t)return 1;if(!a&&!o&&!c&&e<n||c&&r&&t&&!a&&!o||u&&r&&t||!i&&t||!d)return-1}return 0}function Ee(e,n,r){for(var a=-1,t=e.criteria,o=n.criteria,i=t.length,u=r.length;++a<i;){var d=be(t[a],o[a]);if(d){if(a>=u)return d;var c=r[a];return d*(c=="desc"?-1:1)}}return e.index-n.index}function ge(e,n,r){n.length?n=f.arrayMap(n,function(o){return m.isArray(o)?function(i){return f.baseGet(i,o.length===1?o[0]:o)}:o}):n=[m.identity];var a=-1;n=f.arrayMap(n,m.baseUnary(f.baseIteratee));var t=l.baseMap(e,function(o,i,u){var d=f.arrayMap(n,function(c){return c(o)});return{criteria:d,index:++a,value:o}});return me(t,function(o,i){return Ee(o,i,r)})}function ye(e,n){return l.basePickBy(e,n,function(r,a){return f.hasIn(e,a)})}var P=le(function(e,n){return e==null?{}:ye(e,n)}),ke=Math.ceil,xe=Math.max;function Oe(e,n,r,a){for(var t=-1,o=xe(ke((n-e)/(r||1)),0),i=Array(o);o--;)i[++t]=e,e+=r;return i}function Ne(e){return function(n,r,a){return a&&typeof a!="number"&&m.isIterateeCall(n,r,a)&&(r=a=void 0),n=l.toFinite(n),r===void 0?(r=n,n=0):r=l.toFinite(r),a=a===void 0?n<r?1:-1:l.toFinite(a),Oe(n,r,a)}}var k=Ne(),L=m.baseRest(function(e,n){if(e==null)return[];var r=n.length;return r>1&&m.isIterateeCall(e,n[0],n[1])?n=[]:r>2&&m.isIterateeCall(n[0],n[1],n[2])&&(n=[n[0]]),ge(e,f.baseFlatten(n),[])}),Le=0;function V(e){var n=++Le;return f.toString(e)+n}function Pe(e,n,r){for(var a=-1,t=e.length,o=n.length,i={};++a<t;){var u=a<o?n[a]:void 0;r(i,e[a],u)}return i}function Ce(e,n){return Pe(e||[],n||[],m.assignValue)}class _e{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return q(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&q(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,a=r._prev;a!==r;)n.push(JSON.stringify(a,Re)),a=a._prev;return"["+n.join(", ")+"]"}}function q(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Re(e,n){if(e!=="_next"&&e!=="_prev")return n}var Ie=m.constant$1(1);function Te(e,n){if(e.nodeCount()<=1)return[];var r=Fe(e,n||Ie),a=Me(r.graph,r.buckets,r.zeroIdx);return l.flatten(l.map(a,function(t){return e.outEdges(t.v,t.w)}))}function Me(e,n,r){for(var a=[],t=n[n.length-1],o=n[0],i;e.nodeCount();){for(;i=o.dequeue();)R(e,n,r,i);for(;i=t.dequeue();)R(e,n,r,i);if(e.nodeCount()){for(var u=n.length-2;u>0;--u)if(i=n[u].dequeue(),i){a=a.concat(R(e,n,r,i,!0));break}}}return a}function R(e,n,r,a,t){var o=t?[]:void 0;return f.forEach(e.inEdges(a.v),function(i){var u=e.edge(i),d=e.node(i.v);t&&o.push({v:i.v,w:i.w}),d.out-=u,S(n,r,d)}),f.forEach(e.outEdges(a.v),function(i){var u=e.edge(i),d=i.w,c=e.node(d);c.in-=u,S(n,r,c)}),e.removeNode(a.v),o}function Fe(e,n){var r=new E.Graph,a=0,t=0;f.forEach(e.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),f.forEach(e.edges(),function(u){var d=r.edge(u.v,u.w)||0,c=n(u),s=d+c;r.setEdge(u.v,u.w,s),t=Math.max(t,r.node(u.v).out+=c),a=Math.max(a,r.node(u.w).in+=c)});var o=k(t+a+3).map(function(){return new _e}),i=a+1;return f.forEach(r.nodes(),function(u){S(o,i,r.node(u))}),{graph:r,buckets:o,zeroIdx:i}}function S(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function Se(e){var n=e.graph().acyclicer==="greedy"?Te(e,r(e)):je(e);f.forEach(n,function(a){var t=e.edge(a);e.removeEdge(a),t.forwardName=a.name,t.reversed=!0,e.setEdge(a.w,a.v,t,V("rev"))});function r(a){return function(t){return a.edge(t).weight}}}function je(e){var n=[],r={},a={};function t(o){Object.prototype.hasOwnProperty.call(a,o)||(a[o]=!0,r[o]=!0,f.forEach(e.outEdges(o),function(i){Object.prototype.hasOwnProperty.call(r,i.w)?n.push(i):t(i.w)}),delete r[o])}return f.forEach(e.nodes(),t),n}function Ve(e){f.forEach(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var a=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,a)}})}function x(e,n,r,a){var t;do t=V(a);while(e.hasNode(t));return r.dummy=n,e.setNode(t,r),t}function Ge(e){var n=new E.Graph().setGraph(e.graph());return f.forEach(e.nodes(),function(r){n.setNode(r,e.node(r))}),f.forEach(e.edges(),function(r){var a=n.edge(r.v,r.w)||{weight:0,minlen:1},t=e.edge(r);n.setEdge(r.v,r.w,{weight:a.weight+t.weight,minlen:Math.max(a.minlen,t.minlen)})}),n}function K(e){var n=new E.Graph({multigraph:e.isMultigraph()}).setGraph(e.graph());return f.forEach(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),f.forEach(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function U(e,n){var r=e.x,a=e.y,t=n.x-r,o=n.y-a,i=e.width/2,u=e.height/2;if(!t&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,c;return Math.abs(o)*i>Math.abs(t)*u?(o<0&&(u=-u),d=u*t/o,c=u):(t<0&&(i=-i),d=i,c=i*o/t),{x:r+d,y:a+c}}function _(e){var n=l.map(k(Q(e)+1),function(){return[]});return f.forEach(e.nodes(),function(r){var a=e.node(r),t=a.rank;f.isUndefined(t)||(n[t][a.order]=r)}),n}function Be(e){var n=l.min(l.map(e.nodes(),function(r){return e.node(r).rank}));f.forEach(e.nodes(),function(r){var a=e.node(r);l.has(a,"rank")&&(a.rank-=n)})}function Ae(e){var n=l.min(l.map(e.nodes(),function(o){return e.node(o).rank})),r=[];f.forEach(e.nodes(),function(o){var i=e.node(o).rank-n;r[i]||(r[i]=[]),r[i].push(o)});var a=0,t=e.graph().nodeRankFactor;f.forEach(r,function(o,i){f.isUndefined(o)&&i%t!==0?--a:a&&f.forEach(o,function(u){e.node(u).rank+=a})})}function D(e,n,r,a){var t={width:0,height:0};return arguments.length>=4&&(t.rank=r,t.order=a),x(e,"border",t,n)}function Q(e){return g(l.map(e.nodes(),function(n){var r=e.node(n).rank;if(!f.isUndefined(r))return r}))}function Ye(e,n){var r={lhs:[],rhs:[]};return f.forEach(e,function(a){n(a)?r.lhs.push(a):r.rhs.push(a)}),r}function qe(e,n){return n()}function Ue(e){function n(r){var a=e.children(r),t=e.node(r);if(a.length&&f.forEach(a,n),Object.prototype.hasOwnProperty.call(t,"minRank")){t.borderLeft=[],t.borderRight=[];for(var o=t.minRank,i=t.maxRank+1;o<i;++o)$(e,"borderLeft","_bl",r,t,o),$(e,"borderRight","_br",r,t,o)}}f.forEach(e.children(),n)}function $(e,n,r,a,t,o){var i={width:0,height:0,rank:o,borderType:n},u=t[n][o-1],d=x(e,"border",i,r);t[n][o]=d,e.setParent(d,a),u&&e.setEdge(u,d,{weight:1})}function De(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&ee(e)}function $e(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&We(e),(n==="lr"||n==="rl")&&(ze(e),ee(e))}function ee(e){f.forEach(e.nodes(),function(n){W(e.node(n))}),f.forEach(e.edges(),function(n){W(e.edge(n))})}function W(e){var n=e.width;e.width=e.height,e.height=n}function We(e){f.forEach(e.nodes(),function(n){I(e.node(n))}),f.forEach(e.edges(),function(n){var r=e.edge(n);f.forEach(r.points,I),Object.prototype.hasOwnProperty.call(r,"y")&&I(r)})}function I(e){e.y=-e.y}function ze(e){f.forEach(e.nodes(),function(n){T(e.node(n))}),f.forEach(e.edges(),function(n){var r=e.edge(n);f.forEach(r.points,T),Object.prototype.hasOwnProperty.call(r,"x")&&T(r)})}function T(e){var n=e.x;e.x=e.y,e.y=n}function Xe(e){e.graph().dummyChains=[],f.forEach(e.edges(),function(n){He(e,n)})}function He(e,n){var r=n.v,a=e.node(r).rank,t=n.w,o=e.node(t).rank,i=n.name,u=e.edge(n),d=u.labelRank;if(o!==a+1){e.removeEdge(n);var c=void 0,s,h;for(h=0,++a;a<o;++h,++a)u.points=[],c={width:0,height:0,edgeLabel:u,edgeObj:n,rank:a},s=x(e,"edge",c,"_d"),a===d&&(c.width=u.width,c.height=u.height,c.dummy="edge-label",c.labelpos=u.labelpos),e.setEdge(r,s,{weight:u.weight},i),h===0&&e.graph().dummyChains.push(s),r=s;e.setEdge(r,t,{weight:u.weight},i)}}function Je(e){f.forEach(e.graph().dummyChains,function(n){var r=e.node(n),a=r.edgeLabel,t;for(e.setEdge(r.edgeObj,a);r.dummy;)t=e.successors(n)[0],e.removeNode(n),a.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(a.x=r.x,a.y=r.y,a.width=r.width,a.height=r.height),n=t,r=e.node(n)})}function G(e){var n={};function r(a){var t=e.node(a);if(Object.prototype.hasOwnProperty.call(n,a))return t.rank;n[a]=!0;var o=l.min(l.map(e.outEdges(a),function(i){return r(i.w)-e.edge(i).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),t.rank=o}f.forEach(e.sources(),r)}function N(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function ne(e){var n=new E.Graph({directed:!1}),r=e.nodes()[0],a=e.nodeCount();n.setNode(r,{});for(var t,o;Ze(n,e)<a;)t=Ke(n,e),o=n.hasNode(t.v)?N(e,t):-N(e,t),Qe(n,e,o);return n}function Ze(e,n){function r(a){f.forEach(n.nodeEdges(a),function(t){var o=t.v,i=a===o?t.w:o;!e.hasNode(i)&&!N(n,t)&&(e.setNode(i,{}),e.setEdge(a,i,{}),r(i))})}return f.forEach(e.nodes(),r),e.nodeCount()}function Ke(e,n){return j(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return N(n,r)})}function Qe(e,n,r){f.forEach(e.nodes(),function(a){n.node(a).rank+=r})}function en(){}en.prototype=new Error;function re(e,n,r){m.isArray(n)||(n=[n]);var a=(e.isDirected()?e.successors:e.neighbors).bind(e),t=[],o={};return f.forEach(n,function(i){if(!e.hasNode(i))throw new Error("Graph does not have node: "+i);ae(e,i,r==="post",o,a,t)}),t}function ae(e,n,r,a,t,o){Object.prototype.hasOwnProperty.call(a,n)||(a[n]=!0,r||o.push(n),f.forEach(t(n),function(i){ae(e,i,r,a,t,o)}),r&&o.push(n))}function nn(e,n){return re(e,n,"post")}function rn(e,n){return re(e,n,"pre")}y.initLowLimValues=A;y.initCutValues=B;y.calcCutValue=te;y.leaveEdge=ie;y.enterEdge=ue;y.exchangeEdges=fe;function y(e){e=Ge(e),G(e);var n=ne(e);A(n),B(n,e);for(var r,a;r=ie(n);)a=ue(n,e,r),fe(n,e,r,a)}function B(e,n){var r=nn(e,e.nodes());r=r.slice(0,r.length-1),f.forEach(r,function(a){an(e,n,a)})}function an(e,n,r){var a=e.node(r),t=a.parent;e.edge(r,t).cutvalue=te(e,n,r)}function te(e,n,r){var a=e.node(r),t=a.parent,o=!0,i=n.edge(r,t),u=0;return i||(o=!1,i=n.edge(t,r)),u=i.weight,f.forEach(n.nodeEdges(r),function(d){var c=d.v===r,s=c?d.w:d.v;if(s!==t){var h=c===o,v=n.edge(d).weight;if(u+=h?v:-v,on(e,r,s)){var p=e.edge(r,s).cutvalue;u+=h?-p:p}}}),u}function A(e,n){arguments.length<2&&(n=e.nodes()[0]),oe(e,{},1,n)}function oe(e,n,r,a,t){var o=r,i=e.node(a);return n[a]=!0,f.forEach(e.neighbors(a),function(u){Object.prototype.hasOwnProperty.call(n,u)||(r=oe(e,n,r,u,a))}),i.low=o,i.lim=r++,t?i.parent=t:delete i.parent,r}function ie(e){return l.find(e.edges(),function(n){return e.edge(n).cutvalue<0})}function ue(e,n,r){var a=r.v,t=r.w;n.hasEdge(a,t)||(a=r.w,t=r.v);var o=e.node(a),i=e.node(t),u=o,d=!1;o.lim>i.lim&&(u=i,d=!0);var c=f.filter(n.edges(),function(s){return d===z(e,e.node(s.v),u)&&d!==z(e,e.node(s.w),u)});return j(c,function(s){return N(n,s)})}function fe(e,n,r,a){var t=r.v,o=r.w;e.removeEdge(t,o),e.setEdge(a.v,a.w,{}),A(e),B(e,n),tn(e,n)}function tn(e,n){var r=l.find(e.nodes(),function(t){return!n.node(t).parent}),a=rn(e,r);a=a.slice(1),f.forEach(a,function(t){var o=e.node(t).parent,i=n.edge(t,o),u=!1;i||(i=n.edge(o,t),u=!0),n.node(t).rank=n.node(o).rank+(u?i.minlen:-i.minlen)})}function on(e,n,r){return e.hasEdge(n,r)}function z(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function un(e){switch(e.graph().ranker){case"network-simplex":X(e);break;case"tight-tree":dn(e);break;case"longest-path":fn(e);break;default:X(e)}}var fn=G;function dn(e){G(e),ne(e)}function X(e){y(e)}function cn(e){var n=x(e,"root",{},"_root"),r=sn(e),a=g(f.values(r))-1,t=2*a+1;e.graph().nestingRoot=n,f.forEach(e.edges(),function(i){e.edge(i).minlen*=t});var o=hn(e)+1;f.forEach(e.children(),function(i){de(e,n,t,o,a,r,i)}),e.graph().nodeRankFactor=t}function de(e,n,r,a,t,o,i){var u=e.children(i);if(!u.length){i!==n&&e.setEdge(n,i,{weight:0,minlen:r});return}var d=D(e,"_bt"),c=D(e,"_bb"),s=e.node(i);e.setParent(d,i),s.borderTop=d,e.setParent(c,i),s.borderBottom=c,f.forEach(u,function(h){de(e,n,r,a,t,o,h);var v=e.node(h),p=v.borderTop?v.borderTop:h,w=v.borderBottom?v.borderBottom:h,b=v.borderTop?a:2*a,O=p!==w?1:t-o[i]+1;e.setEdge(d,p,{weight:b,minlen:O,nestingEdge:!0}),e.setEdge(w,c,{weight:b,minlen:O,nestingEdge:!0})}),e.parent(i)||e.setEdge(n,d,{weight:0,minlen:t+o[i]})}function sn(e){var n={};function r(a,t){var o=e.children(a);o&&o.length&&f.forEach(o,function(i){r(i,t+1)}),n[a]=t}return f.forEach(e.children(),function(a){r(a,1)}),n}function hn(e){return f.reduce(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function ln(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,f.forEach(e.edges(),function(r){var a=e.edge(r);a.nestingEdge&&e.removeEdge(r)})}function vn(e,n,r){var a={},t;f.forEach(r,function(o){for(var i=e.parent(o),u,d;i;){if(u=e.parent(i),u?(d=a[u],a[u]=i):(d=t,t=i),d&&d!==i){n.setEdge(d,i);return}i=u}})}function pn(e,n,r){var a=wn(e),t=new E.Graph({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(function(o){return e.node(o)});return f.forEach(e.nodes(),function(o){var i=e.node(o),u=e.parent(o);(i.rank===n||i.minRank<=n&&n<=i.maxRank)&&(t.setNode(o),t.setParent(o,u||a),f.forEach(e[r](o),function(d){var c=d.v===o?d.w:d.v,s=t.edge(c,o),h=f.isUndefined(s)?0:s.weight;t.setEdge(c,o,{weight:e.edge(d).weight+h})}),Object.prototype.hasOwnProperty.call(i,"minRank")&&t.setNode(o,{borderLeft:i.borderLeft[n],borderRight:i.borderRight[n]}))}),t}function wn(e){for(var n;e.hasNode(n=V("_root")););return n}function mn(e,n){for(var r=0,a=1;a<n.length;++a)r+=bn(e,n[a-1],n[a]);return r}function bn(e,n,r){for(var a=Ce(r,l.map(r,function(c,s){return s})),t=l.flatten(l.map(n,function(c){return L(l.map(e.outEdges(c),function(s){return{pos:a[s.w],weight:e.edge(s).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var i=2*o-1;o-=1;var u=l.map(new Array(i),function(){return 0}),d=0;return f.forEach(t.forEach(function(c){var s=c.pos+o;u[s]+=c.weight;for(var h=0;s>0;)s%2&&(h+=u[s+1]),s=s-1>>1,u[s]+=c.weight;d+=c.weight*h})),d}function En(e){var n={},r=f.filter(e.nodes(),function(u){return!e.children(u).length}),a=g(l.map(r,function(u){return e.node(u).rank})),t=l.map(k(a+1),function(){return[]});function o(u){if(!l.has(n,u)){n[u]=!0;var d=e.node(u);t[d.rank].push(u),f.forEach(e.successors(u),o)}}var i=L(r,function(u){return e.node(u).rank});return f.forEach(i,o),t}function gn(e,n){return l.map(n,function(r){var a=e.inEdges(r);if(a.length){var t=f.reduce(a,function(o,i){var u=e.edge(i),d=e.node(i.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:t.sum/t.weight,weight:t.weight}}else return{v:r}})}function yn(e,n){var r={};f.forEach(e,function(t,o){var i=r[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:o};f.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)}),f.forEach(n.edges(),function(t){var o=r[t.v],i=r[t.w];!f.isUndefined(o)&&!f.isUndefined(i)&&(i.indegree++,o.out.push(r[t.w]))});var a=f.filter(r,function(t){return!t.indegree});return kn(a)}function kn(e){var n=[];function r(o){return function(i){i.merged||(f.isUndefined(i.barycenter)||f.isUndefined(o.barycenter)||i.barycenter>=o.barycenter)&&xn(o,i)}}function a(o){return function(i){i.in.push(o),--i.indegree===0&&e.push(i)}}for(;e.length;){var t=e.pop();n.push(t),f.forEach(t.in.reverse(),r(t)),f.forEach(t.out,a(t))}return l.map(f.filter(n,function(o){return!o.merged}),function(o){return P(o,["vs","i","barycenter","weight"])})}function xn(e,n){var r=0,a=0;e.weight&&(r+=e.barycenter*e.weight,a+=e.weight),n.weight&&(r+=n.barycenter*n.weight,a+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/a,e.weight=a,e.i=Math.min(n.i,e.i),n.merged=!0}function On(e,n){var r=Ye(e,function(s){return Object.prototype.hasOwnProperty.call(s,"barycenter")}),a=r.lhs,t=L(r.rhs,function(s){return-s.i}),o=[],i=0,u=0,d=0;a.sort(Nn(!!n)),d=H(o,t,d),f.forEach(a,function(s){d+=s.vs.length,o.push(s.vs),i+=s.barycenter*s.weight,u+=s.weight,d=H(o,t,d)});var c={vs:l.flatten(o)};return u&&(c.barycenter=i/u,c.weight=u),c}function H(e,n,r){for(var a;n.length&&(a=l.last(n)).i<=r;)n.pop(),e.push(a.vs),r++;return r}function Nn(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function ce(e,n,r,a){var t=e.children(n),o=e.node(n),i=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};i&&(t=f.filter(t,function(w){return w!==i&&w!==u}));var c=gn(e,t);f.forEach(c,function(w){if(e.children(w.v).length){var b=ce(e,w.v,r,a);d[w.v]=b,Object.prototype.hasOwnProperty.call(b,"barycenter")&&Pn(w,b)}});var s=yn(c,r);Ln(s,d);var h=On(s,a);if(i&&(h.vs=l.flatten([i,h.vs,u]),e.predecessors(i).length)){var v=e.node(e.predecessors(i)[0]),p=e.node(e.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+v.order+p.order)/(h.weight+2),h.weight+=2}return h}function Ln(e,n){f.forEach(e,function(r){r.vs=l.flatten(r.vs.map(function(a){return n[a]?n[a].vs:a}))})}function Pn(e,n){f.isUndefined(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function Cn(e){var n=Q(e),r=J(e,k(1,n+1),"inEdges"),a=J(e,k(n-1,-1,-1),"outEdges"),t=En(e);Z(e,t);for(var o=Number.POSITIVE_INFINITY,i,u=0,d=0;d<4;++u,++d){_n(u%2?r:a,u%4>=2),t=_(e);var c=mn(e,t);c<o&&(d=0,i=he.cloneDeep(t),o=c)}Z(e,i)}function J(e,n,r){return l.map(n,function(a){return pn(e,a,r)})}function _n(e,n){var r=new E.Graph;f.forEach(e,function(a){var t=a.graph().root,o=ce(a,t,r,n);f.forEach(o.vs,function(i,u){a.node(i).order=u}),vn(a,r,o.vs)})}function Z(e,n){f.forEach(n,function(r){f.forEach(r,function(a,t){e.node(a).order=t})})}function Rn(e){var n=Tn(e);f.forEach(e.graph().dummyChains,function(r){for(var a=e.node(r),t=a.edgeObj,o=In(e,n,t.v,t.w),i=o.path,u=o.lca,d=0,c=i[d],s=!0;r!==t.w;){if(a=e.node(r),s){for(;(c=i[d])!==u&&e.node(c).maxRank<a.rank;)d++;c===u&&(s=!1)}if(!s){for(;d<i.length-1&&e.node(c=i[d+1]).minRank<=a.rank;)d++;c=i[d]}e.setParent(r,c),r=e.successors(r)[0]}})}function In(e,n,r,a){var t=[],o=[],i=Math.min(n[r].low,n[a].low),u=Math.max(n[r].lim,n[a].lim),d,c;d=r;do d=e.parent(d),t.push(d);while(d&&(n[d].low>i||u>n[d].lim));for(c=d,d=a;(d=e.parent(d))!==c;)o.push(d);return{path:t.concat(o.reverse()),lca:c}}function Tn(e){var n={},r=0;function a(t){var o=r;f.forEach(e.children(t),a),n[t]={low:o,lim:r++}}return f.forEach(e.children(),a),n}function Mn(e,n){var r={};function a(t,o){var i=0,u=0,d=t.length,c=l.last(o);return f.forEach(o,function(s,h){var v=Sn(e,s),p=v?e.node(v).order:d;(v||s===c)&&(f.forEach(o.slice(u,h+1),function(w){f.forEach(e.predecessors(w),function(b){var O=e.node(b),Y=O.order;(Y<i||p<Y)&&!(O.dummy&&e.node(w).dummy)&&se(r,b,w)})}),u=h+1,i=p)}),o}return f.reduce(n,a),r}function Fn(e,n){var r={};function a(o,i,u,d,c){var s;f.forEach(k(i,u),function(h){s=o[h],e.node(s).dummy&&f.forEach(e.predecessors(s),function(v){var p=e.node(v);p.dummy&&(p.order<d||p.order>c)&&se(r,v,s)})})}function t(o,i){var u=-1,d,c=0;return f.forEach(i,function(s,h){if(e.node(s).dummy==="border"){var v=e.predecessors(s);v.length&&(d=e.node(v[0]).order,a(i,c,h,u,d),c=h,u=d)}a(i,c,i.length,d,o.length)}),i}return f.reduce(n,t),r}function Sn(e,n){if(e.node(n).dummy)return l.find(e.predecessors(n),function(r){return e.node(r).dummy})}function se(e,n,r){if(n>r){var a=n;n=r,r=a}var t=e[n];t||(e[n]=t={}),t[r]=!0}function jn(e,n,r){if(n>r){var a=n;n=r,r=a}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function Vn(e,n,r,a){var t={},o={},i={};return f.forEach(n,function(u){f.forEach(u,function(d,c){t[d]=d,o[d]=d,i[d]=c})}),f.forEach(n,function(u){var d=-1;f.forEach(u,function(c){var s=a(c);if(s.length){s=L(s,function(b){return i[b]});for(var h=(s.length-1)/2,v=Math.floor(h),p=Math.ceil(h);v<=p;++v){var w=s[v];o[c]===c&&d<i[w]&&!jn(r,c,w)&&(o[w]=c,o[c]=t[c]=t[w],d=i[w])}}})}),{root:t,align:o}}function Gn(e,n,r,a,t){var o={},i=Bn(e,n,r,t),u=t?"borderLeft":"borderRight";function d(h,v){for(var p=i.nodes(),w=p.pop(),b={};w;)b[w]?h(w):(b[w]=!0,p.push(w),p=p.concat(v(w))),w=p.pop()}function c(h){o[h]=i.inEdges(h).reduce(function(v,p){return Math.max(v,o[p.v]+i.edge(p))},0)}function s(h){var v=i.outEdges(h).reduce(function(w,b){return Math.min(w,o[b.w]-i.edge(b))},Number.POSITIVE_INFINITY),p=e.node(h);v!==Number.POSITIVE_INFINITY&&p.borderType!==u&&(o[h]=Math.max(o[h],v))}return d(c,i.predecessors.bind(i)),d(s,i.successors.bind(i)),f.forEach(a,function(h){o[h]=o[r[h]]}),o}function Bn(e,n,r,a){var t=new E.Graph,o=e.graph(),i=Dn(o.nodesep,o.edgesep,a);return f.forEach(n,function(u){var d;f.forEach(u,function(c){var s=r[c];if(t.setNode(s),d){var h=r[d],v=t.edge(h,s);t.setEdge(h,s,Math.max(i(e,c,d),v||0))}d=c})}),t}function An(e,n){return j(f.values(n),function(r){var a=Number.NEGATIVE_INFINITY,t=Number.POSITIVE_INFINITY;return ve(r,function(o,i){var u=$n(e,i)/2;a=Math.max(o+u,a),t=Math.min(o-u,t)}),a-t})}function Yn(e,n){var r=f.values(n),a=l.min(r),t=g(r);f.forEach(["u","d"],function(o){f.forEach(["l","r"],function(i){var u=o+i,d=e[u],c;if(d!==n){var s=f.values(d);c=i==="l"?a-l.min(s):t-g(s),c&&(e[u]=C(d,function(h){return h+c}))}})})}function qn(e,n){return C(e.ul,function(r,a){if(n)return e[n.toLowerCase()][a];var t=L(l.map(e,a));return(t[1]+t[2])/2})}function Un(e){var n=_(e),r=m.merge(Mn(e,n),Fn(e,n)),a={},t;f.forEach(["u","d"],function(i){t=i==="u"?n:f.values(n).reverse(),f.forEach(["l","r"],function(u){u==="r"&&(t=l.map(t,function(h){return f.values(h).reverse()}));var d=(i==="u"?e.predecessors:e.successors).bind(e),c=Vn(e,t,r,d),s=Gn(e,t,c.root,c.align,u==="r");u==="r"&&(s=C(s,function(h){return-h})),a[i+u]=s})});var o=An(e,a);return Yn(a,o),qn(a,e.graph().align)}function Dn(e,n,r){return function(a,t,o){var i=a.node(t),u=a.node(o),d=0,c;if(d+=i.width/2,Object.prototype.hasOwnProperty.call(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":c=-i.width/2;break;case"r":c=i.width/2;break}if(c&&(d+=r?c:-c),c=0,d+=(i.dummy?n:e)/2,d+=(u.dummy?n:e)/2,d+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":c=u.width/2;break;case"r":c=-u.width/2;break}return c&&(d+=r?c:-c),c=0,d}}function $n(e,n){return e.node(n).width}function Wn(e){e=K(e),zn(e),pe(Un(e),function(n,r){e.node(r).x=n})}function zn(e){var n=_(e),r=e.graph().ranksep,a=0;f.forEach(n,function(t){var o=g(l.map(t,function(i){return e.node(i).height}));f.forEach(t,function(i){e.node(i).y=a+o/2}),a+=o+r})}function Xn(e,n){var r=qe;r("layout",()=>{var a=r(" buildLayoutGraph",()=>or(e));r(" runLayout",()=>Hn(a,r)),r(" updateInputGraph",()=>Jn(e,a))})}function Hn(e,n){n(" makeSpaceForEdgeLabels",()=>ir(e)),n(" removeSelfEdges",()=>pr(e)),n(" acyclic",()=>Se(e)),n(" nestingGraph.run",()=>cn(e)),n(" rank",()=>un(K(e))),n(" injectEdgeLabelProxies",()=>ur(e)),n(" removeEmptyRanks",()=>Ae(e)),n(" nestingGraph.cleanup",()=>ln(e)),n(" normalizeRanks",()=>Be(e)),n(" assignRankMinMax",()=>fr(e)),n(" removeEdgeLabelProxies",()=>dr(e)),n(" normalize.run",()=>Xe(e)),n(" parentDummyChains",()=>Rn(e)),n(" addBorderSegments",()=>Ue(e)),n(" order",()=>Cn(e)),n(" insertSelfEdges",()=>wr(e)),n(" adjustCoordinateSystem",()=>De(e)),n(" position",()=>Wn(e)),n(" positionSelfEdges",()=>mr(e)),n(" removeBorderNodes",()=>vr(e)),n(" normalize.undo",()=>Je(e)),n(" fixupEdgeLabelCoords",()=>hr(e)),n(" undoCoordinateSystem",()=>$e(e)),n(" translateGraph",()=>cr(e)),n(" assignNodeIntersects",()=>sr(e)),n(" reversePoints",()=>lr(e)),n(" acyclic.undo",()=>Ve(e))}function Jn(e,n){f.forEach(e.nodes(),function(r){var a=e.node(r),t=n.node(r);a&&(a.x=t.x,a.y=t.y,n.children(r).length&&(a.width=t.width,a.height=t.height))}),f.forEach(e.edges(),function(r){var a=e.edge(r),t=n.edge(r);a.points=t.points,Object.prototype.hasOwnProperty.call(t,"x")&&(a.x=t.x,a.y=t.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var Zn=["nodesep","edgesep","ranksep","marginx","marginy"],Kn={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Qn=["acyclicer","ranker","rankdir","align"],er=["width","height"],nr={width:0,height:0},rr=["minlen","weight","width","height","labeloffset"],ar={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},tr=["labelpos"];function or(e){var n=new E.Graph({multigraph:!0,compound:!0}),r=F(e.graph());return n.setGraph(m.merge({},Kn,M(r,Zn),P(r,Qn))),f.forEach(e.nodes(),function(a){var t=F(e.node(a));n.setNode(a,l.defaults(M(t,er),nr)),n.setParent(a,e.parent(a))}),f.forEach(e.edges(),function(a){var t=F(e.edge(a));n.setEdge(a,m.merge({},ar,M(t,rr),P(t,tr)))}),n}function ir(e){var n=e.graph();n.ranksep/=2,f.forEach(e.edges(),function(r){var a=e.edge(r);a.minlen*=2,a.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?a.width+=a.labeloffset:a.height+=a.labeloffset)})}function ur(e){f.forEach(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var a=e.node(n.v),t=e.node(n.w),o={rank:(t.rank-a.rank)/2+a.rank,e:n};x(e,"edge-proxy",o,"_ep")}})}function fr(e){var n=0;f.forEach(e.nodes(),function(r){var a=e.node(r);a.borderTop&&(a.minRank=e.node(a.borderTop).rank,a.maxRank=e.node(a.borderBottom).rank,n=g(n,a.maxRank))}),e.graph().maxRank=n}function dr(e){f.forEach(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function cr(e){var n=Number.POSITIVE_INFINITY,r=0,a=Number.POSITIVE_INFINITY,t=0,o=e.graph(),i=o.marginx||0,u=o.marginy||0;function d(c){var s=c.x,h=c.y,v=c.width,p=c.height;n=Math.min(n,s-v/2),r=Math.max(r,s+v/2),a=Math.min(a,h-p/2),t=Math.max(t,h+p/2)}f.forEach(e.nodes(),function(c){d(e.node(c))}),f.forEach(e.edges(),function(c){var s=e.edge(c);Object.prototype.hasOwnProperty.call(s,"x")&&d(s)}),n-=i,a-=u,f.forEach(e.nodes(),function(c){var s=e.node(c);s.x-=n,s.y-=a}),f.forEach(e.edges(),function(c){var s=e.edge(c);f.forEach(s.points,function(h){h.x-=n,h.y-=a}),Object.prototype.hasOwnProperty.call(s,"x")&&(s.x-=n),Object.prototype.hasOwnProperty.call(s,"y")&&(s.y-=a)}),o.width=r-n+i,o.height=t-a+u}function sr(e){f.forEach(e.edges(),function(n){var r=e.edge(n),a=e.node(n.v),t=e.node(n.w),o,i;r.points?(o=r.points[0],i=r.points[r.points.length-1]):(r.points=[],o=t,i=a),r.points.unshift(U(a,o)),r.points.push(U(t,i))})}function hr(e){f.forEach(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function lr(e){f.forEach(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function vr(e){f.forEach(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),a=e.node(r.borderTop),t=e.node(r.borderBottom),o=e.node(l.last(r.borderLeft)),i=e.node(l.last(r.borderRight));r.width=Math.abs(i.x-o.x),r.height=Math.abs(t.y-a.y),r.x=o.x+r.width/2,r.y=a.y+r.height/2}}),f.forEach(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function pr(e){f.forEach(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function wr(e){var n=_(e);f.forEach(n,function(r){var a=0;f.forEach(r,function(t,o){var i=e.node(t);i.order=o+a,f.forEach(i.selfEdges,function(u){x(e,"selfedge",{width:u.label.width,height:u.label.height,rank:i.rank,order:o+ ++a,e:u.e,label:u.label},"_se")}),delete i.selfEdges})})}function mr(e){f.forEach(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var a=e.node(r.e.v),t=a.x+a.width/2,o=a.y,i=r.x-t,u=a.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:t+2*i/3,y:o-u},{x:t+5*i/6,y:o-u},{x:t+i,y:o},{x:t+5*i/6,y:o+u},{x:t+2*i/3,y:o+u}],r.label.x=r.x,r.label.y=r.y}})}function M(e,n){return C(P(e,n),Number)}function F(e){var n={};return f.forEach(e,function(r,a){n[a.toLowerCase()]=r}),n}exports.layout=Xn;
1
+ "use strict";const E=require("./graph-CyXULrD6.cjs"),f=require("./_baseUniq-CrYeQAxd.cjs"),l=require("./_basePickBy-UUTHWEmE.cjs"),m=require("./index-Be-BWA_-.cjs"),he=require("./cloneDeep-CVMaiStp.cjs");function le(e){return m.setToString(m.overRest(e,void 0,l.flatten),e+"")}function ve(e,n){return e==null?e:m.baseFor(e,f.castFunction(n),m.keysIn)}function pe(e,n){return e&&f.baseForOwn(e,f.castFunction(n))}function we(e,n){return e>n}function C(e,n){var r={};return n=f.baseIteratee(n),f.baseForOwn(e,function(a,t,o){m.baseAssignValue(r,t,n(a,t,o))}),r}function g(e){return e&&e.length?l.baseExtremum(e,m.identity,we):void 0}function j(e,n){return e&&e.length?l.baseExtremum(e,f.baseIteratee(n),l.baseLt):void 0}function me(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}function be(e,n){if(e!==n){var r=e!==void 0,a=e===null,t=e===e,o=f.isSymbol(e),i=n!==void 0,u=n===null,d=n===n,c=f.isSymbol(n);if(!u&&!c&&!o&&e>n||o&&i&&d&&!u&&!c||a&&i&&d||!r&&d||!t)return 1;if(!a&&!o&&!c&&e<n||c&&r&&t&&!a&&!o||u&&r&&t||!i&&t||!d)return-1}return 0}function Ee(e,n,r){for(var a=-1,t=e.criteria,o=n.criteria,i=t.length,u=r.length;++a<i;){var d=be(t[a],o[a]);if(d){if(a>=u)return d;var c=r[a];return d*(c=="desc"?-1:1)}}return e.index-n.index}function ge(e,n,r){n.length?n=f.arrayMap(n,function(o){return m.isArray(o)?function(i){return f.baseGet(i,o.length===1?o[0]:o)}:o}):n=[m.identity];var a=-1;n=f.arrayMap(n,m.baseUnary(f.baseIteratee));var t=l.baseMap(e,function(o,i,u){var d=f.arrayMap(n,function(c){return c(o)});return{criteria:d,index:++a,value:o}});return me(t,function(o,i){return Ee(o,i,r)})}function ye(e,n){return l.basePickBy(e,n,function(r,a){return f.hasIn(e,a)})}var P=le(function(e,n){return e==null?{}:ye(e,n)}),ke=Math.ceil,xe=Math.max;function Oe(e,n,r,a){for(var t=-1,o=xe(ke((n-e)/(r||1)),0),i=Array(o);o--;)i[++t]=e,e+=r;return i}function Ne(e){return function(n,r,a){return a&&typeof a!="number"&&m.isIterateeCall(n,r,a)&&(r=a=void 0),n=l.toFinite(n),r===void 0?(r=n,n=0):r=l.toFinite(r),a=a===void 0?n<r?1:-1:l.toFinite(a),Oe(n,r,a)}}var k=Ne(),L=m.baseRest(function(e,n){if(e==null)return[];var r=n.length;return r>1&&m.isIterateeCall(e,n[0],n[1])?n=[]:r>2&&m.isIterateeCall(n[0],n[1],n[2])&&(n=[n[0]]),ge(e,f.baseFlatten(n),[])}),Le=0;function V(e){var n=++Le;return f.toString(e)+n}function Pe(e,n,r){for(var a=-1,t=e.length,o=n.length,i={};++a<t;){var u=a<o?n[a]:void 0;r(i,e[a],u)}return i}function Ce(e,n){return Pe(e||[],n||[],m.assignValue)}class _e{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return q(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&q(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,a=r._prev;a!==r;)n.push(JSON.stringify(a,Re)),a=a._prev;return"["+n.join(", ")+"]"}}function q(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Re(e,n){if(e!=="_next"&&e!=="_prev")return n}var Ie=m.constant$1(1);function Te(e,n){if(e.nodeCount()<=1)return[];var r=Fe(e,n||Ie),a=Me(r.graph,r.buckets,r.zeroIdx);return l.flatten(l.map(a,function(t){return e.outEdges(t.v,t.w)}))}function Me(e,n,r){for(var a=[],t=n[n.length-1],o=n[0],i;e.nodeCount();){for(;i=o.dequeue();)R(e,n,r,i);for(;i=t.dequeue();)R(e,n,r,i);if(e.nodeCount()){for(var u=n.length-2;u>0;--u)if(i=n[u].dequeue(),i){a=a.concat(R(e,n,r,i,!0));break}}}return a}function R(e,n,r,a,t){var o=t?[]:void 0;return f.forEach(e.inEdges(a.v),function(i){var u=e.edge(i),d=e.node(i.v);t&&o.push({v:i.v,w:i.w}),d.out-=u,S(n,r,d)}),f.forEach(e.outEdges(a.v),function(i){var u=e.edge(i),d=i.w,c=e.node(d);c.in-=u,S(n,r,c)}),e.removeNode(a.v),o}function Fe(e,n){var r=new E.Graph,a=0,t=0;f.forEach(e.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),f.forEach(e.edges(),function(u){var d=r.edge(u.v,u.w)||0,c=n(u),s=d+c;r.setEdge(u.v,u.w,s),t=Math.max(t,r.node(u.v).out+=c),a=Math.max(a,r.node(u.w).in+=c)});var o=k(t+a+3).map(function(){return new _e}),i=a+1;return f.forEach(r.nodes(),function(u){S(o,i,r.node(u))}),{graph:r,buckets:o,zeroIdx:i}}function S(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function Se(e){var n=e.graph().acyclicer==="greedy"?Te(e,r(e)):je(e);f.forEach(n,function(a){var t=e.edge(a);e.removeEdge(a),t.forwardName=a.name,t.reversed=!0,e.setEdge(a.w,a.v,t,V("rev"))});function r(a){return function(t){return a.edge(t).weight}}}function je(e){var n=[],r={},a={};function t(o){Object.prototype.hasOwnProperty.call(a,o)||(a[o]=!0,r[o]=!0,f.forEach(e.outEdges(o),function(i){Object.prototype.hasOwnProperty.call(r,i.w)?n.push(i):t(i.w)}),delete r[o])}return f.forEach(e.nodes(),t),n}function Ve(e){f.forEach(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var a=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,a)}})}function x(e,n,r,a){var t;do t=V(a);while(e.hasNode(t));return r.dummy=n,e.setNode(t,r),t}function Ge(e){var n=new E.Graph().setGraph(e.graph());return f.forEach(e.nodes(),function(r){n.setNode(r,e.node(r))}),f.forEach(e.edges(),function(r){var a=n.edge(r.v,r.w)||{weight:0,minlen:1},t=e.edge(r);n.setEdge(r.v,r.w,{weight:a.weight+t.weight,minlen:Math.max(a.minlen,t.minlen)})}),n}function K(e){var n=new E.Graph({multigraph:e.isMultigraph()}).setGraph(e.graph());return f.forEach(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),f.forEach(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function U(e,n){var r=e.x,a=e.y,t=n.x-r,o=n.y-a,i=e.width/2,u=e.height/2;if(!t&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,c;return Math.abs(o)*i>Math.abs(t)*u?(o<0&&(u=-u),d=u*t/o,c=u):(t<0&&(i=-i),d=i,c=i*o/t),{x:r+d,y:a+c}}function _(e){var n=l.map(k(Q(e)+1),function(){return[]});return f.forEach(e.nodes(),function(r){var a=e.node(r),t=a.rank;f.isUndefined(t)||(n[t][a.order]=r)}),n}function Be(e){var n=l.min(l.map(e.nodes(),function(r){return e.node(r).rank}));f.forEach(e.nodes(),function(r){var a=e.node(r);l.has(a,"rank")&&(a.rank-=n)})}function Ae(e){var n=l.min(l.map(e.nodes(),function(o){return e.node(o).rank})),r=[];f.forEach(e.nodes(),function(o){var i=e.node(o).rank-n;r[i]||(r[i]=[]),r[i].push(o)});var a=0,t=e.graph().nodeRankFactor;f.forEach(r,function(o,i){f.isUndefined(o)&&i%t!==0?--a:a&&f.forEach(o,function(u){e.node(u).rank+=a})})}function D(e,n,r,a){var t={width:0,height:0};return arguments.length>=4&&(t.rank=r,t.order=a),x(e,"border",t,n)}function Q(e){return g(l.map(e.nodes(),function(n){var r=e.node(n).rank;if(!f.isUndefined(r))return r}))}function Ye(e,n){var r={lhs:[],rhs:[]};return f.forEach(e,function(a){n(a)?r.lhs.push(a):r.rhs.push(a)}),r}function qe(e,n){return n()}function Ue(e){function n(r){var a=e.children(r),t=e.node(r);if(a.length&&f.forEach(a,n),Object.prototype.hasOwnProperty.call(t,"minRank")){t.borderLeft=[],t.borderRight=[];for(var o=t.minRank,i=t.maxRank+1;o<i;++o)$(e,"borderLeft","_bl",r,t,o),$(e,"borderRight","_br",r,t,o)}}f.forEach(e.children(),n)}function $(e,n,r,a,t,o){var i={width:0,height:0,rank:o,borderType:n},u=t[n][o-1],d=x(e,"border",i,r);t[n][o]=d,e.setParent(d,a),u&&e.setEdge(u,d,{weight:1})}function De(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&ee(e)}function $e(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&We(e),(n==="lr"||n==="rl")&&(ze(e),ee(e))}function ee(e){f.forEach(e.nodes(),function(n){W(e.node(n))}),f.forEach(e.edges(),function(n){W(e.edge(n))})}function W(e){var n=e.width;e.width=e.height,e.height=n}function We(e){f.forEach(e.nodes(),function(n){I(e.node(n))}),f.forEach(e.edges(),function(n){var r=e.edge(n);f.forEach(r.points,I),Object.prototype.hasOwnProperty.call(r,"y")&&I(r)})}function I(e){e.y=-e.y}function ze(e){f.forEach(e.nodes(),function(n){T(e.node(n))}),f.forEach(e.edges(),function(n){var r=e.edge(n);f.forEach(r.points,T),Object.prototype.hasOwnProperty.call(r,"x")&&T(r)})}function T(e){var n=e.x;e.x=e.y,e.y=n}function Xe(e){e.graph().dummyChains=[],f.forEach(e.edges(),function(n){He(e,n)})}function He(e,n){var r=n.v,a=e.node(r).rank,t=n.w,o=e.node(t).rank,i=n.name,u=e.edge(n),d=u.labelRank;if(o!==a+1){e.removeEdge(n);var c=void 0,s,h;for(h=0,++a;a<o;++h,++a)u.points=[],c={width:0,height:0,edgeLabel:u,edgeObj:n,rank:a},s=x(e,"edge",c,"_d"),a===d&&(c.width=u.width,c.height=u.height,c.dummy="edge-label",c.labelpos=u.labelpos),e.setEdge(r,s,{weight:u.weight},i),h===0&&e.graph().dummyChains.push(s),r=s;e.setEdge(r,t,{weight:u.weight},i)}}function Je(e){f.forEach(e.graph().dummyChains,function(n){var r=e.node(n),a=r.edgeLabel,t;for(e.setEdge(r.edgeObj,a);r.dummy;)t=e.successors(n)[0],e.removeNode(n),a.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(a.x=r.x,a.y=r.y,a.width=r.width,a.height=r.height),n=t,r=e.node(n)})}function G(e){var n={};function r(a){var t=e.node(a);if(Object.prototype.hasOwnProperty.call(n,a))return t.rank;n[a]=!0;var o=l.min(l.map(e.outEdges(a),function(i){return r(i.w)-e.edge(i).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),t.rank=o}f.forEach(e.sources(),r)}function N(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function ne(e){var n=new E.Graph({directed:!1}),r=e.nodes()[0],a=e.nodeCount();n.setNode(r,{});for(var t,o;Ze(n,e)<a;)t=Ke(n,e),o=n.hasNode(t.v)?N(e,t):-N(e,t),Qe(n,e,o);return n}function Ze(e,n){function r(a){f.forEach(n.nodeEdges(a),function(t){var o=t.v,i=a===o?t.w:o;!e.hasNode(i)&&!N(n,t)&&(e.setNode(i,{}),e.setEdge(a,i,{}),r(i))})}return f.forEach(e.nodes(),r),e.nodeCount()}function Ke(e,n){return j(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return N(n,r)})}function Qe(e,n,r){f.forEach(e.nodes(),function(a){n.node(a).rank+=r})}function en(){}en.prototype=new Error;function re(e,n,r){m.isArray(n)||(n=[n]);var a=(e.isDirected()?e.successors:e.neighbors).bind(e),t=[],o={};return f.forEach(n,function(i){if(!e.hasNode(i))throw new Error("Graph does not have node: "+i);ae(e,i,r==="post",o,a,t)}),t}function ae(e,n,r,a,t,o){Object.prototype.hasOwnProperty.call(a,n)||(a[n]=!0,r||o.push(n),f.forEach(t(n),function(i){ae(e,i,r,a,t,o)}),r&&o.push(n))}function nn(e,n){return re(e,n,"post")}function rn(e,n){return re(e,n,"pre")}y.initLowLimValues=A;y.initCutValues=B;y.calcCutValue=te;y.leaveEdge=ie;y.enterEdge=ue;y.exchangeEdges=fe;function y(e){e=Ge(e),G(e);var n=ne(e);A(n),B(n,e);for(var r,a;r=ie(n);)a=ue(n,e,r),fe(n,e,r,a)}function B(e,n){var r=nn(e,e.nodes());r=r.slice(0,r.length-1),f.forEach(r,function(a){an(e,n,a)})}function an(e,n,r){var a=e.node(r),t=a.parent;e.edge(r,t).cutvalue=te(e,n,r)}function te(e,n,r){var a=e.node(r),t=a.parent,o=!0,i=n.edge(r,t),u=0;return i||(o=!1,i=n.edge(t,r)),u=i.weight,f.forEach(n.nodeEdges(r),function(d){var c=d.v===r,s=c?d.w:d.v;if(s!==t){var h=c===o,v=n.edge(d).weight;if(u+=h?v:-v,on(e,r,s)){var p=e.edge(r,s).cutvalue;u+=h?-p:p}}}),u}function A(e,n){arguments.length<2&&(n=e.nodes()[0]),oe(e,{},1,n)}function oe(e,n,r,a,t){var o=r,i=e.node(a);return n[a]=!0,f.forEach(e.neighbors(a),function(u){Object.prototype.hasOwnProperty.call(n,u)||(r=oe(e,n,r,u,a))}),i.low=o,i.lim=r++,t?i.parent=t:delete i.parent,r}function ie(e){return l.find(e.edges(),function(n){return e.edge(n).cutvalue<0})}function ue(e,n,r){var a=r.v,t=r.w;n.hasEdge(a,t)||(a=r.w,t=r.v);var o=e.node(a),i=e.node(t),u=o,d=!1;o.lim>i.lim&&(u=i,d=!0);var c=f.filter(n.edges(),function(s){return d===z(e,e.node(s.v),u)&&d!==z(e,e.node(s.w),u)});return j(c,function(s){return N(n,s)})}function fe(e,n,r,a){var t=r.v,o=r.w;e.removeEdge(t,o),e.setEdge(a.v,a.w,{}),A(e),B(e,n),tn(e,n)}function tn(e,n){var r=l.find(e.nodes(),function(t){return!n.node(t).parent}),a=rn(e,r);a=a.slice(1),f.forEach(a,function(t){var o=e.node(t).parent,i=n.edge(t,o),u=!1;i||(i=n.edge(o,t),u=!0),n.node(t).rank=n.node(o).rank+(u?i.minlen:-i.minlen)})}function on(e,n,r){return e.hasEdge(n,r)}function z(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function un(e){switch(e.graph().ranker){case"network-simplex":X(e);break;case"tight-tree":dn(e);break;case"longest-path":fn(e);break;default:X(e)}}var fn=G;function dn(e){G(e),ne(e)}function X(e){y(e)}function cn(e){var n=x(e,"root",{},"_root"),r=sn(e),a=g(f.values(r))-1,t=2*a+1;e.graph().nestingRoot=n,f.forEach(e.edges(),function(i){e.edge(i).minlen*=t});var o=hn(e)+1;f.forEach(e.children(),function(i){de(e,n,t,o,a,r,i)}),e.graph().nodeRankFactor=t}function de(e,n,r,a,t,o,i){var u=e.children(i);if(!u.length){i!==n&&e.setEdge(n,i,{weight:0,minlen:r});return}var d=D(e,"_bt"),c=D(e,"_bb"),s=e.node(i);e.setParent(d,i),s.borderTop=d,e.setParent(c,i),s.borderBottom=c,f.forEach(u,function(h){de(e,n,r,a,t,o,h);var v=e.node(h),p=v.borderTop?v.borderTop:h,w=v.borderBottom?v.borderBottom:h,b=v.borderTop?a:2*a,O=p!==w?1:t-o[i]+1;e.setEdge(d,p,{weight:b,minlen:O,nestingEdge:!0}),e.setEdge(w,c,{weight:b,minlen:O,nestingEdge:!0})}),e.parent(i)||e.setEdge(n,d,{weight:0,minlen:t+o[i]})}function sn(e){var n={};function r(a,t){var o=e.children(a);o&&o.length&&f.forEach(o,function(i){r(i,t+1)}),n[a]=t}return f.forEach(e.children(),function(a){r(a,1)}),n}function hn(e){return f.reduce(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function ln(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,f.forEach(e.edges(),function(r){var a=e.edge(r);a.nestingEdge&&e.removeEdge(r)})}function vn(e,n,r){var a={},t;f.forEach(r,function(o){for(var i=e.parent(o),u,d;i;){if(u=e.parent(i),u?(d=a[u],a[u]=i):(d=t,t=i),d&&d!==i){n.setEdge(d,i);return}i=u}})}function pn(e,n,r){var a=wn(e),t=new E.Graph({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(function(o){return e.node(o)});return f.forEach(e.nodes(),function(o){var i=e.node(o),u=e.parent(o);(i.rank===n||i.minRank<=n&&n<=i.maxRank)&&(t.setNode(o),t.setParent(o,u||a),f.forEach(e[r](o),function(d){var c=d.v===o?d.w:d.v,s=t.edge(c,o),h=f.isUndefined(s)?0:s.weight;t.setEdge(c,o,{weight:e.edge(d).weight+h})}),Object.prototype.hasOwnProperty.call(i,"minRank")&&t.setNode(o,{borderLeft:i.borderLeft[n],borderRight:i.borderRight[n]}))}),t}function wn(e){for(var n;e.hasNode(n=V("_root")););return n}function mn(e,n){for(var r=0,a=1;a<n.length;++a)r+=bn(e,n[a-1],n[a]);return r}function bn(e,n,r){for(var a=Ce(r,l.map(r,function(c,s){return s})),t=l.flatten(l.map(n,function(c){return L(l.map(e.outEdges(c),function(s){return{pos:a[s.w],weight:e.edge(s).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var i=2*o-1;o-=1;var u=l.map(new Array(i),function(){return 0}),d=0;return f.forEach(t.forEach(function(c){var s=c.pos+o;u[s]+=c.weight;for(var h=0;s>0;)s%2&&(h+=u[s+1]),s=s-1>>1,u[s]+=c.weight;d+=c.weight*h})),d}function En(e){var n={},r=f.filter(e.nodes(),function(u){return!e.children(u).length}),a=g(l.map(r,function(u){return e.node(u).rank})),t=l.map(k(a+1),function(){return[]});function o(u){if(!l.has(n,u)){n[u]=!0;var d=e.node(u);t[d.rank].push(u),f.forEach(e.successors(u),o)}}var i=L(r,function(u){return e.node(u).rank});return f.forEach(i,o),t}function gn(e,n){return l.map(n,function(r){var a=e.inEdges(r);if(a.length){var t=f.reduce(a,function(o,i){var u=e.edge(i),d=e.node(i.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:t.sum/t.weight,weight:t.weight}}else return{v:r}})}function yn(e,n){var r={};f.forEach(e,function(t,o){var i=r[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:o};f.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)}),f.forEach(n.edges(),function(t){var o=r[t.v],i=r[t.w];!f.isUndefined(o)&&!f.isUndefined(i)&&(i.indegree++,o.out.push(r[t.w]))});var a=f.filter(r,function(t){return!t.indegree});return kn(a)}function kn(e){var n=[];function r(o){return function(i){i.merged||(f.isUndefined(i.barycenter)||f.isUndefined(o.barycenter)||i.barycenter>=o.barycenter)&&xn(o,i)}}function a(o){return function(i){i.in.push(o),--i.indegree===0&&e.push(i)}}for(;e.length;){var t=e.pop();n.push(t),f.forEach(t.in.reverse(),r(t)),f.forEach(t.out,a(t))}return l.map(f.filter(n,function(o){return!o.merged}),function(o){return P(o,["vs","i","barycenter","weight"])})}function xn(e,n){var r=0,a=0;e.weight&&(r+=e.barycenter*e.weight,a+=e.weight),n.weight&&(r+=n.barycenter*n.weight,a+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/a,e.weight=a,e.i=Math.min(n.i,e.i),n.merged=!0}function On(e,n){var r=Ye(e,function(s){return Object.prototype.hasOwnProperty.call(s,"barycenter")}),a=r.lhs,t=L(r.rhs,function(s){return-s.i}),o=[],i=0,u=0,d=0;a.sort(Nn(!!n)),d=H(o,t,d),f.forEach(a,function(s){d+=s.vs.length,o.push(s.vs),i+=s.barycenter*s.weight,u+=s.weight,d=H(o,t,d)});var c={vs:l.flatten(o)};return u&&(c.barycenter=i/u,c.weight=u),c}function H(e,n,r){for(var a;n.length&&(a=l.last(n)).i<=r;)n.pop(),e.push(a.vs),r++;return r}function Nn(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function ce(e,n,r,a){var t=e.children(n),o=e.node(n),i=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};i&&(t=f.filter(t,function(w){return w!==i&&w!==u}));var c=gn(e,t);f.forEach(c,function(w){if(e.children(w.v).length){var b=ce(e,w.v,r,a);d[w.v]=b,Object.prototype.hasOwnProperty.call(b,"barycenter")&&Pn(w,b)}});var s=yn(c,r);Ln(s,d);var h=On(s,a);if(i&&(h.vs=l.flatten([i,h.vs,u]),e.predecessors(i).length)){var v=e.node(e.predecessors(i)[0]),p=e.node(e.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+v.order+p.order)/(h.weight+2),h.weight+=2}return h}function Ln(e,n){f.forEach(e,function(r){r.vs=l.flatten(r.vs.map(function(a){return n[a]?n[a].vs:a}))})}function Pn(e,n){f.isUndefined(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function Cn(e){var n=Q(e),r=J(e,k(1,n+1),"inEdges"),a=J(e,k(n-1,-1,-1),"outEdges"),t=En(e);Z(e,t);for(var o=Number.POSITIVE_INFINITY,i,u=0,d=0;d<4;++u,++d){_n(u%2?r:a,u%4>=2),t=_(e);var c=mn(e,t);c<o&&(d=0,i=he.cloneDeep(t),o=c)}Z(e,i)}function J(e,n,r){return l.map(n,function(a){return pn(e,a,r)})}function _n(e,n){var r=new E.Graph;f.forEach(e,function(a){var t=a.graph().root,o=ce(a,t,r,n);f.forEach(o.vs,function(i,u){a.node(i).order=u}),vn(a,r,o.vs)})}function Z(e,n){f.forEach(n,function(r){f.forEach(r,function(a,t){e.node(a).order=t})})}function Rn(e){var n=Tn(e);f.forEach(e.graph().dummyChains,function(r){for(var a=e.node(r),t=a.edgeObj,o=In(e,n,t.v,t.w),i=o.path,u=o.lca,d=0,c=i[d],s=!0;r!==t.w;){if(a=e.node(r),s){for(;(c=i[d])!==u&&e.node(c).maxRank<a.rank;)d++;c===u&&(s=!1)}if(!s){for(;d<i.length-1&&e.node(c=i[d+1]).minRank<=a.rank;)d++;c=i[d]}e.setParent(r,c),r=e.successors(r)[0]}})}function In(e,n,r,a){var t=[],o=[],i=Math.min(n[r].low,n[a].low),u=Math.max(n[r].lim,n[a].lim),d,c;d=r;do d=e.parent(d),t.push(d);while(d&&(n[d].low>i||u>n[d].lim));for(c=d,d=a;(d=e.parent(d))!==c;)o.push(d);return{path:t.concat(o.reverse()),lca:c}}function Tn(e){var n={},r=0;function a(t){var o=r;f.forEach(e.children(t),a),n[t]={low:o,lim:r++}}return f.forEach(e.children(),a),n}function Mn(e,n){var r={};function a(t,o){var i=0,u=0,d=t.length,c=l.last(o);return f.forEach(o,function(s,h){var v=Sn(e,s),p=v?e.node(v).order:d;(v||s===c)&&(f.forEach(o.slice(u,h+1),function(w){f.forEach(e.predecessors(w),function(b){var O=e.node(b),Y=O.order;(Y<i||p<Y)&&!(O.dummy&&e.node(w).dummy)&&se(r,b,w)})}),u=h+1,i=p)}),o}return f.reduce(n,a),r}function Fn(e,n){var r={};function a(o,i,u,d,c){var s;f.forEach(k(i,u),function(h){s=o[h],e.node(s).dummy&&f.forEach(e.predecessors(s),function(v){var p=e.node(v);p.dummy&&(p.order<d||p.order>c)&&se(r,v,s)})})}function t(o,i){var u=-1,d,c=0;return f.forEach(i,function(s,h){if(e.node(s).dummy==="border"){var v=e.predecessors(s);v.length&&(d=e.node(v[0]).order,a(i,c,h,u,d),c=h,u=d)}a(i,c,i.length,d,o.length)}),i}return f.reduce(n,t),r}function Sn(e,n){if(e.node(n).dummy)return l.find(e.predecessors(n),function(r){return e.node(r).dummy})}function se(e,n,r){if(n>r){var a=n;n=r,r=a}var t=e[n];t||(e[n]=t={}),t[r]=!0}function jn(e,n,r){if(n>r){var a=n;n=r,r=a}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function Vn(e,n,r,a){var t={},o={},i={};return f.forEach(n,function(u){f.forEach(u,function(d,c){t[d]=d,o[d]=d,i[d]=c})}),f.forEach(n,function(u){var d=-1;f.forEach(u,function(c){var s=a(c);if(s.length){s=L(s,function(b){return i[b]});for(var h=(s.length-1)/2,v=Math.floor(h),p=Math.ceil(h);v<=p;++v){var w=s[v];o[c]===c&&d<i[w]&&!jn(r,c,w)&&(o[w]=c,o[c]=t[c]=t[w],d=i[w])}}})}),{root:t,align:o}}function Gn(e,n,r,a,t){var o={},i=Bn(e,n,r,t),u=t?"borderLeft":"borderRight";function d(h,v){for(var p=i.nodes(),w=p.pop(),b={};w;)b[w]?h(w):(b[w]=!0,p.push(w),p=p.concat(v(w))),w=p.pop()}function c(h){o[h]=i.inEdges(h).reduce(function(v,p){return Math.max(v,o[p.v]+i.edge(p))},0)}function s(h){var v=i.outEdges(h).reduce(function(w,b){return Math.min(w,o[b.w]-i.edge(b))},Number.POSITIVE_INFINITY),p=e.node(h);v!==Number.POSITIVE_INFINITY&&p.borderType!==u&&(o[h]=Math.max(o[h],v))}return d(c,i.predecessors.bind(i)),d(s,i.successors.bind(i)),f.forEach(a,function(h){o[h]=o[r[h]]}),o}function Bn(e,n,r,a){var t=new E.Graph,o=e.graph(),i=Dn(o.nodesep,o.edgesep,a);return f.forEach(n,function(u){var d;f.forEach(u,function(c){var s=r[c];if(t.setNode(s),d){var h=r[d],v=t.edge(h,s);t.setEdge(h,s,Math.max(i(e,c,d),v||0))}d=c})}),t}function An(e,n){return j(f.values(n),function(r){var a=Number.NEGATIVE_INFINITY,t=Number.POSITIVE_INFINITY;return ve(r,function(o,i){var u=$n(e,i)/2;a=Math.max(o+u,a),t=Math.min(o-u,t)}),a-t})}function Yn(e,n){var r=f.values(n),a=l.min(r),t=g(r);f.forEach(["u","d"],function(o){f.forEach(["l","r"],function(i){var u=o+i,d=e[u],c;if(d!==n){var s=f.values(d);c=i==="l"?a-l.min(s):t-g(s),c&&(e[u]=C(d,function(h){return h+c}))}})})}function qn(e,n){return C(e.ul,function(r,a){if(n)return e[n.toLowerCase()][a];var t=L(l.map(e,a));return(t[1]+t[2])/2})}function Un(e){var n=_(e),r=m.merge(Mn(e,n),Fn(e,n)),a={},t;f.forEach(["u","d"],function(i){t=i==="u"?n:f.values(n).reverse(),f.forEach(["l","r"],function(u){u==="r"&&(t=l.map(t,function(h){return f.values(h).reverse()}));var d=(i==="u"?e.predecessors:e.successors).bind(e),c=Vn(e,t,r,d),s=Gn(e,t,c.root,c.align,u==="r");u==="r"&&(s=C(s,function(h){return-h})),a[i+u]=s})});var o=An(e,a);return Yn(a,o),qn(a,e.graph().align)}function Dn(e,n,r){return function(a,t,o){var i=a.node(t),u=a.node(o),d=0,c;if(d+=i.width/2,Object.prototype.hasOwnProperty.call(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":c=-i.width/2;break;case"r":c=i.width/2;break}if(c&&(d+=r?c:-c),c=0,d+=(i.dummy?n:e)/2,d+=(u.dummy?n:e)/2,d+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":c=u.width/2;break;case"r":c=-u.width/2;break}return c&&(d+=r?c:-c),c=0,d}}function $n(e,n){return e.node(n).width}function Wn(e){e=K(e),zn(e),pe(Un(e),function(n,r){e.node(r).x=n})}function zn(e){var n=_(e),r=e.graph().ranksep,a=0;f.forEach(n,function(t){var o=g(l.map(t,function(i){return e.node(i).height}));f.forEach(t,function(i){e.node(i).y=a+o/2}),a+=o+r})}function Xn(e,n){var r=qe;r("layout",()=>{var a=r(" buildLayoutGraph",()=>or(e));r(" runLayout",()=>Hn(a,r)),r(" updateInputGraph",()=>Jn(e,a))})}function Hn(e,n){n(" makeSpaceForEdgeLabels",()=>ir(e)),n(" removeSelfEdges",()=>pr(e)),n(" acyclic",()=>Se(e)),n(" nestingGraph.run",()=>cn(e)),n(" rank",()=>un(K(e))),n(" injectEdgeLabelProxies",()=>ur(e)),n(" removeEmptyRanks",()=>Ae(e)),n(" nestingGraph.cleanup",()=>ln(e)),n(" normalizeRanks",()=>Be(e)),n(" assignRankMinMax",()=>fr(e)),n(" removeEdgeLabelProxies",()=>dr(e)),n(" normalize.run",()=>Xe(e)),n(" parentDummyChains",()=>Rn(e)),n(" addBorderSegments",()=>Ue(e)),n(" order",()=>Cn(e)),n(" insertSelfEdges",()=>wr(e)),n(" adjustCoordinateSystem",()=>De(e)),n(" position",()=>Wn(e)),n(" positionSelfEdges",()=>mr(e)),n(" removeBorderNodes",()=>vr(e)),n(" normalize.undo",()=>Je(e)),n(" fixupEdgeLabelCoords",()=>hr(e)),n(" undoCoordinateSystem",()=>$e(e)),n(" translateGraph",()=>cr(e)),n(" assignNodeIntersects",()=>sr(e)),n(" reversePoints",()=>lr(e)),n(" acyclic.undo",()=>Ve(e))}function Jn(e,n){f.forEach(e.nodes(),function(r){var a=e.node(r),t=n.node(r);a&&(a.x=t.x,a.y=t.y,n.children(r).length&&(a.width=t.width,a.height=t.height))}),f.forEach(e.edges(),function(r){var a=e.edge(r),t=n.edge(r);a.points=t.points,Object.prototype.hasOwnProperty.call(t,"x")&&(a.x=t.x,a.y=t.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var Zn=["nodesep","edgesep","ranksep","marginx","marginy"],Kn={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Qn=["acyclicer","ranker","rankdir","align"],er=["width","height"],nr={width:0,height:0},rr=["minlen","weight","width","height","labeloffset"],ar={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},tr=["labelpos"];function or(e){var n=new E.Graph({multigraph:!0,compound:!0}),r=F(e.graph());return n.setGraph(m.merge({},Kn,M(r,Zn),P(r,Qn))),f.forEach(e.nodes(),function(a){var t=F(e.node(a));n.setNode(a,l.defaults(M(t,er),nr)),n.setParent(a,e.parent(a))}),f.forEach(e.edges(),function(a){var t=F(e.edge(a));n.setEdge(a,m.merge({},ar,M(t,rr),P(t,tr)))}),n}function ir(e){var n=e.graph();n.ranksep/=2,f.forEach(e.edges(),function(r){var a=e.edge(r);a.minlen*=2,a.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?a.width+=a.labeloffset:a.height+=a.labeloffset)})}function ur(e){f.forEach(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var a=e.node(n.v),t=e.node(n.w),o={rank:(t.rank-a.rank)/2+a.rank,e:n};x(e,"edge-proxy",o,"_ep")}})}function fr(e){var n=0;f.forEach(e.nodes(),function(r){var a=e.node(r);a.borderTop&&(a.minRank=e.node(a.borderTop).rank,a.maxRank=e.node(a.borderBottom).rank,n=g(n,a.maxRank))}),e.graph().maxRank=n}function dr(e){f.forEach(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function cr(e){var n=Number.POSITIVE_INFINITY,r=0,a=Number.POSITIVE_INFINITY,t=0,o=e.graph(),i=o.marginx||0,u=o.marginy||0;function d(c){var s=c.x,h=c.y,v=c.width,p=c.height;n=Math.min(n,s-v/2),r=Math.max(r,s+v/2),a=Math.min(a,h-p/2),t=Math.max(t,h+p/2)}f.forEach(e.nodes(),function(c){d(e.node(c))}),f.forEach(e.edges(),function(c){var s=e.edge(c);Object.prototype.hasOwnProperty.call(s,"x")&&d(s)}),n-=i,a-=u,f.forEach(e.nodes(),function(c){var s=e.node(c);s.x-=n,s.y-=a}),f.forEach(e.edges(),function(c){var s=e.edge(c);f.forEach(s.points,function(h){h.x-=n,h.y-=a}),Object.prototype.hasOwnProperty.call(s,"x")&&(s.x-=n),Object.prototype.hasOwnProperty.call(s,"y")&&(s.y-=a)}),o.width=r-n+i,o.height=t-a+u}function sr(e){f.forEach(e.edges(),function(n){var r=e.edge(n),a=e.node(n.v),t=e.node(n.w),o,i;r.points?(o=r.points[0],i=r.points[r.points.length-1]):(r.points=[],o=t,i=a),r.points.unshift(U(a,o)),r.points.push(U(t,i))})}function hr(e){f.forEach(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function lr(e){f.forEach(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function vr(e){f.forEach(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),a=e.node(r.borderTop),t=e.node(r.borderBottom),o=e.node(l.last(r.borderLeft)),i=e.node(l.last(r.borderRight));r.width=Math.abs(i.x-o.x),r.height=Math.abs(t.y-a.y),r.x=o.x+r.width/2,r.y=a.y+r.height/2}}),f.forEach(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function pr(e){f.forEach(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function wr(e){var n=_(e);f.forEach(n,function(r){var a=0;f.forEach(r,function(t,o){var i=e.node(t);i.order=o+a,f.forEach(i.selfEdges,function(u){x(e,"selfedge",{width:u.label.width,height:u.label.height,rank:i.rank,order:o+ ++a,e:u.e,label:u.label},"_se")}),delete i.selfEdges})})}function mr(e){f.forEach(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var a=e.node(r.e.v),t=a.x+a.width/2,o=a.y,i=r.x-t,u=a.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:t+2*i/3,y:o-u},{x:t+5*i/6,y:o-u},{x:t+i,y:o},{x:t+5*i/6,y:o+u},{x:t+2*i/3,y:o+u}],r.label.x=r.x,r.label.y=r.y}})}function M(e,n){return C(P(e,n),Number)}function F(e){var n={};return f.forEach(e,function(r,a){n[a.toLowerCase()]=r}),n}exports.layout=Xn;