@automattic/agenttic-ui 0.1.11 → 0.1.12

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 (343) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +2037 -41
  5. package/package.json +2 -5
  6. package/dist/_basePickBy-Co6w2C-t.js +0 -151
  7. package/dist/_baseUniq-BbhifY2s.js +0 -614
  8. package/dist/abap-Y8Dl9g_6.js +0 -6
  9. package/dist/actionscript-3-DZzbMeqX.js +0 -6
  10. package/dist/ada-vP6ak0IW.js +0 -6
  11. package/dist/andromeeda-uXNdzNpk.js +0 -4
  12. package/dist/angular-html-BmadGEgW.js +0 -32
  13. package/dist/angular-ts-D-QQnnGT.js +0 -21
  14. package/dist/apache-BUjz-sD2.js +0 -6
  15. package/dist/apex-D_wPycVx.js +0 -6
  16. package/dist/apl-sitt7C8I.js +0 -16
  17. package/dist/applescript-BPx7YFFu.js +0 -6
  18. package/dist/ara-Z2fSOxSw.js +0 -6
  19. package/dist/arc-DMQNivgh.js +0 -83
  20. package/dist/architecture-O4VJ6CD3-CrsUkgBe.js +0 -5
  21. package/dist/architectureDiagram-KFL7JDKH-BCeU_Tkj.js +0 -4665
  22. package/dist/asciidoc-B-pCoB3G.js +0 -6
  23. package/dist/asm-BTWLY5ym.js +0 -6
  24. package/dist/astro-DHnp0xIo.js +0 -18
  25. package/dist/aurora-x-BwoVEUWZ.js +0 -4
  26. package/dist/awk-Fb0P9dkn.js +0 -6
  27. package/dist/ayu-dark-CxPZkpb2.js +0 -4
  28. package/dist/ballerina-oZK-YekG.js +0 -6
  29. package/dist/bat-0FvbqU9S.js +0 -6
  30. package/dist/beancount-DEfTbbFX.js +0 -6
  31. package/dist/berry-PwsHPR_K.js +0 -6
  32. package/dist/bibtex-EULQRLY5.js +0 -6
  33. package/dist/bicep-DFU2oTl7.js +0 -6
  34. package/dist/blade-OPzGcV14.js +0 -20
  35. package/dist/blockDiagram-ZYB65J3Q-eNfG2owp.js +0 -2265
  36. package/dist/bsl-NkNNwerW.js +0 -8
  37. package/dist/c-eeMepfLm.js +0 -6
  38. package/dist/c4Diagram-AAMF2YG6-CEVcZg_d.js +0 -1581
  39. package/dist/cadence-DMRWHJp4.js +0 -6
  40. package/dist/cairo-DM6WF2e3.js +0 -8
  41. package/dist/catppuccin-frappe-DlGpEc12.js +0 -4
  42. package/dist/catppuccin-latte-DDI4I_Rd.js +0 -4
  43. package/dist/catppuccin-macchiato-BBzuZG5U.js +0 -4
  44. package/dist/catppuccin-mocha-CwrFPXRy.js +0 -4
  45. package/dist/channel-DwkBtswx.js +0 -5
  46. package/dist/chunk-ANTBXLJU-DjsG4Faa.js +0 -9
  47. package/dist/chunk-FHKO5MBM-DvgpKHah.js +0 -15
  48. package/dist/chunk-GLLZNHP4-BS9MWsNn.js +0 -19
  49. package/dist/chunk-JBRWN2VN-BB1oFn95.js +0 -1376
  50. package/dist/chunk-LXBSTHXV-DoWWvL-R.js +0 -1382
  51. package/dist/chunk-NRVI72HA-CN8BG5Yn.js +0 -20
  52. package/dist/chunk-OMD6QJNC-D7UKmZm8.js +0 -64
  53. package/dist/chunk-WVR4S24B-D3bw0yi4.js +0 -8
  54. package/dist/clarity-BseSxcHx.js +0 -6
  55. package/dist/classDiagram-3BZAVTQC-DhpbenB7.js +0 -16
  56. package/dist/classDiagram-v2-QTMF73CY-DhpbenB7.js +0 -16
  57. package/dist/clojure-CXJfHrL3.js +0 -6
  58. package/dist/clone-DmrWxu_i.js +0 -8
  59. package/dist/cmake-BJz8BOTU.js +0 -6
  60. package/dist/cobol-4A8XjHhj.js +0 -10
  61. package/dist/codeowners-Bt9yU6NX.js +0 -6
  62. package/dist/codeql-DHkodjjI.js +0 -6
  63. package/dist/coffee-Dl27lzbd.js +0 -8
  64. package/dist/common-lisp-EVqT9Zhp.js +0 -6
  65. package/dist/coq-B0L9upzn.js +0 -6
  66. package/dist/cpp-Cj177cuW.js +0 -18
  67. package/dist/crystal-ymVvJzbZ.js +0 -18
  68. package/dist/csharp-DmxfTLWR.js +0 -6
  69. package/dist/css-CECN5uSL.js +0 -6
  70. package/dist/csv-CmYOceLb.js +0 -6
  71. package/dist/cue-ZzumE7IT.js +0 -6
  72. package/dist/cypher-jpdmjtA6.js +0 -6
  73. package/dist/cytoscape.esm-ZmItrg9y.js +0 -18731
  74. package/dist/d-CBagWSwH.js +0 -6
  75. package/dist/dagre-2BBEFEWP-DWbEdWsD.js +0 -447
  76. package/dist/dark-plus-pUHDTVV0.js +0 -4
  77. package/dist/dart-6ObCrKr9.js +0 -6
  78. package/dist/dax-CcDT-8dH.js +0 -6
  79. package/dist/defaultLocale-D7EN2tov.js +0 -171
  80. package/dist/desktop-B93p9R9O.js +0 -6
  81. package/dist/diagram-4IRLE6MV-Q8q6qm5n.js +0 -534
  82. package/dist/diagram-GUPCWM2R-B8VhFieT.js +0 -143
  83. package/dist/diagram-RP2FKANI-CYWUKKLB.js +0 -221
  84. package/dist/diff-BxzP2J8R.js +0 -6
  85. package/dist/docker-CsHqm9tx.js +0 -6
  86. package/dist/dotenv-BMjVjUL1.js +0 -6
  87. package/dist/dracula-BtZx2Kac.js +0 -4
  88. package/dist/dracula-soft-BKa-aqBv.js +0 -4
  89. package/dist/dream-maker-PAx17jaB.js +0 -6
  90. package/dist/edge-_LvgTcmu.js +0 -12
  91. package/dist/elixir-BTCUAmQk.js +0 -8
  92. package/dist/elm-BtNbw_Cd.js +0 -8
  93. package/dist/emacs-lisp-Cfxdx5D-.js +0 -6
  94. package/dist/erDiagram-HZWUO2LU-CC0RhTpv.js +0 -842
  95. package/dist/erb-D0PIpZCP.js +0 -10
  96. package/dist/erlang-xM7DPKQj.js +0 -8
  97. package/dist/everforest-dark-DMCBqXCK.js +0 -4
  98. package/dist/everforest-light-BbXl82Em.js +0 -4
  99. package/dist/fennel-N4WcXuKx.js +0 -6
  100. package/dist/fish-B6QqlqeT.js +0 -6
  101. package/dist/flowDiagram-THRYKUMA-B00E_hY6.js +0 -1627
  102. package/dist/fluent-BMXUxfv1.js +0 -6
  103. package/dist/fortran-fixed-form-DUsA-VGo.js +0 -8
  104. package/dist/fortran-free-form-DPIT_jbP.js +0 -6
  105. package/dist/fsharp-BTdsmEUN.js +0 -8
  106. package/dist/ganttDiagram-WV7ZQ7D5-Cv2vsghm.js +0 -2499
  107. package/dist/gdresource-DLfsylRW.js +0 -10
  108. package/dist/gdscript-9lm8qppb.js +0 -6
  109. package/dist/gdshader-Bk8fF6yr.js +0 -6
  110. package/dist/genie-DzUvd7U9.js +0 -6
  111. package/dist/gherkin-DHRaV0YP.js +0 -6
  112. package/dist/git-commit-Bd32YZ0K.js +0 -8
  113. package/dist/git-rebase-ZWUFO_T4.js +0 -8
  114. package/dist/gitGraph-ZV4HHKMB-Bj31zYat.js +0 -5
  115. package/dist/gitGraphDiagram-OJR772UL-BGrYC5q0.js +0 -712
  116. package/dist/github-dark-DenFmJkN.js +0 -4
  117. package/dist/github-dark-default-BJPUVz4H.js +0 -4
  118. package/dist/github-dark-dimmed-DUshB20C.js +0 -4
  119. package/dist/github-dark-high-contrast-D3aGCnF8.js +0 -4
  120. package/dist/github-light-JYsPkUQd.js +0 -4
  121. package/dist/github-light-default-D99KPAby.js +0 -4
  122. package/dist/github-light-high-contrast-BbmZE-Mp.js +0 -4
  123. package/dist/gleam-Bv284lvN.js +0 -6
  124. package/dist/glimmer-js-CkxRszZZ.js +0 -14
  125. package/dist/glimmer-ts-Bi6BYQCn.js +0 -14
  126. package/dist/glsl-CkUcVZNK.js +0 -8
  127. package/dist/gnuplot-yPG9-sE_.js +0 -6
  128. package/dist/go-ChxJuLYK.js +0 -6
  129. package/dist/graph-DaSuptw6.js +0 -247
  130. package/dist/graphql-BLaPX4fU.js +0 -14
  131. package/dist/groovy-CJQTphOW.js +0 -6
  132. package/dist/gruvbox-dark-hard-C2ND4cMr.js +0 -4
  133. package/dist/gruvbox-dark-medium-C8k4c8au.js +0 -4
  134. package/dist/gruvbox-dark-soft-xx9Q6FaG.js +0 -4
  135. package/dist/gruvbox-light-hard-BpUXv5in.js +0 -4
  136. package/dist/gruvbox-light-medium-D3XFCoU1.js +0 -4
  137. package/dist/gruvbox-light-soft-u7hpfz6Z.js +0 -4
  138. package/dist/hack-Bx1jMtBC.js +0 -10
  139. package/dist/haml-6FagfhCM.js +0 -10
  140. package/dist/handlebars-Bd5Y4M6I.js +0 -14
  141. package/dist/haskell-WeIwNIP6.js +0 -6
  142. package/dist/haxe-TztHsm5T.js +0 -6
  143. package/dist/hcl-D438OF-I.js +0 -6
  144. package/dist/hjson-DYBUbqOl.js +0 -6
  145. package/dist/hlsl-Bk8TCZNL.js +0 -6
  146. package/dist/houston-BDYrDoDW.js +0 -4
  147. package/dist/html-7XVNRwN7.js +0 -10
  148. package/dist/html-derivative-BNxZ5Yf6.js +0 -8
  149. package/dist/http-WC357zBG.js +0 -14
  150. package/dist/hxml-GbqSQCLa.js +0 -8
  151. package/dist/hy-Brt5EZ7-.js +0 -6
  152. package/dist/imba-CimUv-Uh.js +0 -6
  153. package/dist/index-DR9mkSeU.js +0 -29474
  154. package/dist/info-63CPKGFF-DnZM8nKQ.js +0 -5
  155. package/dist/infoDiagram-DDUCL6P7-ClQolrbt.js +0 -24
  156. package/dist/ini-BZIuRIvJ.js +0 -6
  157. package/dist/init-DjUOC4st.js +0 -16
  158. package/dist/java-DY6VlHhP.js +0 -6
  159. package/dist/javascript-Dp1Jmi5H.js +0 -6
  160. package/dist/jinja-WEhOU5ES.js +0 -11
  161. package/dist/jison-c2JI40PB.js +0 -8
  162. package/dist/journeyDiagram-FFXJYRFH-P_IVMTj2.js +0 -836
  163. package/dist/json-DxJze_jm.js +0 -6
  164. package/dist/json5-BT4Fjg39.js +0 -6
  165. package/dist/jsonc-CHjZD8gR.js +0 -6
  166. package/dist/jsonl-BGuvDmy9.js +0 -6
  167. package/dist/jsonnet-Bx2cfsXg.js +0 -6
  168. package/dist/jssm-BcADi6EI.js +0 -6
  169. package/dist/jsx-BtKADgXT.js +0 -6
  170. package/dist/julia-DcoDQokW.js +0 -16
  171. package/dist/kanagawa-dragon-CiKur4Hl.js +0 -4
  172. package/dist/kanagawa-lotus-BKu-smKu.js +0 -4
  173. package/dist/kanagawa-wave-CQwozSzG.js +0 -4
  174. package/dist/kanban-definition-KOZQBZVT-Uk8JKe_b.js +0 -720
  175. package/dist/kotlin-ByBMgTeR.js +0 -6
  176. package/dist/kusto-VWFLl2T0.js +0 -6
  177. package/dist/laserwave-6a00oqik.js +0 -4
  178. package/dist/latex-MZCpjnva.js +0 -8
  179. package/dist/layout-BHKAMNdk.js +0 -1324
  180. package/dist/lean-DXqEE_d1.js +0 -6
  181. package/dist/less-B1GLI2Di.js +0 -6
  182. package/dist/light-plus-CZuVqSLX.js +0 -4
  183. package/dist/linear-UAzexi4b.js +0 -255
  184. package/dist/liquid-3HHuHOZ2.js +0 -14
  185. package/dist/llvm-6RQLId6G.js +0 -6
  186. package/dist/log-Al8wyEFV.js +0 -6
  187. package/dist/logo-DBa4JDzV.js +0 -6
  188. package/dist/lua-kX5WP_P5.js +0 -8
  189. package/dist/luau-BeoZWRh5.js +0 -6
  190. package/dist/make-CsMclxtr.js +0 -6
  191. package/dist/markdown-CiI2E98D.js +0 -6
  192. package/dist/marko-L-KhXzqZ.js +0 -14
  193. package/dist/material-theme-D6KBX41T.js +0 -4
  194. package/dist/material-theme-darker-CkRroheE.js +0 -4
  195. package/dist/material-theme-lighter-BUBw43Yz.js +0 -4
  196. package/dist/material-theme-ocean-ClGX14Ja.js +0 -4
  197. package/dist/material-theme-palenight-C1RVm8K1.js +0 -4
  198. package/dist/matlab-BOAaUVP0.js +0 -6
  199. package/dist/mdc-DPBWa7dN.js +0 -12
  200. package/dist/mdx-BOhZZUJ8.js +0 -6
  201. package/dist/mermaid-B0ixDHKN.js +0 -6
  202. package/dist/mermaid-parser.core-FuzJzmL7.js +0 -12921
  203. package/dist/mermaid.core-D7qBd055.js +0 -14002
  204. package/dist/min-dark-C7ak0t6c.js +0 -4
  205. package/dist/min-light-CKFxVcPp.js +0 -4
  206. package/dist/mindmap-definition-LNHGMQRG-D1C2-kkn.js +0 -3229
  207. package/dist/mipsasm-CTx18fBl.js +0 -6
  208. package/dist/mojo-BD611d7o.js +0 -6
  209. package/dist/monokai-C1KBYcO0.js +0 -4
  210. package/dist/move-653S600C.js +0 -6
  211. package/dist/narrat-DmhDCBs-.js +0 -6
  212. package/dist/nextflow-D1Zd9cNl.js +0 -6
  213. package/dist/nginx-5vhPAEw3.js +0 -8
  214. package/dist/night-owl-Bm2rzalh.js +0 -4
  215. package/dist/nim-Fi8wNe6i.js +0 -20
  216. package/dist/nix-ceY58Dty.js +0 -6
  217. package/dist/nord-CC5OiUXg.js +0 -4
  218. package/dist/nushell-Be2rueDv.js +0 -6
  219. package/dist/objective-c-Itk8tzmv.js +0 -6
  220. package/dist/objective-cpp-DGt5UKRO.js +0 -6
  221. package/dist/ocaml-eSVK32Eg.js +0 -6
  222. package/dist/one-dark-pro-DTA3VF0_.js +0 -4
  223. package/dist/one-light-D9sNaUtq.js +0 -4
  224. package/dist/ordinal-DfAQgscy.js +0 -61
  225. package/dist/packet-HUATNLJX-B5EJOyma.js +0 -5
  226. package/dist/pascal-xy8pJNns.js +0 -6
  227. package/dist/perl-BoEn6HmT.js +0 -16
  228. package/dist/php-BRU9zhoN.js +0 -18
  229. package/dist/pie-WTHONI2E-Bl1BKqE7.js +0 -5
  230. package/dist/pieDiagram-DBDJKBY4-BkVTsR1n.js +0 -161
  231. package/dist/plastic-CSTz3KZp.js +0 -4
  232. package/dist/plsql-pVbGZfOv.js +0 -6
  233. package/dist/po-BNfHvqmm.js +0 -6
  234. package/dist/poimandres-C-VADXHD.js +0 -4
  235. package/dist/polar-CAZahv3u.js +0 -6
  236. package/dist/postcss-05aHdL-n.js +0 -6
  237. package/dist/powerquery-DI9HkTvs.js +0 -6
  238. package/dist/powershell-Clc4ydu-.js +0 -6
  239. package/dist/prisma-FZjmVtSl.js +0 -6
  240. package/dist/prolog-C5-yg4TO.js +0 -6
  241. package/dist/proto-MmCPeFAD.js +0 -6
  242. package/dist/pug-CJWI-qSo.js +0 -12
  243. package/dist/puppet-CUJHmnxV.js +0 -6
  244. package/dist/purescript-rUfGld-4.js +0 -6
  245. package/dist/python-BFNSHbwJ.js +0 -6
  246. package/dist/qml-D3ATcgGh.js +0 -8
  247. package/dist/qmldir-BInDYbpo.js +0 -6
  248. package/dist/qss-AeJTysr_.js +0 -6
  249. package/dist/quadrantDiagram-YPSRARAO-D1el8UE7.js +0 -1024
  250. package/dist/r-Bm0uF0U2.js +0 -6
  251. package/dist/racket-B83wSAja.js +0 -6
  252. package/dist/radar-NJJJXTRR-Ba8Estdw.js +0 -5
  253. package/dist/raku-nEQ4ZJJ7.js +0 -6
  254. package/dist/razor-BPFYEoc9.js +0 -10
  255. package/dist/red-7y8PH7HH.js +0 -4
  256. package/dist/reg-m_s_Kiip.js +0 -6
  257. package/dist/regexp-BazyLpPg.js +0 -6
  258. package/dist/rel-BcRfyd6Q.js +0 -6
  259. package/dist/requirementDiagram-EGVEC5DT-DL1bEAjs.js +0 -852
  260. package/dist/riscv-Ce8MAQLP.js +0 -6
  261. package/dist/rose-pine-Cr4kwgAY.js +0 -4
  262. package/dist/rose-pine-dawn-ClRRUdXX.js +0 -4
  263. package/dist/rose-pine-moon-ucNn3Gm8.js +0 -4
  264. package/dist/rst-B6mPMsKo.js +0 -22
  265. package/dist/ruby-DInklMmU.js +0 -30
  266. package/dist/rust-CLzF9zIN.js +0 -6
  267. package/dist/sankeyDiagram-HRAUVNP4-Dyr3TqRu.js +0 -810
  268. package/dist/sas-fpEvgATw.js +0 -8
  269. package/dist/sass-DxHp5rTx.js +0 -6
  270. package/dist/scala-D4grkFkl.js +0 -6
  271. package/dist/scheme-BCRWuEm4.js +0 -6
  272. package/dist/scss-B1FaCqwR.js +0 -8
  273. package/dist/sdbl-B7T8abf4.js +0 -6
  274. package/dist/sequenceDiagram-4MX5Z3NR-CaMVkEvG.js +0 -2283
  275. package/dist/shaderlab-Cr62-Wb4.js +0 -8
  276. package/dist/shellscript-InADTalH.js +0 -6
  277. package/dist/shellsession-DiDJNQdy.js +0 -8
  278. package/dist/slack-dark-i7wN4OET.js +0 -4
  279. package/dist/slack-ochin-ndHf0LoP.js +0 -4
  280. package/dist/smalltalk-BlI1_OkM.js +0 -6
  281. package/dist/snazzy-light-BlSJXAu4.js +0 -4
  282. package/dist/solarized-dark-UTmkh7lw.js +0 -4
  283. package/dist/solarized-light-BheCkDPT.js +0 -4
  284. package/dist/solidity-CneOhxmR.js +0 -6
  285. package/dist/soy-LybuU3Y_.js +0 -8
  286. package/dist/sparql-B0KWFEri.js +0 -8
  287. package/dist/splunk-CRXR8A9s.js +0 -6
  288. package/dist/sql-Cn_v3PB0.js +0 -6
  289. package/dist/ssh-config-DP-hNVbF.js +0 -6
  290. package/dist/stata-B8c5fTjX.js +0 -8
  291. package/dist/stateDiagram-UUKSUZ4H-D-xTiq6H.js +0 -263
  292. package/dist/stateDiagram-v2-EYPG3UTE-BK5bFTpp.js +0 -16
  293. package/dist/stylus-CyKEU1Ej.js +0 -6
  294. package/dist/svelte-BjDUPxZ1.js +0 -14
  295. package/dist/swift-_uF_96_m.js +0 -6
  296. package/dist/synthwave-84-NU3C_KFZ.js +0 -4
  297. package/dist/system-verilog-BCm7smPJ.js +0 -6
  298. package/dist/systemd-C-4qm6XH.js +0 -6
  299. package/dist/talonscript-CFF3LF_O.js +0 -6
  300. package/dist/tasl-Cg_WBUAe.js +0 -6
  301. package/dist/tcl-DN7buRTF.js +0 -6
  302. package/dist/templ-Brj2RH7A.js +0 -12
  303. package/dist/terraform-DGvcn9zM.js +0 -6
  304. package/dist/tex-CmrLTxbG.js +0 -8
  305. package/dist/timeline-definition-3HZDQTIS-DbCuAY-N.js +0 -801
  306. package/dist/tokyo-night-DP4TmcQl.js +0 -4
  307. package/dist/toml-DY62mUL_.js +0 -6
  308. package/dist/treemap-75Q7IDZK-RcudvwLc.js +0 -5
  309. package/dist/ts-tags-CZMzuZh-.js +0 -41
  310. package/dist/tsv-BtvSkaG0.js +0 -6
  311. package/dist/tsx-B8rCNbgL.js +0 -6
  312. package/dist/turtle-_H59FV7D.js +0 -6
  313. package/dist/twig-GjIxYqCX.js +0 -18
  314. package/dist/typescript-mg6ATTE8.js +0 -6
  315. package/dist/typespec-Djmco60m.js +0 -6
  316. package/dist/typst-D_1QKWns.js +0 -6
  317. package/dist/v-BW14IZv7.js +0 -6
  318. package/dist/vala-uxaPR7d1.js +0 -6
  319. package/dist/vb-D8_c5-KN.js +0 -6
  320. package/dist/verilog-B-bybjPF.js +0 -6
  321. package/dist/vesper-BckBta1U.js +0 -4
  322. package/dist/vhdl-CUlNa8ac.js +0 -6
  323. package/dist/viml-DsfA-sWm.js +0 -6
  324. package/dist/vitesse-black-BoGvW84i.js +0 -4
  325. package/dist/vitesse-dark-Cym-eLtO.js +0 -4
  326. package/dist/vitesse-light-CcmG315c.js +0 -4
  327. package/dist/vue-D-ba2-Rx.js +0 -31
  328. package/dist/vue-html-Dn2ZoOSz.js +0 -10
  329. package/dist/vue-vine-Jmfkm6lF.js +0 -20
  330. package/dist/vyper-CPQuu50u.js +0 -6
  331. package/dist/wasm-BBXxrAl7.js +0 -6
  332. package/dist/wasm-DQxwEHae.js +0 -7
  333. package/dist/wenyan-pbVjoM9_.js +0 -6
  334. package/dist/wgsl-DY4iK1q1.js +0 -6
  335. package/dist/wikitext-Z-MoUasO.js +0 -6
  336. package/dist/wit-CQMQOlTg.js +0 -6
  337. package/dist/wolfram-Dz4KXISs.js +0 -6
  338. package/dist/xml-C2J0sS9M.js +0 -8
  339. package/dist/xsl-BmSZphgC.js +0 -8
  340. package/dist/xychartDiagram-FDP5SA34-NGeBTA9Y.js +0 -1340
  341. package/dist/yaml-DaO7k5B1.js +0 -6
  342. package/dist/zenscript-CxBjpf9c.js +0 -6
  343. package/dist/zig-Vm0PO9wB.js +0 -6
@@ -1,534 +0,0 @@
1
- import { s as he } from "./chunk-NRVI72HA-CN8BG5Yn.js";
2
- import { _ as w, F as te, G as ae, K as ue, e as pe, l as J, aY as P, d as j, b as fe, a as ge, q as me, t as ye, g as Se, s as ve, H as xe, aZ as be, z as we } from "./mermaid.core-D7qBd055.js";
3
- import { p as Ce } from "./chunk-ANTBXLJU-DjsG4Faa.js";
4
- import { p as Te } from "./mermaid-parser.core-FuzJzmL7.js";
5
- import { b as O } from "./defaultLocale-D7EN2tov.js";
6
- import { o as U } from "./ordinal-DfAQgscy.js";
7
- function Le(t) {
8
- var a = 0, l = t.children, n = l && l.length;
9
- if (!n) a = 1;
10
- else for (; --n >= 0; ) a += l[n].value;
11
- t.value = a;
12
- }
13
- function $e() {
14
- return this.eachAfter(Le);
15
- }
16
- function Ae(t, a) {
17
- let l = -1;
18
- for (const n of this)
19
- t.call(a, n, ++l, this);
20
- return this;
21
- }
22
- function Fe(t, a) {
23
- for (var l = this, n = [l], o, s, d = -1; l = n.pop(); )
24
- if (t.call(a, l, ++d, this), o = l.children)
25
- for (s = o.length - 1; s >= 0; --s)
26
- n.push(o[s]);
27
- return this;
28
- }
29
- function ke(t, a) {
30
- for (var l = this, n = [l], o = [], s, d, h, g = -1; l = n.pop(); )
31
- if (o.push(l), s = l.children)
32
- for (d = 0, h = s.length; d < h; ++d)
33
- n.push(s[d]);
34
- for (; l = o.pop(); )
35
- t.call(a, l, ++g, this);
36
- return this;
37
- }
38
- function Ne(t, a) {
39
- let l = -1;
40
- for (const n of this)
41
- if (t.call(a, n, ++l, this))
42
- return n;
43
- }
44
- function Me(t) {
45
- return this.eachAfter(function(a) {
46
- for (var l = +t(a.data) || 0, n = a.children, o = n && n.length; --o >= 0; ) l += n[o].value;
47
- a.value = l;
48
- });
49
- }
50
- function _e(t) {
51
- return this.eachBefore(function(a) {
52
- a.children && a.children.sort(t);
53
- });
54
- }
55
- function ze(t) {
56
- for (var a = this, l = Ve(a, t), n = [a]; a !== l; )
57
- a = a.parent, n.push(a);
58
- for (var o = n.length; t !== l; )
59
- n.splice(o, 0, t), t = t.parent;
60
- return n;
61
- }
62
- function Ve(t, a) {
63
- if (t === a) return t;
64
- var l = t.ancestors(), n = a.ancestors(), o = null;
65
- for (t = l.pop(), a = n.pop(); t === a; )
66
- o = t, t = l.pop(), a = n.pop();
67
- return o;
68
- }
69
- function De() {
70
- for (var t = this, a = [t]; t = t.parent; )
71
- a.push(t);
72
- return a;
73
- }
74
- function Pe() {
75
- return Array.from(this);
76
- }
77
- function Be() {
78
- var t = [];
79
- return this.eachBefore(function(a) {
80
- a.children || t.push(a);
81
- }), t;
82
- }
83
- function Re() {
84
- var t = this, a = [];
85
- return t.each(function(l) {
86
- l !== t && a.push({ source: l.parent, target: l });
87
- }), a;
88
- }
89
- function* Ee() {
90
- var t = this, a, l = [t], n, o, s;
91
- do
92
- for (a = l.reverse(), l = []; t = a.pop(); )
93
- if (yield t, n = t.children)
94
- for (o = 0, s = n.length; o < s; ++o)
95
- l.push(n[o]);
96
- while (l.length);
97
- }
98
- function Q(t, a) {
99
- t instanceof Map ? (t = [void 0, t], a === void 0 && (a = Ie)) : a === void 0 && (a = He);
100
- for (var l = new Z(t), n, o = [l], s, d, h, g; n = o.pop(); )
101
- if ((d = a(n.data)) && (g = (d = Array.from(d)).length))
102
- for (n.children = d, h = g - 1; h >= 0; --h)
103
- o.push(s = d[h] = new Z(d[h])), s.parent = n, s.depth = n.depth + 1;
104
- return l.eachBefore(Ge);
105
- }
106
- function We() {
107
- return Q(this).eachBefore(Oe);
108
- }
109
- function He(t) {
110
- return t.children;
111
- }
112
- function Ie(t) {
113
- return Array.isArray(t) ? t[1] : null;
114
- }
115
- function Oe(t) {
116
- t.data.value !== void 0 && (t.value = t.data.value), t.data = t.data.data;
117
- }
118
- function Ge(t) {
119
- var a = 0;
120
- do
121
- t.height = a;
122
- while ((t = t.parent) && t.height < ++a);
123
- }
124
- function Z(t) {
125
- this.data = t, this.depth = this.height = 0, this.parent = null;
126
- }
127
- Z.prototype = Q.prototype = {
128
- constructor: Z,
129
- count: $e,
130
- each: Ae,
131
- eachAfter: ke,
132
- eachBefore: Fe,
133
- find: Ne,
134
- sum: Me,
135
- sort: _e,
136
- path: ze,
137
- ancestors: De,
138
- descendants: Pe,
139
- leaves: Be,
140
- links: Re,
141
- copy: We,
142
- [Symbol.iterator]: Ee
143
- };
144
- function qe(t) {
145
- if (typeof t != "function") throw new Error();
146
- return t;
147
- }
148
- function G() {
149
- return 0;
150
- }
151
- function q(t) {
152
- return function() {
153
- return t;
154
- };
155
- }
156
- function Xe(t) {
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
- }
159
- function Ye(t, a, l, n, o) {
160
- for (var s = t.children, d, h = -1, g = s.length, c = t.value && (n - a) / t.value; ++h < g; )
161
- d = s[h], d.y0 = l, d.y1 = o, d.x0 = a, d.x1 = a += d.value * c;
162
- }
163
- function je(t, a, l, n, o) {
164
- for (var s = t.children, d, h = -1, g = s.length, c = t.value && (o - l) / t.value; ++h < g; )
165
- d = s[h], d.x0 = a, d.x1 = n, d.y0 = l, d.y1 = l += d.value * c;
166
- }
167
- var Ze = (1 + Math.sqrt(5)) / 2;
168
- function Ke(t, a, l, n, o, s) {
169
- for (var d = [], h = a.children, g, c, u = 0, b = 0, r = h.length, x, S, v = a.value, p, m, N, k, V, E, M; u < r; ) {
170
- x = o - l, S = s - n;
171
- do
172
- p = h[b++].value;
173
- while (!p && b < r);
174
- for (m = N = p, E = Math.max(S / x, x / S) / (v * t), M = p * p * E, V = Math.max(N / M, M / m); b < r; ++b) {
175
- if (p += c = h[b].value, c < m && (m = c), c > N && (N = c), M = p * p * E, k = Math.max(N / M, M / m), k > V) {
176
- p -= c;
177
- break;
178
- }
179
- V = k;
180
- }
181
- d.push(g = { value: p, dice: x < S, children: h.slice(u, b) }), g.dice ? Ye(g, l, n, o, v ? n += S * p / v : s) : je(g, l, n, v ? l += x * p / v : o, s), v -= p, u = b;
182
- }
183
- return d;
184
- }
185
- const Ue = function t(a) {
186
- function l(n, o, s, d, h) {
187
- Ke(a, n, o, s, d, h);
188
- }
189
- return l.ratio = function(n) {
190
- return t((n = +n) > 1 ? n : 1);
191
- }, l;
192
- }(Ze);
193
- function Je() {
194
- var t = Ue, a = !1, l = 1, n = 1, o = [0], s = G, d = G, h = G, g = G, c = G;
195
- function u(r) {
196
- return r.x0 = r.y0 = 0, r.x1 = l, r.y1 = n, r.eachBefore(b), o = [0], a && r.eachBefore(Xe), r;
197
- }
198
- function b(r) {
199
- var x = o[r.depth], S = r.x0 + x, v = r.y0 + x, p = r.x1 - x, m = r.y1 - x;
200
- p < S && (S = p = (S + p) / 2), m < v && (v = m = (v + m) / 2), r.x0 = S, r.y0 = v, r.x1 = p, r.y1 = m, r.children && (x = o[r.depth + 1] = s(r) / 2, S += c(r) - x, v += d(r) - x, p -= h(r) - x, m -= g(r) - x, p < S && (S = p = (S + p) / 2), m < v && (v = m = (v + m) / 2), t(r, S, v, p, m));
201
- }
202
- return u.round = function(r) {
203
- return arguments.length ? (a = !!r, u) : a;
204
- }, u.size = function(r) {
205
- return arguments.length ? (l = +r[0], n = +r[1], u) : [l, n];
206
- }, u.tile = function(r) {
207
- return arguments.length ? (t = qe(r), u) : t;
208
- }, u.padding = function(r) {
209
- return arguments.length ? u.paddingInner(r).paddingOuter(r) : u.paddingInner();
210
- }, u.paddingInner = function(r) {
211
- return arguments.length ? (s = typeof r == "function" ? r : q(+r), u) : s;
212
- }, u.paddingOuter = function(r) {
213
- return arguments.length ? u.paddingTop(r).paddingRight(r).paddingBottom(r).paddingLeft(r) : u.paddingTop();
214
- }, u.paddingTop = function(r) {
215
- return arguments.length ? (d = typeof r == "function" ? r : q(+r), u) : d;
216
- }, u.paddingRight = function(r) {
217
- return arguments.length ? (h = typeof r == "function" ? r : q(+r), u) : h;
218
- }, u.paddingBottom = function(r) {
219
- return arguments.length ? (g = typeof r == "function" ? r : q(+r), u) : g;
220
- }, u.paddingLeft = function(r) {
221
- return arguments.length ? (c = typeof r == "function" ? r : q(+r), u) : c;
222
- }, u;
223
- }
224
- var R, ne = (R = class {
225
- constructor() {
226
- this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = fe, this.getAccTitle = ge, this.setDiagramTitle = me, this.getDiagramTitle = ye, this.getAccDescription = Se, this.setAccDescription = ve;
227
- }
228
- getNodes() {
229
- return this.nodes;
230
- }
231
- getConfig() {
232
- const a = xe, l = ae();
233
- return te({
234
- ...a.treemap,
235
- ...l.treemap ?? {}
236
- });
237
- }
238
- addNode(a, l) {
239
- this.nodes.push(a), this.levels.set(a, l), l === 0 && (this.outerNodes.push(a), this.root ?? (this.root = a));
240
- }
241
- getRoot() {
242
- return { name: "", children: this.outerNodes };
243
- }
244
- addClass(a, l) {
245
- const n = this.classes.get(a) ?? { id: a, styles: [], textStyles: [] }, o = l.replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
246
- o && o.forEach((s) => {
247
- be(s) && (n != null && n.textStyles ? n.textStyles.push(s) : n.textStyles = [s]), n != null && n.styles ? n.styles.push(s) : n.styles = [s];
248
- }), this.classes.set(a, n);
249
- }
250
- getClasses() {
251
- return this.classes;
252
- }
253
- getStylesForClass(a) {
254
- var l;
255
- return ((l = this.classes.get(a)) == null ? void 0 : l.styles) ?? [];
256
- }
257
- clear() {
258
- we(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
259
- }
260
- }, w(R, "TreeMapDB"), R);
261
- function le(t) {
262
- if (!t.length)
263
- return [];
264
- const a = [], l = [];
265
- return t.forEach((n) => {
266
- const o = {
267
- name: n.name,
268
- children: n.type === "Leaf" ? void 0 : []
269
- };
270
- for (o.classSelector = n == null ? void 0 : n.classSelector, n != null && n.cssCompiledStyles && (o.cssCompiledStyles = [n.cssCompiledStyles]), n.type === "Leaf" && n.value !== void 0 && (o.value = n.value); l.length > 0 && l[l.length - 1].level >= n.level; )
271
- l.pop();
272
- if (l.length === 0)
273
- a.push(o);
274
- else {
275
- const s = l[l.length - 1].node;
276
- s.children ? s.children.push(o) : s.children = [o];
277
- }
278
- n.type !== "Leaf" && l.push({ node: o, level: n.level });
279
- }), a;
280
- }
281
- w(le, "buildHierarchy");
282
- var Qe = /* @__PURE__ */ w((t, a) => {
283
- Ce(t, a);
284
- const l = [];
285
- for (const s of t.TreemapRows ?? [])
286
- s.$type === "ClassDefStatement" && a.addClass(s.className ?? "", s.styleText ?? "");
287
- for (const s of t.TreemapRows ?? []) {
288
- const d = s.item;
289
- if (!d)
290
- continue;
291
- const h = s.indent ? parseInt(s.indent) : 0, g = et(d), c = d.classSelector ? a.getStylesForClass(d.classSelector) : [], u = c.length > 0 ? c.join(";") : void 0, b = {
292
- level: h,
293
- name: g,
294
- type: d.$type,
295
- value: d.value,
296
- classSelector: d.classSelector,
297
- cssCompiledStyles: u
298
- };
299
- l.push(b);
300
- }
301
- const n = le(l), o = /* @__PURE__ */ w((s, d) => {
302
- for (const h of s)
303
- a.addNode(h, d), h.children && h.children.length > 0 && o(h.children, d + 1);
304
- }, "addNodesRecursively");
305
- o(n, 0);
306
- }, "populate"), et = /* @__PURE__ */ w((t) => t.name ? String(t.name) : "", "getItemName"), re = {
307
- // @ts-expect-error - TreeMapDB is not assignable to DiagramDB
308
- parser: { yy: void 0 },
309
- parse: /* @__PURE__ */ w(async (t) => {
310
- var a;
311
- try {
312
- const n = await Te("treemap", t);
313
- J.debug("Treemap AST:", n);
314
- const o = (a = re.parser) == null ? void 0 : a.yy;
315
- if (!(o instanceof ne))
316
- throw new Error(
317
- "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."
318
- );
319
- Qe(n, o);
320
- } catch (l) {
321
- throw J.error("Error parsing treemap:", l), l;
322
- }
323
- }, "parse")
324
- }, tt = 10, B = 10, X = 25, at = /* @__PURE__ */ w((t, a, l, n) => {
325
- const o = n.db, s = o.getConfig(), d = s.padding ?? tt, h = o.getDiagramTitle(), g = o.getRoot(), { themeVariables: c } = ae();
326
- if (!g)
327
- return;
328
- const u = h ? 30 : 0, b = ue(a), r = s.nodeWidth ? s.nodeWidth * B : 960, x = s.nodeHeight ? s.nodeHeight * B : 500, S = r, v = x + u;
329
- b.attr("viewBox", `0 0 ${S} ${v}`), pe(b, v, S, s.useMaxWidth);
330
- let p;
331
- try {
332
- const e = s.valueFormat || ",";
333
- if (e === "$0,0")
334
- p = /* @__PURE__ */ w((i) => "$" + O(",")(i), "valueFormat");
335
- else if (e.startsWith("$") && e.includes(",")) {
336
- const i = /\.\d+/.exec(e), f = i ? i[0] : "";
337
- p = /* @__PURE__ */ w((C) => "$" + O("," + f)(C), "valueFormat");
338
- } else if (e.startsWith("$")) {
339
- const i = e.substring(1);
340
- p = /* @__PURE__ */ w((f) => "$" + O(i || "")(f), "valueFormat");
341
- } else
342
- p = O(e);
343
- } catch (e) {
344
- J.error("Error creating format function:", e), p = O(",");
345
- }
346
- const m = U().range([
347
- "transparent",
348
- c.cScale0,
349
- c.cScale1,
350
- c.cScale2,
351
- c.cScale3,
352
- c.cScale4,
353
- c.cScale5,
354
- c.cScale6,
355
- c.cScale7,
356
- c.cScale8,
357
- c.cScale9,
358
- c.cScale10,
359
- c.cScale11
360
- ]), N = U().range([
361
- "transparent",
362
- c.cScalePeer0,
363
- c.cScalePeer1,
364
- c.cScalePeer2,
365
- c.cScalePeer3,
366
- c.cScalePeer4,
367
- c.cScalePeer5,
368
- c.cScalePeer6,
369
- c.cScalePeer7,
370
- c.cScalePeer8,
371
- c.cScalePeer9,
372
- c.cScalePeer10,
373
- c.cScalePeer11
374
- ]), k = U().range([
375
- c.cScaleLabel0,
376
- c.cScaleLabel1,
377
- c.cScaleLabel2,
378
- c.cScaleLabel3,
379
- c.cScaleLabel4,
380
- c.cScaleLabel5,
381
- c.cScaleLabel6,
382
- c.cScaleLabel7,
383
- c.cScaleLabel8,
384
- c.cScaleLabel9,
385
- c.cScaleLabel10,
386
- c.cScaleLabel11
387
- ]);
388
- h && b.append("text").attr("x", S / 2).attr("y", u / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(h);
389
- const V = b.append("g").attr("transform", `translate(0, ${u})`).attr("class", "treemapContainer"), E = Q(g).sum((e) => e.value ?? 0).sort((e, i) => (i.value ?? 0) - (e.value ?? 0)), ee = Je().size([r, x]).paddingTop(
390
- (e) => e.children && e.children.length > 0 ? X + B : 0
391
- ).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 = ee.descendants().filter((e) => e.children && e.children.length > 0), W = V.selectAll(".treemapSection").data(se).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
392
- W.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;" : ""), W.append("clipPath").attr("id", (e, i) => `clip-section-${a}-${i}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", X), W.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, i) => `treemapSection section${i}`).attr("fill", (e) => m(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) => {
393
- if (e.depth === 0)
394
- return "display: none;";
395
- const i = P({ cssCompiledStyles: e.data.cssCompiledStyles });
396
- return i.nodeStyles + ";" + i.borderStyles.join(";");
397
- }), W.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", X / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("style", (e) => {
398
- if (e.depth === 0)
399
- return "display: none;";
400
- const i = "dominant-baseline: middle; font-size: 12px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", f = P({ cssCompiledStyles: e.data.cssCompiledStyles });
401
- return i + f.labelStyles.replace("color:", "fill:");
402
- }).each(function(e) {
403
- if (e.depth === 0)
404
- return;
405
- const i = j(this), f = e.data.name;
406
- i.text(f);
407
- const C = e.x1 - e.x0, $ = 6;
408
- let A;
409
- s.showValues !== !1 && e.value ? A = C - 10 - 30 - 10 - $ : A = C - $ - 6;
410
- const F = Math.max(15, A), y = i.node();
411
- if (y.getComputedTextLength() > F) {
412
- const T = "...";
413
- let L = f;
414
- for (; L.length > 0; ) {
415
- if (L = f.substring(0, L.length - 1), L.length === 0) {
416
- i.text(T), y.getComputedTextLength() > F && i.text("");
417
- break;
418
- }
419
- if (i.text(L + T), y.getComputedTextLength() <= F)
420
- break;
421
- }
422
- }
423
- }), s.showValues !== !1 && W.append("text").attr("class", "treemapSectionValue").attr("x", (e) => e.x1 - e.x0 - 10).attr("y", X / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((e) => e.value ? p(e.value) : "").attr("font-style", "italic").attr("style", (e) => {
424
- if (e.depth === 0)
425
- return "display: none;";
426
- const i = "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", f = P({ cssCompiledStyles: e.data.cssCompiledStyles });
427
- return i + f.labelStyles.replace("color:", "fill:");
428
- });
429
- const ie = ee.leaves(), Y = V.selectAll(".treemapLeafGroup").data(ie).enter().append("g").attr("class", (e, i) => `treemapNode treemapLeafGroup leaf${i}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
430
- 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 ? m(e.parent.data.name) : m(e.data.name)).attr("style", (e) => P({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", 0.3).attr("stroke", (e) => e.parent ? m(e.parent.data.name) : m(e.data.name)).attr("stroke-width", 3), Y.append("clipPath").attr("id", (e, i) => `clip-${a}-${i}`).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) => {
431
- const i = "text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:" + k(e.data.name) + ";", f = P({ cssCompiledStyles: e.data.cssCompiledStyles });
432
- return i + f.labelStyles.replace("color:", "fill:");
433
- }).attr("clip-path", (e, i) => `url(#clip-${a}-${i})`).text((e) => e.data.name).each(function(e) {
434
- const i = j(this), f = e.x1 - e.x0, C = e.y1 - e.y0, $ = i.node(), A = 4, D = f - 2 * A, F = C - 2 * A;
435
- if (D < 10 || F < 10) {
436
- i.style("display", "none");
437
- return;
438
- }
439
- let y = parseInt(i.style("font-size"), 10);
440
- const _ = 8, T = 28, L = 0.6, z = 6, H = 2;
441
- for (; $.getComputedTextLength() > D && y > _; )
442
- y--, i.style("font-size", `${y}px`);
443
- let I = Math.max(
444
- z,
445
- Math.min(T, Math.round(y * L))
446
- ), K = y + H + I;
447
- for (; K > F && y > _ && (y--, I = Math.max(
448
- z,
449
- Math.min(T, Math.round(y * L))
450
- ), !(I < z && y === _)); )
451
- i.style("font-size", `${y}px`), K = y + H + I;
452
- i.style("font-size", `${y}px`), ($.getComputedTextLength() > D || y < _ || F < y) && i.style("display", "none");
453
- }), s.showValues !== !1 && Y.append("text").attr("class", "treemapValue").attr("x", (i) => (i.x1 - i.x0) / 2).attr("y", function(i) {
454
- return (i.y1 - i.y0) / 2;
455
- }).attr("style", (i) => {
456
- const f = "text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:" + k(i.data.name) + ";", C = P({ cssCompiledStyles: i.data.cssCompiledStyles });
457
- return f + C.labelStyles.replace("color:", "fill:");
458
- }).attr("clip-path", (i, f) => `url(#clip-${a}-${f})`).text((i) => i.value ? p(i.value) : "").each(function(i) {
459
- const f = j(this), C = this.parentNode;
460
- if (!C) {
461
- f.style("display", "none");
462
- return;
463
- }
464
- const $ = j(C).select(".treemapLabel");
465
- if ($.empty() || $.style("display") === "none") {
466
- f.style("display", "none");
467
- return;
468
- }
469
- const A = parseFloat($.style("font-size")), D = 28, F = 0.6, y = 6, _ = 2, T = Math.max(
470
- y,
471
- Math.min(D, Math.round(A * F))
472
- );
473
- f.style("font-size", `${T}px`);
474
- const z = (i.y1 - i.y0) / 2 + A / 2 + _;
475
- f.attr("y", z);
476
- const H = i.x1 - i.x0, ce = i.y1 - i.y0 - 4, de = H - 2 * 4;
477
- f.node().getComputedTextLength() > de || z + T > ce || T < y ? f.style("display", "none") : f.style("display", null);
478
- });
479
- const oe = s.diagramPadding ?? 8;
480
- he(b, oe, "flowchart", (s == null ? void 0 : s.useMaxWidth) || !1);
481
- }, "draw"), nt = /* @__PURE__ */ w(function(t, a) {
482
- return a.db.getClasses();
483
- }, "getClasses"), lt = { draw: at, getClasses: nt }, rt = {
484
- sectionStrokeColor: "black",
485
- sectionStrokeWidth: "1",
486
- sectionFillColor: "#efefef",
487
- leafStrokeColor: "black",
488
- leafStrokeWidth: "1",
489
- leafFillColor: "#efefef",
490
- labelColor: "black",
491
- labelFontSize: "12px",
492
- valueFontSize: "10px",
493
- valueColor: "black",
494
- titleColor: "black",
495
- titleFontSize: "14px"
496
- }, st = /* @__PURE__ */ w(({
497
- treemap: t
498
- } = {}) => {
499
- const a = te(rt, t);
500
- return `
501
- .treemapNode.section {
502
- stroke: ${a.sectionStrokeColor};
503
- stroke-width: ${a.sectionStrokeWidth};
504
- fill: ${a.sectionFillColor};
505
- }
506
- .treemapNode.leaf {
507
- stroke: ${a.leafStrokeColor};
508
- stroke-width: ${a.leafStrokeWidth};
509
- fill: ${a.leafFillColor};
510
- }
511
- .treemapLabel {
512
- fill: ${a.labelColor};
513
- font-size: ${a.labelFontSize};
514
- }
515
- .treemapValue {
516
- fill: ${a.valueColor};
517
- font-size: ${a.valueFontSize};
518
- }
519
- .treemapTitle {
520
- fill: ${a.titleColor};
521
- font-size: ${a.titleFontSize};
522
- }
523
- `;
524
- }, "getStyles"), it = st, gt = {
525
- parser: re,
526
- get db() {
527
- return new ne();
528
- },
529
- renderer: lt,
530
- styles: it
531
- };
532
- export {
533
- gt as diagram
534
- };
@@ -1,143 +0,0 @@
1
- import { p as B } from "./chunk-ANTBXLJU-DjsG4Faa.js";
2
- import { _ as b, F as m, K as C, e as S, l as w, b as D, a as T, q as z, t as F, g as P, s as E, G as A, H as W, z as _ } from "./mermaid.core-D7qBd055.js";
3
- import { p as N } from "./mermaid-parser.core-FuzJzmL7.js";
4
- var L = W.packet, u, v = (u = class {
5
- constructor() {
6
- this.packet = [], this.setAccTitle = D, this.getAccTitle = T, this.setDiagramTitle = z, this.getDiagramTitle = F, this.getAccDescription = P, this.setAccDescription = E;
7
- }
8
- getConfig() {
9
- const t = m({
10
- ...L,
11
- ...A().packet
12
- });
13
- return t.showBits && (t.paddingY += 10), t;
14
- }
15
- getPacket() {
16
- return this.packet;
17
- }
18
- pushWord(t) {
19
- t.length > 0 && this.packet.push(t);
20
- }
21
- clear() {
22
- _(), this.packet = [];
23
- }
24
- }, b(u, "PacketDB"), u), M = 1e4, Y = /* @__PURE__ */ b((e, t) => {
25
- B(e, t);
26
- let s = -1, r = [], n = 1;
27
- const { bitsPerRow: l } = t.getConfig();
28
- for (let { start: a, end: i, bits: d, label: c } of e.blocks) {
29
- if (a !== void 0 && i !== void 0 && i < a)
30
- throw new Error(`Packet block ${a} - ${i} is invalid. End must be greater than start.`);
31
- if (a ?? (a = s + 1), a !== s + 1)
32
- throw new Error(
33
- `Packet block ${a} - ${i ?? a} is not contiguous. It should start from ${s + 1}.`
34
- );
35
- if (d === 0)
36
- throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);
37
- for (i ?? (i = a + (d ?? 1) - 1), d ?? (d = i - a + 1), s = i, w.debug(`Packet block ${a} - ${s} with label ${c}`); r.length <= l + 1 && t.getPacket().length < M; ) {
38
- const [p, o] = G({ start: a, end: i, bits: d, label: c }, n, l);
39
- if (r.push(p), p.end + 1 === n * l && (t.pushWord(r), r = [], n++), !o)
40
- break;
41
- ({ start: a, end: i, bits: d, label: c } = o);
42
- }
43
- }
44
- t.pushWord(r);
45
- }, "populate"), G = /* @__PURE__ */ b((e, t, s) => {
46
- if (e.start === void 0)
47
- throw new Error("start should have been set during first phase");
48
- if (e.end === void 0)
49
- throw new Error("end should have been set during first phase");
50
- if (e.start > e.end)
51
- throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);
52
- if (e.end + 1 <= t * s)
53
- return [e, void 0];
54
- const r = t * s - 1, n = t * s;
55
- return [
56
- {
57
- start: e.start,
58
- end: r,
59
- label: e.label,
60
- bits: r - e.start
61
- },
62
- {
63
- start: n,
64
- end: e.end,
65
- label: e.label,
66
- bits: e.end - n
67
- }
68
- ];
69
- }, "getNextFittingBlock"), x = {
70
- // @ts-expect-error - PacketDB is not assignable to DiagramDB
71
- parser: { yy: void 0 },
72
- parse: /* @__PURE__ */ b(async (e) => {
73
- var r;
74
- const t = await N("packet", e), s = (r = x.parser) == null ? void 0 : r.yy;
75
- if (!(s instanceof v))
76
- throw new Error(
77
- "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."
78
- );
79
- w.debug(t), Y(t, s);
80
- }, "parse")
81
- }, H = /* @__PURE__ */ b((e, t, s, r) => {
82
- const n = r.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);
83
- f.attr("viewbox", `0 0 ${k} ${g}`), S(f, g, k, l.useMaxWidth);
84
- for (const [y, $] of p.entries())
85
- I(f, $, y, l);
86
- 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");
87
- }, "draw"), I = /* @__PURE__ */ b((e, t, s, { rowHeight: r, paddingX: n, paddingY: l, bitWidth: a, bitsPerRow: i, showBits: d }) => {
88
- const c = e.append("g"), p = s * (r + l) + l;
89
- for (const o of t) {
90
- const h = o.start % i * a + 1, g = (o.end - o.start + 1) * a - n;
91
- if (c.append("rect").attr("x", h).attr("y", p).attr("width", g).attr("height", r).attr("class", "packetBlock"), c.append("text").attr("x", h + g / 2).attr("y", p + r / 2).attr("class", "packetLabel").attr("dominant-baseline", "middle").attr("text-anchor", "middle").text(o.label), !d)
92
- continue;
93
- const k = o.end === o.start, f = p - 2;
94
- 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);
95
- }
96
- }, "drawWord"), K = { draw: H }, O = {
97
- byteFontSize: "10px",
98
- startByteColor: "black",
99
- endByteColor: "black",
100
- labelColor: "black",
101
- labelFontSize: "12px",
102
- titleColor: "black",
103
- titleFontSize: "14px",
104
- blockStrokeColor: "black",
105
- blockStrokeWidth: "1",
106
- blockFillColor: "#efefef"
107
- }, j = /* @__PURE__ */ b(({ packet: e } = {}) => {
108
- const t = m(O, e);
109
- return `
110
- .packetByte {
111
- font-size: ${t.byteFontSize};
112
- }
113
- .packetByte.start {
114
- fill: ${t.startByteColor};
115
- }
116
- .packetByte.end {
117
- fill: ${t.endByteColor};
118
- }
119
- .packetLabel {
120
- fill: ${t.labelColor};
121
- font-size: ${t.labelFontSize};
122
- }
123
- .packetTitle {
124
- fill: ${t.titleColor};
125
- font-size: ${t.titleFontSize};
126
- }
127
- .packetBlock {
128
- stroke: ${t.blockStrokeColor};
129
- stroke-width: ${t.blockStrokeWidth};
130
- fill: ${t.blockFillColor};
131
- }
132
- `;
133
- }, "styles"), X = {
134
- parser: x,
135
- get db() {
136
- return new v();
137
- },
138
- renderer: K,
139
- styles: j
140
- };
141
- export {
142
- X as diagram
143
- };