@antdv-next/x 1.2.0 → 1.2.1-beta.1

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 (136) hide show
  1. package/dist/actions/ActionsFeedback.js +1 -1
  2. package/dist/actions/ActionsItem.js +1 -1
  3. package/dist/bubble/hooks/useCompatibleScroll.js +1 -1
  4. package/dist/code-highlighter/CodeHighlighter.js +2 -1
  5. package/dist/code-highlighter/shiki.js +1 -1
  6. package/dist/code-highlighter/style/index.d.ts +40 -0
  7. package/dist/code-highlighter/style/index.js +25 -13
  8. package/dist/folder/Folder.js +2 -1
  9. package/dist/index.umd.js +63 -40
  10. package/dist/mermaid/Mermaid.js +1 -1
  11. package/dist/package.js +1 -1
  12. package/dist/sender/components/SlotTextArea.js +3 -2
  13. package/dist/sender/components/SpeechButton/RecordingIcon.js +1 -1
  14. package/dist/sender/hooks/use-speech.js +2 -1
  15. package/dist/suggestion/useActive.js +0 -2
  16. package/dist/theme/themes/seed.js +3 -0
  17. package/dist/theme/util/alias.js +5 -5
  18. package/dist/think/Think.js +3 -2
  19. package/dist/thought-chain/Node.js +3 -2
  20. package/dist/thought-chain/ThoughtChain.js +2 -2
  21. package/dist/x-provider/index.js +3 -2
  22. package/es/Serializer-Sc9uEpQk.js +262 -0
  23. package/es/{_basePickBy-DFHEGO2M.js → _basePickBy-CrbncDqR.js} +2 -2
  24. package/es/{_baseUniq-BlS7rXTs.js → _baseUniq-B-qU_Imh.js} +9 -9
  25. package/es/antdv-next-x.esm.js +2887 -2875
  26. package/es/{arc-BuXEd18J.js → arc-NI3ROx5X.js} +2 -2
  27. package/es/architecture-PBZL5I3N-BRGGaMu3.js +3 -0
  28. package/es/{architectureDiagram-2XIMDMQ5-CmfsCwJk.js → architectureDiagram-2XIMDMQ5-OvuktNfv.js} +100 -110
  29. package/es/{blockDiagram-WCTKOSBZ-lJAan65A.js → blockDiagram-WCTKOSBZ-CS-kh74L.js} +42 -43
  30. package/es/{c4Diagram-IC4MRINW-B1c2x_1Q.js → c4Diagram-IC4MRINW-BZGIF4Dk.js} +17 -25
  31. package/es/{channel-DFgF_2F7.js → channel-DrSSYyxp.js} +1 -1
  32. package/es/{chunk-4BX2VUAB-J2N81Fpp.js → chunk-4BX2VUAB-Rm8-te6i.js} +1 -1
  33. package/es/{chunk-55IACEB6-DGtfGRgi.js → chunk-55IACEB6-Tre45n-8.js} +1 -1
  34. package/es/{chunk-7R4GIKGN-QT6IorJ_.js → chunk-7R4GIKGN-scch4dXY.js} +10 -10
  35. package/es/{chunk-FMBD7UC4-DCcRjunY.js → chunk-FMBD7UC4-JmekSPZP.js} +1 -1
  36. package/es/{chunk-GEFDOKGD-BWpC-zoH.js → chunk-GEFDOKGD-BEzc6NZw.js} +31 -71
  37. package/es/{chunk-JSJVCQXG-D8_heHOp.js → chunk-JSJVCQXG-_l_UVbaa.js} +3 -3
  38. package/es/{chunk-KX2RTZJC-D5cc4rj6.js → chunk-KX2RTZJC-BUWM8pJz.js} +2 -2
  39. package/es/{chunk-KYZI473N-BHJ3T5Zv.js → chunk-KYZI473N-BSgb_E0Q.js} +11 -11
  40. package/es/{chunk-MX3YWQON-BxE-Aq9c.js → chunk-MX3YWQON-D602L8pU.js} +1 -1
  41. package/es/{chunk-NQ4KR5QH-EYQBXkqP.js → chunk-NQ4KR5QH-BPQV0i93.js} +41 -45
  42. package/es/{chunk-O4XLMI2P-qjOoGpnx.js → chunk-O4XLMI2P-BMqc3iYa.js} +15 -14
  43. package/es/{chunk-PQ6SQG4A-D3jtNCWN.js → chunk-PQ6SQG4A-DcYrzB1X.js} +2 -2
  44. package/es/{chunk-PU5JKC2W-DdP8BS-S.js → chunk-PU5JKC2W-TuGY6X1n.js} +28 -24
  45. package/es/{chunk-QZHKN3VN-CW3cFN-h.js → chunk-QZHKN3VN-CKbD02cl.js} +1 -1
  46. package/es/{chunk-WL4C6EOR-BDbxJyGk.js → chunk-WL4C6EOR-B31ErTFp.js} +19 -17
  47. package/es/{chunk-XZSTWKYB-CucN1XvM.js → chunk-XZSTWKYB-DYKLwCEy.js} +1888 -1785
  48. package/es/{chunk-YBOYWFTD-CvaddD9G.js → chunk-YBOYWFTD-CRiKEIiS.js} +5 -5
  49. package/es/classDiagram-VBA2DB6C-BDqwxUdU.js +29 -0
  50. package/es/classDiagram-v2-RAHNMMFH-DdmOjeUb.js +29 -0
  51. package/es/{clone-r3YukIBB.js → clone-yzFtXY5G.js} +1 -1
  52. package/es/{cose-bilkent-S5V4N54A-B5OQuIhl.js → cose-bilkent-S5V4N54A-BM90wTBk.js} +43 -48
  53. package/es/css-CRY9BUqw.js +2 -0
  54. package/es/{cytoscape.esm-i2CZcWd-.js → cytoscape.esm-B_-hKv4-.js} +276 -321
  55. package/es/{dagre-5aGJFKmT.js → dagre-DCYVBij1.js} +25 -27
  56. package/es/{dagre-KLK3FWXG-BI5QQMXo.js → dagre-KLK3FWXG-Ced70SgJ.js} +21 -17
  57. package/es/{defaultLocale-bckJcYh1.js → defaultLocale-yzzuPw6P.js} +1 -4
  58. package/es/{diagram-E7M64L7V-Dz62Vz_a.js → diagram-E7M64L7V-xZCloH_i.js} +72 -70
  59. package/es/{diagram-IFDJBPK2-9fjvFkSc.js → diagram-IFDJBPK2-BTmFZhvz.js} +21 -21
  60. package/es/{diagram-P4PSJMXO-BlX6jFjZ.js → diagram-P4PSJMXO-DX_3B0LB.js} +16 -16
  61. package/es/{dist-BX_roQzC.js → dist-h4ggShny.js} +1 -1
  62. package/es/{erDiagram-INFDFZHY-BcRXu8Cp.js → erDiagram-INFDFZHY-MJ_HVY-7.js} +22 -22
  63. package/es/{flowDiagram-PKNHOUZH-UeyfgU8z.js → flowDiagram-PKNHOUZH-CQIRy1sx.js} +35 -42
  64. package/es/{ganttDiagram-A5KZAMGK-txCzqgQ5.js → ganttDiagram-A5KZAMGK-Dw9bjWjx.js} +39 -52
  65. package/es/gitGraph-HDMCJU4V-oForq_Vw.js +3 -0
  66. package/es/{gitGraphDiagram-K3NZZRJ6-DghWYaFU.js → gitGraphDiagram-K3NZZRJ6-Gk6FiGbZ.js} +21 -21
  67. package/es/{graphlib-dRkI1OCL.js → graphlib-BMvIh7N7.js} +4 -4
  68. package/es/{html-CWvNBSxv.js → html-C4rrmxbP.js} +2 -2
  69. package/es/info-3K5VOQVL-0F-ZLEMx.js +3 -0
  70. package/es/{infoDiagram-LFFYTUFH-CA-vlAvP.js → infoDiagram-LFFYTUFH-CS64-uil.js} +9 -9
  71. package/es/{init-B75p2clj.js → init-sjaVZO3f.js} +1 -3
  72. package/es/{isArrayLikeObject-jl2bjkAJ.js → isArrayLikeObject-Dqk_yOP-.js} +5 -4
  73. package/es/{ishikawaDiagram-PHBUUO56-DjdpS9Lb.js → ishikawaDiagram-PHBUUO56-C_Hw5UnV.js} +13 -13
  74. package/es/javascript--0qAxhnA.js +2 -0
  75. package/es/{journeyDiagram-4ABVD52K-CIJfC1fp.js → journeyDiagram-4ABVD52K-CFFyM4Ar.js} +16 -16
  76. package/es/{kanban-definition-K7BYSVSG-CC2vwGck.js → kanban-definition-K7BYSVSG-B_R-mA10.js} +27 -28
  77. package/es/{katex-DCMiIo1z.js → katex-C-qdUNlg.js} +78 -68
  78. package/es/{line-Cu9NTacD.js → line-D05MESIS.js} +3 -3
  79. package/es/{linear-C0rAYYmp.js → linear-B8tPH2Pw.js} +4 -6
  80. package/es/mermaid-parser.core-C_69nk7j.js +259 -0
  81. package/es/mermaid.core-BVGVwWcu.js +1914 -0
  82. package/es/{mindmap-definition-YRQLILUH-BzTYDYmK.js → mindmap-definition-YRQLILUH-qgGUYYe3.js} +26 -28
  83. package/es/{ordinal-F3U6aXtP.js → ordinal-CNQzPcrr.js} +1 -1
  84. package/es/packet-RMMSAZCW-CeqtQQ_e.js +3 -0
  85. package/es/{path-Dm3C8WEs.js → path-CqWAdh69.js} +4 -7
  86. package/es/pie-UPGHQEXC-BI60FhK4.js +3 -0
  87. package/es/{pieDiagram-SKSYHLDU-COvqE_C6.js → pieDiagram-SKSYHLDU-B8-AVOmP.js} +47 -47
  88. package/es/{quadrantDiagram-337W2JSQ-Dgv8ccjt.js → quadrantDiagram-337W2JSQ-C2Z0CN4Z.js} +10 -10
  89. package/es/radar-KQ55EAFF-CRwOOFw0.js +3 -0
  90. package/es/{requirementDiagram-Z7DCOOCP-B2NyhxO-.js → requirementDiagram-Z7DCOOCP-Cdj7PwWC.js} +19 -19
  91. package/es/{chunk-WQLz0Won.js → rolldown-runtime-CEY2VRuR.js} +10 -3
  92. package/es/{rough.esm-BhGP2Udb.js → rough.esm-D1ibUQD-.js} +1 -1
  93. package/es/{sankeyDiagram-WA2Y5GQK-BfnH_gpl.js → sankeyDiagram-WA2Y5GQK-BNmU-dM1.js} +10 -10
  94. package/es/{sequenceDiagram-2WXFIKYE-DXssVQOF.js → sequenceDiagram-2WXFIKYE-pj0uPf22.js} +114 -126
  95. package/es/{shiki-runtime-D0MO6er5.js → shiki-runtime-7QG17np_.js} +978 -983
  96. package/es/{src-CUQ6oOYk.js → src-Dynw_Lub.js} +26 -26
  97. package/es/{stateDiagram-RAJIS63D-DvDLfupV.js → stateDiagram-RAJIS63D-BgCfMnGb.js} +18 -18
  98. package/es/stateDiagram-v2-FVOUBMTO-ByMhP6Xo.js +27 -0
  99. package/es/{timeline-definition-YZTLITO2-ErcRjbZf.js → timeline-definition-YZTLITO2-Bj5QKnBI.js} +10 -10
  100. package/es/treemap-KZPCXAKY-BlOAFUbR.js +3 -0
  101. package/es/{vennDiagram-LZ73GAT5-CDTZUtc8.js → vennDiagram-LZ73GAT5-lpWcIvN6.js} +16 -16
  102. package/es/{xychartDiagram-JWTSCODW-Y21jBOTg.js → xychartDiagram-JWTSCODW-De1M-7Yz.js} +26 -30
  103. package/package.json +1 -1
  104. package/es/Serializer-D1JYN1kI.js +0 -262
  105. package/es/architecture-PBZL5I3N-D7tS55xM.js +0 -3
  106. package/es/chunk-7E7YKBS2-CL2d4WAf.js +0 -23
  107. package/es/chunk-C72U2L5F-OHTVpS-m.js +0 -23
  108. package/es/chunk-EGIJ26TM-DyMPGYrB.js +0 -23
  109. package/es/chunk-GLR3WWYH-DiXcKb5Y.js +0 -41
  110. package/es/chunk-HHEYEP7N-Cxc7E4dX.js +0 -9
  111. package/es/chunk-L3YUKLVL-7oGaUOdc.js +0 -23
  112. package/es/chunk-OZEHJAEY-D82nx27s.js +0 -64
  113. package/es/chunk-R5LLSJPH-CreI2kO9.js +0 -35
  114. package/es/chunk-XIRO2GV7-S5KkbVnN.js +0 -30
  115. package/es/chunk-XPW4576I-B0KVSHwE.js +0 -1146
  116. package/es/classDiagram-VBA2DB6C-Co3LMmg8.js +0 -29
  117. package/es/classDiagram-v2-RAHNMMFH-BZscgdF2.js +0 -29
  118. package/es/css-Bi5OTYo2.js +0 -2
  119. package/es/gitGraph-HDMCJU4V-CxsS0Qr1.js +0 -3
  120. package/es/info-3K5VOQVL-COqdvM99.js +0 -3
  121. package/es/isEmpty-CmA-HYrg.js +0 -35
  122. package/es/javascript-CjdDmufJ.js +0 -2
  123. package/es/mermaid-parser.core-7Wn2L29P.js +0 -59
  124. package/es/mermaid.core-Bvy_Q6Hu.js +0 -680
  125. package/es/packet-RMMSAZCW-2PTjWKLd.js +0 -3
  126. package/es/pie-UPGHQEXC-Du8-k-EA.js +0 -3
  127. package/es/radar-KQ55EAFF-jJOhyjxC.js +0 -3
  128. package/es/stateDiagram-v2-FVOUBMTO-DIXyaX9W.js +0 -27
  129. package/es/treemap-KZPCXAKY-CvZAIYVa.js +0 -3
  130. /package/es/{array-CWNufkl9.js → array-CApNbSU9.js} +0 -0
  131. /package/es/{css-v5r4VtJ6.js → css-DVAQAvTD.js} +0 -0
  132. /package/es/{javascript-o_jd8Ivw.js → javascript-Bk0bJ4nQ.js} +0 -0
  133. /package/es/{json-DqMXJlo0.js → json-CAwkMa5O.js} +0 -0
  134. /package/es/{math-CoDOuve-.js → math-BZ_bUCIA.js} +0 -0
  135. /package/es/{python-CQPNJfOt.js → python-D0AaDoWC.js} +0 -0
  136. /package/es/{typescript-Ck7Pr_E3.js → typescript-DWy2KXvB.js} +0 -0
@@ -1,9 +1,9 @@
1
- import { C as e, D as t, E as n, G as r, N as i, P as a, V as o, j as s, k as c, n as l, p as u, v as d, w as f, z as p } from "./isArrayLikeObject-jl2bjkAJ.js";
2
- import { C as m, E as ee, M as h, N as te, S as ne, a as g, c as re, d as ie, f as _, i as v, m as ae, n as y, p as oe, r as b, s as x, y as se } from "./_baseUniq-BlS7rXTs.js";
3
- import { a as ce, c as le, d as ue, f as S, i as de, l as C, m as w, n as T, o as fe, r as pe, s as E, t as me, u as D } from "./_basePickBy-DFHEGO2M.js";
4
- import { i as he, n as ge } from "./isEmpty-CmA-HYrg.js";
5
- import { k as O } from "./chunk-GEFDOKGD-BWpC-zoH.js";
6
- import { t as k } from "./graphlib-dRkI1OCL.js";
1
+ import { C as e, D as t, E as n, G as r, N as i, P as a, V as o, j as s, k as c, n as l, p as u, v as d, w as f, z as p } from "./isArrayLikeObject-Dqk_yOP-.js";
2
+ import { C as m, E as ee, M as h, N as te, S as ne, a as g, c as re, d as ie, f as _, i as v, m as ae, n as y, p as oe, r as b, s as x, y as se } from "./_baseUniq-B-qU_Imh.js";
3
+ import { a as ce, c as le, d as ue, f as S, i as de, l as C, m as w, n as T, o as fe, r as pe, s as E, t as me, u as D } from "./_basePickBy-CrbncDqR.js";
4
+ import { k as O } from "./chunk-GEFDOKGD-BEzc6NZw.js";
5
+ import { t as k } from "./graphlib-BMvIh7N7.js";
6
+ import { l as he, s as ge } from "./mermaid.core-BVGVwWcu.js";
7
7
  //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_flatRest.js
8
8
  function _e(e) {
9
9
  return i(t(e, void 0, S), e + "");
@@ -215,8 +215,8 @@ function ct(e, t) {
215
215
  var lt = a(1);
216
216
  function ut(e, t) {
217
217
  if (e.nodeCount() <= 1) return [];
218
- var n = ft(e, t || lt);
219
- return S(E(dt(n.graph, n.buckets, n.zeroIdx), function(t) {
218
+ var n = ft(e, t || lt), r = dt(n.graph, n.buckets, n.zeroIdx);
219
+ return S(E(r, function(t) {
220
220
  return e.outEdges(t.v, t.w);
221
221
  }));
222
222
  }
@@ -275,11 +275,12 @@ function B(e, t, n) {
275
275
  //#endregion
276
276
  //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/acyclic.js
277
277
  function pt(e) {
278
- x(e.graph().acyclicer === "greedy" ? ut(e, t(e)) : mt(e), function(t) {
278
+ var t = e.graph().acyclicer === "greedy" ? ut(e, n(e)) : mt(e);
279
+ x(t, function(t) {
279
280
  var n = e.edge(t);
280
281
  e.removeEdge(t), n.forwardName = t.name, n.reversed = !0, e.setEdge(t.w, t.v, n, R("rev"));
281
282
  });
282
- function t(e) {
283
+ function n(e) {
283
284
  return function(t) {
284
285
  return e.edge(t).weight;
285
286
  };
@@ -818,17 +819,18 @@ function mn(e, t, n) {
818
819
  function hn(e) {
819
820
  var t = {}, n = g(e.nodes(), function(t) {
820
821
  return !e.children(t).length;
821
- }), r = E(I(j(E(n, function(t) {
822
+ }), r = j(E(n, function(t) {
822
823
  return e.node(t).rank;
823
- })) + 1), function() {
824
+ })), i = E(I(r + 1), function() {
824
825
  return [];
825
826
  });
826
- function i(n) {
827
- fe(t, n) || (t[n] = !0, r[e.node(n).rank].push(n), x(e.successors(n), i));
827
+ function a(n) {
828
+ fe(t, n) || (t[n] = !0, i[e.node(n).rank].push(n), x(e.successors(n), a));
828
829
  }
829
- return x(L(n, function(t) {
830
+ var o = L(n, function(t) {
830
831
  return e.node(t).rank;
831
- }), i), r;
832
+ });
833
+ return x(o, a), i;
832
834
  }
833
835
  //#endregion
834
836
  //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/order/barycenter.js
@@ -851,7 +853,8 @@ function gn(e, t) {
851
853
  barycenter: r.sum / r.weight,
852
854
  weight: r.weight
853
855
  };
854
- } else return { v: t };
856
+ }
857
+ return { v: t };
855
858
  });
856
859
  }
857
860
  //#endregion
@@ -1220,17 +1223,13 @@ function Gn(e, t, n) {
1220
1223
  case "l":
1221
1224
  l = -o.width / 2;
1222
1225
  break;
1223
- case "r":
1224
- l = o.width / 2;
1225
- break;
1226
+ case "r": l = o.width / 2;
1226
1227
  }
1227
1228
  if (l && (c += n ? l : -l), l = 0, c += (o.dummy ? t : e) / 2, c += (s.dummy ? t : e) / 2, c += s.width / 2, Object.prototype.hasOwnProperty.call(s, "labelpos")) switch (s.labelpos.toLowerCase()) {
1228
1229
  case "l":
1229
1230
  l = s.width / 2;
1230
1231
  break;
1231
- case "r":
1232
- l = -s.width / 2;
1233
- break;
1232
+ case "r": l = -s.width / 2;
1234
1233
  }
1235
1234
  return l && (c += n ? l : -l), l = 0, c;
1236
1235
  };
@@ -1389,9 +1388,7 @@ function pr(e) {
1389
1388
  case "l":
1390
1389
  n.x -= n.width / 2 + n.labeloffset;
1391
1390
  break;
1392
- case "r":
1393
- n.x += n.width / 2 + n.labeloffset;
1394
- break;
1391
+ case "r": n.x += n.width / 2 + n.labeloffset;
1395
1392
  }
1396
1393
  });
1397
1394
  }
@@ -1423,7 +1420,8 @@ function gr(e) {
1423
1420
  });
1424
1421
  }
1425
1422
  function _r(e) {
1426
- x(H(e), function(t) {
1423
+ var t = H(e);
1424
+ x(t, function(t) {
1427
1425
  var n = 0;
1428
1426
  x(t, function(t, r) {
1429
1427
  var i = e.node(t);
@@ -1,17 +1,17 @@
1
- import { g as e, h as t } from "./src-CUQ6oOYk.js";
2
- import { r as n } from "./_baseUniq-BlS7rXTs.js";
3
- import { s as r } from "./_basePickBy-DFHEGO2M.js";
4
- import { t as i } from "./dagre-5aGJFKmT.js";
5
- import "./chunk-GEFDOKGD-BWpC-zoH.js";
6
- import { t as a } from "./clone-r3YukIBB.js";
7
- import { t as o } from "./graphlib-dRkI1OCL.js";
8
- import { b as s } from "./chunk-7R4GIKGN-QT6IorJ_.js";
9
- import "./chunk-PU5JKC2W-DdP8BS-S.js";
10
- import "./chunk-MX3YWQON-BxE-Aq9c.js";
11
- import { n as c } from "./chunk-YBOYWFTD-CvaddD9G.js";
12
- import "./chunk-PQ6SQG4A-D3jtNCWN.js";
13
- import { a as l, c as u, i as d, l as f, n as p, t as m, u as h } from "./chunk-KYZI473N-BHJ3T5Zv.js";
14
- import { a as g, i as _, n as v, r as y, t as b } from "./chunk-O4XLMI2P-qjOoGpnx.js";
1
+ import { g as e, h as t } from "./src-Dynw_Lub.js";
2
+ import { r as n } from "./_baseUniq-B-qU_Imh.js";
3
+ import { s as r } from "./_basePickBy-CrbncDqR.js";
4
+ import { t as i } from "./dagre-DCYVBij1.js";
5
+ import "./chunk-GEFDOKGD-BEzc6NZw.js";
6
+ import { t as a } from "./clone-yzFtXY5G.js";
7
+ import { t as o } from "./graphlib-BMvIh7N7.js";
8
+ import { b as s } from "./chunk-7R4GIKGN-scch4dXY.js";
9
+ import "./chunk-PU5JKC2W-TuGY6X1n.js";
10
+ import "./chunk-MX3YWQON-D602L8pU.js";
11
+ import { n as c } from "./chunk-YBOYWFTD-CRiKEIiS.js";
12
+ import "./chunk-PQ6SQG4A-DcYrzB1X.js";
13
+ import { a as l, c as u, i as d, l as f, n as p, t as m, u as h } from "./chunk-KYZI473N-BSgb_E0Q.js";
14
+ import { a as g, i as _, n as v, r as y, t as b } from "./chunk-O4XLMI2P-BMqc3iYa.js";
15
15
  //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/graphlib/json.js
16
16
  function x(e) {
17
17
  var t = {
@@ -99,8 +99,8 @@ var w = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), E = /* @__PURE
99
99
  if (!t || n > 10) {
100
100
  e.debug("Opting out, no graph ");
101
101
  return;
102
- } else e.debug("Opting in, graph ");
103
- t.nodes().forEach(function(n) {
102
+ }
103
+ e.debug("Opting in, graph "), t.nodes().forEach(function(n) {
104
104
  t.children(n).length > 0 && (e.warn("Cluster identified", n, " Replacement id in edges: ", N(n, t, n)), T.set(n, j(n, t)), w.set(n, {
105
105
  id: N(n, t, n),
106
106
  clusterData: t.node(n)
@@ -234,7 +234,11 @@ var w = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), E = /* @__PURE
234
234
  }
235
235
  })), r.edges().forEach(function(t) {
236
236
  let n = r.edge(t);
237
- e.info("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(n), n), n.points.forEach((e) => e.y += D / 2), g(n, v(S, n, w, a, r.node(t.v), r.node(t.w), o));
237
+ e.info("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(n), n), n.points.forEach((e) => e.y += D / 2);
238
+ let i = r.node(t.v);
239
+ var s = r.node(t.w);
240
+ let c = v(S, n, w, a, i, s, o);
241
+ g(n, c);
238
242
  }), r.nodes().forEach(function(t) {
239
243
  let n = r.node(t);
240
244
  e.info(t, n.type, n.diff), n.isGroup && (E = n.diff);
@@ -68,7 +68,6 @@ function c(e) {
68
68
  default:
69
69
  if (!+e[n]) break out;
70
70
  r > 0 && (r = 0);
71
- break;
72
71
  }
73
72
  return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
74
73
  }
@@ -165,9 +164,7 @@ function g(e) {
165
164
  case "^":
166
165
  e = k.slice(0, g = k.length >> 1) + n + e + a + k.slice(g);
167
166
  break;
168
- default:
169
- e = k + n + e + a;
170
- break;
167
+ default: e = k + n + e + a;
171
168
  }
172
169
  return d(e);
173
170
  }
@@ -1,13 +1,13 @@
1
- import { g as e, h as t, p as n } from "./src-CUQ6oOYk.js";
2
- import { r } from "./chunk-GEFDOKGD-BWpC-zoH.js";
3
- import { B as i, C as a, V as o, W as s, _ as c, a as l, c as u, d, v as f, y as p } from "./chunk-7R4GIKGN-QT6IorJ_.js";
4
- import { t as m } from "./ordinal-F3U6aXtP.js";
5
- import { t as h } from "./defaultLocale-bckJcYh1.js";
6
- import { t as g } from "./chunk-HHEYEP7N-Cxc7E4dX.js";
7
- import { t as _ } from "./chunk-4BX2VUAB-J2N81Fpp.js";
8
- import { t as v } from "./mermaid-parser.core-7Wn2L29P.js";
9
- import { t as y } from "./chunk-KX2RTZJC-D5cc4rj6.js";
10
- import { i as b, n as x } from "./chunk-PQ6SQG4A-D3jtNCWN.js";
1
+ import { g as e, h as t, p as n } from "./src-Dynw_Lub.js";
2
+ import { r } from "./chunk-GEFDOKGD-BEzc6NZw.js";
3
+ import { t as i } from "./mermaid-parser.core-C_69nk7j.js";
4
+ import { B as a, C as o, V as s, W as c, _ as l, a as u, c as d, d as f, v as p, y as m } from "./chunk-7R4GIKGN-scch4dXY.js";
5
+ import { t as h } from "./ordinal-CNQzPcrr.js";
6
+ import { t as g } from "./defaultLocale-yzzuPw6P.js";
7
+ import { t as _ } from "./chunk-4BX2VUAB-Rm8-te6i.js";
8
+ import { t as v } from "./chunk-KX2RTZJC-BUWM8pJz.js";
9
+ import { i as y, n as b } from "./chunk-PQ6SQG4A-DcYrzB1X.js";
10
+ import { a as x } from "./mermaid.core-BVGVwWcu.js";
11
11
  //#region ../../node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/count.js
12
12
  function S(e) {
13
13
  var t = 0, n = e.children, r = n && n.length;
@@ -255,7 +255,7 @@ function ie() {
255
255
  //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-E7M64L7V.mjs
256
256
  var Y = class {
257
257
  constructor() {
258
- this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = o, this.getAccTitle = f, this.setDiagramTitle = s, this.getDiagramTitle = a, this.getAccDescription = c, this.setAccDescription = i;
258
+ this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = s, this.getAccTitle = p, this.setDiagramTitle = c, this.getDiagramTitle = o, this.getAccDescription = l, this.setAccDescription = a;
259
259
  }
260
260
  static {
261
261
  t(this, "TreeMapDB");
@@ -264,7 +264,7 @@ var Y = class {
264
264
  return this.nodes;
265
265
  }
266
266
  getConfig() {
267
- let e = d, t = p();
267
+ let e = f, t = m();
268
268
  return r({
269
269
  ...e.treemap,
270
270
  ...t.treemap ?? {}
@@ -286,7 +286,7 @@ var Y = class {
286
286
  textStyles: []
287
287
  }, r = t.replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
288
288
  r && r.forEach((e) => {
289
- x(e) && (n?.textStyles ? n.textStyles.push(e) : n.textStyles = [e]), n?.styles ? n.styles.push(e) : n.styles = [e];
289
+ b(e) && (n?.textStyles ? n.textStyles.push(e) : n.textStyles = [e]), n?.styles ? n.styles.push(e) : n.styles = [e];
290
290
  }), this.classes.set(e, n);
291
291
  }
292
292
  getClasses() {
@@ -296,7 +296,7 @@ var Y = class {
296
296
  return this.classes.get(e)?.styles ?? [];
297
297
  }
298
298
  clear() {
299
- l(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
299
+ u(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
300
300
  }
301
301
  };
302
302
  function X(e) {
@@ -345,7 +345,7 @@ var ae = /* @__PURE__ */ t((e, n) => {
345
345
  parser: { yy: void 0 },
346
346
  parse: /* @__PURE__ */ t(async (t) => {
347
347
  try {
348
- let n = await v("treemap", t);
348
+ let n = await i("treemap", t);
349
349
  e.debug("Treemap AST:", n);
350
350
  let r = Z.parser?.yy;
351
351
  if (!(r instanceof Y)) throw Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");
@@ -356,73 +356,73 @@ var ae = /* @__PURE__ */ t((e, n) => {
356
356
  }, "parse")
357
357
  }, se = 10, Q = 10, $ = 25, ce = {
358
358
  draw: /* @__PURE__ */ t((r, i, a, o) => {
359
- let s = o.db, c = s.getConfig(), l = c.padding ?? se, d = s.getDiagramTitle(), f = s.getRoot(), { themeVariables: _ } = p();
359
+ let s = o.db, c = s.getConfig(), l = c.padding ?? se, u = s.getDiagramTitle(), f = s.getRoot(), { themeVariables: p } = m();
360
360
  if (!f) return;
361
- let v = d ? 30 : 0, x = g(i), S = c.nodeWidth ? c.nodeWidth * Q : 960, C = c.nodeHeight ? c.nodeHeight * Q : 500, w = S, T = C + v;
362
- x.attr("viewBox", `0 0 ${w} ${T}`), u(x, T, w, c.useMaxWidth);
361
+ let _ = u ? 30 : 0, b = x(i), S = c.nodeWidth ? c.nodeWidth * Q : 960, C = c.nodeHeight ? c.nodeHeight * Q : 500, w = S, T = C + _;
362
+ b.attr("viewBox", `0 0 ${w} ${T}`), d(b, T, w, c.useMaxWidth);
363
363
  let E;
364
364
  try {
365
365
  let e = c.valueFormat || ",";
366
- if (e === "$0,0") E = /* @__PURE__ */ t((e) => "$" + h(",")(e), "valueFormat");
366
+ if (e === "$0,0") E = /* @__PURE__ */ t((e) => "$" + g(",")(e), "valueFormat");
367
367
  else if (e.startsWith("$") && e.includes(",")) {
368
368
  let n = /\.\d+/.exec(e), r = n ? n[0] : "";
369
- E = /* @__PURE__ */ t((e) => "$" + h("," + r)(e), "valueFormat");
369
+ E = /* @__PURE__ */ t((e) => "$" + g("," + r)(e), "valueFormat");
370
370
  } else if (e.startsWith("$")) {
371
371
  let n = e.substring(1);
372
- E = /* @__PURE__ */ t((e) => "$" + h(n || "")(e), "valueFormat");
373
- } else E = h(e);
372
+ E = /* @__PURE__ */ t((e) => "$" + g(n || "")(e), "valueFormat");
373
+ } else E = g(e);
374
374
  } catch (t) {
375
- e.error("Error creating format function:", t), E = h(",");
375
+ e.error("Error creating format function:", t), E = g(",");
376
376
  }
377
- let D = m().range([
377
+ let D = h().range([
378
378
  "transparent",
379
- _.cScale0,
380
- _.cScale1,
381
- _.cScale2,
382
- _.cScale3,
383
- _.cScale4,
384
- _.cScale5,
385
- _.cScale6,
386
- _.cScale7,
387
- _.cScale8,
388
- _.cScale9,
389
- _.cScale10,
390
- _.cScale11
391
- ]), O = m().range([
379
+ p.cScale0,
380
+ p.cScale1,
381
+ p.cScale2,
382
+ p.cScale3,
383
+ p.cScale4,
384
+ p.cScale5,
385
+ p.cScale6,
386
+ p.cScale7,
387
+ p.cScale8,
388
+ p.cScale9,
389
+ p.cScale10,
390
+ p.cScale11
391
+ ]), O = h().range([
392
392
  "transparent",
393
- _.cScalePeer0,
394
- _.cScalePeer1,
395
- _.cScalePeer2,
396
- _.cScalePeer3,
397
- _.cScalePeer4,
398
- _.cScalePeer5,
399
- _.cScalePeer6,
400
- _.cScalePeer7,
401
- _.cScalePeer8,
402
- _.cScalePeer9,
403
- _.cScalePeer10,
404
- _.cScalePeer11
405
- ]), k = m().range([
406
- _.cScaleLabel0,
407
- _.cScaleLabel1,
408
- _.cScaleLabel2,
409
- _.cScaleLabel3,
410
- _.cScaleLabel4,
411
- _.cScaleLabel5,
412
- _.cScaleLabel6,
413
- _.cScaleLabel7,
414
- _.cScaleLabel8,
415
- _.cScaleLabel9,
416
- _.cScaleLabel10,
417
- _.cScaleLabel11
393
+ p.cScalePeer0,
394
+ p.cScalePeer1,
395
+ p.cScalePeer2,
396
+ p.cScalePeer3,
397
+ p.cScalePeer4,
398
+ p.cScalePeer5,
399
+ p.cScalePeer6,
400
+ p.cScalePeer7,
401
+ p.cScalePeer8,
402
+ p.cScalePeer9,
403
+ p.cScalePeer10,
404
+ p.cScalePeer11
405
+ ]), k = h().range([
406
+ p.cScaleLabel0,
407
+ p.cScaleLabel1,
408
+ p.cScaleLabel2,
409
+ p.cScaleLabel3,
410
+ p.cScaleLabel4,
411
+ p.cScaleLabel5,
412
+ p.cScaleLabel6,
413
+ p.cScaleLabel7,
414
+ p.cScaleLabel8,
415
+ p.cScaleLabel9,
416
+ p.cScaleLabel10,
417
+ p.cScaleLabel11
418
418
  ]);
419
- d && x.append("text").attr("x", w / 2).attr("y", v / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(d);
420
- let A = x.append("g").attr("transform", `translate(0, ${v})`).attr("class", "treemapContainer"), j = L(f).sum((e) => e.value ?? 0).sort((e, t) => (t.value ?? 0) - (e.value ?? 0)), M = ie().size([S, C]).paddingTop((e) => e.children && e.children.length > 0 ? $ + Q : 0).paddingInner(l).paddingLeft((e) => e.children && e.children.length > 0 ? Q : 0).paddingRight((e) => e.children && e.children.length > 0 ? Q : 0).paddingBottom((e) => e.children && e.children.length > 0 ? Q : 0).round(!0)(j), N = M.descendants().filter((e) => e.children && e.children.length > 0), P = A.selectAll(".treemapSection").data(N).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
419
+ u && b.append("text").attr("x", w / 2).attr("y", _ / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(u);
420
+ let A = b.append("g").attr("transform", `translate(0, ${_})`).attr("class", "treemapContainer"), j = L(f).sum((e) => e.value ?? 0).sort((e, t) => (t.value ?? 0) - (e.value ?? 0)), M = ie().size([S, C]).paddingTop((e) => e.children && e.children.length > 0 ? $ + Q : 0).paddingInner(l).paddingLeft((e) => e.children && e.children.length > 0 ? Q : 0).paddingRight((e) => e.children && e.children.length > 0 ? Q : 0).paddingBottom((e) => e.children && e.children.length > 0 ? Q : 0).round(!0)(j), N = M.descendants().filter((e) => e.children && e.children.length > 0), P = A.selectAll(".treemapSection").data(N).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
421
421
  P.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", $).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", .6).attr("stroke-width", .6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), P.append("clipPath").attr("id", (e, t) => `clip-section-${i}-${t}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", $), P.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, t) => `treemapSection section${t}`).attr("fill", (e) => D(e.data.name)).attr("fill-opacity", .6).attr("stroke", (e) => O(e.data.name)).attr("stroke-width", 2).attr("stroke-opacity", .4).attr("style", (e) => {
422
422
  if (e.depth === 0) return "display: none;";
423
- let t = b({ cssCompiledStyles: e.data.cssCompiledStyles });
423
+ let t = y({ cssCompiledStyles: e.data.cssCompiledStyles });
424
424
  return t.nodeStyles + ";" + t.borderStyles.join(";");
425
- }), P.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", $ / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("style", (e) => e.depth === 0 ? "display: none;" : "dominant-baseline: middle; font-size: 12px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + b({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).each(function(e) {
425
+ }), P.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", $ / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("style", (e) => e.depth === 0 ? "display: none;" : "dominant-baseline: middle; font-size: 12px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + y({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).each(function(e) {
426
426
  if (e.depth === 0) return;
427
427
  let t = n(this), r = e.data.name;
428
428
  t.text(r);
@@ -439,9 +439,9 @@ var ae = /* @__PURE__ */ t((e, n) => {
439
439
  if (t.text(e + "..."), s.getComputedTextLength() <= o) break;
440
440
  }
441
441
  }
442
- }), c.showValues !== !1 && P.append("text").attr("class", "treemapSectionValue").attr("x", (e) => e.x1 - e.x0 - 10).attr("y", $ / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((e) => e.value ? E(e.value) : "").attr("font-style", "italic").attr("style", (e) => e.depth === 0 ? "display: none;" : "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + b({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:"));
442
+ }), c.showValues !== !1 && P.append("text").attr("class", "treemapSectionValue").attr("x", (e) => e.x1 - e.x0 - 10).attr("y", $ / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((e) => e.value ? E(e.value) : "").attr("font-style", "italic").attr("style", (e) => e.depth === 0 ? "display: none;" : "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + y({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:"));
443
443
  let F = M.leaves(), I = A.selectAll(".treemapLeafGroup").data(F).enter().append("g").attr("class", (e, t) => `treemapNode treemapLeafGroup leaf${t}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
444
- I.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? D(e.parent.data.name) : D(e.data.name)).attr("style", (e) => b({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", .3).attr("stroke", (e) => e.parent ? D(e.parent.data.name) : D(e.data.name)).attr("stroke-width", 3), I.append("clipPath").attr("id", (e, t) => `clip-${i}-${t}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), I.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => "text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:" + k(e.data.name) + ";" + b({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, t) => `url(#clip-${i}-${t})`).text((e) => e.data.name).each(function(e) {
444
+ I.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? D(e.parent.data.name) : D(e.data.name)).attr("style", (e) => y({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", .3).attr("stroke", (e) => e.parent ? D(e.parent.data.name) : D(e.data.name)).attr("stroke-width", 3), I.append("clipPath").attr("id", (e, t) => `clip-${i}-${t}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), I.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => "text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:" + k(e.data.name) + ";" + y({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, t) => `url(#clip-${i}-${t})`).text((e) => e.data.name).each(function(e) {
445
445
  let t = n(this), r = e.x1 - e.x0, i = e.y1 - e.y0, a = t.node(), o = r - 8, s = i - 8;
446
446
  if (o < 10 || s < 10) {
447
447
  t.style("display", "none");
@@ -454,7 +454,7 @@ var ae = /* @__PURE__ */ t((e, n) => {
454
454
  t.style("font-size", `${c}px`), (a.getComputedTextLength() > o || c < 8 || s < c) && t.style("display", "none");
455
455
  }), c.showValues !== !1 && I.append("text").attr("class", "treemapValue").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", function(e) {
456
456
  return (e.y1 - e.y0) / 2;
457
- }).attr("style", (e) => "text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:" + k(e.data.name) + ";" + b({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, t) => `url(#clip-${i}-${t})`).text((e) => e.value ? E(e.value) : "").each(function(e) {
457
+ }).attr("style", (e) => "text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:" + k(e.data.name) + ";" + y({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, t) => `url(#clip-${i}-${t})`).text((e) => e.value ? E(e.value) : "").each(function(e) {
458
458
  let t = n(this), r = this.parentNode;
459
459
  if (!r) {
460
460
  t.style("display", "none");
@@ -471,7 +471,9 @@ var ae = /* @__PURE__ */ t((e, n) => {
471
471
  t.attr("y", s);
472
472
  let c = e.x1 - e.x0, l = e.y1 - e.y0 - 4, u = c - 8;
473
473
  t.node().getComputedTextLength() > u || s + o > l || o < 6 ? t.style("display", "none") : t.style("display", null);
474
- }), y(x, c.diagramPadding ?? 8, "flowchart", c?.useMaxWidth || !1);
474
+ });
475
+ let R = c.diagramPadding ?? 8;
476
+ v(b, R, "flowchart", c?.useMaxWidth || !1);
475
477
  }, "draw"),
476
478
  getClasses: /* @__PURE__ */ t(function(e, t) {
477
479
  return t.db.getClasses();
@@ -1,9 +1,9 @@
1
- import { g as e, h as t } from "./src-CUQ6oOYk.js";
2
- import { r as n } from "./chunk-GEFDOKGD-BWpC-zoH.js";
3
- import { B as r, C as i, E as a, V as o, W as s, _ as c, a as l, c as u, d, v as f, y as p } from "./chunk-7R4GIKGN-QT6IorJ_.js";
4
- import { t as m } from "./chunk-HHEYEP7N-Cxc7E4dX.js";
5
- import { t as h } from "./chunk-4BX2VUAB-J2N81Fpp.js";
6
- import { t as g } from "./mermaid-parser.core-7Wn2L29P.js";
1
+ import { g as e, h as t } from "./src-Dynw_Lub.js";
2
+ import { r as n } from "./chunk-GEFDOKGD-BEzc6NZw.js";
3
+ import { t as r } from "./mermaid-parser.core-C_69nk7j.js";
4
+ import { B as i, C as a, E as o, V as s, W as c, _ as l, a as u, c as d, d as f, v as p, y as m } from "./chunk-7R4GIKGN-scch4dXY.js";
5
+ import { t as h } from "./chunk-4BX2VUAB-Rm8-te6i.js";
6
+ import { a as g } from "./mermaid.core-BVGVwWcu.js";
7
7
  //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-IFDJBPK2.mjs
8
8
  var _ = {
9
9
  showLegend: !0,
@@ -15,9 +15,9 @@ var _ = {
15
15
  axes: [],
16
16
  curves: [],
17
17
  options: _
18
- }, y = structuredClone(v), b = d.radar, x = /* @__PURE__ */ t(() => n({
18
+ }, y = structuredClone(v), b = f.radar, x = /* @__PURE__ */ t(() => n({
19
19
  ...b,
20
- ...p().radar
20
+ ...m().radar
21
21
  }), "getConfig"), S = /* @__PURE__ */ t(() => y.axes, "getAxes"), C = /* @__PURE__ */ t(() => y.curves, "getCurves"), w = /* @__PURE__ */ t(() => y.options, "getOptions"), T = /* @__PURE__ */ t((e) => {
22
22
  y.axes = e.map((e) => ({
23
23
  name: e.name,
@@ -56,30 +56,30 @@ var _ = {
56
56
  }, "setOptions"),
57
57
  getConfig: x,
58
58
  clear: /* @__PURE__ */ t(() => {
59
- l(), y = structuredClone(v);
59
+ u(), y = structuredClone(v);
60
60
  }, "clear"),
61
- setAccTitle: o,
62
- getAccTitle: f,
63
- setDiagramTitle: s,
64
- getDiagramTitle: i,
65
- getAccDescription: c,
66
- setAccDescription: r
61
+ setAccTitle: s,
62
+ getAccTitle: p,
63
+ setDiagramTitle: c,
64
+ getDiagramTitle: a,
65
+ getAccDescription: l,
66
+ setAccDescription: i
67
67
  }, k = /* @__PURE__ */ t((e) => {
68
68
  h(e, O);
69
69
  let { axes: t, curves: n, options: r } = e;
70
70
  O.setAxes(t), O.setCurves(n), O.setOptions(r);
71
71
  }, "populate"), A = { parse: /* @__PURE__ */ t(async (t) => {
72
- let n = await g("radar", t);
72
+ let n = await r("radar", t);
73
73
  e.debug(n), k(n);
74
74
  }, "parse") }, j = /* @__PURE__ */ t((e, t, n, r) => {
75
- let i = r.db, a = i.getAxes(), o = i.getCurves(), s = i.getOptions(), c = i.getConfig(), l = i.getDiagramTitle(), u = M(m(t), c), d = s.max ?? Math.max(...o.map((e) => Math.max(...e.entries))), f = s.min, p = Math.min(c.width, c.height) / 2;
75
+ let i = r.db, a = i.getAxes(), o = i.getCurves(), s = i.getOptions(), c = i.getConfig(), l = i.getDiagramTitle(), u = M(g(t), c), d = s.max ?? Math.max(...o.map((e) => Math.max(...e.entries))), f = s.min, p = Math.min(c.width, c.height) / 2;
76
76
  N(u, a, p, s.ticks, s.graticule), P(u, a, p, c), F(u, a, o, f, d, s.graticule, c), R(u, o, s.showLegend, c), u.append("text").attr("class", "radarTitle").text(l).attr("x", 0).attr("y", -c.height / 2 - c.marginTop);
77
77
  }, "draw"), M = /* @__PURE__ */ t((e, t) => {
78
78
  let n = t.width + t.marginLeft + t.marginRight, r = t.height + t.marginTop + t.marginBottom, i = {
79
79
  x: t.marginLeft + t.width / 2,
80
80
  y: t.marginTop + t.height / 2
81
81
  };
82
- return u(e, r, n, t.useMaxWidth ?? !0), e.attr("viewBox", `0 0 ${n} ${r}`), e.append("g").attr("transform", `translate(${i.x}, ${i.y})`);
82
+ return d(e, r, n, t.useMaxWidth ?? !0), e.attr("viewBox", `0 0 ${n} ${r}`), e.append("g").attr("transform", `translate(${i.x}, ${i.y})`);
83
83
  }, "drawFrame"), N = /* @__PURE__ */ t((e, t, n, r, i) => {
84
84
  if (i === "circle") for (let t = 0; t < r; t++) {
85
85
  let i = n * (t + 1) / r;
@@ -166,10 +166,10 @@ var z = { draw: j }, B = /* @__PURE__ */ t((e, t) => {
166
166
  }
167
167
  return n;
168
168
  }, "genIndexStyles"), V = /* @__PURE__ */ t((e) => {
169
- let t = n(a(), p().themeVariables);
169
+ let t = o(), r = m(), i = n(t, r.themeVariables);
170
170
  return {
171
- themeVariables: t,
172
- radarOptions: n(t.radar, e)
171
+ themeVariables: i,
172
+ radarOptions: n(i.radar, e)
173
173
  };
174
174
  }, "buildRadarStyleOptions"), H = {
175
175
  parser: A,
@@ -1,13 +1,13 @@
1
- import { g as e, h as t } from "./src-CUQ6oOYk.js";
2
- import { r as n } from "./chunk-GEFDOKGD-BWpC-zoH.js";
3
- import { B as r, C as i, V as a, W as o, _ as s, a as c, c as l, d as u, v as d, y as f } from "./chunk-7R4GIKGN-QT6IorJ_.js";
4
- import { t as p } from "./chunk-HHEYEP7N-Cxc7E4dX.js";
5
- import { t as m } from "./chunk-4BX2VUAB-J2N81Fpp.js";
6
- import { t as h } from "./mermaid-parser.core-7Wn2L29P.js";
1
+ import { g as e, h as t } from "./src-Dynw_Lub.js";
2
+ import { r as n } from "./chunk-GEFDOKGD-BEzc6NZw.js";
3
+ import { t as r } from "./mermaid-parser.core-C_69nk7j.js";
4
+ import { B as i, C as a, V as o, W as s, _ as c, a as l, c as u, d, v as f, y as p } from "./chunk-7R4GIKGN-scch4dXY.js";
5
+ import { t as m } from "./chunk-4BX2VUAB-Rm8-te6i.js";
6
+ import { a as h } from "./mermaid.core-BVGVwWcu.js";
7
7
  //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-P4PSJMXO.mjs
8
- var g = u.packet, _ = class {
8
+ var g = d.packet, _ = class {
9
9
  constructor() {
10
- this.packet = [], this.setAccTitle = a, this.getAccTitle = d, this.setDiagramTitle = o, this.getDiagramTitle = i, this.getAccDescription = s, this.setAccDescription = r;
10
+ this.packet = [], this.setAccTitle = o, this.getAccTitle = f, this.setDiagramTitle = s, this.getDiagramTitle = a, this.getAccDescription = c, this.setAccDescription = i;
11
11
  }
12
12
  static {
13
13
  t(this, "PacketDB");
@@ -15,7 +15,7 @@ var g = u.packet, _ = class {
15
15
  getConfig() {
16
16
  let e = n({
17
17
  ...g,
18
- ...f().packet
18
+ ...p().packet
19
19
  });
20
20
  return e.showBits && (e.paddingY += 10), e;
21
21
  }
@@ -26,7 +26,7 @@ var g = u.packet, _ = class {
26
26
  e.length > 0 && this.packet.push(e);
27
27
  }
28
28
  clear() {
29
- c(), this.packet = [];
29
+ l(), this.packet = [];
30
30
  }
31
31
  }, v = 1e4, y = /* @__PURE__ */ t((t, n) => {
32
32
  m(t, n);
@@ -67,15 +67,15 @@ var g = u.packet, _ = class {
67
67
  }, "getNextFittingBlock"), x = {
68
68
  parser: { yy: void 0 },
69
69
  parse: /* @__PURE__ */ t(async (t) => {
70
- let n = await h("packet", t), r = x.parser?.yy;
71
- if (!(r instanceof _)) throw Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");
72
- e.debug(n), y(n, r);
70
+ let n = await r("packet", t), i = x.parser?.yy;
71
+ if (!(i instanceof _)) throw Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");
72
+ e.debug(n), y(n, i);
73
73
  }, "parse")
74
74
  }, S = /* @__PURE__ */ t((e, t, n, r) => {
75
- let i = r.db, a = i.getConfig(), { rowHeight: o, paddingY: s, bitWidth: c, bitsPerRow: u } = a, d = i.getPacket(), f = i.getDiagramTitle(), m = o + s, h = m * (d.length + 1) - (f ? 0 : o), g = c * u + 2, _ = p(t);
76
- _.attr("viewBox", `0 0 ${g} ${h}`), l(_, h, g, a.useMaxWidth);
75
+ let i = r.db, a = i.getConfig(), { rowHeight: o, paddingY: s, bitWidth: c, bitsPerRow: l } = a, d = i.getPacket(), f = i.getDiagramTitle(), p = o + s, m = p * (d.length + 1) - (f ? 0 : o), g = c * l + 2, _ = h(t);
76
+ _.attr("viewBox", `0 0 ${g} ${m}`), u(_, m, g, a.useMaxWidth);
77
77
  for (let [e, t] of d.entries()) C(_, t, e, a);
78
- _.append("text").text(f).attr("x", g / 2).attr("y", h - m / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle");
78
+ _.append("text").text(f).attr("x", g / 2).attr("y", m - p / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle");
79
79
  }, "draw"), C = /* @__PURE__ */ t((e, t, n, { rowHeight: r, paddingX: i, paddingY: a, bitWidth: o, bitsPerRow: s, showBits: c }) => {
80
80
  let l = e.append("g"), u = n * (r + a) + a;
81
81
  for (let e of t) {
@@ -1,4 +1,4 @@
1
- import { t as e } from "./chunk-WQLz0Won.js";
1
+ import { t as e } from "./rolldown-runtime-CEY2VRuR.js";
2
2
  //#region ../../node_modules/.pnpm/@braintree+sanitize-url@7.1.2/node_modules/@braintree/sanitize-url/dist/constants.js
3
3
  var t = /* @__PURE__ */ e(((e) => {
4
4
  Object.defineProperty(e, "__esModule", { value: !0 }), e.BLANK_URL = e.relativeFirstCharacters = e.whitespaceEscapeCharsRegex = e.urlSchemeRegex = e.ctrlCharactersRegex = e.htmlCtrlEntityRegex = e.htmlEntitiesRegex = e.invalidProtocolRegex = void 0, e.invalidProtocolRegex = /^([^\w]*)(javascript|data|vbscript)/im, e.htmlEntitiesRegex = /&#(\w+)(^\w|;)?/g, e.htmlCtrlEntityRegex = /&(newline|tab);/gi, e.ctrlCharactersRegex = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim, e.urlSchemeRegex = /^.+(:|&colon;)/gim, e.whitespaceEscapeCharsRegex = /(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g, e.relativeFirstCharacters = [".", "/"], e.BLANK_URL = "about:blank";