@elmethis/core 1.0.0-alpha.146 → 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 (859) 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/{Bash-Dgvf3lDU.js → components/icon/languages/Bash.vue.mjs} +16 -15
  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 +24 -26
  855. package/dist/Css-BDTor6my.js +0 -18
  856. package/dist/ElmShikiHighlighter-B6syB4ax.js +0 -44
  857. package/dist/Rust-BwuxPQOA.js +0 -16
  858. package/dist/elmethis.js +0 -70
  859. package/dist/index-BFwE0btN.js +0 -3523
@@ -0,0 +1,2487 @@
1
+ var _a, _b;
2
+ import { getNoteRect, drawRect } from "./chunk-D6G4REZN.mjs";
3
+ import { calculateTextWidth, wrapLabel, calculateTextHeight } from "./chunk-O4NI6UNU.mjs";
4
+ import { __name, setAccDescription, getAccDescription, getAccTitle, setAccTitle, getConfig2, log, configureSvgSize, assignWithDepth_default, sanitizeText, common_default } from "./chunk-YTJNT7DU.mjs";
5
+ import "../../../../../../d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/index.mjs";
6
+ import "../../../../../../d3-zoom@3.0.0/node_modules/d3-zoom/src/transform.mjs";
7
+ import { d as distExports } from "../../../../../../../../_virtual/index.mjs";
8
+ import select from "../../../../../../d3-selection@3.0.0/node_modules/d3-selection/src/select.mjs";
9
+ var parser = function() {
10
+ var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
11
+ for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
12
+ return o2;
13
+ }, "o"), $V0 = [1, 24], $V1 = [1, 25], $V2 = [1, 26], $V3 = [1, 27], $V4 = [1, 28], $V5 = [1, 63], $V6 = [1, 64], $V7 = [1, 65], $V8 = [1, 66], $V9 = [1, 67], $Va = [1, 68], $Vb = [1, 69], $Vc = [1, 29], $Vd = [1, 30], $Ve = [1, 31], $Vf = [1, 32], $Vg = [1, 33], $Vh = [1, 34], $Vi = [1, 35], $Vj = [1, 36], $Vk = [1, 37], $Vl = [1, 38], $Vm = [1, 39], $Vn = [1, 40], $Vo = [1, 41], $Vp = [1, 42], $Vq = [1, 43], $Vr = [1, 44], $Vs = [1, 45], $Vt = [1, 46], $Vu = [1, 47], $Vv = [1, 48], $Vw = [1, 50], $Vx = [1, 51], $Vy = [1, 52], $Vz = [1, 53], $VA = [1, 54], $VB = [1, 55], $VC = [1, 56], $VD = [1, 57], $VE = [1, 58], $VF = [1, 59], $VG = [1, 60], $VH = [14, 42], $VI = [14, 34, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74], $VJ = [12, 14, 34, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74], $VK = [1, 82], $VL = [1, 83], $VM = [1, 84], $VN = [1, 85], $VO = [12, 14, 42], $VP = [12, 14, 33, 42], $VQ = [12, 14, 33, 42, 76, 77, 79, 80], $VR = [12, 33], $VS = [34, 36, 37, 38, 39, 40, 41, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74];
14
+ var parser2 = {
15
+ trace: /* @__PURE__ */ __name(function trace() {
16
+ }, "trace"),
17
+ yy: {},
18
+ symbols_: { "error": 2, "start": 3, "mermaidDoc": 4, "direction": 5, "direction_tb": 6, "direction_bt": 7, "direction_rl": 8, "direction_lr": 9, "graphConfig": 10, "C4_CONTEXT": 11, "NEWLINE": 12, "statements": 13, "EOF": 14, "C4_CONTAINER": 15, "C4_COMPONENT": 16, "C4_DYNAMIC": 17, "C4_DEPLOYMENT": 18, "otherStatements": 19, "diagramStatements": 20, "otherStatement": 21, "title": 22, "accDescription": 23, "acc_title": 24, "acc_title_value": 25, "acc_descr": 26, "acc_descr_value": 27, "acc_descr_multiline_value": 28, "boundaryStatement": 29, "boundaryStartStatement": 30, "boundaryStopStatement": 31, "boundaryStart": 32, "LBRACE": 33, "ENTERPRISE_BOUNDARY": 34, "attributes": 35, "SYSTEM_BOUNDARY": 36, "BOUNDARY": 37, "CONTAINER_BOUNDARY": 38, "NODE": 39, "NODE_L": 40, "NODE_R": 41, "RBRACE": 42, "diagramStatement": 43, "PERSON": 44, "PERSON_EXT": 45, "SYSTEM": 46, "SYSTEM_DB": 47, "SYSTEM_QUEUE": 48, "SYSTEM_EXT": 49, "SYSTEM_EXT_DB": 50, "SYSTEM_EXT_QUEUE": 51, "CONTAINER": 52, "CONTAINER_DB": 53, "CONTAINER_QUEUE": 54, "CONTAINER_EXT": 55, "CONTAINER_EXT_DB": 56, "CONTAINER_EXT_QUEUE": 57, "COMPONENT": 58, "COMPONENT_DB": 59, "COMPONENT_QUEUE": 60, "COMPONENT_EXT": 61, "COMPONENT_EXT_DB": 62, "COMPONENT_EXT_QUEUE": 63, "REL": 64, "BIREL": 65, "REL_U": 66, "REL_D": 67, "REL_L": 68, "REL_R": 69, "REL_B": 70, "REL_INDEX": 71, "UPDATE_EL_STYLE": 72, "UPDATE_REL_STYLE": 73, "UPDATE_LAYOUT_CONFIG": 74, "attribute": 75, "STR": 76, "STR_KEY": 77, "STR_VALUE": 78, "ATTRIBUTE": 79, "ATTRIBUTE_EMPTY": 80, "$accept": 0, "$end": 1 },
19
+ terminals_: { 2: "error", 6: "direction_tb", 7: "direction_bt", 8: "direction_rl", 9: "direction_lr", 11: "C4_CONTEXT", 12: "NEWLINE", 14: "EOF", 15: "C4_CONTAINER", 16: "C4_COMPONENT", 17: "C4_DYNAMIC", 18: "C4_DEPLOYMENT", 22: "title", 23: "accDescription", 24: "acc_title", 25: "acc_title_value", 26: "acc_descr", 27: "acc_descr_value", 28: "acc_descr_multiline_value", 33: "LBRACE", 34: "ENTERPRISE_BOUNDARY", 36: "SYSTEM_BOUNDARY", 37: "BOUNDARY", 38: "CONTAINER_BOUNDARY", 39: "NODE", 40: "NODE_L", 41: "NODE_R", 42: "RBRACE", 44: "PERSON", 45: "PERSON_EXT", 46: "SYSTEM", 47: "SYSTEM_DB", 48: "SYSTEM_QUEUE", 49: "SYSTEM_EXT", 50: "SYSTEM_EXT_DB", 51: "SYSTEM_EXT_QUEUE", 52: "CONTAINER", 53: "CONTAINER_DB", 54: "CONTAINER_QUEUE", 55: "CONTAINER_EXT", 56: "CONTAINER_EXT_DB", 57: "CONTAINER_EXT_QUEUE", 58: "COMPONENT", 59: "COMPONENT_DB", 60: "COMPONENT_QUEUE", 61: "COMPONENT_EXT", 62: "COMPONENT_EXT_DB", 63: "COMPONENT_EXT_QUEUE", 64: "REL", 65: "BIREL", 66: "REL_U", 67: "REL_D", 68: "REL_L", 69: "REL_R", 70: "REL_B", 71: "REL_INDEX", 72: "UPDATE_EL_STYLE", 73: "UPDATE_REL_STYLE", 74: "UPDATE_LAYOUT_CONFIG", 76: "STR", 77: "STR_KEY", 78: "STR_VALUE", 79: "ATTRIBUTE", 80: "ATTRIBUTE_EMPTY" },
20
+ productions_: [0, [3, 1], [3, 1], [5, 1], [5, 1], [5, 1], [5, 1], [4, 1], [10, 4], [10, 4], [10, 4], [10, 4], [10, 4], [13, 1], [13, 1], [13, 2], [19, 1], [19, 2], [19, 3], [21, 1], [21, 1], [21, 2], [21, 2], [21, 1], [29, 3], [30, 3], [30, 3], [30, 4], [32, 2], [32, 2], [32, 2], [32, 2], [32, 2], [32, 2], [32, 2], [31, 1], [20, 1], [20, 2], [20, 3], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 1], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [35, 1], [35, 2], [75, 1], [75, 2], [75, 1], [75, 1]],
21
+ performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
22
+ var $0 = $$.length - 1;
23
+ switch (yystate) {
24
+ case 3:
25
+ yy.setDirection("TB");
26
+ break;
27
+ case 4:
28
+ yy.setDirection("BT");
29
+ break;
30
+ case 5:
31
+ yy.setDirection("RL");
32
+ break;
33
+ case 6:
34
+ yy.setDirection("LR");
35
+ break;
36
+ case 8:
37
+ case 9:
38
+ case 10:
39
+ case 11:
40
+ case 12:
41
+ yy.setC4Type($$[$0 - 3]);
42
+ break;
43
+ case 19:
44
+ yy.setTitle($$[$0].substring(6));
45
+ this.$ = $$[$0].substring(6);
46
+ break;
47
+ case 20:
48
+ yy.setAccDescription($$[$0].substring(15));
49
+ this.$ = $$[$0].substring(15);
50
+ break;
51
+ case 21:
52
+ this.$ = $$[$0].trim();
53
+ yy.setTitle(this.$);
54
+ break;
55
+ case 22:
56
+ case 23:
57
+ this.$ = $$[$0].trim();
58
+ yy.setAccDescription(this.$);
59
+ break;
60
+ case 28:
61
+ $$[$0].splice(2, 0, "ENTERPRISE");
62
+ yy.addPersonOrSystemBoundary(...$$[$0]);
63
+ this.$ = $$[$0];
64
+ break;
65
+ case 29:
66
+ $$[$0].splice(2, 0, "SYSTEM");
67
+ yy.addPersonOrSystemBoundary(...$$[$0]);
68
+ this.$ = $$[$0];
69
+ break;
70
+ case 30:
71
+ yy.addPersonOrSystemBoundary(...$$[$0]);
72
+ this.$ = $$[$0];
73
+ break;
74
+ case 31:
75
+ $$[$0].splice(2, 0, "CONTAINER");
76
+ yy.addContainerBoundary(...$$[$0]);
77
+ this.$ = $$[$0];
78
+ break;
79
+ case 32:
80
+ yy.addDeploymentNode("node", ...$$[$0]);
81
+ this.$ = $$[$0];
82
+ break;
83
+ case 33:
84
+ yy.addDeploymentNode("nodeL", ...$$[$0]);
85
+ this.$ = $$[$0];
86
+ break;
87
+ case 34:
88
+ yy.addDeploymentNode("nodeR", ...$$[$0]);
89
+ this.$ = $$[$0];
90
+ break;
91
+ case 35:
92
+ yy.popBoundaryParseStack();
93
+ break;
94
+ case 39:
95
+ yy.addPersonOrSystem("person", ...$$[$0]);
96
+ this.$ = $$[$0];
97
+ break;
98
+ case 40:
99
+ yy.addPersonOrSystem("external_person", ...$$[$0]);
100
+ this.$ = $$[$0];
101
+ break;
102
+ case 41:
103
+ yy.addPersonOrSystem("system", ...$$[$0]);
104
+ this.$ = $$[$0];
105
+ break;
106
+ case 42:
107
+ yy.addPersonOrSystem("system_db", ...$$[$0]);
108
+ this.$ = $$[$0];
109
+ break;
110
+ case 43:
111
+ yy.addPersonOrSystem("system_queue", ...$$[$0]);
112
+ this.$ = $$[$0];
113
+ break;
114
+ case 44:
115
+ yy.addPersonOrSystem("external_system", ...$$[$0]);
116
+ this.$ = $$[$0];
117
+ break;
118
+ case 45:
119
+ yy.addPersonOrSystem("external_system_db", ...$$[$0]);
120
+ this.$ = $$[$0];
121
+ break;
122
+ case 46:
123
+ yy.addPersonOrSystem("external_system_queue", ...$$[$0]);
124
+ this.$ = $$[$0];
125
+ break;
126
+ case 47:
127
+ yy.addContainer("container", ...$$[$0]);
128
+ this.$ = $$[$0];
129
+ break;
130
+ case 48:
131
+ yy.addContainer("container_db", ...$$[$0]);
132
+ this.$ = $$[$0];
133
+ break;
134
+ case 49:
135
+ yy.addContainer("container_queue", ...$$[$0]);
136
+ this.$ = $$[$0];
137
+ break;
138
+ case 50:
139
+ yy.addContainer("external_container", ...$$[$0]);
140
+ this.$ = $$[$0];
141
+ break;
142
+ case 51:
143
+ yy.addContainer("external_container_db", ...$$[$0]);
144
+ this.$ = $$[$0];
145
+ break;
146
+ case 52:
147
+ yy.addContainer("external_container_queue", ...$$[$0]);
148
+ this.$ = $$[$0];
149
+ break;
150
+ case 53:
151
+ yy.addComponent("component", ...$$[$0]);
152
+ this.$ = $$[$0];
153
+ break;
154
+ case 54:
155
+ yy.addComponent("component_db", ...$$[$0]);
156
+ this.$ = $$[$0];
157
+ break;
158
+ case 55:
159
+ yy.addComponent("component_queue", ...$$[$0]);
160
+ this.$ = $$[$0];
161
+ break;
162
+ case 56:
163
+ yy.addComponent("external_component", ...$$[$0]);
164
+ this.$ = $$[$0];
165
+ break;
166
+ case 57:
167
+ yy.addComponent("external_component_db", ...$$[$0]);
168
+ this.$ = $$[$0];
169
+ break;
170
+ case 58:
171
+ yy.addComponent("external_component_queue", ...$$[$0]);
172
+ this.$ = $$[$0];
173
+ break;
174
+ case 60:
175
+ yy.addRel("rel", ...$$[$0]);
176
+ this.$ = $$[$0];
177
+ break;
178
+ case 61:
179
+ yy.addRel("birel", ...$$[$0]);
180
+ this.$ = $$[$0];
181
+ break;
182
+ case 62:
183
+ yy.addRel("rel_u", ...$$[$0]);
184
+ this.$ = $$[$0];
185
+ break;
186
+ case 63:
187
+ yy.addRel("rel_d", ...$$[$0]);
188
+ this.$ = $$[$0];
189
+ break;
190
+ case 64:
191
+ yy.addRel("rel_l", ...$$[$0]);
192
+ this.$ = $$[$0];
193
+ break;
194
+ case 65:
195
+ yy.addRel("rel_r", ...$$[$0]);
196
+ this.$ = $$[$0];
197
+ break;
198
+ case 66:
199
+ yy.addRel("rel_b", ...$$[$0]);
200
+ this.$ = $$[$0];
201
+ break;
202
+ case 67:
203
+ $$[$0].splice(0, 1);
204
+ yy.addRel("rel", ...$$[$0]);
205
+ this.$ = $$[$0];
206
+ break;
207
+ case 68:
208
+ yy.updateElStyle("update_el_style", ...$$[$0]);
209
+ this.$ = $$[$0];
210
+ break;
211
+ case 69:
212
+ yy.updateRelStyle("update_rel_style", ...$$[$0]);
213
+ this.$ = $$[$0];
214
+ break;
215
+ case 70:
216
+ yy.updateLayoutConfig("update_layout_config", ...$$[$0]);
217
+ this.$ = $$[$0];
218
+ break;
219
+ case 71:
220
+ this.$ = [$$[$0]];
221
+ break;
222
+ case 72:
223
+ $$[$0].unshift($$[$0 - 1]);
224
+ this.$ = $$[$0];
225
+ break;
226
+ case 73:
227
+ case 75:
228
+ this.$ = $$[$0].trim();
229
+ break;
230
+ case 74:
231
+ let kv = {};
232
+ kv[$$[$0 - 1].trim()] = $$[$0].trim();
233
+ this.$ = kv;
234
+ break;
235
+ case 76:
236
+ this.$ = "";
237
+ break;
238
+ }
239
+ }, "anonymous"),
240
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 7: [1, 6], 8: [1, 7], 9: [1, 8], 10: 4, 11: [1, 9], 15: [1, 10], 16: [1, 11], 17: [1, 12], 18: [1, 13] }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 7] }, { 1: [2, 3] }, { 1: [2, 4] }, { 1: [2, 5] }, { 1: [2, 6] }, { 12: [1, 14] }, { 12: [1, 15] }, { 12: [1, 16] }, { 12: [1, 17] }, { 12: [1, 18] }, { 13: 19, 19: 20, 20: 21, 21: 22, 22: $V0, 23: $V1, 24: $V2, 26: $V3, 28: $V4, 29: 49, 30: 61, 32: 62, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 43: 23, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }, { 13: 70, 19: 20, 20: 21, 21: 22, 22: $V0, 23: $V1, 24: $V2, 26: $V3, 28: $V4, 29: 49, 30: 61, 32: 62, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 43: 23, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }, { 13: 71, 19: 20, 20: 21, 21: 22, 22: $V0, 23: $V1, 24: $V2, 26: $V3, 28: $V4, 29: 49, 30: 61, 32: 62, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 43: 23, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }, { 13: 72, 19: 20, 20: 21, 21: 22, 22: $V0, 23: $V1, 24: $V2, 26: $V3, 28: $V4, 29: 49, 30: 61, 32: 62, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 43: 23, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }, { 13: 73, 19: 20, 20: 21, 21: 22, 22: $V0, 23: $V1, 24: $V2, 26: $V3, 28: $V4, 29: 49, 30: 61, 32: 62, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 43: 23, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }, { 14: [1, 74] }, o($VH, [2, 13], { 43: 23, 29: 49, 30: 61, 32: 62, 20: 75, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }), o($VH, [2, 14]), o($VI, [2, 16], { 12: [1, 76] }), o($VH, [2, 36], { 12: [1, 77] }), o($VJ, [2, 19]), o($VJ, [2, 20]), { 25: [1, 78] }, { 27: [1, 79] }, o($VJ, [2, 23]), { 35: 80, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 86, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 87, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 88, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 89, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 90, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 91, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 92, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 93, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 94, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 95, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 96, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 97, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 98, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 99, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 100, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 101, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 102, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 103, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 104, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, o($VO, [2, 59]), { 35: 105, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 106, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 107, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 108, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 109, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 110, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 111, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 112, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 113, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 114, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 115, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 20: 116, 29: 49, 30: 61, 32: 62, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 43: 23, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }, { 12: [1, 118], 33: [1, 117] }, { 35: 119, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 120, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 121, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 122, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 123, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 124, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 125, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 14: [1, 126] }, { 14: [1, 127] }, { 14: [1, 128] }, { 14: [1, 129] }, { 1: [2, 8] }, o($VH, [2, 15]), o($VI, [2, 17], { 21: 22, 19: 130, 22: $V0, 23: $V1, 24: $V2, 26: $V3, 28: $V4 }), o($VH, [2, 37], { 19: 20, 20: 21, 21: 22, 43: 23, 29: 49, 30: 61, 32: 62, 13: 131, 22: $V0, 23: $V1, 24: $V2, 26: $V3, 28: $V4, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }), o($VJ, [2, 21]), o($VJ, [2, 22]), o($VO, [2, 39]), o($VP, [2, 71], { 75: 81, 35: 132, 76: $VK, 77: $VL, 79: $VM, 80: $VN }), o($VQ, [2, 73]), { 78: [1, 133] }, o($VQ, [2, 75]), o($VQ, [2, 76]), o($VO, [2, 40]), o($VO, [2, 41]), o($VO, [2, 42]), o($VO, [2, 43]), o($VO, [2, 44]), o($VO, [2, 45]), o($VO, [2, 46]), o($VO, [2, 47]), o($VO, [2, 48]), o($VO, [2, 49]), o($VO, [2, 50]), o($VO, [2, 51]), o($VO, [2, 52]), o($VO, [2, 53]), o($VO, [2, 54]), o($VO, [2, 55]), o($VO, [2, 56]), o($VO, [2, 57]), o($VO, [2, 58]), o($VO, [2, 60]), o($VO, [2, 61]), o($VO, [2, 62]), o($VO, [2, 63]), o($VO, [2, 64]), o($VO, [2, 65]), o($VO, [2, 66]), o($VO, [2, 67]), o($VO, [2, 68]), o($VO, [2, 69]), o($VO, [2, 70]), { 31: 134, 42: [1, 135] }, { 12: [1, 136] }, { 33: [1, 137] }, o($VR, [2, 28]), o($VR, [2, 29]), o($VR, [2, 30]), o($VR, [2, 31]), o($VR, [2, 32]), o($VR, [2, 33]), o($VR, [2, 34]), { 1: [2, 9] }, { 1: [2, 10] }, { 1: [2, 11] }, { 1: [2, 12] }, o($VI, [2, 18]), o($VH, [2, 38]), o($VP, [2, 72]), o($VQ, [2, 74]), o($VO, [2, 24]), o($VO, [2, 35]), o($VS, [2, 25]), o($VS, [2, 26], { 12: [1, 138] }), o($VS, [2, 27])],
241
+ defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 7], 5: [2, 3], 6: [2, 4], 7: [2, 5], 8: [2, 6], 74: [2, 8], 126: [2, 9], 127: [2, 10], 128: [2, 11], 129: [2, 12] },
242
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
243
+ if (hash.recoverable) {
244
+ this.trace(str);
245
+ } else {
246
+ var error = new Error(str);
247
+ error.hash = hash;
248
+ throw error;
249
+ }
250
+ }, "parseError"),
251
+ parse: /* @__PURE__ */ __name(function parse(input) {
252
+ var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
253
+ var args = lstack.slice.call(arguments, 1);
254
+ var lexer2 = Object.create(this.lexer);
255
+ var sharedState = { yy: {} };
256
+ for (var k in this.yy) {
257
+ if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
258
+ sharedState.yy[k] = this.yy[k];
259
+ }
260
+ }
261
+ lexer2.setInput(input, sharedState.yy);
262
+ sharedState.yy.lexer = lexer2;
263
+ sharedState.yy.parser = this;
264
+ if (typeof lexer2.yylloc == "undefined") {
265
+ lexer2.yylloc = {};
266
+ }
267
+ var yyloc = lexer2.yylloc;
268
+ lstack.push(yyloc);
269
+ var ranges = lexer2.options && lexer2.options.ranges;
270
+ if (typeof sharedState.yy.parseError === "function") {
271
+ this.parseError = sharedState.yy.parseError;
272
+ } else {
273
+ this.parseError = Object.getPrototypeOf(this).parseError;
274
+ }
275
+ function popStack(n) {
276
+ stack.length = stack.length - 2 * n;
277
+ vstack.length = vstack.length - n;
278
+ lstack.length = lstack.length - n;
279
+ }
280
+ __name(popStack, "popStack");
281
+ function lex() {
282
+ var token;
283
+ token = tstack.pop() || lexer2.lex() || EOF;
284
+ if (typeof token !== "number") {
285
+ if (token instanceof Array) {
286
+ tstack = token;
287
+ token = tstack.pop();
288
+ }
289
+ token = self.symbols_[token] || token;
290
+ }
291
+ return token;
292
+ }
293
+ __name(lex, "lex");
294
+ var symbol, state, action, r, yyval = {}, p, len, newState, expected;
295
+ while (true) {
296
+ state = stack[stack.length - 1];
297
+ if (this.defaultActions[state]) {
298
+ action = this.defaultActions[state];
299
+ } else {
300
+ if (symbol === null || typeof symbol == "undefined") {
301
+ symbol = lex();
302
+ }
303
+ action = table[state] && table[state][symbol];
304
+ }
305
+ if (typeof action === "undefined" || !action.length || !action[0]) {
306
+ var errStr = "";
307
+ expected = [];
308
+ for (p in table[state]) {
309
+ if (this.terminals_[p] && p > TERROR) {
310
+ expected.push("'" + this.terminals_[p] + "'");
311
+ }
312
+ }
313
+ if (lexer2.showPosition) {
314
+ errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
315
+ } else {
316
+ errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
317
+ }
318
+ this.parseError(errStr, {
319
+ text: lexer2.match,
320
+ token: this.terminals_[symbol] || symbol,
321
+ line: lexer2.yylineno,
322
+ loc: yyloc,
323
+ expected
324
+ });
325
+ }
326
+ if (action[0] instanceof Array && action.length > 1) {
327
+ throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
328
+ }
329
+ switch (action[0]) {
330
+ case 1:
331
+ stack.push(symbol);
332
+ vstack.push(lexer2.yytext);
333
+ lstack.push(lexer2.yylloc);
334
+ stack.push(action[1]);
335
+ symbol = null;
336
+ {
337
+ yyleng = lexer2.yyleng;
338
+ yytext = lexer2.yytext;
339
+ yylineno = lexer2.yylineno;
340
+ yyloc = lexer2.yylloc;
341
+ }
342
+ break;
343
+ case 2:
344
+ len = this.productions_[action[1]][1];
345
+ yyval.$ = vstack[vstack.length - len];
346
+ yyval._$ = {
347
+ first_line: lstack[lstack.length - (len || 1)].first_line,
348
+ last_line: lstack[lstack.length - 1].last_line,
349
+ first_column: lstack[lstack.length - (len || 1)].first_column,
350
+ last_column: lstack[lstack.length - 1].last_column
351
+ };
352
+ if (ranges) {
353
+ yyval._$.range = [
354
+ lstack[lstack.length - (len || 1)].range[0],
355
+ lstack[lstack.length - 1].range[1]
356
+ ];
357
+ }
358
+ r = this.performAction.apply(yyval, [
359
+ yytext,
360
+ yyleng,
361
+ yylineno,
362
+ sharedState.yy,
363
+ action[1],
364
+ vstack,
365
+ lstack
366
+ ].concat(args));
367
+ if (typeof r !== "undefined") {
368
+ return r;
369
+ }
370
+ if (len) {
371
+ stack = stack.slice(0, -1 * len * 2);
372
+ vstack = vstack.slice(0, -1 * len);
373
+ lstack = lstack.slice(0, -1 * len);
374
+ }
375
+ stack.push(this.productions_[action[1]][0]);
376
+ vstack.push(yyval.$);
377
+ lstack.push(yyval._$);
378
+ newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
379
+ stack.push(newState);
380
+ break;
381
+ case 3:
382
+ return true;
383
+ }
384
+ }
385
+ return true;
386
+ }, "parse")
387
+ };
388
+ var lexer = /* @__PURE__ */ function() {
389
+ var lexer2 = {
390
+ EOF: 1,
391
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
392
+ if (this.yy.parser) {
393
+ this.yy.parser.parseError(str, hash);
394
+ } else {
395
+ throw new Error(str);
396
+ }
397
+ }, "parseError"),
398
+ // resets the lexer, sets new input
399
+ setInput: /* @__PURE__ */ __name(function(input, yy) {
400
+ this.yy = yy || this.yy || {};
401
+ this._input = input;
402
+ this._more = this._backtrack = this.done = false;
403
+ this.yylineno = this.yyleng = 0;
404
+ this.yytext = this.matched = this.match = "";
405
+ this.conditionStack = ["INITIAL"];
406
+ this.yylloc = {
407
+ first_line: 1,
408
+ first_column: 0,
409
+ last_line: 1,
410
+ last_column: 0
411
+ };
412
+ if (this.options.ranges) {
413
+ this.yylloc.range = [0, 0];
414
+ }
415
+ this.offset = 0;
416
+ return this;
417
+ }, "setInput"),
418
+ // consumes and returns one char from the input
419
+ input: /* @__PURE__ */ __name(function() {
420
+ var ch = this._input[0];
421
+ this.yytext += ch;
422
+ this.yyleng++;
423
+ this.offset++;
424
+ this.match += ch;
425
+ this.matched += ch;
426
+ var lines = ch.match(/(?:\r\n?|\n).*/g);
427
+ if (lines) {
428
+ this.yylineno++;
429
+ this.yylloc.last_line++;
430
+ } else {
431
+ this.yylloc.last_column++;
432
+ }
433
+ if (this.options.ranges) {
434
+ this.yylloc.range[1]++;
435
+ }
436
+ this._input = this._input.slice(1);
437
+ return ch;
438
+ }, "input"),
439
+ // unshifts one char (or a string) into the input
440
+ unput: /* @__PURE__ */ __name(function(ch) {
441
+ var len = ch.length;
442
+ var lines = ch.split(/(?:\r\n?|\n)/g);
443
+ this._input = ch + this._input;
444
+ this.yytext = this.yytext.substr(0, this.yytext.length - len);
445
+ this.offset -= len;
446
+ var oldLines = this.match.split(/(?:\r\n?|\n)/g);
447
+ this.match = this.match.substr(0, this.match.length - 1);
448
+ this.matched = this.matched.substr(0, this.matched.length - 1);
449
+ if (lines.length - 1) {
450
+ this.yylineno -= lines.length - 1;
451
+ }
452
+ var r = this.yylloc.range;
453
+ this.yylloc = {
454
+ first_line: this.yylloc.first_line,
455
+ last_line: this.yylineno + 1,
456
+ first_column: this.yylloc.first_column,
457
+ 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
458
+ };
459
+ if (this.options.ranges) {
460
+ this.yylloc.range = [r[0], r[0] + this.yyleng - len];
461
+ }
462
+ this.yyleng = this.yytext.length;
463
+ return this;
464
+ }, "unput"),
465
+ // When called from action, caches matched text and appends it on next action
466
+ more: /* @__PURE__ */ __name(function() {
467
+ this._more = true;
468
+ return this;
469
+ }, "more"),
470
+ // 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.
471
+ reject: /* @__PURE__ */ __name(function() {
472
+ if (this.options.backtrack_lexer) {
473
+ this._backtrack = true;
474
+ } else {
475
+ 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(), {
476
+ text: "",
477
+ token: null,
478
+ line: this.yylineno
479
+ });
480
+ }
481
+ return this;
482
+ }, "reject"),
483
+ // retain first n characters of the match
484
+ less: /* @__PURE__ */ __name(function(n) {
485
+ this.unput(this.match.slice(n));
486
+ }, "less"),
487
+ // displays already matched input, i.e. for error messages
488
+ pastInput: /* @__PURE__ */ __name(function() {
489
+ var past = this.matched.substr(0, this.matched.length - this.match.length);
490
+ return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
491
+ }, "pastInput"),
492
+ // displays upcoming input, i.e. for error messages
493
+ upcomingInput: /* @__PURE__ */ __name(function() {
494
+ var next = this.match;
495
+ if (next.length < 20) {
496
+ next += this._input.substr(0, 20 - next.length);
497
+ }
498
+ return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
499
+ }, "upcomingInput"),
500
+ // displays the character position where the lexing error occurred, i.e. for error messages
501
+ showPosition: /* @__PURE__ */ __name(function() {
502
+ var pre = this.pastInput();
503
+ var c2 = new Array(pre.length + 1).join("-");
504
+ return pre + this.upcomingInput() + "\n" + c2 + "^";
505
+ }, "showPosition"),
506
+ // test the lexed token: return FALSE when not a match, otherwise return token
507
+ test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
508
+ var token, lines, backup;
509
+ if (this.options.backtrack_lexer) {
510
+ backup = {
511
+ yylineno: this.yylineno,
512
+ yylloc: {
513
+ first_line: this.yylloc.first_line,
514
+ last_line: this.last_line,
515
+ first_column: this.yylloc.first_column,
516
+ last_column: this.yylloc.last_column
517
+ },
518
+ yytext: this.yytext,
519
+ match: this.match,
520
+ matches: this.matches,
521
+ matched: this.matched,
522
+ yyleng: this.yyleng,
523
+ offset: this.offset,
524
+ _more: this._more,
525
+ _input: this._input,
526
+ yy: this.yy,
527
+ conditionStack: this.conditionStack.slice(0),
528
+ done: this.done
529
+ };
530
+ if (this.options.ranges) {
531
+ backup.yylloc.range = this.yylloc.range.slice(0);
532
+ }
533
+ }
534
+ lines = match[0].match(/(?:\r\n?|\n).*/g);
535
+ if (lines) {
536
+ this.yylineno += lines.length;
537
+ }
538
+ this.yylloc = {
539
+ first_line: this.yylloc.last_line,
540
+ last_line: this.yylineno + 1,
541
+ first_column: this.yylloc.last_column,
542
+ last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
543
+ };
544
+ this.yytext += match[0];
545
+ this.match += match[0];
546
+ this.matches = match;
547
+ this.yyleng = this.yytext.length;
548
+ if (this.options.ranges) {
549
+ this.yylloc.range = [this.offset, this.offset += this.yyleng];
550
+ }
551
+ this._more = false;
552
+ this._backtrack = false;
553
+ this._input = this._input.slice(match[0].length);
554
+ this.matched += match[0];
555
+ token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
556
+ if (this.done && this._input) {
557
+ this.done = false;
558
+ }
559
+ if (token) {
560
+ return token;
561
+ } else if (this._backtrack) {
562
+ for (var k in backup) {
563
+ this[k] = backup[k];
564
+ }
565
+ return false;
566
+ }
567
+ return false;
568
+ }, "test_match"),
569
+ // return next match in input
570
+ next: /* @__PURE__ */ __name(function() {
571
+ if (this.done) {
572
+ return this.EOF;
573
+ }
574
+ if (!this._input) {
575
+ this.done = true;
576
+ }
577
+ var token, match, tempMatch, index;
578
+ if (!this._more) {
579
+ this.yytext = "";
580
+ this.match = "";
581
+ }
582
+ var rules = this._currentRules();
583
+ for (var i = 0; i < rules.length; i++) {
584
+ tempMatch = this._input.match(this.rules[rules[i]]);
585
+ if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
586
+ match = tempMatch;
587
+ index = i;
588
+ if (this.options.backtrack_lexer) {
589
+ token = this.test_match(tempMatch, rules[i]);
590
+ if (token !== false) {
591
+ return token;
592
+ } else if (this._backtrack) {
593
+ match = false;
594
+ continue;
595
+ } else {
596
+ return false;
597
+ }
598
+ } else if (!this.options.flex) {
599
+ break;
600
+ }
601
+ }
602
+ }
603
+ if (match) {
604
+ token = this.test_match(match, rules[index]);
605
+ if (token !== false) {
606
+ return token;
607
+ }
608
+ return false;
609
+ }
610
+ if (this._input === "") {
611
+ return this.EOF;
612
+ } else {
613
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
614
+ text: "",
615
+ token: null,
616
+ line: this.yylineno
617
+ });
618
+ }
619
+ }, "next"),
620
+ // return next match that has a token
621
+ lex: /* @__PURE__ */ __name(function lex() {
622
+ var r = this.next();
623
+ if (r) {
624
+ return r;
625
+ } else {
626
+ return this.lex();
627
+ }
628
+ }, "lex"),
629
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
630
+ begin: /* @__PURE__ */ __name(function begin(condition) {
631
+ this.conditionStack.push(condition);
632
+ }, "begin"),
633
+ // pop the previously active lexer condition state off the condition stack
634
+ popState: /* @__PURE__ */ __name(function popState() {
635
+ var n = this.conditionStack.length - 1;
636
+ if (n > 0) {
637
+ return this.conditionStack.pop();
638
+ } else {
639
+ return this.conditionStack[0];
640
+ }
641
+ }, "popState"),
642
+ // produce the lexer rule set which is active for the currently active lexer condition state
643
+ _currentRules: /* @__PURE__ */ __name(function _currentRules() {
644
+ if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
645
+ return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
646
+ } else {
647
+ return this.conditions["INITIAL"].rules;
648
+ }
649
+ }, "_currentRules"),
650
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
651
+ topState: /* @__PURE__ */ __name(function topState(n) {
652
+ n = this.conditionStack.length - 1 - Math.abs(n || 0);
653
+ if (n >= 0) {
654
+ return this.conditionStack[n];
655
+ } else {
656
+ return "INITIAL";
657
+ }
658
+ }, "topState"),
659
+ // alias for begin(condition)
660
+ pushState: /* @__PURE__ */ __name(function pushState(condition) {
661
+ this.begin(condition);
662
+ }, "pushState"),
663
+ // return the number of states currently on the stack
664
+ stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
665
+ return this.conditionStack.length;
666
+ }, "stateStackSize"),
667
+ options: {},
668
+ performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
669
+ switch ($avoiding_name_collisions) {
670
+ case 0:
671
+ return 6;
672
+ case 1:
673
+ return 7;
674
+ case 2:
675
+ return 8;
676
+ case 3:
677
+ return 9;
678
+ case 4:
679
+ return 22;
680
+ case 5:
681
+ return 23;
682
+ case 6:
683
+ this.begin("acc_title");
684
+ return 24;
685
+ case 7:
686
+ this.popState();
687
+ return "acc_title_value";
688
+ case 8:
689
+ this.begin("acc_descr");
690
+ return 26;
691
+ case 9:
692
+ this.popState();
693
+ return "acc_descr_value";
694
+ case 10:
695
+ this.begin("acc_descr_multiline");
696
+ break;
697
+ case 11:
698
+ this.popState();
699
+ break;
700
+ case 12:
701
+ return "acc_descr_multiline_value";
702
+ case 13:
703
+ break;
704
+ case 14:
705
+ c;
706
+ break;
707
+ case 15:
708
+ return 12;
709
+ case 16:
710
+ break;
711
+ case 17:
712
+ return 11;
713
+ case 18:
714
+ return 15;
715
+ case 19:
716
+ return 16;
717
+ case 20:
718
+ return 17;
719
+ case 21:
720
+ return 18;
721
+ case 22:
722
+ this.begin("person_ext");
723
+ return 45;
724
+ case 23:
725
+ this.begin("person");
726
+ return 44;
727
+ case 24:
728
+ this.begin("system_ext_queue");
729
+ return 51;
730
+ case 25:
731
+ this.begin("system_ext_db");
732
+ return 50;
733
+ case 26:
734
+ this.begin("system_ext");
735
+ return 49;
736
+ case 27:
737
+ this.begin("system_queue");
738
+ return 48;
739
+ case 28:
740
+ this.begin("system_db");
741
+ return 47;
742
+ case 29:
743
+ this.begin("system");
744
+ return 46;
745
+ case 30:
746
+ this.begin("boundary");
747
+ return 37;
748
+ case 31:
749
+ this.begin("enterprise_boundary");
750
+ return 34;
751
+ case 32:
752
+ this.begin("system_boundary");
753
+ return 36;
754
+ case 33:
755
+ this.begin("container_ext_queue");
756
+ return 57;
757
+ case 34:
758
+ this.begin("container_ext_db");
759
+ return 56;
760
+ case 35:
761
+ this.begin("container_ext");
762
+ return 55;
763
+ case 36:
764
+ this.begin("container_queue");
765
+ return 54;
766
+ case 37:
767
+ this.begin("container_db");
768
+ return 53;
769
+ case 38:
770
+ this.begin("container");
771
+ return 52;
772
+ case 39:
773
+ this.begin("container_boundary");
774
+ return 38;
775
+ case 40:
776
+ this.begin("component_ext_queue");
777
+ return 63;
778
+ case 41:
779
+ this.begin("component_ext_db");
780
+ return 62;
781
+ case 42:
782
+ this.begin("component_ext");
783
+ return 61;
784
+ case 43:
785
+ this.begin("component_queue");
786
+ return 60;
787
+ case 44:
788
+ this.begin("component_db");
789
+ return 59;
790
+ case 45:
791
+ this.begin("component");
792
+ return 58;
793
+ case 46:
794
+ this.begin("node");
795
+ return 39;
796
+ case 47:
797
+ this.begin("node");
798
+ return 39;
799
+ case 48:
800
+ this.begin("node_l");
801
+ return 40;
802
+ case 49:
803
+ this.begin("node_r");
804
+ return 41;
805
+ case 50:
806
+ this.begin("rel");
807
+ return 64;
808
+ case 51:
809
+ this.begin("birel");
810
+ return 65;
811
+ case 52:
812
+ this.begin("rel_u");
813
+ return 66;
814
+ case 53:
815
+ this.begin("rel_u");
816
+ return 66;
817
+ case 54:
818
+ this.begin("rel_d");
819
+ return 67;
820
+ case 55:
821
+ this.begin("rel_d");
822
+ return 67;
823
+ case 56:
824
+ this.begin("rel_l");
825
+ return 68;
826
+ case 57:
827
+ this.begin("rel_l");
828
+ return 68;
829
+ case 58:
830
+ this.begin("rel_r");
831
+ return 69;
832
+ case 59:
833
+ this.begin("rel_r");
834
+ return 69;
835
+ case 60:
836
+ this.begin("rel_b");
837
+ return 70;
838
+ case 61:
839
+ this.begin("rel_index");
840
+ return 71;
841
+ case 62:
842
+ this.begin("update_el_style");
843
+ return 72;
844
+ case 63:
845
+ this.begin("update_rel_style");
846
+ return 73;
847
+ case 64:
848
+ this.begin("update_layout_config");
849
+ return 74;
850
+ case 65:
851
+ return "EOF_IN_STRUCT";
852
+ case 66:
853
+ this.begin("attribute");
854
+ return "ATTRIBUTE_EMPTY";
855
+ case 67:
856
+ this.begin("attribute");
857
+ break;
858
+ case 68:
859
+ this.popState();
860
+ this.popState();
861
+ break;
862
+ case 69:
863
+ return 80;
864
+ case 70:
865
+ break;
866
+ case 71:
867
+ return 80;
868
+ case 72:
869
+ this.begin("string");
870
+ break;
871
+ case 73:
872
+ this.popState();
873
+ break;
874
+ case 74:
875
+ return "STR";
876
+ case 75:
877
+ this.begin("string_kv");
878
+ break;
879
+ case 76:
880
+ this.begin("string_kv_key");
881
+ return "STR_KEY";
882
+ case 77:
883
+ this.popState();
884
+ this.begin("string_kv_value");
885
+ break;
886
+ case 78:
887
+ return "STR_VALUE";
888
+ case 79:
889
+ this.popState();
890
+ this.popState();
891
+ break;
892
+ case 80:
893
+ return "STR";
894
+ case 81:
895
+ return "LBRACE";
896
+ case 82:
897
+ return "RBRACE";
898
+ case 83:
899
+ return "SPACE";
900
+ case 84:
901
+ return "EOL";
902
+ case 85:
903
+ return 14;
904
+ }
905
+ }, "anonymous"),
906
+ rules: [/^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:title\s[^#\n;]+)/, /^(?:accDescription\s[^#\n;]+)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/, /^(?:%%[^\n]*(\r?\n)*)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:C4Context\b)/, /^(?:C4Container\b)/, /^(?:C4Component\b)/, /^(?:C4Dynamic\b)/, /^(?:C4Deployment\b)/, /^(?:Person_Ext\b)/, /^(?:Person\b)/, /^(?:SystemQueue_Ext\b)/, /^(?:SystemDb_Ext\b)/, /^(?:System_Ext\b)/, /^(?:SystemQueue\b)/, /^(?:SystemDb\b)/, /^(?:System\b)/, /^(?:Boundary\b)/, /^(?:Enterprise_Boundary\b)/, /^(?:System_Boundary\b)/, /^(?:ContainerQueue_Ext\b)/, /^(?:ContainerDb_Ext\b)/, /^(?:Container_Ext\b)/, /^(?:ContainerQueue\b)/, /^(?:ContainerDb\b)/, /^(?:Container\b)/, /^(?:Container_Boundary\b)/, /^(?:ComponentQueue_Ext\b)/, /^(?:ComponentDb_Ext\b)/, /^(?:Component_Ext\b)/, /^(?:ComponentQueue\b)/, /^(?:ComponentDb\b)/, /^(?:Component\b)/, /^(?:Deployment_Node\b)/, /^(?:Node\b)/, /^(?:Node_L\b)/, /^(?:Node_R\b)/, /^(?:Rel\b)/, /^(?:BiRel\b)/, /^(?:Rel_Up\b)/, /^(?:Rel_U\b)/, /^(?:Rel_Down\b)/, /^(?:Rel_D\b)/, /^(?:Rel_Left\b)/, /^(?:Rel_L\b)/, /^(?:Rel_Right\b)/, /^(?:Rel_R\b)/, /^(?:Rel_Back\b)/, /^(?:RelIndex\b)/, /^(?:UpdateElementStyle\b)/, /^(?:UpdateRelStyle\b)/, /^(?:UpdateLayoutConfig\b)/, /^(?:$)/, /^(?:[(][ ]*[,])/, /^(?:[(])/, /^(?:[)])/, /^(?:,,)/, /^(?:,)/, /^(?:[ ]*["]["])/, /^(?:[ ]*["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:[ ]*[\$])/, /^(?:[^=]*)/, /^(?:[=][ ]*["])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:[^,]+)/, /^(?:\{)/, /^(?:\})/, /^(?:[\s]+)/, /^(?:[\n\r]+)/, /^(?:$)/],
907
+ conditions: { "acc_descr_multiline": { "rules": [11, 12], "inclusive": false }, "acc_descr": { "rules": [9], "inclusive": false }, "acc_title": { "rules": [7], "inclusive": false }, "string_kv_value": { "rules": [78, 79], "inclusive": false }, "string_kv_key": { "rules": [77], "inclusive": false }, "string_kv": { "rules": [76], "inclusive": false }, "string": { "rules": [73, 74], "inclusive": false }, "attribute": { "rules": [68, 69, 70, 71, 72, 75, 80], "inclusive": false }, "update_layout_config": { "rules": [65, 66, 67, 68], "inclusive": false }, "update_rel_style": { "rules": [65, 66, 67, 68], "inclusive": false }, "update_el_style": { "rules": [65, 66, 67, 68], "inclusive": false }, "rel_b": { "rules": [65, 66, 67, 68], "inclusive": false }, "rel_r": { "rules": [65, 66, 67, 68], "inclusive": false }, "rel_l": { "rules": [65, 66, 67, 68], "inclusive": false }, "rel_d": { "rules": [65, 66, 67, 68], "inclusive": false }, "rel_u": { "rules": [65, 66, 67, 68], "inclusive": false }, "rel_bi": { "rules": [], "inclusive": false }, "rel": { "rules": [65, 66, 67, 68], "inclusive": false }, "node_r": { "rules": [65, 66, 67, 68], "inclusive": false }, "node_l": { "rules": [65, 66, 67, 68], "inclusive": false }, "node": { "rules": [65, 66, 67, 68], "inclusive": false }, "index": { "rules": [], "inclusive": false }, "rel_index": { "rules": [65, 66, 67, 68], "inclusive": false }, "component_ext_queue": { "rules": [], "inclusive": false }, "component_ext_db": { "rules": [65, 66, 67, 68], "inclusive": false }, "component_ext": { "rules": [65, 66, 67, 68], "inclusive": false }, "component_queue": { "rules": [65, 66, 67, 68], "inclusive": false }, "component_db": { "rules": [65, 66, 67, 68], "inclusive": false }, "component": { "rules": [65, 66, 67, 68], "inclusive": false }, "container_boundary": { "rules": [65, 66, 67, 68], "inclusive": false }, "container_ext_queue": { "rules": [65, 66, 67, 68], "inclusive": false }, "container_ext_db": { "rules": [65, 66, 67, 68], "inclusive": false }, "container_ext": { "rules": [65, 66, 67, 68], "inclusive": false }, "container_queue": { "rules": [65, 66, 67, 68], "inclusive": false }, "container_db": { "rules": [65, 66, 67, 68], "inclusive": false }, "container": { "rules": [65, 66, 67, 68], "inclusive": false }, "birel": { "rules": [65, 66, 67, 68], "inclusive": false }, "system_boundary": { "rules": [65, 66, 67, 68], "inclusive": false }, "enterprise_boundary": { "rules": [65, 66, 67, 68], "inclusive": false }, "boundary": { "rules": [65, 66, 67, 68], "inclusive": false }, "system_ext_queue": { "rules": [65, 66, 67, 68], "inclusive": false }, "system_ext_db": { "rules": [65, 66, 67, 68], "inclusive": false }, "system_ext": { "rules": [65, 66, 67, 68], "inclusive": false }, "system_queue": { "rules": [65, 66, 67, 68], "inclusive": false }, "system_db": { "rules": [65, 66, 67, 68], "inclusive": false }, "system": { "rules": [65, 66, 67, 68], "inclusive": false }, "person_ext": { "rules": [65, 66, 67, 68], "inclusive": false }, "person": { "rules": [65, 66, 67, 68], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 3, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 81, 82, 83, 84, 85], "inclusive": true } }
908
+ };
909
+ return lexer2;
910
+ }();
911
+ parser2.lexer = lexer;
912
+ function Parser() {
913
+ this.yy = {};
914
+ }
915
+ __name(Parser, "Parser");
916
+ Parser.prototype = parser2;
917
+ parser2.Parser = Parser;
918
+ return new Parser();
919
+ }();
920
+ parser.parser = parser;
921
+ var c4Diagram_default = parser;
922
+ var c4ShapeArray = [];
923
+ var boundaryParseStack = [""];
924
+ var currentBoundaryParse = "global";
925
+ var parentBoundaryParse = "";
926
+ var boundaries = [
927
+ {
928
+ alias: "global",
929
+ label: { text: "global" },
930
+ type: { text: "global" },
931
+ tags: null,
932
+ link: null,
933
+ parentBoundary: ""
934
+ }
935
+ ];
936
+ var rels = [];
937
+ var title = "";
938
+ var wrapEnabled = false;
939
+ var c4ShapeInRow = 4;
940
+ var c4BoundaryInRow = 2;
941
+ var c4Type;
942
+ var getC4Type = /* @__PURE__ */ __name(function() {
943
+ return c4Type;
944
+ }, "getC4Type");
945
+ var setC4Type = /* @__PURE__ */ __name(function(c4TypeParam) {
946
+ let sanitizedText = sanitizeText(c4TypeParam, getConfig2());
947
+ c4Type = sanitizedText;
948
+ }, "setC4Type");
949
+ var addRel = /* @__PURE__ */ __name(function(type, from, to, label, techn, descr, sprite, tags, link) {
950
+ if (type === void 0 || type === null || from === void 0 || from === null || to === void 0 || to === null || label === void 0 || label === null) {
951
+ return;
952
+ }
953
+ let rel = {};
954
+ const old = rels.find((rel2) => rel2.from === from && rel2.to === to);
955
+ if (old) {
956
+ rel = old;
957
+ } else {
958
+ rels.push(rel);
959
+ }
960
+ rel.type = type;
961
+ rel.from = from;
962
+ rel.to = to;
963
+ rel.label = { text: label };
964
+ if (techn === void 0 || techn === null) {
965
+ rel.techn = { text: "" };
966
+ } else {
967
+ if (typeof techn === "object") {
968
+ let [key, value] = Object.entries(techn)[0];
969
+ rel[key] = { text: value };
970
+ } else {
971
+ rel.techn = { text: techn };
972
+ }
973
+ }
974
+ if (descr === void 0 || descr === null) {
975
+ rel.descr = { text: "" };
976
+ } else {
977
+ if (typeof descr === "object") {
978
+ let [key, value] = Object.entries(descr)[0];
979
+ rel[key] = { text: value };
980
+ } else {
981
+ rel.descr = { text: descr };
982
+ }
983
+ }
984
+ if (typeof sprite === "object") {
985
+ let [key, value] = Object.entries(sprite)[0];
986
+ rel[key] = value;
987
+ } else {
988
+ rel.sprite = sprite;
989
+ }
990
+ if (typeof tags === "object") {
991
+ let [key, value] = Object.entries(tags)[0];
992
+ rel[key] = value;
993
+ } else {
994
+ rel.tags = tags;
995
+ }
996
+ if (typeof link === "object") {
997
+ let [key, value] = Object.entries(link)[0];
998
+ rel[key] = value;
999
+ } else {
1000
+ rel.link = link;
1001
+ }
1002
+ rel.wrap = autoWrap();
1003
+ }, "addRel");
1004
+ var addPersonOrSystem = /* @__PURE__ */ __name(function(typeC4Shape, alias, label, descr, sprite, tags, link) {
1005
+ if (alias === null || label === null) {
1006
+ return;
1007
+ }
1008
+ let personOrSystem = {};
1009
+ const old = c4ShapeArray.find((personOrSystem2) => personOrSystem2.alias === alias);
1010
+ if (old && alias === old.alias) {
1011
+ personOrSystem = old;
1012
+ } else {
1013
+ personOrSystem.alias = alias;
1014
+ c4ShapeArray.push(personOrSystem);
1015
+ }
1016
+ if (label === void 0 || label === null) {
1017
+ personOrSystem.label = { text: "" };
1018
+ } else {
1019
+ personOrSystem.label = { text: label };
1020
+ }
1021
+ if (descr === void 0 || descr === null) {
1022
+ personOrSystem.descr = { text: "" };
1023
+ } else {
1024
+ if (typeof descr === "object") {
1025
+ let [key, value] = Object.entries(descr)[0];
1026
+ personOrSystem[key] = { text: value };
1027
+ } else {
1028
+ personOrSystem.descr = { text: descr };
1029
+ }
1030
+ }
1031
+ if (typeof sprite === "object") {
1032
+ let [key, value] = Object.entries(sprite)[0];
1033
+ personOrSystem[key] = value;
1034
+ } else {
1035
+ personOrSystem.sprite = sprite;
1036
+ }
1037
+ if (typeof tags === "object") {
1038
+ let [key, value] = Object.entries(tags)[0];
1039
+ personOrSystem[key] = value;
1040
+ } else {
1041
+ personOrSystem.tags = tags;
1042
+ }
1043
+ if (typeof link === "object") {
1044
+ let [key, value] = Object.entries(link)[0];
1045
+ personOrSystem[key] = value;
1046
+ } else {
1047
+ personOrSystem.link = link;
1048
+ }
1049
+ personOrSystem.typeC4Shape = { text: typeC4Shape };
1050
+ personOrSystem.parentBoundary = currentBoundaryParse;
1051
+ personOrSystem.wrap = autoWrap();
1052
+ }, "addPersonOrSystem");
1053
+ var addContainer = /* @__PURE__ */ __name(function(typeC4Shape, alias, label, techn, descr, sprite, tags, link) {
1054
+ if (alias === null || label === null) {
1055
+ return;
1056
+ }
1057
+ let container = {};
1058
+ const old = c4ShapeArray.find((container2) => container2.alias === alias);
1059
+ if (old && alias === old.alias) {
1060
+ container = old;
1061
+ } else {
1062
+ container.alias = alias;
1063
+ c4ShapeArray.push(container);
1064
+ }
1065
+ if (label === void 0 || label === null) {
1066
+ container.label = { text: "" };
1067
+ } else {
1068
+ container.label = { text: label };
1069
+ }
1070
+ if (techn === void 0 || techn === null) {
1071
+ container.techn = { text: "" };
1072
+ } else {
1073
+ if (typeof techn === "object") {
1074
+ let [key, value] = Object.entries(techn)[0];
1075
+ container[key] = { text: value };
1076
+ } else {
1077
+ container.techn = { text: techn };
1078
+ }
1079
+ }
1080
+ if (descr === void 0 || descr === null) {
1081
+ container.descr = { text: "" };
1082
+ } else {
1083
+ if (typeof descr === "object") {
1084
+ let [key, value] = Object.entries(descr)[0];
1085
+ container[key] = { text: value };
1086
+ } else {
1087
+ container.descr = { text: descr };
1088
+ }
1089
+ }
1090
+ if (typeof sprite === "object") {
1091
+ let [key, value] = Object.entries(sprite)[0];
1092
+ container[key] = value;
1093
+ } else {
1094
+ container.sprite = sprite;
1095
+ }
1096
+ if (typeof tags === "object") {
1097
+ let [key, value] = Object.entries(tags)[0];
1098
+ container[key] = value;
1099
+ } else {
1100
+ container.tags = tags;
1101
+ }
1102
+ if (typeof link === "object") {
1103
+ let [key, value] = Object.entries(link)[0];
1104
+ container[key] = value;
1105
+ } else {
1106
+ container.link = link;
1107
+ }
1108
+ container.wrap = autoWrap();
1109
+ container.typeC4Shape = { text: typeC4Shape };
1110
+ container.parentBoundary = currentBoundaryParse;
1111
+ }, "addContainer");
1112
+ var addComponent = /* @__PURE__ */ __name(function(typeC4Shape, alias, label, techn, descr, sprite, tags, link) {
1113
+ if (alias === null || label === null) {
1114
+ return;
1115
+ }
1116
+ let component = {};
1117
+ const old = c4ShapeArray.find((component2) => component2.alias === alias);
1118
+ if (old && alias === old.alias) {
1119
+ component = old;
1120
+ } else {
1121
+ component.alias = alias;
1122
+ c4ShapeArray.push(component);
1123
+ }
1124
+ if (label === void 0 || label === null) {
1125
+ component.label = { text: "" };
1126
+ } else {
1127
+ component.label = { text: label };
1128
+ }
1129
+ if (techn === void 0 || techn === null) {
1130
+ component.techn = { text: "" };
1131
+ } else {
1132
+ if (typeof techn === "object") {
1133
+ let [key, value] = Object.entries(techn)[0];
1134
+ component[key] = { text: value };
1135
+ } else {
1136
+ component.techn = { text: techn };
1137
+ }
1138
+ }
1139
+ if (descr === void 0 || descr === null) {
1140
+ component.descr = { text: "" };
1141
+ } else {
1142
+ if (typeof descr === "object") {
1143
+ let [key, value] = Object.entries(descr)[0];
1144
+ component[key] = { text: value };
1145
+ } else {
1146
+ component.descr = { text: descr };
1147
+ }
1148
+ }
1149
+ if (typeof sprite === "object") {
1150
+ let [key, value] = Object.entries(sprite)[0];
1151
+ component[key] = value;
1152
+ } else {
1153
+ component.sprite = sprite;
1154
+ }
1155
+ if (typeof tags === "object") {
1156
+ let [key, value] = Object.entries(tags)[0];
1157
+ component[key] = value;
1158
+ } else {
1159
+ component.tags = tags;
1160
+ }
1161
+ if (typeof link === "object") {
1162
+ let [key, value] = Object.entries(link)[0];
1163
+ component[key] = value;
1164
+ } else {
1165
+ component.link = link;
1166
+ }
1167
+ component.wrap = autoWrap();
1168
+ component.typeC4Shape = { text: typeC4Shape };
1169
+ component.parentBoundary = currentBoundaryParse;
1170
+ }, "addComponent");
1171
+ var addPersonOrSystemBoundary = /* @__PURE__ */ __name(function(alias, label, type, tags, link) {
1172
+ if (alias === null || label === null) {
1173
+ return;
1174
+ }
1175
+ let boundary = {};
1176
+ const old = boundaries.find((boundary2) => boundary2.alias === alias);
1177
+ if (old && alias === old.alias) {
1178
+ boundary = old;
1179
+ } else {
1180
+ boundary.alias = alias;
1181
+ boundaries.push(boundary);
1182
+ }
1183
+ if (label === void 0 || label === null) {
1184
+ boundary.label = { text: "" };
1185
+ } else {
1186
+ boundary.label = { text: label };
1187
+ }
1188
+ if (type === void 0 || type === null) {
1189
+ boundary.type = { text: "system" };
1190
+ } else {
1191
+ if (typeof type === "object") {
1192
+ let [key, value] = Object.entries(type)[0];
1193
+ boundary[key] = { text: value };
1194
+ } else {
1195
+ boundary.type = { text: type };
1196
+ }
1197
+ }
1198
+ if (typeof tags === "object") {
1199
+ let [key, value] = Object.entries(tags)[0];
1200
+ boundary[key] = value;
1201
+ } else {
1202
+ boundary.tags = tags;
1203
+ }
1204
+ if (typeof link === "object") {
1205
+ let [key, value] = Object.entries(link)[0];
1206
+ boundary[key] = value;
1207
+ } else {
1208
+ boundary.link = link;
1209
+ }
1210
+ boundary.parentBoundary = currentBoundaryParse;
1211
+ boundary.wrap = autoWrap();
1212
+ parentBoundaryParse = currentBoundaryParse;
1213
+ currentBoundaryParse = alias;
1214
+ boundaryParseStack.push(parentBoundaryParse);
1215
+ }, "addPersonOrSystemBoundary");
1216
+ var addContainerBoundary = /* @__PURE__ */ __name(function(alias, label, type, tags, link) {
1217
+ if (alias === null || label === null) {
1218
+ return;
1219
+ }
1220
+ let boundary = {};
1221
+ const old = boundaries.find((boundary2) => boundary2.alias === alias);
1222
+ if (old && alias === old.alias) {
1223
+ boundary = old;
1224
+ } else {
1225
+ boundary.alias = alias;
1226
+ boundaries.push(boundary);
1227
+ }
1228
+ if (label === void 0 || label === null) {
1229
+ boundary.label = { text: "" };
1230
+ } else {
1231
+ boundary.label = { text: label };
1232
+ }
1233
+ if (type === void 0 || type === null) {
1234
+ boundary.type = { text: "container" };
1235
+ } else {
1236
+ if (typeof type === "object") {
1237
+ let [key, value] = Object.entries(type)[0];
1238
+ boundary[key] = { text: value };
1239
+ } else {
1240
+ boundary.type = { text: type };
1241
+ }
1242
+ }
1243
+ if (typeof tags === "object") {
1244
+ let [key, value] = Object.entries(tags)[0];
1245
+ boundary[key] = value;
1246
+ } else {
1247
+ boundary.tags = tags;
1248
+ }
1249
+ if (typeof link === "object") {
1250
+ let [key, value] = Object.entries(link)[0];
1251
+ boundary[key] = value;
1252
+ } else {
1253
+ boundary.link = link;
1254
+ }
1255
+ boundary.parentBoundary = currentBoundaryParse;
1256
+ boundary.wrap = autoWrap();
1257
+ parentBoundaryParse = currentBoundaryParse;
1258
+ currentBoundaryParse = alias;
1259
+ boundaryParseStack.push(parentBoundaryParse);
1260
+ }, "addContainerBoundary");
1261
+ var addDeploymentNode = /* @__PURE__ */ __name(function(nodeType, alias, label, type, descr, sprite, tags, link) {
1262
+ if (alias === null || label === null) {
1263
+ return;
1264
+ }
1265
+ let boundary = {};
1266
+ const old = boundaries.find((boundary2) => boundary2.alias === alias);
1267
+ if (old && alias === old.alias) {
1268
+ boundary = old;
1269
+ } else {
1270
+ boundary.alias = alias;
1271
+ boundaries.push(boundary);
1272
+ }
1273
+ if (label === void 0 || label === null) {
1274
+ boundary.label = { text: "" };
1275
+ } else {
1276
+ boundary.label = { text: label };
1277
+ }
1278
+ if (type === void 0 || type === null) {
1279
+ boundary.type = { text: "node" };
1280
+ } else {
1281
+ if (typeof type === "object") {
1282
+ let [key, value] = Object.entries(type)[0];
1283
+ boundary[key] = { text: value };
1284
+ } else {
1285
+ boundary.type = { text: type };
1286
+ }
1287
+ }
1288
+ if (descr === void 0 || descr === null) {
1289
+ boundary.descr = { text: "" };
1290
+ } else {
1291
+ if (typeof descr === "object") {
1292
+ let [key, value] = Object.entries(descr)[0];
1293
+ boundary[key] = { text: value };
1294
+ } else {
1295
+ boundary.descr = { text: descr };
1296
+ }
1297
+ }
1298
+ if (typeof tags === "object") {
1299
+ let [key, value] = Object.entries(tags)[0];
1300
+ boundary[key] = value;
1301
+ } else {
1302
+ boundary.tags = tags;
1303
+ }
1304
+ if (typeof link === "object") {
1305
+ let [key, value] = Object.entries(link)[0];
1306
+ boundary[key] = value;
1307
+ } else {
1308
+ boundary.link = link;
1309
+ }
1310
+ boundary.nodeType = nodeType;
1311
+ boundary.parentBoundary = currentBoundaryParse;
1312
+ boundary.wrap = autoWrap();
1313
+ parentBoundaryParse = currentBoundaryParse;
1314
+ currentBoundaryParse = alias;
1315
+ boundaryParseStack.push(parentBoundaryParse);
1316
+ }, "addDeploymentNode");
1317
+ var popBoundaryParseStack = /* @__PURE__ */ __name(function() {
1318
+ currentBoundaryParse = parentBoundaryParse;
1319
+ boundaryParseStack.pop();
1320
+ parentBoundaryParse = boundaryParseStack.pop();
1321
+ boundaryParseStack.push(parentBoundaryParse);
1322
+ }, "popBoundaryParseStack");
1323
+ var updateElStyle = /* @__PURE__ */ __name(function(typeC4Shape, elementName, bgColor, fontColor, borderColor, shadowing, shape, sprite, techn, legendText, legendSprite) {
1324
+ let old = c4ShapeArray.find((element) => element.alias === elementName);
1325
+ if (old === void 0) {
1326
+ old = boundaries.find((element) => element.alias === elementName);
1327
+ if (old === void 0) {
1328
+ return;
1329
+ }
1330
+ }
1331
+ if (bgColor !== void 0 && bgColor !== null) {
1332
+ if (typeof bgColor === "object") {
1333
+ let [key, value] = Object.entries(bgColor)[0];
1334
+ old[key] = value;
1335
+ } else {
1336
+ old.bgColor = bgColor;
1337
+ }
1338
+ }
1339
+ if (fontColor !== void 0 && fontColor !== null) {
1340
+ if (typeof fontColor === "object") {
1341
+ let [key, value] = Object.entries(fontColor)[0];
1342
+ old[key] = value;
1343
+ } else {
1344
+ old.fontColor = fontColor;
1345
+ }
1346
+ }
1347
+ if (borderColor !== void 0 && borderColor !== null) {
1348
+ if (typeof borderColor === "object") {
1349
+ let [key, value] = Object.entries(borderColor)[0];
1350
+ old[key] = value;
1351
+ } else {
1352
+ old.borderColor = borderColor;
1353
+ }
1354
+ }
1355
+ if (shadowing !== void 0 && shadowing !== null) {
1356
+ if (typeof shadowing === "object") {
1357
+ let [key, value] = Object.entries(shadowing)[0];
1358
+ old[key] = value;
1359
+ } else {
1360
+ old.shadowing = shadowing;
1361
+ }
1362
+ }
1363
+ if (shape !== void 0 && shape !== null) {
1364
+ if (typeof shape === "object") {
1365
+ let [key, value] = Object.entries(shape)[0];
1366
+ old[key] = value;
1367
+ } else {
1368
+ old.shape = shape;
1369
+ }
1370
+ }
1371
+ if (sprite !== void 0 && sprite !== null) {
1372
+ if (typeof sprite === "object") {
1373
+ let [key, value] = Object.entries(sprite)[0];
1374
+ old[key] = value;
1375
+ } else {
1376
+ old.sprite = sprite;
1377
+ }
1378
+ }
1379
+ if (techn !== void 0 && techn !== null) {
1380
+ if (typeof techn === "object") {
1381
+ let [key, value] = Object.entries(techn)[0];
1382
+ old[key] = value;
1383
+ } else {
1384
+ old.techn = techn;
1385
+ }
1386
+ }
1387
+ if (legendText !== void 0 && legendText !== null) {
1388
+ if (typeof legendText === "object") {
1389
+ let [key, value] = Object.entries(legendText)[0];
1390
+ old[key] = value;
1391
+ } else {
1392
+ old.legendText = legendText;
1393
+ }
1394
+ }
1395
+ if (legendSprite !== void 0 && legendSprite !== null) {
1396
+ if (typeof legendSprite === "object") {
1397
+ let [key, value] = Object.entries(legendSprite)[0];
1398
+ old[key] = value;
1399
+ } else {
1400
+ old.legendSprite = legendSprite;
1401
+ }
1402
+ }
1403
+ }, "updateElStyle");
1404
+ var updateRelStyle = /* @__PURE__ */ __name(function(typeC4Shape, from, to, textColor, lineColor, offsetX, offsetY) {
1405
+ const old = rels.find((rel) => rel.from === from && rel.to === to);
1406
+ if (old === void 0) {
1407
+ return;
1408
+ }
1409
+ if (textColor !== void 0 && textColor !== null) {
1410
+ if (typeof textColor === "object") {
1411
+ let [key, value] = Object.entries(textColor)[0];
1412
+ old[key] = value;
1413
+ } else {
1414
+ old.textColor = textColor;
1415
+ }
1416
+ }
1417
+ if (lineColor !== void 0 && lineColor !== null) {
1418
+ if (typeof lineColor === "object") {
1419
+ let [key, value] = Object.entries(lineColor)[0];
1420
+ old[key] = value;
1421
+ } else {
1422
+ old.lineColor = lineColor;
1423
+ }
1424
+ }
1425
+ if (offsetX !== void 0 && offsetX !== null) {
1426
+ if (typeof offsetX === "object") {
1427
+ let [key, value] = Object.entries(offsetX)[0];
1428
+ old[key] = parseInt(value);
1429
+ } else {
1430
+ old.offsetX = parseInt(offsetX);
1431
+ }
1432
+ }
1433
+ if (offsetY !== void 0 && offsetY !== null) {
1434
+ if (typeof offsetY === "object") {
1435
+ let [key, value] = Object.entries(offsetY)[0];
1436
+ old[key] = parseInt(value);
1437
+ } else {
1438
+ old.offsetY = parseInt(offsetY);
1439
+ }
1440
+ }
1441
+ }, "updateRelStyle");
1442
+ var updateLayoutConfig = /* @__PURE__ */ __name(function(typeC4Shape, c4ShapeInRowParam, c4BoundaryInRowParam) {
1443
+ let c4ShapeInRowValue = c4ShapeInRow;
1444
+ let c4BoundaryInRowValue = c4BoundaryInRow;
1445
+ if (typeof c4ShapeInRowParam === "object") {
1446
+ const value = Object.values(c4ShapeInRowParam)[0];
1447
+ c4ShapeInRowValue = parseInt(value);
1448
+ } else {
1449
+ c4ShapeInRowValue = parseInt(c4ShapeInRowParam);
1450
+ }
1451
+ if (typeof c4BoundaryInRowParam === "object") {
1452
+ const value = Object.values(c4BoundaryInRowParam)[0];
1453
+ c4BoundaryInRowValue = parseInt(value);
1454
+ } else {
1455
+ c4BoundaryInRowValue = parseInt(c4BoundaryInRowParam);
1456
+ }
1457
+ if (c4ShapeInRowValue >= 1) {
1458
+ c4ShapeInRow = c4ShapeInRowValue;
1459
+ }
1460
+ if (c4BoundaryInRowValue >= 1) {
1461
+ c4BoundaryInRow = c4BoundaryInRowValue;
1462
+ }
1463
+ }, "updateLayoutConfig");
1464
+ var getC4ShapeInRow = /* @__PURE__ */ __name(function() {
1465
+ return c4ShapeInRow;
1466
+ }, "getC4ShapeInRow");
1467
+ var getC4BoundaryInRow = /* @__PURE__ */ __name(function() {
1468
+ return c4BoundaryInRow;
1469
+ }, "getC4BoundaryInRow");
1470
+ var getCurrentBoundaryParse = /* @__PURE__ */ __name(function() {
1471
+ return currentBoundaryParse;
1472
+ }, "getCurrentBoundaryParse");
1473
+ var getParentBoundaryParse = /* @__PURE__ */ __name(function() {
1474
+ return parentBoundaryParse;
1475
+ }, "getParentBoundaryParse");
1476
+ var getC4ShapeArray = /* @__PURE__ */ __name(function(parentBoundary) {
1477
+ if (parentBoundary === void 0 || parentBoundary === null) {
1478
+ return c4ShapeArray;
1479
+ } else {
1480
+ return c4ShapeArray.filter((personOrSystem) => {
1481
+ return personOrSystem.parentBoundary === parentBoundary;
1482
+ });
1483
+ }
1484
+ }, "getC4ShapeArray");
1485
+ var getC4Shape = /* @__PURE__ */ __name(function(alias) {
1486
+ return c4ShapeArray.find((personOrSystem) => personOrSystem.alias === alias);
1487
+ }, "getC4Shape");
1488
+ var getC4ShapeKeys = /* @__PURE__ */ __name(function(parentBoundary) {
1489
+ return Object.keys(getC4ShapeArray(parentBoundary));
1490
+ }, "getC4ShapeKeys");
1491
+ var getBoundaries = /* @__PURE__ */ __name(function(parentBoundary) {
1492
+ if (parentBoundary === void 0 || parentBoundary === null) {
1493
+ return boundaries;
1494
+ } else {
1495
+ return boundaries.filter((boundary) => boundary.parentBoundary === parentBoundary);
1496
+ }
1497
+ }, "getBoundaries");
1498
+ var getBoundarys = getBoundaries;
1499
+ var getRels = /* @__PURE__ */ __name(function() {
1500
+ return rels;
1501
+ }, "getRels");
1502
+ var getTitle = /* @__PURE__ */ __name(function() {
1503
+ return title;
1504
+ }, "getTitle");
1505
+ var setWrap = /* @__PURE__ */ __name(function(wrapSetting) {
1506
+ wrapEnabled = wrapSetting;
1507
+ }, "setWrap");
1508
+ var autoWrap = /* @__PURE__ */ __name(function() {
1509
+ return wrapEnabled;
1510
+ }, "autoWrap");
1511
+ var clear = /* @__PURE__ */ __name(function() {
1512
+ c4ShapeArray = [];
1513
+ boundaries = [
1514
+ {
1515
+ alias: "global",
1516
+ label: { text: "global" },
1517
+ type: { text: "global" },
1518
+ tags: null,
1519
+ link: null,
1520
+ parentBoundary: ""
1521
+ }
1522
+ ];
1523
+ parentBoundaryParse = "";
1524
+ currentBoundaryParse = "global";
1525
+ boundaryParseStack = [""];
1526
+ rels = [];
1527
+ boundaryParseStack = [""];
1528
+ title = "";
1529
+ wrapEnabled = false;
1530
+ c4ShapeInRow = 4;
1531
+ c4BoundaryInRow = 2;
1532
+ }, "clear");
1533
+ var LINETYPE = {
1534
+ SOLID: 0,
1535
+ DOTTED: 1,
1536
+ NOTE: 2,
1537
+ SOLID_CROSS: 3,
1538
+ DOTTED_CROSS: 4,
1539
+ SOLID_OPEN: 5,
1540
+ DOTTED_OPEN: 6,
1541
+ LOOP_START: 10,
1542
+ LOOP_END: 11,
1543
+ ALT_START: 12,
1544
+ ALT_ELSE: 13,
1545
+ ALT_END: 14,
1546
+ OPT_START: 15,
1547
+ OPT_END: 16,
1548
+ ACTIVE_START: 17,
1549
+ ACTIVE_END: 18,
1550
+ PAR_START: 19,
1551
+ PAR_AND: 20,
1552
+ PAR_END: 21,
1553
+ RECT_START: 22,
1554
+ RECT_END: 23,
1555
+ SOLID_POINT: 24,
1556
+ DOTTED_POINT: 25
1557
+ };
1558
+ var ARROWTYPE = {
1559
+ FILLED: 0,
1560
+ OPEN: 1
1561
+ };
1562
+ var PLACEMENT = {
1563
+ LEFTOF: 0,
1564
+ RIGHTOF: 1,
1565
+ OVER: 2
1566
+ };
1567
+ var setTitle = /* @__PURE__ */ __name(function(txt) {
1568
+ let sanitizedText = sanitizeText(txt, getConfig2());
1569
+ title = sanitizedText;
1570
+ }, "setTitle");
1571
+ var c4Db_default = {
1572
+ addPersonOrSystem,
1573
+ addPersonOrSystemBoundary,
1574
+ addContainer,
1575
+ addContainerBoundary,
1576
+ addComponent,
1577
+ addDeploymentNode,
1578
+ popBoundaryParseStack,
1579
+ addRel,
1580
+ updateElStyle,
1581
+ updateRelStyle,
1582
+ updateLayoutConfig,
1583
+ autoWrap,
1584
+ setWrap,
1585
+ getC4ShapeArray,
1586
+ getC4Shape,
1587
+ getC4ShapeKeys,
1588
+ getBoundaries,
1589
+ getBoundarys,
1590
+ getCurrentBoundaryParse,
1591
+ getParentBoundaryParse,
1592
+ getRels,
1593
+ getTitle,
1594
+ getC4Type,
1595
+ getC4ShapeInRow,
1596
+ getC4BoundaryInRow,
1597
+ setAccTitle,
1598
+ getAccTitle,
1599
+ getAccDescription,
1600
+ setAccDescription,
1601
+ getConfig: /* @__PURE__ */ __name(() => getConfig2().c4, "getConfig"),
1602
+ clear,
1603
+ LINETYPE,
1604
+ ARROWTYPE,
1605
+ PLACEMENT,
1606
+ setTitle,
1607
+ setC4Type
1608
+ // apply,
1609
+ };
1610
+ var drawRect2 = /* @__PURE__ */ __name(function(elem, rectData) {
1611
+ return drawRect(elem, rectData);
1612
+ }, "drawRect");
1613
+ var drawImage = /* @__PURE__ */ __name(function(elem, width, height, x, y, link) {
1614
+ const imageElem = elem.append("image");
1615
+ imageElem.attr("width", width);
1616
+ imageElem.attr("height", height);
1617
+ imageElem.attr("x", x);
1618
+ imageElem.attr("y", y);
1619
+ let sanitizedLink = link.startsWith("data:image/png;base64") ? link : distExports.sanitizeUrl(link);
1620
+ imageElem.attr("xlink:href", sanitizedLink);
1621
+ }, "drawImage");
1622
+ var drawRels = /* @__PURE__ */ __name((elem, rels2, conf2) => {
1623
+ const relsElem = elem.append("g");
1624
+ let i = 0;
1625
+ for (let rel of rels2) {
1626
+ let textColor = rel.textColor ? rel.textColor : "#444444";
1627
+ let strokeColor = rel.lineColor ? rel.lineColor : "#444444";
1628
+ let offsetX = rel.offsetX ? parseInt(rel.offsetX) : 0;
1629
+ let offsetY = rel.offsetY ? parseInt(rel.offsetY) : 0;
1630
+ let url = "";
1631
+ if (i === 0) {
1632
+ let line = relsElem.append("line");
1633
+ line.attr("x1", rel.startPoint.x);
1634
+ line.attr("y1", rel.startPoint.y);
1635
+ line.attr("x2", rel.endPoint.x);
1636
+ line.attr("y2", rel.endPoint.y);
1637
+ line.attr("stroke-width", "1");
1638
+ line.attr("stroke", strokeColor);
1639
+ line.style("fill", "none");
1640
+ if (rel.type !== "rel_b") {
1641
+ line.attr("marker-end", "url(" + url + "#arrowhead)");
1642
+ }
1643
+ if (rel.type === "birel" || rel.type === "rel_b") {
1644
+ line.attr("marker-start", "url(" + url + "#arrowend)");
1645
+ }
1646
+ i = -1;
1647
+ } else {
1648
+ let line = relsElem.append("path");
1649
+ line.attr("fill", "none").attr("stroke-width", "1").attr("stroke", strokeColor).attr(
1650
+ "d",
1651
+ "Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx", rel.startPoint.x).replaceAll("starty", rel.startPoint.y).replaceAll(
1652
+ "controlx",
1653
+ rel.startPoint.x + (rel.endPoint.x - rel.startPoint.x) / 2 - (rel.endPoint.x - rel.startPoint.x) / 4
1654
+ ).replaceAll("controly", rel.startPoint.y + (rel.endPoint.y - rel.startPoint.y) / 2).replaceAll("stopx", rel.endPoint.x).replaceAll("stopy", rel.endPoint.y)
1655
+ );
1656
+ if (rel.type !== "rel_b") {
1657
+ line.attr("marker-end", "url(" + url + "#arrowhead)");
1658
+ }
1659
+ if (rel.type === "birel" || rel.type === "rel_b") {
1660
+ line.attr("marker-start", "url(" + url + "#arrowend)");
1661
+ }
1662
+ }
1663
+ let messageConf = conf2.messageFont();
1664
+ _drawTextCandidateFunc(conf2)(
1665
+ rel.label.text,
1666
+ relsElem,
1667
+ Math.min(rel.startPoint.x, rel.endPoint.x) + Math.abs(rel.endPoint.x - rel.startPoint.x) / 2 + offsetX,
1668
+ Math.min(rel.startPoint.y, rel.endPoint.y) + Math.abs(rel.endPoint.y - rel.startPoint.y) / 2 + offsetY,
1669
+ rel.label.width,
1670
+ rel.label.height,
1671
+ { fill: textColor },
1672
+ messageConf
1673
+ );
1674
+ if (rel.techn && rel.techn.text !== "") {
1675
+ messageConf = conf2.messageFont();
1676
+ _drawTextCandidateFunc(conf2)(
1677
+ "[" + rel.techn.text + "]",
1678
+ relsElem,
1679
+ Math.min(rel.startPoint.x, rel.endPoint.x) + Math.abs(rel.endPoint.x - rel.startPoint.x) / 2 + offsetX,
1680
+ Math.min(rel.startPoint.y, rel.endPoint.y) + Math.abs(rel.endPoint.y - rel.startPoint.y) / 2 + conf2.messageFontSize + 5 + offsetY,
1681
+ Math.max(rel.label.width, rel.techn.width),
1682
+ rel.techn.height,
1683
+ { fill: textColor, "font-style": "italic" },
1684
+ messageConf
1685
+ );
1686
+ }
1687
+ }
1688
+ }, "drawRels");
1689
+ var drawBoundary = /* @__PURE__ */ __name(function(elem, boundary, conf2) {
1690
+ const boundaryElem = elem.append("g");
1691
+ let fillColor = boundary.bgColor ? boundary.bgColor : "none";
1692
+ let strokeColor = boundary.borderColor ? boundary.borderColor : "#444444";
1693
+ let fontColor = boundary.fontColor ? boundary.fontColor : "black";
1694
+ let attrsValue = { "stroke-width": 1, "stroke-dasharray": "7.0,7.0" };
1695
+ if (boundary.nodeType) {
1696
+ attrsValue = { "stroke-width": 1 };
1697
+ }
1698
+ let rectData = {
1699
+ x: boundary.x,
1700
+ y: boundary.y,
1701
+ fill: fillColor,
1702
+ stroke: strokeColor,
1703
+ width: boundary.width,
1704
+ height: boundary.height,
1705
+ rx: 2.5,
1706
+ ry: 2.5,
1707
+ attrs: attrsValue
1708
+ };
1709
+ drawRect2(boundaryElem, rectData);
1710
+ let boundaryConf = conf2.boundaryFont();
1711
+ boundaryConf.fontWeight = "bold";
1712
+ boundaryConf.fontSize = boundaryConf.fontSize + 2;
1713
+ boundaryConf.fontColor = fontColor;
1714
+ _drawTextCandidateFunc(conf2)(
1715
+ boundary.label.text,
1716
+ boundaryElem,
1717
+ boundary.x,
1718
+ boundary.y + boundary.label.Y,
1719
+ boundary.width,
1720
+ boundary.height,
1721
+ { fill: "#444444" },
1722
+ boundaryConf
1723
+ );
1724
+ if (boundary.type && boundary.type.text !== "") {
1725
+ boundaryConf = conf2.boundaryFont();
1726
+ boundaryConf.fontColor = fontColor;
1727
+ _drawTextCandidateFunc(conf2)(
1728
+ boundary.type.text,
1729
+ boundaryElem,
1730
+ boundary.x,
1731
+ boundary.y + boundary.type.Y,
1732
+ boundary.width,
1733
+ boundary.height,
1734
+ { fill: "#444444" },
1735
+ boundaryConf
1736
+ );
1737
+ }
1738
+ if (boundary.descr && boundary.descr.text !== "") {
1739
+ boundaryConf = conf2.boundaryFont();
1740
+ boundaryConf.fontSize = boundaryConf.fontSize - 2;
1741
+ boundaryConf.fontColor = fontColor;
1742
+ _drawTextCandidateFunc(conf2)(
1743
+ boundary.descr.text,
1744
+ boundaryElem,
1745
+ boundary.x,
1746
+ boundary.y + boundary.descr.Y,
1747
+ boundary.width,
1748
+ boundary.height,
1749
+ { fill: "#444444" },
1750
+ boundaryConf
1751
+ );
1752
+ }
1753
+ }, "drawBoundary");
1754
+ var drawC4Shape = /* @__PURE__ */ __name(function(elem, c4Shape, conf2) {
1755
+ var _a2;
1756
+ let fillColor = c4Shape.bgColor ? c4Shape.bgColor : conf2[c4Shape.typeC4Shape.text + "_bg_color"];
1757
+ let strokeColor = c4Shape.borderColor ? c4Shape.borderColor : conf2[c4Shape.typeC4Shape.text + "_border_color"];
1758
+ let fontColor = c4Shape.fontColor ? c4Shape.fontColor : "#FFFFFF";
1759
+ let personImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
1760
+ switch (c4Shape.typeC4Shape.text) {
1761
+ case "person":
1762
+ personImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
1763
+ break;
1764
+ case "external_person":
1765
+ personImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";
1766
+ break;
1767
+ }
1768
+ const c4ShapeElem = elem.append("g");
1769
+ c4ShapeElem.attr("class", "person-man");
1770
+ const rect = getNoteRect();
1771
+ switch (c4Shape.typeC4Shape.text) {
1772
+ case "person":
1773
+ case "external_person":
1774
+ case "system":
1775
+ case "external_system":
1776
+ case "container":
1777
+ case "external_container":
1778
+ case "component":
1779
+ case "external_component":
1780
+ rect.x = c4Shape.x;
1781
+ rect.y = c4Shape.y;
1782
+ rect.fill = fillColor;
1783
+ rect.width = c4Shape.width;
1784
+ rect.height = c4Shape.height;
1785
+ rect.stroke = strokeColor;
1786
+ rect.rx = 2.5;
1787
+ rect.ry = 2.5;
1788
+ rect.attrs = { "stroke-width": 0.5 };
1789
+ drawRect2(c4ShapeElem, rect);
1790
+ break;
1791
+ case "system_db":
1792
+ case "external_system_db":
1793
+ case "container_db":
1794
+ case "external_container_db":
1795
+ case "component_db":
1796
+ case "external_component_db":
1797
+ c4ShapeElem.append("path").attr("fill", fillColor).attr("stroke-width", "0.5").attr("stroke", strokeColor).attr(
1798
+ "d",
1799
+ "Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx", c4Shape.x).replaceAll("starty", c4Shape.y).replaceAll("half", c4Shape.width / 2).replaceAll("height", c4Shape.height)
1800
+ );
1801
+ c4ShapeElem.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", strokeColor).attr(
1802
+ "d",
1803
+ "Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx", c4Shape.x).replaceAll("starty", c4Shape.y).replaceAll("half", c4Shape.width / 2)
1804
+ );
1805
+ break;
1806
+ case "system_queue":
1807
+ case "external_system_queue":
1808
+ case "container_queue":
1809
+ case "external_container_queue":
1810
+ case "component_queue":
1811
+ case "external_component_queue":
1812
+ c4ShapeElem.append("path").attr("fill", fillColor).attr("stroke-width", "0.5").attr("stroke", strokeColor).attr(
1813
+ "d",
1814
+ "Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx", c4Shape.x).replaceAll("starty", c4Shape.y).replaceAll("width", c4Shape.width).replaceAll("half", c4Shape.height / 2)
1815
+ );
1816
+ c4ShapeElem.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", strokeColor).attr(
1817
+ "d",
1818
+ "Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx", c4Shape.x + c4Shape.width).replaceAll("starty", c4Shape.y).replaceAll("half", c4Shape.height / 2)
1819
+ );
1820
+ break;
1821
+ }
1822
+ let c4ShapeFontConf = getC4ShapeFont(conf2, c4Shape.typeC4Shape.text);
1823
+ c4ShapeElem.append("text").attr("fill", fontColor).attr("font-family", c4ShapeFontConf.fontFamily).attr("font-size", c4ShapeFontConf.fontSize - 2).attr("font-style", "italic").attr("lengthAdjust", "spacing").attr("textLength", c4Shape.typeC4Shape.width).attr("x", c4Shape.x + c4Shape.width / 2 - c4Shape.typeC4Shape.width / 2).attr("y", c4Shape.y + c4Shape.typeC4Shape.Y).text("<<" + c4Shape.typeC4Shape.text + ">>");
1824
+ switch (c4Shape.typeC4Shape.text) {
1825
+ case "person":
1826
+ case "external_person":
1827
+ drawImage(
1828
+ c4ShapeElem,
1829
+ 48,
1830
+ 48,
1831
+ c4Shape.x + c4Shape.width / 2 - 24,
1832
+ c4Shape.y + c4Shape.image.Y,
1833
+ personImg
1834
+ );
1835
+ break;
1836
+ }
1837
+ let textFontConf = conf2[c4Shape.typeC4Shape.text + "Font"]();
1838
+ textFontConf.fontWeight = "bold";
1839
+ textFontConf.fontSize = textFontConf.fontSize + 2;
1840
+ textFontConf.fontColor = fontColor;
1841
+ _drawTextCandidateFunc(conf2)(
1842
+ c4Shape.label.text,
1843
+ c4ShapeElem,
1844
+ c4Shape.x,
1845
+ c4Shape.y + c4Shape.label.Y,
1846
+ c4Shape.width,
1847
+ c4Shape.height,
1848
+ { fill: fontColor },
1849
+ textFontConf
1850
+ );
1851
+ textFontConf = conf2[c4Shape.typeC4Shape.text + "Font"]();
1852
+ textFontConf.fontColor = fontColor;
1853
+ if (c4Shape.techn && ((_a2 = c4Shape.techn) == null ? void 0 : _a2.text) !== "") {
1854
+ _drawTextCandidateFunc(conf2)(
1855
+ c4Shape.techn.text,
1856
+ c4ShapeElem,
1857
+ c4Shape.x,
1858
+ c4Shape.y + c4Shape.techn.Y,
1859
+ c4Shape.width,
1860
+ c4Shape.height,
1861
+ { fill: fontColor, "font-style": "italic" },
1862
+ textFontConf
1863
+ );
1864
+ } else if (c4Shape.type && c4Shape.type.text !== "") {
1865
+ _drawTextCandidateFunc(conf2)(
1866
+ c4Shape.type.text,
1867
+ c4ShapeElem,
1868
+ c4Shape.x,
1869
+ c4Shape.y + c4Shape.type.Y,
1870
+ c4Shape.width,
1871
+ c4Shape.height,
1872
+ { fill: fontColor, "font-style": "italic" },
1873
+ textFontConf
1874
+ );
1875
+ }
1876
+ if (c4Shape.descr && c4Shape.descr.text !== "") {
1877
+ textFontConf = conf2.personFont();
1878
+ textFontConf.fontColor = fontColor;
1879
+ _drawTextCandidateFunc(conf2)(
1880
+ c4Shape.descr.text,
1881
+ c4ShapeElem,
1882
+ c4Shape.x,
1883
+ c4Shape.y + c4Shape.descr.Y,
1884
+ c4Shape.width,
1885
+ c4Shape.height,
1886
+ { fill: fontColor },
1887
+ textFontConf
1888
+ );
1889
+ }
1890
+ return c4Shape.height;
1891
+ }, "drawC4Shape");
1892
+ var insertDatabaseIcon = /* @__PURE__ */ __name(function(elem) {
1893
+ elem.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
1894
+ "d",
1895
+ "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z"
1896
+ );
1897
+ }, "insertDatabaseIcon");
1898
+ var insertComputerIcon = /* @__PURE__ */ __name(function(elem) {
1899
+ elem.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1900
+ "d",
1901
+ "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z"
1902
+ );
1903
+ }, "insertComputerIcon");
1904
+ var insertClockIcon = /* @__PURE__ */ __name(function(elem) {
1905
+ elem.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1906
+ "d",
1907
+ "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z"
1908
+ );
1909
+ }, "insertClockIcon");
1910
+ var insertArrowHead = /* @__PURE__ */ __name(function(elem) {
1911
+ elem.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 9).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");
1912
+ }, "insertArrowHead");
1913
+ var insertArrowEnd = /* @__PURE__ */ __name(function(elem) {
1914
+ elem.append("defs").append("marker").attr("id", "arrowend").attr("refX", 1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z");
1915
+ }, "insertArrowEnd");
1916
+ var insertArrowFilledHead = /* @__PURE__ */ __name(function(elem) {
1917
+ elem.append("defs").append("marker").attr("id", "filled-head").attr("refX", 18).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");
1918
+ }, "insertArrowFilledHead");
1919
+ var insertDynamicNumber = /* @__PURE__ */ __name(function(elem) {
1920
+ elem.append("defs").append("marker").attr("id", "sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6);
1921
+ }, "insertDynamicNumber");
1922
+ var insertArrowCrossHead = /* @__PURE__ */ __name(function(elem) {
1923
+ const defs = elem.append("defs");
1924
+ const marker = defs.append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
1925
+ marker.append("path").attr("fill", "black").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 9,2 V 6 L16,4 Z");
1926
+ marker.append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 0,1 L 6,7 M 6,1 L 0,7");
1927
+ }, "insertArrowCrossHead");
1928
+ var getC4ShapeFont = /* @__PURE__ */ __name((cnf, typeC4Shape) => {
1929
+ return {
1930
+ fontFamily: cnf[typeC4Shape + "FontFamily"],
1931
+ fontSize: cnf[typeC4Shape + "FontSize"],
1932
+ fontWeight: cnf[typeC4Shape + "FontWeight"]
1933
+ };
1934
+ }, "getC4ShapeFont");
1935
+ var _drawTextCandidateFunc = /* @__PURE__ */ function() {
1936
+ function byText(content, g, x, y, width, height, textAttrs) {
1937
+ const text = g.append("text").attr("x", x + width / 2).attr("y", y + height / 2 + 5).style("text-anchor", "middle").text(content);
1938
+ _setTextAttrs(text, textAttrs);
1939
+ }
1940
+ __name(byText, "byText");
1941
+ function byTspan(content, g, x, y, width, height, textAttrs, conf2) {
1942
+ const { fontSize, fontFamily, fontWeight } = conf2;
1943
+ const lines = content.split(common_default.lineBreakRegex);
1944
+ for (let i = 0; i < lines.length; i++) {
1945
+ const dy = i * fontSize - fontSize * (lines.length - 1) / 2;
1946
+ const text = g.append("text").attr("x", x + width / 2).attr("y", y).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", fontSize).style("font-weight", fontWeight).style("font-family", fontFamily);
1947
+ text.append("tspan").attr("dy", dy).text(lines[i]).attr("alignment-baseline", "mathematical");
1948
+ _setTextAttrs(text, textAttrs);
1949
+ }
1950
+ }
1951
+ __name(byTspan, "byTspan");
1952
+ function byFo(content, g, x, y, width, height, textAttrs, conf2) {
1953
+ const s = g.append("switch");
1954
+ const f = s.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height);
1955
+ const text = f.append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1956
+ text.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(content);
1957
+ byTspan(content, s, x, y, width, height, textAttrs, conf2);
1958
+ _setTextAttrs(text, textAttrs);
1959
+ }
1960
+ __name(byFo, "byFo");
1961
+ function _setTextAttrs(toText, fromTextAttrsDict) {
1962
+ for (const key in fromTextAttrsDict) {
1963
+ if (fromTextAttrsDict.hasOwnProperty(key)) {
1964
+ toText.attr(key, fromTextAttrsDict[key]);
1965
+ }
1966
+ }
1967
+ }
1968
+ __name(_setTextAttrs, "_setTextAttrs");
1969
+ return function(conf2) {
1970
+ return conf2.textPlacement === "fo" ? byFo : conf2.textPlacement === "old" ? byText : byTspan;
1971
+ };
1972
+ }();
1973
+ var svgDraw_default = {
1974
+ drawRect: drawRect2,
1975
+ drawBoundary,
1976
+ drawC4Shape,
1977
+ drawRels,
1978
+ drawImage,
1979
+ insertArrowHead,
1980
+ insertArrowEnd,
1981
+ insertArrowFilledHead,
1982
+ insertDynamicNumber,
1983
+ insertArrowCrossHead,
1984
+ insertDatabaseIcon,
1985
+ insertComputerIcon,
1986
+ insertClockIcon
1987
+ };
1988
+ var globalBoundaryMaxX = 0;
1989
+ var globalBoundaryMaxY = 0;
1990
+ var c4ShapeInRow2 = 4;
1991
+ var c4BoundaryInRow2 = 2;
1992
+ parser.yy = c4Db_default;
1993
+ var conf = {};
1994
+ var Bounds = (_a = class {
1995
+ constructor(diagObj) {
1996
+ this.name = "";
1997
+ this.data = {};
1998
+ this.data.startx = void 0;
1999
+ this.data.stopx = void 0;
2000
+ this.data.starty = void 0;
2001
+ this.data.stopy = void 0;
2002
+ this.data.widthLimit = void 0;
2003
+ this.nextData = {};
2004
+ this.nextData.startx = void 0;
2005
+ this.nextData.stopx = void 0;
2006
+ this.nextData.starty = void 0;
2007
+ this.nextData.stopy = void 0;
2008
+ this.nextData.cnt = 0;
2009
+ setConf(diagObj.db.getConfig());
2010
+ }
2011
+ setData(startx, stopx, starty, stopy) {
2012
+ this.nextData.startx = this.data.startx = startx;
2013
+ this.nextData.stopx = this.data.stopx = stopx;
2014
+ this.nextData.starty = this.data.starty = starty;
2015
+ this.nextData.stopy = this.data.stopy = stopy;
2016
+ }
2017
+ updateVal(obj, key, val, fun) {
2018
+ if (obj[key] === void 0) {
2019
+ obj[key] = val;
2020
+ } else {
2021
+ obj[key] = fun(val, obj[key]);
2022
+ }
2023
+ }
2024
+ insert(c4Shape) {
2025
+ this.nextData.cnt = this.nextData.cnt + 1;
2026
+ let _startx = this.nextData.startx === this.nextData.stopx ? this.nextData.stopx + c4Shape.margin : this.nextData.stopx + c4Shape.margin * 2;
2027
+ let _stopx = _startx + c4Shape.width;
2028
+ let _starty = this.nextData.starty + c4Shape.margin * 2;
2029
+ let _stopy = _starty + c4Shape.height;
2030
+ if (_startx >= this.data.widthLimit || _stopx >= this.data.widthLimit || this.nextData.cnt > c4ShapeInRow2) {
2031
+ _startx = this.nextData.startx + c4Shape.margin + conf.nextLinePaddingX;
2032
+ _starty = this.nextData.stopy + c4Shape.margin * 2;
2033
+ this.nextData.stopx = _stopx = _startx + c4Shape.width;
2034
+ this.nextData.starty = this.nextData.stopy;
2035
+ this.nextData.stopy = _stopy = _starty + c4Shape.height;
2036
+ this.nextData.cnt = 1;
2037
+ }
2038
+ c4Shape.x = _startx;
2039
+ c4Shape.y = _starty;
2040
+ this.updateVal(this.data, "startx", _startx, Math.min);
2041
+ this.updateVal(this.data, "starty", _starty, Math.min);
2042
+ this.updateVal(this.data, "stopx", _stopx, Math.max);
2043
+ this.updateVal(this.data, "stopy", _stopy, Math.max);
2044
+ this.updateVal(this.nextData, "startx", _startx, Math.min);
2045
+ this.updateVal(this.nextData, "starty", _starty, Math.min);
2046
+ this.updateVal(this.nextData, "stopx", _stopx, Math.max);
2047
+ this.updateVal(this.nextData, "stopy", _stopy, Math.max);
2048
+ }
2049
+ init(diagObj) {
2050
+ this.name = "";
2051
+ this.data = {
2052
+ startx: void 0,
2053
+ stopx: void 0,
2054
+ starty: void 0,
2055
+ stopy: void 0,
2056
+ widthLimit: void 0
2057
+ };
2058
+ this.nextData = {
2059
+ startx: void 0,
2060
+ stopx: void 0,
2061
+ starty: void 0,
2062
+ stopy: void 0,
2063
+ cnt: 0
2064
+ };
2065
+ setConf(diagObj.db.getConfig());
2066
+ }
2067
+ bumpLastMargin(margin) {
2068
+ this.data.stopx += margin;
2069
+ this.data.stopy += margin;
2070
+ }
2071
+ }, __name(_a, "Bounds"), _a);
2072
+ var setConf = /* @__PURE__ */ __name(function(cnf) {
2073
+ assignWithDepth_default(conf, cnf);
2074
+ if (cnf.fontFamily) {
2075
+ conf.personFontFamily = conf.systemFontFamily = conf.messageFontFamily = cnf.fontFamily;
2076
+ }
2077
+ if (cnf.fontSize) {
2078
+ conf.personFontSize = conf.systemFontSize = conf.messageFontSize = cnf.fontSize;
2079
+ }
2080
+ if (cnf.fontWeight) {
2081
+ conf.personFontWeight = conf.systemFontWeight = conf.messageFontWeight = cnf.fontWeight;
2082
+ }
2083
+ }, "setConf");
2084
+ var c4ShapeFont = /* @__PURE__ */ __name((cnf, typeC4Shape) => {
2085
+ return {
2086
+ fontFamily: cnf[typeC4Shape + "FontFamily"],
2087
+ fontSize: cnf[typeC4Shape + "FontSize"],
2088
+ fontWeight: cnf[typeC4Shape + "FontWeight"]
2089
+ };
2090
+ }, "c4ShapeFont");
2091
+ var boundaryFont = /* @__PURE__ */ __name((cnf) => {
2092
+ return {
2093
+ fontFamily: cnf.boundaryFontFamily,
2094
+ fontSize: cnf.boundaryFontSize,
2095
+ fontWeight: cnf.boundaryFontWeight
2096
+ };
2097
+ }, "boundaryFont");
2098
+ var messageFont = /* @__PURE__ */ __name((cnf) => {
2099
+ return {
2100
+ fontFamily: cnf.messageFontFamily,
2101
+ fontSize: cnf.messageFontSize,
2102
+ fontWeight: cnf.messageFontWeight
2103
+ };
2104
+ }, "messageFont");
2105
+ function calcC4ShapeTextWH(textType, c4Shape, c4ShapeTextWrap, textConf, textLimitWidth) {
2106
+ if (!c4Shape[textType].width) {
2107
+ if (c4ShapeTextWrap) {
2108
+ c4Shape[textType].text = wrapLabel(c4Shape[textType].text, textLimitWidth, textConf);
2109
+ c4Shape[textType].textLines = c4Shape[textType].text.split(common_default.lineBreakRegex).length;
2110
+ c4Shape[textType].width = textLimitWidth;
2111
+ c4Shape[textType].height = calculateTextHeight(c4Shape[textType].text, textConf);
2112
+ } else {
2113
+ let lines = c4Shape[textType].text.split(common_default.lineBreakRegex);
2114
+ c4Shape[textType].textLines = lines.length;
2115
+ let lineHeight = 0;
2116
+ c4Shape[textType].height = 0;
2117
+ c4Shape[textType].width = 0;
2118
+ for (const line of lines) {
2119
+ c4Shape[textType].width = Math.max(
2120
+ calculateTextWidth(line, textConf),
2121
+ c4Shape[textType].width
2122
+ );
2123
+ lineHeight = calculateTextHeight(line, textConf);
2124
+ c4Shape[textType].height = c4Shape[textType].height + lineHeight;
2125
+ }
2126
+ }
2127
+ }
2128
+ }
2129
+ __name(calcC4ShapeTextWH, "calcC4ShapeTextWH");
2130
+ var drawBoundary2 = /* @__PURE__ */ __name(function(diagram2, boundary, bounds) {
2131
+ boundary.x = bounds.data.startx;
2132
+ boundary.y = bounds.data.starty;
2133
+ boundary.width = bounds.data.stopx - bounds.data.startx;
2134
+ boundary.height = bounds.data.stopy - bounds.data.starty;
2135
+ boundary.label.y = conf.c4ShapeMargin - 35;
2136
+ let boundaryTextWrap = boundary.wrap && conf.wrap;
2137
+ let boundaryLabelConf = boundaryFont(conf);
2138
+ boundaryLabelConf.fontSize = boundaryLabelConf.fontSize + 2;
2139
+ boundaryLabelConf.fontWeight = "bold";
2140
+ let textLimitWidth = calculateTextWidth(boundary.label.text, boundaryLabelConf);
2141
+ calcC4ShapeTextWH("label", boundary, boundaryTextWrap, boundaryLabelConf, textLimitWidth);
2142
+ svgDraw_default.drawBoundary(diagram2, boundary, conf);
2143
+ }, "drawBoundary");
2144
+ var drawC4ShapeArray = /* @__PURE__ */ __name(function(currentBounds, diagram2, c4ShapeArray2, c4ShapeKeys) {
2145
+ let Y = 0;
2146
+ for (const c4ShapeKey of c4ShapeKeys) {
2147
+ Y = 0;
2148
+ const c4Shape = c4ShapeArray2[c4ShapeKey];
2149
+ let c4ShapeTypeConf = c4ShapeFont(conf, c4Shape.typeC4Shape.text);
2150
+ c4ShapeTypeConf.fontSize = c4ShapeTypeConf.fontSize - 2;
2151
+ c4Shape.typeC4Shape.width = calculateTextWidth(
2152
+ "«" + c4Shape.typeC4Shape.text + "»",
2153
+ c4ShapeTypeConf
2154
+ );
2155
+ c4Shape.typeC4Shape.height = c4ShapeTypeConf.fontSize + 2;
2156
+ c4Shape.typeC4Shape.Y = conf.c4ShapePadding;
2157
+ Y = c4Shape.typeC4Shape.Y + c4Shape.typeC4Shape.height - 4;
2158
+ c4Shape.image = { width: 0, height: 0, Y: 0 };
2159
+ switch (c4Shape.typeC4Shape.text) {
2160
+ case "person":
2161
+ case "external_person":
2162
+ c4Shape.image.width = 48;
2163
+ c4Shape.image.height = 48;
2164
+ c4Shape.image.Y = Y;
2165
+ Y = c4Shape.image.Y + c4Shape.image.height;
2166
+ break;
2167
+ }
2168
+ if (c4Shape.sprite) {
2169
+ c4Shape.image.width = 48;
2170
+ c4Shape.image.height = 48;
2171
+ c4Shape.image.Y = Y;
2172
+ Y = c4Shape.image.Y + c4Shape.image.height;
2173
+ }
2174
+ let c4ShapeTextWrap = c4Shape.wrap && conf.wrap;
2175
+ let textLimitWidth = conf.width - conf.c4ShapePadding * 2;
2176
+ let c4ShapeLabelConf = c4ShapeFont(conf, c4Shape.typeC4Shape.text);
2177
+ c4ShapeLabelConf.fontSize = c4ShapeLabelConf.fontSize + 2;
2178
+ c4ShapeLabelConf.fontWeight = "bold";
2179
+ calcC4ShapeTextWH("label", c4Shape, c4ShapeTextWrap, c4ShapeLabelConf, textLimitWidth);
2180
+ c4Shape.label.Y = Y + 8;
2181
+ Y = c4Shape.label.Y + c4Shape.label.height;
2182
+ if (c4Shape.type && c4Shape.type.text !== "") {
2183
+ c4Shape.type.text = "[" + c4Shape.type.text + "]";
2184
+ let c4ShapeTypeConf2 = c4ShapeFont(conf, c4Shape.typeC4Shape.text);
2185
+ calcC4ShapeTextWH("type", c4Shape, c4ShapeTextWrap, c4ShapeTypeConf2, textLimitWidth);
2186
+ c4Shape.type.Y = Y + 5;
2187
+ Y = c4Shape.type.Y + c4Shape.type.height;
2188
+ } else if (c4Shape.techn && c4Shape.techn.text !== "") {
2189
+ c4Shape.techn.text = "[" + c4Shape.techn.text + "]";
2190
+ let c4ShapeTechnConf = c4ShapeFont(conf, c4Shape.techn.text);
2191
+ calcC4ShapeTextWH("techn", c4Shape, c4ShapeTextWrap, c4ShapeTechnConf, textLimitWidth);
2192
+ c4Shape.techn.Y = Y + 5;
2193
+ Y = c4Shape.techn.Y + c4Shape.techn.height;
2194
+ }
2195
+ let rectHeight = Y;
2196
+ let rectWidth = c4Shape.label.width;
2197
+ if (c4Shape.descr && c4Shape.descr.text !== "") {
2198
+ let c4ShapeDescrConf = c4ShapeFont(conf, c4Shape.typeC4Shape.text);
2199
+ calcC4ShapeTextWH("descr", c4Shape, c4ShapeTextWrap, c4ShapeDescrConf, textLimitWidth);
2200
+ c4Shape.descr.Y = Y + 20;
2201
+ Y = c4Shape.descr.Y + c4Shape.descr.height;
2202
+ rectWidth = Math.max(c4Shape.label.width, c4Shape.descr.width);
2203
+ rectHeight = Y - c4Shape.descr.textLines * 5;
2204
+ }
2205
+ rectWidth = rectWidth + conf.c4ShapePadding;
2206
+ c4Shape.width = Math.max(c4Shape.width || conf.width, rectWidth, conf.width);
2207
+ c4Shape.height = Math.max(c4Shape.height || conf.height, rectHeight, conf.height);
2208
+ c4Shape.margin = c4Shape.margin || conf.c4ShapeMargin;
2209
+ currentBounds.insert(c4Shape);
2210
+ svgDraw_default.drawC4Shape(diagram2, c4Shape, conf);
2211
+ }
2212
+ currentBounds.bumpLastMargin(conf.c4ShapeMargin);
2213
+ }, "drawC4ShapeArray");
2214
+ var Point = (_b = class {
2215
+ constructor(x, y) {
2216
+ this.x = x;
2217
+ this.y = y;
2218
+ }
2219
+ }, __name(_b, "Point"), _b);
2220
+ var getIntersectPoint = /* @__PURE__ */ __name(function(fromNode, endPoint) {
2221
+ let x1 = fromNode.x;
2222
+ let y1 = fromNode.y;
2223
+ let x2 = endPoint.x;
2224
+ let y2 = endPoint.y;
2225
+ let fromCenterX = x1 + fromNode.width / 2;
2226
+ let fromCenterY = y1 + fromNode.height / 2;
2227
+ let dx = Math.abs(x1 - x2);
2228
+ let dy = Math.abs(y1 - y2);
2229
+ let tanDYX = dy / dx;
2230
+ let fromDYX = fromNode.height / fromNode.width;
2231
+ let returnPoint = null;
2232
+ if (y1 == y2 && x1 < x2) {
2233
+ returnPoint = new Point(x1 + fromNode.width, fromCenterY);
2234
+ } else if (y1 == y2 && x1 > x2) {
2235
+ returnPoint = new Point(x1, fromCenterY);
2236
+ } else if (x1 == x2 && y1 < y2) {
2237
+ returnPoint = new Point(fromCenterX, y1 + fromNode.height);
2238
+ } else if (x1 == x2 && y1 > y2) {
2239
+ returnPoint = new Point(fromCenterX, y1);
2240
+ }
2241
+ if (x1 > x2 && y1 < y2) {
2242
+ if (fromDYX >= tanDYX) {
2243
+ returnPoint = new Point(x1, fromCenterY + tanDYX * fromNode.width / 2);
2244
+ } else {
2245
+ returnPoint = new Point(
2246
+ fromCenterX - dx / dy * fromNode.height / 2,
2247
+ y1 + fromNode.height
2248
+ );
2249
+ }
2250
+ } else if (x1 < x2 && y1 < y2) {
2251
+ if (fromDYX >= tanDYX) {
2252
+ returnPoint = new Point(x1 + fromNode.width, fromCenterY + tanDYX * fromNode.width / 2);
2253
+ } else {
2254
+ returnPoint = new Point(
2255
+ fromCenterX + dx / dy * fromNode.height / 2,
2256
+ y1 + fromNode.height
2257
+ );
2258
+ }
2259
+ } else if (x1 < x2 && y1 > y2) {
2260
+ if (fromDYX >= tanDYX) {
2261
+ returnPoint = new Point(x1 + fromNode.width, fromCenterY - tanDYX * fromNode.width / 2);
2262
+ } else {
2263
+ returnPoint = new Point(fromCenterX + fromNode.height / 2 * dx / dy, y1);
2264
+ }
2265
+ } else if (x1 > x2 && y1 > y2) {
2266
+ if (fromDYX >= tanDYX) {
2267
+ returnPoint = new Point(x1, fromCenterY - fromNode.width / 2 * tanDYX);
2268
+ } else {
2269
+ returnPoint = new Point(fromCenterX - fromNode.height / 2 * dx / dy, y1);
2270
+ }
2271
+ }
2272
+ return returnPoint;
2273
+ }, "getIntersectPoint");
2274
+ var getIntersectPoints = /* @__PURE__ */ __name(function(fromNode, endNode) {
2275
+ let endIntersectPoint = { x: 0, y: 0 };
2276
+ endIntersectPoint.x = endNode.x + endNode.width / 2;
2277
+ endIntersectPoint.y = endNode.y + endNode.height / 2;
2278
+ let startPoint = getIntersectPoint(fromNode, endIntersectPoint);
2279
+ endIntersectPoint.x = fromNode.x + fromNode.width / 2;
2280
+ endIntersectPoint.y = fromNode.y + fromNode.height / 2;
2281
+ let endPoint = getIntersectPoint(endNode, endIntersectPoint);
2282
+ return { startPoint, endPoint };
2283
+ }, "getIntersectPoints");
2284
+ var drawRels2 = /* @__PURE__ */ __name(function(diagram2, rels2, getC4ShapeObj, diagObj) {
2285
+ let i = 0;
2286
+ for (let rel of rels2) {
2287
+ i = i + 1;
2288
+ let relTextWrap = rel.wrap && conf.wrap;
2289
+ let relConf = messageFont(conf);
2290
+ let diagramType = diagObj.db.getC4Type();
2291
+ if (diagramType === "C4Dynamic") {
2292
+ rel.label.text = i + ": " + rel.label.text;
2293
+ }
2294
+ let textLimitWidth = calculateTextWidth(rel.label.text, relConf);
2295
+ calcC4ShapeTextWH("label", rel, relTextWrap, relConf, textLimitWidth);
2296
+ if (rel.techn && rel.techn.text !== "") {
2297
+ textLimitWidth = calculateTextWidth(rel.techn.text, relConf);
2298
+ calcC4ShapeTextWH("techn", rel, relTextWrap, relConf, textLimitWidth);
2299
+ }
2300
+ if (rel.descr && rel.descr.text !== "") {
2301
+ textLimitWidth = calculateTextWidth(rel.descr.text, relConf);
2302
+ calcC4ShapeTextWH("descr", rel, relTextWrap, relConf, textLimitWidth);
2303
+ }
2304
+ let fromNode = getC4ShapeObj(rel.from);
2305
+ let endNode = getC4ShapeObj(rel.to);
2306
+ let points = getIntersectPoints(fromNode, endNode);
2307
+ rel.startPoint = points.startPoint;
2308
+ rel.endPoint = points.endPoint;
2309
+ }
2310
+ svgDraw_default.drawRels(diagram2, rels2, conf);
2311
+ }, "drawRels");
2312
+ function drawInsideBoundary(diagram2, parentBoundaryAlias, parentBounds, currentBoundaries, diagObj) {
2313
+ let currentBounds = new Bounds(diagObj);
2314
+ currentBounds.data.widthLimit = parentBounds.data.widthLimit / Math.min(c4BoundaryInRow2, currentBoundaries.length);
2315
+ for (let [i, currentBoundary] of currentBoundaries.entries()) {
2316
+ let Y = 0;
2317
+ currentBoundary.image = { width: 0, height: 0, Y: 0 };
2318
+ if (currentBoundary.sprite) {
2319
+ currentBoundary.image.width = 48;
2320
+ currentBoundary.image.height = 48;
2321
+ currentBoundary.image.Y = Y;
2322
+ Y = currentBoundary.image.Y + currentBoundary.image.height;
2323
+ }
2324
+ let currentBoundaryTextWrap = currentBoundary.wrap && conf.wrap;
2325
+ let currentBoundaryLabelConf = boundaryFont(conf);
2326
+ currentBoundaryLabelConf.fontSize = currentBoundaryLabelConf.fontSize + 2;
2327
+ currentBoundaryLabelConf.fontWeight = "bold";
2328
+ calcC4ShapeTextWH(
2329
+ "label",
2330
+ currentBoundary,
2331
+ currentBoundaryTextWrap,
2332
+ currentBoundaryLabelConf,
2333
+ currentBounds.data.widthLimit
2334
+ );
2335
+ currentBoundary.label.Y = Y + 8;
2336
+ Y = currentBoundary.label.Y + currentBoundary.label.height;
2337
+ if (currentBoundary.type && currentBoundary.type.text !== "") {
2338
+ currentBoundary.type.text = "[" + currentBoundary.type.text + "]";
2339
+ let currentBoundaryTypeConf = boundaryFont(conf);
2340
+ calcC4ShapeTextWH(
2341
+ "type",
2342
+ currentBoundary,
2343
+ currentBoundaryTextWrap,
2344
+ currentBoundaryTypeConf,
2345
+ currentBounds.data.widthLimit
2346
+ );
2347
+ currentBoundary.type.Y = Y + 5;
2348
+ Y = currentBoundary.type.Y + currentBoundary.type.height;
2349
+ }
2350
+ if (currentBoundary.descr && currentBoundary.descr.text !== "") {
2351
+ let currentBoundaryDescrConf = boundaryFont(conf);
2352
+ currentBoundaryDescrConf.fontSize = currentBoundaryDescrConf.fontSize - 2;
2353
+ calcC4ShapeTextWH(
2354
+ "descr",
2355
+ currentBoundary,
2356
+ currentBoundaryTextWrap,
2357
+ currentBoundaryDescrConf,
2358
+ currentBounds.data.widthLimit
2359
+ );
2360
+ currentBoundary.descr.Y = Y + 20;
2361
+ Y = currentBoundary.descr.Y + currentBoundary.descr.height;
2362
+ }
2363
+ if (i == 0 || i % c4BoundaryInRow2 === 0) {
2364
+ let _x = parentBounds.data.startx + conf.diagramMarginX;
2365
+ let _y = parentBounds.data.stopy + conf.diagramMarginY + Y;
2366
+ currentBounds.setData(_x, _x, _y, _y);
2367
+ } else {
2368
+ let _x = currentBounds.data.stopx !== currentBounds.data.startx ? currentBounds.data.stopx + conf.diagramMarginX : currentBounds.data.startx;
2369
+ let _y = currentBounds.data.starty;
2370
+ currentBounds.setData(_x, _x, _y, _y);
2371
+ }
2372
+ currentBounds.name = currentBoundary.alias;
2373
+ let currentPersonOrSystemArray = diagObj.db.getC4ShapeArray(currentBoundary.alias);
2374
+ let currentPersonOrSystemKeys = diagObj.db.getC4ShapeKeys(currentBoundary.alias);
2375
+ if (currentPersonOrSystemKeys.length > 0) {
2376
+ drawC4ShapeArray(
2377
+ currentBounds,
2378
+ diagram2,
2379
+ currentPersonOrSystemArray,
2380
+ currentPersonOrSystemKeys
2381
+ );
2382
+ }
2383
+ parentBoundaryAlias = currentBoundary.alias;
2384
+ let nextCurrentBoundaries = diagObj.db.getBoundarys(parentBoundaryAlias);
2385
+ if (nextCurrentBoundaries.length > 0) {
2386
+ drawInsideBoundary(
2387
+ diagram2,
2388
+ parentBoundaryAlias,
2389
+ currentBounds,
2390
+ nextCurrentBoundaries,
2391
+ diagObj
2392
+ );
2393
+ }
2394
+ if (currentBoundary.alias !== "global") {
2395
+ drawBoundary2(diagram2, currentBoundary, currentBounds);
2396
+ }
2397
+ parentBounds.data.stopy = Math.max(
2398
+ currentBounds.data.stopy + conf.c4ShapeMargin,
2399
+ parentBounds.data.stopy
2400
+ );
2401
+ parentBounds.data.stopx = Math.max(
2402
+ currentBounds.data.stopx + conf.c4ShapeMargin,
2403
+ parentBounds.data.stopx
2404
+ );
2405
+ globalBoundaryMaxX = Math.max(globalBoundaryMaxX, parentBounds.data.stopx);
2406
+ globalBoundaryMaxY = Math.max(globalBoundaryMaxY, parentBounds.data.stopy);
2407
+ }
2408
+ }
2409
+ __name(drawInsideBoundary, "drawInsideBoundary");
2410
+ var draw = /* @__PURE__ */ __name(function(_text, id, _version, diagObj) {
2411
+ conf = getConfig2().c4;
2412
+ const securityLevel = getConfig2().securityLevel;
2413
+ let sandboxElement;
2414
+ if (securityLevel === "sandbox") {
2415
+ sandboxElement = select("#i" + id);
2416
+ }
2417
+ const root = securityLevel === "sandbox" ? select(sandboxElement.nodes()[0].contentDocument.body) : select("body");
2418
+ let db = diagObj.db;
2419
+ diagObj.db.setWrap(conf.wrap);
2420
+ c4ShapeInRow2 = db.getC4ShapeInRow();
2421
+ c4BoundaryInRow2 = db.getC4BoundaryInRow();
2422
+ log.debug(`C:${JSON.stringify(conf, null, 2)}`);
2423
+ const diagram2 = securityLevel === "sandbox" ? root.select(`[id="${id}"]`) : select(`[id="${id}"]`);
2424
+ svgDraw_default.insertComputerIcon(diagram2);
2425
+ svgDraw_default.insertDatabaseIcon(diagram2);
2426
+ svgDraw_default.insertClockIcon(diagram2);
2427
+ let screenBounds = new Bounds(diagObj);
2428
+ screenBounds.setData(
2429
+ conf.diagramMarginX,
2430
+ conf.diagramMarginX,
2431
+ conf.diagramMarginY,
2432
+ conf.diagramMarginY
2433
+ );
2434
+ screenBounds.data.widthLimit = screen.availWidth;
2435
+ globalBoundaryMaxX = conf.diagramMarginX;
2436
+ globalBoundaryMaxY = conf.diagramMarginY;
2437
+ const title2 = diagObj.db.getTitle();
2438
+ let currentBoundaries = diagObj.db.getBoundarys("");
2439
+ drawInsideBoundary(diagram2, "", screenBounds, currentBoundaries, diagObj);
2440
+ svgDraw_default.insertArrowHead(diagram2);
2441
+ svgDraw_default.insertArrowEnd(diagram2);
2442
+ svgDraw_default.insertArrowCrossHead(diagram2);
2443
+ svgDraw_default.insertArrowFilledHead(diagram2);
2444
+ drawRels2(diagram2, diagObj.db.getRels(), diagObj.db.getC4Shape, diagObj);
2445
+ screenBounds.data.stopx = globalBoundaryMaxX;
2446
+ screenBounds.data.stopy = globalBoundaryMaxY;
2447
+ const box = screenBounds.data;
2448
+ let boxHeight = box.stopy - box.starty;
2449
+ let height = boxHeight + 2 * conf.diagramMarginY;
2450
+ let boxWidth = box.stopx - box.startx;
2451
+ const width = boxWidth + 2 * conf.diagramMarginX;
2452
+ if (title2) {
2453
+ diagram2.append("text").text(title2).attr("x", (box.stopx - box.startx) / 2 - 4 * conf.diagramMarginX).attr("y", box.starty + conf.diagramMarginY);
2454
+ }
2455
+ configureSvgSize(diagram2, height, width, conf.useMaxWidth);
2456
+ const extraVertForTitle = title2 ? 60 : 0;
2457
+ diagram2.attr(
2458
+ "viewBox",
2459
+ box.startx - conf.diagramMarginX + " -" + (conf.diagramMarginY + extraVertForTitle) + " " + width + " " + (height + extraVertForTitle)
2460
+ );
2461
+ log.debug(`models:`, box);
2462
+ }, "draw");
2463
+ var c4Renderer_default = {
2464
+ drawPersonOrSystemArray: drawC4ShapeArray,
2465
+ drawBoundary: drawBoundary2,
2466
+ setConf,
2467
+ draw
2468
+ };
2469
+ var getStyles = /* @__PURE__ */ __name((options) => `.person {
2470
+ stroke: ${options.personBorder};
2471
+ fill: ${options.personBkg};
2472
+ }
2473
+ `, "getStyles");
2474
+ var styles_default = getStyles;
2475
+ var diagram = {
2476
+ parser: c4Diagram_default,
2477
+ db: c4Db_default,
2478
+ renderer: c4Renderer_default,
2479
+ styles: styles_default,
2480
+ init: /* @__PURE__ */ __name(({ c4, wrap }) => {
2481
+ c4Renderer_default.setConf(c4);
2482
+ c4Db_default.setWrap(wrap);
2483
+ }, "init")
2484
+ };
2485
+ export {
2486
+ diagram
2487
+ };