@elmethis/core 1.0.0-alpha.14 → 1.0.0-alpha.141

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 (447) hide show
  1. package/dist/{Bash-Cd5wtNan.js → Bash-BYALHxBA.js} +19 -15
  2. package/dist/Css-B_lIFKfr.js +18 -0
  3. package/dist/ElmShikiHighlighter-g41rU8iG.js +7531 -0
  4. package/dist/{Rust-Beyp-qeb.js → Rust-DinaeL7B.js} +3 -3
  5. package/dist/_basePickBy-Cu6p_7XW.js +152 -0
  6. package/dist/_baseUniq-EFAhWRZ_.js +583 -0
  7. package/dist/abap-BPxeDPn4.js +6 -0
  8. package/dist/actionscript-3-Cjb604Dt.js +6 -0
  9. package/dist/ada-BSgRrxrM.js +6 -0
  10. package/dist/andromeeda-uXNdzNpk.js +4 -0
  11. package/dist/angular-html-Zg5oS4-1.js +32 -0
  12. package/dist/angular-ts-NgJ-y-q8.js +21 -0
  13. package/dist/apache-Cyj7Ib-S.js +6 -0
  14. package/dist/apex-DAAiMqi-.js +6 -0
  15. package/dist/apl-DxZdCuNa.js +16 -0
  16. package/dist/applescript-CroEtIVQ.js +6 -0
  17. package/dist/ara-9AczF2vY.js +6 -0
  18. package/dist/arc-XU5WZqau.js +83 -0
  19. package/dist/architecture-I3QFYML2-B3DQFv0i.js +5 -0
  20. package/dist/architectureDiagram-PQUH6ZAG-C8VLuNh-.js +4633 -0
  21. package/dist/asciidoc-raFNDrGb.js +6 -0
  22. package/dist/asm-C8ld_M07.js +6 -0
  23. package/dist/astro-DVLPOVeH.js +16 -0
  24. package/dist/aurora-x-BwoVEUWZ.js +4 -0
  25. package/dist/awk-gc4Y_RTq.js +6 -0
  26. package/dist/ayu-dark-CxPZkpb2.js +4 -0
  27. package/dist/ballerina-CML1q4Hw.js +6 -0
  28. package/dist/bat-BVW1L4ug.js +6 -0
  29. package/dist/beancount-DYEC72C_.js +6 -0
  30. package/dist/berry-VTah6p7n.js +6 -0
  31. package/dist/bibtex-Bqt_3AVI.js +6 -0
  32. package/dist/bicep-DGk9_2l4.js +6 -0
  33. package/dist/blade-kJIUE9Xv.js +20 -0
  34. package/dist/blockDiagram-5JUZGEFE-Oz114lB1.js +2247 -0
  35. package/dist/bsl-tt9CYf2I.js +8 -0
  36. package/dist/c-Cb-M0LQR.js +6 -0
  37. package/dist/c4Diagram-7JAJQR3Y-HFTedFjh.js +1581 -0
  38. package/dist/cadence-Di4VMBdJ.js +6 -0
  39. package/dist/cairo-CNbjbPRN.js +8 -0
  40. package/dist/catppuccin-frappe-MQ6irQtC.js +4 -0
  41. package/dist/catppuccin-latte-UMitw0Sv.js +4 -0
  42. package/dist/catppuccin-macchiato-CpTwm6bY.js +4 -0
  43. package/dist/catppuccin-mocha-DAcVHoH1.js +4 -0
  44. package/dist/channel-CZoD2q3F.js +5 -0
  45. package/dist/chunk-2O5F6CEG-_P2-sobY.js +24 -0
  46. package/dist/chunk-4IRHCMPZ-gjkKBXZH.js +1415 -0
  47. package/dist/chunk-5V4FS25O-BgKN92Ak.js +1372 -0
  48. package/dist/chunk-66XRIAFR-DuWbXcnI.js +15 -0
  49. package/dist/chunk-IUKPXING-3BMeQhuQ.js +9 -0
  50. package/dist/chunk-PLTTB2RT-C5TfzwCE.js +64 -0
  51. package/dist/clarity-WOA8trQj.js +6 -0
  52. package/dist/classDiagram-L266QK7U-DoPWwUsO.js +16 -0
  53. package/dist/classDiagram-v2-JRWBCVM4-DoPWwUsO.js +16 -0
  54. package/dist/clojure-r3NcJ8yt.js +6 -0
  55. package/dist/clone-D41a067H.js +8 -0
  56. package/dist/cmake-CQmEhYbr.js +6 -0
  57. package/dist/cobol-DpscMYyB.js +10 -0
  58. package/dist/codeowners-Bt9yU6NX.js +6 -0
  59. package/dist/codeql-2Dcm6WNF.js +6 -0
  60. package/dist/coffee-cT6mLyjo.js +8 -0
  61. package/dist/common-lisp-DuX5KqId.js +6 -0
  62. package/dist/components/{inline/ElmInlineCode.stories.d.ts → badge/ElmBadge.stories.d.ts} +2 -2
  63. package/dist/components/badge/ElmBadge.vue.d.ts +21 -0
  64. package/dist/components/badge/ElmTag.stories.d.ts +7 -0
  65. package/dist/components/badge/ElmTag.vue.d.ts +14 -0
  66. package/dist/components/code/ElmCodeBlock.vue.d.ts +8 -1
  67. package/dist/components/code/ElmKatex.vue.d.ts +3 -1
  68. package/dist/components/code/ElmMermaid.stories.d.ts +7 -0
  69. package/dist/components/code/ElmMermaid.vue.d.ts +8 -0
  70. package/dist/components/code/{ElmPrismHighlighter.stories.d.ts → ElmShikiHighlighter.stories.d.ts} +2 -3
  71. package/dist/components/code/{ElmPrismHighlighter.vue.d.ts → ElmShikiHighlighter.vue.d.ts} +3 -3
  72. package/dist/components/containments/ElmColumn.vue.d.ts +3 -2
  73. package/dist/components/containments/ElmColumnList.vue.d.ts +3 -2
  74. package/dist/components/containments/ElmDesktopWindow.stories.d.ts +6 -0
  75. package/dist/components/containments/ElmDesktopWindow.vue.d.ts +27 -0
  76. package/dist/components/containments/ElmModal.stories.d.ts +6 -0
  77. package/dist/components/containments/ElmModal.vue.d.ts +35 -0
  78. package/dist/components/containments/ElmSnackbar.stories.d.ts +6 -0
  79. package/dist/components/containments/ElmSnackbar.vue.d.ts +11 -0
  80. package/dist/components/containments/ElmSnackbarContainer.vue.d.ts +10 -0
  81. package/dist/components/containments/ElmToggle.stories.d.ts +1 -0
  82. package/dist/components/containments/ElmToggle.vue.d.ts +13 -6
  83. package/dist/components/containments/ElmTooltip.vue.d.ts +5 -2
  84. package/dist/components/containments/useSnackbarState.d.ts +28 -0
  85. package/dist/components/data/ElmMultiProgress.stories.d.ts +6 -0
  86. package/dist/components/data/ElmMultiProgress.vue.d.ts +30 -0
  87. package/dist/components/data/ElmProgress.stories.d.ts +1 -0
  88. package/dist/components/data/ElmProgress.vue.d.ts +6 -1
  89. package/dist/components/data/ElmStatusMessage.stories.d.ts +9 -0
  90. package/dist/components/data/ElmStatusMessage.vue.d.ts +6 -0
  91. package/dist/components/fallback/ElmBlockFallback.stories.d.ts +6 -0
  92. package/dist/components/fallback/ElmBlockFallback.vue.d.ts +4 -0
  93. package/dist/components/fallback/ElmRectangleWave.vue.d.ts +1 -1
  94. package/dist/components/fallback/ElmSpinner.stories.d.ts +6 -0
  95. package/dist/components/fallback/ElmSpinner.vue.d.ts +9 -0
  96. package/dist/components/form/ElmButton.stories.d.ts +11 -0
  97. package/dist/components/form/ElmButton.vue.d.ts +41 -0
  98. package/dist/components/form/ElmCheckbox.vue.d.ts +16 -6
  99. package/dist/components/form/ElmSwitch.stories.d.ts +6 -0
  100. package/dist/components/form/ElmSwitch.vue.d.ts +32 -0
  101. package/dist/components/form/ElmTextField.stories.d.ts +6 -0
  102. package/dist/components/form/ElmTextField.vue.d.ts +30 -0
  103. package/dist/components/form/ElmTotp.stories.d.ts +6 -0
  104. package/dist/components/form/ElmTotp.vue.d.ts +12 -0
  105. package/dist/components/headings/ElmFragmentIdentifier.stories.d.ts +6 -0
  106. package/dist/components/headings/ElmFragmentIdentifier.vue.d.ts +8 -0
  107. package/dist/components/headings/ElmHeading1.vue.d.ts +3 -1
  108. package/dist/components/headings/ElmHeading2.vue.d.ts +3 -1
  109. package/dist/components/headings/ElmHeading3.vue.d.ts +3 -1
  110. package/dist/components/icon/ElmArrowIcon.stories.d.ts +6 -0
  111. package/dist/components/icon/ElmArrowIcon.vue.d.ts +26 -0
  112. package/dist/components/icon/ElmBookmarkIcon.stories.d.ts +8 -0
  113. package/dist/components/icon/ElmBookmarkIcon.vue.d.ts +7 -0
  114. package/dist/components/icon/ElmCubeIcon.vue.d.ts +1 -1
  115. package/dist/components/icon/ElmDotLoadingIcon.vue.d.ts +2 -2
  116. package/dist/components/icon/ElmLanguageIcon.vue.d.ts +1 -1
  117. package/dist/components/icon/ElmLoginIcon.stories.d.ts +6 -0
  118. package/dist/components/icon/ElmLoginIcon.vue.d.ts +18 -0
  119. package/dist/components/icon/languages/Bash.vue.d.ts +1 -1
  120. package/dist/components/icon/languages/{JavaScript.vue.d.ts → Css.vue.d.ts} +1 -1
  121. package/dist/components/icon/languages/Rust.vue.d.ts +1 -1
  122. package/dist/components/inline/ElmInlineLink.vue.d.ts +1 -1
  123. package/dist/components/inline/ElmInlineRuby.vue.d.ts +1 -1
  124. package/dist/components/inline/ElmInlineText.stories.d.ts +1 -0
  125. package/dist/components/inline/ElmInlineText.vue.d.ts +10 -1
  126. package/dist/components/inline/ElmTypingAnimation.stories.d.ts +6 -0
  127. package/dist/components/inline/ElmTypingAnimation.vue.d.ts +21 -0
  128. package/dist/components/jsonschema/ElmChildContainer.stories.d.ts +6 -0
  129. package/dist/components/jsonschema/ElmChildContainer.vue.d.ts +21 -0
  130. package/dist/components/jsonschema/ElmFieldAttribute.stories.d.ts +6 -0
  131. package/dist/components/jsonschema/ElmFieldAttribute.vue.d.ts +7 -0
  132. package/dist/components/jsonschema/ElmFieldType.stories.d.ts +7 -0
  133. package/dist/components/jsonschema/ElmFieldType.vue.d.ts +8 -0
  134. package/dist/components/jsonschema/ElmJsonSchema.stories.d.ts +7 -0
  135. package/dist/components/jsonschema/ElmJsonSchema.vue.d.ts +7 -0
  136. package/dist/components/media/ElmFile.vue.d.ts +6 -1
  137. package/dist/components/media/ElmImage.stories.d.ts +1 -0
  138. package/dist/components/media/ElmImage.vue.d.ts +5 -0
  139. package/dist/components/navigation/ElmBookmark.stories.d.ts +2 -0
  140. package/dist/components/navigation/ElmBookmark.vue.d.ts +13 -9
  141. package/dist/components/navigation/ElmBreadcrumb.vue.d.ts +3 -1
  142. package/dist/components/navigation/ElmPagetop.vue.d.ts +1 -1
  143. package/dist/components/navigation/ElmTableOfContents.vue.d.ts +1 -1
  144. package/dist/components/others/ElmColorSample.stories.d.ts +6 -0
  145. package/dist/components/others/ElmColorSample.vue.d.ts +8 -0
  146. package/dist/components/others/ElmColorTable.stories.d.ts +6 -0
  147. package/dist/components/others/ElmColorTable.vue.d.ts +11 -0
  148. package/dist/components/others/ElmTemplate.stories.d.ts +6 -0
  149. package/dist/components/others/ElmTyping.vue.d.ts +4 -0
  150. package/dist/components/renderer/ElmJsonRenderer.vue.d.ts +33 -8
  151. package/dist/components/renderer/ElmJsonRendererAsync.vue.d.ts +3 -0
  152. package/dist/components/table/ElmTable.vue.d.ts +8 -2
  153. package/dist/components/table/ElmTableBody.vue.d.ts +3 -2
  154. package/dist/components/table/ElmTableCell.vue.d.ts +2 -1
  155. package/dist/components/table/ElmTableHeader.vue.d.ts +3 -2
  156. package/dist/components/table/ElmTableRow.vue.d.ts +3 -2
  157. package/dist/components/template/ElmTemplate.vue.d.ts +1 -1
  158. package/dist/components/typography/ElmBlockQuote.vue.d.ts +5 -2
  159. package/dist/components/typography/ElmBulletedList.vue.d.ts +5 -2
  160. package/dist/components/typography/ElmCallout.vue.d.ts +5 -2
  161. package/dist/components/typography/ElmDivider.vue.d.ts +8 -1
  162. package/dist/components/typography/ElmListItem.vue.d.ts +3 -2
  163. package/dist/components/typography/ElmNumberedList.vue.d.ts +5 -2
  164. package/dist/components/typography/ElmParagraph.vue.d.ts +5 -2
  165. package/dist/coq-DboLktjX.js +6 -0
  166. package/dist/cpp-Dfuj7FgN.js +18 -0
  167. package/dist/crystal-Cu359yzW.js +18 -0
  168. package/dist/csharp-xQvxkZxj.js +6 -0
  169. package/dist/css-BnL1064W.js +6 -0
  170. package/dist/csv-CmYOceLb.js +6 -0
  171. package/dist/cue-ByErcpN2.js +6 -0
  172. package/dist/cypher-DEVyrV5b.js +6 -0
  173. package/dist/cytoscape.esm-aRg21b6u.js +18120 -0
  174. package/dist/d-CBVqdj3C.js +6 -0
  175. package/dist/dagre-QXRM2OYR-B5ENZ7-y.js +447 -0
  176. package/dist/dark-plus-pUHDTVV0.js +4 -0
  177. package/dist/dart-u2fD-sKr.js +6 -0
  178. package/dist/dax-Crz9Wv4y.js +6 -0
  179. package/dist/desktop-DNXSD5qJ.js +6 -0
  180. package/dist/diagram-DHSB7DV3-Dqr8CsWn.js +126 -0
  181. package/dist/diff-DOdUfPSR.js +6 -0
  182. package/dist/docker-CsHqm9tx.js +6 -0
  183. package/dist/dotenv-BYL4tpZA.js +6 -0
  184. package/dist/dracula-BtZx2Kac.js +4 -0
  185. package/dist/dracula-soft-BKa-aqBv.js +4 -0
  186. package/dist/dream-maker-kevRUHRs.js +6 -0
  187. package/dist/edge-D-R-hhaT.js +12 -0
  188. package/dist/elixir-DuneT2DZ.js +8 -0
  189. package/dist/elm-DdPFQYmH.js +8 -0
  190. package/dist/elmethis.js +68 -44
  191. package/dist/elmethis.umd.cjs +2444 -191
  192. package/dist/emacs-lisp-Bwasiep6.js +6 -0
  193. package/dist/erDiagram-MVNNDQJ5-CXPSajpL.js +841 -0
  194. package/dist/erb-BDkUfiWc.js +10 -0
  195. package/dist/erlang-CxpbZUOc.js +6 -0
  196. package/dist/everforest-dark-DMCBqXCK.js +4 -0
  197. package/dist/everforest-light-BbXl82Em.js +4 -0
  198. package/dist/fennel-B1x5pKr1.js +6 -0
  199. package/dist/fish-BjbXctXH.js +6 -0
  200. package/dist/flowDiagram-27HWSH3H-DDg__sQI.js +1619 -0
  201. package/dist/fluent-DCuHrNR-.js +6 -0
  202. package/dist/fortran-fixed-form-muAGtm2V.js +8 -0
  203. package/dist/fortran-free-form-Db8k5H7x.js +6 -0
  204. package/dist/fsharp-D3TfYvtR.js +8 -0
  205. package/dist/ganttDiagram-ZCE2YOAT-ItVuJVUp.js +2493 -0
  206. package/dist/gdresource-C22851qr.js +10 -0
  207. package/dist/gdscript-C-C99PjI.js +6 -0
  208. package/dist/gdshader-0TihrSQl.js +6 -0
  209. package/dist/genie-MtKmcmPo.js +6 -0
  210. package/dist/gherkin-AzJBtK0J.js +6 -0
  211. package/dist/git-commit-Cdscfa4x.js +8 -0
  212. package/dist/git-rebase-BkertWzk.js +8 -0
  213. package/dist/gitGraph-YCYPL57B-CxR8jlxB.js +5 -0
  214. package/dist/gitGraphDiagram-ISGV4O2Y-DhGxfQ9h.js +712 -0
  215. package/dist/github-dark-DenFmJkN.js +4 -0
  216. package/dist/github-dark-default-BJPUVz4H.js +4 -0
  217. package/dist/github-dark-dimmed-DUshB20C.js +4 -0
  218. package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
  219. package/dist/github-light-JYsPkUQd.js +4 -0
  220. package/dist/github-light-default-D99KPAby.js +4 -0
  221. package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
  222. package/dist/gleam-BoJB89vF.js +6 -0
  223. package/dist/glimmer-js-DEzcmBLn.js +14 -0
  224. package/dist/glimmer-ts-CfoDm2Ms.js +14 -0
  225. package/dist/glsl-BcGeWDoy.js +8 -0
  226. package/dist/gnuplot-DgGnPAp8.js +6 -0
  227. package/dist/go-Cw0OOp5U.js +6 -0
  228. package/dist/graph-C5-dvh3P.js +247 -0
  229. package/dist/graphql-BA9S3A0F.js +14 -0
  230. package/dist/groovy-45PuQEhl.js +6 -0
  231. package/dist/gruvbox-dark-hard-BDGmrmYl.js +4 -0
  232. package/dist/gruvbox-dark-medium-D7OrvcL5.js +4 -0
  233. package/dist/gruvbox-dark-soft-D_75PUdg.js +4 -0
  234. package/dist/gruvbox-light-hard-DhQt1gbs.js +4 -0
  235. package/dist/gruvbox-light-medium-DNXV_Sw8.js +4 -0
  236. package/dist/gruvbox-light-soft-C7ZspGxH.js +4 -0
  237. package/dist/hack-B5c1rmdK.js +10 -0
  238. package/dist/haml-CknjlTyn.js +10 -0
  239. package/dist/handlebars-DxZCQ1Ls.js +14 -0
  240. package/dist/haskell-ClRE648j.js +6 -0
  241. package/dist/haxe-CClgwBXY.js +6 -0
  242. package/dist/hcl-JJeBEFYE.js +6 -0
  243. package/dist/hjson-BollGKL_.js +6 -0
  244. package/dist/hlsl-b3kI2reZ.js +6 -0
  245. package/dist/hooks/useElmethisTheme.d.ts +4 -0
  246. package/dist/hooks/useTyping.d.ts +17 -0
  247. package/dist/houston-BDYrDoDW.js +4 -0
  248. package/dist/html-Iy9EJBkL.js +10 -0
  249. package/dist/html-derivative-BfM_d1x5.js +8 -0
  250. package/dist/http-Q-2xEgRf.js +14 -0
  251. package/dist/hxml-C2bnoXd-.js +8 -0
  252. package/dist/hy-S8dYOqS_.js +6 -0
  253. package/dist/imba-DzSSVziz.js +6 -0
  254. package/dist/{index-DO0Qe0Kt.js → index-BxVt53X-.js} +17103 -15864
  255. package/dist/index.d.ts +28 -4
  256. package/dist/info-46DW6VJ7-CzTI5cDT.js +5 -0
  257. package/dist/infoDiagram-SDLB2J7W-BkEUp5pe.js +22 -0
  258. package/dist/ini-Cw62c0sR.js +6 -0
  259. package/dist/init-DjUOC4st.js +16 -0
  260. package/dist/java-DNw9zkk2.js +6 -0
  261. package/dist/javascript-CXHlxgtu.js +6 -0
  262. package/dist/jinja-D3ov3d_Q.js +11 -0
  263. package/dist/jison-bKZ_ygkY.js +8 -0
  264. package/dist/journeyDiagram-D7A75E63-ByRCBusL.js +809 -0
  265. package/dist/json-D4cXEhM0.js +6 -0
  266. package/dist/json5-QDX9y-Y9.js +6 -0
  267. package/dist/jsonc-Bph7GQf8.js +6 -0
  268. package/dist/jsonl-CCrMgdQc.js +6 -0
  269. package/dist/jsonnet-SAcLllmN.js +6 -0
  270. package/dist/jssm-f8vsTkbr.js +6 -0
  271. package/dist/jsx-BYrS51r7.js +6 -0
  272. package/dist/julia-k0_CCOLn.js +16 -0
  273. package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
  274. package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
  275. package/dist/kanagawa-wave-CQwozSzG.js +4 -0
  276. package/dist/kanban-definition-4GR4SRK3-C9FjXyfa.js +719 -0
  277. package/dist/kotlin-DZs3CUXT.js +6 -0
  278. package/dist/kusto-gqgW0Ct6.js +6 -0
  279. package/dist/laserwave-6a00oqik.js +4 -0
  280. package/dist/latex-ixPYeODw.js +8 -0
  281. package/dist/layout-DMOm3fPE.js +1325 -0
  282. package/dist/lean-DM2VgJqL.js +6 -0
  283. package/dist/less-I_XXVOZl.js +6 -0
  284. package/dist/light-plus-CZuVqSLX.js +4 -0
  285. package/dist/linear-vosxqUwV.js +423 -0
  286. package/dist/liquid-DQYM4OUl.js +14 -0
  287. package/dist/llvm-D3Vjgx0u.js +6 -0
  288. package/dist/log-D-MzYv1Z.js +6 -0
  289. package/dist/logo-D1k-IeHX.js +6 -0
  290. package/dist/lua-DcPVWcJ7.js +8 -0
  291. package/dist/luau-B3dL2bb0.js +6 -0
  292. package/dist/make-CR9bkdqJ.js +6 -0
  293. package/dist/markdown-w3MmBOPg.js +6 -0
  294. package/dist/marko-Dou6ix2a.js +14 -0
  295. package/dist/material-theme-D6KBX41T.js +4 -0
  296. package/dist/material-theme-darker-CkRroheE.js +4 -0
  297. package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
  298. package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
  299. package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
  300. package/dist/matlab-Dj6qX5si.js +6 -0
  301. package/dist/mdc-Df47nGTR.js +12 -0
  302. package/dist/mdx-COYqLMfv.js +6 -0
  303. package/dist/mermaid-parser.core-num6RVDI.js +12476 -0
  304. package/dist/mermaid-qIAHIJes.js +6 -0
  305. package/dist/mermaid.core-CUpbGzSU.js +15361 -0
  306. package/dist/min-dark-C7ak0t6c.js +4 -0
  307. package/dist/min-light-CKFxVcPp.js +4 -0
  308. package/dist/mindmap-definition-7EJRZJGK-BS0DECYa.js +3220 -0
  309. package/dist/mipsasm-BJbuoeDX.js +6 -0
  310. package/dist/mojo-BFkEE7I6.js +6 -0
  311. package/dist/monokai-C1KBYcO0.js +4 -0
  312. package/dist/move-DhZIVzw9.js +6 -0
  313. package/dist/narrat-Cru3p5ML.js +6 -0
  314. package/dist/nextflow-JJGGygxI.js +6 -0
  315. package/dist/nginx-Chu4HPUZ.js +8 -0
  316. package/dist/night-owl-Bm2rzalh.js +4 -0
  317. package/dist/nim-m3ClKyoA.js +20 -0
  318. package/dist/nix-DeKhqLCs.js +6 -0
  319. package/dist/nord-CC5OiUXg.js +4 -0
  320. package/dist/nushell-vZ0whCpp.js +6 -0
  321. package/dist/objective-c-DLUrAoO7.js +6 -0
  322. package/dist/objective-cpp-BR9pz3Y7.js +6 -0
  323. package/dist/ocaml-JmaGD6hS.js +6 -0
  324. package/dist/one-dark-pro-DTA3VF0_.js +4 -0
  325. package/dist/one-light-D9sNaUtq.js +4 -0
  326. package/dist/ordinal-DfAQgscy.js +61 -0
  327. package/dist/packet-W2GHVCYJ-BGxlha7O.js +5 -0
  328. package/dist/pascal-NVmycfDo.js +6 -0
  329. package/dist/perl-Dvb6TR9K.js +16 -0
  330. package/dist/php-CJHnp_ft.js +18 -0
  331. package/dist/pie-BEWT4RHE-DWWPbog1.js +5 -0
  332. package/dist/pieDiagram-OC6WZ2SS-DyaIY5eh.js +161 -0
  333. package/dist/plastic-CSTz3KZp.js +4 -0
  334. package/dist/plsql-DMWd0imC.js +6 -0
  335. package/dist/po-GS6uwG3N.js +6 -0
  336. package/dist/poimandres-C-VADXHD.js +4 -0
  337. package/dist/polar-kLOnm3TU.js +6 -0
  338. package/dist/postcss-BHhGrjb8.js +6 -0
  339. package/dist/powerquery-CMfeLaGU.js +6 -0
  340. package/dist/powershell-D1mvJxDs.js +6 -0
  341. package/dist/prisma-pUoUFT3i.js +6 -0
  342. package/dist/prolog-DY7WzwMi.js +6 -0
  343. package/dist/proto-CNCp3VWu.js +6 -0
  344. package/dist/pug-CUZjrycK.js +12 -0
  345. package/dist/puppet-B0mgPBqt.js +6 -0
  346. package/dist/purescript-Go548NjJ.js +6 -0
  347. package/dist/python-x6NdgKMy.js +6 -0
  348. package/dist/qml-BZvDVi14.js +8 -0
  349. package/dist/qmldir-BInDYbpo.js +6 -0
  350. package/dist/qss-8QkBlVEn.js +6 -0
  351. package/dist/quadrantDiagram-OT6RYTWY-KqGbwtVf.js +1024 -0
  352. package/dist/r-HSnR3oil.js +6 -0
  353. package/dist/racket-N6wCNCGC.js +6 -0
  354. package/dist/raku-DIMO1_4D.js +6 -0
  355. package/dist/razor-B0naKaWH.js +10 -0
  356. package/dist/red-7y8PH7HH.js +4 -0
  357. package/dist/reg-6UpU0EA6.js +6 -0
  358. package/dist/regexp-DHtjPxOp.js +6 -0
  359. package/dist/rel-DBIoUiKW.js +6 -0
  360. package/dist/requirementDiagram-BKGUWIPO-B8gVW9iZ.js +850 -0
  361. package/dist/riscv-DpWk9ieM.js +6 -0
  362. package/dist/rose-pine-4uTOzEpE.js +4 -0
  363. package/dist/rose-pine-dawn-GMd81k-m.js +4 -0
  364. package/dist/rose-pine-moon-CIFp_3PJ.js +4 -0
  365. package/dist/rst-B64R6T0G.js +22 -0
  366. package/dist/ruby-DfrpdncG.js +30 -0
  367. package/dist/rust-B-KPd2nT.js +6 -0
  368. package/dist/sankeyDiagram-3MH5UGAL-CxuzhDHO.js +808 -0
  369. package/dist/sas-CJQBty5v.js +8 -0
  370. package/dist/sass-Zos2Blmo.js +6 -0
  371. package/dist/scala-7cAMYIqn.js +6 -0
  372. package/dist/scheme-BQZQETGI.js +6 -0
  373. package/dist/scss-SeF7XgZE.js +8 -0
  374. package/dist/sdbl-67k1U2sQ.js +6 -0
  375. package/dist/sequenceDiagram-C4VUPXDP-B5QnHsap.js +2281 -0
  376. package/dist/shaderlab-D-UIeqfT.js +8 -0
  377. package/dist/shellscript-DmhSIIKI.js +6 -0
  378. package/dist/shellsession-DJoY56qV.js +8 -0
  379. package/dist/slack-dark-i7wN4OET.js +4 -0
  380. package/dist/slack-ochin-ndHf0LoP.js +4 -0
  381. package/dist/smalltalk-WltKgyq1.js +6 -0
  382. package/dist/snazzy-light-BlSJXAu4.js +4 -0
  383. package/dist/solarized-dark-UTmkh7lw.js +4 -0
  384. package/dist/solarized-light-BheCkDPT.js +4 -0
  385. package/dist/solidity-C04s0Yy3.js +6 -0
  386. package/dist/soy-BLRDPjcE.js +8 -0
  387. package/dist/sparql-DTCaWUmB.js +8 -0
  388. package/dist/splunk-SGh_QiTm.js +6 -0
  389. package/dist/sql-CsvhJWkt.js +6 -0
  390. package/dist/ssh-config-D4I637-k.js +6 -0
  391. package/dist/stata-CoSdWLbd.js +8 -0
  392. package/dist/stateDiagram-BVO7J4UH-C5UzuGHi.js +270 -0
  393. package/dist/stateDiagram-v2-WR7QG3WR-DlgZMlRM.js +16 -0
  394. package/dist/stylus-C0YS3cII.js +6 -0
  395. package/dist/svelte-D5kfh286.js +14 -0
  396. package/dist/swift-DvTgPjC_.js +6 -0
  397. package/dist/synthwave-84-NU3C_KFZ.js +4 -0
  398. package/dist/system-verilog-NDUJ-OOt.js +6 -0
  399. package/dist/systemd-WbxZvB8q.js +6 -0
  400. package/dist/talonscript-CL368eRB.js +6 -0
  401. package/dist/tasl-Dz-WwaLH.js +6 -0
  402. package/dist/tcl-DlZIgGJq.js +6 -0
  403. package/dist/templ-BeQ_faiG.js +12 -0
  404. package/dist/terraform-BlQVOgpk.js +6 -0
  405. package/dist/tex-D5wZQANC.js +8 -0
  406. package/dist/timeline-definition-WOTUTIAU-CmmAwmKk.js +804 -0
  407. package/dist/tokyo-night-DP4TmcQl.js +4 -0
  408. package/dist/toml-DMRYbshZ.js +6 -0
  409. package/dist/ts-tags-BhMM8FHa.js +41 -0
  410. package/dist/tsv-BtvSkaG0.js +6 -0
  411. package/dist/tsx-D0IYuDPS.js +6 -0
  412. package/dist/turtle-p-VV8DEc.js +6 -0
  413. package/dist/twig-B7P5Ovvl.js +18 -0
  414. package/dist/typescript-DKfvlBCw.js +6 -0
  415. package/dist/typespec-CTme0-JL.js +6 -0
  416. package/dist/typst-Dn4vyooU.js +6 -0
  417. package/dist/v-D7ebitkb.js +6 -0
  418. package/dist/vala-TRtLMDHC.js +6 -0
  419. package/dist/vb-B47FrOmA.js +6 -0
  420. package/dist/verilog-B2TLsC4I.js +6 -0
  421. package/dist/vesper-BckBta1U.js +4 -0
  422. package/dist/vhdl-CU5AEtCN.js +6 -0
  423. package/dist/viml-D-fUhqVn.js +6 -0
  424. package/dist/vitesse-black-BoGvW84i.js +4 -0
  425. package/dist/vitesse-dark-Cym-eLtO.js +4 -0
  426. package/dist/vitesse-light-CcmG315c.js +4 -0
  427. package/dist/vue-CdwmeZFh.js +31 -0
  428. package/dist/vue-html-C-PRGoQQ.js +10 -0
  429. package/dist/vyper-C03y8CZF.js +6 -0
  430. package/dist/wasm-Bq8UuFo1.js +6 -0
  431. package/dist/wasm-DQxwEHae.js +7 -0
  432. package/dist/wenyan-DZPWEYbu.js +6 -0
  433. package/dist/wgsl-De1GPYf9.js +6 -0
  434. package/dist/wikitext-C-THcCj2.js +6 -0
  435. package/dist/wit-BanP67gl.js +6 -0
  436. package/dist/wolfram-CUT_U39K.js +6 -0
  437. package/dist/xml-jRL-qgj-.js +8 -0
  438. package/dist/xsl-CZWICAVO.js +8 -0
  439. package/dist/xychartDiagram-NJOKMNIP-DqY2kGQA.js +1304 -0
  440. package/dist/yaml-DcQhbMrL.js +6 -0
  441. package/dist/zenscript-8JCzLCTe.js +6 -0
  442. package/dist/zig-DhdgDxkm.js +6 -0
  443. package/package.json +36 -24
  444. package/dist/JavaScript-CPGj6jvI.js +0 -22
  445. package/dist/TypeScript-Dk8QmsMS.js +0 -22
  446. package/dist/components/icon/languages/TypeScript.vue.d.ts +0 -2
  447. package/dist/components/inline/ElmInlineCode.vue.d.ts +0 -15
@@ -0,0 +1,1415 @@
1
+ var re = Object.defineProperty;
2
+ var ae = (e, t, s) => t in e ? re(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
+ var b = (e, t, s) => ae(e, typeof t != "symbol" ? t + "" : t, s);
4
+ import { g as ne, s as le } from "./chunk-2O5F6CEG-_P2-sobY.js";
5
+ import { _ as p, l as v, c as A, r as oe, u as ce, aa as he, k as j, z as ue, a as de, b as fe, g as pe, s as Se, q as ye, t as ge } from "./mermaid.core-CUpbGzSU.js";
6
+ var bt = function() {
7
+ var e = /* @__PURE__ */ p(function(P, l, h, a) {
8
+ for (h = h || {}, a = P.length; a--; h[P[a]] = l) ;
9
+ return h;
10
+ }, "o"), t = [1, 2], s = [1, 3], n = [1, 4], o = [2, 4], c = [1, 9], r = [1, 11], d = [1, 16], f = [1, 17], g = [1, 18], E = [1, 19], m = [1, 32], I = [1, 20], G = [1, 21], R = [1, 22], S = [1, 23], L = [1, 24], O = [1, 26], Y = [1, 27], F = [1, 28], w = [1, 29], $ = [1, 30], et = [1, 31], st = [1, 34], it = [1, 35], rt = [1, 36], at = [1, 37], X = [1, 33], y = [1, 4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], nt = [1, 4, 5, 14, 15, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], At = [4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], St = {
11
+ trace: /* @__PURE__ */ p(function() {
12
+ }, "trace"),
13
+ yy: {},
14
+ symbols_: { error: 2, start: 3, SPACE: 4, NL: 5, SD: 6, document: 7, line: 8, statement: 9, classDefStatement: 10, styleStatement: 11, cssClassStatement: 12, idStatement: 13, DESCR: 14, "-->": 15, HIDE_EMPTY: 16, scale: 17, WIDTH: 18, COMPOSIT_STATE: 19, STRUCT_START: 20, STRUCT_STOP: 21, STATE_DESCR: 22, AS: 23, ID: 24, FORK: 25, JOIN: 26, CHOICE: 27, CONCURRENT: 28, note: 29, notePosition: 30, NOTE_TEXT: 31, direction: 32, acc_title: 33, acc_title_value: 34, acc_descr: 35, acc_descr_value: 36, acc_descr_multiline_value: 37, classDef: 38, CLASSDEF_ID: 39, CLASSDEF_STYLEOPTS: 40, DEFAULT: 41, style: 42, STYLE_IDS: 43, STYLEDEF_STYLEOPTS: 44, class: 45, CLASSENTITY_IDS: 46, STYLECLASS: 47, direction_tb: 48, direction_bt: 49, direction_rl: 50, direction_lr: 51, eol: 52, ";": 53, EDGE_STATE: 54, STYLE_SEPARATOR: 55, left_of: 56, right_of: 57, $accept: 0, $end: 1 },
15
+ terminals_: { 2: "error", 4: "SPACE", 5: "NL", 6: "SD", 14: "DESCR", 15: "-->", 16: "HIDE_EMPTY", 17: "scale", 18: "WIDTH", 19: "COMPOSIT_STATE", 20: "STRUCT_START", 21: "STRUCT_STOP", 22: "STATE_DESCR", 23: "AS", 24: "ID", 25: "FORK", 26: "JOIN", 27: "CHOICE", 28: "CONCURRENT", 29: "note", 31: "NOTE_TEXT", 33: "acc_title", 34: "acc_title_value", 35: "acc_descr", 36: "acc_descr_value", 37: "acc_descr_multiline_value", 38: "classDef", 39: "CLASSDEF_ID", 40: "CLASSDEF_STYLEOPTS", 41: "DEFAULT", 42: "style", 43: "STYLE_IDS", 44: "STYLEDEF_STYLEOPTS", 45: "class", 46: "CLASSENTITY_IDS", 47: "STYLECLASS", 48: "direction_tb", 49: "direction_bt", 50: "direction_rl", 51: "direction_lr", 53: ";", 54: "EDGE_STATE", 55: "STYLE_SEPARATOR", 56: "left_of", 57: "right_of" },
16
+ productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 2], [9, 3], [9, 4], [9, 1], [9, 2], [9, 1], [9, 4], [9, 3], [9, 6], [9, 1], [9, 1], [9, 1], [9, 1], [9, 4], [9, 4], [9, 1], [9, 2], [9, 2], [9, 1], [10, 3], [10, 3], [11, 3], [12, 3], [32, 1], [32, 1], [32, 1], [32, 1], [52, 1], [52, 1], [13, 1], [13, 1], [13, 3], [13, 3], [30, 1], [30, 1]],
17
+ performAction: /* @__PURE__ */ p(function(l, h, a, T, _, i, K) {
18
+ var u = i.length - 1;
19
+ switch (_) {
20
+ case 3:
21
+ return T.setRootDoc(i[u]), i[u];
22
+ case 4:
23
+ this.$ = [];
24
+ break;
25
+ case 5:
26
+ i[u] != "nl" && (i[u - 1].push(i[u]), this.$ = i[u - 1]);
27
+ break;
28
+ case 6:
29
+ case 7:
30
+ this.$ = i[u];
31
+ break;
32
+ case 8:
33
+ this.$ = "nl";
34
+ break;
35
+ case 12:
36
+ this.$ = i[u];
37
+ break;
38
+ case 13:
39
+ const J = i[u - 1];
40
+ J.description = T.trimColon(i[u]), this.$ = J;
41
+ break;
42
+ case 14:
43
+ this.$ = { stmt: "relation", state1: i[u - 2], state2: i[u] };
44
+ break;
45
+ case 15:
46
+ const yt = T.trimColon(i[u]);
47
+ this.$ = { stmt: "relation", state1: i[u - 3], state2: i[u - 1], description: yt };
48
+ break;
49
+ case 19:
50
+ this.$ = { stmt: "state", id: i[u - 3], type: "default", description: "", doc: i[u - 1] };
51
+ break;
52
+ case 20:
53
+ var V = i[u], H = i[u - 2].trim();
54
+ if (i[u].match(":")) {
55
+ var ot = i[u].split(":");
56
+ V = ot[0], H = [H, ot[1]];
57
+ }
58
+ this.$ = { stmt: "state", id: V, type: "default", description: H };
59
+ break;
60
+ case 21:
61
+ this.$ = { stmt: "state", id: i[u - 3], type: "default", description: i[u - 5], doc: i[u - 1] };
62
+ break;
63
+ case 22:
64
+ this.$ = { stmt: "state", id: i[u], type: "fork" };
65
+ break;
66
+ case 23:
67
+ this.$ = { stmt: "state", id: i[u], type: "join" };
68
+ break;
69
+ case 24:
70
+ this.$ = { stmt: "state", id: i[u], type: "choice" };
71
+ break;
72
+ case 25:
73
+ this.$ = { stmt: "state", id: T.getDividerId(), type: "divider" };
74
+ break;
75
+ case 26:
76
+ this.$ = { stmt: "state", id: i[u - 1].trim(), note: { position: i[u - 2].trim(), text: i[u].trim() } };
77
+ break;
78
+ case 29:
79
+ this.$ = i[u].trim(), T.setAccTitle(this.$);
80
+ break;
81
+ case 30:
82
+ case 31:
83
+ this.$ = i[u].trim(), T.setAccDescription(this.$);
84
+ break;
85
+ case 32:
86
+ case 33:
87
+ this.$ = { stmt: "classDef", id: i[u - 1].trim(), classes: i[u].trim() };
88
+ break;
89
+ case 34:
90
+ this.$ = { stmt: "style", id: i[u - 1].trim(), styleClass: i[u].trim() };
91
+ break;
92
+ case 35:
93
+ this.$ = { stmt: "applyClass", id: i[u - 1].trim(), styleClass: i[u].trim() };
94
+ break;
95
+ case 36:
96
+ T.setDirection("TB"), this.$ = { stmt: "dir", value: "TB" };
97
+ break;
98
+ case 37:
99
+ T.setDirection("BT"), this.$ = { stmt: "dir", value: "BT" };
100
+ break;
101
+ case 38:
102
+ T.setDirection("RL"), this.$ = { stmt: "dir", value: "RL" };
103
+ break;
104
+ case 39:
105
+ T.setDirection("LR"), this.$ = { stmt: "dir", value: "LR" };
106
+ break;
107
+ case 42:
108
+ case 43:
109
+ this.$ = { stmt: "state", id: i[u].trim(), type: "default", description: "" };
110
+ break;
111
+ case 44:
112
+ this.$ = { stmt: "state", id: i[u - 2].trim(), classes: [i[u].trim()], type: "default", description: "" };
113
+ break;
114
+ case 45:
115
+ this.$ = { stmt: "state", id: i[u - 2].trim(), classes: [i[u].trim()], type: "default", description: "" };
116
+ break;
117
+ }
118
+ }, "anonymous"),
119
+ table: [{ 3: 1, 4: t, 5: s, 6: n }, { 1: [3] }, { 3: 5, 4: t, 5: s, 6: n }, { 3: 6, 4: t, 5: s, 6: n }, e([1, 4, 5, 16, 17, 19, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], o, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: c, 5: r, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: d, 17: f, 19: g, 22: E, 24: m, 25: I, 26: G, 27: R, 28: S, 29: L, 32: 25, 33: O, 35: Y, 37: F, 38: w, 42: $, 45: et, 48: st, 49: it, 50: rt, 51: at, 54: X }, e(y, [2, 5]), { 9: 38, 10: 12, 11: 13, 12: 14, 13: 15, 16: d, 17: f, 19: g, 22: E, 24: m, 25: I, 26: G, 27: R, 28: S, 29: L, 32: 25, 33: O, 35: Y, 37: F, 38: w, 42: $, 45: et, 48: st, 49: it, 50: rt, 51: at, 54: X }, e(y, [2, 7]), e(y, [2, 8]), e(y, [2, 9]), e(y, [2, 10]), e(y, [2, 11]), e(y, [2, 12], { 14: [1, 39], 15: [1, 40] }), e(y, [2, 16]), { 18: [1, 41] }, e(y, [2, 18], { 20: [1, 42] }), { 23: [1, 43] }, e(y, [2, 22]), e(y, [2, 23]), e(y, [2, 24]), e(y, [2, 25]), { 30: 44, 31: [1, 45], 56: [1, 46], 57: [1, 47] }, e(y, [2, 28]), { 34: [1, 48] }, { 36: [1, 49] }, e(y, [2, 31]), { 39: [1, 50], 41: [1, 51] }, { 43: [1, 52] }, { 46: [1, 53] }, e(nt, [2, 42], { 55: [1, 54] }), e(nt, [2, 43], { 55: [1, 55] }), e(y, [2, 36]), e(y, [2, 37]), e(y, [2, 38]), e(y, [2, 39]), e(y, [2, 6]), e(y, [2, 13]), { 13: 56, 24: m, 54: X }, e(y, [2, 17]), e(At, o, { 7: 57 }), { 24: [1, 58] }, { 24: [1, 59] }, { 23: [1, 60] }, { 24: [2, 46] }, { 24: [2, 47] }, e(y, [2, 29]), e(y, [2, 30]), { 40: [1, 61] }, { 40: [1, 62] }, { 44: [1, 63] }, { 47: [1, 64] }, { 24: [1, 65] }, { 24: [1, 66] }, e(y, [2, 14], { 14: [1, 67] }), { 4: c, 5: r, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: d, 17: f, 19: g, 21: [1, 68], 22: E, 24: m, 25: I, 26: G, 27: R, 28: S, 29: L, 32: 25, 33: O, 35: Y, 37: F, 38: w, 42: $, 45: et, 48: st, 49: it, 50: rt, 51: at, 54: X }, e(y, [2, 20], { 20: [1, 69] }), { 31: [1, 70] }, { 24: [1, 71] }, e(y, [2, 32]), e(y, [2, 33]), e(y, [2, 34]), e(y, [2, 35]), e(nt, [2, 44]), e(nt, [2, 45]), e(y, [2, 15]), e(y, [2, 19]), e(At, o, { 7: 72 }), e(y, [2, 26]), e(y, [2, 27]), { 4: c, 5: r, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: d, 17: f, 19: g, 21: [1, 73], 22: E, 24: m, 25: I, 26: G, 27: R, 28: S, 29: L, 32: 25, 33: O, 35: Y, 37: F, 38: w, 42: $, 45: et, 48: st, 49: it, 50: rt, 51: at, 54: X }, e(y, [2, 21])],
120
+ defaultActions: { 5: [2, 1], 6: [2, 2], 46: [2, 46], 47: [2, 47] },
121
+ parseError: /* @__PURE__ */ p(function(l, h) {
122
+ if (h.recoverable)
123
+ this.trace(l);
124
+ else {
125
+ var a = new Error(l);
126
+ throw a.hash = h, a;
127
+ }
128
+ }, "parseError"),
129
+ parse: /* @__PURE__ */ p(function(l) {
130
+ var h = this, a = [0], T = [], _ = [null], i = [], K = this.table, u = "", V = 0, H = 0, ot = 2, J = 1, yt = i.slice.call(arguments, 1), D = Object.create(this.lexer), M = { yy: {} };
131
+ for (var gt in this.yy)
132
+ Object.prototype.hasOwnProperty.call(this.yy, gt) && (M.yy[gt] = this.yy[gt]);
133
+ D.setInput(l, M.yy), M.yy.lexer = D, M.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {});
134
+ var Tt = D.yylloc;
135
+ i.push(Tt);
136
+ var se = D.options && D.options.ranges;
137
+ typeof M.yy.parseError == "function" ? this.parseError = M.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
138
+ function ie(C) {
139
+ a.length = a.length - 2 * C, _.length = _.length - C, i.length = i.length - C;
140
+ }
141
+ p(ie, "popStack");
142
+ function Lt() {
143
+ var C;
144
+ return C = T.pop() || D.lex() || J, typeof C != "number" && (C instanceof Array && (T = C, C = T.pop()), C = h.symbols_[C] || C), C;
145
+ }
146
+ p(Lt, "lex");
147
+ for (var k, U, x, _t, W = {}, ct, N, It, ht; ; ) {
148
+ if (U = a[a.length - 1], this.defaultActions[U] ? x = this.defaultActions[U] : ((k === null || typeof k > "u") && (k = Lt()), x = K[U] && K[U][k]), typeof x > "u" || !x.length || !x[0]) {
149
+ var Et = "";
150
+ ht = [];
151
+ for (ct in K[U])
152
+ this.terminals_[ct] && ct > ot && ht.push("'" + this.terminals_[ct] + "'");
153
+ D.showPosition ? Et = "Parse error on line " + (V + 1) + `:
154
+ ` + D.showPosition() + `
155
+ Expecting ` + ht.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Et = "Parse error on line " + (V + 1) + ": Unexpected " + (k == J ? "end of input" : "'" + (this.terminals_[k] || k) + "'"), this.parseError(Et, {
156
+ text: D.match,
157
+ token: this.terminals_[k] || k,
158
+ line: D.yylineno,
159
+ loc: Tt,
160
+ expected: ht
161
+ });
162
+ }
163
+ if (x[0] instanceof Array && x.length > 1)
164
+ throw new Error("Parse Error: multiple actions possible at state: " + U + ", token: " + k);
165
+ switch (x[0]) {
166
+ case 1:
167
+ a.push(k), _.push(D.yytext), i.push(D.yylloc), a.push(x[1]), k = null, H = D.yyleng, u = D.yytext, V = D.yylineno, Tt = D.yylloc;
168
+ break;
169
+ case 2:
170
+ if (N = this.productions_[x[1]][1], W.$ = _[_.length - N], W._$ = {
171
+ first_line: i[i.length - (N || 1)].first_line,
172
+ last_line: i[i.length - 1].last_line,
173
+ first_column: i[i.length - (N || 1)].first_column,
174
+ last_column: i[i.length - 1].last_column
175
+ }, se && (W._$.range = [
176
+ i[i.length - (N || 1)].range[0],
177
+ i[i.length - 1].range[1]
178
+ ]), _t = this.performAction.apply(W, [
179
+ u,
180
+ H,
181
+ V,
182
+ M.yy,
183
+ x[1],
184
+ _,
185
+ i
186
+ ].concat(yt)), typeof _t < "u")
187
+ return _t;
188
+ N && (a = a.slice(0, -1 * N * 2), _ = _.slice(0, -1 * N), i = i.slice(0, -1 * N)), a.push(this.productions_[x[1]][0]), _.push(W.$), i.push(W._$), It = K[a[a.length - 2]][a[a.length - 1]], a.push(It);
189
+ break;
190
+ case 3:
191
+ return !0;
192
+ }
193
+ }
194
+ return !0;
195
+ }, "parse")
196
+ }, ee = /* @__PURE__ */ function() {
197
+ var P = {
198
+ EOF: 1,
199
+ parseError: /* @__PURE__ */ p(function(h, a) {
200
+ if (this.yy.parser)
201
+ this.yy.parser.parseError(h, a);
202
+ else
203
+ throw new Error(h);
204
+ }, "parseError"),
205
+ // resets the lexer, sets new input
206
+ setInput: /* @__PURE__ */ p(function(l, h) {
207
+ return this.yy = h || this.yy || {}, this._input = l, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
208
+ first_line: 1,
209
+ first_column: 0,
210
+ last_line: 1,
211
+ last_column: 0
212
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
213
+ }, "setInput"),
214
+ // consumes and returns one char from the input
215
+ input: /* @__PURE__ */ p(function() {
216
+ var l = this._input[0];
217
+ this.yytext += l, this.yyleng++, this.offset++, this.match += l, this.matched += l;
218
+ var h = l.match(/(?:\r\n?|\n).*/g);
219
+ return h ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), l;
220
+ }, "input"),
221
+ // unshifts one char (or a string) into the input
222
+ unput: /* @__PURE__ */ p(function(l) {
223
+ var h = l.length, a = l.split(/(?:\r\n?|\n)/g);
224
+ this._input = l + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - h), this.offset -= h;
225
+ var T = this.match.split(/(?:\r\n?|\n)/g);
226
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), a.length - 1 && (this.yylineno -= a.length - 1);
227
+ var _ = this.yylloc.range;
228
+ return this.yylloc = {
229
+ first_line: this.yylloc.first_line,
230
+ last_line: this.yylineno + 1,
231
+ first_column: this.yylloc.first_column,
232
+ last_column: a ? (a.length === T.length ? this.yylloc.first_column : 0) + T[T.length - a.length].length - a[0].length : this.yylloc.first_column - h
233
+ }, this.options.ranges && (this.yylloc.range = [_[0], _[0] + this.yyleng - h]), this.yyleng = this.yytext.length, this;
234
+ }, "unput"),
235
+ // When called from action, caches matched text and appends it on next action
236
+ more: /* @__PURE__ */ p(function() {
237
+ return this._more = !0, this;
238
+ }, "more"),
239
+ // 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.
240
+ reject: /* @__PURE__ */ p(function() {
241
+ if (this.options.backtrack_lexer)
242
+ this._backtrack = !0;
243
+ else
244
+ 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).
245
+ ` + this.showPosition(), {
246
+ text: "",
247
+ token: null,
248
+ line: this.yylineno
249
+ });
250
+ return this;
251
+ }, "reject"),
252
+ // retain first n characters of the match
253
+ less: /* @__PURE__ */ p(function(l) {
254
+ this.unput(this.match.slice(l));
255
+ }, "less"),
256
+ // displays already matched input, i.e. for error messages
257
+ pastInput: /* @__PURE__ */ p(function() {
258
+ var l = this.matched.substr(0, this.matched.length - this.match.length);
259
+ return (l.length > 20 ? "..." : "") + l.substr(-20).replace(/\n/g, "");
260
+ }, "pastInput"),
261
+ // displays upcoming input, i.e. for error messages
262
+ upcomingInput: /* @__PURE__ */ p(function() {
263
+ var l = this.match;
264
+ return l.length < 20 && (l += this._input.substr(0, 20 - l.length)), (l.substr(0, 20) + (l.length > 20 ? "..." : "")).replace(/\n/g, "");
265
+ }, "upcomingInput"),
266
+ // displays the character position where the lexing error occurred, i.e. for error messages
267
+ showPosition: /* @__PURE__ */ p(function() {
268
+ var l = this.pastInput(), h = new Array(l.length + 1).join("-");
269
+ return l + this.upcomingInput() + `
270
+ ` + h + "^";
271
+ }, "showPosition"),
272
+ // test the lexed token: return FALSE when not a match, otherwise return token
273
+ test_match: /* @__PURE__ */ p(function(l, h) {
274
+ var a, T, _;
275
+ if (this.options.backtrack_lexer && (_ = {
276
+ yylineno: this.yylineno,
277
+ yylloc: {
278
+ first_line: this.yylloc.first_line,
279
+ last_line: this.last_line,
280
+ first_column: this.yylloc.first_column,
281
+ last_column: this.yylloc.last_column
282
+ },
283
+ yytext: this.yytext,
284
+ match: this.match,
285
+ matches: this.matches,
286
+ matched: this.matched,
287
+ yyleng: this.yyleng,
288
+ offset: this.offset,
289
+ _more: this._more,
290
+ _input: this._input,
291
+ yy: this.yy,
292
+ conditionStack: this.conditionStack.slice(0),
293
+ done: this.done
294
+ }, this.options.ranges && (_.yylloc.range = this.yylloc.range.slice(0))), T = l[0].match(/(?:\r\n?|\n).*/g), T && (this.yylineno += T.length), this.yylloc = {
295
+ first_line: this.yylloc.last_line,
296
+ last_line: this.yylineno + 1,
297
+ first_column: this.yylloc.last_column,
298
+ last_column: T ? T[T.length - 1].length - T[T.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + l[0].length
299
+ }, this.yytext += l[0], this.match += l[0], this.matches = l, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(l[0].length), this.matched += l[0], a = this.performAction.call(this, this.yy, this, h, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a)
300
+ return a;
301
+ if (this._backtrack) {
302
+ for (var i in _)
303
+ this[i] = _[i];
304
+ return !1;
305
+ }
306
+ return !1;
307
+ }, "test_match"),
308
+ // return next match in input
309
+ next: /* @__PURE__ */ p(function() {
310
+ if (this.done)
311
+ return this.EOF;
312
+ this._input || (this.done = !0);
313
+ var l, h, a, T;
314
+ this._more || (this.yytext = "", this.match = "");
315
+ for (var _ = this._currentRules(), i = 0; i < _.length; i++)
316
+ if (a = this._input.match(this.rules[_[i]]), a && (!h || a[0].length > h[0].length)) {
317
+ if (h = a, T = i, this.options.backtrack_lexer) {
318
+ if (l = this.test_match(a, _[i]), l !== !1)
319
+ return l;
320
+ if (this._backtrack) {
321
+ h = !1;
322
+ continue;
323
+ } else
324
+ return !1;
325
+ } else if (!this.options.flex)
326
+ break;
327
+ }
328
+ return h ? (l = this.test_match(h, _[T]), l !== !1 ? l : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
329
+ ` + this.showPosition(), {
330
+ text: "",
331
+ token: null,
332
+ line: this.yylineno
333
+ });
334
+ }, "next"),
335
+ // return next match that has a token
336
+ lex: /* @__PURE__ */ p(function() {
337
+ var h = this.next();
338
+ return h || this.lex();
339
+ }, "lex"),
340
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
341
+ begin: /* @__PURE__ */ p(function(h) {
342
+ this.conditionStack.push(h);
343
+ }, "begin"),
344
+ // pop the previously active lexer condition state off the condition stack
345
+ popState: /* @__PURE__ */ p(function() {
346
+ var h = this.conditionStack.length - 1;
347
+ return h > 0 ? this.conditionStack.pop() : this.conditionStack[0];
348
+ }, "popState"),
349
+ // produce the lexer rule set which is active for the currently active lexer condition state
350
+ _currentRules: /* @__PURE__ */ p(function() {
351
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
352
+ }, "_currentRules"),
353
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
354
+ topState: /* @__PURE__ */ p(function(h) {
355
+ return h = this.conditionStack.length - 1 - Math.abs(h || 0), h >= 0 ? this.conditionStack[h] : "INITIAL";
356
+ }, "topState"),
357
+ // alias for begin(condition)
358
+ pushState: /* @__PURE__ */ p(function(h) {
359
+ this.begin(h);
360
+ }, "pushState"),
361
+ // return the number of states currently on the stack
362
+ stateStackSize: /* @__PURE__ */ p(function() {
363
+ return this.conditionStack.length;
364
+ }, "stateStackSize"),
365
+ options: { "case-insensitive": !0 },
366
+ performAction: /* @__PURE__ */ p(function(h, a, T, _) {
367
+ switch (T) {
368
+ case 0:
369
+ return 41;
370
+ case 1:
371
+ return 48;
372
+ case 2:
373
+ return 49;
374
+ case 3:
375
+ return 50;
376
+ case 4:
377
+ return 51;
378
+ case 5:
379
+ break;
380
+ case 6:
381
+ break;
382
+ case 7:
383
+ return 5;
384
+ case 8:
385
+ break;
386
+ case 9:
387
+ break;
388
+ case 10:
389
+ break;
390
+ case 11:
391
+ break;
392
+ case 12:
393
+ return this.pushState("SCALE"), 17;
394
+ case 13:
395
+ return 18;
396
+ case 14:
397
+ this.popState();
398
+ break;
399
+ case 15:
400
+ return this.begin("acc_title"), 33;
401
+ case 16:
402
+ return this.popState(), "acc_title_value";
403
+ case 17:
404
+ return this.begin("acc_descr"), 35;
405
+ case 18:
406
+ return this.popState(), "acc_descr_value";
407
+ case 19:
408
+ this.begin("acc_descr_multiline");
409
+ break;
410
+ case 20:
411
+ this.popState();
412
+ break;
413
+ case 21:
414
+ return "acc_descr_multiline_value";
415
+ case 22:
416
+ return this.pushState("CLASSDEF"), 38;
417
+ case 23:
418
+ return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
419
+ case 24:
420
+ return this.popState(), this.pushState("CLASSDEFID"), 39;
421
+ case 25:
422
+ return this.popState(), 40;
423
+ case 26:
424
+ return this.pushState("CLASS"), 45;
425
+ case 27:
426
+ return this.popState(), this.pushState("CLASS_STYLE"), 46;
427
+ case 28:
428
+ return this.popState(), 47;
429
+ case 29:
430
+ return this.pushState("STYLE"), 42;
431
+ case 30:
432
+ return this.popState(), this.pushState("STYLEDEF_STYLES"), 43;
433
+ case 31:
434
+ return this.popState(), 44;
435
+ case 32:
436
+ return this.pushState("SCALE"), 17;
437
+ case 33:
438
+ return 18;
439
+ case 34:
440
+ this.popState();
441
+ break;
442
+ case 35:
443
+ this.pushState("STATE");
444
+ break;
445
+ case 36:
446
+ return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 25;
447
+ case 37:
448
+ return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 26;
449
+ case 38:
450
+ return this.popState(), a.yytext = a.yytext.slice(0, -10).trim(), 27;
451
+ case 39:
452
+ return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 25;
453
+ case 40:
454
+ return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 26;
455
+ case 41:
456
+ return this.popState(), a.yytext = a.yytext.slice(0, -10).trim(), 27;
457
+ case 42:
458
+ return 48;
459
+ case 43:
460
+ return 49;
461
+ case 44:
462
+ return 50;
463
+ case 45:
464
+ return 51;
465
+ case 46:
466
+ this.pushState("STATE_STRING");
467
+ break;
468
+ case 47:
469
+ return this.pushState("STATE_ID"), "AS";
470
+ case 48:
471
+ return this.popState(), "ID";
472
+ case 49:
473
+ this.popState();
474
+ break;
475
+ case 50:
476
+ return "STATE_DESCR";
477
+ case 51:
478
+ return 19;
479
+ case 52:
480
+ this.popState();
481
+ break;
482
+ case 53:
483
+ return this.popState(), this.pushState("struct"), 20;
484
+ case 54:
485
+ break;
486
+ case 55:
487
+ return this.popState(), 21;
488
+ case 56:
489
+ break;
490
+ case 57:
491
+ return this.begin("NOTE"), 29;
492
+ case 58:
493
+ return this.popState(), this.pushState("NOTE_ID"), 56;
494
+ case 59:
495
+ return this.popState(), this.pushState("NOTE_ID"), 57;
496
+ case 60:
497
+ this.popState(), this.pushState("FLOATING_NOTE");
498
+ break;
499
+ case 61:
500
+ return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
501
+ case 62:
502
+ break;
503
+ case 63:
504
+ return "NOTE_TEXT";
505
+ case 64:
506
+ return this.popState(), "ID";
507
+ case 65:
508
+ return this.popState(), this.pushState("NOTE_TEXT"), 24;
509
+ case 66:
510
+ return this.popState(), a.yytext = a.yytext.substr(2).trim(), 31;
511
+ case 67:
512
+ return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 31;
513
+ case 68:
514
+ return 6;
515
+ case 69:
516
+ return 6;
517
+ case 70:
518
+ return 16;
519
+ case 71:
520
+ return 54;
521
+ case 72:
522
+ return 24;
523
+ case 73:
524
+ return a.yytext = a.yytext.trim(), 14;
525
+ case 74:
526
+ return 15;
527
+ case 75:
528
+ return 28;
529
+ case 76:
530
+ return 55;
531
+ case 77:
532
+ return 5;
533
+ case 78:
534
+ return "INVALID";
535
+ }
536
+ }, "anonymous"),
537
+ rules: [/^(?:default\b)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:[\s]+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:classDef\s+)/i, /^(?:DEFAULT\s+)/i, /^(?:\w+\s+)/i, /^(?:[^\n]*)/i, /^(?:class\s+)/i, /^(?:(\w+)+((,\s*\w+)*))/i, /^(?:[^\n]*)/i, /^(?:style\s+)/i, /^(?:[\w,]+\s+)/i, /^(?:[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:state\s+)/i, /^(?:.*<<fork>>)/i, /^(?:.*<<join>>)/i, /^(?:.*<<choice>>)/i, /^(?:.*\[\[fork\]\])/i, /^(?:.*\[\[join\]\])/i, /^(?:.*\[\[choice\]\])/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:["])/i, /^(?:\s*as\s+)/i, /^(?:[^\n\{]*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n\s\{]+)/i, /^(?:\n)/i, /^(?:\{)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:\})/i, /^(?:[\n])/i, /^(?:note\s+)/i, /^(?:left of\b)/i, /^(?:right of\b)/i, /^(?:")/i, /^(?:\s*as\s*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n]*)/i, /^(?:\s*[^:\n\s\-]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:[\s\S]*?end note\b)/i, /^(?:stateDiagram\s+)/i, /^(?:stateDiagram-v2\s+)/i, /^(?:hide empty description\b)/i, /^(?:\[\*\])/i, /^(?:[^:\n\s\-\{]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:-->)/i, /^(?:--)/i, /^(?::::)/i, /^(?:$)/i, /^(?:.)/i],
538
+ conditions: { LINE: { rules: [9, 10], inclusive: !1 }, struct: { rules: [9, 10, 22, 26, 29, 35, 42, 43, 44, 45, 54, 55, 56, 57, 71, 72, 73, 74, 75], inclusive: !1 }, FLOATING_NOTE_ID: { rules: [64], inclusive: !1 }, FLOATING_NOTE: { rules: [61, 62, 63], inclusive: !1 }, NOTE_TEXT: { rules: [66, 67], inclusive: !1 }, NOTE_ID: { rules: [65], inclusive: !1 }, NOTE: { rules: [58, 59, 60], inclusive: !1 }, STYLEDEF_STYLEOPTS: { rules: [], inclusive: !1 }, STYLEDEF_STYLES: { rules: [31], inclusive: !1 }, STYLE_IDS: { rules: [], inclusive: !1 }, STYLE: { rules: [30], inclusive: !1 }, CLASS_STYLE: { rules: [28], inclusive: !1 }, CLASS: { rules: [27], inclusive: !1 }, CLASSDEFID: { rules: [25], inclusive: !1 }, CLASSDEF: { rules: [23, 24], inclusive: !1 }, acc_descr_multiline: { rules: [20, 21], inclusive: !1 }, acc_descr: { rules: [18], inclusive: !1 }, acc_title: { rules: [16], inclusive: !1 }, SCALE: { rules: [13, 14, 33, 34], inclusive: !1 }, ALIAS: { rules: [], inclusive: !1 }, STATE_ID: { rules: [48], inclusive: !1 }, STATE_STRING: { rules: [49, 50], inclusive: !1 }, FORK_STATE: { rules: [], inclusive: !1 }, STATE: { rules: [9, 10, 36, 37, 38, 39, 40, 41, 46, 47, 51, 52, 53], inclusive: !1 }, ID: { rules: [9, 10], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 15, 17, 19, 22, 26, 29, 32, 35, 53, 57, 68, 69, 70, 71, 72, 73, 74, 76, 77, 78], inclusive: !0 } }
539
+ };
540
+ return P;
541
+ }();
542
+ St.lexer = ee;
543
+ function lt() {
544
+ this.yy = {};
545
+ }
546
+ return p(lt, "Parser"), lt.prototype = St, St.Parser = lt, new lt();
547
+ }();
548
+ bt.parser = bt;
549
+ var Xe = bt, Te = "TB", Mt = "TB", Rt = "dir", dt = "state", vt = "relation", _e = "classDef", Ee = "style", me = "applyClass", Z = "default", Ut = "divider", jt = "fill:none", zt = "fill: #333", Ht = "c", Wt = "text", Xt = "normal", mt = "rect", Dt = "rectWithTitle", De = "stateStart", be = "stateEnd", Ot = "divider", Nt = "roundedWithTitle", ve = "note", ke = "noteGroup", tt = "statediagram", Ce = "state", xe = `${tt}-${Ce}`, Kt = "transition", Ae = "note", Le = "note-edge", Ie = `${Kt} ${Le}`, Re = `${tt}-${Ae}`, Oe = "cluster", Ne = `${tt}-${Oe}`, we = "cluster-alt", $e = `${tt}-${we}`, Jt = "parent", qt = "note", Pe = "state", xt = "----", Be = `${xt}${qt}`, wt = `${xt}${Jt}`, Qt = /* @__PURE__ */ p((e, t = Mt) => {
550
+ if (!e.doc)
551
+ return t;
552
+ let s = t;
553
+ for (const n of e.doc)
554
+ n.stmt === "dir" && (s = n.value);
555
+ return s;
556
+ }, "getDir"), Ge = /* @__PURE__ */ p(function(e, t) {
557
+ return t.db.getClasses();
558
+ }, "getClasses"), Ye = /* @__PURE__ */ p(async function(e, t, s, n) {
559
+ v.info("REF0:"), v.info("Drawing state diagram (v2)", t);
560
+ const { securityLevel: o, state: c, layout: r } = A();
561
+ n.db.extract(n.db.getRootDocV2());
562
+ const d = n.db.getData(), f = ne(t, o);
563
+ d.type = n.type, d.layoutAlgorithm = r, d.nodeSpacing = (c == null ? void 0 : c.nodeSpacing) || 50, d.rankSpacing = (c == null ? void 0 : c.rankSpacing) || 50, d.markers = ["barb"], d.diagramId = t, await oe(d, f);
564
+ const g = 8;
565
+ ce.insertTitle(
566
+ f,
567
+ "statediagramTitleText",
568
+ (c == null ? void 0 : c.titleTopMargin) ?? 25,
569
+ n.db.getDiagramTitle()
570
+ ), le(f, g, tt, (c == null ? void 0 : c.useMaxWidth) ?? !0);
571
+ }, "draw"), Ke = {
572
+ getClasses: Ge,
573
+ draw: Ye,
574
+ getDir: Qt
575
+ }, ft = /* @__PURE__ */ new Map(), B = 0;
576
+ function pt(e = "", t = 0, s = "", n = xt) {
577
+ const o = s !== null && s.length > 0 ? `${n}${s}` : "";
578
+ return `${Pe}-${e}${o}-${t}`;
579
+ }
580
+ p(pt, "stateDomId");
581
+ var Fe = /* @__PURE__ */ p((e, t, s, n, o, c, r, d) => {
582
+ v.trace("items", t), t.forEach((f) => {
583
+ switch (f.stmt) {
584
+ case dt:
585
+ Q(e, f, s, n, o, c, r, d);
586
+ break;
587
+ case Z:
588
+ Q(e, f, s, n, o, c, r, d);
589
+ break;
590
+ case vt:
591
+ {
592
+ Q(
593
+ e,
594
+ f.state1,
595
+ s,
596
+ n,
597
+ o,
598
+ c,
599
+ r,
600
+ d
601
+ ), Q(
602
+ e,
603
+ f.state2,
604
+ s,
605
+ n,
606
+ o,
607
+ c,
608
+ r,
609
+ d
610
+ );
611
+ const g = {
612
+ id: "edge" + B,
613
+ start: f.state1.id,
614
+ end: f.state2.id,
615
+ arrowhead: "normal",
616
+ arrowTypeEnd: "arrow_barb",
617
+ style: jt,
618
+ labelStyle: "",
619
+ label: j.sanitizeText(f.description, A()),
620
+ arrowheadStyle: zt,
621
+ labelpos: Ht,
622
+ labelType: Wt,
623
+ thickness: Xt,
624
+ classes: Kt,
625
+ look: r
626
+ };
627
+ o.push(g), B++;
628
+ }
629
+ break;
630
+ }
631
+ });
632
+ }, "setupDoc"), $t = /* @__PURE__ */ p((e, t = Mt) => {
633
+ let s = t;
634
+ if (e.doc)
635
+ for (const n of e.doc)
636
+ n.stmt === "dir" && (s = n.value);
637
+ return s;
638
+ }, "getDir");
639
+ function q(e, t, s) {
640
+ if (!t.id || t.id === "</join></fork>" || t.id === "</choice>")
641
+ return;
642
+ t.cssClasses && (Array.isArray(t.cssCompiledStyles) || (t.cssCompiledStyles = []), t.cssClasses.split(" ").forEach((o) => {
643
+ if (s.get(o)) {
644
+ const c = s.get(o);
645
+ t.cssCompiledStyles = [...t.cssCompiledStyles, ...c.styles];
646
+ }
647
+ }));
648
+ const n = e.find((o) => o.id === t.id);
649
+ n ? Object.assign(n, t) : e.push(t);
650
+ }
651
+ p(q, "insertOrUpdateNode");
652
+ function Zt(e) {
653
+ var t;
654
+ return ((t = e == null ? void 0 : e.classes) == null ? void 0 : t.join(" ")) ?? "";
655
+ }
656
+ p(Zt, "getClassesFromDbInfo");
657
+ function te(e) {
658
+ return (e == null ? void 0 : e.styles) ?? [];
659
+ }
660
+ p(te, "getStylesFromDbInfo");
661
+ var Q = /* @__PURE__ */ p((e, t, s, n, o, c, r, d) => {
662
+ var I, G;
663
+ const f = t.id, g = s.get(f), E = Zt(g), m = te(g);
664
+ if (v.info("dataFetcher parsedItem", t, g, m), f !== "root") {
665
+ let R = mt;
666
+ t.start === !0 ? R = De : t.start === !1 && (R = be), t.type !== Z && (R = t.type), ft.get(f) || ft.set(f, {
667
+ id: f,
668
+ shape: R,
669
+ description: j.sanitizeText(f, A()),
670
+ cssClasses: `${E} ${xe}`,
671
+ cssStyles: m
672
+ });
673
+ const S = ft.get(f);
674
+ t.description && (Array.isArray(S.description) ? (S.shape = Dt, S.description.push(t.description)) : ((I = S.description) == null ? void 0 : I.length) > 0 ? (S.shape = Dt, S.description === f ? S.description = [t.description] : S.description = [S.description, t.description]) : (S.shape = mt, S.description = t.description), S.description = j.sanitizeTextOrArray(S.description, A())), ((G = S.description) == null ? void 0 : G.length) === 1 && S.shape === Dt && (S.type === "group" ? S.shape = Nt : S.shape = mt), !S.type && t.doc && (v.info("Setting cluster for XCX", f, $t(t)), S.type = "group", S.isGroup = !0, S.dir = $t(t), S.shape = t.type === Ut ? Ot : Nt, S.cssClasses = `${S.cssClasses} ${Ne} ${c ? $e : ""}`);
675
+ const L = {
676
+ labelStyle: "",
677
+ shape: S.shape,
678
+ label: S.description,
679
+ cssClasses: S.cssClasses,
680
+ cssCompiledStyles: [],
681
+ cssStyles: S.cssStyles,
682
+ id: f,
683
+ dir: S.dir,
684
+ domId: pt(f, B),
685
+ type: S.type,
686
+ isGroup: S.type === "group",
687
+ padding: 8,
688
+ rx: 10,
689
+ ry: 10,
690
+ look: r
691
+ };
692
+ if (L.shape === Ot && (L.label = ""), e && e.id !== "root" && (v.trace("Setting node ", f, " to be child of its parent ", e.id), L.parentId = e.id), L.centerLabel = !0, t.note) {
693
+ const O = {
694
+ labelStyle: "",
695
+ shape: ve,
696
+ label: t.note.text,
697
+ cssClasses: Re,
698
+ // useHtmlLabels: false,
699
+ cssStyles: [],
700
+ cssCompilesStyles: [],
701
+ id: f + Be + "-" + B,
702
+ domId: pt(f, B, qt),
703
+ type: S.type,
704
+ isGroup: S.type === "group",
705
+ padding: A().flowchart.padding,
706
+ look: r,
707
+ position: t.note.position
708
+ }, Y = f + wt, F = {
709
+ labelStyle: "",
710
+ shape: ke,
711
+ label: t.note.text,
712
+ cssClasses: S.cssClasses,
713
+ cssStyles: [],
714
+ id: f + wt,
715
+ domId: pt(f, B, Jt),
716
+ type: "group",
717
+ isGroup: !0,
718
+ padding: 16,
719
+ //getConfig().flowchart.padding
720
+ look: r,
721
+ position: t.note.position
722
+ };
723
+ B++, F.id = Y, O.parentId = Y, q(n, F, d), q(n, O, d), q(n, L, d);
724
+ let w = f, $ = O.id;
725
+ t.note.position === "left of" && (w = O.id, $ = f), o.push({
726
+ id: w + "-" + $,
727
+ start: w,
728
+ end: $,
729
+ arrowhead: "none",
730
+ arrowTypeEnd: "",
731
+ style: jt,
732
+ labelStyle: "",
733
+ classes: Ie,
734
+ arrowheadStyle: zt,
735
+ labelpos: Ht,
736
+ labelType: Wt,
737
+ thickness: Xt,
738
+ look: r
739
+ });
740
+ } else
741
+ q(n, L, d);
742
+ }
743
+ t.doc && (v.trace("Adding nodes children "), Fe(t, t.doc, s, n, o, !c, r, d));
744
+ }, "dataFetcher"), Ve = /* @__PURE__ */ p(() => {
745
+ ft.clear(), B = 0;
746
+ }, "reset"), kt = "[*]", Pt = "start", Bt = kt, Gt = "end", Yt = "color", Ft = "fill", Me = "bgFill", Ue = ",";
747
+ function Ct() {
748
+ return /* @__PURE__ */ new Map();
749
+ }
750
+ p(Ct, "newClassesList");
751
+ var Vt = /* @__PURE__ */ p(() => ({
752
+ /** @type {{ id1: string, id2: string, relationTitle: string }[]} */
753
+ relations: [],
754
+ states: /* @__PURE__ */ new Map(),
755
+ documents: {}
756
+ }), "newDoc"), ut = /* @__PURE__ */ p((e) => JSON.parse(JSON.stringify(e)), "clone"), z, Je = (z = class {
757
+ /**
758
+ * @param {1 | 2} version - v1 renderer or v2 renderer.
759
+ */
760
+ constructor(t) {
761
+ /**
762
+ * @private
763
+ * @type {1 | 2}
764
+ */
765
+ b(this, "version");
766
+ /**
767
+ * @private
768
+ * @type {Array}
769
+ */
770
+ b(this, "nodes", []);
771
+ /**
772
+ * @private
773
+ * @type {Array}
774
+ */
775
+ b(this, "edges", []);
776
+ /**
777
+ * @private
778
+ * @type {Array}
779
+ */
780
+ b(this, "rootDoc", []);
781
+ /**
782
+ * @private
783
+ * @type {Map<string, any>}
784
+ */
785
+ b(this, "classes", Ct());
786
+ // style classes defined by a classDef
787
+ /**
788
+ * @private
789
+ * @type {Object}
790
+ */
791
+ b(this, "documents", {
792
+ root: Vt()
793
+ });
794
+ /**
795
+ * @private
796
+ * @type {Object}
797
+ */
798
+ b(this, "currentDocument", this.documents.root);
799
+ /**
800
+ * @private
801
+ * @type {number}
802
+ */
803
+ b(this, "startEndCount", 0);
804
+ /**
805
+ * @private
806
+ * @type {number}
807
+ */
808
+ b(this, "dividerCnt", 0);
809
+ b(this, "getAccTitle", de);
810
+ b(this, "setAccTitle", fe);
811
+ b(this, "getAccDescription", pe);
812
+ b(this, "setAccDescription", Se);
813
+ b(this, "setDiagramTitle", ye);
814
+ b(this, "getDiagramTitle", ge);
815
+ this.clear(), this.version = t, this.setRootDoc = this.setRootDoc.bind(this), this.getDividerId = this.getDividerId.bind(this), this.setDirection = this.setDirection.bind(this), this.trimColon = this.trimColon.bind(this);
816
+ }
817
+ setRootDoc(t) {
818
+ v.info("Setting root doc", t), this.rootDoc = t, this.version === 1 ? this.extract(t) : this.extract(this.getRootDocV2());
819
+ }
820
+ getRootDoc() {
821
+ return this.rootDoc;
822
+ }
823
+ /**
824
+ * @private
825
+ * @param {Object} parent
826
+ * @param {Object} node
827
+ * @param {boolean} first
828
+ */
829
+ docTranslator(t, s, n) {
830
+ if (s.stmt === vt)
831
+ this.docTranslator(t, s.state1, !0), this.docTranslator(t, s.state2, !1);
832
+ else if (s.stmt === dt && (s.id === "[*]" ? (s.id = n ? t.id + "_start" : t.id + "_end", s.start = n) : s.id = s.id.trim()), s.doc) {
833
+ const o = [];
834
+ let c = [], r;
835
+ for (r = 0; r < s.doc.length; r++)
836
+ if (s.doc[r].type === Ut) {
837
+ const d = ut(s.doc[r]);
838
+ d.doc = ut(c), o.push(d), c = [];
839
+ } else
840
+ c.push(s.doc[r]);
841
+ if (o.length > 0 && c.length > 0) {
842
+ const d = {
843
+ stmt: dt,
844
+ id: he(),
845
+ type: "divider",
846
+ doc: ut(c)
847
+ };
848
+ o.push(ut(d)), s.doc = o;
849
+ }
850
+ s.doc.forEach((d) => this.docTranslator(s, d, !0));
851
+ }
852
+ }
853
+ /**
854
+ * @private
855
+ */
856
+ getRootDocV2() {
857
+ return this.docTranslator({ id: "root" }, { id: "root", doc: this.rootDoc }, !0), { id: "root", doc: this.rootDoc };
858
+ }
859
+ /**
860
+ * Convert all of the statements (stmts) that were parsed into states and relationships.
861
+ * This is done because a state diagram may have nested sections,
862
+ * where each section is a 'document' and has its own set of statements.
863
+ * Ex: the section within a fork has its own statements, and incoming and outgoing statements
864
+ * refer to the fork as a whole (document).
865
+ * See the parser grammar: the definition of a document is a document then a 'line', where a line can be a statement.
866
+ * This will push the statement into the list of statements for the current document.
867
+ * @private
868
+ * @param _doc
869
+ */
870
+ extract(t) {
871
+ let s;
872
+ t.doc ? s = t.doc : s = t, v.info(s), this.clear(!0), v.info("Extract initial document:", s), s.forEach((r) => {
873
+ switch (v.warn("Statement", r.stmt), r.stmt) {
874
+ case dt:
875
+ this.addState(
876
+ r.id.trim(),
877
+ r.type,
878
+ r.doc,
879
+ r.description,
880
+ r.note,
881
+ r.classes,
882
+ r.styles,
883
+ r.textStyles
884
+ );
885
+ break;
886
+ case vt:
887
+ this.addRelation(r.state1, r.state2, r.description);
888
+ break;
889
+ case _e:
890
+ this.addStyleClass(r.id.trim(), r.classes);
891
+ break;
892
+ case Ee:
893
+ {
894
+ const d = r.id.trim().split(","), f = r.styleClass.split(",");
895
+ d.forEach((g) => {
896
+ let E = this.getState(g);
897
+ if (E === void 0) {
898
+ const m = g.trim();
899
+ this.addState(m), E = this.getState(m);
900
+ }
901
+ E.styles = f.map((m) => {
902
+ var I;
903
+ return (I = m.replace(/;/g, "")) == null ? void 0 : I.trim();
904
+ });
905
+ });
906
+ }
907
+ break;
908
+ case me:
909
+ this.setCssClass(r.id.trim(), r.styleClass);
910
+ break;
911
+ }
912
+ });
913
+ const n = this.getStates(), c = A().look;
914
+ Ve(), Q(
915
+ void 0,
916
+ this.getRootDocV2(),
917
+ n,
918
+ this.nodes,
919
+ this.edges,
920
+ !0,
921
+ c,
922
+ this.classes
923
+ ), this.nodes.forEach((r) => {
924
+ if (Array.isArray(r.label)) {
925
+ if (r.description = r.label.slice(1), r.isGroup && r.description.length > 0)
926
+ throw new Error(
927
+ "Group nodes can only have label. Remove the additional description for node [" + r.id + "]"
928
+ );
929
+ r.label = r.label[0];
930
+ }
931
+ });
932
+ }
933
+ /**
934
+ * Function called by parser when a node definition has been found.
935
+ *
936
+ * @param {null | string} id
937
+ * @param {null | string} type
938
+ * @param {null | string} doc
939
+ * @param {null | string | string[]} descr - description for the state. Can be a string or a list or strings
940
+ * @param {null | string} note
941
+ * @param {null | string | string[]} classes - class styles to apply to this state. Can be a string (1 style) or an array of styles. If it's just 1 class, convert it to an array of that 1 class.
942
+ * @param {null | string | string[]} styles - styles to apply to this state. Can be a string (1 style) or an array of styles. If it's just 1 style, convert it to an array of that 1 style.
943
+ * @param {null | string | string[]} textStyles - text styles to apply to this state. Can be a string (1 text test) or an array of text styles. If it's just 1 text style, convert it to an array of that 1 text style.
944
+ */
945
+ addState(t, s = Z, n = null, o = null, c = null, r = null, d = null, f = null) {
946
+ const g = t == null ? void 0 : t.trim();
947
+ if (this.currentDocument.states.has(g) ? (this.currentDocument.states.get(g).doc || (this.currentDocument.states.get(g).doc = n), this.currentDocument.states.get(g).type || (this.currentDocument.states.get(g).type = s)) : (v.info("Adding state ", g, o), this.currentDocument.states.set(g, {
948
+ id: g,
949
+ descriptions: [],
950
+ type: s,
951
+ doc: n,
952
+ note: c,
953
+ classes: [],
954
+ styles: [],
955
+ textStyles: []
956
+ })), o && (v.info("Setting state description", g, o), typeof o == "string" && this.addDescription(g, o.trim()), typeof o == "object" && o.forEach((E) => this.addDescription(g, E.trim()))), c) {
957
+ const E = this.currentDocument.states.get(g);
958
+ E.note = c, E.note.text = j.sanitizeText(E.note.text, A());
959
+ }
960
+ r && (v.info("Setting state classes", g, r), (typeof r == "string" ? [r] : r).forEach((m) => this.setCssClass(g, m.trim()))), d && (v.info("Setting state styles", g, d), (typeof d == "string" ? [d] : d).forEach((m) => this.setStyle(g, m.trim()))), f && (v.info("Setting state styles", g, d), (typeof f == "string" ? [f] : f).forEach((m) => this.setTextStyle(g, m.trim())));
961
+ }
962
+ clear(t) {
963
+ this.nodes = [], this.edges = [], this.documents = {
964
+ root: Vt()
965
+ }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = Ct(), t || ue();
966
+ }
967
+ getState(t) {
968
+ return this.currentDocument.states.get(t);
969
+ }
970
+ getStates() {
971
+ return this.currentDocument.states;
972
+ }
973
+ logDocuments() {
974
+ v.info("Documents = ", this.documents);
975
+ }
976
+ getRelations() {
977
+ return this.currentDocument.relations;
978
+ }
979
+ /**
980
+ * If the id is a start node ( [*] ), then return a new id constructed from
981
+ * the start node name and the current start node count.
982
+ * else return the given id
983
+ *
984
+ * @param {string} id
985
+ * @returns {string} - the id (original or constructed)
986
+ * @private
987
+ */
988
+ startIdIfNeeded(t = "") {
989
+ let s = t;
990
+ return t === kt && (this.startEndCount++, s = `${Pt}${this.startEndCount}`), s;
991
+ }
992
+ /**
993
+ * If the id is a start node ( [*] ), then return the start type ('start')
994
+ * else return the given type
995
+ *
996
+ * @param {string} id
997
+ * @param {string} type
998
+ * @returns {string} - the type that should be used
999
+ * @private
1000
+ */
1001
+ startTypeIfNeeded(t = "", s = Z) {
1002
+ return t === kt ? Pt : s;
1003
+ }
1004
+ /**
1005
+ * If the id is an end node ( [*] ), then return a new id constructed from
1006
+ * the end node name and the current start_end node count.
1007
+ * else return the given id
1008
+ *
1009
+ * @param {string} id
1010
+ * @returns {string} - the id (original or constructed)
1011
+ * @private
1012
+ */
1013
+ endIdIfNeeded(t = "") {
1014
+ let s = t;
1015
+ return t === Bt && (this.startEndCount++, s = `${Gt}${this.startEndCount}`), s;
1016
+ }
1017
+ /**
1018
+ * If the id is an end node ( [*] ), then return the end type
1019
+ * else return the given type
1020
+ *
1021
+ * @param {string} id
1022
+ * @param {string} type
1023
+ * @returns {string} - the type that should be used
1024
+ * @private
1025
+ */
1026
+ endTypeIfNeeded(t = "", s = Z) {
1027
+ return t === Bt ? Gt : s;
1028
+ }
1029
+ /**
1030
+ *
1031
+ * @param item1
1032
+ * @param item2
1033
+ * @param relationTitle
1034
+ */
1035
+ addRelationObjs(t, s, n) {
1036
+ let o = this.startIdIfNeeded(t.id.trim()), c = this.startTypeIfNeeded(t.id.trim(), t.type), r = this.startIdIfNeeded(s.id.trim()), d = this.startTypeIfNeeded(s.id.trim(), s.type);
1037
+ this.addState(
1038
+ o,
1039
+ c,
1040
+ t.doc,
1041
+ t.description,
1042
+ t.note,
1043
+ t.classes,
1044
+ t.styles,
1045
+ t.textStyles
1046
+ ), this.addState(
1047
+ r,
1048
+ d,
1049
+ s.doc,
1050
+ s.description,
1051
+ s.note,
1052
+ s.classes,
1053
+ s.styles,
1054
+ s.textStyles
1055
+ ), this.currentDocument.relations.push({
1056
+ id1: o,
1057
+ id2: r,
1058
+ relationTitle: j.sanitizeText(n, A())
1059
+ });
1060
+ }
1061
+ /**
1062
+ * Add a relation between two items. The items may be full objects or just the string id of a state.
1063
+ *
1064
+ * @param {string | object} item1
1065
+ * @param {string | object} item2
1066
+ * @param {string} title
1067
+ */
1068
+ addRelation(t, s, n) {
1069
+ if (typeof t == "object")
1070
+ this.addRelationObjs(t, s, n);
1071
+ else {
1072
+ const o = this.startIdIfNeeded(t.trim()), c = this.startTypeIfNeeded(t), r = this.endIdIfNeeded(s.trim()), d = this.endTypeIfNeeded(s);
1073
+ this.addState(o, c), this.addState(r, d), this.currentDocument.relations.push({
1074
+ id1: o,
1075
+ id2: r,
1076
+ title: j.sanitizeText(n, A())
1077
+ });
1078
+ }
1079
+ }
1080
+ addDescription(t, s) {
1081
+ const n = this.currentDocument.states.get(t), o = s.startsWith(":") ? s.replace(":", "").trim() : s;
1082
+ n.descriptions.push(j.sanitizeText(o, A()));
1083
+ }
1084
+ cleanupLabel(t) {
1085
+ return t.substring(0, 1) === ":" ? t.substr(2).trim() : t.trim();
1086
+ }
1087
+ getDividerId() {
1088
+ return this.dividerCnt++, "divider-id-" + this.dividerCnt;
1089
+ }
1090
+ /**
1091
+ * Called when the parser comes across a (style) class definition
1092
+ * @example classDef my-style fill:#f96;
1093
+ *
1094
+ * @param {string} id - the id of this (style) class
1095
+ * @param {string | null} styleAttributes - the string with 1 or more style attributes (each separated by a comma)
1096
+ */
1097
+ addStyleClass(t, s = "") {
1098
+ this.classes.has(t) || this.classes.set(t, { id: t, styles: [], textStyles: [] });
1099
+ const n = this.classes.get(t);
1100
+ s != null && s.split(Ue).forEach((o) => {
1101
+ const c = o.replace(/([^;]*);/, "$1").trim();
1102
+ if (RegExp(Yt).exec(o)) {
1103
+ const d = c.replace(Ft, Me).replace(Yt, Ft);
1104
+ n.textStyles.push(d);
1105
+ }
1106
+ n.styles.push(c);
1107
+ });
1108
+ }
1109
+ /**
1110
+ * Return all of the style classes
1111
+ * @returns {{} | any | classes}
1112
+ */
1113
+ getClasses() {
1114
+ return this.classes;
1115
+ }
1116
+ /**
1117
+ * Add a (style) class or css class to a state with the given id.
1118
+ * If the state isn't already in the list of known states, add it.
1119
+ * Might be called by parser when a style class or CSS class should be applied to a state
1120
+ *
1121
+ * @param {string | string[]} itemIds The id or a list of ids of the item(s) to apply the css class to
1122
+ * @param {string} cssClassName CSS class name
1123
+ */
1124
+ setCssClass(t, s) {
1125
+ t.split(",").forEach((n) => {
1126
+ let o = this.getState(n);
1127
+ if (o === void 0) {
1128
+ const c = n.trim();
1129
+ this.addState(c), o = this.getState(c);
1130
+ }
1131
+ o.classes.push(s);
1132
+ });
1133
+ }
1134
+ /**
1135
+ * Add a style to a state with the given id.
1136
+ * @example style stateId fill:#f9f,stroke:#333,stroke-width:4px
1137
+ * where 'style' is the keyword
1138
+ * stateId is the id of a state
1139
+ * the rest of the string is the styleText (all of the attributes to be applied to the state)
1140
+ *
1141
+ * @param itemId The id of item to apply the style to
1142
+ * @param styleText - the text of the attributes for the style
1143
+ */
1144
+ setStyle(t, s) {
1145
+ const n = this.getState(t);
1146
+ n !== void 0 && n.styles.push(s);
1147
+ }
1148
+ /**
1149
+ * Add a text style to a state with the given id
1150
+ *
1151
+ * @param itemId The id of item to apply the css class to
1152
+ * @param cssClassName CSS class name
1153
+ */
1154
+ setTextStyle(t, s) {
1155
+ const n = this.getState(t);
1156
+ n !== void 0 && n.textStyles.push(s);
1157
+ }
1158
+ /**
1159
+ * Finds the direction statement in the root document.
1160
+ * @private
1161
+ * @returns {{ value: string } | undefined} - the direction statement if present
1162
+ */
1163
+ getDirectionStatement() {
1164
+ return this.rootDoc.find((t) => t.stmt === Rt);
1165
+ }
1166
+ getDirection() {
1167
+ var t;
1168
+ return ((t = this.getDirectionStatement()) == null ? void 0 : t.value) ?? Te;
1169
+ }
1170
+ setDirection(t) {
1171
+ const s = this.getDirectionStatement();
1172
+ s ? s.value = t : this.rootDoc.unshift({ stmt: Rt, value: t });
1173
+ }
1174
+ trimColon(t) {
1175
+ return t && t[0] === ":" ? t.substr(1).trim() : t.trim();
1176
+ }
1177
+ getData() {
1178
+ const t = A();
1179
+ return {
1180
+ nodes: this.nodes,
1181
+ edges: this.edges,
1182
+ other: {},
1183
+ config: t,
1184
+ direction: Qt(this.getRootDocV2())
1185
+ };
1186
+ }
1187
+ getConfig() {
1188
+ return A().state;
1189
+ }
1190
+ }, p(z, "StateDB"), b(z, "relationType", {
1191
+ AGGREGATION: 0,
1192
+ EXTENSION: 1,
1193
+ COMPOSITION: 2,
1194
+ DEPENDENCY: 3
1195
+ }), z), je = /* @__PURE__ */ p((e) => `
1196
+ defs #statediagram-barbEnd {
1197
+ fill: ${e.transitionColor};
1198
+ stroke: ${e.transitionColor};
1199
+ }
1200
+ g.stateGroup text {
1201
+ fill: ${e.nodeBorder};
1202
+ stroke: none;
1203
+ font-size: 10px;
1204
+ }
1205
+ g.stateGroup text {
1206
+ fill: ${e.textColor};
1207
+ stroke: none;
1208
+ font-size: 10px;
1209
+
1210
+ }
1211
+ g.stateGroup .state-title {
1212
+ font-weight: bolder;
1213
+ fill: ${e.stateLabelColor};
1214
+ }
1215
+
1216
+ g.stateGroup rect {
1217
+ fill: ${e.mainBkg};
1218
+ stroke: ${e.nodeBorder};
1219
+ }
1220
+
1221
+ g.stateGroup line {
1222
+ stroke: ${e.lineColor};
1223
+ stroke-width: 1;
1224
+ }
1225
+
1226
+ .transition {
1227
+ stroke: ${e.transitionColor};
1228
+ stroke-width: 1;
1229
+ fill: none;
1230
+ }
1231
+
1232
+ .stateGroup .composit {
1233
+ fill: ${e.background};
1234
+ border-bottom: 1px
1235
+ }
1236
+
1237
+ .stateGroup .alt-composit {
1238
+ fill: #e0e0e0;
1239
+ border-bottom: 1px
1240
+ }
1241
+
1242
+ .state-note {
1243
+ stroke: ${e.noteBorderColor};
1244
+ fill: ${e.noteBkgColor};
1245
+
1246
+ text {
1247
+ fill: ${e.noteTextColor};
1248
+ stroke: none;
1249
+ font-size: 10px;
1250
+ }
1251
+ }
1252
+
1253
+ .stateLabel .box {
1254
+ stroke: none;
1255
+ stroke-width: 0;
1256
+ fill: ${e.mainBkg};
1257
+ opacity: 0.5;
1258
+ }
1259
+
1260
+ .edgeLabel .label rect {
1261
+ fill: ${e.labelBackgroundColor};
1262
+ opacity: 0.5;
1263
+ }
1264
+ .edgeLabel {
1265
+ background-color: ${e.edgeLabelBackground};
1266
+ p {
1267
+ background-color: ${e.edgeLabelBackground};
1268
+ }
1269
+ rect {
1270
+ opacity: 0.5;
1271
+ background-color: ${e.edgeLabelBackground};
1272
+ fill: ${e.edgeLabelBackground};
1273
+ }
1274
+ text-align: center;
1275
+ }
1276
+ .edgeLabel .label text {
1277
+ fill: ${e.transitionLabelColor || e.tertiaryTextColor};
1278
+ }
1279
+ .label div .edgeLabel {
1280
+ color: ${e.transitionLabelColor || e.tertiaryTextColor};
1281
+ }
1282
+
1283
+ .stateLabel text {
1284
+ fill: ${e.stateLabelColor};
1285
+ font-size: 10px;
1286
+ font-weight: bold;
1287
+ }
1288
+
1289
+ .node circle.state-start {
1290
+ fill: ${e.specialStateColor};
1291
+ stroke: ${e.specialStateColor};
1292
+ }
1293
+
1294
+ .node .fork-join {
1295
+ fill: ${e.specialStateColor};
1296
+ stroke: ${e.specialStateColor};
1297
+ }
1298
+
1299
+ .node circle.state-end {
1300
+ fill: ${e.innerEndBackground};
1301
+ stroke: ${e.background};
1302
+ stroke-width: 1.5
1303
+ }
1304
+ .end-state-inner {
1305
+ fill: ${e.compositeBackground || e.background};
1306
+ // stroke: ${e.background};
1307
+ stroke-width: 1.5
1308
+ }
1309
+
1310
+ .node rect {
1311
+ fill: ${e.stateBkg || e.mainBkg};
1312
+ stroke: ${e.stateBorder || e.nodeBorder};
1313
+ stroke-width: 1px;
1314
+ }
1315
+ .node polygon {
1316
+ fill: ${e.mainBkg};
1317
+ stroke: ${e.stateBorder || e.nodeBorder};;
1318
+ stroke-width: 1px;
1319
+ }
1320
+ #statediagram-barbEnd {
1321
+ fill: ${e.lineColor};
1322
+ }
1323
+
1324
+ .statediagram-cluster rect {
1325
+ fill: ${e.compositeTitleBackground};
1326
+ stroke: ${e.stateBorder || e.nodeBorder};
1327
+ stroke-width: 1px;
1328
+ }
1329
+
1330
+ .cluster-label, .nodeLabel {
1331
+ color: ${e.stateLabelColor};
1332
+ // line-height: 1;
1333
+ }
1334
+
1335
+ .statediagram-cluster rect.outer {
1336
+ rx: 5px;
1337
+ ry: 5px;
1338
+ }
1339
+ .statediagram-state .divider {
1340
+ stroke: ${e.stateBorder || e.nodeBorder};
1341
+ }
1342
+
1343
+ .statediagram-state .title-state {
1344
+ rx: 5px;
1345
+ ry: 5px;
1346
+ }
1347
+ .statediagram-cluster.statediagram-cluster .inner {
1348
+ fill: ${e.compositeBackground || e.background};
1349
+ }
1350
+ .statediagram-cluster.statediagram-cluster-alt .inner {
1351
+ fill: ${e.altBackground ? e.altBackground : "#efefef"};
1352
+ }
1353
+
1354
+ .statediagram-cluster .inner {
1355
+ rx:0;
1356
+ ry:0;
1357
+ }
1358
+
1359
+ .statediagram-state rect.basic {
1360
+ rx: 5px;
1361
+ ry: 5px;
1362
+ }
1363
+ .statediagram-state rect.divider {
1364
+ stroke-dasharray: 10,10;
1365
+ fill: ${e.altBackground ? e.altBackground : "#efefef"};
1366
+ }
1367
+
1368
+ .note-edge {
1369
+ stroke-dasharray: 5;
1370
+ }
1371
+
1372
+ .statediagram-note rect {
1373
+ fill: ${e.noteBkgColor};
1374
+ stroke: ${e.noteBorderColor};
1375
+ stroke-width: 1px;
1376
+ rx: 0;
1377
+ ry: 0;
1378
+ }
1379
+ .statediagram-note rect {
1380
+ fill: ${e.noteBkgColor};
1381
+ stroke: ${e.noteBorderColor};
1382
+ stroke-width: 1px;
1383
+ rx: 0;
1384
+ ry: 0;
1385
+ }
1386
+
1387
+ .statediagram-note text {
1388
+ fill: ${e.noteTextColor};
1389
+ }
1390
+
1391
+ .statediagram-note .nodeLabel {
1392
+ color: ${e.noteTextColor};
1393
+ }
1394
+ .statediagram .edgeLabel {
1395
+ color: red; // ${e.noteTextColor};
1396
+ }
1397
+
1398
+ #dependencyStart, #dependencyEnd {
1399
+ fill: ${e.lineColor};
1400
+ stroke: ${e.lineColor};
1401
+ stroke-width: 1;
1402
+ }
1403
+
1404
+ .statediagramTitleText {
1405
+ text-anchor: middle;
1406
+ font-size: 18px;
1407
+ fill: ${e.textColor};
1408
+ }
1409
+ `, "getStyles"), qe = je;
1410
+ export {
1411
+ Je as S,
1412
+ Xe as a,
1413
+ Ke as b,
1414
+ qe as s
1415
+ };