@elmethis/core 1.0.0-alpha.147 → 1.0.0-alpha.148

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 (1191) hide show
  1. package/dist/_virtual/_commonjsHelpers.mjs +6 -0
  2. package/dist/_virtual/_plugin-vue_export-helper.mjs +10 -0
  3. package/dist/_virtual/advancedFormat.mjs +7 -0
  4. package/dist/_virtual/advancedFormat2.mjs +4 -0
  5. package/dist/_virtual/cancellation.mjs +5 -0
  6. package/dist/_virtual/cancellation2.mjs +4 -0
  7. package/dist/_virtual/constants.mjs +4 -0
  8. package/dist/_virtual/cose-base.mjs +4 -0
  9. package/dist/_virtual/cose-base2.mjs +4 -0
  10. package/dist/_virtual/customParseFormat.mjs +7 -0
  11. package/dist/_virtual/customParseFormat2.mjs +4 -0
  12. package/dist/_virtual/cytoscape-cose-bilkent.mjs +7 -0
  13. package/dist/_virtual/cytoscape-cose-bilkent2.mjs +4 -0
  14. package/dist/_virtual/cytoscape-fcose.mjs +7 -0
  15. package/dist/_virtual/cytoscape-fcose2.mjs +4 -0
  16. package/dist/_virtual/dayjs.min.mjs +7 -0
  17. package/dist/_virtual/dayjs.min2.mjs +4 -0
  18. package/dist/_virtual/events.mjs +5 -0
  19. package/dist/_virtual/events2.mjs +4 -0
  20. package/dist/_virtual/index.mjs +5 -0
  21. package/dist/_virtual/index2.mjs +4 -0
  22. package/dist/_virtual/is.mjs +4 -0
  23. package/dist/_virtual/isoWeek.mjs +7 -0
  24. package/dist/_virtual/isoWeek2.mjs +4 -0
  25. package/dist/_virtual/layout-base.mjs +4 -0
  26. package/dist/_virtual/layout-base2.mjs +4 -0
  27. package/dist/_virtual/ral.mjs +4 -0
  28. package/dist/components/badge/ElmBadge.vue.mjs +10 -0
  29. package/dist/components/badge/ElmBadge.vue2.mjs +33 -0
  30. package/dist/components/badge/ElmBadge.vue3.mjs +14 -0
  31. package/dist/components/badge/ElmTag.vue.mjs +10 -0
  32. package/dist/components/badge/ElmTag.vue2.mjs +39 -0
  33. package/dist/components/badge/ElmTag.vue3.mjs +14 -0
  34. package/dist/components/code/ElmCodeBlock.vue.mjs +10 -0
  35. package/dist/components/code/ElmCodeBlock.vue2.mjs +86 -0
  36. package/dist/components/code/ElmCodeBlock.vue3.mjs +18 -0
  37. package/dist/components/code/ElmKatex.vue.mjs +10 -0
  38. package/dist/components/code/ElmKatex.vue2.mjs +46 -0
  39. package/dist/components/code/ElmKatex.vue3.mjs +8 -0
  40. package/dist/components/code/ElmMermaid.vue.mjs +6 -0
  41. package/dist/components/code/ElmMermaid.vue2.mjs +56 -0
  42. package/dist/components/code/ElmShikiHighlighter.vue.mjs +11 -0
  43. package/dist/components/code/ElmShikiHighlighter.vue2.mjs +44 -0
  44. package/dist/components/code/ElmShikiHighlighter.vue3.mjs +8 -0
  45. package/dist/components/containments/ElmColumn.vue.mjs +10 -0
  46. package/dist/components/containments/ElmColumn.vue2.mjs +16 -0
  47. package/dist/components/containments/ElmColumn.vue3.mjs +8 -0
  48. package/dist/components/containments/ElmColumnList.vue.mjs +10 -0
  49. package/dist/components/containments/ElmColumnList.vue2.mjs +16 -0
  50. package/dist/components/containments/ElmColumnList.vue3.mjs +6 -0
  51. package/dist/components/containments/ElmDesktopWindow.vue.mjs +10 -0
  52. package/dist/components/containments/ElmDesktopWindow.vue2.mjs +42 -0
  53. package/dist/components/containments/ElmDesktopWindow.vue3.mjs +14 -0
  54. package/dist/components/containments/ElmModal.vue.mjs +10 -0
  55. package/dist/components/containments/ElmModal.vue2.mjs +44 -0
  56. package/dist/components/containments/ElmModal.vue3.mjs +11 -0
  57. package/dist/components/containments/ElmParallax.vue.mjs +10 -0
  58. package/dist/components/containments/ElmParallax.vue2.mjs +35 -0
  59. package/dist/components/containments/ElmParallax.vue3.mjs +8 -0
  60. package/dist/components/containments/ElmSnackbar.vue.mjs +10 -0
  61. package/dist/components/containments/ElmSnackbar.vue2.mjs +39 -0
  62. package/dist/components/containments/ElmSnackbar.vue3.mjs +14 -0
  63. package/dist/components/containments/ElmSnackbarContainer.vue.mjs +10 -0
  64. package/dist/components/containments/ElmSnackbarContainer.vue2.mjs +33 -0
  65. package/dist/components/containments/ElmSnackbarContainer.vue3.mjs +7 -0
  66. package/dist/components/containments/ElmToggle.vue.mjs +10 -0
  67. package/dist/components/containments/ElmToggle.vue2.mjs +71 -0
  68. package/dist/components/containments/ElmToggle.vue3.mjs +17 -0
  69. package/dist/components/containments/ElmTooltip.vue.mjs +10 -0
  70. package/dist/components/containments/ElmTooltip.vue2.mjs +49 -0
  71. package/dist/components/containments/ElmTooltip.vue3.mjs +8 -0
  72. package/dist/components/data/ElmMultiProgress.vue.mjs +10 -0
  73. package/dist/components/data/ElmMultiProgress.vue2.mjs +45 -0
  74. package/dist/components/data/ElmMultiProgress.vue3.mjs +11 -0
  75. package/dist/components/data/ElmProgress.vue.mjs +10 -0
  76. package/dist/components/data/ElmProgress.vue2.mjs +53 -0
  77. package/dist/components/data/ElmProgress.vue3.mjs +20 -0
  78. package/dist/components/data/ElmStatusMessage.vue.mjs +10 -0
  79. package/dist/components/data/ElmStatusMessage.vue2.mjs +75 -0
  80. package/dist/components/data/ElmStatusMessage.vue3.mjs +11 -0
  81. package/dist/components/fallback/ElmBlockFallback.vue.mjs +10 -0
  82. package/dist/components/fallback/ElmBlockFallback.vue2.mjs +17 -0
  83. package/dist/components/fallback/ElmBlockFallback.vue3.mjs +6 -0
  84. package/dist/components/fallback/ElmRectangleWave.vue.mjs +10 -0
  85. package/dist/components/fallback/ElmRectangleWave.vue2.mjs +15 -0
  86. package/dist/components/fallback/ElmRectangleWave.vue3.mjs +9 -0
  87. package/dist/components/fallback/ElmSpinner.vue.mjs +10 -0
  88. package/dist/components/fallback/ElmSpinner.vue2.mjs +30 -0
  89. package/dist/components/fallback/ElmSpinner.vue3.mjs +12 -0
  90. package/dist/components/form/ElmButton.vue.mjs +10 -0
  91. package/dist/components/form/ElmButton.vue2.mjs +57 -0
  92. package/dist/components/form/ElmButton.vue3.mjs +20 -0
  93. package/dist/components/form/ElmCheckbox.vue.mjs +10 -0
  94. package/dist/components/form/ElmCheckbox.vue2.mjs +177 -0
  95. package/dist/components/form/ElmCheckbox.vue3.mjs +22 -0
  96. package/dist/components/form/ElmSwitch.vue.mjs +10 -0
  97. package/dist/components/form/ElmSwitch.vue2.mjs +61 -0
  98. package/dist/components/form/ElmSwitch.vue3.mjs +16 -0
  99. package/dist/components/form/ElmTextField.vue.mjs +10 -0
  100. package/dist/components/form/ElmTextField.vue2.mjs +124 -0
  101. package/dist/components/form/ElmTextField.vue3.mjs +34 -0
  102. package/dist/components/form/ElmTotp.vue.mjs +10 -0
  103. package/dist/components/form/ElmTotp.vue2.mjs +102 -0
  104. package/dist/components/form/ElmTotp.vue3.mjs +22 -0
  105. package/dist/components/headings/ElmFragmentIdentifier.vue.mjs +10 -0
  106. package/dist/components/headings/ElmFragmentIdentifier.vue2.mjs +54 -0
  107. package/dist/components/headings/ElmFragmentIdentifier.vue3.mjs +11 -0
  108. package/dist/components/headings/ElmHeading1.vue.mjs +10 -0
  109. package/dist/components/headings/ElmHeading1.vue2.mjs +43 -0
  110. package/dist/components/headings/ElmHeading1.vue3.mjs +8 -0
  111. package/dist/components/headings/ElmHeading2.vue.mjs +10 -0
  112. package/dist/components/headings/ElmHeading2.vue2.mjs +49 -0
  113. package/dist/components/headings/ElmHeading2.vue3.mjs +11 -0
  114. package/dist/components/headings/ElmHeading3.vue.mjs +10 -0
  115. package/dist/components/headings/ElmHeading3.vue2.mjs +39 -0
  116. package/dist/components/headings/ElmHeading3.vue3.mjs +8 -0
  117. package/dist/components/headings/ElmHeading4.vue.mjs +10 -0
  118. package/dist/components/headings/ElmHeading4.vue2.mjs +31 -0
  119. package/dist/components/headings/ElmHeading4.vue3.mjs +8 -0
  120. package/dist/components/headings/ElmHeading5.vue.mjs +10 -0
  121. package/dist/components/headings/ElmHeading5.vue2.mjs +31 -0
  122. package/dist/components/headings/ElmHeading5.vue3.mjs +8 -0
  123. package/dist/components/headings/ElmHeading6.vue.mjs +10 -0
  124. package/dist/components/headings/ElmHeading6.vue2.mjs +31 -0
  125. package/dist/components/headings/ElmHeading6.vue3.mjs +8 -0
  126. package/dist/components/icon/ElmArrowIcon.vue.mjs +10 -0
  127. package/dist/components/icon/ElmArrowIcon.vue2.mjs +31 -0
  128. package/dist/components/icon/ElmArrowIcon.vue3.mjs +17 -0
  129. package/dist/components/icon/ElmBookmarkIcon.vue.mjs +10 -0
  130. package/dist/components/icon/ElmBookmarkIcon.vue2.mjs +45 -0
  131. package/dist/components/icon/ElmBookmarkIcon.vue3.mjs +15 -0
  132. package/dist/components/icon/ElmCubeIcon.vue.mjs +10 -0
  133. package/dist/components/icon/ElmCubeIcon.vue2.mjs +41 -0
  134. package/dist/components/icon/ElmCubeIcon.vue3.mjs +12 -0
  135. package/dist/components/icon/ElmDotLoadingIcon.vue.mjs +10 -0
  136. package/dist/components/icon/ElmDotLoadingIcon.vue2.mjs +28 -0
  137. package/dist/components/icon/ElmDotLoadingIcon.vue3.mjs +14 -0
  138. package/dist/components/icon/ElmLanguageIcon.vue.mjs +10 -0
  139. package/dist/components/icon/ElmLanguageIcon.vue2.mjs +148 -0
  140. package/dist/components/icon/ElmLanguageIcon.vue3.mjs +11 -0
  141. package/dist/components/icon/ElmLoginIcon.vue.mjs +10 -0
  142. package/dist/components/icon/ElmLoginIcon.vue2.mjs +37 -0
  143. package/dist/components/icon/ElmLoginIcon.vue3.mjs +8 -0
  144. package/dist/components/icon/ElmToggleTheme.vue.mjs +10 -0
  145. package/dist/components/icon/ElmToggleTheme.vue2.mjs +30 -0
  146. package/dist/components/icon/ElmToggleTheme.vue3.mjs +8 -0
  147. package/dist/components/icon/languages/Bash.vue.mjs +31 -0
  148. package/dist/components/icon/languages/Bash.vue2.mjs +8 -0
  149. package/dist/components/icon/languages/Css.vue.mjs +19 -0
  150. package/dist/components/icon/languages/Rust.vue.mjs +17 -0
  151. package/dist/components/inline/ElmInlineLink.vue.mjs +10 -0
  152. package/dist/components/inline/ElmInlineLink.vue2.mjs +53 -0
  153. package/dist/components/inline/ElmInlineLink.vue3.mjs +11 -0
  154. package/dist/components/inline/ElmInlineRuby.vue.mjs +29 -0
  155. package/dist/components/inline/ElmInlineRuby.vue2.mjs +4 -0
  156. package/dist/components/inline/ElmInlineText.vue.mjs +10 -0
  157. package/dist/components/inline/ElmInlineText.vue2.mjs +57 -0
  158. package/dist/components/inline/ElmInlineText.vue3.mjs +11 -0
  159. package/dist/components/media/ElmFile.vue.mjs +10 -0
  160. package/dist/components/media/ElmFile.vue2.mjs +77 -0
  161. package/dist/components/media/ElmFile.vue3.mjs +14 -0
  162. package/dist/components/media/ElmImage.vue.mjs +10 -0
  163. package/dist/components/media/ElmImage.vue2.mjs +91 -0
  164. package/dist/components/media/ElmImage.vue3.mjs +18 -0
  165. package/dist/components/navigation/ElmBookmark.vue.mjs +10 -0
  166. package/dist/components/navigation/ElmBookmark.vue2.mjs +115 -0
  167. package/dist/components/navigation/ElmBookmark.vue3.mjs +32 -0
  168. package/dist/components/navigation/ElmBreadcrumb.vue.mjs +10 -0
  169. package/dist/components/navigation/ElmBreadcrumb.vue2.mjs +63 -0
  170. package/dist/components/navigation/ElmBreadcrumb.vue3.mjs +18 -0
  171. package/dist/components/navigation/ElmPagetop.vue.mjs +10 -0
  172. package/dist/components/navigation/ElmPagetop.vue2.mjs +51 -0
  173. package/dist/components/navigation/ElmPagetop.vue3.mjs +18 -0
  174. package/dist/components/navigation/ElmTableOfContents.vue.mjs +10 -0
  175. package/dist/components/navigation/ElmTableOfContents.vue2.mjs +43 -0
  176. package/dist/components/navigation/ElmTableOfContents.vue3.mjs +14 -0
  177. package/dist/components/others/ElmColorSample.vue.mjs +10 -0
  178. package/dist/components/others/ElmColorSample.vue2.mjs +72 -0
  179. package/dist/components/others/ElmColorSample.vue3.mjs +9 -0
  180. package/dist/components/others/ElmColorTable.vue.mjs +10 -0
  181. package/dist/components/others/ElmColorTable.vue2.mjs +45 -0
  182. package/dist/components/others/ElmColorTable.vue3.mjs +10 -0
  183. package/dist/components/renderer/ElmJsonRenderer.vue.mjs +96 -0
  184. package/dist/components/renderer/ElmJsonRenderer.vue2.mjs +4 -0
  185. package/dist/components/renderer/ElmJsonRendererAsync.vue.mjs +24 -0
  186. package/dist/components/renderer/ElmJsonRendererAsync.vue2.mjs +4 -0
  187. package/dist/components/table/ElmTable.vue.mjs +6 -0
  188. package/dist/components/table/ElmTable.vue2.mjs +22 -0
  189. package/dist/components/table/ElmTableBody.vue.mjs +15 -0
  190. package/dist/components/table/ElmTableBody.vue3.mjs +5 -0
  191. package/dist/components/table/ElmTableCell.vue.mjs +6 -0
  192. package/dist/components/table/ElmTableCell.vue2.mjs +22 -0
  193. package/dist/components/table/ElmTableHeader.vue.mjs +15 -0
  194. package/dist/components/table/ElmTableHeader.vue3.mjs +5 -0
  195. package/dist/components/table/ElmTableRow.vue.mjs +14 -0
  196. package/dist/components/table/ElmTableRow.vue2.mjs +4 -0
  197. package/dist/components/typography/ElmBlockQuote.vue.mjs +10 -0
  198. package/dist/components/typography/ElmBlockQuote.vue2.mjs +27 -0
  199. package/dist/components/typography/ElmBlockQuote.vue3.mjs +8 -0
  200. package/dist/components/typography/ElmBulletedList.vue.mjs +27 -0
  201. package/dist/components/typography/ElmBulletedList.vue3.mjs +5 -0
  202. package/dist/components/typography/ElmCallout.vue.mjs +10 -0
  203. package/dist/components/typography/ElmCallout.vue2.mjs +57 -0
  204. package/dist/components/typography/ElmCallout.vue3.mjs +14 -0
  205. package/dist/components/typography/ElmDivider.vue.mjs +10 -0
  206. package/dist/components/typography/ElmDivider.vue2.mjs +29 -0
  207. package/dist/components/typography/ElmDivider.vue3.mjs +8 -0
  208. package/dist/components/typography/ElmListItem.vue.mjs +10 -0
  209. package/dist/components/typography/ElmListItem.vue2.mjs +16 -0
  210. package/dist/components/typography/ElmListItem.vue3.mjs +8 -0
  211. package/dist/components/typography/ElmNumberedList.vue.mjs +27 -0
  212. package/dist/components/typography/ElmNumberedList.vue3.mjs +5 -0
  213. package/dist/components/typography/ElmParagraph.vue.mjs +10 -0
  214. package/dist/components/typography/ElmParagraph.vue2.mjs +27 -0
  215. package/dist/components/typography/ElmParagraph.vue3.mjs +8 -0
  216. package/dist/hooks/useElmethisTheme.mjs +43 -0
  217. package/dist/hooks/useTyping.mjs +37 -0
  218. package/dist/index.mjs +150 -0
  219. package/dist/node_modules/.pnpm/@braintree_sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/constants.mjs +20 -0
  220. package/dist/node_modules/.pnpm/@braintree_sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/index.mjs +76 -0
  221. package/dist/node_modules/.pnpm/@chevrotain_gast@11.0.3/node_modules/@chevrotain/gast/lib/src/helpers.mjs +57 -0
  222. package/dist/node_modules/.pnpm/@chevrotain_gast@11.0.3/node_modules/@chevrotain/gast/lib/src/model.mjs +220 -0
  223. package/dist/node_modules/.pnpm/@chevrotain_gast@11.0.3/node_modules/@chevrotain/gast/lib/src/visitor.mjs +64 -0
  224. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.mjs +101 -0
  225. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.mjs +45 -0
  226. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.mjs +693 -0
  227. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.mjs +39 -0
  228. package/dist/node_modules/.pnpm/@chevrotain_utils@11.0.3/node_modules/@chevrotain/utils/lib/src/print.mjs +14 -0
  229. package/dist/node_modules/.pnpm/@chevrotain_utils@11.0.3/node_modules/@chevrotain/utils/lib/src/timer.mjs +10 -0
  230. package/dist/node_modules/.pnpm/@chevrotain_utils@11.0.3/node_modules/@chevrotain/utils/lib/src/to-fast-properties.mjs +15 -0
  231. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/customisations/defaults.mjs +15 -0
  232. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.mjs +28 -0
  233. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.mjs +20 -0
  234. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/name.mjs +54 -0
  235. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.mjs +17 -0
  236. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.mjs +27 -0
  237. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.mjs +24 -0
  238. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.mjs +120 -0
  239. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.mjs +33 -0
  240. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/html.mjs +10 -0
  241. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/id.mjs +29 -0
  242. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.mjs +41 -0
  243. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-4AB2E3PP.mjs +6 -0
  244. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2NYFTIL2.mjs +34 -0
  245. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2O5ZK7RR.mjs +34 -0
  246. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7PKI6E2E.mjs +541 -0
  247. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-C4OEIS7N.mjs +46 -0
  248. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-EXZZNE6F.mjs +34 -0
  249. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ROXG7S4E.mjs +42 -0
  250. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-V4Q32G6S.mjs +34 -0
  251. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-O2Q2CXLX.mjs +6 -0
  252. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-4N47QTOZ.mjs +6 -0
  253. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-KVYON367.mjs +6 -0
  254. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-R6RNRRYF.mjs +6 -0
  255. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-MK3ICKWK.mjs +6 -0
  256. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.mjs +115 -0
  257. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/all-star-lookahead.mjs +531 -0
  258. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/atn.mjs +393 -0
  259. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/dfa.mjs +42 -0
  260. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/lang/lang_extensions.mjs +12 -0
  261. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/constants.mjs +4 -0
  262. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/cst/cst.mjs +42 -0
  263. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.mjs +87 -0
  264. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/errors_public.mjs +161 -0
  265. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/exceptions_public.mjs +60 -0
  266. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/checks.mjs +416 -0
  267. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/first.mjs +47 -0
  268. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/follow.mjs +41 -0
  269. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.mjs +24 -0
  270. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/interpreter.mjs +424 -0
  271. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/keys.mjs +22 -0
  272. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.mjs +48 -0
  273. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/lookahead.mjs +387 -0
  274. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/resolver.mjs +40 -0
  275. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/rest.mjs +83 -0
  276. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/parser.mjs +181 -0
  277. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.mjs +25 -0
  278. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.mjs +69 -0
  279. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.mjs +270 -0
  280. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.mjs +59 -0
  281. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.mjs +128 -0
  282. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.mjs +38 -0
  283. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.mjs +323 -0
  284. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.mjs +434 -0
  285. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.mjs +251 -0
  286. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.mjs +167 -0
  287. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.mjs +19 -0
  288. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer.mjs +720 -0
  289. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer_errors_public.mjs +11 -0
  290. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer_public.mjs +552 -0
  291. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/reg_exp.mjs +214 -0
  292. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/reg_exp_parser.mjs +20 -0
  293. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/tokens.mjs +115 -0
  294. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/tokens_public.mjs +88 -0
  295. package/dist/node_modules/.pnpm/cose-base@1.0.3/node_modules/cose-base/cose-base.mjs +1090 -0
  296. package/dist/node_modules/.pnpm/cose-base@2.2.0/node_modules/cose-base/cose-base.mjs +2555 -0
  297. package/dist/node_modules/.pnpm/cytoscape-cose-bilkent@4.1.0_cytoscape@3.31.1/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.mjs +374 -0
  298. package/dist/node_modules/.pnpm/cytoscape-fcose@2.2.0_cytoscape@3.31.1/node_modules/cytoscape-fcose/cytoscape-fcose.mjs +1278 -0
  299. package/dist/node_modules/.pnpm/cytoscape@3.31.1/node_modules/cytoscape/dist/cytoscape.esm.mjs +29469 -0
  300. package/dist/node_modules/.pnpm/d3-array@2.12.1/node_modules/d3-array/src/max.mjs +21 -0
  301. package/dist/node_modules/.pnpm/d3-array@2.12.1/node_modules/d3-array/src/min.mjs +21 -0
  302. package/dist/node_modules/.pnpm/d3-array@2.12.1/node_modules/d3-array/src/sum.mjs +21 -0
  303. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.mjs +6 -0
  304. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisect.mjs +10 -0
  305. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisector.mjs +47 -0
  306. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/descending.mjs +6 -0
  307. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/max.mjs +21 -0
  308. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/min.mjs +21 -0
  309. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/number.mjs +6 -0
  310. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/range.mjs +11 -0
  311. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ticks.mjs +51 -0
  312. package/dist/node_modules/.pnpm/d3-axis@3.0.0/node_modules/d3-axis/src/axis.mjs +94 -0
  313. package/dist/node_modules/.pnpm/d3-axis@3.0.0/node_modules/d3-axis/src/identity.mjs +6 -0
  314. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.mjs +338 -0
  315. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/define.mjs +13 -0
  316. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/lab.mjs +95 -0
  317. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/math.mjs +6 -0
  318. package/dist/node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.mjs +70 -0
  319. package/dist/node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.mjs +6 -0
  320. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/defaultLocale.mjs +20 -0
  321. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/exponent.mjs +7 -0
  322. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatDecimal.mjs +15 -0
  323. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatGroup.mjs +15 -0
  324. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatNumerals.mjs +10 -0
  325. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatPrefixAuto.mjs +12 -0
  326. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatRounded.mjs +10 -0
  327. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatSpecifier.mjs +37 -0
  328. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatTrim.mjs +21 -0
  329. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatTypes.mjs +21 -0
  330. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/identity.mjs +6 -0
  331. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/locale.mjs +82 -0
  332. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionFixed.mjs +7 -0
  333. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionPrefix.mjs +7 -0
  334. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionRound.mjs +8 -0
  335. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/array.mjs +13 -0
  336. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/color.mjs +29 -0
  337. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/constant.mjs +4 -0
  338. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/date.mjs +9 -0
  339. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/hcl.mjs +18 -0
  340. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/number.mjs +8 -0
  341. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/numberArray.mjs +15 -0
  342. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/object.mjs +20 -0
  343. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.mjs +20 -0
  344. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/round.mjs +8 -0
  345. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.mjs +43 -0
  346. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/decompose.mjs +28 -0
  347. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/index.mjs +59 -0
  348. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/parse.mjs +18 -0
  349. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/value.mjs +16 -0
  350. package/dist/node_modules/.pnpm/d3-path@1.0.9/node_modules/d3-path/src/path.mjs +73 -0
  351. package/dist/node_modules/.pnpm/d3-path@3.1.0/node_modules/d3-path/src/path.mjs +88 -0
  352. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/align.mjs +22 -0
  353. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/constant.mjs +8 -0
  354. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/sankey.mjs +326 -0
  355. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/sankeyLinkHorizontal.mjs +13 -0
  356. package/dist/node_modules/.pnpm/d3-scale-chromatic@3.1.0/node_modules/d3-scale-chromatic/src/categorical/Tableau10.mjs +5 -0
  357. package/dist/node_modules/.pnpm/d3-scale-chromatic@3.1.0/node_modules/d3-scale-chromatic/src/colors.mjs +8 -0
  358. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/band.mjs +56 -0
  359. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/constant.mjs +8 -0
  360. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/continuous.mjs +95 -0
  361. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/init.mjs +16 -0
  362. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/linear.mjs +61 -0
  363. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/nice.mjs +14 -0
  364. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/number.mjs +6 -0
  365. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/ordinal.mjs +38 -0
  366. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/tickFormat.mjs +34 -0
  367. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/time.mjs +54 -0
  368. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/array.mjs +6 -0
  369. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/constant.mjs +8 -0
  370. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/creator.mjs +20 -0
  371. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/matcher.mjs +14 -0
  372. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespace.mjs +9 -0
  373. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespaces.mjs +12 -0
  374. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/select.mjs +7 -0
  375. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/append.mjs +10 -0
  376. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/attr.mjs +46 -0
  377. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/call.mjs +9 -0
  378. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/classed.mjs +64 -0
  379. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/clone.mjs +14 -0
  380. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/data.mjs +76 -0
  381. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/datum.mjs +6 -0
  382. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/dispatch.mjs +28 -0
  383. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/each.mjs +11 -0
  384. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/empty.mjs +6 -0
  385. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/enter.mjs +31 -0
  386. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/exit.mjs +8 -0
  387. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/filter.mjs +16 -0
  388. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/html.mjs +20 -0
  389. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/index.mjs +88 -0
  390. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/insert.mjs +14 -0
  391. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/iterator.mjs +10 -0
  392. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/join.mjs +19 -0
  393. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/lower.mjs +9 -0
  394. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/merge.mjs +18 -0
  395. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/node.mjs +12 -0
  396. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/nodes.mjs +6 -0
  397. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/on.mjs +64 -0
  398. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/order.mjs +14 -0
  399. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/property.mjs +23 -0
  400. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/raise.mjs +9 -0
  401. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/remove.mjs +10 -0
  402. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/select.mjs +17 -0
  403. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectAll.mjs +24 -0
  404. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChild.mjs +16 -0
  405. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChildren.mjs +16 -0
  406. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/size.mjs +8 -0
  407. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sort.mjs +22 -0
  408. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sparse.mjs +6 -0
  409. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/style.mjs +28 -0
  410. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/text.mjs +20 -0
  411. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selector.mjs +10 -0
  412. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selectorAll.mjs +11 -0
  413. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/window.mjs +6 -0
  414. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/array.mjs +4 -0
  415. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/constant.mjs +8 -0
  416. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/link/index.mjs +45 -0
  417. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/point.mjs +10 -0
  418. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/arc.mjs +133 -0
  419. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/array.mjs +6 -0
  420. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.mjs +8 -0
  421. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basis.mjs +66 -0
  422. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisClosed.mjs +63 -0
  423. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisOpen.mjs +50 -0
  424. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bump.mjs +49 -0
  425. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bundle.mjs +43 -0
  426. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinal.mjs +73 -0
  427. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalClosed.mjs +69 -0
  428. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalOpen.mjs +57 -0
  429. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRom.mjs +83 -0
  430. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomClosed.mjs +75 -0
  431. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomOpen.mjs +63 -0
  432. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.mjs +39 -0
  433. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linearClosed.mjs +25 -0
  434. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/monotone.mjs +99 -0
  435. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/natural.mjs +54 -0
  436. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/step.mjs +59 -0
  437. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/descending.mjs +6 -0
  438. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/identity.mjs +6 -0
  439. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/line.mjs +41 -0
  440. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/math.mjs +32 -0
  441. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/noop.mjs +5 -0
  442. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/path.mjs +19 -0
  443. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/pie.mjs +55 -0
  444. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/point.mjs +10 -0
  445. package/dist/node_modules/.pnpm/d3-time-format@4.1.0/node_modules/d3-time-format/src/defaultLocale.mjs +25 -0
  446. package/dist/node_modules/.pnpm/d3-time-format@4.1.0/node_modules/d3-time-format/src/locale.mjs +542 -0
  447. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/day.mjs +34 -0
  448. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/duration.mjs +16 -0
  449. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/hour.mjs +26 -0
  450. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/interval.mjs +61 -0
  451. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/millisecond.mjs +23 -0
  452. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/minute.mjs +26 -0
  453. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/month.mjs +27 -0
  454. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/second.mjs +15 -0
  455. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/ticks.mjs +54 -0
  456. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/week.mjs +66 -0
  457. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/year.mjs +45 -0
  458. package/dist/node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timeout.mjs +13 -0
  459. package/dist/node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.mjs +96 -0
  460. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/interrupt.mjs +21 -0
  461. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/index.mjs +5 -0
  462. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/interrupt.mjs +9 -0
  463. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/transition.mjs +39 -0
  464. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attr.mjs +55 -0
  465. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attrTween.mjs +42 -0
  466. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/delay.mjs +18 -0
  467. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/duration.mjs +18 -0
  468. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/ease.mjs +14 -0
  469. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/easeVarying.mjs +15 -0
  470. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/end.mjs +23 -0
  471. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/filter.mjs +16 -0
  472. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/index.mjs +68 -0
  473. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/interpolate.mjs +11 -0
  474. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/merge.mjs +18 -0
  475. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/on.mjs +23 -0
  476. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/remove.mjs +13 -0
  477. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/schedule.mjs +125 -0
  478. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/select.mjs +20 -0
  479. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selectAll.mjs +24 -0
  480. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selection.mjs +8 -0
  481. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/style.mjs +47 -0
  482. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/styleTween.mjs +25 -0
  483. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/text.mjs +18 -0
  484. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/textTween.mjs +25 -0
  485. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/transition.mjs +22 -0
  486. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/tween.mjs +64 -0
  487. package/dist/node_modules/.pnpm/d3-zoom@3.0.0/node_modules/d3-zoom/src/transform.mjs +45 -0
  488. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/acyclic.mjs +55 -0
  489. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/add-border-segments.mjs +33 -0
  490. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/coordinate-system.mjs +66 -0
  491. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/data/list.mjs +49 -0
  492. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/greedy-fas.mjs +97 -0
  493. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/layout.mjs +344 -0
  494. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/nesting-graph.mjs +94 -0
  495. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/normalize.mjs +69 -0
  496. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.mjs +25 -0
  497. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/barycenter.mjs +29 -0
  498. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.mjs +33 -0
  499. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/cross-count.mjs +54 -0
  500. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/index.mjs +51 -0
  501. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/init-order.mjs +30 -0
  502. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.mjs +84 -0
  503. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.mjs +66 -0
  504. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/sort.mjs +47 -0
  505. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.mjs +66 -0
  506. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/position/bk.mjs +296 -0
  507. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/position/index.mjs +29 -0
  508. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.mjs +45 -0
  509. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/index.mjs +29 -0
  510. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.mjs +148 -0
  511. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/util.mjs +30 -0
  512. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/util.mjs +164 -0
  513. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/dfs.mjs +33 -0
  514. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.mjs +2 -0
  515. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.mjs +2 -0
  516. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/postorder.mjs +7 -0
  517. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/preorder.mjs +7 -0
  518. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/topsort.mjs +7 -0
  519. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/graph.mjs +420 -0
  520. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/json.mjs +47 -0
  521. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.mjs +286 -0
  522. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/advancedFormat.mjs +58 -0
  523. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/customParseFormat.mjs +133 -0
  524. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isoWeek.mjs +37 -0
  525. package/dist/node_modules/.pnpm/dompurify@3.2.4/node_modules/dompurify/dist/purify.es.mjs +965 -0
  526. package/dist/node_modules/.pnpm/internmap@2.0.3/node_modules/internmap/src/index.mjs +43 -0
  527. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/channels/index.mjs +131 -0
  528. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/channels/reusable.mjs +5 -0
  529. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/channels/type.mjs +24 -0
  530. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/hex.mjs +40 -0
  531. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/hsl.mjs +50 -0
  532. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/index.mjs +39 -0
  533. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/keyword.mjs +172 -0
  534. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/rgb.mjs +33 -0
  535. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/constants.mjs +13 -0
  536. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/adjust.mjs +15 -0
  537. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/adjust_channel.mjs +13 -0
  538. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/change.mjs +12 -0
  539. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/channel.mjs +8 -0
  540. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/darken.mjs +7 -0
  541. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/invert.mjs +12 -0
  542. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/is_dark.mjs +7 -0
  543. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/is_light.mjs +7 -0
  544. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/lighten.mjs +7 -0
  545. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/luminance.mjs +10 -0
  546. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/mix.mjs +20 -0
  547. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/rgba.mjs +18 -0
  548. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/channel.mjs +95 -0
  549. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/index.mjs +11 -0
  550. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/lang.mjs +14 -0
  551. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/unit.mjs +10 -0
  552. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/default-module.mjs +87 -0
  553. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/dependency-injection.mjs +74 -0
  554. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/documentation/comment-provider.mjs +17 -0
  555. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/documentation/documentation-provider.mjs +62 -0
  556. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/documentation/jsdoc.mjs +478 -0
  557. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/languages/generated/ast.mjs +725 -0
  558. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/languages/grammar-config.mjs +20 -0
  559. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/async-parser.mjs +11 -0
  560. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/completion-parser-builder.mjs +13 -0
  561. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/cst-node-builder.mjs +233 -0
  562. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/langium-parser-builder.mjs +17 -0
  563. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/langium-parser.mjs +453 -0
  564. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/lexer.mjs +72 -0
  565. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/parser-builder-base.mjs +336 -0
  566. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/token-builder.mjs +105 -0
  567. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/value-converter.mjs +111 -0
  568. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/linker.mjs +139 -0
  569. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/name-provider.mjs +19 -0
  570. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/references.mjs +80 -0
  571. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/scope-computation.mjs +70 -0
  572. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/scope-provider.mjs +62 -0
  573. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/scope.mjs +60 -0
  574. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/serializer/hydrator.mjs +256 -0
  575. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/serializer/json-serializer.mjs +202 -0
  576. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/service-registry.mjs +69 -0
  577. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/syntax-tree.mjs +73 -0
  578. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/ast-utils.mjs +159 -0
  579. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/caching.mjs +137 -0
  580. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/collections.mjs +177 -0
  581. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/cst-utils.mjs +126 -0
  582. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/disposable.mjs +12 -0
  583. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/errors.mjs +12 -0
  584. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/grammar-loader.mjs +33 -0
  585. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/grammar-utils.mjs +377 -0
  586. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/promise-utils.mjs +56 -0
  587. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/regexp-utils.mjs +239 -0
  588. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/stream.mjs +466 -0
  589. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/uri-utils.mjs +37 -0
  590. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/validation/document-validator.mjs +236 -0
  591. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/validation/validation-registry.mjs +142 -0
  592. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/ast-descriptions.mjs +75 -0
  593. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/ast-node-locator.mjs +43 -0
  594. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/configuration.mjs +81 -0
  595. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/document-builder.mjs +328 -0
  596. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/documents.mjs +210 -0
  597. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/file-system-provider.mjs +15 -0
  598. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/index-manager.mjs +74 -0
  599. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/workspace-lock.mjs +64 -0
  600. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/workspace-manager.mjs +106 -0
  601. package/dist/node_modules/.pnpm/layout-base@1.0.2/node_modules/layout-base/layout-base.mjs +3197 -0
  602. package/dist/node_modules/.pnpm/layout-base@2.0.1/node_modules/layout-base/layout-base.mjs +3745 -0
  603. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.mjs +6 -0
  604. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.mjs +21 -0
  605. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.mjs +21 -0
  606. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.mjs +6 -0
  607. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.mjs +21 -0
  608. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.mjs +6 -0
  609. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.mjs +6 -0
  610. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.mjs +15 -0
  611. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.mjs +18 -0
  612. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.mjs +5 -0
  613. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.mjs +5 -0
  614. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.mjs +6 -0
  615. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_apply.mjs +16 -0
  616. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.mjs +12 -0
  617. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.mjs +13 -0
  618. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.mjs +8 -0
  619. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.mjs +24 -0
  620. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.mjs +10 -0
  621. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.mjs +10 -0
  622. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayReduce.mjs +13 -0
  623. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arraySome.mjs +12 -0
  624. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignMergeValue.mjs +10 -0
  625. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.mjs +13 -0
  626. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.mjs +13 -0
  627. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssign.mjs +8 -0
  628. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.mjs +16 -0
  629. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.mjs +83 -0
  630. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.mjs +21 -0
  631. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseEach.mjs +6 -0
  632. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseExtremum.mjs +14 -0
  633. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFilter.mjs +13 -0
  634. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.mjs +12 -0
  635. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFlatten.mjs +21 -0
  636. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.mjs +5 -0
  637. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseForOwn.mjs +8 -0
  638. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGet.mjs +13 -0
  639. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.mjs +9 -0
  640. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.mjs +14 -0
  641. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseHasIn.mjs +6 -0
  642. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.mjs +9 -0
  643. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.mjs +9 -0
  644. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqual.mjs +14 -0
  645. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqualDeep.mjs +45 -0
  646. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.mjs +9 -0
  647. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMatch.mjs +35 -0
  648. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.mjs +6 -0
  649. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.mjs +22 -0
  650. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.mjs +9 -0
  651. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.mjs +14 -0
  652. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIteratee.mjs +20 -0
  653. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.mjs +19 -0
  654. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.mjs +20 -0
  655. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseLt.mjs +6 -0
  656. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMap.mjs +12 -0
  657. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatches.mjs +15 -0
  658. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatchesProperty.mjs +20 -0
  659. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMerge.mjs +27 -0
  660. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMergeDeep.mjs +61 -0
  661. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseProperty.mjs +8 -0
  662. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyDeep.mjs +9 -0
  663. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseReduce.mjs +9 -0
  664. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRest.mjs +9 -0
  665. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSetToString.mjs +14 -0
  666. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.mjs +10 -0
  667. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.mjs +21 -0
  668. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.mjs +8 -0
  669. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.mjs +46 -0
  670. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.mjs +6 -0
  671. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castFunction.mjs +7 -0
  672. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castPath.mjs +13 -0
  673. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.mjs +9 -0
  674. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.mjs +16 -0
  675. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.mjs +7 -0
  676. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.mjs +9 -0
  677. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.mjs +8 -0
  678. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.mjs +8 -0
  679. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.mjs +11 -0
  680. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.mjs +23 -0
  681. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copySymbols.mjs +8 -0
  682. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.mjs +5 -0
  683. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createAssigner.mjs +23 -0
  684. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseEach.mjs +21 -0
  685. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.mjs +15 -0
  686. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.mjs +10 -0
  687. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.mjs +12 -0
  688. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalArrays.mjs +50 -0
  689. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalByTag.mjs +59 -0
  690. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalObjects.mjs +50 -0
  691. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.mjs +4 -0
  692. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.mjs +9 -0
  693. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.mjs +8 -0
  694. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMatchData.mjs +13 -0
  695. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.mjs +9 -0
  696. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.mjs +5 -0
  697. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.mjs +25 -0
  698. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.mjs +17 -0
  699. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.mjs +34 -0
  700. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.mjs +6 -0
  701. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasPath.mjs +25 -0
  702. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.mjs +8 -0
  703. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.mjs +8 -0
  704. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.mjs +15 -0
  705. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.mjs +10 -0
  706. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.mjs +11 -0
  707. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.mjs +13 -0
  708. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.mjs +43 -0
  709. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.mjs +9 -0
  710. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isFlattenable.mjs +10 -0
  711. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.mjs +10 -0
  712. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIterateeCall.mjs +17 -0
  713. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.mjs +16 -0
  714. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.mjs +7 -0
  715. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.mjs +11 -0
  716. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.mjs +8 -0
  717. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isStrictComparable.mjs +7 -0
  718. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.mjs +7 -0
  719. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.mjs +20 -0
  720. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.mjs +8 -0
  721. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.mjs +7 -0
  722. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.mjs +14 -0
  723. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.mjs +14 -0
  724. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.mjs +9 -0
  725. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.mjs +7 -0
  726. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.mjs +7 -0
  727. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.mjs +10 -0
  728. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapToArray.mjs +10 -0
  729. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_matchesStrictComparable.mjs +11 -0
  730. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_memoizeCapped.mjs +15 -0
  731. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.mjs +5 -0
  732. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.mjs +5 -0
  733. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.mjs +12 -0
  734. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.mjs +18 -0
  735. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.mjs +8 -0
  736. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.mjs +8 -0
  737. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overRest.mjs +21 -0
  738. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.mjs +6 -0
  739. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_safeGet.mjs +12 -0
  740. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.mjs +8 -0
  741. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.mjs +6 -0
  742. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.mjs +10 -0
  743. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToString.mjs +6 -0
  744. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_shortOut.mjs +20 -0
  745. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.mjs +8 -0
  746. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.mjs +8 -0
  747. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.mjs +6 -0
  748. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.mjs +6 -0
  749. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.mjs +22 -0
  750. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.mjs +12 -0
  751. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToPath.mjs +16 -0
  752. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.mjs +11 -0
  753. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.mjs +18 -0
  754. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/clone.mjs +8 -0
  755. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/constant.mjs +8 -0
  756. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.mjs +6 -0
  757. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/filter.mjs +11 -0
  758. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/flatMap.mjs +8 -0
  759. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/flatten.mjs +8 -0
  760. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/forEach.mjs +11 -0
  761. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.mjs +8 -0
  762. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/hasIn.mjs +8 -0
  763. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.mjs +6 -0
  764. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.mjs +13 -0
  765. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.mjs +4 -0
  766. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.mjs +8 -0
  767. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLikeObject.mjs +8 -0
  768. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.mjs +11 -0
  769. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEmpty.mjs +35 -0
  770. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.mjs +13 -0
  771. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.mjs +7 -0
  772. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.mjs +8 -0
  773. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.mjs +7 -0
  774. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.mjs +6 -0
  775. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.mjs +22 -0
  776. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.mjs +8 -0
  777. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.mjs +9 -0
  778. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.mjs +8 -0
  779. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.mjs +9 -0
  780. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.mjs +9 -0
  781. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.mjs +11 -0
  782. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/memoize.mjs +22 -0
  783. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge.mjs +8 -0
  784. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/min.mjs +9 -0
  785. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.mjs +5 -0
  786. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/property.mjs +10 -0
  787. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/reduce.mjs +12 -0
  788. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.mjs +6 -0
  789. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.mjs +6 -0
  790. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toPlainObject.mjs +8 -0
  791. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.mjs +7 -0
  792. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqBy.mjs +8 -0
  793. package/dist/node_modules/.pnpm/marked@15.0.7/node_modules/marked/lib/marked.esm.mjs +2152 -0
  794. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-IEHRJDOE.mjs +1093 -0
  795. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-JOT3LUYC.mjs +3598 -0
  796. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-VJAJSXHY.mjs +2487 -0
  797. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BMEZGHF.mjs +17 -0
  798. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5NNNAHNI.mjs +143 -0
  799. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-6JRP7KZX.mjs +2696 -0
  800. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-7B677QYD.mjs +19 -0
  801. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-A2AXSNBT.mjs +1828 -0
  802. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AEK57VVT.mjs +1961 -0
  803. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-C3MQ5ANM.mjs +332 -0
  804. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-D6G4REZN.mjs +109 -0
  805. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-H2D2JQ3I.mjs +78 -0
  806. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HRU6DDCH.mjs +5018 -0
  807. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-IIMUDSI4.mjs +696 -0
  808. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-K557N5IZ.mjs +17 -0
  809. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-O4NI6UNU.mjs +557 -0
  810. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-RZ5BOZE2.mjs +38 -0
  811. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TYCBKAJE.mjs +57 -0
  812. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-VV3M67IP.mjs +107 -0
  813. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XZIHB7SX.mjs +17 -0
  814. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YTJNT7DU.mjs +3052 -0
  815. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-GIVACNV2.mjs +27 -0
  816. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-COTLJTTW.mjs +27 -0
  817. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/dagre-OKDRZEBW.mjs +662 -0
  818. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-SSKATNLV.mjs +306 -0
  819. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-VNBRO52H.mjs +191 -0
  820. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-Q7BY3M3F.mjs +1168 -0
  821. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-4HSFHLVR.mjs +2339 -0
  822. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-APWFNJXF.mjs +2104 -0
  823. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-7IBYFJ6S.mjs +1215 -0
  824. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-PH2N3AL5.mjs +31 -0
  825. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-U35MCT3I.mjs +1201 -0
  826. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-NDS4AKOZ.mjs +1055 -0
  827. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-ALO5MXBD.mjs +1195 -0
  828. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-IB7DONF6.mjs +188 -0
  829. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-7GDLP6J5.mjs +1340 -0
  830. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-KVF5MWMF.mjs +1168 -0
  831. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-QLVOVGJD.mjs +670 -0
  832. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-X6HHIX6F.mjs +3419 -0
  833. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-DGXRK772.mjs +477 -0
  834. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-YXO3MK2T.mjs +27 -0
  835. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-BDJGKUSR.mjs +1232 -0
  836. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-VJFVF3MP.mjs +1778 -0
  837. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/mermaid.core.mjs +1222 -0
  838. package/dist/node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/index.browser.mjs +13 -0
  839. package/dist/node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/url-alphabet/index.mjs +4 -0
  840. package/dist/node_modules/.pnpm/roughjs@4.6.6/node_modules/roughjs/bundled/rough.esm.mjs +1001 -0
  841. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Enum.mjs +16 -0
  842. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Parser.mjs +164 -0
  843. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Serializer.mjs +29 -0
  844. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Tokenizer.mjs +156 -0
  845. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Utility.mjs +38 -0
  846. package/dist/node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.mjs +42 -0
  847. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/cancellation.mjs +95 -0
  848. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.mjs +133 -0
  849. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/is.mjs +40 -0
  850. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/ral.mjs +28 -0
  851. package/dist/node_modules/.pnpm/vscode-languageserver-textdocument@1.0.12/node_modules/vscode-languageserver-textdocument/lib/esm/main.mjs +225 -0
  852. package/dist/node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.mjs +1262 -0
  853. package/dist/node_modules/.pnpm/vscode-uri@3.0.8/node_modules/vscode-uri/lib/esm/index.mjs +344 -0
  854. package/package.json +25 -25
  855. package/dist/Bash-aFIJDfx0.js +0 -30
  856. package/dist/Css-aYNwv_jI.js +0 -18
  857. package/dist/ElmShikiHighlighter--ESSD5xl.js +0 -7531
  858. package/dist/Rust-CcTG3HST.js +0 -16
  859. package/dist/_basePickBy-q3OsvEq8.js +0 -152
  860. package/dist/_baseUniq-DXyFBvJx.js +0 -583
  861. package/dist/abap-BPxeDPn4.js +0 -6
  862. package/dist/actionscript-3-Cjb604Dt.js +0 -6
  863. package/dist/ada-BSgRrxrM.js +0 -6
  864. package/dist/andromeeda-uXNdzNpk.js +0 -4
  865. package/dist/angular-html-Zg5oS4-1.js +0 -32
  866. package/dist/angular-ts-NgJ-y-q8.js +0 -21
  867. package/dist/apache-Cyj7Ib-S.js +0 -6
  868. package/dist/apex-DAAiMqi-.js +0 -6
  869. package/dist/apl-DxZdCuNa.js +0 -16
  870. package/dist/applescript-CroEtIVQ.js +0 -6
  871. package/dist/ara-9AczF2vY.js +0 -6
  872. package/dist/arc-BLiqnhIS.js +0 -83
  873. package/dist/architecture-4AB2E3PP-CJBMa096.js +0 -5
  874. package/dist/architectureDiagram-IEHRJDOE-BmZLGcAR.js +0 -4633
  875. package/dist/asciidoc-raFNDrGb.js +0 -6
  876. package/dist/asm-C8ld_M07.js +0 -6
  877. package/dist/astro-DVLPOVeH.js +0 -16
  878. package/dist/aurora-x-BwoVEUWZ.js +0 -4
  879. package/dist/awk-gc4Y_RTq.js +0 -6
  880. package/dist/ayu-dark-CxPZkpb2.js +0 -4
  881. package/dist/ballerina-CML1q4Hw.js +0 -6
  882. package/dist/bat-BVW1L4ug.js +0 -6
  883. package/dist/beancount-DYEC72C_.js +0 -6
  884. package/dist/berry-VTah6p7n.js +0 -6
  885. package/dist/bibtex-Bqt_3AVI.js +0 -6
  886. package/dist/bicep-DGk9_2l4.js +0 -6
  887. package/dist/blade-kJIUE9Xv.js +0 -20
  888. package/dist/blockDiagram-JOT3LUYC-CirZxs50.js +0 -2247
  889. package/dist/bsl-tt9CYf2I.js +0 -8
  890. package/dist/c-Cb-M0LQR.js +0 -6
  891. package/dist/c4Diagram-VJAJSXHY-CT04iVyI.js +0 -1581
  892. package/dist/cadence-Di4VMBdJ.js +0 -6
  893. package/dist/cairo-CNbjbPRN.js +0 -8
  894. package/dist/catppuccin-frappe-MQ6irQtC.js +0 -4
  895. package/dist/catppuccin-latte-UMitw0Sv.js +0 -4
  896. package/dist/catppuccin-macchiato-CpTwm6bY.js +0 -4
  897. package/dist/catppuccin-mocha-DAcVHoH1.js +0 -4
  898. package/dist/channel-DJoWX82m.js +0 -5
  899. package/dist/chunk-4BMEZGHF-DbrRFQBV.js +0 -9
  900. package/dist/chunk-A2AXSNBT-8nnxOxzM.js +0 -1372
  901. package/dist/chunk-AEK57VVT-BuA3ibij.js +0 -1415
  902. package/dist/chunk-D6G4REZN-C3CadGUl.js +0 -64
  903. package/dist/chunk-RZ5BOZE2-bPOa0Bzk.js +0 -24
  904. package/dist/chunk-XZIHB7SX-tSNzo5Pm.js +0 -15
  905. package/dist/clarity-WOA8trQj.js +0 -6
  906. package/dist/classDiagram-GIVACNV2-Ikn0C8nj.js +0 -16
  907. package/dist/classDiagram-v2-COTLJTTW-Ikn0C8nj.js +0 -16
  908. package/dist/clojure-r3NcJ8yt.js +0 -6
  909. package/dist/clone-KYMNdRyb.js +0 -8
  910. package/dist/cmake-CQmEhYbr.js +0 -6
  911. package/dist/cobol-DpscMYyB.js +0 -10
  912. package/dist/codeowners-Bt9yU6NX.js +0 -6
  913. package/dist/codeql-2Dcm6WNF.js +0 -6
  914. package/dist/coffee-cT6mLyjo.js +0 -8
  915. package/dist/common-lisp-DuX5KqId.js +0 -6
  916. package/dist/coq-DboLktjX.js +0 -6
  917. package/dist/cpp-Dfuj7FgN.js +0 -18
  918. package/dist/crystal-Cu359yzW.js +0 -18
  919. package/dist/csharp-xQvxkZxj.js +0 -6
  920. package/dist/css-BnL1064W.js +0 -6
  921. package/dist/csv-CmYOceLb.js +0 -6
  922. package/dist/cue-ByErcpN2.js +0 -6
  923. package/dist/cypher-DEVyrV5b.js +0 -6
  924. package/dist/cytoscape.esm-aRg21b6u.js +0 -18120
  925. package/dist/d-CBVqdj3C.js +0 -6
  926. package/dist/dagre-OKDRZEBW-Dd5I26Ao.js +0 -447
  927. package/dist/dark-plus-pUHDTVV0.js +0 -4
  928. package/dist/dart-u2fD-sKr.js +0 -6
  929. package/dist/dax-Crz9Wv4y.js +0 -6
  930. package/dist/desktop-DNXSD5qJ.js +0 -6
  931. package/dist/diagram-SSKATNLV-DZNkfESc.js +0 -221
  932. package/dist/diagram-VNBRO52H-CEw-lSHb.js +0 -126
  933. package/dist/diff-DOdUfPSR.js +0 -6
  934. package/dist/docker-CsHqm9tx.js +0 -6
  935. package/dist/dotenv-BYL4tpZA.js +0 -6
  936. package/dist/dracula-BtZx2Kac.js +0 -4
  937. package/dist/dracula-soft-BKa-aqBv.js +0 -4
  938. package/dist/dream-maker-kevRUHRs.js +0 -6
  939. package/dist/edge-D-R-hhaT.js +0 -12
  940. package/dist/elixir-DuneT2DZ.js +0 -8
  941. package/dist/elm-DdPFQYmH.js +0 -8
  942. package/dist/elmethis.js +0 -70
  943. package/dist/emacs-lisp-Bwasiep6.js +0 -6
  944. package/dist/erDiagram-Q7BY3M3F-Bi-5rbd2.js +0 -841
  945. package/dist/erb-BDkUfiWc.js +0 -10
  946. package/dist/erlang-CxpbZUOc.js +0 -6
  947. package/dist/everforest-dark-DMCBqXCK.js +0 -4
  948. package/dist/everforest-light-BbXl82Em.js +0 -4
  949. package/dist/fennel-B1x5pKr1.js +0 -6
  950. package/dist/fish-BjbXctXH.js +0 -6
  951. package/dist/flowDiagram-4HSFHLVR-Bep2tb38.js +0 -1622
  952. package/dist/fluent-DCuHrNR-.js +0 -6
  953. package/dist/fortran-fixed-form-muAGtm2V.js +0 -8
  954. package/dist/fortran-free-form-Db8k5H7x.js +0 -6
  955. package/dist/fsharp-D3TfYvtR.js +0 -8
  956. package/dist/ganttDiagram-APWFNJXF-MiSNV5UX.js +0 -2493
  957. package/dist/gdresource-C22851qr.js +0 -10
  958. package/dist/gdscript-C-C99PjI.js +0 -6
  959. package/dist/gdshader-0TihrSQl.js +0 -6
  960. package/dist/genie-MtKmcmPo.js +0 -6
  961. package/dist/gherkin-AzJBtK0J.js +0 -6
  962. package/dist/git-commit-Cdscfa4x.js +0 -8
  963. package/dist/git-rebase-BkertWzk.js +0 -8
  964. package/dist/gitGraph-O2Q2CXLX-2aBB3Qlu.js +0 -5
  965. package/dist/gitGraphDiagram-7IBYFJ6S-BeIrUUuR.js +0 -712
  966. package/dist/github-dark-DenFmJkN.js +0 -4
  967. package/dist/github-dark-default-BJPUVz4H.js +0 -4
  968. package/dist/github-dark-dimmed-DUshB20C.js +0 -4
  969. package/dist/github-dark-high-contrast-D3aGCnF8.js +0 -4
  970. package/dist/github-light-JYsPkUQd.js +0 -4
  971. package/dist/github-light-default-D99KPAby.js +0 -4
  972. package/dist/github-light-high-contrast-BbmZE-Mp.js +0 -4
  973. package/dist/gleam-BoJB89vF.js +0 -6
  974. package/dist/glimmer-js-DEzcmBLn.js +0 -14
  975. package/dist/glimmer-ts-CfoDm2Ms.js +0 -14
  976. package/dist/glsl-BcGeWDoy.js +0 -8
  977. package/dist/gnuplot-DgGnPAp8.js +0 -6
  978. package/dist/go-Cw0OOp5U.js +0 -6
  979. package/dist/graph-BN6Ja3dj.js +0 -247
  980. package/dist/graphql-BA9S3A0F.js +0 -14
  981. package/dist/groovy-45PuQEhl.js +0 -6
  982. package/dist/gruvbox-dark-hard-BDGmrmYl.js +0 -4
  983. package/dist/gruvbox-dark-medium-D7OrvcL5.js +0 -4
  984. package/dist/gruvbox-dark-soft-D_75PUdg.js +0 -4
  985. package/dist/gruvbox-light-hard-DhQt1gbs.js +0 -4
  986. package/dist/gruvbox-light-medium-DNXV_Sw8.js +0 -4
  987. package/dist/gruvbox-light-soft-C7ZspGxH.js +0 -4
  988. package/dist/hack-B5c1rmdK.js +0 -10
  989. package/dist/haml-CknjlTyn.js +0 -10
  990. package/dist/handlebars-DxZCQ1Ls.js +0 -14
  991. package/dist/haskell-ClRE648j.js +0 -6
  992. package/dist/haxe-CClgwBXY.js +0 -6
  993. package/dist/hcl-JJeBEFYE.js +0 -6
  994. package/dist/hjson-BollGKL_.js +0 -6
  995. package/dist/hlsl-b3kI2reZ.js +0 -6
  996. package/dist/houston-BDYrDoDW.js +0 -4
  997. package/dist/html-Iy9EJBkL.js +0 -10
  998. package/dist/html-derivative-BfM_d1x5.js +0 -8
  999. package/dist/http-Q-2xEgRf.js +0 -14
  1000. package/dist/hxml-C2bnoXd-.js +0 -8
  1001. package/dist/hy-S8dYOqS_.js +0 -6
  1002. package/dist/imba-DzSSVziz.js +0 -6
  1003. package/dist/index-DzMRhuTS.js +0 -17481
  1004. package/dist/info-4N47QTOZ-MlaygFtp.js +0 -5
  1005. package/dist/infoDiagram-PH2N3AL5-CLDi4hXF.js +0 -22
  1006. package/dist/ini-Cw62c0sR.js +0 -6
  1007. package/dist/init-DjUOC4st.js +0 -16
  1008. package/dist/java-DNw9zkk2.js +0 -6
  1009. package/dist/javascript-CXHlxgtu.js +0 -6
  1010. package/dist/jinja-D3ov3d_Q.js +0 -11
  1011. package/dist/jison-bKZ_ygkY.js +0 -8
  1012. package/dist/journeyDiagram-U35MCT3I-DF_hle8P.js +0 -809
  1013. package/dist/json-D4cXEhM0.js +0 -6
  1014. package/dist/json5-QDX9y-Y9.js +0 -6
  1015. package/dist/jsonc-Bph7GQf8.js +0 -6
  1016. package/dist/jsonl-CCrMgdQc.js +0 -6
  1017. package/dist/jsonnet-SAcLllmN.js +0 -6
  1018. package/dist/jssm-f8vsTkbr.js +0 -6
  1019. package/dist/jsx-BYrS51r7.js +0 -6
  1020. package/dist/julia-k0_CCOLn.js +0 -16
  1021. package/dist/kanagawa-dragon-CiKur4Hl.js +0 -4
  1022. package/dist/kanagawa-lotus-BKu-smKu.js +0 -4
  1023. package/dist/kanagawa-wave-CQwozSzG.js +0 -4
  1024. package/dist/kanban-definition-NDS4AKOZ-D2HjB3aQ.js +0 -719
  1025. package/dist/kotlin-DZs3CUXT.js +0 -6
  1026. package/dist/kusto-gqgW0Ct6.js +0 -6
  1027. package/dist/laserwave-6a00oqik.js +0 -4
  1028. package/dist/latex-ixPYeODw.js +0 -8
  1029. package/dist/layout-eoX7qCNd.js +0 -1325
  1030. package/dist/lean-DM2VgJqL.js +0 -6
  1031. package/dist/less-I_XXVOZl.js +0 -6
  1032. package/dist/light-plus-CZuVqSLX.js +0 -4
  1033. package/dist/linear-CjVlzhPx.js +0 -423
  1034. package/dist/liquid-DQYM4OUl.js +0 -14
  1035. package/dist/llvm-D3Vjgx0u.js +0 -6
  1036. package/dist/log-D-MzYv1Z.js +0 -6
  1037. package/dist/logo-D1k-IeHX.js +0 -6
  1038. package/dist/lua-DcPVWcJ7.js +0 -8
  1039. package/dist/luau-B3dL2bb0.js +0 -6
  1040. package/dist/make-CR9bkdqJ.js +0 -6
  1041. package/dist/markdown-w3MmBOPg.js +0 -6
  1042. package/dist/marko-Dou6ix2a.js +0 -14
  1043. package/dist/material-theme-D6KBX41T.js +0 -4
  1044. package/dist/material-theme-darker-CkRroheE.js +0 -4
  1045. package/dist/material-theme-lighter-BUBw43Yz.js +0 -4
  1046. package/dist/material-theme-ocean-ClGX14Ja.js +0 -4
  1047. package/dist/material-theme-palenight-C1RVm8K1.js +0 -4
  1048. package/dist/matlab-Dj6qX5si.js +0 -6
  1049. package/dist/mdc-Df47nGTR.js +0 -12
  1050. package/dist/mdx-COYqLMfv.js +0 -6
  1051. package/dist/mermaid-parser.core-Cnk6H5Tf.js +0 -12836
  1052. package/dist/mermaid-qIAHIJes.js +0 -6
  1053. package/dist/mermaid.core-CVg1AOGh.js +0 -15467
  1054. package/dist/min-dark-C7ak0t6c.js +0 -4
  1055. package/dist/min-light-CKFxVcPp.js +0 -4
  1056. package/dist/mindmap-definition-ALO5MXBD-RsXchRow.js +0 -3220
  1057. package/dist/mipsasm-BJbuoeDX.js +0 -6
  1058. package/dist/mojo-BFkEE7I6.js +0 -6
  1059. package/dist/monokai-C1KBYcO0.js +0 -4
  1060. package/dist/move-DhZIVzw9.js +0 -6
  1061. package/dist/narrat-Cru3p5ML.js +0 -6
  1062. package/dist/nextflow-JJGGygxI.js +0 -6
  1063. package/dist/nginx-Chu4HPUZ.js +0 -8
  1064. package/dist/night-owl-Bm2rzalh.js +0 -4
  1065. package/dist/nim-m3ClKyoA.js +0 -20
  1066. package/dist/nix-DeKhqLCs.js +0 -6
  1067. package/dist/nord-CC5OiUXg.js +0 -4
  1068. package/dist/nushell-vZ0whCpp.js +0 -6
  1069. package/dist/objective-c-DLUrAoO7.js +0 -6
  1070. package/dist/objective-cpp-BR9pz3Y7.js +0 -6
  1071. package/dist/ocaml-JmaGD6hS.js +0 -6
  1072. package/dist/one-dark-pro-DTA3VF0_.js +0 -4
  1073. package/dist/one-light-D9sNaUtq.js +0 -4
  1074. package/dist/ordinal-DfAQgscy.js +0 -61
  1075. package/dist/packet-KVYON367-B0ibT50B.js +0 -5
  1076. package/dist/pascal-NVmycfDo.js +0 -6
  1077. package/dist/perl-Dvb6TR9K.js +0 -16
  1078. package/dist/php-CJHnp_ft.js +0 -18
  1079. package/dist/pie-R6RNRRYF-eieuCIEv.js +0 -5
  1080. package/dist/pieDiagram-IB7DONF6-z3HiYOHT.js +0 -161
  1081. package/dist/plastic-CSTz3KZp.js +0 -4
  1082. package/dist/plsql-DMWd0imC.js +0 -6
  1083. package/dist/po-GS6uwG3N.js +0 -6
  1084. package/dist/poimandres-C-VADXHD.js +0 -4
  1085. package/dist/polar-kLOnm3TU.js +0 -6
  1086. package/dist/postcss-BHhGrjb8.js +0 -6
  1087. package/dist/powerquery-CMfeLaGU.js +0 -6
  1088. package/dist/powershell-D1mvJxDs.js +0 -6
  1089. package/dist/prisma-pUoUFT3i.js +0 -6
  1090. package/dist/prolog-DY7WzwMi.js +0 -6
  1091. package/dist/proto-CNCp3VWu.js +0 -6
  1092. package/dist/pug-CUZjrycK.js +0 -12
  1093. package/dist/puppet-B0mgPBqt.js +0 -6
  1094. package/dist/purescript-Go548NjJ.js +0 -6
  1095. package/dist/python-x6NdgKMy.js +0 -6
  1096. package/dist/qml-BZvDVi14.js +0 -8
  1097. package/dist/qmldir-BInDYbpo.js +0 -6
  1098. package/dist/qss-8QkBlVEn.js +0 -6
  1099. package/dist/quadrantDiagram-7GDLP6J5-DKNPBuF7.js +0 -1024
  1100. package/dist/r-HSnR3oil.js +0 -6
  1101. package/dist/racket-N6wCNCGC.js +0 -6
  1102. package/dist/radar-MK3ICKWK-EavvS0dk.js +0 -5
  1103. package/dist/raku-DIMO1_4D.js +0 -6
  1104. package/dist/razor-B0naKaWH.js +0 -10
  1105. package/dist/red-7y8PH7HH.js +0 -4
  1106. package/dist/reg-6UpU0EA6.js +0 -6
  1107. package/dist/regexp-DHtjPxOp.js +0 -6
  1108. package/dist/rel-DBIoUiKW.js +0 -6
  1109. package/dist/requirementDiagram-KVF5MWMF-CVtQbDO9.js +0 -851
  1110. package/dist/riscv-DpWk9ieM.js +0 -6
  1111. package/dist/rose-pine-4uTOzEpE.js +0 -4
  1112. package/dist/rose-pine-dawn-GMd81k-m.js +0 -4
  1113. package/dist/rose-pine-moon-CIFp_3PJ.js +0 -4
  1114. package/dist/rst-B64R6T0G.js +0 -22
  1115. package/dist/ruby-DfrpdncG.js +0 -30
  1116. package/dist/rust-B-KPd2nT.js +0 -6
  1117. package/dist/sankeyDiagram-QLVOVGJD-Bv56p0v8.js +0 -808
  1118. package/dist/sas-CJQBty5v.js +0 -8
  1119. package/dist/sass-Zos2Blmo.js +0 -6
  1120. package/dist/scala-7cAMYIqn.js +0 -6
  1121. package/dist/scheme-BQZQETGI.js +0 -6
  1122. package/dist/scss-SeF7XgZE.js +0 -8
  1123. package/dist/sdbl-67k1U2sQ.js +0 -6
  1124. package/dist/sequenceDiagram-X6HHIX6F-B6HsmiCo.js +0 -2281
  1125. package/dist/shaderlab-D-UIeqfT.js +0 -8
  1126. package/dist/shellscript-DmhSIIKI.js +0 -6
  1127. package/dist/shellsession-DJoY56qV.js +0 -8
  1128. package/dist/slack-dark-i7wN4OET.js +0 -4
  1129. package/dist/slack-ochin-ndHf0LoP.js +0 -4
  1130. package/dist/smalltalk-WltKgyq1.js +0 -6
  1131. package/dist/snazzy-light-BlSJXAu4.js +0 -4
  1132. package/dist/solarized-dark-UTmkh7lw.js +0 -4
  1133. package/dist/solarized-light-BheCkDPT.js +0 -4
  1134. package/dist/solidity-C04s0Yy3.js +0 -6
  1135. package/dist/soy-BLRDPjcE.js +0 -8
  1136. package/dist/sparql-DTCaWUmB.js +0 -8
  1137. package/dist/splunk-SGh_QiTm.js +0 -6
  1138. package/dist/sql-CsvhJWkt.js +0 -6
  1139. package/dist/ssh-config-D4I637-k.js +0 -6
  1140. package/dist/stata-CoSdWLbd.js +0 -8
  1141. package/dist/stateDiagram-DGXRK772-DisyN0eE.js +0 -270
  1142. package/dist/stateDiagram-v2-YXO3MK2T-DLdp-rnZ.js +0 -16
  1143. package/dist/stylus-C0YS3cII.js +0 -6
  1144. package/dist/svelte-D5kfh286.js +0 -14
  1145. package/dist/swift-DvTgPjC_.js +0 -6
  1146. package/dist/synthwave-84-NU3C_KFZ.js +0 -4
  1147. package/dist/system-verilog-NDUJ-OOt.js +0 -6
  1148. package/dist/systemd-WbxZvB8q.js +0 -6
  1149. package/dist/talonscript-CL368eRB.js +0 -6
  1150. package/dist/tasl-Dz-WwaLH.js +0 -6
  1151. package/dist/tcl-DlZIgGJq.js +0 -6
  1152. package/dist/templ-BeQ_faiG.js +0 -12
  1153. package/dist/terraform-BlQVOgpk.js +0 -6
  1154. package/dist/tex-D5wZQANC.js +0 -8
  1155. package/dist/timeline-definition-BDJGKUSR-BXC_uTuM.js +0 -804
  1156. package/dist/tokyo-night-DP4TmcQl.js +0 -4
  1157. package/dist/toml-DMRYbshZ.js +0 -6
  1158. package/dist/ts-tags-BhMM8FHa.js +0 -41
  1159. package/dist/tsv-BtvSkaG0.js +0 -6
  1160. package/dist/tsx-D0IYuDPS.js +0 -6
  1161. package/dist/turtle-p-VV8DEc.js +0 -6
  1162. package/dist/twig-B7P5Ovvl.js +0 -18
  1163. package/dist/typescript-DKfvlBCw.js +0 -6
  1164. package/dist/typespec-CTme0-JL.js +0 -6
  1165. package/dist/typst-Dn4vyooU.js +0 -6
  1166. package/dist/v-D7ebitkb.js +0 -6
  1167. package/dist/vala-TRtLMDHC.js +0 -6
  1168. package/dist/vb-B47FrOmA.js +0 -6
  1169. package/dist/verilog-B2TLsC4I.js +0 -6
  1170. package/dist/vesper-BckBta1U.js +0 -4
  1171. package/dist/vhdl-CU5AEtCN.js +0 -6
  1172. package/dist/viml-D-fUhqVn.js +0 -6
  1173. package/dist/vitesse-black-BoGvW84i.js +0 -4
  1174. package/dist/vitesse-dark-Cym-eLtO.js +0 -4
  1175. package/dist/vitesse-light-CcmG315c.js +0 -4
  1176. package/dist/vue-CdwmeZFh.js +0 -31
  1177. package/dist/vue-html-C-PRGoQQ.js +0 -10
  1178. package/dist/vyper-C03y8CZF.js +0 -6
  1179. package/dist/wasm-Bq8UuFo1.js +0 -6
  1180. package/dist/wasm-DQxwEHae.js +0 -7
  1181. package/dist/wenyan-DZPWEYbu.js +0 -6
  1182. package/dist/wgsl-De1GPYf9.js +0 -6
  1183. package/dist/wikitext-C-THcCj2.js +0 -6
  1184. package/dist/wit-BanP67gl.js +0 -6
  1185. package/dist/wolfram-CUT_U39K.js +0 -6
  1186. package/dist/xml-jRL-qgj-.js +0 -8
  1187. package/dist/xsl-CZWICAVO.js +0 -8
  1188. package/dist/xychartDiagram-VJFVF3MP-CkPa_K58.js +0 -1304
  1189. package/dist/yaml-DcQhbMrL.js +0 -6
  1190. package/dist/zenscript-8JCzLCTe.js +0 -6
  1191. package/dist/zig-DhdgDxkm.js +0 -6
@@ -0,0 +1,3598 @@
1
+ var _a, _b;
2
+ import { getLineFunctionsWithOffset } from "./chunk-VV3M67IP.mjs";
3
+ import { getSubGraphTitleMargins } from "./chunk-K557N5IZ.mjs";
4
+ import { createText, replaceIconSubstring } from "./chunk-C3MQ5ANM.mjs";
5
+ import { utils_default, decodeEntities, getStylesFromArray } from "./chunk-O4NI6UNU.mjs";
6
+ import { __name, getConfig, configureSvgSize, log, clear, getConfig2, evaluate, common_default, sanitizeText } from "./chunk-YTJNT7DU.mjs";
7
+ import clone from "../../../../../../lodash-es@4.17.21/node_modules/lodash-es/clone.mjs";
8
+ import "../../../../../../d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/index.mjs";
9
+ import "../../../../../../d3-zoom@3.0.0/node_modules/d3-zoom/src/transform.mjs";
10
+ import { Graph } from "../../../../../../dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/graph.mjs";
11
+ import channel from "../../../../../../khroma@2.1.0/node_modules/khroma/dist/methods/channel.mjs";
12
+ import rgba from "../../../../../../khroma@2.1.0/node_modules/khroma/dist/methods/rgba.mjs";
13
+ import select from "../../../../../../d3-selection@3.0.0/node_modules/d3-selection/src/select.mjs";
14
+ import line from "../../../../../../d3-shape@3.2.0/node_modules/d3-shape/src/line.mjs";
15
+ import curveBasis from "../../../../../../d3-shape@3.2.0/node_modules/d3-shape/src/curve/basis.mjs";
16
+ var parser = function() {
17
+ var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
18
+ for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
19
+ return o2;
20
+ }, "o"), $V0 = [1, 7], $V1 = [1, 13], $V2 = [1, 14], $V3 = [1, 15], $V4 = [1, 19], $V5 = [1, 16], $V6 = [1, 17], $V7 = [1, 18], $V8 = [8, 30], $V9 = [8, 21, 28, 29, 30, 31, 32, 40, 44, 47], $Va = [1, 23], $Vb = [1, 24], $Vc = [8, 15, 16, 21, 28, 29, 30, 31, 32, 40, 44, 47], $Vd = [8, 15, 16, 21, 27, 28, 29, 30, 31, 32, 40, 44, 47], $Ve = [1, 49];
21
+ var parser2 = {
22
+ trace: /* @__PURE__ */ __name(function trace() {
23
+ }, "trace"),
24
+ yy: {},
25
+ 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, "block": 31, "NODE_ID": 32, "nodeShapeNLabel": 33, "dirList": 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": 49, "$accept": 0, "$end": 1 },
26
+ 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: "block", 32: "NODE_ID", 35: "DIR", 36: "NODE_DSTART", 37: "NODE_DEND", 38: "BLOCK_ARROW_START", 39: "BLOCK_ARROW_END", 40: "classDef", 41: "CLASSDEF_ID", 42: "CLASSDEF_STYLEOPTS", 43: "DEFAULT", 44: "class", 45: "CLASSENTITY_IDS", 46: "STYLECLASS", 47: "style", 48: "STYLE_ENTITY_IDS", 49: "STYLE_DEFINITION_DATA" },
27
+ 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], [34, 1], [34, 2], [33, 3], [33, 4], [23, 3], [23, 3], [24, 3], [25, 3]],
28
+ performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
29
+ var $0 = $$.length - 1;
30
+ switch (yystate) {
31
+ case 4:
32
+ yy.getLogger().debug("Rule: separator (NL) ");
33
+ break;
34
+ case 5:
35
+ yy.getLogger().debug("Rule: separator (Space) ");
36
+ break;
37
+ case 6:
38
+ yy.getLogger().debug("Rule: separator (EOF) ");
39
+ break;
40
+ case 7:
41
+ yy.getLogger().debug("Rule: hierarchy: ", $$[$0 - 1]);
42
+ yy.setHierarchy($$[$0 - 1]);
43
+ break;
44
+ case 8:
45
+ yy.getLogger().debug("Stop NL ");
46
+ break;
47
+ case 9:
48
+ yy.getLogger().debug("Stop EOF ");
49
+ break;
50
+ case 10:
51
+ yy.getLogger().debug("Stop NL2 ");
52
+ break;
53
+ case 11:
54
+ yy.getLogger().debug("Stop EOF2 ");
55
+ break;
56
+ case 12:
57
+ yy.getLogger().debug("Rule: statement: ", $$[$0]);
58
+ typeof $$[$0].length === "number" ? this.$ = $$[$0] : this.$ = [$$[$0]];
59
+ break;
60
+ case 13:
61
+ yy.getLogger().debug("Rule: statement #2: ", $$[$0 - 1]);
62
+ this.$ = [$$[$0 - 1]].concat($$[$0]);
63
+ break;
64
+ case 14:
65
+ yy.getLogger().debug("Rule: link: ", $$[$0], yytext);
66
+ this.$ = { edgeTypeStr: $$[$0], label: "" };
67
+ break;
68
+ case 15:
69
+ yy.getLogger().debug("Rule: LABEL link: ", $$[$0 - 3], $$[$0 - 1], $$[$0]);
70
+ this.$ = { edgeTypeStr: $$[$0], label: $$[$0 - 1] };
71
+ break;
72
+ case 18:
73
+ const num = parseInt($$[$0]);
74
+ const spaceId = yy.generateId();
75
+ this.$ = { id: spaceId, type: "space", label: "", width: num, children: [] };
76
+ break;
77
+ case 23:
78
+ yy.getLogger().debug("Rule: (nodeStatement link node) ", $$[$0 - 2], $$[$0 - 1], $$[$0], " typestr: ", $$[$0 - 1].edgeTypeStr);
79
+ const edgeData = yy.edgeStrToEdgeData($$[$0 - 1].edgeTypeStr);
80
+ this.$ = [
81
+ { id: $$[$0 - 2].id, label: $$[$0 - 2].label, type: $$[$0 - 2].type, directions: $$[$0 - 2].directions },
82
+ { id: $$[$0 - 2].id + "-" + $$[$0].id, start: $$[$0 - 2].id, end: $$[$0].id, label: $$[$0 - 1].label, type: "edge", directions: $$[$0].directions, arrowTypeEnd: edgeData, arrowTypeStart: "arrow_open" },
83
+ { id: $$[$0].id, label: $$[$0].label, type: yy.typeStr2Type($$[$0].typeStr), directions: $$[$0].directions }
84
+ ];
85
+ break;
86
+ case 24:
87
+ yy.getLogger().debug("Rule: nodeStatement (abc88 node size) ", $$[$0 - 1], $$[$0]);
88
+ this.$ = { id: $$[$0 - 1].id, label: $$[$0 - 1].label, type: yy.typeStr2Type($$[$0 - 1].typeStr), directions: $$[$0 - 1].directions, widthInColumns: parseInt($$[$0], 10) };
89
+ break;
90
+ case 25:
91
+ yy.getLogger().debug("Rule: nodeStatement (node) ", $$[$0]);
92
+ this.$ = { id: $$[$0].id, label: $$[$0].label, type: yy.typeStr2Type($$[$0].typeStr), directions: $$[$0].directions, widthInColumns: 1 };
93
+ break;
94
+ case 26:
95
+ yy.getLogger().debug("APA123", this ? this : "na");
96
+ yy.getLogger().debug("COLUMNS: ", $$[$0]);
97
+ this.$ = { type: "column-setting", columns: $$[$0] === "auto" ? -1 : parseInt($$[$0]) };
98
+ break;
99
+ case 27:
100
+ yy.getLogger().debug("Rule: id-block statement : ", $$[$0 - 2], $$[$0 - 1]);
101
+ yy.generateId();
102
+ this.$ = { ...$$[$0 - 2], type: "composite", children: $$[$0 - 1] };
103
+ break;
104
+ case 28:
105
+ yy.getLogger().debug("Rule: blockStatement : ", $$[$0 - 2], $$[$0 - 1], $$[$0]);
106
+ const id = yy.generateId();
107
+ this.$ = { id, type: "composite", label: "", children: $$[$0 - 1] };
108
+ break;
109
+ case 29:
110
+ yy.getLogger().debug("Rule: node (NODE_ID separator): ", $$[$0]);
111
+ this.$ = { id: $$[$0] };
112
+ break;
113
+ case 30:
114
+ yy.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", $$[$0 - 1], $$[$0]);
115
+ this.$ = { id: $$[$0 - 1], label: $$[$0].label, typeStr: $$[$0].typeStr, directions: $$[$0].directions };
116
+ break;
117
+ case 31:
118
+ yy.getLogger().debug("Rule: dirList: ", $$[$0]);
119
+ this.$ = [$$[$0]];
120
+ break;
121
+ case 32:
122
+ yy.getLogger().debug("Rule: dirList: ", $$[$0 - 1], $$[$0]);
123
+ this.$ = [$$[$0 - 1]].concat($$[$0]);
124
+ break;
125
+ case 33:
126
+ yy.getLogger().debug("Rule: nodeShapeNLabel: ", $$[$0 - 2], $$[$0 - 1], $$[$0]);
127
+ this.$ = { typeStr: $$[$0 - 2] + $$[$0], label: $$[$0 - 1] };
128
+ break;
129
+ case 34:
130
+ yy.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", $$[$0 - 3], $$[$0 - 2], " #3:", $$[$0 - 1], $$[$0]);
131
+ this.$ = { typeStr: $$[$0 - 3] + $$[$0], label: $$[$0 - 2], directions: $$[$0 - 1] };
132
+ break;
133
+ case 35:
134
+ case 36:
135
+ this.$ = { type: "classDef", id: $$[$0 - 1].trim(), css: $$[$0].trim() };
136
+ break;
137
+ case 37:
138
+ this.$ = { type: "applyClass", id: $$[$0 - 1].trim(), styleClass: $$[$0].trim() };
139
+ break;
140
+ case 38:
141
+ this.$ = { type: "applyStyles", id: $$[$0 - 1].trim(), stylesStr: $$[$0].trim() };
142
+ break;
143
+ }
144
+ }, "anonymous"),
145
+ table: [{ 9: 1, 10: [1, 2] }, { 1: [3] }, { 11: 3, 13: 4, 19: 5, 20: 6, 21: $V0, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: $V1, 29: $V2, 31: $V3, 32: $V4, 40: $V5, 44: $V6, 47: $V7 }, { 8: [1, 20] }, o($V8, [2, 12], { 13: 4, 19: 5, 20: 6, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 11: 21, 21: $V0, 28: $V1, 29: $V2, 31: $V3, 32: $V4, 40: $V5, 44: $V6, 47: $V7 }), o($V9, [2, 16], { 14: 22, 15: $Va, 16: $Vb }), o($V9, [2, 17]), o($V9, [2, 18]), o($V9, [2, 19]), o($V9, [2, 20]), o($V9, [2, 21]), o($V9, [2, 22]), o($Vc, [2, 25], { 27: [1, 25] }), o($V9, [2, 26]), { 19: 26, 26: 12, 32: $V4 }, { 11: 27, 13: 4, 19: 5, 20: 6, 21: $V0, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: $V1, 29: $V2, 31: $V3, 32: $V4, 40: $V5, 44: $V6, 47: $V7 }, { 41: [1, 28], 43: [1, 29] }, { 45: [1, 30] }, { 48: [1, 31] }, o($Vd, [2, 29], { 33: 32, 36: [1, 33], 38: [1, 34] }), { 1: [2, 7] }, o($V8, [2, 13]), { 26: 35, 32: $V4 }, { 32: [2, 14] }, { 17: [1, 36] }, o($Vc, [2, 24]), { 11: 37, 13: 4, 14: 22, 15: $Va, 16: $Vb, 19: 5, 20: 6, 21: $V0, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: $V1, 29: $V2, 31: $V3, 32: $V4, 40: $V5, 44: $V6, 47: $V7 }, { 30: [1, 38] }, { 42: [1, 39] }, { 42: [1, 40] }, { 46: [1, 41] }, { 49: [1, 42] }, o($Vd, [2, 30]), { 18: [1, 43] }, { 18: [1, 44] }, o($Vc, [2, 23]), { 18: [1, 45] }, { 30: [1, 46] }, o($V9, [2, 28]), o($V9, [2, 35]), o($V9, [2, 36]), o($V9, [2, 37]), o($V9, [2, 38]), { 37: [1, 47] }, { 34: 48, 35: $Ve }, { 15: [1, 50] }, o($V9, [2, 27]), o($Vd, [2, 33]), { 39: [1, 51] }, { 34: 52, 35: $Ve, 39: [2, 31] }, { 32: [2, 15] }, o($Vd, [2, 34]), { 39: [2, 32] }],
146
+ defaultActions: { 20: [2, 7], 23: [2, 14], 50: [2, 15], 52: [2, 32] },
147
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
148
+ if (hash.recoverable) {
149
+ this.trace(str);
150
+ } else {
151
+ var error = new Error(str);
152
+ error.hash = hash;
153
+ throw error;
154
+ }
155
+ }, "parseError"),
156
+ parse: /* @__PURE__ */ __name(function parse(input) {
157
+ var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
158
+ var args = lstack.slice.call(arguments, 1);
159
+ var lexer2 = Object.create(this.lexer);
160
+ var sharedState = { yy: {} };
161
+ for (var k in this.yy) {
162
+ if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
163
+ sharedState.yy[k] = this.yy[k];
164
+ }
165
+ }
166
+ lexer2.setInput(input, sharedState.yy);
167
+ sharedState.yy.lexer = lexer2;
168
+ sharedState.yy.parser = this;
169
+ if (typeof lexer2.yylloc == "undefined") {
170
+ lexer2.yylloc = {};
171
+ }
172
+ var yyloc = lexer2.yylloc;
173
+ lstack.push(yyloc);
174
+ var ranges = lexer2.options && lexer2.options.ranges;
175
+ if (typeof sharedState.yy.parseError === "function") {
176
+ this.parseError = sharedState.yy.parseError;
177
+ } else {
178
+ this.parseError = Object.getPrototypeOf(this).parseError;
179
+ }
180
+ function popStack(n) {
181
+ stack.length = stack.length - 2 * n;
182
+ vstack.length = vstack.length - n;
183
+ lstack.length = lstack.length - n;
184
+ }
185
+ __name(popStack, "popStack");
186
+ function lex() {
187
+ var token;
188
+ token = tstack.pop() || lexer2.lex() || EOF;
189
+ if (typeof token !== "number") {
190
+ if (token instanceof Array) {
191
+ tstack = token;
192
+ token = tstack.pop();
193
+ }
194
+ token = self.symbols_[token] || token;
195
+ }
196
+ return token;
197
+ }
198
+ __name(lex, "lex");
199
+ var symbol, state, action, r, yyval = {}, p, len, newState, expected;
200
+ while (true) {
201
+ state = stack[stack.length - 1];
202
+ if (this.defaultActions[state]) {
203
+ action = this.defaultActions[state];
204
+ } else {
205
+ if (symbol === null || typeof symbol == "undefined") {
206
+ symbol = lex();
207
+ }
208
+ action = table[state] && table[state][symbol];
209
+ }
210
+ if (typeof action === "undefined" || !action.length || !action[0]) {
211
+ var errStr = "";
212
+ expected = [];
213
+ for (p in table[state]) {
214
+ if (this.terminals_[p] && p > TERROR) {
215
+ expected.push("'" + this.terminals_[p] + "'");
216
+ }
217
+ }
218
+ if (lexer2.showPosition) {
219
+ errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
220
+ } else {
221
+ errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
222
+ }
223
+ this.parseError(errStr, {
224
+ text: lexer2.match,
225
+ token: this.terminals_[symbol] || symbol,
226
+ line: lexer2.yylineno,
227
+ loc: yyloc,
228
+ expected
229
+ });
230
+ }
231
+ if (action[0] instanceof Array && action.length > 1) {
232
+ throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
233
+ }
234
+ switch (action[0]) {
235
+ case 1:
236
+ stack.push(symbol);
237
+ vstack.push(lexer2.yytext);
238
+ lstack.push(lexer2.yylloc);
239
+ stack.push(action[1]);
240
+ symbol = null;
241
+ {
242
+ yyleng = lexer2.yyleng;
243
+ yytext = lexer2.yytext;
244
+ yylineno = lexer2.yylineno;
245
+ yyloc = lexer2.yylloc;
246
+ }
247
+ break;
248
+ case 2:
249
+ len = this.productions_[action[1]][1];
250
+ yyval.$ = vstack[vstack.length - len];
251
+ yyval._$ = {
252
+ first_line: lstack[lstack.length - (len || 1)].first_line,
253
+ last_line: lstack[lstack.length - 1].last_line,
254
+ first_column: lstack[lstack.length - (len || 1)].first_column,
255
+ last_column: lstack[lstack.length - 1].last_column
256
+ };
257
+ if (ranges) {
258
+ yyval._$.range = [
259
+ lstack[lstack.length - (len || 1)].range[0],
260
+ lstack[lstack.length - 1].range[1]
261
+ ];
262
+ }
263
+ r = this.performAction.apply(yyval, [
264
+ yytext,
265
+ yyleng,
266
+ yylineno,
267
+ sharedState.yy,
268
+ action[1],
269
+ vstack,
270
+ lstack
271
+ ].concat(args));
272
+ if (typeof r !== "undefined") {
273
+ return r;
274
+ }
275
+ if (len) {
276
+ stack = stack.slice(0, -1 * len * 2);
277
+ vstack = vstack.slice(0, -1 * len);
278
+ lstack = lstack.slice(0, -1 * len);
279
+ }
280
+ stack.push(this.productions_[action[1]][0]);
281
+ vstack.push(yyval.$);
282
+ lstack.push(yyval._$);
283
+ newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
284
+ stack.push(newState);
285
+ break;
286
+ case 3:
287
+ return true;
288
+ }
289
+ }
290
+ return true;
291
+ }, "parse")
292
+ };
293
+ var lexer = /* @__PURE__ */ function() {
294
+ var lexer2 = {
295
+ EOF: 1,
296
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
297
+ if (this.yy.parser) {
298
+ this.yy.parser.parseError(str, hash);
299
+ } else {
300
+ throw new Error(str);
301
+ }
302
+ }, "parseError"),
303
+ // resets the lexer, sets new input
304
+ setInput: /* @__PURE__ */ __name(function(input, yy) {
305
+ this.yy = yy || this.yy || {};
306
+ this._input = input;
307
+ this._more = this._backtrack = this.done = false;
308
+ this.yylineno = this.yyleng = 0;
309
+ this.yytext = this.matched = this.match = "";
310
+ this.conditionStack = ["INITIAL"];
311
+ this.yylloc = {
312
+ first_line: 1,
313
+ first_column: 0,
314
+ last_line: 1,
315
+ last_column: 0
316
+ };
317
+ if (this.options.ranges) {
318
+ this.yylloc.range = [0, 0];
319
+ }
320
+ this.offset = 0;
321
+ return this;
322
+ }, "setInput"),
323
+ // consumes and returns one char from the input
324
+ input: /* @__PURE__ */ __name(function() {
325
+ var ch = this._input[0];
326
+ this.yytext += ch;
327
+ this.yyleng++;
328
+ this.offset++;
329
+ this.match += ch;
330
+ this.matched += ch;
331
+ var lines = ch.match(/(?:\r\n?|\n).*/g);
332
+ if (lines) {
333
+ this.yylineno++;
334
+ this.yylloc.last_line++;
335
+ } else {
336
+ this.yylloc.last_column++;
337
+ }
338
+ if (this.options.ranges) {
339
+ this.yylloc.range[1]++;
340
+ }
341
+ this._input = this._input.slice(1);
342
+ return ch;
343
+ }, "input"),
344
+ // unshifts one char (or a string) into the input
345
+ unput: /* @__PURE__ */ __name(function(ch) {
346
+ var len = ch.length;
347
+ var lines = ch.split(/(?:\r\n?|\n)/g);
348
+ this._input = ch + this._input;
349
+ this.yytext = this.yytext.substr(0, this.yytext.length - len);
350
+ this.offset -= len;
351
+ var oldLines = this.match.split(/(?:\r\n?|\n)/g);
352
+ this.match = this.match.substr(0, this.match.length - 1);
353
+ this.matched = this.matched.substr(0, this.matched.length - 1);
354
+ if (lines.length - 1) {
355
+ this.yylineno -= lines.length - 1;
356
+ }
357
+ var r = this.yylloc.range;
358
+ this.yylloc = {
359
+ first_line: this.yylloc.first_line,
360
+ last_line: this.yylineno + 1,
361
+ first_column: this.yylloc.first_column,
362
+ last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
363
+ };
364
+ if (this.options.ranges) {
365
+ this.yylloc.range = [r[0], r[0] + this.yyleng - len];
366
+ }
367
+ this.yyleng = this.yytext.length;
368
+ return this;
369
+ }, "unput"),
370
+ // When called from action, caches matched text and appends it on next action
371
+ more: /* @__PURE__ */ __name(function() {
372
+ this._more = true;
373
+ return this;
374
+ }, "more"),
375
+ // 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.
376
+ reject: /* @__PURE__ */ __name(function() {
377
+ if (this.options.backtrack_lexer) {
378
+ this._backtrack = true;
379
+ } else {
380
+ 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).\n" + this.showPosition(), {
381
+ text: "",
382
+ token: null,
383
+ line: this.yylineno
384
+ });
385
+ }
386
+ return this;
387
+ }, "reject"),
388
+ // retain first n characters of the match
389
+ less: /* @__PURE__ */ __name(function(n) {
390
+ this.unput(this.match.slice(n));
391
+ }, "less"),
392
+ // displays already matched input, i.e. for error messages
393
+ pastInput: /* @__PURE__ */ __name(function() {
394
+ var past = this.matched.substr(0, this.matched.length - this.match.length);
395
+ return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
396
+ }, "pastInput"),
397
+ // displays upcoming input, i.e. for error messages
398
+ upcomingInput: /* @__PURE__ */ __name(function() {
399
+ var next = this.match;
400
+ if (next.length < 20) {
401
+ next += this._input.substr(0, 20 - next.length);
402
+ }
403
+ return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
404
+ }, "upcomingInput"),
405
+ // displays the character position where the lexing error occurred, i.e. for error messages
406
+ showPosition: /* @__PURE__ */ __name(function() {
407
+ var pre = this.pastInput();
408
+ var c = new Array(pre.length + 1).join("-");
409
+ return pre + this.upcomingInput() + "\n" + c + "^";
410
+ }, "showPosition"),
411
+ // test the lexed token: return FALSE when not a match, otherwise return token
412
+ test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
413
+ var token, lines, backup;
414
+ if (this.options.backtrack_lexer) {
415
+ backup = {
416
+ yylineno: this.yylineno,
417
+ yylloc: {
418
+ first_line: this.yylloc.first_line,
419
+ last_line: this.last_line,
420
+ first_column: this.yylloc.first_column,
421
+ last_column: this.yylloc.last_column
422
+ },
423
+ yytext: this.yytext,
424
+ match: this.match,
425
+ matches: this.matches,
426
+ matched: this.matched,
427
+ yyleng: this.yyleng,
428
+ offset: this.offset,
429
+ _more: this._more,
430
+ _input: this._input,
431
+ yy: this.yy,
432
+ conditionStack: this.conditionStack.slice(0),
433
+ done: this.done
434
+ };
435
+ if (this.options.ranges) {
436
+ backup.yylloc.range = this.yylloc.range.slice(0);
437
+ }
438
+ }
439
+ lines = match[0].match(/(?:\r\n?|\n).*/g);
440
+ if (lines) {
441
+ this.yylineno += lines.length;
442
+ }
443
+ this.yylloc = {
444
+ first_line: this.yylloc.last_line,
445
+ last_line: this.yylineno + 1,
446
+ first_column: this.yylloc.last_column,
447
+ last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
448
+ };
449
+ this.yytext += match[0];
450
+ this.match += match[0];
451
+ this.matches = match;
452
+ this.yyleng = this.yytext.length;
453
+ if (this.options.ranges) {
454
+ this.yylloc.range = [this.offset, this.offset += this.yyleng];
455
+ }
456
+ this._more = false;
457
+ this._backtrack = false;
458
+ this._input = this._input.slice(match[0].length);
459
+ this.matched += match[0];
460
+ token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
461
+ if (this.done && this._input) {
462
+ this.done = false;
463
+ }
464
+ if (token) {
465
+ return token;
466
+ } else if (this._backtrack) {
467
+ for (var k in backup) {
468
+ this[k] = backup[k];
469
+ }
470
+ return false;
471
+ }
472
+ return false;
473
+ }, "test_match"),
474
+ // return next match in input
475
+ next: /* @__PURE__ */ __name(function() {
476
+ if (this.done) {
477
+ return this.EOF;
478
+ }
479
+ if (!this._input) {
480
+ this.done = true;
481
+ }
482
+ var token, match, tempMatch, index;
483
+ if (!this._more) {
484
+ this.yytext = "";
485
+ this.match = "";
486
+ }
487
+ var rules = this._currentRules();
488
+ for (var i = 0; i < rules.length; i++) {
489
+ tempMatch = this._input.match(this.rules[rules[i]]);
490
+ if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
491
+ match = tempMatch;
492
+ index = i;
493
+ if (this.options.backtrack_lexer) {
494
+ token = this.test_match(tempMatch, rules[i]);
495
+ if (token !== false) {
496
+ return token;
497
+ } else if (this._backtrack) {
498
+ match = false;
499
+ continue;
500
+ } else {
501
+ return false;
502
+ }
503
+ } else if (!this.options.flex) {
504
+ break;
505
+ }
506
+ }
507
+ }
508
+ if (match) {
509
+ token = this.test_match(match, rules[index]);
510
+ if (token !== false) {
511
+ return token;
512
+ }
513
+ return false;
514
+ }
515
+ if (this._input === "") {
516
+ return this.EOF;
517
+ } else {
518
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
519
+ text: "",
520
+ token: null,
521
+ line: this.yylineno
522
+ });
523
+ }
524
+ }, "next"),
525
+ // return next match that has a token
526
+ lex: /* @__PURE__ */ __name(function lex() {
527
+ var r = this.next();
528
+ if (r) {
529
+ return r;
530
+ } else {
531
+ return this.lex();
532
+ }
533
+ }, "lex"),
534
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
535
+ begin: /* @__PURE__ */ __name(function begin(condition) {
536
+ this.conditionStack.push(condition);
537
+ }, "begin"),
538
+ // pop the previously active lexer condition state off the condition stack
539
+ popState: /* @__PURE__ */ __name(function popState() {
540
+ var n = this.conditionStack.length - 1;
541
+ if (n > 0) {
542
+ return this.conditionStack.pop();
543
+ } else {
544
+ return this.conditionStack[0];
545
+ }
546
+ }, "popState"),
547
+ // produce the lexer rule set which is active for the currently active lexer condition state
548
+ _currentRules: /* @__PURE__ */ __name(function _currentRules() {
549
+ if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
550
+ return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
551
+ } else {
552
+ return this.conditions["INITIAL"].rules;
553
+ }
554
+ }, "_currentRules"),
555
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
556
+ topState: /* @__PURE__ */ __name(function topState(n) {
557
+ n = this.conditionStack.length - 1 - Math.abs(n || 0);
558
+ if (n >= 0) {
559
+ return this.conditionStack[n];
560
+ } else {
561
+ return "INITIAL";
562
+ }
563
+ }, "topState"),
564
+ // alias for begin(condition)
565
+ pushState: /* @__PURE__ */ __name(function pushState(condition) {
566
+ this.begin(condition);
567
+ }, "pushState"),
568
+ // return the number of states currently on the stack
569
+ stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
570
+ return this.conditionStack.length;
571
+ }, "stateStackSize"),
572
+ options: {},
573
+ performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
574
+ switch ($avoiding_name_collisions) {
575
+ case 0:
576
+ return 10;
577
+ case 1:
578
+ yy.getLogger().debug("Found space-block");
579
+ return 31;
580
+ case 2:
581
+ yy.getLogger().debug("Found nl-block");
582
+ return 31;
583
+ case 3:
584
+ yy.getLogger().debug("Found space-block");
585
+ return 29;
586
+ case 4:
587
+ yy.getLogger().debug(".", yy_.yytext);
588
+ break;
589
+ case 5:
590
+ yy.getLogger().debug("_", yy_.yytext);
591
+ break;
592
+ case 6:
593
+ return 5;
594
+ case 7:
595
+ yy_.yytext = -1;
596
+ return 28;
597
+ case 8:
598
+ yy_.yytext = yy_.yytext.replace(/columns\s+/, "");
599
+ yy.getLogger().debug("COLUMNS (LEX)", yy_.yytext);
600
+ return 28;
601
+ case 9:
602
+ this.pushState("md_string");
603
+ break;
604
+ case 10:
605
+ return "MD_STR";
606
+ case 11:
607
+ this.popState();
608
+ break;
609
+ case 12:
610
+ this.pushState("string");
611
+ break;
612
+ case 13:
613
+ yy.getLogger().debug("LEX: POPPING STR:", yy_.yytext);
614
+ this.popState();
615
+ break;
616
+ case 14:
617
+ yy.getLogger().debug("LEX: STR end:", yy_.yytext);
618
+ return "STR";
619
+ case 15:
620
+ yy_.yytext = yy_.yytext.replace(/space\:/, "");
621
+ yy.getLogger().debug("SPACE NUM (LEX)", yy_.yytext);
622
+ return 21;
623
+ case 16:
624
+ yy_.yytext = "1";
625
+ yy.getLogger().debug("COLUMNS (LEX)", yy_.yytext);
626
+ return 21;
627
+ case 17:
628
+ return 43;
629
+ case 18:
630
+ return "LINKSTYLE";
631
+ case 19:
632
+ return "INTERPOLATE";
633
+ case 20:
634
+ this.pushState("CLASSDEF");
635
+ return 40;
636
+ case 21:
637
+ this.popState();
638
+ this.pushState("CLASSDEFID");
639
+ return "DEFAULT_CLASSDEF_ID";
640
+ case 22:
641
+ this.popState();
642
+ this.pushState("CLASSDEFID");
643
+ return 41;
644
+ case 23:
645
+ this.popState();
646
+ return 42;
647
+ case 24:
648
+ this.pushState("CLASS");
649
+ return 44;
650
+ case 25:
651
+ this.popState();
652
+ this.pushState("CLASS_STYLE");
653
+ return 45;
654
+ case 26:
655
+ this.popState();
656
+ return 46;
657
+ case 27:
658
+ this.pushState("STYLE_STMNT");
659
+ return 47;
660
+ case 28:
661
+ this.popState();
662
+ this.pushState("STYLE_DEFINITION");
663
+ return 48;
664
+ case 29:
665
+ this.popState();
666
+ return 49;
667
+ case 30:
668
+ this.pushState("acc_title");
669
+ return "acc_title";
670
+ case 31:
671
+ this.popState();
672
+ return "acc_title_value";
673
+ case 32:
674
+ this.pushState("acc_descr");
675
+ return "acc_descr";
676
+ case 33:
677
+ this.popState();
678
+ return "acc_descr_value";
679
+ case 34:
680
+ this.pushState("acc_descr_multiline");
681
+ break;
682
+ case 35:
683
+ this.popState();
684
+ break;
685
+ case 36:
686
+ return "acc_descr_multiline_value";
687
+ case 37:
688
+ return 30;
689
+ case 38:
690
+ this.popState();
691
+ yy.getLogger().debug("Lex: ((");
692
+ return "NODE_DEND";
693
+ case 39:
694
+ this.popState();
695
+ yy.getLogger().debug("Lex: ((");
696
+ return "NODE_DEND";
697
+ case 40:
698
+ this.popState();
699
+ yy.getLogger().debug("Lex: ))");
700
+ return "NODE_DEND";
701
+ case 41:
702
+ this.popState();
703
+ yy.getLogger().debug("Lex: ((");
704
+ return "NODE_DEND";
705
+ case 42:
706
+ this.popState();
707
+ yy.getLogger().debug("Lex: ((");
708
+ return "NODE_DEND";
709
+ case 43:
710
+ this.popState();
711
+ yy.getLogger().debug("Lex: (-");
712
+ return "NODE_DEND";
713
+ case 44:
714
+ this.popState();
715
+ yy.getLogger().debug("Lex: -)");
716
+ return "NODE_DEND";
717
+ case 45:
718
+ this.popState();
719
+ yy.getLogger().debug("Lex: ((");
720
+ return "NODE_DEND";
721
+ case 46:
722
+ this.popState();
723
+ yy.getLogger().debug("Lex: ]]");
724
+ return "NODE_DEND";
725
+ case 47:
726
+ this.popState();
727
+ yy.getLogger().debug("Lex: (");
728
+ return "NODE_DEND";
729
+ case 48:
730
+ this.popState();
731
+ yy.getLogger().debug("Lex: ])");
732
+ return "NODE_DEND";
733
+ case 49:
734
+ this.popState();
735
+ yy.getLogger().debug("Lex: /]");
736
+ return "NODE_DEND";
737
+ case 50:
738
+ this.popState();
739
+ yy.getLogger().debug("Lex: /]");
740
+ return "NODE_DEND";
741
+ case 51:
742
+ this.popState();
743
+ yy.getLogger().debug("Lex: )]");
744
+ return "NODE_DEND";
745
+ case 52:
746
+ this.popState();
747
+ yy.getLogger().debug("Lex: )");
748
+ return "NODE_DEND";
749
+ case 53:
750
+ this.popState();
751
+ yy.getLogger().debug("Lex: ]>");
752
+ return "NODE_DEND";
753
+ case 54:
754
+ this.popState();
755
+ yy.getLogger().debug("Lex: ]");
756
+ return "NODE_DEND";
757
+ case 55:
758
+ yy.getLogger().debug("Lexa: -)");
759
+ this.pushState("NODE");
760
+ return 36;
761
+ case 56:
762
+ yy.getLogger().debug("Lexa: (-");
763
+ this.pushState("NODE");
764
+ return 36;
765
+ case 57:
766
+ yy.getLogger().debug("Lexa: ))");
767
+ this.pushState("NODE");
768
+ return 36;
769
+ case 58:
770
+ yy.getLogger().debug("Lexa: )");
771
+ this.pushState("NODE");
772
+ return 36;
773
+ case 59:
774
+ yy.getLogger().debug("Lex: (((");
775
+ this.pushState("NODE");
776
+ return 36;
777
+ case 60:
778
+ yy.getLogger().debug("Lexa: )");
779
+ this.pushState("NODE");
780
+ return 36;
781
+ case 61:
782
+ yy.getLogger().debug("Lexa: )");
783
+ this.pushState("NODE");
784
+ return 36;
785
+ case 62:
786
+ yy.getLogger().debug("Lexa: )");
787
+ this.pushState("NODE");
788
+ return 36;
789
+ case 63:
790
+ yy.getLogger().debug("Lexc: >");
791
+ this.pushState("NODE");
792
+ return 36;
793
+ case 64:
794
+ yy.getLogger().debug("Lexa: ([");
795
+ this.pushState("NODE");
796
+ return 36;
797
+ case 65:
798
+ yy.getLogger().debug("Lexa: )");
799
+ this.pushState("NODE");
800
+ return 36;
801
+ case 66:
802
+ this.pushState("NODE");
803
+ return 36;
804
+ case 67:
805
+ this.pushState("NODE");
806
+ return 36;
807
+ case 68:
808
+ this.pushState("NODE");
809
+ return 36;
810
+ case 69:
811
+ this.pushState("NODE");
812
+ return 36;
813
+ case 70:
814
+ this.pushState("NODE");
815
+ return 36;
816
+ case 71:
817
+ this.pushState("NODE");
818
+ return 36;
819
+ case 72:
820
+ this.pushState("NODE");
821
+ return 36;
822
+ case 73:
823
+ yy.getLogger().debug("Lexa: [");
824
+ this.pushState("NODE");
825
+ return 36;
826
+ case 74:
827
+ this.pushState("BLOCK_ARROW");
828
+ yy.getLogger().debug("LEX ARR START");
829
+ return 38;
830
+ case 75:
831
+ yy.getLogger().debug("Lex: NODE_ID", yy_.yytext);
832
+ return 32;
833
+ case 76:
834
+ yy.getLogger().debug("Lex: EOF", yy_.yytext);
835
+ return 8;
836
+ case 77:
837
+ this.pushState("md_string");
838
+ break;
839
+ case 78:
840
+ this.pushState("md_string");
841
+ break;
842
+ case 79:
843
+ return "NODE_DESCR";
844
+ case 80:
845
+ this.popState();
846
+ break;
847
+ case 81:
848
+ yy.getLogger().debug("Lex: Starting string");
849
+ this.pushState("string");
850
+ break;
851
+ case 82:
852
+ yy.getLogger().debug("LEX ARR: Starting string");
853
+ this.pushState("string");
854
+ break;
855
+ case 83:
856
+ yy.getLogger().debug("LEX: NODE_DESCR:", yy_.yytext);
857
+ return "NODE_DESCR";
858
+ case 84:
859
+ yy.getLogger().debug("LEX POPPING");
860
+ this.popState();
861
+ break;
862
+ case 85:
863
+ yy.getLogger().debug("Lex: =>BAE");
864
+ this.pushState("ARROW_DIR");
865
+ break;
866
+ case 86:
867
+ yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
868
+ yy.getLogger().debug("Lex (right): dir:", yy_.yytext);
869
+ return "DIR";
870
+ case 87:
871
+ yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
872
+ yy.getLogger().debug("Lex (left):", yy_.yytext);
873
+ return "DIR";
874
+ case 88:
875
+ yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
876
+ yy.getLogger().debug("Lex (x):", yy_.yytext);
877
+ return "DIR";
878
+ case 89:
879
+ yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
880
+ yy.getLogger().debug("Lex (y):", yy_.yytext);
881
+ return "DIR";
882
+ case 90:
883
+ yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
884
+ yy.getLogger().debug("Lex (up):", yy_.yytext);
885
+ return "DIR";
886
+ case 91:
887
+ yy_.yytext = yy_.yytext.replace(/^,\s*/, "");
888
+ yy.getLogger().debug("Lex (down):", yy_.yytext);
889
+ return "DIR";
890
+ case 92:
891
+ yy_.yytext = "]>";
892
+ yy.getLogger().debug("Lex (ARROW_DIR end):", yy_.yytext);
893
+ this.popState();
894
+ this.popState();
895
+ return "BLOCK_ARROW_END";
896
+ case 93:
897
+ yy.getLogger().debug("Lex: LINK", "#" + yy_.yytext + "#");
898
+ return 15;
899
+ case 94:
900
+ yy.getLogger().debug("Lex: LINK", yy_.yytext);
901
+ return 15;
902
+ case 95:
903
+ yy.getLogger().debug("Lex: LINK", yy_.yytext);
904
+ return 15;
905
+ case 96:
906
+ yy.getLogger().debug("Lex: LINK", yy_.yytext);
907
+ return 15;
908
+ case 97:
909
+ yy.getLogger().debug("Lex: START_LINK", yy_.yytext);
910
+ this.pushState("LLABEL");
911
+ return 16;
912
+ case 98:
913
+ yy.getLogger().debug("Lex: START_LINK", yy_.yytext);
914
+ this.pushState("LLABEL");
915
+ return 16;
916
+ case 99:
917
+ yy.getLogger().debug("Lex: START_LINK", yy_.yytext);
918
+ this.pushState("LLABEL");
919
+ return 16;
920
+ case 100:
921
+ this.pushState("md_string");
922
+ break;
923
+ case 101:
924
+ yy.getLogger().debug("Lex: Starting string");
925
+ this.pushState("string");
926
+ return "LINK_LABEL";
927
+ case 102:
928
+ this.popState();
929
+ yy.getLogger().debug("Lex: LINK", "#" + yy_.yytext + "#");
930
+ return 15;
931
+ case 103:
932
+ this.popState();
933
+ yy.getLogger().debug("Lex: LINK", yy_.yytext);
934
+ return 15;
935
+ case 104:
936
+ this.popState();
937
+ yy.getLogger().debug("Lex: LINK", yy_.yytext);
938
+ return 15;
939
+ case 105:
940
+ yy.getLogger().debug("Lex: COLON", yy_.yytext);
941
+ yy_.yytext = yy_.yytext.slice(1);
942
+ return 27;
943
+ }
944
+ }, "anonymous"),
945
+ rules: [/^(?:block-beta\b)/, /^(?:block\s+)/, /^(?:block\n+)/, /^(?:block:)/, /^(?:[\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+)/],
946
+ conditions: { "STYLE_DEFINITION": { "rules": [29], "inclusive": false }, "STYLE_STMNT": { "rules": [28], "inclusive": false }, "CLASSDEFID": { "rules": [23], "inclusive": false }, "CLASSDEF": { "rules": [21, 22], "inclusive": false }, "CLASS_STYLE": { "rules": [26], "inclusive": false }, "CLASS": { "rules": [25], "inclusive": false }, "LLABEL": { "rules": [100, 101, 102, 103, 104], "inclusive": false }, "ARROW_DIR": { "rules": [86, 87, 88, 89, 90, 91, 92], "inclusive": false }, "BLOCK_ARROW": { "rules": [77, 82, 85], "inclusive": false }, "NODE": { "rules": [38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 78, 81], "inclusive": false }, "md_string": { "rules": [10, 11, 79, 80], "inclusive": false }, "space": { "rules": [], "inclusive": false }, "string": { "rules": [13, 14, 83, 84], "inclusive": false }, "acc_descr_multiline": { "rules": [35, 36], "inclusive": false }, "acc_descr": { "rules": [33], "inclusive": false }, "acc_title": { "rules": [31], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 15, 16, 17, 18, 19, 20, 24, 27, 30, 32, 34, 37, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 93, 94, 95, 96, 97, 98, 99, 105], "inclusive": true } }
947
+ };
948
+ return lexer2;
949
+ }();
950
+ parser2.lexer = lexer;
951
+ function Parser() {
952
+ this.yy = {};
953
+ }
954
+ __name(Parser, "Parser");
955
+ Parser.prototype = parser2;
956
+ parser2.Parser = Parser;
957
+ return new Parser();
958
+ }();
959
+ parser.parser = parser;
960
+ var block_default = parser;
961
+ var blockDatabase = /* @__PURE__ */ new Map();
962
+ var edgeList = [];
963
+ var edgeCount = /* @__PURE__ */ new Map();
964
+ var COLOR_KEYWORD = "color";
965
+ var FILL_KEYWORD = "fill";
966
+ var BG_FILL = "bgFill";
967
+ var STYLECLASS_SEP = ",";
968
+ var config = getConfig2();
969
+ var classes = /* @__PURE__ */ new Map();
970
+ var sanitizeText2 = /* @__PURE__ */ __name((txt) => common_default.sanitizeText(txt, config), "sanitizeText");
971
+ var addStyleClass = /* @__PURE__ */ __name(function(id, styleAttributes = "") {
972
+ let foundClass = classes.get(id);
973
+ if (!foundClass) {
974
+ foundClass = { id, styles: [], textStyles: [] };
975
+ classes.set(id, foundClass);
976
+ }
977
+ if (styleAttributes !== void 0 && styleAttributes !== null) {
978
+ styleAttributes.split(STYLECLASS_SEP).forEach((attrib) => {
979
+ const fixedAttrib = attrib.replace(/([^;]*);/, "$1").trim();
980
+ if (RegExp(COLOR_KEYWORD).exec(attrib)) {
981
+ const newStyle1 = fixedAttrib.replace(FILL_KEYWORD, BG_FILL);
982
+ const newStyle2 = newStyle1.replace(COLOR_KEYWORD, FILL_KEYWORD);
983
+ foundClass.textStyles.push(newStyle2);
984
+ }
985
+ foundClass.styles.push(fixedAttrib);
986
+ });
987
+ }
988
+ }, "addStyleClass");
989
+ var addStyle2Node = /* @__PURE__ */ __name(function(id, styles = "") {
990
+ const foundBlock = blockDatabase.get(id);
991
+ if (styles !== void 0 && styles !== null) {
992
+ foundBlock.styles = styles.split(STYLECLASS_SEP);
993
+ }
994
+ }, "addStyle2Node");
995
+ var setCssClass = /* @__PURE__ */ __name(function(itemIds, cssClassName) {
996
+ itemIds.split(",").forEach(function(id) {
997
+ let foundBlock = blockDatabase.get(id);
998
+ if (foundBlock === void 0) {
999
+ const trimmedId = id.trim();
1000
+ foundBlock = { id: trimmedId, type: "na", children: [] };
1001
+ blockDatabase.set(trimmedId, foundBlock);
1002
+ }
1003
+ if (!foundBlock.classes) {
1004
+ foundBlock.classes = [];
1005
+ }
1006
+ foundBlock.classes.push(cssClassName);
1007
+ });
1008
+ }, "setCssClass");
1009
+ var populateBlockDatabase = /* @__PURE__ */ __name((_blockList, parent) => {
1010
+ const blockList = _blockList.flat();
1011
+ const children = [];
1012
+ for (const block of blockList) {
1013
+ if (block.label) {
1014
+ block.label = sanitizeText2(block.label);
1015
+ }
1016
+ if (block.type === "classDef") {
1017
+ addStyleClass(block.id, block.css);
1018
+ continue;
1019
+ }
1020
+ if (block.type === "applyClass") {
1021
+ setCssClass(block.id, (block == null ? void 0 : block.styleClass) ?? "");
1022
+ continue;
1023
+ }
1024
+ if (block.type === "applyStyles") {
1025
+ if (block == null ? void 0 : block.stylesStr) {
1026
+ addStyle2Node(block.id, block == null ? void 0 : block.stylesStr);
1027
+ }
1028
+ continue;
1029
+ }
1030
+ if (block.type === "column-setting") {
1031
+ parent.columns = block.columns ?? -1;
1032
+ } else if (block.type === "edge") {
1033
+ const count = (edgeCount.get(block.id) ?? 0) + 1;
1034
+ edgeCount.set(block.id, count);
1035
+ block.id = count + "-" + block.id;
1036
+ edgeList.push(block);
1037
+ } else {
1038
+ if (!block.label) {
1039
+ if (block.type === "composite") {
1040
+ block.label = "";
1041
+ } else {
1042
+ block.label = block.id;
1043
+ }
1044
+ }
1045
+ const existingBlock = blockDatabase.get(block.id);
1046
+ if (existingBlock === void 0) {
1047
+ blockDatabase.set(block.id, block);
1048
+ } else {
1049
+ if (block.type !== "na") {
1050
+ existingBlock.type = block.type;
1051
+ }
1052
+ if (block.label !== block.id) {
1053
+ existingBlock.label = block.label;
1054
+ }
1055
+ }
1056
+ if (block.children) {
1057
+ populateBlockDatabase(block.children, block);
1058
+ }
1059
+ if (block.type === "space") {
1060
+ const w = block.width ?? 1;
1061
+ for (let j = 0; j < w; j++) {
1062
+ const newBlock = clone(block);
1063
+ newBlock.id = newBlock.id + "-" + j;
1064
+ blockDatabase.set(newBlock.id, newBlock);
1065
+ children.push(newBlock);
1066
+ }
1067
+ } else if (existingBlock === void 0) {
1068
+ children.push(block);
1069
+ }
1070
+ }
1071
+ }
1072
+ parent.children = children;
1073
+ }, "populateBlockDatabase");
1074
+ var blocks = [];
1075
+ var rootBlock = { id: "root", type: "composite", children: [], columns: -1 };
1076
+ var clear2 = /* @__PURE__ */ __name(() => {
1077
+ log.debug("Clear called");
1078
+ clear();
1079
+ rootBlock = { id: "root", type: "composite", children: [], columns: -1 };
1080
+ blockDatabase = /* @__PURE__ */ new Map([["root", rootBlock]]);
1081
+ blocks = [];
1082
+ classes = /* @__PURE__ */ new Map();
1083
+ edgeList = [];
1084
+ edgeCount = /* @__PURE__ */ new Map();
1085
+ }, "clear");
1086
+ function typeStr2Type(typeStr) {
1087
+ log.debug("typeStr2Type", typeStr);
1088
+ switch (typeStr) {
1089
+ case "[]":
1090
+ return "square";
1091
+ case "()":
1092
+ log.debug("we have a round");
1093
+ return "round";
1094
+ case "(())":
1095
+ return "circle";
1096
+ case ">]":
1097
+ return "rect_left_inv_arrow";
1098
+ case "{}":
1099
+ return "diamond";
1100
+ case "{{}}":
1101
+ return "hexagon";
1102
+ case "([])":
1103
+ return "stadium";
1104
+ case "[[]]":
1105
+ return "subroutine";
1106
+ case "[()]":
1107
+ return "cylinder";
1108
+ case "((()))":
1109
+ return "doublecircle";
1110
+ case "[//]":
1111
+ return "lean_right";
1112
+ case "[\\\\]":
1113
+ return "lean_left";
1114
+ case "[/\\]":
1115
+ return "trapezoid";
1116
+ case "[\\/]":
1117
+ return "inv_trapezoid";
1118
+ case "<[]>":
1119
+ return "block_arrow";
1120
+ default:
1121
+ return "na";
1122
+ }
1123
+ }
1124
+ __name(typeStr2Type, "typeStr2Type");
1125
+ function edgeTypeStr2Type(typeStr) {
1126
+ log.debug("typeStr2Type", typeStr);
1127
+ switch (typeStr) {
1128
+ case "==":
1129
+ return "thick";
1130
+ default:
1131
+ return "normal";
1132
+ }
1133
+ }
1134
+ __name(edgeTypeStr2Type, "edgeTypeStr2Type");
1135
+ function edgeStrToEdgeData(typeStr) {
1136
+ switch (typeStr.trim()) {
1137
+ case "--x":
1138
+ return "arrow_cross";
1139
+ case "--o":
1140
+ return "arrow_circle";
1141
+ default:
1142
+ return "arrow_point";
1143
+ }
1144
+ }
1145
+ __name(edgeStrToEdgeData, "edgeStrToEdgeData");
1146
+ var cnt = 0;
1147
+ var generateId = /* @__PURE__ */ __name(() => {
1148
+ cnt++;
1149
+ return "id-" + Math.random().toString(36).substr(2, 12) + "-" + cnt;
1150
+ }, "generateId");
1151
+ var setHierarchy = /* @__PURE__ */ __name((block) => {
1152
+ rootBlock.children = block;
1153
+ populateBlockDatabase(block, rootBlock);
1154
+ blocks = rootBlock.children;
1155
+ }, "setHierarchy");
1156
+ var getColumns = /* @__PURE__ */ __name((blockId) => {
1157
+ const block = blockDatabase.get(blockId);
1158
+ if (!block) {
1159
+ return -1;
1160
+ }
1161
+ if (block.columns) {
1162
+ return block.columns;
1163
+ }
1164
+ if (!block.children) {
1165
+ return -1;
1166
+ }
1167
+ return block.children.length;
1168
+ }, "getColumns");
1169
+ var getBlocksFlat = /* @__PURE__ */ __name(() => {
1170
+ return [...blockDatabase.values()];
1171
+ }, "getBlocksFlat");
1172
+ var getBlocks = /* @__PURE__ */ __name(() => {
1173
+ return blocks || [];
1174
+ }, "getBlocks");
1175
+ var getEdges = /* @__PURE__ */ __name(() => {
1176
+ return edgeList;
1177
+ }, "getEdges");
1178
+ var getBlock = /* @__PURE__ */ __name((id) => {
1179
+ return blockDatabase.get(id);
1180
+ }, "getBlock");
1181
+ var setBlock = /* @__PURE__ */ __name((block) => {
1182
+ blockDatabase.set(block.id, block);
1183
+ }, "setBlock");
1184
+ var getLogger = /* @__PURE__ */ __name(() => console, "getLogger");
1185
+ var getClasses = /* @__PURE__ */ __name(function() {
1186
+ return classes;
1187
+ }, "getClasses");
1188
+ var db = {
1189
+ getConfig: /* @__PURE__ */ __name(() => getConfig().block, "getConfig"),
1190
+ typeStr2Type,
1191
+ edgeTypeStr2Type,
1192
+ edgeStrToEdgeData,
1193
+ getLogger,
1194
+ getBlocksFlat,
1195
+ getBlocks,
1196
+ getEdges,
1197
+ setHierarchy,
1198
+ getBlock,
1199
+ setBlock,
1200
+ getColumns,
1201
+ getClasses,
1202
+ clear: clear2,
1203
+ generateId
1204
+ };
1205
+ var blockDB_default = db;
1206
+ var fade = /* @__PURE__ */ __name((color, opacity) => {
1207
+ const channel2 = channel;
1208
+ const r = channel2(color, "r");
1209
+ const g = channel2(color, "g");
1210
+ const b = channel2(color, "b");
1211
+ return rgba(r, g, b, opacity);
1212
+ }, "fade");
1213
+ var getStyles = /* @__PURE__ */ __name((options) => `.label {
1214
+ font-family: ${options.fontFamily};
1215
+ color: ${options.nodeTextColor || options.textColor};
1216
+ }
1217
+ .cluster-label text {
1218
+ fill: ${options.titleColor};
1219
+ }
1220
+ .cluster-label span,p {
1221
+ color: ${options.titleColor};
1222
+ }
1223
+
1224
+
1225
+
1226
+ .label text,span,p {
1227
+ fill: ${options.nodeTextColor || options.textColor};
1228
+ color: ${options.nodeTextColor || options.textColor};
1229
+ }
1230
+
1231
+ .node rect,
1232
+ .node circle,
1233
+ .node ellipse,
1234
+ .node polygon,
1235
+ .node path {
1236
+ fill: ${options.mainBkg};
1237
+ stroke: ${options.nodeBorder};
1238
+ stroke-width: 1px;
1239
+ }
1240
+ .flowchart-label text {
1241
+ text-anchor: middle;
1242
+ }
1243
+ // .flowchart-label .text-outer-tspan {
1244
+ // text-anchor: middle;
1245
+ // }
1246
+ // .flowchart-label .text-inner-tspan {
1247
+ // text-anchor: start;
1248
+ // }
1249
+
1250
+ .node .label {
1251
+ text-align: center;
1252
+ }
1253
+ .node.clickable {
1254
+ cursor: pointer;
1255
+ }
1256
+
1257
+ .arrowheadPath {
1258
+ fill: ${options.arrowheadColor};
1259
+ }
1260
+
1261
+ .edgePath .path {
1262
+ stroke: ${options.lineColor};
1263
+ stroke-width: 2.0px;
1264
+ }
1265
+
1266
+ .flowchart-link {
1267
+ stroke: ${options.lineColor};
1268
+ fill: none;
1269
+ }
1270
+
1271
+ .edgeLabel {
1272
+ background-color: ${options.edgeLabelBackground};
1273
+ rect {
1274
+ opacity: 0.5;
1275
+ background-color: ${options.edgeLabelBackground};
1276
+ fill: ${options.edgeLabelBackground};
1277
+ }
1278
+ text-align: center;
1279
+ }
1280
+
1281
+ /* For html labels only */
1282
+ .labelBkg {
1283
+ background-color: ${fade(options.edgeLabelBackground, 0.5)};
1284
+ // background-color:
1285
+ }
1286
+
1287
+ .node .cluster {
1288
+ // fill: ${fade(options.mainBkg, 0.5)};
1289
+ fill: ${fade(options.clusterBkg, 0.5)};
1290
+ stroke: ${fade(options.clusterBorder, 0.2)};
1291
+ box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
1292
+ stroke-width: 1px;
1293
+ }
1294
+
1295
+ .cluster text {
1296
+ fill: ${options.titleColor};
1297
+ }
1298
+
1299
+ .cluster span,p {
1300
+ color: ${options.titleColor};
1301
+ }
1302
+ /* .cluster div {
1303
+ color: ${options.titleColor};
1304
+ } */
1305
+
1306
+ div.mermaidTooltip {
1307
+ position: absolute;
1308
+ text-align: center;
1309
+ max-width: 200px;
1310
+ padding: 2px;
1311
+ font-family: ${options.fontFamily};
1312
+ font-size: 12px;
1313
+ background: ${options.tertiaryColor};
1314
+ border: 1px solid ${options.border2};
1315
+ border-radius: 2px;
1316
+ pointer-events: none;
1317
+ z-index: 100;
1318
+ }
1319
+
1320
+ .flowchartTitleText {
1321
+ text-anchor: middle;
1322
+ font-size: 18px;
1323
+ fill: ${options.textColor};
1324
+ }
1325
+ `, "getStyles");
1326
+ var styles_default = getStyles;
1327
+ var insertMarkers = /* @__PURE__ */ __name((elem, markerArray, type, id) => {
1328
+ markerArray.forEach((markerName) => {
1329
+ markers[markerName](elem, type, id);
1330
+ });
1331
+ }, "insertMarkers");
1332
+ var extension = /* @__PURE__ */ __name((elem, type, id) => {
1333
+ log.trace("Making markers for ", id);
1334
+ elem.append("defs").append("marker").attr("id", id + "_" + type + "-extensionStart").attr("class", "marker extension " + type).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");
1335
+ elem.append("defs").append("marker").attr("id", id + "_" + type + "-extensionEnd").attr("class", "marker extension " + type).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");
1336
+ }, "extension");
1337
+ var composition = /* @__PURE__ */ __name((elem, type, id) => {
1338
+ elem.append("defs").append("marker").attr("id", id + "_" + type + "-compositionStart").attr("class", "marker composition " + type).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");
1339
+ elem.append("defs").append("marker").attr("id", id + "_" + type + "-compositionEnd").attr("class", "marker composition " + type).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");
1340
+ }, "composition");
1341
+ var aggregation = /* @__PURE__ */ __name((elem, type, id) => {
1342
+ elem.append("defs").append("marker").attr("id", id + "_" + type + "-aggregationStart").attr("class", "marker aggregation " + type).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");
1343
+ elem.append("defs").append("marker").attr("id", id + "_" + type + "-aggregationEnd").attr("class", "marker aggregation " + type).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");
1344
+ }, "aggregation");
1345
+ var dependency = /* @__PURE__ */ __name((elem, type, id) => {
1346
+ elem.append("defs").append("marker").attr("id", id + "_" + type + "-dependencyStart").attr("class", "marker dependency " + type).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");
1347
+ elem.append("defs").append("marker").attr("id", id + "_" + type + "-dependencyEnd").attr("class", "marker dependency " + type).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");
1348
+ }, "dependency");
1349
+ var lollipop = /* @__PURE__ */ __name((elem, type, id) => {
1350
+ elem.append("defs").append("marker").attr("id", id + "_" + type + "-lollipopStart").attr("class", "marker lollipop " + type).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);
1351
+ elem.append("defs").append("marker").attr("id", id + "_" + type + "-lollipopEnd").attr("class", "marker lollipop " + type).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);
1352
+ }, "lollipop");
1353
+ var point = /* @__PURE__ */ __name((elem, type, id) => {
1354
+ elem.append("marker").attr("id", id + "_" + type + "-pointEnd").attr("class", "marker " + type).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");
1355
+ elem.append("marker").attr("id", id + "_" + type + "-pointStart").attr("class", "marker " + type).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");
1356
+ }, "point");
1357
+ var circle = /* @__PURE__ */ __name((elem, type, id) => {
1358
+ elem.append("marker").attr("id", id + "_" + type + "-circleEnd").attr("class", "marker " + type).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");
1359
+ elem.append("marker").attr("id", id + "_" + type + "-circleStart").attr("class", "marker " + type).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");
1360
+ }, "circle");
1361
+ var cross = /* @__PURE__ */ __name((elem, type, id) => {
1362
+ elem.append("marker").attr("id", id + "_" + type + "-crossEnd").attr("class", "marker cross " + type).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");
1363
+ elem.append("marker").attr("id", id + "_" + type + "-crossStart").attr("class", "marker cross " + type).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");
1364
+ }, "cross");
1365
+ var barb = /* @__PURE__ */ __name((elem, type, id) => {
1366
+ elem.append("defs").append("marker").attr("id", id + "_" + type + "-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");
1367
+ }, "barb");
1368
+ var markers = {
1369
+ extension,
1370
+ composition,
1371
+ aggregation,
1372
+ dependency,
1373
+ lollipop,
1374
+ point,
1375
+ circle,
1376
+ cross,
1377
+ barb
1378
+ };
1379
+ var markers_default = insertMarkers;
1380
+ var padding = ((_b = (_a = getConfig2()) == null ? void 0 : _a.block) == null ? void 0 : _b.padding) ?? 8;
1381
+ function calculateBlockPosition(columns, position) {
1382
+ if (columns === 0 || !Number.isInteger(columns)) {
1383
+ throw new Error("Columns must be an integer !== 0.");
1384
+ }
1385
+ if (position < 0 || !Number.isInteger(position)) {
1386
+ throw new Error("Position must be a non-negative integer." + position);
1387
+ }
1388
+ if (columns < 0) {
1389
+ return { px: position, py: 0 };
1390
+ }
1391
+ if (columns === 1) {
1392
+ return { px: 0, py: position };
1393
+ }
1394
+ const px = position % columns;
1395
+ const py = Math.floor(position / columns);
1396
+ return { px, py };
1397
+ }
1398
+ __name(calculateBlockPosition, "calculateBlockPosition");
1399
+ var getMaxChildSize = /* @__PURE__ */ __name((block) => {
1400
+ let maxWidth = 0;
1401
+ let maxHeight = 0;
1402
+ for (const child of block.children) {
1403
+ const { width, height, x, y } = child.size ?? { width: 0, height: 0, x: 0, y: 0 };
1404
+ log.debug(
1405
+ "getMaxChildSize abc95 child:",
1406
+ child.id,
1407
+ "width:",
1408
+ width,
1409
+ "height:",
1410
+ height,
1411
+ "x:",
1412
+ x,
1413
+ "y:",
1414
+ y,
1415
+ child.type
1416
+ );
1417
+ if (child.type === "space") {
1418
+ continue;
1419
+ }
1420
+ if (width > maxWidth) {
1421
+ maxWidth = width / (block.widthInColumns ?? 1);
1422
+ }
1423
+ if (height > maxHeight) {
1424
+ maxHeight = height;
1425
+ }
1426
+ }
1427
+ return { width: maxWidth, height: maxHeight };
1428
+ }, "getMaxChildSize");
1429
+ function setBlockSizes(block, db2, siblingWidth = 0, siblingHeight = 0) {
1430
+ var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k;
1431
+ log.debug(
1432
+ "setBlockSizes abc95 (start)",
1433
+ block.id,
1434
+ (_a2 = block == null ? void 0 : block.size) == null ? void 0 : _a2.x,
1435
+ "block width =",
1436
+ block == null ? void 0 : block.size,
1437
+ "sieblingWidth",
1438
+ siblingWidth
1439
+ );
1440
+ if (!((_b2 = block == null ? void 0 : block.size) == null ? void 0 : _b2.width)) {
1441
+ block.size = {
1442
+ width: siblingWidth,
1443
+ height: siblingHeight,
1444
+ x: 0,
1445
+ y: 0
1446
+ };
1447
+ }
1448
+ let maxWidth = 0;
1449
+ let maxHeight = 0;
1450
+ if (((_c = block.children) == null ? void 0 : _c.length) > 0) {
1451
+ for (const child of block.children) {
1452
+ setBlockSizes(child, db2);
1453
+ }
1454
+ const childSize = getMaxChildSize(block);
1455
+ maxWidth = childSize.width;
1456
+ maxHeight = childSize.height;
1457
+ log.debug("setBlockSizes abc95 maxWidth of", block.id, ":s children is ", maxWidth, maxHeight);
1458
+ for (const child of block.children) {
1459
+ if (child.size) {
1460
+ log.debug(
1461
+ `abc95 Setting size of children of ${block.id} id=${child.id} ${maxWidth} ${maxHeight} ${JSON.stringify(child.size)}`
1462
+ );
1463
+ child.size.width = maxWidth * (child.widthInColumns ?? 1) + padding * ((child.widthInColumns ?? 1) - 1);
1464
+ child.size.height = maxHeight;
1465
+ child.size.x = 0;
1466
+ child.size.y = 0;
1467
+ log.debug(
1468
+ `abc95 updating size of ${block.id} children child:${child.id} maxWidth:${maxWidth} maxHeight:${maxHeight}`
1469
+ );
1470
+ }
1471
+ }
1472
+ for (const child of block.children) {
1473
+ setBlockSizes(child, db2, maxWidth, maxHeight);
1474
+ }
1475
+ const columns = block.columns ?? -1;
1476
+ let numItems = 0;
1477
+ for (const child of block.children) {
1478
+ numItems += child.widthInColumns ?? 1;
1479
+ }
1480
+ let xSize = block.children.length;
1481
+ if (columns > 0 && columns < numItems) {
1482
+ xSize = columns;
1483
+ }
1484
+ const ySize = Math.ceil(numItems / xSize);
1485
+ let width = xSize * (maxWidth + padding) + padding;
1486
+ let height = ySize * (maxHeight + padding) + padding;
1487
+ if (width < siblingWidth) {
1488
+ log.debug(
1489
+ `Detected to small siebling: abc95 ${block.id} sieblingWidth ${siblingWidth} sieblingHeight ${siblingHeight} width ${width}`
1490
+ );
1491
+ width = siblingWidth;
1492
+ height = siblingHeight;
1493
+ const childWidth = (siblingWidth - xSize * padding - padding) / xSize;
1494
+ const childHeight = (siblingHeight - ySize * padding - padding) / ySize;
1495
+ log.debug("Size indata abc88", block.id, "childWidth", childWidth, "maxWidth", maxWidth);
1496
+ log.debug("Size indata abc88", block.id, "childHeight", childHeight, "maxHeight", maxHeight);
1497
+ log.debug("Size indata abc88 xSize", xSize, "padding", padding);
1498
+ for (const child of block.children) {
1499
+ if (child.size) {
1500
+ child.size.width = childWidth;
1501
+ child.size.height = childHeight;
1502
+ child.size.x = 0;
1503
+ child.size.y = 0;
1504
+ }
1505
+ }
1506
+ }
1507
+ log.debug(
1508
+ `abc95 (finale calc) ${block.id} xSize ${xSize} ySize ${ySize} columns ${columns}${block.children.length} width=${Math.max(width, ((_d = block.size) == null ? void 0 : _d.width) || 0)}`
1509
+ );
1510
+ if (width < (((_e = block == null ? void 0 : block.size) == null ? void 0 : _e.width) || 0)) {
1511
+ width = ((_f = block == null ? void 0 : block.size) == null ? void 0 : _f.width) || 0;
1512
+ const num = columns > 0 ? Math.min(block.children.length, columns) : block.children.length;
1513
+ if (num > 0) {
1514
+ const childWidth = (width - num * padding - padding) / num;
1515
+ log.debug("abc95 (growing to fit) width", block.id, width, (_g = block.size) == null ? void 0 : _g.width, childWidth);
1516
+ for (const child of block.children) {
1517
+ if (child.size) {
1518
+ child.size.width = childWidth;
1519
+ }
1520
+ }
1521
+ }
1522
+ }
1523
+ block.size = {
1524
+ width,
1525
+ height,
1526
+ x: 0,
1527
+ y: 0
1528
+ };
1529
+ }
1530
+ log.debug(
1531
+ "setBlockSizes abc94 (done)",
1532
+ block.id,
1533
+ (_h = block == null ? void 0 : block.size) == null ? void 0 : _h.x,
1534
+ (_i = block == null ? void 0 : block.size) == null ? void 0 : _i.width,
1535
+ (_j = block == null ? void 0 : block.size) == null ? void 0 : _j.y,
1536
+ (_k = block == null ? void 0 : block.size) == null ? void 0 : _k.height
1537
+ );
1538
+ }
1539
+ __name(setBlockSizes, "setBlockSizes");
1540
+ function layoutBlocks(block, db2) {
1541
+ var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
1542
+ log.debug(
1543
+ `abc85 layout blocks (=>layoutBlocks) ${block.id} x: ${(_a2 = block == null ? void 0 : block.size) == null ? void 0 : _a2.x} y: ${(_b2 = block == null ? void 0 : block.size) == null ? void 0 : _b2.y} width: ${(_c = block == null ? void 0 : block.size) == null ? void 0 : _c.width}`
1544
+ );
1545
+ const columns = block.columns ?? -1;
1546
+ log.debug("layoutBlocks columns abc95", block.id, "=>", columns, block);
1547
+ if (block.children && // find max width of children
1548
+ block.children.length > 0) {
1549
+ const width = ((_e = (_d = block == null ? void 0 : block.children[0]) == null ? void 0 : _d.size) == null ? void 0 : _e.width) ?? 0;
1550
+ const widthOfChildren = block.children.length * width + (block.children.length - 1) * padding;
1551
+ log.debug("widthOfChildren 88", widthOfChildren, "posX");
1552
+ let columnPos = 0;
1553
+ log.debug("abc91 block?.size?.x", block.id, (_f = block == null ? void 0 : block.size) == null ? void 0 : _f.x);
1554
+ let startingPosX = ((_g = block == null ? void 0 : block.size) == null ? void 0 : _g.x) ? ((_h = block == null ? void 0 : block.size) == null ? void 0 : _h.x) + (-((_i = block == null ? void 0 : block.size) == null ? void 0 : _i.width) / 2 || 0) : -padding;
1555
+ let rowPos = 0;
1556
+ for (const child of block.children) {
1557
+ const parent = block;
1558
+ if (!child.size) {
1559
+ continue;
1560
+ }
1561
+ const { width: width2, height } = child.size;
1562
+ const { px, py } = calculateBlockPosition(columns, columnPos);
1563
+ if (py != rowPos) {
1564
+ rowPos = py;
1565
+ startingPosX = ((_j = block == null ? void 0 : block.size) == null ? void 0 : _j.x) ? ((_k = block == null ? void 0 : block.size) == null ? void 0 : _k.x) + (-((_l = block == null ? void 0 : block.size) == null ? void 0 : _l.width) / 2 || 0) : -padding;
1566
+ log.debug("New row in layout for block", block.id, " and child ", child.id, rowPos);
1567
+ }
1568
+ log.debug(
1569
+ `abc89 layout blocks (child) id: ${child.id} Pos: ${columnPos} (px, py) ${px},${py} (${(_m = parent == null ? void 0 : parent.size) == null ? void 0 : _m.x},${(_n = parent == null ? void 0 : parent.size) == null ? void 0 : _n.y}) parent: ${parent.id} width: ${width2}${padding}`
1570
+ );
1571
+ if (parent.size) {
1572
+ const halfWidth = width2 / 2;
1573
+ child.size.x = startingPosX + padding + halfWidth;
1574
+ log.debug(
1575
+ `abc91 layout blocks (calc) px, pyid:${child.id} startingPos=X${startingPosX} new startingPosX${child.size.x} ${halfWidth} padding=${padding} width=${width2} halfWidth=${halfWidth} => x:${child.size.x} y:${child.size.y} ${child.widthInColumns} (width * (child?.w || 1)) / 2 ${width2 * ((child == null ? void 0 : child.widthInColumns) ?? 1) / 2}`
1576
+ );
1577
+ startingPosX = child.size.x + halfWidth;
1578
+ child.size.y = parent.size.y - parent.size.height / 2 + py * (height + padding) + height / 2 + padding;
1579
+ log.debug(
1580
+ `abc88 layout blocks (calc) px, pyid:${child.id}startingPosX${startingPosX}${padding}${halfWidth}=>x:${child.size.x}y:${child.size.y}${child.widthInColumns}(width * (child?.w || 1)) / 2${width2 * ((child == null ? void 0 : child.widthInColumns) ?? 1) / 2}`
1581
+ );
1582
+ }
1583
+ if (child.children) {
1584
+ layoutBlocks(child);
1585
+ }
1586
+ columnPos += (child == null ? void 0 : child.widthInColumns) ?? 1;
1587
+ log.debug("abc88 columnsPos", child, columnPos);
1588
+ }
1589
+ }
1590
+ log.debug(
1591
+ `layout blocks (<==layoutBlocks) ${block.id} x: ${(_o = block == null ? void 0 : block.size) == null ? void 0 : _o.x} y: ${(_p = block == null ? void 0 : block.size) == null ? void 0 : _p.y} width: ${(_q = block == null ? void 0 : block.size) == null ? void 0 : _q.width}`
1592
+ );
1593
+ }
1594
+ __name(layoutBlocks, "layoutBlocks");
1595
+ function findBounds(block, { minX, minY, maxX, maxY } = { minX: 0, minY: 0, maxX: 0, maxY: 0 }) {
1596
+ if (block.size && block.id !== "root") {
1597
+ const { x, y, width, height } = block.size;
1598
+ if (x - width / 2 < minX) {
1599
+ minX = x - width / 2;
1600
+ }
1601
+ if (y - height / 2 < minY) {
1602
+ minY = y - height / 2;
1603
+ }
1604
+ if (x + width / 2 > maxX) {
1605
+ maxX = x + width / 2;
1606
+ }
1607
+ if (y + height / 2 > maxY) {
1608
+ maxY = y + height / 2;
1609
+ }
1610
+ }
1611
+ if (block.children) {
1612
+ for (const child of block.children) {
1613
+ ({ minX, minY, maxX, maxY } = findBounds(child, { minX, minY, maxX, maxY }));
1614
+ }
1615
+ }
1616
+ return { minX, minY, maxX, maxY };
1617
+ }
1618
+ __name(findBounds, "findBounds");
1619
+ function layout(db2) {
1620
+ const root = db2.getBlock("root");
1621
+ if (!root) {
1622
+ return;
1623
+ }
1624
+ setBlockSizes(root, db2, 0, 0);
1625
+ layoutBlocks(root);
1626
+ log.debug("getBlocks", JSON.stringify(root, null, 2));
1627
+ const { minX, minY, maxX, maxY } = findBounds(root);
1628
+ const height = maxY - minY;
1629
+ const width = maxX - minX;
1630
+ return { x: minX, y: minY, width, height };
1631
+ }
1632
+ __name(layout, "layout");
1633
+ function applyStyle(dom, styleFn) {
1634
+ if (styleFn) {
1635
+ dom.attr("style", styleFn);
1636
+ }
1637
+ }
1638
+ __name(applyStyle, "applyStyle");
1639
+ function addHtmlLabel(node) {
1640
+ const fo = select(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject"));
1641
+ const div = fo.append("xhtml:div");
1642
+ const label = node.label;
1643
+ const labelClass = node.isNode ? "nodeLabel" : "edgeLabel";
1644
+ const span = div.append("span");
1645
+ span.html(label);
1646
+ applyStyle(span, node.labelStyle);
1647
+ span.attr("class", labelClass);
1648
+ applyStyle(div, node.labelStyle);
1649
+ div.style("display", "inline-block");
1650
+ div.style("white-space", "nowrap");
1651
+ div.attr("xmlns", "http://www.w3.org/1999/xhtml");
1652
+ return fo.node();
1653
+ }
1654
+ __name(addHtmlLabel, "addHtmlLabel");
1655
+ var createLabel = /* @__PURE__ */ __name((_vertexText, style, isTitle, isNode) => {
1656
+ let vertexText = _vertexText || "";
1657
+ if (typeof vertexText === "object") {
1658
+ vertexText = vertexText[0];
1659
+ }
1660
+ if (evaluate(getConfig2().flowchart.htmlLabels)) {
1661
+ vertexText = vertexText.replace(/\\n|\n/g, "<br />");
1662
+ log.debug("vertexText" + vertexText);
1663
+ const node = {
1664
+ isNode,
1665
+ label: replaceIconSubstring(decodeEntities(vertexText)),
1666
+ labelStyle: style.replace("fill:", "color:")
1667
+ };
1668
+ let vertexNode = addHtmlLabel(node);
1669
+ return vertexNode;
1670
+ } else {
1671
+ const svgLabel = document.createElementNS("http://www.w3.org/2000/svg", "text");
1672
+ svgLabel.setAttribute("style", style.replace("color:", "fill:"));
1673
+ let rows = [];
1674
+ if (typeof vertexText === "string") {
1675
+ rows = vertexText.split(/\\n|\n|<br\s*\/?>/gi);
1676
+ } else if (Array.isArray(vertexText)) {
1677
+ rows = vertexText;
1678
+ } else {
1679
+ rows = [];
1680
+ }
1681
+ for (const row of rows) {
1682
+ const tspan = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
1683
+ tspan.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve");
1684
+ tspan.setAttribute("dy", "1em");
1685
+ tspan.setAttribute("x", "0");
1686
+ if (isTitle) {
1687
+ tspan.setAttribute("class", "title-row");
1688
+ } else {
1689
+ tspan.setAttribute("class", "row");
1690
+ }
1691
+ tspan.textContent = row.trim();
1692
+ svgLabel.appendChild(tspan);
1693
+ }
1694
+ return svgLabel;
1695
+ }
1696
+ }, "createLabel");
1697
+ var createLabel_default = createLabel;
1698
+ var addEdgeMarkers = /* @__PURE__ */ __name((svgPath, edge, url, id, diagramType) => {
1699
+ if (edge.arrowTypeStart) {
1700
+ addEdgeMarker(svgPath, "start", edge.arrowTypeStart, url, id, diagramType);
1701
+ }
1702
+ if (edge.arrowTypeEnd) {
1703
+ addEdgeMarker(svgPath, "end", edge.arrowTypeEnd, url, id, diagramType);
1704
+ }
1705
+ }, "addEdgeMarkers");
1706
+ var arrowTypesMap = {
1707
+ arrow_cross: "cross",
1708
+ arrow_point: "point",
1709
+ arrow_barb: "barb",
1710
+ arrow_circle: "circle",
1711
+ aggregation: "aggregation",
1712
+ extension: "extension",
1713
+ composition: "composition",
1714
+ dependency: "dependency",
1715
+ lollipop: "lollipop"
1716
+ };
1717
+ var addEdgeMarker = /* @__PURE__ */ __name((svgPath, position, arrowType, url, id, diagramType) => {
1718
+ const endMarkerType = arrowTypesMap[arrowType];
1719
+ if (!endMarkerType) {
1720
+ log.warn(`Unknown arrow type: ${arrowType}`);
1721
+ return;
1722
+ }
1723
+ const suffix = position === "start" ? "Start" : "End";
1724
+ svgPath.attr(`marker-${position}`, `url(${url}#${id}_${diagramType}-${endMarkerType}${suffix})`);
1725
+ }, "addEdgeMarker");
1726
+ var edgeLabels = {};
1727
+ var terminalLabels = {};
1728
+ var insertEdgeLabel = /* @__PURE__ */ __name((elem, edge) => {
1729
+ const config2 = getConfig2();
1730
+ const useHtmlLabels = evaluate(config2.flowchart.htmlLabels);
1731
+ const labelElement = edge.labelType === "markdown" ? createText(
1732
+ elem,
1733
+ edge.label,
1734
+ {
1735
+ style: edge.labelStyle,
1736
+ useHtmlLabels,
1737
+ addSvgBackground: true
1738
+ },
1739
+ config2
1740
+ ) : createLabel_default(edge.label, edge.labelStyle);
1741
+ const edgeLabel = elem.insert("g").attr("class", "edgeLabel");
1742
+ const label = edgeLabel.insert("g").attr("class", "label");
1743
+ label.node().appendChild(labelElement);
1744
+ let bbox = labelElement.getBBox();
1745
+ if (useHtmlLabels) {
1746
+ const div = labelElement.children[0];
1747
+ const dv = select(labelElement);
1748
+ bbox = div.getBoundingClientRect();
1749
+ dv.attr("width", bbox.width);
1750
+ dv.attr("height", bbox.height);
1751
+ }
1752
+ label.attr("transform", "translate(" + -bbox.width / 2 + ", " + -bbox.height / 2 + ")");
1753
+ edgeLabels[edge.id] = edgeLabel;
1754
+ edge.width = bbox.width;
1755
+ edge.height = bbox.height;
1756
+ let fo;
1757
+ if (edge.startLabelLeft) {
1758
+ const startLabelElement = createLabel_default(edge.startLabelLeft, edge.labelStyle);
1759
+ const startEdgeLabelLeft = elem.insert("g").attr("class", "edgeTerminals");
1760
+ const inner = startEdgeLabelLeft.insert("g").attr("class", "inner");
1761
+ fo = inner.node().appendChild(startLabelElement);
1762
+ const slBox = startLabelElement.getBBox();
1763
+ inner.attr("transform", "translate(" + -slBox.width / 2 + ", " + -slBox.height / 2 + ")");
1764
+ if (!terminalLabels[edge.id]) {
1765
+ terminalLabels[edge.id] = {};
1766
+ }
1767
+ terminalLabels[edge.id].startLeft = startEdgeLabelLeft;
1768
+ setTerminalWidth(fo, edge.startLabelLeft);
1769
+ }
1770
+ if (edge.startLabelRight) {
1771
+ const startLabelElement = createLabel_default(edge.startLabelRight, edge.labelStyle);
1772
+ const startEdgeLabelRight = elem.insert("g").attr("class", "edgeTerminals");
1773
+ const inner = startEdgeLabelRight.insert("g").attr("class", "inner");
1774
+ fo = startEdgeLabelRight.node().appendChild(startLabelElement);
1775
+ inner.node().appendChild(startLabelElement);
1776
+ const slBox = startLabelElement.getBBox();
1777
+ inner.attr("transform", "translate(" + -slBox.width / 2 + ", " + -slBox.height / 2 + ")");
1778
+ if (!terminalLabels[edge.id]) {
1779
+ terminalLabels[edge.id] = {};
1780
+ }
1781
+ terminalLabels[edge.id].startRight = startEdgeLabelRight;
1782
+ setTerminalWidth(fo, edge.startLabelRight);
1783
+ }
1784
+ if (edge.endLabelLeft) {
1785
+ const endLabelElement = createLabel_default(edge.endLabelLeft, edge.labelStyle);
1786
+ const endEdgeLabelLeft = elem.insert("g").attr("class", "edgeTerminals");
1787
+ const inner = endEdgeLabelLeft.insert("g").attr("class", "inner");
1788
+ fo = inner.node().appendChild(endLabelElement);
1789
+ const slBox = endLabelElement.getBBox();
1790
+ inner.attr("transform", "translate(" + -slBox.width / 2 + ", " + -slBox.height / 2 + ")");
1791
+ endEdgeLabelLeft.node().appendChild(endLabelElement);
1792
+ if (!terminalLabels[edge.id]) {
1793
+ terminalLabels[edge.id] = {};
1794
+ }
1795
+ terminalLabels[edge.id].endLeft = endEdgeLabelLeft;
1796
+ setTerminalWidth(fo, edge.endLabelLeft);
1797
+ }
1798
+ if (edge.endLabelRight) {
1799
+ const endLabelElement = createLabel_default(edge.endLabelRight, edge.labelStyle);
1800
+ const endEdgeLabelRight = elem.insert("g").attr("class", "edgeTerminals");
1801
+ const inner = endEdgeLabelRight.insert("g").attr("class", "inner");
1802
+ fo = inner.node().appendChild(endLabelElement);
1803
+ const slBox = endLabelElement.getBBox();
1804
+ inner.attr("transform", "translate(" + -slBox.width / 2 + ", " + -slBox.height / 2 + ")");
1805
+ endEdgeLabelRight.node().appendChild(endLabelElement);
1806
+ if (!terminalLabels[edge.id]) {
1807
+ terminalLabels[edge.id] = {};
1808
+ }
1809
+ terminalLabels[edge.id].endRight = endEdgeLabelRight;
1810
+ setTerminalWidth(fo, edge.endLabelRight);
1811
+ }
1812
+ return labelElement;
1813
+ }, "insertEdgeLabel");
1814
+ function setTerminalWidth(fo, value) {
1815
+ if (getConfig2().flowchart.htmlLabels && fo) {
1816
+ fo.style.width = value.length * 9 + "px";
1817
+ fo.style.height = "12px";
1818
+ }
1819
+ }
1820
+ __name(setTerminalWidth, "setTerminalWidth");
1821
+ var positionEdgeLabel = /* @__PURE__ */ __name((edge, paths) => {
1822
+ log.debug("Moving label abc88 ", edge.id, edge.label, edgeLabels[edge.id], paths);
1823
+ let path = paths.updatedPath ? paths.updatedPath : paths.originalPath;
1824
+ const siteConfig = getConfig2();
1825
+ const { subGraphTitleTotalMargin } = getSubGraphTitleMargins(siteConfig);
1826
+ if (edge.label) {
1827
+ const el = edgeLabels[edge.id];
1828
+ let x = edge.x;
1829
+ let y = edge.y;
1830
+ if (path) {
1831
+ const pos = utils_default.calcLabelPosition(path);
1832
+ log.debug(
1833
+ "Moving label " + edge.label + " from (",
1834
+ x,
1835
+ ",",
1836
+ y,
1837
+ ") to (",
1838
+ pos.x,
1839
+ ",",
1840
+ pos.y,
1841
+ ") abc88"
1842
+ );
1843
+ if (paths.updatedPath) {
1844
+ x = pos.x;
1845
+ y = pos.y;
1846
+ }
1847
+ }
1848
+ el.attr("transform", `translate(${x}, ${y + subGraphTitleTotalMargin / 2})`);
1849
+ }
1850
+ if (edge.startLabelLeft) {
1851
+ const el = terminalLabels[edge.id].startLeft;
1852
+ let x = edge.x;
1853
+ let y = edge.y;
1854
+ if (path) {
1855
+ const pos = utils_default.calcTerminalLabelPosition(edge.arrowTypeStart ? 10 : 0, "start_left", path);
1856
+ x = pos.x;
1857
+ y = pos.y;
1858
+ }
1859
+ el.attr("transform", `translate(${x}, ${y})`);
1860
+ }
1861
+ if (edge.startLabelRight) {
1862
+ const el = terminalLabels[edge.id].startRight;
1863
+ let x = edge.x;
1864
+ let y = edge.y;
1865
+ if (path) {
1866
+ const pos = utils_default.calcTerminalLabelPosition(
1867
+ edge.arrowTypeStart ? 10 : 0,
1868
+ "start_right",
1869
+ path
1870
+ );
1871
+ x = pos.x;
1872
+ y = pos.y;
1873
+ }
1874
+ el.attr("transform", `translate(${x}, ${y})`);
1875
+ }
1876
+ if (edge.endLabelLeft) {
1877
+ const el = terminalLabels[edge.id].endLeft;
1878
+ let x = edge.x;
1879
+ let y = edge.y;
1880
+ if (path) {
1881
+ const pos = utils_default.calcTerminalLabelPosition(edge.arrowTypeEnd ? 10 : 0, "end_left", path);
1882
+ x = pos.x;
1883
+ y = pos.y;
1884
+ }
1885
+ el.attr("transform", `translate(${x}, ${y})`);
1886
+ }
1887
+ if (edge.endLabelRight) {
1888
+ const el = terminalLabels[edge.id].endRight;
1889
+ let x = edge.x;
1890
+ let y = edge.y;
1891
+ if (path) {
1892
+ const pos = utils_default.calcTerminalLabelPosition(edge.arrowTypeEnd ? 10 : 0, "end_right", path);
1893
+ x = pos.x;
1894
+ y = pos.y;
1895
+ }
1896
+ el.attr("transform", `translate(${x}, ${y})`);
1897
+ }
1898
+ }, "positionEdgeLabel");
1899
+ var outsideNode = /* @__PURE__ */ __name((node, point2) => {
1900
+ const x = node.x;
1901
+ const y = node.y;
1902
+ const dx = Math.abs(point2.x - x);
1903
+ const dy = Math.abs(point2.y - y);
1904
+ const w = node.width / 2;
1905
+ const h = node.height / 2;
1906
+ if (dx >= w || dy >= h) {
1907
+ return true;
1908
+ }
1909
+ return false;
1910
+ }, "outsideNode");
1911
+ var intersection = /* @__PURE__ */ __name((node, outsidePoint, insidePoint) => {
1912
+ log.debug(`intersection calc abc89:
1913
+ outsidePoint: ${JSON.stringify(outsidePoint)}
1914
+ insidePoint : ${JSON.stringify(insidePoint)}
1915
+ node : x:${node.x} y:${node.y} w:${node.width} h:${node.height}`);
1916
+ const x = node.x;
1917
+ const y = node.y;
1918
+ const dx = Math.abs(x - insidePoint.x);
1919
+ const w = node.width / 2;
1920
+ let r = insidePoint.x < outsidePoint.x ? w - dx : w + dx;
1921
+ const h = node.height / 2;
1922
+ const Q = Math.abs(outsidePoint.y - insidePoint.y);
1923
+ const R = Math.abs(outsidePoint.x - insidePoint.x);
1924
+ if (Math.abs(y - outsidePoint.y) * w > Math.abs(x - outsidePoint.x) * h) {
1925
+ let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;
1926
+ r = R * q / Q;
1927
+ const res = {
1928
+ x: insidePoint.x < outsidePoint.x ? insidePoint.x + r : insidePoint.x - R + r,
1929
+ y: insidePoint.y < outsidePoint.y ? insidePoint.y + Q - q : insidePoint.y - Q + q
1930
+ };
1931
+ if (r === 0) {
1932
+ res.x = outsidePoint.x;
1933
+ res.y = outsidePoint.y;
1934
+ }
1935
+ if (R === 0) {
1936
+ res.x = outsidePoint.x;
1937
+ }
1938
+ if (Q === 0) {
1939
+ res.y = outsidePoint.y;
1940
+ }
1941
+ log.debug(`abc89 topp/bott calc, Q ${Q}, q ${q}, R ${R}, r ${r}`, res);
1942
+ return res;
1943
+ } else {
1944
+ if (insidePoint.x < outsidePoint.x) {
1945
+ r = outsidePoint.x - w - x;
1946
+ } else {
1947
+ r = x - w - outsidePoint.x;
1948
+ }
1949
+ let q = Q * r / R;
1950
+ let _x = insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x - R + r;
1951
+ let _y = insidePoint.y < outsidePoint.y ? insidePoint.y + q : insidePoint.y - q;
1952
+ log.debug(`sides calc abc89, Q ${Q}, q ${q}, R ${R}, r ${r}`, { _x, _y });
1953
+ if (r === 0) {
1954
+ _x = outsidePoint.x;
1955
+ _y = outsidePoint.y;
1956
+ }
1957
+ if (R === 0) {
1958
+ _x = outsidePoint.x;
1959
+ }
1960
+ if (Q === 0) {
1961
+ _y = outsidePoint.y;
1962
+ }
1963
+ return { x: _x, y: _y };
1964
+ }
1965
+ }, "intersection");
1966
+ var cutPathAtIntersect = /* @__PURE__ */ __name((_points, boundaryNode) => {
1967
+ log.debug("abc88 cutPathAtIntersect", _points, boundaryNode);
1968
+ let points = [];
1969
+ let lastPointOutside = _points[0];
1970
+ let isInside = false;
1971
+ _points.forEach((point2) => {
1972
+ if (!outsideNode(boundaryNode, point2) && !isInside) {
1973
+ const inter = intersection(boundaryNode, lastPointOutside, point2);
1974
+ let pointPresent = false;
1975
+ points.forEach((p) => {
1976
+ pointPresent = pointPresent || p.x === inter.x && p.y === inter.y;
1977
+ });
1978
+ if (!points.some((e) => e.x === inter.x && e.y === inter.y)) {
1979
+ points.push(inter);
1980
+ }
1981
+ isInside = true;
1982
+ } else {
1983
+ lastPointOutside = point2;
1984
+ if (!isInside) {
1985
+ points.push(point2);
1986
+ }
1987
+ }
1988
+ });
1989
+ return points;
1990
+ }, "cutPathAtIntersect");
1991
+ var insertEdge = /* @__PURE__ */ __name(function(elem, e, edge, clusterDb, diagramType, graph, id) {
1992
+ let points = edge.points;
1993
+ log.debug("abc88 InsertEdge: edge=", edge, "e=", e);
1994
+ let pointsHasChanged = false;
1995
+ const tail = graph.node(e.v);
1996
+ var head = graph.node(e.w);
1997
+ if ((head == null ? void 0 : head.intersect) && (tail == null ? void 0 : tail.intersect)) {
1998
+ points = points.slice(1, edge.points.length - 1);
1999
+ points.unshift(tail.intersect(points[0]));
2000
+ points.push(head.intersect(points[points.length - 1]));
2001
+ }
2002
+ if (edge.toCluster) {
2003
+ log.debug("to cluster abc88", clusterDb[edge.toCluster]);
2004
+ points = cutPathAtIntersect(edge.points, clusterDb[edge.toCluster].node);
2005
+ pointsHasChanged = true;
2006
+ }
2007
+ if (edge.fromCluster) {
2008
+ log.debug("from cluster abc88", clusterDb[edge.fromCluster]);
2009
+ points = cutPathAtIntersect(points.reverse(), clusterDb[edge.fromCluster].node).reverse();
2010
+ pointsHasChanged = true;
2011
+ }
2012
+ const lineData = points.filter((p) => !Number.isNaN(p.y));
2013
+ let curve = curveBasis;
2014
+ if (edge.curve && (diagramType === "graph" || diagramType === "flowchart")) {
2015
+ curve = edge.curve;
2016
+ }
2017
+ const { x, y } = getLineFunctionsWithOffset(edge);
2018
+ const lineFunction = line().x(x).y(y).curve(curve);
2019
+ let strokeClasses;
2020
+ switch (edge.thickness) {
2021
+ case "normal":
2022
+ strokeClasses = "edge-thickness-normal";
2023
+ break;
2024
+ case "thick":
2025
+ strokeClasses = "edge-thickness-thick";
2026
+ break;
2027
+ case "invisible":
2028
+ strokeClasses = "edge-thickness-thick";
2029
+ break;
2030
+ default:
2031
+ strokeClasses = "";
2032
+ }
2033
+ switch (edge.pattern) {
2034
+ case "solid":
2035
+ strokeClasses += " edge-pattern-solid";
2036
+ break;
2037
+ case "dotted":
2038
+ strokeClasses += " edge-pattern-dotted";
2039
+ break;
2040
+ case "dashed":
2041
+ strokeClasses += " edge-pattern-dashed";
2042
+ break;
2043
+ }
2044
+ const svgPath = elem.append("path").attr("d", lineFunction(lineData)).attr("id", edge.id).attr("class", " " + strokeClasses + (edge.classes ? " " + edge.classes : "")).attr("style", edge.style);
2045
+ let url = "";
2046
+ if (getConfig2().flowchart.arrowMarkerAbsolute || getConfig2().state.arrowMarkerAbsolute) {
2047
+ url = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search;
2048
+ url = url.replace(/\(/g, "\\(");
2049
+ url = url.replace(/\)/g, "\\)");
2050
+ }
2051
+ addEdgeMarkers(svgPath, edge, url, id, diagramType);
2052
+ let paths = {};
2053
+ if (pointsHasChanged) {
2054
+ paths.updatedPath = points;
2055
+ }
2056
+ paths.originalPath = edge.points;
2057
+ return paths;
2058
+ }, "insertEdge");
2059
+ var expandAndDeduplicateDirections = /* @__PURE__ */ __name((directions) => {
2060
+ const uniqueDirections = /* @__PURE__ */ new Set();
2061
+ for (const direction of directions) {
2062
+ switch (direction) {
2063
+ case "x":
2064
+ uniqueDirections.add("right");
2065
+ uniqueDirections.add("left");
2066
+ break;
2067
+ case "y":
2068
+ uniqueDirections.add("up");
2069
+ uniqueDirections.add("down");
2070
+ break;
2071
+ default:
2072
+ uniqueDirections.add(direction);
2073
+ break;
2074
+ }
2075
+ }
2076
+ return uniqueDirections;
2077
+ }, "expandAndDeduplicateDirections");
2078
+ var getArrowPoints = /* @__PURE__ */ __name((duplicatedDirections, bbox, node) => {
2079
+ const directions = expandAndDeduplicateDirections(duplicatedDirections);
2080
+ const f = 2;
2081
+ const height = bbox.height + 2 * node.padding;
2082
+ const midpoint = height / f;
2083
+ const width = bbox.width + 2 * midpoint + node.padding;
2084
+ const padding2 = node.padding / 2;
2085
+ if (directions.has("right") && directions.has("left") && directions.has("up") && directions.has("down")) {
2086
+ return [
2087
+ // Bottom
2088
+ { x: 0, y: 0 },
2089
+ { x: midpoint, y: 0 },
2090
+ { x: width / 2, y: 2 * padding2 },
2091
+ { x: width - midpoint, y: 0 },
2092
+ { x: width, y: 0 },
2093
+ // Right
2094
+ { x: width, y: -height / 3 },
2095
+ { x: width + 2 * padding2, y: -height / 2 },
2096
+ { x: width, y: -2 * height / 3 },
2097
+ { x: width, y: -height },
2098
+ // Top
2099
+ { x: width - midpoint, y: -height },
2100
+ { x: width / 2, y: -height - 2 * padding2 },
2101
+ { x: midpoint, y: -height },
2102
+ // Left
2103
+ { x: 0, y: -height },
2104
+ { x: 0, y: -2 * height / 3 },
2105
+ { x: -2 * padding2, y: -height / 2 },
2106
+ { x: 0, y: -height / 3 }
2107
+ ];
2108
+ }
2109
+ if (directions.has("right") && directions.has("left") && directions.has("up")) {
2110
+ return [
2111
+ { x: midpoint, y: 0 },
2112
+ { x: width - midpoint, y: 0 },
2113
+ { x: width, y: -height / 2 },
2114
+ { x: width - midpoint, y: -height },
2115
+ { x: midpoint, y: -height },
2116
+ { x: 0, y: -height / 2 }
2117
+ ];
2118
+ }
2119
+ if (directions.has("right") && directions.has("left") && directions.has("down")) {
2120
+ return [
2121
+ { x: 0, y: 0 },
2122
+ { x: midpoint, y: -height },
2123
+ { x: width - midpoint, y: -height },
2124
+ { x: width, y: 0 }
2125
+ ];
2126
+ }
2127
+ if (directions.has("right") && directions.has("up") && directions.has("down")) {
2128
+ return [
2129
+ { x: 0, y: 0 },
2130
+ { x: width, y: -midpoint },
2131
+ { x: width, y: -height + midpoint },
2132
+ { x: 0, y: -height }
2133
+ ];
2134
+ }
2135
+ if (directions.has("left") && directions.has("up") && directions.has("down")) {
2136
+ return [
2137
+ { x: width, y: 0 },
2138
+ { x: 0, y: -midpoint },
2139
+ { x: 0, y: -height + midpoint },
2140
+ { x: width, y: -height }
2141
+ ];
2142
+ }
2143
+ if (directions.has("right") && directions.has("left")) {
2144
+ return [
2145
+ { x: midpoint, y: 0 },
2146
+ { x: midpoint, y: -padding2 },
2147
+ { x: width - midpoint, y: -padding2 },
2148
+ { x: width - midpoint, y: 0 },
2149
+ { x: width, y: -height / 2 },
2150
+ { x: width - midpoint, y: -height },
2151
+ { x: width - midpoint, y: -height + padding2 },
2152
+ { x: midpoint, y: -height + padding2 },
2153
+ { x: midpoint, y: -height },
2154
+ { x: 0, y: -height / 2 }
2155
+ ];
2156
+ }
2157
+ if (directions.has("up") && directions.has("down")) {
2158
+ return [
2159
+ // Bottom center
2160
+ { x: width / 2, y: 0 },
2161
+ // Left pont of bottom arrow
2162
+ { x: 0, y: -padding2 },
2163
+ { x: midpoint, y: -padding2 },
2164
+ // Left top over vertical section
2165
+ { x: midpoint, y: -height + padding2 },
2166
+ { x: 0, y: -height + padding2 },
2167
+ // Top of arrow
2168
+ { x: width / 2, y: -height },
2169
+ { x: width, y: -height + padding2 },
2170
+ // Top of right vertical bar
2171
+ { x: width - midpoint, y: -height + padding2 },
2172
+ { x: width - midpoint, y: -padding2 },
2173
+ { x: width, y: -padding2 }
2174
+ ];
2175
+ }
2176
+ if (directions.has("right") && directions.has("up")) {
2177
+ return [
2178
+ { x: 0, y: 0 },
2179
+ { x: width, y: -midpoint },
2180
+ { x: 0, y: -height }
2181
+ ];
2182
+ }
2183
+ if (directions.has("right") && directions.has("down")) {
2184
+ return [
2185
+ { x: 0, y: 0 },
2186
+ { x: width, y: 0 },
2187
+ { x: 0, y: -height }
2188
+ ];
2189
+ }
2190
+ if (directions.has("left") && directions.has("up")) {
2191
+ return [
2192
+ { x: width, y: 0 },
2193
+ { x: 0, y: -midpoint },
2194
+ { x: width, y: -height }
2195
+ ];
2196
+ }
2197
+ if (directions.has("left") && directions.has("down")) {
2198
+ return [
2199
+ { x: width, y: 0 },
2200
+ { x: 0, y: 0 },
2201
+ { x: width, y: -height }
2202
+ ];
2203
+ }
2204
+ if (directions.has("right")) {
2205
+ return [
2206
+ { x: midpoint, y: -padding2 },
2207
+ { x: midpoint, y: -padding2 },
2208
+ { x: width - midpoint, y: -padding2 },
2209
+ { x: width - midpoint, y: 0 },
2210
+ { x: width, y: -height / 2 },
2211
+ { x: width - midpoint, y: -height },
2212
+ { x: width - midpoint, y: -height + padding2 },
2213
+ // top left corner of arrow
2214
+ { x: midpoint, y: -height + padding2 },
2215
+ { x: midpoint, y: -height + padding2 }
2216
+ ];
2217
+ }
2218
+ if (directions.has("left")) {
2219
+ return [
2220
+ { x: midpoint, y: 0 },
2221
+ { x: midpoint, y: -padding2 },
2222
+ // Two points, the right corners
2223
+ { x: width - midpoint, y: -padding2 },
2224
+ { x: width - midpoint, y: -height + padding2 },
2225
+ { x: midpoint, y: -height + padding2 },
2226
+ { x: midpoint, y: -height },
2227
+ { x: 0, y: -height / 2 }
2228
+ ];
2229
+ }
2230
+ if (directions.has("up")) {
2231
+ return [
2232
+ // Bottom center
2233
+ { x: midpoint, y: -padding2 },
2234
+ // Left top over vertical section
2235
+ { x: midpoint, y: -height + padding2 },
2236
+ { x: 0, y: -height + padding2 },
2237
+ // Top of arrow
2238
+ { x: width / 2, y: -height },
2239
+ { x: width, y: -height + padding2 },
2240
+ // Top of right vertical bar
2241
+ { x: width - midpoint, y: -height + padding2 },
2242
+ { x: width - midpoint, y: -padding2 }
2243
+ ];
2244
+ }
2245
+ if (directions.has("down")) {
2246
+ return [
2247
+ // Bottom center
2248
+ { x: width / 2, y: 0 },
2249
+ // Left pont of bottom arrow
2250
+ { x: 0, y: -padding2 },
2251
+ { x: midpoint, y: -padding2 },
2252
+ // Left top over vertical section
2253
+ { x: midpoint, y: -height + padding2 },
2254
+ { x: width - midpoint, y: -height + padding2 },
2255
+ { x: width - midpoint, y: -padding2 },
2256
+ { x: width, y: -padding2 }
2257
+ ];
2258
+ }
2259
+ return [{ x: 0, y: 0 }];
2260
+ }, "getArrowPoints");
2261
+ function intersectNode(node, point2) {
2262
+ return node.intersect(point2);
2263
+ }
2264
+ __name(intersectNode, "intersectNode");
2265
+ var intersect_node_default = intersectNode;
2266
+ function intersectEllipse(node, rx, ry, point2) {
2267
+ var cx = node.x;
2268
+ var cy = node.y;
2269
+ var px = cx - point2.x;
2270
+ var py = cy - point2.y;
2271
+ var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px);
2272
+ var dx = Math.abs(rx * ry * px / det);
2273
+ if (point2.x < cx) {
2274
+ dx = -dx;
2275
+ }
2276
+ var dy = Math.abs(rx * ry * py / det);
2277
+ if (point2.y < cy) {
2278
+ dy = -dy;
2279
+ }
2280
+ return { x: cx + dx, y: cy + dy };
2281
+ }
2282
+ __name(intersectEllipse, "intersectEllipse");
2283
+ var intersect_ellipse_default = intersectEllipse;
2284
+ function intersectCircle(node, rx, point2) {
2285
+ return intersect_ellipse_default(node, rx, rx, point2);
2286
+ }
2287
+ __name(intersectCircle, "intersectCircle");
2288
+ var intersect_circle_default = intersectCircle;
2289
+ function intersectLine(p1, p2, q1, q2) {
2290
+ var a1, a2, b1, b2, c1, c2;
2291
+ var r1, r2, r3, r4;
2292
+ var denom, offset, num;
2293
+ var x, y;
2294
+ a1 = p2.y - p1.y;
2295
+ b1 = p1.x - p2.x;
2296
+ c1 = p2.x * p1.y - p1.x * p2.y;
2297
+ r3 = a1 * q1.x + b1 * q1.y + c1;
2298
+ r4 = a1 * q2.x + b1 * q2.y + c1;
2299
+ if (r3 !== 0 && r4 !== 0 && sameSign(r3, r4)) {
2300
+ return;
2301
+ }
2302
+ a2 = q2.y - q1.y;
2303
+ b2 = q1.x - q2.x;
2304
+ c2 = q2.x * q1.y - q1.x * q2.y;
2305
+ r1 = a2 * p1.x + b2 * p1.y + c2;
2306
+ r2 = a2 * p2.x + b2 * p2.y + c2;
2307
+ if (r1 !== 0 && r2 !== 0 && sameSign(r1, r2)) {
2308
+ return;
2309
+ }
2310
+ denom = a1 * b2 - a2 * b1;
2311
+ if (denom === 0) {
2312
+ return;
2313
+ }
2314
+ offset = Math.abs(denom / 2);
2315
+ num = b1 * c2 - b2 * c1;
2316
+ x = num < 0 ? (num - offset) / denom : (num + offset) / denom;
2317
+ num = a2 * c1 - a1 * c2;
2318
+ y = num < 0 ? (num - offset) / denom : (num + offset) / denom;
2319
+ return { x, y };
2320
+ }
2321
+ __name(intersectLine, "intersectLine");
2322
+ function sameSign(r1, r2) {
2323
+ return r1 * r2 > 0;
2324
+ }
2325
+ __name(sameSign, "sameSign");
2326
+ var intersect_line_default = intersectLine;
2327
+ var intersect_polygon_default = intersectPolygon;
2328
+ function intersectPolygon(node, polyPoints, point2) {
2329
+ var x1 = node.x;
2330
+ var y1 = node.y;
2331
+ var intersections = [];
2332
+ var minX = Number.POSITIVE_INFINITY;
2333
+ var minY = Number.POSITIVE_INFINITY;
2334
+ if (typeof polyPoints.forEach === "function") {
2335
+ polyPoints.forEach(function(entry) {
2336
+ minX = Math.min(minX, entry.x);
2337
+ minY = Math.min(minY, entry.y);
2338
+ });
2339
+ } else {
2340
+ minX = Math.min(minX, polyPoints.x);
2341
+ minY = Math.min(minY, polyPoints.y);
2342
+ }
2343
+ var left = x1 - node.width / 2 - minX;
2344
+ var top = y1 - node.height / 2 - minY;
2345
+ for (var i = 0; i < polyPoints.length; i++) {
2346
+ var p1 = polyPoints[i];
2347
+ var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0];
2348
+ var intersect = intersect_line_default(
2349
+ node,
2350
+ point2,
2351
+ { x: left + p1.x, y: top + p1.y },
2352
+ { x: left + p2.x, y: top + p2.y }
2353
+ );
2354
+ if (intersect) {
2355
+ intersections.push(intersect);
2356
+ }
2357
+ }
2358
+ if (!intersections.length) {
2359
+ return node;
2360
+ }
2361
+ if (intersections.length > 1) {
2362
+ intersections.sort(function(p, q) {
2363
+ var pdx = p.x - point2.x;
2364
+ var pdy = p.y - point2.y;
2365
+ var distp = Math.sqrt(pdx * pdx + pdy * pdy);
2366
+ var qdx = q.x - point2.x;
2367
+ var qdy = q.y - point2.y;
2368
+ var distq = Math.sqrt(qdx * qdx + qdy * qdy);
2369
+ return distp < distq ? -1 : distp === distq ? 0 : 1;
2370
+ });
2371
+ }
2372
+ return intersections[0];
2373
+ }
2374
+ __name(intersectPolygon, "intersectPolygon");
2375
+ var intersectRect = /* @__PURE__ */ __name((node, point2) => {
2376
+ var x = node.x;
2377
+ var y = node.y;
2378
+ var dx = point2.x - x;
2379
+ var dy = point2.y - y;
2380
+ var w = node.width / 2;
2381
+ var h = node.height / 2;
2382
+ var sx, sy;
2383
+ if (Math.abs(dy) * w > Math.abs(dx) * h) {
2384
+ if (dy < 0) {
2385
+ h = -h;
2386
+ }
2387
+ sx = dy === 0 ? 0 : h * dx / dy;
2388
+ sy = h;
2389
+ } else {
2390
+ if (dx < 0) {
2391
+ w = -w;
2392
+ }
2393
+ sx = w;
2394
+ sy = dx === 0 ? 0 : w * dy / dx;
2395
+ }
2396
+ return { x: x + sx, y: y + sy };
2397
+ }, "intersectRect");
2398
+ var intersect_rect_default = intersectRect;
2399
+ var intersect_default = {
2400
+ node: intersect_node_default,
2401
+ circle: intersect_circle_default,
2402
+ ellipse: intersect_ellipse_default,
2403
+ polygon: intersect_polygon_default,
2404
+ rect: intersect_rect_default
2405
+ };
2406
+ var labelHelper = /* @__PURE__ */ __name(async (parent, node, _classes, isNode) => {
2407
+ const config2 = getConfig2();
2408
+ let classes2;
2409
+ const useHtmlLabels = node.useHtmlLabels || evaluate(config2.flowchart.htmlLabels);
2410
+ if (!_classes) {
2411
+ classes2 = "node default";
2412
+ } else {
2413
+ classes2 = _classes;
2414
+ }
2415
+ const shapeSvg = parent.insert("g").attr("class", classes2).attr("id", node.domId || node.id);
2416
+ const label = shapeSvg.insert("g").attr("class", "label").attr("style", node.labelStyle);
2417
+ let labelText;
2418
+ if (node.labelText === void 0) {
2419
+ labelText = "";
2420
+ } else {
2421
+ labelText = typeof node.labelText === "string" ? node.labelText : node.labelText[0];
2422
+ }
2423
+ const textNode = label.node();
2424
+ let text;
2425
+ if (node.labelType === "markdown") {
2426
+ text = createText(
2427
+ label,
2428
+ sanitizeText(decodeEntities(labelText), config2),
2429
+ {
2430
+ useHtmlLabels,
2431
+ width: node.width || config2.flowchart.wrappingWidth,
2432
+ classes: "markdown-node-label"
2433
+ },
2434
+ config2
2435
+ );
2436
+ } else {
2437
+ text = textNode.appendChild(
2438
+ createLabel_default(sanitizeText(decodeEntities(labelText), config2), node.labelStyle, false, isNode)
2439
+ );
2440
+ }
2441
+ let bbox = text.getBBox();
2442
+ const halfPadding = node.padding / 2;
2443
+ if (evaluate(config2.flowchart.htmlLabels)) {
2444
+ const div = text.children[0];
2445
+ const dv = select(text);
2446
+ const images = div.getElementsByTagName("img");
2447
+ if (images) {
2448
+ const noImgText = labelText.replace(/<img[^>]*>/g, "").trim() === "";
2449
+ await Promise.all(
2450
+ [...images].map(
2451
+ (img) => new Promise((res) => {
2452
+ function setupImage() {
2453
+ img.style.display = "flex";
2454
+ img.style.flexDirection = "column";
2455
+ if (noImgText) {
2456
+ const bodyFontSize = config2.fontSize ? config2.fontSize : window.getComputedStyle(document.body).fontSize;
2457
+ const enlargingFactor = 5;
2458
+ const width = parseInt(bodyFontSize, 10) * enlargingFactor + "px";
2459
+ img.style.minWidth = width;
2460
+ img.style.maxWidth = width;
2461
+ } else {
2462
+ img.style.width = "100%";
2463
+ }
2464
+ res(img);
2465
+ }
2466
+ __name(setupImage, "setupImage");
2467
+ setTimeout(() => {
2468
+ if (img.complete) {
2469
+ setupImage();
2470
+ }
2471
+ });
2472
+ img.addEventListener("error", setupImage);
2473
+ img.addEventListener("load", setupImage);
2474
+ })
2475
+ )
2476
+ );
2477
+ }
2478
+ bbox = div.getBoundingClientRect();
2479
+ dv.attr("width", bbox.width);
2480
+ dv.attr("height", bbox.height);
2481
+ }
2482
+ if (useHtmlLabels) {
2483
+ label.attr("transform", "translate(" + -bbox.width / 2 + ", " + -bbox.height / 2 + ")");
2484
+ } else {
2485
+ label.attr("transform", "translate(0, " + -bbox.height / 2 + ")");
2486
+ }
2487
+ if (node.centerLabel) {
2488
+ label.attr("transform", "translate(" + -bbox.width / 2 + ", " + -bbox.height / 2 + ")");
2489
+ }
2490
+ label.insert("rect", ":first-child");
2491
+ return { shapeSvg, bbox, halfPadding, label };
2492
+ }, "labelHelper");
2493
+ var updateNodeBounds = /* @__PURE__ */ __name((node, element) => {
2494
+ const bbox = element.node().getBBox();
2495
+ node.width = bbox.width;
2496
+ node.height = bbox.height;
2497
+ }, "updateNodeBounds");
2498
+ function insertPolygonShape(parent, w, h, points) {
2499
+ return parent.insert("polygon", ":first-child").attr(
2500
+ "points",
2501
+ points.map(function(d) {
2502
+ return d.x + "," + d.y;
2503
+ }).join(" ")
2504
+ ).attr("class", "label-container").attr("transform", "translate(" + -w / 2 + "," + h / 2 + ")");
2505
+ }
2506
+ __name(insertPolygonShape, "insertPolygonShape");
2507
+ var note = /* @__PURE__ */ __name(async (parent, node) => {
2508
+ const useHtmlLabels = node.useHtmlLabels || getConfig2().flowchart.htmlLabels;
2509
+ if (!useHtmlLabels) {
2510
+ node.centerLabel = true;
2511
+ }
2512
+ const { shapeSvg, bbox, halfPadding } = await labelHelper(
2513
+ parent,
2514
+ node,
2515
+ "node " + node.classes,
2516
+ true
2517
+ );
2518
+ log.info("Classes = ", node.classes);
2519
+ const rect2 = shapeSvg.insert("rect", ":first-child");
2520
+ rect2.attr("rx", node.rx).attr("ry", node.ry).attr("x", -bbox.width / 2 - halfPadding).attr("y", -bbox.height / 2 - halfPadding).attr("width", bbox.width + node.padding).attr("height", bbox.height + node.padding);
2521
+ updateNodeBounds(node, rect2);
2522
+ node.intersect = function(point2) {
2523
+ return intersect_default.rect(node, point2);
2524
+ };
2525
+ return shapeSvg;
2526
+ }, "note");
2527
+ var note_default = note;
2528
+ var formatClass = /* @__PURE__ */ __name((str) => {
2529
+ if (str) {
2530
+ return " " + str;
2531
+ }
2532
+ return "";
2533
+ }, "formatClass");
2534
+ var getClassesFromNode = /* @__PURE__ */ __name((node, otherClasses) => {
2535
+ return `${otherClasses ? otherClasses : "node default"}${formatClass(node.classes)} ${formatClass(
2536
+ node.class
2537
+ )}`;
2538
+ }, "getClassesFromNode");
2539
+ var question = /* @__PURE__ */ __name(async (parent, node) => {
2540
+ const { shapeSvg, bbox } = await labelHelper(
2541
+ parent,
2542
+ node,
2543
+ getClassesFromNode(node, void 0),
2544
+ true
2545
+ );
2546
+ const w = bbox.width + node.padding;
2547
+ const h = bbox.height + node.padding;
2548
+ const s = w + h;
2549
+ const points = [
2550
+ { x: s / 2, y: 0 },
2551
+ { x: s, y: -s / 2 },
2552
+ { x: s / 2, y: -s },
2553
+ { x: 0, y: -s / 2 }
2554
+ ];
2555
+ log.info("Question main (Circle)");
2556
+ const questionElem = insertPolygonShape(shapeSvg, s, s, points);
2557
+ questionElem.attr("style", node.style);
2558
+ updateNodeBounds(node, questionElem);
2559
+ node.intersect = function(point2) {
2560
+ log.warn("Intersect called");
2561
+ return intersect_default.polygon(node, points, point2);
2562
+ };
2563
+ return shapeSvg;
2564
+ }, "question");
2565
+ var choice = /* @__PURE__ */ __name((parent, node) => {
2566
+ const shapeSvg = parent.insert("g").attr("class", "node default").attr("id", node.domId || node.id);
2567
+ const s = 28;
2568
+ const points = [
2569
+ { x: 0, y: s / 2 },
2570
+ { x: s / 2, y: 0 },
2571
+ { x: 0, y: -28 / 2 },
2572
+ { x: -28 / 2, y: 0 }
2573
+ ];
2574
+ const choice2 = shapeSvg.insert("polygon", ":first-child").attr(
2575
+ "points",
2576
+ points.map(function(d) {
2577
+ return d.x + "," + d.y;
2578
+ }).join(" ")
2579
+ );
2580
+ choice2.attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28);
2581
+ node.width = 28;
2582
+ node.height = 28;
2583
+ node.intersect = function(point2) {
2584
+ return intersect_default.circle(node, 14, point2);
2585
+ };
2586
+ return shapeSvg;
2587
+ }, "choice");
2588
+ var hexagon = /* @__PURE__ */ __name(async (parent, node) => {
2589
+ const { shapeSvg, bbox } = await labelHelper(
2590
+ parent,
2591
+ node,
2592
+ getClassesFromNode(node, void 0),
2593
+ true
2594
+ );
2595
+ const f = 4;
2596
+ const h = bbox.height + node.padding;
2597
+ const m = h / f;
2598
+ const w = bbox.width + 2 * m + node.padding;
2599
+ const points = [
2600
+ { x: m, y: 0 },
2601
+ { x: w - m, y: 0 },
2602
+ { x: w, y: -h / 2 },
2603
+ { x: w - m, y: -h },
2604
+ { x: m, y: -h },
2605
+ { x: 0, y: -h / 2 }
2606
+ ];
2607
+ const hex = insertPolygonShape(shapeSvg, w, h, points);
2608
+ hex.attr("style", node.style);
2609
+ updateNodeBounds(node, hex);
2610
+ node.intersect = function(point2) {
2611
+ return intersect_default.polygon(node, points, point2);
2612
+ };
2613
+ return shapeSvg;
2614
+ }, "hexagon");
2615
+ var block_arrow = /* @__PURE__ */ __name(async (parent, node) => {
2616
+ const { shapeSvg, bbox } = await labelHelper(parent, node, void 0, true);
2617
+ const f = 2;
2618
+ const h = bbox.height + 2 * node.padding;
2619
+ const m = h / f;
2620
+ const w = bbox.width + 2 * m + node.padding;
2621
+ const points = getArrowPoints(node.directions, bbox, node);
2622
+ const blockArrow = insertPolygonShape(shapeSvg, w, h, points);
2623
+ blockArrow.attr("style", node.style);
2624
+ updateNodeBounds(node, blockArrow);
2625
+ node.intersect = function(point2) {
2626
+ return intersect_default.polygon(node, points, point2);
2627
+ };
2628
+ return shapeSvg;
2629
+ }, "block_arrow");
2630
+ var rect_left_inv_arrow = /* @__PURE__ */ __name(async (parent, node) => {
2631
+ const { shapeSvg, bbox } = await labelHelper(
2632
+ parent,
2633
+ node,
2634
+ getClassesFromNode(node, void 0),
2635
+ true
2636
+ );
2637
+ const w = bbox.width + node.padding;
2638
+ const h = bbox.height + node.padding;
2639
+ const points = [
2640
+ { x: -h / 2, y: 0 },
2641
+ { x: w, y: 0 },
2642
+ { x: w, y: -h },
2643
+ { x: -h / 2, y: -h },
2644
+ { x: 0, y: -h / 2 }
2645
+ ];
2646
+ const el = insertPolygonShape(shapeSvg, w, h, points);
2647
+ el.attr("style", node.style);
2648
+ node.width = w + h;
2649
+ node.height = h;
2650
+ node.intersect = function(point2) {
2651
+ return intersect_default.polygon(node, points, point2);
2652
+ };
2653
+ return shapeSvg;
2654
+ }, "rect_left_inv_arrow");
2655
+ var lean_right = /* @__PURE__ */ __name(async (parent, node) => {
2656
+ const { shapeSvg, bbox } = await labelHelper(parent, node, getClassesFromNode(node), true);
2657
+ const w = bbox.width + node.padding;
2658
+ const h = bbox.height + node.padding;
2659
+ const points = [
2660
+ { x: -2 * h / 6, y: 0 },
2661
+ { x: w - h / 6, y: 0 },
2662
+ { x: w + 2 * h / 6, y: -h },
2663
+ { x: h / 6, y: -h }
2664
+ ];
2665
+ const el = insertPolygonShape(shapeSvg, w, h, points);
2666
+ el.attr("style", node.style);
2667
+ updateNodeBounds(node, el);
2668
+ node.intersect = function(point2) {
2669
+ return intersect_default.polygon(node, points, point2);
2670
+ };
2671
+ return shapeSvg;
2672
+ }, "lean_right");
2673
+ var lean_left = /* @__PURE__ */ __name(async (parent, node) => {
2674
+ const { shapeSvg, bbox } = await labelHelper(
2675
+ parent,
2676
+ node,
2677
+ getClassesFromNode(node, void 0),
2678
+ true
2679
+ );
2680
+ const w = bbox.width + node.padding;
2681
+ const h = bbox.height + node.padding;
2682
+ const points = [
2683
+ { x: 2 * h / 6, y: 0 },
2684
+ { x: w + h / 6, y: 0 },
2685
+ { x: w - 2 * h / 6, y: -h },
2686
+ { x: -h / 6, y: -h }
2687
+ ];
2688
+ const el = insertPolygonShape(shapeSvg, w, h, points);
2689
+ el.attr("style", node.style);
2690
+ updateNodeBounds(node, el);
2691
+ node.intersect = function(point2) {
2692
+ return intersect_default.polygon(node, points, point2);
2693
+ };
2694
+ return shapeSvg;
2695
+ }, "lean_left");
2696
+ var trapezoid = /* @__PURE__ */ __name(async (parent, node) => {
2697
+ const { shapeSvg, bbox } = await labelHelper(
2698
+ parent,
2699
+ node,
2700
+ getClassesFromNode(node, void 0),
2701
+ true
2702
+ );
2703
+ const w = bbox.width + node.padding;
2704
+ const h = bbox.height + node.padding;
2705
+ const points = [
2706
+ { x: -2 * h / 6, y: 0 },
2707
+ { x: w + 2 * h / 6, y: 0 },
2708
+ { x: w - h / 6, y: -h },
2709
+ { x: h / 6, y: -h }
2710
+ ];
2711
+ const el = insertPolygonShape(shapeSvg, w, h, points);
2712
+ el.attr("style", node.style);
2713
+ updateNodeBounds(node, el);
2714
+ node.intersect = function(point2) {
2715
+ return intersect_default.polygon(node, points, point2);
2716
+ };
2717
+ return shapeSvg;
2718
+ }, "trapezoid");
2719
+ var inv_trapezoid = /* @__PURE__ */ __name(async (parent, node) => {
2720
+ const { shapeSvg, bbox } = await labelHelper(
2721
+ parent,
2722
+ node,
2723
+ getClassesFromNode(node, void 0),
2724
+ true
2725
+ );
2726
+ const w = bbox.width + node.padding;
2727
+ const h = bbox.height + node.padding;
2728
+ const points = [
2729
+ { x: h / 6, y: 0 },
2730
+ { x: w - h / 6, y: 0 },
2731
+ { x: w + 2 * h / 6, y: -h },
2732
+ { x: -2 * h / 6, y: -h }
2733
+ ];
2734
+ const el = insertPolygonShape(shapeSvg, w, h, points);
2735
+ el.attr("style", node.style);
2736
+ updateNodeBounds(node, el);
2737
+ node.intersect = function(point2) {
2738
+ return intersect_default.polygon(node, points, point2);
2739
+ };
2740
+ return shapeSvg;
2741
+ }, "inv_trapezoid");
2742
+ var rect_right_inv_arrow = /* @__PURE__ */ __name(async (parent, node) => {
2743
+ const { shapeSvg, bbox } = await labelHelper(
2744
+ parent,
2745
+ node,
2746
+ getClassesFromNode(node, void 0),
2747
+ true
2748
+ );
2749
+ const w = bbox.width + node.padding;
2750
+ const h = bbox.height + node.padding;
2751
+ const points = [
2752
+ { x: 0, y: 0 },
2753
+ { x: w + h / 2, y: 0 },
2754
+ { x: w, y: -h / 2 },
2755
+ { x: w + h / 2, y: -h },
2756
+ { x: 0, y: -h }
2757
+ ];
2758
+ const el = insertPolygonShape(shapeSvg, w, h, points);
2759
+ el.attr("style", node.style);
2760
+ updateNodeBounds(node, el);
2761
+ node.intersect = function(point2) {
2762
+ return intersect_default.polygon(node, points, point2);
2763
+ };
2764
+ return shapeSvg;
2765
+ }, "rect_right_inv_arrow");
2766
+ var cylinder = /* @__PURE__ */ __name(async (parent, node) => {
2767
+ const { shapeSvg, bbox } = await labelHelper(
2768
+ parent,
2769
+ node,
2770
+ getClassesFromNode(node, void 0),
2771
+ true
2772
+ );
2773
+ const w = bbox.width + node.padding;
2774
+ const rx = w / 2;
2775
+ const ry = rx / (2.5 + w / 50);
2776
+ const h = bbox.height + ry + node.padding;
2777
+ const shape = "M 0," + ry + " a " + rx + "," + ry + " 0,0,0 " + w + " 0 a " + rx + "," + ry + " 0,0,0 " + -w + " 0 l 0," + h + " a " + rx + "," + ry + " 0,0,0 " + w + " 0 l 0," + -h;
2778
+ const el = shapeSvg.attr("label-offset-y", ry).insert("path", ":first-child").attr("style", node.style).attr("d", shape).attr("transform", "translate(" + -w / 2 + "," + -(h / 2 + ry) + ")");
2779
+ updateNodeBounds(node, el);
2780
+ node.intersect = function(point2) {
2781
+ const pos = intersect_default.rect(node, point2);
2782
+ const x = pos.x - node.x;
2783
+ if (rx != 0 && (Math.abs(x) < node.width / 2 || Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry)) {
2784
+ let y = ry * ry * (1 - x * x / (rx * rx));
2785
+ if (y != 0) {
2786
+ y = Math.sqrt(y);
2787
+ }
2788
+ y = ry - y;
2789
+ if (point2.y - node.y > 0) {
2790
+ y = -y;
2791
+ }
2792
+ pos.y += y;
2793
+ }
2794
+ return pos;
2795
+ };
2796
+ return shapeSvg;
2797
+ }, "cylinder");
2798
+ var rect = /* @__PURE__ */ __name(async (parent, node) => {
2799
+ const { shapeSvg, bbox, halfPadding } = await labelHelper(
2800
+ parent,
2801
+ node,
2802
+ "node " + node.classes + " " + node.class,
2803
+ true
2804
+ );
2805
+ const rect2 = shapeSvg.insert("rect", ":first-child");
2806
+ const totalWidth = node.positioned ? node.width : bbox.width + node.padding;
2807
+ const totalHeight = node.positioned ? node.height : bbox.height + node.padding;
2808
+ const x = node.positioned ? -totalWidth / 2 : -bbox.width / 2 - halfPadding;
2809
+ const y = node.positioned ? -totalHeight / 2 : -bbox.height / 2 - halfPadding;
2810
+ rect2.attr("class", "basic label-container").attr("style", node.style).attr("rx", node.rx).attr("ry", node.ry).attr("x", x).attr("y", y).attr("width", totalWidth).attr("height", totalHeight);
2811
+ if (node.props) {
2812
+ const propKeys = new Set(Object.keys(node.props));
2813
+ if (node.props.borders) {
2814
+ applyNodePropertyBorders(rect2, node.props.borders, totalWidth, totalHeight);
2815
+ propKeys.delete("borders");
2816
+ }
2817
+ propKeys.forEach((propKey) => {
2818
+ log.warn(`Unknown node property ${propKey}`);
2819
+ });
2820
+ }
2821
+ updateNodeBounds(node, rect2);
2822
+ node.intersect = function(point2) {
2823
+ return intersect_default.rect(node, point2);
2824
+ };
2825
+ return shapeSvg;
2826
+ }, "rect");
2827
+ var composite = /* @__PURE__ */ __name(async (parent, node) => {
2828
+ const { shapeSvg, bbox, halfPadding } = await labelHelper(
2829
+ parent,
2830
+ node,
2831
+ "node " + node.classes,
2832
+ true
2833
+ );
2834
+ const rect2 = shapeSvg.insert("rect", ":first-child");
2835
+ const totalWidth = node.positioned ? node.width : bbox.width + node.padding;
2836
+ const totalHeight = node.positioned ? node.height : bbox.height + node.padding;
2837
+ const x = node.positioned ? -totalWidth / 2 : -bbox.width / 2 - halfPadding;
2838
+ const y = node.positioned ? -totalHeight / 2 : -bbox.height / 2 - halfPadding;
2839
+ rect2.attr("class", "basic cluster composite label-container").attr("style", node.style).attr("rx", node.rx).attr("ry", node.ry).attr("x", x).attr("y", y).attr("width", totalWidth).attr("height", totalHeight);
2840
+ if (node.props) {
2841
+ const propKeys = new Set(Object.keys(node.props));
2842
+ if (node.props.borders) {
2843
+ applyNodePropertyBorders(rect2, node.props.borders, totalWidth, totalHeight);
2844
+ propKeys.delete("borders");
2845
+ }
2846
+ propKeys.forEach((propKey) => {
2847
+ log.warn(`Unknown node property ${propKey}`);
2848
+ });
2849
+ }
2850
+ updateNodeBounds(node, rect2);
2851
+ node.intersect = function(point2) {
2852
+ return intersect_default.rect(node, point2);
2853
+ };
2854
+ return shapeSvg;
2855
+ }, "composite");
2856
+ var labelRect = /* @__PURE__ */ __name(async (parent, node) => {
2857
+ const { shapeSvg } = await labelHelper(parent, node, "label", true);
2858
+ log.trace("Classes = ", node.class);
2859
+ const rect2 = shapeSvg.insert("rect", ":first-child");
2860
+ const totalWidth = 0;
2861
+ const totalHeight = 0;
2862
+ rect2.attr("width", totalWidth).attr("height", totalHeight);
2863
+ shapeSvg.attr("class", "label edgeLabel");
2864
+ if (node.props) {
2865
+ const propKeys = new Set(Object.keys(node.props));
2866
+ if (node.props.borders) {
2867
+ applyNodePropertyBorders(rect2, node.props.borders, totalWidth, totalHeight);
2868
+ propKeys.delete("borders");
2869
+ }
2870
+ propKeys.forEach((propKey) => {
2871
+ log.warn(`Unknown node property ${propKey}`);
2872
+ });
2873
+ }
2874
+ updateNodeBounds(node, rect2);
2875
+ node.intersect = function(point2) {
2876
+ return intersect_default.rect(node, point2);
2877
+ };
2878
+ return shapeSvg;
2879
+ }, "labelRect");
2880
+ function applyNodePropertyBorders(rect2, borders, totalWidth, totalHeight) {
2881
+ const strokeDashArray = [];
2882
+ const addBorder = /* @__PURE__ */ __name((length) => {
2883
+ strokeDashArray.push(length, 0);
2884
+ }, "addBorder");
2885
+ const skipBorder = /* @__PURE__ */ __name((length) => {
2886
+ strokeDashArray.push(0, length);
2887
+ }, "skipBorder");
2888
+ if (borders.includes("t")) {
2889
+ log.debug("add top border");
2890
+ addBorder(totalWidth);
2891
+ } else {
2892
+ skipBorder(totalWidth);
2893
+ }
2894
+ if (borders.includes("r")) {
2895
+ log.debug("add right border");
2896
+ addBorder(totalHeight);
2897
+ } else {
2898
+ skipBorder(totalHeight);
2899
+ }
2900
+ if (borders.includes("b")) {
2901
+ log.debug("add bottom border");
2902
+ addBorder(totalWidth);
2903
+ } else {
2904
+ skipBorder(totalWidth);
2905
+ }
2906
+ if (borders.includes("l")) {
2907
+ log.debug("add left border");
2908
+ addBorder(totalHeight);
2909
+ } else {
2910
+ skipBorder(totalHeight);
2911
+ }
2912
+ rect2.attr("stroke-dasharray", strokeDashArray.join(" "));
2913
+ }
2914
+ __name(applyNodePropertyBorders, "applyNodePropertyBorders");
2915
+ var rectWithTitle = /* @__PURE__ */ __name((parent, node) => {
2916
+ let classes2;
2917
+ if (!node.classes) {
2918
+ classes2 = "node default";
2919
+ } else {
2920
+ classes2 = "node " + node.classes;
2921
+ }
2922
+ const shapeSvg = parent.insert("g").attr("class", classes2).attr("id", node.domId || node.id);
2923
+ const rect2 = shapeSvg.insert("rect", ":first-child");
2924
+ const innerLine = shapeSvg.insert("line");
2925
+ const label = shapeSvg.insert("g").attr("class", "label");
2926
+ const text2 = node.labelText.flat ? node.labelText.flat() : node.labelText;
2927
+ let title = "";
2928
+ if (typeof text2 === "object") {
2929
+ title = text2[0];
2930
+ } else {
2931
+ title = text2;
2932
+ }
2933
+ log.info("Label text abc79", title, text2, typeof text2 === "object");
2934
+ const text = label.node().appendChild(createLabel_default(title, node.labelStyle, true, true));
2935
+ let bbox = { width: 0, height: 0 };
2936
+ if (evaluate(getConfig2().flowchart.htmlLabels)) {
2937
+ const div = text.children[0];
2938
+ const dv = select(text);
2939
+ bbox = div.getBoundingClientRect();
2940
+ dv.attr("width", bbox.width);
2941
+ dv.attr("height", bbox.height);
2942
+ }
2943
+ log.info("Text 2", text2);
2944
+ const textRows = text2.slice(1, text2.length);
2945
+ let titleBox = text.getBBox();
2946
+ const descr = label.node().appendChild(
2947
+ createLabel_default(textRows.join ? textRows.join("<br/>") : textRows, node.labelStyle, true, true)
2948
+ );
2949
+ if (evaluate(getConfig2().flowchart.htmlLabels)) {
2950
+ const div = descr.children[0];
2951
+ const dv = select(descr);
2952
+ bbox = div.getBoundingClientRect();
2953
+ dv.attr("width", bbox.width);
2954
+ dv.attr("height", bbox.height);
2955
+ }
2956
+ const halfPadding = node.padding / 2;
2957
+ select(descr).attr(
2958
+ "transform",
2959
+ "translate( " + // (titleBox.width - bbox.width) / 2 +
2960
+ (bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) + ", " + (titleBox.height + halfPadding + 5) + ")"
2961
+ );
2962
+ select(text).attr(
2963
+ "transform",
2964
+ "translate( " + // (titleBox.width - bbox.width) / 2 +
2965
+ (bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) + ", 0)"
2966
+ );
2967
+ bbox = label.node().getBBox();
2968
+ label.attr(
2969
+ "transform",
2970
+ "translate(" + -bbox.width / 2 + ", " + (-bbox.height / 2 - halfPadding + 3) + ")"
2971
+ );
2972
+ rect2.attr("class", "outer title-state").attr("x", -bbox.width / 2 - halfPadding).attr("y", -bbox.height / 2 - halfPadding).attr("width", bbox.width + node.padding).attr("height", bbox.height + node.padding);
2973
+ innerLine.attr("class", "divider").attr("x1", -bbox.width / 2 - halfPadding).attr("x2", bbox.width / 2 + halfPadding).attr("y1", -bbox.height / 2 - halfPadding + titleBox.height + halfPadding).attr("y2", -bbox.height / 2 - halfPadding + titleBox.height + halfPadding);
2974
+ updateNodeBounds(node, rect2);
2975
+ node.intersect = function(point2) {
2976
+ return intersect_default.rect(node, point2);
2977
+ };
2978
+ return shapeSvg;
2979
+ }, "rectWithTitle");
2980
+ var stadium = /* @__PURE__ */ __name(async (parent, node) => {
2981
+ const { shapeSvg, bbox } = await labelHelper(
2982
+ parent,
2983
+ node,
2984
+ getClassesFromNode(node, void 0),
2985
+ true
2986
+ );
2987
+ const h = bbox.height + node.padding;
2988
+ const w = bbox.width + h / 4 + node.padding;
2989
+ const rect2 = shapeSvg.insert("rect", ":first-child").attr("style", node.style).attr("rx", h / 2).attr("ry", h / 2).attr("x", -w / 2).attr("y", -h / 2).attr("width", w).attr("height", h);
2990
+ updateNodeBounds(node, rect2);
2991
+ node.intersect = function(point2) {
2992
+ return intersect_default.rect(node, point2);
2993
+ };
2994
+ return shapeSvg;
2995
+ }, "stadium");
2996
+ var circle2 = /* @__PURE__ */ __name(async (parent, node) => {
2997
+ const { shapeSvg, bbox, halfPadding } = await labelHelper(
2998
+ parent,
2999
+ node,
3000
+ getClassesFromNode(node, void 0),
3001
+ true
3002
+ );
3003
+ const circle3 = shapeSvg.insert("circle", ":first-child");
3004
+ circle3.attr("style", node.style).attr("rx", node.rx).attr("ry", node.ry).attr("r", bbox.width / 2 + halfPadding).attr("width", bbox.width + node.padding).attr("height", bbox.height + node.padding);
3005
+ log.info("Circle main");
3006
+ updateNodeBounds(node, circle3);
3007
+ node.intersect = function(point2) {
3008
+ log.info("Circle intersect", node, bbox.width / 2 + halfPadding, point2);
3009
+ return intersect_default.circle(node, bbox.width / 2 + halfPadding, point2);
3010
+ };
3011
+ return shapeSvg;
3012
+ }, "circle");
3013
+ var doublecircle = /* @__PURE__ */ __name(async (parent, node) => {
3014
+ const { shapeSvg, bbox, halfPadding } = await labelHelper(
3015
+ parent,
3016
+ node,
3017
+ getClassesFromNode(node, void 0),
3018
+ true
3019
+ );
3020
+ const gap = 5;
3021
+ const circleGroup = shapeSvg.insert("g", ":first-child");
3022
+ const outerCircle = circleGroup.insert("circle");
3023
+ const innerCircle = circleGroup.insert("circle");
3024
+ circleGroup.attr("class", node.class);
3025
+ outerCircle.attr("style", node.style).attr("rx", node.rx).attr("ry", node.ry).attr("r", bbox.width / 2 + halfPadding + gap).attr("width", bbox.width + node.padding + gap * 2).attr("height", bbox.height + node.padding + gap * 2);
3026
+ innerCircle.attr("style", node.style).attr("rx", node.rx).attr("ry", node.ry).attr("r", bbox.width / 2 + halfPadding).attr("width", bbox.width + node.padding).attr("height", bbox.height + node.padding);
3027
+ log.info("DoubleCircle main");
3028
+ updateNodeBounds(node, outerCircle);
3029
+ node.intersect = function(point2) {
3030
+ log.info("DoubleCircle intersect", node, bbox.width / 2 + halfPadding + gap, point2);
3031
+ return intersect_default.circle(node, bbox.width / 2 + halfPadding + gap, point2);
3032
+ };
3033
+ return shapeSvg;
3034
+ }, "doublecircle");
3035
+ var subroutine = /* @__PURE__ */ __name(async (parent, node) => {
3036
+ const { shapeSvg, bbox } = await labelHelper(
3037
+ parent,
3038
+ node,
3039
+ getClassesFromNode(node, void 0),
3040
+ true
3041
+ );
3042
+ const w = bbox.width + node.padding;
3043
+ const h = bbox.height + node.padding;
3044
+ const points = [
3045
+ { x: 0, y: 0 },
3046
+ { x: w, y: 0 },
3047
+ { x: w, y: -h },
3048
+ { x: 0, y: -h },
3049
+ { x: 0, y: 0 },
3050
+ { x: -8, y: 0 },
3051
+ { x: w + 8, y: 0 },
3052
+ { x: w + 8, y: -h },
3053
+ { x: -8, y: -h },
3054
+ { x: -8, y: 0 }
3055
+ ];
3056
+ const el = insertPolygonShape(shapeSvg, w, h, points);
3057
+ el.attr("style", node.style);
3058
+ updateNodeBounds(node, el);
3059
+ node.intersect = function(point2) {
3060
+ return intersect_default.polygon(node, points, point2);
3061
+ };
3062
+ return shapeSvg;
3063
+ }, "subroutine");
3064
+ var start = /* @__PURE__ */ __name((parent, node) => {
3065
+ const shapeSvg = parent.insert("g").attr("class", "node default").attr("id", node.domId || node.id);
3066
+ const circle3 = shapeSvg.insert("circle", ":first-child");
3067
+ circle3.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14);
3068
+ updateNodeBounds(node, circle3);
3069
+ node.intersect = function(point2) {
3070
+ return intersect_default.circle(node, 7, point2);
3071
+ };
3072
+ return shapeSvg;
3073
+ }, "start");
3074
+ var forkJoin = /* @__PURE__ */ __name((parent, node, dir) => {
3075
+ const shapeSvg = parent.insert("g").attr("class", "node default").attr("id", node.domId || node.id);
3076
+ let width = 70;
3077
+ let height = 10;
3078
+ if (dir === "LR") {
3079
+ width = 10;
3080
+ height = 70;
3081
+ }
3082
+ const shape = shapeSvg.append("rect").attr("x", -1 * width / 2).attr("y", -1 * height / 2).attr("width", width).attr("height", height).attr("class", "fork-join");
3083
+ updateNodeBounds(node, shape);
3084
+ node.height = node.height + node.padding / 2;
3085
+ node.width = node.width + node.padding / 2;
3086
+ node.intersect = function(point2) {
3087
+ return intersect_default.rect(node, point2);
3088
+ };
3089
+ return shapeSvg;
3090
+ }, "forkJoin");
3091
+ var end = /* @__PURE__ */ __name((parent, node) => {
3092
+ const shapeSvg = parent.insert("g").attr("class", "node default").attr("id", node.domId || node.id);
3093
+ const innerCircle = shapeSvg.insert("circle", ":first-child");
3094
+ const circle3 = shapeSvg.insert("circle", ":first-child");
3095
+ circle3.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14);
3096
+ innerCircle.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10);
3097
+ updateNodeBounds(node, circle3);
3098
+ node.intersect = function(point2) {
3099
+ return intersect_default.circle(node, 7, point2);
3100
+ };
3101
+ return shapeSvg;
3102
+ }, "end");
3103
+ var class_box = /* @__PURE__ */ __name((parent, node) => {
3104
+ var _a2;
3105
+ const halfPadding = node.padding / 2;
3106
+ const rowPadding = 4;
3107
+ const lineHeight = 8;
3108
+ let classes2;
3109
+ if (!node.classes) {
3110
+ classes2 = "node default";
3111
+ } else {
3112
+ classes2 = "node " + node.classes;
3113
+ }
3114
+ const shapeSvg = parent.insert("g").attr("class", classes2).attr("id", node.domId || node.id);
3115
+ const rect2 = shapeSvg.insert("rect", ":first-child");
3116
+ const topLine = shapeSvg.insert("line");
3117
+ const bottomLine = shapeSvg.insert("line");
3118
+ let maxWidth = 0;
3119
+ let maxHeight = rowPadding;
3120
+ const labelContainer = shapeSvg.insert("g").attr("class", "label");
3121
+ let verticalPos = 0;
3122
+ const hasInterface = (_a2 = node.classData.annotations) == null ? void 0 : _a2[0];
3123
+ const interfaceLabelText = node.classData.annotations[0] ? "«" + node.classData.annotations[0] + "»" : "";
3124
+ const interfaceLabel = labelContainer.node().appendChild(createLabel_default(interfaceLabelText, node.labelStyle, true, true));
3125
+ let interfaceBBox = interfaceLabel.getBBox();
3126
+ if (evaluate(getConfig2().flowchart.htmlLabels)) {
3127
+ const div = interfaceLabel.children[0];
3128
+ const dv = select(interfaceLabel);
3129
+ interfaceBBox = div.getBoundingClientRect();
3130
+ dv.attr("width", interfaceBBox.width);
3131
+ dv.attr("height", interfaceBBox.height);
3132
+ }
3133
+ if (node.classData.annotations[0]) {
3134
+ maxHeight += interfaceBBox.height + rowPadding;
3135
+ maxWidth += interfaceBBox.width;
3136
+ }
3137
+ let classTitleString = node.classData.label;
3138
+ if (node.classData.type !== void 0 && node.classData.type !== "") {
3139
+ if (getConfig2().flowchart.htmlLabels) {
3140
+ classTitleString += "&lt;" + node.classData.type + "&gt;";
3141
+ } else {
3142
+ classTitleString += "<" + node.classData.type + ">";
3143
+ }
3144
+ }
3145
+ const classTitleLabel = labelContainer.node().appendChild(createLabel_default(classTitleString, node.labelStyle, true, true));
3146
+ select(classTitleLabel).attr("class", "classTitle");
3147
+ let classTitleBBox = classTitleLabel.getBBox();
3148
+ if (evaluate(getConfig2().flowchart.htmlLabels)) {
3149
+ const div = classTitleLabel.children[0];
3150
+ const dv = select(classTitleLabel);
3151
+ classTitleBBox = div.getBoundingClientRect();
3152
+ dv.attr("width", classTitleBBox.width);
3153
+ dv.attr("height", classTitleBBox.height);
3154
+ }
3155
+ maxHeight += classTitleBBox.height + rowPadding;
3156
+ if (classTitleBBox.width > maxWidth) {
3157
+ maxWidth = classTitleBBox.width;
3158
+ }
3159
+ const classAttributes = [];
3160
+ node.classData.members.forEach((member) => {
3161
+ const parsedInfo = member.getDisplayDetails();
3162
+ let parsedText = parsedInfo.displayText;
3163
+ if (getConfig2().flowchart.htmlLabels) {
3164
+ parsedText = parsedText.replace(/</g, "&lt;").replace(/>/g, "&gt;");
3165
+ }
3166
+ const lbl = labelContainer.node().appendChild(
3167
+ createLabel_default(
3168
+ parsedText,
3169
+ parsedInfo.cssStyle ? parsedInfo.cssStyle : node.labelStyle,
3170
+ true,
3171
+ true
3172
+ )
3173
+ );
3174
+ let bbox = lbl.getBBox();
3175
+ if (evaluate(getConfig2().flowchart.htmlLabels)) {
3176
+ const div = lbl.children[0];
3177
+ const dv = select(lbl);
3178
+ bbox = div.getBoundingClientRect();
3179
+ dv.attr("width", bbox.width);
3180
+ dv.attr("height", bbox.height);
3181
+ }
3182
+ if (bbox.width > maxWidth) {
3183
+ maxWidth = bbox.width;
3184
+ }
3185
+ maxHeight += bbox.height + rowPadding;
3186
+ classAttributes.push(lbl);
3187
+ });
3188
+ maxHeight += lineHeight;
3189
+ const classMethods = [];
3190
+ node.classData.methods.forEach((member) => {
3191
+ const parsedInfo = member.getDisplayDetails();
3192
+ let displayText = parsedInfo.displayText;
3193
+ if (getConfig2().flowchart.htmlLabels) {
3194
+ displayText = displayText.replace(/</g, "&lt;").replace(/>/g, "&gt;");
3195
+ }
3196
+ const lbl = labelContainer.node().appendChild(
3197
+ createLabel_default(
3198
+ displayText,
3199
+ parsedInfo.cssStyle ? parsedInfo.cssStyle : node.labelStyle,
3200
+ true,
3201
+ true
3202
+ )
3203
+ );
3204
+ let bbox = lbl.getBBox();
3205
+ if (evaluate(getConfig2().flowchart.htmlLabels)) {
3206
+ const div = lbl.children[0];
3207
+ const dv = select(lbl);
3208
+ bbox = div.getBoundingClientRect();
3209
+ dv.attr("width", bbox.width);
3210
+ dv.attr("height", bbox.height);
3211
+ }
3212
+ if (bbox.width > maxWidth) {
3213
+ maxWidth = bbox.width;
3214
+ }
3215
+ maxHeight += bbox.height + rowPadding;
3216
+ classMethods.push(lbl);
3217
+ });
3218
+ maxHeight += lineHeight;
3219
+ if (hasInterface) {
3220
+ let diffX2 = (maxWidth - interfaceBBox.width) / 2;
3221
+ select(interfaceLabel).attr(
3222
+ "transform",
3223
+ "translate( " + (-1 * maxWidth / 2 + diffX2) + ", " + -1 * maxHeight / 2 + ")"
3224
+ );
3225
+ verticalPos = interfaceBBox.height + rowPadding;
3226
+ }
3227
+ let diffX = (maxWidth - classTitleBBox.width) / 2;
3228
+ select(classTitleLabel).attr(
3229
+ "transform",
3230
+ "translate( " + (-1 * maxWidth / 2 + diffX) + ", " + (-1 * maxHeight / 2 + verticalPos) + ")"
3231
+ );
3232
+ verticalPos += classTitleBBox.height + rowPadding;
3233
+ topLine.attr("class", "divider").attr("x1", -maxWidth / 2 - halfPadding).attr("x2", maxWidth / 2 + halfPadding).attr("y1", -maxHeight / 2 - halfPadding + lineHeight + verticalPos).attr("y2", -maxHeight / 2 - halfPadding + lineHeight + verticalPos);
3234
+ verticalPos += lineHeight;
3235
+ classAttributes.forEach((lbl) => {
3236
+ select(lbl).attr(
3237
+ "transform",
3238
+ "translate( " + -maxWidth / 2 + ", " + (-1 * maxHeight / 2 + verticalPos + lineHeight / 2) + ")"
3239
+ );
3240
+ const memberBBox = lbl == null ? void 0 : lbl.getBBox();
3241
+ verticalPos += ((memberBBox == null ? void 0 : memberBBox.height) ?? 0) + rowPadding;
3242
+ });
3243
+ verticalPos += lineHeight;
3244
+ bottomLine.attr("class", "divider").attr("x1", -maxWidth / 2 - halfPadding).attr("x2", maxWidth / 2 + halfPadding).attr("y1", -maxHeight / 2 - halfPadding + lineHeight + verticalPos).attr("y2", -maxHeight / 2 - halfPadding + lineHeight + verticalPos);
3245
+ verticalPos += lineHeight;
3246
+ classMethods.forEach((lbl) => {
3247
+ select(lbl).attr(
3248
+ "transform",
3249
+ "translate( " + -maxWidth / 2 + ", " + (-1 * maxHeight / 2 + verticalPos) + ")"
3250
+ );
3251
+ const memberBBox = lbl == null ? void 0 : lbl.getBBox();
3252
+ verticalPos += ((memberBBox == null ? void 0 : memberBBox.height) ?? 0) + rowPadding;
3253
+ });
3254
+ rect2.attr("style", node.style).attr("class", "outer title-state").attr("x", -maxWidth / 2 - halfPadding).attr("y", -(maxHeight / 2) - halfPadding).attr("width", maxWidth + node.padding).attr("height", maxHeight + node.padding);
3255
+ updateNodeBounds(node, rect2);
3256
+ node.intersect = function(point2) {
3257
+ return intersect_default.rect(node, point2);
3258
+ };
3259
+ return shapeSvg;
3260
+ }, "class_box");
3261
+ var shapes = {
3262
+ rhombus: question,
3263
+ composite,
3264
+ question,
3265
+ rect,
3266
+ labelRect,
3267
+ rectWithTitle,
3268
+ choice,
3269
+ circle: circle2,
3270
+ doublecircle,
3271
+ stadium,
3272
+ hexagon,
3273
+ block_arrow,
3274
+ rect_left_inv_arrow,
3275
+ lean_right,
3276
+ lean_left,
3277
+ trapezoid,
3278
+ inv_trapezoid,
3279
+ rect_right_inv_arrow,
3280
+ cylinder,
3281
+ start,
3282
+ end,
3283
+ note: note_default,
3284
+ subroutine,
3285
+ fork: forkJoin,
3286
+ join: forkJoin,
3287
+ class_box
3288
+ };
3289
+ var nodeElems = {};
3290
+ var insertNode = /* @__PURE__ */ __name(async (elem, node, renderOptions) => {
3291
+ let newEl;
3292
+ let el;
3293
+ if (node.link) {
3294
+ let target;
3295
+ if (getConfig2().securityLevel === "sandbox") {
3296
+ target = "_top";
3297
+ } else if (node.linkTarget) {
3298
+ target = node.linkTarget || "_blank";
3299
+ }
3300
+ newEl = elem.insert("svg:a").attr("xlink:href", node.link).attr("target", target);
3301
+ el = await shapes[node.shape](newEl, node, renderOptions);
3302
+ } else {
3303
+ el = await shapes[node.shape](elem, node, renderOptions);
3304
+ newEl = el;
3305
+ }
3306
+ if (node.tooltip) {
3307
+ el.attr("title", node.tooltip);
3308
+ }
3309
+ if (node.class) {
3310
+ el.attr("class", "node default " + node.class);
3311
+ }
3312
+ nodeElems[node.id] = newEl;
3313
+ if (node.haveCallback) {
3314
+ nodeElems[node.id].attr("class", nodeElems[node.id].attr("class") + " clickable");
3315
+ }
3316
+ return newEl;
3317
+ }, "insertNode");
3318
+ var positionNode = /* @__PURE__ */ __name((node) => {
3319
+ const el = nodeElems[node.id];
3320
+ log.trace(
3321
+ "Transforming node",
3322
+ node.diff,
3323
+ node,
3324
+ "translate(" + (node.x - node.width / 2 - 5) + ", " + node.width / 2 + ")"
3325
+ );
3326
+ const padding2 = 8;
3327
+ const diff = node.diff || 0;
3328
+ if (node.clusterNode) {
3329
+ el.attr(
3330
+ "transform",
3331
+ "translate(" + (node.x + diff - node.width / 2) + ", " + (node.y - node.height / 2 - padding2) + ")"
3332
+ );
3333
+ } else {
3334
+ el.attr("transform", "translate(" + node.x + ", " + node.y + ")");
3335
+ }
3336
+ return diff;
3337
+ }, "positionNode");
3338
+ function getNodeFromBlock(block, db2, positioned = false) {
3339
+ var _a2, _b2, _c;
3340
+ const vertex = block;
3341
+ let classStr = "default";
3342
+ if ((((_a2 = vertex == null ? void 0 : vertex.classes) == null ? void 0 : _a2.length) || 0) > 0) {
3343
+ classStr = ((vertex == null ? void 0 : vertex.classes) ?? []).join(" ");
3344
+ }
3345
+ classStr = classStr + " flowchart-label";
3346
+ let radius = 0;
3347
+ let shape = "";
3348
+ let padding2;
3349
+ switch (vertex.type) {
3350
+ case "round":
3351
+ radius = 5;
3352
+ shape = "rect";
3353
+ break;
3354
+ case "composite":
3355
+ radius = 0;
3356
+ shape = "composite";
3357
+ padding2 = 0;
3358
+ break;
3359
+ case "square":
3360
+ shape = "rect";
3361
+ break;
3362
+ case "diamond":
3363
+ shape = "question";
3364
+ break;
3365
+ case "hexagon":
3366
+ shape = "hexagon";
3367
+ break;
3368
+ case "block_arrow":
3369
+ shape = "block_arrow";
3370
+ break;
3371
+ case "odd":
3372
+ shape = "rect_left_inv_arrow";
3373
+ break;
3374
+ case "lean_right":
3375
+ shape = "lean_right";
3376
+ break;
3377
+ case "lean_left":
3378
+ shape = "lean_left";
3379
+ break;
3380
+ case "trapezoid":
3381
+ shape = "trapezoid";
3382
+ break;
3383
+ case "inv_trapezoid":
3384
+ shape = "inv_trapezoid";
3385
+ break;
3386
+ case "rect_left_inv_arrow":
3387
+ shape = "rect_left_inv_arrow";
3388
+ break;
3389
+ case "circle":
3390
+ shape = "circle";
3391
+ break;
3392
+ case "ellipse":
3393
+ shape = "ellipse";
3394
+ break;
3395
+ case "stadium":
3396
+ shape = "stadium";
3397
+ break;
3398
+ case "subroutine":
3399
+ shape = "subroutine";
3400
+ break;
3401
+ case "cylinder":
3402
+ shape = "cylinder";
3403
+ break;
3404
+ case "group":
3405
+ shape = "rect";
3406
+ break;
3407
+ case "doublecircle":
3408
+ shape = "doublecircle";
3409
+ break;
3410
+ default:
3411
+ shape = "rect";
3412
+ }
3413
+ const styles = getStylesFromArray((vertex == null ? void 0 : vertex.styles) ?? []);
3414
+ const vertexText = vertex.label;
3415
+ const bounds = vertex.size ?? { width: 0, height: 0, x: 0, y: 0 };
3416
+ const node = {
3417
+ labelStyle: styles.labelStyle,
3418
+ shape,
3419
+ labelText: vertexText,
3420
+ rx: radius,
3421
+ ry: radius,
3422
+ class: classStr,
3423
+ style: styles.style,
3424
+ id: vertex.id,
3425
+ directions: vertex.directions,
3426
+ width: bounds.width,
3427
+ height: bounds.height,
3428
+ x: bounds.x,
3429
+ y: bounds.y,
3430
+ positioned,
3431
+ intersect: void 0,
3432
+ type: vertex.type,
3433
+ padding: padding2 ?? ((_c = (_b2 = getConfig()) == null ? void 0 : _b2.block) == null ? void 0 : _c.padding) ?? 0
3434
+ };
3435
+ return node;
3436
+ }
3437
+ __name(getNodeFromBlock, "getNodeFromBlock");
3438
+ async function calculateBlockSize(elem, block, db2) {
3439
+ const node = getNodeFromBlock(block, db2, false);
3440
+ if (node.type === "group") {
3441
+ return;
3442
+ }
3443
+ const config2 = getConfig();
3444
+ const nodeEl = await insertNode(elem, node, { config: config2 });
3445
+ const boundingBox = nodeEl.node().getBBox();
3446
+ const obj = db2.getBlock(node.id);
3447
+ obj.size = { width: boundingBox.width, height: boundingBox.height, x: 0, y: 0, node: nodeEl };
3448
+ db2.setBlock(obj);
3449
+ nodeEl.remove();
3450
+ }
3451
+ __name(calculateBlockSize, "calculateBlockSize");
3452
+ async function insertBlockPositioned(elem, block, db2) {
3453
+ const node = getNodeFromBlock(block, db2, true);
3454
+ const obj = db2.getBlock(node.id);
3455
+ if (obj.type !== "space") {
3456
+ const config2 = getConfig();
3457
+ await insertNode(elem, node, { config: config2 });
3458
+ block.intersect = node == null ? void 0 : node.intersect;
3459
+ positionNode(node);
3460
+ }
3461
+ }
3462
+ __name(insertBlockPositioned, "insertBlockPositioned");
3463
+ async function performOperations(elem, blocks2, db2, operation) {
3464
+ for (const block of blocks2) {
3465
+ await operation(elem, block, db2);
3466
+ if (block.children) {
3467
+ await performOperations(elem, block.children, db2, operation);
3468
+ }
3469
+ }
3470
+ }
3471
+ __name(performOperations, "performOperations");
3472
+ async function calculateBlockSizes(elem, blocks2, db2) {
3473
+ await performOperations(elem, blocks2, db2, calculateBlockSize);
3474
+ }
3475
+ __name(calculateBlockSizes, "calculateBlockSizes");
3476
+ async function insertBlocks(elem, blocks2, db2) {
3477
+ await performOperations(elem, blocks2, db2, insertBlockPositioned);
3478
+ }
3479
+ __name(insertBlocks, "insertBlocks");
3480
+ async function insertEdges(elem, edges, blocks2, db2, id) {
3481
+ const g = new Graph({
3482
+ multigraph: true,
3483
+ compound: true
3484
+ });
3485
+ g.setGraph({
3486
+ rankdir: "TB",
3487
+ nodesep: 10,
3488
+ ranksep: 10,
3489
+ marginx: 8,
3490
+ marginy: 8
3491
+ });
3492
+ for (const block of blocks2) {
3493
+ if (block.size) {
3494
+ g.setNode(block.id, {
3495
+ width: block.size.width,
3496
+ height: block.size.height,
3497
+ intersect: block.intersect
3498
+ });
3499
+ }
3500
+ }
3501
+ for (const edge of edges) {
3502
+ if (edge.start && edge.end) {
3503
+ const startBlock = db2.getBlock(edge.start);
3504
+ const endBlock = db2.getBlock(edge.end);
3505
+ if ((startBlock == null ? void 0 : startBlock.size) && (endBlock == null ? void 0 : endBlock.size)) {
3506
+ const start2 = startBlock.size;
3507
+ const end2 = endBlock.size;
3508
+ const points = [
3509
+ { x: start2.x, y: start2.y },
3510
+ { x: start2.x + (end2.x - start2.x) / 2, y: start2.y + (end2.y - start2.y) / 2 },
3511
+ { x: end2.x, y: end2.y }
3512
+ ];
3513
+ insertEdge(
3514
+ elem,
3515
+ { v: edge.start, w: edge.end, name: edge.id },
3516
+ {
3517
+ ...edge,
3518
+ arrowTypeEnd: edge.arrowTypeEnd,
3519
+ arrowTypeStart: edge.arrowTypeStart,
3520
+ points,
3521
+ classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
3522
+ },
3523
+ void 0,
3524
+ "block",
3525
+ g,
3526
+ id
3527
+ );
3528
+ if (edge.label) {
3529
+ await insertEdgeLabel(elem, {
3530
+ ...edge,
3531
+ label: edge.label,
3532
+ labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
3533
+ arrowTypeEnd: edge.arrowTypeEnd,
3534
+ arrowTypeStart: edge.arrowTypeStart,
3535
+ points,
3536
+ classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
3537
+ });
3538
+ positionEdgeLabel(
3539
+ { ...edge, x: points[1].x, y: points[1].y },
3540
+ {
3541
+ originalPath: points
3542
+ }
3543
+ );
3544
+ }
3545
+ }
3546
+ }
3547
+ }
3548
+ }
3549
+ __name(insertEdges, "insertEdges");
3550
+ var getClasses2 = /* @__PURE__ */ __name(function(text, diagObj) {
3551
+ return diagObj.db.getClasses();
3552
+ }, "getClasses");
3553
+ var draw = /* @__PURE__ */ __name(async function(text, id, _version, diagObj) {
3554
+ const { securityLevel, block: conf } = getConfig();
3555
+ const db2 = diagObj.db;
3556
+ let sandboxElement;
3557
+ if (securityLevel === "sandbox") {
3558
+ sandboxElement = select("#i" + id);
3559
+ }
3560
+ const root = securityLevel === "sandbox" ? select(sandboxElement.nodes()[0].contentDocument.body) : select("body");
3561
+ const svg = securityLevel === "sandbox" ? root.select(`[id="${id}"]`) : select(`[id="${id}"]`);
3562
+ const markers2 = ["point", "circle", "cross"];
3563
+ markers_default(svg, markers2, diagObj.type, id);
3564
+ const bl = db2.getBlocks();
3565
+ const blArr = db2.getBlocksFlat();
3566
+ const edges = db2.getEdges();
3567
+ const nodes = svg.insert("g").attr("class", "block");
3568
+ await calculateBlockSizes(nodes, bl, db2);
3569
+ const bounds = layout(db2);
3570
+ await insertBlocks(nodes, bl, db2);
3571
+ await insertEdges(nodes, edges, blArr, db2, id);
3572
+ if (bounds) {
3573
+ const bounds2 = bounds;
3574
+ const magicFactor = Math.max(1, Math.round(0.125 * (bounds2.width / bounds2.height)));
3575
+ const height = bounds2.height + magicFactor + 10;
3576
+ const width = bounds2.width + 10;
3577
+ const { useMaxWidth } = conf;
3578
+ configureSvgSize(svg, height, width, !!useMaxWidth);
3579
+ log.debug("Here Bounds", bounds, bounds2);
3580
+ svg.attr(
3581
+ "viewBox",
3582
+ `${bounds2.x - 5} ${bounds2.y - 5} ${bounds2.width + 10} ${bounds2.height + 10}`
3583
+ );
3584
+ }
3585
+ }, "draw");
3586
+ var blockRenderer_default = {
3587
+ draw,
3588
+ getClasses: getClasses2
3589
+ };
3590
+ var diagram = {
3591
+ parser: block_default,
3592
+ db: blockDB_default,
3593
+ renderer: blockRenderer_default,
3594
+ styles: styles_default
3595
+ };
3596
+ export {
3597
+ diagram
3598
+ };