@belonguniverseai/react-sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (848) hide show
  1. package/README.md +47 -0
  2. package/dist/api/agent-grants.d.ts +61 -0
  3. package/dist/api/api-context.d.ts +9 -0
  4. package/dist/api/client.d.ts +2053 -0
  5. package/dist/api/mutations.d.ts +3 -0
  6. package/dist/api/queries.d.ts +21 -0
  7. package/dist/api/query-keys.d.ts +13 -0
  8. package/dist/api/report-client-error.d.ts +23 -0
  9. package/dist/api/skills.d.ts +23 -0
  10. package/dist/api/workspace-files.d.ts +9 -0
  11. package/dist/app/BelongDock.d.ts +29 -0
  12. package/dist/app/VoiceOverlay.d.ts +18 -0
  13. package/dist/app/providers.d.ts +12 -0
  14. package/dist/app/router.d.ts +2 -0
  15. package/dist/browser/control-channel.d.ts +29 -0
  16. package/dist/browser/dom-bridge.d.ts +6 -0
  17. package/dist/browser/spa-navigate.d.ts +87 -0
  18. package/dist/component/BelongWidget.d.ts +27 -0
  19. package/dist/component/abap-BqLfTM3_.js +9 -0
  20. package/dist/component/abap-Dosx9LfS.js +9 -0
  21. package/dist/component/actionscript-3-CFt6EqSB.js +9 -0
  22. package/dist/component/actionscript-3-CShGOdtT.js +9 -0
  23. package/dist/component/ada-8tCnwMXx.js +9 -0
  24. package/dist/component/ada-DaqFF2jd.js +9 -0
  25. package/dist/component/andromeeda-BxBtQ0rC.js +7 -0
  26. package/dist/component/andromeeda-Dx5fm3r-.js +7 -0
  27. package/dist/component/angular-html-CAoRrq6i.js +35 -0
  28. package/dist/component/angular-html-DG52iVg8.js +35 -0
  29. package/dist/component/angular-ts-BvOrReBc.js +24 -0
  30. package/dist/component/angular-ts-LQyiJZqb.js +24 -0
  31. package/dist/component/apache-HdVsAIQf.js +9 -0
  32. package/dist/component/apache-c3M5d5MN.js +9 -0
  33. package/dist/component/apex-B-y6HhVC.js +9 -0
  34. package/dist/component/apex-DXDfZUnb.js +9 -0
  35. package/dist/component/apl-BnXq3ZtQ.js +19 -0
  36. package/dist/component/apl-D7VFrOyT.js +19 -0
  37. package/dist/component/applescript-BZbrjHcY.js +9 -0
  38. package/dist/component/applescript-Bo1adDet.js +9 -0
  39. package/dist/component/ara-C1QNxHcU.js +9 -0
  40. package/dist/component/ara-ZjRpP-93.js +9 -0
  41. package/dist/component/arc-DGQIe3ON.js +86 -0
  42. package/dist/component/architectureDiagram-3BPJPVTR-C3uLEfb1.js +4697 -0
  43. package/dist/component/asciidoc-2fV_Cv2j.js +9 -0
  44. package/dist/component/asciidoc-D7PshqvO.js +9 -0
  45. package/dist/component/asm-ClEowkZP.js +9 -0
  46. package/dist/component/asm-DmyJawQj.js +9 -0
  47. package/dist/component/astro-9MHfKoOi.js +21 -0
  48. package/dist/component/astro-Bi3QRBCO.js +21 -0
  49. package/dist/component/aurora-x-BGO53J2I.js +7 -0
  50. package/dist/component/aurora-x-C98he-36.js +7 -0
  51. package/dist/component/awk-CIiDOfUC.js +9 -0
  52. package/dist/component/awk-DnzYQYUx.js +9 -0
  53. package/dist/component/ayu-dark-CK1VRikm.js +7 -0
  54. package/dist/component/ayu-dark-J6FX8oSr.js +7 -0
  55. package/dist/component/ayu-light-DIKBJiwH.js +7 -0
  56. package/dist/component/ayu-light-x4Q5N51d.js +7 -0
  57. package/dist/component/ayu-mirage-C5_fPLwf.js +7 -0
  58. package/dist/component/ayu-mirage-DhPHVcGJ.js +7 -0
  59. package/dist/component/ballerina-CeqVHW9D.js +9 -0
  60. package/dist/component/ballerina-epCf0_WV.js +9 -0
  61. package/dist/component/bat-Cuej7k1C.js +9 -0
  62. package/dist/component/bat-Dai7pznF.js +9 -0
  63. package/dist/component/beancount-CpREEZMl.js +9 -0
  64. package/dist/component/beancount-CwiYx9PE.js +9 -0
  65. package/dist/component/berry-BoYGiG42.js +9 -0
  66. package/dist/component/berry-DFo_i8CN.js +9 -0
  67. package/dist/component/bibtex-2bgmGv5w.js +9 -0
  68. package/dist/component/bibtex-BkTrlnvh.js +9 -0
  69. package/dist/component/bicep-C80YQkEm.js +9 -0
  70. package/dist/component/bicep-DYkQKpr8.js +9 -0
  71. package/dist/component/bird2-5AxdId5f.js +9 -0
  72. package/dist/component/bird2-CjcgWn0f.js +9 -0
  73. package/dist/component/blade-BdUlKesy.js +23 -0
  74. package/dist/component/blade-DNMMxdfa.js +23 -0
  75. package/dist/component/blockDiagram-GPEHLZMM-YerYvLm_.js +2421 -0
  76. package/dist/component/bsl-CYB_gPZn.js +11 -0
  77. package/dist/component/bsl-DJ4bR5oi.js +11 -0
  78. package/dist/component/c-C4AMyX3G.js +9 -0
  79. package/dist/component/c-C7DfT4H8.js +9 -0
  80. package/dist/component/c3-DDixCt0K.js +9 -0
  81. package/dist/component/c3-xeavH2G2.js +9 -0
  82. package/dist/component/c4Diagram-AAUBKEIU-p8UR34Zq.js +1586 -0
  83. package/dist/component/cadence-Cy8toSoU.js +9 -0
  84. package/dist/component/cadence-xq71MyIp.js +9 -0
  85. package/dist/component/cairo-B1qo5_uz.js +11 -0
  86. package/dist/component/cairo-CZSJv_Y_.js +11 -0
  87. package/dist/component/catppuccin-frappe-BGDzipYl.js +7 -0
  88. package/dist/component/catppuccin-frappe-DZ2VPnzg.js +7 -0
  89. package/dist/component/catppuccin-latte-9zQ0xneh.js +7 -0
  90. package/dist/component/catppuccin-latte-CK4XjBXq.js +7 -0
  91. package/dist/component/catppuccin-macchiato-CIKuiG5O.js +7 -0
  92. package/dist/component/catppuccin-macchiato-D1xBlgUI.js +7 -0
  93. package/dist/component/catppuccin-mocha-CQk3ku6b.js +7 -0
  94. package/dist/component/catppuccin-mocha-Dr22M_MR.js +7 -0
  95. package/dist/component/channel-ahmILYyG.js +8 -0
  96. package/dist/component/chunk-2J33WTMH-CGaAxoSO.js +22 -0
  97. package/dist/component/chunk-4BX2VUAB-gRTK7Di9.js +11 -0
  98. package/dist/component/chunk-55IACEB6-XfJuuv6Y.js +11 -0
  99. package/dist/component/chunk-727SXJPM-Cy0hXMuO.js +1537 -0
  100. package/dist/component/chunk-AQP2D5EJ-CZHGw4se.js +1396 -0
  101. package/dist/component/chunk-FMBD7UC4-CyqtPCO0.js +22 -0
  102. package/dist/component/chunk-ND2GUHAM-CzTviSBV.js +71 -0
  103. package/dist/component/chunk-QZHKN3VN-CHDEerWv.js +21 -0
  104. package/dist/component/clarity-Dmd3VcKv.js +9 -0
  105. package/dist/component/clarity-FR-MQPIo.js +9 -0
  106. package/dist/component/classDiagram-4FO5ZUOK-BDzl1OcC.js +19 -0
  107. package/dist/component/classDiagram-v2-Q7XG4LA2-BDzl1OcC.js +19 -0
  108. package/dist/component/clojure-CZ5pqCKI.js +9 -0
  109. package/dist/component/clojure-DUXXPerS.js +9 -0
  110. package/dist/component/cmake-DeSLuBit.js +9 -0
  111. package/dist/component/cmake-Dh5RXd_q.js +9 -0
  112. package/dist/component/cobol-B0R9veOS.js +13 -0
  113. package/dist/component/cobol-DayClXiO.js +13 -0
  114. package/dist/component/codeowners-C5Gg1qBb.js +9 -0
  115. package/dist/component/codeowners-RGJbf4XS.js +9 -0
  116. package/dist/component/codeql-1OtYEVEY.js +9 -0
  117. package/dist/component/codeql-CoCy8yp4.js +9 -0
  118. package/dist/component/coffee-kdLRO3eV.js +11 -0
  119. package/dist/component/coffee-tRjJZw7o.js +11 -0
  120. package/dist/component/common-lisp-BeJe0ab6.js +9 -0
  121. package/dist/component/common-lisp-GbfS1OBj.js +9 -0
  122. package/dist/component/coq-B0RJLsKz.js +9 -0
  123. package/dist/component/coq-DMlFNAl3.js +9 -0
  124. package/dist/component/cose-bilkent-S5V4N54A-4R0ErgrZ.js +2611 -0
  125. package/dist/component/cpp-BpiKH-9I.js +21 -0
  126. package/dist/component/cpp-BwGJQL2p.js +21 -0
  127. package/dist/component/crystal-Bb_LifhW.js +21 -0
  128. package/dist/component/crystal-D0cTXans.js +21 -0
  129. package/dist/component/csharp-5kMbpBNi.js +9 -0
  130. package/dist/component/csharp-UFMQzTVu.js +9 -0
  131. package/dist/component/css-B2ckPEoZ.js +9 -0
  132. package/dist/component/css-MDiv-Xmm.js +9 -0
  133. package/dist/component/csv-Ba1T94jM.js +9 -0
  134. package/dist/component/csv-DZ-mzuKa.js +9 -0
  135. package/dist/component/cue-CtGb6f31.js +9 -0
  136. package/dist/component/cue-DbYr629m.js +9 -0
  137. package/dist/component/cypher-7eGqJtNJ.js +9 -0
  138. package/dist/component/cypher-pD9MnYc_.js +9 -0
  139. package/dist/component/cytoscape.esm-C31R6JOv.js +18772 -0
  140. package/dist/component/d-BefBLeap.js +9 -0
  141. package/dist/component/d-Dij3nCx4.js +9 -0
  142. package/dist/component/dagre-BM42HDAG-BcJQXGn3.js +448 -0
  143. package/dist/component/dark-plus-C9nS7rhq.js +7 -0
  144. package/dist/component/dark-plus-L3JON0ir.js +7 -0
  145. package/dist/component/dart-BWNSliXX.js +9 -0
  146. package/dist/component/dart-DCRAsZQK.js +9 -0
  147. package/dist/component/dax-CWdGoxkM.js +9 -0
  148. package/dist/component/dax-pykceZLM.js +9 -0
  149. package/dist/component/defaultLocale-BXpxsZAK.js +174 -0
  150. package/dist/component/desktop-4j8jFU02.js +9 -0
  151. package/dist/component/desktop-B3AeStqn.js +9 -0
  152. package/dist/component/diagram-2AECGRRQ-Cld7-k7F.js +220 -0
  153. package/dist/component/diagram-5GNKFQAL-d7JtHVRK.js +126 -0
  154. package/dist/component/diagram-KO2AKTUF-Avxzz4xw.js +464 -0
  155. package/dist/component/diagram-LMA3HP47-Cy_E5-rU.js +148 -0
  156. package/dist/component/diagram-OG6HWLK6-DUsJK7Js.js +534 -0
  157. package/dist/component/diff-DuoPSmgL.js +9 -0
  158. package/dist/component/diff-IyCSM08A.js +9 -0
  159. package/dist/component/docker-BSrvy0o9.js +9 -0
  160. package/dist/component/docker-Ca4vT6OJ.js +9 -0
  161. package/dist/component/dotenv-CUP-PB19.js +9 -0
  162. package/dist/component/dotenv-aA3GGxJM.js +9 -0
  163. package/dist/component/dracula-2BaSCSav.js +7 -0
  164. package/dist/component/dracula-Lg7_DbOD.js +7 -0
  165. package/dist/component/dracula-soft-AsPqNBvZ.js +7 -0
  166. package/dist/component/dracula-soft-n6R-sBGM.js +7 -0
  167. package/dist/component/dream-maker-B2xERNvR.js +9 -0
  168. package/dist/component/dream-maker-Jadq_Ln7.js +9 -0
  169. package/dist/component/edge-B-amp2rn.js +15 -0
  170. package/dist/component/edge-Bol1lNG-.js +15 -0
  171. package/dist/component/elixir-DSzpv_bE.js +11 -0
  172. package/dist/component/elixir-t5YY_ese.js +11 -0
  173. package/dist/component/elm-DNaka8RZ.js +11 -0
  174. package/dist/component/elm-JLsvCHy1.js +11 -0
  175. package/dist/component/emacs-lisp-C6XZT609.js +9 -0
  176. package/dist/component/emacs-lisp-DWDtb5kD.js +9 -0
  177. package/dist/component/erDiagram-TEJ5UH35-DEdqrWqp.js +905 -0
  178. package/dist/component/erb-BJ95qgrJ.js +13 -0
  179. package/dist/component/erb-rGIYAeIa.js +13 -0
  180. package/dist/component/erlang-By5grfmz.js +11 -0
  181. package/dist/component/erlang-rAClsghX.js +11 -0
  182. package/dist/component/everforest-dark-DBhTz0Lt.js +7 -0
  183. package/dist/component/everforest-dark-_A43rkLf.js +7 -0
  184. package/dist/component/everforest-light-Bep_XOgu.js +7 -0
  185. package/dist/component/everforest-light-DHbrW2te.js +7 -0
  186. package/dist/component/fennel-CeQPNUU9.js +9 -0
  187. package/dist/component/fennel-QllfYze1.js +9 -0
  188. package/dist/component/fish-BXP1eRyz.js +9 -0
  189. package/dist/component/fish-DkfR0DRL.js +9 -0
  190. package/dist/component/flowDiagram-I6XJVG4X-BWzYDsjP.js +1634 -0
  191. package/dist/component/fluent-Ih0R99Ix.js +9 -0
  192. package/dist/component/fluent-RduSrzCZ.js +9 -0
  193. package/dist/component/fortran-fixed-form-C3I8YlEU.js +11 -0
  194. package/dist/component/fortran-fixed-form-D7OlW0lw.js +11 -0
  195. package/dist/component/fortran-free-form-CXj2ku4f.js +9 -0
  196. package/dist/component/fortran-free-form-DifCDW_P.js +9 -0
  197. package/dist/component/fsharp-65O4P3S5.js +11 -0
  198. package/dist/component/fsharp-CXzwUWsC.js +11 -0
  199. package/dist/component/ganttDiagram-6RSMTGT7-DzfeVIgF.js +2709 -0
  200. package/dist/component/gdresource-Bn5VhPaI.js +13 -0
  201. package/dist/component/gdresource-kUFIn9eK.js +13 -0
  202. package/dist/component/gdscript-BNGA6E65.js +9 -0
  203. package/dist/component/gdscript-LjKsfw3O.js +9 -0
  204. package/dist/component/gdshader-C-Gp5-Ot.js +9 -0
  205. package/dist/component/gdshader-C1lRZRQz.js +9 -0
  206. package/dist/component/genie-B8viIUNC.js +9 -0
  207. package/dist/component/genie-eR37RVXX.js +9 -0
  208. package/dist/component/gherkin-BVA-IOor.js +9 -0
  209. package/dist/component/gherkin-CuORnKvF.js +9 -0
  210. package/dist/component/git-commit-BNPqpLhi.js +11 -0
  211. package/dist/component/git-commit-Dh7BfmB9.js +11 -0
  212. package/dist/component/git-rebase-B5TXZutB.js +11 -0
  213. package/dist/component/git-rebase-DhwWS8MC.js +11 -0
  214. package/dist/component/gitGraphDiagram-PVQCEYII-CKzbGWcQ.js +818 -0
  215. package/dist/component/github-dark-5b4g_bOp.js +7 -0
  216. package/dist/component/github-dark-default-6zDGR7DJ.js +7 -0
  217. package/dist/component/github-dark-default-H56pGX_M.js +7 -0
  218. package/dist/component/github-dark-dimmed-B1iXBBmo.js +7 -0
  219. package/dist/component/github-dark-dimmed-DjYa1rhk.js +7 -0
  220. package/dist/component/github-dark-high-contrast-BuNi_Wj5.js +7 -0
  221. package/dist/component/github-dark-high-contrast-DvpYRI-4.js +7 -0
  222. package/dist/component/github-dark-mxHsWyJ4.js +7 -0
  223. package/dist/component/github-light-CTdjTVPf.js +7 -0
  224. package/dist/component/github-light-KqdY1rAV.js +7 -0
  225. package/dist/component/github-light-default-BlRYTBRQ.js +7 -0
  226. package/dist/component/github-light-default-Drw5Jl_p.js +7 -0
  227. package/dist/component/github-light-high-contrast-9d8ktz0h.js +7 -0
  228. package/dist/component/github-light-high-contrast-ColFVC7A.js +7 -0
  229. package/dist/component/gleam-BXQHq2ZT.js +9 -0
  230. package/dist/component/gleam-RfA2dpfH.js +9 -0
  231. package/dist/component/glimmer-js-BHZ1FuRp.js +17 -0
  232. package/dist/component/glimmer-js-Gdq_UYVf.js +17 -0
  233. package/dist/component/glimmer-ts-D6H7q5ls.js +17 -0
  234. package/dist/component/glimmer-ts-DdmgeZua.js +17 -0
  235. package/dist/component/glsl-D1RRylbk.js +11 -0
  236. package/dist/component/glsl-MDSU_3-y.js +11 -0
  237. package/dist/component/gn-D8VPrt1o.js +9 -0
  238. package/dist/component/gn-DJpTAp5e.js +9 -0
  239. package/dist/component/gnuplot-BNzwvBx5.js +9 -0
  240. package/dist/component/gnuplot-Iqvzplz-.js +9 -0
  241. package/dist/component/go-D-G7cxeA.js +9 -0
  242. package/dist/component/go-TNOI7pQc.js +9 -0
  243. package/dist/component/graph-BZLHvygk.js +1548 -0
  244. package/dist/component/graphql-CW6tYk7X.js +17 -0
  245. package/dist/component/graphql-DGugpl40.js +17 -0
  246. package/dist/component/groovy-5_UI-q3N.js +9 -0
  247. package/dist/component/groovy-D7GH48W8.js +9 -0
  248. package/dist/component/gruvbox-dark-hard-Ch2GYDcJ.js +7 -0
  249. package/dist/component/gruvbox-dark-hard-Dpxv_Il6.js +7 -0
  250. package/dist/component/gruvbox-dark-medium-DqoxKYPx.js +7 -0
  251. package/dist/component/gruvbox-dark-medium-eGVEUM8W.js +7 -0
  252. package/dist/component/gruvbox-dark-soft-BA9DdijB.js +7 -0
  253. package/dist/component/gruvbox-dark-soft-DRaJAZcW.js +7 -0
  254. package/dist/component/gruvbox-light-hard-BJXIrqpz.js +7 -0
  255. package/dist/component/gruvbox-light-hard-_qNpoYJy.js +7 -0
  256. package/dist/component/gruvbox-light-medium-39dkJwxv.js +7 -0
  257. package/dist/component/gruvbox-light-medium-IkDFQhcB.js +7 -0
  258. package/dist/component/gruvbox-light-soft-DWPQo7Dn.js +7 -0
  259. package/dist/component/gruvbox-light-soft-Dpz5D6wP.js +7 -0
  260. package/dist/component/hack-BSrzyV-l.js +13 -0
  261. package/dist/component/hack-CJNnfXZh.js +13 -0
  262. package/dist/component/haml-DL-NAYVg.js +13 -0
  263. package/dist/component/haml-DYkTKupK.js +13 -0
  264. package/dist/component/handlebars-B2Z6CWhc.js +17 -0
  265. package/dist/component/handlebars-Cwj0qzUo.js +17 -0
  266. package/dist/component/haskell-Cj3J4fKD.js +9 -0
  267. package/dist/component/haskell-h36TjJLk.js +9 -0
  268. package/dist/component/haxe-CcifGI6O.js +9 -0
  269. package/dist/component/haxe-Coqw0Tt8.js +9 -0
  270. package/dist/component/hcl-BPVqiZDb.js +9 -0
  271. package/dist/component/hcl-DaPl6lOC.js +9 -0
  272. package/dist/component/highlighted-body-OFNGDK62-BkGwwkHo.js +22 -0
  273. package/dist/component/hjson-CfcQXz3-.js +9 -0
  274. package/dist/component/hjson-DsTgWNxt.js +9 -0
  275. package/dist/component/hlsl-CLzjZIQL.js +9 -0
  276. package/dist/component/hlsl-DVyuzW8h.js +9 -0
  277. package/dist/component/horizon-DaNatiIz.js +7 -0
  278. package/dist/component/horizon-bright-CthJh1Qp.js +7 -0
  279. package/dist/component/horizon-bright-DMKA6ab6.js +7 -0
  280. package/dist/component/horizon-q20CuJTh.js +7 -0
  281. package/dist/component/houston-CjpgGYwZ.js +7 -0
  282. package/dist/component/houston-DnIZxOiF.js +7 -0
  283. package/dist/component/html-DSjghx6n.js +13 -0
  284. package/dist/component/html-derivative-CxizaS1Z.js +11 -0
  285. package/dist/component/html-derivative-DDrVhQXu.js +11 -0
  286. package/dist/component/html-tY6fNMOn.js +13 -0
  287. package/dist/component/http-CLvA54iU.js +17 -0
  288. package/dist/component/http-CPkD6MSf.js +17 -0
  289. package/dist/component/hurl-CuuCK9Id.js +15 -0
  290. package/dist/component/hurl-LcD0R7wh.js +15 -0
  291. package/dist/component/hxml-CJz9SfqN.js +11 -0
  292. package/dist/component/hxml-DLsAgg8X.js +11 -0
  293. package/dist/component/hy-CAEey4h7.js +9 -0
  294. package/dist/component/hy-Dm2IGIb-.js +9 -0
  295. package/dist/component/imba-5G9Fs_nr.js +9 -0
  296. package/dist/component/imba-CH2D1ce9.js +9 -0
  297. package/dist/component/index.d.ts +3 -0
  298. package/dist/component/index.js +8 -0
  299. package/dist/component/infoDiagram-5YYISTIA-D9xN-Pqc.js +27 -0
  300. package/dist/component/ini-Dt2l3RWi.js +9 -0
  301. package/dist/component/ini-kgvXisvj.js +9 -0
  302. package/dist/component/init-BOu0eQYQ.js +19 -0
  303. package/dist/component/ishikawaDiagram-YF4QCWOH--YDYWDwv.js +627 -0
  304. package/dist/component/java-BKLcvtEM.js +9 -0
  305. package/dist/component/java-oSN7P0Od.js +9 -0
  306. package/dist/component/javascript-CyaMmpOO.js +9 -0
  307. package/dist/component/javascript-DFm3DOoX.js +9 -0
  308. package/dist/component/jinja-Ch28RrFG.js +14 -0
  309. package/dist/component/jinja-CsTh8Ahj.js +14 -0
  310. package/dist/component/jison-Bu0o8a1Z.js +11 -0
  311. package/dist/component/jison-DLgrOJpy.js +11 -0
  312. package/dist/component/journeyDiagram-JHISSGLW-B9-CHfSv.js +837 -0
  313. package/dist/component/json-D-WsbO45.js +9 -0
  314. package/dist/component/json-rmrBoeO_.js +9 -0
  315. package/dist/component/json5-B1J6XVPd.js +9 -0
  316. package/dist/component/json5-B3-n7IrD.js +9 -0
  317. package/dist/component/jsonc-BgfI3zjg.js +9 -0
  318. package/dist/component/jsonc-HFvGREK8.js +9 -0
  319. package/dist/component/jsonl-DHttz8sH.js +9 -0
  320. package/dist/component/jsonl-l_eIcPip.js +9 -0
  321. package/dist/component/jsonnet-D6SNIhw0.js +9 -0
  322. package/dist/component/jsonnet-DO8Zfk6p.js +9 -0
  323. package/dist/component/jssm-CKRLojKZ.js +9 -0
  324. package/dist/component/jssm-Dy1zjXNg.js +9 -0
  325. package/dist/component/jsx-CpVvoVGp.js +9 -0
  326. package/dist/component/jsx-si2wS7pt.js +9 -0
  327. package/dist/component/julia-BPzvBJ4R.js +19 -0
  328. package/dist/component/julia-CfyFig21.js +19 -0
  329. package/dist/component/just-D5rIv9U4.js +21 -0
  330. package/dist/component/just-fRm_weEQ.js +21 -0
  331. package/dist/component/kanagawa-dragon-BOBo9JLg.js +7 -0
  332. package/dist/component/kanagawa-dragon-BWPCHB_7.js +7 -0
  333. package/dist/component/kanagawa-lotus-8m_3LhhF.js +7 -0
  334. package/dist/component/kanagawa-lotus-B5o1JCNj.js +7 -0
  335. package/dist/component/kanagawa-wave-BSP7z6KH.js +7 -0
  336. package/dist/component/kanagawa-wave-ClYLx7ql.js +7 -0
  337. package/dist/component/kanban-definition-UN3LZRKU-Cmh8twbq.js +727 -0
  338. package/dist/component/kdl-GafIF83C.js +9 -0
  339. package/dist/component/kdl-_X6wsgV0.js +9 -0
  340. package/dist/component/kotlin-B3jfEOcv.js +9 -0
  341. package/dist/component/kotlin-BWMoZeA3.js +9 -0
  342. package/dist/component/kusto-Bkz9eBch.js +9 -0
  343. package/dist/component/kusto-ohiqZ64l.js +9 -0
  344. package/dist/component/laserwave-BmajecBZ.js +7 -0
  345. package/dist/component/laserwave-Bp21zlIO.js +7 -0
  346. package/dist/component/latex-BYzveWoN.js +11 -0
  347. package/dist/component/latex-Bi4Lg68B.js +11 -0
  348. package/dist/component/layout-Bu6nRdWm.js +1731 -0
  349. package/dist/component/lean-BBkk0btj.js +9 -0
  350. package/dist/component/lean-DFmhzmny.js +9 -0
  351. package/dist/component/less-ChX34X5W.js +9 -0
  352. package/dist/component/less-kqPRXL1K.js +9 -0
  353. package/dist/component/light-plus-DFxAowZg.js +7 -0
  354. package/dist/component/light-plus-_t1yKirF.js +7 -0
  355. package/dist/component/linear-BDyEUcVD.js +262 -0
  356. package/dist/component/liquid-Bri_C9oi.js +17 -0
  357. package/dist/component/liquid-f2WMwCDi.js +17 -0
  358. package/dist/component/llvm-COuD10ql.js +9 -0
  359. package/dist/component/llvm-dub2631B.js +9 -0
  360. package/dist/component/log-A8St-vyh.js +9 -0
  361. package/dist/component/log-g58LFxM8.js +9 -0
  362. package/dist/component/logo-DZmThwvl.js +9 -0
  363. package/dist/component/logo-x6YxnKST.js +9 -0
  364. package/dist/component/lua-Bj2G8q-Z.js +11 -0
  365. package/dist/component/lua-CyXCKT0u.js +11 -0
  366. package/dist/component/luau-B8fyn01D.js +9 -0
  367. package/dist/component/luau-C5q2C4N6.js +9 -0
  368. package/dist/component/make-DOTJ8IeI.js +9 -0
  369. package/dist/component/make-DTiRnfNf.js +9 -0
  370. package/dist/component/markdown-D3u32LKS.js +9 -0
  371. package/dist/component/markdown-DHm1k_6p.js +9 -0
  372. package/dist/component/marko-CUgdvzuR.js +17 -0
  373. package/dist/component/marko-SwZmWzIv.js +17 -0
  374. package/dist/component/material-theme-BIfRQKI0.js +7 -0
  375. package/dist/component/material-theme-CxS7GniW.js +7 -0
  376. package/dist/component/material-theme-darker-DKP5DIOi.js +7 -0
  377. package/dist/component/material-theme-darker-DkNB3xjL.js +7 -0
  378. package/dist/component/material-theme-lighter-3I4JYnlq.js +7 -0
  379. package/dist/component/material-theme-lighter-D5xivCfx.js +7 -0
  380. package/dist/component/material-theme-ocean-B31yuEXO.js +7 -0
  381. package/dist/component/material-theme-ocean-rw0kJPZg.js +7 -0
  382. package/dist/component/material-theme-palenight-BfunK0Uo.js +7 -0
  383. package/dist/component/material-theme-palenight-COTbh91p.js +7 -0
  384. package/dist/component/matlab-CkKSQcnX.js +9 -0
  385. package/dist/component/matlab-DCF6d5YL.js +9 -0
  386. package/dist/component/mdc-D92XwdT9.js +15 -0
  387. package/dist/component/mdc-gb_v49HI.js +15 -0
  388. package/dist/component/mdx-C6kH9TSz.js +9 -0
  389. package/dist/component/mdx-Dqb5H0t-.js +9 -0
  390. package/dist/component/mermaid-0bkYzXfL.js +9 -0
  391. package/dist/component/mermaid-GHXKKRXX-C5Y3BZXR.js +107122 -0
  392. package/dist/component/mermaid-N7-yWHiu.js +9 -0
  393. package/dist/component/min-dark-CqEfelDe.js +7 -0
  394. package/dist/component/min-dark-FAglrjWz.js +7 -0
  395. package/dist/component/min-light-BmdYN58_.js +7 -0
  396. package/dist/component/min-light-CcJCxfWw.js +7 -0
  397. package/dist/component/mindmap-definition-RKZ34NQL-CnFpVFpl.js +833 -0
  398. package/dist/component/mipsasm-BYNReuUT.js +9 -0
  399. package/dist/component/mipsasm-CKzkMNWr.js +9 -0
  400. package/dist/component/mojo-0URGVph7.js +9 -0
  401. package/dist/component/mojo-C563AncR.js +9 -0
  402. package/dist/component/monokai-D3_c3OUm.js +7 -0
  403. package/dist/component/monokai-ugSJFofr.js +7 -0
  404. package/dist/component/moonbit-BkJk2kyS.js +9 -0
  405. package/dist/component/moonbit-DlIX78rk.js +9 -0
  406. package/dist/component/move-BQAHOJb2.js +9 -0
  407. package/dist/component/move-eiW4QYDW.js +9 -0
  408. package/dist/component/narrat-2oVindvn.js +9 -0
  409. package/dist/component/narrat-Dc4cTFeW.js +9 -0
  410. package/dist/component/nextflow-B4caLl5A.js +11 -0
  411. package/dist/component/nextflow-Bk0ryO1R.js +11 -0
  412. package/dist/component/nextflow-groovy-BnXf2WiC.js +9 -0
  413. package/dist/component/nextflow-groovy-DIMIAEOy.js +9 -0
  414. package/dist/component/nginx-BaGEfT9r.js +11 -0
  415. package/dist/component/nginx-Dprlne5J.js +11 -0
  416. package/dist/component/night-owl-B6L5FL5v.js +7 -0
  417. package/dist/component/night-owl-CB_IXuNH.js +7 -0
  418. package/dist/component/night-owl-light-BZxeyl5X.js +7 -0
  419. package/dist/component/night-owl-light-CoPr05P4.js +7 -0
  420. package/dist/component/nim-BKvvFCe_.js +23 -0
  421. package/dist/component/nim-CQZqLxeE.js +23 -0
  422. package/dist/component/nix-Cp8a0vy5.js +12 -0
  423. package/dist/component/nix-DEY1zukk.js +12 -0
  424. package/dist/component/nord-D3PAEvHH.js +7 -0
  425. package/dist/component/nord-DPPgRakM.js +7 -0
  426. package/dist/component/nushell-BdsblUId.js +9 -0
  427. package/dist/component/nushell-DUUbmBaO.js +9 -0
  428. package/dist/component/objective-c-CNN3tl1v.js +9 -0
  429. package/dist/component/objective-c-D_6I2dsG.js +9 -0
  430. package/dist/component/objective-cpp-BjicYcS7.js +9 -0
  431. package/dist/component/objective-cpp-z4LTaUcg.js +9 -0
  432. package/dist/component/ocaml-BnD9haV8.js +9 -0
  433. package/dist/component/ocaml-DZseEUty.js +9 -0
  434. package/dist/component/odin-CnsCKboc.js +9 -0
  435. package/dist/component/odin-P2WSXO4H.js +9 -0
  436. package/dist/component/one-dark-pro-C_eaQ16k.js +7 -0
  437. package/dist/component/one-dark-pro-OimEv0Ou.js +7 -0
  438. package/dist/component/one-light-B0ti6b9S.js +7 -0
  439. package/dist/component/one-light-j3UfPQB3.js +7 -0
  440. package/dist/component/openscad-2vaKslxR.js +9 -0
  441. package/dist/component/openscad-jE6oRbDv.js +9 -0
  442. package/dist/component/ordinal-D0x7izaa.js +64 -0
  443. package/dist/component/pascal-8jl8irAj.js +9 -0
  444. package/dist/component/pascal-d7SASCGO.js +9 -0
  445. package/dist/component/perl-DHC1BZ_5.js +19 -0
  446. package/dist/component/perl-DVm7Pq-D.js +19 -0
  447. package/dist/component/php-BF_l-EgM.js +21 -0
  448. package/dist/component/php-BtpW2-DO.js +21 -0
  449. package/dist/component/pieDiagram-4H26LBE5-u-blLkni.js +166 -0
  450. package/dist/component/pkl-CoBnC_8G.js +9 -0
  451. package/dist/component/pkl-DZdA2Trc.js +9 -0
  452. package/dist/component/plastic-3IjBbwNP.js +7 -0
  453. package/dist/component/plastic-CixB-AlW.js +7 -0
  454. package/dist/component/plsql-Cv-ZxhCL.js +9 -0
  455. package/dist/component/plsql-CzeGyK0m.js +9 -0
  456. package/dist/component/po-eb_Amfj2.js +9 -0
  457. package/dist/component/po-moSB12fi.js +9 -0
  458. package/dist/component/poimandres-C03Jy3KZ.js +7 -0
  459. package/dist/component/poimandres-CKZ3f48N.js +7 -0
  460. package/dist/component/polar-BKFAKBSA.js +9 -0
  461. package/dist/component/polar-CsPCUbKt.js +9 -0
  462. package/dist/component/postcss-CytNqPC0.js +9 -0
  463. package/dist/component/postcss-D3_LY2LH.js +9 -0
  464. package/dist/component/powerquery-CpTndMW_.js +9 -0
  465. package/dist/component/powerquery-f-cemdrG.js +9 -0
  466. package/dist/component/powershell-B-JkstDq.js +9 -0
  467. package/dist/component/powershell-BkDB3ZO9.js +9 -0
  468. package/dist/component/prisma-B4mlcaEB.js +9 -0
  469. package/dist/component/prisma-BX88wNNq.js +9 -0
  470. package/dist/component/prolog-ZYcjPjsY.js +9 -0
  471. package/dist/component/prolog-ftPRGVaT.js +9 -0
  472. package/dist/component/proto-B5SG7zCc.js +9 -0
  473. package/dist/component/proto-DpTcjJFH.js +9 -0
  474. package/dist/component/pug-BziTjzcZ.js +15 -0
  475. package/dist/component/pug-XUdLuJ2s.js +15 -0
  476. package/dist/component/puppet-BeyD5DhV.js +9 -0
  477. package/dist/component/puppet-DjFvC8zy.js +9 -0
  478. package/dist/component/purescript-BBRU0YyZ.js +9 -0
  479. package/dist/component/purescript-Bf3WPYAV.js +9 -0
  480. package/dist/component/python-C7yusFoO.js +9 -0
  481. package/dist/component/python-CuNbg5wx.js +9 -0
  482. package/dist/component/qml-Cu9RjXOs.js +11 -0
  483. package/dist/component/qml-Z-uvElxQ.js +11 -0
  484. package/dist/component/qmldir-BHp2usxt.js +9 -0
  485. package/dist/component/qmldir-C6P--W6X.js +9 -0
  486. package/dist/component/qss-CgcBaeYL.js +9 -0
  487. package/dist/component/qss-iWzt-Nzy.js +9 -0
  488. package/dist/component/quadrantDiagram-W4KKPZXB-Bpq-EoMM.js +1033 -0
  489. package/dist/component/r-8lH98zbN.js +9 -0
  490. package/dist/component/r-CyFkAlMF.js +9 -0
  491. package/dist/component/racket-DaWPCRlQ.js +9 -0
  492. package/dist/component/racket-effgGH8q.js +9 -0
  493. package/dist/component/raku-DXM7wT4g.js +9 -0
  494. package/dist/component/raku-GZVvT-nH.js +9 -0
  495. package/dist/component/razor-CYq4jbLW.js +13 -0
  496. package/dist/component/razor-DQFDiXM1.js +13 -0
  497. package/dist/component/red-B9TgEgRC.js +7 -0
  498. package/dist/component/red-BNC90Lxb.js +7 -0
  499. package/dist/component/reg-C62uOG3A.js +9 -0
  500. package/dist/component/reg-CQgRgzkw.js +9 -0
  501. package/dist/component/regexp-D8jeZrvm.js +9 -0
  502. package/dist/component/regexp-UNvxOND4.js +9 -0
  503. package/dist/component/rel-BRyuNjQD.js +9 -0
  504. package/dist/component/rel-Cyzm_Cno.js +9 -0
  505. package/dist/component/requirementDiagram-4Y6WPE33-B8V7mLRY.js +888 -0
  506. package/dist/component/riscv-BHdC-Wfh.js +9 -0
  507. package/dist/component/riscv-BZ9l50bA.js +9 -0
  508. package/dist/component/ron--0kZyCV0.js +9 -0
  509. package/dist/component/ron-CJx-eqt3.js +9 -0
  510. package/dist/component/rose-pine-XHcBRH-D.js +7 -0
  511. package/dist/component/rose-pine-dawn-Bz77Igqs.js +7 -0
  512. package/dist/component/rose-pine-dawn-RL42yTas.js +7 -0
  513. package/dist/component/rose-pine-ksWn8nuO.js +7 -0
  514. package/dist/component/rose-pine-moon-BtSW__9n.js +7 -0
  515. package/dist/component/rose-pine-moon-QJS0aJgR.js +7 -0
  516. package/dist/component/rosmsg-BPUqDEe2.js +9 -0
  517. package/dist/component/rosmsg-CM65NRE0.js +9 -0
  518. package/dist/component/rst-CqXkCW5F.js +25 -0
  519. package/dist/component/rst-DQATMrFw.js +25 -0
  520. package/dist/component/ruby-B09XKrLg.js +33 -0
  521. package/dist/component/ruby-BJtrPIFQ.js +33 -0
  522. package/dist/component/rust-3aEF0O7t.js +9 -0
  523. package/dist/component/rust-XKBJng8W.js +9 -0
  524. package/dist/component/sankeyDiagram-5OEKKPKP-C-TbMbsr.js +862 -0
  525. package/dist/component/sas-COkwgxe_.js +11 -0
  526. package/dist/component/sas-DDLczODn.js +11 -0
  527. package/dist/component/sass-BIT8Mghp.js +9 -0
  528. package/dist/component/sass-CbXM5obh.js +9 -0
  529. package/dist/component/scala-CWyCExvl.js +9 -0
  530. package/dist/component/scala-DmAjX8OM.js +9 -0
  531. package/dist/component/scheme-BLXiZF3M.js +9 -0
  532. package/dist/component/scheme-ERi8vGmO.js +9 -0
  533. package/dist/component/scss-BX4eQ0c3.js +11 -0
  534. package/dist/component/scss-Biq-xkEY.js +11 -0
  535. package/dist/component/sdbl-B4TEJKGi.js +9 -0
  536. package/dist/component/sdbl-tnLxE-ur.js +9 -0
  537. package/dist/component/sequenceDiagram-3UESZ5HK-UHhixLbD.js +2897 -0
  538. package/dist/component/shaderlab-DMYXUCqo.js +11 -0
  539. package/dist/component/shaderlab-DqcfJRqk.js +11 -0
  540. package/dist/component/shellscript-B533aeAq.js +9 -0
  541. package/dist/component/shellscript-B8M9FK6Q.js +9 -0
  542. package/dist/component/shellsession-CvrLJEnp.js +11 -0
  543. package/dist/component/shellsession-Cy0cdv3D.js +11 -0
  544. package/dist/component/slack-dark-9TBiD8mL.js +7 -0
  545. package/dist/component/slack-dark-DN-r2Kgp.js +7 -0
  546. package/dist/component/slack-ochin-9pgdwMdj.js +7 -0
  547. package/dist/component/slack-ochin-DoqPjNJD.js +7 -0
  548. package/dist/component/smalltalk-Bbm0pJzJ.js +9 -0
  549. package/dist/component/smalltalk-BgwWJ0LQ.js +9 -0
  550. package/dist/component/snazzy-light-CRiZMLw1.js +7 -0
  551. package/dist/component/snazzy-light-D2QxPpzI.js +7 -0
  552. package/dist/component/solarized-dark-CpiZBbF-.js +7 -0
  553. package/dist/component/solarized-dark-DrZ258Kz.js +7 -0
  554. package/dist/component/solarized-light-940Q0ET-.js +7 -0
  555. package/dist/component/solarized-light-CZjXGjG0.js +7 -0
  556. package/dist/component/solidity-BiVIJAyo.js +9 -0
  557. package/dist/component/solidity-DsGO0zKs.js +9 -0
  558. package/dist/component/soy-B8d9iNux.js +11 -0
  559. package/dist/component/soy-CrWxFFIL.js +11 -0
  560. package/dist/component/sparql-C9-sbVPb.js +11 -0
  561. package/dist/component/sparql-D4y9QLpW.js +11 -0
  562. package/dist/component/splunk-8ZGt17T1.js +9 -0
  563. package/dist/component/splunk-CoLR9YoS.js +9 -0
  564. package/dist/component/sql-kcHmCqqm.js +9 -0
  565. package/dist/component/sql-vg8sPfqQ.js +9 -0
  566. package/dist/component/ssh-config-CaXR5cZI.js +9 -0
  567. package/dist/component/ssh-config-DIPB8nWv.js +9 -0
  568. package/dist/component/stata-DTwlvRC-.js +11 -0
  569. package/dist/component/stata-wXDnjjLv.js +11 -0
  570. package/dist/component/stateDiagram-AJRCARHV-DBGVr_mf.js +266 -0
  571. package/dist/component/stateDiagram-v2-BHNVJYJU-BasSd11t.js +19 -0
  572. package/dist/component/stylus-BVi_fesw.js +9 -0
  573. package/dist/component/stylus-WAexVQ6f.js +9 -0
  574. package/dist/component/surrealql-BMPoOZ16.js +11 -0
  575. package/dist/component/surrealql-CoR3cmJl.js +11 -0
  576. package/dist/component/svelte-BXoajfvD.js +17 -0
  577. package/dist/component/svelte-CSNEH6tH.js +17 -0
  578. package/dist/component/swift-C1L5BrdG.js +9 -0
  579. package/dist/component/swift-DvqRLmJa.js +9 -0
  580. package/dist/component/synthwave-84-CjU0tbaA.js +7 -0
  581. package/dist/component/synthwave-84-D0HCetP1.js +7 -0
  582. package/dist/component/system-verilog-BlCQhLvC.js +9 -0
  583. package/dist/component/system-verilog-NfYSOS9X.js +9 -0
  584. package/dist/component/systemd-C-VULMOV.js +9 -0
  585. package/dist/component/systemd-DPQeba_a.js +9 -0
  586. package/dist/component/talonscript-0iKTliWA.js +9 -0
  587. package/dist/component/talonscript-Dcq0YJ69.js +9 -0
  588. package/dist/component/tasl-CBnjmw_u.js +9 -0
  589. package/dist/component/tasl-DPTcRLbU.js +9 -0
  590. package/dist/component/tcl-B8YZq0wg.js +9 -0
  591. package/dist/component/tcl-D3IfUIUn.js +9 -0
  592. package/dist/component/templ-BWrZoBOl.js +15 -0
  593. package/dist/component/templ-CNKcDxHw.js +15 -0
  594. package/dist/component/terraform-BBGJbbOd.js +9 -0
  595. package/dist/component/terraform-CpHfbII0.js +9 -0
  596. package/dist/component/tex-Do7cxq2n.js +11 -0
  597. package/dist/component/tex-DotwMf2L.js +11 -0
  598. package/dist/component/timeline-definition-PNZ67QCA-BTzUH3cf.js +1058 -0
  599. package/dist/component/tokyo-night-50KL4qXP.js +7 -0
  600. package/dist/component/tokyo-night-CFdInRHE.js +7 -0
  601. package/dist/component/toml-BgG8u2uy.js +9 -0
  602. package/dist/component/toml-Cdrl1XDU.js +9 -0
  603. package/dist/component/ts-tags-CZ_-X2Or.js +44 -0
  604. package/dist/component/ts-tags-JQGxDVZd.js +44 -0
  605. package/dist/component/tsv-CH-Gpfzn.js +9 -0
  606. package/dist/component/tsv-DXq61Z_y.js +9 -0
  607. package/dist/component/tsx-B6WYiHjH.js +9 -0
  608. package/dist/component/tsx-BI2vzHzF.js +9 -0
  609. package/dist/component/turtle-BLh3UAZ1.js +9 -0
  610. package/dist/component/turtle-DuS0HQ9p.js +9 -0
  611. package/dist/component/twig-BA9yPOhQ.js +21 -0
  612. package/dist/component/twig-F0j_PXgJ.js +21 -0
  613. package/dist/component/typescript-Bt_Em9TU.js +9 -0
  614. package/dist/component/typescript-BxspRrVw.js +9 -0
  615. package/dist/component/typespec-CBQfkfKg.js +9 -0
  616. package/dist/component/typespec-ChsG4DJP.js +9 -0
  617. package/dist/component/typst-CLNdxZpy.js +9 -0
  618. package/dist/component/typst-rCvFF3Ml.js +9 -0
  619. package/dist/component/v-Bc8b7HcA.js +9 -0
  620. package/dist/component/v-DkBTCxRz.js +9 -0
  621. package/dist/component/vala-Bf6duLsN.js +9 -0
  622. package/dist/component/vala-D3NFAJvZ.js +9 -0
  623. package/dist/component/vb-CbCKaE0V.js +9 -0
  624. package/dist/component/vb-DoG_86dU.js +9 -0
  625. package/dist/component/vennDiagram-CIIHVFJN-CVh3weJ2.js +1560 -0
  626. package/dist/component/verilog-BsnhA3AJ.js +9 -0
  627. package/dist/component/verilog-nZodAh2g.js +9 -0
  628. package/dist/component/vesper-C9xEuBGK.js +7 -0
  629. package/dist/component/vesper-DGjNIaCs.js +7 -0
  630. package/dist/component/vhdl-D19XVLHt.js +9 -0
  631. package/dist/component/vhdl-mXcQB2Fg.js +9 -0
  632. package/dist/component/viml-8k_5DKNK.js +9 -0
  633. package/dist/component/viml-COJbZm0U.js +9 -0
  634. package/dist/component/vitesse-black-Bct4R3m4.js +7 -0
  635. package/dist/component/vitesse-black-heVxAgDf.js +7 -0
  636. package/dist/component/vitesse-dark-DdWh6SFL.js +7 -0
  637. package/dist/component/vitesse-dark-DiXBkaTo.js +7 -0
  638. package/dist/component/vitesse-light-CerMU32A.js +7 -0
  639. package/dist/component/vitesse-light-Eee3KZAP.js +7 -0
  640. package/dist/component/vue-DjB6jmJ7.js +34 -0
  641. package/dist/component/vue-YqIdEku3.js +34 -0
  642. package/dist/component/vue-html-BkvRG1qx.js +11 -0
  643. package/dist/component/vue-html-CXFz0iVx.js +11 -0
  644. package/dist/component/vue-vine-CFD4nsF4.js +21 -0
  645. package/dist/component/vue-vine-lE-jUeB6.js +21 -0
  646. package/dist/component/vyper-DTCkLS2f.js +9 -0
  647. package/dist/component/vyper-_vSvOdCD.js +9 -0
  648. package/dist/component/wardley-L42UT6IY-HA1eSIS_.js +23141 -0
  649. package/dist/component/wardleyDiagram-YWT4CUSO-Uu5KXQum.js +681 -0
  650. package/dist/component/wasm-BEUtLzBq.js +10 -0
  651. package/dist/component/wasm-Bw9k5bmy.js +9 -0
  652. package/dist/component/wasm-NiufRxKC.js +9 -0
  653. package/dist/component/wasm-rA9i46L9.js +10 -0
  654. package/dist/component/wenyan-BAnK6VvJ.js +9 -0
  655. package/dist/component/wenyan-EBJbIPqf.js +9 -0
  656. package/dist/component/wgsl-B9MSpOv3.js +9 -0
  657. package/dist/component/wgsl-Dlg8zdV4.js +9 -0
  658. package/dist/component/wikitext-C8AvgBS7.js +9 -0
  659. package/dist/component/wikitext-sNd9wc1e.js +9 -0
  660. package/dist/component/wit-BM4EHoLb.js +9 -0
  661. package/dist/component/wit-BUXWAgVD.js +9 -0
  662. package/dist/component/wolfram-Ba-Qm5eW.js +9 -0
  663. package/dist/component/wolfram-CKRVXwGa.js +9 -0
  664. package/dist/component/xml-CE4MTCb-.js +11 -0
  665. package/dist/component/xml-DXvCmeFI.js +11 -0
  666. package/dist/component/xsl-BrFD-9o5.js +11 -0
  667. package/dist/component/xsl-CHBQO4kd.js +11 -0
  668. package/dist/component/xychartDiagram-2RQKCTM6-IkxwUbCF.js +1375 -0
  669. package/dist/component/yaml-CF4mYNnF.js +9 -0
  670. package/dist/component/yaml-XzfbPk1C.js +9 -0
  671. package/dist/component/zenscript-C0pvNsdh.js +9 -0
  672. package/dist/component/zenscript-xkkNgCqg.js +9 -0
  673. package/dist/component/zig-Bz6GLPWH.js +9 -0
  674. package/dist/component/zig-oixaTxav.js +9 -0
  675. package/dist/components/ai-elements/attachments.d.ts +54 -0
  676. package/dist/components/ai-elements/code-block.d.ts +46 -0
  677. package/dist/components/ai-elements/conversation.d.ts +23 -0
  678. package/dist/components/ai-elements/copy-button.d.ts +6 -0
  679. package/dist/components/ai-elements/file-tree.d.ts +26 -0
  680. package/dist/components/ai-elements/link-safety-modal.d.ts +8 -0
  681. package/dist/components/ai-elements/message.d.ts +38 -0
  682. package/dist/components/ai-elements/plan.d.ts +25 -0
  683. package/dist/components/ai-elements/prompt-input.d.ts +158 -0
  684. package/dist/components/ai-elements/reasoning.d.ts +26 -0
  685. package/dist/components/ai-elements/shell-highlight.d.ts +3 -0
  686. package/dist/components/ai-elements/shimmer.d.ts +9 -0
  687. package/dist/components/ai-elements/suggestion.d.ts +10 -0
  688. package/dist/components/ai-elements/task.d.ts +14 -0
  689. package/dist/components/ai-elements/terminal-task.d.ts +5 -0
  690. package/dist/components/ai-elements/tool.d.ts +31 -0
  691. package/dist/components/embed/AgentGrantCard.d.ts +25 -0
  692. package/dist/components/embed/AtMentionMenu.d.ts +13 -0
  693. package/dist/components/embed/BelongMark.d.ts +4 -0
  694. package/dist/components/embed/BrandMark.d.ts +11 -0
  695. package/dist/components/embed/CapabilityHints.d.ts +1 -0
  696. package/dist/components/embed/ComposerMenu.d.ts +36 -0
  697. package/dist/components/embed/CsvTable.d.ts +10 -0
  698. package/dist/components/embed/EmbedAvatar.d.ts +35 -0
  699. package/dist/components/embed/EmbedComposer.d.ts +31 -0
  700. package/dist/components/embed/EmbedConversation.d.ts +31 -0
  701. package/dist/components/embed/EmbedFiles.d.ts +28 -0
  702. package/dist/components/embed/EmbedHeader.d.ts +11 -0
  703. package/dist/components/embed/EmbedLogin.d.ts +11 -0
  704. package/dist/components/embed/EmbedRail.d.ts +49 -0
  705. package/dist/components/embed/EmbedSessions.d.ts +23 -0
  706. package/dist/components/embed/FilePreview.d.ts +12 -0
  707. package/dist/components/embed/FilePreviewDialog.d.ts +19 -0
  708. package/dist/components/embed/MentionInput.d.ts +23 -0
  709. package/dist/components/embed/MentionPill.d.ts +25 -0
  710. package/dist/components/embed/OnboardingOverlay.d.ts +21 -0
  711. package/dist/components/embed/OnboardingTour.d.ts +24 -0
  712. package/dist/components/embed/OnboardingWelcome.d.ts +23 -0
  713. package/dist/components/embed/PlanCue.d.ts +9 -0
  714. package/dist/components/embed/PlanPanel.d.ts +13 -0
  715. package/dist/components/embed/PlanView.d.ts +16 -0
  716. package/dist/components/embed/PoweredByBelong.d.ts +7 -0
  717. package/dist/components/embed/PreviewContent.d.ts +26 -0
  718. package/dist/components/embed/PreviewPanel.d.ts +17 -0
  719. package/dist/components/embed/ProgressRing.d.ts +13 -0
  720. package/dist/components/embed/SlashCommandMenu.d.ts +13 -0
  721. package/dist/components/embed/UploadedFiles.d.ts +9 -0
  722. package/dist/components/embed/UsageMeter.d.ts +9 -0
  723. package/dist/components/embed/WelcomeIntro.d.ts +10 -0
  724. package/dist/components/embed/WorkspaceTree.d.ts +22 -0
  725. package/dist/components/embed/__plan-test-utils__.d.ts +13 -0
  726. package/dist/components/embed/dev-runtime-bar.d.ts +21 -0
  727. package/dist/components/embed/embed-composer.fixtures.d.ts +3 -0
  728. package/dist/components/embed/embed-rail.fixtures.d.ts +3 -0
  729. package/dist/components/embed/file-preview-kind.d.ts +7 -0
  730. package/dist/components/embed/onboarding-story-dock.d.ts +20 -0
  731. package/dist/components/embed/onboarding.fixtures.d.ts +9 -0
  732. package/dist/components/embed/parse-csv.d.ts +10 -0
  733. package/dist/components/embed/preview-content-kind.d.ts +15 -0
  734. package/dist/components/embed/use-panel-resize.d.ts +4 -0
  735. package/dist/components/embed/use-preview-bytes.d.ts +39 -0
  736. package/dist/components/feedback/feedback-metadata.d.ts +37 -0
  737. package/dist/components/feedback/message-feedback.d.ts +9 -0
  738. package/dist/components/ui/accordion.d.ts +7 -0
  739. package/dist/components/ui/alert.d.ts +9 -0
  740. package/dist/components/ui/avatar.d.ts +11 -0
  741. package/dist/components/ui/badge.d.ts +9 -0
  742. package/dist/components/ui/button-group.d.ts +11 -0
  743. package/dist/components/ui/button.d.ts +10 -0
  744. package/dist/components/ui/card.d.ts +9 -0
  745. package/dist/components/ui/carousel.d.ts +19 -0
  746. package/dist/components/ui/checkbox.d.ts +4 -0
  747. package/dist/components/ui/collapsible.d.ts +5 -0
  748. package/dist/components/ui/command.d.ts +18 -0
  749. package/dist/components/ui/dialog.d.ts +17 -0
  750. package/dist/components/ui/dropdown-menu.d.ts +25 -0
  751. package/dist/components/ui/hover-card.d.ts +6 -0
  752. package/dist/components/ui/input-group.d.ts +16 -0
  753. package/dist/components/ui/input.d.ts +3 -0
  754. package/dist/components/ui/popover.d.ts +10 -0
  755. package/dist/components/ui/progress.d.ts +4 -0
  756. package/dist/components/ui/radio-group.d.ts +5 -0
  757. package/dist/components/ui/scroll-area.d.ts +5 -0
  758. package/dist/components/ui/select.d.ts +15 -0
  759. package/dist/components/ui/separator.d.ts +4 -0
  760. package/dist/components/ui/spinner.d.ts +2 -0
  761. package/dist/components/ui/switch.d.ts +6 -0
  762. package/dist/components/ui/tabs.d.ts +11 -0
  763. package/dist/components/ui/textarea.d.ts +3 -0
  764. package/dist/components/ui/tooltip.d.ts +7 -0
  765. package/dist/dev-main.d.ts +0 -0
  766. package/dist/embed/agent-grant-refresh.d.ts +37 -0
  767. package/dist/embed/at-mentions.d.ts +80 -0
  768. package/dist/embed/auth0-refresh.d.ts +78 -0
  769. package/dist/embed/auto-embed.d.ts +19 -0
  770. package/dist/embed/bootstrap.d.ts +10 -0
  771. package/dist/embed/brand-marks.d.ts +11 -0
  772. package/dist/embed/build-info.d.ts +30 -0
  773. package/dist/embed/build-version.d.ts +28 -0
  774. package/dist/embed/chat-mode.d.ts +46 -0
  775. package/dist/embed/composer-focus.d.ts +14 -0
  776. package/dist/embed/copy.d.ts +84 -0
  777. package/dist/embed/custom-css.d.ts +2 -0
  778. package/dist/embed/debug-overrides.d.ts +11 -0
  779. package/dist/embed/dev-mode.d.ts +56 -0
  780. package/dist/embed/dock-layout.d.ts +30 -0
  781. package/dist/embed/dock-state.d.ts +32 -0
  782. package/dist/embed/download-url.d.ts +9 -0
  783. package/dist/embed/file-type-icon.d.ts +29 -0
  784. package/dist/embed/format-bytes.d.ts +2 -0
  785. package/dist/embed/global.d.ts +79 -0
  786. package/dist/embed/locale.d.ts +18 -0
  787. package/dist/embed/logo.d.ts +1 -0
  788. package/dist/embed/mic-press.d.ts +27 -0
  789. package/dist/embed/onboarding-prefs.d.ts +52 -0
  790. package/dist/embed/onboarding-steps.d.ts +27 -0
  791. package/dist/embed/onboarding-store.d.ts +39 -0
  792. package/dist/embed/plan-auto-open.d.ts +8 -0
  793. package/dist/embed/plan-decision.d.ts +10 -0
  794. package/dist/embed/plan-intent.d.ts +17 -0
  795. package/dist/embed/portal-container.d.ts +23 -0
  796. package/dist/embed/presets.d.ts +29 -0
  797. package/dist/embed/session-record.d.ts +16 -0
  798. package/dist/embed/shadow-mount.d.ts +37 -0
  799. package/dist/embed/slash-commands.d.ts +49 -0
  800. package/dist/embed/theme.d.ts +40 -0
  801. package/dist/embed/universe-origin.d.ts +24 -0
  802. package/dist/embed/use-workspace-file-download.d.ts +16 -0
  803. package/dist/embed/voice/audio-forwarder.worklet.d.ts +22 -0
  804. package/dist/embed/voice/audio-utils.d.ts +38 -0
  805. package/dist/embed/voice/deepgram-stt.d.ts +69 -0
  806. package/dist/embed/voice/mic-capture.d.ts +34 -0
  807. package/dist/embed/voice/sentence-split.d.ts +11 -0
  808. package/dist/embed/voice/voice-http.d.ts +8 -0
  809. package/dist/embed/voice/voice-token.d.ts +40 -0
  810. package/dist/embed/voice-bus.d.ts +75 -0
  811. package/dist/embed/voice-config.d.ts +52 -0
  812. package/dist/embed/voice-fillers.d.ts +2 -0
  813. package/dist/embed/voice-prefs.d.ts +55 -0
  814. package/dist/embed/voice-tts.d.ts +101 -0
  815. package/dist/embed/workspace-paths.d.ts +9 -0
  816. package/dist/infrastructure/telemetry/session-span-processor.d.ts +11 -0
  817. package/dist/infrastructure/telemetry/web-sdk.d.ts +29 -0
  818. package/dist/lib/belong.d.ts +12 -0
  819. package/dist/lib/tab-leadership.d.ts +46 -0
  820. package/dist/lib/use-tab-leadership.d.ts +8 -0
  821. package/dist/lib/utils.d.ts +9 -0
  822. package/dist/public-api.d.ts +3 -0
  823. package/dist/routes/chat-attachment-chip.d.ts +9 -0
  824. package/dist/routes/chat.d.ts +29 -0
  825. package/dist/routes/documents.d.ts +16 -0
  826. package/dist/routes/files.d.ts +14 -0
  827. package/dist/routes/sample-artifact.d.ts +7 -0
  828. package/dist/routes/sessions.d.ts +4 -0
  829. package/dist/routes/static-chat-fixture.d.ts +26 -0
  830. package/dist/stream/ai-sdk-part-renderers.d.ts +66 -0
  831. package/dist/stream/belong-chat-transport.d.ts +679 -0
  832. package/dist/stream/belong-data-parts.d.ts +207 -0
  833. package/dist/stream/chat-upload.d.ts +35 -0
  834. package/dist/stream/plan-panel-store.d.ts +11 -0
  835. package/dist/stream/plan-progress-store.d.ts +4 -0
  836. package/dist/stream/plan-progress.d.ts +25 -0
  837. package/dist/stream/plan-store.d.ts +16 -0
  838. package/dist/stream/preview-panel-store.d.ts +50 -0
  839. package/dist/stream/sandbox-output.d.ts +32 -0
  840. package/dist/stream/select-latest-plan.d.ts +17 -0
  841. package/dist/stream/select-session-usage.d.ts +23 -0
  842. package/dist/stream/session-title.d.ts +15 -0
  843. package/dist/stream/stream-state-store.d.ts +67 -0
  844. package/dist/stream/tool-io.d.ts +7 -0
  845. package/dist/test/render.d.ts +23 -0
  846. package/dist/test-setup.d.ts +1 -0
  847. package/dist/types/public.d.ts +189 -0
  848. package/package.json +38 -0
@@ -0,0 +1,2421 @@
1
+ import { g as pe } from "./chunk-FMBD7UC4-CyqtPCO0.js";
2
+ import { aq as fe, ar as Ut, as as xe, at as ye, au as be, av as we, aw as me, ax as Se, ay as Le, az as ke, aA as ve, aB as Ee, aC as _e, aD as Te, aE as De, aF as Be, aG as Ne, aH as Ie, aI as Ce, aJ as Oe, aK as Re, aL as Ae, aM as ze, aN as Me, aO as Pe, _ as d, G as at, d as D, e as Fe, l as k, B as We, D as Ye, aP as He, ac as Ke, ad as Ue, c as A, a9 as Xe, aQ as P, aR as vt, aS as $, aT as Ve, u as tt, k as je, aU as Ge, i as Ot, aV as Rt, aW as Ze } from "./mermaid-GHXKKRXX-C5Y3BZXR.js";
3
+ import { G as qe } from "./graph-BZLHvygk.js";
4
+ import { c as Je } from "./channel-ahmILYyG.js";
5
+ globalThis.process = globalThis.process || { env: {} };
6
+ globalThis.global = globalThis.global || globalThis;
7
+ function Qe(e) {
8
+ return Array.isArray(e);
9
+ }
10
+ function $e(e) {
11
+ if (fe(e)) return e;
12
+ const t = Ut(e);
13
+ if (!tr(e)) return {};
14
+ if (Qe(e)) {
15
+ const s = Array.from(e);
16
+ return e.length > 0 && typeof e[0] == "string" && Object.hasOwn(e, "index") && (s.index = e.index, s.input = e.input), s;
17
+ }
18
+ if (xe(e)) {
19
+ const s = e, i = s.constructor;
20
+ return new i(s.buffer, s.byteOffset, s.length);
21
+ }
22
+ if (t === "[object ArrayBuffer]") return new ArrayBuffer(e.byteLength);
23
+ if (t === "[object DataView]") {
24
+ const s = e, i = s.buffer, c = s.byteOffset, r = s.byteLength, n = new ArrayBuffer(r), l = new Uint8Array(i, c, r);
25
+ return new Uint8Array(n).set(l), new DataView(n);
26
+ }
27
+ if (t === "[object Boolean]" || t === "[object Number]" || t === "[object String]") {
28
+ const s = e.constructor, i = new s(e.valueOf());
29
+ return t === "[object String]" ? rr(i, e) : yt(i, e), i;
30
+ }
31
+ if (t === "[object Date]") return new Date(Number(e));
32
+ if (t === "[object RegExp]") {
33
+ const s = e, i = new RegExp(s.source, s.flags);
34
+ return i.lastIndex = s.lastIndex, i;
35
+ }
36
+ if (t === "[object Symbol]") return Object(Symbol.prototype.valueOf.call(e));
37
+ if (t === "[object Map]") {
38
+ const s = e, i = /* @__PURE__ */ new Map();
39
+ return s.forEach((c, r) => {
40
+ i.set(r, c);
41
+ }), i;
42
+ }
43
+ if (t === "[object Set]") {
44
+ const s = e, i = /* @__PURE__ */ new Set();
45
+ return s.forEach((c) => {
46
+ i.add(c);
47
+ }), i;
48
+ }
49
+ if (t === "[object Arguments]") {
50
+ const s = e, i = {};
51
+ return yt(i, s), i.length = s.length, i[Symbol.iterator] = s[Symbol.iterator], i;
52
+ }
53
+ const a = {};
54
+ return ar(a, e), yt(a, e), er(a, e), a;
55
+ }
56
+ function tr(e) {
57
+ switch (Ut(e)) {
58
+ case Pe:
59
+ case Me:
60
+ case ze:
61
+ case Ae:
62
+ case Re:
63
+ case Oe:
64
+ case Ce:
65
+ case Ie:
66
+ case Ne:
67
+ case Be:
68
+ case De:
69
+ case Te:
70
+ case _e:
71
+ case Ee:
72
+ case ve:
73
+ case ke:
74
+ case Le:
75
+ case Se:
76
+ case me:
77
+ case we:
78
+ case be:
79
+ case ye:
80
+ return !0;
81
+ default:
82
+ return !1;
83
+ }
84
+ }
85
+ function yt(e, t) {
86
+ for (const a in t) Object.hasOwn(t, a) && (e[a] = t[a]);
87
+ }
88
+ function er(e, t) {
89
+ const a = Object.getOwnPropertySymbols(t);
90
+ for (let s = 0; s < a.length; s++) {
91
+ const i = a[s];
92
+ Object.prototype.propertyIsEnumerable.call(t, i) && (e[i] = t[i]);
93
+ }
94
+ }
95
+ function rr(e, t) {
96
+ const a = t.valueOf().length;
97
+ for (const s in t) Object.hasOwn(t, s) && (Number.isNaN(Number(s)) || Number(s) >= a) && (e[s] = t[s]);
98
+ }
99
+ function ar(e, t) {
100
+ const a = Object.getPrototypeOf(t);
101
+ a !== null && typeof t.constructor == "function" && Object.setPrototypeOf(e, a);
102
+ }
103
+ var wt = (function() {
104
+ var e = /* @__PURE__ */ d(function(T, m, u, y) {
105
+ for (u = u || {}, y = T.length; y--; u[T[y]] = m) ;
106
+ return u;
107
+ }, "o"), t = [1, 15], a = [1, 7], s = [1, 13], i = [1, 14], c = [1, 19], r = [1, 16], n = [1, 17], l = [1, 18], g = [8, 30], o = [8, 10, 21, 28, 29, 30, 31, 39, 43, 46], p = [1, 23], b = [1, 24], x = [8, 10, 15, 16, 21, 28, 29, 30, 31, 39, 43, 46], w = [8, 10, 15, 16, 21, 27, 28, 29, 30, 31, 39, 43, 46], v = [1, 49], S = {
108
+ trace: /* @__PURE__ */ d(function() {
109
+ }, "trace"),
110
+ yy: {},
111
+ symbols_: { error: 2, spaceLines: 3, SPACELINE: 4, NL: 5, separator: 6, SPACE: 7, EOF: 8, start: 9, BLOCK_DIAGRAM_KEY: 10, document: 11, stop: 12, statement: 13, link: 14, LINK: 15, START_LINK: 16, LINK_LABEL: 17, STR: 18, nodeStatement: 19, columnsStatement: 20, SPACE_BLOCK: 21, blockStatement: 22, classDefStatement: 23, cssClassStatement: 24, styleStatement: 25, node: 26, SIZE: 27, COLUMNS: 28, "id-block": 29, end: 30, NODE_ID: 31, nodeShapeNLabel: 32, dirList: 33, DIR: 34, NODE_DSTART: 35, NODE_DEND: 36, BLOCK_ARROW_START: 37, BLOCK_ARROW_END: 38, classDef: 39, CLASSDEF_ID: 40, CLASSDEF_STYLEOPTS: 41, DEFAULT: 42, class: 43, CLASSENTITY_IDS: 44, STYLECLASS: 45, style: 46, STYLE_ENTITY_IDS: 47, STYLE_DEFINITION_DATA: 48, $accept: 0, $end: 1 },
112
+ terminals_: { 2: "error", 4: "SPACELINE", 5: "NL", 7: "SPACE", 8: "EOF", 10: "BLOCK_DIAGRAM_KEY", 15: "LINK", 16: "START_LINK", 17: "LINK_LABEL", 18: "STR", 21: "SPACE_BLOCK", 27: "SIZE", 28: "COLUMNS", 29: "id-block", 30: "end", 31: "NODE_ID", 34: "DIR", 35: "NODE_DSTART", 36: "NODE_DEND", 37: "BLOCK_ARROW_START", 38: "BLOCK_ARROW_END", 39: "classDef", 40: "CLASSDEF_ID", 41: "CLASSDEF_STYLEOPTS", 42: "DEFAULT", 43: "class", 44: "CLASSENTITY_IDS", 45: "STYLECLASS", 46: "style", 47: "STYLE_ENTITY_IDS", 48: "STYLE_DEFINITION_DATA" },
113
+ productions_: [0, [3, 1], [3, 2], [3, 2], [6, 1], [6, 1], [6, 1], [9, 3], [12, 1], [12, 1], [12, 2], [12, 2], [11, 1], [11, 2], [14, 1], [14, 4], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [19, 3], [19, 2], [19, 1], [20, 1], [22, 4], [22, 3], [26, 1], [26, 2], [33, 1], [33, 2], [32, 3], [32, 4], [23, 3], [23, 3], [24, 3], [25, 3]],
114
+ performAction: /* @__PURE__ */ d(function(m, u, y, L, E, h, W) {
115
+ var f = h.length - 1;
116
+ switch (E) {
117
+ case 4:
118
+ L.getLogger().debug("Rule: separator (NL) ");
119
+ break;
120
+ case 5:
121
+ L.getLogger().debug("Rule: separator (Space) ");
122
+ break;
123
+ case 6:
124
+ L.getLogger().debug("Rule: separator (EOF) ");
125
+ break;
126
+ case 7:
127
+ L.getLogger().debug("Rule: hierarchy: ", h[f - 1]), L.setHierarchy(h[f - 1]);
128
+ break;
129
+ case 8:
130
+ L.getLogger().debug("Stop NL ");
131
+ break;
132
+ case 9:
133
+ L.getLogger().debug("Stop EOF ");
134
+ break;
135
+ case 10:
136
+ L.getLogger().debug("Stop NL2 ");
137
+ break;
138
+ case 11:
139
+ L.getLogger().debug("Stop EOF2 ");
140
+ break;
141
+ case 12:
142
+ L.getLogger().debug("Rule: statement: ", h[f]), typeof h[f].length == "number" ? this.$ = h[f] : this.$ = [h[f]];
143
+ break;
144
+ case 13:
145
+ L.getLogger().debug("Rule: statement #2: ", h[f - 1]), this.$ = [h[f - 1]].concat(h[f]);
146
+ break;
147
+ case 14:
148
+ L.getLogger().debug("Rule: link: ", h[f], m), this.$ = { edgeTypeStr: h[f], label: "" };
149
+ break;
150
+ case 15:
151
+ L.getLogger().debug("Rule: LABEL link: ", h[f - 3], h[f - 1], h[f]), this.$ = { edgeTypeStr: h[f], label: h[f - 1] };
152
+ break;
153
+ case 18:
154
+ const O = parseInt(h[f]), q = L.generateId();
155
+ this.$ = { id: q, type: "space", label: "", width: O, children: [] };
156
+ break;
157
+ case 23:
158
+ L.getLogger().debug("Rule: (nodeStatement link node) ", h[f - 2], h[f - 1], h[f], " typestr: ", h[f - 1].edgeTypeStr);
159
+ const j = L.edgeStrToEdgeData(h[f - 1].edgeTypeStr), st = L.edgeStrToEdgeStartData(h[f - 1].edgeTypeStr), dt = L.edgeStrToThickness(h[f - 1].edgeTypeStr), R = L.edgeStrToPattern(h[f - 1].edgeTypeStr);
160
+ this.$ = [
161
+ { id: h[f - 2].id, label: h[f - 2].label, type: h[f - 2].type, directions: h[f - 2].directions },
162
+ { id: h[f - 2].id + "-" + h[f].id, start: h[f - 2].id, end: h[f].id, label: h[f - 1].label, type: "edge", thickness: dt, pattern: R, directions: h[f].directions, arrowTypeEnd: j, arrowTypeStart: st },
163
+ { id: h[f].id, label: h[f].label, type: L.typeStr2Type(h[f].typeStr), directions: h[f].directions }
164
+ ];
165
+ break;
166
+ case 24:
167
+ L.getLogger().debug("Rule: nodeStatement (abc88 node size) ", h[f - 1], h[f]), this.$ = { id: h[f - 1].id, label: h[f - 1].label, type: L.typeStr2Type(h[f - 1].typeStr), directions: h[f - 1].directions, widthInColumns: parseInt(h[f], 10) };
168
+ break;
169
+ case 25:
170
+ L.getLogger().debug("Rule: nodeStatement (node) ", h[f]), this.$ = { id: h[f].id, label: h[f].label, type: L.typeStr2Type(h[f].typeStr), directions: h[f].directions, widthInColumns: 1 };
171
+ break;
172
+ case 26:
173
+ L.getLogger().debug("APA123", this ? this : "na"), L.getLogger().debug("COLUMNS: ", h[f]), this.$ = { type: "column-setting", columns: h[f] === "auto" ? -1 : parseInt(h[f]) };
174
+ break;
175
+ case 27:
176
+ L.getLogger().debug("Rule: id-block statement : ", h[f - 2], h[f - 1]), L.generateId(), this.$ = { ...h[f - 2], type: "composite", children: h[f - 1] };
177
+ break;
178
+ case 28:
179
+ L.getLogger().debug("Rule: blockStatement : ", h[f - 2], h[f - 1], h[f]);
180
+ const G = L.generateId();
181
+ this.$ = { id: G, type: "composite", label: "", children: h[f - 1] };
182
+ break;
183
+ case 29:
184
+ L.getLogger().debug("Rule: node (NODE_ID separator): ", h[f]), this.$ = { id: h[f] };
185
+ break;
186
+ case 30:
187
+ L.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", h[f - 1], h[f]), this.$ = { id: h[f - 1], label: h[f].label, typeStr: h[f].typeStr, directions: h[f].directions };
188
+ break;
189
+ case 31:
190
+ L.getLogger().debug("Rule: dirList: ", h[f]), this.$ = [h[f]];
191
+ break;
192
+ case 32:
193
+ L.getLogger().debug("Rule: dirList: ", h[f - 1], h[f]), this.$ = [h[f - 1]].concat(h[f]);
194
+ break;
195
+ case 33:
196
+ L.getLogger().debug("Rule: nodeShapeNLabel: ", h[f - 2], h[f - 1], h[f]), this.$ = { typeStr: h[f - 2] + h[f], label: h[f - 1] };
197
+ break;
198
+ case 34:
199
+ L.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", h[f - 3], h[f - 2], " #3:", h[f - 1], h[f]), this.$ = { typeStr: h[f - 3] + h[f], label: h[f - 2], directions: h[f - 1] };
200
+ break;
201
+ case 35:
202
+ case 36:
203
+ this.$ = { type: "classDef", id: h[f - 1].trim(), css: h[f].trim() };
204
+ break;
205
+ case 37:
206
+ this.$ = { type: "applyClass", id: h[f - 1].trim(), styleClass: h[f].trim() };
207
+ break;
208
+ case 38:
209
+ this.$ = { type: "applyStyles", id: h[f - 1].trim(), stylesStr: h[f].trim() };
210
+ break;
211
+ }
212
+ }, "anonymous"),
213
+ table: [{ 9: 1, 10: [1, 2] }, { 1: [3] }, { 10: t, 11: 3, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: s, 29: i, 31: c, 39: r, 43: n, 46: l }, { 8: [1, 20] }, e(g, [2, 12], { 13: 4, 19: 5, 20: 6, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 11: 21, 10: t, 21: a, 28: s, 29: i, 31: c, 39: r, 43: n, 46: l }), e(o, [2, 16], { 14: 22, 15: p, 16: b }), e(o, [2, 17]), e(o, [2, 18]), e(o, [2, 19]), e(o, [2, 20]), e(o, [2, 21]), e(o, [2, 22]), e(x, [2, 25], { 27: [1, 25] }), e(o, [2, 26]), { 19: 26, 26: 12, 31: c }, { 10: t, 11: 27, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: s, 29: i, 31: c, 39: r, 43: n, 46: l }, { 40: [1, 28], 42: [1, 29] }, { 44: [1, 30] }, { 47: [1, 31] }, e(w, [2, 29], { 32: 32, 35: [1, 33], 37: [1, 34] }), { 1: [2, 7] }, e(g, [2, 13]), { 26: 35, 31: c }, { 31: [2, 14] }, { 17: [1, 36] }, e(x, [2, 24]), { 10: t, 11: 37, 13: 4, 14: 22, 15: p, 16: b, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: s, 29: i, 31: c, 39: r, 43: n, 46: l }, { 30: [1, 38] }, { 41: [1, 39] }, { 41: [1, 40] }, { 45: [1, 41] }, { 48: [1, 42] }, e(w, [2, 30]), { 18: [1, 43] }, { 18: [1, 44] }, e(x, [2, 23]), { 18: [1, 45] }, { 30: [1, 46] }, e(o, [2, 28]), e(o, [2, 35]), e(o, [2, 36]), e(o, [2, 37]), e(o, [2, 38]), { 36: [1, 47] }, { 33: 48, 34: v }, { 15: [1, 50] }, e(o, [2, 27]), e(w, [2, 33]), { 38: [1, 51] }, { 33: 52, 34: v, 38: [2, 31] }, { 31: [2, 15] }, e(w, [2, 34]), { 38: [2, 32] }],
214
+ defaultActions: { 20: [2, 7], 23: [2, 14], 50: [2, 15], 52: [2, 32] },
215
+ parseError: /* @__PURE__ */ d(function(m, u) {
216
+ if (u.recoverable)
217
+ this.trace(m);
218
+ else {
219
+ var y = new Error(m);
220
+ throw y.hash = u, y;
221
+ }
222
+ }, "parseError"),
223
+ parse: /* @__PURE__ */ d(function(m) {
224
+ var u = this, y = [0], L = [], E = [null], h = [], W = this.table, f = "", O = 0, q = 0, j = 2, st = 1, dt = h.slice.call(arguments, 1), R = Object.create(this.lexer), G = { yy: {} };
225
+ for (var ut in this.yy)
226
+ Object.prototype.hasOwnProperty.call(this.yy, ut) && (G.yy[ut] = this.yy[ut]);
227
+ R.setInput(m, G.yy), G.yy.lexer = R, G.yy.parser = this, typeof R.yylloc > "u" && (R.yylloc = {});
228
+ var pt = R.yylloc;
229
+ h.push(pt);
230
+ var de = R.options && R.options.ranges;
231
+ typeof G.yy.parseError == "function" ? this.parseError = G.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
232
+ function ue(Y) {
233
+ y.length = y.length - 2 * Y, E.length = E.length - Y, h.length = h.length - Y;
234
+ }
235
+ d(ue, "popStack");
236
+ function It() {
237
+ var Y;
238
+ return Y = L.pop() || R.lex() || st, typeof Y != "number" && (Y instanceof Array && (L = Y, Y = L.pop()), Y = u.symbols_[Y] || Y), Y;
239
+ }
240
+ d(It, "lex");
241
+ for (var F, J, K, ft, Q = {}, it, Z, Ct, nt; ; ) {
242
+ if (J = y[y.length - 1], this.defaultActions[J] ? K = this.defaultActions[J] : ((F === null || typeof F > "u") && (F = It()), K = W[J] && W[J][F]), typeof K > "u" || !K.length || !K[0]) {
243
+ var xt = "";
244
+ nt = [];
245
+ for (it in W[J])
246
+ this.terminals_[it] && it > j && nt.push("'" + this.terminals_[it] + "'");
247
+ R.showPosition ? xt = "Parse error on line " + (O + 1) + `:
248
+ ` + R.showPosition() + `
249
+ Expecting ` + nt.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : xt = "Parse error on line " + (O + 1) + ": Unexpected " + (F == st ? "end of input" : "'" + (this.terminals_[F] || F) + "'"), this.parseError(xt, {
250
+ text: R.match,
251
+ token: this.terminals_[F] || F,
252
+ line: R.yylineno,
253
+ loc: pt,
254
+ expected: nt
255
+ });
256
+ }
257
+ if (K[0] instanceof Array && K.length > 1)
258
+ throw new Error("Parse Error: multiple actions possible at state: " + J + ", token: " + F);
259
+ switch (K[0]) {
260
+ case 1:
261
+ y.push(F), E.push(R.yytext), h.push(R.yylloc), y.push(K[1]), F = null, q = R.yyleng, f = R.yytext, O = R.yylineno, pt = R.yylloc;
262
+ break;
263
+ case 2:
264
+ if (Z = this.productions_[K[1]][1], Q.$ = E[E.length - Z], Q._$ = {
265
+ first_line: h[h.length - (Z || 1)].first_line,
266
+ last_line: h[h.length - 1].last_line,
267
+ first_column: h[h.length - (Z || 1)].first_column,
268
+ last_column: h[h.length - 1].last_column
269
+ }, de && (Q._$.range = [
270
+ h[h.length - (Z || 1)].range[0],
271
+ h[h.length - 1].range[1]
272
+ ]), ft = this.performAction.apply(Q, [
273
+ f,
274
+ q,
275
+ O,
276
+ G.yy,
277
+ K[1],
278
+ E,
279
+ h
280
+ ].concat(dt)), typeof ft < "u")
281
+ return ft;
282
+ Z && (y = y.slice(0, -1 * Z * 2), E = E.slice(0, -1 * Z), h = h.slice(0, -1 * Z)), y.push(this.productions_[K[1]][0]), E.push(Q.$), h.push(Q._$), Ct = W[y[y.length - 2]][y[y.length - 1]], y.push(Ct);
283
+ break;
284
+ case 3:
285
+ return !0;
286
+ }
287
+ }
288
+ return !0;
289
+ }, "parse")
290
+ }, _ = /* @__PURE__ */ (function() {
291
+ var T = {
292
+ EOF: 1,
293
+ parseError: /* @__PURE__ */ d(function(u, y) {
294
+ if (this.yy.parser)
295
+ this.yy.parser.parseError(u, y);
296
+ else
297
+ throw new Error(u);
298
+ }, "parseError"),
299
+ // resets the lexer, sets new input
300
+ setInput: /* @__PURE__ */ d(function(m, u) {
301
+ return this.yy = u || this.yy || {}, this._input = m, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
302
+ first_line: 1,
303
+ first_column: 0,
304
+ last_line: 1,
305
+ last_column: 0
306
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
307
+ }, "setInput"),
308
+ // consumes and returns one char from the input
309
+ input: /* @__PURE__ */ d(function() {
310
+ var m = this._input[0];
311
+ this.yytext += m, this.yyleng++, this.offset++, this.match += m, this.matched += m;
312
+ var u = m.match(/(?:\r\n?|\n).*/g);
313
+ return u ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), m;
314
+ }, "input"),
315
+ // unshifts one char (or a string) into the input
316
+ unput: /* @__PURE__ */ d(function(m) {
317
+ var u = m.length, y = m.split(/(?:\r\n?|\n)/g);
318
+ this._input = m + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - u), this.offset -= u;
319
+ var L = this.match.split(/(?:\r\n?|\n)/g);
320
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), y.length - 1 && (this.yylineno -= y.length - 1);
321
+ var E = this.yylloc.range;
322
+ return this.yylloc = {
323
+ first_line: this.yylloc.first_line,
324
+ last_line: this.yylineno + 1,
325
+ first_column: this.yylloc.first_column,
326
+ last_column: y ? (y.length === L.length ? this.yylloc.first_column : 0) + L[L.length - y.length].length - y[0].length : this.yylloc.first_column - u
327
+ }, this.options.ranges && (this.yylloc.range = [E[0], E[0] + this.yyleng - u]), this.yyleng = this.yytext.length, this;
328
+ }, "unput"),
329
+ // When called from action, caches matched text and appends it on next action
330
+ more: /* @__PURE__ */ d(function() {
331
+ return this._more = !0, this;
332
+ }, "more"),
333
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
334
+ reject: /* @__PURE__ */ d(function() {
335
+ if (this.options.backtrack_lexer)
336
+ this._backtrack = !0;
337
+ else
338
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
339
+ ` + this.showPosition(), {
340
+ text: "",
341
+ token: null,
342
+ line: this.yylineno
343
+ });
344
+ return this;
345
+ }, "reject"),
346
+ // retain first n characters of the match
347
+ less: /* @__PURE__ */ d(function(m) {
348
+ this.unput(this.match.slice(m));
349
+ }, "less"),
350
+ // displays already matched input, i.e. for error messages
351
+ pastInput: /* @__PURE__ */ d(function() {
352
+ var m = this.matched.substr(0, this.matched.length - this.match.length);
353
+ return (m.length > 20 ? "..." : "") + m.substr(-20).replace(/\n/g, "");
354
+ }, "pastInput"),
355
+ // displays upcoming input, i.e. for error messages
356
+ upcomingInput: /* @__PURE__ */ d(function() {
357
+ var m = this.match;
358
+ return m.length < 20 && (m += this._input.substr(0, 20 - m.length)), (m.substr(0, 20) + (m.length > 20 ? "..." : "")).replace(/\n/g, "");
359
+ }, "upcomingInput"),
360
+ // displays the character position where the lexing error occurred, i.e. for error messages
361
+ showPosition: /* @__PURE__ */ d(function() {
362
+ var m = this.pastInput(), u = new Array(m.length + 1).join("-");
363
+ return m + this.upcomingInput() + `
364
+ ` + u + "^";
365
+ }, "showPosition"),
366
+ // test the lexed token: return FALSE when not a match, otherwise return token
367
+ test_match: /* @__PURE__ */ d(function(m, u) {
368
+ var y, L, E;
369
+ if (this.options.backtrack_lexer && (E = {
370
+ yylineno: this.yylineno,
371
+ yylloc: {
372
+ first_line: this.yylloc.first_line,
373
+ last_line: this.last_line,
374
+ first_column: this.yylloc.first_column,
375
+ last_column: this.yylloc.last_column
376
+ },
377
+ yytext: this.yytext,
378
+ match: this.match,
379
+ matches: this.matches,
380
+ matched: this.matched,
381
+ yyleng: this.yyleng,
382
+ offset: this.offset,
383
+ _more: this._more,
384
+ _input: this._input,
385
+ yy: this.yy,
386
+ conditionStack: this.conditionStack.slice(0),
387
+ done: this.done
388
+ }, this.options.ranges && (E.yylloc.range = this.yylloc.range.slice(0))), L = m[0].match(/(?:\r\n?|\n).*/g), L && (this.yylineno += L.length), this.yylloc = {
389
+ first_line: this.yylloc.last_line,
390
+ last_line: this.yylineno + 1,
391
+ first_column: this.yylloc.last_column,
392
+ last_column: L ? L[L.length - 1].length - L[L.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + m[0].length
393
+ }, this.yytext += m[0], this.match += m[0], this.matches = m, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(m[0].length), this.matched += m[0], y = this.performAction.call(this, this.yy, this, u, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), y)
394
+ return y;
395
+ if (this._backtrack) {
396
+ for (var h in E)
397
+ this[h] = E[h];
398
+ return !1;
399
+ }
400
+ return !1;
401
+ }, "test_match"),
402
+ // return next match in input
403
+ next: /* @__PURE__ */ d(function() {
404
+ if (this.done)
405
+ return this.EOF;
406
+ this._input || (this.done = !0);
407
+ var m, u, y, L;
408
+ this._more || (this.yytext = "", this.match = "");
409
+ for (var E = this._currentRules(), h = 0; h < E.length; h++)
410
+ if (y = this._input.match(this.rules[E[h]]), y && (!u || y[0].length > u[0].length)) {
411
+ if (u = y, L = h, this.options.backtrack_lexer) {
412
+ if (m = this.test_match(y, E[h]), m !== !1)
413
+ return m;
414
+ if (this._backtrack) {
415
+ u = !1;
416
+ continue;
417
+ } else
418
+ return !1;
419
+ } else if (!this.options.flex)
420
+ break;
421
+ }
422
+ return u ? (m = this.test_match(u, E[L]), m !== !1 ? m : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
423
+ ` + this.showPosition(), {
424
+ text: "",
425
+ token: null,
426
+ line: this.yylineno
427
+ });
428
+ }, "next"),
429
+ // return next match that has a token
430
+ lex: /* @__PURE__ */ d(function() {
431
+ var u = this.next();
432
+ return u || this.lex();
433
+ }, "lex"),
434
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
435
+ begin: /* @__PURE__ */ d(function(u) {
436
+ this.conditionStack.push(u);
437
+ }, "begin"),
438
+ // pop the previously active lexer condition state off the condition stack
439
+ popState: /* @__PURE__ */ d(function() {
440
+ var u = this.conditionStack.length - 1;
441
+ return u > 0 ? this.conditionStack.pop() : this.conditionStack[0];
442
+ }, "popState"),
443
+ // produce the lexer rule set which is active for the currently active lexer condition state
444
+ _currentRules: /* @__PURE__ */ d(function() {
445
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
446
+ }, "_currentRules"),
447
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
448
+ topState: /* @__PURE__ */ d(function(u) {
449
+ return u = this.conditionStack.length - 1 - Math.abs(u || 0), u >= 0 ? this.conditionStack[u] : "INITIAL";
450
+ }, "topState"),
451
+ // alias for begin(condition)
452
+ pushState: /* @__PURE__ */ d(function(u) {
453
+ this.begin(u);
454
+ }, "pushState"),
455
+ // return the number of states currently on the stack
456
+ stateStackSize: /* @__PURE__ */ d(function() {
457
+ return this.conditionStack.length;
458
+ }, "stateStackSize"),
459
+ options: {},
460
+ performAction: /* @__PURE__ */ d(function(u, y, L, E) {
461
+ switch (L) {
462
+ case 0:
463
+ return u.getLogger().debug("Found block-beta"), 10;
464
+ case 1:
465
+ return u.getLogger().debug("Found id-block"), 29;
466
+ case 2:
467
+ return u.getLogger().debug("Found block"), 10;
468
+ case 3:
469
+ u.getLogger().debug(".", y.yytext);
470
+ break;
471
+ case 4:
472
+ u.getLogger().debug("_", y.yytext);
473
+ break;
474
+ case 5:
475
+ return 5;
476
+ case 6:
477
+ return y.yytext = -1, 28;
478
+ case 7:
479
+ return y.yytext = y.yytext.replace(/columns\s+/, ""), u.getLogger().debug("COLUMNS (LEX)", y.yytext), 28;
480
+ case 8:
481
+ this.pushState("md_string");
482
+ break;
483
+ case 9:
484
+ return "MD_STR";
485
+ case 10:
486
+ this.popState();
487
+ break;
488
+ case 11:
489
+ this.pushState("string");
490
+ break;
491
+ case 12:
492
+ u.getLogger().debug("LEX: POPPING STR:", y.yytext), this.popState();
493
+ break;
494
+ case 13:
495
+ return u.getLogger().debug("LEX: STR end:", y.yytext), "STR";
496
+ case 14:
497
+ return y.yytext = y.yytext.replace(/space\:/, ""), u.getLogger().debug("SPACE NUM (LEX)", y.yytext), 21;
498
+ case 15:
499
+ return y.yytext = "1", u.getLogger().debug("COLUMNS (LEX)", y.yytext), 21;
500
+ case 16:
501
+ return 42;
502
+ case 17:
503
+ return "LINKSTYLE";
504
+ case 18:
505
+ return "INTERPOLATE";
506
+ case 19:
507
+ return this.pushState("CLASSDEF"), 39;
508
+ case 20:
509
+ return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
510
+ case 21:
511
+ return this.popState(), this.pushState("CLASSDEFID"), 40;
512
+ case 22:
513
+ return this.popState(), 41;
514
+ case 23:
515
+ return this.pushState("CLASS"), 43;
516
+ case 24:
517
+ return this.popState(), this.pushState("CLASS_STYLE"), 44;
518
+ case 25:
519
+ return this.popState(), 45;
520
+ case 26:
521
+ return this.pushState("STYLE_STMNT"), 46;
522
+ case 27:
523
+ return this.popState(), this.pushState("STYLE_DEFINITION"), 47;
524
+ case 28:
525
+ return this.popState(), 48;
526
+ case 29:
527
+ return this.pushState("acc_title"), "acc_title";
528
+ case 30:
529
+ return this.popState(), "acc_title_value";
530
+ case 31:
531
+ return this.pushState("acc_descr"), "acc_descr";
532
+ case 32:
533
+ return this.popState(), "acc_descr_value";
534
+ case 33:
535
+ this.pushState("acc_descr_multiline");
536
+ break;
537
+ case 34:
538
+ this.popState();
539
+ break;
540
+ case 35:
541
+ return "acc_descr_multiline_value";
542
+ case 36:
543
+ return 30;
544
+ case 37:
545
+ return this.popState(), u.getLogger().debug("Lex: (("), "NODE_DEND";
546
+ case 38:
547
+ return this.popState(), u.getLogger().debug("Lex: (("), "NODE_DEND";
548
+ case 39:
549
+ return this.popState(), u.getLogger().debug("Lex: ))"), "NODE_DEND";
550
+ case 40:
551
+ return this.popState(), u.getLogger().debug("Lex: (("), "NODE_DEND";
552
+ case 41:
553
+ return this.popState(), u.getLogger().debug("Lex: (("), "NODE_DEND";
554
+ case 42:
555
+ return this.popState(), u.getLogger().debug("Lex: (-"), "NODE_DEND";
556
+ case 43:
557
+ return this.popState(), u.getLogger().debug("Lex: -)"), "NODE_DEND";
558
+ case 44:
559
+ return this.popState(), u.getLogger().debug("Lex: (("), "NODE_DEND";
560
+ case 45:
561
+ return this.popState(), u.getLogger().debug("Lex: ]]"), "NODE_DEND";
562
+ case 46:
563
+ return this.popState(), u.getLogger().debug("Lex: ("), "NODE_DEND";
564
+ case 47:
565
+ return this.popState(), u.getLogger().debug("Lex: ])"), "NODE_DEND";
566
+ case 48:
567
+ return this.popState(), u.getLogger().debug("Lex: /]"), "NODE_DEND";
568
+ case 49:
569
+ return this.popState(), u.getLogger().debug("Lex: /]"), "NODE_DEND";
570
+ case 50:
571
+ return this.popState(), u.getLogger().debug("Lex: )]"), "NODE_DEND";
572
+ case 51:
573
+ return this.popState(), u.getLogger().debug("Lex: )"), "NODE_DEND";
574
+ case 52:
575
+ return this.popState(), u.getLogger().debug("Lex: ]>"), "NODE_DEND";
576
+ case 53:
577
+ return this.popState(), u.getLogger().debug("Lex: ]"), "NODE_DEND";
578
+ case 54:
579
+ return u.getLogger().debug("Lexa: -)"), this.pushState("NODE"), 35;
580
+ case 55:
581
+ return u.getLogger().debug("Lexa: (-"), this.pushState("NODE"), 35;
582
+ case 56:
583
+ return u.getLogger().debug("Lexa: ))"), this.pushState("NODE"), 35;
584
+ case 57:
585
+ return u.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
586
+ case 58:
587
+ return u.getLogger().debug("Lex: ((("), this.pushState("NODE"), 35;
588
+ case 59:
589
+ return u.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
590
+ case 60:
591
+ return u.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
592
+ case 61:
593
+ return u.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
594
+ case 62:
595
+ return u.getLogger().debug("Lexc: >"), this.pushState("NODE"), 35;
596
+ case 63:
597
+ return u.getLogger().debug("Lexa: (["), this.pushState("NODE"), 35;
598
+ case 64:
599
+ return u.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
600
+ case 65:
601
+ return this.pushState("NODE"), 35;
602
+ case 66:
603
+ return this.pushState("NODE"), 35;
604
+ case 67:
605
+ return this.pushState("NODE"), 35;
606
+ case 68:
607
+ return this.pushState("NODE"), 35;
608
+ case 69:
609
+ return this.pushState("NODE"), 35;
610
+ case 70:
611
+ return this.pushState("NODE"), 35;
612
+ case 71:
613
+ return this.pushState("NODE"), 35;
614
+ case 72:
615
+ return u.getLogger().debug("Lexa: ["), this.pushState("NODE"), 35;
616
+ case 73:
617
+ return this.pushState("BLOCK_ARROW"), u.getLogger().debug("LEX ARR START"), 37;
618
+ case 74:
619
+ return u.getLogger().debug("Lex: NODE_ID", y.yytext), 31;
620
+ case 75:
621
+ return u.getLogger().debug("Lex: EOF", y.yytext), 8;
622
+ case 76:
623
+ this.pushState("md_string");
624
+ break;
625
+ case 77:
626
+ this.pushState("md_string");
627
+ break;
628
+ case 78:
629
+ return "NODE_DESCR";
630
+ case 79:
631
+ this.popState();
632
+ break;
633
+ case 80:
634
+ u.getLogger().debug("Lex: Starting string"), this.pushState("string");
635
+ break;
636
+ case 81:
637
+ u.getLogger().debug("LEX ARR: Starting string"), this.pushState("string");
638
+ break;
639
+ case 82:
640
+ return u.getLogger().debug("LEX: NODE_DESCR:", y.yytext), "NODE_DESCR";
641
+ case 83:
642
+ u.getLogger().debug("LEX POPPING"), this.popState();
643
+ break;
644
+ case 84:
645
+ u.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR");
646
+ break;
647
+ case 85:
648
+ return y.yytext = y.yytext.replace(/^,\s*/, ""), u.getLogger().debug("Lex (right): dir:", y.yytext), "DIR";
649
+ case 86:
650
+ return y.yytext = y.yytext.replace(/^,\s*/, ""), u.getLogger().debug("Lex (left):", y.yytext), "DIR";
651
+ case 87:
652
+ return y.yytext = y.yytext.replace(/^,\s*/, ""), u.getLogger().debug("Lex (x):", y.yytext), "DIR";
653
+ case 88:
654
+ return y.yytext = y.yytext.replace(/^,\s*/, ""), u.getLogger().debug("Lex (y):", y.yytext), "DIR";
655
+ case 89:
656
+ return y.yytext = y.yytext.replace(/^,\s*/, ""), u.getLogger().debug("Lex (up):", y.yytext), "DIR";
657
+ case 90:
658
+ return y.yytext = y.yytext.replace(/^,\s*/, ""), u.getLogger().debug("Lex (down):", y.yytext), "DIR";
659
+ case 91:
660
+ return y.yytext = "]>", u.getLogger().debug("Lex (ARROW_DIR end):", y.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END";
661
+ case 92:
662
+ return u.getLogger().debug("Lex: LINK", "#" + y.yytext + "#"), 15;
663
+ case 93:
664
+ return u.getLogger().debug("Lex: LINK", y.yytext), 15;
665
+ case 94:
666
+ return u.getLogger().debug("Lex: LINK", y.yytext), 15;
667
+ case 95:
668
+ return u.getLogger().debug("Lex: LINK", y.yytext), 15;
669
+ case 96:
670
+ return u.getLogger().debug("Lex: START_LINK", y.yytext), this.pushState("LLABEL"), 16;
671
+ case 97:
672
+ return u.getLogger().debug("Lex: START_LINK", y.yytext), this.pushState("LLABEL"), 16;
673
+ case 98:
674
+ return u.getLogger().debug("Lex: START_LINK", y.yytext), this.pushState("LLABEL"), 16;
675
+ case 99:
676
+ this.pushState("md_string");
677
+ break;
678
+ case 100:
679
+ return u.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL";
680
+ case 101:
681
+ return this.popState(), u.getLogger().debug("Lex: LINK", "#" + y.yytext + "#"), 15;
682
+ case 102:
683
+ return this.popState(), u.getLogger().debug("Lex: LINK", y.yytext), 15;
684
+ case 103:
685
+ return this.popState(), u.getLogger().debug("Lex: LINK", y.yytext), 15;
686
+ case 104:
687
+ return u.getLogger().debug("Lex: COLON", y.yytext), y.yytext = y.yytext.slice(1), 27;
688
+ }
689
+ }, "anonymous"),
690
+ rules: [/^(?:block-beta\b)/, /^(?:block:)/, /^(?:block\b)/, /^(?:[\s]+)/, /^(?:[\n]+)/, /^(?:((\u000D\u000A)|(\u000A)))/, /^(?:columns\s+auto\b)/, /^(?:columns\s+[\d]+)/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:space[:]\d+)/, /^(?:space\b)/, /^(?:default\b)/, /^(?:linkStyle\b)/, /^(?:interpolate\b)/, /^(?:classDef\s+)/, /^(?:DEFAULT\s+)/, /^(?:\w+\s+)/, /^(?:[^\n]*)/, /^(?:class\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:style\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:end\b\s*)/, /^(?:\(\(\()/, /^(?:\)\)\))/, /^(?:[\)]\))/, /^(?:\}\})/, /^(?:\})/, /^(?:\(-)/, /^(?:-\))/, /^(?:\(\()/, /^(?:\]\])/, /^(?:\()/, /^(?:\]\))/, /^(?:\\\])/, /^(?:\/\])/, /^(?:\)\])/, /^(?:[\)])/, /^(?:\]>)/, /^(?:[\]])/, /^(?:-\))/, /^(?:\(-)/, /^(?:\)\))/, /^(?:\))/, /^(?:\(\(\()/, /^(?:\(\()/, /^(?:\{\{)/, /^(?:\{)/, /^(?:>)/, /^(?:\(\[)/, /^(?:\()/, /^(?:\[\[)/, /^(?:\[\|)/, /^(?:\[\()/, /^(?:\)\)\))/, /^(?:\[\\)/, /^(?:\[\/)/, /^(?:\[\\)/, /^(?:\[)/, /^(?:<\[)/, /^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/, /^(?:$)/, /^(?:["][`])/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:\]>\s*\()/, /^(?:,?\s*right\s*)/, /^(?:,?\s*left\s*)/, /^(?:,?\s*x\s*)/, /^(?:,?\s*y\s*)/, /^(?:,?\s*up\s*)/, /^(?:,?\s*down\s*)/, /^(?:\)\s*)/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?:\s*~~[\~]+\s*)/, /^(?:\s*[xo<]?--\s*)/, /^(?:\s*[xo<]?==\s*)/, /^(?:\s*[xo<]?-\.\s*)/, /^(?:["][`])/, /^(?:["])/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?::\d+)/],
691
+ conditions: { STYLE_DEFINITION: { rules: [28], inclusive: !1 }, STYLE_STMNT: { rules: [27], inclusive: !1 }, CLASSDEFID: { rules: [22], inclusive: !1 }, CLASSDEF: { rules: [20, 21], inclusive: !1 }, CLASS_STYLE: { rules: [25], inclusive: !1 }, CLASS: { rules: [24], inclusive: !1 }, LLABEL: { rules: [99, 100, 101, 102, 103], inclusive: !1 }, ARROW_DIR: { rules: [85, 86, 87, 88, 89, 90, 91], inclusive: !1 }, BLOCK_ARROW: { rules: [76, 81, 84], inclusive: !1 }, NODE: { rules: [37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 77, 80], inclusive: !1 }, md_string: { rules: [9, 10, 78, 79], inclusive: !1 }, space: { rules: [], inclusive: !1 }, string: { rules: [12, 13, 82, 83], inclusive: !1 }, acc_descr_multiline: { rules: [34, 35], inclusive: !1 }, acc_descr: { rules: [32], inclusive: !1 }, acc_title: { rules: [30], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 14, 15, 16, 17, 18, 19, 23, 26, 29, 31, 33, 36, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 92, 93, 94, 95, 96, 97, 98, 104], inclusive: !0 } }
692
+ };
693
+ return T;
694
+ })();
695
+ S.lexer = _;
696
+ function I() {
697
+ this.yy = {};
698
+ }
699
+ return d(I, "Parser"), I.prototype = S, S.Parser = I, new I();
700
+ })();
701
+ wt.parser = wt;
702
+ var sr = wt, X = /* @__PURE__ */ new Map(), Et = [], mt = /* @__PURE__ */ new Map(), At = "color", zt = "fill", ir = "bgFill", Xt = ",", nr = A(), lt = /* @__PURE__ */ new Map(), _t = "", cr = /* @__PURE__ */ d((e) => je.sanitizeText(e, nr), "sanitizeText"), lr = /* @__PURE__ */ d(function(e, t = "") {
703
+ let a = lt.get(e);
704
+ a || (a = { id: e, styles: [], textStyles: [] }, lt.set(e, a)), t?.split(Xt).forEach((s) => {
705
+ const i = s.replace(/([^;]*);/, "$1").trim();
706
+ if (RegExp(At).exec(s)) {
707
+ const r = i.replace(zt, ir).replace(At, zt);
708
+ a.textStyles.push(r);
709
+ }
710
+ a.styles.push(i);
711
+ });
712
+ }, "addStyleClass"), or = /* @__PURE__ */ d(function(e, t = "") {
713
+ const a = X.get(e);
714
+ t != null && (a.styles = t.split(Xt));
715
+ }, "addStyle2Node"), hr = /* @__PURE__ */ d(function(e, t) {
716
+ e.split(",").forEach(function(a) {
717
+ let s = X.get(a);
718
+ if (s === void 0) {
719
+ const i = a.trim();
720
+ s = { id: i, type: "na", children: [] }, X.set(i, s);
721
+ }
722
+ s.classes || (s.classes = []), s.classes.push(t);
723
+ });
724
+ }, "setCssClass"), Vt = /* @__PURE__ */ d((e, t) => {
725
+ const a = e.flat(), s = [], c = a.find((r) => r?.type === "column-setting")?.columns ?? -1;
726
+ for (const r of a) {
727
+ if (typeof c == "number" && c > 0 && r.type !== "column-setting" && typeof r.widthInColumns == "number" && r.widthInColumns > c && k.warn(
728
+ `Block ${r.id} width ${r.widthInColumns} exceeds configured column width ${c}`
729
+ ), r.label && (r.label = cr(r.label)), r.type === "classDef") {
730
+ lr(r.id, r.css);
731
+ continue;
732
+ }
733
+ if (r.type === "applyClass") {
734
+ hr(r.id, r?.styleClass ?? "");
735
+ continue;
736
+ }
737
+ if (r.type === "applyStyles") {
738
+ r?.stylesStr && or(r.id, r?.stylesStr);
739
+ continue;
740
+ }
741
+ if (r.type === "column-setting")
742
+ t.columns = r.columns ?? -1;
743
+ else if (r.type === "edge") {
744
+ const n = (mt.get(r.id) ?? 0) + 1;
745
+ mt.set(r.id, n), r.id = n + "-" + r.id, Et.push(r);
746
+ } else {
747
+ r.label || (r.type === "composite" ? r.label = "" : r.label = r.id);
748
+ const n = X.get(r.id);
749
+ if (n === void 0 ? X.set(r.id, r) : (r.type !== "na" && (n.type = r.type), r.label !== r.id && (n.label = r.label)), r.children && Vt(r.children, r), r.type === "space") {
750
+ const l = r.width ?? 1;
751
+ for (let g = 0; g < l; g++) {
752
+ const o = $e(r);
753
+ o.id = o.id + "-" + g, X.set(o.id, o), s.push(o);
754
+ }
755
+ } else n === void 0 && s.push(r);
756
+ }
757
+ }
758
+ t.children = s;
759
+ }, "populateBlockDatabase"), Tt = [], rt = { id: "root", type: "composite", children: [], columns: -1 }, gr = /* @__PURE__ */ d(() => {
760
+ k.debug("Clear called"), We(), rt = { id: "root", type: "composite", children: [], columns: -1 }, X = /* @__PURE__ */ new Map([["root", rt]]), Tt = [], lt = /* @__PURE__ */ new Map(), Et = [], mt = /* @__PURE__ */ new Map(), _t = "";
761
+ }, "clear");
762
+ function jt(e) {
763
+ switch (k.debug("typeStr2Type", e), e) {
764
+ case "[]":
765
+ return "square";
766
+ case "()":
767
+ return k.debug("we have a round"), "round";
768
+ case "(())":
769
+ return "circle";
770
+ case ">]":
771
+ return "rect_left_inv_arrow";
772
+ case "{}":
773
+ return "diamond";
774
+ case "{{}}":
775
+ return "hexagon";
776
+ case "([])":
777
+ return "stadium";
778
+ case "[[]]":
779
+ return "subroutine";
780
+ case "[()]":
781
+ return "cylinder";
782
+ case "((()))":
783
+ return "doublecircle";
784
+ case "[//]":
785
+ return "lean_right";
786
+ case "[\\\\]":
787
+ return "lean_left";
788
+ case "[/\\]":
789
+ return "trapezoid";
790
+ case "[\\/]":
791
+ return "inv_trapezoid";
792
+ case "<[]>":
793
+ return "block_arrow";
794
+ default:
795
+ return "na";
796
+ }
797
+ }
798
+ d(jt, "typeStr2Type");
799
+ function Gt(e) {
800
+ return k.debug("typeStr2Type", e), e === "==" ? "thick" : "normal";
801
+ }
802
+ d(Gt, "edgeTypeStr2Type");
803
+ function Zt(e) {
804
+ switch (e.trim().slice(-1)) {
805
+ case "x":
806
+ return "arrow_cross";
807
+ case "o":
808
+ return "arrow_circle";
809
+ case ">":
810
+ return "arrow_point";
811
+ default:
812
+ return "";
813
+ }
814
+ }
815
+ d(Zt, "edgeStrToEdgeData");
816
+ function qt(e) {
817
+ switch (e.trim().charAt(0)) {
818
+ case "x":
819
+ return "arrow_cross";
820
+ case "o":
821
+ return "arrow_circle";
822
+ case "<":
823
+ return "arrow_point";
824
+ default:
825
+ return "arrow_open";
826
+ }
827
+ }
828
+ d(qt, "edgeStrToEdgeStartData");
829
+ function Jt(e) {
830
+ return e.includes("==") ? "thick" : "normal";
831
+ }
832
+ d(Jt, "edgeStrToThickness");
833
+ function Qt(e) {
834
+ return e.includes(".-") ? "dotted" : "solid";
835
+ }
836
+ d(Qt, "edgeStrToPattern");
837
+ var Mt = 0, dr = /* @__PURE__ */ d(() => (Mt++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + Mt), "generateId"), ur = /* @__PURE__ */ d((e) => {
838
+ rt.children = e, Vt(e, rt), Tt = rt.children;
839
+ }, "setHierarchy"), pr = /* @__PURE__ */ d((e) => {
840
+ const t = X.get(e);
841
+ return t ? t.columns ? t.columns : t.children ? t.children.length : -1 : -1;
842
+ }, "getColumns"), fr = /* @__PURE__ */ d(() => [...X.values()], "getBlocksFlat"), xr = /* @__PURE__ */ d(() => Tt || [], "getBlocks"), yr = /* @__PURE__ */ d(() => Et, "getEdges"), br = /* @__PURE__ */ d((e) => X.get(e), "getBlock"), wr = /* @__PURE__ */ d((e) => {
843
+ X.set(e.id, e);
844
+ }, "setBlock"), mr = /* @__PURE__ */ d((e) => {
845
+ _t = e;
846
+ }, "setDiagramId"), Sr = /* @__PURE__ */ d(() => _t, "getDiagramId"), Lr = /* @__PURE__ */ d(() => k, "getLogger"), kr = /* @__PURE__ */ d(function() {
847
+ return lt;
848
+ }, "getClasses"), vr = {
849
+ getConfig: /* @__PURE__ */ d(() => at().block, "getConfig"),
850
+ typeStr2Type: jt,
851
+ edgeTypeStr2Type: Gt,
852
+ edgeStrToEdgeData: Zt,
853
+ edgeStrToEdgeStartData: qt,
854
+ edgeStrToThickness: Jt,
855
+ edgeStrToPattern: Qt,
856
+ getLogger: Lr,
857
+ getBlocksFlat: fr,
858
+ getBlocks: xr,
859
+ getEdges: yr,
860
+ setHierarchy: ur,
861
+ getBlock: br,
862
+ setBlock: wr,
863
+ getColumns: pr,
864
+ getClasses: kr,
865
+ clear: gr,
866
+ generateId: dr,
867
+ setDiagramId: mr,
868
+ getDiagramId: Sr
869
+ }, Er = vr, bt = /* @__PURE__ */ d((e, t) => {
870
+ const a = Je, s = a(e, "r"), i = a(e, "g"), c = a(e, "b");
871
+ return Ye(s, i, c, t);
872
+ }, "fade"), _r = /* @__PURE__ */ d((e) => `.label {
873
+ font-family: ${e.fontFamily};
874
+ color: ${e.nodeTextColor || e.textColor};
875
+ }
876
+ .cluster-label text {
877
+ fill: ${e.titleColor};
878
+ }
879
+ .cluster-label span,p {
880
+ color: ${e.titleColor};
881
+ }
882
+
883
+
884
+
885
+ .label text,span,p {
886
+ fill: ${e.nodeTextColor || e.textColor};
887
+ color: ${e.nodeTextColor || e.textColor};
888
+ }
889
+
890
+ .node rect,
891
+ .node circle,
892
+ .node ellipse,
893
+ .node polygon,
894
+ .node path {
895
+ fill: ${e.mainBkg};
896
+ stroke: ${e.nodeBorder};
897
+ stroke-width: 1px;
898
+ }
899
+ .flowchart-label text {
900
+ text-anchor: middle;
901
+ }
902
+ // .flowchart-label .text-outer-tspan {
903
+ // text-anchor: middle;
904
+ // }
905
+ // .flowchart-label .text-inner-tspan {
906
+ // text-anchor: start;
907
+ // }
908
+
909
+ .node .label {
910
+ text-align: center;
911
+ }
912
+ .node.clickable {
913
+ cursor: pointer;
914
+ }
915
+
916
+ .arrowheadPath {
917
+ fill: ${e.arrowheadColor};
918
+ }
919
+
920
+ .edgePath .path {
921
+ stroke: ${e.lineColor};
922
+ stroke-width: 2.0px;
923
+ }
924
+
925
+ .flowchart-link {
926
+ stroke: ${e.lineColor};
927
+ fill: none;
928
+ }
929
+
930
+ .edgeLabel {
931
+ background-color: ${e.edgeLabelBackground};
932
+ /*
933
+ * This is for backward compatibility with existing code that didn't
934
+ * add a \`<p>\` around edge labels.
935
+ *
936
+ * TODO: We should probably remove this in a future release.
937
+ */
938
+ p {
939
+ margin: 0;
940
+ padding: 0;
941
+ display: inline;
942
+ }
943
+ rect {
944
+ opacity: 0.5;
945
+ background-color: ${e.edgeLabelBackground};
946
+ fill: ${e.edgeLabelBackground};
947
+ }
948
+ text-align: center;
949
+ }
950
+
951
+ /* For html labels only */
952
+ .labelBkg {
953
+ background-color: ${e.edgeLabelBackground};
954
+ }
955
+
956
+ .node .cluster {
957
+ // fill: ${bt(e.mainBkg, 0.5)};
958
+ fill: ${bt(e.clusterBkg, 0.5)};
959
+ stroke: ${bt(e.clusterBorder, 0.2)};
960
+ box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
961
+ stroke-width: 1px;
962
+ }
963
+
964
+ .cluster text {
965
+ fill: ${e.titleColor};
966
+ }
967
+
968
+ .cluster span,p {
969
+ color: ${e.titleColor};
970
+ }
971
+ /* .cluster div {
972
+ color: ${e.titleColor};
973
+ } */
974
+
975
+ div.mermaidTooltip {
976
+ position: absolute;
977
+ text-align: center;
978
+ max-width: 200px;
979
+ padding: 2px;
980
+ font-family: ${e.fontFamily};
981
+ font-size: 12px;
982
+ background: ${e.tertiaryColor};
983
+ border: 1px solid ${e.border2};
984
+ border-radius: 2px;
985
+ pointer-events: none;
986
+ z-index: 100;
987
+ }
988
+
989
+ .flowchartTitleText {
990
+ text-anchor: middle;
991
+ font-size: 18px;
992
+ fill: ${e.textColor};
993
+ }
994
+ ${pe()}
995
+ `, "getStyles"), Tr = _r, Dr = /* @__PURE__ */ d((e, t, a, s) => {
996
+ t.forEach((i) => {
997
+ Pr[i](e, a, s);
998
+ });
999
+ }, "insertMarkers"), Br = /* @__PURE__ */ d((e, t, a) => {
1000
+ k.trace("Making markers for ", a), e.append("defs").append("marker").attr("id", a + "_" + t + "-extensionStart").attr("class", "marker extension " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", a + "_" + t + "-extensionEnd").attr("class", "marker extension " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
1001
+ }, "extension"), Nr = /* @__PURE__ */ d((e, t, a) => {
1002
+ e.append("defs").append("marker").attr("id", a + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", a + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
1003
+ }, "composition"), Ir = /* @__PURE__ */ d((e, t, a) => {
1004
+ e.append("defs").append("marker").attr("id", a + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", a + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
1005
+ }, "aggregation"), Cr = /* @__PURE__ */ d((e, t, a) => {
1006
+ e.append("defs").append("marker").attr("id", a + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", a + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
1007
+ }, "dependency"), Or = /* @__PURE__ */ d((e, t, a) => {
1008
+ e.append("defs").append("marker").attr("id", a + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", a + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
1009
+ }, "lollipop"), Rr = /* @__PURE__ */ d((e, t, a) => {
1010
+ e.append("marker").attr("id", a + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", a + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
1011
+ }, "point"), Ar = /* @__PURE__ */ d((e, t, a) => {
1012
+ e.append("marker").attr("id", a + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", a + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
1013
+ }, "circle"), zr = /* @__PURE__ */ d((e, t, a) => {
1014
+ e.append("marker").attr("id", a + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", a + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
1015
+ }, "cross"), Mr = /* @__PURE__ */ d((e, t, a) => {
1016
+ e.append("defs").append("marker").attr("id", a + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
1017
+ }, "barb"), Pr = {
1018
+ extension: Br,
1019
+ composition: Nr,
1020
+ aggregation: Ir,
1021
+ dependency: Cr,
1022
+ lollipop: Or,
1023
+ point: Rr,
1024
+ circle: Ar,
1025
+ cross: zr,
1026
+ barb: Mr
1027
+ }, Fr = Dr, C = A()?.block?.padding ?? 8;
1028
+ function St(e, t) {
1029
+ if (e === 0 || !Number.isInteger(e))
1030
+ throw new Error("Columns must be an integer !== 0.");
1031
+ if (t < 0 || !Number.isInteger(t))
1032
+ throw new Error("Position must be a non-negative integer." + t);
1033
+ if (e < 0)
1034
+ return { px: t, py: 0 };
1035
+ if (e === 1)
1036
+ return { px: 0, py: t };
1037
+ const a = t % e, s = Math.floor(t / e);
1038
+ return { px: a, py: s };
1039
+ }
1040
+ d(St, "calculateBlockPosition");
1041
+ var Wr = /* @__PURE__ */ d((e) => {
1042
+ let t = 0, a = 0;
1043
+ for (const s of e.children) {
1044
+ const { width: i, height: c, x: r, y: n } = s.size ?? { width: 0, height: 0, x: 0, y: 0 };
1045
+ if (k.debug(
1046
+ "getMaxChildSize abc95 child:",
1047
+ s.id,
1048
+ "width:",
1049
+ i,
1050
+ "height:",
1051
+ c,
1052
+ "x:",
1053
+ r,
1054
+ "y:",
1055
+ n,
1056
+ s.type
1057
+ ), s.type === "space")
1058
+ continue;
1059
+ const l = i / (s.widthInColumns ?? 1);
1060
+ l > t && (t = l), c > a && (a = c);
1061
+ }
1062
+ return { width: t, height: a };
1063
+ }, "getMaxChildSize");
1064
+ function ot(e, t, a = 0, s = 0) {
1065
+ k.debug(
1066
+ "setBlockSizes abc95 (start)",
1067
+ e.id,
1068
+ e?.size?.x,
1069
+ "block width =",
1070
+ e?.size,
1071
+ "siblingWidth",
1072
+ a
1073
+ ), e?.size?.width || (e.size = {
1074
+ width: a,
1075
+ height: s,
1076
+ x: 0,
1077
+ y: 0
1078
+ });
1079
+ let i = 0, c = 0;
1080
+ if (e.children?.length > 0) {
1081
+ for (const x of e.children)
1082
+ ot(x, t);
1083
+ const r = Wr(e);
1084
+ i = r.width, c = r.height, k.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", i, c);
1085
+ for (const x of e.children)
1086
+ x.size && (k.debug(
1087
+ `abc95 Setting size of children of ${e.id} id=${x.id} ${i} ${c} ${JSON.stringify(x.size)}`
1088
+ ), x.size.width = i * (x.widthInColumns ?? 1) + C * ((x.widthInColumns ?? 1) - 1), x.size.height = c, x.size.x = 0, x.size.y = 0, k.debug(
1089
+ `abc95 updating size of ${e.id} children child:${x.id} maxWidth:${i} maxHeight:${c}`
1090
+ ));
1091
+ for (const x of e.children)
1092
+ ot(x, t, i, c);
1093
+ const n = e.columns ?? -1;
1094
+ let l = 0;
1095
+ for (const x of e.children)
1096
+ l += x.widthInColumns ?? 1;
1097
+ let g = e.children.length;
1098
+ n > 0 && n < l && (g = n);
1099
+ const o = Math.ceil(l / g);
1100
+ let p = g * (i + C) + C, b = o * (c + C) + C;
1101
+ if (p < a) {
1102
+ k.debug(
1103
+ `Detected to small sibling: abc95 ${e.id} siblingWidth ${a} siblingHeight ${s} width ${p}`
1104
+ ), p = a, b = s;
1105
+ const x = (a - g * C - C) / g, w = (s - o * C - C) / o;
1106
+ k.debug("Size indata abc88", e.id, "childWidth", x, "maxWidth", i), k.debug("Size indata abc88", e.id, "childHeight", w, "maxHeight", c), k.debug("Size indata abc88 xSize", g, "padding", C);
1107
+ for (const v of e.children)
1108
+ v.size && (v.size.width = x, v.size.height = w, v.size.x = 0, v.size.y = 0);
1109
+ }
1110
+ if (k.debug(
1111
+ `abc95 (finale calc) ${e.id} xSize ${g} ySize ${o} columns ${n}${e.children.length} width=${Math.max(p, e.size?.width || 0)}`
1112
+ ), p < (e?.size?.width || 0)) {
1113
+ p = e?.size?.width || 0;
1114
+ const x = n > 0 ? Math.min(e.children.length, n) : e.children.length;
1115
+ if (x > 0) {
1116
+ const w = (p - x * C - C) / x;
1117
+ k.debug("abc95 (growing to fit) width", e.id, p, e.size?.width, w);
1118
+ for (const v of e.children)
1119
+ v.size && (v.size.width = w);
1120
+ }
1121
+ }
1122
+ e.size = {
1123
+ width: p,
1124
+ height: b,
1125
+ x: 0,
1126
+ y: 0
1127
+ };
1128
+ }
1129
+ k.debug(
1130
+ "setBlockSizes abc94 (done)",
1131
+ e.id,
1132
+ e?.size?.x,
1133
+ e?.size?.width,
1134
+ e?.size?.y,
1135
+ e?.size?.height
1136
+ );
1137
+ }
1138
+ d(ot, "setBlockSizes");
1139
+ function Dt(e, t) {
1140
+ k.debug(
1141
+ `abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`
1142
+ );
1143
+ const a = e.columns ?? -1;
1144
+ if (k.debug("layoutBlocks columns abc95", e.id, "=>", a, e), e.children && // find max width of children
1145
+ e.children.length > 0) {
1146
+ const s = e?.children[0]?.size?.width ?? 0, i = e.children.length * s + (e.children.length - 1) * C;
1147
+ k.debug("widthOfChildren 88", i, "posX");
1148
+ const c = /* @__PURE__ */ new Map();
1149
+ {
1150
+ let o = 0;
1151
+ for (const p of e.children) {
1152
+ if (!p.size)
1153
+ continue;
1154
+ const { py: b } = St(a, o), x = c.get(b) ?? 0;
1155
+ p.size.height > x && c.set(b, p.size.height);
1156
+ let w = p?.widthInColumns ?? 1;
1157
+ a > 0 && (w = Math.min(w, a - o % a)), o += w;
1158
+ }
1159
+ }
1160
+ const r = /* @__PURE__ */ new Map();
1161
+ {
1162
+ let o = 0;
1163
+ const p = [...c.keys()].sort((b, x) => b - x);
1164
+ for (const b of p)
1165
+ r.set(b, o), o += (c.get(b) ?? 0) + C;
1166
+ }
1167
+ let n = 0;
1168
+ k.debug("abc91 block?.size?.x", e.id, e?.size?.x);
1169
+ let l = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -C, g = 0;
1170
+ for (const o of e.children) {
1171
+ const p = e;
1172
+ if (!o.size)
1173
+ continue;
1174
+ const { width: b, height: x } = o.size, { px: w, py: v } = St(a, n);
1175
+ if (v != g && (g = v, l = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -C, k.debug("New row in layout for block", e.id, " and child ", o.id, g)), k.debug(
1176
+ `abc89 layout blocks (child) id: ${o.id} Pos: ${n} (px, py) ${w},${v} (${p?.size?.x},${p?.size?.y}) parent: ${p.id} width: ${b}${C}`
1177
+ ), p.size) {
1178
+ const _ = b / 2;
1179
+ o.size.x = l + C + _, k.debug(
1180
+ `abc91 layout blocks (calc) px, pyid:${o.id} startingPos=X${l} new startingPosX${o.size.x} ${_} padding=${C} width=${b} halfWidth=${_} => x:${o.size.x} y:${o.size.y} ${o.widthInColumns} (width * (child?.w || 1)) / 2 ${b * (o?.widthInColumns ?? 1) / 2}`
1181
+ ), l = o.size.x + _;
1182
+ const I = r.get(v) ?? 0, T = c.get(v) ?? x;
1183
+ o.size.y = p.size.y - p.size.height / 2 + I + T / 2 + C, k.debug(
1184
+ `abc88 layout blocks (calc) px, pyid:${o.id}startingPosX${l}${C}${_}=>x:${o.size.x}y:${o.size.y}${o.widthInColumns}(width * (child?.w || 1)) / 2${b * (o?.widthInColumns ?? 1) / 2}`
1185
+ );
1186
+ }
1187
+ o.children && Dt(o);
1188
+ let S = o?.widthInColumns ?? 1;
1189
+ a > 0 && (S = Math.min(S, a - n % a)), n += S, k.debug("abc88 columnsPos", o, n);
1190
+ }
1191
+ }
1192
+ k.debug(
1193
+ `layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`
1194
+ );
1195
+ }
1196
+ d(Dt, "layoutBlocks");
1197
+ function Bt(e, { minX: t, minY: a, maxX: s, maxY: i } = { minX: 0, minY: 0, maxX: 0, maxY: 0 }) {
1198
+ if (e.size && e.id !== "root") {
1199
+ const { x: c, y: r, width: n, height: l } = e.size;
1200
+ c - n / 2 < t && (t = c - n / 2), r - l / 2 < a && (a = r - l / 2), c + n / 2 > s && (s = c + n / 2), r + l / 2 > i && (i = r + l / 2);
1201
+ }
1202
+ if (e.children)
1203
+ for (const c of e.children)
1204
+ ({ minX: t, minY: a, maxX: s, maxY: i } = Bt(c, { minX: t, minY: a, maxX: s, maxY: i }));
1205
+ return { minX: t, minY: a, maxX: s, maxY: i };
1206
+ }
1207
+ d(Bt, "findBounds");
1208
+ function $t(e) {
1209
+ const t = e.getBlock("root");
1210
+ if (!t)
1211
+ return;
1212
+ ot(t, e, 0, 0), Dt(t), k.debug("getBlocks", JSON.stringify(t, null, 2));
1213
+ const { minX: a, minY: s, maxX: i, maxY: c } = Bt(t), r = c - s, n = i - a;
1214
+ return { x: a, y: s, width: n, height: r };
1215
+ }
1216
+ d($t, "layout");
1217
+ var Yr = /* @__PURE__ */ d(async (e, t, a, s = !1, i = !1) => {
1218
+ let c = t || "";
1219
+ typeof c == "object" && (c = c[0]);
1220
+ const r = A(), n = P(r);
1221
+ return await vt(
1222
+ e,
1223
+ c,
1224
+ {
1225
+ style: a,
1226
+ isTitle: s,
1227
+ useHtmlLabels: n,
1228
+ markdown: !1,
1229
+ isNode: i,
1230
+ width: Number.POSITIVE_INFINITY
1231
+ },
1232
+ r
1233
+ );
1234
+ }, "createLabel"), U = Yr, Hr = /* @__PURE__ */ d((e, t, a, s, i) => {
1235
+ t.arrowTypeStart && Pt(e, "start", t.arrowTypeStart, a, s, i), t.arrowTypeEnd && Pt(e, "end", t.arrowTypeEnd, a, s, i);
1236
+ }, "addEdgeMarkers"), Kr = {
1237
+ arrow_cross: "cross",
1238
+ arrow_point: "point",
1239
+ arrow_barb: "barb",
1240
+ arrow_circle: "circle",
1241
+ aggregation: "aggregation",
1242
+ extension: "extension",
1243
+ composition: "composition",
1244
+ dependency: "dependency",
1245
+ lollipop: "lollipop"
1246
+ }, Pt = /* @__PURE__ */ d((e, t, a, s, i, c) => {
1247
+ const r = Kr[a];
1248
+ if (!r) {
1249
+ k.warn(`Unknown arrow type: ${a}`);
1250
+ return;
1251
+ }
1252
+ const n = t === "start" ? "Start" : "End";
1253
+ e.attr(`marker-${t}`, `url(${s}#${i}_${c}-${r}${n})`);
1254
+ }, "addEdgeMarker"), Lt = {}, M = {}, Ur = /* @__PURE__ */ d(async (e, t) => {
1255
+ const a = A(), s = P(a), i = e.insert("g").attr("class", "edgeLabel"), c = i.insert("g").attr("class", "label"), r = t.labelType === "markdown", n = await vt(
1256
+ e,
1257
+ t.label,
1258
+ {
1259
+ style: t.labelStyle,
1260
+ useHtmlLabels: s,
1261
+ // TODO: The old code only set addSvgBackground when using markdown, but
1262
+ // this function is only used by block diagrams which never use markdown.
1263
+ addSvgBackground: r,
1264
+ isNode: !1,
1265
+ markdown: r,
1266
+ // If using markdown, wrap using default width
1267
+ width: r ? void 0 : Number.POSITIVE_INFINITY
1268
+ },
1269
+ a
1270
+ );
1271
+ c.node().appendChild(n);
1272
+ let l = n.getBBox(), g = l;
1273
+ if (s) {
1274
+ const p = n.children[0], b = D(n);
1275
+ l = p.getBoundingClientRect(), g = l, b.attr("width", l.width), b.attr("height", l.height);
1276
+ } else {
1277
+ const p = D(n).select("text").node();
1278
+ p && typeof p.getBBox == "function" && (g = p.getBBox());
1279
+ }
1280
+ c.attr("transform", $(g, s)), Lt[t.id] = i, t.width = l.width, t.height = l.height;
1281
+ let o;
1282
+ if (t.startLabelLeft) {
1283
+ const p = e.insert("g").attr("class", "edgeTerminals"), b = p.insert("g").attr("class", "inner"), x = await U(b, t.startLabelLeft, t.labelStyle);
1284
+ o = x;
1285
+ let w = x.getBBox();
1286
+ if (s) {
1287
+ const v = x.children[0], S = D(x);
1288
+ w = v.getBoundingClientRect(), S.attr("width", w.width), S.attr("height", w.height);
1289
+ }
1290
+ b.attr("transform", $(w, s)), M[t.id] || (M[t.id] = {}), M[t.id].startLeft = p, et(o, t.startLabelLeft);
1291
+ }
1292
+ if (t.startLabelRight) {
1293
+ const p = e.insert("g").attr("class", "edgeTerminals"), b = p.insert("g").attr("class", "inner"), x = await U(b, t.startLabelRight, t.labelStyle);
1294
+ o = x;
1295
+ let w = x.getBBox();
1296
+ if (s) {
1297
+ const v = x.children[0], S = D(x);
1298
+ w = v.getBoundingClientRect(), S.attr("width", w.width), S.attr("height", w.height);
1299
+ }
1300
+ b.attr("transform", $(w, s)), M[t.id] || (M[t.id] = {}), M[t.id].startRight = p, et(o, t.startLabelRight);
1301
+ }
1302
+ if (t.endLabelLeft) {
1303
+ const p = e.insert("g").attr("class", "edgeTerminals"), b = p.insert("g").attr("class", "inner"), x = await U(p, t.endLabelLeft, t.labelStyle);
1304
+ o = x;
1305
+ let w = x.getBBox();
1306
+ if (s) {
1307
+ const v = x.children[0], S = D(x);
1308
+ w = v.getBoundingClientRect(), S.attr("width", w.width), S.attr("height", w.height);
1309
+ }
1310
+ b.attr("transform", $(w, s)), M[t.id] || (M[t.id] = {}), M[t.id].endLeft = p, et(o, t.endLabelLeft);
1311
+ }
1312
+ if (t.endLabelRight) {
1313
+ const p = e.insert("g").attr("class", "edgeTerminals"), b = p.insert("g").attr("class", "inner"), x = await U(
1314
+ p,
1315
+ t.endLabelRight,
1316
+ t.labelStyle
1317
+ );
1318
+ o = x;
1319
+ let w = x.getBBox();
1320
+ if (s) {
1321
+ const v = x.children[0], S = D(x);
1322
+ w = v.getBoundingClientRect(), S.attr("width", w.width), S.attr("height", w.height);
1323
+ }
1324
+ b.attr("transform", $(w, s)), M[t.id] || (M[t.id] = {}), M[t.id].endRight = p, et(o, t.endLabelRight);
1325
+ }
1326
+ return n;
1327
+ }, "insertEdgeLabel");
1328
+ function et(e, t) {
1329
+ P(A()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
1330
+ }
1331
+ d(et, "setTerminalWidth");
1332
+ var Xr = /* @__PURE__ */ d((e, t) => {
1333
+ k.debug("Moving label abc88 ", e.id, e.label, Lt[e.id], t);
1334
+ let a = t.updatedPath ? t.updatedPath : t.originalPath;
1335
+ const s = A(), { subGraphTitleTotalMargin: i } = Ve(s);
1336
+ if (e.label) {
1337
+ const c = Lt[e.id];
1338
+ let r = e.x, n = e.y;
1339
+ if (a) {
1340
+ const l = tt.calcLabelPosition(a);
1341
+ k.debug(
1342
+ "Moving label " + e.label + " from (",
1343
+ r,
1344
+ ",",
1345
+ n,
1346
+ ") to (",
1347
+ l.x,
1348
+ ",",
1349
+ l.y,
1350
+ ") abc88"
1351
+ ), t.updatedPath && (r = l.x, n = l.y);
1352
+ }
1353
+ c.attr("transform", `translate(${r}, ${n + i / 2})`);
1354
+ }
1355
+ if (e.startLabelLeft) {
1356
+ const c = M[e.id].startLeft;
1357
+ let r = e.x, n = e.y;
1358
+ if (a) {
1359
+ const l = tt.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", a);
1360
+ r = l.x, n = l.y;
1361
+ }
1362
+ c.attr("transform", `translate(${r}, ${n})`);
1363
+ }
1364
+ if (e.startLabelRight) {
1365
+ const c = M[e.id].startRight;
1366
+ let r = e.x, n = e.y;
1367
+ if (a) {
1368
+ const l = tt.calcTerminalLabelPosition(
1369
+ e.arrowTypeStart ? 10 : 0,
1370
+ "start_right",
1371
+ a
1372
+ );
1373
+ r = l.x, n = l.y;
1374
+ }
1375
+ c.attr("transform", `translate(${r}, ${n})`);
1376
+ }
1377
+ if (e.endLabelLeft) {
1378
+ const c = M[e.id].endLeft;
1379
+ let r = e.x, n = e.y;
1380
+ if (a) {
1381
+ const l = tt.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", a);
1382
+ r = l.x, n = l.y;
1383
+ }
1384
+ c.attr("transform", `translate(${r}, ${n})`);
1385
+ }
1386
+ if (e.endLabelRight) {
1387
+ const c = M[e.id].endRight;
1388
+ let r = e.x, n = e.y;
1389
+ if (a) {
1390
+ const l = tt.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", a);
1391
+ r = l.x, n = l.y;
1392
+ }
1393
+ c.attr("transform", `translate(${r}, ${n})`);
1394
+ }
1395
+ }, "positionEdgeLabel"), Vr = /* @__PURE__ */ d((e, t) => {
1396
+ const a = e.x, s = e.y, i = Math.abs(t.x - a), c = Math.abs(t.y - s), r = e.width / 2, n = e.height / 2;
1397
+ return i >= r || c >= n;
1398
+ }, "outsideNode"), jr = /* @__PURE__ */ d((e, t, a) => {
1399
+ k.debug(`intersection calc abc89:
1400
+ outsidePoint: ${JSON.stringify(t)}
1401
+ insidePoint : ${JSON.stringify(a)}
1402
+ node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
1403
+ const s = e.x, i = e.y, c = Math.abs(s - a.x), r = e.width / 2;
1404
+ let n = a.x < t.x ? r - c : r + c;
1405
+ const l = e.height / 2, g = Math.abs(t.y - a.y), o = Math.abs(t.x - a.x);
1406
+ if (Math.abs(i - t.y) * r > Math.abs(s - t.x) * l) {
1407
+ let p = a.y < t.y ? t.y - l - i : i - l - t.y;
1408
+ n = o * p / g;
1409
+ const b = {
1410
+ x: a.x < t.x ? a.x + n : a.x - o + n,
1411
+ y: a.y < t.y ? a.y + g - p : a.y - g + p
1412
+ };
1413
+ return n === 0 && (b.x = t.x, b.y = t.y), o === 0 && (b.x = t.x), g === 0 && (b.y = t.y), k.debug(`abc89 topp/bott calc, Q ${g}, q ${p}, R ${o}, r ${n}`, b), b;
1414
+ } else {
1415
+ a.x < t.x ? n = t.x - r - s : n = s - r - t.x;
1416
+ let p = g * n / o, b = a.x < t.x ? a.x + o - n : a.x - o + n, x = a.y < t.y ? a.y + p : a.y - p;
1417
+ return k.debug(`sides calc abc89, Q ${g}, q ${p}, R ${o}, r ${n}`, { _x: b, _y: x }), n === 0 && (b = t.x, x = t.y), o === 0 && (b = t.x), g === 0 && (x = t.y), { x: b, y: x };
1418
+ }
1419
+ }, "intersection"), Ft = /* @__PURE__ */ d((e, t) => {
1420
+ k.debug("abc88 cutPathAtIntersect", e, t);
1421
+ let a = [], s = e[0], i = !1;
1422
+ return e.forEach((c) => {
1423
+ if (!Vr(t, c) && !i) {
1424
+ const r = jr(t, s, c);
1425
+ let n = !1;
1426
+ a.forEach((l) => {
1427
+ n = n || l.x === r.x && l.y === r.y;
1428
+ }), a.some((l) => l.x === r.x && l.y === r.y) || a.push(r), i = !0;
1429
+ } else
1430
+ s = c, i || a.push(c);
1431
+ }), a;
1432
+ }, "cutPathAtIntersect"), Gr = /* @__PURE__ */ d(function(e, t, a, s, i, c, r) {
1433
+ let n = a.points;
1434
+ k.debug("abc88 InsertEdge: edge=", a, "e=", t);
1435
+ let l = !1;
1436
+ const g = c.node(t.v);
1437
+ var o = c.node(t.w);
1438
+ o?.intersect && g?.intersect && (n = n.slice(1, a.points.length - 1), n.unshift(g.intersect(n[0])), n.push(o.intersect(n[n.length - 1]))), a.toCluster && (k.debug("to cluster abc88", s[a.toCluster]), n = Ft(a.points, s[a.toCluster].node), l = !0), a.fromCluster && (k.debug("from cluster abc88", s[a.fromCluster]), n = Ft(n.reverse(), s[a.fromCluster].node).reverse(), l = !0);
1439
+ const p = n.filter((m) => !Number.isNaN(m.y));
1440
+ let b = Ue;
1441
+ a.curve && (i === "graph" || i === "flowchart") && (b = a.curve);
1442
+ const { x, y: w } = He(a), v = Ke().x(x).y(w).curve(b);
1443
+ let S;
1444
+ switch (a.thickness) {
1445
+ case "normal":
1446
+ S = "edge-thickness-normal";
1447
+ break;
1448
+ case "thick":
1449
+ S = "edge-thickness-thick";
1450
+ break;
1451
+ case "invisible":
1452
+ S = "edge-thickness-thick";
1453
+ break;
1454
+ default:
1455
+ S = "";
1456
+ }
1457
+ switch (a.pattern) {
1458
+ case "solid":
1459
+ S += " edge-pattern-solid";
1460
+ break;
1461
+ case "dotted":
1462
+ S += " edge-pattern-dotted";
1463
+ break;
1464
+ case "dashed":
1465
+ S += " edge-pattern-dashed";
1466
+ break;
1467
+ }
1468
+ const _ = e.append("path").attr("d", v(p)).attr("id", a.id).attr("class", " " + S + (a.classes ? " " + a.classes : "")).attr("style", a.style);
1469
+ let I = "";
1470
+ (A().flowchart.arrowMarkerAbsolute || A().state.arrowMarkerAbsolute) && (I = Xe(!0)), Hr(_, a, I, r, i);
1471
+ let T = {};
1472
+ return l && (T.updatedPath = n), T.originalPath = a.points, T;
1473
+ }, "insertEdge"), Zr = /* @__PURE__ */ d((e) => {
1474
+ const t = /* @__PURE__ */ new Set();
1475
+ for (const a of e)
1476
+ switch (a) {
1477
+ case "x":
1478
+ t.add("right"), t.add("left");
1479
+ break;
1480
+ case "y":
1481
+ t.add("up"), t.add("down");
1482
+ break;
1483
+ default:
1484
+ t.add(a);
1485
+ break;
1486
+ }
1487
+ return t;
1488
+ }, "expandAndDeduplicateDirections"), qr = /* @__PURE__ */ d((e, t, a, s) => {
1489
+ const i = Zr(e), c = 2, r = t.height + 2 * a.padding, n = r / c, l = s ?? t.width + 2 * n + a.padding, g = a.padding / 2;
1490
+ return i.has("right") && i.has("left") && i.has("up") && i.has("down") ? [
1491
+ // Bottom
1492
+ { x: 0, y: 0 },
1493
+ { x: n, y: 0 },
1494
+ { x: l / 2, y: 2 * g },
1495
+ { x: l - n, y: 0 },
1496
+ { x: l, y: 0 },
1497
+ // Right
1498
+ { x: l, y: -r / 3 },
1499
+ { x: l + 2 * g, y: -r / 2 },
1500
+ { x: l, y: -2 * r / 3 },
1501
+ { x: l, y: -r },
1502
+ // Top
1503
+ { x: l - n, y: -r },
1504
+ { x: l / 2, y: -r - 2 * g },
1505
+ { x: n, y: -r },
1506
+ // Left
1507
+ { x: 0, y: -r },
1508
+ { x: 0, y: -2 * r / 3 },
1509
+ { x: -2 * g, y: -r / 2 },
1510
+ { x: 0, y: -r / 3 }
1511
+ ] : i.has("right") && i.has("left") && i.has("up") ? [
1512
+ { x: n, y: 0 },
1513
+ { x: l - n, y: 0 },
1514
+ { x: l, y: -r / 2 },
1515
+ { x: l - n, y: -r },
1516
+ { x: n, y: -r },
1517
+ { x: 0, y: -r / 2 }
1518
+ ] : i.has("right") && i.has("left") && i.has("down") ? [
1519
+ { x: 0, y: 0 },
1520
+ { x: n, y: -r },
1521
+ { x: l - n, y: -r },
1522
+ { x: l, y: 0 }
1523
+ ] : i.has("right") && i.has("up") && i.has("down") ? [
1524
+ { x: 0, y: 0 },
1525
+ { x: l, y: -n },
1526
+ { x: l, y: -r + n },
1527
+ { x: 0, y: -r }
1528
+ ] : i.has("left") && i.has("up") && i.has("down") ? [
1529
+ { x: l, y: 0 },
1530
+ { x: 0, y: -n },
1531
+ { x: 0, y: -r + n },
1532
+ { x: l, y: -r }
1533
+ ] : i.has("right") && i.has("left") ? [
1534
+ { x: n, y: 0 },
1535
+ { x: n, y: -g },
1536
+ { x: l - n, y: -g },
1537
+ { x: l - n, y: 0 },
1538
+ { x: l, y: -r / 2 },
1539
+ { x: l - n, y: -r },
1540
+ { x: l - n, y: -r + g },
1541
+ { x: n, y: -r + g },
1542
+ { x: n, y: -r },
1543
+ { x: 0, y: -r / 2 }
1544
+ ] : i.has("up") && i.has("down") ? [
1545
+ // Bottom center
1546
+ { x: l / 2, y: 0 },
1547
+ // Left pont of bottom arrow
1548
+ { x: 0, y: -g },
1549
+ { x: n, y: -g },
1550
+ // Left top over vertical section
1551
+ { x: n, y: -r + g },
1552
+ { x: 0, y: -r + g },
1553
+ // Top of arrow
1554
+ { x: l / 2, y: -r },
1555
+ { x: l, y: -r + g },
1556
+ // Top of right vertical bar
1557
+ { x: l - n, y: -r + g },
1558
+ { x: l - n, y: -g },
1559
+ { x: l, y: -g }
1560
+ ] : i.has("right") && i.has("up") ? [
1561
+ { x: 0, y: 0 },
1562
+ { x: l, y: -n },
1563
+ { x: 0, y: -r }
1564
+ ] : i.has("right") && i.has("down") ? [
1565
+ { x: 0, y: 0 },
1566
+ { x: l, y: 0 },
1567
+ { x: 0, y: -r }
1568
+ ] : i.has("left") && i.has("up") ? [
1569
+ { x: l, y: 0 },
1570
+ { x: 0, y: -n },
1571
+ { x: l, y: -r }
1572
+ ] : i.has("left") && i.has("down") ? [
1573
+ { x: l, y: 0 },
1574
+ { x: 0, y: 0 },
1575
+ { x: l, y: -r }
1576
+ ] : i.has("right") ? [
1577
+ { x: n, y: -g },
1578
+ { x: n, y: -g },
1579
+ { x: l - n, y: -g },
1580
+ { x: l - n, y: 0 },
1581
+ { x: l, y: -r / 2 },
1582
+ { x: l - n, y: -r },
1583
+ { x: l - n, y: -r + g },
1584
+ // top left corner of arrow
1585
+ { x: n, y: -r + g },
1586
+ { x: n, y: -r + g }
1587
+ ] : i.has("left") ? [
1588
+ { x: n, y: 0 },
1589
+ { x: n, y: -g },
1590
+ // Two points, the right corners
1591
+ { x: l - n, y: -g },
1592
+ { x: l - n, y: -r + g },
1593
+ { x: n, y: -r + g },
1594
+ { x: n, y: -r },
1595
+ { x: 0, y: -r / 2 }
1596
+ ] : i.has("up") ? [
1597
+ // Bottom center
1598
+ { x: n, y: -g },
1599
+ // Left top over vertical section
1600
+ { x: n, y: -r + g },
1601
+ { x: 0, y: -r + g },
1602
+ // Top of arrow
1603
+ { x: l / 2, y: -r },
1604
+ { x: l, y: -r + g },
1605
+ // Top of right vertical bar
1606
+ { x: l - n, y: -r + g },
1607
+ { x: l - n, y: -g }
1608
+ ] : i.has("down") ? [
1609
+ // Bottom center
1610
+ { x: l / 2, y: 0 },
1611
+ // Left pont of bottom arrow
1612
+ { x: 0, y: -g },
1613
+ { x: n, y: -g },
1614
+ // Left top over vertical section
1615
+ { x: n, y: -r + g },
1616
+ { x: l - n, y: -r + g },
1617
+ { x: l - n, y: -g },
1618
+ { x: l, y: -g }
1619
+ ] : [{ x: 0, y: 0 }];
1620
+ }, "getArrowPoints");
1621
+ function te(e, t) {
1622
+ return e.intersect(t);
1623
+ }
1624
+ d(te, "intersectNode");
1625
+ var Jr = te;
1626
+ function ee(e, t, a, s) {
1627
+ var i = e.x, c = e.y, r = i - s.x, n = c - s.y, l = Math.sqrt(t * t * n * n + a * a * r * r), g = Math.abs(t * a * r / l);
1628
+ s.x < i && (g = -g);
1629
+ var o = Math.abs(t * a * n / l);
1630
+ return s.y < c && (o = -o), { x: i + g, y: c + o };
1631
+ }
1632
+ d(ee, "intersectEllipse");
1633
+ var re = ee;
1634
+ function ae(e, t, a) {
1635
+ return re(e, t, t, a);
1636
+ }
1637
+ d(ae, "intersectCircle");
1638
+ var Qr = ae;
1639
+ function se(e, t, a, s) {
1640
+ var i, c, r, n, l, g, o, p, b, x, w, v, S, _, I;
1641
+ if (i = t.y - e.y, r = e.x - t.x, l = t.x * e.y - e.x * t.y, b = i * a.x + r * a.y + l, x = i * s.x + r * s.y + l, !(b !== 0 && x !== 0 && kt(b, x)) && (c = s.y - a.y, n = a.x - s.x, g = s.x * a.y - a.x * s.y, o = c * e.x + n * e.y + g, p = c * t.x + n * t.y + g, !(o !== 0 && p !== 0 && kt(o, p)) && (w = i * n - c * r, w !== 0)))
1642
+ return v = Math.abs(w / 2), S = r * g - n * l, _ = S < 0 ? (S - v) / w : (S + v) / w, S = c * l - i * g, I = S < 0 ? (S - v) / w : (S + v) / w, { x: _, y: I };
1643
+ }
1644
+ d(se, "intersectLine");
1645
+ function kt(e, t) {
1646
+ return e * t > 0;
1647
+ }
1648
+ d(kt, "sameSign");
1649
+ var $r = se, ta = ie;
1650
+ function ie(e, t, a) {
1651
+ var s = e.x, i = e.y, c = [], r = Number.POSITIVE_INFINITY, n = Number.POSITIVE_INFINITY;
1652
+ typeof t.forEach == "function" ? t.forEach(function(w) {
1653
+ r = Math.min(r, w.x), n = Math.min(n, w.y);
1654
+ }) : (r = Math.min(r, t.x), n = Math.min(n, t.y));
1655
+ for (var l = s - e.width / 2 - r, g = i - e.height / 2 - n, o = 0; o < t.length; o++) {
1656
+ var p = t[o], b = t[o < t.length - 1 ? o + 1 : 0], x = $r(
1657
+ e,
1658
+ a,
1659
+ { x: l + p.x, y: g + p.y },
1660
+ { x: l + b.x, y: g + b.y }
1661
+ );
1662
+ x && c.push(x);
1663
+ }
1664
+ return c.length ? (c.length > 1 && c.sort(function(w, v) {
1665
+ var S = w.x - a.x, _ = w.y - a.y, I = Math.sqrt(S * S + _ * _), T = v.x - a.x, m = v.y - a.y, u = Math.sqrt(T * T + m * m);
1666
+ return I < u ? -1 : I === u ? 0 : 1;
1667
+ }), c[0]) : e;
1668
+ }
1669
+ d(ie, "intersectPolygon");
1670
+ var ea = /* @__PURE__ */ d((e, t) => {
1671
+ var a = e.x, s = e.y, i = t.x - a, c = t.y - s, r = e.width / 2, n = e.height / 2, l, g;
1672
+ return Math.abs(c) * r > Math.abs(i) * n ? (c < 0 && (n = -n), l = c === 0 ? 0 : n * i / c, g = n) : (i < 0 && (r = -r), l = r, g = i === 0 ? 0 : r * c / i), { x: a + l, y: s + g };
1673
+ }, "intersectRect"), ra = ea, B = {
1674
+ node: Jr,
1675
+ circle: Qr,
1676
+ ellipse: re,
1677
+ polygon: ta,
1678
+ rect: ra
1679
+ }, z = /* @__PURE__ */ d(async (e, t, a, s) => {
1680
+ const i = A();
1681
+ let c;
1682
+ const r = t.useHtmlLabels || P(i);
1683
+ a ? c = a : c = "node default";
1684
+ const n = e.insert("g").attr("class", c).attr("id", t.domId || t.id), l = n.insert("g").attr("class", "label").attr("style", t.labelStyle);
1685
+ let g;
1686
+ t.labelText === void 0 ? g = "" : g = typeof t.labelText == "string" ? t.labelText : t.labelText[0];
1687
+ let o;
1688
+ t.labelType === "markdown" ? o = vt(
1689
+ l,
1690
+ Ot(Rt(g), i),
1691
+ {
1692
+ useHtmlLabels: r,
1693
+ width: t.width || i.flowchart.wrappingWidth,
1694
+ classes: "markdown-node-label"
1695
+ },
1696
+ i
1697
+ ) : o = await U(
1698
+ l,
1699
+ Ot(Rt(g), i),
1700
+ t.labelStyle,
1701
+ !1,
1702
+ s
1703
+ );
1704
+ let p = o.getBBox();
1705
+ const b = t.padding / 2;
1706
+ if (P(i)) {
1707
+ const x = o.children[0], w = D(o);
1708
+ await Ze(x, g), p = x.getBoundingClientRect(), w.attr("width", p.width), w.attr("height", p.height);
1709
+ }
1710
+ return r ? l.attr("transform", "translate(" + -p.width / 2 + ", " + -p.height / 2 + ")") : l.attr("transform", "translate(0, " + -p.height / 2 + ")"), t.centerLabel && l.attr("transform", "translate(" + -p.width / 2 + ", " + -p.height / 2 + ")"), l.insert("rect", ":first-child"), { shapeSvg: n, bbox: p, halfPadding: b, label: l };
1711
+ }, "labelHelper"), N = /* @__PURE__ */ d((e, t) => {
1712
+ const a = t.node().getBBox();
1713
+ e.width = a.width, e.height = a.height;
1714
+ }, "updateNodeBounds");
1715
+ function V(e, t, a, s) {
1716
+ return e.insert("polygon", ":first-child").attr(
1717
+ "points",
1718
+ s.map(function(i) {
1719
+ return i.x + "," + i.y;
1720
+ }).join(" ")
1721
+ ).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + a / 2 + ")");
1722
+ }
1723
+ d(V, "insertPolygonShape");
1724
+ var aa = /* @__PURE__ */ d(async (e, t) => {
1725
+ t.useHtmlLabels || P(A()) || (t.centerLabel = !0);
1726
+ const { shapeSvg: s, bbox: i, halfPadding: c } = await z(
1727
+ e,
1728
+ t,
1729
+ "node " + t.classes,
1730
+ !0
1731
+ );
1732
+ k.info("Classes = ", t.classes);
1733
+ const r = s.insert("rect", ":first-child");
1734
+ return r.attr("rx", t.rx).attr("ry", t.ry).attr("x", -i.width / 2 - c).attr("y", -i.height / 2 - c).attr("width", i.width + t.padding).attr("height", i.height + t.padding), N(t, r), t.intersect = function(n) {
1735
+ return B.rect(t, n);
1736
+ }, s;
1737
+ }, "note"), sa = aa, Wt = /* @__PURE__ */ d((e) => e ? " " + e : "", "formatClass"), H = /* @__PURE__ */ d((e, t) => `${t || "node default"}${Wt(e.classes)} ${Wt(
1738
+ e.class
1739
+ )}`, "getClassesFromNode"), Yt = /* @__PURE__ */ d(async (e, t) => {
1740
+ const { shapeSvg: a, bbox: s } = await z(
1741
+ e,
1742
+ t,
1743
+ H(t, void 0),
1744
+ !0
1745
+ ), i = s.width + t.padding, c = s.height + t.padding, r = i + c, n = [
1746
+ { x: r / 2, y: 0 },
1747
+ { x: r, y: -r / 2 },
1748
+ { x: r / 2, y: -r },
1749
+ { x: 0, y: -r / 2 }
1750
+ ];
1751
+ k.info("Question main (Circle)");
1752
+ const l = V(a, r, r, n);
1753
+ return l.attr("style", t.style), N(t, l), t.intersect = function(g) {
1754
+ return k.warn("Intersect called"), B.polygon(t, n, g);
1755
+ }, a;
1756
+ }, "question"), ia = /* @__PURE__ */ d((e, t) => {
1757
+ const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), s = 28, i = [
1758
+ { x: 0, y: s / 2 },
1759
+ { x: s / 2, y: 0 },
1760
+ { x: 0, y: -s / 2 },
1761
+ { x: -s / 2, y: 0 }
1762
+ ];
1763
+ return a.insert("polygon", ":first-child").attr(
1764
+ "points",
1765
+ i.map(function(r) {
1766
+ return r.x + "," + r.y;
1767
+ }).join(" ")
1768
+ ).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), t.width = 28, t.height = 28, t.intersect = function(r) {
1769
+ return B.circle(t, 14, r);
1770
+ }, a;
1771
+ }, "choice"), na = /* @__PURE__ */ d(async (e, t) => {
1772
+ const { shapeSvg: a, bbox: s } = await z(
1773
+ e,
1774
+ t,
1775
+ H(t, void 0),
1776
+ !0
1777
+ ), i = 4, c = t.positioned ? t.height : s.height + t.padding, r = c / i, n = t.positioned ? t.width : s.width + 2 * r + t.padding, l = [
1778
+ { x: r, y: 0 },
1779
+ { x: n - r, y: 0 },
1780
+ { x: n, y: -c / 2 },
1781
+ { x: n - r, y: -c },
1782
+ { x: r, y: -c },
1783
+ { x: 0, y: -c / 2 }
1784
+ ], g = V(a, n, c, l);
1785
+ return g.attr("style", t.style), N(t, g), t.intersect = function(o) {
1786
+ return B.polygon(t, l, o);
1787
+ }, a;
1788
+ }, "hexagon"), ca = /* @__PURE__ */ d(async (e, t) => {
1789
+ const { shapeSvg: a, bbox: s } = await z(e, t, void 0, !0), i = 2, c = s.height + 2 * t.padding, r = c / i, n = s.width + 2 * r + t.padding, g = t.positioned && (t.widthInColumns ?? 1) > 1 && t.width > n ? t.width : n, o = qr(t.directions, s, t, g), p = V(a, g, c, o);
1790
+ return p.attr("style", t.style), N(t, p), t.intersect = function(b) {
1791
+ return B.polygon(t, o, b);
1792
+ }, a;
1793
+ }, "block_arrow"), la = /* @__PURE__ */ d(async (e, t) => {
1794
+ const { shapeSvg: a, bbox: s } = await z(
1795
+ e,
1796
+ t,
1797
+ H(t, void 0),
1798
+ !0
1799
+ ), i = s.width + t.padding, c = s.height + t.padding, r = [
1800
+ { x: -c / 2, y: 0 },
1801
+ { x: i, y: 0 },
1802
+ { x: i, y: -c },
1803
+ { x: -c / 2, y: -c },
1804
+ { x: 0, y: -c / 2 }
1805
+ ];
1806
+ return V(a, i, c, r).attr("style", t.style), t.width = i + c, t.height = c, t.intersect = function(l) {
1807
+ return B.polygon(t, r, l);
1808
+ }, a;
1809
+ }, "rect_left_inv_arrow"), oa = /* @__PURE__ */ d(async (e, t) => {
1810
+ const { shapeSvg: a, bbox: s } = await z(e, t, H(t), !0), i = s.width + t.padding, c = s.height + t.padding, r = [
1811
+ { x: -2 * c / 6, y: 0 },
1812
+ { x: i - c / 6, y: 0 },
1813
+ { x: i + 2 * c / 6, y: -c },
1814
+ { x: c / 6, y: -c }
1815
+ ], n = V(a, i, c, r);
1816
+ return n.attr("style", t.style), N(t, n), t.intersect = function(l) {
1817
+ return B.polygon(t, r, l);
1818
+ }, a;
1819
+ }, "lean_right"), ha = /* @__PURE__ */ d(async (e, t) => {
1820
+ const { shapeSvg: a, bbox: s } = await z(
1821
+ e,
1822
+ t,
1823
+ H(t, void 0),
1824
+ !0
1825
+ ), i = s.width + t.padding, c = s.height + t.padding, r = [
1826
+ { x: 2 * c / 6, y: 0 },
1827
+ { x: i + c / 6, y: 0 },
1828
+ { x: i - 2 * c / 6, y: -c },
1829
+ { x: -c / 6, y: -c }
1830
+ ], n = V(a, i, c, r);
1831
+ return n.attr("style", t.style), N(t, n), t.intersect = function(l) {
1832
+ return B.polygon(t, r, l);
1833
+ }, a;
1834
+ }, "lean_left"), ga = /* @__PURE__ */ d(async (e, t) => {
1835
+ const { shapeSvg: a, bbox: s } = await z(
1836
+ e,
1837
+ t,
1838
+ H(t, void 0),
1839
+ !0
1840
+ ), i = s.width + t.padding, c = s.height + t.padding, r = [
1841
+ { x: -2 * c / 6, y: 0 },
1842
+ { x: i + 2 * c / 6, y: 0 },
1843
+ { x: i - c / 6, y: -c },
1844
+ { x: c / 6, y: -c }
1845
+ ], n = V(a, i, c, r);
1846
+ return n.attr("style", t.style), N(t, n), t.intersect = function(l) {
1847
+ return B.polygon(t, r, l);
1848
+ }, a;
1849
+ }, "trapezoid"), da = /* @__PURE__ */ d(async (e, t) => {
1850
+ const { shapeSvg: a, bbox: s } = await z(
1851
+ e,
1852
+ t,
1853
+ H(t, void 0),
1854
+ !0
1855
+ ), i = s.width + t.padding, c = s.height + t.padding, r = [
1856
+ { x: c / 6, y: 0 },
1857
+ { x: i - c / 6, y: 0 },
1858
+ { x: i + 2 * c / 6, y: -c },
1859
+ { x: -2 * c / 6, y: -c }
1860
+ ], n = V(a, i, c, r);
1861
+ return n.attr("style", t.style), N(t, n), t.intersect = function(l) {
1862
+ return B.polygon(t, r, l);
1863
+ }, a;
1864
+ }, "inv_trapezoid"), ua = /* @__PURE__ */ d(async (e, t) => {
1865
+ const { shapeSvg: a, bbox: s } = await z(
1866
+ e,
1867
+ t,
1868
+ H(t, void 0),
1869
+ !0
1870
+ ), i = s.width + t.padding, c = s.height + t.padding, r = [
1871
+ { x: 0, y: 0 },
1872
+ { x: i + c / 2, y: 0 },
1873
+ { x: i, y: -c / 2 },
1874
+ { x: i + c / 2, y: -c },
1875
+ { x: 0, y: -c }
1876
+ ], n = V(a, i, c, r);
1877
+ return n.attr("style", t.style), N(t, n), t.intersect = function(l) {
1878
+ return B.polygon(t, r, l);
1879
+ }, a;
1880
+ }, "rect_right_inv_arrow"), pa = /* @__PURE__ */ d(async (e, t) => {
1881
+ const { shapeSvg: a, bbox: s } = await z(
1882
+ e,
1883
+ t,
1884
+ H(t, void 0),
1885
+ !0
1886
+ ), i = s.width + t.padding, c = i / 2, r = c / (2.5 + i / 50), n = s.height + r + t.padding, l = "M 0," + r + " a " + c + "," + r + " 0,0,0 " + i + " 0 a " + c + "," + r + " 0,0,0 " + -i + " 0 l 0," + n + " a " + c + "," + r + " 0,0,0 " + i + " 0 l 0," + -n, g = a.attr("label-offset-y", r).insert("path", ":first-child").attr("style", t.style).attr("d", l).attr("transform", "translate(" + -i / 2 + "," + -(n / 2 + r) + ")");
1887
+ return N(t, g), t.intersect = function(o) {
1888
+ const p = B.rect(t, o), b = p.x - t.x;
1889
+ if (c != 0 && (Math.abs(b) < t.width / 2 || Math.abs(b) == t.width / 2 && Math.abs(p.y - t.y) > t.height / 2 - r)) {
1890
+ let x = r * r * (1 - b * b / (c * c));
1891
+ x != 0 && (x = Math.sqrt(x)), x = r - x, o.y - t.y > 0 && (x = -x), p.y += x;
1892
+ }
1893
+ return p;
1894
+ }, a;
1895
+ }, "cylinder"), fa = /* @__PURE__ */ d(async (e, t) => {
1896
+ const { shapeSvg: a, bbox: s, halfPadding: i } = await z(
1897
+ e,
1898
+ t,
1899
+ "node " + t.classes + " " + t.class,
1900
+ !0
1901
+ ), c = a.insert("rect", ":first-child"), r = t.positioned ? t.width : s.width + t.padding, n = t.positioned ? t.height : s.height + t.padding, l = t.positioned ? -r / 2 : -s.width / 2 - i, g = t.positioned ? -n / 2 : -s.height / 2 - i;
1902
+ if (c.attr("class", "basic label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", l).attr("y", g).attr("width", r).attr("height", n), t.props) {
1903
+ const o = new Set(Object.keys(t.props));
1904
+ t.props.borders && (ht(c, t.props.borders, r, n), o.delete("borders")), o.forEach((p) => {
1905
+ k.warn(`Unknown node property ${p}`);
1906
+ });
1907
+ }
1908
+ return N(t, c), t.intersect = function(o) {
1909
+ return B.rect(t, o);
1910
+ }, a;
1911
+ }, "rect"), xa = /* @__PURE__ */ d(async (e, t) => {
1912
+ const { shapeSvg: a, bbox: s, halfPadding: i } = await z(
1913
+ e,
1914
+ t,
1915
+ "node " + t.classes,
1916
+ !0
1917
+ ), c = a.insert("rect", ":first-child"), r = t.positioned ? t.width : s.width + t.padding, n = t.positioned ? t.height : s.height + t.padding, l = t.positioned ? -r / 2 : -s.width / 2 - i, g = t.positioned ? -n / 2 : -s.height / 2 - i;
1918
+ if (c.attr("class", "basic cluster composite label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", l).attr("y", g).attr("width", r).attr("height", n), t.props) {
1919
+ const o = new Set(Object.keys(t.props));
1920
+ t.props.borders && (ht(c, t.props.borders, r, n), o.delete("borders")), o.forEach((p) => {
1921
+ k.warn(`Unknown node property ${p}`);
1922
+ });
1923
+ }
1924
+ return N(t, c), t.intersect = function(o) {
1925
+ return B.rect(t, o);
1926
+ }, a;
1927
+ }, "composite"), ya = /* @__PURE__ */ d(async (e, t) => {
1928
+ const { shapeSvg: a } = await z(e, t, "label", !0);
1929
+ k.trace("Classes = ", t.class);
1930
+ const s = a.insert("rect", ":first-child"), i = 0, c = 0;
1931
+ if (s.attr("width", i).attr("height", c), a.attr("class", "label edgeLabel"), t.props) {
1932
+ const r = new Set(Object.keys(t.props));
1933
+ t.props.borders && (ht(s, t.props.borders, i, c), r.delete("borders")), r.forEach((n) => {
1934
+ k.warn(`Unknown node property ${n}`);
1935
+ });
1936
+ }
1937
+ return N(t, s), t.intersect = function(r) {
1938
+ return B.rect(t, r);
1939
+ }, a;
1940
+ }, "labelRect");
1941
+ function ht(e, t, a, s) {
1942
+ const i = [], c = /* @__PURE__ */ d((n) => {
1943
+ i.push(n, 0);
1944
+ }, "addBorder"), r = /* @__PURE__ */ d((n) => {
1945
+ i.push(0, n);
1946
+ }, "skipBorder");
1947
+ t.includes("t") ? (k.debug("add top border"), c(a)) : r(a), t.includes("r") ? (k.debug("add right border"), c(s)) : r(s), t.includes("b") ? (k.debug("add bottom border"), c(a)) : r(a), t.includes("l") ? (k.debug("add left border"), c(s)) : r(s), e.attr("stroke-dasharray", i.join(" "));
1948
+ }
1949
+ d(ht, "applyNodePropertyBorders");
1950
+ var ba = /* @__PURE__ */ d(async (e, t) => {
1951
+ let a;
1952
+ t.classes ? a = "node " + t.classes : a = "node default";
1953
+ const s = e.insert("g").attr("class", a).attr("id", t.domId || t.id), i = s.insert("rect", ":first-child"), c = s.insert("line"), r = s.insert("g").attr("class", "label"), n = t.labelText.flat ? t.labelText.flat() : t.labelText;
1954
+ let l = "";
1955
+ typeof n == "object" ? l = n[0] : l = n, k.info("Label text abc79", l, n, typeof n == "object");
1956
+ const g = await U(r, l, t.labelStyle, !0, !0);
1957
+ let o = { width: 0, height: 0 };
1958
+ if (P(A())) {
1959
+ const v = g.children[0], S = D(g);
1960
+ o = v.getBoundingClientRect(), S.attr("width", o.width), S.attr("height", o.height);
1961
+ }
1962
+ k.info("Text 2", n);
1963
+ const p = n.slice(1, n.length);
1964
+ let b = g.getBBox();
1965
+ const x = await U(
1966
+ r,
1967
+ p.join ? p.join("<br/>") : p,
1968
+ t.labelStyle,
1969
+ !0,
1970
+ !0
1971
+ );
1972
+ if (P(A())) {
1973
+ const v = x.children[0], S = D(x);
1974
+ o = v.getBoundingClientRect(), S.attr("width", o.width), S.attr("height", o.height);
1975
+ }
1976
+ const w = t.padding / 2;
1977
+ return D(x).attr(
1978
+ "transform",
1979
+ "translate( " + // (titleBox.width - bbox.width) / 2 +
1980
+ (o.width > b.width ? 0 : (b.width - o.width) / 2) + ", " + (b.height + w + 5) + ")"
1981
+ ), D(g).attr(
1982
+ "transform",
1983
+ "translate( " + // (titleBox.width - bbox.width) / 2 +
1984
+ (o.width < b.width ? 0 : -(b.width - o.width) / 2) + ", 0)"
1985
+ ), o = r.node().getBBox(), r.attr(
1986
+ "transform",
1987
+ "translate(" + -o.width / 2 + ", " + (-o.height / 2 - w + 3) + ")"
1988
+ ), i.attr("class", "outer title-state").attr("x", -o.width / 2 - w).attr("y", -o.height / 2 - w).attr("width", o.width + t.padding).attr("height", o.height + t.padding), c.attr("class", "divider").attr("x1", -o.width / 2 - w).attr("x2", o.width / 2 + w).attr("y1", -o.height / 2 - w + b.height + w).attr("y2", -o.height / 2 - w + b.height + w), N(t, i), t.intersect = function(v) {
1989
+ return B.rect(t, v);
1990
+ }, s;
1991
+ }, "rectWithTitle"), wa = /* @__PURE__ */ d(async (e, t) => {
1992
+ const { shapeSvg: a, bbox: s } = await z(
1993
+ e,
1994
+ t,
1995
+ H(t, void 0),
1996
+ !0
1997
+ ), i = s.height + t.padding, c = s.width + i / 4 + t.padding, r = a.insert("rect", ":first-child").attr("style", t.style).attr("rx", i / 2).attr("ry", i / 2).attr("x", -c / 2).attr("y", -i / 2).attr("width", c).attr("height", i);
1998
+ return N(t, r), t.intersect = function(n) {
1999
+ return B.rect(t, n);
2000
+ }, a;
2001
+ }, "stadium"), ma = /* @__PURE__ */ d(async (e, t) => {
2002
+ const { shapeSvg: a, bbox: s, halfPadding: i } = await z(
2003
+ e,
2004
+ t,
2005
+ H(t, void 0),
2006
+ !0
2007
+ ), c = a.insert("circle", ":first-child");
2008
+ return c.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", s.width / 2 + i).attr("width", s.width + t.padding).attr("height", s.height + t.padding), k.info("Circle main"), N(t, c), t.intersect = function(r) {
2009
+ return k.info("Circle intersect", t, s.width / 2 + i, r), B.circle(t, s.width / 2 + i, r);
2010
+ }, a;
2011
+ }, "circle"), Sa = /* @__PURE__ */ d(async (e, t) => {
2012
+ const { shapeSvg: a, bbox: s, halfPadding: i } = await z(
2013
+ e,
2014
+ t,
2015
+ H(t, void 0),
2016
+ !0
2017
+ ), c = 5, r = a.insert("g", ":first-child"), n = r.insert("circle"), l = r.insert("circle");
2018
+ return r.attr("class", t.class), n.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", s.width / 2 + i + c).attr("width", s.width + t.padding + c * 2).attr("height", s.height + t.padding + c * 2), l.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", s.width / 2 + i).attr("width", s.width + t.padding).attr("height", s.height + t.padding), k.info("DoubleCircle main"), N(t, n), t.intersect = function(g) {
2019
+ return k.info("DoubleCircle intersect", t, s.width / 2 + i + c, g), B.circle(t, s.width / 2 + i + c, g);
2020
+ }, a;
2021
+ }, "doublecircle"), La = /* @__PURE__ */ d(async (e, t) => {
2022
+ const { shapeSvg: a, bbox: s } = await z(
2023
+ e,
2024
+ t,
2025
+ H(t, void 0),
2026
+ !0
2027
+ ), i = s.width + t.padding, c = s.height + t.padding, r = [
2028
+ { x: 0, y: 0 },
2029
+ { x: i, y: 0 },
2030
+ { x: i, y: -c },
2031
+ { x: 0, y: -c },
2032
+ { x: 0, y: 0 },
2033
+ { x: -8, y: 0 },
2034
+ { x: i + 8, y: 0 },
2035
+ { x: i + 8, y: -c },
2036
+ { x: -8, y: -c },
2037
+ { x: -8, y: 0 }
2038
+ ], n = V(a, i, c, r);
2039
+ return n.attr("style", t.style), N(t, n), t.intersect = function(l) {
2040
+ return B.polygon(t, r, l);
2041
+ }, a;
2042
+ }, "subroutine"), ka = /* @__PURE__ */ d((e, t) => {
2043
+ const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), s = a.insert("circle", ":first-child");
2044
+ return s.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), N(t, s), t.intersect = function(i) {
2045
+ return B.circle(t, 7, i);
2046
+ }, a;
2047
+ }, "start"), Ht = /* @__PURE__ */ d((e, t, a) => {
2048
+ const s = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id);
2049
+ let i = 70, c = 10;
2050
+ a === "LR" && (i = 10, c = 70);
2051
+ const r = s.append("rect").attr("x", -1 * i / 2).attr("y", -1 * c / 2).attr("width", i).attr("height", c).attr("class", "fork-join");
2052
+ return N(t, r), t.height = t.height + t.padding / 2, t.width = t.width + t.padding / 2, t.intersect = function(n) {
2053
+ return B.rect(t, n);
2054
+ }, s;
2055
+ }, "forkJoin"), va = /* @__PURE__ */ d((e, t) => {
2056
+ const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), s = a.insert("circle", ":first-child"), i = a.insert("circle", ":first-child");
2057
+ return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), s.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), N(t, i), t.intersect = function(c) {
2058
+ return B.circle(t, 7, c);
2059
+ }, a;
2060
+ }, "end"), Ea = /* @__PURE__ */ d(async (e, t) => {
2061
+ const a = t.padding / 2, s = 4, i = 8;
2062
+ let c;
2063
+ t.classes ? c = "node " + t.classes : c = "node default";
2064
+ const r = e.insert("g").attr("class", c).attr("id", t.domId || t.id), n = r.insert("rect", ":first-child"), l = r.insert("line"), g = r.insert("line");
2065
+ let o = 0, p = s;
2066
+ const b = r.insert("g").attr("class", "label");
2067
+ let x = 0;
2068
+ const w = t.classData.annotations?.[0], v = t.classData.annotations[0] ? "«" + t.classData.annotations[0] + "»" : "", S = await U(
2069
+ b,
2070
+ v,
2071
+ t.labelStyle,
2072
+ !0,
2073
+ !0
2074
+ );
2075
+ let _ = S.getBBox();
2076
+ if (P(A())) {
2077
+ const E = S.children[0], h = D(S);
2078
+ _ = E.getBoundingClientRect(), h.attr("width", _.width), h.attr("height", _.height);
2079
+ }
2080
+ t.classData.annotations[0] && (p += _.height + s, o += _.width);
2081
+ let I = t.classData.label;
2082
+ t.classData.type !== void 0 && t.classData.type !== "" && (P(A()) ? I += "&lt;" + t.classData.type + "&gt;" : I += "<" + t.classData.type + ">");
2083
+ const T = await U(
2084
+ b,
2085
+ I,
2086
+ t.labelStyle,
2087
+ !0,
2088
+ !0
2089
+ );
2090
+ D(T).attr("class", "classTitle");
2091
+ let m = T.getBBox();
2092
+ if (P(A())) {
2093
+ const E = T.children[0], h = D(T);
2094
+ m = E.getBoundingClientRect(), h.attr("width", m.width), h.attr("height", m.height);
2095
+ }
2096
+ p += m.height + s, m.width > o && (o = m.width);
2097
+ const u = [];
2098
+ t.classData.members.forEach(async (E) => {
2099
+ const h = E.getDisplayDetails();
2100
+ let W = h.displayText;
2101
+ P(A()) && (W = W.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
2102
+ const f = await U(
2103
+ b,
2104
+ W,
2105
+ h.cssStyle ? h.cssStyle : t.labelStyle,
2106
+ !0,
2107
+ !0
2108
+ );
2109
+ let O = f.getBBox();
2110
+ if (P(A())) {
2111
+ const q = f.children[0], j = D(f);
2112
+ O = q.getBoundingClientRect(), j.attr("width", O.width), j.attr("height", O.height);
2113
+ }
2114
+ O.width > o && (o = O.width), p += O.height + s, u.push(f);
2115
+ }), p += i;
2116
+ const y = [];
2117
+ if (t.classData.methods.forEach(async (E) => {
2118
+ const h = E.getDisplayDetails();
2119
+ let W = h.displayText;
2120
+ P(A()) && (W = W.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
2121
+ const f = await U(
2122
+ b,
2123
+ W,
2124
+ h.cssStyle ? h.cssStyle : t.labelStyle,
2125
+ !0,
2126
+ !0
2127
+ );
2128
+ let O = f.getBBox();
2129
+ if (P(A())) {
2130
+ const q = f.children[0], j = D(f);
2131
+ O = q.getBoundingClientRect(), j.attr("width", O.width), j.attr("height", O.height);
2132
+ }
2133
+ O.width > o && (o = O.width), p += O.height + s, y.push(f);
2134
+ }), p += i, w) {
2135
+ let E = (o - _.width) / 2;
2136
+ D(S).attr(
2137
+ "transform",
2138
+ "translate( " + (-1 * o / 2 + E) + ", " + -1 * p / 2 + ")"
2139
+ ), x = _.height + s;
2140
+ }
2141
+ let L = (o - m.width) / 2;
2142
+ return D(T).attr(
2143
+ "transform",
2144
+ "translate( " + (-1 * o / 2 + L) + ", " + (-1 * p / 2 + x) + ")"
2145
+ ), x += m.height + s, l.attr("class", "divider").attr("x1", -o / 2 - a).attr("x2", o / 2 + a).attr("y1", -p / 2 - a + i + x).attr("y2", -p / 2 - a + i + x), x += i, u.forEach((E) => {
2146
+ D(E).attr(
2147
+ "transform",
2148
+ "translate( " + -o / 2 + ", " + (-1 * p / 2 + x + i / 2) + ")"
2149
+ );
2150
+ const h = E?.getBBox();
2151
+ x += (h?.height ?? 0) + s;
2152
+ }), x += i, g.attr("class", "divider").attr("x1", -o / 2 - a).attr("x2", o / 2 + a).attr("y1", -p / 2 - a + i + x).attr("y2", -p / 2 - a + i + x), x += i, y.forEach((E) => {
2153
+ D(E).attr(
2154
+ "transform",
2155
+ "translate( " + -o / 2 + ", " + (-1 * p / 2 + x) + ")"
2156
+ );
2157
+ const h = E?.getBBox();
2158
+ x += (h?.height ?? 0) + s;
2159
+ }), n.attr("style", t.style).attr("class", "outer title-state").attr("x", -o / 2 - a).attr("y", -(p / 2) - a).attr("width", o + t.padding).attr("height", p + t.padding), N(t, n), t.intersect = function(E) {
2160
+ return B.rect(t, E);
2161
+ }, r;
2162
+ }, "class_box"), Kt = {
2163
+ rhombus: Yt,
2164
+ composite: xa,
2165
+ question: Yt,
2166
+ rect: fa,
2167
+ labelRect: ya,
2168
+ rectWithTitle: ba,
2169
+ choice: ia,
2170
+ circle: ma,
2171
+ doublecircle: Sa,
2172
+ stadium: wa,
2173
+ hexagon: na,
2174
+ block_arrow: ca,
2175
+ rect_left_inv_arrow: la,
2176
+ lean_right: oa,
2177
+ lean_left: ha,
2178
+ trapezoid: ga,
2179
+ inv_trapezoid: da,
2180
+ rect_right_inv_arrow: ua,
2181
+ cylinder: pa,
2182
+ start: ka,
2183
+ end: va,
2184
+ note: sa,
2185
+ subroutine: La,
2186
+ fork: Ht,
2187
+ join: Ht,
2188
+ class_box: Ea
2189
+ }, ct = {}, ne = /* @__PURE__ */ d(async (e, t, a) => {
2190
+ let s, i;
2191
+ if (t.link) {
2192
+ let c;
2193
+ A().securityLevel === "sandbox" ? c = "_top" : t.linkTarget && (c = t.linkTarget || "_blank"), s = e.insert("svg:a").attr("xlink:href", t.link).attr("target", c), i = await Kt[t.shape](s, t, a);
2194
+ } else
2195
+ i = await Kt[t.shape](e, t, a), s = i;
2196
+ return t.tooltip && i.attr("title", t.tooltip), t.class && i.attr("class", "node default " + t.class), ct[t.id] = s, t.haveCallback && ct[t.id].attr("class", ct[t.id].attr("class") + " clickable"), s;
2197
+ }, "insertNode"), _a = /* @__PURE__ */ d((e) => {
2198
+ const t = ct[e.id];
2199
+ k.trace(
2200
+ "Transforming node",
2201
+ e.diff,
2202
+ e,
2203
+ "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")"
2204
+ );
2205
+ const a = 8, s = e.diff || 0;
2206
+ return e.clusterNode ? t.attr(
2207
+ "transform",
2208
+ "translate(" + (e.x + s - e.width / 2) + ", " + (e.y - e.height / 2 - a) + ")"
2209
+ ) : t.attr("transform", "translate(" + e.x + ", " + e.y + ")"), s;
2210
+ }, "positionNode");
2211
+ function Nt(e, t, a = !1) {
2212
+ const s = e;
2213
+ let i = "default";
2214
+ (s?.classes?.length || 0) > 0 && (i = (s?.classes ?? []).join(" ")), i = i + " flowchart-label";
2215
+ let c = 0, r = "", n;
2216
+ switch (s.type) {
2217
+ case "round":
2218
+ c = 5, r = "rect";
2219
+ break;
2220
+ case "composite":
2221
+ c = 0, r = "composite", n = 0;
2222
+ break;
2223
+ case "square":
2224
+ r = "rect";
2225
+ break;
2226
+ case "diamond":
2227
+ r = "question";
2228
+ break;
2229
+ case "hexagon":
2230
+ r = "hexagon";
2231
+ break;
2232
+ case "block_arrow":
2233
+ r = "block_arrow";
2234
+ break;
2235
+ case "odd":
2236
+ r = "rect_left_inv_arrow";
2237
+ break;
2238
+ case "lean_right":
2239
+ r = "lean_right";
2240
+ break;
2241
+ case "lean_left":
2242
+ r = "lean_left";
2243
+ break;
2244
+ case "trapezoid":
2245
+ r = "trapezoid";
2246
+ break;
2247
+ case "inv_trapezoid":
2248
+ r = "inv_trapezoid";
2249
+ break;
2250
+ case "rect_left_inv_arrow":
2251
+ r = "rect_left_inv_arrow";
2252
+ break;
2253
+ case "circle":
2254
+ r = "circle";
2255
+ break;
2256
+ case "ellipse":
2257
+ r = "ellipse";
2258
+ break;
2259
+ case "stadium":
2260
+ r = "stadium";
2261
+ break;
2262
+ case "subroutine":
2263
+ r = "subroutine";
2264
+ break;
2265
+ case "cylinder":
2266
+ r = "cylinder";
2267
+ break;
2268
+ case "group":
2269
+ r = "rect";
2270
+ break;
2271
+ case "doublecircle":
2272
+ r = "doublecircle";
2273
+ break;
2274
+ default:
2275
+ r = "rect";
2276
+ }
2277
+ const l = Ge(s?.styles ?? []), g = s.label, o = s.size ?? { width: 0, height: 0, x: 0, y: 0 }, p = t.getDiagramId();
2278
+ return {
2279
+ labelStyle: l.labelStyle,
2280
+ shape: r,
2281
+ labelText: g,
2282
+ rx: c,
2283
+ ry: c,
2284
+ class: i,
2285
+ style: l.style,
2286
+ id: s.id,
2287
+ domId: p ? `${p}-${s.id}` : s.id,
2288
+ directions: s.directions,
2289
+ width: o.width,
2290
+ height: o.height,
2291
+ x: o.x,
2292
+ y: o.y,
2293
+ positioned: a,
2294
+ intersect: void 0,
2295
+ type: s.type,
2296
+ padding: n ?? at()?.block?.padding ?? 0,
2297
+ widthInColumns: s.widthInColumns ?? 1
2298
+ };
2299
+ }
2300
+ d(Nt, "getNodeFromBlock");
2301
+ async function ce(e, t, a) {
2302
+ const s = Nt(t, a, !1);
2303
+ if (s.type === "group")
2304
+ return;
2305
+ const i = at(), c = await ne(e, s, { config: i }), r = c.node().getBBox(), n = a.getBlock(s.id);
2306
+ n.size = { width: r.width, height: r.height, x: 0, y: 0, node: c }, a.setBlock(n), c.remove();
2307
+ }
2308
+ d(ce, "calculateBlockSize");
2309
+ async function le(e, t, a) {
2310
+ const s = Nt(t, a, !0);
2311
+ if (a.getBlock(s.id).type !== "space") {
2312
+ const c = at();
2313
+ await ne(e, s, { config: c }), t.intersect = s?.intersect, _a(s);
2314
+ }
2315
+ }
2316
+ d(le, "insertBlockPositioned");
2317
+ async function gt(e, t, a, s) {
2318
+ for (const i of t)
2319
+ await s(e, i, a), i.children && await gt(e, i.children, a, s);
2320
+ }
2321
+ d(gt, "performOperations");
2322
+ async function oe(e, t, a) {
2323
+ await gt(e, t, a, ce);
2324
+ }
2325
+ d(oe, "calculateBlockSizes");
2326
+ async function he(e, t, a) {
2327
+ await gt(e, t, a, le);
2328
+ }
2329
+ d(he, "insertBlocks");
2330
+ async function ge(e, t, a, s, i) {
2331
+ const c = new qe({
2332
+ multigraph: !0,
2333
+ compound: !0
2334
+ });
2335
+ c.setGraph({
2336
+ rankdir: "TB",
2337
+ nodesep: 10,
2338
+ ranksep: 10,
2339
+ marginx: 8,
2340
+ marginy: 8
2341
+ });
2342
+ for (const r of a)
2343
+ r.size && c.setNode(r.id, {
2344
+ width: r.size.width,
2345
+ height: r.size.height,
2346
+ intersect: r.intersect
2347
+ });
2348
+ for (const r of t)
2349
+ if (r.start && r.end) {
2350
+ const n = s.getBlock(r.start), l = s.getBlock(r.end);
2351
+ if (n?.size && l?.size) {
2352
+ const g = n.size, o = l.size, p = [
2353
+ { x: g.x, y: g.y },
2354
+ { x: g.x + (o.x - g.x) / 2, y: g.y + (o.y - g.y) / 2 },
2355
+ { x: o.x, y: o.y }
2356
+ ], b = i ? `${i}-${r.id}` : r.id, x = r.thickness === "thick" ? "edge-thickness-thick" : "edge-thickness-normal", w = r.pattern === "dotted" ? "edge-pattern-dotted" : "edge-pattern-solid", v = `${x} ${w} flowchart-link LS-a1 LE-b1`;
2357
+ Gr(
2358
+ e,
2359
+ { v: r.start, w: r.end, name: b },
2360
+ {
2361
+ ...r,
2362
+ id: b,
2363
+ arrowTypeEnd: r.arrowTypeEnd,
2364
+ arrowTypeStart: r.arrowTypeStart,
2365
+ points: p,
2366
+ classes: v
2367
+ },
2368
+ void 0,
2369
+ "block",
2370
+ c,
2371
+ i
2372
+ ), r.label && (await Ur(e, {
2373
+ ...r,
2374
+ label: r.label,
2375
+ labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
2376
+ arrowTypeEnd: r.arrowTypeEnd,
2377
+ arrowTypeStart: r.arrowTypeStart,
2378
+ points: p,
2379
+ classes: v
2380
+ }), Xr(
2381
+ { ...r, x: p[1].x, y: p[1].y },
2382
+ {
2383
+ originalPath: p
2384
+ }
2385
+ ));
2386
+ }
2387
+ }
2388
+ }
2389
+ d(ge, "insertEdges");
2390
+ var Ta = /* @__PURE__ */ d(function(e, t) {
2391
+ return t.db.getClasses();
2392
+ }, "getClasses"), Da = /* @__PURE__ */ d(async function(e, t, a, s) {
2393
+ const { securityLevel: i, block: c } = at(), r = s.db;
2394
+ r.setDiagramId(t);
2395
+ let n;
2396
+ i === "sandbox" && (n = D("#i" + t));
2397
+ const l = i === "sandbox" ? D(n.nodes()[0].contentDocument.body) : D("body"), g = i === "sandbox" ? l.select(`[id="${t}"]`) : D(`[id="${t}"]`);
2398
+ Fr(g, ["point", "circle", "cross"], s.type, t);
2399
+ const p = r.getBlocks(), b = r.getBlocksFlat(), x = r.getEdges(), w = g.insert("g").attr("class", "block");
2400
+ await oe(w, p, r);
2401
+ const v = $t(r);
2402
+ if (await he(w, p, r), await ge(w, x, b, r, t), v) {
2403
+ const S = v, _ = Math.max(1, Math.round(0.125 * (S.width / S.height))), I = S.height + _ + 10, T = S.width + 10, { useMaxWidth: m } = c;
2404
+ Fe(g, I, T, !!m), k.debug("Here Bounds", v, S), g.attr(
2405
+ "viewBox",
2406
+ `${S.x - 5} ${S.y - 5} ${S.width + 10} ${S.height + 10}`
2407
+ );
2408
+ }
2409
+ }, "draw"), Ba = {
2410
+ draw: Da,
2411
+ getClasses: Ta
2412
+ }, Ra = {
2413
+ parser: sr,
2414
+ db: Er,
2415
+ renderer: Ba,
2416
+ styles: Tr
2417
+ };
2418
+ export {
2419
+ Ra as diagram
2420
+ };
2421
+ //# sourceMappingURL=blockDiagram-GPEHLZMM-YerYvLm_.js.map