@chaibuilder/pages 0.16.10 → 0.16.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (764) hide show
  1. package/dist/{2AITGKQY-C0A7leVc.cjs → 2AITGKQY-AK2WgbeT.cjs} +1 -1
  2. package/dist/{2AITGKQY-LtoYzpXb.js → 2AITGKQY-D1mM4eEh.js} +2 -2
  3. package/dist/{NCMVHL6D-BqKNTZhH.js → NCMVHL6D-BeRsWdGV.js} +2 -2
  4. package/dist/{NCMVHL6D-BbCiXTDR.cjs → NCMVHL6D-DItDf9IY.cjs} +1 -1
  5. package/dist/{ZDWCUMSJ-DEjMuvHw.cjs → ZDWCUMSJ-COSBY-at.cjs} +1 -1
  6. package/dist/{ZDWCUMSJ-CudD-G3A.js → ZDWCUMSJ-D6caRaY7.js} +1 -1
  7. package/dist/{add-new-language-page-CTZglguY.cjs → add-new-language-page-CQcFi0Tp.cjs} +1 -1
  8. package/dist/{add-new-language-page-C3R8vwOA.js → add-new-language-page-nnaUe-qk.js} +2 -2
  9. package/dist/{add-new-page-Dn-jphFf.js → add-new-page-Ba1fq6LH.js} +1 -1
  10. package/dist/{add-new-page-ByCsABU-.cjs → add-new-page-DxObnvo_.cjs} +1 -1
  11. package/dist/{ai-panel-content-VYS5Bn3a.cjs → ai-panel-content-B2AgBWqo.cjs} +1 -1
  12. package/dist/{ai-panel-content-CF7-wrq0.js → ai-panel-content-M1UnzG_f.js} +2 -2
  13. package/dist/{ai-panel-default-lang-C_zJzkZ4.js → ai-panel-default-lang-CHOFEwmV.js} +2 -2
  14. package/dist/{ai-panel-default-lang-D5vpT3cL.cjs → ai-panel-default-lang-sy6vkQJh.cjs} +3 -3
  15. package/dist/{ai-panel-other-lang-5Hdkr4eJ.js → ai-panel-other-lang-B4euTuod.js} +2 -2
  16. package/dist/ai-panel-other-lang-BwjSDD3L.cjs +1 -0
  17. package/dist/ai-prompt-input-B_NRADBT.js +988 -0
  18. package/dist/ai-prompt-input-DcyVXcLG.cjs +1 -0
  19. package/dist/{ai-translation-prompt-E3TEDobP.js → ai-translation-prompt-CVuPbgXw.js} +1 -1
  20. package/dist/{ai-translation-prompt-BYubvAxO.cjs → ai-translation-prompt-Ip7w2_Ey.cjs} +1 -1
  21. package/dist/{delete-page-CecAr8Ev.cjs → delete-page-CbY8q5M3.cjs} +1 -1
  22. package/dist/{delete-page-BtWRzpTh.js → delete-page-SX9X35nA.js} +1 -1
  23. package/dist/{digital-asset-manager-Y8YMABE1.cjs → digital-asset-manager-CIMo79Di.cjs} +1 -1
  24. package/dist/{digital-asset-manager-CyBlpHrq.js → digital-asset-manager-SAFNO_mx.js} +1 -1
  25. package/dist/{duplicate-page-3Dv56tPR.js → duplicate-page-5SwLvmkX.js} +2 -2
  26. package/dist/{duplicate-page-nGQAYVQc.cjs → duplicate-page-CXK2HcxD.cjs} +1 -1
  27. package/dist/{dynamic-page-selector-B9XaZMxt.cjs → dynamic-page-selector-Crd3y4Hk.cjs} +1 -1
  28. package/dist/{dynamic-page-selector-BapENUmp.js → dynamic-page-selector-DfcuTqRN.js} +1 -1
  29. package/dist/{image-editor-EmBN_Nn_.cjs → image-editor-CnDnY97s.cjs} +1 -1
  30. package/dist/{index-C1bimRWu.cjs → index-Bz7smSC0.cjs} +2 -2
  31. package/dist/{index-C_34q9jG.js → index-EnM7J19_.js} +16 -16
  32. package/dist/index.cjs +1 -1
  33. package/dist/index.js +1 -1
  34. package/dist/{json-diff-viewer-D2tCblUU.js → json-diff-viewer-CDwpbuag.js} +1 -1
  35. package/dist/{json-diff-viewer-B9kQEwcr.cjs → json-diff-viewer-D34kDA_c.cjs} +2 -2
  36. package/dist/{lang-panel-CsA6jzez.js → lang-panel-CUIeO5bb.js} +2 -2
  37. package/dist/{lang-panel-ClCAoE4L.cjs → lang-panel-CaFrYllL.cjs} +1 -1
  38. package/dist/{mark-as-template-BsOhlLYx.js → mark-as-template-D0dLQaIB.js} +1 -1
  39. package/dist/{mark-as-template-DUeGBAgn.cjs → mark-as-template-v182tmN6.cjs} +1 -1
  40. package/dist/{no-language-page-content-KLiCVKWw.cjs → no-language-page-content-Bk4fEx_p.cjs} +1 -1
  41. package/dist/{no-language-page-content-DveHrqZF.js → no-language-page-content-ByRFD_qA.js} +1 -1
  42. package/dist/{page-creator-Du1tv5PL.js → page-creator-Bh0IUGR3.js} +2 -2
  43. package/dist/{page-creator-I5z6OA-y.cjs → page-creator-BnvaGZVI.cjs} +1 -1
  44. package/dist/{page-lock-request-DSCZ2b9Y.cjs → page-lock-request-C2b1kqyA.cjs} +1 -1
  45. package/dist/{page-lock-request-C_FjXr4-.js → page-lock-request-CaNqxfD6.js} +1 -1
  46. package/dist/{page-locked-by-dialog-DAJlxcUt.js → page-locked-by-dialog--WLDdkw9.js} +1 -1
  47. package/dist/{page-locked-by-dialog-Daefw0-2.cjs → page-locked-by-dialog-90ElC8aG.cjs} +1 -1
  48. package/dist/{page-manager-new-BNk_0XVK.js → page-manager-new-Bo4-zwfW.js} +2 -2
  49. package/dist/{page-manager-new-DmA0Ka0c.cjs → page-manager-new-SNRQn7Az.cjs} +1 -1
  50. package/dist/{page-manager-search-and-filter-heV_U9x0.js → page-manager-search-and-filter-BETHSa3y.js} +1 -1
  51. package/dist/{page-manager-search-and-filter-DkR8sFPh.cjs → page-manager-search-and-filter-hyUIHOD_.cjs} +1 -1
  52. package/dist/{page-revisions-content-BIhjzS21.cjs → page-revisions-content-BCMjvZRZ.cjs} +1 -1
  53. package/dist/{page-revisions-content-BVg59skx.js → page-revisions-content-VWthKL7O.js} +2 -2
  54. package/dist/pages.css +1 -1
  55. package/dist/{publish-pages-content-BhJ_uRxQ.js → publish-pages-content-6N7aEcM1.js} +2 -2
  56. package/dist/{publish-pages-content-CKydxoZ_.cjs → publish-pages-content-CaBwfekc.cjs} +1 -1
  57. package/dist/{save-to-lib-C3mx8iXu.cjs → save-to-lib-CtGpDkC6.cjs} +1 -1
  58. package/dist/{save-to-lib-Byfa7tCG.js → save-to-lib-YYBxY7MV.js} +1 -1
  59. package/dist/selected-block-display-BEbuJn0l.cjs +16 -0
  60. package/dist/selected-block-display-DdW-DWF1.js +394 -0
  61. package/dist/{seo-panel-DxaEiunO.cjs → seo-panel-B9P7fXjo.cjs} +1 -1
  62. package/dist/{seo-panel-CrpYigIp.js → seo-panel-CqJDhbj-.js} +1 -1
  63. package/dist/server.cjs +4 -52
  64. package/dist/server.js +309 -10089
  65. package/dist/{shared-json-ld-CcUhox6j.cjs → shared-json-ld-CyxmC9y5.cjs} +1 -1
  66. package/dist/{shared-json-ld-DczSLaqw.js → shared-json-ld-DxEPILj_.js} +1 -1
  67. package/dist/{slug-input-CsniBgYf.cjs → slug-input-RNiSrU3p.cjs} +1 -1
  68. package/dist/{slug-input-CjagPxIn.js → slug-input-j5z5ZQn9.js} +1 -1
  69. package/dist/{theme-panel-footer-BYI0_a19.cjs → theme-panel-footer-CCsiDIVl.cjs} +1 -1
  70. package/dist/{theme-panel-footer-C-uSbeOf.js → theme-panel-footer-DD2yalfG.js} +1 -1
  71. package/dist/{unmark-as-template-CGKkAZPZ.js → unmark-as-template-B2hKhAHn.js} +1 -1
  72. package/dist/{unmark-as-template-GuUssCYI.cjs → unmark-as-template-DXjLbqOM.cjs} +1 -1
  73. package/dist/{unpublish-page-D67IrGmd.cjs → unpublish-page-BdJScWMX.cjs} +1 -1
  74. package/dist/{unpublish-page-ow8e1CXO.js → unpublish-page-BvB1PGSz.js} +1 -1
  75. package/dist/use-page-expand-manager-2KjeYfVS.cjs +1 -0
  76. package/dist/{web-preview-Dm8A9E8S.cjs → web-preview-BI4jd0O7.cjs} +1 -1
  77. package/dist/{web-preview-NCfHy3pB.js → web-preview-CwVpkcwU.js} +1 -1
  78. package/package.json +1 -1
  79. package/dist/_arrayEach-7nw56Qes.cjs +0 -1
  80. package/dist/_arrayEach-CBNlJl8q.js +0 -44
  81. package/dist/abap-DV7Q1lGP.cjs +0 -1
  82. package/dist/abap-Y8Dl9g_6.js +0 -6
  83. package/dist/actionscript-3-DXOxkRa2.cjs +0 -1
  84. package/dist/actionscript-3-DZzbMeqX.js +0 -6
  85. package/dist/ada-D46EKCNf.cjs +0 -1
  86. package/dist/ada-vP6ak0IW.js +0 -6
  87. package/dist/ai-panel-other-lang-BFnghH5Z.cjs +0 -1
  88. package/dist/ai-prompt-input-BXp7SxcJ.cjs +0 -45
  89. package/dist/ai-prompt-input-CrBweB8X.js +0 -4027
  90. package/dist/andromeeda-BIpZ7gaU.js +0 -4
  91. package/dist/andromeeda-DVDxRwp5.cjs +0 -1
  92. package/dist/angular-html-DPB4Rf0C.js +0 -32
  93. package/dist/angular-html-KMf2QdtP.cjs +0 -1
  94. package/dist/angular-ts-BxIbo3R1.cjs +0 -1
  95. package/dist/angular-ts-CTOR2ofC.js +0 -21
  96. package/dist/apache-BUjz-sD2.js +0 -6
  97. package/dist/apache-DL1xuH1f.cjs +0 -1
  98. package/dist/apex-CtcXmQ6V.js +0 -6
  99. package/dist/apex-UUd3Occv.cjs +0 -1
  100. package/dist/apl-CjNiDgad.js +0 -16
  101. package/dist/apl-Dj2G2M9w.cjs +0 -1
  102. package/dist/applescript-BPx7YFFu.js +0 -6
  103. package/dist/applescript-COilsSrZ.cjs +0 -1
  104. package/dist/ara-B6Lpq1YJ.cjs +0 -1
  105. package/dist/ara-Z2fSOxSw.js +0 -6
  106. package/dist/arc-CuYV2Z4i.js +0 -83
  107. package/dist/arc-Dzs-yn9V.cjs +0 -1
  108. package/dist/architecture-U656AL7Q-BFW69Rn1.js +0 -5
  109. package/dist/architecture-U656AL7Q-C1RBosC-.cjs +0 -1
  110. package/dist/architectureDiagram-VXUJARFQ-C7E-J7qp.js +0 -4669
  111. package/dist/architectureDiagram-VXUJARFQ-i1olysFf.cjs +0 -36
  112. package/dist/asciidoc-B-pCoB3G.js +0 -6
  113. package/dist/asciidoc-DcKqW72n.cjs +0 -1
  114. package/dist/asm-BTWLY5ym.js +0 -6
  115. package/dist/asm-DYMFy-sD.cjs +0 -1
  116. package/dist/astro-CFFExE8Q.js +0 -18
  117. package/dist/astro-DAOP_Xq6.cjs +0 -1
  118. package/dist/aurora-x-BwoVEUWZ.js +0 -4
  119. package/dist/aurora-x-C5IpmIOG.cjs +0 -1
  120. package/dist/awk-Fb0P9dkn.js +0 -6
  121. package/dist/awk-IEszImW6.cjs +0 -1
  122. package/dist/ayu-dark-Cv7nTiif.cjs +0 -1
  123. package/dist/ayu-dark-CxPZkpb2.js +0 -4
  124. package/dist/ballerina-Dr6dU4hP.cjs +0 -1
  125. package/dist/ballerina-oZK-YekG.js +0 -6
  126. package/dist/bat-0FvbqU9S.js +0 -6
  127. package/dist/bat-DGkUhhn2.cjs +0 -1
  128. package/dist/beancount-Bv1Sweoy.cjs +0 -1
  129. package/dist/beancount-DqJEb89h.js +0 -6
  130. package/dist/berry-DZkhZ7K3.cjs +0 -1
  131. package/dist/berry-PwsHPR_K.js +0 -6
  132. package/dist/bibtex-BgA36Z3k.cjs +0 -1
  133. package/dist/bibtex-EULQRLY5.js +0 -6
  134. package/dist/bicep-BorU73w0.js +0 -6
  135. package/dist/bicep-DL0zb-7W.cjs +0 -1
  136. package/dist/blade-BYkiyM-T.cjs +0 -1
  137. package/dist/blade-CRa6j5zS.js +0 -20
  138. package/dist/blockDiagram-VD42YOAC-8bGFphRU.js +0 -2368
  139. package/dist/blockDiagram-VD42YOAC-DG8nN7FI.cjs +0 -122
  140. package/dist/bsl-9bVgFeM9.cjs +0 -1
  141. package/dist/bsl-NkNNwerW.js +0 -8
  142. package/dist/c-CtlmKnPF.cjs +0 -1
  143. package/dist/c-eeMepfLm.js +0 -6
  144. package/dist/c4Diagram-YG6GDRKO-C5vTWKII.js +0 -1581
  145. package/dist/c4Diagram-YG6GDRKO-ojLwrHAZ.cjs +0 -10
  146. package/dist/cadence-02UX7mW8.js +0 -6
  147. package/dist/cadence-DcbmM5v3.cjs +0 -1
  148. package/dist/cairo-DM6WF2e3.js +0 -8
  149. package/dist/cairo-li7sQsxU.cjs +0 -1
  150. package/dist/catppuccin-frappe-Bn4lgmUk.cjs +0 -1
  151. package/dist/catppuccin-frappe-D3cH2rXe.js +0 -4
  152. package/dist/catppuccin-latte-BPtsb8jD.cjs +0 -1
  153. package/dist/catppuccin-latte-C0LRGUW4.js +0 -4
  154. package/dist/catppuccin-macchiato-BLfpQWhT.cjs +0 -1
  155. package/dist/catppuccin-macchiato-c5wQ11TT.js +0 -4
  156. package/dist/catppuccin-mocha-COMta283.cjs +0 -1
  157. package/dist/catppuccin-mocha-WMD6Qvya.js +0 -4
  158. package/dist/channel-Cdlcq82Q.js +0 -5
  159. package/dist/channel-D8SQrHOQ.cjs +0 -1
  160. package/dist/chunk-4BX2VUAB-D0Nkkvke.cjs +0 -1
  161. package/dist/chunk-4BX2VUAB-kRXCJxGQ.js +0 -9
  162. package/dist/chunk-55IACEB6-Ya_-e5Gj.cjs +0 -1
  163. package/dist/chunk-55IACEB6-xzVewFKl.js +0 -8
  164. package/dist/chunk-B4BG7PRW-C8Sj4Rta.cjs +0 -165
  165. package/dist/chunk-B4BG7PRW-DG5qX3ch.js +0 -1376
  166. package/dist/chunk-DI55MBZ5-C9He0Rku.cjs +0 -220
  167. package/dist/chunk-DI55MBZ5-CI_Ti_F2.js +0 -1382
  168. package/dist/chunk-FMBD7UC4-9Wx_99-Q.js +0 -19
  169. package/dist/chunk-FMBD7UC4-Be12B01Q.cjs +0 -15
  170. package/dist/chunk-QN33PNHL-B65aZfT8.cjs +0 -1
  171. package/dist/chunk-QN33PNHL-qSV2Zj2E.js +0 -20
  172. package/dist/chunk-QZHKN3VN-Dcw61eWf.js +0 -15
  173. package/dist/chunk-QZHKN3VN-V8GIXVhC.cjs +0 -1
  174. package/dist/chunk-TZMSLE5B-BUsuXR8P.cjs +0 -1
  175. package/dist/chunk-TZMSLE5B-De8BBIp6.js +0 -64
  176. package/dist/clarity-PKm5CwqM.js +0 -6
  177. package/dist/clarity-gPuvqtpF.cjs +0 -1
  178. package/dist/classDiagram-2ON5EDUG-DD8PWOat.cjs +0 -1
  179. package/dist/classDiagram-2ON5EDUG-DYXMSnp5.js +0 -16
  180. package/dist/classDiagram-v2-WZHVMYZB-DD8PWOat.cjs +0 -1
  181. package/dist/classDiagram-v2-WZHVMYZB-DYXMSnp5.js +0 -16
  182. package/dist/clojure-CXJfHrL3.js +0 -6
  183. package/dist/clojure-OUsr1SUl.cjs +0 -1
  184. package/dist/cmake-BJz8BOTU.js +0 -6
  185. package/dist/cmake-jM6P58qY.cjs +0 -1
  186. package/dist/cobol-CcrsCSUZ.cjs +0 -1
  187. package/dist/cobol-HihOMwht.js +0 -10
  188. package/dist/codeowners-Bt9yU6NX.js +0 -6
  189. package/dist/codeowners-QhPK6lIJ.cjs +0 -1
  190. package/dist/codeql-D9-TdUN8.cjs +0 -1
  191. package/dist/codeql-DHkodjjI.js +0 -6
  192. package/dist/coffee-DGBR_nr_.js +0 -8
  193. package/dist/coffee-DycxIFwY.cjs +0 -1
  194. package/dist/common-lisp-C77gR-8i.cjs +0 -1
  195. package/dist/common-lisp-EVqT9Zhp.js +0 -6
  196. package/dist/coq-B0L9upzn.js +0 -6
  197. package/dist/coq-vlPdR5hP.cjs +0 -1
  198. package/dist/cose-bilkent-S5V4N54A-BzynRFve.cjs +0 -1
  199. package/dist/cose-bilkent-S5V4N54A-C0LrMYq9.js +0 -2609
  200. package/dist/cpp-Cj177cuW.js +0 -18
  201. package/dist/cpp-DvI2Eoso.cjs +0 -1
  202. package/dist/crystal-B_WXhL2O.cjs +0 -1
  203. package/dist/crystal-CRJyc4G-.js +0 -18
  204. package/dist/csharp-C902_8Dy.cjs +0 -1
  205. package/dist/csharp-COJ2mCKr.js +0 -6
  206. package/dist/css-CECN5uSL.js +0 -6
  207. package/dist/css-Do0mp2lm.cjs +0 -1
  208. package/dist/csv-CmYOceLb.js +0 -6
  209. package/dist/csv-DiEdJzSJ.cjs +0 -1
  210. package/dist/cue-D1vJRJEx.cjs +0 -1
  211. package/dist/cue-ZzumE7IT.js +0 -6
  212. package/dist/cypher-atSM3NsM.cjs +0 -1
  213. package/dist/cypher-jpdmjtA6.js +0 -6
  214. package/dist/cytoscape.esm-DdQZKk9f.js +0 -18735
  215. package/dist/cytoscape.esm-DkGgpG6d.cjs +0 -331
  216. package/dist/d-2qe3NhmZ.cjs +0 -1
  217. package/dist/d-CBagWSwH.js +0 -6
  218. package/dist/dagre-6UL2VRFP-CJe6baLS.cjs +0 -4
  219. package/dist/dagre-6UL2VRFP-DK7rwVEg.js +0 -445
  220. package/dist/dark-plus-CRFsux2L.js +0 -4
  221. package/dist/dark-plus-DwC1RSst.cjs +0 -1
  222. package/dist/dart-6ObCrKr9.js +0 -6
  223. package/dist/dart-Ds0_0fwe.cjs +0 -1
  224. package/dist/dax-CcDT-8dH.js +0 -6
  225. package/dist/dax-DbkQa40E.cjs +0 -1
  226. package/dist/defaultLocale-D7EN2tov.js +0 -171
  227. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  228. package/dist/desktop-B93p9R9O.js +0 -6
  229. package/dist/desktop-tn3MFXCZ.cjs +0 -1
  230. package/dist/diagram-PSM6KHXK-C_A00ng9.js +0 -534
  231. package/dist/diagram-PSM6KHXK-X4v5dsQ4.cjs +0 -24
  232. package/dist/diagram-QEK2KX5R-rhfU6qwd.cjs +0 -43
  233. package/dist/diagram-QEK2KX5R-tTChUtDg.js +0 -221
  234. package/dist/diagram-S2PKOQOG-CJixlBq7.js +0 -143
  235. package/dist/diagram-S2PKOQOG-XyZUZk_b.cjs +0 -24
  236. package/dist/diff-BxzP2J8R.js +0 -6
  237. package/dist/diff-CA31fCOg.cjs +0 -1
  238. package/dist/docker-CsHqm9tx.js +0 -6
  239. package/dist/docker-zJpMwmYa.cjs +0 -1
  240. package/dist/dotenv-BMjVjUL1.js +0 -6
  241. package/dist/dotenv-DpcNCNek.cjs +0 -1
  242. package/dist/dracula-BNgwAJ-d.cjs +0 -1
  243. package/dist/dracula-BtZx2Kac.js +0 -4
  244. package/dist/dracula-soft-BHZ7sHFu.cjs +0 -1
  245. package/dist/dracula-soft-BKa-aqBv.js +0 -4
  246. package/dist/dream-maker-BkijXDkm.cjs +0 -1
  247. package/dist/dream-maker-PAx17jaB.js +0 -6
  248. package/dist/edge-BYQkOzbF.js +0 -12
  249. package/dist/edge-DaIYN5Mx.cjs +0 -1
  250. package/dist/elixir-BH_wmMK4.cjs +0 -1
  251. package/dist/elixir-Dh036GMp.js +0 -8
  252. package/dist/elm-BtNbw_Cd.js +0 -8
  253. package/dist/elm-Dc4sEBjc.cjs +0 -1
  254. package/dist/emacs-lisp-C1UCIjUO.cjs +0 -1
  255. package/dist/emacs-lisp-Cfxdx5D-.js +0 -6
  256. package/dist/erDiagram-Q2GNP2WA-B1QcX93p.js +0 -842
  257. package/dist/erDiagram-Q2GNP2WA-Up8_IT91.cjs +0 -60
  258. package/dist/erb-BqFQADjR.cjs +0 -1
  259. package/dist/erb-CS4zioBv.js +0 -10
  260. package/dist/erlang-CB2cfp6Z.cjs +0 -1
  261. package/dist/erlang-DNcDT8Hi.js +0 -8
  262. package/dist/everforest-dark-DMCBqXCK.js +0 -4
  263. package/dist/everforest-dark-_sBMomR1.cjs +0 -1
  264. package/dist/everforest-light-BbXl82Em.js +0 -4
  265. package/dist/everforest-light-H0xoYxl0.cjs +0 -1
  266. package/dist/fennel-Bz9-EMMc.cjs +0 -1
  267. package/dist/fennel-N4WcXuKx.js +0 -6
  268. package/dist/fish-BTDEUgqH.js +0 -6
  269. package/dist/fish-DwmQKRZi.cjs +0 -1
  270. package/dist/flowDiagram-NV44I4VS-BJffdKk6.cjs +0 -162
  271. package/dist/flowDiagram-NV44I4VS-Dq0-N_i3.js +0 -1627
  272. package/dist/fluent-BMXUxfv1.js +0 -6
  273. package/dist/fluent-CJtpNuaO.cjs +0 -1
  274. package/dist/fortran-fixed-form-DUsA-VGo.js +0 -8
  275. package/dist/fortran-fixed-form-rAbNFykM.cjs +0 -1
  276. package/dist/fortran-free-form-DPIT_jbP.js +0 -6
  277. package/dist/fortran-free-form-DRAcQkel.cjs +0 -1
  278. package/dist/fsharp-CYOiIVNx.js +0 -8
  279. package/dist/fsharp-DVcRF7k-.cjs +0 -1
  280. package/dist/ganttDiagram-LVOFAZNH-CndRZUwp.cjs +0 -267
  281. package/dist/ganttDiagram-LVOFAZNH-DCuouHg6.js +0 -2506
  282. package/dist/gdresource-BwtMIoBm.js +0 -10
  283. package/dist/gdresource-CcLusmd_.cjs +0 -1
  284. package/dist/gdscript-BifyeYhI.js +0 -6
  285. package/dist/gdscript-DSegQKMB.cjs +0 -1
  286. package/dist/gdshader-Bk8fF6yr.js +0 -6
  287. package/dist/gdshader-DsmqQl4t.cjs +0 -1
  288. package/dist/genie-Dy2rU8CF.cjs +0 -1
  289. package/dist/genie-DzUvd7U9.js +0 -6
  290. package/dist/gherkin-BmiEVBJ1.cjs +0 -1
  291. package/dist/gherkin-DHRaV0YP.js +0 -6
  292. package/dist/git-commit-Bd32YZ0K.js +0 -8
  293. package/dist/git-commit-DlVDzq9L.cjs +0 -1
  294. package/dist/git-rebase-Bn4RLd7u.cjs +0 -1
  295. package/dist/git-rebase-ZWUFO_T4.js +0 -8
  296. package/dist/gitGraph-F6HP7TQM-1lOuaCHS.cjs +0 -1
  297. package/dist/gitGraph-F6HP7TQM-Bwgh2Tgj.js +0 -5
  298. package/dist/gitGraphDiagram-NY62KEGX-BFpRv9B4.js +0 -712
  299. package/dist/gitGraphDiagram-NY62KEGX-Cc8RVspd.cjs +0 -65
  300. package/dist/github-dark-BKL9xNgN.cjs +0 -1
  301. package/dist/github-dark-DenFmJkN.js +0 -4
  302. package/dist/github-dark-default-BJPUVz4H.js +0 -4
  303. package/dist/github-dark-default-Dsv5MuSi.cjs +0 -1
  304. package/dist/github-dark-dimmed-CtB9hz8U.cjs +0 -1
  305. package/dist/github-dark-dimmed-DUshB20C.js +0 -4
  306. package/dist/github-dark-high-contrast-BqZVM-jF.cjs +0 -1
  307. package/dist/github-dark-high-contrast-D3aGCnF8.js +0 -4
  308. package/dist/github-light-BFTOhCbz.cjs +0 -1
  309. package/dist/github-light-JYsPkUQd.js +0 -4
  310. package/dist/github-light-default-BZoWH9dH.cjs +0 -1
  311. package/dist/github-light-default-D99KPAby.js +0 -4
  312. package/dist/github-light-high-contrast-BbmZE-Mp.js +0 -4
  313. package/dist/github-light-high-contrast-Ks3kPGJU.cjs +0 -1
  314. package/dist/gleam-Bv284lvN.js +0 -6
  315. package/dist/gleam-DHVuTCr7.cjs +0 -1
  316. package/dist/glimmer-js-CzmC7OX8.cjs +0 -1
  317. package/dist/glimmer-js-DkxNrfPT.js +0 -14
  318. package/dist/glimmer-ts-D6YZEmK_.js +0 -14
  319. package/dist/glimmer-ts-DLN2_wRt.cjs +0 -1
  320. package/dist/glsl-CQekZ3Zq.cjs +0 -1
  321. package/dist/glsl-CkUcVZNK.js +0 -8
  322. package/dist/gnuplot-CDPKvI9X.cjs +0 -1
  323. package/dist/gnuplot-yPG9-sE_.js +0 -6
  324. package/dist/go-ChxJuLYK.js +0 -6
  325. package/dist/go-epHseFUa.cjs +0 -1
  326. package/dist/graph-BJDrjORS.js +0 -244
  327. package/dist/graph-BLd2spTm.cjs +0 -1
  328. package/dist/graphql-BnP1YhXQ.cjs +0 -1
  329. package/dist/graphql-CBu2ehBn.js +0 -14
  330. package/dist/groovy-CJQTphOW.js +0 -6
  331. package/dist/groovy-D7VuDBXz.cjs +0 -1
  332. package/dist/gruvbox-dark-hard-C5HOtKIh.js +0 -4
  333. package/dist/gruvbox-dark-hard-CUGefKS6.cjs +0 -1
  334. package/dist/gruvbox-dark-medium-BoKPlKfz.cjs +0 -1
  335. package/dist/gruvbox-dark-medium-FVgwJHuz.js +0 -4
  336. package/dist/gruvbox-dark-soft-B46F314v.js +0 -4
  337. package/dist/gruvbox-dark-soft-DSrhOWeL.cjs +0 -1
  338. package/dist/gruvbox-light-hard-CJD38wDZ.js +0 -4
  339. package/dist/gruvbox-light-hard-De4IuseP.cjs +0 -1
  340. package/dist/gruvbox-light-medium-BlIhMYTA.js +0 -4
  341. package/dist/gruvbox-light-medium-CzMY3IEJ.cjs +0 -1
  342. package/dist/gruvbox-light-soft-DoPHyLVZ.js +0 -4
  343. package/dist/gruvbox-light-soft-U4iAIpWZ.cjs +0 -1
  344. package/dist/hack-BaDv2o40.cjs +0 -1
  345. package/dist/hack-ItRNKiEb.js +0 -10
  346. package/dist/haml-Bk21rGjP.cjs +0 -1
  347. package/dist/haml-NZLVzu_R.js +0 -10
  348. package/dist/handlebars-CJJi3lrU.cjs +0 -1
  349. package/dist/handlebars-mxStpSE7.js +0 -14
  350. package/dist/haskell-BShesV2P.cjs +0 -1
  351. package/dist/haskell-WeIwNIP6.js +0 -6
  352. package/dist/haxe-Bo5XuRS0.cjs +0 -1
  353. package/dist/haxe-TztHsm5T.js +0 -6
  354. package/dist/hcl-CrZnvm-1.cjs +0 -1
  355. package/dist/hcl-D438OF-I.js +0 -6
  356. package/dist/hjson-CEESwTUP.cjs +0 -1
  357. package/dist/hjson-DYBUbqOl.js +0 -6
  358. package/dist/hlsl-Bk8TCZNL.js +0 -6
  359. package/dist/hlsl-CyvYRIb9.cjs +0 -1
  360. package/dist/houston-BDYrDoDW.js +0 -4
  361. package/dist/houston-T57H3gQZ.cjs +0 -1
  362. package/dist/html-B50bmoVb.js +0 -10
  363. package/dist/html-C62Zf2h4.cjs +0 -1
  364. package/dist/html-derivative-C6bxFbFW.js +0 -8
  365. package/dist/html-derivative-NDb86jON.cjs +0 -1
  366. package/dist/http-BPlLI56k.cjs +0 -1
  367. package/dist/http-DLvAkeD-.js +0 -14
  368. package/dist/hurl-BQGBr8gH.cjs +0 -1
  369. package/dist/hurl-CgkFN90t.js +0 -12
  370. package/dist/hxml-GbqSQCLa.js +0 -8
  371. package/dist/hxml-vnw7fzrV.cjs +0 -1
  372. package/dist/hy-Brt5EZ7-.js +0 -6
  373. package/dist/hy-a1E2Ed6P.cjs +0 -1
  374. package/dist/imba-CR1Q6r17.cjs +0 -1
  375. package/dist/imba-CimUv-Uh.js +0 -6
  376. package/dist/info-NVLQJR56-C3piIB8L.cjs +0 -1
  377. package/dist/info-NVLQJR56-DxpWS9Ek.js +0 -5
  378. package/dist/infoDiagram-ER5ION4S-DqXS6eRb.cjs +0 -2
  379. package/dist/infoDiagram-ER5ION4S-iBX13SKY.js +0 -24
  380. package/dist/ini-BZIuRIvJ.js +0 -6
  381. package/dist/ini-Dpu3Xy2p.cjs +0 -1
  382. package/dist/init-CHZsXQcr.cjs +0 -1
  383. package/dist/init-DjUOC4st.js +0 -16
  384. package/dist/java--6gf61wy.cjs +0 -1
  385. package/dist/java-DY6VlHhP.js +0 -6
  386. package/dist/javascript-C25yR2R2.js +0 -6
  387. package/dist/javascript-DgmXW4Ha.cjs +0 -1
  388. package/dist/jinja-6NmewwV8.cjs +0 -1
  389. package/dist/jinja-CFW5uAwY.js +0 -11
  390. package/dist/jison-CD9Qsaj0.cjs +0 -1
  391. package/dist/jison-DdreslRX.js +0 -8
  392. package/dist/journeyDiagram-XKPGCS4Q-CIELmZlO.js +0 -836
  393. package/dist/journeyDiagram-XKPGCS4Q-CJX0XVNj.cjs +0 -139
  394. package/dist/json-DxJze_jm.js +0 -6
  395. package/dist/json-YkPizm35.cjs +0 -1
  396. package/dist/json5-BT4Fjg39.js +0 -6
  397. package/dist/json5-CCgFZiQn.cjs +0 -1
  398. package/dist/jsonc-CHjZD8gR.js +0 -6
  399. package/dist/jsonc-CKPHIcXW.cjs +0 -1
  400. package/dist/jsonl-BGuvDmy9.js +0 -6
  401. package/dist/jsonl-Dq56Hab-.cjs +0 -1
  402. package/dist/jsonnet-Bx2cfsXg.js +0 -6
  403. package/dist/jsonnet-Csh7E68F.cjs +0 -1
  404. package/dist/jssm-BcADi6EI.js +0 -6
  405. package/dist/jssm-D0M9iZPY.cjs +0 -1
  406. package/dist/jsx-BtKADgXT.js +0 -6
  407. package/dist/jsx-DLX6UGgg.cjs +0 -1
  408. package/dist/julia--2-efCjg.js +0 -16
  409. package/dist/julia-DimQn8rn.cjs +0 -1
  410. package/dist/kanagawa-dragon-BJZF7xDr.cjs +0 -1
  411. package/dist/kanagawa-dragon-CiKur4Hl.js +0 -4
  412. package/dist/kanagawa-lotus-BKu-smKu.js +0 -4
  413. package/dist/kanagawa-lotus-BhgzmRV4.cjs +0 -1
  414. package/dist/kanagawa-wave-BgJip59C.cjs +0 -1
  415. package/dist/kanagawa-wave-CQwozSzG.js +0 -4
  416. package/dist/kanban-definition-3W4ZIXB7-DnhdFt_Y.cjs +0 -89
  417. package/dist/kanban-definition-3W4ZIXB7-WK7l1gdb.js +0 -721
  418. package/dist/kdl-BNOv9TC3.js +0 -6
  419. package/dist/kdl-CDG1p2Qi.cjs +0 -1
  420. package/dist/kotlin-BHZjvNqT.cjs +0 -1
  421. package/dist/kotlin-ByBMgTeR.js +0 -6
  422. package/dist/kusto-BgZ0fOqg.cjs +0 -1
  423. package/dist/kusto-VWFLl2T0.js +0 -6
  424. package/dist/laserwave--izBLY1I.cjs +0 -1
  425. package/dist/laserwave-6a00oqik.js +0 -4
  426. package/dist/latex-CO8r39zT.js +0 -8
  427. package/dist/latex-Xma1qZep.cjs +0 -1
  428. package/dist/layout-AXx0t5i6.cjs +0 -1
  429. package/dist/layout-B6VyrpKo.js +0 -1223
  430. package/dist/lean-BCqiTZhG.cjs +0 -1
  431. package/dist/lean-k2QBx9cb.js +0 -6
  432. package/dist/less-B1GLI2Di.js +0 -6
  433. package/dist/less-Dtg8mm6P.cjs +0 -1
  434. package/dist/light-plus-B5D0le0o.cjs +0 -1
  435. package/dist/light-plus-CZuVqSLX.js +0 -4
  436. package/dist/linear-CdbmJ0kA.cjs +0 -1
  437. package/dist/linear-CebAae2s.js +0 -259
  438. package/dist/liquid-CHzkx3jT.js +0 -14
  439. package/dist/liquid-DjlCV7Vm.cjs +0 -1
  440. package/dist/llvm-DcRvQ_r8.cjs +0 -1
  441. package/dist/llvm-co1rIKs3.js +0 -6
  442. package/dist/log-Al8wyEFV.js +0 -6
  443. package/dist/log-CjTZ0gSB.cjs +0 -1
  444. package/dist/logo-BAktp_5i.cjs +0 -1
  445. package/dist/logo-DBa4JDzV.js +0 -6
  446. package/dist/lua-BfOnSJPp.cjs +0 -1
  447. package/dist/lua-kX5WP_P5.js +0 -8
  448. package/dist/luau-DTep-u3e.cjs +0 -1
  449. package/dist/luau-DtBSxLyz.js +0 -6
  450. package/dist/make-CsMclxtr.js +0 -6
  451. package/dist/make-NcdIe21U.cjs +0 -1
  452. package/dist/markdown-Byu9Sdmq.cjs +0 -1
  453. package/dist/markdown-CrScaQ96.js +0 -6
  454. package/dist/marko-Cvx4TamJ.cjs +0 -1
  455. package/dist/marko-ls0Jg2j8.js +0 -14
  456. package/dist/material-theme-D6KBX41T.js +0 -4
  457. package/dist/material-theme-Dj0-OyRN.cjs +0 -1
  458. package/dist/material-theme-darker-CkRroheE.js +0 -4
  459. package/dist/material-theme-darker-Dvfs29ir.cjs +0 -1
  460. package/dist/material-theme-lighter-BUBw43Yz.js +0 -4
  461. package/dist/material-theme-lighter-EU3ZGl_r.cjs +0 -1
  462. package/dist/material-theme-ocean-ClGX14Ja.js +0 -4
  463. package/dist/material-theme-ocean-px_3Pwqa.cjs +0 -1
  464. package/dist/material-theme-palenight-38jxvsGX.cjs +0 -1
  465. package/dist/material-theme-palenight-C1RVm8K1.js +0 -4
  466. package/dist/matlab-BOAaUVP0.js +0 -6
  467. package/dist/matlab-CHTOL9Kx.cjs +0 -1
  468. package/dist/mdc-DEPKJPdx.cjs +0 -1
  469. package/dist/mdc-uaivvctV.js +0 -12
  470. package/dist/mdx-BOhZZUJ8.js +0 -6
  471. package/dist/mdx-CjwI68TB.cjs +0 -1
  472. package/dist/mermaid-B0ixDHKN.js +0 -6
  473. package/dist/mermaid-XEfjk_VN.cjs +0 -1
  474. package/dist/mermaid-parser.core-DKJdj2_U.cjs +0 -128
  475. package/dist/mermaid-parser.core-GitSl6co.js +0 -13256
  476. package/dist/mermaid.core-3NhAXOzj.js +0 -14260
  477. package/dist/mermaid.core-Cop_RRH4.cjs +0 -196
  478. package/dist/min-dark-C7ak0t6c.js +0 -4
  479. package/dist/min-dark-tt5o_I5e.cjs +0 -1
  480. package/dist/min-light-CKFxVcPp.js +0 -4
  481. package/dist/min-light-tmTHl_CQ.cjs +0 -1
  482. package/dist/mindmap-definition-VGOIOE7T-BOk1rAbB.js +0 -787
  483. package/dist/mindmap-definition-VGOIOE7T-cJsasSc0.cjs +0 -68
  484. package/dist/mipsasm-BSlRcFIy.cjs +0 -1
  485. package/dist/mipsasm-CTx18fBl.js +0 -6
  486. package/dist/mojo-BD611d7o.js +0 -6
  487. package/dist/mojo-BQ8pQfYA.cjs +0 -1
  488. package/dist/monokai-C1KBYcO0.js +0 -4
  489. package/dist/monokai-DMIxv6MM.cjs +0 -1
  490. package/dist/move-Bm1vlCWg.cjs +0 -1
  491. package/dist/move-F-dICmj2.js +0 -6
  492. package/dist/narrat-CBeKHgTl.cjs +0 -1
  493. package/dist/narrat-DmhDCBs-.js +0 -6
  494. package/dist/nextflow-0_vzQJwQ.cjs +0 -1
  495. package/dist/nextflow-BAAEJxI_.js +0 -6
  496. package/dist/nginx-5vhPAEw3.js +0 -8
  497. package/dist/nginx-ByVOUyIE.cjs +0 -1
  498. package/dist/night-owl-BN78kThQ.cjs +0 -1
  499. package/dist/night-owl-Bm2rzalh.js +0 -4
  500. package/dist/nim-Bqmp5Of3.cjs +0 -1
  501. package/dist/nim-QAjRdh9w.js +0 -20
  502. package/dist/nix-B_7Vy2bT.js +0 -6
  503. package/dist/nix-BoOZl1xr.cjs +0 -1
  504. package/dist/nord-CC5OiUXg.js +0 -4
  505. package/dist/nord-Ca5AGUWc.cjs +0 -1
  506. package/dist/nushell-D8j3dhT-.js +0 -6
  507. package/dist/nushell-nGrB_wpI.cjs +0 -1
  508. package/dist/objective-c-Itk8tzmv.js +0 -6
  509. package/dist/objective-c-RjkWwFge.cjs +0 -1
  510. package/dist/objective-cpp-DGt5UKRO.js +0 -6
  511. package/dist/objective-cpp-HnfhWwRe.cjs +0 -1
  512. package/dist/ocaml-Cx8ewW_A.cjs +0 -1
  513. package/dist/ocaml-eSVK32Eg.js +0 -6
  514. package/dist/one-dark-pro-C09VQHwB.cjs +0 -1
  515. package/dist/one-dark-pro-DTA3VF0_.js +0 -4
  516. package/dist/one-light-020-h_lv.cjs +0 -1
  517. package/dist/one-light-D9sNaUtq.js +0 -4
  518. package/dist/ordinal-CagbB1m8.cjs +0 -1
  519. package/dist/ordinal-DfAQgscy.js +0 -61
  520. package/dist/packet-BFZMPI3H-B0uDu6gg.cjs +0 -1
  521. package/dist/packet-BFZMPI3H-tS-CKRal.js +0 -5
  522. package/dist/pascal-DBu9vQ2o.cjs +0 -1
  523. package/dist/pascal-xy8pJNns.js +0 -6
  524. package/dist/perl-CxWZPeDZ.cjs +0 -1
  525. package/dist/perl-DkVrgJBg.js +0 -16
  526. package/dist/php-BLXVJphD.cjs +0 -1
  527. package/dist/php-j2zCzTEz.js +0 -18
  528. package/dist/pie-7BOR55EZ-CcDzfu0_.js +0 -5
  529. package/dist/pie-7BOR55EZ-CqYqIXXG.cjs +0 -1
  530. package/dist/pieDiagram-ADFJNKIX-CFfE-HG7.js +0 -162
  531. package/dist/pieDiagram-ADFJNKIX-DWVdC3zW.cjs +0 -30
  532. package/dist/pkl-C-zSNmaA.js +0 -6
  533. package/dist/pkl-Dvyry4Rm.cjs +0 -1
  534. package/dist/plastic-CSTz3KZp.js +0 -4
  535. package/dist/plastic-r5piqq-S.cjs +0 -1
  536. package/dist/plsql-IJkoPJ9P.cjs +0 -1
  537. package/dist/plsql-pVbGZfOv.js +0 -6
  538. package/dist/po-BNfHvqmm.js +0 -6
  539. package/dist/po-Rhu6MvnX.cjs +0 -1
  540. package/dist/poimandres-BLP3NNjc.cjs +0 -1
  541. package/dist/poimandres-C-VADXHD.js +0 -4
  542. package/dist/polar-BtWqSUq2.cjs +0 -1
  543. package/dist/polar-CAZahv3u.js +0 -6
  544. package/dist/postcss-05aHdL-n.js +0 -6
  545. package/dist/postcss-Dh97DcaJ.cjs +0 -1
  546. package/dist/powerquery-BGL6VIw7.cjs +0 -1
  547. package/dist/powerquery-DI9HkTvs.js +0 -6
  548. package/dist/powershell-BiEPMjy-.cjs +0 -1
  549. package/dist/powershell-Clc4ydu-.js +0 -6
  550. package/dist/prisma-Dp473sn0.cjs +0 -1
  551. package/dist/prisma-FZjmVtSl.js +0 -6
  552. package/dist/prolog-C5-yg4TO.js +0 -6
  553. package/dist/prolog-N1U-3UeF.cjs +0 -1
  554. package/dist/proto-MmCPeFAD.js +0 -6
  555. package/dist/proto-kd7Vn2fe.cjs +0 -1
  556. package/dist/pug-DiGNE7sm.cjs +0 -1
  557. package/dist/pug-XOw9Q1Ho.js +0 -12
  558. package/dist/puppet-CUJHmnxV.js +0 -6
  559. package/dist/puppet-cDQP_ZC_.cjs +0 -1
  560. package/dist/purescript-DMxb59gF.cjs +0 -1
  561. package/dist/purescript-rUfGld-4.js +0 -6
  562. package/dist/python-BFNSHbwJ.js +0 -6
  563. package/dist/python-s9jfVbew.cjs +0 -1
  564. package/dist/qml-beorq0E4.cjs +0 -1
  565. package/dist/qml-rTNXsquU.js +0 -8
  566. package/dist/qmldir-BInDYbpo.js +0 -6
  567. package/dist/qmldir-DNF9H2ir.cjs +0 -1
  568. package/dist/qss-AeJTysr_.js +0 -6
  569. package/dist/qss-DwA_oiAM.cjs +0 -1
  570. package/dist/quadrantDiagram-AYHSOK5B-6xSOcCxL.js +0 -1024
  571. package/dist/quadrantDiagram-AYHSOK5B-J0R9fpox.cjs +0 -7
  572. package/dist/r-Bm0uF0U2.js +0 -6
  573. package/dist/r-ChIwckeM.cjs +0 -1
  574. package/dist/racket-B83wSAja.js +0 -6
  575. package/dist/racket-D4laxZit.cjs +0 -1
  576. package/dist/radar-NHE76QYJ-C4G7hzu6.js +0 -5
  577. package/dist/radar-NHE76QYJ-EznHmPEg.cjs +0 -1
  578. package/dist/raku-DHySPsLw.cjs +0 -1
  579. package/dist/raku-nEQ4ZJJ7.js +0 -6
  580. package/dist/razor-DgCbant-.cjs +0 -1
  581. package/dist/razor-Dh1wKTmh.js +0 -10
  582. package/dist/red-7y8PH7HH.js +0 -4
  583. package/dist/red-BQGOv1D5.cjs +0 -1
  584. package/dist/reg-CevkCKuZ.cjs +0 -1
  585. package/dist/reg-m_s_Kiip.js +0 -6
  586. package/dist/regexp-BazyLpPg.js +0 -6
  587. package/dist/regexp-DabTWNLE.cjs +0 -1
  588. package/dist/rel-BS5APza7.cjs +0 -1
  589. package/dist/rel-BcRfyd6Q.js +0 -6
  590. package/dist/requirementDiagram-UZGBJVZJ-DXq0f3Op.cjs +0 -64
  591. package/dist/requirementDiagram-UZGBJVZJ-p2d3AnQ8.js +0 -852
  592. package/dist/riscv-BnGFr6V7.cjs +0 -1
  593. package/dist/riscv-Ce8MAQLP.js +0 -6
  594. package/dist/rose-pine-Cr4kwgAY.js +0 -4
  595. package/dist/rose-pine-Dynd1SQq.cjs +0 -1
  596. package/dist/rose-pine-dawn-ClRRUdXX.js +0 -4
  597. package/dist/rose-pine-dawn-DwrpEjkh.cjs +0 -1
  598. package/dist/rose-pine-moon-8HmiewSG.cjs +0 -1
  599. package/dist/rose-pine-moon-ucNn3Gm8.js +0 -4
  600. package/dist/rosmsg-C7VSFzUC.cjs +0 -1
  601. package/dist/rosmsg-Cz0w1km8.js +0 -6
  602. package/dist/rst-CcbeA9zE.js +0 -22
  603. package/dist/rst-D08gsKw8.cjs +0 -1
  604. package/dist/ruby-B5H7kBtd.cjs +0 -1
  605. package/dist/ruby-DMPw6uKF.js +0 -30
  606. package/dist/rust-CLzF9zIN.js +0 -6
  607. package/dist/rust-CNeTMPbB.cjs +0 -1
  608. package/dist/sankeyDiagram-TZEHDZUN-CLBuuob-.cjs +0 -10
  609. package/dist/sankeyDiagram-TZEHDZUN-CbASga1e.js +0 -810
  610. package/dist/sas-D5Fn8Q38.cjs +0 -1
  611. package/dist/sas-fpEvgATw.js +0 -8
  612. package/dist/sass-DxHp5rTx.js +0 -6
  613. package/dist/sass-vyo-bUwh.cjs +0 -1
  614. package/dist/scala-D4grkFkl.js +0 -6
  615. package/dist/scala-ZSekD-8-.cjs +0 -1
  616. package/dist/scheme-BCRWuEm4.js +0 -6
  617. package/dist/scheme-vM0LdD-_.cjs +0 -1
  618. package/dist/scss-B1FaCqwR.js +0 -8
  619. package/dist/scss-CKlduTMv.cjs +0 -1
  620. package/dist/sdbl-B7T8abf4.js +0 -6
  621. package/dist/sdbl-DeWT5r4i.cjs +0 -1
  622. package/dist/selected-block-display-CZ3zwgqL.js +0 -43632
  623. package/dist/selected-block-display-GwQBADhp.cjs +0 -541
  624. package/dist/sequenceDiagram-WL72ISMW-3T2mzAhA.js +0 -2522
  625. package/dist/sequenceDiagram-WL72ISMW-DmS_WEPR.cjs +0 -145
  626. package/dist/shaderlab-Cr62-Wb4.js +0 -8
  627. package/dist/shaderlab-DGJjQHxC.cjs +0 -1
  628. package/dist/shellscript-DYWjN7qW.cjs +0 -1
  629. package/dist/shellscript-InADTalH.js +0 -6
  630. package/dist/shellsession-DMUSXX8m.cjs +0 -1
  631. package/dist/shellsession-DiDJNQdy.js +0 -8
  632. package/dist/slack-dark-akqwQ7ED.cjs +0 -1
  633. package/dist/slack-dark-i7wN4OET.js +0 -4
  634. package/dist/slack-ochin-BoQQWmTv.cjs +0 -1
  635. package/dist/slack-ochin-ndHf0LoP.js +0 -4
  636. package/dist/smalltalk-BNs6hxu4.cjs +0 -1
  637. package/dist/smalltalk-BlI1_OkM.js +0 -6
  638. package/dist/snazzy-light-BlSJXAu4.js +0 -4
  639. package/dist/snazzy-light-D_IwRieF.cjs +0 -1
  640. package/dist/solarized-dark-UTmkh7lw.js +0 -4
  641. package/dist/solarized-dark-gmm-WbDC.cjs +0 -1
  642. package/dist/solarized-light-BheCkDPT.js +0 -4
  643. package/dist/solarized-light-DzcxRSZP.cjs +0 -1
  644. package/dist/solidity-CYggdHYd.cjs +0 -1
  645. package/dist/solidity-CneOhxmR.js +0 -6
  646. package/dist/soy-C1-6njHa.js +0 -8
  647. package/dist/soy-CDFPDtGX.cjs +0 -1
  648. package/dist/sparql-6Cg9ppCl.cjs +0 -1
  649. package/dist/sparql-B0KWFEri.js +0 -8
  650. package/dist/splunk-CRXR8A9s.js +0 -6
  651. package/dist/splunk-CWPivao_.cjs +0 -1
  652. package/dist/sql-Cn_v3PB0.js +0 -6
  653. package/dist/sql-DhUUVgH1.cjs +0 -1
  654. package/dist/ssh-config-B93wBIBa.cjs +0 -1
  655. package/dist/ssh-config-DP-hNVbF.js +0 -6
  656. package/dist/stata-B8c5fTjX.js +0 -8
  657. package/dist/stata-DCWFCQQG.cjs +0 -1
  658. package/dist/stateDiagram-FKZM4ZOC-BmMX9umD.cjs +0 -1
  659. package/dist/stateDiagram-FKZM4ZOC-D9lkyJcL.js +0 -264
  660. package/dist/stateDiagram-v2-4FDKWEC3-BwQkMtRv.cjs +0 -1
  661. package/dist/stateDiagram-v2-4FDKWEC3-D0yq-_gB.js +0 -16
  662. package/dist/stylus-B64Bt0D4.cjs +0 -1
  663. package/dist/stylus-CyKEU1Ej.js +0 -6
  664. package/dist/svelte-5UasyOg7.js +0 -14
  665. package/dist/svelte-DFg_x5i4.cjs +0 -1
  666. package/dist/swift-9UzSvamq.js +0 -6
  667. package/dist/swift-BMbGdc3j.cjs +0 -1
  668. package/dist/synthwave-84-BBRLOmNT.cjs +0 -1
  669. package/dist/synthwave-84-NU3C_KFZ.js +0 -4
  670. package/dist/system-verilog-BCm7smPJ.js +0 -6
  671. package/dist/system-verilog-BFclLo9e.cjs +0 -1
  672. package/dist/systemd-C-4qm6XH.js +0 -6
  673. package/dist/systemd-Dtw7P4tb.cjs +0 -1
  674. package/dist/talonscript-CFF3LF_O.js +0 -6
  675. package/dist/talonscript-D8SvZJVc.cjs +0 -1
  676. package/dist/tasl--DC4oX-L.cjs +0 -1
  677. package/dist/tasl-Cg_WBUAe.js +0 -6
  678. package/dist/tcl-0Q0H86Yn.cjs +0 -1
  679. package/dist/tcl-DN7buRTF.js +0 -6
  680. package/dist/templ-BDNMUns0.cjs +0 -1
  681. package/dist/templ-peLZIM2D.js +0 -12
  682. package/dist/terraform-C0RDrmWi.cjs +0 -1
  683. package/dist/terraform-DGvcn9zM.js +0 -6
  684. package/dist/tex-BUUuwxQS.js +0 -8
  685. package/dist/tex-By7qnogv.cjs +0 -1
  686. package/dist/timeline-definition-IT6M3QCI-Bi9IiYMF.cjs +0 -61
  687. package/dist/timeline-definition-IT6M3QCI-LtkAohDp.js +0 -801
  688. package/dist/tokyo-night-DP4TmcQl.js +0 -4
  689. package/dist/tokyo-night-GOhjzM5y.cjs +0 -1
  690. package/dist/toml-DY62mUL_.js +0 -6
  691. package/dist/toml-Q64DoSvG.cjs +0 -1
  692. package/dist/treemap-KMMF4GRG-DAuFMsAI.cjs +0 -1
  693. package/dist/treemap-KMMF4GRG-vy1iI8-N.js +0 -5
  694. package/dist/ts-tags-DILCom6A.cjs +0 -1
  695. package/dist/ts-tags-ioVe2PKw.js +0 -41
  696. package/dist/tsv-BtvSkaG0.js +0 -6
  697. package/dist/tsv-DqNGnuVj.cjs +0 -1
  698. package/dist/tsx-B8rCNbgL.js +0 -6
  699. package/dist/tsx-DIpfUf9u.cjs +0 -1
  700. package/dist/turtle-DipIidr5.cjs +0 -1
  701. package/dist/turtle-_H59FV7D.js +0 -6
  702. package/dist/twig-B42NGISI.cjs +0 -1
  703. package/dist/twig-CcRLVyUg.js +0 -18
  704. package/dist/typescript-RycA9KXf.js +0 -6
  705. package/dist/typescript-b48wo4zk.cjs +0 -1
  706. package/dist/typespec-CLqB-2XS.cjs +0 -1
  707. package/dist/typespec-Djmco60m.js +0 -6
  708. package/dist/typst-Cqq4j4V-.cjs +0 -1
  709. package/dist/typst-D_1QKWns.js +0 -6
  710. package/dist/use-page-expand-manager-B5Y2KS1c.cjs +0 -1
  711. package/dist/v-81C2s01-.cjs +0 -1
  712. package/dist/v-BPCNiyYe.js +0 -6
  713. package/dist/vala-CsAYdCD2.cjs +0 -1
  714. package/dist/vala-uxaPR7d1.js +0 -6
  715. package/dist/vb-AiTMb16X.cjs +0 -1
  716. package/dist/vb-D8_c5-KN.js +0 -6
  717. package/dist/verilog-AMohXZcN.cjs +0 -1
  718. package/dist/verilog-B-bybjPF.js +0 -6
  719. package/dist/vesper-B59Iw4gV.cjs +0 -1
  720. package/dist/vesper-BckBta1U.js +0 -4
  721. package/dist/vhdl-CUlNa8ac.js +0 -6
  722. package/dist/vhdl-DIdR1NA5.cjs +0 -1
  723. package/dist/viml-D01eKeA4.cjs +0 -1
  724. package/dist/viml-DsfA-sWm.js +0 -6
  725. package/dist/vitesse-black-BoGvW84i.js +0 -4
  726. package/dist/vitesse-black-MF-1S1MG.cjs +0 -1
  727. package/dist/vitesse-dark-Cym-eLtO.js +0 -4
  728. package/dist/vitesse-dark-SIffJYSe.cjs +0 -1
  729. package/dist/vitesse-light-CcmG315c.js +0 -4
  730. package/dist/vitesse-light-U63SkYGT.cjs +0 -1
  731. package/dist/vue-DUYfTwgV.cjs +0 -1
  732. package/dist/vue-DrinnB8Y.js +0 -31
  733. package/dist/vue-html-B8T_zUQ-.cjs +0 -1
  734. package/dist/vue-html-CQOyCFnQ.js +0 -10
  735. package/dist/vue-vine-CAyeVfAj.js +0 -20
  736. package/dist/vue-vine-ClEtVpt5.cjs +0 -1
  737. package/dist/vyper-CPQuu50u.js +0 -6
  738. package/dist/vyper-DTzyzn3a.cjs +0 -1
  739. package/dist/wasm-BBXxrAl7.js +0 -6
  740. package/dist/wasm-DQxwEHae.js +0 -7
  741. package/dist/wasm-Dp-QrJpp.cjs +0 -1
  742. package/dist/wasm-Dw4u1m6u.cjs +0 -1
  743. package/dist/wenyan-CRNx8UP3.cjs +0 -1
  744. package/dist/wenyan-pbVjoM9_.js +0 -6
  745. package/dist/wgsl-DF5qc9dd.cjs +0 -1
  746. package/dist/wgsl-DY4iK1q1.js +0 -6
  747. package/dist/wikitext-D7uzEIfK.cjs +0 -1
  748. package/dist/wikitext-Z-MoUasO.js +0 -6
  749. package/dist/wit-BjWgLsJj.cjs +0 -1
  750. package/dist/wit-CQMQOlTg.js +0 -6
  751. package/dist/wolfram-BR4t3Ffc.cjs +0 -1
  752. package/dist/wolfram-Dz4KXISs.js +0 -6
  753. package/dist/xml-BpsKWkuV.cjs +0 -1
  754. package/dist/xml-C2J0sS9M.js +0 -8
  755. package/dist/xsl-BmSZphgC.js +0 -8
  756. package/dist/xsl-D-3VYix6.cjs +0 -1
  757. package/dist/xychartDiagram-PRI3JC2R-d5V8_6ka.cjs +0 -7
  758. package/dist/xychartDiagram-PRI3JC2R-ggiHJXU7.js +0 -1340
  759. package/dist/yaml-DaO7k5B1.js +0 -6
  760. package/dist/yaml-XVBmpKh-.cjs +0 -1
  761. package/dist/zenscript-CxBjpf9c.js +0 -6
  762. package/dist/zenscript-fNvwKexi.cjs +0 -1
  763. package/dist/zig-BAyIAcWK.cjs +0 -1
  764. package/dist/zig-Vm0PO9wB.js +0 -6
@@ -1,2368 +0,0 @@
1
- import { g as ke } from "./chunk-FMBD7UC4-9Wx_99-Q.js";
2
- import { aF as qt, aG as Rt, aH as Te, aI as De, aJ as Jt, aK as Tt, aL as gt, aM as Qt, aN as Ne, aO as Ce, aP as Ie, aQ as Be, aR as Ae, aS as Oe, ax as Re, aT as ze, _ as g, d as z, l as L, j as R, i as mt, aU as Me, G as it, aV as Z, aD as te, aq as je, u as rt, aW as Fe, a9 as Pe, a4 as We, k as Ye, v as Ue, B as He, aa as Ke, aX as Xe, aY as Lt, e as Ve } from "./mermaid.core-3NhAXOzj.js";
3
- import { k as Ge, g as $e, a as Ze, b as qe } from "./_arrayEach-CBNlJl8q.js";
4
- import { G as Je } from "./graph-BJDrjORS.js";
5
- import { c as Qe } from "./channel-Cdlcq82Q.js";
6
- function tr(e, t) {
7
- return e && qt(t, Ge(t), e);
8
- }
9
- function er(e, t) {
10
- return qt(e, $e(e), t);
11
- }
12
- var rr = Object.prototype, ar = rr.hasOwnProperty;
13
- function sr(e) {
14
- var t = e.length, a = new e.constructor(t);
15
- return t && typeof e[0] == "string" && ar.call(e, "index") && (a.index = e.index, a.input = e.input), a;
16
- }
17
- function ir(e, t) {
18
- var a = e.buffer;
19
- return new e.constructor(a, e.byteOffset, e.byteLength);
20
- }
21
- var nr = /\w*$/;
22
- function lr(e) {
23
- var t = new e.constructor(e.source, nr.exec(e));
24
- return t.lastIndex = e.lastIndex, t;
25
- }
26
- var zt = Rt ? Rt.prototype : void 0, Mt = zt ? zt.valueOf : void 0;
27
- function cr(e) {
28
- return Mt ? Object(Mt.call(e)) : {};
29
- }
30
- var or = "[object Boolean]", hr = "[object Date]", gr = "[object Map]", dr = "[object Number]", ur = "[object RegExp]", pr = "[object Set]", fr = "[object String]", yr = "[object Symbol]", xr = "[object ArrayBuffer]", br = "[object DataView]", wr = "[object Float32Array]", mr = "[object Float64Array]", Lr = "[object Int8Array]", Sr = "[object Int16Array]", vr = "[object Int32Array]", Er = "[object Uint8Array]", _r = "[object Uint8ClampedArray]", kr = "[object Uint16Array]", Tr = "[object Uint32Array]";
31
- function Dr(e, t, a) {
32
- var i = e.constructor;
33
- switch (t) {
34
- case xr:
35
- return De(e);
36
- case or:
37
- case hr:
38
- return new i(+e);
39
- case br:
40
- return ir(e);
41
- case wr:
42
- case mr:
43
- case Lr:
44
- case Sr:
45
- case vr:
46
- case Er:
47
- case _r:
48
- case kr:
49
- case Tr:
50
- return Te(e, a);
51
- case gr:
52
- return new i();
53
- case dr:
54
- case fr:
55
- return new i(e);
56
- case ur:
57
- return lr(e);
58
- case pr:
59
- return new i();
60
- case yr:
61
- return cr(e);
62
- }
63
- }
64
- var Nr = "[object Map]";
65
- function Cr(e) {
66
- return Jt(e) && Tt(e) == Nr;
67
- }
68
- var jt = gt && gt.isMap, Ir = jt ? Qt(jt) : Cr, Br = "[object Set]";
69
- function Ar(e) {
70
- return Jt(e) && Tt(e) == Br;
71
- }
72
- var Ft = gt && gt.isSet, Or = Ft ? Qt(Ft) : Ar, Rr = 1, ee = "[object Arguments]", zr = "[object Array]", Mr = "[object Boolean]", jr = "[object Date]", Fr = "[object Error]", re = "[object Function]", Pr = "[object GeneratorFunction]", Wr = "[object Map]", Yr = "[object Number]", ae = "[object Object]", Ur = "[object RegExp]", Hr = "[object Set]", Kr = "[object String]", Xr = "[object Symbol]", Vr = "[object WeakMap]", Gr = "[object ArrayBuffer]", $r = "[object DataView]", Zr = "[object Float32Array]", qr = "[object Float64Array]", Jr = "[object Int8Array]", Qr = "[object Int16Array]", ta = "[object Int32Array]", ea = "[object Uint8Array]", ra = "[object Uint8ClampedArray]", aa = "[object Uint16Array]", sa = "[object Uint32Array]", C = {};
73
- C[ee] = C[zr] = C[Gr] = C[$r] = C[Mr] = C[jr] = C[Zr] = C[qr] = C[Jr] = C[Qr] = C[ta] = C[Wr] = C[Yr] = C[ae] = C[Ur] = C[Hr] = C[Kr] = C[Xr] = C[ea] = C[ra] = C[aa] = C[sa] = !0;
74
- C[Fr] = C[re] = C[Vr] = !1;
75
- function ot(e, t, a, i, l, s) {
76
- var r, n = t & Rr;
77
- if (r !== void 0)
78
- return r;
79
- if (!Ne(e))
80
- return e;
81
- var o = Re(e);
82
- if (o)
83
- return r = sr(e), Ce(e, r);
84
- var u = Tt(e), h = u == re || u == Pr;
85
- if (Ie(e))
86
- return Be(e, n);
87
- if (u == ae || u == ee || h && !l)
88
- return r = h ? {} : Ae(e), er(e, tr(r, e));
89
- if (!C[u])
90
- return l ? e : {};
91
- r = Dr(e, u, n), s || (s = new Oe());
92
- var x = s.get(e);
93
- if (x)
94
- return x;
95
- s.set(e, r), Or(e) ? e.forEach(function(S) {
96
- r.add(ot(S, t, a, S, e, s));
97
- }) : Ir(e) && e.forEach(function(S, k) {
98
- r.set(k, ot(S, t, a, k, e, s));
99
- });
100
- var b = qe, m = o ? void 0 : b(e);
101
- return Ze(m || e, function(S, k) {
102
- m && (k = S, S = e[k]), ze(r, k, ot(S, t, a, k, e, s));
103
- }), r;
104
- }
105
- var ia = 4;
106
- function na(e) {
107
- return ot(e, ia);
108
- }
109
- var St = function() {
110
- var e = /* @__PURE__ */ g(function(D, y, d, p) {
111
- for (d = d || {}, p = D.length; p--; d[D[p]] = y) ;
112
- return d;
113
- }, "o"), t = [1, 15], a = [1, 7], i = [1, 13], l = [1, 14], s = [1, 19], r = [1, 16], n = [1, 17], o = [1, 18], u = [8, 30], h = [8, 10, 21, 28, 29, 30, 31, 39, 43, 46], x = [1, 23], b = [1, 24], m = [8, 10, 15, 16, 21, 28, 29, 30, 31, 39, 43, 46], S = [8, 10, 15, 16, 21, 27, 28, 29, 30, 31, 39, 43, 46], k = [1, 49], E = {
114
- trace: /* @__PURE__ */ g(function() {
115
- }, "trace"),
116
- yy: {},
117
- 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 },
118
- 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" },
119
- 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]],
120
- performAction: /* @__PURE__ */ g(function(y, d, p, w, v, c, _) {
121
- var f = c.length - 1;
122
- switch (v) {
123
- case 4:
124
- w.getLogger().debug("Rule: separator (NL) ");
125
- break;
126
- case 5:
127
- w.getLogger().debug("Rule: separator (Space) ");
128
- break;
129
- case 6:
130
- w.getLogger().debug("Rule: separator (EOF) ");
131
- break;
132
- case 7:
133
- w.getLogger().debug("Rule: hierarchy: ", c[f - 1]), w.setHierarchy(c[f - 1]);
134
- break;
135
- case 8:
136
- w.getLogger().debug("Stop NL ");
137
- break;
138
- case 9:
139
- w.getLogger().debug("Stop EOF ");
140
- break;
141
- case 10:
142
- w.getLogger().debug("Stop NL2 ");
143
- break;
144
- case 11:
145
- w.getLogger().debug("Stop EOF2 ");
146
- break;
147
- case 12:
148
- w.getLogger().debug("Rule: statement: ", c[f]), typeof c[f].length == "number" ? this.$ = c[f] : this.$ = [c[f]];
149
- break;
150
- case 13:
151
- w.getLogger().debug("Rule: statement #2: ", c[f - 1]), this.$ = [c[f - 1]].concat(c[f]);
152
- break;
153
- case 14:
154
- w.getLogger().debug("Rule: link: ", c[f], y), this.$ = { edgeTypeStr: c[f], label: "" };
155
- break;
156
- case 15:
157
- w.getLogger().debug("Rule: LABEL link: ", c[f - 3], c[f - 1], c[f]), this.$ = { edgeTypeStr: c[f], label: c[f - 1] };
158
- break;
159
- case 18:
160
- const M = parseInt(c[f]), O = w.generateId();
161
- this.$ = { id: O, type: "space", label: "", width: M, children: [] };
162
- break;
163
- case 23:
164
- w.getLogger().debug("Rule: (nodeStatement link node) ", c[f - 2], c[f - 1], c[f], " typestr: ", c[f - 1].edgeTypeStr);
165
- const K = w.edgeStrToEdgeData(c[f - 1].edgeTypeStr);
166
- this.$ = [
167
- { id: c[f - 2].id, label: c[f - 2].label, type: c[f - 2].type, directions: c[f - 2].directions },
168
- { id: c[f - 2].id + "-" + c[f].id, start: c[f - 2].id, end: c[f].id, label: c[f - 1].label, type: "edge", directions: c[f].directions, arrowTypeEnd: K, arrowTypeStart: "arrow_open" },
169
- { id: c[f].id, label: c[f].label, type: w.typeStr2Type(c[f].typeStr), directions: c[f].directions }
170
- ];
171
- break;
172
- case 24:
173
- w.getLogger().debug("Rule: nodeStatement (abc88 node size) ", c[f - 1], c[f]), this.$ = { id: c[f - 1].id, label: c[f - 1].label, type: w.typeStr2Type(c[f - 1].typeStr), directions: c[f - 1].directions, widthInColumns: parseInt(c[f], 10) };
174
- break;
175
- case 25:
176
- w.getLogger().debug("Rule: nodeStatement (node) ", c[f]), this.$ = { id: c[f].id, label: c[f].label, type: w.typeStr2Type(c[f].typeStr), directions: c[f].directions, widthInColumns: 1 };
177
- break;
178
- case 26:
179
- w.getLogger().debug("APA123", this ? this : "na"), w.getLogger().debug("COLUMNS: ", c[f]), this.$ = { type: "column-setting", columns: c[f] === "auto" ? -1 : parseInt(c[f]) };
180
- break;
181
- case 27:
182
- w.getLogger().debug("Rule: id-block statement : ", c[f - 2], c[f - 1]), w.generateId(), this.$ = { ...c[f - 2], type: "composite", children: c[f - 1] };
183
- break;
184
- case 28:
185
- w.getLogger().debug("Rule: blockStatement : ", c[f - 2], c[f - 1], c[f]);
186
- const W = w.generateId();
187
- this.$ = { id: W, type: "composite", label: "", children: c[f - 1] };
188
- break;
189
- case 29:
190
- w.getLogger().debug("Rule: node (NODE_ID separator): ", c[f]), this.$ = { id: c[f] };
191
- break;
192
- case 30:
193
- w.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", c[f - 1], c[f]), this.$ = { id: c[f - 1], label: c[f].label, typeStr: c[f].typeStr, directions: c[f].directions };
194
- break;
195
- case 31:
196
- w.getLogger().debug("Rule: dirList: ", c[f]), this.$ = [c[f]];
197
- break;
198
- case 32:
199
- w.getLogger().debug("Rule: dirList: ", c[f - 1], c[f]), this.$ = [c[f - 1]].concat(c[f]);
200
- break;
201
- case 33:
202
- w.getLogger().debug("Rule: nodeShapeNLabel: ", c[f - 2], c[f - 1], c[f]), this.$ = { typeStr: c[f - 2] + c[f], label: c[f - 1] };
203
- break;
204
- case 34:
205
- w.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", c[f - 3], c[f - 2], " #3:", c[f - 1], c[f]), this.$ = { typeStr: c[f - 3] + c[f], label: c[f - 2], directions: c[f - 1] };
206
- break;
207
- case 35:
208
- case 36:
209
- this.$ = { type: "classDef", id: c[f - 1].trim(), css: c[f].trim() };
210
- break;
211
- case 37:
212
- this.$ = { type: "applyClass", id: c[f - 1].trim(), styleClass: c[f].trim() };
213
- break;
214
- case 38:
215
- this.$ = { type: "applyStyles", id: c[f - 1].trim(), stylesStr: c[f].trim() };
216
- break;
217
- }
218
- }, "anonymous"),
219
- 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: i, 29: l, 31: s, 39: r, 43: n, 46: o }, { 8: [1, 20] }, e(u, [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: i, 29: l, 31: s, 39: r, 43: n, 46: o }), e(h, [2, 16], { 14: 22, 15: x, 16: b }), e(h, [2, 17]), e(h, [2, 18]), e(h, [2, 19]), e(h, [2, 20]), e(h, [2, 21]), e(h, [2, 22]), e(m, [2, 25], { 27: [1, 25] }), e(h, [2, 26]), { 19: 26, 26: 12, 31: s }, { 10: t, 11: 27, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: i, 29: l, 31: s, 39: r, 43: n, 46: o }, { 40: [1, 28], 42: [1, 29] }, { 44: [1, 30] }, { 47: [1, 31] }, e(S, [2, 29], { 32: 32, 35: [1, 33], 37: [1, 34] }), { 1: [2, 7] }, e(u, [2, 13]), { 26: 35, 31: s }, { 31: [2, 14] }, { 17: [1, 36] }, e(m, [2, 24]), { 10: t, 11: 37, 13: 4, 14: 22, 15: x, 16: b, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: i, 29: l, 31: s, 39: r, 43: n, 46: o }, { 30: [1, 38] }, { 41: [1, 39] }, { 41: [1, 40] }, { 45: [1, 41] }, { 48: [1, 42] }, e(S, [2, 30]), { 18: [1, 43] }, { 18: [1, 44] }, e(m, [2, 23]), { 18: [1, 45] }, { 30: [1, 46] }, e(h, [2, 28]), e(h, [2, 35]), e(h, [2, 36]), e(h, [2, 37]), e(h, [2, 38]), { 36: [1, 47] }, { 33: 48, 34: k }, { 15: [1, 50] }, e(h, [2, 27]), e(S, [2, 33]), { 38: [1, 51] }, { 33: 52, 34: k, 38: [2, 31] }, { 31: [2, 15] }, e(S, [2, 34]), { 38: [2, 32] }],
220
- defaultActions: { 20: [2, 7], 23: [2, 14], 50: [2, 15], 52: [2, 32] },
221
- parseError: /* @__PURE__ */ g(function(y, d) {
222
- if (d.recoverable)
223
- this.trace(y);
224
- else {
225
- var p = new Error(y);
226
- throw p.hash = d, p;
227
- }
228
- }, "parseError"),
229
- parse: /* @__PURE__ */ g(function(y) {
230
- var d = this, p = [0], w = [], v = [null], c = [], _ = this.table, f = "", M = 0, O = 0, K = 2, W = 1, J = c.slice.call(arguments, 1), j = Object.create(this.lexer), Q = { yy: {} };
231
- for (var yt in this.yy)
232
- Object.prototype.hasOwnProperty.call(this.yy, yt) && (Q.yy[yt] = this.yy[yt]);
233
- j.setInput(y, Q.yy), Q.yy.lexer = j, Q.yy.parser = this, typeof j.yylloc > "u" && (j.yylloc = {});
234
- var xt = j.yylloc;
235
- c.push(xt);
236
- var Ee = j.options && j.options.ranges;
237
- typeof Q.yy.parseError == "function" ? this.parseError = Q.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
238
- function _e(U) {
239
- p.length = p.length - 2 * U, v.length = v.length - U, c.length = c.length - U;
240
- }
241
- g(_e, "popStack");
242
- function At() {
243
- var U;
244
- return U = w.pop() || j.lex() || W, typeof U != "number" && (U instanceof Array && (w = U, U = w.pop()), U = d.symbols_[U] || U), U;
245
- }
246
- g(At, "lex");
247
- for (var Y, tt, X, bt, et = {}, nt, q, Ot, lt; ; ) {
248
- if (tt = p[p.length - 1], this.defaultActions[tt] ? X = this.defaultActions[tt] : ((Y === null || typeof Y > "u") && (Y = At()), X = _[tt] && _[tt][Y]), typeof X > "u" || !X.length || !X[0]) {
249
- var wt = "";
250
- lt = [];
251
- for (nt in _[tt])
252
- this.terminals_[nt] && nt > K && lt.push("'" + this.terminals_[nt] + "'");
253
- j.showPosition ? wt = "Parse error on line " + (M + 1) + `:
254
- ` + j.showPosition() + `
255
- Expecting ` + lt.join(", ") + ", got '" + (this.terminals_[Y] || Y) + "'" : wt = "Parse error on line " + (M + 1) + ": Unexpected " + (Y == W ? "end of input" : "'" + (this.terminals_[Y] || Y) + "'"), this.parseError(wt, {
256
- text: j.match,
257
- token: this.terminals_[Y] || Y,
258
- line: j.yylineno,
259
- loc: xt,
260
- expected: lt
261
- });
262
- }
263
- if (X[0] instanceof Array && X.length > 1)
264
- throw new Error("Parse Error: multiple actions possible at state: " + tt + ", token: " + Y);
265
- switch (X[0]) {
266
- case 1:
267
- p.push(Y), v.push(j.yytext), c.push(j.yylloc), p.push(X[1]), Y = null, O = j.yyleng, f = j.yytext, M = j.yylineno, xt = j.yylloc;
268
- break;
269
- case 2:
270
- if (q = this.productions_[X[1]][1], et.$ = v[v.length - q], et._$ = {
271
- first_line: c[c.length - (q || 1)].first_line,
272
- last_line: c[c.length - 1].last_line,
273
- first_column: c[c.length - (q || 1)].first_column,
274
- last_column: c[c.length - 1].last_column
275
- }, Ee && (et._$.range = [
276
- c[c.length - (q || 1)].range[0],
277
- c[c.length - 1].range[1]
278
- ]), bt = this.performAction.apply(et, [
279
- f,
280
- O,
281
- M,
282
- Q.yy,
283
- X[1],
284
- v,
285
- c
286
- ].concat(J)), typeof bt < "u")
287
- return bt;
288
- q && (p = p.slice(0, -1 * q * 2), v = v.slice(0, -1 * q), c = c.slice(0, -1 * q)), p.push(this.productions_[X[1]][0]), v.push(et.$), c.push(et._$), Ot = _[p[p.length - 2]][p[p.length - 1]], p.push(Ot);
289
- break;
290
- case 3:
291
- return !0;
292
- }
293
- }
294
- return !0;
295
- }, "parse")
296
- }, N = /* @__PURE__ */ function() {
297
- var D = {
298
- EOF: 1,
299
- parseError: /* @__PURE__ */ g(function(d, p) {
300
- if (this.yy.parser)
301
- this.yy.parser.parseError(d, p);
302
- else
303
- throw new Error(d);
304
- }, "parseError"),
305
- // resets the lexer, sets new input
306
- setInput: /* @__PURE__ */ g(function(y, d) {
307
- return this.yy = d || this.yy || {}, this._input = y, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
308
- first_line: 1,
309
- first_column: 0,
310
- last_line: 1,
311
- last_column: 0
312
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
313
- }, "setInput"),
314
- // consumes and returns one char from the input
315
- input: /* @__PURE__ */ g(function() {
316
- var y = this._input[0];
317
- this.yytext += y, this.yyleng++, this.offset++, this.match += y, this.matched += y;
318
- var d = y.match(/(?:\r\n?|\n).*/g);
319
- return d ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), y;
320
- }, "input"),
321
- // unshifts one char (or a string) into the input
322
- unput: /* @__PURE__ */ g(function(y) {
323
- var d = y.length, p = y.split(/(?:\r\n?|\n)/g);
324
- this._input = y + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - d), this.offset -= d;
325
- var w = this.match.split(/(?:\r\n?|\n)/g);
326
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), p.length - 1 && (this.yylineno -= p.length - 1);
327
- var v = this.yylloc.range;
328
- return this.yylloc = {
329
- first_line: this.yylloc.first_line,
330
- last_line: this.yylineno + 1,
331
- first_column: this.yylloc.first_column,
332
- last_column: p ? (p.length === w.length ? this.yylloc.first_column : 0) + w[w.length - p.length].length - p[0].length : this.yylloc.first_column - d
333
- }, this.options.ranges && (this.yylloc.range = [v[0], v[0] + this.yyleng - d]), this.yyleng = this.yytext.length, this;
334
- }, "unput"),
335
- // When called from action, caches matched text and appends it on next action
336
- more: /* @__PURE__ */ g(function() {
337
- return this._more = !0, this;
338
- }, "more"),
339
- // 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.
340
- reject: /* @__PURE__ */ g(function() {
341
- if (this.options.backtrack_lexer)
342
- this._backtrack = !0;
343
- else
344
- 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).
345
- ` + this.showPosition(), {
346
- text: "",
347
- token: null,
348
- line: this.yylineno
349
- });
350
- return this;
351
- }, "reject"),
352
- // retain first n characters of the match
353
- less: /* @__PURE__ */ g(function(y) {
354
- this.unput(this.match.slice(y));
355
- }, "less"),
356
- // displays already matched input, i.e. for error messages
357
- pastInput: /* @__PURE__ */ g(function() {
358
- var y = this.matched.substr(0, this.matched.length - this.match.length);
359
- return (y.length > 20 ? "..." : "") + y.substr(-20).replace(/\n/g, "");
360
- }, "pastInput"),
361
- // displays upcoming input, i.e. for error messages
362
- upcomingInput: /* @__PURE__ */ g(function() {
363
- var y = this.match;
364
- return y.length < 20 && (y += this._input.substr(0, 20 - y.length)), (y.substr(0, 20) + (y.length > 20 ? "..." : "")).replace(/\n/g, "");
365
- }, "upcomingInput"),
366
- // displays the character position where the lexing error occurred, i.e. for error messages
367
- showPosition: /* @__PURE__ */ g(function() {
368
- var y = this.pastInput(), d = new Array(y.length + 1).join("-");
369
- return y + this.upcomingInput() + `
370
- ` + d + "^";
371
- }, "showPosition"),
372
- // test the lexed token: return FALSE when not a match, otherwise return token
373
- test_match: /* @__PURE__ */ g(function(y, d) {
374
- var p, w, v;
375
- if (this.options.backtrack_lexer && (v = {
376
- yylineno: this.yylineno,
377
- yylloc: {
378
- first_line: this.yylloc.first_line,
379
- last_line: this.last_line,
380
- first_column: this.yylloc.first_column,
381
- last_column: this.yylloc.last_column
382
- },
383
- yytext: this.yytext,
384
- match: this.match,
385
- matches: this.matches,
386
- matched: this.matched,
387
- yyleng: this.yyleng,
388
- offset: this.offset,
389
- _more: this._more,
390
- _input: this._input,
391
- yy: this.yy,
392
- conditionStack: this.conditionStack.slice(0),
393
- done: this.done
394
- }, this.options.ranges && (v.yylloc.range = this.yylloc.range.slice(0))), w = y[0].match(/(?:\r\n?|\n).*/g), w && (this.yylineno += w.length), this.yylloc = {
395
- first_line: this.yylloc.last_line,
396
- last_line: this.yylineno + 1,
397
- first_column: this.yylloc.last_column,
398
- last_column: w ? w[w.length - 1].length - w[w.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + y[0].length
399
- }, this.yytext += y[0], this.match += y[0], this.matches = y, 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(y[0].length), this.matched += y[0], p = this.performAction.call(this, this.yy, this, d, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), p)
400
- return p;
401
- if (this._backtrack) {
402
- for (var c in v)
403
- this[c] = v[c];
404
- return !1;
405
- }
406
- return !1;
407
- }, "test_match"),
408
- // return next match in input
409
- next: /* @__PURE__ */ g(function() {
410
- if (this.done)
411
- return this.EOF;
412
- this._input || (this.done = !0);
413
- var y, d, p, w;
414
- this._more || (this.yytext = "", this.match = "");
415
- for (var v = this._currentRules(), c = 0; c < v.length; c++)
416
- if (p = this._input.match(this.rules[v[c]]), p && (!d || p[0].length > d[0].length)) {
417
- if (d = p, w = c, this.options.backtrack_lexer) {
418
- if (y = this.test_match(p, v[c]), y !== !1)
419
- return y;
420
- if (this._backtrack) {
421
- d = !1;
422
- continue;
423
- } else
424
- return !1;
425
- } else if (!this.options.flex)
426
- break;
427
- }
428
- return d ? (y = this.test_match(d, v[w]), y !== !1 ? y : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
429
- ` + this.showPosition(), {
430
- text: "",
431
- token: null,
432
- line: this.yylineno
433
- });
434
- }, "next"),
435
- // return next match that has a token
436
- lex: /* @__PURE__ */ g(function() {
437
- var d = this.next();
438
- return d || this.lex();
439
- }, "lex"),
440
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
441
- begin: /* @__PURE__ */ g(function(d) {
442
- this.conditionStack.push(d);
443
- }, "begin"),
444
- // pop the previously active lexer condition state off the condition stack
445
- popState: /* @__PURE__ */ g(function() {
446
- var d = this.conditionStack.length - 1;
447
- return d > 0 ? this.conditionStack.pop() : this.conditionStack[0];
448
- }, "popState"),
449
- // produce the lexer rule set which is active for the currently active lexer condition state
450
- _currentRules: /* @__PURE__ */ g(function() {
451
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
452
- }, "_currentRules"),
453
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
454
- topState: /* @__PURE__ */ g(function(d) {
455
- return d = this.conditionStack.length - 1 - Math.abs(d || 0), d >= 0 ? this.conditionStack[d] : "INITIAL";
456
- }, "topState"),
457
- // alias for begin(condition)
458
- pushState: /* @__PURE__ */ g(function(d) {
459
- this.begin(d);
460
- }, "pushState"),
461
- // return the number of states currently on the stack
462
- stateStackSize: /* @__PURE__ */ g(function() {
463
- return this.conditionStack.length;
464
- }, "stateStackSize"),
465
- options: {},
466
- performAction: /* @__PURE__ */ g(function(d, p, w, v) {
467
- switch (w) {
468
- case 0:
469
- return d.getLogger().debug("Found block-beta"), 10;
470
- case 1:
471
- return d.getLogger().debug("Found id-block"), 29;
472
- case 2:
473
- return d.getLogger().debug("Found block"), 10;
474
- case 3:
475
- d.getLogger().debug(".", p.yytext);
476
- break;
477
- case 4:
478
- d.getLogger().debug("_", p.yytext);
479
- break;
480
- case 5:
481
- return 5;
482
- case 6:
483
- return p.yytext = -1, 28;
484
- case 7:
485
- return p.yytext = p.yytext.replace(/columns\s+/, ""), d.getLogger().debug("COLUMNS (LEX)", p.yytext), 28;
486
- case 8:
487
- this.pushState("md_string");
488
- break;
489
- case 9:
490
- return "MD_STR";
491
- case 10:
492
- this.popState();
493
- break;
494
- case 11:
495
- this.pushState("string");
496
- break;
497
- case 12:
498
- d.getLogger().debug("LEX: POPPING STR:", p.yytext), this.popState();
499
- break;
500
- case 13:
501
- return d.getLogger().debug("LEX: STR end:", p.yytext), "STR";
502
- case 14:
503
- return p.yytext = p.yytext.replace(/space\:/, ""), d.getLogger().debug("SPACE NUM (LEX)", p.yytext), 21;
504
- case 15:
505
- return p.yytext = "1", d.getLogger().debug("COLUMNS (LEX)", p.yytext), 21;
506
- case 16:
507
- return 42;
508
- case 17:
509
- return "LINKSTYLE";
510
- case 18:
511
- return "INTERPOLATE";
512
- case 19:
513
- return this.pushState("CLASSDEF"), 39;
514
- case 20:
515
- return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
516
- case 21:
517
- return this.popState(), this.pushState("CLASSDEFID"), 40;
518
- case 22:
519
- return this.popState(), 41;
520
- case 23:
521
- return this.pushState("CLASS"), 43;
522
- case 24:
523
- return this.popState(), this.pushState("CLASS_STYLE"), 44;
524
- case 25:
525
- return this.popState(), 45;
526
- case 26:
527
- return this.pushState("STYLE_STMNT"), 46;
528
- case 27:
529
- return this.popState(), this.pushState("STYLE_DEFINITION"), 47;
530
- case 28:
531
- return this.popState(), 48;
532
- case 29:
533
- return this.pushState("acc_title"), "acc_title";
534
- case 30:
535
- return this.popState(), "acc_title_value";
536
- case 31:
537
- return this.pushState("acc_descr"), "acc_descr";
538
- case 32:
539
- return this.popState(), "acc_descr_value";
540
- case 33:
541
- this.pushState("acc_descr_multiline");
542
- break;
543
- case 34:
544
- this.popState();
545
- break;
546
- case 35:
547
- return "acc_descr_multiline_value";
548
- case 36:
549
- return 30;
550
- case 37:
551
- return this.popState(), d.getLogger().debug("Lex: (("), "NODE_DEND";
552
- case 38:
553
- return this.popState(), d.getLogger().debug("Lex: (("), "NODE_DEND";
554
- case 39:
555
- return this.popState(), d.getLogger().debug("Lex: ))"), "NODE_DEND";
556
- case 40:
557
- return this.popState(), d.getLogger().debug("Lex: (("), "NODE_DEND";
558
- case 41:
559
- return this.popState(), d.getLogger().debug("Lex: (("), "NODE_DEND";
560
- case 42:
561
- return this.popState(), d.getLogger().debug("Lex: (-"), "NODE_DEND";
562
- case 43:
563
- return this.popState(), d.getLogger().debug("Lex: -)"), "NODE_DEND";
564
- case 44:
565
- return this.popState(), d.getLogger().debug("Lex: (("), "NODE_DEND";
566
- case 45:
567
- return this.popState(), d.getLogger().debug("Lex: ]]"), "NODE_DEND";
568
- case 46:
569
- return this.popState(), d.getLogger().debug("Lex: ("), "NODE_DEND";
570
- case 47:
571
- return this.popState(), d.getLogger().debug("Lex: ])"), "NODE_DEND";
572
- case 48:
573
- return this.popState(), d.getLogger().debug("Lex: /]"), "NODE_DEND";
574
- case 49:
575
- return this.popState(), d.getLogger().debug("Lex: /]"), "NODE_DEND";
576
- case 50:
577
- return this.popState(), d.getLogger().debug("Lex: )]"), "NODE_DEND";
578
- case 51:
579
- return this.popState(), d.getLogger().debug("Lex: )"), "NODE_DEND";
580
- case 52:
581
- return this.popState(), d.getLogger().debug("Lex: ]>"), "NODE_DEND";
582
- case 53:
583
- return this.popState(), d.getLogger().debug("Lex: ]"), "NODE_DEND";
584
- case 54:
585
- return d.getLogger().debug("Lexa: -)"), this.pushState("NODE"), 35;
586
- case 55:
587
- return d.getLogger().debug("Lexa: (-"), this.pushState("NODE"), 35;
588
- case 56:
589
- return d.getLogger().debug("Lexa: ))"), this.pushState("NODE"), 35;
590
- case 57:
591
- return d.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
592
- case 58:
593
- return d.getLogger().debug("Lex: ((("), this.pushState("NODE"), 35;
594
- case 59:
595
- return d.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
596
- case 60:
597
- return d.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
598
- case 61:
599
- return d.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
600
- case 62:
601
- return d.getLogger().debug("Lexc: >"), this.pushState("NODE"), 35;
602
- case 63:
603
- return d.getLogger().debug("Lexa: (["), this.pushState("NODE"), 35;
604
- case 64:
605
- return d.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
606
- case 65:
607
- return this.pushState("NODE"), 35;
608
- case 66:
609
- return this.pushState("NODE"), 35;
610
- case 67:
611
- return this.pushState("NODE"), 35;
612
- case 68:
613
- return this.pushState("NODE"), 35;
614
- case 69:
615
- return this.pushState("NODE"), 35;
616
- case 70:
617
- return this.pushState("NODE"), 35;
618
- case 71:
619
- return this.pushState("NODE"), 35;
620
- case 72:
621
- return d.getLogger().debug("Lexa: ["), this.pushState("NODE"), 35;
622
- case 73:
623
- return this.pushState("BLOCK_ARROW"), d.getLogger().debug("LEX ARR START"), 37;
624
- case 74:
625
- return d.getLogger().debug("Lex: NODE_ID", p.yytext), 31;
626
- case 75:
627
- return d.getLogger().debug("Lex: EOF", p.yytext), 8;
628
- case 76:
629
- this.pushState("md_string");
630
- break;
631
- case 77:
632
- this.pushState("md_string");
633
- break;
634
- case 78:
635
- return "NODE_DESCR";
636
- case 79:
637
- this.popState();
638
- break;
639
- case 80:
640
- d.getLogger().debug("Lex: Starting string"), this.pushState("string");
641
- break;
642
- case 81:
643
- d.getLogger().debug("LEX ARR: Starting string"), this.pushState("string");
644
- break;
645
- case 82:
646
- return d.getLogger().debug("LEX: NODE_DESCR:", p.yytext), "NODE_DESCR";
647
- case 83:
648
- d.getLogger().debug("LEX POPPING"), this.popState();
649
- break;
650
- case 84:
651
- d.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR");
652
- break;
653
- case 85:
654
- return p.yytext = p.yytext.replace(/^,\s*/, ""), d.getLogger().debug("Lex (right): dir:", p.yytext), "DIR";
655
- case 86:
656
- return p.yytext = p.yytext.replace(/^,\s*/, ""), d.getLogger().debug("Lex (left):", p.yytext), "DIR";
657
- case 87:
658
- return p.yytext = p.yytext.replace(/^,\s*/, ""), d.getLogger().debug("Lex (x):", p.yytext), "DIR";
659
- case 88:
660
- return p.yytext = p.yytext.replace(/^,\s*/, ""), d.getLogger().debug("Lex (y):", p.yytext), "DIR";
661
- case 89:
662
- return p.yytext = p.yytext.replace(/^,\s*/, ""), d.getLogger().debug("Lex (up):", p.yytext), "DIR";
663
- case 90:
664
- return p.yytext = p.yytext.replace(/^,\s*/, ""), d.getLogger().debug("Lex (down):", p.yytext), "DIR";
665
- case 91:
666
- return p.yytext = "]>", d.getLogger().debug("Lex (ARROW_DIR end):", p.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END";
667
- case 92:
668
- return d.getLogger().debug("Lex: LINK", "#" + p.yytext + "#"), 15;
669
- case 93:
670
- return d.getLogger().debug("Lex: LINK", p.yytext), 15;
671
- case 94:
672
- return d.getLogger().debug("Lex: LINK", p.yytext), 15;
673
- case 95:
674
- return d.getLogger().debug("Lex: LINK", p.yytext), 15;
675
- case 96:
676
- return d.getLogger().debug("Lex: START_LINK", p.yytext), this.pushState("LLABEL"), 16;
677
- case 97:
678
- return d.getLogger().debug("Lex: START_LINK", p.yytext), this.pushState("LLABEL"), 16;
679
- case 98:
680
- return d.getLogger().debug("Lex: START_LINK", p.yytext), this.pushState("LLABEL"), 16;
681
- case 99:
682
- this.pushState("md_string");
683
- break;
684
- case 100:
685
- return d.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL";
686
- case 101:
687
- return this.popState(), d.getLogger().debug("Lex: LINK", "#" + p.yytext + "#"), 15;
688
- case 102:
689
- return this.popState(), d.getLogger().debug("Lex: LINK", p.yytext), 15;
690
- case 103:
691
- return this.popState(), d.getLogger().debug("Lex: LINK", p.yytext), 15;
692
- case 104:
693
- return d.getLogger().debug("Lex: COLON", p.yytext), p.yytext = p.yytext.slice(1), 27;
694
- }
695
- }, "anonymous"),
696
- 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+)/],
697
- 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 } }
698
- };
699
- return D;
700
- }();
701
- E.lexer = N;
702
- function T() {
703
- this.yy = {};
704
- }
705
- return g(T, "Parser"), T.prototype = E, E.Parser = T, new T();
706
- }();
707
- St.parser = St;
708
- var la = St, G = /* @__PURE__ */ new Map(), Dt = [], vt = /* @__PURE__ */ new Map(), Pt = "color", Wt = "fill", ca = "bgFill", se = ",", oa = z(), dt = /* @__PURE__ */ new Map(), ha = /* @__PURE__ */ g((e) => Ve.sanitizeText(e, oa), "sanitizeText"), ga = /* @__PURE__ */ g(function(e, t = "") {
709
- let a = dt.get(e);
710
- a || (a = { id: e, styles: [], textStyles: [] }, dt.set(e, a)), t != null && t.split(se).forEach((i) => {
711
- const l = i.replace(/([^;]*);/, "$1").trim();
712
- if (RegExp(Pt).exec(i)) {
713
- const r = l.replace(Wt, ca).replace(Pt, Wt);
714
- a.textStyles.push(r);
715
- }
716
- a.styles.push(l);
717
- });
718
- }, "addStyleClass"), da = /* @__PURE__ */ g(function(e, t = "") {
719
- const a = G.get(e);
720
- t != null && (a.styles = t.split(se));
721
- }, "addStyle2Node"), ua = /* @__PURE__ */ g(function(e, t) {
722
- e.split(",").forEach(function(a) {
723
- let i = G.get(a);
724
- if (i === void 0) {
725
- const l = a.trim();
726
- i = { id: l, type: "na", children: [] }, G.set(l, i);
727
- }
728
- i.classes || (i.classes = []), i.classes.push(t);
729
- });
730
- }, "setCssClass"), ie = /* @__PURE__ */ g((e, t) => {
731
- const a = e.flat(), i = [], l = a.find((r) => (r == null ? void 0 : r.type) === "column-setting"), s = (l == null ? void 0 : l.columns) ?? -1;
732
- for (const r of a) {
733
- if (typeof s == "number" && s > 0 && r.type !== "column-setting" && typeof r.widthInColumns == "number" && r.widthInColumns > s && L.warn(
734
- `Block ${r.id} width ${r.widthInColumns} exceeds configured column width ${s}`
735
- ), r.label && (r.label = ha(r.label)), r.type === "classDef") {
736
- ga(r.id, r.css);
737
- continue;
738
- }
739
- if (r.type === "applyClass") {
740
- ua(r.id, (r == null ? void 0 : r.styleClass) ?? "");
741
- continue;
742
- }
743
- if (r.type === "applyStyles") {
744
- r != null && r.stylesStr && da(r.id, r == null ? void 0 : r.stylesStr);
745
- continue;
746
- }
747
- if (r.type === "column-setting")
748
- t.columns = r.columns ?? -1;
749
- else if (r.type === "edge") {
750
- const n = (vt.get(r.id) ?? 0) + 1;
751
- vt.set(r.id, n), r.id = n + "-" + r.id, Dt.push(r);
752
- } else {
753
- r.label || (r.type === "composite" ? r.label = "" : r.label = r.id);
754
- const n = G.get(r.id);
755
- if (n === void 0 ? G.set(r.id, r) : (r.type !== "na" && (n.type = r.type), r.label !== r.id && (n.label = r.label)), r.children && ie(r.children, r), r.type === "space") {
756
- const o = r.width ?? 1;
757
- for (let u = 0; u < o; u++) {
758
- const h = na(r);
759
- h.id = h.id + "-" + u, G.set(h.id, h), i.push(h);
760
- }
761
- } else n === void 0 && i.push(r);
762
- }
763
- }
764
- t.children = i;
765
- }, "populateBlockDatabase"), Nt = [], st = { id: "root", type: "composite", children: [], columns: -1 }, pa = /* @__PURE__ */ g(() => {
766
- L.debug("Clear called"), Ue(), st = { id: "root", type: "composite", children: [], columns: -1 }, G = /* @__PURE__ */ new Map([["root", st]]), Nt = [], dt = /* @__PURE__ */ new Map(), Dt = [], vt = /* @__PURE__ */ new Map();
767
- }, "clear");
768
- function ne(e) {
769
- switch (L.debug("typeStr2Type", e), e) {
770
- case "[]":
771
- return "square";
772
- case "()":
773
- return L.debug("we have a round"), "round";
774
- case "(())":
775
- return "circle";
776
- case ">]":
777
- return "rect_left_inv_arrow";
778
- case "{}":
779
- return "diamond";
780
- case "{{}}":
781
- return "hexagon";
782
- case "([])":
783
- return "stadium";
784
- case "[[]]":
785
- return "subroutine";
786
- case "[()]":
787
- return "cylinder";
788
- case "((()))":
789
- return "doublecircle";
790
- case "[//]":
791
- return "lean_right";
792
- case "[\\\\]":
793
- return "lean_left";
794
- case "[/\\]":
795
- return "trapezoid";
796
- case "[\\/]":
797
- return "inv_trapezoid";
798
- case "<[]>":
799
- return "block_arrow";
800
- default:
801
- return "na";
802
- }
803
- }
804
- g(ne, "typeStr2Type");
805
- function le(e) {
806
- switch (L.debug("typeStr2Type", e), e) {
807
- case "==":
808
- return "thick";
809
- default:
810
- return "normal";
811
- }
812
- }
813
- g(le, "edgeTypeStr2Type");
814
- function ce(e) {
815
- switch (e.replace(/^[\s-]+|[\s-]+$/g, "")) {
816
- case "x":
817
- return "arrow_cross";
818
- case "o":
819
- return "arrow_circle";
820
- case ">":
821
- return "arrow_point";
822
- default:
823
- return "";
824
- }
825
- }
826
- g(ce, "edgeStrToEdgeData");
827
- var Yt = 0, fa = /* @__PURE__ */ g(() => (Yt++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + Yt), "generateId"), ya = /* @__PURE__ */ g((e) => {
828
- st.children = e, ie(e, st), Nt = st.children;
829
- }, "setHierarchy"), xa = /* @__PURE__ */ g((e) => {
830
- const t = G.get(e);
831
- return t ? t.columns ? t.columns : t.children ? t.children.length : -1 : -1;
832
- }, "getColumns"), ba = /* @__PURE__ */ g(() => [...G.values()], "getBlocksFlat"), wa = /* @__PURE__ */ g(() => Nt || [], "getBlocks"), ma = /* @__PURE__ */ g(() => Dt, "getEdges"), La = /* @__PURE__ */ g((e) => G.get(e), "getBlock"), Sa = /* @__PURE__ */ g((e) => {
833
- G.set(e.id, e);
834
- }, "setBlock"), va = /* @__PURE__ */ g(() => L, "getLogger"), Ea = /* @__PURE__ */ g(function() {
835
- return dt;
836
- }, "getClasses"), _a = {
837
- getConfig: /* @__PURE__ */ g(() => it().block, "getConfig"),
838
- typeStr2Type: ne,
839
- edgeTypeStr2Type: le,
840
- edgeStrToEdgeData: ce,
841
- getLogger: va,
842
- getBlocksFlat: ba,
843
- getBlocks: wa,
844
- getEdges: ma,
845
- setHierarchy: ya,
846
- getBlock: La,
847
- setBlock: Sa,
848
- getColumns: xa,
849
- getClasses: Ea,
850
- clear: pa,
851
- generateId: fa
852
- }, ka = _a, ct = /* @__PURE__ */ g((e, t) => {
853
- const a = Qe, i = a(e, "r"), l = a(e, "g"), s = a(e, "b");
854
- return He(i, l, s, t);
855
- }, "fade"), Ta = /* @__PURE__ */ g((e) => `.label {
856
- font-family: ${e.fontFamily};
857
- color: ${e.nodeTextColor || e.textColor};
858
- }
859
- .cluster-label text {
860
- fill: ${e.titleColor};
861
- }
862
- .cluster-label span,p {
863
- color: ${e.titleColor};
864
- }
865
-
866
-
867
-
868
- .label text,span,p {
869
- fill: ${e.nodeTextColor || e.textColor};
870
- color: ${e.nodeTextColor || e.textColor};
871
- }
872
-
873
- .node rect,
874
- .node circle,
875
- .node ellipse,
876
- .node polygon,
877
- .node path {
878
- fill: ${e.mainBkg};
879
- stroke: ${e.nodeBorder};
880
- stroke-width: 1px;
881
- }
882
- .flowchart-label text {
883
- text-anchor: middle;
884
- }
885
- // .flowchart-label .text-outer-tspan {
886
- // text-anchor: middle;
887
- // }
888
- // .flowchart-label .text-inner-tspan {
889
- // text-anchor: start;
890
- // }
891
-
892
- .node .label {
893
- text-align: center;
894
- }
895
- .node.clickable {
896
- cursor: pointer;
897
- }
898
-
899
- .arrowheadPath {
900
- fill: ${e.arrowheadColor};
901
- }
902
-
903
- .edgePath .path {
904
- stroke: ${e.lineColor};
905
- stroke-width: 2.0px;
906
- }
907
-
908
- .flowchart-link {
909
- stroke: ${e.lineColor};
910
- fill: none;
911
- }
912
-
913
- .edgeLabel {
914
- background-color: ${e.edgeLabelBackground};
915
- rect {
916
- opacity: 0.5;
917
- background-color: ${e.edgeLabelBackground};
918
- fill: ${e.edgeLabelBackground};
919
- }
920
- text-align: center;
921
- }
922
-
923
- /* For html labels only */
924
- .labelBkg {
925
- background-color: ${ct(e.edgeLabelBackground, 0.5)};
926
- // background-color:
927
- }
928
-
929
- .node .cluster {
930
- // fill: ${ct(e.mainBkg, 0.5)};
931
- fill: ${ct(e.clusterBkg, 0.5)};
932
- stroke: ${ct(e.clusterBorder, 0.2)};
933
- box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
934
- stroke-width: 1px;
935
- }
936
-
937
- .cluster text {
938
- fill: ${e.titleColor};
939
- }
940
-
941
- .cluster span,p {
942
- color: ${e.titleColor};
943
- }
944
- /* .cluster div {
945
- color: ${e.titleColor};
946
- } */
947
-
948
- div.mermaidTooltip {
949
- position: absolute;
950
- text-align: center;
951
- max-width: 200px;
952
- padding: 2px;
953
- font-family: ${e.fontFamily};
954
- font-size: 12px;
955
- background: ${e.tertiaryColor};
956
- border: 1px solid ${e.border2};
957
- border-radius: 2px;
958
- pointer-events: none;
959
- z-index: 100;
960
- }
961
-
962
- .flowchartTitleText {
963
- text-anchor: middle;
964
- font-size: 18px;
965
- fill: ${e.textColor};
966
- }
967
- ${ke()}
968
- `, "getStyles"), Da = Ta, Na = /* @__PURE__ */ g((e, t, a, i) => {
969
- t.forEach((l) => {
970
- Fa[l](e, a, i);
971
- });
972
- }, "insertMarkers"), Ca = /* @__PURE__ */ g((e, t, a) => {
973
- L.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");
974
- }, "extension"), Ia = /* @__PURE__ */ g((e, t, a) => {
975
- 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");
976
- }, "composition"), Ba = /* @__PURE__ */ g((e, t, a) => {
977
- 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");
978
- }, "aggregation"), Aa = /* @__PURE__ */ g((e, t, a) => {
979
- 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");
980
- }, "dependency"), Oa = /* @__PURE__ */ g((e, t, a) => {
981
- 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);
982
- }, "lollipop"), Ra = /* @__PURE__ */ g((e, t, a) => {
983
- 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");
984
- }, "point"), za = /* @__PURE__ */ g((e, t, a) => {
985
- 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");
986
- }, "circle"), Ma = /* @__PURE__ */ g((e, t, a) => {
987
- 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");
988
- }, "cross"), ja = /* @__PURE__ */ g((e, t, a) => {
989
- 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");
990
- }, "barb"), Fa = {
991
- extension: Ca,
992
- composition: Ia,
993
- aggregation: Ba,
994
- dependency: Aa,
995
- lollipop: Oa,
996
- point: Ra,
997
- circle: za,
998
- cross: Ma,
999
- barb: ja
1000
- }, Pa = Na, $t, Zt, A = ((Zt = ($t = z()) == null ? void 0 : $t.block) == null ? void 0 : Zt.padding) ?? 8;
1001
- function oe(e, t) {
1002
- if (e === 0 || !Number.isInteger(e))
1003
- throw new Error("Columns must be an integer !== 0.");
1004
- if (t < 0 || !Number.isInteger(t))
1005
- throw new Error("Position must be a non-negative integer." + t);
1006
- if (e < 0)
1007
- return { px: t, py: 0 };
1008
- if (e === 1)
1009
- return { px: 0, py: t };
1010
- const a = t % e, i = Math.floor(t / e);
1011
- return { px: a, py: i };
1012
- }
1013
- g(oe, "calculateBlockPosition");
1014
- var Wa = /* @__PURE__ */ g((e) => {
1015
- let t = 0, a = 0;
1016
- for (const i of e.children) {
1017
- const { width: l, height: s, x: r, y: n } = i.size ?? { width: 0, height: 0, x: 0, y: 0 };
1018
- L.debug(
1019
- "getMaxChildSize abc95 child:",
1020
- i.id,
1021
- "width:",
1022
- l,
1023
- "height:",
1024
- s,
1025
- "x:",
1026
- r,
1027
- "y:",
1028
- n,
1029
- i.type
1030
- ), i.type !== "space" && (l > t && (t = l / (e.widthInColumns ?? 1)), s > a && (a = s));
1031
- }
1032
- return { width: t, height: a };
1033
- }, "getMaxChildSize");
1034
- function ut(e, t, a = 0, i = 0) {
1035
- var r, n, o, u, h, x, b, m, S, k, E;
1036
- L.debug(
1037
- "setBlockSizes abc95 (start)",
1038
- e.id,
1039
- (r = e == null ? void 0 : e.size) == null ? void 0 : r.x,
1040
- "block width =",
1041
- e == null ? void 0 : e.size,
1042
- "siblingWidth",
1043
- a
1044
- ), (n = e == null ? void 0 : e.size) != null && n.width || (e.size = {
1045
- width: a,
1046
- height: i,
1047
- x: 0,
1048
- y: 0
1049
- });
1050
- let l = 0, s = 0;
1051
- if (((o = e.children) == null ? void 0 : o.length) > 0) {
1052
- for (const v of e.children)
1053
- ut(v, t);
1054
- const N = Wa(e);
1055
- l = N.width, s = N.height, L.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", l, s);
1056
- for (const v of e.children)
1057
- v.size && (L.debug(
1058
- `abc95 Setting size of children of ${e.id} id=${v.id} ${l} ${s} ${JSON.stringify(v.size)}`
1059
- ), v.size.width = l * (v.widthInColumns ?? 1) + A * ((v.widthInColumns ?? 1) - 1), v.size.height = s, v.size.x = 0, v.size.y = 0, L.debug(
1060
- `abc95 updating size of ${e.id} children child:${v.id} maxWidth:${l} maxHeight:${s}`
1061
- ));
1062
- for (const v of e.children)
1063
- ut(v, t, l, s);
1064
- const T = e.columns ?? -1;
1065
- let D = 0;
1066
- for (const v of e.children)
1067
- D += v.widthInColumns ?? 1;
1068
- let y = e.children.length;
1069
- T > 0 && T < D && (y = T);
1070
- const d = Math.ceil(D / y);
1071
- let p = y * (l + A) + A, w = d * (s + A) + A;
1072
- if (p < a) {
1073
- L.debug(
1074
- `Detected to small sibling: abc95 ${e.id} siblingWidth ${a} siblingHeight ${i} width ${p}`
1075
- ), p = a, w = i;
1076
- const v = (a - y * A - A) / y, c = (i - d * A - A) / d;
1077
- L.debug("Size indata abc88", e.id, "childWidth", v, "maxWidth", l), L.debug("Size indata abc88", e.id, "childHeight", c, "maxHeight", s), L.debug("Size indata abc88 xSize", y, "padding", A);
1078
- for (const _ of e.children)
1079
- _.size && (_.size.width = v, _.size.height = c, _.size.x = 0, _.size.y = 0);
1080
- }
1081
- if (L.debug(
1082
- `abc95 (finale calc) ${e.id} xSize ${y} ySize ${d} columns ${T}${e.children.length} width=${Math.max(p, ((u = e.size) == null ? void 0 : u.width) || 0)}`
1083
- ), p < (((h = e == null ? void 0 : e.size) == null ? void 0 : h.width) || 0)) {
1084
- p = ((x = e == null ? void 0 : e.size) == null ? void 0 : x.width) || 0;
1085
- const v = T > 0 ? Math.min(e.children.length, T) : e.children.length;
1086
- if (v > 0) {
1087
- const c = (p - v * A - A) / v;
1088
- L.debug("abc95 (growing to fit) width", e.id, p, (b = e.size) == null ? void 0 : b.width, c);
1089
- for (const _ of e.children)
1090
- _.size && (_.size.width = c);
1091
- }
1092
- }
1093
- e.size = {
1094
- width: p,
1095
- height: w,
1096
- x: 0,
1097
- y: 0
1098
- };
1099
- }
1100
- L.debug(
1101
- "setBlockSizes abc94 (done)",
1102
- e.id,
1103
- (m = e == null ? void 0 : e.size) == null ? void 0 : m.x,
1104
- (S = e == null ? void 0 : e.size) == null ? void 0 : S.width,
1105
- (k = e == null ? void 0 : e.size) == null ? void 0 : k.y,
1106
- (E = e == null ? void 0 : e.size) == null ? void 0 : E.height
1107
- );
1108
- }
1109
- g(ut, "setBlockSizes");
1110
- function Ct(e, t) {
1111
- var i, l, s, r, n, o, u, h, x, b, m, S, k, E, N, T, D;
1112
- L.debug(
1113
- `abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(i = e == null ? void 0 : e.size) == null ? void 0 : i.x} y: ${(l = e == null ? void 0 : e.size) == null ? void 0 : l.y} width: ${(s = e == null ? void 0 : e.size) == null ? void 0 : s.width}`
1114
- );
1115
- const a = e.columns ?? -1;
1116
- if (L.debug("layoutBlocks columns abc95", e.id, "=>", a, e), e.children && // find max width of children
1117
- e.children.length > 0) {
1118
- const y = ((n = (r = e == null ? void 0 : e.children[0]) == null ? void 0 : r.size) == null ? void 0 : n.width) ?? 0, d = e.children.length * y + (e.children.length - 1) * A;
1119
- L.debug("widthOfChildren 88", d, "posX");
1120
- let p = 0;
1121
- L.debug("abc91 block?.size?.x", e.id, (o = e == null ? void 0 : e.size) == null ? void 0 : o.x);
1122
- let w = (u = e == null ? void 0 : e.size) != null && u.x ? ((h = e == null ? void 0 : e.size) == null ? void 0 : h.x) + (-((x = e == null ? void 0 : e.size) == null ? void 0 : x.width) / 2 || 0) : -A, v = 0;
1123
- for (const c of e.children) {
1124
- const _ = e;
1125
- if (!c.size)
1126
- continue;
1127
- const { width: f, height: M } = c.size, { px: O, py: K } = oe(a, p);
1128
- if (K != v && (v = K, w = (b = e == null ? void 0 : e.size) != null && b.x ? ((m = e == null ? void 0 : e.size) == null ? void 0 : m.x) + (-((S = e == null ? void 0 : e.size) == null ? void 0 : S.width) / 2 || 0) : -A, L.debug("New row in layout for block", e.id, " and child ", c.id, v)), L.debug(
1129
- `abc89 layout blocks (child) id: ${c.id} Pos: ${p} (px, py) ${O},${K} (${(k = _ == null ? void 0 : _.size) == null ? void 0 : k.x},${(E = _ == null ? void 0 : _.size) == null ? void 0 : E.y}) parent: ${_.id} width: ${f}${A}`
1130
- ), _.size) {
1131
- const J = f / 2;
1132
- c.size.x = w + A + J, L.debug(
1133
- `abc91 layout blocks (calc) px, pyid:${c.id} startingPos=X${w} new startingPosX${c.size.x} ${J} padding=${A} width=${f} halfWidth=${J} => x:${c.size.x} y:${c.size.y} ${c.widthInColumns} (width * (child?.w || 1)) / 2 ${f * ((c == null ? void 0 : c.widthInColumns) ?? 1) / 2}`
1134
- ), w = c.size.x + J, c.size.y = _.size.y - _.size.height / 2 + K * (M + A) + M / 2 + A, L.debug(
1135
- `abc88 layout blocks (calc) px, pyid:${c.id}startingPosX${w}${A}${J}=>x:${c.size.x}y:${c.size.y}${c.widthInColumns}(width * (child?.w || 1)) / 2${f * ((c == null ? void 0 : c.widthInColumns) ?? 1) / 2}`
1136
- );
1137
- }
1138
- c.children && Ct(c);
1139
- let W = (c == null ? void 0 : c.widthInColumns) ?? 1;
1140
- a > 0 && (W = Math.min(W, a - p % a)), p += W, L.debug("abc88 columnsPos", c, p);
1141
- }
1142
- }
1143
- L.debug(
1144
- `layout blocks (<==layoutBlocks) ${e.id} x: ${(N = e == null ? void 0 : e.size) == null ? void 0 : N.x} y: ${(T = e == null ? void 0 : e.size) == null ? void 0 : T.y} width: ${(D = e == null ? void 0 : e.size) == null ? void 0 : D.width}`
1145
- );
1146
- }
1147
- g(Ct, "layoutBlocks");
1148
- function It(e, { minX: t, minY: a, maxX: i, maxY: l } = { minX: 0, minY: 0, maxX: 0, maxY: 0 }) {
1149
- if (e.size && e.id !== "root") {
1150
- const { x: s, y: r, width: n, height: o } = e.size;
1151
- s - n / 2 < t && (t = s - n / 2), r - o / 2 < a && (a = r - o / 2), s + n / 2 > i && (i = s + n / 2), r + o / 2 > l && (l = r + o / 2);
1152
- }
1153
- if (e.children)
1154
- for (const s of e.children)
1155
- ({ minX: t, minY: a, maxX: i, maxY: l } = It(s, { minX: t, minY: a, maxX: i, maxY: l }));
1156
- return { minX: t, minY: a, maxX: i, maxY: l };
1157
- }
1158
- g(It, "findBounds");
1159
- function he(e) {
1160
- const t = e.getBlock("root");
1161
- if (!t)
1162
- return;
1163
- ut(t, e, 0, 0), Ct(t), L.debug("getBlocks", JSON.stringify(t, null, 2));
1164
- const { minX: a, minY: i, maxX: l, maxY: s } = It(t), r = s - i, n = l - a;
1165
- return { x: a, y: i, width: n, height: r };
1166
- }
1167
- g(he, "layout");
1168
- function Et(e, t) {
1169
- t && e.attr("style", t);
1170
- }
1171
- g(Et, "applyStyle");
1172
- function ge(e, t) {
1173
- const a = R(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject")), i = a.append("xhtml:div"), l = e.label, s = e.isNode ? "nodeLabel" : "edgeLabel", r = i.append("span");
1174
- return r.html(mt(l, t)), Et(r, e.labelStyle), r.attr("class", s), Et(i, e.labelStyle), i.style("display", "inline-block"), i.style("white-space", "nowrap"), i.attr("xmlns", "http://www.w3.org/1999/xhtml"), a.node();
1175
- }
1176
- g(ge, "addHtmlLabel");
1177
- var Ya = /* @__PURE__ */ g(async (e, t, a, i) => {
1178
- let l = e || "";
1179
- typeof l == "object" && (l = l[0]);
1180
- const s = z();
1181
- if (Z(s.flowchart.htmlLabels)) {
1182
- l = l.replace(/\\n|\n/g, "<br />"), L.debug("vertexText" + l);
1183
- const r = await Xe(Lt(l)), n = {
1184
- isNode: i,
1185
- label: r,
1186
- labelStyle: t.replace("fill:", "color:")
1187
- };
1188
- return ge(n, s);
1189
- } else {
1190
- const r = document.createElementNS("http://www.w3.org/2000/svg", "text");
1191
- r.setAttribute("style", t.replace("color:", "fill:"));
1192
- let n = [];
1193
- typeof l == "string" ? n = l.split(/\\n|\n|<br\s*\/?>/gi) : Array.isArray(l) ? n = l : n = [];
1194
- for (const o of n) {
1195
- const u = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
1196
- u.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), u.setAttribute("dy", "1em"), u.setAttribute("x", "0"), a ? u.setAttribute("class", "title-row") : u.setAttribute("class", "row"), u.textContent = o.trim(), r.appendChild(u);
1197
- }
1198
- return r;
1199
- }
1200
- }, "createLabel"), V = Ya, Ua = /* @__PURE__ */ g((e, t, a, i, l) => {
1201
- t.arrowTypeStart && Ut(e, "start", t.arrowTypeStart, a, i, l), t.arrowTypeEnd && Ut(e, "end", t.arrowTypeEnd, a, i, l);
1202
- }, "addEdgeMarkers"), Ha = {
1203
- arrow_cross: "cross",
1204
- arrow_point: "point",
1205
- arrow_barb: "barb",
1206
- arrow_circle: "circle",
1207
- aggregation: "aggregation",
1208
- extension: "extension",
1209
- composition: "composition",
1210
- dependency: "dependency",
1211
- lollipop: "lollipop"
1212
- }, Ut = /* @__PURE__ */ g((e, t, a, i, l, s) => {
1213
- const r = Ha[a];
1214
- if (!r) {
1215
- L.warn(`Unknown arrow type: ${a}`);
1216
- return;
1217
- }
1218
- const n = t === "start" ? "Start" : "End";
1219
- e.attr(`marker-${t}`, `url(${i}#${l}_${s}-${r}${n})`);
1220
- }, "addEdgeMarker"), _t = {}, P = {}, Ka = /* @__PURE__ */ g(async (e, t) => {
1221
- const a = z(), i = Z(a.flowchart.htmlLabels), l = t.labelType === "markdown" ? te(
1222
- e,
1223
- t.label,
1224
- {
1225
- style: t.labelStyle,
1226
- useHtmlLabels: i,
1227
- addSvgBackground: !0
1228
- },
1229
- a
1230
- ) : await V(t.label, t.labelStyle), s = e.insert("g").attr("class", "edgeLabel"), r = s.insert("g").attr("class", "label");
1231
- r.node().appendChild(l);
1232
- let n = l.getBBox();
1233
- if (i) {
1234
- const u = l.children[0], h = R(l);
1235
- n = u.getBoundingClientRect(), h.attr("width", n.width), h.attr("height", n.height);
1236
- }
1237
- r.attr("transform", "translate(" + -n.width / 2 + ", " + -n.height / 2 + ")"), _t[t.id] = s, t.width = n.width, t.height = n.height;
1238
- let o;
1239
- if (t.startLabelLeft) {
1240
- const u = await V(t.startLabelLeft, t.labelStyle), h = e.insert("g").attr("class", "edgeTerminals"), x = h.insert("g").attr("class", "inner");
1241
- o = x.node().appendChild(u);
1242
- const b = u.getBBox();
1243
- x.attr("transform", "translate(" + -b.width / 2 + ", " + -b.height / 2 + ")"), P[t.id] || (P[t.id] = {}), P[t.id].startLeft = h, at(o, t.startLabelLeft);
1244
- }
1245
- if (t.startLabelRight) {
1246
- const u = await V(t.startLabelRight, t.labelStyle), h = e.insert("g").attr("class", "edgeTerminals"), x = h.insert("g").attr("class", "inner");
1247
- o = h.node().appendChild(u), x.node().appendChild(u);
1248
- const b = u.getBBox();
1249
- x.attr("transform", "translate(" + -b.width / 2 + ", " + -b.height / 2 + ")"), P[t.id] || (P[t.id] = {}), P[t.id].startRight = h, at(o, t.startLabelRight);
1250
- }
1251
- if (t.endLabelLeft) {
1252
- const u = await V(t.endLabelLeft, t.labelStyle), h = e.insert("g").attr("class", "edgeTerminals"), x = h.insert("g").attr("class", "inner");
1253
- o = x.node().appendChild(u);
1254
- const b = u.getBBox();
1255
- x.attr("transform", "translate(" + -b.width / 2 + ", " + -b.height / 2 + ")"), h.node().appendChild(u), P[t.id] || (P[t.id] = {}), P[t.id].endLeft = h, at(o, t.endLabelLeft);
1256
- }
1257
- if (t.endLabelRight) {
1258
- const u = await V(t.endLabelRight, t.labelStyle), h = e.insert("g").attr("class", "edgeTerminals"), x = h.insert("g").attr("class", "inner");
1259
- o = x.node().appendChild(u);
1260
- const b = u.getBBox();
1261
- x.attr("transform", "translate(" + -b.width / 2 + ", " + -b.height / 2 + ")"), h.node().appendChild(u), P[t.id] || (P[t.id] = {}), P[t.id].endRight = h, at(o, t.endLabelRight);
1262
- }
1263
- return l;
1264
- }, "insertEdgeLabel");
1265
- function at(e, t) {
1266
- z().flowchart.htmlLabels && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
1267
- }
1268
- g(at, "setTerminalWidth");
1269
- var Xa = /* @__PURE__ */ g((e, t) => {
1270
- L.debug("Moving label abc88 ", e.id, e.label, _t[e.id], t);
1271
- let a = t.updatedPath ? t.updatedPath : t.originalPath;
1272
- const i = z(), { subGraphTitleTotalMargin: l } = je(i);
1273
- if (e.label) {
1274
- const s = _t[e.id];
1275
- let r = e.x, n = e.y;
1276
- if (a) {
1277
- const o = rt.calcLabelPosition(a);
1278
- L.debug(
1279
- "Moving label " + e.label + " from (",
1280
- r,
1281
- ",",
1282
- n,
1283
- ") to (",
1284
- o.x,
1285
- ",",
1286
- o.y,
1287
- ") abc88"
1288
- ), t.updatedPath && (r = o.x, n = o.y);
1289
- }
1290
- s.attr("transform", `translate(${r}, ${n + l / 2})`);
1291
- }
1292
- if (e.startLabelLeft) {
1293
- const s = P[e.id].startLeft;
1294
- let r = e.x, n = e.y;
1295
- if (a) {
1296
- const o = rt.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", a);
1297
- r = o.x, n = o.y;
1298
- }
1299
- s.attr("transform", `translate(${r}, ${n})`);
1300
- }
1301
- if (e.startLabelRight) {
1302
- const s = P[e.id].startRight;
1303
- let r = e.x, n = e.y;
1304
- if (a) {
1305
- const o = rt.calcTerminalLabelPosition(
1306
- e.arrowTypeStart ? 10 : 0,
1307
- "start_right",
1308
- a
1309
- );
1310
- r = o.x, n = o.y;
1311
- }
1312
- s.attr("transform", `translate(${r}, ${n})`);
1313
- }
1314
- if (e.endLabelLeft) {
1315
- const s = P[e.id].endLeft;
1316
- let r = e.x, n = e.y;
1317
- if (a) {
1318
- const o = rt.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", a);
1319
- r = o.x, n = o.y;
1320
- }
1321
- s.attr("transform", `translate(${r}, ${n})`);
1322
- }
1323
- if (e.endLabelRight) {
1324
- const s = P[e.id].endRight;
1325
- let r = e.x, n = e.y;
1326
- if (a) {
1327
- const o = rt.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", a);
1328
- r = o.x, n = o.y;
1329
- }
1330
- s.attr("transform", `translate(${r}, ${n})`);
1331
- }
1332
- }, "positionEdgeLabel"), Va = /* @__PURE__ */ g((e, t) => {
1333
- const a = e.x, i = e.y, l = Math.abs(t.x - a), s = Math.abs(t.y - i), r = e.width / 2, n = e.height / 2;
1334
- return l >= r || s >= n;
1335
- }, "outsideNode"), Ga = /* @__PURE__ */ g((e, t, a) => {
1336
- L.debug(`intersection calc abc89:
1337
- outsidePoint: ${JSON.stringify(t)}
1338
- insidePoint : ${JSON.stringify(a)}
1339
- node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
1340
- const i = e.x, l = e.y, s = Math.abs(i - a.x), r = e.width / 2;
1341
- let n = a.x < t.x ? r - s : r + s;
1342
- const o = e.height / 2, u = Math.abs(t.y - a.y), h = Math.abs(t.x - a.x);
1343
- if (Math.abs(l - t.y) * r > Math.abs(i - t.x) * o) {
1344
- let x = a.y < t.y ? t.y - o - l : l - o - t.y;
1345
- n = h * x / u;
1346
- const b = {
1347
- x: a.x < t.x ? a.x + n : a.x - h + n,
1348
- y: a.y < t.y ? a.y + u - x : a.y - u + x
1349
- };
1350
- return n === 0 && (b.x = t.x, b.y = t.y), h === 0 && (b.x = t.x), u === 0 && (b.y = t.y), L.debug(`abc89 topp/bott calc, Q ${u}, q ${x}, R ${h}, r ${n}`, b), b;
1351
- } else {
1352
- a.x < t.x ? n = t.x - r - i : n = i - r - t.x;
1353
- let x = u * n / h, b = a.x < t.x ? a.x + h - n : a.x - h + n, m = a.y < t.y ? a.y + x : a.y - x;
1354
- return L.debug(`sides calc abc89, Q ${u}, q ${x}, R ${h}, r ${n}`, { _x: b, _y: m }), n === 0 && (b = t.x, m = t.y), h === 0 && (b = t.x), u === 0 && (m = t.y), { x: b, y: m };
1355
- }
1356
- }, "intersection"), Ht = /* @__PURE__ */ g((e, t) => {
1357
- L.debug("abc88 cutPathAtIntersect", e, t);
1358
- let a = [], i = e[0], l = !1;
1359
- return e.forEach((s) => {
1360
- if (!Va(t, s) && !l) {
1361
- const r = Ga(t, i, s);
1362
- let n = !1;
1363
- a.forEach((o) => {
1364
- n = n || o.x === r.x && o.y === r.y;
1365
- }), a.some((o) => o.x === r.x && o.y === r.y) || a.push(r), l = !0;
1366
- } else
1367
- i = s, l || a.push(s);
1368
- }), a;
1369
- }, "cutPathAtIntersect"), $a = /* @__PURE__ */ g(function(e, t, a, i, l, s, r) {
1370
- let n = a.points;
1371
- L.debug("abc88 InsertEdge: edge=", a, "e=", t);
1372
- let o = !1;
1373
- const u = s.node(t.v);
1374
- var h = s.node(t.w);
1375
- h != null && h.intersect && (u != null && u.intersect) && (n = n.slice(1, a.points.length - 1), n.unshift(u.intersect(n[0])), n.push(h.intersect(n[n.length - 1]))), a.toCluster && (L.debug("to cluster abc88", i[a.toCluster]), n = Ht(a.points, i[a.toCluster].node), o = !0), a.fromCluster && (L.debug("from cluster abc88", i[a.fromCluster]), n = Ht(n.reverse(), i[a.fromCluster].node).reverse(), o = !0);
1376
- const x = n.filter((y) => !Number.isNaN(y.y));
1377
- let b = Ke;
1378
- a.curve && (l === "graph" || l === "flowchart") && (b = a.curve);
1379
- const { x: m, y: S } = Fe(a), k = Pe().x(m).y(S).curve(b);
1380
- let E;
1381
- switch (a.thickness) {
1382
- case "normal":
1383
- E = "edge-thickness-normal";
1384
- break;
1385
- case "thick":
1386
- E = "edge-thickness-thick";
1387
- break;
1388
- case "invisible":
1389
- E = "edge-thickness-thick";
1390
- break;
1391
- default:
1392
- E = "";
1393
- }
1394
- switch (a.pattern) {
1395
- case "solid":
1396
- E += " edge-pattern-solid";
1397
- break;
1398
- case "dotted":
1399
- E += " edge-pattern-dotted";
1400
- break;
1401
- case "dashed":
1402
- E += " edge-pattern-dashed";
1403
- break;
1404
- }
1405
- const N = e.append("path").attr("d", k(x)).attr("id", a.id).attr("class", " " + E + (a.classes ? " " + a.classes : "")).attr("style", a.style);
1406
- let T = "";
1407
- (z().flowchart.arrowMarkerAbsolute || z().state.arrowMarkerAbsolute) && (T = We(!0)), Ua(N, a, T, r, l);
1408
- let D = {};
1409
- return o && (D.updatedPath = n), D.originalPath = a.points, D;
1410
- }, "insertEdge"), Za = /* @__PURE__ */ g((e) => {
1411
- const t = /* @__PURE__ */ new Set();
1412
- for (const a of e)
1413
- switch (a) {
1414
- case "x":
1415
- t.add("right"), t.add("left");
1416
- break;
1417
- case "y":
1418
- t.add("up"), t.add("down");
1419
- break;
1420
- default:
1421
- t.add(a);
1422
- break;
1423
- }
1424
- return t;
1425
- }, "expandAndDeduplicateDirections"), qa = /* @__PURE__ */ g((e, t, a) => {
1426
- const i = Za(e), l = 2, s = t.height + 2 * a.padding, r = s / l, n = t.width + 2 * r + a.padding, o = a.padding / 2;
1427
- return i.has("right") && i.has("left") && i.has("up") && i.has("down") ? [
1428
- // Bottom
1429
- { x: 0, y: 0 },
1430
- { x: r, y: 0 },
1431
- { x: n / 2, y: 2 * o },
1432
- { x: n - r, y: 0 },
1433
- { x: n, y: 0 },
1434
- // Right
1435
- { x: n, y: -s / 3 },
1436
- { x: n + 2 * o, y: -s / 2 },
1437
- { x: n, y: -2 * s / 3 },
1438
- { x: n, y: -s },
1439
- // Top
1440
- { x: n - r, y: -s },
1441
- { x: n / 2, y: -s - 2 * o },
1442
- { x: r, y: -s },
1443
- // Left
1444
- { x: 0, y: -s },
1445
- { x: 0, y: -2 * s / 3 },
1446
- { x: -2 * o, y: -s / 2 },
1447
- { x: 0, y: -s / 3 }
1448
- ] : i.has("right") && i.has("left") && i.has("up") ? [
1449
- { x: r, y: 0 },
1450
- { x: n - r, y: 0 },
1451
- { x: n, y: -s / 2 },
1452
- { x: n - r, y: -s },
1453
- { x: r, y: -s },
1454
- { x: 0, y: -s / 2 }
1455
- ] : i.has("right") && i.has("left") && i.has("down") ? [
1456
- { x: 0, y: 0 },
1457
- { x: r, y: -s },
1458
- { x: n - r, y: -s },
1459
- { x: n, y: 0 }
1460
- ] : i.has("right") && i.has("up") && i.has("down") ? [
1461
- { x: 0, y: 0 },
1462
- { x: n, y: -r },
1463
- { x: n, y: -s + r },
1464
- { x: 0, y: -s }
1465
- ] : i.has("left") && i.has("up") && i.has("down") ? [
1466
- { x: n, y: 0 },
1467
- { x: 0, y: -r },
1468
- { x: 0, y: -s + r },
1469
- { x: n, y: -s }
1470
- ] : i.has("right") && i.has("left") ? [
1471
- { x: r, y: 0 },
1472
- { x: r, y: -o },
1473
- { x: n - r, y: -o },
1474
- { x: n - r, y: 0 },
1475
- { x: n, y: -s / 2 },
1476
- { x: n - r, y: -s },
1477
- { x: n - r, y: -s + o },
1478
- { x: r, y: -s + o },
1479
- { x: r, y: -s },
1480
- { x: 0, y: -s / 2 }
1481
- ] : i.has("up") && i.has("down") ? [
1482
- // Bottom center
1483
- { x: n / 2, y: 0 },
1484
- // Left pont of bottom arrow
1485
- { x: 0, y: -o },
1486
- { x: r, y: -o },
1487
- // Left top over vertical section
1488
- { x: r, y: -s + o },
1489
- { x: 0, y: -s + o },
1490
- // Top of arrow
1491
- { x: n / 2, y: -s },
1492
- { x: n, y: -s + o },
1493
- // Top of right vertical bar
1494
- { x: n - r, y: -s + o },
1495
- { x: n - r, y: -o },
1496
- { x: n, y: -o }
1497
- ] : i.has("right") && i.has("up") ? [
1498
- { x: 0, y: 0 },
1499
- { x: n, y: -r },
1500
- { x: 0, y: -s }
1501
- ] : i.has("right") && i.has("down") ? [
1502
- { x: 0, y: 0 },
1503
- { x: n, y: 0 },
1504
- { x: 0, y: -s }
1505
- ] : i.has("left") && i.has("up") ? [
1506
- { x: n, y: 0 },
1507
- { x: 0, y: -r },
1508
- { x: n, y: -s }
1509
- ] : i.has("left") && i.has("down") ? [
1510
- { x: n, y: 0 },
1511
- { x: 0, y: 0 },
1512
- { x: n, y: -s }
1513
- ] : i.has("right") ? [
1514
- { x: r, y: -o },
1515
- { x: r, y: -o },
1516
- { x: n - r, y: -o },
1517
- { x: n - r, y: 0 },
1518
- { x: n, y: -s / 2 },
1519
- { x: n - r, y: -s },
1520
- { x: n - r, y: -s + o },
1521
- // top left corner of arrow
1522
- { x: r, y: -s + o },
1523
- { x: r, y: -s + o }
1524
- ] : i.has("left") ? [
1525
- { x: r, y: 0 },
1526
- { x: r, y: -o },
1527
- // Two points, the right corners
1528
- { x: n - r, y: -o },
1529
- { x: n - r, y: -s + o },
1530
- { x: r, y: -s + o },
1531
- { x: r, y: -s },
1532
- { x: 0, y: -s / 2 }
1533
- ] : i.has("up") ? [
1534
- // Bottom center
1535
- { x: r, y: -o },
1536
- // Left top over vertical section
1537
- { x: r, y: -s + o },
1538
- { x: 0, y: -s + o },
1539
- // Top of arrow
1540
- { x: n / 2, y: -s },
1541
- { x: n, y: -s + o },
1542
- // Top of right vertical bar
1543
- { x: n - r, y: -s + o },
1544
- { x: n - r, y: -o }
1545
- ] : i.has("down") ? [
1546
- // Bottom center
1547
- { x: n / 2, y: 0 },
1548
- // Left pont of bottom arrow
1549
- { x: 0, y: -o },
1550
- { x: r, y: -o },
1551
- // Left top over vertical section
1552
- { x: r, y: -s + o },
1553
- { x: n - r, y: -s + o },
1554
- { x: n - r, y: -o },
1555
- { x: n, y: -o }
1556
- ] : [{ x: 0, y: 0 }];
1557
- }, "getArrowPoints");
1558
- function de(e, t) {
1559
- return e.intersect(t);
1560
- }
1561
- g(de, "intersectNode");
1562
- var Ja = de;
1563
- function ue(e, t, a, i) {
1564
- var l = e.x, s = e.y, r = l - i.x, n = s - i.y, o = Math.sqrt(t * t * n * n + a * a * r * r), u = Math.abs(t * a * r / o);
1565
- i.x < l && (u = -u);
1566
- var h = Math.abs(t * a * n / o);
1567
- return i.y < s && (h = -h), { x: l + u, y: s + h };
1568
- }
1569
- g(ue, "intersectEllipse");
1570
- var pe = ue;
1571
- function fe(e, t, a) {
1572
- return pe(e, t, t, a);
1573
- }
1574
- g(fe, "intersectCircle");
1575
- var Qa = fe;
1576
- function ye(e, t, a, i) {
1577
- var l, s, r, n, o, u, h, x, b, m, S, k, E, N, T;
1578
- if (l = t.y - e.y, r = e.x - t.x, o = t.x * e.y - e.x * t.y, b = l * a.x + r * a.y + o, m = l * i.x + r * i.y + o, !(b !== 0 && m !== 0 && kt(b, m)) && (s = i.y - a.y, n = a.x - i.x, u = i.x * a.y - a.x * i.y, h = s * e.x + n * e.y + u, x = s * t.x + n * t.y + u, !(h !== 0 && x !== 0 && kt(h, x)) && (S = l * n - s * r, S !== 0)))
1579
- return k = Math.abs(S / 2), E = r * u - n * o, N = E < 0 ? (E - k) / S : (E + k) / S, E = s * o - l * u, T = E < 0 ? (E - k) / S : (E + k) / S, { x: N, y: T };
1580
- }
1581
- g(ye, "intersectLine");
1582
- function kt(e, t) {
1583
- return e * t > 0;
1584
- }
1585
- g(kt, "sameSign");
1586
- var ts = ye, es = xe;
1587
- function xe(e, t, a) {
1588
- var i = e.x, l = e.y, s = [], r = Number.POSITIVE_INFINITY, n = Number.POSITIVE_INFINITY;
1589
- typeof t.forEach == "function" ? t.forEach(function(S) {
1590
- r = Math.min(r, S.x), n = Math.min(n, S.y);
1591
- }) : (r = Math.min(r, t.x), n = Math.min(n, t.y));
1592
- for (var o = i - e.width / 2 - r, u = l - e.height / 2 - n, h = 0; h < t.length; h++) {
1593
- var x = t[h], b = t[h < t.length - 1 ? h + 1 : 0], m = ts(
1594
- e,
1595
- a,
1596
- { x: o + x.x, y: u + x.y },
1597
- { x: o + b.x, y: u + b.y }
1598
- );
1599
- m && s.push(m);
1600
- }
1601
- return s.length ? (s.length > 1 && s.sort(function(S, k) {
1602
- var E = S.x - a.x, N = S.y - a.y, T = Math.sqrt(E * E + N * N), D = k.x - a.x, y = k.y - a.y, d = Math.sqrt(D * D + y * y);
1603
- return T < d ? -1 : T === d ? 0 : 1;
1604
- }), s[0]) : e;
1605
- }
1606
- g(xe, "intersectPolygon");
1607
- var rs = /* @__PURE__ */ g((e, t) => {
1608
- var a = e.x, i = e.y, l = t.x - a, s = t.y - i, r = e.width / 2, n = e.height / 2, o, u;
1609
- return Math.abs(s) * r > Math.abs(l) * n ? (s < 0 && (n = -n), o = s === 0 ? 0 : n * l / s, u = n) : (l < 0 && (r = -r), o = r, u = l === 0 ? 0 : r * s / l), { x: a + o, y: i + u };
1610
- }, "intersectRect"), as = rs, I = {
1611
- node: Ja,
1612
- circle: Qa,
1613
- ellipse: pe,
1614
- polygon: es,
1615
- rect: as
1616
- }, F = /* @__PURE__ */ g(async (e, t, a, i) => {
1617
- const l = z();
1618
- let s;
1619
- const r = t.useHtmlLabels || Z(l.flowchart.htmlLabels);
1620
- a ? s = a : s = "node default";
1621
- const n = e.insert("g").attr("class", s).attr("id", t.domId || t.id), o = n.insert("g").attr("class", "label").attr("style", t.labelStyle);
1622
- let u;
1623
- t.labelText === void 0 ? u = "" : u = typeof t.labelText == "string" ? t.labelText : t.labelText[0];
1624
- const h = o.node();
1625
- let x;
1626
- t.labelType === "markdown" ? x = te(
1627
- o,
1628
- mt(Lt(u), l),
1629
- {
1630
- useHtmlLabels: r,
1631
- width: t.width || l.flowchart.wrappingWidth,
1632
- classes: "markdown-node-label"
1633
- },
1634
- l
1635
- ) : x = h.appendChild(
1636
- await V(
1637
- mt(Lt(u), l),
1638
- t.labelStyle,
1639
- !1,
1640
- i
1641
- )
1642
- );
1643
- let b = x.getBBox();
1644
- const m = t.padding / 2;
1645
- if (Z(l.flowchart.htmlLabels)) {
1646
- const S = x.children[0], k = R(x), E = S.getElementsByTagName("img");
1647
- if (E) {
1648
- const N = u.replace(/<img[^>]*>/g, "").trim() === "";
1649
- await Promise.all(
1650
- [...E].map(
1651
- (T) => new Promise((D) => {
1652
- function y() {
1653
- if (T.style.display = "flex", T.style.flexDirection = "column", N) {
1654
- const d = l.fontSize ? l.fontSize : window.getComputedStyle(document.body).fontSize, w = parseInt(d, 10) * 5 + "px";
1655
- T.style.minWidth = w, T.style.maxWidth = w;
1656
- } else
1657
- T.style.width = "100%";
1658
- D(T);
1659
- }
1660
- g(y, "setupImage"), setTimeout(() => {
1661
- T.complete && y();
1662
- }), T.addEventListener("error", y), T.addEventListener("load", y);
1663
- })
1664
- )
1665
- );
1666
- }
1667
- b = S.getBoundingClientRect(), k.attr("width", b.width), k.attr("height", b.height);
1668
- }
1669
- return r ? o.attr("transform", "translate(" + -b.width / 2 + ", " + -b.height / 2 + ")") : o.attr("transform", "translate(0, " + -b.height / 2 + ")"), t.centerLabel && o.attr("transform", "translate(" + -b.width / 2 + ", " + -b.height / 2 + ")"), o.insert("rect", ":first-child"), { shapeSvg: n, bbox: b, halfPadding: m, label: o };
1670
- }, "labelHelper"), B = /* @__PURE__ */ g((e, t) => {
1671
- const a = t.node().getBBox();
1672
- e.width = a.width, e.height = a.height;
1673
- }, "updateNodeBounds");
1674
- function $(e, t, a, i) {
1675
- return e.insert("polygon", ":first-child").attr(
1676
- "points",
1677
- i.map(function(l) {
1678
- return l.x + "," + l.y;
1679
- }).join(" ")
1680
- ).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + a / 2 + ")");
1681
- }
1682
- g($, "insertPolygonShape");
1683
- var ss = /* @__PURE__ */ g(async (e, t) => {
1684
- t.useHtmlLabels || z().flowchart.htmlLabels || (t.centerLabel = !0);
1685
- const { shapeSvg: i, bbox: l, halfPadding: s } = await F(
1686
- e,
1687
- t,
1688
- "node " + t.classes,
1689
- !0
1690
- );
1691
- L.info("Classes = ", t.classes);
1692
- const r = i.insert("rect", ":first-child");
1693
- return r.attr("rx", t.rx).attr("ry", t.ry).attr("x", -l.width / 2 - s).attr("y", -l.height / 2 - s).attr("width", l.width + t.padding).attr("height", l.height + t.padding), B(t, r), t.intersect = function(n) {
1694
- return I.rect(t, n);
1695
- }, i;
1696
- }, "note"), is = ss, Kt = /* @__PURE__ */ g((e) => e ? " " + e : "", "formatClass"), H = /* @__PURE__ */ g((e, t) => `${t || "node default"}${Kt(e.classes)} ${Kt(
1697
- e.class
1698
- )}`, "getClassesFromNode"), Xt = /* @__PURE__ */ g(async (e, t) => {
1699
- const { shapeSvg: a, bbox: i } = await F(
1700
- e,
1701
- t,
1702
- H(t, void 0),
1703
- !0
1704
- ), l = i.width + t.padding, s = i.height + t.padding, r = l + s, n = [
1705
- { x: r / 2, y: 0 },
1706
- { x: r, y: -r / 2 },
1707
- { x: r / 2, y: -r },
1708
- { x: 0, y: -r / 2 }
1709
- ];
1710
- L.info("Question main (Circle)");
1711
- const o = $(a, r, r, n);
1712
- return o.attr("style", t.style), B(t, o), t.intersect = function(u) {
1713
- return L.warn("Intersect called"), I.polygon(t, n, u);
1714
- }, a;
1715
- }, "question"), ns = /* @__PURE__ */ g((e, t) => {
1716
- const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = 28, l = [
1717
- { x: 0, y: i / 2 },
1718
- { x: i / 2, y: 0 },
1719
- { x: 0, y: -i / 2 },
1720
- { x: -i / 2, y: 0 }
1721
- ];
1722
- return a.insert("polygon", ":first-child").attr(
1723
- "points",
1724
- l.map(function(r) {
1725
- return r.x + "," + r.y;
1726
- }).join(" ")
1727
- ).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), t.width = 28, t.height = 28, t.intersect = function(r) {
1728
- return I.circle(t, 14, r);
1729
- }, a;
1730
- }, "choice"), ls = /* @__PURE__ */ g(async (e, t) => {
1731
- const { shapeSvg: a, bbox: i } = await F(
1732
- e,
1733
- t,
1734
- H(t, void 0),
1735
- !0
1736
- ), l = 4, s = i.height + t.padding, r = s / l, n = i.width + 2 * r + t.padding, o = [
1737
- { x: r, y: 0 },
1738
- { x: n - r, y: 0 },
1739
- { x: n, y: -s / 2 },
1740
- { x: n - r, y: -s },
1741
- { x: r, y: -s },
1742
- { x: 0, y: -s / 2 }
1743
- ], u = $(a, n, s, o);
1744
- return u.attr("style", t.style), B(t, u), t.intersect = function(h) {
1745
- return I.polygon(t, o, h);
1746
- }, a;
1747
- }, "hexagon"), cs = /* @__PURE__ */ g(async (e, t) => {
1748
- const { shapeSvg: a, bbox: i } = await F(e, t, void 0, !0), l = 2, s = i.height + 2 * t.padding, r = s / l, n = i.width + 2 * r + t.padding, o = qa(t.directions, i, t), u = $(a, n, s, o);
1749
- return u.attr("style", t.style), B(t, u), t.intersect = function(h) {
1750
- return I.polygon(t, o, h);
1751
- }, a;
1752
- }, "block_arrow"), os = /* @__PURE__ */ g(async (e, t) => {
1753
- const { shapeSvg: a, bbox: i } = await F(
1754
- e,
1755
- t,
1756
- H(t, void 0),
1757
- !0
1758
- ), l = i.width + t.padding, s = i.height + t.padding, r = [
1759
- { x: -s / 2, y: 0 },
1760
- { x: l, y: 0 },
1761
- { x: l, y: -s },
1762
- { x: -s / 2, y: -s },
1763
- { x: 0, y: -s / 2 }
1764
- ];
1765
- return $(a, l, s, r).attr("style", t.style), t.width = l + s, t.height = s, t.intersect = function(o) {
1766
- return I.polygon(t, r, o);
1767
- }, a;
1768
- }, "rect_left_inv_arrow"), hs = /* @__PURE__ */ g(async (e, t) => {
1769
- const { shapeSvg: a, bbox: i } = await F(e, t, H(t), !0), l = i.width + t.padding, s = i.height + t.padding, r = [
1770
- { x: -2 * s / 6, y: 0 },
1771
- { x: l - s / 6, y: 0 },
1772
- { x: l + 2 * s / 6, y: -s },
1773
- { x: s / 6, y: -s }
1774
- ], n = $(a, l, s, r);
1775
- return n.attr("style", t.style), B(t, n), t.intersect = function(o) {
1776
- return I.polygon(t, r, o);
1777
- }, a;
1778
- }, "lean_right"), gs = /* @__PURE__ */ g(async (e, t) => {
1779
- const { shapeSvg: a, bbox: i } = await F(
1780
- e,
1781
- t,
1782
- H(t, void 0),
1783
- !0
1784
- ), l = i.width + t.padding, s = i.height + t.padding, r = [
1785
- { x: 2 * s / 6, y: 0 },
1786
- { x: l + s / 6, y: 0 },
1787
- { x: l - 2 * s / 6, y: -s },
1788
- { x: -s / 6, y: -s }
1789
- ], n = $(a, l, s, r);
1790
- return n.attr("style", t.style), B(t, n), t.intersect = function(o) {
1791
- return I.polygon(t, r, o);
1792
- }, a;
1793
- }, "lean_left"), ds = /* @__PURE__ */ g(async (e, t) => {
1794
- const { shapeSvg: a, bbox: i } = await F(
1795
- e,
1796
- t,
1797
- H(t, void 0),
1798
- !0
1799
- ), l = i.width + t.padding, s = i.height + t.padding, r = [
1800
- { x: -2 * s / 6, y: 0 },
1801
- { x: l + 2 * s / 6, y: 0 },
1802
- { x: l - s / 6, y: -s },
1803
- { x: s / 6, y: -s }
1804
- ], n = $(a, l, s, r);
1805
- return n.attr("style", t.style), B(t, n), t.intersect = function(o) {
1806
- return I.polygon(t, r, o);
1807
- }, a;
1808
- }, "trapezoid"), us = /* @__PURE__ */ g(async (e, t) => {
1809
- const { shapeSvg: a, bbox: i } = await F(
1810
- e,
1811
- t,
1812
- H(t, void 0),
1813
- !0
1814
- ), l = i.width + t.padding, s = i.height + t.padding, r = [
1815
- { x: s / 6, y: 0 },
1816
- { x: l - s / 6, y: 0 },
1817
- { x: l + 2 * s / 6, y: -s },
1818
- { x: -2 * s / 6, y: -s }
1819
- ], n = $(a, l, s, r);
1820
- return n.attr("style", t.style), B(t, n), t.intersect = function(o) {
1821
- return I.polygon(t, r, o);
1822
- }, a;
1823
- }, "inv_trapezoid"), ps = /* @__PURE__ */ g(async (e, t) => {
1824
- const { shapeSvg: a, bbox: i } = await F(
1825
- e,
1826
- t,
1827
- H(t, void 0),
1828
- !0
1829
- ), l = i.width + t.padding, s = i.height + t.padding, r = [
1830
- { x: 0, y: 0 },
1831
- { x: l + s / 2, y: 0 },
1832
- { x: l, y: -s / 2 },
1833
- { x: l + s / 2, y: -s },
1834
- { x: 0, y: -s }
1835
- ], n = $(a, l, s, r);
1836
- return n.attr("style", t.style), B(t, n), t.intersect = function(o) {
1837
- return I.polygon(t, r, o);
1838
- }, a;
1839
- }, "rect_right_inv_arrow"), fs = /* @__PURE__ */ g(async (e, t) => {
1840
- const { shapeSvg: a, bbox: i } = await F(
1841
- e,
1842
- t,
1843
- H(t, void 0),
1844
- !0
1845
- ), l = i.width + t.padding, s = l / 2, r = s / (2.5 + l / 50), n = i.height + r + t.padding, o = "M 0," + r + " a " + s + "," + r + " 0,0,0 " + l + " 0 a " + s + "," + r + " 0,0,0 " + -l + " 0 l 0," + n + " a " + s + "," + r + " 0,0,0 " + l + " 0 l 0," + -n, u = a.attr("label-offset-y", r).insert("path", ":first-child").attr("style", t.style).attr("d", o).attr("transform", "translate(" + -l / 2 + "," + -(n / 2 + r) + ")");
1846
- return B(t, u), t.intersect = function(h) {
1847
- const x = I.rect(t, h), b = x.x - t.x;
1848
- if (s != 0 && (Math.abs(b) < t.width / 2 || Math.abs(b) == t.width / 2 && Math.abs(x.y - t.y) > t.height / 2 - r)) {
1849
- let m = r * r * (1 - b * b / (s * s));
1850
- m != 0 && (m = Math.sqrt(m)), m = r - m, h.y - t.y > 0 && (m = -m), x.y += m;
1851
- }
1852
- return x;
1853
- }, a;
1854
- }, "cylinder"), ys = /* @__PURE__ */ g(async (e, t) => {
1855
- const { shapeSvg: a, bbox: i, halfPadding: l } = await F(
1856
- e,
1857
- t,
1858
- "node " + t.classes + " " + t.class,
1859
- !0
1860
- ), s = a.insert("rect", ":first-child"), r = t.positioned ? t.width : i.width + t.padding, n = t.positioned ? t.height : i.height + t.padding, o = t.positioned ? -r / 2 : -i.width / 2 - l, u = t.positioned ? -n / 2 : -i.height / 2 - l;
1861
- if (s.attr("class", "basic label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", o).attr("y", u).attr("width", r).attr("height", n), t.props) {
1862
- const h = new Set(Object.keys(t.props));
1863
- t.props.borders && (pt(s, t.props.borders, r, n), h.delete("borders")), h.forEach((x) => {
1864
- L.warn(`Unknown node property ${x}`);
1865
- });
1866
- }
1867
- return B(t, s), t.intersect = function(h) {
1868
- return I.rect(t, h);
1869
- }, a;
1870
- }, "rect"), xs = /* @__PURE__ */ g(async (e, t) => {
1871
- const { shapeSvg: a, bbox: i, halfPadding: l } = await F(
1872
- e,
1873
- t,
1874
- "node " + t.classes,
1875
- !0
1876
- ), s = a.insert("rect", ":first-child"), r = t.positioned ? t.width : i.width + t.padding, n = t.positioned ? t.height : i.height + t.padding, o = t.positioned ? -r / 2 : -i.width / 2 - l, u = t.positioned ? -n / 2 : -i.height / 2 - l;
1877
- if (s.attr("class", "basic cluster composite label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", o).attr("y", u).attr("width", r).attr("height", n), t.props) {
1878
- const h = new Set(Object.keys(t.props));
1879
- t.props.borders && (pt(s, t.props.borders, r, n), h.delete("borders")), h.forEach((x) => {
1880
- L.warn(`Unknown node property ${x}`);
1881
- });
1882
- }
1883
- return B(t, s), t.intersect = function(h) {
1884
- return I.rect(t, h);
1885
- }, a;
1886
- }, "composite"), bs = /* @__PURE__ */ g(async (e, t) => {
1887
- const { shapeSvg: a } = await F(e, t, "label", !0);
1888
- L.trace("Classes = ", t.class);
1889
- const i = a.insert("rect", ":first-child"), l = 0, s = 0;
1890
- if (i.attr("width", l).attr("height", s), a.attr("class", "label edgeLabel"), t.props) {
1891
- const r = new Set(Object.keys(t.props));
1892
- t.props.borders && (pt(i, t.props.borders, l, s), r.delete("borders")), r.forEach((n) => {
1893
- L.warn(`Unknown node property ${n}`);
1894
- });
1895
- }
1896
- return B(t, i), t.intersect = function(r) {
1897
- return I.rect(t, r);
1898
- }, a;
1899
- }, "labelRect");
1900
- function pt(e, t, a, i) {
1901
- const l = [], s = /* @__PURE__ */ g((n) => {
1902
- l.push(n, 0);
1903
- }, "addBorder"), r = /* @__PURE__ */ g((n) => {
1904
- l.push(0, n);
1905
- }, "skipBorder");
1906
- t.includes("t") ? (L.debug("add top border"), s(a)) : r(a), t.includes("r") ? (L.debug("add right border"), s(i)) : r(i), t.includes("b") ? (L.debug("add bottom border"), s(a)) : r(a), t.includes("l") ? (L.debug("add left border"), s(i)) : r(i), e.attr("stroke-dasharray", l.join(" "));
1907
- }
1908
- g(pt, "applyNodePropertyBorders");
1909
- var ws = /* @__PURE__ */ g(async (e, t) => {
1910
- let a;
1911
- t.classes ? a = "node " + t.classes : a = "node default";
1912
- const i = e.insert("g").attr("class", a).attr("id", t.domId || t.id), l = i.insert("rect", ":first-child"), s = i.insert("line"), r = i.insert("g").attr("class", "label"), n = t.labelText.flat ? t.labelText.flat() : t.labelText;
1913
- let o = "";
1914
- typeof n == "object" ? o = n[0] : o = n, L.info("Label text abc79", o, n, typeof n == "object");
1915
- const u = r.node().appendChild(await V(o, t.labelStyle, !0, !0));
1916
- let h = { width: 0, height: 0 };
1917
- if (Z(z().flowchart.htmlLabels)) {
1918
- const k = u.children[0], E = R(u);
1919
- h = k.getBoundingClientRect(), E.attr("width", h.width), E.attr("height", h.height);
1920
- }
1921
- L.info("Text 2", n);
1922
- const x = n.slice(1, n.length);
1923
- let b = u.getBBox();
1924
- const m = r.node().appendChild(
1925
- await V(
1926
- x.join ? x.join("<br/>") : x,
1927
- t.labelStyle,
1928
- !0,
1929
- !0
1930
- )
1931
- );
1932
- if (Z(z().flowchart.htmlLabels)) {
1933
- const k = m.children[0], E = R(m);
1934
- h = k.getBoundingClientRect(), E.attr("width", h.width), E.attr("height", h.height);
1935
- }
1936
- const S = t.padding / 2;
1937
- return R(m).attr(
1938
- "transform",
1939
- "translate( " + // (titleBox.width - bbox.width) / 2 +
1940
- (h.width > b.width ? 0 : (b.width - h.width) / 2) + ", " + (b.height + S + 5) + ")"
1941
- ), R(u).attr(
1942
- "transform",
1943
- "translate( " + // (titleBox.width - bbox.width) / 2 +
1944
- (h.width < b.width ? 0 : -(b.width - h.width) / 2) + ", 0)"
1945
- ), h = r.node().getBBox(), r.attr(
1946
- "transform",
1947
- "translate(" + -h.width / 2 + ", " + (-h.height / 2 - S + 3) + ")"
1948
- ), l.attr("class", "outer title-state").attr("x", -h.width / 2 - S).attr("y", -h.height / 2 - S).attr("width", h.width + t.padding).attr("height", h.height + t.padding), s.attr("class", "divider").attr("x1", -h.width / 2 - S).attr("x2", h.width / 2 + S).attr("y1", -h.height / 2 - S + b.height + S).attr("y2", -h.height / 2 - S + b.height + S), B(t, l), t.intersect = function(k) {
1949
- return I.rect(t, k);
1950
- }, i;
1951
- }, "rectWithTitle"), ms = /* @__PURE__ */ g(async (e, t) => {
1952
- const { shapeSvg: a, bbox: i } = await F(
1953
- e,
1954
- t,
1955
- H(t, void 0),
1956
- !0
1957
- ), l = i.height + t.padding, s = i.width + l / 4 + t.padding, r = a.insert("rect", ":first-child").attr("style", t.style).attr("rx", l / 2).attr("ry", l / 2).attr("x", -s / 2).attr("y", -l / 2).attr("width", s).attr("height", l);
1958
- return B(t, r), t.intersect = function(n) {
1959
- return I.rect(t, n);
1960
- }, a;
1961
- }, "stadium"), Ls = /* @__PURE__ */ g(async (e, t) => {
1962
- const { shapeSvg: a, bbox: i, halfPadding: l } = await F(
1963
- e,
1964
- t,
1965
- H(t, void 0),
1966
- !0
1967
- ), s = a.insert("circle", ":first-child");
1968
- return s.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l).attr("width", i.width + t.padding).attr("height", i.height + t.padding), L.info("Circle main"), B(t, s), t.intersect = function(r) {
1969
- return L.info("Circle intersect", t, i.width / 2 + l, r), I.circle(t, i.width / 2 + l, r);
1970
- }, a;
1971
- }, "circle"), Ss = /* @__PURE__ */ g(async (e, t) => {
1972
- const { shapeSvg: a, bbox: i, halfPadding: l } = await F(
1973
- e,
1974
- t,
1975
- H(t, void 0),
1976
- !0
1977
- ), s = 5, r = a.insert("g", ":first-child"), n = r.insert("circle"), o = r.insert("circle");
1978
- return r.attr("class", t.class), n.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l + s).attr("width", i.width + t.padding + s * 2).attr("height", i.height + t.padding + s * 2), o.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l).attr("width", i.width + t.padding).attr("height", i.height + t.padding), L.info("DoubleCircle main"), B(t, n), t.intersect = function(u) {
1979
- return L.info("DoubleCircle intersect", t, i.width / 2 + l + s, u), I.circle(t, i.width / 2 + l + s, u);
1980
- }, a;
1981
- }, "doublecircle"), vs = /* @__PURE__ */ g(async (e, t) => {
1982
- const { shapeSvg: a, bbox: i } = await F(
1983
- e,
1984
- t,
1985
- H(t, void 0),
1986
- !0
1987
- ), l = i.width + t.padding, s = i.height + t.padding, r = [
1988
- { x: 0, y: 0 },
1989
- { x: l, y: 0 },
1990
- { x: l, y: -s },
1991
- { x: 0, y: -s },
1992
- { x: 0, y: 0 },
1993
- { x: -8, y: 0 },
1994
- { x: l + 8, y: 0 },
1995
- { x: l + 8, y: -s },
1996
- { x: -8, y: -s },
1997
- { x: -8, y: 0 }
1998
- ], n = $(a, l, s, r);
1999
- return n.attr("style", t.style), B(t, n), t.intersect = function(o) {
2000
- return I.polygon(t, r, o);
2001
- }, a;
2002
- }, "subroutine"), Es = /* @__PURE__ */ g((e, t) => {
2003
- const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = a.insert("circle", ":first-child");
2004
- return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), B(t, i), t.intersect = function(l) {
2005
- return I.circle(t, 7, l);
2006
- }, a;
2007
- }, "start"), Vt = /* @__PURE__ */ g((e, t, a) => {
2008
- const i = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id);
2009
- let l = 70, s = 10;
2010
- a === "LR" && (l = 10, s = 70);
2011
- const r = i.append("rect").attr("x", -1 * l / 2).attr("y", -1 * s / 2).attr("width", l).attr("height", s).attr("class", "fork-join");
2012
- return B(t, r), t.height = t.height + t.padding / 2, t.width = t.width + t.padding / 2, t.intersect = function(n) {
2013
- return I.rect(t, n);
2014
- }, i;
2015
- }, "forkJoin"), _s = /* @__PURE__ */ g((e, t) => {
2016
- const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = a.insert("circle", ":first-child"), l = a.insert("circle", ":first-child");
2017
- return l.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), i.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), B(t, l), t.intersect = function(s) {
2018
- return I.circle(t, 7, s);
2019
- }, a;
2020
- }, "end"), ks = /* @__PURE__ */ g(async (e, t) => {
2021
- var v;
2022
- const a = t.padding / 2, i = 4, l = 8;
2023
- let s;
2024
- t.classes ? s = "node " + t.classes : s = "node default";
2025
- const r = e.insert("g").attr("class", s).attr("id", t.domId || t.id), n = r.insert("rect", ":first-child"), o = r.insert("line"), u = r.insert("line");
2026
- let h = 0, x = i;
2027
- const b = r.insert("g").attr("class", "label");
2028
- let m = 0;
2029
- const S = (v = t.classData.annotations) == null ? void 0 : v[0], k = t.classData.annotations[0] ? "«" + t.classData.annotations[0] + "»" : "", E = b.node().appendChild(await V(k, t.labelStyle, !0, !0));
2030
- let N = E.getBBox();
2031
- if (Z(z().flowchart.htmlLabels)) {
2032
- const c = E.children[0], _ = R(E);
2033
- N = c.getBoundingClientRect(), _.attr("width", N.width), _.attr("height", N.height);
2034
- }
2035
- t.classData.annotations[0] && (x += N.height + i, h += N.width);
2036
- let T = t.classData.label;
2037
- t.classData.type !== void 0 && t.classData.type !== "" && (z().flowchart.htmlLabels ? T += "&lt;" + t.classData.type + "&gt;" : T += "<" + t.classData.type + ">");
2038
- const D = b.node().appendChild(await V(T, t.labelStyle, !0, !0));
2039
- R(D).attr("class", "classTitle");
2040
- let y = D.getBBox();
2041
- if (Z(z().flowchart.htmlLabels)) {
2042
- const c = D.children[0], _ = R(D);
2043
- y = c.getBoundingClientRect(), _.attr("width", y.width), _.attr("height", y.height);
2044
- }
2045
- x += y.height + i, y.width > h && (h = y.width);
2046
- const d = [];
2047
- t.classData.members.forEach(async (c) => {
2048
- const _ = c.getDisplayDetails();
2049
- let f = _.displayText;
2050
- z().flowchart.htmlLabels && (f = f.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
2051
- const M = b.node().appendChild(
2052
- await V(
2053
- f,
2054
- _.cssStyle ? _.cssStyle : t.labelStyle,
2055
- !0,
2056
- !0
2057
- )
2058
- );
2059
- let O = M.getBBox();
2060
- if (Z(z().flowchart.htmlLabels)) {
2061
- const K = M.children[0], W = R(M);
2062
- O = K.getBoundingClientRect(), W.attr("width", O.width), W.attr("height", O.height);
2063
- }
2064
- O.width > h && (h = O.width), x += O.height + i, d.push(M);
2065
- }), x += l;
2066
- const p = [];
2067
- if (t.classData.methods.forEach(async (c) => {
2068
- const _ = c.getDisplayDetails();
2069
- let f = _.displayText;
2070
- z().flowchart.htmlLabels && (f = f.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
2071
- const M = b.node().appendChild(
2072
- await V(
2073
- f,
2074
- _.cssStyle ? _.cssStyle : t.labelStyle,
2075
- !0,
2076
- !0
2077
- )
2078
- );
2079
- let O = M.getBBox();
2080
- if (Z(z().flowchart.htmlLabels)) {
2081
- const K = M.children[0], W = R(M);
2082
- O = K.getBoundingClientRect(), W.attr("width", O.width), W.attr("height", O.height);
2083
- }
2084
- O.width > h && (h = O.width), x += O.height + i, p.push(M);
2085
- }), x += l, S) {
2086
- let c = (h - N.width) / 2;
2087
- R(E).attr(
2088
- "transform",
2089
- "translate( " + (-1 * h / 2 + c) + ", " + -1 * x / 2 + ")"
2090
- ), m = N.height + i;
2091
- }
2092
- let w = (h - y.width) / 2;
2093
- return R(D).attr(
2094
- "transform",
2095
- "translate( " + (-1 * h / 2 + w) + ", " + (-1 * x / 2 + m) + ")"
2096
- ), m += y.height + i, o.attr("class", "divider").attr("x1", -h / 2 - a).attr("x2", h / 2 + a).attr("y1", -x / 2 - a + l + m).attr("y2", -x / 2 - a + l + m), m += l, d.forEach((c) => {
2097
- R(c).attr(
2098
- "transform",
2099
- "translate( " + -h / 2 + ", " + (-1 * x / 2 + m + l / 2) + ")"
2100
- );
2101
- const _ = c == null ? void 0 : c.getBBox();
2102
- m += ((_ == null ? void 0 : _.height) ?? 0) + i;
2103
- }), m += l, u.attr("class", "divider").attr("x1", -h / 2 - a).attr("x2", h / 2 + a).attr("y1", -x / 2 - a + l + m).attr("y2", -x / 2 - a + l + m), m += l, p.forEach((c) => {
2104
- R(c).attr(
2105
- "transform",
2106
- "translate( " + -h / 2 + ", " + (-1 * x / 2 + m) + ")"
2107
- );
2108
- const _ = c == null ? void 0 : c.getBBox();
2109
- m += ((_ == null ? void 0 : _.height) ?? 0) + i;
2110
- }), n.attr("style", t.style).attr("class", "outer title-state").attr("x", -h / 2 - a).attr("y", -(x / 2) - a).attr("width", h + t.padding).attr("height", x + t.padding), B(t, n), t.intersect = function(c) {
2111
- return I.rect(t, c);
2112
- }, r;
2113
- }, "class_box"), Gt = {
2114
- rhombus: Xt,
2115
- composite: xs,
2116
- question: Xt,
2117
- rect: ys,
2118
- labelRect: bs,
2119
- rectWithTitle: ws,
2120
- choice: ns,
2121
- circle: Ls,
2122
- doublecircle: Ss,
2123
- stadium: ms,
2124
- hexagon: ls,
2125
- block_arrow: cs,
2126
- rect_left_inv_arrow: os,
2127
- lean_right: hs,
2128
- lean_left: gs,
2129
- trapezoid: ds,
2130
- inv_trapezoid: us,
2131
- rect_right_inv_arrow: ps,
2132
- cylinder: fs,
2133
- start: Es,
2134
- end: _s,
2135
- note: is,
2136
- subroutine: vs,
2137
- fork: Vt,
2138
- join: Vt,
2139
- class_box: ks
2140
- }, ht = {}, be = /* @__PURE__ */ g(async (e, t, a) => {
2141
- let i, l;
2142
- if (t.link) {
2143
- let s;
2144
- z().securityLevel === "sandbox" ? s = "_top" : t.linkTarget && (s = t.linkTarget || "_blank"), i = e.insert("svg:a").attr("xlink:href", t.link).attr("target", s), l = await Gt[t.shape](i, t, a);
2145
- } else
2146
- l = await Gt[t.shape](e, t, a), i = l;
2147
- return t.tooltip && l.attr("title", t.tooltip), t.class && l.attr("class", "node default " + t.class), ht[t.id] = i, t.haveCallback && ht[t.id].attr("class", ht[t.id].attr("class") + " clickable"), i;
2148
- }, "insertNode"), Ts = /* @__PURE__ */ g((e) => {
2149
- const t = ht[e.id];
2150
- L.trace(
2151
- "Transforming node",
2152
- e.diff,
2153
- e,
2154
- "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")"
2155
- );
2156
- const a = 8, i = e.diff || 0;
2157
- return e.clusterNode ? t.attr(
2158
- "transform",
2159
- "translate(" + (e.x + i - e.width / 2) + ", " + (e.y - e.height / 2 - a) + ")"
2160
- ) : t.attr("transform", "translate(" + e.x + ", " + e.y + ")"), i;
2161
- }, "positionNode");
2162
- function Bt(e, t, a = !1) {
2163
- var b, m, S;
2164
- const i = e;
2165
- let l = "default";
2166
- (((b = i == null ? void 0 : i.classes) == null ? void 0 : b.length) || 0) > 0 && (l = ((i == null ? void 0 : i.classes) ?? []).join(" ")), l = l + " flowchart-label";
2167
- let s = 0, r = "", n;
2168
- switch (i.type) {
2169
- case "round":
2170
- s = 5, r = "rect";
2171
- break;
2172
- case "composite":
2173
- s = 0, r = "composite", n = 0;
2174
- break;
2175
- case "square":
2176
- r = "rect";
2177
- break;
2178
- case "diamond":
2179
- r = "question";
2180
- break;
2181
- case "hexagon":
2182
- r = "hexagon";
2183
- break;
2184
- case "block_arrow":
2185
- r = "block_arrow";
2186
- break;
2187
- case "odd":
2188
- r = "rect_left_inv_arrow";
2189
- break;
2190
- case "lean_right":
2191
- r = "lean_right";
2192
- break;
2193
- case "lean_left":
2194
- r = "lean_left";
2195
- break;
2196
- case "trapezoid":
2197
- r = "trapezoid";
2198
- break;
2199
- case "inv_trapezoid":
2200
- r = "inv_trapezoid";
2201
- break;
2202
- case "rect_left_inv_arrow":
2203
- r = "rect_left_inv_arrow";
2204
- break;
2205
- case "circle":
2206
- r = "circle";
2207
- break;
2208
- case "ellipse":
2209
- r = "ellipse";
2210
- break;
2211
- case "stadium":
2212
- r = "stadium";
2213
- break;
2214
- case "subroutine":
2215
- r = "subroutine";
2216
- break;
2217
- case "cylinder":
2218
- r = "cylinder";
2219
- break;
2220
- case "group":
2221
- r = "rect";
2222
- break;
2223
- case "doublecircle":
2224
- r = "doublecircle";
2225
- break;
2226
- default:
2227
- r = "rect";
2228
- }
2229
- const o = Me((i == null ? void 0 : i.styles) ?? []), u = i.label, h = i.size ?? { width: 0, height: 0, x: 0, y: 0 };
2230
- return {
2231
- labelStyle: o.labelStyle,
2232
- shape: r,
2233
- labelText: u,
2234
- rx: s,
2235
- ry: s,
2236
- class: l,
2237
- style: o.style,
2238
- id: i.id,
2239
- directions: i.directions,
2240
- width: h.width,
2241
- height: h.height,
2242
- x: h.x,
2243
- y: h.y,
2244
- positioned: a,
2245
- intersect: void 0,
2246
- type: i.type,
2247
- padding: n ?? ((S = (m = it()) == null ? void 0 : m.block) == null ? void 0 : S.padding) ?? 0
2248
- };
2249
- }
2250
- g(Bt, "getNodeFromBlock");
2251
- async function we(e, t, a) {
2252
- const i = Bt(t, a, !1);
2253
- if (i.type === "group")
2254
- return;
2255
- const l = it(), s = await be(e, i, { config: l }), r = s.node().getBBox(), n = a.getBlock(i.id);
2256
- n.size = { width: r.width, height: r.height, x: 0, y: 0, node: s }, a.setBlock(n), s.remove();
2257
- }
2258
- g(we, "calculateBlockSize");
2259
- async function me(e, t, a) {
2260
- const i = Bt(t, a, !0);
2261
- if (a.getBlock(i.id).type !== "space") {
2262
- const s = it();
2263
- await be(e, i, { config: s }), t.intersect = i == null ? void 0 : i.intersect, Ts(i);
2264
- }
2265
- }
2266
- g(me, "insertBlockPositioned");
2267
- async function ft(e, t, a, i) {
2268
- for (const l of t)
2269
- await i(e, l, a), l.children && await ft(e, l.children, a, i);
2270
- }
2271
- g(ft, "performOperations");
2272
- async function Le(e, t, a) {
2273
- await ft(e, t, a, we);
2274
- }
2275
- g(Le, "calculateBlockSizes");
2276
- async function Se(e, t, a) {
2277
- await ft(e, t, a, me);
2278
- }
2279
- g(Se, "insertBlocks");
2280
- async function ve(e, t, a, i, l) {
2281
- const s = new Je({
2282
- multigraph: !0,
2283
- compound: !0
2284
- });
2285
- s.setGraph({
2286
- rankdir: "TB",
2287
- nodesep: 10,
2288
- ranksep: 10,
2289
- marginx: 8,
2290
- marginy: 8
2291
- });
2292
- for (const r of a)
2293
- r.size && s.setNode(r.id, {
2294
- width: r.size.width,
2295
- height: r.size.height,
2296
- intersect: r.intersect
2297
- });
2298
- for (const r of t)
2299
- if (r.start && r.end) {
2300
- const n = i.getBlock(r.start), o = i.getBlock(r.end);
2301
- if (n != null && n.size && (o != null && o.size)) {
2302
- const u = n.size, h = o.size, x = [
2303
- { x: u.x, y: u.y },
2304
- { x: u.x + (h.x - u.x) / 2, y: u.y + (h.y - u.y) / 2 },
2305
- { x: h.x, y: h.y }
2306
- ];
2307
- $a(
2308
- e,
2309
- { v: r.start, w: r.end, name: r.id },
2310
- {
2311
- ...r,
2312
- arrowTypeEnd: r.arrowTypeEnd,
2313
- arrowTypeStart: r.arrowTypeStart,
2314
- points: x,
2315
- classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
2316
- },
2317
- void 0,
2318
- "block",
2319
- s,
2320
- l
2321
- ), r.label && (await Ka(e, {
2322
- ...r,
2323
- label: r.label,
2324
- labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
2325
- arrowTypeEnd: r.arrowTypeEnd,
2326
- arrowTypeStart: r.arrowTypeStart,
2327
- points: x,
2328
- classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
2329
- }), Xa(
2330
- { ...r, x: x[1].x, y: x[1].y },
2331
- {
2332
- originalPath: x
2333
- }
2334
- ));
2335
- }
2336
- }
2337
- }
2338
- g(ve, "insertEdges");
2339
- var Ds = /* @__PURE__ */ g(function(e, t) {
2340
- return t.db.getClasses();
2341
- }, "getClasses"), Ns = /* @__PURE__ */ g(async function(e, t, a, i) {
2342
- const { securityLevel: l, block: s } = it(), r = i.db;
2343
- let n;
2344
- l === "sandbox" && (n = R("#i" + t));
2345
- const o = l === "sandbox" ? R(n.nodes()[0].contentDocument.body) : R("body"), u = l === "sandbox" ? o.select(`[id="${t}"]`) : R(`[id="${t}"]`);
2346
- Pa(u, ["point", "circle", "cross"], i.type, t);
2347
- const x = r.getBlocks(), b = r.getBlocksFlat(), m = r.getEdges(), S = u.insert("g").attr("class", "block");
2348
- await Le(S, x, r);
2349
- const k = he(r);
2350
- if (await Se(S, x, r), await ve(S, m, b, r, t), k) {
2351
- const E = k, N = Math.max(1, Math.round(0.125 * (E.width / E.height))), T = E.height + N + 10, D = E.width + 10, { useMaxWidth: y } = s;
2352
- Ye(u, T, D, !!y), L.debug("Here Bounds", k, E), u.attr(
2353
- "viewBox",
2354
- `${E.x - 5} ${E.y - 5} ${E.width + 10} ${E.height + 10}`
2355
- );
2356
- }
2357
- }, "draw"), Cs = {
2358
- draw: Ns,
2359
- getClasses: Ds
2360
- }, zs = {
2361
- parser: la,
2362
- db: ka,
2363
- renderer: Cs,
2364
- styles: Da
2365
- };
2366
- export {
2367
- zs as diagram
2368
- };