@loopstack/loopstack-studio 0.24.0 → 0.25.1

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 (1771) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +20 -0
  2. package/dist/api/auth.js +4 -2
  3. package/dist/api/client.js +9 -7
  4. package/dist/api/config.js +7 -5
  5. package/dist/api/dashboard.js +4 -2
  6. package/dist/api/documents.js +4 -2
  7. package/dist/api/index.js +21 -23
  8. package/dist/api/processor.js +5 -3
  9. package/dist/api/secrets.js +4 -2
  10. package/dist/api/workflows.js +11 -3
  11. package/dist/api/workspaces.js +4 -2
  12. package/dist/app/EnvironmentEmbedRoot.js +24 -31
  13. package/dist/components/ai-elements/code-block.js +53 -71
  14. package/dist/components/ai-elements/message.js +41 -82
  15. package/dist/components/ai-elements/prompt-input.js +162 -253
  16. package/dist/components/ai-elements/reasoning.js +78 -116
  17. package/dist/components/ai-elements/shimmer.js +23 -35
  18. package/dist/components/ai-elements/sources.js +29 -58
  19. package/dist/components/data-table/ConfirmDialog.js +14 -30
  20. package/dist/components/data-table/DataList.js +138 -198
  21. package/dist/components/data-table/DataTable.js +168 -234
  22. package/dist/components/data-table/DataTableBatchAction.js +18 -27
  23. package/dist/components/data-table/DataTableFilters.js +53 -78
  24. package/dist/components/data-table/DataTablePagination.js +72 -104
  25. package/dist/components/data-table/DataTableToolbar.js +53 -65
  26. package/dist/components/dynamic-form/ArrayController.js +85 -103
  27. package/dist/components/dynamic-form/CodeContent.js +28 -36
  28. package/dist/components/dynamic-form/Form.js +43 -56
  29. package/dist/components/dynamic-form/FormBody.js +12 -10
  30. package/dist/components/dynamic-form/FormElement.js +31 -41
  31. package/dist/components/dynamic-form/FormElementHeader.js +12 -20
  32. package/dist/components/dynamic-form/InputController.js +36 -38
  33. package/dist/components/dynamic-form/MarkdownContent.js +53 -74
  34. package/dist/components/dynamic-form/MermaidDiagram.js +22 -24
  35. package/dist/components/dynamic-form/ObjectController.js +24 -32
  36. package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +35 -47
  37. package/dist/components/dynamic-form/fields/CheckboxField.js +39 -48
  38. package/dist/components/dynamic-form/fields/CodeViewField.js +42 -50
  39. package/dist/components/dynamic-form/fields/InputField.js +62 -90
  40. package/dist/components/dynamic-form/fields/MarkdownViewField.js +16 -19
  41. package/dist/components/dynamic-form/fields/RadioField.js +46 -62
  42. package/dist/components/dynamic-form/fields/SelectField.js +40 -58
  43. package/dist/components/dynamic-form/fields/SliderField.js +94 -100
  44. package/dist/components/dynamic-form/fields/SwitchField.js +42 -61
  45. package/dist/components/dynamic-form/fields/TextareaField.js +53 -72
  46. package/dist/components/dynamic-form/fields/utils/text-validation-utils.js +4 -2
  47. package/dist/components/dynamic-form/hooks/useArrayDefaultValue.js +6 -5
  48. package/dist/components/dynamic-form/hooks/useFieldConfig.js +19 -20
  49. package/dist/components/dynamic-form/hooks/useMergeParentKey.js +4 -2
  50. package/dist/components/dynamic-form/hooks/useSortPropertyNames.js +4 -2
  51. package/dist/components/feedback/ErrorAlert.js +11 -17
  52. package/dist/components/feedback/ErrorBoundary.js +16 -14
  53. package/dist/components/feedback/ErrorSnackbar.js +13 -30
  54. package/dist/components/feedback/LoadingCentered.js +15 -28
  55. package/dist/components/feedback/Snackbar.js +43 -44
  56. package/dist/components/feedback/index.js +5 -5
  57. package/dist/components/index.js +47 -47
  58. package/dist/components/layout/MainLayout.js +17 -25
  59. package/dist/components/layout/StudioSidebar.js +132 -202
  60. package/dist/components/lists/CustomListView.js +49 -74
  61. package/dist/components/lists/ListView.js +66 -102
  62. package/dist/components/loopstack-elements/link.js +71 -109
  63. package/dist/components/loopstack-elements/tool.js +99 -0
  64. package/dist/components/messages/CompletionMessagePaper.js +53 -85
  65. package/dist/components/page/PageBreadcrumbs.js +64 -83
  66. package/dist/components/ui/DiscordLogo.js +16 -22
  67. package/dist/components/ui/GoogleLogo.js +40 -44
  68. package/dist/components/ui/accordion.js +31 -52
  69. package/dist/components/ui/alert-dialog.js +59 -109
  70. package/dist/components/ui/alert.js +22 -36
  71. package/dist/components/ui/avatar.js +21 -35
  72. package/dist/components/ui/badge.js +13 -17
  73. package/dist/components/ui/breadcrumb.js +46 -82
  74. package/dist/components/ui/button-group.js +5 -5
  75. package/dist/components/ui/button.js +17 -21
  76. package/dist/components/ui/card.js +40 -74
  77. package/dist/components/ui/checkbox.js +17 -23
  78. package/dist/components/ui/collapsible.js +17 -25
  79. package/dist/components/ui/command.js +1 -2
  80. package/dist/components/ui/context-menu.js +32 -52
  81. package/dist/components/ui/dialog.js +62 -107
  82. package/dist/components/ui/drawer.js +54 -99
  83. package/dist/components/ui/dropdown-menu.js +91 -159
  84. package/dist/components/ui/hover-card.js +1 -2
  85. package/dist/components/ui/input-group.js +36 -56
  86. package/dist/components/ui/input.js +11 -15
  87. package/dist/components/ui/label.js +11 -15
  88. package/dist/components/ui/popover.js +25 -38
  89. package/dist/components/ui/radio-group.js +22 -33
  90. package/dist/components/ui/scroll-area.js +28 -43
  91. package/dist/components/ui/select.js +73 -134
  92. package/dist/components/ui/separator.js +13 -17
  93. package/dist/components/ui/sheet.js +60 -105
  94. package/dist/components/ui/sidebar.js +269 -451
  95. package/dist/components/ui/skeleton.js +10 -14
  96. package/dist/components/ui/slider.js +17 -15
  97. package/dist/components/ui/switch.js +15 -21
  98. package/dist/components/ui/table.js +46 -85
  99. package/dist/components/ui/tabs.js +26 -45
  100. package/dist/components/ui/textarea.js +10 -14
  101. package/dist/components/ui/tooltip.js +26 -41
  102. package/dist/components/ui-widgets/UiActions.js +30 -31
  103. package/dist/components/ui-widgets/UiWidget.js +34 -55
  104. package/dist/components/ui-widgets/widgets/AiPromptInput.js +28 -42
  105. package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +16 -19
  106. package/dist/components/ui-widgets/widgets/SandboxRun.js +19 -26
  107. package/dist/components/ui-widgets/widgets/SubmitButton.js +15 -18
  108. package/dist/events/api-client-events.js +4 -2
  109. package/dist/events/sse-client-events.js +4 -2
  110. package/dist/features/code-explorer/CodeExplorer.js +1 -2
  111. package/dist/features/code-explorer/components/CodeExplorerTree.js +2 -2
  112. package/dist/features/code-explorer/components/CodeExplorerTreeNode.js +31 -29
  113. package/dist/features/code-explorer/components/FileContentViewer.js +120 -185
  114. package/dist/features/code-explorer/components/FileTabsBar.js +1 -2
  115. package/dist/features/code-explorer/components/FileTabsBarBase.js +134 -169
  116. package/dist/features/code-explorer/index.js +1 -1
  117. package/dist/features/code-explorer/providers/CodeExplorerProvider.js +4 -4
  118. package/dist/features/code-explorer/utils/fileIcons.js +41 -39
  119. package/dist/features/dashboard/Dashboard.js +79 -121
  120. package/dist/features/dashboard/RunItem.js +50 -68
  121. package/dist/features/dashboard/RunList.js +17 -28
  122. package/dist/features/debug/components/ConfigFlowViewer.js +49 -67
  123. package/dist/features/debug/components/WorkflowDebugHeader.js +32 -0
  124. package/dist/features/debug/components/WorkflowDebugLegend.js +56 -0
  125. package/dist/features/debug/components/WorkflowFlowViewer.js +90 -0
  126. package/dist/features/debug/components/workflow-flow/StateNode.js +82 -0
  127. package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +41 -0
  128. package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +64 -0
  129. package/dist/features/debug/index.js +3 -3
  130. package/dist/features/debug/lib/edge-paths.js +33 -31
  131. package/dist/features/debug/lib/flow-utils.js +156 -162
  132. package/dist/features/documents/DocumentRenderer.js +77 -45
  133. package/dist/features/documents/components/DocumentItem.js +21 -24
  134. package/dist/features/documents/components/DocumentList.js +39 -42
  135. package/dist/features/documents/components/DocumentMetadataPills.js +44 -59
  136. package/dist/features/documents/document-details/DocumentDetails.js +298 -413
  137. package/dist/features/documents/document-details/PromptDetails.js +105 -142
  138. package/dist/features/documents/index.js +4 -4
  139. package/dist/features/documents/renderers/AiMessage.js +39 -48
  140. package/dist/features/documents/renderers/AiMessageContent.js +108 -164
  141. package/dist/features/documents/renderers/ChoicesRenderer.js +80 -0
  142. package/dist/features/documents/renderers/ClaudeMessage.js +74 -91
  143. package/dist/features/documents/renderers/ConfirmPromptRenderer.js +47 -0
  144. package/dist/features/documents/renderers/DocumentDebugRenderer.js +26 -30
  145. package/dist/features/documents/renderers/DocumentFormRenderer.js +80 -72
  146. package/dist/features/documents/renderers/DocumentMessageRenderer.js +10 -9
  147. package/dist/features/documents/renderers/ErrorMessageRenderer.js +11 -13
  148. package/dist/features/documents/renderers/LinkMessageRenderer.js +15 -16
  149. package/dist/features/documents/renderers/MarkdownMessageRenderer.js +8 -10
  150. package/dist/features/documents/renderers/PlainMessageRenderer.js +7 -9
  151. package/dist/features/documents/renderers/SecretInputRenderer.js +89 -0
  152. package/dist/features/documents/renderers/TextPromptRenderer.js +48 -0
  153. package/dist/features/documents/renderers/useDocumentTransition.js +32 -0
  154. package/dist/features/health/LocalHealthCheck.js +54 -53
  155. package/dist/features/health/index.js +1 -1
  156. package/dist/features/oauth/OAuthCallbackPage.js +2 -2
  157. package/dist/features/oauth/OAuthPromptRenderer.js +135 -184
  158. package/dist/features/oauth/index.js +2 -2
  159. package/dist/features/oauth/useOAuthPopup.js +52 -71
  160. package/dist/features/runs/Runs.js +145 -187
  161. package/dist/features/workbench/Workbench.js +72 -98
  162. package/dist/features/workbench/WorkflowItem.js +49 -67
  163. package/dist/features/workbench/WorkflowList.js +50 -82
  164. package/dist/features/workbench/components/NewRunDialog.js +214 -311
  165. package/dist/features/workbench/components/RemoteFileTabsBar.js +18 -17
  166. package/dist/features/workbench/components/RemoteFileTree.js +54 -85
  167. package/dist/features/workbench/components/WorkbenchFilesPanel.js +52 -63
  168. package/dist/features/workbench/components/WorkbenchFloatingPanel.js +34 -90
  169. package/dist/features/workbench/components/WorkbenchFlowPanel.js +35 -46
  170. package/dist/features/workbench/components/WorkbenchIconSidebar.js +50 -80
  171. package/dist/features/workbench/components/WorkbenchPreviewPanel.js +52 -50
  172. package/dist/features/workbench/components/WorkbenchSecretsPanel.js +143 -172
  173. package/dist/features/workbench/components/WorkbenchSettingsModal.js +50 -86
  174. package/dist/features/workbench/components/WorkflowForms.js +17 -22
  175. package/dist/features/workbench/components/WorkflowHistoryItem.js +96 -143
  176. package/dist/features/workbench/components/WorkflowHistoryList.js +33 -0
  177. package/dist/features/workbench/components/buttons/WorkflowButtons.js +70 -97
  178. package/dist/features/workbench/hooks/useAutoScrollBottom.js +21 -25
  179. package/dist/features/workbench/hooks/useScrollToListItem.js +20 -21
  180. package/dist/features/workbench/hooks/useWorkflowData.js +32 -45
  181. package/dist/features/workbench/hooks/useWorkflowListState.js +13 -49
  182. package/dist/features/workbench/index.js +7 -8
  183. package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +123 -138
  184. package/dist/features/workbench/providers/ScrollProvider.js +16 -20
  185. package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +76 -75
  186. package/dist/features/workspaces/Workspaces.js +161 -226
  187. package/dist/features/workspaces/components/CreateWorkspace.js +137 -194
  188. package/dist/features/workspaces/components/EnvironmentSlotSelector.js +27 -25
  189. package/dist/features/workspaces/components/ExecutionTimeline.js +144 -185
  190. package/dist/features/workspaces/components/NewWorkflowRunDialog.js +23 -0
  191. package/dist/features/workspaces/components/WorkflowRunForm.js +104 -0
  192. package/dist/features/workspaces/components/WorkspaceHomePage.js +60 -81
  193. package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +58 -0
  194. package/dist/features/workspaces/components/workflow-form/HeaderSection.js +29 -0
  195. package/dist/features/workspaces/components/workflow-form/SelectionView.js +66 -0
  196. package/dist/features/workspaces/index.js +3 -3
  197. package/dist/frontend/studio/node_modules/lodash/_Symbol.js +9 -0
  198. package/dist/frontend/studio/node_modules/lodash/_baseGetTag.js +15 -0
  199. package/dist/frontend/studio/node_modules/lodash/_baseTrim.js +13 -0
  200. package/dist/frontend/studio/node_modules/lodash/_freeGlobal.js +8 -0
  201. package/dist/frontend/studio/node_modules/lodash/_getRawTag.js +19 -0
  202. package/dist/frontend/studio/node_modules/lodash/_objectToString.js +12 -0
  203. package/dist/frontend/studio/node_modules/lodash/_root.js +10 -0
  204. package/dist/frontend/studio/node_modules/lodash/_trimmedEndIndex.js +13 -0
  205. package/dist/{node_modules → frontend/studio/node_modules}/lodash/debounce.js +10 -8
  206. package/dist/frontend/studio/node_modules/lodash/isObject.js +12 -0
  207. package/dist/frontend/studio/node_modules/lodash/isObjectLike.js +11 -0
  208. package/dist/frontend/studio/node_modules/lodash/isSymbol.js +14 -0
  209. package/dist/frontend/studio/node_modules/lodash/now.js +12 -0
  210. package/dist/frontend/studio/node_modules/lodash/toNumber.js +24 -0
  211. package/dist/hooks/index.js +6 -6
  212. package/dist/hooks/query-keys.js +39 -78
  213. package/dist/hooks/use-mobile.js +12 -11
  214. package/dist/hooks/useApi.js +16 -14
  215. package/dist/hooks/useAuth.js +38 -53
  216. package/dist/hooks/useConfig.js +26 -37
  217. package/dist/hooks/useDashboard.js +12 -15
  218. package/dist/hooks/useDebounce.js +12 -11
  219. package/dist/hooks/useDocuments.js +23 -35
  220. package/dist/hooks/useFiles.js +1 -2
  221. package/dist/hooks/useProcessor.js +14 -17
  222. package/dist/hooks/useSecrets.js +45 -64
  223. package/dist/hooks/useWorkflows.js +113 -78
  224. package/dist/hooks/useWorkspaces.js +83 -123
  225. package/dist/index.d.ts +0 -1305
  226. package/dist/index.js +80 -80
  227. package/dist/lib/requireParam.js +4 -2
  228. package/dist/lib/utils.js +7 -5
  229. package/dist/loopstack-studio.css +1 -1
  230. package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +6 -4
  231. package/dist/node_modules/@braintree/sanitize-url/dist/index.js +8 -6
  232. package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +19 -20
  233. package/dist/node_modules/@chevrotain/gast/lib/src/model.js +87 -88
  234. package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +16 -13
  235. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +2 -2
  236. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +4 -2
  237. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +36 -34
  238. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +138 -110
  239. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +13 -11
  240. package/dist/node_modules/@chevrotain/utils/lib/src/print.js +5 -3
  241. package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +4 -2
  242. package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +4 -2
  243. package/dist/node_modules/@dagrejs/dagre/dist/dagre.esm.js +1812 -1913
  244. package/dist/node_modules/@iconify/utils/lib/customisations/defaults.js +8 -6
  245. package/dist/node_modules/@iconify/utils/lib/icon/defaults.js +10 -8
  246. package/dist/node_modules/@iconify/utils/lib/icon/merge.js +8 -6
  247. package/dist/node_modules/@iconify/utils/lib/icon/name.js +8 -6
  248. package/dist/node_modules/@iconify/utils/lib/icon/transformations.js +4 -2
  249. package/dist/node_modules/@iconify/utils/lib/icon-set/get-icon.js +12 -10
  250. package/dist/node_modules/@iconify/utils/lib/icon-set/tree.js +4 -2
  251. package/dist/node_modules/@iconify/utils/lib/svg/build.js +20 -18
  252. package/dist/node_modules/@iconify/utils/lib/svg/defs.js +8 -6
  253. package/dist/node_modules/@iconify/utils/lib/svg/html.js +4 -2
  254. package/dist/node_modules/@iconify/utils/lib/svg/id.js +10 -8
  255. package/dist/node_modules/@iconify/utils/lib/svg/size.js +7 -5
  256. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +3 -0
  257. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +26 -0
  258. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +26 -0
  259. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +38 -0
  260. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +33 -0
  261. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +26 -0
  262. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +26 -0
  263. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +1208 -0
  264. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +26 -0
  265. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +67 -0
  266. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +34 -0
  267. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +3 -0
  268. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +3 -0
  269. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +3 -0
  270. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +3 -0
  271. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +3 -0
  272. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +3 -0
  273. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +3 -0
  274. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +3 -0
  275. package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +59 -45
  276. package/dist/node_modules/@shikijs/core/dist/index.js +583 -1119
  277. package/dist/node_modules/@shikijs/engine-oniguruma/dist/index.js +163 -148
  278. package/dist/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.js +4 -2
  279. package/dist/node_modules/@shikijs/langs/dist/abap.js +3 -2
  280. package/dist/node_modules/@shikijs/langs/dist/actionscript-3.js +3 -2
  281. package/dist/node_modules/@shikijs/langs/dist/ada.js +3 -2
  282. package/dist/node_modules/@shikijs/langs/dist/angular-expression.js +3 -2
  283. package/dist/node_modules/@shikijs/langs/dist/angular-html.js +15 -13
  284. package/dist/node_modules/@shikijs/langs/dist/angular-inline-style.js +5 -3
  285. package/dist/node_modules/@shikijs/langs/dist/angular-inline-template.js +9 -7
  286. package/dist/node_modules/@shikijs/langs/dist/angular-let-declaration.js +5 -3
  287. package/dist/node_modules/@shikijs/langs/dist/angular-template-blocks.js +9 -7
  288. package/dist/node_modules/@shikijs/langs/dist/angular-template.js +5 -3
  289. package/dist/node_modules/@shikijs/langs/dist/angular-ts.js +17 -15
  290. package/dist/node_modules/@shikijs/langs/dist/apache.js +3 -2
  291. package/dist/node_modules/@shikijs/langs/dist/apex.js +3 -2
  292. package/dist/node_modules/@shikijs/langs/dist/apl.js +15 -13
  293. package/dist/node_modules/@shikijs/langs/dist/applescript.js +3 -2
  294. package/dist/node_modules/@shikijs/langs/dist/ara.js +3 -2
  295. package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +3 -2
  296. package/dist/node_modules/@shikijs/langs/dist/asm.js +3 -2
  297. package/dist/node_modules/@shikijs/langs/dist/astro.js +17 -15
  298. package/dist/node_modules/@shikijs/langs/dist/awk.js +3 -2
  299. package/dist/node_modules/@shikijs/langs/dist/ballerina.js +3 -2
  300. package/dist/node_modules/@shikijs/langs/dist/bat.js +3 -2
  301. package/dist/node_modules/@shikijs/langs/dist/beancount.js +3 -2
  302. package/dist/node_modules/@shikijs/langs/dist/berry.js +3 -2
  303. package/dist/node_modules/@shikijs/langs/dist/bibtex.js +3 -2
  304. package/dist/node_modules/@shikijs/langs/dist/bicep.js +3 -2
  305. package/dist/node_modules/@shikijs/langs/dist/bird2.js +3 -2
  306. package/dist/node_modules/@shikijs/langs/dist/blade.js +19 -17
  307. package/dist/node_modules/@shikijs/langs/dist/bsl.js +5 -3
  308. package/dist/node_modules/@shikijs/langs/dist/c.js +3 -2
  309. package/dist/node_modules/@shikijs/langs/dist/c3.js +3 -2
  310. package/dist/node_modules/@shikijs/langs/dist/cadence.js +3 -2
  311. package/dist/node_modules/@shikijs/langs/dist/cairo.js +5 -3
  312. package/dist/node_modules/@shikijs/langs/dist/clarity.js +3 -2
  313. package/dist/node_modules/@shikijs/langs/dist/clojure.js +3 -2
  314. package/dist/node_modules/@shikijs/langs/dist/cmake.js +3 -2
  315. package/dist/node_modules/@shikijs/langs/dist/cobol.js +9 -7
  316. package/dist/node_modules/@shikijs/langs/dist/codeowners.js +3 -2
  317. package/dist/node_modules/@shikijs/langs/dist/codeql.js +3 -2
  318. package/dist/node_modules/@shikijs/langs/dist/coffee.js +5 -3
  319. package/dist/node_modules/@shikijs/langs/dist/common-lisp.js +3 -2
  320. package/dist/node_modules/@shikijs/langs/dist/coq.js +3 -2
  321. package/dist/node_modules/@shikijs/langs/dist/cpp-macro.js +11 -9
  322. package/dist/node_modules/@shikijs/langs/dist/cpp.js +13 -11
  323. package/dist/node_modules/@shikijs/langs/dist/crystal.js +17 -15
  324. package/dist/node_modules/@shikijs/langs/dist/csharp.js +3 -2
  325. package/dist/node_modules/@shikijs/langs/dist/css.js +3 -2
  326. package/dist/node_modules/@shikijs/langs/dist/csv.js +3 -2
  327. package/dist/node_modules/@shikijs/langs/dist/cue.js +3 -2
  328. package/dist/node_modules/@shikijs/langs/dist/cypher.js +3 -2
  329. package/dist/node_modules/@shikijs/langs/dist/d.js +3 -2
  330. package/dist/node_modules/@shikijs/langs/dist/dart.js +3 -2
  331. package/dist/node_modules/@shikijs/langs/dist/dax.js +3 -2
  332. package/dist/node_modules/@shikijs/langs/dist/desktop.js +3 -2
  333. package/dist/node_modules/@shikijs/langs/dist/diff.js +3 -2
  334. package/dist/node_modules/@shikijs/langs/dist/docker.js +3 -2
  335. package/dist/node_modules/@shikijs/langs/dist/dotenv.js +3 -2
  336. package/dist/node_modules/@shikijs/langs/dist/dream-maker.js +3 -2
  337. package/dist/node_modules/@shikijs/langs/dist/edge.js +11 -9
  338. package/dist/node_modules/@shikijs/langs/dist/elixir.js +5 -3
  339. package/dist/node_modules/@shikijs/langs/dist/elm.js +5 -3
  340. package/dist/node_modules/@shikijs/langs/dist/emacs-lisp.js +3 -2
  341. package/dist/node_modules/@shikijs/langs/dist/erb.js +9 -7
  342. package/dist/node_modules/@shikijs/langs/dist/erlang.js +5 -3
  343. package/dist/node_modules/@shikijs/langs/dist/es-tag-css.js +11 -9
  344. package/dist/node_modules/@shikijs/langs/dist/es-tag-glsl.js +11 -9
  345. package/dist/node_modules/@shikijs/langs/dist/es-tag-html.js +11 -9
  346. package/dist/node_modules/@shikijs/langs/dist/es-tag-sql.js +9 -7
  347. package/dist/node_modules/@shikijs/langs/dist/es-tag-xml.js +5 -3
  348. package/dist/node_modules/@shikijs/langs/dist/fennel.js +3 -2
  349. package/dist/node_modules/@shikijs/langs/dist/fish.js +3 -2
  350. package/dist/node_modules/@shikijs/langs/dist/fluent.js +3 -2
  351. package/dist/node_modules/@shikijs/langs/dist/fortran-fixed-form.js +5 -3
  352. package/dist/node_modules/@shikijs/langs/dist/fortran-free-form.js +3 -2
  353. package/dist/node_modules/@shikijs/langs/dist/fsharp.js +5 -3
  354. package/dist/node_modules/@shikijs/langs/dist/gdresource.js +9 -7
  355. package/dist/node_modules/@shikijs/langs/dist/gdscript.js +3 -2
  356. package/dist/node_modules/@shikijs/langs/dist/gdshader.js +3 -2
  357. package/dist/node_modules/@shikijs/langs/dist/genie.js +3 -2
  358. package/dist/node_modules/@shikijs/langs/dist/gherkin.js +3 -2
  359. package/dist/node_modules/@shikijs/langs/dist/git-commit.js +5 -3
  360. package/dist/node_modules/@shikijs/langs/dist/git-rebase.js +5 -3
  361. package/dist/node_modules/@shikijs/langs/dist/gleam.js +3 -2
  362. package/dist/node_modules/@shikijs/langs/dist/glimmer-js.js +13 -11
  363. package/dist/node_modules/@shikijs/langs/dist/glimmer-ts.js +13 -11
  364. package/dist/node_modules/@shikijs/langs/dist/glsl.js +5 -3
  365. package/dist/node_modules/@shikijs/langs/dist/gn.js +3 -2
  366. package/dist/node_modules/@shikijs/langs/dist/gnuplot.js +3 -2
  367. package/dist/node_modules/@shikijs/langs/dist/go.js +3 -2
  368. package/dist/node_modules/@shikijs/langs/dist/graphql.js +13 -11
  369. package/dist/node_modules/@shikijs/langs/dist/groovy.js +3 -2
  370. package/dist/node_modules/@shikijs/langs/dist/hack.js +9 -7
  371. package/dist/node_modules/@shikijs/langs/dist/haml.js +9 -7
  372. package/dist/node_modules/@shikijs/langs/dist/handlebars.js +13 -11
  373. package/dist/node_modules/@shikijs/langs/dist/haskell.js +3 -2
  374. package/dist/node_modules/@shikijs/langs/dist/haxe.js +3 -2
  375. package/dist/node_modules/@shikijs/langs/dist/hcl.js +3 -2
  376. package/dist/node_modules/@shikijs/langs/dist/hjson.js +3 -2
  377. package/dist/node_modules/@shikijs/langs/dist/hlsl.js +3 -2
  378. package/dist/node_modules/@shikijs/langs/dist/html-derivative.js +5 -3
  379. package/dist/node_modules/@shikijs/langs/dist/html.js +9 -7
  380. package/dist/node_modules/@shikijs/langs/dist/http.js +13 -11
  381. package/dist/node_modules/@shikijs/langs/dist/hurl.js +11 -9
  382. package/dist/node_modules/@shikijs/langs/dist/hxml.js +5 -3
  383. package/dist/node_modules/@shikijs/langs/dist/hy.js +3 -2
  384. package/dist/node_modules/@shikijs/langs/dist/imba.js +3 -2
  385. package/dist/node_modules/@shikijs/langs/dist/ini.js +3 -2
  386. package/dist/node_modules/@shikijs/langs/dist/java.js +3 -2
  387. package/dist/node_modules/@shikijs/langs/dist/javascript.js +3 -2
  388. package/dist/node_modules/@shikijs/langs/dist/jinja-html.js +5 -3
  389. package/dist/node_modules/@shikijs/langs/dist/jinja.js +5 -3
  390. package/dist/node_modules/@shikijs/langs/dist/jison.js +5 -3
  391. package/dist/node_modules/@shikijs/langs/dist/json.js +3 -2
  392. package/dist/node_modules/@shikijs/langs/dist/json5.js +3 -2
  393. package/dist/node_modules/@shikijs/langs/dist/jsonc.js +3 -2
  394. package/dist/node_modules/@shikijs/langs/dist/jsonl.js +3 -2
  395. package/dist/node_modules/@shikijs/langs/dist/jsonnet.js +3 -2
  396. package/dist/node_modules/@shikijs/langs/dist/jssm.js +3 -2
  397. package/dist/node_modules/@shikijs/langs/dist/jsx.js +3 -2
  398. package/dist/node_modules/@shikijs/langs/dist/julia.js +15 -13
  399. package/dist/node_modules/@shikijs/langs/dist/just.js +17 -15
  400. package/dist/node_modules/@shikijs/langs/dist/kdl.js +3 -2
  401. package/dist/node_modules/@shikijs/langs/dist/kotlin.js +3 -2
  402. package/dist/node_modules/@shikijs/langs/dist/kusto.js +3 -2
  403. package/dist/node_modules/@shikijs/langs/dist/latex.js +5 -3
  404. package/dist/node_modules/@shikijs/langs/dist/lean.js +3 -2
  405. package/dist/node_modules/@shikijs/langs/dist/less.js +3 -2
  406. package/dist/node_modules/@shikijs/langs/dist/liquid.js +13 -11
  407. package/dist/node_modules/@shikijs/langs/dist/llvm.js +3 -2
  408. package/dist/node_modules/@shikijs/langs/dist/log.js +3 -2
  409. package/dist/node_modules/@shikijs/langs/dist/logo.js +3 -2
  410. package/dist/node_modules/@shikijs/langs/dist/lua.js +5 -3
  411. package/dist/node_modules/@shikijs/langs/dist/luau.js +3 -2
  412. package/dist/node_modules/@shikijs/langs/dist/make.js +3 -2
  413. package/dist/node_modules/@shikijs/langs/dist/markdown-nix.js +3 -2
  414. package/dist/node_modules/@shikijs/langs/dist/markdown-vue.js +3 -2
  415. package/dist/node_modules/@shikijs/langs/dist/markdown.js +3 -2
  416. package/dist/node_modules/@shikijs/langs/dist/marko.js +13 -11
  417. package/dist/node_modules/@shikijs/langs/dist/matlab.js +3 -2
  418. package/dist/node_modules/@shikijs/langs/dist/mdc.js +11 -9
  419. package/dist/node_modules/@shikijs/langs/dist/mdx.js +3 -2
  420. package/dist/node_modules/@shikijs/langs/dist/mermaid.js +3 -2
  421. package/dist/node_modules/@shikijs/langs/dist/mipsasm.js +3 -2
  422. package/dist/node_modules/@shikijs/langs/dist/mojo.js +3 -2
  423. package/dist/node_modules/@shikijs/langs/dist/moonbit.js +3 -2
  424. package/dist/node_modules/@shikijs/langs/dist/move.js +3 -2
  425. package/dist/node_modules/@shikijs/langs/dist/narrat.js +3 -2
  426. package/dist/node_modules/@shikijs/langs/dist/nextflow-groovy.js +3 -2
  427. package/dist/node_modules/@shikijs/langs/dist/nextflow.js +5 -3
  428. package/dist/node_modules/@shikijs/langs/dist/nginx.js +5 -3
  429. package/dist/node_modules/@shikijs/langs/dist/nim.js +19 -17
  430. package/dist/node_modules/@shikijs/langs/dist/nix.js +5 -3
  431. package/dist/node_modules/@shikijs/langs/dist/nushell.js +3 -2
  432. package/dist/node_modules/@shikijs/langs/dist/objective-c.js +3 -2
  433. package/dist/node_modules/@shikijs/langs/dist/objective-cpp.js +3 -2
  434. package/dist/node_modules/@shikijs/langs/dist/ocaml.js +3 -2
  435. package/dist/node_modules/@shikijs/langs/dist/odin.js +3 -2
  436. package/dist/node_modules/@shikijs/langs/dist/openscad.js +3 -2
  437. package/dist/node_modules/@shikijs/langs/dist/pascal.js +3 -2
  438. package/dist/node_modules/@shikijs/langs/dist/perl.js +15 -13
  439. package/dist/node_modules/@shikijs/langs/dist/php.js +17 -15
  440. package/dist/node_modules/@shikijs/langs/dist/pkl.js +3 -2
  441. package/dist/node_modules/@shikijs/langs/dist/plsql.js +3 -2
  442. package/dist/node_modules/@shikijs/langs/dist/po.js +3 -2
  443. package/dist/node_modules/@shikijs/langs/dist/polar.js +3 -2
  444. package/dist/node_modules/@shikijs/langs/dist/postcss.js +3 -2
  445. package/dist/node_modules/@shikijs/langs/dist/powerquery.js +3 -2
  446. package/dist/node_modules/@shikijs/langs/dist/powershell.js +3 -2
  447. package/dist/node_modules/@shikijs/langs/dist/prisma.js +3 -2
  448. package/dist/node_modules/@shikijs/langs/dist/prolog.js +3 -2
  449. package/dist/node_modules/@shikijs/langs/dist/proto.js +3 -2
  450. package/dist/node_modules/@shikijs/langs/dist/pug.js +11 -9
  451. package/dist/node_modules/@shikijs/langs/dist/puppet.js +3 -2
  452. package/dist/node_modules/@shikijs/langs/dist/purescript.js +3 -2
  453. package/dist/node_modules/@shikijs/langs/dist/python.js +3 -2
  454. package/dist/node_modules/@shikijs/langs/dist/qml.js +5 -3
  455. package/dist/node_modules/@shikijs/langs/dist/qmldir.js +3 -2
  456. package/dist/node_modules/@shikijs/langs/dist/qss.js +3 -2
  457. package/dist/node_modules/@shikijs/langs/dist/r.js +3 -2
  458. package/dist/node_modules/@shikijs/langs/dist/racket.js +3 -2
  459. package/dist/node_modules/@shikijs/langs/dist/raku.js +3 -2
  460. package/dist/node_modules/@shikijs/langs/dist/razor.js +9 -7
  461. package/dist/node_modules/@shikijs/langs/dist/reg.js +3 -2
  462. package/dist/node_modules/@shikijs/langs/dist/regexp.js +3 -2
  463. package/dist/node_modules/@shikijs/langs/dist/rel.js +3 -2
  464. package/dist/node_modules/@shikijs/langs/dist/riscv.js +3 -2
  465. package/dist/node_modules/@shikijs/langs/dist/ron.js +3 -2
  466. package/dist/node_modules/@shikijs/langs/dist/rosmsg.js +3 -2
  467. package/dist/node_modules/@shikijs/langs/dist/rst.js +21 -19
  468. package/dist/node_modules/@shikijs/langs/dist/ruby.js +29 -27
  469. package/dist/node_modules/@shikijs/langs/dist/rust.js +3 -2
  470. package/dist/node_modules/@shikijs/langs/dist/sas.js +5 -3
  471. package/dist/node_modules/@shikijs/langs/dist/sass.js +3 -2
  472. package/dist/node_modules/@shikijs/langs/dist/scala.js +3 -2
  473. package/dist/node_modules/@shikijs/langs/dist/scheme.js +3 -2
  474. package/dist/node_modules/@shikijs/langs/dist/scss.js +5 -3
  475. package/dist/node_modules/@shikijs/langs/dist/sdbl.js +3 -2
  476. package/dist/node_modules/@shikijs/langs/dist/shaderlab.js +5 -3
  477. package/dist/node_modules/@shikijs/langs/dist/shellscript.js +3 -2
  478. package/dist/node_modules/@shikijs/langs/dist/shellsession.js +5 -3
  479. package/dist/node_modules/@shikijs/langs/dist/smalltalk.js +3 -2
  480. package/dist/node_modules/@shikijs/langs/dist/solidity.js +3 -2
  481. package/dist/node_modules/@shikijs/langs/dist/soy.js +5 -3
  482. package/dist/node_modules/@shikijs/langs/dist/sparql.js +5 -3
  483. package/dist/node_modules/@shikijs/langs/dist/splunk.js +3 -2
  484. package/dist/node_modules/@shikijs/langs/dist/sql.js +3 -2
  485. package/dist/node_modules/@shikijs/langs/dist/ssh-config.js +3 -2
  486. package/dist/node_modules/@shikijs/langs/dist/stata.js +5 -3
  487. package/dist/node_modules/@shikijs/langs/dist/stylus.js +3 -2
  488. package/dist/node_modules/@shikijs/langs/dist/surrealql.js +5 -3
  489. package/dist/node_modules/@shikijs/langs/dist/svelte.js +13 -11
  490. package/dist/node_modules/@shikijs/langs/dist/swift.js +3 -2
  491. package/dist/node_modules/@shikijs/langs/dist/system-verilog.js +3 -2
  492. package/dist/node_modules/@shikijs/langs/dist/systemd.js +3 -2
  493. package/dist/node_modules/@shikijs/langs/dist/talonscript.js +3 -2
  494. package/dist/node_modules/@shikijs/langs/dist/tasl.js +3 -2
  495. package/dist/node_modules/@shikijs/langs/dist/tcl.js +3 -2
  496. package/dist/node_modules/@shikijs/langs/dist/templ.js +11 -9
  497. package/dist/node_modules/@shikijs/langs/dist/terraform.js +3 -2
  498. package/dist/node_modules/@shikijs/langs/dist/tex.js +5 -3
  499. package/dist/node_modules/@shikijs/langs/dist/toml.js +3 -2
  500. package/dist/node_modules/@shikijs/langs/dist/ts-tags.js +17 -15
  501. package/dist/node_modules/@shikijs/langs/dist/tsv.js +3 -2
  502. package/dist/node_modules/@shikijs/langs/dist/tsx.js +3 -2
  503. package/dist/node_modules/@shikijs/langs/dist/turtle.js +3 -2
  504. package/dist/node_modules/@shikijs/langs/dist/twig.js +17 -15
  505. package/dist/node_modules/@shikijs/langs/dist/typescript.js +3 -2
  506. package/dist/node_modules/@shikijs/langs/dist/typespec.js +3 -2
  507. package/dist/node_modules/@shikijs/langs/dist/typst.js +3 -2
  508. package/dist/node_modules/@shikijs/langs/dist/v.js +3 -2
  509. package/dist/node_modules/@shikijs/langs/dist/vala.js +3 -2
  510. package/dist/node_modules/@shikijs/langs/dist/vb.js +3 -2
  511. package/dist/node_modules/@shikijs/langs/dist/verilog.js +3 -2
  512. package/dist/node_modules/@shikijs/langs/dist/vhdl.js +3 -2
  513. package/dist/node_modules/@shikijs/langs/dist/viml.js +3 -2
  514. package/dist/node_modules/@shikijs/langs/dist/vue-directives.js +3 -2
  515. package/dist/node_modules/@shikijs/langs/dist/vue-html.js +5 -3
  516. package/dist/node_modules/@shikijs/langs/dist/vue-interpolations.js +3 -2
  517. package/dist/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.js +5 -3
  518. package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +17 -15
  519. package/dist/node_modules/@shikijs/langs/dist/vue.js +25 -23
  520. package/dist/node_modules/@shikijs/langs/dist/vyper.js +3 -2
  521. package/dist/node_modules/@shikijs/langs/dist/wasm.js +3 -2
  522. package/dist/node_modules/@shikijs/langs/dist/wenyan.js +3 -2
  523. package/dist/node_modules/@shikijs/langs/dist/wgsl.js +3 -2
  524. package/dist/node_modules/@shikijs/langs/dist/wikitext.js +3 -2
  525. package/dist/node_modules/@shikijs/langs/dist/wit.js +3 -2
  526. package/dist/node_modules/@shikijs/langs/dist/wolfram.js +3 -2
  527. package/dist/node_modules/@shikijs/langs/dist/xml.js +5 -3
  528. package/dist/node_modules/@shikijs/langs/dist/xsl.js +5 -3
  529. package/dist/node_modules/@shikijs/langs/dist/yaml.js +3 -2
  530. package/dist/node_modules/@shikijs/langs/dist/zenscript.js +3 -2
  531. package/dist/node_modules/@shikijs/langs/dist/zig.js +3 -2
  532. package/dist/node_modules/@shikijs/primitive/dist/index.js +540 -0
  533. package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +4 -2
  534. package/dist/node_modules/@shikijs/themes/dist/aurora-x.js +4 -2
  535. package/dist/node_modules/@shikijs/themes/dist/ayu-dark.js +4 -2
  536. package/dist/node_modules/@shikijs/themes/dist/ayu-light.js +4 -2
  537. package/dist/node_modules/@shikijs/themes/dist/ayu-mirage.js +4 -2
  538. package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +4 -2
  539. package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +4 -2
  540. package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +4 -2
  541. package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +4 -2
  542. package/dist/node_modules/@shikijs/themes/dist/dark-plus.js +4 -2
  543. package/dist/node_modules/@shikijs/themes/dist/dracula-soft.js +4 -2
  544. package/dist/node_modules/@shikijs/themes/dist/dracula.js +4 -2
  545. package/dist/node_modules/@shikijs/themes/dist/everforest-dark.js +4 -2
  546. package/dist/node_modules/@shikijs/themes/dist/everforest-light.js +4 -2
  547. package/dist/node_modules/@shikijs/themes/dist/github-dark-default.js +4 -2
  548. package/dist/node_modules/@shikijs/themes/dist/github-dark-dimmed.js +4 -2
  549. package/dist/node_modules/@shikijs/themes/dist/github-dark-high-contrast.js +4 -2
  550. package/dist/node_modules/@shikijs/themes/dist/github-dark.js +4 -2
  551. package/dist/node_modules/@shikijs/themes/dist/github-light-default.js +4 -2
  552. package/dist/node_modules/@shikijs/themes/dist/github-light-high-contrast.js +4 -2
  553. package/dist/node_modules/@shikijs/themes/dist/github-light.js +4 -2
  554. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +4 -2
  555. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +4 -2
  556. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +4 -2
  557. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +4 -2
  558. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +4 -2
  559. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +4 -2
  560. package/dist/node_modules/@shikijs/themes/dist/horizon-bright.js +4 -2
  561. package/dist/node_modules/@shikijs/themes/dist/horizon.js +4 -2
  562. package/dist/node_modules/@shikijs/themes/dist/houston.js +4 -2
  563. package/dist/node_modules/@shikijs/themes/dist/kanagawa-dragon.js +4 -2
  564. package/dist/node_modules/@shikijs/themes/dist/kanagawa-lotus.js +4 -2
  565. package/dist/node_modules/@shikijs/themes/dist/kanagawa-wave.js +4 -2
  566. package/dist/node_modules/@shikijs/themes/dist/laserwave.js +4 -2
  567. package/dist/node_modules/@shikijs/themes/dist/light-plus.js +4 -2
  568. package/dist/node_modules/@shikijs/themes/dist/material-theme-darker.js +4 -2
  569. package/dist/node_modules/@shikijs/themes/dist/material-theme-lighter.js +4 -2
  570. package/dist/node_modules/@shikijs/themes/dist/material-theme-ocean.js +4 -2
  571. package/dist/node_modules/@shikijs/themes/dist/material-theme-palenight.js +4 -2
  572. package/dist/node_modules/@shikijs/themes/dist/material-theme.js +4 -2
  573. package/dist/node_modules/@shikijs/themes/dist/min-dark.js +4 -2
  574. package/dist/node_modules/@shikijs/themes/dist/min-light.js +4 -2
  575. package/dist/node_modules/@shikijs/themes/dist/monokai.js +4 -2
  576. package/dist/node_modules/@shikijs/themes/dist/night-owl-light.js +4 -2
  577. package/dist/node_modules/@shikijs/themes/dist/night-owl.js +4 -2
  578. package/dist/node_modules/@shikijs/themes/dist/nord.js +4 -2
  579. package/dist/node_modules/@shikijs/themes/dist/one-dark-pro.js +4 -2
  580. package/dist/node_modules/@shikijs/themes/dist/one-light.js +4 -2
  581. package/dist/node_modules/@shikijs/themes/dist/plastic.js +4 -2
  582. package/dist/node_modules/@shikijs/themes/dist/poimandres.js +4 -2
  583. package/dist/node_modules/@shikijs/themes/dist/red.js +4 -2
  584. package/dist/node_modules/@shikijs/themes/dist/rose-pine-dawn.js +4 -2
  585. package/dist/node_modules/@shikijs/themes/dist/rose-pine-moon.js +4 -2
  586. package/dist/node_modules/@shikijs/themes/dist/rose-pine.js +4 -2
  587. package/dist/node_modules/@shikijs/themes/dist/slack-dark.js +4 -2
  588. package/dist/node_modules/@shikijs/themes/dist/slack-ochin.js +4 -2
  589. package/dist/node_modules/@shikijs/themes/dist/snazzy-light.js +4 -2
  590. package/dist/node_modules/@shikijs/themes/dist/solarized-dark.js +4 -2
  591. package/dist/node_modules/@shikijs/themes/dist/solarized-light.js +4 -2
  592. package/dist/node_modules/@shikijs/themes/dist/synthwave-84.js +4 -2
  593. package/dist/node_modules/@shikijs/themes/dist/tokyo-night.js +4 -2
  594. package/dist/node_modules/@shikijs/themes/dist/vesper.js +4 -2
  595. package/dist/node_modules/@shikijs/themes/dist/vitesse-black.js +4 -2
  596. package/dist/node_modules/@shikijs/themes/dist/vitesse-dark.js +4 -2
  597. package/dist/node_modules/@shikijs/themes/dist/vitesse-light.js +4 -2
  598. package/dist/node_modules/@shikijs/types/dist/index.js +4 -2
  599. package/dist/node_modules/@shikijs/vscode-textmate/dist/index.js +949 -947
  600. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +30 -30
  601. package/dist/node_modules/@ungap/structured-clone/esm/index.js +6 -4
  602. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +64 -64
  603. package/dist/node_modules/@upsetjs/venn.js/build/venn.esm.js +905 -0
  604. package/dist/node_modules/@xyflow/react/dist/esm/index.js +904 -901
  605. package/dist/node_modules/@xyflow/system/dist/esm/index.js +1226 -1222
  606. package/dist/node_modules/bail/index.js +4 -2
  607. package/dist/node_modules/ccount/index.js +4 -2
  608. package/dist/node_modules/character-entities-html4/index.js +4 -2
  609. package/dist/node_modules/character-entities-legacy/index.js +4 -2
  610. package/dist/node_modules/chevrotain/lib/src/api.js +10 -10
  611. package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +6 -4
  612. package/dist/node_modules/chevrotain/lib/src/parse/constants.js +4 -2
  613. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +11 -9
  614. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +38 -45
  615. package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +35 -36
  616. package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +26 -25
  617. package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +204 -226
  618. package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +18 -18
  619. package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +20 -19
  620. package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +14 -13
  621. package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +195 -200
  622. package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +5 -4
  623. package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +28 -28
  624. package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +165 -170
  625. package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +17 -17
  626. package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +50 -50
  627. package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +76 -83
  628. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +21 -21
  629. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +117 -121
  630. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +12 -6
  631. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +51 -51
  632. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +15 -14
  633. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +81 -80
  634. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +229 -217
  635. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +87 -86
  636. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +36 -44
  637. package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +4 -2
  638. package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +287 -309
  639. package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +4 -2
  640. package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +115 -126
  641. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +73 -70
  642. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +12 -10
  643. package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +45 -54
  644. package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +29 -30
  645. package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +242 -240
  646. package/dist/node_modules/chevrotain-allstar/lib/atn.js +134 -133
  647. package/dist/node_modules/chevrotain-allstar/lib/dfa.js +11 -10
  648. package/dist/node_modules/chevrotain-allstar/lib/index.js +1 -1
  649. package/dist/node_modules/classcat/index.js +5 -3
  650. package/dist/node_modules/comma-separated-tokens/index.js +5 -3
  651. package/dist/node_modules/cose-base/cose-base.js +21 -21
  652. package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +7935 -7935
  653. package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +8 -6
  654. package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.js +8 -6
  655. package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.js +20 -20
  656. package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js +6 -4
  657. package/dist/node_modules/d3/src/index.js +95 -95
  658. package/dist/node_modules/d3-array/src/ascending.js +4 -2
  659. package/dist/node_modules/d3-array/src/bisect.js +8 -8
  660. package/dist/node_modules/d3-array/src/bisector.js +8 -6
  661. package/dist/node_modules/d3-array/src/descending.js +4 -2
  662. package/dist/node_modules/d3-array/src/max.js +4 -2
  663. package/dist/node_modules/d3-array/src/min.js +4 -2
  664. package/dist/node_modules/d3-array/src/number.js +4 -2
  665. package/dist/node_modules/d3-array/src/range.js +4 -2
  666. package/dist/node_modules/d3-array/src/ticks.js +13 -11
  667. package/dist/node_modules/d3-axis/src/axis.js +48 -46
  668. package/dist/node_modules/d3-axis/src/identity.js +4 -2
  669. package/dist/node_modules/d3-brush/src/brush.js +6 -4
  670. package/dist/node_modules/d3-color/src/color.js +86 -84
  671. package/dist/node_modules/d3-color/src/define.js +5 -3
  672. package/dist/node_modules/d3-color/src/lab.js +45 -43
  673. package/dist/node_modules/d3-color/src/math.js +4 -2
  674. package/dist/node_modules/d3-dispatch/src/dispatch.js +18 -17
  675. package/dist/node_modules/d3-drag/src/constant.js +4 -2
  676. package/dist/node_modules/d3-drag/src/drag.js +77 -75
  677. package/dist/node_modules/d3-drag/src/event.js +5 -3
  678. package/dist/node_modules/d3-drag/src/nodrag.js +11 -9
  679. package/dist/node_modules/d3-drag/src/noevent.js +6 -4
  680. package/dist/node_modules/d3-ease/src/cubic.js +4 -2
  681. package/dist/node_modules/d3-format/src/defaultLocale.js +8 -6
  682. package/dist/node_modules/d3-format/src/exponent.js +6 -4
  683. package/dist/node_modules/d3-format/src/formatDecimal.js +5 -3
  684. package/dist/node_modules/d3-format/src/formatGroup.js +4 -2
  685. package/dist/node_modules/d3-format/src/formatNumerals.js +4 -2
  686. package/dist/node_modules/d3-format/src/formatPrefixAuto.js +10 -8
  687. package/dist/node_modules/d3-format/src/formatRounded.js +6 -4
  688. package/dist/node_modules/d3-format/src/formatSpecifier.js +10 -8
  689. package/dist/node_modules/d3-format/src/formatTrim.js +4 -2
  690. package/dist/node_modules/d3-format/src/formatTypes.js +15 -13
  691. package/dist/node_modules/d3-format/src/identity.js +4 -2
  692. package/dist/node_modules/d3-format/src/locale.js +33 -31
  693. package/dist/node_modules/d3-format/src/precisionFixed.js +6 -4
  694. package/dist/node_modules/d3-format/src/precisionPrefix.js +6 -4
  695. package/dist/node_modules/d3-format/src/precisionRound.js +6 -4
  696. package/dist/node_modules/d3-hierarchy/src/accessors.js +4 -2
  697. package/dist/node_modules/d3-hierarchy/src/constant.js +5 -3
  698. package/dist/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +4 -2
  699. package/dist/node_modules/d3-hierarchy/src/hierarchy/count.js +6 -4
  700. package/dist/node_modules/d3-hierarchy/src/hierarchy/descendants.js +4 -2
  701. package/dist/node_modules/d3-hierarchy/src/hierarchy/each.js +4 -2
  702. package/dist/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +4 -2
  703. package/dist/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +4 -2
  704. package/dist/node_modules/d3-hierarchy/src/hierarchy/find.js +4 -2
  705. package/dist/node_modules/d3-hierarchy/src/hierarchy/index.js +46 -44
  706. package/dist/node_modules/d3-hierarchy/src/hierarchy/iterator.js +4 -2
  707. package/dist/node_modules/d3-hierarchy/src/hierarchy/leaves.js +4 -2
  708. package/dist/node_modules/d3-hierarchy/src/hierarchy/links.js +4 -2
  709. package/dist/node_modules/d3-hierarchy/src/hierarchy/path.js +6 -4
  710. package/dist/node_modules/d3-hierarchy/src/hierarchy/sort.js +4 -2
  711. package/dist/node_modules/d3-hierarchy/src/hierarchy/sum.js +4 -2
  712. package/dist/node_modules/d3-hierarchy/src/treemap/dice.js +4 -2
  713. package/dist/node_modules/d3-hierarchy/src/treemap/index.js +16 -14
  714. package/dist/node_modules/d3-hierarchy/src/treemap/round.js +4 -2
  715. package/dist/node_modules/d3-hierarchy/src/treemap/slice.js +4 -2
  716. package/dist/node_modules/d3-hierarchy/src/treemap/squarify.js +11 -9
  717. package/dist/node_modules/d3-interpolate/src/array.js +6 -4
  718. package/dist/node_modules/d3-interpolate/src/basis.js +6 -4
  719. package/dist/node_modules/d3-interpolate/src/basisClosed.js +6 -4
  720. package/dist/node_modules/d3-interpolate/src/color.js +19 -17
  721. package/dist/node_modules/d3-interpolate/src/constant.js +4 -2
  722. package/dist/node_modules/d3-interpolate/src/date.js +4 -2
  723. package/dist/node_modules/d3-interpolate/src/hcl.js +8 -6
  724. package/dist/node_modules/d3-interpolate/src/number.js +4 -2
  725. package/dist/node_modules/d3-interpolate/src/numberArray.js +5 -3
  726. package/dist/node_modules/d3-interpolate/src/object.js +6 -4
  727. package/dist/node_modules/d3-interpolate/src/rgb.js +11 -9
  728. package/dist/node_modules/d3-interpolate/src/round.js +4 -2
  729. package/dist/node_modules/d3-interpolate/src/string.js +16 -14
  730. package/dist/node_modules/d3-interpolate/src/transform/decompose.js +7 -5
  731. package/dist/node_modules/d3-interpolate/src/transform/index.js +13 -11
  732. package/dist/node_modules/d3-interpolate/src/transform/parse.js +10 -8
  733. package/dist/node_modules/d3-interpolate/src/value.js +14 -12
  734. package/dist/node_modules/d3-interpolate/src/zoom.js +13 -11
  735. package/dist/node_modules/d3-path/src/path.js +16 -14
  736. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/max.js +4 -2
  737. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/min.js +4 -2
  738. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +4 -2
  739. package/dist/node_modules/d3-sankey/node_modules/d3-path/src/path.js +13 -12
  740. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +4 -2
  741. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +4 -2
  742. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +19 -17
  743. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +5 -3
  744. package/dist/node_modules/d3-sankey/src/align.js +12 -10
  745. package/dist/node_modules/d3-sankey/src/constant.js +4 -2
  746. package/dist/node_modules/d3-sankey/src/sankey.js +170 -168
  747. package/dist/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +8 -6
  748. package/dist/node_modules/d3-scale/src/band.js +11 -9
  749. package/dist/node_modules/d3-scale/src/constant.js +4 -2
  750. package/dist/node_modules/d3-scale/src/continuous.js +49 -47
  751. package/dist/node_modules/d3-scale/src/init.js +4 -2
  752. package/dist/node_modules/d3-scale/src/linear.js +15 -13
  753. package/dist/node_modules/d3-scale/src/nice.js +4 -2
  754. package/dist/node_modules/d3-scale/src/number.js +4 -2
  755. package/dist/node_modules/d3-scale/src/ordinal.js +18 -16
  756. package/dist/node_modules/d3-scale/src/tickFormat.js +16 -14
  757. package/dist/node_modules/d3-scale/src/time.js +36 -34
  758. package/dist/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +5 -3
  759. package/dist/node_modules/d3-scale-chromatic/src/colors.js +4 -2
  760. package/dist/node_modules/d3-selection/src/array.js +4 -2
  761. package/dist/node_modules/d3-selection/src/constant.js +4 -2
  762. package/dist/node_modules/d3-selection/src/creator.js +12 -10
  763. package/dist/node_modules/d3-selection/src/matcher.js +5 -3
  764. package/dist/node_modules/d3-selection/src/namespace.js +7 -5
  765. package/dist/node_modules/d3-selection/src/namespaces.js +5 -3
  766. package/dist/node_modules/d3-selection/src/pointer.js +6 -4
  767. package/dist/node_modules/d3-selection/src/select.js +6 -4
  768. package/dist/node_modules/d3-selection/src/selection/append.js +6 -4
  769. package/dist/node_modules/d3-selection/src/selection/attr.js +19 -17
  770. package/dist/node_modules/d3-selection/src/selection/call.js +4 -2
  771. package/dist/node_modules/d3-selection/src/selection/classed.js +25 -23
  772. package/dist/node_modules/d3-selection/src/selection/clone.js +7 -5
  773. package/dist/node_modules/d3-selection/src/selection/data.js +18 -16
  774. package/dist/node_modules/d3-selection/src/selection/datum.js +4 -2
  775. package/dist/node_modules/d3-selection/src/selection/dispatch.js +12 -10
  776. package/dist/node_modules/d3-selection/src/selection/each.js +4 -2
  777. package/dist/node_modules/d3-selection/src/selection/empty.js +4 -2
  778. package/dist/node_modules/d3-selection/src/selection/enter.js +13 -11
  779. package/dist/node_modules/d3-selection/src/selection/exit.js +7 -5
  780. package/dist/node_modules/d3-selection/src/selection/filter.js +8 -6
  781. package/dist/node_modules/d3-selection/src/selection/html.js +8 -6
  782. package/dist/node_modules/d3-selection/src/selection/index.js +80 -79
  783. package/dist/node_modules/d3-selection/src/selection/insert.js +8 -6
  784. package/dist/node_modules/d3-selection/src/selection/iterator.js +4 -2
  785. package/dist/node_modules/d3-selection/src/selection/join.js +4 -2
  786. package/dist/node_modules/d3-selection/src/selection/lower.js +6 -4
  787. package/dist/node_modules/d3-selection/src/selection/merge.js +6 -4
  788. package/dist/node_modules/d3-selection/src/selection/node.js +4 -2
  789. package/dist/node_modules/d3-selection/src/selection/nodes.js +4 -2
  790. package/dist/node_modules/d3-selection/src/selection/on.js +11 -9
  791. package/dist/node_modules/d3-selection/src/selection/order.js +4 -2
  792. package/dist/node_modules/d3-selection/src/selection/property.js +8 -6
  793. package/dist/node_modules/d3-selection/src/selection/raise.js +6 -4
  794. package/dist/node_modules/d3-selection/src/selection/remove.js +6 -4
  795. package/dist/node_modules/d3-selection/src/selection/select.js +8 -6
  796. package/dist/node_modules/d3-selection/src/selection/selectAll.js +11 -9
  797. package/dist/node_modules/d3-selection/src/selection/selectChild.js +10 -8
  798. package/dist/node_modules/d3-selection/src/selection/selectChildren.js +10 -8
  799. package/dist/node_modules/d3-selection/src/selection/size.js +4 -2
  800. package/dist/node_modules/d3-selection/src/selection/sort.js +8 -6
  801. package/dist/node_modules/d3-selection/src/selection/sparse.js +4 -2
  802. package/dist/node_modules/d3-selection/src/selection/style.js +14 -12
  803. package/dist/node_modules/d3-selection/src/selection/text.js +8 -6
  804. package/dist/node_modules/d3-selection/src/selector.js +6 -4
  805. package/dist/node_modules/d3-selection/src/selectorAll.js +6 -4
  806. package/dist/node_modules/d3-selection/src/sourceEvent.js +4 -2
  807. package/dist/node_modules/d3-selection/src/window.js +4 -2
  808. package/dist/node_modules/d3-shape/src/arc.js +38 -36
  809. package/dist/node_modules/d3-shape/src/array.js +3 -2
  810. package/dist/node_modules/d3-shape/src/constant.js +4 -2
  811. package/dist/node_modules/d3-shape/src/curve/basis.js +10 -8
  812. package/dist/node_modules/d3-shape/src/curve/basisClosed.js +18 -16
  813. package/dist/node_modules/d3-shape/src/curve/basisOpen.js +9 -7
  814. package/dist/node_modules/d3-shape/src/curve/bump.js +15 -13
  815. package/dist/node_modules/d3-shape/src/curve/bundle.js +9 -7
  816. package/dist/node_modules/d3-shape/src/curve/cardinal.js +10 -8
  817. package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +12 -10
  818. package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +9 -7
  819. package/dist/node_modules/d3-shape/src/curve/catmullRom.js +19 -17
  820. package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +13 -11
  821. package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +10 -8
  822. package/dist/node_modules/d3-shape/src/curve/linear.js +7 -5
  823. package/dist/node_modules/d3-shape/src/curve/linearClosed.js +12 -10
  824. package/dist/node_modules/d3-shape/src/curve/monotone.js +23 -21
  825. package/dist/node_modules/d3-shape/src/curve/natural.js +9 -7
  826. package/dist/node_modules/d3-shape/src/curve/step.js +19 -17
  827. package/dist/node_modules/d3-shape/src/descending.js +4 -2
  828. package/dist/node_modules/d3-shape/src/identity.js +4 -2
  829. package/dist/node_modules/d3-shape/src/line.js +19 -17
  830. package/dist/node_modules/d3-shape/src/math.js +8 -6
  831. package/dist/node_modules/d3-shape/src/noop.js +4 -2
  832. package/dist/node_modules/d3-shape/src/path.js +6 -4
  833. package/dist/node_modules/d3-shape/src/pie.js +15 -13
  834. package/dist/node_modules/d3-shape/src/point.js +5 -3
  835. package/dist/node_modules/d3-time/src/day.js +17 -15
  836. package/dist/node_modules/d3-time/src/duration.js +4 -2
  837. package/dist/node_modules/d3-time/src/hour.js +16 -14
  838. package/dist/node_modules/d3-time/src/interval.js +7 -5
  839. package/dist/node_modules/d3-time/src/millisecond.js +7 -5
  840. package/dist/node_modules/d3-time/src/minute.js +16 -14
  841. package/dist/node_modules/d3-time/src/month.js +14 -12
  842. package/dist/node_modules/d3-time/src/second.js +9 -7
  843. package/dist/node_modules/d3-time/src/ticks.js +66 -64
  844. package/dist/node_modules/d3-time/src/week.js +21 -19
  845. package/dist/node_modules/d3-time/src/year.js +10 -8
  846. package/dist/node_modules/d3-time-format/src/defaultLocale.js +8 -6
  847. package/dist/node_modules/d3-time-format/src/locale.js +346 -344
  848. package/dist/node_modules/d3-timer/src/timeout.js +6 -4
  849. package/dist/node_modules/d3-timer/src/timer.js +33 -31
  850. package/dist/node_modules/d3-transition/src/index.js +2 -2
  851. package/dist/node_modules/d3-transition/src/interrupt.js +4 -3
  852. package/dist/node_modules/d3-transition/src/selection/index.js +5 -4
  853. package/dist/node_modules/d3-transition/src/selection/interrupt.js +6 -4
  854. package/dist/node_modules/d3-transition/src/selection/transition.js +16 -14
  855. package/dist/node_modules/d3-transition/src/transition/attr.js +28 -26
  856. package/dist/node_modules/d3-transition/src/transition/attrTween.js +13 -11
  857. package/dist/node_modules/d3-transition/src/transition/delay.js +11 -9
  858. package/dist/node_modules/d3-transition/src/transition/duration.js +11 -9
  859. package/dist/node_modules/d3-transition/src/transition/ease.js +8 -6
  860. package/dist/node_modules/d3-transition/src/transition/easeVarying.js +8 -6
  861. package/dist/node_modules/d3-transition/src/transition/end.js +6 -4
  862. package/dist/node_modules/d3-transition/src/transition/filter.js +8 -6
  863. package/dist/node_modules/d3-transition/src/transition/index.js +63 -61
  864. package/dist/node_modules/d3-transition/src/transition/interpolate.js +9 -7
  865. package/dist/node_modules/d3-transition/src/transition/merge.js +6 -4
  866. package/dist/node_modules/d3-transition/src/transition/on.js +9 -7
  867. package/dist/node_modules/d3-transition/src/transition/remove.js +6 -4
  868. package/dist/node_modules/d3-transition/src/transition/schedule.js +20 -18
  869. package/dist/node_modules/d3-transition/src/transition/select.js +10 -8
  870. package/dist/node_modules/d3-transition/src/transition/selectAll.js +10 -8
  871. package/dist/node_modules/d3-transition/src/transition/selection.js +7 -5
  872. package/dist/node_modules/d3-transition/src/transition/style.js +21 -19
  873. package/dist/node_modules/d3-transition/src/transition/styleTween.js +8 -6
  874. package/dist/node_modules/d3-transition/src/transition/text.js +8 -6
  875. package/dist/node_modules/d3-transition/src/transition/textTween.js +8 -6
  876. package/dist/node_modules/d3-transition/src/transition/transition.js +10 -8
  877. package/dist/node_modules/d3-transition/src/transition/tween.js +14 -12
  878. package/dist/node_modules/d3-zoom/src/constant.js +4 -2
  879. package/dist/node_modules/d3-zoom/src/event.js +4 -2
  880. package/dist/node_modules/d3-zoom/src/index.js +2 -2
  881. package/dist/node_modules/d3-zoom/src/noevent.js +5 -3
  882. package/dist/node_modules/d3-zoom/src/transform.js +12 -10
  883. package/dist/node_modules/d3-zoom/src/zoom.js +116 -114
  884. package/dist/node_modules/dagre-d3-es/src/dagre/acyclic.js +14 -12
  885. package/dist/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +11 -9
  886. package/dist/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +36 -34
  887. package/dist/node_modules/dagre-d3-es/src/dagre/data/list.js +9 -7
  888. package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +51 -49
  889. package/dist/node_modules/dagre-d3-es/src/dagre/index.js +2 -2
  890. package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +165 -163
  891. package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +45 -43
  892. package/dist/node_modules/dagre-d3-es/src/dagre/normalize.js +12 -10
  893. package/dist/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +6 -4
  894. package/dist/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +8 -6
  895. package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +14 -12
  896. package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +22 -20
  897. package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +36 -34
  898. package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +16 -14
  899. package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +32 -30
  900. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +30 -28
  901. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +20 -18
  902. package/dist/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +12 -10
  903. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +150 -148
  904. package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +20 -18
  905. package/dist/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +19 -17
  906. package/dist/node_modules/dagre-d3-es/src/dagre/rank/index.js +16 -14
  907. package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +64 -63
  908. package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +15 -13
  909. package/dist/node_modules/dagre-d3-es/src/dagre/util.js +84 -82
  910. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +15 -13
  911. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.js +3 -2
  912. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.js +3 -2
  913. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/index.js +3 -3
  914. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js +6 -4
  915. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +6 -4
  916. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +13 -11
  917. package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +131 -129
  918. package/dist/node_modules/dagre-d3-es/src/graphlib/index.js +1 -1
  919. package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +23 -21
  920. package/dist/node_modules/dayjs/dayjs.min.js +6 -4
  921. package/dist/node_modules/dayjs/plugin/advancedFormat.js +6 -4
  922. package/dist/node_modules/dayjs/plugin/customParseFormat.js +6 -4
  923. package/dist/node_modules/dayjs/plugin/duration.js +6 -4
  924. package/dist/node_modules/dayjs/plugin/isoWeek.js +6 -4
  925. package/dist/node_modules/decode-named-character-reference/index.dom.js +7 -5
  926. package/dist/node_modules/devlop/lib/default.js +4 -2
  927. package/dist/node_modules/dompurify/dist/purify.es.js +203 -201
  928. package/dist/node_modules/entities/dist/esm/decode-codepoint.js +6 -4
  929. package/dist/node_modules/entities/dist/esm/decode.js +87 -85
  930. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.js +4 -2
  931. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +6 -4
  932. package/dist/node_modules/extend/index.js +9 -6
  933. package/dist/node_modules/hast-util-from-dom/lib/index.js +32 -30
  934. package/dist/node_modules/hast-util-from-html-isomorphic/lib/browser.js +10 -8
  935. package/dist/node_modules/hast-util-from-parse5/lib/index.js +82 -80
  936. package/dist/node_modules/hast-util-is-element/lib/index.js +17 -15
  937. package/dist/node_modules/hast-util-parse-selector/lib/index.js +7 -5
  938. package/dist/node_modules/hast-util-raw/lib/index.js +136 -134
  939. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.js +23 -21
  940. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.js +5 -3
  941. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.js +89 -89
  942. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.js +250 -249
  943. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.js +6 -4
  944. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.js +14 -14
  945. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/index.js +4 -4
  946. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.js +17 -15
  947. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.js +1497 -1495
  948. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.js +148 -146
  949. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.js +20 -19
  950. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +800 -798
  951. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.js +33 -31
  952. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.js +10 -8
  953. package/dist/node_modules/hast-util-sanitize/lib/index.js +106 -104
  954. package/dist/node_modules/hast-util-sanitize/lib/schema.js +12 -11
  955. package/dist/node_modules/hast-util-to-html/lib/handle/comment.js +9 -7
  956. package/dist/node_modules/hast-util-to-html/lib/handle/doctype.js +4 -2
  957. package/dist/node_modules/hast-util-to-html/lib/handle/element.js +25 -23
  958. package/dist/node_modules/hast-util-to-html/lib/handle/index.js +22 -21
  959. package/dist/node_modules/hast-util-to-html/lib/handle/raw.js +6 -4
  960. package/dist/node_modules/hast-util-to-html/lib/handle/root.js +4 -2
  961. package/dist/node_modules/hast-util-to-html/lib/handle/text.js +7 -5
  962. package/dist/node_modules/hast-util-to-html/lib/index.js +38 -36
  963. package/dist/node_modules/hast-util-to-html/lib/omission/closing.js +70 -68
  964. package/dist/node_modules/hast-util-to-html/lib/omission/omission.js +6 -4
  965. package/dist/node_modules/hast-util-to-html/lib/omission/opening.js +32 -30
  966. package/dist/node_modules/hast-util-to-html/lib/omission/util/siblings.js +10 -9
  967. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +192 -190
  968. package/dist/node_modules/hast-util-to-parse5/lib/index.js +71 -69
  969. package/dist/node_modules/hast-util-to-text/lib/index.js +61 -59
  970. package/dist/node_modules/hast-util-whitespace/lib/index.js +8 -6
  971. package/dist/node_modules/hastscript/lib/create-h.js +26 -24
  972. package/dist/node_modules/hastscript/lib/index.js +7 -5
  973. package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +4 -2
  974. package/dist/node_modules/html-url-attributes/lib/index.js +4 -2
  975. package/dist/node_modules/html-void-elements/index.js +4 -2
  976. package/dist/node_modules/inline-style-parser/cjs/index.js +6 -4
  977. package/dist/node_modules/internmap/src/index.js +22 -20
  978. package/dist/node_modules/katex/dist/katex.js +2914 -2873
  979. package/dist/node_modules/khroma/dist/channels/index.js +23 -21
  980. package/dist/node_modules/khroma/dist/channels/reusable.js +5 -3
  981. package/dist/node_modules/khroma/dist/channels/type.js +7 -5
  982. package/dist/node_modules/khroma/dist/color/hex.js +10 -8
  983. package/dist/node_modules/khroma/dist/color/hsl.js +19 -17
  984. package/dist/node_modules/khroma/dist/color/index.js +17 -15
  985. package/dist/node_modules/khroma/dist/color/keyword.js +10 -8
  986. package/dist/node_modules/khroma/dist/color/rgb.js +14 -12
  987. package/dist/node_modules/khroma/dist/constants.js +7 -5
  988. package/dist/node_modules/khroma/dist/methods/adjust.js +8 -6
  989. package/dist/node_modules/khroma/dist/methods/adjust_channel.js +8 -6
  990. package/dist/node_modules/khroma/dist/methods/change.js +9 -7
  991. package/dist/node_modules/khroma/dist/methods/channel.js +6 -4
  992. package/dist/node_modules/khroma/dist/methods/darken.js +5 -3
  993. package/dist/node_modules/khroma/dist/methods/invert.js +8 -6
  994. package/dist/node_modules/khroma/dist/methods/is_dark.js +5 -3
  995. package/dist/node_modules/khroma/dist/methods/is_light.js +5 -3
  996. package/dist/node_modules/khroma/dist/methods/lighten.js +5 -3
  997. package/dist/node_modules/khroma/dist/methods/luminance.js +8 -6
  998. package/dist/node_modules/khroma/dist/methods/mix.js +8 -6
  999. package/dist/node_modules/khroma/dist/methods/rgba.js +15 -13
  1000. package/dist/node_modules/khroma/dist/methods/transparentize.js +5 -0
  1001. package/dist/node_modules/khroma/dist/utils/channel.js +8 -6
  1002. package/dist/node_modules/khroma/dist/utils/index.js +10 -8
  1003. package/dist/node_modules/khroma/dist/utils/lang.js +4 -2
  1004. package/dist/node_modules/khroma/dist/utils/unit.js +4 -2
  1005. package/dist/node_modules/langium/lib/default-module.js +66 -64
  1006. package/dist/node_modules/langium/lib/dependency-injection.js +37 -39
  1007. package/dist/node_modules/langium/lib/documentation/comment-provider.js +7 -5
  1008. package/dist/node_modules/langium/lib/documentation/documentation-provider.js +8 -6
  1009. package/dist/node_modules/langium/lib/documentation/jsdoc.js +204 -202
  1010. package/dist/node_modules/langium/lib/languages/generated/ast.js +343 -534
  1011. package/dist/node_modules/langium/lib/languages/grammar-config.js +10 -8
  1012. package/dist/node_modules/langium/lib/parser/async-parser.js +4 -76
  1013. package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +8 -6
  1014. package/dist/node_modules/langium/lib/parser/cst-node-builder.js +56 -54
  1015. package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +9 -7
  1016. package/dist/node_modules/langium/lib/parser/langium-parser.js +190 -188
  1017. package/dist/node_modules/langium/lib/parser/lexer.js +25 -25
  1018. package/dist/node_modules/langium/lib/parser/parser-builder-base.js +204 -203
  1019. package/dist/node_modules/langium/lib/parser/token-builder.js +32 -30
  1020. package/dist/node_modules/langium/lib/parser/value-converter.js +17 -15
  1021. package/dist/node_modules/langium/lib/references/linker.js +104 -103
  1022. package/dist/node_modules/langium/lib/references/name-provider.js +9 -7
  1023. package/dist/node_modules/langium/lib/references/references.js +53 -51
  1024. package/dist/node_modules/langium/lib/references/scope-computation.js +14 -12
  1025. package/dist/node_modules/langium/lib/references/scope-provider.js +13 -11
  1026. package/dist/node_modules/langium/lib/references/scope.js +27 -56
  1027. package/dist/node_modules/langium/lib/serializer/hydrator.js +71 -69
  1028. package/dist/node_modules/langium/lib/serializer/json-serializer.js +23 -21
  1029. package/dist/node_modules/langium/lib/service-registry.js +7 -5
  1030. package/dist/node_modules/langium/lib/syntax-tree.js +33 -31
  1031. package/dist/node_modules/langium/lib/utils/ast-utils.js +77 -112
  1032. package/dist/node_modules/langium/lib/utils/caching.js +33 -42
  1033. package/dist/node_modules/langium/lib/utils/cancellation.js +7 -5
  1034. package/dist/node_modules/langium/lib/utils/collections.js +35 -33
  1035. package/dist/node_modules/langium/lib/utils/cst-utils.js +46 -161
  1036. package/dist/node_modules/langium/lib/utils/disposable.js +5 -3
  1037. package/dist/node_modules/langium/lib/utils/errors.js +8 -9
  1038. package/dist/node_modules/langium/lib/utils/event.js +7 -5
  1039. package/dist/node_modules/langium/lib/utils/grammar-loader.js +16 -14
  1040. package/dist/node_modules/langium/lib/utils/grammar-utils.js +172 -249
  1041. package/dist/node_modules/langium/lib/utils/promise-utils.js +18 -19
  1042. package/dist/node_modules/langium/lib/utils/regexp-utils.js +53 -76
  1043. package/dist/node_modules/langium/lib/utils/stream.js +155 -153
  1044. package/dist/node_modules/langium/lib/utils/uri-utils.js +14 -12
  1045. package/dist/node_modules/langium/lib/validation/document-validator.js +104 -103
  1046. package/dist/node_modules/langium/lib/validation/validation-registry.js +15 -14
  1047. package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +19 -17
  1048. package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +4 -2
  1049. package/dist/node_modules/langium/lib/workspace/configuration.js +7 -5
  1050. package/dist/node_modules/langium/lib/workspace/document-builder.js +131 -134
  1051. package/dist/node_modules/langium/lib/workspace/documents.js +85 -83
  1052. package/dist/node_modules/langium/lib/workspace/file-system-provider.js +5 -4
  1053. package/dist/node_modules/langium/lib/workspace/index-manager.js +16 -14
  1054. package/dist/node_modules/langium/lib/workspace/workspace-lock.js +11 -9
  1055. package/dist/node_modules/langium/lib/workspace/workspace-manager.js +35 -33
  1056. package/dist/node_modules/layout-base/layout-base.js +6 -4
  1057. package/dist/node_modules/lodash-es/_DataView.js +6 -4
  1058. package/dist/node_modules/lodash-es/_Hash.js +14 -13
  1059. package/dist/node_modules/lodash-es/_ListCache.js +14 -13
  1060. package/dist/node_modules/lodash-es/_Map.js +6 -4
  1061. package/dist/node_modules/lodash-es/_MapCache.js +14 -13
  1062. package/dist/node_modules/lodash-es/_Promise.js +6 -4
  1063. package/dist/node_modules/lodash-es/_Set.js +6 -4
  1064. package/dist/node_modules/lodash-es/_SetCache.js +10 -9
  1065. package/dist/node_modules/lodash-es/_Stack.js +12 -11
  1066. package/dist/node_modules/lodash-es/_Symbol.js +5 -3
  1067. package/dist/node_modules/lodash-es/_Uint8Array.js +5 -3
  1068. package/dist/node_modules/lodash-es/_WeakMap.js +6 -4
  1069. package/dist/node_modules/lodash-es/_apply.js +4 -3
  1070. package/dist/node_modules/lodash-es/_arrayEach.js +4 -3
  1071. package/dist/node_modules/lodash-es/_arrayFilter.js +4 -3
  1072. package/dist/node_modules/lodash-es/_arrayIncludes.js +6 -5
  1073. package/dist/node_modules/lodash-es/_arrayIncludesWith.js +4 -3
  1074. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +13 -12
  1075. package/dist/node_modules/lodash-es/_arrayMap.js +4 -3
  1076. package/dist/node_modules/lodash-es/_arrayPush.js +4 -3
  1077. package/dist/node_modules/lodash-es/_arrayReduce.js +4 -3
  1078. package/dist/node_modules/lodash-es/_arraySome.js +4 -3
  1079. package/dist/node_modules/lodash-es/_asciiSize.js +5 -3
  1080. package/dist/node_modules/lodash-es/_assignMergeValue.js +7 -6
  1081. package/dist/node_modules/lodash-es/_assignValue.js +8 -7
  1082. package/dist/node_modules/lodash-es/_assocIndexOf.js +6 -5
  1083. package/dist/node_modules/lodash-es/_baseAssign.js +7 -6
  1084. package/dist/node_modules/lodash-es/_baseAssignIn.js +7 -6
  1085. package/dist/node_modules/lodash-es/_baseAssignValue.js +6 -5
  1086. package/dist/node_modules/lodash-es/_baseClone.js +51 -50
  1087. package/dist/node_modules/lodash-es/_baseCreate.js +7 -5
  1088. package/dist/node_modules/lodash-es/_baseEach.js +6 -4
  1089. package/dist/node_modules/lodash-es/_baseExtremum.js +6 -5
  1090. package/dist/node_modules/lodash-es/_baseFilter.js +6 -5
  1091. package/dist/node_modules/lodash-es/_baseFindIndex.js +4 -3
  1092. package/dist/node_modules/lodash-es/_baseFlatten.js +8 -7
  1093. package/dist/node_modules/lodash-es/_baseFor.js +5 -3
  1094. package/dist/node_modules/lodash-es/_baseForOwn.js +7 -6
  1095. package/dist/node_modules/lodash-es/_baseGet.js +8 -7
  1096. package/dist/node_modules/lodash-es/_baseGetAllKeys.js +7 -6
  1097. package/dist/node_modules/lodash-es/_baseGetTag.js +9 -8
  1098. package/dist/node_modules/lodash-es/_baseGt.js +4 -3
  1099. package/dist/node_modules/lodash-es/_baseHas.js +6 -5
  1100. package/dist/node_modules/lodash-es/_baseHasIn.js +4 -3
  1101. package/dist/node_modules/lodash-es/_baseIndexOf.js +8 -7
  1102. package/dist/node_modules/lodash-es/_baseIsArguments.js +8 -7
  1103. package/dist/node_modules/lodash-es/_baseIsEqual.js +7 -6
  1104. package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +23 -22
  1105. package/dist/node_modules/lodash-es/_baseIsMap.js +8 -7
  1106. package/dist/node_modules/lodash-es/_baseIsMatch.js +9 -8
  1107. package/dist/node_modules/lodash-es/_baseIsNaN.js +4 -3
  1108. package/dist/node_modules/lodash-es/_baseIsNative.js +10 -9
  1109. package/dist/node_modules/lodash-es/_baseIsSet.js +8 -7
  1110. package/dist/node_modules/lodash-es/_baseIsTypedArray.js +10 -9
  1111. package/dist/node_modules/lodash-es/_baseIteratee.js +10 -9
  1112. package/dist/node_modules/lodash-es/_baseKeys.js +9 -8
  1113. package/dist/node_modules/lodash-es/_baseKeysIn.js +11 -10
  1114. package/dist/node_modules/lodash-es/_baseLt.js +4 -3
  1115. package/dist/node_modules/lodash-es/_baseMap.js +8 -7
  1116. package/dist/node_modules/lodash-es/_baseMatches.js +10 -9
  1117. package/dist/node_modules/lodash-es/_baseMatchesProperty.js +15 -14
  1118. package/dist/node_modules/lodash-es/_baseMerge.js +16 -15
  1119. package/dist/node_modules/lodash-es/_baseMergeDeep.js +24 -23
  1120. package/dist/node_modules/lodash-es/_baseOrderBy.js +23 -22
  1121. package/dist/node_modules/lodash-es/_basePick.js +8 -7
  1122. package/dist/node_modules/lodash-es/_basePickBy.js +9 -8
  1123. package/dist/node_modules/lodash-es/_baseProperty.js +4 -3
  1124. package/dist/node_modules/lodash-es/_basePropertyDeep.js +6 -5
  1125. package/dist/node_modules/lodash-es/_baseRange.js +6 -5
  1126. package/dist/node_modules/lodash-es/_baseReduce.js +4 -3
  1127. package/dist/node_modules/lodash-es/_baseRest.js +8 -7
  1128. package/dist/node_modules/lodash-es/_baseSet.js +14 -13
  1129. package/dist/node_modules/lodash-es/_baseSetToString.js +10 -8
  1130. package/dist/node_modules/lodash-es/_baseSortBy.js +4 -3
  1131. package/dist/node_modules/lodash-es/_baseTimes.js +4 -3
  1132. package/dist/node_modules/lodash-es/_baseToString.js +13 -12
  1133. package/dist/node_modules/lodash-es/_baseTrim.js +7 -6
  1134. package/dist/node_modules/lodash-es/_baseUnary.js +4 -3
  1135. package/dist/node_modules/lodash-es/_baseUniq.js +17 -16
  1136. package/dist/node_modules/lodash-es/_baseValues.js +6 -5
  1137. package/dist/node_modules/lodash-es/_baseZipObject.js +4 -3
  1138. package/dist/node_modules/lodash-es/_cacheHas.js +4 -3
  1139. package/dist/node_modules/lodash-es/_castFunction.js +6 -5
  1140. package/dist/node_modules/lodash-es/_castPath.js +9 -8
  1141. package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +6 -5
  1142. package/dist/node_modules/lodash-es/_cloneBuffer.js +9 -8
  1143. package/dist/node_modules/lodash-es/_cloneDataView.js +6 -5
  1144. package/dist/node_modules/lodash-es/_cloneRegExp.js +6 -5
  1145. package/dist/node_modules/lodash-es/_cloneSymbol.js +7 -6
  1146. package/dist/node_modules/lodash-es/_cloneTypedArray.js +6 -5
  1147. package/dist/node_modules/lodash-es/_compareAscending.js +6 -5
  1148. package/dist/node_modules/lodash-es/_compareMultiple.js +6 -5
  1149. package/dist/node_modules/lodash-es/_copyArray.js +4 -3
  1150. package/dist/node_modules/lodash-es/_copyObject.js +7 -6
  1151. package/dist/node_modules/lodash-es/_copySymbols.js +7 -6
  1152. package/dist/node_modules/lodash-es/_copySymbolsIn.js +7 -6
  1153. package/dist/node_modules/lodash-es/_coreJsData.js +5 -3
  1154. package/dist/node_modules/lodash-es/_createAssigner.js +8 -7
  1155. package/dist/node_modules/lodash-es/_createBaseEach.js +6 -5
  1156. package/dist/node_modules/lodash-es/_createBaseFor.js +4 -3
  1157. package/dist/node_modules/lodash-es/_createFind.js +10 -9
  1158. package/dist/node_modules/lodash-es/_createRange.js +8 -7
  1159. package/dist/node_modules/lodash-es/_createSet.js +9 -7
  1160. package/dist/node_modules/lodash-es/_defineProperty.js +6 -4
  1161. package/dist/node_modules/lodash-es/_equalArrays.js +12 -11
  1162. package/dist/node_modules/lodash-es/_equalByTag.js +29 -28
  1163. package/dist/node_modules/lodash-es/_equalObjects.js +9 -8
  1164. package/dist/node_modules/lodash-es/_flatRest.js +8 -7
  1165. package/dist/node_modules/lodash-es/_freeGlobal.js +4 -2
  1166. package/dist/node_modules/lodash-es/_getAllKeys.js +8 -7
  1167. package/dist/node_modules/lodash-es/_getAllKeysIn.js +8 -7
  1168. package/dist/node_modules/lodash-es/_getMapData.js +6 -5
  1169. package/dist/node_modules/lodash-es/_getMatchData.js +8 -7
  1170. package/dist/node_modules/lodash-es/_getNative.js +8 -7
  1171. package/dist/node_modules/lodash-es/_getPrototype.js +5 -3
  1172. package/dist/node_modules/lodash-es/_getRawTag.js +10 -9
  1173. package/dist/node_modules/lodash-es/_getSymbols.js +9 -7
  1174. package/dist/node_modules/lodash-es/_getSymbolsIn.js +10 -8
  1175. package/dist/node_modules/lodash-es/_getTag.js +21 -19
  1176. package/dist/node_modules/lodash-es/_getValue.js +4 -3
  1177. package/dist/node_modules/lodash-es/_hasPath.js +13 -12
  1178. package/dist/node_modules/lodash-es/_hasUnicode.js +6 -5
  1179. package/dist/node_modules/lodash-es/_hashClear.js +6 -5
  1180. package/dist/node_modules/lodash-es/_hashDelete.js +5 -4
  1181. package/dist/node_modules/lodash-es/_hashGet.js +9 -8
  1182. package/dist/node_modules/lodash-es/_hashHas.js +7 -6
  1183. package/dist/node_modules/lodash-es/_hashSet.js +7 -6
  1184. package/dist/node_modules/lodash-es/_initCloneArray.js +6 -5
  1185. package/dist/node_modules/lodash-es/_initCloneByTag.js +29 -28
  1186. package/dist/node_modules/lodash-es/_initCloneObject.js +8 -7
  1187. package/dist/node_modules/lodash-es/_isFlattenable.js +9 -8
  1188. package/dist/node_modules/lodash-es/_isIndex.js +6 -5
  1189. package/dist/node_modules/lodash-es/_isIterateeCall.js +10 -9
  1190. package/dist/node_modules/lodash-es/_isKey.js +9 -8
  1191. package/dist/node_modules/lodash-es/_isKeyable.js +4 -3
  1192. package/dist/node_modules/lodash-es/_isMasked.js +9 -8
  1193. package/dist/node_modules/lodash-es/_isPrototype.js +6 -5
  1194. package/dist/node_modules/lodash-es/_isStrictComparable.js +6 -5
  1195. package/dist/node_modules/lodash-es/_listCacheClear.js +4 -3
  1196. package/dist/node_modules/lodash-es/_listCacheDelete.js +8 -7
  1197. package/dist/node_modules/lodash-es/_listCacheGet.js +6 -5
  1198. package/dist/node_modules/lodash-es/_listCacheHas.js +6 -5
  1199. package/dist/node_modules/lodash-es/_listCacheSet.js +6 -5
  1200. package/dist/node_modules/lodash-es/_mapCacheClear.js +10 -9
  1201. package/dist/node_modules/lodash-es/_mapCacheDelete.js +7 -6
  1202. package/dist/node_modules/lodash-es/_mapCacheGet.js +6 -5
  1203. package/dist/node_modules/lodash-es/_mapCacheHas.js +6 -5
  1204. package/dist/node_modules/lodash-es/_mapCacheSet.js +6 -5
  1205. package/dist/node_modules/lodash-es/_mapToArray.js +4 -3
  1206. package/dist/node_modules/lodash-es/_matchesStrictComparable.js +4 -3
  1207. package/dist/node_modules/lodash-es/_memoizeCapped.js +8 -7
  1208. package/dist/node_modules/lodash-es/_nativeCreate.js +5 -3
  1209. package/dist/node_modules/lodash-es/_nativeKeys.js +5 -3
  1210. package/dist/node_modules/lodash-es/_nativeKeysIn.js +4 -3
  1211. package/dist/node_modules/lodash-es/_nodeUtil.js +6 -4
  1212. package/dist/node_modules/lodash-es/_objectToString.js +6 -5
  1213. package/dist/node_modules/lodash-es/_overArg.js +4 -3
  1214. package/dist/node_modules/lodash-es/_overRest.js +9 -8
  1215. package/dist/node_modules/lodash-es/_root.js +5 -3
  1216. package/dist/node_modules/lodash-es/_safeGet.js +4 -3
  1217. package/dist/node_modules/lodash-es/_setCacheAdd.js +6 -5
  1218. package/dist/node_modules/lodash-es/_setCacheHas.js +4 -3
  1219. package/dist/node_modules/lodash-es/_setToArray.js +4 -3
  1220. package/dist/node_modules/lodash-es/_setToString.js +6 -4
  1221. package/dist/node_modules/lodash-es/_shortOut.js +7 -6
  1222. package/dist/node_modules/lodash-es/_stackClear.js +6 -5
  1223. package/dist/node_modules/lodash-es/_stackDelete.js +4 -3
  1224. package/dist/node_modules/lodash-es/_stackGet.js +4 -3
  1225. package/dist/node_modules/lodash-es/_stackHas.js +4 -3
  1226. package/dist/node_modules/lodash-es/_stackSet.js +11 -10
  1227. package/dist/node_modules/lodash-es/_strictIndexOf.js +4 -3
  1228. package/dist/node_modules/lodash-es/_stringSize.js +8 -7
  1229. package/dist/node_modules/lodash-es/_stringToPath.js +7 -5
  1230. package/dist/node_modules/lodash-es/_toKey.js +8 -7
  1231. package/dist/node_modules/lodash-es/_toSource.js +8 -7
  1232. package/dist/node_modules/lodash-es/_trimmedEndIndex.js +6 -5
  1233. package/dist/node_modules/lodash-es/_unicodeSize.js +17 -16
  1234. package/dist/node_modules/lodash-es/clone.js +7 -6
  1235. package/dist/node_modules/lodash-es/cloneDeep.js +7 -6
  1236. package/dist/node_modules/lodash-es/constant.js +4 -3
  1237. package/dist/node_modules/lodash-es/defaults.js +13 -11
  1238. package/dist/node_modules/lodash-es/eq.js +4 -3
  1239. package/dist/node_modules/lodash-es/filter.js +9 -8
  1240. package/dist/node_modules/lodash-es/find.js +6 -4
  1241. package/dist/node_modules/lodash-es/findIndex.js +10 -9
  1242. package/dist/node_modules/lodash-es/flatMap.js +7 -6
  1243. package/dist/node_modules/lodash-es/flatten.js +6 -5
  1244. package/dist/node_modules/lodash-es/forEach.js +9 -8
  1245. package/dist/node_modules/lodash-es/forIn.js +8 -7
  1246. package/dist/node_modules/lodash-es/forOwn.js +7 -6
  1247. package/dist/node_modules/lodash-es/get.js +6 -5
  1248. package/dist/node_modules/lodash-es/has.js +7 -6
  1249. package/dist/node_modules/lodash-es/hasIn.js +7 -6
  1250. package/dist/node_modules/lodash-es/identity.js +4 -3
  1251. package/dist/node_modules/lodash-es/isArguments.js +8 -6
  1252. package/dist/node_modules/lodash-es/isArray.js +4 -2
  1253. package/dist/node_modules/lodash-es/isArrayLike.js +7 -6
  1254. package/dist/node_modules/lodash-es/isArrayLikeObject.js +7 -6
  1255. package/dist/node_modules/lodash-es/isBuffer.js +6 -4
  1256. package/dist/node_modules/lodash-es/isEmpty.js +18 -17
  1257. package/dist/node_modules/lodash-es/isFunction.js +10 -9
  1258. package/dist/node_modules/lodash-es/isLength.js +6 -5
  1259. package/dist/node_modules/lodash-es/isMap.js +7 -5
  1260. package/dist/node_modules/lodash-es/isObject.js +4 -3
  1261. package/dist/node_modules/lodash-es/isObjectLike.js +4 -3
  1262. package/dist/node_modules/lodash-es/isPlainObject.js +13 -12
  1263. package/dist/node_modules/lodash-es/isSet.js +7 -5
  1264. package/dist/node_modules/lodash-es/isString.js +9 -8
  1265. package/dist/node_modules/lodash-es/isSymbol.js +8 -7
  1266. package/dist/node_modules/lodash-es/isTypedArray.js +7 -5
  1267. package/dist/node_modules/lodash-es/isUndefined.js +4 -3
  1268. package/dist/node_modules/lodash-es/keys.js +8 -7
  1269. package/dist/node_modules/lodash-es/keysIn.js +8 -7
  1270. package/dist/node_modules/lodash-es/last.js +4 -3
  1271. package/dist/node_modules/lodash-es/map.js +9 -8
  1272. package/dist/node_modules/lodash-es/mapValues.js +9 -8
  1273. package/dist/node_modules/lodash-es/max.js +8 -7
  1274. package/dist/node_modules/lodash-es/memoize.js +9 -8
  1275. package/dist/node_modules/lodash-es/merge.js +7 -5
  1276. package/dist/node_modules/lodash-es/min.js +8 -7
  1277. package/dist/node_modules/lodash-es/minBy.js +8 -7
  1278. package/dist/node_modules/lodash-es/noop.js +4 -3
  1279. package/dist/node_modules/lodash-es/now.js +6 -4
  1280. package/dist/node_modules/lodash-es/pick.js +7 -5
  1281. package/dist/node_modules/lodash-es/property.js +9 -8
  1282. package/dist/node_modules/lodash-es/range.js +5 -3
  1283. package/dist/node_modules/lodash-es/reduce.js +11 -10
  1284. package/dist/node_modules/lodash-es/size.js +13 -12
  1285. package/dist/node_modules/lodash-es/sortBy.js +9 -7
  1286. package/dist/node_modules/lodash-es/stubArray.js +4 -3
  1287. package/dist/node_modules/lodash-es/stubFalse.js +4 -3
  1288. package/dist/node_modules/lodash-es/toFinite.js +7 -6
  1289. package/dist/node_modules/lodash-es/toInteger.js +6 -5
  1290. package/dist/node_modules/lodash-es/toNumber.js +14 -13
  1291. package/dist/node_modules/lodash-es/toPlainObject.js +7 -6
  1292. package/dist/node_modules/lodash-es/toString.js +6 -5
  1293. package/dist/node_modules/lodash-es/union.js +9 -7
  1294. package/dist/node_modules/lodash-es/uniqBy.js +7 -6
  1295. package/dist/node_modules/lodash-es/uniqueId.js +8 -7
  1296. package/dist/node_modules/lodash-es/values.js +7 -6
  1297. package/dist/node_modules/lodash-es/zipObject.js +7 -6
  1298. package/dist/node_modules/longest-streak/index.js +4 -2
  1299. package/dist/node_modules/markdown-table/index.js +11 -9
  1300. package/dist/node_modules/marked/lib/marked.esm.js +687 -685
  1301. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +14 -12
  1302. package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +4 -2
  1303. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +182 -180
  1304. package/dist/node_modules/mdast-util-gfm/lib/index.js +20 -18
  1305. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +69 -67
  1306. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +47 -45
  1307. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +15 -13
  1308. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +30 -28
  1309. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +16 -14
  1310. package/dist/node_modules/mdast-util-math/lib/index.js +15 -13
  1311. package/dist/node_modules/mdast-util-phrasing/lib/index.js +5 -3
  1312. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +11 -9
  1313. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +4 -2
  1314. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +4 -2
  1315. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +4 -2
  1316. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +4 -2
  1317. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +4 -2
  1318. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +6 -4
  1319. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +4 -2
  1320. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +4 -2
  1321. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +8 -6
  1322. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +6 -4
  1323. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +55 -53
  1324. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +4 -2
  1325. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +8 -6
  1326. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +6 -4
  1327. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +15 -13
  1328. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +4 -2
  1329. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +4 -2
  1330. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +4 -2
  1331. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +4 -2
  1332. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +4 -2
  1333. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +4 -2
  1334. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +6 -4
  1335. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +6 -4
  1336. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +4 -2
  1337. package/dist/node_modules/mdast-util-to-hast/lib/index.js +8 -6
  1338. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +4 -2
  1339. package/dist/node_modules/mdast-util-to-hast/lib/state.js +61 -59
  1340. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +6 -4
  1341. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +6 -4
  1342. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +18 -16
  1343. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +6 -4
  1344. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +14 -12
  1345. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +8 -6
  1346. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +6 -4
  1347. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +6 -4
  1348. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +8 -6
  1349. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +43 -41
  1350. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +7 -5
  1351. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +6 -4
  1352. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +11 -9
  1353. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +7 -5
  1354. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +12 -10
  1355. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +4 -2
  1356. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +6 -4
  1357. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +14 -12
  1358. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +4 -2
  1359. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +7 -5
  1360. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +4 -2
  1361. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +6 -4
  1362. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +4 -2
  1363. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +4 -2
  1364. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +4 -2
  1365. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +4 -2
  1366. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +4 -2
  1367. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +4 -2
  1368. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +4 -2
  1369. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +4 -2
  1370. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +4 -2
  1371. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +6 -4
  1372. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +4 -2
  1373. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +8 -7
  1374. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +6 -4
  1375. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +6 -4
  1376. package/dist/node_modules/mdast-util-to-string/lib/index.js +14 -12
  1377. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-Q4EWVU46.js +695 -0
  1378. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-DXYQGD6D.js +3038 -0
  1379. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-YG6GDRKO.js → c4Diagram-AHTNJAMY.js} +581 -573
  1380. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-336JU56O.js +49 -0
  1381. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-426QAEUC.js +11 -0
  1382. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js +6 -4
  1383. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-B4BG7PRW.js → chunk-4TB4RGXK.js} +590 -444
  1384. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +7 -5
  1385. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js +3640 -0
  1386. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +342 -0
  1387. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +22 -20
  1388. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-BSJP7CBP.js +82 -0
  1389. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EDXVE4YY.js +25 -0
  1390. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js +570 -0
  1391. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js +5 -3
  1392. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js +2348 -0
  1393. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OYMX7WX6.js +2014 -0
  1394. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js +8 -4
  1395. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.js +274 -0
  1396. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-X2U36JSP.js +67 -0
  1397. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XPW4576I.js +1146 -0
  1398. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.js +62 -0
  1399. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.js +32 -0
  1400. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-6PBFFD2Q.js +29 -0
  1401. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-HSJHXN6E.js +29 -0
  1402. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +116 -114
  1403. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-KV5264BT.js +265 -0
  1404. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.js +101 -0
  1405. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-G4DWMVQ6.js +284 -0
  1406. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.js +213 -0
  1407. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-TYMM5635.js +133 -0
  1408. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-Q2GNP2WA.js → erDiagram-SMLLAGMA.js} +549 -445
  1409. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-NV44I4VS.js → flowDiagram-DWJPFMVM.js} +1366 -1345
  1410. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-T4ZO3ILL.js +1720 -0
  1411. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.js +730 -0
  1412. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-42DDH7IO.js +19 -0
  1413. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-UXIWVN3A.js +718 -0
  1414. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-VCZTEJTY.js +885 -0
  1415. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-3W4ZIXB7.js → kanban-definition-6JOO6SKY.js} +124 -118
  1416. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-VGOIOE7T.js → mindmap-definition-QFDTVHPH.js} +172 -122
  1417. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.js +119 -0
  1418. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-AYHSOK5B.js → quadrantDiagram-34T5L4WZ.js} +279 -273
  1419. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-UZGBJVZJ.js → requirementDiagram-MS252O5E.js} +100 -66
  1420. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-XADWPNL6.js +529 -0
  1421. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js +4159 -0
  1422. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FHFEXIEX.js +222 -0
  1423. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-QKLJ7IA2.js +27 -0
  1424. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.js +1073 -0
  1425. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-DHZGUBPP.js +961 -0
  1426. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +578 -0
  1427. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-5P7HB3ND.js +2000 -0
  1428. package/dist/node_modules/mermaid/dist/mermaid.core.js +492 -445
  1429. package/dist/node_modules/micromark/lib/constructs.js +80 -79
  1430. package/dist/node_modules/micromark/lib/create-tokenizer.js +14 -12
  1431. package/dist/node_modules/micromark/lib/initialize/content.js +9 -7
  1432. package/dist/node_modules/micromark/lib/initialize/document.js +15 -14
  1433. package/dist/node_modules/micromark/lib/initialize/flow.js +9 -7
  1434. package/dist/node_modules/micromark/lib/initialize/text.js +8 -6
  1435. package/dist/node_modules/micromark/lib/parse.js +20 -18
  1436. package/dist/node_modules/micromark/lib/postprocess.js +6 -4
  1437. package/dist/node_modules/micromark/lib/preprocess.js +6 -4
  1438. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +20 -18
  1439. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +17 -15
  1440. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +11 -9
  1441. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +15 -13
  1442. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +8 -6
  1443. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +16 -14
  1444. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +22 -21
  1445. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +16 -15
  1446. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +13 -11
  1447. package/dist/node_modules/micromark-core-commonmark/lib/content.js +18 -17
  1448. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +30 -29
  1449. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +8 -6
  1450. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +15 -13
  1451. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +68 -67
  1452. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +66 -64
  1453. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +112 -111
  1454. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +8 -6
  1455. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +8 -6
  1456. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +8 -6
  1457. package/dist/node_modules/micromark-core-commonmark/lib/list.js +32 -31
  1458. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +12 -10
  1459. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +11 -9
  1460. package/dist/node_modules/micromark-extension-gfm/index.js +16 -14
  1461. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +122 -120
  1462. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +33 -31
  1463. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +11 -9
  1464. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +6 -4
  1465. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +4 -2
  1466. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +36 -34
  1467. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +20 -18
  1468. package/dist/node_modules/micromark-extension-math/lib/math-flow.js +21 -20
  1469. package/dist/node_modules/micromark-extension-math/lib/math-text.js +11 -9
  1470. package/dist/node_modules/micromark-extension-math/lib/syntax.js +8 -6
  1471. package/dist/node_modules/micromark-factory-destination/index.js +10 -8
  1472. package/dist/node_modules/micromark-factory-label/index.js +7 -5
  1473. package/dist/node_modules/micromark-factory-space/index.js +7 -5
  1474. package/dist/node_modules/micromark-factory-title/index.js +8 -6
  1475. package/dist/node_modules/micromark-factory-whitespace/index.js +7 -5
  1476. package/dist/node_modules/micromark-util-character/index.js +14 -12
  1477. package/dist/node_modules/micromark-util-chunked/index.js +6 -4
  1478. package/dist/node_modules/micromark-util-classify-character/index.js +7 -5
  1479. package/dist/node_modules/micromark-util-combine-extensions/index.js +13 -11
  1480. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +4 -2
  1481. package/dist/node_modules/micromark-util-decode-string/index.js +11 -9
  1482. package/dist/node_modules/micromark-util-html-tag-name/index.js +4 -2
  1483. package/dist/node_modules/micromark-util-normalize-identifier/index.js +4 -2
  1484. package/dist/node_modules/micromark-util-resolve-all/index.js +4 -2
  1485. package/dist/node_modules/micromark-util-sanitize-uri/index.js +6 -4
  1486. package/dist/node_modules/micromark-util-subtokenize/index.js +10 -8
  1487. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +10 -8
  1488. package/dist/node_modules/motion/dist/es/react.js +2 -2
  1489. package/dist/node_modules/nanoid/index.browser.js +6 -4
  1490. package/dist/node_modules/nanoid/url-alphabet/index.js +4 -2
  1491. package/dist/node_modules/property-information/index.js +25 -23
  1492. package/dist/node_modules/property-information/lib/aria.js +41 -39
  1493. package/dist/node_modules/property-information/lib/find.js +18 -16
  1494. package/dist/node_modules/property-information/lib/hast-to-react.js +4 -2
  1495. package/dist/node_modules/property-information/lib/html.js +96 -94
  1496. package/dist/node_modules/property-information/lib/normalize.js +4 -2
  1497. package/dist/node_modules/property-information/lib/svg.js +79 -77
  1498. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +6 -4
  1499. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +4 -2
  1500. package/dist/node_modules/property-information/lib/util/create.js +10 -8
  1501. package/dist/node_modules/property-information/lib/util/defined-info.js +13 -11
  1502. package/dist/node_modules/property-information/lib/util/info.js +5 -3
  1503. package/dist/node_modules/property-information/lib/util/merge.js +6 -4
  1504. package/dist/node_modules/property-information/lib/util/schema.js +5 -3
  1505. package/dist/node_modules/property-information/lib/util/types.js +15 -14
  1506. package/dist/node_modules/property-information/lib/xlink.js +5 -3
  1507. package/dist/node_modules/property-information/lib/xml.js +5 -3
  1508. package/dist/node_modules/property-information/lib/xmlns.js +7 -5
  1509. package/dist/node_modules/rehype-harden/dist/index.js +47 -45
  1510. package/dist/node_modules/rehype-katex/lib/index.js +25 -23
  1511. package/dist/node_modules/rehype-raw/lib/index.js +6 -4
  1512. package/dist/node_modules/rehype-sanitize/lib/index.js +6 -4
  1513. package/dist/node_modules/remark-gfm/lib/index.js +9 -7
  1514. package/dist/node_modules/remark-math/lib/index.js +9 -7
  1515. package/dist/node_modules/remark-parse/lib/index.js +6 -4
  1516. package/dist/node_modules/remark-rehype/lib/index.js +7 -5
  1517. package/dist/node_modules/remend/dist/index.js +368 -297
  1518. package/dist/node_modules/roughjs/bundled/rough.esm.js +877 -875
  1519. package/dist/node_modules/shiki/dist/bundle-full.js +13 -11
  1520. package/dist/node_modules/shiki/dist/chunk-CtajNgzt.js +17 -0
  1521. package/dist/node_modules/shiki/dist/engine-oniguruma.js +7 -0
  1522. package/dist/node_modules/shiki/dist/{langs.js → langs-bundle-full-DfKZStlK.js} +8 -6
  1523. package/dist/node_modules/shiki/dist/themes.js +6 -4
  1524. package/dist/node_modules/shiki/dist/wasm.js +2 -2
  1525. package/dist/node_modules/space-separated-tokens/index.js +5 -3
  1526. package/dist/node_modules/streamdown/dist/chunk-BO2N2NFS.js +2500 -0
  1527. package/dist/node_modules/streamdown/dist/highlighted-body-OFNGDK62.js +37 -0
  1528. package/dist/node_modules/streamdown/dist/index.js +1 -1
  1529. package/dist/node_modules/streamdown/dist/mermaid-GHXKKRXX.js +3 -0
  1530. package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +701 -699
  1531. package/dist/node_modules/stringify-entities/lib/constant/dangerous.js +4 -2
  1532. package/dist/node_modules/stringify-entities/lib/core.js +18 -16
  1533. package/dist/node_modules/stringify-entities/lib/index.js +7 -5
  1534. package/dist/node_modules/stringify-entities/lib/util/format-smart.js +10 -8
  1535. package/dist/node_modules/stringify-entities/lib/util/to-decimal.js +6 -4
  1536. package/dist/node_modules/stringify-entities/lib/util/to-hexadecimal.js +6 -4
  1537. package/dist/node_modules/stringify-entities/lib/util/to-named.js +14 -12
  1538. package/dist/node_modules/style-to-js/cjs/index.js +9 -7
  1539. package/dist/node_modules/style-to-js/cjs/utilities.js +6 -4
  1540. package/dist/node_modules/style-to-object/cjs/index.js +8 -6
  1541. package/dist/node_modules/stylis/src/Enum.js +4 -2
  1542. package/dist/node_modules/stylis/src/Parser.js +38 -36
  1543. package/dist/node_modules/stylis/src/Serializer.js +17 -15
  1544. package/dist/node_modules/stylis/src/Tokenizer.js +53 -51
  1545. package/dist/node_modules/stylis/src/Utility.js +17 -15
  1546. package/dist/node_modules/trim-lines/index.js +10 -8
  1547. package/dist/node_modules/trough/lib/index.js +6 -4
  1548. package/dist/node_modules/ts-dedent/esm/index.js +4 -2
  1549. package/dist/node_modules/unified/lib/callable-instance.js +4 -2
  1550. package/dist/node_modules/unified/lib/index.js +102 -101
  1551. package/dist/node_modules/unified/node_modules/is-plain-obj/index.js +4 -2
  1552. package/dist/node_modules/unist-util-find-after/lib/index.js +6 -4
  1553. package/dist/node_modules/unist-util-is/lib/index.js +31 -29
  1554. package/dist/node_modules/unist-util-position/lib/index.js +7 -5
  1555. package/dist/node_modules/unist-util-stringify-position/lib/index.js +10 -8
  1556. package/dist/node_modules/unist-util-visit/lib/index.js +6 -4
  1557. package/dist/node_modules/unist-util-visit-parents/lib/color.js +4 -2
  1558. package/dist/node_modules/unist-util-visit-parents/lib/index.js +21 -20
  1559. package/dist/node_modules/uuid/dist/esm-browser/native.js +3 -2
  1560. package/dist/node_modules/uuid/dist/esm-browser/rng.js +8 -6
  1561. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +7 -5
  1562. package/dist/node_modules/uuid/dist/esm-browser/v4.js +10 -9
  1563. package/dist/node_modules/vaul/dist/index.js +276 -274
  1564. package/dist/node_modules/vfile/lib/index.js +44 -42
  1565. package/dist/node_modules/vfile/lib/minpath.browser.js +22 -20
  1566. package/dist/node_modules/vfile/lib/minproc.browser.js +5 -3
  1567. package/dist/node_modules/vfile/lib/minurl.browser.js +8 -6
  1568. package/dist/node_modules/vfile/lib/minurl.shared.js +4 -2
  1569. package/dist/node_modules/vfile-location/lib/index.js +7 -5
  1570. package/dist/node_modules/vfile-message/lib/index.js +7 -5
  1571. package/dist/node_modules/vscode-jsonrpc/browser.js +8 -6
  1572. package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +11 -9
  1573. package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +8 -6
  1574. package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +28 -26
  1575. package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +17 -15
  1576. package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +13 -11
  1577. package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +6 -4
  1578. package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +8 -6
  1579. package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +6 -4
  1580. package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +6 -4
  1581. package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +6 -4
  1582. package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +11 -9
  1583. package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +31 -29
  1584. package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +8 -6
  1585. package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +6 -4
  1586. package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +8 -6
  1587. package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +8 -6
  1588. package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +10 -8
  1589. package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +23 -21
  1590. package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +8 -6
  1591. package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +8 -6
  1592. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +8 -6
  1593. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +8 -6
  1594. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +8 -6
  1595. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +8 -6
  1596. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +14 -12
  1597. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +8 -6
  1598. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +8 -6
  1599. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +8 -6
  1600. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +8 -6
  1601. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +8 -6
  1602. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +8 -6
  1603. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +55 -53
  1604. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +8 -6
  1605. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +8 -6
  1606. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +10 -8
  1607. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +12 -10
  1608. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +8 -6
  1609. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +8 -6
  1610. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +8 -6
  1611. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +8 -6
  1612. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +8 -6
  1613. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +8 -6
  1614. package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +6 -4
  1615. package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +21 -19
  1616. package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +849 -847
  1617. package/dist/node_modules/vscode-uri/lib/esm/index.js +6 -4
  1618. package/dist/node_modules/web-namespaces/index.js +4 -2
  1619. package/dist/node_modules/zwitch/index.js +7 -5
  1620. package/dist/packages/contracts/dist/enums/index.js +21 -20
  1621. package/dist/packages/contracts/dist/enums/registry.enum.js +6 -4
  1622. package/dist/packages/contracts/dist/enums/sort-order.enum.js +6 -4
  1623. package/dist/packages/contracts/dist/enums/user-type.enum.js +6 -4
  1624. package/dist/packages/contracts/dist/enums/workflow-state.enum.js +7 -5
  1625. package/dist/pages/DashboardPage.js +55 -99
  1626. package/dist/pages/DebugPage.js +12 -17
  1627. package/dist/pages/DebugWorkflowDetailsPage.js +91 -119
  1628. package/dist/pages/DebugWorkflowsPage.js +44 -42
  1629. package/dist/pages/EmbedWorkbenchPage.js +49 -73
  1630. package/dist/pages/PreviewWorkbenchPage.js +242 -448
  1631. package/dist/pages/RunsListPage.js +44 -61
  1632. package/dist/pages/RunsPage.js +31 -48
  1633. package/dist/pages/StudioLandingPage.js +97 -132
  1634. package/dist/pages/WorkbenchPage.js +56 -86
  1635. package/dist/pages/WorkflowDebugPage.js +78 -0
  1636. package/dist/pages/WorkspacePage.js +72 -113
  1637. package/dist/pages/WorkspaceRunsPage.js +43 -70
  1638. package/dist/pages/WorkspacesPage.js +24 -35
  1639. package/dist/providers/ComponentOverridesProvider.js +9 -12
  1640. package/dist/providers/InvalidationEventsProvider.js +33 -35
  1641. package/dist/providers/QueryProvider.js +14 -18
  1642. package/dist/providers/SseProvider.js +28 -30
  1643. package/dist/providers/StudioProvider.js +14 -19
  1644. package/dist/routing/LocalRouter.js +20 -26
  1645. package/dist/services/createApiClient.js +7 -5
  1646. package/dist/services/eventEmitter.js +3 -2
  1647. package/dist/services/index.js +2 -2
  1648. package/dist/types/ai.types.js +7 -5
  1649. package/package.json +33 -33
  1650. package/dist/_virtual/rolldown_runtime.js +0 -20
  1651. package/dist/api/namespaces.js +0 -7
  1652. package/dist/api/pipelines.js +0 -13
  1653. package/dist/components/ai-elements/tool.js +0 -158
  1654. package/dist/components/ui-widgets/widgets/SecretInput.js +0 -42
  1655. package/dist/features/debug/components/PipelineDebugHeader.js +0 -48
  1656. package/dist/features/debug/components/PipelineDebugLegend.js +0 -68
  1657. package/dist/features/debug/components/PipelineFlowViewer.js +0 -110
  1658. package/dist/features/debug/components/pipeline-flow/StateNode.js +0 -111
  1659. package/dist/features/debug/components/pipeline-flow/WorkflowGraph.js +0 -41
  1660. package/dist/features/debug/components/pipeline-flow/WorkflowTransitionEdge.js +0 -97
  1661. package/dist/features/workbench/NavigationItems.js +0 -52
  1662. package/dist/features/workbench/WorkbenchNavigation.js +0 -38
  1663. package/dist/features/workbench/components/NavigationItem.js +0 -68
  1664. package/dist/features/workbench/components/PipelineHistoryList.js +0 -56
  1665. package/dist/features/workbench/hooks/useIntersectionObserver.js +0 -44
  1666. package/dist/features/workspaces/components/NewPipelineRunDialog.js +0 -31
  1667. package/dist/features/workspaces/components/PipelineForm.js +0 -152
  1668. package/dist/features/workspaces/components/pipeline-form/ArgumentsView.js +0 -75
  1669. package/dist/features/workspaces/components/pipeline-form/HeaderSection.js +0 -43
  1670. package/dist/features/workspaces/components/pipeline-form/SelectionView.js +0 -105
  1671. package/dist/hooks/useNamespaceTree.js +0 -27
  1672. package/dist/hooks/useNamespaces.js +0 -25
  1673. package/dist/hooks/usePipelines.js +0 -161
  1674. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7HQA4BMR.js +0 -3
  1675. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4F5CHEZ2.js +0 -23
  1676. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-B2363JML.js +0 -60
  1677. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FRFDVMJY.js +0 -23
  1678. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PL6DKKU2.js +0 -28
  1679. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-SJTYNZTY.js +0 -23
  1680. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TCCFYFTB.js +0 -787
  1681. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TQ3KTPDO.js +0 -23
  1682. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UMXZTB3W.js +0 -30
  1683. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-G5XIXVHT.js +0 -3
  1684. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-VBDWY6EO.js +0 -3
  1685. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-DYOGHKS2.js +0 -3
  1686. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-VRWISCQL.js +0 -3
  1687. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-ZZBFDIW7.js +0 -3
  1688. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-GDKQZRPO.js +0 -3
  1689. package/dist/node_modules/@ungap/structured-clone/esm/types.js +0 -2
  1690. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +0 -16
  1691. package/dist/node_modules/langium/lib/index.js +0 -182
  1692. package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
  1693. package/dist/node_modules/langium/lib/utils/index.js +0 -53
  1694. package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
  1695. package/dist/node_modules/lodash/_Symbol.js +0 -7
  1696. package/dist/node_modules/lodash/_baseGetTag.js +0 -13
  1697. package/dist/node_modules/lodash/_baseTrim.js +0 -11
  1698. package/dist/node_modules/lodash/_freeGlobal.js +0 -6
  1699. package/dist/node_modules/lodash/_getRawTag.js +0 -17
  1700. package/dist/node_modules/lodash/_objectToString.js +0 -10
  1701. package/dist/node_modules/lodash/_root.js +0 -8
  1702. package/dist/node_modules/lodash/_trimmedEndIndex.js +0 -11
  1703. package/dist/node_modules/lodash/isObject.js +0 -10
  1704. package/dist/node_modules/lodash/isObjectLike.js +0 -9
  1705. package/dist/node_modules/lodash/isSymbol.js +0 -12
  1706. package/dist/node_modules/lodash/now.js +0 -10
  1707. package/dist/node_modules/lodash/toNumber.js +0 -22
  1708. package/dist/node_modules/lodash-es/_arrayAggregator.js +0 -9
  1709. package/dist/node_modules/lodash-es/_arrayEvery.js +0 -6
  1710. package/dist/node_modules/lodash-es/_baseAggregator.js +0 -8
  1711. package/dist/node_modules/lodash-es/_baseDifference.js +0 -22
  1712. package/dist/node_modules/lodash-es/_baseEvery.js +0 -9
  1713. package/dist/node_modules/lodash-es/_baseIsRegExp.js +0 -8
  1714. package/dist/node_modules/lodash-es/_baseSlice.js +0 -8
  1715. package/dist/node_modules/lodash-es/_baseSome.js +0 -9
  1716. package/dist/node_modules/lodash-es/_createAggregator.js +0 -12
  1717. package/dist/node_modules/lodash-es/assign.js +0 -14
  1718. package/dist/node_modules/lodash-es/compact.js +0 -9
  1719. package/dist/node_modules/lodash-es/difference.js +0 -8
  1720. package/dist/node_modules/lodash-es/drop.js +0 -8
  1721. package/dist/node_modules/lodash-es/dropRight.js +0 -8
  1722. package/dist/node_modules/lodash-es/every.js +0 -11
  1723. package/dist/node_modules/lodash-es/groupBy.js +0 -6
  1724. package/dist/node_modules/lodash-es/head.js +0 -5
  1725. package/dist/node_modules/lodash-es/includes.js +0 -13
  1726. package/dist/node_modules/lodash-es/indexOf.js +0 -11
  1727. package/dist/node_modules/lodash-es/isRegExp.js +0 -5
  1728. package/dist/node_modules/lodash-es/negate.js +0 -16
  1729. package/dist/node_modules/lodash-es/pickBy.js +0 -15
  1730. package/dist/node_modules/lodash-es/reject.js +0 -10
  1731. package/dist/node_modules/lodash-es/some.js +0 -11
  1732. package/dist/node_modules/lodash-es/uniq.js +0 -6
  1733. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.js +0 -673
  1734. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VD42YOAC.js +0 -3010
  1735. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +0 -1547
  1736. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ATLVNIR6.js +0 -65
  1737. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.js +0 -10
  1738. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DI55MBZ5.js +0 -1994
  1739. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DR5Q36YT.js +0 -135
  1740. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EXTU4WIE.js +0 -9
  1741. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HN2XXSSU.js +0 -74
  1742. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.js +0 -247
  1743. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.js +0 -3516
  1744. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MI3HLSF2.js +0 -1140
  1745. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.js +0 -39
  1746. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QN33PNHL.js +0 -23
  1747. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.js +0 -497
  1748. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.js +0 -338
  1749. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.js +0 -55
  1750. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-2ON5EDUG.js +0 -26
  1751. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-WZHVMYZB.js +0 -26
  1752. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-6UL2VRFP.js +0 -263
  1753. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-PSM6KHXK.js +0 -283
  1754. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.js +0 -211
  1755. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-S2PKOQOG.js +0 -129
  1756. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-JELNMOA3.js +0 -1688
  1757. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-V2S2FVAM.js +0 -621
  1758. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-HS3SLOUP.js +0 -18
  1759. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-XKPGCS4Q.js +0 -883
  1760. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.js +0 -117
  1761. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-TZEHDZUN.js +0 -519
  1762. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.js +0 -3560
  1763. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FKZM4ZOC.js +0 -220
  1764. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-4FDKWEC3.js +0 -25
  1765. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.js +0 -833
  1766. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-PRI3JC2R.js +0 -1975
  1767. package/dist/node_modules/streamdown/dist/chunk-RLXIAIE6.js +0 -2189
  1768. package/dist/node_modules/streamdown/dist/highlighted-body-B3W2YXNL.js +0 -33
  1769. package/dist/node_modules/streamdown/dist/mermaid-3ZIDBTTL.js +0 -3
  1770. package/dist/packages/contracts/dist/enums/pipeline-state.js +0 -10
  1771. package/dist/pages/PipelineDebugPage.js +0 -115
@@ -1,3560 +0,0 @@
1
- import { __name, log } from "./chunk-AGHRB4JF.js";
2
- import { assignWithDepth_default, calculateMathMLDimensions, clear, common_default, configureSvgSize, getAccDescription, getAccTitle, getConfig, getConfig2, getDiagramTitle, getUrl, hasKatex, renderKatexSanitized, sanitizeText, setAccDescription, setAccTitle, setConfig2, setDiagramTitle } from "./chunk-ABZYJK2D.js";
3
- import select_default from "../../../../d3-selection/src/select.js";
4
- import "../../../../d3/src/index.js";
5
- import { JSON_SCHEMA, load } from "./chunk-MI3HLSF2.js";
6
- import { require_dist } from "../../../../@braintree/sanitize-url/dist/index.js";
7
- import { ZERO_WIDTH_SPACE, parseFontSize, utils_default } from "./chunk-S3R3BYOJ.js";
8
- import { drawBackgroundRect, drawEmbeddedImage, drawImage, drawRect, getNoteRect, getTextObj } from "./chunk-TZMSLE5B.js";
9
- import { ImperativeState } from "./chunk-QZHKN3VN.js";
10
- var import_dist = require_dist(), parser = (function() {
11
- var l = /* @__PURE__ */ __name(function(e, l, u, d) {
12
- for (u ||= {}, d = e.length; d--; u[e[d]] = l);
13
- return u;
14
- }, "o"), u = [1, 2], d = [1, 3], f = [1, 4], p = [2, 4], m = [1, 9], h = [1, 11], g = [1, 13], _ = [1, 14], v = [1, 16], y = [1, 17], b = [1, 18], x = [1, 24], S = [1, 25], C = [1, 26], w = [1, 27], T = [1, 28], E = [1, 29], D = [1, 30], O = [1, 31], k = [1, 32], A = [1, 33], j = [1, 34], M = [1, 35], N = [1, 36], P = [1, 37], F = [1, 38], I = [1, 39], L = [1, 41], R = [1, 42], z = [1, 43], B = [1, 44], V = [1, 45], H = [1, 46], U = [
15
- 1,
16
- 4,
17
- 5,
18
- 13,
19
- 14,
20
- 16,
21
- 18,
22
- 21,
23
- 23,
24
- 29,
25
- 30,
26
- 31,
27
- 33,
28
- 35,
29
- 36,
30
- 37,
31
- 38,
32
- 39,
33
- 41,
34
- 43,
35
- 44,
36
- 46,
37
- 47,
38
- 48,
39
- 49,
40
- 50,
41
- 52,
42
- 53,
43
- 55,
44
- 60,
45
- 61,
46
- 62,
47
- 63,
48
- 71
49
- ], W = [2, 71], G = [
50
- 4,
51
- 5,
52
- 16,
53
- 50,
54
- 52,
55
- 53
56
- ], K = [
57
- 4,
58
- 5,
59
- 13,
60
- 14,
61
- 16,
62
- 18,
63
- 21,
64
- 23,
65
- 29,
66
- 30,
67
- 31,
68
- 33,
69
- 35,
70
- 36,
71
- 37,
72
- 38,
73
- 39,
74
- 41,
75
- 43,
76
- 44,
77
- 46,
78
- 50,
79
- 52,
80
- 53,
81
- 55,
82
- 60,
83
- 61,
84
- 62,
85
- 63,
86
- 71
87
- ], q = [
88
- 4,
89
- 5,
90
- 13,
91
- 14,
92
- 16,
93
- 18,
94
- 21,
95
- 23,
96
- 29,
97
- 30,
98
- 31,
99
- 33,
100
- 35,
101
- 36,
102
- 37,
103
- 38,
104
- 39,
105
- 41,
106
- 43,
107
- 44,
108
- 46,
109
- 49,
110
- 50,
111
- 52,
112
- 53,
113
- 55,
114
- 60,
115
- 61,
116
- 62,
117
- 63,
118
- 71
119
- ], J = [
120
- 4,
121
- 5,
122
- 13,
123
- 14,
124
- 16,
125
- 18,
126
- 21,
127
- 23,
128
- 29,
129
- 30,
130
- 31,
131
- 33,
132
- 35,
133
- 36,
134
- 37,
135
- 38,
136
- 39,
137
- 41,
138
- 43,
139
- 44,
140
- 46,
141
- 48,
142
- 50,
143
- 52,
144
- 53,
145
- 55,
146
- 60,
147
- 61,
148
- 62,
149
- 63,
150
- 71
151
- ], Y = [
152
- 4,
153
- 5,
154
- 13,
155
- 14,
156
- 16,
157
- 18,
158
- 21,
159
- 23,
160
- 29,
161
- 30,
162
- 31,
163
- 33,
164
- 35,
165
- 36,
166
- 37,
167
- 38,
168
- 39,
169
- 41,
170
- 43,
171
- 44,
172
- 46,
173
- 47,
174
- 50,
175
- 52,
176
- 53,
177
- 55,
178
- 60,
179
- 61,
180
- 62,
181
- 63,
182
- 71
183
- ], X = [
184
- 69,
185
- 70,
186
- 71
187
- ], Z = [1, 127], Q = {
188
- trace: /* @__PURE__ */ __name(function() {}, "trace"),
189
- yy: {},
190
- symbols_: {
191
- error: 2,
192
- start: 3,
193
- SPACE: 4,
194
- NEWLINE: 5,
195
- SD: 6,
196
- document: 7,
197
- line: 8,
198
- statement: 9,
199
- box_section: 10,
200
- box_line: 11,
201
- participant_statement: 12,
202
- create: 13,
203
- box: 14,
204
- restOfLine: 15,
205
- end: 16,
206
- signal: 17,
207
- autonumber: 18,
208
- NUM: 19,
209
- off: 20,
210
- activate: 21,
211
- actor: 22,
212
- deactivate: 23,
213
- note_statement: 24,
214
- links_statement: 25,
215
- link_statement: 26,
216
- properties_statement: 27,
217
- details_statement: 28,
218
- title: 29,
219
- legacy_title: 30,
220
- acc_title: 31,
221
- acc_title_value: 32,
222
- acc_descr: 33,
223
- acc_descr_value: 34,
224
- acc_descr_multiline_value: 35,
225
- loop: 36,
226
- rect: 37,
227
- opt: 38,
228
- alt: 39,
229
- else_sections: 40,
230
- par: 41,
231
- par_sections: 42,
232
- par_over: 43,
233
- critical: 44,
234
- option_sections: 45,
235
- break: 46,
236
- option: 47,
237
- and: 48,
238
- else: 49,
239
- participant: 50,
240
- AS: 51,
241
- participant_actor: 52,
242
- destroy: 53,
243
- actor_with_config: 54,
244
- note: 55,
245
- placement: 56,
246
- text2: 57,
247
- over: 58,
248
- actor_pair: 59,
249
- links: 60,
250
- link: 61,
251
- properties: 62,
252
- details: 63,
253
- spaceList: 64,
254
- ",": 65,
255
- left_of: 66,
256
- right_of: 67,
257
- signaltype: 68,
258
- "+": 69,
259
- "-": 70,
260
- ACTOR: 71,
261
- config_object: 72,
262
- CONFIG_START: 73,
263
- CONFIG_CONTENT: 74,
264
- CONFIG_END: 75,
265
- SOLID_OPEN_ARROW: 76,
266
- DOTTED_OPEN_ARROW: 77,
267
- SOLID_ARROW: 78,
268
- BIDIRECTIONAL_SOLID_ARROW: 79,
269
- DOTTED_ARROW: 80,
270
- BIDIRECTIONAL_DOTTED_ARROW: 81,
271
- SOLID_CROSS: 82,
272
- DOTTED_CROSS: 83,
273
- SOLID_POINT: 84,
274
- DOTTED_POINT: 85,
275
- TXT: 86,
276
- $accept: 0,
277
- $end: 1
278
- },
279
- terminals_: {
280
- 2: "error",
281
- 4: "SPACE",
282
- 5: "NEWLINE",
283
- 6: "SD",
284
- 13: "create",
285
- 14: "box",
286
- 15: "restOfLine",
287
- 16: "end",
288
- 18: "autonumber",
289
- 19: "NUM",
290
- 20: "off",
291
- 21: "activate",
292
- 23: "deactivate",
293
- 29: "title",
294
- 30: "legacy_title",
295
- 31: "acc_title",
296
- 32: "acc_title_value",
297
- 33: "acc_descr",
298
- 34: "acc_descr_value",
299
- 35: "acc_descr_multiline_value",
300
- 36: "loop",
301
- 37: "rect",
302
- 38: "opt",
303
- 39: "alt",
304
- 41: "par",
305
- 43: "par_over",
306
- 44: "critical",
307
- 46: "break",
308
- 47: "option",
309
- 48: "and",
310
- 49: "else",
311
- 50: "participant",
312
- 51: "AS",
313
- 52: "participant_actor",
314
- 53: "destroy",
315
- 55: "note",
316
- 58: "over",
317
- 60: "links",
318
- 61: "link",
319
- 62: "properties",
320
- 63: "details",
321
- 65: ",",
322
- 66: "left_of",
323
- 67: "right_of",
324
- 69: "+",
325
- 70: "-",
326
- 71: "ACTOR",
327
- 73: "CONFIG_START",
328
- 74: "CONFIG_CONTENT",
329
- 75: "CONFIG_END",
330
- 76: "SOLID_OPEN_ARROW",
331
- 77: "DOTTED_OPEN_ARROW",
332
- 78: "SOLID_ARROW",
333
- 79: "BIDIRECTIONAL_SOLID_ARROW",
334
- 80: "DOTTED_ARROW",
335
- 81: "BIDIRECTIONAL_DOTTED_ARROW",
336
- 82: "SOLID_CROSS",
337
- 83: "DOTTED_CROSS",
338
- 84: "SOLID_POINT",
339
- 85: "DOTTED_POINT",
340
- 86: "TXT"
341
- },
342
- productions_: [
343
- 0,
344
- [3, 2],
345
- [3, 2],
346
- [3, 2],
347
- [7, 0],
348
- [7, 2],
349
- [8, 2],
350
- [8, 1],
351
- [8, 1],
352
- [10, 0],
353
- [10, 2],
354
- [11, 2],
355
- [11, 1],
356
- [11, 1],
357
- [9, 1],
358
- [9, 2],
359
- [9, 4],
360
- [9, 2],
361
- [9, 4],
362
- [9, 3],
363
- [9, 3],
364
- [9, 2],
365
- [9, 3],
366
- [9, 3],
367
- [9, 2],
368
- [9, 2],
369
- [9, 2],
370
- [9, 2],
371
- [9, 2],
372
- [9, 1],
373
- [9, 1],
374
- [9, 2],
375
- [9, 2],
376
- [9, 1],
377
- [9, 4],
378
- [9, 4],
379
- [9, 4],
380
- [9, 4],
381
- [9, 4],
382
- [9, 4],
383
- [9, 4],
384
- [9, 4],
385
- [45, 1],
386
- [45, 4],
387
- [42, 1],
388
- [42, 4],
389
- [40, 1],
390
- [40, 4],
391
- [12, 5],
392
- [12, 3],
393
- [12, 5],
394
- [12, 3],
395
- [12, 3],
396
- [12, 3],
397
- [24, 4],
398
- [24, 4],
399
- [25, 3],
400
- [26, 3],
401
- [27, 3],
402
- [28, 3],
403
- [64, 2],
404
- [64, 1],
405
- [59, 3],
406
- [59, 1],
407
- [56, 1],
408
- [56, 1],
409
- [17, 5],
410
- [17, 5],
411
- [17, 4],
412
- [54, 2],
413
- [72, 3],
414
- [22, 1],
415
- [68, 1],
416
- [68, 1],
417
- [68, 1],
418
- [68, 1],
419
- [68, 1],
420
- [68, 1],
421
- [68, 1],
422
- [68, 1],
423
- [68, 1],
424
- [68, 1],
425
- [57, 1]
426
- ],
427
- performAction: /* @__PURE__ */ __name(function(e, l, u, d, f, p, m) {
428
- var h = p.length - 1;
429
- switch (f) {
430
- case 3: return d.apply(p[h]), p[h];
431
- case 4:
432
- case 9:
433
- this.$ = [];
434
- break;
435
- case 5:
436
- case 10:
437
- p[h - 1].push(p[h]), this.$ = p[h - 1];
438
- break;
439
- case 6:
440
- case 7:
441
- case 11:
442
- case 12:
443
- this.$ = p[h];
444
- break;
445
- case 8:
446
- case 13:
447
- this.$ = [];
448
- break;
449
- case 15:
450
- p[h].type = "createParticipant", this.$ = p[h];
451
- break;
452
- case 16:
453
- p[h - 1].unshift({
454
- type: "boxStart",
455
- boxData: d.parseBoxData(p[h - 2])
456
- }), p[h - 1].push({
457
- type: "boxEnd",
458
- boxText: p[h - 2]
459
- }), this.$ = p[h - 1];
460
- break;
461
- case 18:
462
- this.$ = {
463
- type: "sequenceIndex",
464
- sequenceIndex: Number(p[h - 2]),
465
- sequenceIndexStep: Number(p[h - 1]),
466
- sequenceVisible: !0,
467
- signalType: d.LINETYPE.AUTONUMBER
468
- };
469
- break;
470
- case 19:
471
- this.$ = {
472
- type: "sequenceIndex",
473
- sequenceIndex: Number(p[h - 1]),
474
- sequenceIndexStep: 1,
475
- sequenceVisible: !0,
476
- signalType: d.LINETYPE.AUTONUMBER
477
- };
478
- break;
479
- case 20:
480
- this.$ = {
481
- type: "sequenceIndex",
482
- sequenceVisible: !1,
483
- signalType: d.LINETYPE.AUTONUMBER
484
- };
485
- break;
486
- case 21:
487
- this.$ = {
488
- type: "sequenceIndex",
489
- sequenceVisible: !0,
490
- signalType: d.LINETYPE.AUTONUMBER
491
- };
492
- break;
493
- case 22:
494
- this.$ = {
495
- type: "activeStart",
496
- signalType: d.LINETYPE.ACTIVE_START,
497
- actor: p[h - 1].actor
498
- };
499
- break;
500
- case 23:
501
- this.$ = {
502
- type: "activeEnd",
503
- signalType: d.LINETYPE.ACTIVE_END,
504
- actor: p[h - 1].actor
505
- };
506
- break;
507
- case 29:
508
- d.setDiagramTitle(p[h].substring(6)), this.$ = p[h].substring(6);
509
- break;
510
- case 30:
511
- d.setDiagramTitle(p[h].substring(7)), this.$ = p[h].substring(7);
512
- break;
513
- case 31:
514
- this.$ = p[h].trim(), d.setAccTitle(this.$);
515
- break;
516
- case 32:
517
- case 33:
518
- this.$ = p[h].trim(), d.setAccDescription(this.$);
519
- break;
520
- case 34:
521
- p[h - 1].unshift({
522
- type: "loopStart",
523
- loopText: d.parseMessage(p[h - 2]),
524
- signalType: d.LINETYPE.LOOP_START
525
- }), p[h - 1].push({
526
- type: "loopEnd",
527
- loopText: p[h - 2],
528
- signalType: d.LINETYPE.LOOP_END
529
- }), this.$ = p[h - 1];
530
- break;
531
- case 35:
532
- p[h - 1].unshift({
533
- type: "rectStart",
534
- color: d.parseMessage(p[h - 2]),
535
- signalType: d.LINETYPE.RECT_START
536
- }), p[h - 1].push({
537
- type: "rectEnd",
538
- color: d.parseMessage(p[h - 2]),
539
- signalType: d.LINETYPE.RECT_END
540
- }), this.$ = p[h - 1];
541
- break;
542
- case 36:
543
- p[h - 1].unshift({
544
- type: "optStart",
545
- optText: d.parseMessage(p[h - 2]),
546
- signalType: d.LINETYPE.OPT_START
547
- }), p[h - 1].push({
548
- type: "optEnd",
549
- optText: d.parseMessage(p[h - 2]),
550
- signalType: d.LINETYPE.OPT_END
551
- }), this.$ = p[h - 1];
552
- break;
553
- case 37:
554
- p[h - 1].unshift({
555
- type: "altStart",
556
- altText: d.parseMessage(p[h - 2]),
557
- signalType: d.LINETYPE.ALT_START
558
- }), p[h - 1].push({
559
- type: "altEnd",
560
- signalType: d.LINETYPE.ALT_END
561
- }), this.$ = p[h - 1];
562
- break;
563
- case 38:
564
- p[h - 1].unshift({
565
- type: "parStart",
566
- parText: d.parseMessage(p[h - 2]),
567
- signalType: d.LINETYPE.PAR_START
568
- }), p[h - 1].push({
569
- type: "parEnd",
570
- signalType: d.LINETYPE.PAR_END
571
- }), this.$ = p[h - 1];
572
- break;
573
- case 39:
574
- p[h - 1].unshift({
575
- type: "parStart",
576
- parText: d.parseMessage(p[h - 2]),
577
- signalType: d.LINETYPE.PAR_OVER_START
578
- }), p[h - 1].push({
579
- type: "parEnd",
580
- signalType: d.LINETYPE.PAR_END
581
- }), this.$ = p[h - 1];
582
- break;
583
- case 40:
584
- p[h - 1].unshift({
585
- type: "criticalStart",
586
- criticalText: d.parseMessage(p[h - 2]),
587
- signalType: d.LINETYPE.CRITICAL_START
588
- }), p[h - 1].push({
589
- type: "criticalEnd",
590
- signalType: d.LINETYPE.CRITICAL_END
591
- }), this.$ = p[h - 1];
592
- break;
593
- case 41:
594
- p[h - 1].unshift({
595
- type: "breakStart",
596
- breakText: d.parseMessage(p[h - 2]),
597
- signalType: d.LINETYPE.BREAK_START
598
- }), p[h - 1].push({
599
- type: "breakEnd",
600
- optText: d.parseMessage(p[h - 2]),
601
- signalType: d.LINETYPE.BREAK_END
602
- }), this.$ = p[h - 1];
603
- break;
604
- case 43:
605
- this.$ = p[h - 3].concat([{
606
- type: "option",
607
- optionText: d.parseMessage(p[h - 1]),
608
- signalType: d.LINETYPE.CRITICAL_OPTION
609
- }, p[h]]);
610
- break;
611
- case 45:
612
- this.$ = p[h - 3].concat([{
613
- type: "and",
614
- parText: d.parseMessage(p[h - 1]),
615
- signalType: d.LINETYPE.PAR_AND
616
- }, p[h]]);
617
- break;
618
- case 47:
619
- this.$ = p[h - 3].concat([{
620
- type: "else",
621
- altText: d.parseMessage(p[h - 1]),
622
- signalType: d.LINETYPE.ALT_ELSE
623
- }, p[h]]);
624
- break;
625
- case 48:
626
- p[h - 3].draw = "participant", p[h - 3].type = "addParticipant", p[h - 3].description = d.parseMessage(p[h - 1]), this.$ = p[h - 3];
627
- break;
628
- case 49:
629
- p[h - 1].draw = "participant", p[h - 1].type = "addParticipant", this.$ = p[h - 1];
630
- break;
631
- case 50:
632
- p[h - 3].draw = "actor", p[h - 3].type = "addParticipant", p[h - 3].description = d.parseMessage(p[h - 1]), this.$ = p[h - 3];
633
- break;
634
- case 51:
635
- p[h - 1].draw = "actor", p[h - 1].type = "addParticipant", this.$ = p[h - 1];
636
- break;
637
- case 52:
638
- p[h - 1].type = "destroyParticipant", this.$ = p[h - 1];
639
- break;
640
- case 53:
641
- p[h - 1].draw = "participant", p[h - 1].type = "addParticipant", this.$ = p[h - 1];
642
- break;
643
- case 54:
644
- this.$ = [p[h - 1], {
645
- type: "addNote",
646
- placement: p[h - 2],
647
- actor: p[h - 1].actor,
648
- text: p[h]
649
- }];
650
- break;
651
- case 55:
652
- p[h - 2] = [].concat(p[h - 1], p[h - 1]).slice(0, 2), p[h - 2][0] = p[h - 2][0].actor, p[h - 2][1] = p[h - 2][1].actor, this.$ = [p[h - 1], {
653
- type: "addNote",
654
- placement: d.PLACEMENT.OVER,
655
- actor: p[h - 2].slice(0, 2),
656
- text: p[h]
657
- }];
658
- break;
659
- case 56:
660
- this.$ = [p[h - 1], {
661
- type: "addLinks",
662
- actor: p[h - 1].actor,
663
- text: p[h]
664
- }];
665
- break;
666
- case 57:
667
- this.$ = [p[h - 1], {
668
- type: "addALink",
669
- actor: p[h - 1].actor,
670
- text: p[h]
671
- }];
672
- break;
673
- case 58:
674
- this.$ = [p[h - 1], {
675
- type: "addProperties",
676
- actor: p[h - 1].actor,
677
- text: p[h]
678
- }];
679
- break;
680
- case 59:
681
- this.$ = [p[h - 1], {
682
- type: "addDetails",
683
- actor: p[h - 1].actor,
684
- text: p[h]
685
- }];
686
- break;
687
- case 62:
688
- this.$ = [p[h - 2], p[h]];
689
- break;
690
- case 63:
691
- this.$ = p[h];
692
- break;
693
- case 64:
694
- this.$ = d.PLACEMENT.LEFTOF;
695
- break;
696
- case 65:
697
- this.$ = d.PLACEMENT.RIGHTOF;
698
- break;
699
- case 66:
700
- this.$ = [
701
- p[h - 4],
702
- p[h - 1],
703
- {
704
- type: "addMessage",
705
- from: p[h - 4].actor,
706
- to: p[h - 1].actor,
707
- signalType: p[h - 3],
708
- msg: p[h],
709
- activate: !0
710
- },
711
- {
712
- type: "activeStart",
713
- signalType: d.LINETYPE.ACTIVE_START,
714
- actor: p[h - 1].actor
715
- }
716
- ];
717
- break;
718
- case 67:
719
- this.$ = [
720
- p[h - 4],
721
- p[h - 1],
722
- {
723
- type: "addMessage",
724
- from: p[h - 4].actor,
725
- to: p[h - 1].actor,
726
- signalType: p[h - 3],
727
- msg: p[h]
728
- },
729
- {
730
- type: "activeEnd",
731
- signalType: d.LINETYPE.ACTIVE_END,
732
- actor: p[h - 4].actor
733
- }
734
- ];
735
- break;
736
- case 68:
737
- this.$ = [
738
- p[h - 3],
739
- p[h - 1],
740
- {
741
- type: "addMessage",
742
- from: p[h - 3].actor,
743
- to: p[h - 1].actor,
744
- signalType: p[h - 2],
745
- msg: p[h]
746
- }
747
- ];
748
- break;
749
- case 69:
750
- this.$ = {
751
- type: "addParticipant",
752
- actor: p[h - 1],
753
- config: p[h]
754
- };
755
- break;
756
- case 70:
757
- this.$ = p[h - 1].trim();
758
- break;
759
- case 71:
760
- this.$ = {
761
- type: "addParticipant",
762
- actor: p[h]
763
- };
764
- break;
765
- case 72:
766
- this.$ = d.LINETYPE.SOLID_OPEN;
767
- break;
768
- case 73:
769
- this.$ = d.LINETYPE.DOTTED_OPEN;
770
- break;
771
- case 74:
772
- this.$ = d.LINETYPE.SOLID;
773
- break;
774
- case 75:
775
- this.$ = d.LINETYPE.BIDIRECTIONAL_SOLID;
776
- break;
777
- case 76:
778
- this.$ = d.LINETYPE.DOTTED;
779
- break;
780
- case 77:
781
- this.$ = d.LINETYPE.BIDIRECTIONAL_DOTTED;
782
- break;
783
- case 78:
784
- this.$ = d.LINETYPE.SOLID_CROSS;
785
- break;
786
- case 79:
787
- this.$ = d.LINETYPE.DOTTED_CROSS;
788
- break;
789
- case 80:
790
- this.$ = d.LINETYPE.SOLID_POINT;
791
- break;
792
- case 81:
793
- this.$ = d.LINETYPE.DOTTED_POINT;
794
- break;
795
- case 82:
796
- this.$ = d.parseMessage(p[h].trim().substring(1));
797
- break;
798
- }
799
- }, "anonymous"),
800
- table: [
801
- {
802
- 3: 1,
803
- 4: u,
804
- 5: d,
805
- 6: f
806
- },
807
- { 1: [3] },
808
- {
809
- 3: 5,
810
- 4: u,
811
- 5: d,
812
- 6: f
813
- },
814
- {
815
- 3: 6,
816
- 4: u,
817
- 5: d,
818
- 6: f
819
- },
820
- l([
821
- 1,
822
- 4,
823
- 5,
824
- 13,
825
- 14,
826
- 18,
827
- 21,
828
- 23,
829
- 29,
830
- 30,
831
- 31,
832
- 33,
833
- 35,
834
- 36,
835
- 37,
836
- 38,
837
- 39,
838
- 41,
839
- 43,
840
- 44,
841
- 46,
842
- 50,
843
- 52,
844
- 53,
845
- 55,
846
- 60,
847
- 61,
848
- 62,
849
- 63,
850
- 71
851
- ], p, { 7: 7 }),
852
- { 1: [2, 1] },
853
- { 1: [2, 2] },
854
- {
855
- 1: [2, 3],
856
- 4: m,
857
- 5: h,
858
- 8: 8,
859
- 9: 10,
860
- 12: 12,
861
- 13: g,
862
- 14: _,
863
- 17: 15,
864
- 18: v,
865
- 21: y,
866
- 22: 40,
867
- 23: b,
868
- 24: 19,
869
- 25: 20,
870
- 26: 21,
871
- 27: 22,
872
- 28: 23,
873
- 29: x,
874
- 30: S,
875
- 31: C,
876
- 33: w,
877
- 35: T,
878
- 36: E,
879
- 37: D,
880
- 38: O,
881
- 39: k,
882
- 41: A,
883
- 43: j,
884
- 44: M,
885
- 46: N,
886
- 50: P,
887
- 52: F,
888
- 53: I,
889
- 55: L,
890
- 60: R,
891
- 61: z,
892
- 62: B,
893
- 63: V,
894
- 71: H
895
- },
896
- l(U, [2, 5]),
897
- {
898
- 9: 47,
899
- 12: 12,
900
- 13: g,
901
- 14: _,
902
- 17: 15,
903
- 18: v,
904
- 21: y,
905
- 22: 40,
906
- 23: b,
907
- 24: 19,
908
- 25: 20,
909
- 26: 21,
910
- 27: 22,
911
- 28: 23,
912
- 29: x,
913
- 30: S,
914
- 31: C,
915
- 33: w,
916
- 35: T,
917
- 36: E,
918
- 37: D,
919
- 38: O,
920
- 39: k,
921
- 41: A,
922
- 43: j,
923
- 44: M,
924
- 46: N,
925
- 50: P,
926
- 52: F,
927
- 53: I,
928
- 55: L,
929
- 60: R,
930
- 61: z,
931
- 62: B,
932
- 63: V,
933
- 71: H
934
- },
935
- l(U, [2, 7]),
936
- l(U, [2, 8]),
937
- l(U, [2, 14]),
938
- {
939
- 12: 48,
940
- 50: P,
941
- 52: F,
942
- 53: I
943
- },
944
- { 15: [1, 49] },
945
- { 5: [1, 50] },
946
- {
947
- 5: [1, 53],
948
- 19: [1, 51],
949
- 20: [1, 52]
950
- },
951
- {
952
- 22: 54,
953
- 71: H
954
- },
955
- {
956
- 22: 55,
957
- 71: H
958
- },
959
- { 5: [1, 56] },
960
- { 5: [1, 57] },
961
- { 5: [1, 58] },
962
- { 5: [1, 59] },
963
- { 5: [1, 60] },
964
- l(U, [2, 29]),
965
- l(U, [2, 30]),
966
- { 32: [1, 61] },
967
- { 34: [1, 62] },
968
- l(U, [2, 33]),
969
- { 15: [1, 63] },
970
- { 15: [1, 64] },
971
- { 15: [1, 65] },
972
- { 15: [1, 66] },
973
- { 15: [1, 67] },
974
- { 15: [1, 68] },
975
- { 15: [1, 69] },
976
- { 15: [1, 70] },
977
- {
978
- 22: 71,
979
- 54: 72,
980
- 71: [1, 73]
981
- },
982
- {
983
- 22: 74,
984
- 71: H
985
- },
986
- {
987
- 22: 75,
988
- 71: H
989
- },
990
- {
991
- 68: 76,
992
- 76: [1, 77],
993
- 77: [1, 78],
994
- 78: [1, 79],
995
- 79: [1, 80],
996
- 80: [1, 81],
997
- 81: [1, 82],
998
- 82: [1, 83],
999
- 83: [1, 84],
1000
- 84: [1, 85],
1001
- 85: [1, 86]
1002
- },
1003
- {
1004
- 56: 87,
1005
- 58: [1, 88],
1006
- 66: [1, 89],
1007
- 67: [1, 90]
1008
- },
1009
- {
1010
- 22: 91,
1011
- 71: H
1012
- },
1013
- {
1014
- 22: 92,
1015
- 71: H
1016
- },
1017
- {
1018
- 22: 93,
1019
- 71: H
1020
- },
1021
- {
1022
- 22: 94,
1023
- 71: H
1024
- },
1025
- l([
1026
- 5,
1027
- 51,
1028
- 65,
1029
- 76,
1030
- 77,
1031
- 78,
1032
- 79,
1033
- 80,
1034
- 81,
1035
- 82,
1036
- 83,
1037
- 84,
1038
- 85,
1039
- 86
1040
- ], W),
1041
- l(U, [2, 6]),
1042
- l(U, [2, 15]),
1043
- l(G, [2, 9], { 10: 95 }),
1044
- l(U, [2, 17]),
1045
- {
1046
- 5: [1, 97],
1047
- 19: [1, 96]
1048
- },
1049
- { 5: [1, 98] },
1050
- l(U, [2, 21]),
1051
- { 5: [1, 99] },
1052
- { 5: [1, 100] },
1053
- l(U, [2, 24]),
1054
- l(U, [2, 25]),
1055
- l(U, [2, 26]),
1056
- l(U, [2, 27]),
1057
- l(U, [2, 28]),
1058
- l(U, [2, 31]),
1059
- l(U, [2, 32]),
1060
- l(K, p, { 7: 101 }),
1061
- l(K, p, { 7: 102 }),
1062
- l(K, p, { 7: 103 }),
1063
- l(q, p, {
1064
- 40: 104,
1065
- 7: 105
1066
- }),
1067
- l(J, p, {
1068
- 42: 106,
1069
- 7: 107
1070
- }),
1071
- l(J, p, {
1072
- 7: 107,
1073
- 42: 108
1074
- }),
1075
- l(Y, p, {
1076
- 45: 109,
1077
- 7: 110
1078
- }),
1079
- l(K, p, { 7: 111 }),
1080
- {
1081
- 5: [1, 113],
1082
- 51: [1, 112]
1083
- },
1084
- { 5: [1, 114] },
1085
- l([5, 51], W, {
1086
- 72: 115,
1087
- 73: [1, 116]
1088
- }),
1089
- {
1090
- 5: [1, 118],
1091
- 51: [1, 117]
1092
- },
1093
- { 5: [1, 119] },
1094
- {
1095
- 22: 122,
1096
- 69: [1, 120],
1097
- 70: [1, 121],
1098
- 71: H
1099
- },
1100
- l(X, [2, 72]),
1101
- l(X, [2, 73]),
1102
- l(X, [2, 74]),
1103
- l(X, [2, 75]),
1104
- l(X, [2, 76]),
1105
- l(X, [2, 77]),
1106
- l(X, [2, 78]),
1107
- l(X, [2, 79]),
1108
- l(X, [2, 80]),
1109
- l(X, [2, 81]),
1110
- {
1111
- 22: 123,
1112
- 71: H
1113
- },
1114
- {
1115
- 22: 125,
1116
- 59: 124,
1117
- 71: H
1118
- },
1119
- { 71: [2, 64] },
1120
- { 71: [2, 65] },
1121
- {
1122
- 57: 126,
1123
- 86: Z
1124
- },
1125
- {
1126
- 57: 128,
1127
- 86: Z
1128
- },
1129
- {
1130
- 57: 129,
1131
- 86: Z
1132
- },
1133
- {
1134
- 57: 130,
1135
- 86: Z
1136
- },
1137
- {
1138
- 4: [1, 133],
1139
- 5: [1, 135],
1140
- 11: 132,
1141
- 12: 134,
1142
- 16: [1, 131],
1143
- 50: P,
1144
- 52: F,
1145
- 53: I
1146
- },
1147
- { 5: [1, 136] },
1148
- l(U, [2, 19]),
1149
- l(U, [2, 20]),
1150
- l(U, [2, 22]),
1151
- l(U, [2, 23]),
1152
- {
1153
- 4: m,
1154
- 5: h,
1155
- 8: 8,
1156
- 9: 10,
1157
- 12: 12,
1158
- 13: g,
1159
- 14: _,
1160
- 16: [1, 137],
1161
- 17: 15,
1162
- 18: v,
1163
- 21: y,
1164
- 22: 40,
1165
- 23: b,
1166
- 24: 19,
1167
- 25: 20,
1168
- 26: 21,
1169
- 27: 22,
1170
- 28: 23,
1171
- 29: x,
1172
- 30: S,
1173
- 31: C,
1174
- 33: w,
1175
- 35: T,
1176
- 36: E,
1177
- 37: D,
1178
- 38: O,
1179
- 39: k,
1180
- 41: A,
1181
- 43: j,
1182
- 44: M,
1183
- 46: N,
1184
- 50: P,
1185
- 52: F,
1186
- 53: I,
1187
- 55: L,
1188
- 60: R,
1189
- 61: z,
1190
- 62: B,
1191
- 63: V,
1192
- 71: H
1193
- },
1194
- {
1195
- 4: m,
1196
- 5: h,
1197
- 8: 8,
1198
- 9: 10,
1199
- 12: 12,
1200
- 13: g,
1201
- 14: _,
1202
- 16: [1, 138],
1203
- 17: 15,
1204
- 18: v,
1205
- 21: y,
1206
- 22: 40,
1207
- 23: b,
1208
- 24: 19,
1209
- 25: 20,
1210
- 26: 21,
1211
- 27: 22,
1212
- 28: 23,
1213
- 29: x,
1214
- 30: S,
1215
- 31: C,
1216
- 33: w,
1217
- 35: T,
1218
- 36: E,
1219
- 37: D,
1220
- 38: O,
1221
- 39: k,
1222
- 41: A,
1223
- 43: j,
1224
- 44: M,
1225
- 46: N,
1226
- 50: P,
1227
- 52: F,
1228
- 53: I,
1229
- 55: L,
1230
- 60: R,
1231
- 61: z,
1232
- 62: B,
1233
- 63: V,
1234
- 71: H
1235
- },
1236
- {
1237
- 4: m,
1238
- 5: h,
1239
- 8: 8,
1240
- 9: 10,
1241
- 12: 12,
1242
- 13: g,
1243
- 14: _,
1244
- 16: [1, 139],
1245
- 17: 15,
1246
- 18: v,
1247
- 21: y,
1248
- 22: 40,
1249
- 23: b,
1250
- 24: 19,
1251
- 25: 20,
1252
- 26: 21,
1253
- 27: 22,
1254
- 28: 23,
1255
- 29: x,
1256
- 30: S,
1257
- 31: C,
1258
- 33: w,
1259
- 35: T,
1260
- 36: E,
1261
- 37: D,
1262
- 38: O,
1263
- 39: k,
1264
- 41: A,
1265
- 43: j,
1266
- 44: M,
1267
- 46: N,
1268
- 50: P,
1269
- 52: F,
1270
- 53: I,
1271
- 55: L,
1272
- 60: R,
1273
- 61: z,
1274
- 62: B,
1275
- 63: V,
1276
- 71: H
1277
- },
1278
- { 16: [1, 140] },
1279
- {
1280
- 4: m,
1281
- 5: h,
1282
- 8: 8,
1283
- 9: 10,
1284
- 12: 12,
1285
- 13: g,
1286
- 14: _,
1287
- 16: [2, 46],
1288
- 17: 15,
1289
- 18: v,
1290
- 21: y,
1291
- 22: 40,
1292
- 23: b,
1293
- 24: 19,
1294
- 25: 20,
1295
- 26: 21,
1296
- 27: 22,
1297
- 28: 23,
1298
- 29: x,
1299
- 30: S,
1300
- 31: C,
1301
- 33: w,
1302
- 35: T,
1303
- 36: E,
1304
- 37: D,
1305
- 38: O,
1306
- 39: k,
1307
- 41: A,
1308
- 43: j,
1309
- 44: M,
1310
- 46: N,
1311
- 49: [1, 141],
1312
- 50: P,
1313
- 52: F,
1314
- 53: I,
1315
- 55: L,
1316
- 60: R,
1317
- 61: z,
1318
- 62: B,
1319
- 63: V,
1320
- 71: H
1321
- },
1322
- { 16: [1, 142] },
1323
- {
1324
- 4: m,
1325
- 5: h,
1326
- 8: 8,
1327
- 9: 10,
1328
- 12: 12,
1329
- 13: g,
1330
- 14: _,
1331
- 16: [2, 44],
1332
- 17: 15,
1333
- 18: v,
1334
- 21: y,
1335
- 22: 40,
1336
- 23: b,
1337
- 24: 19,
1338
- 25: 20,
1339
- 26: 21,
1340
- 27: 22,
1341
- 28: 23,
1342
- 29: x,
1343
- 30: S,
1344
- 31: C,
1345
- 33: w,
1346
- 35: T,
1347
- 36: E,
1348
- 37: D,
1349
- 38: O,
1350
- 39: k,
1351
- 41: A,
1352
- 43: j,
1353
- 44: M,
1354
- 46: N,
1355
- 48: [1, 143],
1356
- 50: P,
1357
- 52: F,
1358
- 53: I,
1359
- 55: L,
1360
- 60: R,
1361
- 61: z,
1362
- 62: B,
1363
- 63: V,
1364
- 71: H
1365
- },
1366
- { 16: [1, 144] },
1367
- { 16: [1, 145] },
1368
- {
1369
- 4: m,
1370
- 5: h,
1371
- 8: 8,
1372
- 9: 10,
1373
- 12: 12,
1374
- 13: g,
1375
- 14: _,
1376
- 16: [2, 42],
1377
- 17: 15,
1378
- 18: v,
1379
- 21: y,
1380
- 22: 40,
1381
- 23: b,
1382
- 24: 19,
1383
- 25: 20,
1384
- 26: 21,
1385
- 27: 22,
1386
- 28: 23,
1387
- 29: x,
1388
- 30: S,
1389
- 31: C,
1390
- 33: w,
1391
- 35: T,
1392
- 36: E,
1393
- 37: D,
1394
- 38: O,
1395
- 39: k,
1396
- 41: A,
1397
- 43: j,
1398
- 44: M,
1399
- 46: N,
1400
- 47: [1, 146],
1401
- 50: P,
1402
- 52: F,
1403
- 53: I,
1404
- 55: L,
1405
- 60: R,
1406
- 61: z,
1407
- 62: B,
1408
- 63: V,
1409
- 71: H
1410
- },
1411
- {
1412
- 4: m,
1413
- 5: h,
1414
- 8: 8,
1415
- 9: 10,
1416
- 12: 12,
1417
- 13: g,
1418
- 14: _,
1419
- 16: [1, 147],
1420
- 17: 15,
1421
- 18: v,
1422
- 21: y,
1423
- 22: 40,
1424
- 23: b,
1425
- 24: 19,
1426
- 25: 20,
1427
- 26: 21,
1428
- 27: 22,
1429
- 28: 23,
1430
- 29: x,
1431
- 30: S,
1432
- 31: C,
1433
- 33: w,
1434
- 35: T,
1435
- 36: E,
1436
- 37: D,
1437
- 38: O,
1438
- 39: k,
1439
- 41: A,
1440
- 43: j,
1441
- 44: M,
1442
- 46: N,
1443
- 50: P,
1444
- 52: F,
1445
- 53: I,
1446
- 55: L,
1447
- 60: R,
1448
- 61: z,
1449
- 62: B,
1450
- 63: V,
1451
- 71: H
1452
- },
1453
- { 15: [1, 148] },
1454
- l(U, [2, 49]),
1455
- l(U, [2, 53]),
1456
- { 5: [2, 69] },
1457
- { 74: [1, 149] },
1458
- { 15: [1, 150] },
1459
- l(U, [2, 51]),
1460
- l(U, [2, 52]),
1461
- {
1462
- 22: 151,
1463
- 71: H
1464
- },
1465
- {
1466
- 22: 152,
1467
- 71: H
1468
- },
1469
- {
1470
- 57: 153,
1471
- 86: Z
1472
- },
1473
- {
1474
- 57: 154,
1475
- 86: Z
1476
- },
1477
- {
1478
- 57: 155,
1479
- 86: Z
1480
- },
1481
- {
1482
- 65: [1, 156],
1483
- 86: [2, 63]
1484
- },
1485
- { 5: [2, 56] },
1486
- { 5: [2, 82] },
1487
- { 5: [2, 57] },
1488
- { 5: [2, 58] },
1489
- { 5: [2, 59] },
1490
- l(U, [2, 16]),
1491
- l(G, [2, 10]),
1492
- {
1493
- 12: 157,
1494
- 50: P,
1495
- 52: F,
1496
- 53: I
1497
- },
1498
- l(G, [2, 12]),
1499
- l(G, [2, 13]),
1500
- l(U, [2, 18]),
1501
- l(U, [2, 34]),
1502
- l(U, [2, 35]),
1503
- l(U, [2, 36]),
1504
- l(U, [2, 37]),
1505
- { 15: [1, 158] },
1506
- l(U, [2, 38]),
1507
- { 15: [1, 159] },
1508
- l(U, [2, 39]),
1509
- l(U, [2, 40]),
1510
- { 15: [1, 160] },
1511
- l(U, [2, 41]),
1512
- { 5: [1, 161] },
1513
- { 75: [1, 162] },
1514
- { 5: [1, 163] },
1515
- {
1516
- 57: 164,
1517
- 86: Z
1518
- },
1519
- {
1520
- 57: 165,
1521
- 86: Z
1522
- },
1523
- { 5: [2, 68] },
1524
- { 5: [2, 54] },
1525
- { 5: [2, 55] },
1526
- {
1527
- 22: 166,
1528
- 71: H
1529
- },
1530
- l(G, [2, 11]),
1531
- l(q, p, {
1532
- 7: 105,
1533
- 40: 167
1534
- }),
1535
- l(J, p, {
1536
- 7: 107,
1537
- 42: 168
1538
- }),
1539
- l(Y, p, {
1540
- 7: 110,
1541
- 45: 169
1542
- }),
1543
- l(U, [2, 48]),
1544
- { 5: [2, 70] },
1545
- l(U, [2, 50]),
1546
- { 5: [2, 66] },
1547
- { 5: [2, 67] },
1548
- { 86: [2, 62] },
1549
- { 16: [2, 47] },
1550
- { 16: [2, 45] },
1551
- { 16: [2, 43] }
1552
- ],
1553
- defaultActions: {
1554
- 5: [2, 1],
1555
- 6: [2, 2],
1556
- 89: [2, 64],
1557
- 90: [2, 65],
1558
- 115: [2, 69],
1559
- 126: [2, 56],
1560
- 127: [2, 82],
1561
- 128: [2, 57],
1562
- 129: [2, 58],
1563
- 130: [2, 59],
1564
- 153: [2, 68],
1565
- 154: [2, 54],
1566
- 155: [2, 55],
1567
- 162: [2, 70],
1568
- 164: [2, 66],
1569
- 165: [2, 67],
1570
- 166: [2, 62],
1571
- 167: [2, 47],
1572
- 168: [2, 45],
1573
- 169: [2, 43]
1574
- },
1575
- parseError: /* @__PURE__ */ __name(function(e, l) {
1576
- if (l.recoverable) this.trace(e);
1577
- else {
1578
- var u = Error(e);
1579
- throw u.hash = l, u;
1580
- }
1581
- }, "parseError"),
1582
- parse: /* @__PURE__ */ __name(function(l) {
1583
- var u = this, d = [0], f = [], p = [null], m = [], h = this.table, g = "", _ = 0, v = 0, y = 0, b = 2, x = 1, S = m.slice.call(arguments, 1), C = Object.create(this.lexer), w = { yy: {} };
1584
- for (var T in this.yy) Object.prototype.hasOwnProperty.call(this.yy, T) && (w.yy[T] = this.yy[T]);
1585
- C.setInput(l, w.yy), w.yy.lexer = C, w.yy.parser = this, C.yylloc === void 0 && (C.yylloc = {});
1586
- var E = C.yylloc;
1587
- m.push(E);
1588
- var D = C.options && C.options.ranges;
1589
- typeof w.yy.parseError == "function" ? this.parseError = w.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1590
- function O(e) {
1591
- d.length -= 2 * e, p.length -= e, m.length -= e;
1592
- }
1593
- __name(O, "popStack");
1594
- function k() {
1595
- var e = f.pop() || C.lex() || x;
1596
- return typeof e != "number" && (e instanceof Array && (f = e, e = f.pop()), e = u.symbols_[e] || e), e;
1597
- }
1598
- __name(k, "lex");
1599
- for (var A, j, M, N, P, F = {}, I, L, R, z;;) {
1600
- if (M = d[d.length - 1], this.defaultActions[M] ? N = this.defaultActions[M] : (A ??= k(), N = h[M] && h[M][A]), N === void 0 || !N.length || !N[0]) {
1601
- var B = "";
1602
- for (I in z = [], h[M]) this.terminals_[I] && I > b && z.push("'" + this.terminals_[I] + "'");
1603
- B = C.showPosition ? "Parse error on line " + (_ + 1) + ":\n" + C.showPosition() + "\nExpecting " + z.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : "Parse error on line " + (_ + 1) + ": Unexpected " + (A == x ? "end of input" : "'" + (this.terminals_[A] || A) + "'"), this.parseError(B, {
1604
- text: C.match,
1605
- token: this.terminals_[A] || A,
1606
- line: C.yylineno,
1607
- loc: E,
1608
- expected: z
1609
- });
1610
- }
1611
- if (N[0] instanceof Array && N.length > 1) throw Error("Parse Error: multiple actions possible at state: " + M + ", token: " + A);
1612
- switch (N[0]) {
1613
- case 1:
1614
- d.push(A), p.push(C.yytext), m.push(C.yylloc), d.push(N[1]), A = null, j ? (A = j, j = null) : (v = C.yyleng, g = C.yytext, _ = C.yylineno, E = C.yylloc, y > 0 && y--);
1615
- break;
1616
- case 2:
1617
- if (L = this.productions_[N[1]][1], F.$ = p[p.length - L], F._$ = {
1618
- first_line: m[m.length - (L || 1)].first_line,
1619
- last_line: m[m.length - 1].last_line,
1620
- first_column: m[m.length - (L || 1)].first_column,
1621
- last_column: m[m.length - 1].last_column
1622
- }, D && (F._$.range = [m[m.length - (L || 1)].range[0], m[m.length - 1].range[1]]), P = this.performAction.apply(F, [
1623
- g,
1624
- v,
1625
- _,
1626
- w.yy,
1627
- N[1],
1628
- p,
1629
- m
1630
- ].concat(S)), P !== void 0) return P;
1631
- L && (d = d.slice(0, -1 * L * 2), p = p.slice(0, -1 * L), m = m.slice(0, -1 * L)), d.push(this.productions_[N[1]][0]), p.push(F.$), m.push(F._$), R = h[d[d.length - 2]][d[d.length - 1]], d.push(R);
1632
- break;
1633
- case 3: return !0;
1634
- }
1635
- }
1636
- return !0;
1637
- }, "parse")
1638
- };
1639
- Q.lexer = /* @__PURE__ */ (function() {
1640
- return {
1641
- EOF: 1,
1642
- parseError: /* @__PURE__ */ __name(function(e, l) {
1643
- if (this.yy.parser) this.yy.parser.parseError(e, l);
1644
- else throw Error(e);
1645
- }, "parseError"),
1646
- setInput: /* @__PURE__ */ __name(function(e, l) {
1647
- return this.yy = l || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1648
- first_line: 1,
1649
- first_column: 0,
1650
- last_line: 1,
1651
- last_column: 0
1652
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1653
- }, "setInput"),
1654
- input: /* @__PURE__ */ __name(function() {
1655
- var e = this._input[0];
1656
- return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
1657
- }, "input"),
1658
- unput: /* @__PURE__ */ __name(function(e) {
1659
- var l = e.length, u = e.split(/(?:\r\n?|\n)/g);
1660
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
1661
- var d = this.match.split(/(?:\r\n?|\n)/g);
1662
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), u.length - 1 && (this.yylineno -= u.length - 1);
1663
- var f = this.yylloc.range;
1664
- return this.yylloc = {
1665
- first_line: this.yylloc.first_line,
1666
- last_line: this.yylineno + 1,
1667
- first_column: this.yylloc.first_column,
1668
- last_column: u ? (u.length === d.length ? this.yylloc.first_column : 0) + d[d.length - u.length].length - u[0].length : this.yylloc.first_column - l
1669
- }, this.options.ranges && (this.yylloc.range = [f[0], f[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
1670
- }, "unput"),
1671
- more: /* @__PURE__ */ __name(function() {
1672
- return this._more = !0, this;
1673
- }, "more"),
1674
- reject: /* @__PURE__ */ __name(function() {
1675
- if (this.options.backtrack_lexer) this._backtrack = !0;
1676
- else 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(), {
1677
- text: "",
1678
- token: null,
1679
- line: this.yylineno
1680
- });
1681
- return this;
1682
- }, "reject"),
1683
- less: /* @__PURE__ */ __name(function(e) {
1684
- this.unput(this.match.slice(e));
1685
- }, "less"),
1686
- pastInput: /* @__PURE__ */ __name(function() {
1687
- var e = this.matched.substr(0, this.matched.length - this.match.length);
1688
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
1689
- }, "pastInput"),
1690
- upcomingInput: /* @__PURE__ */ __name(function() {
1691
- var e = this.match;
1692
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
1693
- }, "upcomingInput"),
1694
- showPosition: /* @__PURE__ */ __name(function() {
1695
- var e = this.pastInput(), l = Array(e.length + 1).join("-");
1696
- return e + this.upcomingInput() + "\n" + l + "^";
1697
- }, "showPosition"),
1698
- test_match: /* @__PURE__ */ __name(function(e, l) {
1699
- var u, d, f;
1700
- if (this.options.backtrack_lexer && (f = {
1701
- yylineno: this.yylineno,
1702
- yylloc: {
1703
- first_line: this.yylloc.first_line,
1704
- last_line: this.last_line,
1705
- first_column: this.yylloc.first_column,
1706
- last_column: this.yylloc.last_column
1707
- },
1708
- yytext: this.yytext,
1709
- match: this.match,
1710
- matches: this.matches,
1711
- matched: this.matched,
1712
- yyleng: this.yyleng,
1713
- offset: this.offset,
1714
- _more: this._more,
1715
- _input: this._input,
1716
- yy: this.yy,
1717
- conditionStack: this.conditionStack.slice(0),
1718
- done: this.done
1719
- }, this.options.ranges && (f.yylloc.range = this.yylloc.range.slice(0))), d = e[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
1720
- first_line: this.yylloc.last_line,
1721
- last_line: this.yylineno + 1,
1722
- first_column: this.yylloc.last_column,
1723
- last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
1724
- }, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], u = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), u) return u;
1725
- if (this._backtrack) {
1726
- for (var p in f) this[p] = f[p];
1727
- return !1;
1728
- }
1729
- return !1;
1730
- }, "test_match"),
1731
- next: /* @__PURE__ */ __name(function() {
1732
- if (this.done) return this.EOF;
1733
- this._input || (this.done = !0);
1734
- var e, l, u, d;
1735
- this._more || (this.yytext = "", this.match = "");
1736
- for (var f = this._currentRules(), p = 0; p < f.length; p++) if (u = this._input.match(this.rules[f[p]]), u && (!l || u[0].length > l[0].length)) {
1737
- if (l = u, d = p, this.options.backtrack_lexer) {
1738
- if (e = this.test_match(u, f[p]), e !== !1) return e;
1739
- if (this._backtrack) {
1740
- l = !1;
1741
- continue;
1742
- } else return !1;
1743
- } else if (!this.options.flex) break;
1744
- }
1745
- return l ? (e = this.test_match(l, f[d]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1746
- text: "",
1747
- token: null,
1748
- line: this.yylineno
1749
- });
1750
- }, "next"),
1751
- lex: /* @__PURE__ */ __name(function() {
1752
- return this.next() || this.lex();
1753
- }, "lex"),
1754
- begin: /* @__PURE__ */ __name(function(e) {
1755
- this.conditionStack.push(e);
1756
- }, "begin"),
1757
- popState: /* @__PURE__ */ __name(function() {
1758
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1759
- }, "popState"),
1760
- _currentRules: /* @__PURE__ */ __name(function() {
1761
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1762
- }, "_currentRules"),
1763
- topState: /* @__PURE__ */ __name(function(e) {
1764
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
1765
- }, "topState"),
1766
- pushState: /* @__PURE__ */ __name(function(e) {
1767
- this.begin(e);
1768
- }, "pushState"),
1769
- stateStackSize: /* @__PURE__ */ __name(function() {
1770
- return this.conditionStack.length;
1771
- }, "stateStackSize"),
1772
- options: { "case-insensitive": !0 },
1773
- performAction: /* @__PURE__ */ __name(function(e, l, u, d) {
1774
- switch (u) {
1775
- case 0: return 5;
1776
- case 1: break;
1777
- case 2: break;
1778
- case 3: break;
1779
- case 4: break;
1780
- case 5: break;
1781
- case 6: return 19;
1782
- case 7: return this.begin("CONFIG"), 73;
1783
- case 8: return 74;
1784
- case 9: return this.popState(), this.popState(), 75;
1785
- case 10: return l.yytext = l.yytext.trim(), 71;
1786
- case 11: return l.yytext = l.yytext.trim(), this.begin("ALIAS"), 71;
1787
- case 12: return this.begin("LINE"), 14;
1788
- case 13: return this.begin("ID"), 50;
1789
- case 14: return this.begin("ID"), 52;
1790
- case 15: return 13;
1791
- case 16: return this.begin("ID"), 53;
1792
- case 17: return l.yytext = l.yytext.trim(), this.begin("ALIAS"), 71;
1793
- case 18: return this.popState(), this.popState(), this.begin("LINE"), 51;
1794
- case 19: return this.popState(), this.popState(), 5;
1795
- case 20: return this.begin("LINE"), 36;
1796
- case 21: return this.begin("LINE"), 37;
1797
- case 22: return this.begin("LINE"), 38;
1798
- case 23: return this.begin("LINE"), 39;
1799
- case 24: return this.begin("LINE"), 49;
1800
- case 25: return this.begin("LINE"), 41;
1801
- case 26: return this.begin("LINE"), 43;
1802
- case 27: return this.begin("LINE"), 48;
1803
- case 28: return this.begin("LINE"), 44;
1804
- case 29: return this.begin("LINE"), 47;
1805
- case 30: return this.begin("LINE"), 46;
1806
- case 31: return this.popState(), 15;
1807
- case 32: return 16;
1808
- case 33: return 66;
1809
- case 34: return 67;
1810
- case 35: return 60;
1811
- case 36: return 61;
1812
- case 37: return 62;
1813
- case 38: return 63;
1814
- case 39: return 58;
1815
- case 40: return 55;
1816
- case 41: return this.begin("ID"), 21;
1817
- case 42: return this.begin("ID"), 23;
1818
- case 43: return 29;
1819
- case 44: return 30;
1820
- case 45: return this.begin("acc_title"), 31;
1821
- case 46: return this.popState(), "acc_title_value";
1822
- case 47: return this.begin("acc_descr"), 33;
1823
- case 48: return this.popState(), "acc_descr_value";
1824
- case 49:
1825
- this.begin("acc_descr_multiline");
1826
- break;
1827
- case 50:
1828
- this.popState();
1829
- break;
1830
- case 51: return "acc_descr_multiline_value";
1831
- case 52: return 6;
1832
- case 53: return 18;
1833
- case 54: return 20;
1834
- case 55: return 65;
1835
- case 56: return 5;
1836
- case 57: return l.yytext = l.yytext.trim(), 71;
1837
- case 58: return 78;
1838
- case 59: return 79;
1839
- case 60: return 80;
1840
- case 61: return 81;
1841
- case 62: return 76;
1842
- case 63: return 77;
1843
- case 64: return 82;
1844
- case 65: return 83;
1845
- case 66: return 84;
1846
- case 67: return 85;
1847
- case 68: return 86;
1848
- case 69: return 86;
1849
- case 70: return 69;
1850
- case 71: return 70;
1851
- case 72: return 5;
1852
- case 73: return "INVALID";
1853
- }
1854
- }, "anonymous"),
1855
- rules: [
1856
- /^(?:[\n]+)/i,
1857
- /^(?:\s+)/i,
1858
- /^(?:((?!\n)\s)+)/i,
1859
- /^(?:#[^\n]*)/i,
1860
- /^(?:%(?!\{)[^\n]*)/i,
1861
- /^(?:[^\}]%%[^\n]*)/i,
1862
- /^(?:[0-9]+(?=[ \n]+))/i,
1863
- /^(?:@\{)/i,
1864
- /^(?:[^\}]+)/i,
1865
- /^(?:\})/i,
1866
- /^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,
1867
- /^(?:[^\<->\->:\n,;@]+?([\-]*[^\<->\->:\n,;@]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,
1868
- /^(?:box\b)/i,
1869
- /^(?:participant\b)/i,
1870
- /^(?:actor\b)/i,
1871
- /^(?:create\b)/i,
1872
- /^(?:destroy\b)/i,
1873
- /^(?:[^<\->\->:\n,;]+?([\-]*[^<\->\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,
1874
- /^(?:as\b)/i,
1875
- /^(?:(?:))/i,
1876
- /^(?:loop\b)/i,
1877
- /^(?:rect\b)/i,
1878
- /^(?:opt\b)/i,
1879
- /^(?:alt\b)/i,
1880
- /^(?:else\b)/i,
1881
- /^(?:par\b)/i,
1882
- /^(?:par_over\b)/i,
1883
- /^(?:and\b)/i,
1884
- /^(?:critical\b)/i,
1885
- /^(?:option\b)/i,
1886
- /^(?:break\b)/i,
1887
- /^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,
1888
- /^(?:end\b)/i,
1889
- /^(?:left of\b)/i,
1890
- /^(?:right of\b)/i,
1891
- /^(?:links\b)/i,
1892
- /^(?:link\b)/i,
1893
- /^(?:properties\b)/i,
1894
- /^(?:details\b)/i,
1895
- /^(?:over\b)/i,
1896
- /^(?:note\b)/i,
1897
- /^(?:activate\b)/i,
1898
- /^(?:deactivate\b)/i,
1899
- /^(?:title\s[^#\n;]+)/i,
1900
- /^(?:title:\s[^#\n;]+)/i,
1901
- /^(?:accTitle\s*:\s*)/i,
1902
- /^(?:(?!\n||)*[^\n]*)/i,
1903
- /^(?:accDescr\s*:\s*)/i,
1904
- /^(?:(?!\n||)*[^\n]*)/i,
1905
- /^(?:accDescr\s*\{\s*)/i,
1906
- /^(?:[\}])/i,
1907
- /^(?:[^\}]*)/i,
1908
- /^(?:sequenceDiagram\b)/i,
1909
- /^(?:autonumber\b)/i,
1910
- /^(?:off\b)/i,
1911
- /^(?:,)/i,
1912
- /^(?:;)/i,
1913
- /^(?:[^+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,
1914
- /^(?:->>)/i,
1915
- /^(?:<<->>)/i,
1916
- /^(?:-->>)/i,
1917
- /^(?:<<-->>)/i,
1918
- /^(?:->)/i,
1919
- /^(?:-->)/i,
1920
- /^(?:-[x])/i,
1921
- /^(?:--[x])/i,
1922
- /^(?:-[\)])/i,
1923
- /^(?:--[\)])/i,
1924
- /^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,
1925
- /^(?::)/i,
1926
- /^(?:\+)/i,
1927
- /^(?:-)/i,
1928
- /^(?:$)/i,
1929
- /^(?:.)/i
1930
- ],
1931
- conditions: {
1932
- acc_descr_multiline: {
1933
- rules: [50, 51],
1934
- inclusive: !1
1935
- },
1936
- acc_descr: {
1937
- rules: [48],
1938
- inclusive: !1
1939
- },
1940
- acc_title: {
1941
- rules: [46],
1942
- inclusive: !1
1943
- },
1944
- ID: {
1945
- rules: [
1946
- 2,
1947
- 3,
1948
- 7,
1949
- 10,
1950
- 11,
1951
- 17
1952
- ],
1953
- inclusive: !1
1954
- },
1955
- ALIAS: {
1956
- rules: [
1957
- 2,
1958
- 3,
1959
- 18,
1960
- 19
1961
- ],
1962
- inclusive: !1
1963
- },
1964
- LINE: {
1965
- rules: [
1966
- 2,
1967
- 3,
1968
- 31
1969
- ],
1970
- inclusive: !1
1971
- },
1972
- CONFIG: {
1973
- rules: [8, 9],
1974
- inclusive: !1
1975
- },
1976
- CONFIG_DATA: {
1977
- rules: [],
1978
- inclusive: !1
1979
- },
1980
- INITIAL: {
1981
- rules: [
1982
- 0,
1983
- 1,
1984
- 3,
1985
- 4,
1986
- 5,
1987
- 6,
1988
- 12,
1989
- 13,
1990
- 14,
1991
- 15,
1992
- 16,
1993
- 20,
1994
- 21,
1995
- 22,
1996
- 23,
1997
- 24,
1998
- 25,
1999
- 26,
2000
- 27,
2001
- 28,
2002
- 29,
2003
- 30,
2004
- 32,
2005
- 33,
2006
- 34,
2007
- 35,
2008
- 36,
2009
- 37,
2010
- 38,
2011
- 39,
2012
- 40,
2013
- 41,
2014
- 42,
2015
- 43,
2016
- 44,
2017
- 45,
2018
- 47,
2019
- 49,
2020
- 52,
2021
- 53,
2022
- 54,
2023
- 55,
2024
- 56,
2025
- 57,
2026
- 58,
2027
- 59,
2028
- 60,
2029
- 61,
2030
- 62,
2031
- 63,
2032
- 64,
2033
- 65,
2034
- 66,
2035
- 67,
2036
- 68,
2037
- 69,
2038
- 70,
2039
- 71,
2040
- 72,
2041
- 73
2042
- ],
2043
- inclusive: !0
2044
- }
2045
- }
2046
- };
2047
- })();
2048
- function $() {
2049
- this.yy = {};
2050
- }
2051
- return __name($, "Parser"), $.prototype = Q, Q.Parser = $, new $();
2052
- })();
2053
- parser.parser = parser;
2054
- var sequenceDiagram_default = parser, LINETYPE = {
2055
- SOLID: 0,
2056
- DOTTED: 1,
2057
- NOTE: 2,
2058
- SOLID_CROSS: 3,
2059
- DOTTED_CROSS: 4,
2060
- SOLID_OPEN: 5,
2061
- DOTTED_OPEN: 6,
2062
- LOOP_START: 10,
2063
- LOOP_END: 11,
2064
- ALT_START: 12,
2065
- ALT_ELSE: 13,
2066
- ALT_END: 14,
2067
- OPT_START: 15,
2068
- OPT_END: 16,
2069
- ACTIVE_START: 17,
2070
- ACTIVE_END: 18,
2071
- PAR_START: 19,
2072
- PAR_AND: 20,
2073
- PAR_END: 21,
2074
- RECT_START: 22,
2075
- RECT_END: 23,
2076
- SOLID_POINT: 24,
2077
- DOTTED_POINT: 25,
2078
- AUTONUMBER: 26,
2079
- CRITICAL_START: 27,
2080
- CRITICAL_OPTION: 28,
2081
- CRITICAL_END: 29,
2082
- BREAK_START: 30,
2083
- BREAK_END: 31,
2084
- PAR_OVER_START: 32,
2085
- BIDIRECTIONAL_SOLID: 33,
2086
- BIDIRECTIONAL_DOTTED: 34
2087
- }, ARROWTYPE = {
2088
- FILLED: 0,
2089
- OPEN: 1
2090
- }, PLACEMENT = {
2091
- LEFTOF: 0,
2092
- RIGHTOF: 1,
2093
- OVER: 2
2094
- }, PARTICIPANT_TYPE = {
2095
- ACTOR: "actor",
2096
- BOUNDARY: "boundary",
2097
- COLLECTIONS: "collections",
2098
- CONTROL: "control",
2099
- DATABASE: "database",
2100
- ENTITY: "entity",
2101
- PARTICIPANT: "participant",
2102
- QUEUE: "queue"
2103
- }, SequenceDB = class {
2104
- constructor() {
2105
- this.state = new ImperativeState(() => ({
2106
- prevActor: void 0,
2107
- actors: /* @__PURE__ */ new Map(),
2108
- createdActors: /* @__PURE__ */ new Map(),
2109
- destroyedActors: /* @__PURE__ */ new Map(),
2110
- boxes: [],
2111
- messages: [],
2112
- notes: [],
2113
- sequenceNumbersEnabled: !1,
2114
- wrapEnabled: void 0,
2115
- currentBox: void 0,
2116
- lastCreated: void 0,
2117
- lastDestroyed: void 0
2118
- })), this.setAccTitle = setAccTitle, this.setAccDescription = setAccDescription, this.setDiagramTitle = setDiagramTitle, this.getAccTitle = getAccTitle, this.getAccDescription = getAccDescription, this.getDiagramTitle = getDiagramTitle, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(getConfig2().wrap), this.LINETYPE = LINETYPE, this.ARROWTYPE = ARROWTYPE, this.PLACEMENT = PLACEMENT;
2119
- }
2120
- static #e = __name(this, "SequenceDB");
2121
- addBox(e) {
2122
- this.state.records.boxes.push({
2123
- name: e.text,
2124
- wrap: e.wrap ?? this.autoWrap(),
2125
- fill: e.color,
2126
- actorKeys: []
2127
- }), this.state.records.currentBox = this.state.records.boxes.slice(-1)[0];
2128
- }
2129
- addActor(e, l, u, d, f) {
2130
- let p = this.state.records.currentBox, m;
2131
- if (f !== void 0) {
2132
- let e;
2133
- e = f.includes("\n") ? f + "\n" : "{\n" + f + "\n}", m = load(e, { schema: JSON_SCHEMA });
2134
- }
2135
- d = m?.type ?? d;
2136
- let h = this.state.records.actors.get(e);
2137
- if (h) {
2138
- if (this.state.records.currentBox && h.box && this.state.records.currentBox !== h.box) throw Error(`A same participant should only be defined in one Box: ${h.name} can't be in '${h.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);
2139
- if (p = h.box ? h.box : this.state.records.currentBox, h.box = p, h && l === h.name && u == null) return;
2140
- }
2141
- if (u?.text ?? (u = {
2142
- text: l,
2143
- type: d
2144
- }), (d == null || u.text == null) && (u = {
2145
- text: l,
2146
- type: d
2147
- }), this.state.records.actors.set(e, {
2148
- box: p,
2149
- name: l,
2150
- description: u.text,
2151
- wrap: u.wrap ?? this.autoWrap(),
2152
- prevActor: this.state.records.prevActor,
2153
- links: {},
2154
- properties: {},
2155
- actorCnt: null,
2156
- rectData: null,
2157
- type: d ?? "participant"
2158
- }), this.state.records.prevActor) {
2159
- let l = this.state.records.actors.get(this.state.records.prevActor);
2160
- l && (l.nextActor = e);
2161
- }
2162
- this.state.records.currentBox && this.state.records.currentBox.actorKeys.push(e), this.state.records.prevActor = e;
2163
- }
2164
- activationCount(e) {
2165
- let l, u = 0;
2166
- if (!e) return 0;
2167
- for (l = 0; l < this.state.records.messages.length; l++) this.state.records.messages[l].type === this.LINETYPE.ACTIVE_START && this.state.records.messages[l].from === e && u++, this.state.records.messages[l].type === this.LINETYPE.ACTIVE_END && this.state.records.messages[l].from === e && u--;
2168
- return u;
2169
- }
2170
- addMessage(e, l, u, d) {
2171
- this.state.records.messages.push({
2172
- id: this.state.records.messages.length.toString(),
2173
- from: e,
2174
- to: l,
2175
- message: u.text,
2176
- wrap: u.wrap ?? this.autoWrap(),
2177
- answer: d
2178
- });
2179
- }
2180
- addSignal(e, l, u, d, f = !1) {
2181
- if (d === this.LINETYPE.ACTIVE_END && this.activationCount(e ?? "") < 1) {
2182
- let l = /* @__PURE__ */ Error("Trying to inactivate an inactive participant (" + e + ")");
2183
- throw l.hash = {
2184
- text: "->>-",
2185
- token: "->>-",
2186
- line: "1",
2187
- loc: {
2188
- first_line: 1,
2189
- last_line: 1,
2190
- first_column: 1,
2191
- last_column: 1
2192
- },
2193
- expected: ["'ACTIVE_PARTICIPANT'"]
2194
- }, l;
2195
- }
2196
- return this.state.records.messages.push({
2197
- id: this.state.records.messages.length.toString(),
2198
- from: e,
2199
- to: l,
2200
- message: u?.text ?? "",
2201
- wrap: u?.wrap ?? this.autoWrap(),
2202
- type: d,
2203
- activate: f
2204
- }), !0;
2205
- }
2206
- hasAtLeastOneBox() {
2207
- return this.state.records.boxes.length > 0;
2208
- }
2209
- hasAtLeastOneBoxWithTitle() {
2210
- return this.state.records.boxes.some((e) => e.name);
2211
- }
2212
- getMessages() {
2213
- return this.state.records.messages;
2214
- }
2215
- getBoxes() {
2216
- return this.state.records.boxes;
2217
- }
2218
- getActors() {
2219
- return this.state.records.actors;
2220
- }
2221
- getCreatedActors() {
2222
- return this.state.records.createdActors;
2223
- }
2224
- getDestroyedActors() {
2225
- return this.state.records.destroyedActors;
2226
- }
2227
- getActor(e) {
2228
- return this.state.records.actors.get(e);
2229
- }
2230
- getActorKeys() {
2231
- return [...this.state.records.actors.keys()];
2232
- }
2233
- enableSequenceNumbers() {
2234
- this.state.records.sequenceNumbersEnabled = !0;
2235
- }
2236
- disableSequenceNumbers() {
2237
- this.state.records.sequenceNumbersEnabled = !1;
2238
- }
2239
- showSequenceNumbers() {
2240
- return this.state.records.sequenceNumbersEnabled;
2241
- }
2242
- setWrap(e) {
2243
- this.state.records.wrapEnabled = e;
2244
- }
2245
- extractWrap(e) {
2246
- if (e === void 0) return {};
2247
- e = e.trim();
2248
- let l = /^:?wrap:/.exec(e) === null ? /^:?nowrap:/.exec(e) === null ? void 0 : !1 : !0;
2249
- return {
2250
- cleanedText: (l === void 0 ? e : e.replace(/^:?(?:no)?wrap:/, "")).trim(),
2251
- wrap: l
2252
- };
2253
- }
2254
- autoWrap() {
2255
- return this.state.records.wrapEnabled === void 0 ? getConfig2().sequence?.wrap ?? !1 : this.state.records.wrapEnabled;
2256
- }
2257
- clear() {
2258
- this.state.reset(), clear();
2259
- }
2260
- parseMessage(e) {
2261
- let u = e.trim(), { wrap: d, cleanedText: f } = this.extractWrap(u), p = {
2262
- text: f,
2263
- wrap: d
2264
- };
2265
- return log.debug(`parseMessage: ${JSON.stringify(p)}`), p;
2266
- }
2267
- parseBoxData(e) {
2268
- let l = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e), u = l?.[1] ? l[1].trim() : "transparent", d = l?.[2] ? l[2].trim() : void 0;
2269
- if (window?.CSS) window.CSS.supports("color", u) || (u = "transparent", d = e.trim());
2270
- else {
2271
- let l = new Option().style;
2272
- l.color = u, l.color !== u && (u = "transparent", d = e.trim());
2273
- }
2274
- let { wrap: f, cleanedText: p } = this.extractWrap(d);
2275
- return {
2276
- text: p ? sanitizeText(p, getConfig2()) : void 0,
2277
- color: u,
2278
- wrap: f
2279
- };
2280
- }
2281
- addNote(e, l, u) {
2282
- let d = {
2283
- actor: e,
2284
- placement: l,
2285
- message: u.text,
2286
- wrap: u.wrap ?? this.autoWrap()
2287
- }, f = [].concat(e, e);
2288
- this.state.records.notes.push(d), this.state.records.messages.push({
2289
- id: this.state.records.messages.length.toString(),
2290
- from: f[0],
2291
- to: f[1],
2292
- message: u.text,
2293
- wrap: u.wrap ?? this.autoWrap(),
2294
- type: this.LINETYPE.NOTE,
2295
- placement: l
2296
- });
2297
- }
2298
- addLinks(e, u) {
2299
- let d = this.getActor(e);
2300
- try {
2301
- let e = sanitizeText(u.text, getConfig2());
2302
- e = e.replace(/&equals;/g, "="), e = e.replace(/&amp;/g, "&");
2303
- let l = JSON.parse(e);
2304
- this.insertLinks(d, l);
2305
- } catch (e) {
2306
- log.error("error while parsing actor link text", e);
2307
- }
2308
- }
2309
- addALink(e, u) {
2310
- let d = this.getActor(e);
2311
- try {
2312
- let e = {}, l = sanitizeText(u.text, getConfig2()), f = l.indexOf("@");
2313
- l = l.replace(/&equals;/g, "="), l = l.replace(/&amp;/g, "&");
2314
- let p = l.slice(0, f - 1).trim();
2315
- e[p] = l.slice(f + 1).trim(), this.insertLinks(d, e);
2316
- } catch (e) {
2317
- log.error("error while parsing actor link text", e);
2318
- }
2319
- }
2320
- insertLinks(e, l) {
2321
- if (e.links == null) e.links = l;
2322
- else for (let u in l) e.links[u] = l[u];
2323
- }
2324
- addProperties(e, u) {
2325
- let d = this.getActor(e);
2326
- try {
2327
- let e = sanitizeText(u.text, getConfig2()), l = JSON.parse(e);
2328
- this.insertProperties(d, l);
2329
- } catch (e) {
2330
- log.error("error while parsing actor properties text", e);
2331
- }
2332
- }
2333
- insertProperties(e, l) {
2334
- if (e.properties == null) e.properties = l;
2335
- else for (let u in l) e.properties[u] = l[u];
2336
- }
2337
- boxEnd() {
2338
- this.state.records.currentBox = void 0;
2339
- }
2340
- addDetails(e, u) {
2341
- let d = this.getActor(e), f = document.getElementById(u.text);
2342
- try {
2343
- let e = f.innerHTML, l = JSON.parse(e);
2344
- l.properties && this.insertProperties(d, l.properties), l.links && this.insertLinks(d, l.links);
2345
- } catch (e) {
2346
- log.error("error while parsing actor details text", e);
2347
- }
2348
- }
2349
- getActorProperty(e, l) {
2350
- if (e?.properties !== void 0) return e.properties[l];
2351
- }
2352
- apply(e) {
2353
- if (Array.isArray(e)) e.forEach((e) => {
2354
- this.apply(e);
2355
- });
2356
- else switch (e.type) {
2357
- case "sequenceIndex":
2358
- this.state.records.messages.push({
2359
- id: this.state.records.messages.length.toString(),
2360
- from: void 0,
2361
- to: void 0,
2362
- message: {
2363
- start: e.sequenceIndex,
2364
- step: e.sequenceIndexStep,
2365
- visible: e.sequenceVisible
2366
- },
2367
- wrap: !1,
2368
- type: e.signalType
2369
- });
2370
- break;
2371
- case "addParticipant":
2372
- this.addActor(e.actor, e.actor, e.description, e.draw, e.config);
2373
- break;
2374
- case "createParticipant":
2375
- if (this.state.records.actors.has(e.actor)) throw Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");
2376
- this.state.records.lastCreated = e.actor, this.addActor(e.actor, e.actor, e.description, e.draw, e.config), this.state.records.createdActors.set(e.actor, this.state.records.messages.length);
2377
- break;
2378
- case "destroyParticipant":
2379
- this.state.records.lastDestroyed = e.actor, this.state.records.destroyedActors.set(e.actor, this.state.records.messages.length);
2380
- break;
2381
- case "activeStart":
2382
- this.addSignal(e.actor, void 0, void 0, e.signalType);
2383
- break;
2384
- case "activeEnd":
2385
- this.addSignal(e.actor, void 0, void 0, e.signalType);
2386
- break;
2387
- case "addNote":
2388
- this.addNote(e.actor, e.placement, e.text);
2389
- break;
2390
- case "addLinks":
2391
- this.addLinks(e.actor, e.text);
2392
- break;
2393
- case "addALink":
2394
- this.addALink(e.actor, e.text);
2395
- break;
2396
- case "addProperties":
2397
- this.addProperties(e.actor, e.text);
2398
- break;
2399
- case "addDetails":
2400
- this.addDetails(e.actor, e.text);
2401
- break;
2402
- case "addMessage":
2403
- if (this.state.records.lastCreated) {
2404
- if (e.to !== this.state.records.lastCreated) throw Error("The created participant " + this.state.records.lastCreated.name + " does not have an associated creating message after its declaration. Please check the sequence diagram.");
2405
- this.state.records.lastCreated = void 0;
2406
- } else if (this.state.records.lastDestroyed) {
2407
- if (e.to !== this.state.records.lastDestroyed && e.from !== this.state.records.lastDestroyed) throw Error("The destroyed participant " + this.state.records.lastDestroyed.name + " does not have an associated destroying message after its declaration. Please check the sequence diagram.");
2408
- this.state.records.lastDestroyed = void 0;
2409
- }
2410
- this.addSignal(e.from, e.to, e.msg, e.signalType, e.activate);
2411
- break;
2412
- case "boxStart":
2413
- this.addBox(e.boxData);
2414
- break;
2415
- case "boxEnd":
2416
- this.boxEnd();
2417
- break;
2418
- case "loopStart":
2419
- this.addSignal(void 0, void 0, e.loopText, e.signalType);
2420
- break;
2421
- case "loopEnd":
2422
- this.addSignal(void 0, void 0, void 0, e.signalType);
2423
- break;
2424
- case "rectStart":
2425
- this.addSignal(void 0, void 0, e.color, e.signalType);
2426
- break;
2427
- case "rectEnd":
2428
- this.addSignal(void 0, void 0, void 0, e.signalType);
2429
- break;
2430
- case "optStart":
2431
- this.addSignal(void 0, void 0, e.optText, e.signalType);
2432
- break;
2433
- case "optEnd":
2434
- this.addSignal(void 0, void 0, void 0, e.signalType);
2435
- break;
2436
- case "altStart":
2437
- this.addSignal(void 0, void 0, e.altText, e.signalType);
2438
- break;
2439
- case "else":
2440
- this.addSignal(void 0, void 0, e.altText, e.signalType);
2441
- break;
2442
- case "altEnd":
2443
- this.addSignal(void 0, void 0, void 0, e.signalType);
2444
- break;
2445
- case "setAccTitle":
2446
- setAccTitle(e.text);
2447
- break;
2448
- case "parStart":
2449
- this.addSignal(void 0, void 0, e.parText, e.signalType);
2450
- break;
2451
- case "and":
2452
- this.addSignal(void 0, void 0, e.parText, e.signalType);
2453
- break;
2454
- case "parEnd":
2455
- this.addSignal(void 0, void 0, void 0, e.signalType);
2456
- break;
2457
- case "criticalStart":
2458
- this.addSignal(void 0, void 0, e.criticalText, e.signalType);
2459
- break;
2460
- case "option":
2461
- this.addSignal(void 0, void 0, e.optionText, e.signalType);
2462
- break;
2463
- case "criticalEnd":
2464
- this.addSignal(void 0, void 0, void 0, e.signalType);
2465
- break;
2466
- case "breakStart":
2467
- this.addSignal(void 0, void 0, e.breakText, e.signalType);
2468
- break;
2469
- case "breakEnd":
2470
- this.addSignal(void 0, void 0, void 0, e.signalType);
2471
- break;
2472
- }
2473
- }
2474
- getConfig() {
2475
- return getConfig2().sequence;
2476
- }
2477
- }, styles_default = /* @__PURE__ */ __name((e) => `.actor {
2478
- stroke: ${e.actorBorder};
2479
- fill: ${e.actorBkg};
2480
- }
2481
-
2482
- text.actor > tspan {
2483
- fill: ${e.actorTextColor};
2484
- stroke: none;
2485
- }
2486
-
2487
- .actor-line {
2488
- stroke: ${e.actorLineColor};
2489
- }
2490
-
2491
- .innerArc {
2492
- stroke-width: 1.5;
2493
- stroke-dasharray: none;
2494
- }
2495
-
2496
- .messageLine0 {
2497
- stroke-width: 1.5;
2498
- stroke-dasharray: none;
2499
- stroke: ${e.signalColor};
2500
- }
2501
-
2502
- .messageLine1 {
2503
- stroke-width: 1.5;
2504
- stroke-dasharray: 2, 2;
2505
- stroke: ${e.signalColor};
2506
- }
2507
-
2508
- #arrowhead path {
2509
- fill: ${e.signalColor};
2510
- stroke: ${e.signalColor};
2511
- }
2512
-
2513
- .sequenceNumber {
2514
- fill: ${e.sequenceNumberColor};
2515
- }
2516
-
2517
- #sequencenumber {
2518
- fill: ${e.signalColor};
2519
- }
2520
-
2521
- #crosshead path {
2522
- fill: ${e.signalColor};
2523
- stroke: ${e.signalColor};
2524
- }
2525
-
2526
- .messageText {
2527
- fill: ${e.signalTextColor};
2528
- stroke: none;
2529
- }
2530
-
2531
- .labelBox {
2532
- stroke: ${e.labelBoxBorderColor};
2533
- fill: ${e.labelBoxBkgColor};
2534
- }
2535
-
2536
- .labelText, .labelText > tspan {
2537
- fill: ${e.labelTextColor};
2538
- stroke: none;
2539
- }
2540
-
2541
- .loopText, .loopText > tspan {
2542
- fill: ${e.loopTextColor};
2543
- stroke: none;
2544
- }
2545
-
2546
- .loopLine {
2547
- stroke-width: 2px;
2548
- stroke-dasharray: 2, 2;
2549
- stroke: ${e.labelBoxBorderColor};
2550
- fill: ${e.labelBoxBorderColor};
2551
- }
2552
-
2553
- .note {
2554
- //stroke: #decc93;
2555
- stroke: ${e.noteBorderColor};
2556
- fill: ${e.noteBkgColor};
2557
- }
2558
-
2559
- .noteText, .noteText > tspan {
2560
- fill: ${e.noteTextColor};
2561
- stroke: none;
2562
- }
2563
-
2564
- .activation0 {
2565
- fill: ${e.activationBkgColor};
2566
- stroke: ${e.activationBorderColor};
2567
- }
2568
-
2569
- .activation1 {
2570
- fill: ${e.activationBkgColor};
2571
- stroke: ${e.activationBorderColor};
2572
- }
2573
-
2574
- .activation2 {
2575
- fill: ${e.activationBkgColor};
2576
- stroke: ${e.activationBorderColor};
2577
- }
2578
-
2579
- .actorPopupMenu {
2580
- position: absolute;
2581
- }
2582
-
2583
- .actorPopupMenuPanel {
2584
- position: absolute;
2585
- fill: ${e.actorBkg};
2586
- box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
2587
- filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
2588
- }
2589
- .actor-man line {
2590
- stroke: ${e.actorBorder};
2591
- fill: ${e.actorBkg};
2592
- }
2593
- .actor-man circle, line {
2594
- stroke: ${e.actorBorder};
2595
- fill: ${e.actorBkg};
2596
- stroke-width: 2px;
2597
- }
2598
-
2599
- `, "getStyles"), ACTOR_TYPE_WIDTH = 36, TOP_ACTOR_CLASS = "actor-top", BOTTOM_ACTOR_CLASS = "actor-bottom", ACTOR_BOX_CLASS = "actor-box", ACTOR_MAN_FIGURE_CLASS = "actor-man", drawRect2 = /* @__PURE__ */ __name(function(e, l) {
2600
- return drawRect(e, l);
2601
- }, "drawRect"), drawPopup = /* @__PURE__ */ __name(function(e, l, u, d, f) {
2602
- if (l.links === void 0 || l.links === null || Object.keys(l.links).length === 0) return {
2603
- height: 0,
2604
- width: 0
2605
- };
2606
- let p = l.links, m = l.actorCnt, h = l.rectData;
2607
- var g = "none";
2608
- f && (g = "block !important");
2609
- let _ = e.append("g");
2610
- _.attr("id", "actor" + m + "_popup"), _.attr("class", "actorPopupMenu"), _.attr("display", g);
2611
- var v = "";
2612
- h.class !== void 0 && (v = " " + h.class);
2613
- let y = h.width > u ? h.width : u, b = _.append("rect");
2614
- if (b.attr("class", "actorPopupMenuPanel" + v), b.attr("x", h.x), b.attr("y", h.height), b.attr("fill", h.fill), b.attr("stroke", h.stroke), b.attr("width", y), b.attr("height", h.height), b.attr("rx", h.rx), b.attr("ry", h.ry), p != null) {
2615
- var x = 20;
2616
- for (let e in p) {
2617
- var S = _.append("a"), C = (0, import_dist.sanitizeUrl)(p[e]);
2618
- S.attr("xlink:href", C), S.attr("target", "_blank"), _drawMenuItemTextCandidateFunc(d)(e, S, h.x + 10, h.height + x, y, 20, { class: "actor" }, d), x += 30;
2619
- }
2620
- }
2621
- return b.attr("height", x), {
2622
- height: h.height + x,
2623
- width: y
2624
- };
2625
- }, "drawPopup"), popupMenuToggle = /* @__PURE__ */ __name(function(e) {
2626
- return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
2627
- }, "popupMenuToggle"), drawKatex = /* @__PURE__ */ __name(async function(e, l, u = null) {
2628
- let d = e.append("foreignObject"), f = await renderKatexSanitized(l.text, getConfig()), p = d.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(f).node().getBoundingClientRect();
2629
- if (d.attr("height", Math.round(p.height)).attr("width", Math.round(p.width)), l.class === "noteText") {
2630
- let u = e.node().firstChild;
2631
- u.setAttribute("height", p.height + 2 * l.textMargin);
2632
- let f = u.getBBox();
2633
- d.attr("x", Math.round(f.x + f.width / 2 - p.width / 2)).attr("y", Math.round(f.y + f.height / 2 - p.height / 2));
2634
- } else if (u) {
2635
- let { startx: e, stopx: f, starty: m } = u;
2636
- if (e > f) {
2637
- let l = e;
2638
- e = f, f = l;
2639
- }
2640
- d.attr("x", Math.round(e + Math.abs(e - f) / 2 - p.width / 2)), l.class === "loopText" ? d.attr("y", Math.round(m)) : d.attr("y", Math.round(m - p.height));
2641
- }
2642
- return [d];
2643
- }, "drawKatex"), drawText = /* @__PURE__ */ __name(function(l, u) {
2644
- let d = 0, f = 0, m = u.text.split(common_default.lineBreakRegex), [h, g] = parseFontSize(u.fontSize), _ = [], v = 0, y = /* @__PURE__ */ __name(() => u.y, "yfunc");
2645
- if (u.valign !== void 0 && u.textMargin !== void 0 && u.textMargin > 0) switch (u.valign) {
2646
- case "top":
2647
- case "start":
2648
- y = /* @__PURE__ */ __name(() => Math.round(u.y + u.textMargin), "yfunc");
2649
- break;
2650
- case "middle":
2651
- case "center":
2652
- y = /* @__PURE__ */ __name(() => Math.round(u.y + (d + f + u.textMargin) / 2), "yfunc");
2653
- break;
2654
- case "bottom":
2655
- case "end":
2656
- y = /* @__PURE__ */ __name(() => Math.round(u.y + (d + f + 2 * u.textMargin) - u.textMargin), "yfunc");
2657
- break;
2658
- }
2659
- if (u.anchor !== void 0 && u.textMargin !== void 0 && u.width !== void 0) switch (u.anchor) {
2660
- case "left":
2661
- case "start":
2662
- u.x = Math.round(u.x + u.textMargin), u.anchor = "start", u.dominantBaseline = "middle", u.alignmentBaseline = "middle";
2663
- break;
2664
- case "middle":
2665
- case "center":
2666
- u.x = Math.round(u.x + u.width / 2), u.anchor = "middle", u.dominantBaseline = "middle", u.alignmentBaseline = "middle";
2667
- break;
2668
- case "right":
2669
- case "end":
2670
- u.x = Math.round(u.x + u.width - u.textMargin), u.anchor = "end", u.dominantBaseline = "middle", u.alignmentBaseline = "middle";
2671
- break;
2672
- }
2673
- for (let [e, p] of m.entries()) {
2674
- u.textMargin !== void 0 && u.textMargin === 0 && h !== void 0 && (v = e * h);
2675
- let m = l.append("text");
2676
- m.attr("x", u.x), m.attr("y", y()), u.anchor !== void 0 && m.attr("text-anchor", u.anchor).attr("dominant-baseline", u.dominantBaseline).attr("alignment-baseline", u.alignmentBaseline), u.fontFamily !== void 0 && m.style("font-family", u.fontFamily), g !== void 0 && m.style("font-size", g), u.fontWeight !== void 0 && m.style("font-weight", u.fontWeight), u.fill !== void 0 && m.attr("fill", u.fill), u.class !== void 0 && m.attr("class", u.class), u.dy === void 0 ? v !== 0 && m.attr("dy", v) : m.attr("dy", u.dy);
2677
- let b = p || "​";
2678
- if (u.tspan) {
2679
- let e = m.append("tspan");
2680
- e.attr("x", u.x), u.fill !== void 0 && e.attr("fill", u.fill), e.text(b);
2681
- } else m.text(b);
2682
- u.valign !== void 0 && u.textMargin !== void 0 && u.textMargin > 0 && (f += (m._groups || m)[0][0].getBBox().height, d = f), _.push(m);
2683
- }
2684
- return _;
2685
- }, "drawText"), drawLabel = /* @__PURE__ */ __name(function(l, u) {
2686
- function d(e, l, u, d, f) {
2687
- return e + "," + l + " " + (e + u) + "," + l + " " + (e + u) + "," + (l + d - f) + " " + (e + u - f * 1.2) + "," + (l + d) + " " + e + "," + (l + d);
2688
- }
2689
- __name(d, "genPoints");
2690
- let f = l.append("polygon");
2691
- return f.attr("points", d(u.x, u.y, u.width, u.height, 7)), f.attr("class", "labelBox"), u.y += u.height / 2, drawText(l, u), f;
2692
- }, "drawLabel"), actorCnt = -1, fixLifeLineHeights = /* @__PURE__ */ __name((e, l, u, d) => {
2693
- e.select && u.forEach((u) => {
2694
- let f = l.get(u), p = e.select("#actor" + f.actorCnt);
2695
- !d.mirrorActors && f.stopy ? p.attr("y2", f.stopy + f.height / 2) : d.mirrorActors && p.attr("y2", f.stopy);
2696
- });
2697
- }, "fixLifeLineHeights"), drawActorTypeParticipant = /* @__PURE__ */ __name(function(e, l, u, d) {
2698
- let f = d ? l.stopy : l.starty, p = l.x + l.width / 2, m = f + l.height, h = e.append("g").lower();
2699
- var g = h;
2700
- d || (actorCnt++, Object.keys(l.links || {}).length && !u.forceMenus && g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer"), g.append("line").attr("id", "actor" + actorCnt).attr("x1", p).attr("y1", m).attr("x2", p).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", l.name), g = h.append("g"), l.actorCnt = actorCnt, l.links != null && g.attr("id", "root-" + actorCnt));
2701
- let _ = getNoteRect();
2702
- var v = "actor";
2703
- l.properties?.class ? v = l.properties.class : _.fill = "#eaeaea", d ? v += ` ${BOTTOM_ACTOR_CLASS}` : v += ` ${TOP_ACTOR_CLASS}`, _.x = l.x, _.y = f, _.width = l.width, _.height = l.height, _.class = v, _.rx = 3, _.ry = 3, _.name = l.name;
2704
- let y = drawRect2(g, _);
2705
- if (l.rectData = _, l.properties?.icon) {
2706
- let e = l.properties.icon.trim();
2707
- e.charAt(0) === "@" ? drawEmbeddedImage(g, _.x + _.width - 20, _.y + 10, e.substr(1)) : drawImage(g, _.x + _.width - 20, _.y + 10, e);
2708
- }
2709
- _drawTextCandidateFunc(u, hasKatex(l.description))(l.description, g, _.x, _.y, _.width, _.height, { class: `actor ${ACTOR_BOX_CLASS}` }, u);
2710
- let b = l.height;
2711
- if (y.node) {
2712
- let e = y.node().getBBox();
2713
- l.height = e.height, b = e.height;
2714
- }
2715
- return b;
2716
- }, "drawActorTypeParticipant"), drawActorTypeCollections = /* @__PURE__ */ __name(function(e, l, u, d) {
2717
- let f = d ? l.stopy : l.starty, p = l.x + l.width / 2, m = f + l.height, h = e.append("g").lower();
2718
- var g = h;
2719
- d || (actorCnt++, Object.keys(l.links || {}).length && !u.forceMenus && g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer"), g.append("line").attr("id", "actor" + actorCnt).attr("x1", p).attr("y1", m).attr("x2", p).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", l.name), g = h.append("g"), l.actorCnt = actorCnt, l.links != null && g.attr("id", "root-" + actorCnt));
2720
- let _ = getNoteRect();
2721
- var v = "actor";
2722
- l.properties?.class ? v = l.properties.class : _.fill = "#eaeaea", d ? v += ` ${BOTTOM_ACTOR_CLASS}` : v += ` ${TOP_ACTOR_CLASS}`, _.x = l.x, _.y = f, _.width = l.width, _.height = l.height, _.class = v, _.name = l.name;
2723
- let y = {
2724
- ..._,
2725
- x: _.x + -6,
2726
- y: _.y + 6,
2727
- class: "actor"
2728
- }, b = drawRect2(g, _);
2729
- if (drawRect2(g, y), l.rectData = _, l.properties?.icon) {
2730
- let e = l.properties.icon.trim();
2731
- e.charAt(0) === "@" ? drawEmbeddedImage(g, _.x + _.width - 20, _.y + 10, e.substr(1)) : drawImage(g, _.x + _.width - 20, _.y + 10, e);
2732
- }
2733
- _drawTextCandidateFunc(u, hasKatex(l.description))(l.description, g, _.x - 6, _.y + 6, _.width, _.height, { class: `actor ${ACTOR_BOX_CLASS}` }, u);
2734
- let S = l.height;
2735
- if (b.node) {
2736
- let e = b.node().getBBox();
2737
- l.height = e.height, S = e.height;
2738
- }
2739
- return S;
2740
- }, "drawActorTypeCollections"), drawActorTypeQueue = /* @__PURE__ */ __name(function(e, l, u, d) {
2741
- let f = d ? l.stopy : l.starty, p = l.x + l.width / 2, m = f + l.height, h = e.append("g").lower(), g = h;
2742
- d || (actorCnt++, Object.keys(l.links || {}).length && !u.forceMenus && g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer"), g.append("line").attr("id", "actor" + actorCnt).attr("x1", p).attr("y1", m).attr("x2", p).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", l.name), g = h.append("g"), l.actorCnt = actorCnt, l.links != null && g.attr("id", "root-" + actorCnt));
2743
- let _ = getNoteRect(), v = "actor";
2744
- l.properties?.class ? v = l.properties.class : _.fill = "#eaeaea", d ? v += ` ${BOTTOM_ACTOR_CLASS}` : v += ` ${TOP_ACTOR_CLASS}`, _.x = l.x, _.y = f, _.width = l.width, _.height = l.height, _.class = v, _.name = l.name;
2745
- let y = _.height / 2, b = y / (2.5 + _.height / 50), S = g.append("g"), C = g.append("g");
2746
- if (S.append("path").attr("d", `M ${_.x},${_.y + y}
2747
- a ${b},${y} 0 0 0 0,${_.height}
2748
- h ${_.width - 2 * b}
2749
- a ${b},${y} 0 0 0 0,-${_.height}
2750
- Z
2751
- `).attr("class", v), C.append("path").attr("d", `M ${_.x},${_.y + y}
2752
- a ${b},${y} 0 0 0 0,${_.height}`).attr("stroke", "#666").attr("stroke-width", "1px").attr("class", v), S.attr("transform", `translate(${b}, ${-(_.height / 2)})`), C.attr("transform", `translate(${_.width - b}, ${-_.height / 2})`), l.rectData = _, l.properties?.icon) {
2753
- let e = l.properties.icon.trim(), u = _.x + _.width - 20, d = _.y + 10;
2754
- e.charAt(0) === "@" ? drawEmbeddedImage(g, u, d, e.substr(1)) : drawImage(g, u, d, e);
2755
- }
2756
- _drawTextCandidateFunc(u, hasKatex(l.description))(l.description, g, _.x, _.y, _.width, _.height, { class: `actor ${ACTOR_BOX_CLASS}` }, u);
2757
- let w = l.height, T = S.select("path:last-child");
2758
- if (T.node()) {
2759
- let e = T.node().getBBox();
2760
- l.height = e.height, w = e.height;
2761
- }
2762
- return w;
2763
- }, "drawActorTypeQueue"), drawActorTypeControl = /* @__PURE__ */ __name(function(e, l, u, d) {
2764
- let f = d ? l.stopy : l.starty, p = l.x + l.width / 2, m = f + 75, h = e.append("g").lower();
2765
- d || (actorCnt++, h.append("line").attr("id", "actor" + actorCnt).attr("x1", p).attr("y1", m).attr("x2", p).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", l.name), l.actorCnt = actorCnt);
2766
- let g = e.append("g"), _ = ACTOR_MAN_FIGURE_CLASS;
2767
- d ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, g.attr("class", _), g.attr("name", l.name);
2768
- let v = getNoteRect();
2769
- v.x = l.x, v.y = f, v.fill = "#eaeaea", v.width = l.width, v.height = l.height, v.class = "actor";
2770
- let y = l.x + l.width / 2, b = f + 30;
2771
- return g.append("defs").append("marker").attr("id", "filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").append("path").attr("d", "M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"), g.append("circle").attr("cx", y).attr("cy", b).attr("r", 18).attr("fill", "#eaeaf7").attr("stroke", "#666").attr("stroke-width", 1.2), g.append("line").attr("marker-end", "url(#filled-head-control)").attr("transform", `translate(${y}, ${b - 18})`), l.height = g.node().getBBox().height + 2 * (u?.sequence?.labelBoxHeight ?? 0), _drawTextCandidateFunc(u, hasKatex(l.description))(l.description, g, v.x, v.y + 18 + (d ? 5 : 10), v.width, v.height, { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` }, u), l.height;
2772
- }, "drawActorTypeControl"), drawActorTypeEntity = /* @__PURE__ */ __name(function(e, l, u, d) {
2773
- let f = d ? l.stopy : l.starty, p = l.x + l.width / 2, m = f + 75, h = e.append("g").lower(), g = e.append("g"), _ = ACTOR_MAN_FIGURE_CLASS;
2774
- d ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, g.attr("class", _), g.attr("name", l.name);
2775
- let v = getNoteRect();
2776
- v.x = l.x, v.y = f, v.fill = "#eaeaea", v.width = l.width, v.height = l.height, v.class = "actor";
2777
- let y = l.x + l.width / 2, b = f + (d ? 10 : 25);
2778
- return g.append("circle").attr("cx", y).attr("cy", b).attr("r", 18).attr("width", l.width).attr("height", l.height), g.append("line").attr("x1", y - 18).attr("x2", y + 18).attr("y1", b + 18).attr("y2", b + 18).attr("stroke", "#333").attr("stroke-width", 2), l.height = g.node().getBBox().height + (u?.sequence?.labelBoxHeight ?? 0), d || (actorCnt++, h.append("line").attr("id", "actor" + actorCnt).attr("x1", p).attr("y1", m).attr("x2", p).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", l.name), l.actorCnt = actorCnt), _drawTextCandidateFunc(u, hasKatex(l.description))(l.description, g, v.x, v.y + (d ? (b - f + 18 - 5) / 2 : (b + 18 - f) / 2), v.width, v.height, { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` }, u), g.attr("transform", `translate(0, ${18 / 2})`), l.height;
2779
- }, "drawActorTypeEntity"), drawActorTypeDatabase = /* @__PURE__ */ __name(function(e, l, u, d) {
2780
- let f = d ? l.stopy : l.starty, p = l.x + l.width / 2, m = f + l.height + 2 * u.boxTextMargin, h = e.append("g").lower(), g = h;
2781
- d || (actorCnt++, Object.keys(l.links || {}).length && !u.forceMenus && g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer"), g.append("line").attr("id", "actor" + actorCnt).attr("x1", p).attr("y1", m).attr("x2", p).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", l.name), g = h.append("g"), l.actorCnt = actorCnt, l.links != null && g.attr("id", "root-" + actorCnt));
2782
- let _ = getNoteRect(), v = "actor";
2783
- l.properties?.class ? v = l.properties.class : _.fill = "#eaeaea", d ? v += ` ${BOTTOM_ACTOR_CLASS}` : v += ` ${TOP_ACTOR_CLASS}`, _.x = l.x, _.y = f, _.width = l.width, _.height = l.height, _.class = v, _.name = l.name, _.x = l.x, _.y = f;
2784
- let y = _.width / 4, b = _.width / 4, S = y / 2, C = S / (2.5 + y / 50), w = g.append("g"), T = `
2785
- M ${_.x},${_.y + C}
2786
- a ${S},${C} 0 0 0 ${y},0
2787
- a ${S},${C} 0 0 0 -${y},0
2788
- l 0,${b - 2 * C}
2789
- a ${S},${C} 0 0 0 ${y},0
2790
- l 0,-${b - 2 * C}
2791
- `;
2792
- w.append("path").attr("d", T).attr("fill", "#eaeaea").attr("stroke", "#000").attr("stroke-width", 1).attr("class", v), d ? w.attr("transform", `translate(${y * 1.5}, ${_.height / 4 - 2 * C})`) : w.attr("transform", `translate(${y * 1.5}, ${(_.height + C) / 4})`), l.rectData = _, _drawTextCandidateFunc(u, hasKatex(l.description))(l.description, g, _.x, _.y + (d ? (_.height + b) / 4 : (_.height + C) / 2), _.width, _.height, { class: `actor ${ACTOR_BOX_CLASS}` }, u);
2793
- let E = w.select("path:last-child");
2794
- return E.node() && (l.height = E.node().getBBox().height + (u.sequence.labelBoxHeight ?? 0)), l.height;
2795
- }, "drawActorTypeDatabase"), drawActorTypeBoundary = /* @__PURE__ */ __name(function(e, l, u, d) {
2796
- let f = d ? l.stopy : l.starty, p = l.x + l.width / 2, m = f + 80, h = e.append("g").lower();
2797
- d || (actorCnt++, h.append("line").attr("id", "actor" + actorCnt).attr("x1", p).attr("y1", m).attr("x2", p).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", l.name), l.actorCnt = actorCnt);
2798
- let g = e.append("g"), _ = ACTOR_MAN_FIGURE_CLASS;
2799
- d ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, g.attr("class", _), g.attr("name", l.name);
2800
- let v = getNoteRect();
2801
- return v.x = l.x, v.y = f, v.fill = "#eaeaea", v.width = l.width, v.height = l.height, v.class = "actor", g.append("line").attr("id", "actor-man-torso" + actorCnt).attr("x1", l.x + l.width / 2 - 30 * 2.5).attr("y1", f + 10).attr("x2", l.x + l.width / 2 - 15).attr("y2", f + 10), g.append("line").attr("id", "actor-man-arms" + actorCnt).attr("x1", l.x + l.width / 2 - 30 * 2.5).attr("y1", f + 0).attr("x2", l.x + l.width / 2 - 30 * 2.5).attr("y2", f + 20), g.append("circle").attr("cx", l.x + l.width / 2).attr("cy", f + 10).attr("r", 30), l.height = g.node().getBBox().height + (u.sequence.labelBoxHeight ?? 0), _drawTextCandidateFunc(u, hasKatex(l.description))(l.description, g, v.x, v.y + (d ? 30 / 2 - 4 : 18), v.width, v.height, { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` }, u), g.attr("transform", "translate(0,22)"), l.height;
2802
- }, "drawActorTypeBoundary"), drawActorTypeActor = /* @__PURE__ */ __name(function(e, l, u, d) {
2803
- let f = d ? l.stopy : l.starty, p = l.x + l.width / 2, m = f + 80, h = e.append("g").lower();
2804
- d || (actorCnt++, h.append("line").attr("id", "actor" + actorCnt).attr("x1", p).attr("y1", m).attr("x2", p).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", l.name), l.actorCnt = actorCnt);
2805
- let g = e.append("g"), _ = ACTOR_MAN_FIGURE_CLASS;
2806
- d ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, g.attr("class", _), g.attr("name", l.name);
2807
- let v = getNoteRect();
2808
- v.x = l.x, v.y = f, v.fill = "#eaeaea", v.width = l.width, v.height = l.height, v.class = "actor", v.rx = 3, v.ry = 3, g.append("line").attr("id", "actor-man-torso" + actorCnt).attr("x1", p).attr("y1", f + 25).attr("x2", p).attr("y2", f + 45), g.append("line").attr("id", "actor-man-arms" + actorCnt).attr("x1", p - ACTOR_TYPE_WIDTH / 2).attr("y1", f + 33).attr("x2", p + ACTOR_TYPE_WIDTH / 2).attr("y2", f + 33), g.append("line").attr("x1", p - ACTOR_TYPE_WIDTH / 2).attr("y1", f + 60).attr("x2", p).attr("y2", f + 45), g.append("line").attr("x1", p).attr("y1", f + 45).attr("x2", p + ACTOR_TYPE_WIDTH / 2 - 2).attr("y2", f + 60);
2809
- let y = g.append("circle");
2810
- return y.attr("cx", l.x + l.width / 2), y.attr("cy", f + 10), y.attr("r", 15), y.attr("width", l.width), y.attr("height", l.height), l.height = g.node().getBBox().height, _drawTextCandidateFunc(u, hasKatex(l.description))(l.description, g, v.x, v.y + 35, v.width, v.height, { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` }, u), l.height;
2811
- }, "drawActorTypeActor"), drawActor = /* @__PURE__ */ __name(async function(e, l, u, d) {
2812
- switch (l.type) {
2813
- case "actor": return await drawActorTypeActor(e, l, u, d);
2814
- case "participant": return await drawActorTypeParticipant(e, l, u, d);
2815
- case "boundary": return await drawActorTypeBoundary(e, l, u, d);
2816
- case "control": return await drawActorTypeControl(e, l, u, d);
2817
- case "entity": return await drawActorTypeEntity(e, l, u, d);
2818
- case "database": return await drawActorTypeDatabase(e, l, u, d);
2819
- case "collections": return await drawActorTypeCollections(e, l, u, d);
2820
- case "queue": return await drawActorTypeQueue(e, l, u, d);
2821
- }
2822
- }, "drawActor"), drawBox = /* @__PURE__ */ __name(function(e, l, u) {
2823
- let d = e.append("g");
2824
- drawBackgroundRect2(d, l), l.name && _drawTextCandidateFunc(u)(l.name, d, l.x, l.y + u.boxTextMargin + (l.textMaxHeight || 0) / 2, l.width, 0, { class: "text" }, u), d.lower();
2825
- }, "drawBox"), anchorElement = /* @__PURE__ */ __name(function(e) {
2826
- return e.append("g");
2827
- }, "anchorElement"), drawActivation = /* @__PURE__ */ __name(function(e, l, u, d, f) {
2828
- let p = getNoteRect(), m = l.anchored;
2829
- p.x = l.startx, p.y = l.starty, p.class = "activation" + f % 3, p.width = l.stopx - l.startx, p.height = u - l.starty, drawRect2(m, p);
2830
- }, "drawActivation"), drawLoop = /* @__PURE__ */ __name(async function(l, u, d, f) {
2831
- let { boxMargin: p, boxTextMargin: m, labelBoxHeight: h, labelBoxWidth: g, messageFontFamily: _, messageFontSize: v, messageFontWeight: y } = f, b = l.append("g"), S = /* @__PURE__ */ __name(function(e, l, u, d) {
2832
- return b.append("line").attr("x1", e).attr("y1", l).attr("x2", u).attr("y2", d).attr("class", "loopLine");
2833
- }, "drawLoopLine");
2834
- S(u.startx, u.starty, u.stopx, u.starty), S(u.stopx, u.starty, u.stopx, u.stopy), S(u.startx, u.stopy, u.stopx, u.stopy), S(u.startx, u.starty, u.startx, u.stopy), u.sections !== void 0 && u.sections.forEach(function(e) {
2835
- S(u.startx, e.y, u.stopx, e.y).style("stroke-dasharray", "3, 3");
2836
- });
2837
- let C = getTextObj();
2838
- C.text = d, C.x = u.startx, C.y = u.starty, C.fontFamily = _, C.fontSize = v, C.fontWeight = y, C.anchor = "middle", C.valign = "middle", C.tspan = !1, C.width = g || 50, C.height = h || 20, C.textMargin = m, C.class = "labelText", drawLabel(b, C), C = getTextObj2(), C.text = u.title, C.x = u.startx + g / 2 + (u.stopx - u.startx) / 2, C.y = u.starty + p + m, C.anchor = "middle", C.valign = "middle", C.textMargin = m, C.class = "loopText", C.fontFamily = _, C.fontSize = v, C.fontWeight = y, C.wrap = !0;
2839
- let w = hasKatex(C.text) ? await drawKatex(b, C, u) : drawText(b, C);
2840
- if (u.sectionTitles !== void 0) {
2841
- for (let [e, l] of Object.entries(u.sectionTitles)) if (l.message) {
2842
- C.text = l.message, C.x = u.startx + (u.stopx - u.startx) / 2, C.y = u.sections[e].y + p + m, C.class = "loopText", C.anchor = "middle", C.valign = "middle", C.tspan = !1, C.fontFamily = _, C.fontSize = v, C.fontWeight = y, C.wrap = u.wrap, hasKatex(C.text) ? (u.starty = u.sections[e].y, await drawKatex(b, C, u)) : drawText(b, C);
2843
- let d = Math.round(w.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, l) => e + l));
2844
- u.sections[e].height += d - (p + m);
2845
- }
2846
- }
2847
- return u.height = Math.round(u.stopy - u.starty), b;
2848
- }, "drawLoop"), drawBackgroundRect2 = /* @__PURE__ */ __name(function(e, l) {
2849
- drawBackgroundRect(e, l);
2850
- }, "drawBackgroundRect"), insertDatabaseIcon = /* @__PURE__ */ __name(function(e) {
2851
- e.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr("d", "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");
2852
- }, "insertDatabaseIcon"), insertComputerIcon = /* @__PURE__ */ __name(function(e) {
2853
- e.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "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");
2854
- }, "insertComputerIcon"), insertClockIcon = /* @__PURE__ */ __name(function(e) {
2855
- e.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "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");
2856
- }, "insertClockIcon"), insertArrowHead = /* @__PURE__ */ __name(function(e) {
2857
- e.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z");
2858
- }, "insertArrowHead"), insertArrowFilledHead = /* @__PURE__ */ __name(function(e) {
2859
- e.append("defs").append("marker").attr("id", "filled-head").attr("refX", 15.5).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");
2860
- }, "insertArrowFilledHead"), insertSequenceNumber = /* @__PURE__ */ __name(function(e) {
2861
- e.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);
2862
- }, "insertSequenceNumber"), insertArrowCrossHead = /* @__PURE__ */ __name(function(e) {
2863
- e.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5).append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7");
2864
- }, "insertArrowCrossHead"), getTextObj2 = /* @__PURE__ */ __name(function() {
2865
- return {
2866
- x: 0,
2867
- y: 0,
2868
- fill: void 0,
2869
- anchor: void 0,
2870
- style: "#666",
2871
- width: void 0,
2872
- height: void 0,
2873
- textMargin: 0,
2874
- rx: 0,
2875
- ry: 0,
2876
- tspan: !0,
2877
- valign: void 0
2878
- };
2879
- }, "getTextObj"), getNoteRect2 = /* @__PURE__ */ __name(function() {
2880
- return {
2881
- x: 0,
2882
- y: 0,
2883
- fill: "#EDF2AE",
2884
- stroke: "#666",
2885
- width: 100,
2886
- anchor: "start",
2887
- height: 100,
2888
- rx: 0,
2889
- ry: 0
2890
- };
2891
- }, "getNoteRect"), _drawTextCandidateFunc = /* @__PURE__ */ (function() {
2892
- function l(e, l, u, d, f, p, m) {
2893
- h(l.append("text").attr("x", u + f / 2).attr("y", d + p / 2 + 5).style("text-anchor", "middle").text(e), m);
2894
- }
2895
- __name(l, "byText");
2896
- function u(e, l, u, d, f, m, g, _) {
2897
- let { actorFontSize: v, actorFontFamily: y, actorFontWeight: b } = _, [x, S] = parseFontSize(v), C = e.split(common_default.lineBreakRegex);
2898
- for (let e = 0; e < C.length; e++) {
2899
- let p = e * x - x * (C.length - 1) / 2, _ = l.append("text").attr("x", u + f / 2).attr("y", d).style("text-anchor", "middle").style("font-size", S).style("font-weight", b).style("font-family", y);
2900
- _.append("tspan").attr("x", u + f / 2).attr("dy", p).text(C[e]), _.attr("y", d + m / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), h(_, g);
2901
- }
2902
- }
2903
- __name(u, "byTspan");
2904
- function f(e, l, d, f, p, m, g, _) {
2905
- let v = l.append("switch"), y = v.append("foreignObject").attr("x", d).attr("y", f).attr("width", p).attr("height", m).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
2906
- y.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), u(e, v, d, f, p, m, g, _), h(y, g);
2907
- }
2908
- __name(f, "byFo");
2909
- async function m(e, l, f, p, m, g, v, y) {
2910
- let b = await calculateMathMLDimensions(e, getConfig()), x = l.append("switch"), C = x.append("foreignObject").attr("x", f + m / 2 - b.width / 2).attr("y", p + g / 2 - b.height / 2).attr("width", b.width).attr("height", b.height).append("xhtml:div").style("height", "100%").style("width", "100%");
2911
- C.append("div").style("text-align", "center").style("vertical-align", "middle").html(await renderKatexSanitized(e, getConfig())), u(e, x, f, p, m, g, v, y), h(C, v);
2912
- }
2913
- __name(m, "byKatex");
2914
- function h(e, l) {
2915
- for (let u in l) l.hasOwnProperty(u) && e.attr(u, l[u]);
2916
- }
2917
- return __name(h, "_setTextAttrs"), function(e, d = !1) {
2918
- return d ? m : e.textPlacement === "fo" ? f : e.textPlacement === "old" ? l : u;
2919
- };
2920
- })(), _drawMenuItemTextCandidateFunc = /* @__PURE__ */ (function() {
2921
- function l(e, l, u, d, p, m, h) {
2922
- f(l.append("text").attr("x", u).attr("y", d).style("text-anchor", "start").text(e), h);
2923
- }
2924
- __name(l, "byText");
2925
- function u(e, l, u, d, m, h, g, _) {
2926
- let { actorFontSize: v, actorFontFamily: y, actorFontWeight: b } = _, x = e.split(common_default.lineBreakRegex);
2927
- for (let e = 0; e < x.length; e++) {
2928
- let p = e * v - v * (x.length - 1) / 2, m = l.append("text").attr("x", u).attr("y", d).style("text-anchor", "start").style("font-size", v).style("font-weight", b).style("font-family", y);
2929
- m.append("tspan").attr("x", u).attr("dy", p).text(x[e]), m.attr("y", d + h / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), f(m, g);
2930
- }
2931
- }
2932
- __name(u, "byTspan");
2933
- function d(e, l, d, p, m, h, g, _) {
2934
- let v = l.append("switch"), y = v.append("foreignObject").attr("x", d).attr("y", p).attr("width", m).attr("height", h).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
2935
- y.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), u(e, v, d, p, m, h, g, _), f(y, g);
2936
- }
2937
- __name(d, "byFo");
2938
- function f(e, l) {
2939
- for (let u in l) l.hasOwnProperty(u) && e.attr(u, l[u]);
2940
- }
2941
- return __name(f, "_setTextAttrs"), function(e) {
2942
- return e.textPlacement === "fo" ? d : e.textPlacement === "old" ? l : u;
2943
- };
2944
- })(), svgDraw_default = {
2945
- drawRect: drawRect2,
2946
- drawText,
2947
- drawLabel,
2948
- drawActor,
2949
- drawBox,
2950
- drawPopup,
2951
- anchorElement,
2952
- drawActivation,
2953
- drawLoop,
2954
- drawBackgroundRect: drawBackgroundRect2,
2955
- insertArrowHead,
2956
- insertArrowFilledHead,
2957
- insertSequenceNumber,
2958
- insertArrowCrossHead,
2959
- insertDatabaseIcon,
2960
- insertComputerIcon,
2961
- insertClockIcon,
2962
- getTextObj: getTextObj2,
2963
- getNoteRect: getNoteRect2,
2964
- fixLifeLineHeights,
2965
- sanitizeUrl: import_dist.sanitizeUrl
2966
- }, conf = {}, bounds = {
2967
- data: {
2968
- startx: void 0,
2969
- stopx: void 0,
2970
- starty: void 0,
2971
- stopy: void 0
2972
- },
2973
- verticalPos: 0,
2974
- sequenceItems: [],
2975
- activations: [],
2976
- models: {
2977
- getHeight: /* @__PURE__ */ __name(function() {
2978
- return Math.max.apply(null, this.actors.length === 0 ? [0] : this.actors.map((e) => e.height || 0)) + (this.loops.length === 0 ? 0 : this.loops.map((e) => e.height || 0).reduce((e, l) => e + l)) + (this.messages.length === 0 ? 0 : this.messages.map((e) => e.height || 0).reduce((e, l) => e + l)) + (this.notes.length === 0 ? 0 : this.notes.map((e) => e.height || 0).reduce((e, l) => e + l));
2979
- }, "getHeight"),
2980
- clear: /* @__PURE__ */ __name(function() {
2981
- this.actors = [], this.boxes = [], this.loops = [], this.messages = [], this.notes = [];
2982
- }, "clear"),
2983
- addBox: /* @__PURE__ */ __name(function(e) {
2984
- this.boxes.push(e);
2985
- }, "addBox"),
2986
- addActor: /* @__PURE__ */ __name(function(e) {
2987
- this.actors.push(e);
2988
- }, "addActor"),
2989
- addLoop: /* @__PURE__ */ __name(function(e) {
2990
- this.loops.push(e);
2991
- }, "addLoop"),
2992
- addMessage: /* @__PURE__ */ __name(function(e) {
2993
- this.messages.push(e);
2994
- }, "addMessage"),
2995
- addNote: /* @__PURE__ */ __name(function(e) {
2996
- this.notes.push(e);
2997
- }, "addNote"),
2998
- lastActor: /* @__PURE__ */ __name(function() {
2999
- return this.actors[this.actors.length - 1];
3000
- }, "lastActor"),
3001
- lastLoop: /* @__PURE__ */ __name(function() {
3002
- return this.loops[this.loops.length - 1];
3003
- }, "lastLoop"),
3004
- lastMessage: /* @__PURE__ */ __name(function() {
3005
- return this.messages[this.messages.length - 1];
3006
- }, "lastMessage"),
3007
- lastNote: /* @__PURE__ */ __name(function() {
3008
- return this.notes[this.notes.length - 1];
3009
- }, "lastNote"),
3010
- actors: [],
3011
- boxes: [],
3012
- loops: [],
3013
- messages: [],
3014
- notes: []
3015
- },
3016
- init: /* @__PURE__ */ __name(function() {
3017
- this.sequenceItems = [], this.activations = [], this.models.clear(), this.data = {
3018
- startx: void 0,
3019
- stopx: void 0,
3020
- starty: void 0,
3021
- stopy: void 0
3022
- }, this.verticalPos = 0, setConf(getConfig2());
3023
- }, "init"),
3024
- updateVal: /* @__PURE__ */ __name(function(e, l, u, d) {
3025
- e[l] === void 0 ? e[l] = u : e[l] = d(u, e[l]);
3026
- }, "updateVal"),
3027
- updateBounds: /* @__PURE__ */ __name(function(l, u, d, f) {
3028
- let p = this, m = 0;
3029
- function h(h) {
3030
- return /* @__PURE__ */ __name(function(e) {
3031
- m++;
3032
- let g = p.sequenceItems.length - m + 1;
3033
- p.updateVal(e, "starty", u - g * conf.boxMargin, Math.min), p.updateVal(e, "stopy", f + g * conf.boxMargin, Math.max), p.updateVal(bounds.data, "startx", l - g * conf.boxMargin, Math.min), p.updateVal(bounds.data, "stopx", d + g * conf.boxMargin, Math.max), h !== "activation" && (p.updateVal(e, "startx", l - g * conf.boxMargin, Math.min), p.updateVal(e, "stopx", d + g * conf.boxMargin, Math.max), p.updateVal(bounds.data, "starty", u - g * conf.boxMargin, Math.min), p.updateVal(bounds.data, "stopy", f + g * conf.boxMargin, Math.max));
3034
- }, "updateItemBounds");
3035
- }
3036
- __name(h, "updateFn"), this.sequenceItems.forEach(h()), this.activations.forEach(h("activation"));
3037
- }, "updateBounds"),
3038
- insert: /* @__PURE__ */ __name(function(e, l, u, d) {
3039
- let f = common_default.getMin(e, u), m = common_default.getMax(e, u), h = common_default.getMin(l, d), g = common_default.getMax(l, d);
3040
- this.updateVal(bounds.data, "startx", f, Math.min), this.updateVal(bounds.data, "starty", h, Math.min), this.updateVal(bounds.data, "stopx", m, Math.max), this.updateVal(bounds.data, "stopy", g, Math.max), this.updateBounds(f, h, m, g);
3041
- }, "insert"),
3042
- newActivation: /* @__PURE__ */ __name(function(e, l, u) {
3043
- let d = u.get(e.from), f = actorActivations(e.from).length || 0, p = d.x + d.width / 2 + (f - 1) * conf.activationWidth / 2;
3044
- this.activations.push({
3045
- startx: p,
3046
- starty: this.verticalPos + 2,
3047
- stopx: p + conf.activationWidth,
3048
- stopy: void 0,
3049
- actor: e.from,
3050
- anchored: svgDraw_default.anchorElement(l)
3051
- });
3052
- }, "newActivation"),
3053
- endActivation: /* @__PURE__ */ __name(function(e) {
3054
- let l = this.activations.map(function(e) {
3055
- return e.actor;
3056
- }).lastIndexOf(e.from);
3057
- return this.activations.splice(l, 1)[0];
3058
- }, "endActivation"),
3059
- createLoop: /* @__PURE__ */ __name(function(e = {
3060
- message: void 0,
3061
- wrap: !1,
3062
- width: void 0
3063
- }, l) {
3064
- return {
3065
- startx: void 0,
3066
- starty: this.verticalPos,
3067
- stopx: void 0,
3068
- stopy: void 0,
3069
- title: e.message,
3070
- wrap: e.wrap,
3071
- width: e.width,
3072
- height: 0,
3073
- fill: l
3074
- };
3075
- }, "createLoop"),
3076
- newLoop: /* @__PURE__ */ __name(function(e = {
3077
- message: void 0,
3078
- wrap: !1,
3079
- width: void 0
3080
- }, l) {
3081
- this.sequenceItems.push(this.createLoop(e, l));
3082
- }, "newLoop"),
3083
- endLoop: /* @__PURE__ */ __name(function() {
3084
- return this.sequenceItems.pop();
3085
- }, "endLoop"),
3086
- isLoopOverlap: /* @__PURE__ */ __name(function() {
3087
- return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : !1;
3088
- }, "isLoopOverlap"),
3089
- addSectionToLoop: /* @__PURE__ */ __name(function(e) {
3090
- let l = this.sequenceItems.pop();
3091
- l.sections = l.sections || [], l.sectionTitles = l.sectionTitles || [], l.sections.push({
3092
- y: bounds.getVerticalPos(),
3093
- height: 0
3094
- }), l.sectionTitles.push(e), this.sequenceItems.push(l);
3095
- }, "addSectionToLoop"),
3096
- saveVerticalPos: /* @__PURE__ */ __name(function() {
3097
- this.isLoopOverlap() && (this.savedVerticalPos = this.verticalPos);
3098
- }, "saveVerticalPos"),
3099
- resetVerticalPos: /* @__PURE__ */ __name(function() {
3100
- this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
3101
- }, "resetVerticalPos"),
3102
- bumpVerticalPos: /* @__PURE__ */ __name(function(e) {
3103
- this.verticalPos += e, this.data.stopy = common_default.getMax(this.data.stopy, this.verticalPos);
3104
- }, "bumpVerticalPos"),
3105
- getVerticalPos: /* @__PURE__ */ __name(function() {
3106
- return this.verticalPos;
3107
- }, "getVerticalPos"),
3108
- getBounds: /* @__PURE__ */ __name(function() {
3109
- return {
3110
- bounds: this.data,
3111
- models: this.models
3112
- };
3113
- }, "getBounds")
3114
- }, drawNote = /* @__PURE__ */ __name(async function(e, l) {
3115
- bounds.bumpVerticalPos(conf.boxMargin), l.height = conf.boxMargin, l.starty = bounds.getVerticalPos();
3116
- let u = getNoteRect();
3117
- u.x = l.startx, u.y = l.starty, u.width = l.width || conf.width, u.class = "note";
3118
- let d = e.append("g"), f = svgDraw_default.drawRect(d, u), p = getTextObj();
3119
- p.x = l.startx, p.y = l.starty, p.width = u.width, p.dy = "1em", p.text = l.message, p.class = "noteText", p.fontFamily = conf.noteFontFamily, p.fontSize = conf.noteFontSize, p.fontWeight = conf.noteFontWeight, p.anchor = conf.noteAlign, p.textMargin = conf.noteMargin, p.valign = "center";
3120
- let m = hasKatex(p.text) ? await drawKatex(d, p) : drawText(d, p), h = Math.round(m.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, l) => e + l));
3121
- f.attr("height", h + 2 * conf.noteMargin), l.height += h + 2 * conf.noteMargin, bounds.bumpVerticalPos(h + 2 * conf.noteMargin), l.stopy = l.starty + h + 2 * conf.noteMargin, l.stopx = l.startx + u.width, bounds.insert(l.startx, l.starty, l.stopx, l.stopy), bounds.models.addNote(l);
3122
- }, "drawNote"), messageFont = /* @__PURE__ */ __name((e) => ({
3123
- fontFamily: e.messageFontFamily,
3124
- fontSize: e.messageFontSize,
3125
- fontWeight: e.messageFontWeight
3126
- }), "messageFont"), noteFont = /* @__PURE__ */ __name((e) => ({
3127
- fontFamily: e.noteFontFamily,
3128
- fontSize: e.noteFontSize,
3129
- fontWeight: e.noteFontWeight
3130
- }), "noteFont"), actorFont = /* @__PURE__ */ __name((e) => ({
3131
- fontFamily: e.actorFontFamily,
3132
- fontSize: e.actorFontSize,
3133
- fontWeight: e.actorFontWeight
3134
- }), "actorFont");
3135
- async function boundMessage(e, l) {
3136
- bounds.bumpVerticalPos(10);
3137
- let { startx: u, stopx: f, message: m } = l, h = common_default.splitBreaks(m).length, g = hasKatex(m), _ = g ? await calculateMathMLDimensions(m, getConfig2()) : utils_default.calculateTextDimensions(m, messageFont(conf));
3138
- if (!g) {
3139
- let e = _.height / h;
3140
- l.height += e, bounds.bumpVerticalPos(e);
3141
- }
3142
- let y, b = _.height - 10, S = _.width;
3143
- if (u === f) {
3144
- y = bounds.getVerticalPos() + b, conf.rightAngles || (b += conf.boxMargin, y = bounds.getVerticalPos() + b), b += 30;
3145
- let e = common_default.getMax(S / 2, conf.width / 2);
3146
- bounds.insert(u - e, bounds.getVerticalPos() - 10 + b, f + e, bounds.getVerticalPos() + 30 + b);
3147
- } else b += conf.boxMargin, y = bounds.getVerticalPos() + b, bounds.insert(u, y - 10, f, y);
3148
- return bounds.bumpVerticalPos(b), l.height += b, l.stopy = l.starty + l.height, bounds.insert(l.fromBounds, l.starty, l.toBounds, l.stopy), y;
3149
- }
3150
- __name(boundMessage, "boundMessage");
3151
- var drawMessage = /* @__PURE__ */ __name(async function(e, l, u, d) {
3152
- let { startx: f, stopx: m, starty: h, message: g, type: _, sequenceIndex: v, sequenceVisible: y } = l, S = utils_default.calculateTextDimensions(g, messageFont(conf)), C = getTextObj();
3153
- C.x = f, C.y = h + 10, C.width = m - f, C.class = "messageText", C.dy = "1em", C.text = g, C.fontFamily = conf.messageFontFamily, C.fontSize = conf.messageFontSize, C.fontWeight = conf.messageFontWeight, C.anchor = conf.messageAlign, C.valign = "center", C.textMargin = conf.wrapPadding, C.tspan = !1, hasKatex(C.text) ? await drawKatex(e, C, {
3154
- startx: f,
3155
- stopx: m,
3156
- starty: u
3157
- }) : drawText(e, C);
3158
- let w = S.width, T;
3159
- f === m ? T = conf.rightAngles ? e.append("path").attr("d", `M ${f},${u} H ${f + common_default.getMax(conf.width / 2, w / 2)} V ${u + 25} H ${f}`) : e.append("path").attr("d", "M " + f + "," + u + " C " + (f + 60) + "," + (u - 10) + " " + (f + 60) + "," + (u + 30) + " " + f + "," + (u + 20)) : (T = e.append("line"), T.attr("x1", f), T.attr("y1", u), T.attr("x2", m), T.attr("y2", u)), _ === d.db.LINETYPE.DOTTED || _ === d.db.LINETYPE.DOTTED_CROSS || _ === d.db.LINETYPE.DOTTED_POINT || _ === d.db.LINETYPE.DOTTED_OPEN || _ === d.db.LINETYPE.BIDIRECTIONAL_DOTTED ? (T.style("stroke-dasharray", "3, 3"), T.attr("class", "messageLine1")) : T.attr("class", "messageLine0");
3160
- let E = "";
3161
- conf.arrowMarkerAbsolute && (E = getUrl(!0)), T.attr("stroke-width", 2), T.attr("stroke", "none"), T.style("fill", "none"), (_ === d.db.LINETYPE.SOLID || _ === d.db.LINETYPE.DOTTED) && T.attr("marker-end", "url(" + E + "#arrowhead)"), (_ === d.db.LINETYPE.BIDIRECTIONAL_SOLID || _ === d.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (T.attr("marker-start", "url(" + E + "#arrowhead)"), T.attr("marker-end", "url(" + E + "#arrowhead)")), (_ === d.db.LINETYPE.SOLID_POINT || _ === d.db.LINETYPE.DOTTED_POINT) && T.attr("marker-end", "url(" + E + "#filled-head)"), (_ === d.db.LINETYPE.SOLID_CROSS || _ === d.db.LINETYPE.DOTTED_CROSS) && T.attr("marker-end", "url(" + E + "#crosshead)"), (y || conf.showSequenceNumbers) && ((_ === d.db.LINETYPE.BIDIRECTIONAL_SOLID || _ === d.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (f < m ? T.attr("x1", f + 12) : T.attr("x1", f + 6)), e.append("line").attr("x1", f).attr("y1", u).attr("x2", f).attr("y2", u).attr("stroke-width", 0).attr("marker-start", "url(" + E + "#sequencenumber)"), e.append("text").attr("x", f).attr("y", u + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(v));
3162
- }, "drawMessage"), addActorRenderingData = /* @__PURE__ */ __name(function(e, l, u, d, f, m, h) {
3163
- let g = 0, _ = 0, v, y = 0;
3164
- for (let e of d) {
3165
- let d = l.get(e), m = d.box;
3166
- v && v != m && (h || bounds.models.addBox(v), _ += conf.boxMargin + v.margin), m && m != v && (h || (m.x = g + _, m.y = f), _ += m.margin), d.width = d.width || conf.width, d.height = common_default.getMax(d.height || conf.height, conf.height), d.margin = d.margin || conf.actorMargin, y = common_default.getMax(y, d.height), u.get(d.name) && (_ += d.width / 2), d.x = g + _, d.starty = bounds.getVerticalPos(), bounds.insert(d.x, f, d.x + d.width, d.height), g += d.width + _, d.box && (d.box.width = g + m.margin - d.box.x), _ = d.margin, v = d.box, bounds.models.addActor(d);
3167
- }
3168
- v && !h && bounds.models.addBox(v), bounds.bumpVerticalPos(y);
3169
- }, "addActorRenderingData"), drawActors = /* @__PURE__ */ __name(async function(e, l, u, d) {
3170
- if (d) {
3171
- let d = 0;
3172
- bounds.bumpVerticalPos(conf.boxMargin * 2);
3173
- for (let f of u) {
3174
- let u = l.get(f);
3175
- u.stopy ||= bounds.getVerticalPos();
3176
- let m = await svgDraw_default.drawActor(e, u, conf, !0);
3177
- d = common_default.getMax(d, m);
3178
- }
3179
- bounds.bumpVerticalPos(d + conf.boxMargin);
3180
- } else for (let d of u) {
3181
- let u = l.get(d);
3182
- await svgDraw_default.drawActor(e, u, conf, !1);
3183
- }
3184
- }, "drawActors"), drawActorsPopup = /* @__PURE__ */ __name(function(e, l, u, d) {
3185
- let f = 0, p = 0;
3186
- for (let m of u) {
3187
- let u = l.get(m), h = getRequiredPopupWidth(u), g = svgDraw_default.drawPopup(e, u, h, conf, conf.forceMenus, d);
3188
- g.height > f && (f = g.height), g.width + u.x > p && (p = g.width + u.x);
3189
- }
3190
- return {
3191
- maxHeight: f,
3192
- maxWidth: p
3193
- };
3194
- }, "drawActorsPopup"), setConf = /* @__PURE__ */ __name(function(e) {
3195
- assignWithDepth_default(conf, e), e.fontFamily && (conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = e.fontFamily), e.fontSize && (conf.actorFontSize = conf.noteFontSize = conf.messageFontSize = e.fontSize), e.fontWeight && (conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = e.fontWeight);
3196
- }, "setConf"), actorActivations = /* @__PURE__ */ __name(function(e) {
3197
- return bounds.activations.filter(function(l) {
3198
- return l.actor === e;
3199
- });
3200
- }, "actorActivations"), activationBounds = /* @__PURE__ */ __name(function(e, l) {
3201
- let u = l.get(e), d = actorActivations(e);
3202
- return [d.reduce(function(e, l) {
3203
- return common_default.getMin(e, l.startx);
3204
- }, u.x + u.width / 2 - 1), d.reduce(function(e, l) {
3205
- return common_default.getMax(e, l.stopx);
3206
- }, u.x + u.width / 2 + 1)];
3207
- }, "activationBounds");
3208
- function adjustLoopHeightForWrap(e, u, d, f, m) {
3209
- bounds.bumpVerticalPos(d);
3210
- let h = f;
3211
- if (u.id && u.message && e[u.id]) {
3212
- let d = e[u.id].width, m = messageFont(conf);
3213
- u.message = utils_default.wrapLabel(`[${u.message}]`, d - 2 * conf.wrapPadding, m), u.width = d, u.wrap = !0;
3214
- let g = utils_default.calculateTextDimensions(u.message, m), _ = common_default.getMax(g.height, conf.labelBoxHeight);
3215
- h = f + _, log.debug(`${_} - ${u.message}`);
3216
- }
3217
- m(u), bounds.bumpVerticalPos(h);
3218
- }
3219
- __name(adjustLoopHeightForWrap, "adjustLoopHeightForWrap");
3220
- function adjustCreatedDestroyedData(l, u, d, f, p, m, h) {
3221
- function g(e, d) {
3222
- e.x < p.get(l.from).x ? (bounds.insert(u.stopx - d, u.starty, u.startx, u.stopy + e.height / 2 + conf.noteMargin), u.stopx += d) : (bounds.insert(u.startx, u.starty, u.stopx + d, u.stopy + e.height / 2 + conf.noteMargin), u.stopx -= d);
3223
- }
3224
- __name(g, "receiverAdjustment");
3225
- function _(e, d) {
3226
- e.x < p.get(l.to).x ? (bounds.insert(u.startx - d, u.starty, u.stopx, u.stopy + e.height / 2 + conf.noteMargin), u.startx += d) : (bounds.insert(u.stopx, u.starty, u.startx + d, u.stopy + e.height / 2 + conf.noteMargin), u.startx -= d);
3227
- }
3228
- __name(_, "senderAdjustment");
3229
- let v = [
3230
- PARTICIPANT_TYPE.ACTOR,
3231
- PARTICIPANT_TYPE.CONTROL,
3232
- PARTICIPANT_TYPE.ENTITY,
3233
- PARTICIPANT_TYPE.DATABASE
3234
- ];
3235
- if (m.get(l.to) == f) {
3236
- let e = p.get(l.to);
3237
- g(e, v.includes(e.type) ? ACTOR_TYPE_WIDTH / 2 + 3 : e.width / 2 + 3), e.starty = d - e.height / 2, bounds.bumpVerticalPos(e.height / 2);
3238
- } else if (h.get(l.from) == f) {
3239
- let e = p.get(l.from);
3240
- conf.mirrorActors && _(e, v.includes(e.type) ? ACTOR_TYPE_WIDTH / 2 : e.width / 2), e.stopy = d - e.height / 2, bounds.bumpVerticalPos(e.height / 2);
3241
- } else if (h.get(l.to) == f) {
3242
- let e = p.get(l.to);
3243
- conf.mirrorActors && g(e, v.includes(e.type) ? ACTOR_TYPE_WIDTH / 2 + 3 : e.width / 2 + 3), e.stopy = d - e.height / 2, bounds.bumpVerticalPos(e.height / 2);
3244
- }
3245
- }
3246
- __name(adjustCreatedDestroyedData, "adjustCreatedDestroyedData");
3247
- var draw = /* @__PURE__ */ __name(async function(u, d, f, p) {
3248
- let { securityLevel: h, sequence: g } = getConfig2();
3249
- conf = g;
3250
- let _;
3251
- h === "sandbox" && (_ = select_default("#i" + d));
3252
- let y = select_default(h === "sandbox" ? _.nodes()[0].contentDocument.body : "body"), b = h === "sandbox" ? _.nodes()[0].contentDocument : document;
3253
- bounds.init(), log.debug(p.db);
3254
- let x = h === "sandbox" ? y.select(`[id="${d}"]`) : select_default(`[id="${d}"]`), S = p.db.getActors(), C = p.db.getCreatedActors(), w = p.db.getDestroyedActors(), T = p.db.getBoxes(), E = p.db.getActorKeys(), D = p.db.getMessages(), k = p.db.getDiagramTitle(), A = p.db.hasAtLeastOneBox(), j = p.db.hasAtLeastOneBoxWithTitle(), M = await getMaxMessageWidthPerActor(S, D, p);
3255
- if (conf.height = await calculateActorMargins(S, M, T), svgDraw_default.insertComputerIcon(x), svgDraw_default.insertDatabaseIcon(x), svgDraw_default.insertClockIcon(x), A && (bounds.bumpVerticalPos(conf.boxMargin), j && bounds.bumpVerticalPos(T[0].textMaxHeight)), conf.hideUnusedParticipants === !0) {
3256
- let e = /* @__PURE__ */ new Set();
3257
- D.forEach((l) => {
3258
- e.add(l.from), e.add(l.to);
3259
- }), E = E.filter((l) => e.has(l));
3260
- }
3261
- addActorRenderingData(x, S, C, E, 0, D, !1);
3262
- let N = await calculateLoopBounds(D, S, M, p);
3263
- svgDraw_default.insertArrowHead(x), svgDraw_default.insertArrowCrossHead(x), svgDraw_default.insertArrowFilledHead(x), svgDraw_default.insertSequenceNumber(x);
3264
- function P(e, l) {
3265
- let u = bounds.endActivation(e);
3266
- u.starty + 18 > l && (u.starty = l - 6, l += 12), svgDraw_default.drawActivation(x, u, l, conf, actorActivations(e.from).length), bounds.insert(u.startx, l - 10, u.stopx, l);
3267
- }
3268
- __name(P, "activeEnd");
3269
- let F = 1, I = 1, L = [], R = [], z = 0;
3270
- for (let e of D) {
3271
- let u, d, f;
3272
- switch (e.type) {
3273
- case p.db.LINETYPE.NOTE:
3274
- bounds.resetVerticalPos(), d = e.noteModel, await drawNote(x, d);
3275
- break;
3276
- case p.db.LINETYPE.ACTIVE_START:
3277
- bounds.newActivation(e, x, S);
3278
- break;
3279
- case p.db.LINETYPE.ACTIVE_END:
3280
- P(e, bounds.getVerticalPos());
3281
- break;
3282
- case p.db.LINETYPE.LOOP_START:
3283
- adjustLoopHeightForWrap(N, e, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e) => bounds.newLoop(e));
3284
- break;
3285
- case p.db.LINETYPE.LOOP_END:
3286
- u = bounds.endLoop(), await svgDraw_default.drawLoop(x, u, "loop", conf), bounds.bumpVerticalPos(u.stopy - bounds.getVerticalPos()), bounds.models.addLoop(u);
3287
- break;
3288
- case p.db.LINETYPE.RECT_START:
3289
- adjustLoopHeightForWrap(N, e, conf.boxMargin, conf.boxMargin, (e) => bounds.newLoop(void 0, e.message));
3290
- break;
3291
- case p.db.LINETYPE.RECT_END:
3292
- u = bounds.endLoop(), R.push(u), bounds.models.addLoop(u), bounds.bumpVerticalPos(u.stopy - bounds.getVerticalPos());
3293
- break;
3294
- case p.db.LINETYPE.OPT_START:
3295
- adjustLoopHeightForWrap(N, e, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e) => bounds.newLoop(e));
3296
- break;
3297
- case p.db.LINETYPE.OPT_END:
3298
- u = bounds.endLoop(), await svgDraw_default.drawLoop(x, u, "opt", conf), bounds.bumpVerticalPos(u.stopy - bounds.getVerticalPos()), bounds.models.addLoop(u);
3299
- break;
3300
- case p.db.LINETYPE.ALT_START:
3301
- adjustLoopHeightForWrap(N, e, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e) => bounds.newLoop(e));
3302
- break;
3303
- case p.db.LINETYPE.ALT_ELSE:
3304
- adjustLoopHeightForWrap(N, e, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, (e) => bounds.addSectionToLoop(e));
3305
- break;
3306
- case p.db.LINETYPE.ALT_END:
3307
- u = bounds.endLoop(), await svgDraw_default.drawLoop(x, u, "alt", conf), bounds.bumpVerticalPos(u.stopy - bounds.getVerticalPos()), bounds.models.addLoop(u);
3308
- break;
3309
- case p.db.LINETYPE.PAR_START:
3310
- case p.db.LINETYPE.PAR_OVER_START:
3311
- adjustLoopHeightForWrap(N, e, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e) => bounds.newLoop(e)), bounds.saveVerticalPos();
3312
- break;
3313
- case p.db.LINETYPE.PAR_AND:
3314
- adjustLoopHeightForWrap(N, e, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, (e) => bounds.addSectionToLoop(e));
3315
- break;
3316
- case p.db.LINETYPE.PAR_END:
3317
- u = bounds.endLoop(), await svgDraw_default.drawLoop(x, u, "par", conf), bounds.bumpVerticalPos(u.stopy - bounds.getVerticalPos()), bounds.models.addLoop(u);
3318
- break;
3319
- case p.db.LINETYPE.AUTONUMBER:
3320
- F = e.message.start || F, I = e.message.step || I, e.message.visible ? p.db.enableSequenceNumbers() : p.db.disableSequenceNumbers();
3321
- break;
3322
- case p.db.LINETYPE.CRITICAL_START:
3323
- adjustLoopHeightForWrap(N, e, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e) => bounds.newLoop(e));
3324
- break;
3325
- case p.db.LINETYPE.CRITICAL_OPTION:
3326
- adjustLoopHeightForWrap(N, e, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, (e) => bounds.addSectionToLoop(e));
3327
- break;
3328
- case p.db.LINETYPE.CRITICAL_END:
3329
- u = bounds.endLoop(), await svgDraw_default.drawLoop(x, u, "critical", conf), bounds.bumpVerticalPos(u.stopy - bounds.getVerticalPos()), bounds.models.addLoop(u);
3330
- break;
3331
- case p.db.LINETYPE.BREAK_START:
3332
- adjustLoopHeightForWrap(N, e, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e) => bounds.newLoop(e));
3333
- break;
3334
- case p.db.LINETYPE.BREAK_END:
3335
- u = bounds.endLoop(), await svgDraw_default.drawLoop(x, u, "break", conf), bounds.bumpVerticalPos(u.stopy - bounds.getVerticalPos()), bounds.models.addLoop(u);
3336
- break;
3337
- default: try {
3338
- f = e.msgModel, f.starty = bounds.getVerticalPos(), f.sequenceIndex = F, f.sequenceVisible = p.db.showSequenceNumbers();
3339
- let l = await boundMessage(x, f);
3340
- adjustCreatedDestroyedData(e, f, l, z, S, C, w), L.push({
3341
- messageModel: f,
3342
- lineStartY: l
3343
- }), bounds.models.addMessage(f);
3344
- } catch (e) {
3345
- log.error("error while drawing message", e);
3346
- }
3347
- }
3348
- [
3349
- p.db.LINETYPE.SOLID_OPEN,
3350
- p.db.LINETYPE.DOTTED_OPEN,
3351
- p.db.LINETYPE.SOLID,
3352
- p.db.LINETYPE.DOTTED,
3353
- p.db.LINETYPE.SOLID_CROSS,
3354
- p.db.LINETYPE.DOTTED_CROSS,
3355
- p.db.LINETYPE.SOLID_POINT,
3356
- p.db.LINETYPE.DOTTED_POINT,
3357
- p.db.LINETYPE.BIDIRECTIONAL_SOLID,
3358
- p.db.LINETYPE.BIDIRECTIONAL_DOTTED
3359
- ].includes(e.type) && (F += I), z++;
3360
- }
3361
- log.debug("createdActors", C), log.debug("destroyedActors", w), await drawActors(x, S, E, !1);
3362
- for (let e of L) await drawMessage(x, e.messageModel, e.lineStartY, p);
3363
- conf.mirrorActors && await drawActors(x, S, E, !0), R.forEach((e) => svgDraw_default.drawBackgroundRect(x, e)), fixLifeLineHeights(x, S, E, conf);
3364
- for (let e of bounds.models.boxes) {
3365
- e.height = bounds.getVerticalPos() - e.y, bounds.insert(e.x, e.y, e.x + e.width, e.height);
3366
- let l = conf.boxMargin * 2;
3367
- e.startx = e.x - l, e.starty = e.y - l * .25, e.stopx = e.startx + e.width + 2 * l, e.stopy = e.starty + e.height + l * .75, e.stroke = "rgb(0,0,0, 0.5)", svgDraw_default.drawBox(x, e, conf);
3368
- }
3369
- A && bounds.bumpVerticalPos(conf.boxMargin);
3370
- let B = drawActorsPopup(x, S, E, b), { bounds: V } = bounds.getBounds();
3371
- V.startx === void 0 && (V.startx = 0), V.starty === void 0 && (V.starty = 0), V.stopx === void 0 && (V.stopx = 0), V.stopy === void 0 && (V.stopy = 0);
3372
- let H = V.stopy - V.starty;
3373
- H < B.maxHeight && (H = B.maxHeight);
3374
- let U = H + 2 * conf.diagramMarginY;
3375
- conf.mirrorActors && (U = U - conf.boxMargin + conf.bottomMarginAdj);
3376
- let W = V.stopx - V.startx;
3377
- W < B.maxWidth && (W = B.maxWidth);
3378
- let G = W + 2 * conf.diagramMarginX;
3379
- k && x.append("text").text(k).attr("x", (V.stopx - V.startx) / 2 - 2 * conf.diagramMarginX).attr("y", -25), configureSvgSize(x, U, G, conf.useMaxWidth);
3380
- let K = k ? 40 : 0;
3381
- x.attr("viewBox", V.startx - conf.diagramMarginX + " -" + (conf.diagramMarginY + K) + " " + G + " " + (U + K)), log.debug("models:", bounds.models);
3382
- }, "draw");
3383
- async function getMaxMessageWidthPerActor(e, u, f) {
3384
- let m = {};
3385
- for (let l of u) if (e.get(l.to) && e.get(l.from)) {
3386
- let u = e.get(l.to);
3387
- if (l.placement === f.db.PLACEMENT.LEFTOF && !u.prevActor || l.placement === f.db.PLACEMENT.RIGHTOF && !u.nextActor) continue;
3388
- let h = l.placement !== void 0, g = !h, _ = h ? noteFont(conf) : messageFont(conf), y = l.wrap ? utils_default.wrapLabel(l.message, conf.width - 2 * conf.wrapPadding, _) : l.message, b = (hasKatex(y) ? await calculateMathMLDimensions(l.message, getConfig2()) : utils_default.calculateTextDimensions(y, _)).width + 2 * conf.wrapPadding;
3389
- g && l.from === u.nextActor ? m[l.to] = common_default.getMax(m[l.to] || 0, b) : g && l.from === u.prevActor ? m[l.from] = common_default.getMax(m[l.from] || 0, b) : g && l.from === l.to ? (m[l.from] = common_default.getMax(m[l.from] || 0, b / 2), m[l.to] = common_default.getMax(m[l.to] || 0, b / 2)) : l.placement === f.db.PLACEMENT.RIGHTOF ? m[l.from] = common_default.getMax(m[l.from] || 0, b) : l.placement === f.db.PLACEMENT.LEFTOF ? m[u.prevActor] = common_default.getMax(m[u.prevActor] || 0, b) : l.placement === f.db.PLACEMENT.OVER && (u.prevActor && (m[u.prevActor] = common_default.getMax(m[u.prevActor] || 0, b / 2)), u.nextActor && (m[l.from] = common_default.getMax(m[l.from] || 0, b / 2)));
3390
- }
3391
- return log.debug("maxMessageWidthPerActor:", m), m;
3392
- }
3393
- __name(getMaxMessageWidthPerActor, "getMaxMessageWidthPerActor");
3394
- var getRequiredPopupWidth = /* @__PURE__ */ __name(function(e) {
3395
- let l = 0, u = actorFont(conf);
3396
- for (let d in e.links) {
3397
- let e = utils_default.calculateTextDimensions(d, u).width + 2 * conf.wrapPadding + 2 * conf.boxMargin;
3398
- l < e && (l = e);
3399
- }
3400
- return l;
3401
- }, "getRequiredPopupWidth");
3402
- async function calculateActorMargins(e, l, u) {
3403
- let f = 0;
3404
- for (let l of e.keys()) {
3405
- let u = e.get(l);
3406
- u.wrap && (u.description = utils_default.wrapLabel(u.description, conf.width - 2 * conf.wrapPadding, actorFont(conf)));
3407
- let m = hasKatex(u.description) ? await calculateMathMLDimensions(u.description, getConfig2()) : utils_default.calculateTextDimensions(u.description, actorFont(conf));
3408
- u.width = u.wrap ? conf.width : common_default.getMax(conf.width, m.width + 2 * conf.wrapPadding), u.height = u.wrap ? common_default.getMax(m.height, conf.height) : conf.height, f = common_default.getMax(f, u.height);
3409
- }
3410
- for (let u in l) {
3411
- let d = e.get(u);
3412
- if (!d) continue;
3413
- let f = e.get(d.nextActor);
3414
- if (!f) {
3415
- let e = l[u] + conf.actorMargin - d.width / 2;
3416
- d.margin = common_default.getMax(e, conf.actorMargin);
3417
- continue;
3418
- }
3419
- let m = l[u] + conf.actorMargin - d.width / 2 - f.width / 2;
3420
- d.margin = common_default.getMax(m, conf.actorMargin);
3421
- }
3422
- let m = 0;
3423
- return u.forEach((l) => {
3424
- let u = messageFont(conf), d = l.actorKeys.reduce((l, u) => l += e.get(u).width + (e.get(u).margin || 0), 0), f = conf.boxMargin * 8;
3425
- d += f, d -= 2 * conf.boxTextMargin, l.wrap && (l.name = utils_default.wrapLabel(l.name, d - 2 * conf.wrapPadding, u));
3426
- let h = utils_default.calculateTextDimensions(l.name, u);
3427
- m = common_default.getMax(h.height, m);
3428
- let g = common_default.getMax(d, h.width + 2 * conf.wrapPadding);
3429
- if (l.margin = conf.boxTextMargin, d < g) {
3430
- let e = (g - d) / 2;
3431
- l.margin += e;
3432
- }
3433
- }), u.forEach((e) => e.textMaxHeight = m), common_default.getMax(f, conf.height);
3434
- }
3435
- __name(calculateActorMargins, "calculateActorMargins");
3436
- var buildNoteModel = /* @__PURE__ */ __name(async function(e, u, f) {
3437
- let m = u.get(e.from), h = u.get(e.to), g = m.x, _ = h.x, y = e.wrap && e.message, b = hasKatex(e.message) ? await calculateMathMLDimensions(e.message, getConfig2()) : utils_default.calculateTextDimensions(y ? utils_default.wrapLabel(e.message, conf.width, noteFont(conf)) : e.message, noteFont(conf)), S = {
3438
- width: y ? conf.width : common_default.getMax(conf.width, b.width + 2 * conf.noteMargin),
3439
- height: 0,
3440
- startx: m.x,
3441
- stopx: 0,
3442
- starty: 0,
3443
- stopy: 0,
3444
- message: e.message
3445
- };
3446
- return e.placement === f.db.PLACEMENT.RIGHTOF ? (S.width = y ? common_default.getMax(conf.width, b.width) : common_default.getMax(m.width / 2 + h.width / 2, b.width + 2 * conf.noteMargin), S.startx = g + (m.width + conf.actorMargin) / 2) : e.placement === f.db.PLACEMENT.LEFTOF ? (S.width = y ? common_default.getMax(conf.width, b.width + 2 * conf.noteMargin) : common_default.getMax(m.width / 2 + h.width / 2, b.width + 2 * conf.noteMargin), S.startx = g - S.width + (m.width - conf.actorMargin) / 2) : e.to === e.from ? (b = utils_default.calculateTextDimensions(y ? utils_default.wrapLabel(e.message, common_default.getMax(conf.width, m.width), noteFont(conf)) : e.message, noteFont(conf)), S.width = y ? common_default.getMax(conf.width, m.width) : common_default.getMax(m.width, conf.width, b.width + 2 * conf.noteMargin), S.startx = g + (m.width - S.width) / 2) : (S.width = Math.abs(g + m.width / 2 - (_ + h.width / 2)) + conf.actorMargin, S.startx = g < _ ? g + m.width / 2 - conf.actorMargin / 2 : _ + h.width / 2 - conf.actorMargin / 2), y && (S.message = utils_default.wrapLabel(e.message, S.width - 2 * conf.wrapPadding, noteFont(conf))), log.debug(`NM:[${S.startx},${S.stopx},${S.starty},${S.stopy}:${S.width},${S.height}=${e.message}]`), S;
3447
- }, "buildNoteModel"), buildMessageModel = /* @__PURE__ */ __name(function(l, u, d) {
3448
- if (![
3449
- d.db.LINETYPE.SOLID_OPEN,
3450
- d.db.LINETYPE.DOTTED_OPEN,
3451
- d.db.LINETYPE.SOLID,
3452
- d.db.LINETYPE.DOTTED,
3453
- d.db.LINETYPE.SOLID_CROSS,
3454
- d.db.LINETYPE.DOTTED_CROSS,
3455
- d.db.LINETYPE.SOLID_POINT,
3456
- d.db.LINETYPE.DOTTED_POINT,
3457
- d.db.LINETYPE.BIDIRECTIONAL_SOLID,
3458
- d.db.LINETYPE.BIDIRECTIONAL_DOTTED
3459
- ].includes(l.type)) return {};
3460
- let [f, m] = activationBounds(l.from, u), [h, g] = activationBounds(l.to, u), _ = f <= h, v = _ ? m : f, y = _ ? h : g, b = Math.abs(h - g) > 2, x = /* @__PURE__ */ __name((e) => _ ? -e : e, "adjustValue");
3461
- l.from === l.to ? y = v : (l.activate && !b && (y += x(conf.activationWidth / 2 - 1)), [d.db.LINETYPE.SOLID_OPEN, d.db.LINETYPE.DOTTED_OPEN].includes(l.type) || (y += x(3)), [d.db.LINETYPE.BIDIRECTIONAL_SOLID, d.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(l.type) && (v -= x(3)));
3462
- let S = [
3463
- f,
3464
- m,
3465
- h,
3466
- g
3467
- ], C = Math.abs(v - y);
3468
- l.wrap && l.message && (l.message = utils_default.wrapLabel(l.message, common_default.getMax(C + 2 * conf.wrapPadding, conf.width), messageFont(conf)));
3469
- let w = utils_default.calculateTextDimensions(l.message, messageFont(conf));
3470
- return {
3471
- width: common_default.getMax(l.wrap ? 0 : w.width + 2 * conf.wrapPadding, C + 2 * conf.wrapPadding, conf.width),
3472
- height: 0,
3473
- startx: v,
3474
- stopx: y,
3475
- starty: 0,
3476
- stopy: 0,
3477
- message: l.message,
3478
- type: l.type,
3479
- wrap: l.wrap,
3480
- fromBounds: Math.min.apply(null, S),
3481
- toBounds: Math.max.apply(null, S)
3482
- };
3483
- }, "buildMessageModel"), calculateLoopBounds = /* @__PURE__ */ __name(async function(e, u, d, f) {
3484
- let m = {}, h = [], g, _, v;
3485
- for (let l of e) {
3486
- switch (l.type) {
3487
- case f.db.LINETYPE.LOOP_START:
3488
- case f.db.LINETYPE.ALT_START:
3489
- case f.db.LINETYPE.OPT_START:
3490
- case f.db.LINETYPE.PAR_START:
3491
- case f.db.LINETYPE.PAR_OVER_START:
3492
- case f.db.LINETYPE.CRITICAL_START:
3493
- case f.db.LINETYPE.BREAK_START:
3494
- h.push({
3495
- id: l.id,
3496
- msg: l.message,
3497
- from: 2 ** 53 - 1,
3498
- to: -(2 ** 53 - 1),
3499
- width: 0
3500
- });
3501
- break;
3502
- case f.db.LINETYPE.ALT_ELSE:
3503
- case f.db.LINETYPE.PAR_AND:
3504
- case f.db.LINETYPE.CRITICAL_OPTION:
3505
- l.message && (g = h.pop(), m[g.id] = g, m[l.id] = g, h.push(g));
3506
- break;
3507
- case f.db.LINETYPE.LOOP_END:
3508
- case f.db.LINETYPE.ALT_END:
3509
- case f.db.LINETYPE.OPT_END:
3510
- case f.db.LINETYPE.PAR_END:
3511
- case f.db.LINETYPE.CRITICAL_END:
3512
- case f.db.LINETYPE.BREAK_END:
3513
- g = h.pop(), m[g.id] = g;
3514
- break;
3515
- case f.db.LINETYPE.ACTIVE_START:
3516
- {
3517
- let e = u.get(l.from ? l.from : l.to.actor), d = actorActivations(l.from ? l.from : l.to.actor).length, f = e.x + e.width / 2 + (d - 1) * conf.activationWidth / 2, p = {
3518
- startx: f,
3519
- stopx: f + conf.activationWidth,
3520
- actor: l.from,
3521
- enabled: !0
3522
- };
3523
- bounds.activations.push(p);
3524
- }
3525
- break;
3526
- case f.db.LINETYPE.ACTIVE_END:
3527
- {
3528
- let e = bounds.activations.map((e) => e.actor).lastIndexOf(l.from);
3529
- bounds.activations.splice(e, 1).splice(0, 1);
3530
- }
3531
- break;
3532
- }
3533
- l.placement === void 0 ? (v = buildMessageModel(l, u, f), l.msgModel = v, v.startx && v.stopx && h.length > 0 && h.forEach((e) => {
3534
- if (g = e, v.startx === v.stopx) {
3535
- let e = u.get(l.from), d = u.get(l.to);
3536
- g.from = common_default.getMin(e.x - v.width / 2, e.x - e.width / 2, g.from), g.to = common_default.getMax(d.x + v.width / 2, d.x + e.width / 2, g.to), g.width = common_default.getMax(g.width, Math.abs(g.to - g.from)) - conf.labelBoxWidth;
3537
- } else g.from = common_default.getMin(v.startx, g.from), g.to = common_default.getMax(v.stopx, g.to), g.width = common_default.getMax(g.width, v.width) - conf.labelBoxWidth;
3538
- })) : (_ = await buildNoteModel(l, u, f), l.noteModel = _, h.forEach((e) => {
3539
- g = e, g.from = common_default.getMin(g.from, _.startx), g.to = common_default.getMax(g.to, _.startx + _.width), g.width = common_default.getMax(g.width, Math.abs(g.from - g.to)) - conf.labelBoxWidth;
3540
- }));
3541
- }
3542
- return bounds.activations = [], log.debug("Loop type widths:", m), m;
3543
- }, "calculateLoopBounds"), diagram = {
3544
- parser: sequenceDiagram_default,
3545
- get db() {
3546
- return new SequenceDB();
3547
- },
3548
- renderer: {
3549
- bounds,
3550
- drawActors,
3551
- drawActorsPopup,
3552
- setConf,
3553
- draw
3554
- },
3555
- styles: styles_default,
3556
- init: /* @__PURE__ */ __name((e) => {
3557
- e.sequence ||= {}, e.wrap && (e.sequence.wrap = e.wrap, setConfig2({ sequence: { wrap: e.wrap } }));
3558
- }, "init")
3559
- };
3560
- export { diagram };