@aiquants/markdown 10.0.0 → 11.0.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 (138) hide show
  1. package/README.md +157 -51
  2. package/dist/{abnfDiagram-VRR7QNED-eurBMDzU.cjs → abnfDiagram-VRR7QNED-CGbpxxTZ.cjs} +1 -1
  3. package/dist/{abnfDiagram-VRR7QNED-CYA0Qdic.js → abnfDiagram-VRR7QNED-Cgd_ClOa.js} +3 -3
  4. package/dist/{arc-DE0KP7Dq.cjs → arc-83PgiFkI.cjs} +1 -1
  5. package/dist/{arc-BEWKpekE.js → arc-B6YeA1yq.js} +20 -20
  6. package/dist/{architectureDiagram-ZJ3FMSHR-CGhHOaMo.cjs → architectureDiagram-ZJ3FMSHR-CbKT84Qu.cjs} +1 -1
  7. package/dist/{architectureDiagram-ZJ3FMSHR-CHGNHywO.js → architectureDiagram-ZJ3FMSHR-DUyxO_OT.js} +2 -2
  8. package/dist/{blockDiagram-677ZJIJ3-DzwYMqTi.js → blockDiagram-677ZJIJ3-BGRgY0Jq.js} +3 -3
  9. package/dist/{blockDiagram-677ZJIJ3-BaGVzolE.cjs → blockDiagram-677ZJIJ3-KhRxVKIG.cjs} +1 -1
  10. package/dist/{c4Diagram-LMCZKHZV-u10-6vWB.cjs → c4Diagram-LMCZKHZV-DKwEMXl5.cjs} +1 -1
  11. package/dist/{c4Diagram-LMCZKHZV-DN0oBwXJ.js → c4Diagram-LMCZKHZV-DNyEsvRI.js} +2 -2
  12. package/dist/{channel-DNeAktxT.cjs → channel-BwAxLUKJ.cjs} +1 -1
  13. package/dist/{channel-jBqxYlqx.js → channel-CPuos4DK.js} +1 -1
  14. package/dist/{chunk-2Q5K7J3B-CtqZCJKT.js → chunk-2Q5K7J3B-CwNIIf2z.js} +1 -1
  15. package/dist/{chunk-2Q5K7J3B-D1zCIQMT.cjs → chunk-2Q5K7J3B-ueL9YXgS.cjs} +1 -1
  16. package/dist/{chunk-32BRIVSS-Cana8p5k.js → chunk-32BRIVSS-4GH9FvG2.js} +1 -1
  17. package/dist/{chunk-32BRIVSS-DOd1kGZA.cjs → chunk-32BRIVSS-CyqPFuo9.cjs} +1 -1
  18. package/dist/{chunk-5VM5RSS4-DVLwboqR.cjs → chunk-5VM5RSS4-B9y1bN8p.cjs} +1 -1
  19. package/dist/{chunk-5VM5RSS4-CQ1lkhhT.js → chunk-5VM5RSS4-C5Js9nxl.js} +1 -1
  20. package/dist/{chunk-EX3LRPZG-Cb1jrGLX.js → chunk-EX3LRPZG-BZcvojz_.js} +4 -4
  21. package/dist/{chunk-EX3LRPZG-yCnsFHxB.cjs → chunk-EX3LRPZG-CmfR2Me0.cjs} +1 -1
  22. package/dist/{chunk-JWPE2WC7-BZ9nUeyl.cjs → chunk-JWPE2WC7-C-ypCY3I.cjs} +1 -1
  23. package/dist/{chunk-JWPE2WC7-Bkx-q_31.js → chunk-JWPE2WC7-CtaWl_b_.js} +1 -1
  24. package/dist/{chunk-MOJQB5TN-DDpWrhot.js → chunk-MOJQB5TN-01G2RIVR.js} +10 -10
  25. package/dist/{chunk-MOJQB5TN-DF1lwGu5.cjs → chunk-MOJQB5TN-BwSAskm8.cjs} +1 -1
  26. package/dist/{chunk-PUDLZKDR-BTWY1yiQ.js → chunk-PUDLZKDR-CnpC3xcz.js} +6 -6
  27. package/dist/{chunk-PUDLZKDR-BNRDFRXe.cjs → chunk-PUDLZKDR-D2o-M0Rj.cjs} +1 -1
  28. package/dist/{chunk-RYQCIY6F-B7L5EllI.js → chunk-RYQCIY6F-BJxwuEX_.js} +12 -12
  29. package/dist/{chunk-RYQCIY6F-B1obSV-6.cjs → chunk-RYQCIY6F-sv402gFf.cjs} +1 -1
  30. package/dist/{chunk-V7JOEXUC-Bm_JiVZ3.js → chunk-V7JOEXUC-CAVk2pKT.js} +15 -15
  31. package/dist/{chunk-V7JOEXUC-CvWipsVi.cjs → chunk-V7JOEXUC-gP3tRqcD.cjs} +1 -1
  32. package/dist/{chunk-VR4S4FIN-4KrGYB-C.js → chunk-VR4S4FIN-BVOrMLGd.js} +3 -3
  33. package/dist/{chunk-VR4S4FIN-hwPR--n9.cjs → chunk-VR4S4FIN-N9b38pB9.cjs} +1 -1
  34. package/dist/{chunk-XXDRQBXY-BWyzGhER.js → chunk-XXDRQBXY-QR32cWjB.js} +1 -1
  35. package/dist/{chunk-XXDRQBXY-8mWP2-nt.cjs → chunk-XXDRQBXY-rk2BF2-a.cjs} +1 -1
  36. package/dist/{classDiagram-OUVF2IWQ-FSF9UhMj.cjs → classDiagram-OUVF2IWQ-CiKDmY89.cjs} +1 -1
  37. package/dist/{classDiagram-v2-EOCWNBFH-CJsS9hMZ.js → classDiagram-OUVF2IWQ-DWLi6mnu.js} +2 -2
  38. package/dist/{classDiagram-v2-EOCWNBFH-FSF9UhMj.cjs → classDiagram-v2-EOCWNBFH-CiKDmY89.cjs} +1 -1
  39. package/dist/{classDiagram-OUVF2IWQ-CJsS9hMZ.js → classDiagram-v2-EOCWNBFH-DWLi6mnu.js} +2 -2
  40. package/dist/code-blocks-Bax5Xik7.cjs +4 -0
  41. package/dist/code-blocks-bgwDIVp1.js +267 -0
  42. package/dist/code-blocks.cjs +1 -1
  43. package/dist/code-blocks.d.ts +15 -1
  44. package/dist/code-blocks.js +19 -34
  45. package/dist/components/SpreadsheetBlock.d.ts +7 -2
  46. package/dist/components/SpreadsheetToolbar.d.ts +20 -2
  47. package/dist/components/blockKeys.d.ts +14 -0
  48. package/dist/components/controlStyles.d.ts +2 -1
  49. package/dist/components/spreadsheetClipboard.d.ts +1 -1
  50. package/dist/components/spreadsheetLabels.d.ts +13 -0
  51. package/dist/components/spreadsheetModel.d.ts +13 -8
  52. package/dist/components/toolbar.d.ts +25 -0
  53. package/dist/components/viewerLabels.d.ts +5 -2
  54. package/dist/converter.wasm +0 -0
  55. package/dist/{cose-bilkent-JH36ORCC-DWibrsnW.cjs → cose-bilkent-JH36ORCC-DLL-HoNB.cjs} +1 -1
  56. package/dist/{cose-bilkent-JH36ORCC-BcC-Wwam.js → cose-bilkent-JH36ORCC-Ndnjy2V_.js} +5 -5
  57. package/dist/{cynefinDiagram-TSTJHNR4-Cp1h2-e6.cjs → cynefinDiagram-TSTJHNR4-BLc8lpj_.cjs} +1 -1
  58. package/dist/{cynefinDiagram-TSTJHNR4-Cg1ddgeH.js → cynefinDiagram-TSTJHNR4-CzQeK-ei.js} +47 -47
  59. package/dist/{dagre-VKFMJZFB-BUh2zhjI.js → dagre-VKFMJZFB-BDWsqPrH.js} +20 -20
  60. package/dist/{dagre-VKFMJZFB-Czh6c6hy.cjs → dagre-VKFMJZFB-CpOLJSPF.cjs} +1 -1
  61. package/dist/{diagram-FQU43EPY-D3B1dqU1.cjs → diagram-FQU43EPY-BYwso-90.cjs} +1 -1
  62. package/dist/{diagram-FQU43EPY-BtWgv1di.js → diagram-FQU43EPY-DomkDZpC.js} +2 -2
  63. package/dist/{diagram-G47NLZAW-BzoAXzcD.js → diagram-G47NLZAW-B88unx9N.js} +38 -38
  64. package/dist/{diagram-G47NLZAW-1CaqVF7V.cjs → diagram-G47NLZAW-CJvutqnO.cjs} +1 -1
  65. package/dist/{diagram-NH7WQ7WH-SP-bC7ec.cjs → diagram-NH7WQ7WH-B7_b2WAg.cjs} +1 -1
  66. package/dist/{diagram-NH7WQ7WH-DHYXjMeR.js → diagram-NH7WQ7WH-c9X1ONTP.js} +20 -20
  67. package/dist/{diagram-OA4YK3LP-Dpb_X5Hh.js → diagram-OA4YK3LP-ClopZbjk.js} +58 -58
  68. package/dist/{diagram-OA4YK3LP-GQmeRf1O.cjs → diagram-OA4YK3LP-Dgf5KLVb.cjs} +1 -1
  69. package/dist/{diagram-WEI45ONY-Dtt-2TEo.cjs → diagram-WEI45ONY-CFk-zdkR.cjs} +1 -1
  70. package/dist/{diagram-WEI45ONY-21kWbraV.js → diagram-WEI45ONY-Ps4TgzF1.js} +10 -10
  71. package/dist/{ebnfDiagram-CCIWWBDH-yz62J_nS.cjs → ebnfDiagram-CCIWWBDH-CQCWsevA.cjs} +1 -1
  72. package/dist/{ebnfDiagram-CCIWWBDH-DAA7ae1D.js → ebnfDiagram-CCIWWBDH-Cj_QjqN9.js} +5 -5
  73. package/dist/{erDiagram-Q63AITRT-BMkAjnh7.js → erDiagram-Q63AITRT-B8HuBKwU.js} +9 -9
  74. package/dist/{erDiagram-Q63AITRT-D8yJBZGU.cjs → erDiagram-Q63AITRT-BzYknHNb.cjs} +1 -1
  75. package/dist/extractHeadings-CbjPphbm.cjs +315 -0
  76. package/dist/{extractHeadings-BB6ZLvWu.js → extractHeadings-Crd19E9z.js} +8430 -8099
  77. package/dist/fencedBlockLines.d.ts +36 -0
  78. package/dist/flowDiagram-23GEKE2U-BIiIKtPl.cjs +1 -0
  79. package/dist/flowDiagram-23GEKE2U-CL3q35kI.js +7 -0
  80. package/dist/{ganttDiagram-NO4QXBWP-NrdWH7Dz.cjs → ganttDiagram-NO4QXBWP-DmOJTDey.cjs} +1 -1
  81. package/dist/{ganttDiagram-NO4QXBWP-BGIvTWCj.js → ganttDiagram-NO4QXBWP-ssf7C_OK.js} +2 -2
  82. package/dist/{gitGraphDiagram-IHSO6WYX-zLZeezJ0.cjs → gitGraphDiagram-IHSO6WYX-BXw0xce8.cjs} +1 -1
  83. package/dist/{gitGraphDiagram-IHSO6WYX-FeuQFvfT.js → gitGraphDiagram-IHSO6WYX-DO-7gHh9.js} +10 -10
  84. package/dist/index.cjs +1 -1
  85. package/dist/index.client.cjs +1 -1
  86. package/dist/index.client.d.ts +2 -2
  87. package/dist/index.client.js +37 -35
  88. package/dist/index.js +37 -35
  89. package/dist/{infoDiagram-FWYZ7A6U-_dgzOtXg.cjs → infoDiagram-FWYZ7A6U-C_qI_jda.cjs} +1 -1
  90. package/dist/{infoDiagram-FWYZ7A6U-OSG1m3oM.js → infoDiagram-FWYZ7A6U-D9CHdCHO.js} +1 -1
  91. package/dist/{ishikawaDiagram-FXEZZL3T-CzWd0QMP.js → ishikawaDiagram-FXEZZL3T-B-P0YpVr.js} +25 -25
  92. package/dist/{ishikawaDiagram-FXEZZL3T-DIGB3OT_.cjs → ishikawaDiagram-FXEZZL3T-BsAmXBFz.cjs} +1 -1
  93. package/dist/{journeyDiagram-5HDEW3XC-DkxVricX.cjs → journeyDiagram-5HDEW3XC-3vpGGLSR.cjs} +1 -1
  94. package/dist/{journeyDiagram-5HDEW3XC-BE0OaqTn.js → journeyDiagram-5HDEW3XC-BReIo-v3.js} +4 -4
  95. package/dist/{kanban-definition-HUTT4EX6-XxRDkcBx.cjs → kanban-definition-HUTT4EX6-CgVNbmAG.cjs} +1 -1
  96. package/dist/{kanban-definition-HUTT4EX6-BDfhy8eh.js → kanban-definition-HUTT4EX6-DKqZmd21.js} +52 -52
  97. package/dist/{linear-O4EBzkc8.js → linear-BZclxiW5.js} +5 -5
  98. package/dist/{linear-cHCVVFP4.cjs → linear-C6Pl8W7F.cjs} +1 -1
  99. package/dist/{mindmap-definition-LN4V7U3C-b3-6eyyt.cjs → mindmap-definition-LN4V7U3C-CRGWlSrN.cjs} +1 -1
  100. package/dist/{mindmap-definition-LN4V7U3C-D0hxpmbu.js → mindmap-definition-LN4V7U3C-suiDe0CR.js} +16 -16
  101. package/dist/{pegDiagram-2B236MQR-RJV3Czqa.js → pegDiagram-2B236MQR-CNg0sJ5j.js} +3 -3
  102. package/dist/{pegDiagram-2B236MQR-BK7uPEAB.cjs → pegDiagram-2B236MQR-DXTBiaER.cjs} +1 -1
  103. package/dist/{pieDiagram-ENE6RG2P-DZfsigd-.js → pieDiagram-ENE6RG2P-BjxQd0El.js} +51 -51
  104. package/dist/{pieDiagram-ENE6RG2P-C_36fpnW.cjs → pieDiagram-ENE6RG2P-Pm5hFcS9.cjs} +1 -1
  105. package/dist/{quadrantDiagram-ABIIQ3AL-CSp5iqoU.js → quadrantDiagram-ABIIQ3AL-CbhdFi8L.js} +43 -43
  106. package/dist/{quadrantDiagram-ABIIQ3AL-vgf1WShL.cjs → quadrantDiagram-ABIIQ3AL-Cn9jg0Nj.cjs} +1 -1
  107. package/dist/{railroadDiagram-RFXS5EU6-BXR0a-Cu.cjs → railroadDiagram-RFXS5EU6-BsgUwAcz.cjs} +1 -1
  108. package/dist/{railroadDiagram-RFXS5EU6-DAsVQQFP.js → railroadDiagram-RFXS5EU6-DQZDzmuH.js} +7 -7
  109. package/dist/{requirementDiagram-TGXJPOKE-DwIrkBKf.js → requirementDiagram-TGXJPOKE-B6qkEWAq.js} +18 -18
  110. package/dist/{requirementDiagram-TGXJPOKE-CRhfuc9R.cjs → requirementDiagram-TGXJPOKE-Bb7-fVzh.cjs} +1 -1
  111. package/dist/{sankeyDiagram-HTMAVEWB-C78HhAJS.js → sankeyDiagram-HTMAVEWB-B0lfTQm7.js} +1 -1
  112. package/dist/{sankeyDiagram-HTMAVEWB-BMWqqmDK.cjs → sankeyDiagram-HTMAVEWB-D_i8qvPc.cjs} +1 -1
  113. package/dist/{sequenceDiagram-DBY2YBRQ-Dx5x59tf.cjs → sequenceDiagram-DBY2YBRQ-Cis-Rynd.cjs} +1 -1
  114. package/dist/{sequenceDiagram-DBY2YBRQ-CnzaQ_rF.js → sequenceDiagram-DBY2YBRQ-hK_KsgkL.js} +3 -3
  115. package/dist/{sizeCapture-X5ZJPWSS-C_iDBgb-.cjs → sizeCapture-X5ZJPWSS-63py1Km1.cjs} +1 -1
  116. package/dist/{sizeCapture-X5ZJPWSS-cE-TP8Rj.js → sizeCapture-X5ZJPWSS-CmMBsApW.js} +1 -1
  117. package/dist/{stateDiagram-2N3HPSRC-CGTBi2mx.cjs → stateDiagram-2N3HPSRC-DunX61Hp.cjs} +1 -1
  118. package/dist/{stateDiagram-2N3HPSRC-BCeQQ1y6.js → stateDiagram-2N3HPSRC-iHHDXYiT.js} +10 -10
  119. package/dist/{stateDiagram-v2-6OUMAXLB-B_7vWqQA.js → stateDiagram-v2-6OUMAXLB-BGf7WS-h.js} +2 -2
  120. package/dist/{stateDiagram-v2-6OUMAXLB-CxTcyveK.cjs → stateDiagram-v2-6OUMAXLB-Cm5Vjes-.cjs} +1 -1
  121. package/dist/styles/markdown.css +1 -1
  122. package/dist/styles/markdown.standalone.css +1 -1
  123. package/dist/{swimlanes-5IMT3BWC-DoVEQSsm.cjs → swimlanes-5IMT3BWC-BJ1u6dlg.cjs} +1 -1
  124. package/dist/{swimlanes-5IMT3BWC-BGZ4AqRG.js → swimlanes-5IMT3BWC-Dlxdol7t.js} +313 -313
  125. package/dist/{swimlanesDiagram-G3AALYLV-CQG6O6Ws.cjs → swimlanesDiagram-G3AALYLV-BJUZ0yd-.cjs} +1 -1
  126. package/dist/{swimlanesDiagram-G3AALYLV-D1qctaY1.js → swimlanesDiagram-G3AALYLV-DhG6vFeB.js} +2 -2
  127. package/dist/{timeline-definition-FHXFAJF6-D7mCctKM.js → timeline-definition-FHXFAJF6-BpNpgP_f.js} +108 -108
  128. package/dist/{timeline-definition-FHXFAJF6-DfJV7kEg.cjs → timeline-definition-FHXFAJF6-CC5nYPoS.cjs} +1 -1
  129. package/dist/{vennDiagram-L72KCM5P-JBAs3wKP.cjs → vennDiagram-L72KCM5P-B3PoRUuk.cjs} +1 -1
  130. package/dist/{vennDiagram-L72KCM5P-DpoGG-0p.js → vennDiagram-L72KCM5P-BUO57UaZ.js} +101 -101
  131. package/dist/{wardleyDiagram-EHGQE667-QdkaDYYo.cjs → wardleyDiagram-EHGQE667-BF8VCIge.cjs} +1 -1
  132. package/dist/{wardleyDiagram-EHGQE667-Dy-eaRgv.js → wardleyDiagram-EHGQE667-Bp6gS0HT.js} +85 -85
  133. package/dist/{xychartDiagram-FW5EYKEG-BRirBzDB.cjs → xychartDiagram-FW5EYKEG-C15kZN0r.cjs} +1 -1
  134. package/dist/{xychartDiagram-FW5EYKEG-DosIK9IK.js → xychartDiagram-FW5EYKEG-CBQgXLz_.js} +40 -40
  135. package/package.json +10 -10
  136. package/dist/extractHeadings-GvfJwNxO.cjs +0 -314
  137. package/dist/flowDiagram-23GEKE2U-BZcpYPK4.js +0 -7
  138. package/dist/flowDiagram-23GEKE2U-CeCAObAc.cjs +0 -1
@@ -1,9 +1,9 @@
1
- import { p as ge } from "./chunk-JWPE2WC7-Bkx-q_31.js";
2
- import { _ as w, ao as ye, ai as ae, ak as ee, an as Se, V as ve, U as te, bU as B, R as U, O as xe, K as be, a8 as we, a9 as Ce, J as Te, G as Le, al as $e, bV as Ae, ae as Fe } from "./extractHeadings-BB6ZLvWu.js";
3
- import { s as Ne } from "./chunk-VR4S4FIN-4KrGYB-C.js";
1
+ import { p as ge } from "./chunk-JWPE2WC7-CtaWl_b_.js";
2
+ import { _ as w, an as ye, ah as ae, aj as ee, am as Se, U as ve, R as te, bT as B, Q as U, K as xe, J as be, a7 as we, a8 as Ce, G as Te, A as Le, ak as $e, bU as Ae, ad as Fe } from "./extractHeadings-Crd19E9z.js";
3
+ import { s as Ne } from "./chunk-VR4S4FIN-BVOrMLGd.js";
4
4
  import { p as Me } from "./cynefin-VYW2F7L2-Bkk-F_Js.js";
5
5
  import { b as O } from "./defaultLocale-BgPVtth8.js";
6
- import { o as Q } from "./ordinal-B6-f3MAq.js";
6
+ import { o as Z } from "./ordinal-B6-f3MAq.js";
7
7
  function _e(t) {
8
8
  var a = 0, l = t.children, n = l && l.length;
9
9
  if (!n) a = 1;
@@ -13,13 +13,13 @@ function _e(t) {
13
13
  function ke() {
14
14
  return this.eachAfter(_e);
15
15
  }
16
- function Ve(t, a) {
16
+ function ze(t, a) {
17
17
  let l = -1;
18
18
  for (const n of this)
19
19
  t.call(a, n, ++l, this);
20
20
  return this;
21
21
  }
22
- function ze(t, a) {
22
+ function Ve(t, a) {
23
23
  for (var l = this, n = [l], s, i, h = -1; l = n.pop(); )
24
24
  if (t.call(a, l, ++h, this), s = l.children)
25
25
  for (i = s.length - 1; i >= 0; --i)
@@ -96,7 +96,7 @@ function* qe() {
96
96
  while (l.length);
97
97
  }
98
98
  function ne(t, a) {
99
- t instanceof Map ? (t = [void 0, t], a === void 0 && (a = je)) : a === void 0 && (a = Ye);
99
+ t instanceof Map ? (t = [void 0, t], a === void 0 && (a = Ye)) : a === void 0 && (a = je);
100
100
  for (var l = new J(t), n, s = [l], i, h, d, g; n = s.pop(); )
101
101
  if ((h = a(n.data)) && (g = (h = Array.from(h)).length))
102
102
  for (n.children = h, d = g - 1; d >= 0; --d)
@@ -106,10 +106,10 @@ function ne(t, a) {
106
106
  function Xe() {
107
107
  return ne(this).eachBefore(Ue);
108
108
  }
109
- function Ye(t) {
109
+ function je(t) {
110
110
  return t.children;
111
111
  }
112
- function je(t) {
112
+ function Ye(t) {
113
113
  return Array.isArray(t) ? t[1] : null;
114
114
  }
115
115
  function Ue(t) {
@@ -127,9 +127,9 @@ function J(t) {
127
127
  J.prototype = ne.prototype = {
128
128
  constructor: J,
129
129
  count: ke,
130
- each: Ve,
130
+ each: ze,
131
131
  eachAfter: De,
132
- eachBefore: ze,
132
+ eachBefore: Ve,
133
133
  find: Pe,
134
134
  sum: Be,
135
135
  sort: Re,
@@ -153,10 +153,10 @@ function q(t) {
153
153
  return t;
154
154
  };
155
155
  }
156
- function Ze(t) {
156
+ function Qe(t) {
157
157
  t.x0 = Math.round(t.x0), t.y0 = Math.round(t.y0), t.x1 = Math.round(t.x1), t.y1 = Math.round(t.y1);
158
158
  }
159
- function Qe(t, a, l, n, s) {
159
+ function Ze(t, a, l, n, s) {
160
160
  for (var i = t.children, h, d = -1, g = i.length, c = t.value && (n - a) / t.value; ++d < g; )
161
161
  h = i[d], h.y0 = l, h.y1 = s, h.x0 = a, h.x1 = a += h.value * c;
162
162
  }
@@ -166,19 +166,19 @@ function et(t, a, l, n, s) {
166
166
  }
167
167
  var tt = (1 + Math.sqrt(5)) / 2;
168
168
  function at(t, a, l, n, s, i) {
169
- for (var h = [], d = a.children, g, c, u = 0, b = 0, r = d.length, x, S, v = a.value, p, y, N, $, z, W, M; u < r; ) {
169
+ for (var h = [], d = a.children, g, c, u = 0, b = 0, r = d.length, x, S, v = a.value, p, y, N, $, V, W, M; u < r; ) {
170
170
  x = s - l, S = i - n;
171
171
  do
172
172
  p = d[b++].value;
173
173
  while (!p && b < r);
174
- for (y = N = p, W = Math.max(S / x, x / S) / (v * t), M = p * p * W, z = Math.max(N / M, M / y); b < r; ++b) {
175
- if (p += c = d[b].value, c < y && (y = c), c > N && (N = c), M = p * p * W, $ = Math.max(N / M, M / y), $ > z) {
174
+ for (y = N = p, W = Math.max(S / x, x / S) / (v * t), M = p * p * W, V = Math.max(N / M, M / y); b < r; ++b) {
175
+ if (p += c = d[b].value, c < y && (y = c), c > N && (N = c), M = p * p * W, $ = Math.max(N / M, M / y), $ > V) {
176
176
  p -= c;
177
177
  break;
178
178
  }
179
- z = $;
179
+ V = $;
180
180
  }
181
- h.push(g = { value: p, dice: x < S, children: d.slice(u, b) }), g.dice ? Qe(g, l, n, s, v ? n += S * p / v : i) : et(g, l, n, v ? l += x * p / v : s, i), v -= p, u = b;
181
+ h.push(g = { value: p, dice: x < S, children: d.slice(u, b) }), g.dice ? Ze(g, l, n, s, v ? n += S * p / v : i) : et(g, l, n, v ? l += x * p / v : s, i), v -= p, u = b;
182
182
  }
183
183
  return h;
184
184
  }
@@ -193,7 +193,7 @@ const nt = (function t(a) {
193
193
  function lt() {
194
194
  var t = nt, a = !1, l = 1, n = 1, s = [0], i = G, h = G, d = G, g = G, c = G;
195
195
  function u(r) {
196
- return r.x0 = r.y0 = 0, r.x1 = l, r.y1 = n, r.eachBefore(b), s = [0], a && r.eachBefore(Ze), r;
196
+ return r.x0 = r.y0 = 0, r.x1 = l, r.y1 = n, r.eachBefore(b), s = [0], a && r.eachBefore(Qe), r;
197
197
  }
198
198
  function b(r) {
199
199
  var x = s[r.depth], S = r.x0 + x, v = r.y0 + x, p = r.x1 - x, y = r.y1 - x;
@@ -341,7 +341,7 @@ var st = /* @__PURE__ */ w((t, a) => {
341
341
  } catch (e) {
342
342
  te.error("Error creating format function:", e), p = O(",");
343
343
  }
344
- const y = Q().range([
344
+ const y = Z().range([
345
345
  "transparent",
346
346
  c.cScale0,
347
347
  c.cScale1,
@@ -355,7 +355,7 @@ var st = /* @__PURE__ */ w((t, a) => {
355
355
  c.cScale9,
356
356
  c.cScale10,
357
357
  c.cScale11
358
- ]), N = Q().range([
358
+ ]), N = Z().range([
359
359
  "transparent",
360
360
  c.cScalePeer0,
361
361
  c.cScalePeer1,
@@ -369,7 +369,7 @@ var st = /* @__PURE__ */ w((t, a) => {
369
369
  c.cScalePeer9,
370
370
  c.cScalePeer10,
371
371
  c.cScalePeer11
372
- ]), $ = Q().range([
372
+ ]), $ = Z().range([
373
373
  c.cScaleLabel0,
374
374
  c.cScaleLabel1,
375
375
  c.cScaleLabel2,
@@ -384,9 +384,9 @@ var st = /* @__PURE__ */ w((t, a) => {
384
384
  c.cScaleLabel11
385
385
  ]);
386
386
  d && b.append("text").attr("x", S / 2).attr("y", u / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(d);
387
- const z = b.append("g").attr("transform", `translate(0, ${u})`).attr("class", "treemapContainer"), W = ne(g).sum((e) => e.value ?? 0).sort((e, o) => (o.value ?? 0) - (e.value ?? 0)), le = lt().size([r, x]).paddingTop(
387
+ const V = b.append("g").attr("transform", `translate(0, ${u})`).attr("class", "treemapContainer"), W = ne(g).sum((e) => e.value ?? 0).sort((e, o) => (o.value ?? 0) - (e.value ?? 0)), le = lt().size([r, x]).paddingTop(
388
388
  (e) => e.children && e.children.length > 0 ? X + R : 0
389
- ).paddingInner(h).paddingLeft((e) => e.children && e.children.length > 0 ? R : 0).paddingRight((e) => e.children && e.children.length > 0 ? R : 0).paddingBottom((e) => e.children && e.children.length > 0 ? R : 0).round(!0)(W), de = le.descendants().filter((e) => e.children && e.children.length > 0), H = z.selectAll(".treemapSection").data(de).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
389
+ ).paddingInner(h).paddingLeft((e) => e.children && e.children.length > 0 ? R : 0).paddingRight((e) => e.children && e.children.length > 0 ? R : 0).paddingBottom((e) => e.children && e.children.length > 0 ? R : 0).round(!0)(W), de = le.descendants().filter((e) => e.children && e.children.length > 0), H = V.selectAll(".treemapSection").data(de).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
390
390
  H.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", X).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", 0.6).attr("stroke-width", 0.6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), H.append("clipPath").attr("id", (e, o) => `clip-section-${a}-${o}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", X), H.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, o) => `treemapSection section${o}`).attr("fill", (e) => y(e.data.name)).attr("fill-opacity", 0.6).attr("stroke", (e) => N(e.data.name)).attr("stroke-width", 2).attr("stroke-opacity", 0.4).attr("style", (e) => {
391
391
  if (e.depth === 0)
392
392
  return "display: none;";
@@ -407,13 +407,13 @@ var st = /* @__PURE__ */ w((t, a) => {
407
407
  i.showValues !== !1 && e.value ? T = C - 10 - 30 - 10 - L : T = C - L - 6;
408
408
  const m = Math.max(15, T), _ = o.node();
409
409
  if (_.getComputedTextLength() > m) {
410
- let V = f;
411
- for (; V.length > 0; ) {
412
- if (V = f.substring(0, V.length - 1), V.length === 0) {
410
+ let z = f;
411
+ for (; z.length > 0; ) {
412
+ if (z = f.substring(0, z.length - 1), z.length === 0) {
413
413
  o.text("..."), _.getComputedTextLength() > m && o.text("");
414
414
  break;
415
415
  }
416
- if (o.text(V + "..."), _.getComputedTextLength() <= m)
416
+ if (o.text(z + "..."), _.getComputedTextLength() <= m)
417
417
  break;
418
418
  }
419
419
  }
@@ -423,8 +423,8 @@ var st = /* @__PURE__ */ w((t, a) => {
423
423
  const o = "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + $(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", f = B({ cssCompiledStyles: e.data.cssCompiledStyles });
424
424
  return o + f.labelStyles.replace("color:", "fill:");
425
425
  });
426
- const se = le.leaves(), A = se.length > 20, ue = A ? 16 : 38, Y = A ? 14 : 28, D = A ? 4 : 8, I = A ? 4 : 6, K = A ? 2 : 4, re = A ? 8 : 10, Z = A ? 1 : 2, j = z.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class", (e, o) => `treemapNode treemapLeafGroup leaf${o}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
427
- j.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? y(e.parent.data.name) : y(e.data.name)).attr("style", (e) => B({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", 0.3).attr("stroke", (e) => e.parent ? y(e.parent.data.name) : y(e.data.name)).attr("stroke-width", 3), j.append("clipPath").attr("id", (e, o) => `clip-${a}-${o}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), j.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => {
426
+ const se = le.leaves(), A = se.length > 20, ue = A ? 16 : 38, j = A ? 14 : 28, D = A ? 4 : 8, I = A ? 4 : 6, K = A ? 2 : 4, re = A ? 8 : 10, Q = A ? 1 : 2, Y = V.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class", (e, o) => `treemapNode treemapLeafGroup leaf${o}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
427
+ Y.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? y(e.parent.data.name) : y(e.data.name)).attr("style", (e) => B({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", 0.3).attr("stroke", (e) => e.parent ? y(e.parent.data.name) : y(e.data.name)).attr("stroke-width", 3), Y.append("clipPath").attr("id", (e, o) => `clip-${a}-${o}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), Y.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => {
428
428
  const o = `text-anchor: middle; dominant-baseline: middle; font-size: ${ue}px;fill:` + $(e.data.name) + ";", f = B({ cssCompiledStyles: e.data.cssCompiledStyles });
429
429
  return o + f.labelStyles.replace("color:", "fill:");
430
430
  }).attr("clip-path", (e, o) => `url(#clip-${a}-${o})`).text((e) => e.data.name).each(function(e) {
@@ -439,18 +439,18 @@ var st = /* @__PURE__ */ w((t, a) => {
439
439
  m--, o.style("font-size", `${m}px`);
440
440
  let F = Math.max(
441
441
  I,
442
- Math.min(Y, Math.round(m * _))
443
- ), k = m + Z + F;
442
+ Math.min(j, Math.round(m * _))
443
+ ), k = m + Q + F;
444
444
  for (; k > P && m > D && (m--, F = Math.max(
445
445
  I,
446
- Math.min(Y, Math.round(m * _))
446
+ Math.min(j, Math.round(m * _))
447
447
  ), !(F < I && m === D)); )
448
- o.style("font-size", `${m}px`), k = m + Z + F;
448
+ o.style("font-size", `${m}px`), k = m + Q + F;
449
449
  o.style("font-size", `${m}px`), A ? (m < D || P < D) && o.style("display", "none") : (L.getComputedTextLength() > T || m < D || P < m) && o.style("display", "none");
450
- }), i.showValues !== !1 && j.append("text").attr("class", "treemapValue").attr("x", (o) => (o.x1 - o.x0) / 2).attr("y", function(o) {
450
+ }), i.showValues !== !1 && Y.append("text").attr("class", "treemapValue").attr("x", (o) => (o.x1 - o.x0) / 2).attr("y", function(o) {
451
451
  return (o.y1 - o.y0) / 2;
452
452
  }).attr("style", (o) => {
453
- const f = `text-anchor: middle; dominant-baseline: hanging; font-size: ${Y}px;fill:` + $(o.data.name) + ";", C = B({ cssCompiledStyles: o.data.cssCompiledStyles });
453
+ const f = `text-anchor: middle; dominant-baseline: hanging; font-size: ${j}px;fill:` + $(o.data.name) + ";", C = B({ cssCompiledStyles: o.data.cssCompiledStyles });
454
454
  return f + C.labelStyles.replace("color:", "fill:");
455
455
  }).attr("clip-path", (o, f) => `url(#clip-${a}-${f})`).text((o) => o.value ? p(o.value) : "").each(function(o) {
456
456
  const f = U(this), C = this.parentNode;
@@ -465,10 +465,10 @@ var st = /* @__PURE__ */ w((t, a) => {
465
465
  }
466
466
  const T = parseFloat(L.style("font-size")), m = Math.max(
467
467
  I,
468
- Math.min(Y, Math.round(T * 0.6))
468
+ Math.min(j, Math.round(T * 0.6))
469
469
  );
470
470
  f.style("font-size", `${m}px`);
471
- const F = (o.y1 - o.y0) / 2 + T / 2 + Z;
471
+ const F = (o.y1 - o.y0) / 2 + T / 2 + Q;
472
472
  f.attr("y", F);
473
473
  const k = o.x1 - o.x0, ie = o.y1 - o.y0 - 4, me = k - 2 * K;
474
474
  f.node().getComputedTextLength() > me || F + m > ie || m < I ? f.style("display", "none") : f.style("display", null);
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const he=require("./chunk-JWPE2WC7-BZ9nUeyl.cjs"),h=require("./extractHeadings-GvfJwNxO.cjs"),ue=require("./chunk-VR4S4FIN-hwPR--n9.cjs"),pe=require("./cynefin-VYW2F7L2-MpAliYy9.cjs"),I=require("./defaultLocale-C4wbwF1n.cjs"),Z=require("./ordinal-CagbB1m8.cjs");function fe(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function ge(){return this.eachAfter(fe)}function me(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function ye(t,a){for(var l=this,n=[l],r,i,d=-1;l=n.pop();)if(t.call(a,l,++d,this),r=l.children)for(i=r.length-1;i>=0;--i)n.push(r[i]);return this}function Se(t,a){for(var l=this,n=[l],r=[],i,d,u,y=-1;l=n.pop();)if(r.push(l),i=l.children)for(d=0,u=i.length;d<u;++d)n.push(i[d]);for(;l=r.pop();)t.call(a,l,++y,this);return this}function ve(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function xe(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,r=n&&n.length;--r>=0;)l+=n[r].value;a.value=l})}function be(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function we(t){for(var a=this,l=Ce(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var r=n.length;t!==l;)n.splice(r,0,t),t=t.parent;return n}function Ce(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),r=null;for(t=l.pop(),a=n.pop();t===a;)r=t,t=l.pop(),a=n.pop();return r}function Te(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function _e(){return Array.from(this)}function Le(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function $e(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ae(){var t=this,a,l=[t],n,r,i;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(r=0,i=n.length;r<i;++r)l.push(n[r]);while(l.length)}function K(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ne)):a===void 0&&(a=Me);for(var l=new j(t),n,r=[l],i,d,u,y;n=r.pop();)if((d=a(n.data))&&(y=(d=Array.from(d)).length))for(n.children=d,u=y-1;u>=0;--u)r.push(i=d[u]=new j(d[u])),i.parent=n,i.depth=n.depth+1;return l.eachBefore(Ve)}function Fe(){return K(this).eachBefore(ke)}function Me(t){return t.children}function Ne(t){return Array.isArray(t)?t[1]:null}function ke(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Ve(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function j(t){this.data=t,this.depth=this.height=0,this.parent=null}j.prototype=K.prototype={constructor:j,count:ge,each:me,eachAfter:Se,eachBefore:ye,find:ve,sum:xe,sort:be,path:we,ancestors:Te,descendants:_e,leaves:Le,links:$e,copy:Fe,[Symbol.iterator]:Ae};function ze(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function O(t){return function(){return t}}function Pe(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function De(t,a,l,n,r){for(var i=t.children,d,u=-1,y=i.length,c=t.value&&(n-a)/t.value;++u<y;)d=i[u],d.y0=l,d.y1=r,d.x0=a,d.x1=a+=d.value*c}function Be(t,a,l,n,r){for(var i=t.children,d,u=-1,y=i.length,c=t.value&&(r-l)/t.value;++u<y;)d=i[u],d.x0=a,d.x1=n,d.y0=l,d.y1=l+=d.value*c}var We=(1+Math.sqrt(5))/2;function Ee(t,a,l,n,r,i){for(var d=[],u=a.children,y,c,p=0,w=0,s=u.length,b,v,x=a.value,f,S,F,L,z,E,M;p<s;){b=r-l,v=i-n;do f=u[w++].value;while(!f&&w<s);for(S=F=f,E=Math.max(v/b,b/v)/(x*t),M=f*f*E,z=Math.max(F/M,M/S);w<s;++w){if(f+=c=u[w].value,c<S&&(S=c),c>F&&(F=c),M=f*f*E,L=Math.max(F/M,M/S),L>z){f-=c;break}z=L}d.push(y={value:f,dice:b<v,children:u.slice(p,w)}),y.dice?De(y,l,n,r,x?n+=v*f/x:i):Be(y,l,n,x?l+=b*f/x:r,i),x-=f,p=w}return d}const Re=(function t(a){function l(n,r,i,d,u){Ee(a,n,r,i,d,u)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(We);function He(){var t=Re,a=!1,l=1,n=1,r=[0],i=q,d=q,u=q,y=q,c=q;function p(s){return s.x0=s.y0=0,s.x1=l,s.y1=n,s.eachBefore(w),r=[0],a&&s.eachBefore(Pe),s}function w(s){var b=r[s.depth],v=s.x0+b,x=s.y0+b,f=s.x1-b,S=s.y1-b;f<v&&(v=f=(v+f)/2),S<x&&(x=S=(x+S)/2),s.x0=v,s.y0=x,s.x1=f,s.y1=S,s.children&&(b=r[s.depth+1]=i(s)/2,v+=c(s)-b,x+=d(s)-b,f-=u(s)-b,S-=y(s)-b,f<v&&(v=f=(v+f)/2),S<x&&(x=S=(x+S)/2),t(s,v,x,f,S))}return p.round=function(s){return arguments.length?(a=!!s,p):a},p.size=function(s){return arguments.length?(l=+s[0],n=+s[1],p):[l,n]},p.tile=function(s){return arguments.length?(t=ze(s),p):t},p.padding=function(s){return arguments.length?p.paddingInner(s).paddingOuter(s):p.paddingInner()},p.paddingInner=function(s){return arguments.length?(i=typeof s=="function"?s:O(+s),p):i},p.paddingOuter=function(s){return arguments.length?p.paddingTop(s).paddingRight(s).paddingBottom(s).paddingLeft(s):p.paddingTop()},p.paddingTop=function(s){return arguments.length?(d=typeof s=="function"?s:O(+s),p):d},p.paddingRight=function(s){return arguments.length?(u=typeof s=="function"?s:O(+s),p):u},p.paddingBottom=function(s){return arguments.length?(y=typeof s=="function"?s:O(+s),p):y},p.paddingLeft=function(s){return arguments.length?(c=typeof s=="function"?s:O(+s),p):c},p}var W,ne=(W=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=h.setAccTitle,this.getAccTitle=h.getAccTitle,this.setDiagramTitle=h.setDiagramTitle,this.getDiagramTitle=h.getDiagramTitle,this.getAccDescription=h.getAccDescription,this.setAccDescription=h.setAccDescription}getNodes(){return this.nodes}getConfig(){const a=h.defaultConfig_default,l=h.getConfig();return h.cleanAndMerge({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},r=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");r&&r.forEach(i=>{h.isLabelStyle(i)&&(n?.textStyles?n.textStyles.push(i):n.textStyles=[i]),n?.styles?n.styles.push(i):n.styles=[i]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){h.clear(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},h.__name(W,"TreeMapDB"),W);function le(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const r={name:n.name,children:n.type==="Leaf"?void 0:[]};for(r.classSelector=n?.classSelector,n?.cssCompiledStyles&&(r.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(r.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(r);else{const i=l[l.length-1].node;i.children?i.children.push(r):i.children=[r]}n.type!=="Leaf"&&l.push({node:r,level:n.level})}),a}h.__name(le,"buildHierarchy");var Ie=h.__name((t,a)=>{he.populateCommonDb(t,a);const l=[];for(const i of t.TreemapRows??[])i.$type==="ClassDefStatement"&&a.addClass(i.className??"",i.styleText??"");for(const i of t.TreemapRows??[]){const d=i.item;if(!d)continue;const u=i.indent?parseInt(i.indent):0,y=qe(d),c=d.classSelector?a.getStylesForClass(d.classSelector):[],p=c.length>0?c:void 0,w={level:u,name:y,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:p};l.push(w)}const n=le(l),r=h.__name((i,d)=>{for(const u of i)a.addNode(u,d),u.children&&u.children.length>0&&r(u.children,d+1)},"addNodesRecursively");r(n,0)},"populate"),qe=h.__name(t=>t.name?String(t.name):"","getItemName"),re={parser:{yy:void 0},parse:h.__name(async t=>{try{const a=pe.parse,l=await a("treemap",t);h.log.debug("Treemap AST:",l);const n=re.parser?.yy;if(!(n instanceof ne))throw new 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.");Ie(l,n)}catch(a){throw h.log.error("Error parsing treemap:",a),a}},"parse")},Oe=10,B=10,G=25,Ge=h.__name((t,a,l,n)=>{const r=n.db,i=r.getConfig(),d=i.padding??Oe,u=r.getDiagramTitle(),y=r.getRoot(),{themeVariables:c}=h.getConfig();if(!y)return;const p=u?30:0,w=h.selectSvgElement(a),s=i.nodeWidth?i.nodeWidth*B:960,b=i.nodeHeight?i.nodeHeight*B:500,v=s,x=b+p;w.attr("viewBox",`0 0 ${v} ${x}`),h.configureSvgSize(w,x,v,i.useMaxWidth);let f;try{const e=i.valueFormat||",";if(e==="$0,0")f=h.__name(o=>"$"+I.format(",")(o),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const o=/\.\d+/.exec(e),g=o?o[0]:"";f=h.__name(C=>"$"+I.format(","+g)(C),"valueFormat")}else if(e.startsWith("$")){const o=e.substring(1);f=h.__name(g=>"$"+I.format(o||"")(g),"valueFormat")}else f=I.format(e)}catch(e){h.log.error("Error creating format function:",e),f=I.format(",")}const S=Z.ordinal().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),F=Z.ordinal().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),L=Z.ordinal().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);u&&w.append("text").attr("x",v/2).attr("y",p/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(u);const z=w.append("g").attr("transform",`translate(0, ${p})`).attr("class","treemapContainer"),E=K(y).sum(e=>e.value??0).sort((e,o)=>(o.value??0)-(e.value??0)),Q=He().size([s,b]).paddingTop(e=>e.children&&e.children.length>0?G+B:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?B:0).paddingRight(e=>e.children&&e.children.length>0?B:0).paddingBottom(e=>e.children&&e.children.length>0?B:0).round(!0)(E),se=Q.descendants().filter(e=>e.children&&e.children.length>0),R=z.selectAll(".treemapSection").data(se).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);R.append("rect").attr("width",e=>e.x1-e.x0).attr("height",G).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),R.append("clipPath").attr("id",(e,o)=>`clip-section-${a}-${o}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",G),R.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,o)=>`treemapSection section${o}`).attr("fill",e=>S(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>F(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const o=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o.nodeStyles+";"+o.borderStyles.join(";")}),R.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",G/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,o)=>`url(#clip-section-${a}-${o})`).attr("style",e=>{if(e.depth===0)return"display: none;";const o="dominant-baseline: middle; font-size: 12px; fill:"+L(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",g=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o+g.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const o=h.select(this),g=e.data.name;o.text(g);const C=e.x1-e.x0,_=6;let T;i.showValues!==!1&&e.value?T=C-10-30-10-_:T=C-_-6;const m=Math.max(15,T),N=o.node();if(N.getComputedTextLength()>m){let V=g;for(;V.length>0;){if(V=g.substring(0,V.length-1),V.length===0){o.text("..."),N.getComputedTextLength()>m&&o.text("");break}if(o.text(V+"..."),N.getComputedTextLength()<=m)break}}}),i.showValues!==!1&&R.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",G/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?f(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const o="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+L(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",g=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o+g.labelStyles.replace("color:","fill:")});const ee=Q.leaves(),$=ee.length>20,ie=$?16:38,X=$?14:28,P=$?4:8,H=$?4:6,J=$?2:4,te=$?8:10,U=$?1:2,Y=z.selectAll(".treemapLeafGroup").data(ee).enter().append("g").attr("class",(e,o)=>`treemapNode treemapLeafGroup leaf${o}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);Y.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?S(e.parent.data.name):S(e.data.name)).attr("style",e=>h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?S(e.parent.data.name):S(e.data.name)).attr("stroke-width",3),Y.append("clipPath").attr("id",(e,o)=>`clip-${a}-${o}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),Y.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const o=`text-anchor: middle; dominant-baseline: middle; font-size: ${ie}px;fill:`+L(e.data.name)+";",g=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o+g.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,o)=>`url(#clip-${a}-${o})`).text(e=>e.data.name).each(function(e){const o=h.select(this),g=e.x1-e.x0,C=e.y1-e.y0,_=o.node(),T=g-2*J,D=C-2*J;if(T<te||D<te){o.style("display","none");return}let m=parseInt(o.style("font-size"),10);const N=.6;for(;_.getComputedTextLength()>T&&m>P;)m--,o.style("font-size",`${m}px`);let A=Math.max(H,Math.min(X,Math.round(m*N))),k=m+U+A;for(;k>D&&m>P&&(m--,A=Math.max(H,Math.min(X,Math.round(m*N))),!(A<H&&m===P));)o.style("font-size",`${m}px`),k=m+U+A;o.style("font-size",`${m}px`),$?(m<P||D<P)&&o.style("display","none"):(_.getComputedTextLength()>T||m<P||D<m)&&o.style("display","none")}),i.showValues!==!1&&Y.append("text").attr("class","treemapValue").attr("x",o=>(o.x1-o.x0)/2).attr("y",function(o){return(o.y1-o.y0)/2}).attr("style",o=>{const g=`text-anchor: middle; dominant-baseline: hanging; font-size: ${X}px;fill:`+L(o.data.name)+";",C=h.styles2String({cssCompiledStyles:o.data.cssCompiledStyles});return g+C.labelStyles.replace("color:","fill:")}).attr("clip-path",(o,g)=>`url(#clip-${a}-${g})`).text(o=>o.value?f(o.value):"").each(function(o){const g=h.select(this),C=this.parentNode;if(!C){g.style("display","none");return}const _=h.select(C).select(".treemapLabel");if(_.empty()||_.style("display")==="none"){g.style("display","none");return}const T=parseFloat(_.style("font-size")),m=Math.max(H,Math.min(X,Math.round(T*.6)));g.style("font-size",`${m}px`);const A=(o.y1-o.y0)/2+T/2+U;g.attr("y",A);const k=o.x1-o.x0,ae=o.y1-o.y0-4,de=k-2*J;g.node().getComputedTextLength()>de||A+m>ae||m<H?g.style("display","none"):g.style("display",null)});const oe=i.diagramPadding??8;ue.setupViewPortForSVG(w,oe,"flowchart",i?.useMaxWidth||!1)},"draw"),Xe=h.__name(function(t,a){return a.db.getClasses()},"getClasses"),Ye={draw:Ge,getClasses:Xe},je={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},Je=h.__name(({treemap:t}={})=>{const a=h.getThemeVariables3(),l=h.getConfig(),n=h.cleanAndMerge(a,l.themeVariables),r=h.cleanAndMerge(je,t),i=r.titleColor??n.titleColor,d=r.labelColor??n.textColor,u=r.valueColor??n.textColor;return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const he=require("./chunk-JWPE2WC7-C-ypCY3I.cjs"),h=require("./extractHeadings-CbjPphbm.cjs"),ue=require("./chunk-VR4S4FIN-N9b38pB9.cjs"),pe=require("./cynefin-VYW2F7L2-MpAliYy9.cjs"),I=require("./defaultLocale-C4wbwF1n.cjs"),Z=require("./ordinal-CagbB1m8.cjs");function fe(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function ge(){return this.eachAfter(fe)}function me(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function ye(t,a){for(var l=this,n=[l],r,i,d=-1;l=n.pop();)if(t.call(a,l,++d,this),r=l.children)for(i=r.length-1;i>=0;--i)n.push(r[i]);return this}function Se(t,a){for(var l=this,n=[l],r=[],i,d,u,y=-1;l=n.pop();)if(r.push(l),i=l.children)for(d=0,u=i.length;d<u;++d)n.push(i[d]);for(;l=r.pop();)t.call(a,l,++y,this);return this}function ve(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function xe(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,r=n&&n.length;--r>=0;)l+=n[r].value;a.value=l})}function be(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function we(t){for(var a=this,l=Ce(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var r=n.length;t!==l;)n.splice(r,0,t),t=t.parent;return n}function Ce(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),r=null;for(t=l.pop(),a=n.pop();t===a;)r=t,t=l.pop(),a=n.pop();return r}function Te(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function _e(){return Array.from(this)}function Le(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function $e(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ae(){var t=this,a,l=[t],n,r,i;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(r=0,i=n.length;r<i;++r)l.push(n[r]);while(l.length)}function K(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ne)):a===void 0&&(a=Me);for(var l=new j(t),n,r=[l],i,d,u,y;n=r.pop();)if((d=a(n.data))&&(y=(d=Array.from(d)).length))for(n.children=d,u=y-1;u>=0;--u)r.push(i=d[u]=new j(d[u])),i.parent=n,i.depth=n.depth+1;return l.eachBefore(Ve)}function Fe(){return K(this).eachBefore(ke)}function Me(t){return t.children}function Ne(t){return Array.isArray(t)?t[1]:null}function ke(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Ve(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function j(t){this.data=t,this.depth=this.height=0,this.parent=null}j.prototype=K.prototype={constructor:j,count:ge,each:me,eachAfter:Se,eachBefore:ye,find:ve,sum:xe,sort:be,path:we,ancestors:Te,descendants:_e,leaves:Le,links:$e,copy:Fe,[Symbol.iterator]:Ae};function ze(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function O(t){return function(){return t}}function Pe(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function De(t,a,l,n,r){for(var i=t.children,d,u=-1,y=i.length,c=t.value&&(n-a)/t.value;++u<y;)d=i[u],d.y0=l,d.y1=r,d.x0=a,d.x1=a+=d.value*c}function Be(t,a,l,n,r){for(var i=t.children,d,u=-1,y=i.length,c=t.value&&(r-l)/t.value;++u<y;)d=i[u],d.x0=a,d.x1=n,d.y0=l,d.y1=l+=d.value*c}var We=(1+Math.sqrt(5))/2;function Ee(t,a,l,n,r,i){for(var d=[],u=a.children,y,c,p=0,w=0,s=u.length,b,v,x=a.value,f,S,F,L,z,E,M;p<s;){b=r-l,v=i-n;do f=u[w++].value;while(!f&&w<s);for(S=F=f,E=Math.max(v/b,b/v)/(x*t),M=f*f*E,z=Math.max(F/M,M/S);w<s;++w){if(f+=c=u[w].value,c<S&&(S=c),c>F&&(F=c),M=f*f*E,L=Math.max(F/M,M/S),L>z){f-=c;break}z=L}d.push(y={value:f,dice:b<v,children:u.slice(p,w)}),y.dice?De(y,l,n,r,x?n+=v*f/x:i):Be(y,l,n,x?l+=b*f/x:r,i),x-=f,p=w}return d}const Re=(function t(a){function l(n,r,i,d,u){Ee(a,n,r,i,d,u)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(We);function He(){var t=Re,a=!1,l=1,n=1,r=[0],i=q,d=q,u=q,y=q,c=q;function p(s){return s.x0=s.y0=0,s.x1=l,s.y1=n,s.eachBefore(w),r=[0],a&&s.eachBefore(Pe),s}function w(s){var b=r[s.depth],v=s.x0+b,x=s.y0+b,f=s.x1-b,S=s.y1-b;f<v&&(v=f=(v+f)/2),S<x&&(x=S=(x+S)/2),s.x0=v,s.y0=x,s.x1=f,s.y1=S,s.children&&(b=r[s.depth+1]=i(s)/2,v+=c(s)-b,x+=d(s)-b,f-=u(s)-b,S-=y(s)-b,f<v&&(v=f=(v+f)/2),S<x&&(x=S=(x+S)/2),t(s,v,x,f,S))}return p.round=function(s){return arguments.length?(a=!!s,p):a},p.size=function(s){return arguments.length?(l=+s[0],n=+s[1],p):[l,n]},p.tile=function(s){return arguments.length?(t=ze(s),p):t},p.padding=function(s){return arguments.length?p.paddingInner(s).paddingOuter(s):p.paddingInner()},p.paddingInner=function(s){return arguments.length?(i=typeof s=="function"?s:O(+s),p):i},p.paddingOuter=function(s){return arguments.length?p.paddingTop(s).paddingRight(s).paddingBottom(s).paddingLeft(s):p.paddingTop()},p.paddingTop=function(s){return arguments.length?(d=typeof s=="function"?s:O(+s),p):d},p.paddingRight=function(s){return arguments.length?(u=typeof s=="function"?s:O(+s),p):u},p.paddingBottom=function(s){return arguments.length?(y=typeof s=="function"?s:O(+s),p):y},p.paddingLeft=function(s){return arguments.length?(c=typeof s=="function"?s:O(+s),p):c},p}var W,ne=(W=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=h.setAccTitle,this.getAccTitle=h.getAccTitle,this.setDiagramTitle=h.setDiagramTitle,this.getDiagramTitle=h.getDiagramTitle,this.getAccDescription=h.getAccDescription,this.setAccDescription=h.setAccDescription}getNodes(){return this.nodes}getConfig(){const a=h.defaultConfig_default,l=h.getConfig();return h.cleanAndMerge({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},r=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");r&&r.forEach(i=>{h.isLabelStyle(i)&&(n?.textStyles?n.textStyles.push(i):n.textStyles=[i]),n?.styles?n.styles.push(i):n.styles=[i]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){h.clear(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},h.__name(W,"TreeMapDB"),W);function le(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const r={name:n.name,children:n.type==="Leaf"?void 0:[]};for(r.classSelector=n?.classSelector,n?.cssCompiledStyles&&(r.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(r.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(r);else{const i=l[l.length-1].node;i.children?i.children.push(r):i.children=[r]}n.type!=="Leaf"&&l.push({node:r,level:n.level})}),a}h.__name(le,"buildHierarchy");var Ie=h.__name((t,a)=>{he.populateCommonDb(t,a);const l=[];for(const i of t.TreemapRows??[])i.$type==="ClassDefStatement"&&a.addClass(i.className??"",i.styleText??"");for(const i of t.TreemapRows??[]){const d=i.item;if(!d)continue;const u=i.indent?parseInt(i.indent):0,y=qe(d),c=d.classSelector?a.getStylesForClass(d.classSelector):[],p=c.length>0?c:void 0,w={level:u,name:y,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:p};l.push(w)}const n=le(l),r=h.__name((i,d)=>{for(const u of i)a.addNode(u,d),u.children&&u.children.length>0&&r(u.children,d+1)},"addNodesRecursively");r(n,0)},"populate"),qe=h.__name(t=>t.name?String(t.name):"","getItemName"),re={parser:{yy:void 0},parse:h.__name(async t=>{try{const a=pe.parse,l=await a("treemap",t);h.log.debug("Treemap AST:",l);const n=re.parser?.yy;if(!(n instanceof ne))throw new 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.");Ie(l,n)}catch(a){throw h.log.error("Error parsing treemap:",a),a}},"parse")},Oe=10,B=10,G=25,Ge=h.__name((t,a,l,n)=>{const r=n.db,i=r.getConfig(),d=i.padding??Oe,u=r.getDiagramTitle(),y=r.getRoot(),{themeVariables:c}=h.getConfig();if(!y)return;const p=u?30:0,w=h.selectSvgElement(a),s=i.nodeWidth?i.nodeWidth*B:960,b=i.nodeHeight?i.nodeHeight*B:500,v=s,x=b+p;w.attr("viewBox",`0 0 ${v} ${x}`),h.configureSvgSize(w,x,v,i.useMaxWidth);let f;try{const e=i.valueFormat||",";if(e==="$0,0")f=h.__name(o=>"$"+I.format(",")(o),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const o=/\.\d+/.exec(e),g=o?o[0]:"";f=h.__name(C=>"$"+I.format(","+g)(C),"valueFormat")}else if(e.startsWith("$")){const o=e.substring(1);f=h.__name(g=>"$"+I.format(o||"")(g),"valueFormat")}else f=I.format(e)}catch(e){h.log.error("Error creating format function:",e),f=I.format(",")}const S=Z.ordinal().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),F=Z.ordinal().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),L=Z.ordinal().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);u&&w.append("text").attr("x",v/2).attr("y",p/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(u);const z=w.append("g").attr("transform",`translate(0, ${p})`).attr("class","treemapContainer"),E=K(y).sum(e=>e.value??0).sort((e,o)=>(o.value??0)-(e.value??0)),Q=He().size([s,b]).paddingTop(e=>e.children&&e.children.length>0?G+B:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?B:0).paddingRight(e=>e.children&&e.children.length>0?B:0).paddingBottom(e=>e.children&&e.children.length>0?B:0).round(!0)(E),se=Q.descendants().filter(e=>e.children&&e.children.length>0),R=z.selectAll(".treemapSection").data(se).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);R.append("rect").attr("width",e=>e.x1-e.x0).attr("height",G).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),R.append("clipPath").attr("id",(e,o)=>`clip-section-${a}-${o}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",G),R.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,o)=>`treemapSection section${o}`).attr("fill",e=>S(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>F(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const o=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o.nodeStyles+";"+o.borderStyles.join(";")}),R.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",G/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,o)=>`url(#clip-section-${a}-${o})`).attr("style",e=>{if(e.depth===0)return"display: none;";const o="dominant-baseline: middle; font-size: 12px; fill:"+L(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",g=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o+g.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const o=h.select(this),g=e.data.name;o.text(g);const C=e.x1-e.x0,_=6;let T;i.showValues!==!1&&e.value?T=C-10-30-10-_:T=C-_-6;const m=Math.max(15,T),N=o.node();if(N.getComputedTextLength()>m){let V=g;for(;V.length>0;){if(V=g.substring(0,V.length-1),V.length===0){o.text("..."),N.getComputedTextLength()>m&&o.text("");break}if(o.text(V+"..."),N.getComputedTextLength()<=m)break}}}),i.showValues!==!1&&R.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",G/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?f(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const o="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+L(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",g=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o+g.labelStyles.replace("color:","fill:")});const ee=Q.leaves(),$=ee.length>20,ie=$?16:38,X=$?14:28,P=$?4:8,H=$?4:6,J=$?2:4,te=$?8:10,U=$?1:2,Y=z.selectAll(".treemapLeafGroup").data(ee).enter().append("g").attr("class",(e,o)=>`treemapNode treemapLeafGroup leaf${o}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);Y.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?S(e.parent.data.name):S(e.data.name)).attr("style",e=>h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?S(e.parent.data.name):S(e.data.name)).attr("stroke-width",3),Y.append("clipPath").attr("id",(e,o)=>`clip-${a}-${o}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),Y.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const o=`text-anchor: middle; dominant-baseline: middle; font-size: ${ie}px;fill:`+L(e.data.name)+";",g=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o+g.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,o)=>`url(#clip-${a}-${o})`).text(e=>e.data.name).each(function(e){const o=h.select(this),g=e.x1-e.x0,C=e.y1-e.y0,_=o.node(),T=g-2*J,D=C-2*J;if(T<te||D<te){o.style("display","none");return}let m=parseInt(o.style("font-size"),10);const N=.6;for(;_.getComputedTextLength()>T&&m>P;)m--,o.style("font-size",`${m}px`);let A=Math.max(H,Math.min(X,Math.round(m*N))),k=m+U+A;for(;k>D&&m>P&&(m--,A=Math.max(H,Math.min(X,Math.round(m*N))),!(A<H&&m===P));)o.style("font-size",`${m}px`),k=m+U+A;o.style("font-size",`${m}px`),$?(m<P||D<P)&&o.style("display","none"):(_.getComputedTextLength()>T||m<P||D<m)&&o.style("display","none")}),i.showValues!==!1&&Y.append("text").attr("class","treemapValue").attr("x",o=>(o.x1-o.x0)/2).attr("y",function(o){return(o.y1-o.y0)/2}).attr("style",o=>{const g=`text-anchor: middle; dominant-baseline: hanging; font-size: ${X}px;fill:`+L(o.data.name)+";",C=h.styles2String({cssCompiledStyles:o.data.cssCompiledStyles});return g+C.labelStyles.replace("color:","fill:")}).attr("clip-path",(o,g)=>`url(#clip-${a}-${g})`).text(o=>o.value?f(o.value):"").each(function(o){const g=h.select(this),C=this.parentNode;if(!C){g.style("display","none");return}const _=h.select(C).select(".treemapLabel");if(_.empty()||_.style("display")==="none"){g.style("display","none");return}const T=parseFloat(_.style("font-size")),m=Math.max(H,Math.min(X,Math.round(T*.6)));g.style("font-size",`${m}px`);const A=(o.y1-o.y0)/2+T/2+U;g.attr("y",A);const k=o.x1-o.x0,ae=o.y1-o.y0-4,de=k-2*J;g.node().getComputedTextLength()>de||A+m>ae||m<H?g.style("display","none"):g.style("display",null)});const oe=i.diagramPadding??8;ue.setupViewPortForSVG(w,oe,"flowchart",i?.useMaxWidth||!1)},"draw"),Xe=h.__name(function(t,a){return a.db.getClasses()},"getClasses"),Ye={draw:Ge,getClasses:Xe},je={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},Je=h.__name(({treemap:t}={})=>{const a=h.getThemeVariables3(),l=h.getConfig(),n=h.cleanAndMerge(a,l.themeVariables),r=h.cleanAndMerge(je,t),i=r.titleColor??n.titleColor,d=r.labelColor??n.textColor,u=r.valueColor??n.textColor;return`
2
2
  .treemapNode.section {
3
3
  stroke: ${r.sectionStrokeColor};
4
4
  stroke-width: ${r.sectionStrokeWidth};
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("./chunk-JWPE2WC7-BZ9nUeyl.cjs"),a=require("./extractHeadings-GvfJwNxO.cjs"),$=require("./cynefin-VYW2F7L2-MpAliYy9.cjs");var B=a.defaultConfig_default.packet,b,m=(b=class{constructor(){this.packet=[],this.setAccTitle=a.setAccTitle,this.getAccTitle=a.getAccTitle,this.setDiagramTitle=a.setDiagramTitle,this.getDiagramTitle=a.getDiagramTitle,this.getAccDescription=a.getAccDescription,this.setAccDescription=a.setAccDescription}getConfig(){const t=a.cleanAndMerge({...B,...a.getConfig().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){a.clear(),this.packet=[]}},a.__name(b,"PacketDB"),b),C=1e4,S=a.__name((e,t)=>{x.populateCommonDb(e,t);let o=-1,i=[],l=1;const{bitsPerRow:c}=t.getConfig();for(let{start:r,end:s,bits:p,label:d}of e.blocks){if(r!==void 0&&s!==void 0&&s<r)throw new Error(`Packet block ${r} - ${s} is invalid. End must be greater than start.`);if(r??=o+1,r!==o+1)throw new Error(`Packet block ${r} - ${s??r} is not contiguous. It should start from ${o+1}.`);if(p===0)throw new Error(`Packet block ${r} is invalid. Cannot have a zero bit field.`);for(s??=r+(p??1)-1,p??=s-r+1,o=s,a.log.debug(`Packet block ${r} - ${o} with label ${d}`);i.length<=c+1&&t.getPacket().length<C;){const[g,n]=_({start:r,end:s,bits:p,label:d},l,c);if(i.push(g),g.end+1===l*c&&(t.pushWord(i),i=[],l++),!n)break;({start:r,end:s,bits:p,label:d}=n)}}t.pushWord(i)},"populate"),_=a.__name((e,t,o)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*o)return[e,void 0];const i=t*o-1,l=t*o;return[{start:e.start,end:i,label:e.label,bits:i-e.start},{start:l,end:e.end,label:e.label,bits:e.end-l}]},"getNextFittingBlock"),w={parser:{yy:void 0},parse:a.__name(async e=>{const t=await $.parse("packet",e),o=w.parser?.yy;if(!(o instanceof m))throw new 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.");a.log.debug(t),S(t,o)},"parse")},P=a.__name((e,t,o,i)=>{const l=i.db,c=l.getConfig(),{rowHeight:r,paddingY:s,bitWidth:p,bitsPerRow:d}=c,g=l.getPacket(),n=l.getDiagramTitle(),k=r+s,h=k*(g.length+1)-(n?0:r),f=p*d+2,u=a.selectSvgElement(t);u.attr("viewBox",`0 0 ${f} ${h}`),a.configureSvgSize(u,h,f,c.useMaxWidth);for(const[v,y]of g.entries())T(u,y,v,c);u.append("text").text(n).attr("x",f/2).attr("y",h-k/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),T=a.__name((e,t,o,{rowHeight:i,paddingX:l,paddingY:c,bitWidth:r,bitsPerRow:s,showBits:p})=>{const d=e.append("g"),g=o*(i+c)+c;for(const n of t){const k=n.start%s*r+1,h=(n.end-n.start+1)*r-l;if(d.append("rect").attr("x",k).attr("y",g).attr("width",h).attr("height",i).attr("class","packetBlock"),d.append("text").attr("x",k+h/2).attr("y",g+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(n.label),!p)continue;const f=n.end===n.start,u=g-2;d.append("text").attr("x",k+(f?h/2:0)).attr("y",u).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",f?"middle":"start").text(n.start),f||d.append("text").attr("x",k+h).attr("y",u).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(n.end)}},"drawWord"),D={draw:P},E={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},F=a.__name(({packet:e}={})=>{const t=a.cleanAndMerge(E,e);return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("./chunk-JWPE2WC7-C-ypCY3I.cjs"),a=require("./extractHeadings-CbjPphbm.cjs"),$=require("./cynefin-VYW2F7L2-MpAliYy9.cjs");var B=a.defaultConfig_default.packet,b,m=(b=class{constructor(){this.packet=[],this.setAccTitle=a.setAccTitle,this.getAccTitle=a.getAccTitle,this.setDiagramTitle=a.setDiagramTitle,this.getDiagramTitle=a.getDiagramTitle,this.getAccDescription=a.getAccDescription,this.setAccDescription=a.setAccDescription}getConfig(){const t=a.cleanAndMerge({...B,...a.getConfig().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){a.clear(),this.packet=[]}},a.__name(b,"PacketDB"),b),C=1e4,S=a.__name((e,t)=>{x.populateCommonDb(e,t);let o=-1,i=[],l=1;const{bitsPerRow:c}=t.getConfig();for(let{start:r,end:s,bits:p,label:d}of e.blocks){if(r!==void 0&&s!==void 0&&s<r)throw new Error(`Packet block ${r} - ${s} is invalid. End must be greater than start.`);if(r??=o+1,r!==o+1)throw new Error(`Packet block ${r} - ${s??r} is not contiguous. It should start from ${o+1}.`);if(p===0)throw new Error(`Packet block ${r} is invalid. Cannot have a zero bit field.`);for(s??=r+(p??1)-1,p??=s-r+1,o=s,a.log.debug(`Packet block ${r} - ${o} with label ${d}`);i.length<=c+1&&t.getPacket().length<C;){const[g,n]=_({start:r,end:s,bits:p,label:d},l,c);if(i.push(g),g.end+1===l*c&&(t.pushWord(i),i=[],l++),!n)break;({start:r,end:s,bits:p,label:d}=n)}}t.pushWord(i)},"populate"),_=a.__name((e,t,o)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*o)return[e,void 0];const i=t*o-1,l=t*o;return[{start:e.start,end:i,label:e.label,bits:i-e.start},{start:l,end:e.end,label:e.label,bits:e.end-l}]},"getNextFittingBlock"),w={parser:{yy:void 0},parse:a.__name(async e=>{const t=await $.parse("packet",e),o=w.parser?.yy;if(!(o instanceof m))throw new 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.");a.log.debug(t),S(t,o)},"parse")},P=a.__name((e,t,o,i)=>{const l=i.db,c=l.getConfig(),{rowHeight:r,paddingY:s,bitWidth:p,bitsPerRow:d}=c,g=l.getPacket(),n=l.getDiagramTitle(),k=r+s,h=k*(g.length+1)-(n?0:r),f=p*d+2,u=a.selectSvgElement(t);u.attr("viewBox",`0 0 ${f} ${h}`),a.configureSvgSize(u,h,f,c.useMaxWidth);for(const[v,y]of g.entries())T(u,y,v,c);u.append("text").text(n).attr("x",f/2).attr("y",h-k/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),T=a.__name((e,t,o,{rowHeight:i,paddingX:l,paddingY:c,bitWidth:r,bitsPerRow:s,showBits:p})=>{const d=e.append("g"),g=o*(i+c)+c;for(const n of t){const k=n.start%s*r+1,h=(n.end-n.start+1)*r-l;if(d.append("rect").attr("x",k).attr("y",g).attr("width",h).attr("height",i).attr("class","packetBlock"),d.append("text").attr("x",k+h/2).attr("y",g+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(n.label),!p)continue;const f=n.end===n.start,u=g-2;d.append("text").attr("x",k+(f?h/2:0)).attr("y",u).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",f?"middle":"start").text(n.start),f||d.append("text").attr("x",k+h).attr("y",u).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(n.end)}},"drawWord"),D={draw:P},E={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},F=a.__name(({packet:e}={})=>{const t=a.cleanAndMerge(E,e);return`
2
2
  .packetByte {
3
3
  font-size: ${t.byteFontSize};
4
4
  }
@@ -1,14 +1,14 @@
1
- import { p as B } from "./chunk-JWPE2WC7-Bkx-q_31.js";
2
- import { _ as b, ak as m, an as C, V as S, U as w, O as D, K as T, a8 as P, a9 as z, J as E, G as F, ai as A, al as W, ae as _ } from "./extractHeadings-BB6ZLvWu.js";
1
+ import { p as B } from "./chunk-JWPE2WC7-CtaWl_b_.js";
2
+ import { _ as b, aj as m, am as C, U as S, R as w, K as D, J as T, a7 as P, a8 as z, G as A, A as E, ah as F, ak as W, ad as _ } from "./extractHeadings-Crd19E9z.js";
3
3
  import { p as N } from "./cynefin-VYW2F7L2-Bkk-F_Js.js";
4
4
  var L = W.packet, u, v = (u = class {
5
5
  constructor() {
6
- this.packet = [], this.setAccTitle = D, this.getAccTitle = T, this.setDiagramTitle = P, this.getDiagramTitle = z, this.getAccDescription = E, this.setAccDescription = F;
6
+ this.packet = [], this.setAccTitle = D, this.getAccTitle = T, this.setDiagramTitle = P, this.getDiagramTitle = z, this.getAccDescription = A, this.setAccDescription = E;
7
7
  }
8
8
  getConfig() {
9
9
  const t = m({
10
10
  ...L,
11
- ...A().packet
11
+ ...F().packet
12
12
  });
13
13
  return t.showBits && (t.paddingY += 10), t;
14
14
  }
@@ -21,7 +21,7 @@ var L = W.packet, u, v = (u = class {
21
21
  clear() {
22
22
  _(), this.packet = [];
23
23
  }
24
- }, b(u, "PacketDB"), u), M = 1e4, O = /* @__PURE__ */ b((e, t) => {
24
+ }, b(u, "PacketDB"), u), M = 1e4, Y = /* @__PURE__ */ b((e, t) => {
25
25
  B(e, t);
26
26
  let r = -1, s = [], n = 1;
27
27
  const { bitsPerRow: l } = t.getConfig();
@@ -35,14 +35,14 @@ var L = W.packet, u, v = (u = class {
35
35
  if (d === 0)
36
36
  throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);
37
37
  for (i ??= a + (d ?? 1) - 1, d ??= i - a + 1, r = i, w.debug(`Packet block ${a} - ${r} with label ${c}`); s.length <= l + 1 && t.getPacket().length < M; ) {
38
- const [p, o] = Y({ start: a, end: i, bits: d, label: c }, n, l);
38
+ const [p, o] = j({ start: a, end: i, bits: d, label: c }, n, l);
39
39
  if (s.push(p), p.end + 1 === n * l && (t.pushWord(s), s = [], n++), !o)
40
40
  break;
41
41
  ({ start: a, end: i, bits: d, label: c } = o);
42
42
  }
43
43
  }
44
44
  t.pushWord(s);
45
- }, "populate"), Y = /* @__PURE__ */ b((e, t, r) => {
45
+ }, "populate"), j = /* @__PURE__ */ b((e, t, r) => {
46
46
  if (e.start === void 0)
47
47
  throw new Error("start should have been set during first phase");
48
48
  if (e.end === void 0)
@@ -75,24 +75,24 @@ var L = W.packet, u, v = (u = class {
75
75
  throw new Error(
76
76
  "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."
77
77
  );
78
- w.debug(t), O(t, r);
78
+ w.debug(t), Y(t, r);
79
79
  }, "parse")
80
80
  }, G = /* @__PURE__ */ b((e, t, r, s) => {
81
- const n = s.db, l = n.getConfig(), { rowHeight: a, paddingY: i, bitWidth: d, bitsPerRow: c } = l, p = n.getPacket(), o = n.getDiagramTitle(), h = a + i, g = h * (p.length + 1) - (o ? 0 : a), k = d * c + 2, f = C(t);
82
- f.attr("viewBox", `0 0 ${k} ${g}`), S(f, g, k, l.useMaxWidth);
81
+ const n = s.db, l = n.getConfig(), { rowHeight: a, paddingY: i, bitWidth: d, bitsPerRow: c } = l, p = n.getPacket(), o = n.getDiagramTitle(), g = a + i, h = g * (p.length + 1) - (o ? 0 : a), k = d * c + 2, f = C(t);
82
+ f.attr("viewBox", `0 0 ${k} ${h}`), S(f, h, k, l.useMaxWidth);
83
83
  for (const [y, $] of p.entries())
84
84
  I(f, $, y, l);
85
- f.append("text").text(o).attr("x", k / 2).attr("y", g - h / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle");
85
+ f.append("text").text(o).attr("x", k / 2).attr("y", h - g / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle");
86
86
  }, "draw"), I = /* @__PURE__ */ b((e, t, r, { rowHeight: s, paddingX: n, paddingY: l, bitWidth: a, bitsPerRow: i, showBits: d }) => {
87
87
  const c = e.append("g"), p = r * (s + l) + l;
88
88
  for (const o of t) {
89
- const h = o.start % i * a + 1, g = (o.end - o.start + 1) * a - n;
90
- if (c.append("rect").attr("x", h).attr("y", p).attr("width", g).attr("height", s).attr("class", "packetBlock"), c.append("text").attr("x", h + g / 2).attr("y", p + s / 2).attr("class", "packetLabel").attr("dominant-baseline", "middle").attr("text-anchor", "middle").text(o.label), !d)
89
+ const g = o.start % i * a + 1, h = (o.end - o.start + 1) * a - n;
90
+ if (c.append("rect").attr("x", g).attr("y", p).attr("width", h).attr("height", s).attr("class", "packetBlock"), c.append("text").attr("x", g + h / 2).attr("y", p + s / 2).attr("class", "packetLabel").attr("dominant-baseline", "middle").attr("text-anchor", "middle").text(o.label), !d)
91
91
  continue;
92
92
  const k = o.end === o.start, f = p - 2;
93
- c.append("text").attr("x", h + (k ? g / 2 : 0)).attr("y", f).attr("class", "packetByte start").attr("dominant-baseline", "auto").attr("text-anchor", k ? "middle" : "start").text(o.start), k || c.append("text").attr("x", h + g).attr("y", f).attr("class", "packetByte end").attr("dominant-baseline", "auto").attr("text-anchor", "end").text(o.end);
93
+ c.append("text").attr("x", g + (k ? h / 2 : 0)).attr("y", f).attr("class", "packetByte start").attr("dominant-baseline", "auto").attr("text-anchor", k ? "middle" : "start").text(o.start), k || c.append("text").attr("x", g + h).attr("y", f).attr("class", "packetByte end").attr("dominant-baseline", "auto").attr("text-anchor", "end").text(o.end);
94
94
  }
95
- }, "drawWord"), K = { draw: G }, U = {
95
+ }, "drawWord"), K = { draw: G }, O = {
96
96
  byteFontSize: "10px",
97
97
  startByteColor: "black",
98
98
  endByteColor: "black",
@@ -103,8 +103,8 @@ var L = W.packet, u, v = (u = class {
103
103
  blockStrokeColor: "black",
104
104
  blockStrokeWidth: "1",
105
105
  blockFillColor: "#efefef"
106
- }, j = /* @__PURE__ */ b(({ packet: e } = {}) => {
107
- const t = m(U, e);
106
+ }, R = /* @__PURE__ */ b(({ packet: e } = {}) => {
107
+ const t = m(O, e);
108
108
  return `
109
109
  .packetByte {
110
110
  font-size: ${t.byteFontSize};
@@ -129,14 +129,14 @@ var L = W.packet, u, v = (u = class {
129
129
  fill: ${t.blockFillColor};
130
130
  }
131
131
  `;
132
- }, "styles"), V = {
132
+ }, "styles"), X = {
133
133
  parser: x,
134
134
  get db() {
135
135
  return new v();
136
136
  },
137
137
  renderer: K,
138
- styles: j
138
+ styles: R
139
139
  };
140
140
  export {
141
- V as diagram
141
+ X as diagram
142
142
  };