@loopstack/loopstack-studio 0.20.3 → 0.21.0-rc.0

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 (991) hide show
  1. package/dist/_virtual/rolldown_runtime.js +20 -0
  2. package/dist/components/data-table/ConfirmDialog.js +30 -0
  3. package/dist/components/data-table/DataList.js +216 -0
  4. package/dist/components/data-table/DataTable.js +264 -0
  5. package/dist/components/data-table/DataTableBatchAction.js +32 -0
  6. package/dist/components/data-table/DataTableFilters.js +83 -0
  7. package/dist/components/data-table/DataTablePagination.js +108 -0
  8. package/dist/components/data-table/DataTableToolbar.js +70 -0
  9. package/dist/components/dynamic-form/ArrayController.js +100 -0
  10. package/dist/components/dynamic-form/CodeContent.js +174 -0
  11. package/dist/components/dynamic-form/Form.js +35 -0
  12. package/dist/components/dynamic-form/FormBody.js +26 -0
  13. package/dist/components/dynamic-form/FormElement.js +42 -0
  14. package/dist/components/dynamic-form/FormElementHeader.js +20 -0
  15. package/dist/components/dynamic-form/InputController.js +38 -0
  16. package/dist/components/dynamic-form/MarkdownContent.js +76 -0
  17. package/dist/components/dynamic-form/MermaidDiagram.js +41 -0
  18. package/dist/components/dynamic-form/ObjectController.js +32 -0
  19. package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +47 -0
  20. package/dist/components/dynamic-form/fields/CheckboxField.js +53 -0
  21. package/dist/components/dynamic-form/fields/CodeViewField.js +63 -0
  22. package/dist/components/dynamic-form/fields/InputField.js +105 -0
  23. package/dist/components/dynamic-form/fields/RadioField.js +67 -0
  24. package/dist/components/dynamic-form/fields/SelectField.js +60 -0
  25. package/dist/components/dynamic-form/fields/SliderField.js +112 -0
  26. package/dist/components/dynamic-form/fields/SwitchField.js +66 -0
  27. package/dist/components/dynamic-form/fields/TextareaField.js +77 -0
  28. package/dist/components/dynamic-form/fields/utils/text-validation-utils.js +33 -0
  29. package/dist/components/dynamic-form/hooks/useArrayDefaultValue.js +42 -0
  30. package/dist/components/dynamic-form/hooks/useFieldConfig.js +21 -0
  31. package/dist/components/dynamic-form/hooks/useMergeParentKey.js +5 -0
  32. package/dist/components/dynamic-form/hooks/useSortPropertyNames.js +5 -0
  33. package/dist/components/layout/MainLayout.js +24 -0
  34. package/dist/components/lists/CustomListView.js +87 -0
  35. package/dist/components/lists/ListView.js +118 -0
  36. package/dist/components/page/PageBreadcrumbs.js +41 -0
  37. package/dist/components/snackbars/ErrorSnackbar.js +30 -0
  38. package/dist/components/snackbars/Snackbar.js +44 -0
  39. package/dist/components/ui/alert-dialog.js +121 -0
  40. package/dist/components/ui/badge.js +28 -0
  41. package/dist/components/ui/breadcrumb.js +85 -0
  42. package/dist/components/ui/button.js +47 -0
  43. package/dist/components/ui/card.js +29 -0
  44. package/dist/components/ui/checkbox.js +26 -0
  45. package/dist/components/ui/collapsible.js +32 -0
  46. package/dist/components/ui/dialog.js +88 -0
  47. package/dist/components/ui/input.js +18 -0
  48. package/dist/components/ui/label.js +19 -0
  49. package/dist/components/ui/radio-group.js +38 -0
  50. package/dist/components/ui/select.js +125 -0
  51. package/dist/components/ui/sheet.js +97 -0
  52. package/dist/components/ui/slider.js +35 -0
  53. package/dist/components/ui/switch.js +24 -0
  54. package/dist/components/ui/table.js +81 -0
  55. package/dist/components/ui/textarea.js +17 -0
  56. package/dist/components/ui/tooltip.js +50 -0
  57. package/dist/features/health/LocalHealthCheck.js +95 -0
  58. package/dist/features/workspaces/Workspaces.js +162 -0
  59. package/dist/features/workspaces/components/CreateWorkspace.js +128 -0
  60. package/dist/features/workspaces/components/ExecutionTimeline.js +204 -0
  61. package/dist/features/workspaces/components/NewPipelineRunDialog.js +31 -0
  62. package/dist/features/workspaces/components/PipelineForm.js +152 -0
  63. package/dist/features/workspaces/components/pipeline-form/ArgumentsView.js +75 -0
  64. package/dist/features/workspaces/components/pipeline-form/HeaderSection.js +43 -0
  65. package/dist/features/workspaces/components/pipeline-form/SelectionView.js +105 -0
  66. package/dist/hooks/use-mobile.js +3 -3
  67. package/dist/hooks/useAuth.js +56 -0
  68. package/dist/hooks/useConfig.js +46 -0
  69. package/dist/hooks/useDebounce.js +27 -0
  70. package/dist/hooks/usePipelines.js +117 -0
  71. package/dist/hooks/useProcessor.js +24 -0
  72. package/dist/hooks/useWorkspaces.js +142 -0
  73. package/dist/index.d.ts +7 -0
  74. package/dist/index.js +4 -1
  75. package/dist/lib/utils.js +6 -0
  76. package/dist/loopstack-studio.css +2 -0
  77. package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +6 -0
  78. package/dist/node_modules/@braintree/sanitize-url/dist/index.js +48 -0
  79. package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +26 -0
  80. package/dist/node_modules/@chevrotain/gast/lib/src/model.js +154 -0
  81. package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +40 -0
  82. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +2 -0
  83. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +85 -0
  84. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +35 -0
  85. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +570 -0
  86. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +25 -0
  87. package/dist/node_modules/@chevrotain/utils/lib/src/print.js +9 -0
  88. package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +8 -0
  89. package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +10 -0
  90. package/dist/node_modules/@iconify/utils/lib/customisations/defaults.js +9 -0
  91. package/dist/node_modules/@iconify/utils/lib/icon/defaults.js +18 -0
  92. package/dist/node_modules/@iconify/utils/lib/icon/merge.js +8 -0
  93. package/dist/node_modules/@iconify/utils/lib/icon/name.js +35 -0
  94. package/dist/node_modules/@iconify/utils/lib/icon/transformations.js +7 -0
  95. package/dist/node_modules/@iconify/utils/lib/icon-set/get-icon.js +15 -0
  96. package/dist/node_modules/@iconify/utils/lib/icon-set/tree.js +14 -0
  97. package/dist/node_modules/@iconify/utils/lib/svg/build.js +54 -0
  98. package/dist/node_modules/@iconify/utils/lib/svg/defs.js +22 -0
  99. package/dist/node_modules/@iconify/utils/lib/svg/html.js +6 -0
  100. package/dist/node_modules/@iconify/utils/lib/svg/id.js +17 -0
  101. package/dist/node_modules/@iconify/utils/lib/svg/size.js +18 -0
  102. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7HQA4BMR.js +3 -0
  103. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4F5CHEZ2.js +23 -0
  104. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-B2363JML.js +60 -0
  105. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FRFDVMJY.js +23 -0
  106. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PL6DKKU2.js +28 -0
  107. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-SJTYNZTY.js +23 -0
  108. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TCCFYFTB.js +787 -0
  109. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TQ3KTPDO.js +23 -0
  110. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UMXZTB3W.js +30 -0
  111. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-G5XIXVHT.js +3 -0
  112. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-VBDWY6EO.js +3 -0
  113. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-DYOGHKS2.js +3 -0
  114. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-VRWISCQL.js +3 -0
  115. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-ZZBFDIW7.js +3 -0
  116. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-GDKQZRPO.js +3 -0
  117. package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +55 -0
  118. package/dist/node_modules/ccount/index.js +8 -0
  119. package/dist/node_modules/chevrotain/lib/src/api.js +10 -0
  120. package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +10 -0
  121. package/dist/node_modules/chevrotain/lib/src/parse/constants.js +2 -0
  122. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +13 -0
  123. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +58 -0
  124. package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +75 -0
  125. package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +34 -0
  126. package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +299 -0
  127. package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +25 -0
  128. package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +29 -0
  129. package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +15 -0
  130. package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +269 -0
  131. package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +5 -0
  132. package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +43 -0
  133. package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +248 -0
  134. package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +32 -0
  135. package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +58 -0
  136. package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +122 -0
  137. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +16 -0
  138. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +48 -0
  139. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +172 -0
  140. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +39 -0
  141. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +109 -0
  142. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +22 -0
  143. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +313 -0
  144. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +275 -0
  145. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +144 -0
  146. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +102 -0
  147. package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +11 -0
  148. package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +465 -0
  149. package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +9 -0
  150. package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +275 -0
  151. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +152 -0
  152. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +15 -0
  153. package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +75 -0
  154. package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +42 -0
  155. package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +346 -0
  156. package/dist/node_modules/chevrotain-allstar/lib/atn.js +194 -0
  157. package/dist/node_modules/chevrotain-allstar/lib/dfa.js +32 -0
  158. package/dist/node_modules/chevrotain-allstar/lib/index.js +1 -0
  159. package/dist/node_modules/comma-separated-tokens/index.js +10 -0
  160. package/dist/node_modules/cose-base/cose-base.js +469 -0
  161. package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +18100 -0
  162. package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +172 -0
  163. package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.js +604 -0
  164. package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.js +1142 -0
  165. package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js +1635 -0
  166. package/dist/node_modules/d3/src/index.js +93 -0
  167. package/dist/node_modules/d3-array/src/ascending.js +4 -0
  168. package/dist/node_modules/d3-array/src/bisect.js +8 -0
  169. package/dist/node_modules/d3-array/src/bisector.js +39 -0
  170. package/dist/node_modules/d3-array/src/descending.js +4 -0
  171. package/dist/node_modules/d3-array/src/max.js +10 -0
  172. package/dist/node_modules/d3-array/src/min.js +10 -0
  173. package/dist/node_modules/d3-array/src/number.js +4 -0
  174. package/dist/node_modules/d3-array/src/range.js +6 -0
  175. package/dist/node_modules/d3-array/src/ticks.js +30 -0
  176. package/dist/node_modules/d3-axis/src/axis.js +61 -0
  177. package/dist/node_modules/d3-axis/src/identity.js +4 -0
  178. package/dist/node_modules/d3-brush/src/brush.js +15 -0
  179. package/dist/node_modules/d3-brush/src/index.js +1 -0
  180. package/dist/node_modules/d3-color/src/color.js +287 -0
  181. package/dist/node_modules/d3-color/src/define.js +9 -0
  182. package/dist/node_modules/d3-color/src/lab.js +70 -0
  183. package/dist/node_modules/d3-color/src/math.js +2 -0
  184. package/dist/node_modules/d3-dispatch/src/dispatch.js +64 -0
  185. package/dist/node_modules/d3-ease/src/cubic.js +4 -0
  186. package/dist/node_modules/d3-format/src/defaultLocale.js +11 -0
  187. package/dist/node_modules/d3-format/src/exponent.js +5 -0
  188. package/dist/node_modules/d3-format/src/formatDecimal.js +9 -0
  189. package/dist/node_modules/d3-format/src/formatGroup.js +7 -0
  190. package/dist/node_modules/d3-format/src/formatNumerals.js +8 -0
  191. package/dist/node_modules/d3-format/src/formatPrefixAuto.js +9 -0
  192. package/dist/node_modules/d3-format/src/formatRounded.js +8 -0
  193. package/dist/node_modules/d3-format/src/formatSpecifier.js +25 -0
  194. package/dist/node_modules/d3-format/src/formatTrim.js +16 -0
  195. package/dist/node_modules/d3-format/src/formatTypes.js +19 -0
  196. package/dist/node_modules/d3-format/src/identity.js +4 -0
  197. package/dist/node_modules/d3-format/src/locale.js +82 -0
  198. package/dist/node_modules/d3-format/src/precisionFixed.js +5 -0
  199. package/dist/node_modules/d3-format/src/precisionPrefix.js +5 -0
  200. package/dist/node_modules/d3-format/src/precisionRound.js +5 -0
  201. package/dist/node_modules/d3-hierarchy/src/accessors.js +5 -0
  202. package/dist/node_modules/d3-hierarchy/src/constant.js +9 -0
  203. package/dist/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +5 -0
  204. package/dist/node_modules/d3-hierarchy/src/hierarchy/count.js +10 -0
  205. package/dist/node_modules/d3-hierarchy/src/hierarchy/descendants.js +4 -0
  206. package/dist/node_modules/d3-hierarchy/src/hierarchy/each.js +6 -0
  207. package/dist/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +6 -0
  208. package/dist/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +5 -0
  209. package/dist/node_modules/d3-hierarchy/src/hierarchy/find.js +5 -0
  210. package/dist/node_modules/d3-hierarchy/src/hierarchy/index.js +57 -0
  211. package/dist/node_modules/d3-hierarchy/src/hierarchy/iterator.js +7 -0
  212. package/dist/node_modules/d3-hierarchy/src/hierarchy/leaves.js +7 -0
  213. package/dist/node_modules/d3-hierarchy/src/hierarchy/links.js +10 -0
  214. package/dist/node_modules/d3-hierarchy/src/hierarchy/path.js +12 -0
  215. package/dist/node_modules/d3-hierarchy/src/hierarchy/sort.js +6 -0
  216. package/dist/node_modules/d3-hierarchy/src/hierarchy/sum.js +7 -0
  217. package/dist/node_modules/d3-hierarchy/src/treemap/dice.js +4 -0
  218. package/dist/node_modules/d3-hierarchy/src/treemap/index.js +36 -0
  219. package/dist/node_modules/d3-hierarchy/src/treemap/round.js +4 -0
  220. package/dist/node_modules/d3-hierarchy/src/treemap/slice.js +4 -0
  221. package/dist/node_modules/d3-hierarchy/src/treemap/squarify.js +33 -0
  222. package/dist/node_modules/d3-interpolate/src/array.js +11 -0
  223. package/dist/node_modules/d3-interpolate/src/basis.js +12 -0
  224. package/dist/node_modules/d3-interpolate/src/basisClosed.js +9 -0
  225. package/dist/node_modules/d3-interpolate/src/color.js +25 -0
  226. package/dist/node_modules/d3-interpolate/src/constant.js +2 -0
  227. package/dist/node_modules/d3-interpolate/src/date.js +7 -0
  228. package/dist/node_modules/d3-interpolate/src/hcl.js +12 -0
  229. package/dist/node_modules/d3-interpolate/src/number.js +6 -0
  230. package/dist/node_modules/d3-interpolate/src/numberArray.js +12 -0
  231. package/dist/node_modules/d3-interpolate/src/object.js +10 -0
  232. package/dist/node_modules/d3-interpolate/src/rgb.js +15 -0
  233. package/dist/node_modules/d3-interpolate/src/round.js +6 -0
  234. package/dist/node_modules/d3-interpolate/src/string.js +24 -0
  235. package/dist/node_modules/d3-interpolate/src/transform/decompose.js +20 -0
  236. package/dist/node_modules/d3-interpolate/src/transform/index.js +52 -0
  237. package/dist/node_modules/d3-interpolate/src/transform/parse.js +10 -0
  238. package/dist/node_modules/d3-interpolate/src/value.js +14 -0
  239. package/dist/node_modules/d3-path/src/path.js +61 -0
  240. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/max.js +10 -0
  241. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/min.js +10 -0
  242. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +10 -0
  243. package/dist/node_modules/d3-sankey/node_modules/d3-path/src/path.js +50 -0
  244. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +2 -0
  245. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +6 -0
  246. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +35 -0
  247. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +7 -0
  248. package/dist/node_modules/d3-sankey/src/align.js +17 -0
  249. package/dist/node_modules/d3-sankey/src/constant.js +6 -0
  250. package/dist/node_modules/d3-sankey/src/sankey.js +224 -0
  251. package/dist/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +11 -0
  252. package/dist/node_modules/d3-scale/src/band.js +39 -0
  253. package/dist/node_modules/d3-scale/src/constant.js +6 -0
  254. package/dist/node_modules/d3-scale/src/continuous.js +69 -0
  255. package/dist/node_modules/d3-scale/src/init.js +13 -0
  256. package/dist/node_modules/d3-scale/src/linear.js +32 -0
  257. package/dist/node_modules/d3-scale/src/nice.js +6 -0
  258. package/dist/node_modules/d3-scale/src/number.js +4 -0
  259. package/dist/node_modules/d3-scale/src/ordinal.js +27 -0
  260. package/dist/node_modules/d3-scale/src/tickFormat.js +27 -0
  261. package/dist/node_modules/d3-scale/src/time.js +43 -0
  262. package/dist/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +3 -0
  263. package/dist/node_modules/d3-scale-chromatic/src/colors.js +5 -0
  264. package/dist/node_modules/d3-selection/src/array.js +4 -0
  265. package/dist/node_modules/d3-selection/src/constant.js +6 -0
  266. package/dist/node_modules/d3-selection/src/creator.js +18 -0
  267. package/dist/node_modules/d3-selection/src/matcher.js +11 -0
  268. package/dist/node_modules/d3-selection/src/namespace.js +9 -0
  269. package/dist/node_modules/d3-selection/src/namespaces.js +8 -0
  270. package/dist/node_modules/d3-selection/src/select.js +5 -0
  271. package/dist/node_modules/d3-selection/src/selection/append.js +8 -0
  272. package/dist/node_modules/d3-selection/src/selection/attr.js +42 -0
  273. package/dist/node_modules/d3-selection/src/selection/call.js +5 -0
  274. package/dist/node_modules/d3-selection/src/selection/classed.js +51 -0
  275. package/dist/node_modules/d3-selection/src/selection/clone.js +12 -0
  276. package/dist/node_modules/d3-selection/src/selection/data.js +34 -0
  277. package/dist/node_modules/d3-selection/src/selection/datum.js +4 -0
  278. package/dist/node_modules/d3-selection/src/selection/dispatch.js +19 -0
  279. package/dist/node_modules/d3-selection/src/selection/each.js +5 -0
  280. package/dist/node_modules/d3-selection/src/selection/empty.js +4 -0
  281. package/dist/node_modules/d3-selection/src/selection/enter.js +24 -0
  282. package/dist/node_modules/d3-selection/src/selection/exit.js +6 -0
  283. package/dist/node_modules/d3-selection/src/selection/filter.js +8 -0
  284. package/dist/node_modules/d3-selection/src/selection/html.js +17 -0
  285. package/dist/node_modules/d3-selection/src/selection/index.js +84 -0
  286. package/dist/node_modules/d3-selection/src/selection/insert.js +12 -0
  287. package/dist/node_modules/d3-selection/src/selection/iterator.js +4 -0
  288. package/dist/node_modules/d3-selection/src/selection/join.js +5 -0
  289. package/dist/node_modules/d3-selection/src/selection/lower.js +7 -0
  290. package/dist/node_modules/d3-selection/src/selection/merge.js +7 -0
  291. package/dist/node_modules/d3-selection/src/selection/node.js +8 -0
  292. package/dist/node_modules/d3-selection/src/selection/nodes.js +4 -0
  293. package/dist/node_modules/d3-selection/src/selection/on.js +54 -0
  294. package/dist/node_modules/d3-selection/src/selection/order.js +5 -0
  295. package/dist/node_modules/d3-selection/src/selection/property.js +20 -0
  296. package/dist/node_modules/d3-selection/src/selection/raise.js +7 -0
  297. package/dist/node_modules/d3-selection/src/selection/remove.js +8 -0
  298. package/dist/node_modules/d3-selection/src/selection/select.js +8 -0
  299. package/dist/node_modules/d3-selection/src/selection/selectAll.js +14 -0
  300. package/dist/node_modules/d3-selection/src/selection/selectChild.js +14 -0
  301. package/dist/node_modules/d3-selection/src/selection/selectChildren.js +14 -0
  302. package/dist/node_modules/d3-selection/src/selection/size.js +6 -0
  303. package/dist/node_modules/d3-selection/src/selection/sort.js +16 -0
  304. package/dist/node_modules/d3-selection/src/selection/sparse.js +4 -0
  305. package/dist/node_modules/d3-selection/src/selection/style.js +24 -0
  306. package/dist/node_modules/d3-selection/src/selection/text.js +17 -0
  307. package/dist/node_modules/d3-selection/src/selector.js +7 -0
  308. package/dist/node_modules/d3-selection/src/selectorAll.js +9 -0
  309. package/dist/node_modules/d3-selection/src/window.js +4 -0
  310. package/dist/node_modules/d3-shape/src/arc.js +79 -0
  311. package/dist/node_modules/d3-shape/src/array.js +5 -0
  312. package/dist/node_modules/d3-shape/src/constant.js +6 -0
  313. package/dist/node_modules/d3-shape/src/curve/basis.js +45 -0
  314. package/dist/node_modules/d3-shape/src/curve/basisClosed.js +46 -0
  315. package/dist/node_modules/d3-shape/src/curve/basisOpen.js +42 -0
  316. package/dist/node_modules/d3-shape/src/curve/bump.js +36 -0
  317. package/dist/node_modules/d3-shape/src/curve/bundle.js +26 -0
  318. package/dist/node_modules/d3-shape/src/curve/cardinal.js +52 -0
  319. package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +51 -0
  320. package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +45 -0
  321. package/dist/node_modules/d3-shape/src/curve/catmullRom.js +67 -0
  322. package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +56 -0
  323. package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +50 -0
  324. package/dist/node_modules/d3-shape/src/curve/linear.js +32 -0
  325. package/dist/node_modules/d3-shape/src/curve/linearClosed.js +21 -0
  326. package/dist/node_modules/d3-shape/src/curve/monotone.js +90 -0
  327. package/dist/node_modules/d3-shape/src/curve/natural.js +35 -0
  328. package/dist/node_modules/d3-shape/src/curve/step.js +43 -0
  329. package/dist/node_modules/d3-shape/src/descending.js +4 -0
  330. package/dist/node_modules/d3-shape/src/identity.js +4 -0
  331. package/dist/node_modules/d3-shape/src/line.js +26 -0
  332. package/dist/node_modules/d3-shape/src/math.js +8 -0
  333. package/dist/node_modules/d3-shape/src/noop.js +2 -0
  334. package/dist/node_modules/d3-shape/src/path.js +15 -0
  335. package/dist/node_modules/d3-shape/src/pie.js +39 -0
  336. package/dist/node_modules/d3-shape/src/point.js +7 -0
  337. package/dist/node_modules/d3-time/src/day.js +17 -0
  338. package/dist/node_modules/d3-time/src/duration.js +2 -0
  339. package/dist/node_modules/d3-time/src/hour.js +15 -0
  340. package/dist/node_modules/d3-time/src/interval.js +24 -0
  341. package/dist/node_modules/d3-time/src/millisecond.js +10 -0
  342. package/dist/node_modules/d3-time/src/minute.js +15 -0
  343. package/dist/node_modules/d3-time/src/month.js +14 -0
  344. package/dist/node_modules/d3-time/src/second.js +9 -0
  345. package/dist/node_modules/d3-time/src/ticks.js +121 -0
  346. package/dist/node_modules/d3-time/src/week.js +21 -0
  347. package/dist/node_modules/d3-time/src/year.js +22 -0
  348. package/dist/node_modules/d3-time-format/src/defaultLocale.js +58 -0
  349. package/dist/node_modules/d3-time-format/src/locale.js +486 -0
  350. package/dist/node_modules/d3-timer/src/timeout.js +8 -0
  351. package/dist/node_modules/d3-timer/src/timer.js +51 -0
  352. package/dist/node_modules/d3-transition/src/index.js +3 -0
  353. package/dist/node_modules/d3-transition/src/interrupt.js +15 -0
  354. package/dist/node_modules/d3-transition/src/selection/index.js +4 -0
  355. package/dist/node_modules/d3-transition/src/selection/interrupt.js +7 -0
  356. package/dist/node_modules/d3-transition/src/selection/transition.js +21 -0
  357. package/dist/node_modules/d3-transition/src/transition/attr.js +47 -0
  358. package/dist/node_modules/d3-transition/src/transition/attrTween.js +36 -0
  359. package/dist/node_modules/d3-transition/src/transition/delay.js +16 -0
  360. package/dist/node_modules/d3-transition/src/transition/duration.js +16 -0
  361. package/dist/node_modules/d3-transition/src/transition/ease.js +12 -0
  362. package/dist/node_modules/d3-transition/src/transition/easeVarying.js +13 -0
  363. package/dist/node_modules/d3-transition/src/transition/end.js +14 -0
  364. package/dist/node_modules/d3-transition/src/transition/filter.js +8 -0
  365. package/dist/node_modules/d3-transition/src/transition/index.js +65 -0
  366. package/dist/node_modules/d3-transition/src/transition/interpolate.js +9 -0
  367. package/dist/node_modules/d3-transition/src/transition/merge.js +8 -0
  368. package/dist/node_modules/d3-transition/src/transition/on.js +19 -0
  369. package/dist/node_modules/d3-transition/src/transition/remove.js +11 -0
  370. package/dist/node_modules/d3-transition/src/transition/schedule.js +67 -0
  371. package/dist/node_modules/d3-transition/src/transition/select.js +10 -0
  372. package/dist/node_modules/d3-transition/src/transition/selectAll.js +13 -0
  373. package/dist/node_modules/d3-transition/src/transition/selection.js +6 -0
  374. package/dist/node_modules/d3-transition/src/transition/style.js +43 -0
  375. package/dist/node_modules/d3-transition/src/transition/styleTween.js +21 -0
  376. package/dist/node_modules/d3-transition/src/transition/text.js +15 -0
  377. package/dist/node_modules/d3-transition/src/transition/textTween.js +21 -0
  378. package/dist/node_modules/d3-transition/src/transition/transition.js +15 -0
  379. package/dist/node_modules/d3-transition/src/transition/tween.js +52 -0
  380. package/dist/node_modules/d3-zoom/src/index.js +2 -0
  381. package/dist/node_modules/d3-zoom/src/transform.js +46 -0
  382. package/dist/node_modules/d3-zoom/src/zoom.js +2 -0
  383. package/dist/node_modules/dagre-d3-es/src/dagre/acyclic.js +34 -0
  384. package/dist/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +22 -0
  385. package/dist/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +44 -0
  386. package/dist/node_modules/dagre-d3-es/src/dagre/data/list.js +25 -0
  387. package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +69 -0
  388. package/dist/node_modules/dagre-d3-es/src/dagre/index.js +4 -0
  389. package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +241 -0
  390. package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +66 -0
  391. package/dist/node_modules/dagre-d3-es/src/dagre/normalize.js +32 -0
  392. package/dist/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +14 -0
  393. package/dist/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +25 -0
  394. package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +25 -0
  395. package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +33 -0
  396. package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +44 -0
  397. package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +23 -0
  398. package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +55 -0
  399. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +43 -0
  400. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +27 -0
  401. package/dist/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +40 -0
  402. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +216 -0
  403. package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +23 -0
  404. package/dist/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +31 -0
  405. package/dist/node_modules/dagre-d3-es/src/dagre/rank/index.js +25 -0
  406. package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +84 -0
  407. package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +20 -0
  408. package/dist/node_modules/dagre-d3-es/src/dagre/util.js +117 -0
  409. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +16 -0
  410. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra-all.js +1 -0
  411. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.js +2 -0
  412. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.js +2 -0
  413. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/index.js +8 -0
  414. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/is-acyclic.js +1 -0
  415. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js +5 -0
  416. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +5 -0
  417. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/prim.js +1 -0
  418. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +15 -0
  419. package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +228 -0
  420. package/dist/node_modules/dagre-d3-es/src/graphlib/index.js +1 -0
  421. package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +32 -0
  422. package/dist/node_modules/dayjs/dayjs.min.js +298 -0
  423. package/dist/node_modules/dayjs/plugin/advancedFormat.js +37 -0
  424. package/dist/node_modules/dayjs/plugin/customParseFormat.js +160 -0
  425. package/dist/node_modules/dayjs/plugin/duration.js +164 -0
  426. package/dist/node_modules/dayjs/plugin/isoWeek.js +29 -0
  427. package/dist/node_modules/devlop/lib/default.js +2 -0
  428. package/dist/node_modules/dompurify/dist/purify.es.js +547 -0
  429. package/dist/node_modules/hast-util-from-dom/lib/index.js +58 -0
  430. package/dist/node_modules/hast-util-from-html-isomorphic/lib/browser.js +10 -0
  431. package/dist/node_modules/hast-util-is-element/lib/index.js +36 -0
  432. package/dist/node_modules/hast-util-parse-selector/lib/index.js +16 -0
  433. package/dist/node_modules/hast-util-to-text/lib/index.js +104 -0
  434. package/dist/node_modules/hastscript/lib/create-h.js +86 -0
  435. package/dist/node_modules/hastscript/lib/index.js +5 -0
  436. package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +2 -0
  437. package/dist/node_modules/internmap/src/index.js +36 -0
  438. package/dist/node_modules/katex/dist/katex.js +22103 -0
  439. package/dist/node_modules/khroma/dist/channels/index.js +68 -0
  440. package/dist/node_modules/khroma/dist/channels/reusable.js +8 -0
  441. package/dist/node_modules/khroma/dist/channels/type.js +20 -0
  442. package/dist/node_modules/khroma/dist/color/hex.js +22 -0
  443. package/dist/node_modules/khroma/dist/color/hsl.js +36 -0
  444. package/dist/node_modules/khroma/dist/color/index.js +23 -0
  445. package/dist/node_modules/khroma/dist/color/keyword.js +162 -0
  446. package/dist/node_modules/khroma/dist/color/rgb.js +23 -0
  447. package/dist/node_modules/khroma/dist/constants.js +9 -0
  448. package/dist/node_modules/khroma/dist/methods/adjust.js +8 -0
  449. package/dist/node_modules/khroma/dist/methods/adjust_channel.js +7 -0
  450. package/dist/node_modules/khroma/dist/methods/change.js +8 -0
  451. package/dist/node_modules/khroma/dist/methods/channel.js +4 -0
  452. package/dist/node_modules/khroma/dist/methods/darken.js +3 -0
  453. package/dist/node_modules/khroma/dist/methods/invert.js +7 -0
  454. package/dist/node_modules/khroma/dist/methods/is_dark.js +3 -0
  455. package/dist/node_modules/khroma/dist/methods/is_light.js +3 -0
  456. package/dist/node_modules/khroma/dist/methods/lighten.js +3 -0
  457. package/dist/node_modules/khroma/dist/methods/luminance.js +7 -0
  458. package/dist/node_modules/khroma/dist/methods/mix.js +7 -0
  459. package/dist/node_modules/khroma/dist/methods/rgba.js +15 -0
  460. package/dist/node_modules/khroma/dist/utils/channel.js +58 -0
  461. package/dist/node_modules/khroma/dist/utils/index.js +9 -0
  462. package/dist/node_modules/khroma/dist/utils/lang.js +5 -0
  463. package/dist/node_modules/khroma/dist/utils/unit.js +5 -0
  464. package/dist/node_modules/langium/lib/default-module.js +85 -0
  465. package/dist/node_modules/langium/lib/dependency-injection.js +62 -0
  466. package/dist/node_modules/langium/lib/documentation/comment-provider.js +11 -0
  467. package/dist/node_modules/langium/lib/documentation/documentation-provider.js +36 -0
  468. package/dist/node_modules/langium/lib/documentation/jsdoc.js +303 -0
  469. package/dist/node_modules/langium/lib/index.js +182 -0
  470. package/dist/node_modules/langium/lib/languages/generated/ast.js +1089 -0
  471. package/dist/node_modules/langium/lib/languages/grammar-config.js +13 -0
  472. package/dist/node_modules/langium/lib/parser/async-parser.js +83 -0
  473. package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +7 -0
  474. package/dist/node_modules/langium/lib/parser/cst-node-builder.js +160 -0
  475. package/dist/node_modules/langium/lib/parser/indentation-aware.js +141 -0
  476. package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +11 -0
  477. package/dist/node_modules/langium/lib/parser/langium-parser.js +388 -0
  478. package/dist/node_modules/langium/lib/parser/lexer.js +50 -0
  479. package/dist/node_modules/langium/lib/parser/parser-builder-base.js +275 -0
  480. package/dist/node_modules/langium/lib/parser/token-builder.js +61 -0
  481. package/dist/node_modules/langium/lib/parser/value-converter.js +78 -0
  482. package/dist/node_modules/langium/lib/references/linker.js +190 -0
  483. package/dist/node_modules/langium/lib/references/name-provider.js +13 -0
  484. package/dist/node_modules/langium/lib/references/references.js +76 -0
  485. package/dist/node_modules/langium/lib/references/scope-computation.js +35 -0
  486. package/dist/node_modules/langium/lib/references/scope-provider.js +34 -0
  487. package/dist/node_modules/langium/lib/references/scope.js +73 -0
  488. package/dist/node_modules/langium/lib/serializer/hydrator.js +125 -0
  489. package/dist/node_modules/langium/lib/serializer/json-serializer.js +145 -0
  490. package/dist/node_modules/langium/lib/service-registry.js +37 -0
  491. package/dist/node_modules/langium/lib/syntax-tree.js +70 -0
  492. package/dist/node_modules/langium/lib/utils/ast-utils.js +157 -0
  493. package/dist/node_modules/langium/lib/utils/caching.js +91 -0
  494. package/dist/node_modules/langium/lib/utils/cancellation.js +5 -0
  495. package/dist/node_modules/langium/lib/utils/collections.js +85 -0
  496. package/dist/node_modules/langium/lib/utils/cst-utils.js +190 -0
  497. package/dist/node_modules/langium/lib/utils/disposable.js +8 -0
  498. package/dist/node_modules/langium/lib/utils/errors.js +12 -0
  499. package/dist/node_modules/langium/lib/utils/event.js +5 -0
  500. package/dist/node_modules/langium/lib/utils/grammar-loader.js +22 -0
  501. package/dist/node_modules/langium/lib/utils/grammar-utils.js +296 -0
  502. package/dist/node_modules/langium/lib/utils/index.js +53 -0
  503. package/dist/node_modules/langium/lib/utils/promise-utils.js +30 -0
  504. package/dist/node_modules/langium/lib/utils/regexp-utils.js +167 -0
  505. package/dist/node_modules/langium/lib/utils/stream.js +327 -0
  506. package/dist/node_modules/langium/lib/utils/uri-utils.js +107 -0
  507. package/dist/node_modules/langium/lib/validation/document-validator.js +210 -0
  508. package/dist/node_modules/langium/lib/validation/validation-registry.js +87 -0
  509. package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +57 -0
  510. package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +28 -0
  511. package/dist/node_modules/langium/lib/workspace/configuration.js +51 -0
  512. package/dist/node_modules/langium/lib/workspace/document-builder.js +201 -0
  513. package/dist/node_modules/langium/lib/workspace/documents.js +142 -0
  514. package/dist/node_modules/langium/lib/workspace/file-system-provider.js +34 -0
  515. package/dist/node_modules/langium/lib/workspace/index-manager.js +49 -0
  516. package/dist/node_modules/langium/lib/workspace/profiler.js +89 -0
  517. package/dist/node_modules/langium/lib/workspace/workspace-lock.js +42 -0
  518. package/dist/node_modules/langium/lib/workspace/workspace-manager.js +66 -0
  519. package/dist/node_modules/layout-base/layout-base.js +1407 -0
  520. package/dist/node_modules/lodash-es/_DataView.js +4 -0
  521. package/dist/node_modules/lodash-es/_Hash.js +15 -0
  522. package/dist/node_modules/lodash-es/_ListCache.js +15 -0
  523. package/dist/node_modules/lodash-es/_Map.js +4 -0
  524. package/dist/node_modules/lodash-es/_MapCache.js +15 -0
  525. package/dist/node_modules/lodash-es/_Promise.js +4 -0
  526. package/dist/node_modules/lodash-es/_Set.js +4 -0
  527. package/dist/node_modules/lodash-es/_SetCache.js +10 -0
  528. package/dist/node_modules/lodash-es/_Stack.js +12 -0
  529. package/dist/node_modules/lodash-es/_Symbol.js +3 -0
  530. package/dist/node_modules/lodash-es/_Uint8Array.js +3 -0
  531. package/dist/node_modules/lodash-es/_WeakMap.js +4 -0
  532. package/dist/node_modules/lodash-es/_apply.js +11 -0
  533. package/dist/node_modules/lodash-es/_arrayAggregator.js +9 -0
  534. package/dist/node_modules/lodash-es/_arrayEach.js +6 -0
  535. package/dist/node_modules/lodash-es/_arrayEvery.js +6 -0
  536. package/dist/node_modules/lodash-es/_arrayFilter.js +9 -0
  537. package/dist/node_modules/lodash-es/_arrayIncludes.js +6 -0
  538. package/dist/node_modules/lodash-es/_arrayIncludesWith.js +6 -0
  539. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +14 -0
  540. package/dist/node_modules/lodash-es/_arrayMap.js +6 -0
  541. package/dist/node_modules/lodash-es/_arrayPush.js +6 -0
  542. package/dist/node_modules/lodash-es/_arrayReduce.js +7 -0
  543. package/dist/node_modules/lodash-es/_arraySome.js +6 -0
  544. package/dist/node_modules/lodash-es/_asciiSize.js +3 -0
  545. package/dist/node_modules/lodash-es/_assignMergeValue.js +7 -0
  546. package/dist/node_modules/lodash-es/_assignValue.js +9 -0
  547. package/dist/node_modules/lodash-es/_assocIndexOf.js +7 -0
  548. package/dist/node_modules/lodash-es/_baseAggregator.js +8 -0
  549. package/dist/node_modules/lodash-es/_baseAssign.js +7 -0
  550. package/dist/node_modules/lodash-es/_baseAssignIn.js +7 -0
  551. package/dist/node_modules/lodash-es/_baseAssignValue.js +11 -0
  552. package/dist/node_modules/lodash-es/_baseClone.js +56 -0
  553. package/dist/node_modules/lodash-es/_baseCreate.js +12 -0
  554. package/dist/node_modules/lodash-es/_baseDifference.js +22 -0
  555. package/dist/node_modules/lodash-es/_baseEach.js +4 -0
  556. package/dist/node_modules/lodash-es/_baseEvery.js +9 -0
  557. package/dist/node_modules/lodash-es/_baseExtremum.js +10 -0
  558. package/dist/node_modules/lodash-es/_baseFilter.js +9 -0
  559. package/dist/node_modules/lodash-es/_baseFindIndex.js +6 -0
  560. package/dist/node_modules/lodash-es/_baseFlatten.js +12 -0
  561. package/dist/node_modules/lodash-es/_baseFor.js +3 -0
  562. package/dist/node_modules/lodash-es/_baseForOwn.js +7 -0
  563. package/dist/node_modules/lodash-es/_baseGet.js +9 -0
  564. package/dist/node_modules/lodash-es/_baseGetAllKeys.js +8 -0
  565. package/dist/node_modules/lodash-es/_baseGetTag.js +9 -0
  566. package/dist/node_modules/lodash-es/_baseGt.js +5 -0
  567. package/dist/node_modules/lodash-es/_baseHas.js +6 -0
  568. package/dist/node_modules/lodash-es/_baseHasIn.js +5 -0
  569. package/dist/node_modules/lodash-es/_baseIndexOf.js +8 -0
  570. package/dist/node_modules/lodash-es/_baseIsArguments.js +8 -0
  571. package/dist/node_modules/lodash-es/_baseIsEqual.js +7 -0
  572. package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +29 -0
  573. package/dist/node_modules/lodash-es/_baseIsMap.js +8 -0
  574. package/dist/node_modules/lodash-es/_baseIsMatch.js +25 -0
  575. package/dist/node_modules/lodash-es/_baseIsNaN.js +5 -0
  576. package/dist/node_modules/lodash-es/_baseIsNative.js +10 -0
  577. package/dist/node_modules/lodash-es/_baseIsRegExp.js +8 -0
  578. package/dist/node_modules/lodash-es/_baseIsSet.js +8 -0
  579. package/dist/node_modules/lodash-es/_baseIsTypedArray.js +10 -0
  580. package/dist/node_modules/lodash-es/_baseIteratee.js +10 -0
  581. package/dist/node_modules/lodash-es/_baseKeys.js +11 -0
  582. package/dist/node_modules/lodash-es/_baseKeysIn.js +12 -0
  583. package/dist/node_modules/lodash-es/_baseLt.js +5 -0
  584. package/dist/node_modules/lodash-es/_baseMap.js +10 -0
  585. package/dist/node_modules/lodash-es/_baseMatches.js +11 -0
  586. package/dist/node_modules/lodash-es/_baseMatchesProperty.js +16 -0
  587. package/dist/node_modules/lodash-es/_baseMerge.js +18 -0
  588. package/dist/node_modules/lodash-es/_baseMergeDeep.js +30 -0
  589. package/dist/node_modules/lodash-es/_baseOrderBy.js +30 -0
  590. package/dist/node_modules/lodash-es/_basePick.js +9 -0
  591. package/dist/node_modules/lodash-es/_basePickBy.js +12 -0
  592. package/dist/node_modules/lodash-es/_baseProperty.js +7 -0
  593. package/dist/node_modules/lodash-es/_basePropertyDeep.js +8 -0
  594. package/dist/node_modules/lodash-es/_baseRange.js +7 -0
  595. package/dist/node_modules/lodash-es/_baseReduce.js +7 -0
  596. package/dist/node_modules/lodash-es/_baseRest.js +8 -0
  597. package/dist/node_modules/lodash-es/_baseSet.js +21 -0
  598. package/dist/node_modules/lodash-es/_baseSetToString.js +12 -0
  599. package/dist/node_modules/lodash-es/_baseSlice.js +8 -0
  600. package/dist/node_modules/lodash-es/_baseSome.js +9 -0
  601. package/dist/node_modules/lodash-es/_baseSortBy.js +7 -0
  602. package/dist/node_modules/lodash-es/_baseTimes.js +6 -0
  603. package/dist/node_modules/lodash-es/_baseToString.js +14 -0
  604. package/dist/node_modules/lodash-es/_baseTrim.js +7 -0
  605. package/dist/node_modules/lodash-es/_baseUnary.js +7 -0
  606. package/dist/node_modules/lodash-es/_baseUniq.js +26 -0
  607. package/dist/node_modules/lodash-es/_baseValues.js +8 -0
  608. package/dist/node_modules/lodash-es/_baseZipObject.js +9 -0
  609. package/dist/node_modules/lodash-es/_cacheHas.js +5 -0
  610. package/dist/node_modules/lodash-es/_castFunction.js +6 -0
  611. package/dist/node_modules/lodash-es/_castPath.js +9 -0
  612. package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +7 -0
  613. package/dist/node_modules/lodash-es/_cloneBuffer.js +9 -0
  614. package/dist/node_modules/lodash-es/_cloneDataView.js +7 -0
  615. package/dist/node_modules/lodash-es/_cloneRegExp.js +7 -0
  616. package/dist/node_modules/lodash-es/_cloneSymbol.js +7 -0
  617. package/dist/node_modules/lodash-es/_cloneTypedArray.js +7 -0
  618. package/dist/node_modules/lodash-es/_compareAscending.js +11 -0
  619. package/dist/node_modules/lodash-es/_compareMultiple.js +10 -0
  620. package/dist/node_modules/lodash-es/_copyArray.js +7 -0
  621. package/dist/node_modules/lodash-es/_copyObject.js +13 -0
  622. package/dist/node_modules/lodash-es/_copySymbols.js +7 -0
  623. package/dist/node_modules/lodash-es/_copySymbolsIn.js +7 -0
  624. package/dist/node_modules/lodash-es/_coreJsData.js +3 -0
  625. package/dist/node_modules/lodash-es/_createAggregator.js +12 -0
  626. package/dist/node_modules/lodash-es/_createAssigner.js +14 -0
  627. package/dist/node_modules/lodash-es/_createBaseEach.js +11 -0
  628. package/dist/node_modules/lodash-es/_createBaseFor.js +11 -0
  629. package/dist/node_modules/lodash-es/_createFind.js +18 -0
  630. package/dist/node_modules/lodash-es/_createRange.js +10 -0
  631. package/dist/node_modules/lodash-es/_createSet.js +7 -0
  632. package/dist/node_modules/lodash-es/_defineProperty.js +8 -0
  633. package/dist/node_modules/lodash-es/_equalArrays.js +34 -0
  634. package/dist/node_modules/lodash-es/_equalByTag.js +34 -0
  635. package/dist/node_modules/lodash-es/_equalObjects.js +31 -0
  636. package/dist/node_modules/lodash-es/_flatRest.js +8 -0
  637. package/dist/node_modules/lodash-es/_freeGlobal.js +2 -0
  638. package/dist/node_modules/lodash-es/_getAllKeys.js +8 -0
  639. package/dist/node_modules/lodash-es/_getAllKeysIn.js +8 -0
  640. package/dist/node_modules/lodash-es/_getMapData.js +7 -0
  641. package/dist/node_modules/lodash-es/_getMatchData.js +15 -0
  642. package/dist/node_modules/lodash-es/_getNative.js +8 -0
  643. package/dist/node_modules/lodash-es/_getPrototype.js +3 -0
  644. package/dist/node_modules/lodash-es/_getRawTag.js +13 -0
  645. package/dist/node_modules/lodash-es/_getSymbols.js +8 -0
  646. package/dist/node_modules/lodash-es/_getSymbolsIn.js +9 -0
  647. package/dist/node_modules/lodash-es/_getTag.js +21 -0
  648. package/dist/node_modules/lodash-es/_getValue.js +5 -0
  649. package/dist/node_modules/lodash-es/_hasPath.js +17 -0
  650. package/dist/node_modules/lodash-es/_hasUnicode.js +6 -0
  651. package/dist/node_modules/lodash-es/_hashClear.js +6 -0
  652. package/dist/node_modules/lodash-es/_hashDelete.js +6 -0
  653. package/dist/node_modules/lodash-es/_hashGet.js +12 -0
  654. package/dist/node_modules/lodash-es/_hashHas.js +8 -0
  655. package/dist/node_modules/lodash-es/_hashSet.js +8 -0
  656. package/dist/node_modules/lodash-es/_initCloneArray.js +7 -0
  657. package/dist/node_modules/lodash-es/_initCloneByTag.js +32 -0
  658. package/dist/node_modules/lodash-es/_initCloneObject.js +8 -0
  659. package/dist/node_modules/lodash-es/_isFlattenable.js +9 -0
  660. package/dist/node_modules/lodash-es/_isIndex.js +7 -0
  661. package/dist/node_modules/lodash-es/_isIterateeCall.js +11 -0
  662. package/dist/node_modules/lodash-es/_isKey.js +10 -0
  663. package/dist/node_modules/lodash-es/_isKeyable.js +6 -0
  664. package/dist/node_modules/lodash-es/_isMasked.js +10 -0
  665. package/dist/node_modules/lodash-es/_isPrototype.js +7 -0
  666. package/dist/node_modules/lodash-es/_isStrictComparable.js +6 -0
  667. package/dist/node_modules/lodash-es/_listCacheClear.js +5 -0
  668. package/dist/node_modules/lodash-es/_listCacheDelete.js +8 -0
  669. package/dist/node_modules/lodash-es/_listCacheGet.js +7 -0
  670. package/dist/node_modules/lodash-es/_listCacheHas.js +6 -0
  671. package/dist/node_modules/lodash-es/_listCacheSet.js +7 -0
  672. package/dist/node_modules/lodash-es/_mapCacheClear.js +12 -0
  673. package/dist/node_modules/lodash-es/_mapCacheDelete.js +7 -0
  674. package/dist/node_modules/lodash-es/_mapCacheGet.js +6 -0
  675. package/dist/node_modules/lodash-es/_mapCacheHas.js +6 -0
  676. package/dist/node_modules/lodash-es/_mapCacheSet.js +7 -0
  677. package/dist/node_modules/lodash-es/_mapToArray.js +8 -0
  678. package/dist/node_modules/lodash-es/_matchesStrictComparable.js +7 -0
  679. package/dist/node_modules/lodash-es/_memoizeCapped.js +10 -0
  680. package/dist/node_modules/lodash-es/_nativeCreate.js +3 -0
  681. package/dist/node_modules/lodash-es/_nativeKeys.js +3 -0
  682. package/dist/node_modules/lodash-es/_nativeKeysIn.js +7 -0
  683. package/dist/node_modules/lodash-es/_nodeUtil.js +7 -0
  684. package/dist/node_modules/lodash-es/_objectToString.js +6 -0
  685. package/dist/node_modules/lodash-es/_overArg.js +7 -0
  686. package/dist/node_modules/lodash-es/_overRest.js +12 -0
  687. package/dist/node_modules/lodash-es/_root.js +3 -0
  688. package/dist/node_modules/lodash-es/_safeGet.js +5 -0
  689. package/dist/node_modules/lodash-es/_setCacheAdd.js +6 -0
  690. package/dist/node_modules/lodash-es/_setCacheHas.js +5 -0
  691. package/dist/node_modules/lodash-es/_setToArray.js +8 -0
  692. package/dist/node_modules/lodash-es/_setToString.js +4 -0
  693. package/dist/node_modules/lodash-es/_shortOut.js +13 -0
  694. package/dist/node_modules/lodash-es/_stackClear.js +6 -0
  695. package/dist/node_modules/lodash-es/_stackDelete.js +6 -0
  696. package/dist/node_modules/lodash-es/_stackGet.js +5 -0
  697. package/dist/node_modules/lodash-es/_stackHas.js +5 -0
  698. package/dist/node_modules/lodash-es/_stackSet.js +15 -0
  699. package/dist/node_modules/lodash-es/_strictIndexOf.js +6 -0
  700. package/dist/node_modules/lodash-es/_stringSize.js +8 -0
  701. package/dist/node_modules/lodash-es/_stringToPath.js +8 -0
  702. package/dist/node_modules/lodash-es/_toKey.js +9 -0
  703. package/dist/node_modules/lodash-es/_toSource.js +14 -0
  704. package/dist/node_modules/lodash-es/_trimmedEndIndex.js +7 -0
  705. package/dist/node_modules/lodash-es/_unicodeSize.js +17 -0
  706. package/dist/node_modules/lodash-es/assign.js +14 -0
  707. package/dist/node_modules/lodash-es/clone.js +7 -0
  708. package/dist/node_modules/lodash-es/cloneDeep.js +7 -0
  709. package/dist/node_modules/lodash-es/compact.js +9 -0
  710. package/dist/node_modules/lodash-es/constant.js +7 -0
  711. package/dist/node_modules/lodash-es/defaults.js +14 -0
  712. package/dist/node_modules/lodash-es/difference.js +8 -0
  713. package/dist/node_modules/lodash-es/drop.js +8 -0
  714. package/dist/node_modules/lodash-es/dropRight.js +8 -0
  715. package/dist/node_modules/lodash-es/eq.js +5 -0
  716. package/dist/node_modules/lodash-es/every.js +11 -0
  717. package/dist/node_modules/lodash-es/filter.js +9 -0
  718. package/dist/node_modules/lodash-es/find.js +4 -0
  719. package/dist/node_modules/lodash-es/findIndex.js +12 -0
  720. package/dist/node_modules/lodash-es/flatMap.js +7 -0
  721. package/dist/node_modules/lodash-es/flatten.js +6 -0
  722. package/dist/node_modules/lodash-es/forEach.js +9 -0
  723. package/dist/node_modules/lodash-es/forIn.js +8 -0
  724. package/dist/node_modules/lodash-es/forOwn.js +7 -0
  725. package/dist/node_modules/lodash-es/get.js +7 -0
  726. package/dist/node_modules/lodash-es/groupBy.js +6 -0
  727. package/dist/node_modules/lodash-es/has.js +7 -0
  728. package/dist/node_modules/lodash-es/hasIn.js +7 -0
  729. package/dist/node_modules/lodash-es/head.js +5 -0
  730. package/dist/node_modules/lodash-es/identity.js +5 -0
  731. package/dist/node_modules/lodash-es/includes.js +13 -0
  732. package/dist/node_modules/lodash-es/indexOf.js +11 -0
  733. package/dist/node_modules/lodash-es/isArguments.js +8 -0
  734. package/dist/node_modules/lodash-es/isArray.js +2 -0
  735. package/dist/node_modules/lodash-es/isArrayLike.js +7 -0
  736. package/dist/node_modules/lodash-es/isArrayLikeObject.js +7 -0
  737. package/dist/node_modules/lodash-es/isBuffer.js +4 -0
  738. package/dist/node_modules/lodash-es/isEmpty.js +20 -0
  739. package/dist/node_modules/lodash-es/isFunction.js +10 -0
  740. package/dist/node_modules/lodash-es/isLength.js +6 -0
  741. package/dist/node_modules/lodash-es/isMap.js +5 -0
  742. package/dist/node_modules/lodash-es/isObject.js +6 -0
  743. package/dist/node_modules/lodash-es/isObjectLike.js +5 -0
  744. package/dist/node_modules/lodash-es/isPlainObject.js +13 -0
  745. package/dist/node_modules/lodash-es/isRegExp.js +5 -0
  746. package/dist/node_modules/lodash-es/isSet.js +5 -0
  747. package/dist/node_modules/lodash-es/isString.js +9 -0
  748. package/dist/node_modules/lodash-es/isSymbol.js +8 -0
  749. package/dist/node_modules/lodash-es/isTypedArray.js +5 -0
  750. package/dist/node_modules/lodash-es/isUndefined.js +5 -0
  751. package/dist/node_modules/lodash-es/keys.js +8 -0
  752. package/dist/node_modules/lodash-es/keysIn.js +8 -0
  753. package/dist/node_modules/lodash-es/last.js +6 -0
  754. package/dist/node_modules/lodash-es/map.js +9 -0
  755. package/dist/node_modules/lodash-es/mapValues.js +11 -0
  756. package/dist/node_modules/lodash-es/max.js +8 -0
  757. package/dist/node_modules/lodash-es/memoize.js +15 -0
  758. package/dist/node_modules/lodash-es/merge.js +6 -0
  759. package/dist/node_modules/lodash-es/min.js +8 -0
  760. package/dist/node_modules/lodash-es/minBy.js +8 -0
  761. package/dist/node_modules/lodash-es/negate.js +16 -0
  762. package/dist/node_modules/lodash-es/noop.js +3 -0
  763. package/dist/node_modules/lodash-es/now.js +5 -0
  764. package/dist/node_modules/lodash-es/pick.js +6 -0
  765. package/dist/node_modules/lodash-es/pickBy.js +15 -0
  766. package/dist/node_modules/lodash-es/property.js +9 -0
  767. package/dist/node_modules/lodash-es/range.js +3 -0
  768. package/dist/node_modules/lodash-es/reduce.js +11 -0
  769. package/dist/node_modules/lodash-es/reject.js +10 -0
  770. package/dist/node_modules/lodash-es/size.js +14 -0
  771. package/dist/node_modules/lodash-es/some.js +11 -0
  772. package/dist/node_modules/lodash-es/sortBy.js +10 -0
  773. package/dist/node_modules/lodash-es/stubArray.js +5 -0
  774. package/dist/node_modules/lodash-es/stubFalse.js +5 -0
  775. package/dist/node_modules/lodash-es/toFinite.js +7 -0
  776. package/dist/node_modules/lodash-es/toInteger.js +7 -0
  777. package/dist/node_modules/lodash-es/toNumber.js +18 -0
  778. package/dist/node_modules/lodash-es/toPlainObject.js +7 -0
  779. package/dist/node_modules/lodash-es/toString.js +6 -0
  780. package/dist/node_modules/lodash-es/union.js +8 -0
  781. package/dist/node_modules/lodash-es/uniq.js +6 -0
  782. package/dist/node_modules/lodash-es/uniqBy.js +7 -0
  783. package/dist/node_modules/lodash-es/uniqueId.js +8 -0
  784. package/dist/node_modules/lodash-es/values.js +7 -0
  785. package/dist/node_modules/lodash-es/zipObject.js +7 -0
  786. package/dist/node_modules/longest-streak/index.js +7 -0
  787. package/dist/node_modules/markdown-table/index.js +57 -0
  788. package/dist/node_modules/marked/lib/marked.esm.js +1384 -0
  789. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +59 -0
  790. package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +5 -0
  791. package/dist/node_modules/mdast-util-gfm/lib/index.js +24 -0
  792. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +127 -0
  793. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +95 -0
  794. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +47 -0
  795. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +135 -0
  796. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +56 -0
  797. package/dist/node_modules/mdast-util-math/lib/index.js +142 -0
  798. package/dist/node_modules/mdast-util-phrasing/lib/index.js +20 -0
  799. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +10 -0
  800. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +7 -0
  801. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +34 -0
  802. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +22 -0
  803. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +23 -0
  804. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +22 -0
  805. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +8 -0
  806. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +21 -0
  807. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +26 -0
  808. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +42 -0
  809. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +17 -0
  810. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +21 -0
  811. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +39 -0
  812. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +16 -0
  813. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +24 -0
  814. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +5 -0
  815. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +7 -0
  816. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +23 -0
  817. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +4 -0
  818. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +7 -0
  819. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +6 -0
  820. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +9 -0
  821. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +6 -0
  822. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +6 -0
  823. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +6 -0
  824. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +6 -0
  825. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +6 -0
  826. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +6 -0
  827. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +6 -0
  828. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +6 -0
  829. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +4 -0
  830. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +36 -0
  831. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +4 -0
  832. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +10 -0
  833. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +6 -0
  834. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +10 -0
  835. package/dist/node_modules/mdast-util-to-string/lib/index.js +22 -0
  836. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.js +673 -0
  837. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VD42YOAC.js +3010 -0
  838. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-YG6GDRKO.js +2955 -0
  839. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js +6 -0
  840. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +8 -0
  841. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +1547 -0
  842. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +29 -0
  843. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ATLVNIR6.js +65 -0
  844. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-B4BG7PRW.js +3110 -0
  845. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.js +10 -0
  846. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DI55MBZ5.js +1994 -0
  847. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DR5Q36YT.js +135 -0
  848. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EXTU4WIE.js +9 -0
  849. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js +3 -0
  850. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HN2XXSSU.js +74 -0
  851. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.js +247 -0
  852. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.js +3516 -0
  853. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MI3HLSF2.js +1140 -0
  854. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.js +39 -0
  855. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QN33PNHL.js +23 -0
  856. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.js +497 -0
  857. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js +11 -0
  858. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.js +338 -0
  859. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.js +55 -0
  860. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-2ON5EDUG.js +26 -0
  861. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-WZHVMYZB.js +26 -0
  862. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +219 -0
  863. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-6UL2VRFP.js +263 -0
  864. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-PSM6KHXK.js +283 -0
  865. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.js +211 -0
  866. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-S2PKOQOG.js +129 -0
  867. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-Q2GNP2WA.js +1599 -0
  868. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-NV44I4VS.js +4128 -0
  869. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-JELNMOA3.js +1688 -0
  870. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-V2S2FVAM.js +621 -0
  871. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-HS3SLOUP.js +18 -0
  872. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-XKPGCS4Q.js +883 -0
  873. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-3W4ZIXB7.js +970 -0
  874. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-VGOIOE7T.js +931 -0
  875. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.js +117 -0
  876. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-AYHSOK5B.js +1970 -0
  877. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-UZGBJVZJ.js +2187 -0
  878. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-TZEHDZUN.js +519 -0
  879. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.js +3560 -0
  880. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FKZM4ZOC.js +220 -0
  881. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-4FDKWEC3.js +25 -0
  882. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.js +833 -0
  883. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-PRI3JC2R.js +1975 -0
  884. package/dist/node_modules/mermaid/dist/mermaid.core.js +662 -0
  885. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +16 -0
  886. package/dist/node_modules/micromark-extension-gfm/index.js +16 -0
  887. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +172 -0
  888. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +191 -0
  889. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +94 -0
  890. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +41 -0
  891. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +18 -0
  892. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +199 -0
  893. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +32 -0
  894. package/dist/node_modules/micromark-extension-math/lib/math-flow.js +72 -0
  895. package/dist/node_modules/micromark-extension-math/lib/math-text.js +44 -0
  896. package/dist/node_modules/micromark-extension-math/lib/syntax.js +9 -0
  897. package/dist/node_modules/micromark-factory-space/index.js +12 -0
  898. package/dist/node_modules/micromark-util-character/index.js +21 -0
  899. package/dist/node_modules/micromark-util-chunked/index.js +6 -0
  900. package/dist/node_modules/micromark-util-classify-character/index.js +6 -0
  901. package/dist/node_modules/micromark-util-combine-extensions/index.js +24 -0
  902. package/dist/node_modules/micromark-util-normalize-identifier/index.js +4 -0
  903. package/dist/node_modules/micromark-util-resolve-all/index.js +9 -0
  904. package/dist/node_modules/property-information/index.js +23 -0
  905. package/dist/node_modules/property-information/lib/aria.js +59 -0
  906. package/dist/node_modules/property-information/lib/find.js +29 -0
  907. package/dist/node_modules/property-information/lib/html.js +314 -0
  908. package/dist/node_modules/property-information/lib/normalize.js +4 -0
  909. package/dist/node_modules/property-information/lib/svg.js +560 -0
  910. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +5 -0
  911. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +4 -0
  912. package/dist/node_modules/property-information/lib/util/create.js +12 -0
  913. package/dist/node_modules/property-information/lib/util/defined-info.js +16 -0
  914. package/dist/node_modules/property-information/lib/util/info.js +7 -0
  915. package/dist/node_modules/property-information/lib/util/merge.js +7 -0
  916. package/dist/node_modules/property-information/lib/util/schema.js +7 -0
  917. package/dist/node_modules/property-information/lib/util/types.js +15 -0
  918. package/dist/node_modules/property-information/lib/xlink.js +17 -0
  919. package/dist/node_modules/property-information/lib/xml.js +13 -0
  920. package/dist/node_modules/property-information/lib/xmlns.js +12 -0
  921. package/dist/node_modules/rehype-katex/lib/index.js +60 -0
  922. package/dist/node_modules/remark-gfm/lib/index.js +8 -0
  923. package/dist/node_modules/remark-math/lib/index.js +8 -0
  924. package/dist/node_modules/roughjs/bundled/rough.esm.js +1350 -0
  925. package/dist/node_modules/space-separated-tokens/index.js +5 -0
  926. package/dist/node_modules/stylis/src/Enum.js +2 -0
  927. package/dist/node_modules/stylis/src/Parser.js +93 -0
  928. package/dist/node_modules/stylis/src/Serializer.js +19 -0
  929. package/dist/node_modules/stylis/src/Tokenizer.js +104 -0
  930. package/dist/node_modules/stylis/src/Utility.js +26 -0
  931. package/dist/node_modules/ts-dedent/esm/index.js +25 -0
  932. package/dist/node_modules/unist-util-find-after/lib/index.js +10 -0
  933. package/dist/node_modules/unist-util-is/lib/index.js +45 -0
  934. package/dist/node_modules/unist-util-visit/lib/index.js +10 -0
  935. package/dist/node_modules/unist-util-visit-parents/lib/color.js +4 -0
  936. package/dist/node_modules/unist-util-visit-parents/lib/index.js +35 -0
  937. package/dist/node_modules/uuid/dist/esm-browser/native.js +2 -0
  938. package/dist/node_modules/uuid/dist/esm-browser/rng.js +9 -0
  939. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +6 -0
  940. package/dist/node_modules/uuid/dist/esm-browser/v4.js +17 -0
  941. package/dist/node_modules/vscode-jsonrpc/browser.js +7 -0
  942. package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +52 -0
  943. package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +120 -0
  944. package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +337 -0
  945. package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +57 -0
  946. package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +647 -0
  947. package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +13 -0
  948. package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +64 -0
  949. package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +34 -0
  950. package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +235 -0
  951. package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +93 -0
  952. package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +129 -0
  953. package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +85 -0
  954. package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +161 -0
  955. package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +18 -0
  956. package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +44 -0
  957. package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +58 -0
  958. package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +28 -0
  959. package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +36 -0
  960. package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +12 -0
  961. package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +31 -0
  962. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +19 -0
  963. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +15 -0
  964. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +11 -0
  965. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +11 -0
  966. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +33 -0
  967. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +35 -0
  968. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +15 -0
  969. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +11 -0
  970. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +19 -0
  971. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +11 -0
  972. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +15 -0
  973. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +674 -0
  974. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +11 -0
  975. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +19 -0
  976. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +126 -0
  977. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +24 -0
  978. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +11 -0
  979. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +31 -0
  980. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +11 -0
  981. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +11 -0
  982. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +19 -0
  983. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +15 -0
  984. package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +42 -0
  985. package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +138 -0
  986. package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +1084 -0
  987. package/dist/node_modules/vscode-uri/lib/esm/index.js +373 -0
  988. package/dist/node_modules/web-namespaces/index.js +9 -0
  989. package/dist/pages/WorkspacePage.js +63 -0
  990. package/dist/pages/WorkspacesPage.js +36 -0
  991. package/package.json +32 -32
@@ -0,0 +1,3010 @@
1
+ import { __name, log } from "./chunk-AGHRB4JF.js";
2
+ import rgba_default from "../../../../khroma/dist/methods/rgba.js";
3
+ import channel_default from "../../../../khroma/dist/methods/channel.js";
4
+ import { clear, common_default, configureSvgSize, evaluate, getConfig, getConfig2, getUrl, sanitizeText } from "./chunk-ABZYJK2D.js";
5
+ import select_default from "../../../../d3-selection/src/select.js";
6
+ import line_default from "../../../../d3-shape/src/line.js";
7
+ import basis_default from "../../../../d3-shape/src/curve/basis.js";
8
+ import "../../../../d3/src/index.js";
9
+ import { getLineFunctionsWithOffset } from "./chunk-HN2XXSSU.js";
10
+ import { getSubGraphTitleMargins } from "./chunk-CVBHYZKI.js";
11
+ import { decodeEntities, getStylesFromArray, utils_default } from "./chunk-S3R3BYOJ.js";
12
+ import { createText, replaceIconSubstring } from "./chunk-JA3XYJ7Z.js";
13
+ import clone_default from "../../../../lodash-es/clone.js";
14
+ import { getIconStyles } from "./chunk-FMBD7UC4.js";
15
+ import { Graph } from "../../../../dagre-d3-es/src/graphlib/graph.js";
16
+ import "../../../../dagre-d3-es/src/graphlib/index.js";
17
+ var parser = (function() {
18
+ var S = /* @__PURE__ */ __name(function(e, S, C, w) {
19
+ for (C ||= {}, w = e.length; w--; C[e[w]] = S);
20
+ return C;
21
+ }, "o"), C = [1, 15], w = [1, 7], T = [1, 13], E = [1, 14], D = [1, 19], O = [1, 16], k = [1, 17], A = [1, 18], j = [8, 30], M = [
22
+ 8,
23
+ 10,
24
+ 21,
25
+ 28,
26
+ 29,
27
+ 30,
28
+ 31,
29
+ 39,
30
+ 43,
31
+ 46
32
+ ], N = [1, 23], P = [1, 24], F = [
33
+ 8,
34
+ 10,
35
+ 15,
36
+ 16,
37
+ 21,
38
+ 28,
39
+ 29,
40
+ 30,
41
+ 31,
42
+ 39,
43
+ 43,
44
+ 46
45
+ ], I = [
46
+ 8,
47
+ 10,
48
+ 15,
49
+ 16,
50
+ 21,
51
+ 27,
52
+ 28,
53
+ 29,
54
+ 30,
55
+ 31,
56
+ 39,
57
+ 43,
58
+ 46
59
+ ], L = [1, 49], R = {
60
+ trace: /* @__PURE__ */ __name(function() {}, "trace"),
61
+ yy: {},
62
+ symbols_: {
63
+ error: 2,
64
+ spaceLines: 3,
65
+ SPACELINE: 4,
66
+ NL: 5,
67
+ separator: 6,
68
+ SPACE: 7,
69
+ EOF: 8,
70
+ start: 9,
71
+ BLOCK_DIAGRAM_KEY: 10,
72
+ document: 11,
73
+ stop: 12,
74
+ statement: 13,
75
+ link: 14,
76
+ LINK: 15,
77
+ START_LINK: 16,
78
+ LINK_LABEL: 17,
79
+ STR: 18,
80
+ nodeStatement: 19,
81
+ columnsStatement: 20,
82
+ SPACE_BLOCK: 21,
83
+ blockStatement: 22,
84
+ classDefStatement: 23,
85
+ cssClassStatement: 24,
86
+ styleStatement: 25,
87
+ node: 26,
88
+ SIZE: 27,
89
+ COLUMNS: 28,
90
+ "id-block": 29,
91
+ end: 30,
92
+ NODE_ID: 31,
93
+ nodeShapeNLabel: 32,
94
+ dirList: 33,
95
+ DIR: 34,
96
+ NODE_DSTART: 35,
97
+ NODE_DEND: 36,
98
+ BLOCK_ARROW_START: 37,
99
+ BLOCK_ARROW_END: 38,
100
+ classDef: 39,
101
+ CLASSDEF_ID: 40,
102
+ CLASSDEF_STYLEOPTS: 41,
103
+ DEFAULT: 42,
104
+ class: 43,
105
+ CLASSENTITY_IDS: 44,
106
+ STYLECLASS: 45,
107
+ style: 46,
108
+ STYLE_ENTITY_IDS: 47,
109
+ STYLE_DEFINITION_DATA: 48,
110
+ $accept: 0,
111
+ $end: 1
112
+ },
113
+ terminals_: {
114
+ 2: "error",
115
+ 4: "SPACELINE",
116
+ 5: "NL",
117
+ 7: "SPACE",
118
+ 8: "EOF",
119
+ 10: "BLOCK_DIAGRAM_KEY",
120
+ 15: "LINK",
121
+ 16: "START_LINK",
122
+ 17: "LINK_LABEL",
123
+ 18: "STR",
124
+ 21: "SPACE_BLOCK",
125
+ 27: "SIZE",
126
+ 28: "COLUMNS",
127
+ 29: "id-block",
128
+ 30: "end",
129
+ 31: "NODE_ID",
130
+ 34: "DIR",
131
+ 35: "NODE_DSTART",
132
+ 36: "NODE_DEND",
133
+ 37: "BLOCK_ARROW_START",
134
+ 38: "BLOCK_ARROW_END",
135
+ 39: "classDef",
136
+ 40: "CLASSDEF_ID",
137
+ 41: "CLASSDEF_STYLEOPTS",
138
+ 42: "DEFAULT",
139
+ 43: "class",
140
+ 44: "CLASSENTITY_IDS",
141
+ 45: "STYLECLASS",
142
+ 46: "style",
143
+ 47: "STYLE_ENTITY_IDS",
144
+ 48: "STYLE_DEFINITION_DATA"
145
+ },
146
+ productions_: [
147
+ 0,
148
+ [3, 1],
149
+ [3, 2],
150
+ [3, 2],
151
+ [6, 1],
152
+ [6, 1],
153
+ [6, 1],
154
+ [9, 3],
155
+ [12, 1],
156
+ [12, 1],
157
+ [12, 2],
158
+ [12, 2],
159
+ [11, 1],
160
+ [11, 2],
161
+ [14, 1],
162
+ [14, 4],
163
+ [13, 1],
164
+ [13, 1],
165
+ [13, 1],
166
+ [13, 1],
167
+ [13, 1],
168
+ [13, 1],
169
+ [13, 1],
170
+ [19, 3],
171
+ [19, 2],
172
+ [19, 1],
173
+ [20, 1],
174
+ [22, 4],
175
+ [22, 3],
176
+ [26, 1],
177
+ [26, 2],
178
+ [33, 1],
179
+ [33, 2],
180
+ [32, 3],
181
+ [32, 4],
182
+ [23, 3],
183
+ [23, 3],
184
+ [24, 3],
185
+ [25, 3]
186
+ ],
187
+ performAction: /* @__PURE__ */ __name(function(e, S, C, w, T, E, D) {
188
+ var O = E.length - 1;
189
+ switch (T) {
190
+ case 4:
191
+ w.getLogger().debug("Rule: separator (NL) ");
192
+ break;
193
+ case 5:
194
+ w.getLogger().debug("Rule: separator (Space) ");
195
+ break;
196
+ case 6:
197
+ w.getLogger().debug("Rule: separator (EOF) ");
198
+ break;
199
+ case 7:
200
+ w.getLogger().debug("Rule: hierarchy: ", E[O - 1]), w.setHierarchy(E[O - 1]);
201
+ break;
202
+ case 8:
203
+ w.getLogger().debug("Stop NL ");
204
+ break;
205
+ case 9:
206
+ w.getLogger().debug("Stop EOF ");
207
+ break;
208
+ case 10:
209
+ w.getLogger().debug("Stop NL2 ");
210
+ break;
211
+ case 11:
212
+ w.getLogger().debug("Stop EOF2 ");
213
+ break;
214
+ case 12:
215
+ w.getLogger().debug("Rule: statement: ", E[O]), typeof E[O].length == "number" ? this.$ = E[O] : this.$ = [E[O]];
216
+ break;
217
+ case 13:
218
+ w.getLogger().debug("Rule: statement #2: ", E[O - 1]), this.$ = [E[O - 1]].concat(E[O]);
219
+ break;
220
+ case 14:
221
+ w.getLogger().debug("Rule: link: ", E[O], e), this.$ = {
222
+ edgeTypeStr: E[O],
223
+ label: ""
224
+ };
225
+ break;
226
+ case 15:
227
+ w.getLogger().debug("Rule: LABEL link: ", E[O - 3], E[O - 1], E[O]), this.$ = {
228
+ edgeTypeStr: E[O],
229
+ label: E[O - 1]
230
+ };
231
+ break;
232
+ case 18:
233
+ let S = parseInt(E[O]);
234
+ this.$ = {
235
+ id: w.generateId(),
236
+ type: "space",
237
+ label: "",
238
+ width: S,
239
+ children: []
240
+ };
241
+ break;
242
+ case 23:
243
+ w.getLogger().debug("Rule: (nodeStatement link node) ", E[O - 2], E[O - 1], E[O], " typestr: ", E[O - 1].edgeTypeStr);
244
+ let C = w.edgeStrToEdgeData(E[O - 1].edgeTypeStr);
245
+ this.$ = [
246
+ {
247
+ id: E[O - 2].id,
248
+ label: E[O - 2].label,
249
+ type: E[O - 2].type,
250
+ directions: E[O - 2].directions
251
+ },
252
+ {
253
+ id: E[O - 2].id + "-" + E[O].id,
254
+ start: E[O - 2].id,
255
+ end: E[O].id,
256
+ label: E[O - 1].label,
257
+ type: "edge",
258
+ directions: E[O].directions,
259
+ arrowTypeEnd: C,
260
+ arrowTypeStart: "arrow_open"
261
+ },
262
+ {
263
+ id: E[O].id,
264
+ label: E[O].label,
265
+ type: w.typeStr2Type(E[O].typeStr),
266
+ directions: E[O].directions
267
+ }
268
+ ];
269
+ break;
270
+ case 24:
271
+ w.getLogger().debug("Rule: nodeStatement (abc88 node size) ", E[O - 1], E[O]), this.$ = {
272
+ id: E[O - 1].id,
273
+ label: E[O - 1].label,
274
+ type: w.typeStr2Type(E[O - 1].typeStr),
275
+ directions: E[O - 1].directions,
276
+ widthInColumns: parseInt(E[O], 10)
277
+ };
278
+ break;
279
+ case 25:
280
+ w.getLogger().debug("Rule: nodeStatement (node) ", E[O]), this.$ = {
281
+ id: E[O].id,
282
+ label: E[O].label,
283
+ type: w.typeStr2Type(E[O].typeStr),
284
+ directions: E[O].directions,
285
+ widthInColumns: 1
286
+ };
287
+ break;
288
+ case 26:
289
+ w.getLogger().debug("APA123", this ? this : "na"), w.getLogger().debug("COLUMNS: ", E[O]), this.$ = {
290
+ type: "column-setting",
291
+ columns: E[O] === "auto" ? -1 : parseInt(E[O])
292
+ };
293
+ break;
294
+ case 27:
295
+ w.getLogger().debug("Rule: id-block statement : ", E[O - 2], E[O - 1]), w.generateId(), this.$ = {
296
+ ...E[O - 2],
297
+ type: "composite",
298
+ children: E[O - 1]
299
+ };
300
+ break;
301
+ case 28:
302
+ w.getLogger().debug("Rule: blockStatement : ", E[O - 2], E[O - 1], E[O]), this.$ = {
303
+ id: w.generateId(),
304
+ type: "composite",
305
+ label: "",
306
+ children: E[O - 1]
307
+ };
308
+ break;
309
+ case 29:
310
+ w.getLogger().debug("Rule: node (NODE_ID separator): ", E[O]), this.$ = { id: E[O] };
311
+ break;
312
+ case 30:
313
+ w.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", E[O - 1], E[O]), this.$ = {
314
+ id: E[O - 1],
315
+ label: E[O].label,
316
+ typeStr: E[O].typeStr,
317
+ directions: E[O].directions
318
+ };
319
+ break;
320
+ case 31:
321
+ w.getLogger().debug("Rule: dirList: ", E[O]), this.$ = [E[O]];
322
+ break;
323
+ case 32:
324
+ w.getLogger().debug("Rule: dirList: ", E[O - 1], E[O]), this.$ = [E[O - 1]].concat(E[O]);
325
+ break;
326
+ case 33:
327
+ w.getLogger().debug("Rule: nodeShapeNLabel: ", E[O - 2], E[O - 1], E[O]), this.$ = {
328
+ typeStr: E[O - 2] + E[O],
329
+ label: E[O - 1]
330
+ };
331
+ break;
332
+ case 34:
333
+ w.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", E[O - 3], E[O - 2], " #3:", E[O - 1], E[O]), this.$ = {
334
+ typeStr: E[O - 3] + E[O],
335
+ label: E[O - 2],
336
+ directions: E[O - 1]
337
+ };
338
+ break;
339
+ case 35:
340
+ case 36:
341
+ this.$ = {
342
+ type: "classDef",
343
+ id: E[O - 1].trim(),
344
+ css: E[O].trim()
345
+ };
346
+ break;
347
+ case 37:
348
+ this.$ = {
349
+ type: "applyClass",
350
+ id: E[O - 1].trim(),
351
+ styleClass: E[O].trim()
352
+ };
353
+ break;
354
+ case 38:
355
+ this.$ = {
356
+ type: "applyStyles",
357
+ id: E[O - 1].trim(),
358
+ stylesStr: E[O].trim()
359
+ };
360
+ break;
361
+ }
362
+ }, "anonymous"),
363
+ table: [
364
+ {
365
+ 9: 1,
366
+ 10: [1, 2]
367
+ },
368
+ { 1: [3] },
369
+ {
370
+ 10: C,
371
+ 11: 3,
372
+ 13: 4,
373
+ 19: 5,
374
+ 20: 6,
375
+ 21: w,
376
+ 22: 8,
377
+ 23: 9,
378
+ 24: 10,
379
+ 25: 11,
380
+ 26: 12,
381
+ 28: T,
382
+ 29: E,
383
+ 31: D,
384
+ 39: O,
385
+ 43: k,
386
+ 46: A
387
+ },
388
+ { 8: [1, 20] },
389
+ S(j, [2, 12], {
390
+ 13: 4,
391
+ 19: 5,
392
+ 20: 6,
393
+ 22: 8,
394
+ 23: 9,
395
+ 24: 10,
396
+ 25: 11,
397
+ 26: 12,
398
+ 11: 21,
399
+ 10: C,
400
+ 21: w,
401
+ 28: T,
402
+ 29: E,
403
+ 31: D,
404
+ 39: O,
405
+ 43: k,
406
+ 46: A
407
+ }),
408
+ S(M, [2, 16], {
409
+ 14: 22,
410
+ 15: N,
411
+ 16: P
412
+ }),
413
+ S(M, [2, 17]),
414
+ S(M, [2, 18]),
415
+ S(M, [2, 19]),
416
+ S(M, [2, 20]),
417
+ S(M, [2, 21]),
418
+ S(M, [2, 22]),
419
+ S(F, [2, 25], { 27: [1, 25] }),
420
+ S(M, [2, 26]),
421
+ {
422
+ 19: 26,
423
+ 26: 12,
424
+ 31: D
425
+ },
426
+ {
427
+ 10: C,
428
+ 11: 27,
429
+ 13: 4,
430
+ 19: 5,
431
+ 20: 6,
432
+ 21: w,
433
+ 22: 8,
434
+ 23: 9,
435
+ 24: 10,
436
+ 25: 11,
437
+ 26: 12,
438
+ 28: T,
439
+ 29: E,
440
+ 31: D,
441
+ 39: O,
442
+ 43: k,
443
+ 46: A
444
+ },
445
+ {
446
+ 40: [1, 28],
447
+ 42: [1, 29]
448
+ },
449
+ { 44: [1, 30] },
450
+ { 47: [1, 31] },
451
+ S(I, [2, 29], {
452
+ 32: 32,
453
+ 35: [1, 33],
454
+ 37: [1, 34]
455
+ }),
456
+ { 1: [2, 7] },
457
+ S(j, [2, 13]),
458
+ {
459
+ 26: 35,
460
+ 31: D
461
+ },
462
+ { 31: [2, 14] },
463
+ { 17: [1, 36] },
464
+ S(F, [2, 24]),
465
+ {
466
+ 10: C,
467
+ 11: 37,
468
+ 13: 4,
469
+ 14: 22,
470
+ 15: N,
471
+ 16: P,
472
+ 19: 5,
473
+ 20: 6,
474
+ 21: w,
475
+ 22: 8,
476
+ 23: 9,
477
+ 24: 10,
478
+ 25: 11,
479
+ 26: 12,
480
+ 28: T,
481
+ 29: E,
482
+ 31: D,
483
+ 39: O,
484
+ 43: k,
485
+ 46: A
486
+ },
487
+ { 30: [1, 38] },
488
+ { 41: [1, 39] },
489
+ { 41: [1, 40] },
490
+ { 45: [1, 41] },
491
+ { 48: [1, 42] },
492
+ S(I, [2, 30]),
493
+ { 18: [1, 43] },
494
+ { 18: [1, 44] },
495
+ S(F, [2, 23]),
496
+ { 18: [1, 45] },
497
+ { 30: [1, 46] },
498
+ S(M, [2, 28]),
499
+ S(M, [2, 35]),
500
+ S(M, [2, 36]),
501
+ S(M, [2, 37]),
502
+ S(M, [2, 38]),
503
+ { 36: [1, 47] },
504
+ {
505
+ 33: 48,
506
+ 34: L
507
+ },
508
+ { 15: [1, 50] },
509
+ S(M, [2, 27]),
510
+ S(I, [2, 33]),
511
+ { 38: [1, 51] },
512
+ {
513
+ 33: 52,
514
+ 34: L,
515
+ 38: [2, 31]
516
+ },
517
+ { 31: [2, 15] },
518
+ S(I, [2, 34]),
519
+ { 38: [2, 32] }
520
+ ],
521
+ defaultActions: {
522
+ 20: [2, 7],
523
+ 23: [2, 14],
524
+ 50: [2, 15],
525
+ 52: [2, 32]
526
+ },
527
+ parseError: /* @__PURE__ */ __name(function(e, S) {
528
+ if (S.recoverable) this.trace(e);
529
+ else {
530
+ var C = Error(e);
531
+ throw C.hash = S, C;
532
+ }
533
+ }, "parseError"),
534
+ parse: /* @__PURE__ */ __name(function(S) {
535
+ var C = this, w = [0], T = [], E = [null], D = [], O = this.table, k = "", A = 0, j = 0, M = 0, N = 2, P = 1, F = D.slice.call(arguments, 1), I = Object.create(this.lexer), L = { yy: {} };
536
+ for (var R in this.yy) Object.prototype.hasOwnProperty.call(this.yy, R) && (L.yy[R] = this.yy[R]);
537
+ I.setInput(S, L.yy), L.yy.lexer = I, L.yy.parser = this, I.yylloc === void 0 && (I.yylloc = {});
538
+ var z = I.yylloc;
539
+ D.push(z);
540
+ var B = I.options && I.options.ranges;
541
+ typeof L.yy.parseError == "function" ? this.parseError = L.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
542
+ function V(e) {
543
+ w.length -= 2 * e, E.length -= e, D.length -= e;
544
+ }
545
+ __name(V, "popStack");
546
+ function H() {
547
+ var e = T.pop() || I.lex() || P;
548
+ return typeof e != "number" && (e instanceof Array && (T = e, e = T.pop()), e = C.symbols_[e] || e), e;
549
+ }
550
+ __name(H, "lex");
551
+ for (var U, W, G, K, q, J = {}, Y, X, Z, Q;;) {
552
+ if (G = w[w.length - 1], this.defaultActions[G] ? K = this.defaultActions[G] : (U ??= H(), K = O[G] && O[G][U]), K === void 0 || !K.length || !K[0]) {
553
+ var $ = "";
554
+ for (Y in Q = [], O[G]) this.terminals_[Y] && Y > N && Q.push("'" + this.terminals_[Y] + "'");
555
+ $ = I.showPosition ? "Parse error on line " + (A + 1) + ":\n" + I.showPosition() + "\nExpecting " + Q.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : "Parse error on line " + (A + 1) + ": Unexpected " + (U == P ? "end of input" : "'" + (this.terminals_[U] || U) + "'"), this.parseError($, {
556
+ text: I.match,
557
+ token: this.terminals_[U] || U,
558
+ line: I.yylineno,
559
+ loc: z,
560
+ expected: Q
561
+ });
562
+ }
563
+ if (K[0] instanceof Array && K.length > 1) throw Error("Parse Error: multiple actions possible at state: " + G + ", token: " + U);
564
+ switch (K[0]) {
565
+ case 1:
566
+ w.push(U), E.push(I.yytext), D.push(I.yylloc), w.push(K[1]), U = null, W ? (U = W, W = null) : (j = I.yyleng, k = I.yytext, A = I.yylineno, z = I.yylloc, M > 0 && M--);
567
+ break;
568
+ case 2:
569
+ if (X = this.productions_[K[1]][1], J.$ = E[E.length - X], J._$ = {
570
+ first_line: D[D.length - (X || 1)].first_line,
571
+ last_line: D[D.length - 1].last_line,
572
+ first_column: D[D.length - (X || 1)].first_column,
573
+ last_column: D[D.length - 1].last_column
574
+ }, B && (J._$.range = [D[D.length - (X || 1)].range[0], D[D.length - 1].range[1]]), q = this.performAction.apply(J, [
575
+ k,
576
+ j,
577
+ A,
578
+ L.yy,
579
+ K[1],
580
+ E,
581
+ D
582
+ ].concat(F)), q !== void 0) return q;
583
+ X && (w = w.slice(0, -1 * X * 2), E = E.slice(0, -1 * X), D = D.slice(0, -1 * X)), w.push(this.productions_[K[1]][0]), E.push(J.$), D.push(J._$), Z = O[w[w.length - 2]][w[w.length - 1]], w.push(Z);
584
+ break;
585
+ case 3: return !0;
586
+ }
587
+ }
588
+ return !0;
589
+ }, "parse")
590
+ };
591
+ R.lexer = /* @__PURE__ */ (function() {
592
+ return {
593
+ EOF: 1,
594
+ parseError: /* @__PURE__ */ __name(function(e, S) {
595
+ if (this.yy.parser) this.yy.parser.parseError(e, S);
596
+ else throw Error(e);
597
+ }, "parseError"),
598
+ setInput: /* @__PURE__ */ __name(function(e, S) {
599
+ return this.yy = S || 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 = {
600
+ first_line: 1,
601
+ first_column: 0,
602
+ last_line: 1,
603
+ last_column: 0
604
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
605
+ }, "setInput"),
606
+ input: /* @__PURE__ */ __name(function() {
607
+ var e = this._input[0];
608
+ 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;
609
+ }, "input"),
610
+ unput: /* @__PURE__ */ __name(function(e) {
611
+ var S = e.length, C = e.split(/(?:\r\n?|\n)/g);
612
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - S), this.offset -= S;
613
+ var w = this.match.split(/(?:\r\n?|\n)/g);
614
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), C.length - 1 && (this.yylineno -= C.length - 1);
615
+ var T = this.yylloc.range;
616
+ return this.yylloc = {
617
+ first_line: this.yylloc.first_line,
618
+ last_line: this.yylineno + 1,
619
+ first_column: this.yylloc.first_column,
620
+ last_column: C ? (C.length === w.length ? this.yylloc.first_column : 0) + w[w.length - C.length].length - C[0].length : this.yylloc.first_column - S
621
+ }, this.options.ranges && (this.yylloc.range = [T[0], T[0] + this.yyleng - S]), this.yyleng = this.yytext.length, this;
622
+ }, "unput"),
623
+ more: /* @__PURE__ */ __name(function() {
624
+ return this._more = !0, this;
625
+ }, "more"),
626
+ reject: /* @__PURE__ */ __name(function() {
627
+ if (this.options.backtrack_lexer) this._backtrack = !0;
628
+ 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(), {
629
+ text: "",
630
+ token: null,
631
+ line: this.yylineno
632
+ });
633
+ return this;
634
+ }, "reject"),
635
+ less: /* @__PURE__ */ __name(function(e) {
636
+ this.unput(this.match.slice(e));
637
+ }, "less"),
638
+ pastInput: /* @__PURE__ */ __name(function() {
639
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
640
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
641
+ }, "pastInput"),
642
+ upcomingInput: /* @__PURE__ */ __name(function() {
643
+ var e = this.match;
644
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
645
+ }, "upcomingInput"),
646
+ showPosition: /* @__PURE__ */ __name(function() {
647
+ var e = this.pastInput(), S = Array(e.length + 1).join("-");
648
+ return e + this.upcomingInput() + "\n" + S + "^";
649
+ }, "showPosition"),
650
+ test_match: /* @__PURE__ */ __name(function(e, S) {
651
+ var C, w, T;
652
+ if (this.options.backtrack_lexer && (T = {
653
+ yylineno: this.yylineno,
654
+ yylloc: {
655
+ first_line: this.yylloc.first_line,
656
+ last_line: this.last_line,
657
+ first_column: this.yylloc.first_column,
658
+ last_column: this.yylloc.last_column
659
+ },
660
+ yytext: this.yytext,
661
+ match: this.match,
662
+ matches: this.matches,
663
+ matched: this.matched,
664
+ yyleng: this.yyleng,
665
+ offset: this.offset,
666
+ _more: this._more,
667
+ _input: this._input,
668
+ yy: this.yy,
669
+ conditionStack: this.conditionStack.slice(0),
670
+ done: this.done
671
+ }, this.options.ranges && (T.yylloc.range = this.yylloc.range.slice(0))), w = e[0].match(/(?:\r\n?|\n).*/g), w && (this.yylineno += w.length), this.yylloc = {
672
+ first_line: this.yylloc.last_line,
673
+ last_line: this.yylineno + 1,
674
+ first_column: this.yylloc.last_column,
675
+ last_column: w ? w[w.length - 1].length - w[w.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
676
+ }, 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], C = this.performAction.call(this, this.yy, this, S, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), C) return C;
677
+ if (this._backtrack) {
678
+ for (var E in T) this[E] = T[E];
679
+ return !1;
680
+ }
681
+ return !1;
682
+ }, "test_match"),
683
+ next: /* @__PURE__ */ __name(function() {
684
+ if (this.done) return this.EOF;
685
+ this._input || (this.done = !0);
686
+ var e, S, C, w;
687
+ this._more || (this.yytext = "", this.match = "");
688
+ for (var T = this._currentRules(), E = 0; E < T.length; E++) if (C = this._input.match(this.rules[T[E]]), C && (!S || C[0].length > S[0].length)) {
689
+ if (S = C, w = E, this.options.backtrack_lexer) {
690
+ if (e = this.test_match(C, T[E]), e !== !1) return e;
691
+ if (this._backtrack) {
692
+ S = !1;
693
+ continue;
694
+ } else return !1;
695
+ } else if (!this.options.flex) break;
696
+ }
697
+ return S ? (e = this.test_match(S, T[w]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
698
+ text: "",
699
+ token: null,
700
+ line: this.yylineno
701
+ });
702
+ }, "next"),
703
+ lex: /* @__PURE__ */ __name(function() {
704
+ return this.next() || this.lex();
705
+ }, "lex"),
706
+ begin: /* @__PURE__ */ __name(function(e) {
707
+ this.conditionStack.push(e);
708
+ }, "begin"),
709
+ popState: /* @__PURE__ */ __name(function() {
710
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
711
+ }, "popState"),
712
+ _currentRules: /* @__PURE__ */ __name(function() {
713
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
714
+ }, "_currentRules"),
715
+ topState: /* @__PURE__ */ __name(function(e) {
716
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
717
+ }, "topState"),
718
+ pushState: /* @__PURE__ */ __name(function(e) {
719
+ this.begin(e);
720
+ }, "pushState"),
721
+ stateStackSize: /* @__PURE__ */ __name(function() {
722
+ return this.conditionStack.length;
723
+ }, "stateStackSize"),
724
+ options: {},
725
+ performAction: /* @__PURE__ */ __name(function(e, S, C, w) {
726
+ switch (C) {
727
+ case 0: return e.getLogger().debug("Found block-beta"), 10;
728
+ case 1: return e.getLogger().debug("Found id-block"), 29;
729
+ case 2: return e.getLogger().debug("Found block"), 10;
730
+ case 3:
731
+ e.getLogger().debug(".", S.yytext);
732
+ break;
733
+ case 4:
734
+ e.getLogger().debug("_", S.yytext);
735
+ break;
736
+ case 5: return 5;
737
+ case 6: return S.yytext = -1, 28;
738
+ case 7: return S.yytext = S.yytext.replace(/columns\s+/, ""), e.getLogger().debug("COLUMNS (LEX)", S.yytext), 28;
739
+ case 8:
740
+ this.pushState("md_string");
741
+ break;
742
+ case 9: return "MD_STR";
743
+ case 10:
744
+ this.popState();
745
+ break;
746
+ case 11:
747
+ this.pushState("string");
748
+ break;
749
+ case 12:
750
+ e.getLogger().debug("LEX: POPPING STR:", S.yytext), this.popState();
751
+ break;
752
+ case 13: return e.getLogger().debug("LEX: STR end:", S.yytext), "STR";
753
+ case 14: return S.yytext = S.yytext.replace(/space\:/, ""), e.getLogger().debug("SPACE NUM (LEX)", S.yytext), 21;
754
+ case 15: return S.yytext = "1", e.getLogger().debug("COLUMNS (LEX)", S.yytext), 21;
755
+ case 16: return 42;
756
+ case 17: return "LINKSTYLE";
757
+ case 18: return "INTERPOLATE";
758
+ case 19: return this.pushState("CLASSDEF"), 39;
759
+ case 20: return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
760
+ case 21: return this.popState(), this.pushState("CLASSDEFID"), 40;
761
+ case 22: return this.popState(), 41;
762
+ case 23: return this.pushState("CLASS"), 43;
763
+ case 24: return this.popState(), this.pushState("CLASS_STYLE"), 44;
764
+ case 25: return this.popState(), 45;
765
+ case 26: return this.pushState("STYLE_STMNT"), 46;
766
+ case 27: return this.popState(), this.pushState("STYLE_DEFINITION"), 47;
767
+ case 28: return this.popState(), 48;
768
+ case 29: return this.pushState("acc_title"), "acc_title";
769
+ case 30: return this.popState(), "acc_title_value";
770
+ case 31: return this.pushState("acc_descr"), "acc_descr";
771
+ case 32: return this.popState(), "acc_descr_value";
772
+ case 33:
773
+ this.pushState("acc_descr_multiline");
774
+ break;
775
+ case 34:
776
+ this.popState();
777
+ break;
778
+ case 35: return "acc_descr_multiline_value";
779
+ case 36: return 30;
780
+ case 37: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
781
+ case 38: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
782
+ case 39: return this.popState(), e.getLogger().debug("Lex: ))"), "NODE_DEND";
783
+ case 40: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
784
+ case 41: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
785
+ case 42: return this.popState(), e.getLogger().debug("Lex: (-"), "NODE_DEND";
786
+ case 43: return this.popState(), e.getLogger().debug("Lex: -)"), "NODE_DEND";
787
+ case 44: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
788
+ case 45: return this.popState(), e.getLogger().debug("Lex: ]]"), "NODE_DEND";
789
+ case 46: return this.popState(), e.getLogger().debug("Lex: ("), "NODE_DEND";
790
+ case 47: return this.popState(), e.getLogger().debug("Lex: ])"), "NODE_DEND";
791
+ case 48: return this.popState(), e.getLogger().debug("Lex: /]"), "NODE_DEND";
792
+ case 49: return this.popState(), e.getLogger().debug("Lex: /]"), "NODE_DEND";
793
+ case 50: return this.popState(), e.getLogger().debug("Lex: )]"), "NODE_DEND";
794
+ case 51: return this.popState(), e.getLogger().debug("Lex: )"), "NODE_DEND";
795
+ case 52: return this.popState(), e.getLogger().debug("Lex: ]>"), "NODE_DEND";
796
+ case 53: return this.popState(), e.getLogger().debug("Lex: ]"), "NODE_DEND";
797
+ case 54: return e.getLogger().debug("Lexa: -)"), this.pushState("NODE"), 35;
798
+ case 55: return e.getLogger().debug("Lexa: (-"), this.pushState("NODE"), 35;
799
+ case 56: return e.getLogger().debug("Lexa: ))"), this.pushState("NODE"), 35;
800
+ case 57: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
801
+ case 58: return e.getLogger().debug("Lex: ((("), this.pushState("NODE"), 35;
802
+ case 59: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
803
+ case 60: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
804
+ case 61: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
805
+ case 62: return e.getLogger().debug("Lexc: >"), this.pushState("NODE"), 35;
806
+ case 63: return e.getLogger().debug("Lexa: (["), this.pushState("NODE"), 35;
807
+ case 64: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
808
+ case 65: return this.pushState("NODE"), 35;
809
+ case 66: return this.pushState("NODE"), 35;
810
+ case 67: return this.pushState("NODE"), 35;
811
+ case 68: return this.pushState("NODE"), 35;
812
+ case 69: return this.pushState("NODE"), 35;
813
+ case 70: return this.pushState("NODE"), 35;
814
+ case 71: return this.pushState("NODE"), 35;
815
+ case 72: return e.getLogger().debug("Lexa: ["), this.pushState("NODE"), 35;
816
+ case 73: return this.pushState("BLOCK_ARROW"), e.getLogger().debug("LEX ARR START"), 37;
817
+ case 74: return e.getLogger().debug("Lex: NODE_ID", S.yytext), 31;
818
+ case 75: return e.getLogger().debug("Lex: EOF", S.yytext), 8;
819
+ case 76:
820
+ this.pushState("md_string");
821
+ break;
822
+ case 77:
823
+ this.pushState("md_string");
824
+ break;
825
+ case 78: return "NODE_DESCR";
826
+ case 79:
827
+ this.popState();
828
+ break;
829
+ case 80:
830
+ e.getLogger().debug("Lex: Starting string"), this.pushState("string");
831
+ break;
832
+ case 81:
833
+ e.getLogger().debug("LEX ARR: Starting string"), this.pushState("string");
834
+ break;
835
+ case 82: return e.getLogger().debug("LEX: NODE_DESCR:", S.yytext), "NODE_DESCR";
836
+ case 83:
837
+ e.getLogger().debug("LEX POPPING"), this.popState();
838
+ break;
839
+ case 84:
840
+ e.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR");
841
+ break;
842
+ case 85: return S.yytext = S.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (right): dir:", S.yytext), "DIR";
843
+ case 86: return S.yytext = S.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (left):", S.yytext), "DIR";
844
+ case 87: return S.yytext = S.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (x):", S.yytext), "DIR";
845
+ case 88: return S.yytext = S.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (y):", S.yytext), "DIR";
846
+ case 89: return S.yytext = S.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (up):", S.yytext), "DIR";
847
+ case 90: return S.yytext = S.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (down):", S.yytext), "DIR";
848
+ case 91: return S.yytext = "]>", e.getLogger().debug("Lex (ARROW_DIR end):", S.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END";
849
+ case 92: return e.getLogger().debug("Lex: LINK", "#" + S.yytext + "#"), 15;
850
+ case 93: return e.getLogger().debug("Lex: LINK", S.yytext), 15;
851
+ case 94: return e.getLogger().debug("Lex: LINK", S.yytext), 15;
852
+ case 95: return e.getLogger().debug("Lex: LINK", S.yytext), 15;
853
+ case 96: return e.getLogger().debug("Lex: START_LINK", S.yytext), this.pushState("LLABEL"), 16;
854
+ case 97: return e.getLogger().debug("Lex: START_LINK", S.yytext), this.pushState("LLABEL"), 16;
855
+ case 98: return e.getLogger().debug("Lex: START_LINK", S.yytext), this.pushState("LLABEL"), 16;
856
+ case 99:
857
+ this.pushState("md_string");
858
+ break;
859
+ case 100: return e.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL";
860
+ case 101: return this.popState(), e.getLogger().debug("Lex: LINK", "#" + S.yytext + "#"), 15;
861
+ case 102: return this.popState(), e.getLogger().debug("Lex: LINK", S.yytext), 15;
862
+ case 103: return this.popState(), e.getLogger().debug("Lex: LINK", S.yytext), 15;
863
+ case 104: return e.getLogger().debug("Lex: COLON", S.yytext), S.yytext = S.yytext.slice(1), 27;
864
+ }
865
+ }, "anonymous"),
866
+ rules: [
867
+ /^(?:block-beta\b)/,
868
+ /^(?:block:)/,
869
+ /^(?:block\b)/,
870
+ /^(?:[\s]+)/,
871
+ /^(?:[\n]+)/,
872
+ /^(?:((\u000D\u000A)|(\u000A)))/,
873
+ /^(?:columns\s+auto\b)/,
874
+ /^(?:columns\s+[\d]+)/,
875
+ /^(?:["][`])/,
876
+ /^(?:[^`"]+)/,
877
+ /^(?:[`]["])/,
878
+ /^(?:["])/,
879
+ /^(?:["])/,
880
+ /^(?:[^"]*)/,
881
+ /^(?:space[:]\d+)/,
882
+ /^(?:space\b)/,
883
+ /^(?:default\b)/,
884
+ /^(?:linkStyle\b)/,
885
+ /^(?:interpolate\b)/,
886
+ /^(?:classDef\s+)/,
887
+ /^(?:DEFAULT\s+)/,
888
+ /^(?:\w+\s+)/,
889
+ /^(?:[^\n]*)/,
890
+ /^(?:class\s+)/,
891
+ /^(?:(\w+)+((,\s*\w+)*))/,
892
+ /^(?:[^\n]*)/,
893
+ /^(?:style\s+)/,
894
+ /^(?:(\w+)+((,\s*\w+)*))/,
895
+ /^(?:[^\n]*)/,
896
+ /^(?:accTitle\s*:\s*)/,
897
+ /^(?:(?!\n||)*[^\n]*)/,
898
+ /^(?:accDescr\s*:\s*)/,
899
+ /^(?:(?!\n||)*[^\n]*)/,
900
+ /^(?:accDescr\s*\{\s*)/,
901
+ /^(?:[\}])/,
902
+ /^(?:[^\}]*)/,
903
+ /^(?:end\b\s*)/,
904
+ /^(?:\(\(\()/,
905
+ /^(?:\)\)\))/,
906
+ /^(?:[\)]\))/,
907
+ /^(?:\}\})/,
908
+ /^(?:\})/,
909
+ /^(?:\(-)/,
910
+ /^(?:-\))/,
911
+ /^(?:\(\()/,
912
+ /^(?:\]\])/,
913
+ /^(?:\()/,
914
+ /^(?:\]\))/,
915
+ /^(?:\\\])/,
916
+ /^(?:\/\])/,
917
+ /^(?:\)\])/,
918
+ /^(?:[\)])/,
919
+ /^(?:\]>)/,
920
+ /^(?:[\]])/,
921
+ /^(?:-\))/,
922
+ /^(?:\(-)/,
923
+ /^(?:\)\))/,
924
+ /^(?:\))/,
925
+ /^(?:\(\(\()/,
926
+ /^(?:\(\()/,
927
+ /^(?:\{\{)/,
928
+ /^(?:\{)/,
929
+ /^(?:>)/,
930
+ /^(?:\(\[)/,
931
+ /^(?:\()/,
932
+ /^(?:\[\[)/,
933
+ /^(?:\[\|)/,
934
+ /^(?:\[\()/,
935
+ /^(?:\)\)\))/,
936
+ /^(?:\[\\)/,
937
+ /^(?:\[\/)/,
938
+ /^(?:\[\\)/,
939
+ /^(?:\[)/,
940
+ /^(?:<\[)/,
941
+ /^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,
942
+ /^(?:$)/,
943
+ /^(?:["][`])/,
944
+ /^(?:["][`])/,
945
+ /^(?:[^`"]+)/,
946
+ /^(?:[`]["])/,
947
+ /^(?:["])/,
948
+ /^(?:["])/,
949
+ /^(?:[^"]+)/,
950
+ /^(?:["])/,
951
+ /^(?:\]>\s*\()/,
952
+ /^(?:,?\s*right\s*)/,
953
+ /^(?:,?\s*left\s*)/,
954
+ /^(?:,?\s*x\s*)/,
955
+ /^(?:,?\s*y\s*)/,
956
+ /^(?:,?\s*up\s*)/,
957
+ /^(?:,?\s*down\s*)/,
958
+ /^(?:\)\s*)/,
959
+ /^(?:\s*[xo<]?--+[-xo>]\s*)/,
960
+ /^(?:\s*[xo<]?==+[=xo>]\s*)/,
961
+ /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
962
+ /^(?:\s*~~[\~]+\s*)/,
963
+ /^(?:\s*[xo<]?--\s*)/,
964
+ /^(?:\s*[xo<]?==\s*)/,
965
+ /^(?:\s*[xo<]?-\.\s*)/,
966
+ /^(?:["][`])/,
967
+ /^(?:["])/,
968
+ /^(?:\s*[xo<]?--+[-xo>]\s*)/,
969
+ /^(?:\s*[xo<]?==+[=xo>]\s*)/,
970
+ /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
971
+ /^(?::\d+)/
972
+ ],
973
+ conditions: {
974
+ STYLE_DEFINITION: {
975
+ rules: [28],
976
+ inclusive: !1
977
+ },
978
+ STYLE_STMNT: {
979
+ rules: [27],
980
+ inclusive: !1
981
+ },
982
+ CLASSDEFID: {
983
+ rules: [22],
984
+ inclusive: !1
985
+ },
986
+ CLASSDEF: {
987
+ rules: [20, 21],
988
+ inclusive: !1
989
+ },
990
+ CLASS_STYLE: {
991
+ rules: [25],
992
+ inclusive: !1
993
+ },
994
+ CLASS: {
995
+ rules: [24],
996
+ inclusive: !1
997
+ },
998
+ LLABEL: {
999
+ rules: [
1000
+ 99,
1001
+ 100,
1002
+ 101,
1003
+ 102,
1004
+ 103
1005
+ ],
1006
+ inclusive: !1
1007
+ },
1008
+ ARROW_DIR: {
1009
+ rules: [
1010
+ 85,
1011
+ 86,
1012
+ 87,
1013
+ 88,
1014
+ 89,
1015
+ 90,
1016
+ 91
1017
+ ],
1018
+ inclusive: !1
1019
+ },
1020
+ BLOCK_ARROW: {
1021
+ rules: [
1022
+ 76,
1023
+ 81,
1024
+ 84
1025
+ ],
1026
+ inclusive: !1
1027
+ },
1028
+ NODE: {
1029
+ rules: [
1030
+ 37,
1031
+ 38,
1032
+ 39,
1033
+ 40,
1034
+ 41,
1035
+ 42,
1036
+ 43,
1037
+ 44,
1038
+ 45,
1039
+ 46,
1040
+ 47,
1041
+ 48,
1042
+ 49,
1043
+ 50,
1044
+ 51,
1045
+ 52,
1046
+ 53,
1047
+ 77,
1048
+ 80
1049
+ ],
1050
+ inclusive: !1
1051
+ },
1052
+ md_string: {
1053
+ rules: [
1054
+ 9,
1055
+ 10,
1056
+ 78,
1057
+ 79
1058
+ ],
1059
+ inclusive: !1
1060
+ },
1061
+ space: {
1062
+ rules: [],
1063
+ inclusive: !1
1064
+ },
1065
+ string: {
1066
+ rules: [
1067
+ 12,
1068
+ 13,
1069
+ 82,
1070
+ 83
1071
+ ],
1072
+ inclusive: !1
1073
+ },
1074
+ acc_descr_multiline: {
1075
+ rules: [34, 35],
1076
+ inclusive: !1
1077
+ },
1078
+ acc_descr: {
1079
+ rules: [32],
1080
+ inclusive: !1
1081
+ },
1082
+ acc_title: {
1083
+ rules: [30],
1084
+ inclusive: !1
1085
+ },
1086
+ INITIAL: {
1087
+ rules: [
1088
+ 0,
1089
+ 1,
1090
+ 2,
1091
+ 3,
1092
+ 4,
1093
+ 5,
1094
+ 6,
1095
+ 7,
1096
+ 8,
1097
+ 11,
1098
+ 14,
1099
+ 15,
1100
+ 16,
1101
+ 17,
1102
+ 18,
1103
+ 19,
1104
+ 23,
1105
+ 26,
1106
+ 29,
1107
+ 31,
1108
+ 33,
1109
+ 36,
1110
+ 54,
1111
+ 55,
1112
+ 56,
1113
+ 57,
1114
+ 58,
1115
+ 59,
1116
+ 60,
1117
+ 61,
1118
+ 62,
1119
+ 63,
1120
+ 64,
1121
+ 65,
1122
+ 66,
1123
+ 67,
1124
+ 68,
1125
+ 69,
1126
+ 70,
1127
+ 71,
1128
+ 72,
1129
+ 73,
1130
+ 74,
1131
+ 75,
1132
+ 92,
1133
+ 93,
1134
+ 94,
1135
+ 95,
1136
+ 96,
1137
+ 97,
1138
+ 98,
1139
+ 104
1140
+ ],
1141
+ inclusive: !0
1142
+ }
1143
+ }
1144
+ };
1145
+ })();
1146
+ function z() {
1147
+ this.yy = {};
1148
+ }
1149
+ return __name(z, "Parser"), z.prototype = R, R.Parser = z, new z();
1150
+ })();
1151
+ parser.parser = parser;
1152
+ var block_default = parser, blockDatabase = /* @__PURE__ */ new Map(), edgeList = [], edgeCount = /* @__PURE__ */ new Map(), COLOR_KEYWORD = "color", FILL_KEYWORD = "fill", BG_FILL = "bgFill", STYLECLASS_SEP = ",", config = getConfig2(), classes = /* @__PURE__ */ new Map(), sanitizeText2 = /* @__PURE__ */ __name((e) => common_default.sanitizeText(e, config), "sanitizeText"), addStyleClass = /* @__PURE__ */ __name(function(e, S = "") {
1153
+ let C = classes.get(e);
1154
+ C || (C = {
1155
+ id: e,
1156
+ styles: [],
1157
+ textStyles: []
1158
+ }, classes.set(e, C)), S?.split(STYLECLASS_SEP).forEach((e) => {
1159
+ let S = e.replace(/([^;]*);/, "$1").trim();
1160
+ if (RegExp(COLOR_KEYWORD).exec(e)) {
1161
+ let e = S.replace(FILL_KEYWORD, BG_FILL).replace(COLOR_KEYWORD, FILL_KEYWORD);
1162
+ C.textStyles.push(e);
1163
+ }
1164
+ C.styles.push(S);
1165
+ });
1166
+ }, "addStyleClass"), addStyle2Node = /* @__PURE__ */ __name(function(e, S = "") {
1167
+ let C = blockDatabase.get(e);
1168
+ S != null && (C.styles = S.split(STYLECLASS_SEP));
1169
+ }, "addStyle2Node"), setCssClass = /* @__PURE__ */ __name(function(e, S) {
1170
+ e.split(",").forEach(function(e) {
1171
+ let C = blockDatabase.get(e);
1172
+ if (C === void 0) {
1173
+ let S = e.trim();
1174
+ C = {
1175
+ id: S,
1176
+ type: "na",
1177
+ children: []
1178
+ }, blockDatabase.set(S, C);
1179
+ }
1180
+ C.classes ||= [], C.classes.push(S);
1181
+ });
1182
+ }, "setCssClass"), populateBlockDatabase = /* @__PURE__ */ __name((e, C) => {
1183
+ let w = e.flat(), T = [], E = w.find((e) => e?.type === "column-setting")?.columns ?? -1;
1184
+ for (let e of w) {
1185
+ if (typeof E == "number" && E > 0 && e.type !== "column-setting" && typeof e.widthInColumns == "number" && e.widthInColumns > E && log.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${E}`), e.label &&= sanitizeText2(e.label), e.type === "classDef") {
1186
+ addStyleClass(e.id, e.css);
1187
+ continue;
1188
+ }
1189
+ if (e.type === "applyClass") {
1190
+ setCssClass(e.id, e?.styleClass ?? "");
1191
+ continue;
1192
+ }
1193
+ if (e.type === "applyStyles") {
1194
+ e?.stylesStr && addStyle2Node(e.id, e?.stylesStr);
1195
+ continue;
1196
+ }
1197
+ if (e.type === "column-setting") C.columns = e.columns ?? -1;
1198
+ else if (e.type === "edge") {
1199
+ let S = (edgeCount.get(e.id) ?? 0) + 1;
1200
+ edgeCount.set(e.id, S), e.id = S + "-" + e.id, edgeList.push(e);
1201
+ } else {
1202
+ e.label || (e.type === "composite" ? e.label = "" : e.label = e.id);
1203
+ let S = blockDatabase.get(e.id);
1204
+ if (S === void 0 ? blockDatabase.set(e.id, e) : (e.type !== "na" && (S.type = e.type), e.label !== e.id && (S.label = e.label)), e.children && populateBlockDatabase(e.children, e), e.type === "space") {
1205
+ let S = e.width ?? 1;
1206
+ for (let C = 0; C < S; C++) {
1207
+ let S = clone_default(e);
1208
+ S.id = S.id + "-" + C, blockDatabase.set(S.id, S), T.push(S);
1209
+ }
1210
+ } else S === void 0 && T.push(e);
1211
+ }
1212
+ }
1213
+ C.children = T;
1214
+ }, "populateBlockDatabase"), blocks = [], rootBlock = {
1215
+ id: "root",
1216
+ type: "composite",
1217
+ children: [],
1218
+ columns: -1
1219
+ }, clear2 = /* @__PURE__ */ __name(() => {
1220
+ log.debug("Clear called"), clear(), rootBlock = {
1221
+ id: "root",
1222
+ type: "composite",
1223
+ children: [],
1224
+ columns: -1
1225
+ }, blockDatabase = /* @__PURE__ */ new Map([["root", rootBlock]]), blocks = [], classes = /* @__PURE__ */ new Map(), edgeList = [], edgeCount = /* @__PURE__ */ new Map();
1226
+ }, "clear");
1227
+ function typeStr2Type(e) {
1228
+ switch (log.debug("typeStr2Type", e), e) {
1229
+ case "[]": return "square";
1230
+ case "()": return log.debug("we have a round"), "round";
1231
+ case "(())": return "circle";
1232
+ case ">]": return "rect_left_inv_arrow";
1233
+ case "{}": return "diamond";
1234
+ case "{{}}": return "hexagon";
1235
+ case "([])": return "stadium";
1236
+ case "[[]]": return "subroutine";
1237
+ case "[()]": return "cylinder";
1238
+ case "((()))": return "doublecircle";
1239
+ case "[//]": return "lean_right";
1240
+ case "[\\\\]": return "lean_left";
1241
+ case "[/\\]": return "trapezoid";
1242
+ case "[\\/]": return "inv_trapezoid";
1243
+ case "<[]>": return "block_arrow";
1244
+ default: return "na";
1245
+ }
1246
+ }
1247
+ __name(typeStr2Type, "typeStr2Type");
1248
+ function edgeTypeStr2Type(e) {
1249
+ switch (log.debug("typeStr2Type", e), e) {
1250
+ case "==": return "thick";
1251
+ default: return "normal";
1252
+ }
1253
+ }
1254
+ __name(edgeTypeStr2Type, "edgeTypeStr2Type");
1255
+ function edgeStrToEdgeData(e) {
1256
+ switch (e.replace(/^[\s-]+|[\s-]+$/g, "")) {
1257
+ case "x": return "arrow_cross";
1258
+ case "o": return "arrow_circle";
1259
+ case ">": return "arrow_point";
1260
+ default: return "";
1261
+ }
1262
+ }
1263
+ __name(edgeStrToEdgeData, "edgeStrToEdgeData");
1264
+ var cnt = 0, blockDB_default = {
1265
+ getConfig: /* @__PURE__ */ __name(() => getConfig().block, "getConfig"),
1266
+ typeStr2Type,
1267
+ edgeTypeStr2Type,
1268
+ edgeStrToEdgeData,
1269
+ getLogger: /* @__PURE__ */ __name(() => log, "getLogger"),
1270
+ getBlocksFlat: /* @__PURE__ */ __name(() => [...blockDatabase.values()], "getBlocksFlat"),
1271
+ getBlocks: /* @__PURE__ */ __name(() => blocks || [], "getBlocks"),
1272
+ getEdges: /* @__PURE__ */ __name(() => edgeList, "getEdges"),
1273
+ setHierarchy: /* @__PURE__ */ __name((e) => {
1274
+ rootBlock.children = e, populateBlockDatabase(e, rootBlock), blocks = rootBlock.children;
1275
+ }, "setHierarchy"),
1276
+ getBlock: /* @__PURE__ */ __name((e) => blockDatabase.get(e), "getBlock"),
1277
+ setBlock: /* @__PURE__ */ __name((e) => {
1278
+ blockDatabase.set(e.id, e);
1279
+ }, "setBlock"),
1280
+ getColumns: /* @__PURE__ */ __name((e) => {
1281
+ let S = blockDatabase.get(e);
1282
+ return S ? S.columns ? S.columns : S.children ? S.children.length : -1 : -1;
1283
+ }, "getColumns"),
1284
+ getClasses: /* @__PURE__ */ __name(function() {
1285
+ return classes;
1286
+ }, "getClasses"),
1287
+ clear: clear2,
1288
+ generateId: /* @__PURE__ */ __name(() => (cnt++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + cnt), "generateId")
1289
+ }, fade = /* @__PURE__ */ __name((e, S) => {
1290
+ let T = channel_default;
1291
+ return rgba_default(T(e, "r"), T(e, "g"), T(e, "b"), S);
1292
+ }, "fade"), styles_default = /* @__PURE__ */ __name((e) => `.label {
1293
+ font-family: ${e.fontFamily};
1294
+ color: ${e.nodeTextColor || e.textColor};
1295
+ }
1296
+ .cluster-label text {
1297
+ fill: ${e.titleColor};
1298
+ }
1299
+ .cluster-label span,p {
1300
+ color: ${e.titleColor};
1301
+ }
1302
+
1303
+
1304
+
1305
+ .label text,span,p {
1306
+ fill: ${e.nodeTextColor || e.textColor};
1307
+ color: ${e.nodeTextColor || e.textColor};
1308
+ }
1309
+
1310
+ .node rect,
1311
+ .node circle,
1312
+ .node ellipse,
1313
+ .node polygon,
1314
+ .node path {
1315
+ fill: ${e.mainBkg};
1316
+ stroke: ${e.nodeBorder};
1317
+ stroke-width: 1px;
1318
+ }
1319
+ .flowchart-label text {
1320
+ text-anchor: middle;
1321
+ }
1322
+ // .flowchart-label .text-outer-tspan {
1323
+ // text-anchor: middle;
1324
+ // }
1325
+ // .flowchart-label .text-inner-tspan {
1326
+ // text-anchor: start;
1327
+ // }
1328
+
1329
+ .node .label {
1330
+ text-align: center;
1331
+ }
1332
+ .node.clickable {
1333
+ cursor: pointer;
1334
+ }
1335
+
1336
+ .arrowheadPath {
1337
+ fill: ${e.arrowheadColor};
1338
+ }
1339
+
1340
+ .edgePath .path {
1341
+ stroke: ${e.lineColor};
1342
+ stroke-width: 2.0px;
1343
+ }
1344
+
1345
+ .flowchart-link {
1346
+ stroke: ${e.lineColor};
1347
+ fill: none;
1348
+ }
1349
+
1350
+ .edgeLabel {
1351
+ background-color: ${e.edgeLabelBackground};
1352
+ rect {
1353
+ opacity: 0.5;
1354
+ background-color: ${e.edgeLabelBackground};
1355
+ fill: ${e.edgeLabelBackground};
1356
+ }
1357
+ text-align: center;
1358
+ }
1359
+
1360
+ /* For html labels only */
1361
+ .labelBkg {
1362
+ background-color: ${fade(e.edgeLabelBackground, .5)};
1363
+ // background-color:
1364
+ }
1365
+
1366
+ .node .cluster {
1367
+ // fill: ${fade(e.mainBkg, .5)};
1368
+ fill: ${fade(e.clusterBkg, .5)};
1369
+ stroke: ${fade(e.clusterBorder, .2)};
1370
+ box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
1371
+ stroke-width: 1px;
1372
+ }
1373
+
1374
+ .cluster text {
1375
+ fill: ${e.titleColor};
1376
+ }
1377
+
1378
+ .cluster span,p {
1379
+ color: ${e.titleColor};
1380
+ }
1381
+ /* .cluster div {
1382
+ color: ${e.titleColor};
1383
+ } */
1384
+
1385
+ div.mermaidTooltip {
1386
+ position: absolute;
1387
+ text-align: center;
1388
+ max-width: 200px;
1389
+ padding: 2px;
1390
+ font-family: ${e.fontFamily};
1391
+ font-size: 12px;
1392
+ background: ${e.tertiaryColor};
1393
+ border: 1px solid ${e.border2};
1394
+ border-radius: 2px;
1395
+ pointer-events: none;
1396
+ z-index: 100;
1397
+ }
1398
+
1399
+ .flowchartTitleText {
1400
+ text-anchor: middle;
1401
+ font-size: 18px;
1402
+ fill: ${e.textColor};
1403
+ }
1404
+ ${getIconStyles()}
1405
+ `, "getStyles"), insertMarkers = /* @__PURE__ */ __name((e, S, C, w) => {
1406
+ S.forEach((S) => {
1407
+ markers[S](e, C, w);
1408
+ });
1409
+ }, "insertMarkers"), markers = {
1410
+ extension: /* @__PURE__ */ __name((e, C, w) => {
1411
+ log.trace("Making markers for ", w), e.append("defs").append("marker").attr("id", w + "_" + C + "-extensionStart").attr("class", "marker extension " + C).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", w + "_" + C + "-extensionEnd").attr("class", "marker extension " + C).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
1412
+ }, "extension"),
1413
+ composition: /* @__PURE__ */ __name((e, S, C) => {
1414
+ e.append("defs").append("marker").attr("id", C + "_" + S + "-compositionStart").attr("class", "marker composition " + S).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", C + "_" + S + "-compositionEnd").attr("class", "marker composition " + S).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
1415
+ }, "composition"),
1416
+ aggregation: /* @__PURE__ */ __name((e, S, C) => {
1417
+ e.append("defs").append("marker").attr("id", C + "_" + S + "-aggregationStart").attr("class", "marker aggregation " + S).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", C + "_" + S + "-aggregationEnd").attr("class", "marker aggregation " + S).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
1418
+ }, "aggregation"),
1419
+ dependency: /* @__PURE__ */ __name((e, S, C) => {
1420
+ e.append("defs").append("marker").attr("id", C + "_" + S + "-dependencyStart").attr("class", "marker dependency " + S).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", C + "_" + S + "-dependencyEnd").attr("class", "marker dependency " + S).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
1421
+ }, "dependency"),
1422
+ lollipop: /* @__PURE__ */ __name((e, S, C) => {
1423
+ e.append("defs").append("marker").attr("id", C + "_" + S + "-lollipopStart").attr("class", "marker lollipop " + S).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", C + "_" + S + "-lollipopEnd").attr("class", "marker lollipop " + S).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
1424
+ }, "lollipop"),
1425
+ point: /* @__PURE__ */ __name((e, S, C) => {
1426
+ e.append("marker").attr("id", C + "_" + S + "-pointEnd").attr("class", "marker " + S).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", C + "_" + S + "-pointStart").attr("class", "marker " + S).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
1427
+ }, "point"),
1428
+ circle: /* @__PURE__ */ __name((e, S, C) => {
1429
+ e.append("marker").attr("id", C + "_" + S + "-circleEnd").attr("class", "marker " + S).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", C + "_" + S + "-circleStart").attr("class", "marker " + S).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
1430
+ }, "circle"),
1431
+ cross: /* @__PURE__ */ __name((e, S, C) => {
1432
+ e.append("marker").attr("id", C + "_" + S + "-crossEnd").attr("class", "marker cross " + S).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", C + "_" + S + "-crossStart").attr("class", "marker cross " + S).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
1433
+ }, "cross"),
1434
+ barb: /* @__PURE__ */ __name((e, S, C) => {
1435
+ e.append("defs").append("marker").attr("id", C + "_" + S + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
1436
+ }, "barb")
1437
+ }, markers_default = insertMarkers, padding = getConfig2()?.block?.padding ?? 8;
1438
+ function calculateBlockPosition(e, S) {
1439
+ if (e === 0 || !Number.isInteger(e)) throw Error("Columns must be an integer !== 0.");
1440
+ if (S < 0 || !Number.isInteger(S)) throw Error("Position must be a non-negative integer." + S);
1441
+ return e < 0 ? {
1442
+ px: S,
1443
+ py: 0
1444
+ } : e === 1 ? {
1445
+ px: 0,
1446
+ py: S
1447
+ } : {
1448
+ px: S % e,
1449
+ py: Math.floor(S / e)
1450
+ };
1451
+ }
1452
+ __name(calculateBlockPosition, "calculateBlockPosition");
1453
+ var getMaxChildSize = /* @__PURE__ */ __name((e) => {
1454
+ let C = 0, w = 0;
1455
+ for (let T of e.children) {
1456
+ let { width: E, height: D, x: O, y: k } = T.size ?? {
1457
+ width: 0,
1458
+ height: 0,
1459
+ x: 0,
1460
+ y: 0
1461
+ };
1462
+ log.debug("getMaxChildSize abc95 child:", T.id, "width:", E, "height:", D, "x:", O, "y:", k, T.type), T.type !== "space" && (E > C && (C = E / (e.widthInColumns ?? 1)), D > w && (w = D));
1463
+ }
1464
+ return {
1465
+ width: C,
1466
+ height: w
1467
+ };
1468
+ }, "getMaxChildSize");
1469
+ function setBlockSizes(e, C, w = 0, T = 0) {
1470
+ log.debug("setBlockSizes abc95 (start)", e.id, e?.size?.x, "block width =", e?.size, "siblingWidth", w), e?.size?.width || (e.size = {
1471
+ width: w,
1472
+ height: T,
1473
+ x: 0,
1474
+ y: 0
1475
+ });
1476
+ let E = 0, D = 0;
1477
+ if (e.children?.length > 0) {
1478
+ for (let S of e.children) setBlockSizes(S, C);
1479
+ let O = getMaxChildSize(e);
1480
+ E = O.width, D = O.height, log.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", E, D);
1481
+ for (let C of e.children) C.size && (log.debug(`abc95 Setting size of children of ${e.id} id=${C.id} ${E} ${D} ${JSON.stringify(C.size)}`), C.size.width = E * (C.widthInColumns ?? 1) + padding * ((C.widthInColumns ?? 1) - 1), C.size.height = D, C.size.x = 0, C.size.y = 0, log.debug(`abc95 updating size of ${e.id} children child:${C.id} maxWidth:${E} maxHeight:${D}`));
1482
+ for (let S of e.children) setBlockSizes(S, C, E, D);
1483
+ let k = e.columns ?? -1, A = 0;
1484
+ for (let S of e.children) A += S.widthInColumns ?? 1;
1485
+ let j = e.children.length;
1486
+ k > 0 && k < A && (j = k);
1487
+ let M = Math.ceil(A / j), N = j * (E + padding) + padding, P = M * (D + padding) + padding;
1488
+ if (N < w) {
1489
+ log.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${w} siblingHeight ${T} width ${N}`), N = w, P = T;
1490
+ let C = (w - j * padding - padding) / j, O = (T - M * padding - padding) / M;
1491
+ log.debug("Size indata abc88", e.id, "childWidth", C, "maxWidth", E), log.debug("Size indata abc88", e.id, "childHeight", O, "maxHeight", D), log.debug("Size indata abc88 xSize", j, "padding", padding);
1492
+ for (let S of e.children) S.size && (S.size.width = C, S.size.height = O, S.size.x = 0, S.size.y = 0);
1493
+ }
1494
+ if (log.debug(`abc95 (finale calc) ${e.id} xSize ${j} ySize ${M} columns ${k}${e.children.length} width=${Math.max(N, e.size?.width || 0)}`), N < (e?.size?.width || 0)) {
1495
+ N = e?.size?.width || 0;
1496
+ let C = k > 0 ? Math.min(e.children.length, k) : e.children.length;
1497
+ if (C > 0) {
1498
+ let w = (N - C * padding - padding) / C;
1499
+ log.debug("abc95 (growing to fit) width", e.id, N, e.size?.width, w);
1500
+ for (let S of e.children) S.size && (S.size.width = w);
1501
+ }
1502
+ }
1503
+ e.size = {
1504
+ width: N,
1505
+ height: P,
1506
+ x: 0,
1507
+ y: 0
1508
+ };
1509
+ }
1510
+ log.debug("setBlockSizes abc94 (done)", e.id, e?.size?.x, e?.size?.width, e?.size?.y, e?.size?.height);
1511
+ }
1512
+ __name(setBlockSizes, "setBlockSizes");
1513
+ function layoutBlocks(e, C) {
1514
+ log.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);
1515
+ let w = e.columns ?? -1;
1516
+ if (log.debug("layoutBlocks columns abc95", e.id, "=>", w, e), e.children && e.children.length > 0) {
1517
+ let T = e?.children[0]?.size?.width ?? 0, E = e.children.length * T + (e.children.length - 1) * padding;
1518
+ log.debug("widthOfChildren 88", E, "posX");
1519
+ let D = 0;
1520
+ log.debug("abc91 block?.size?.x", e.id, e?.size?.x);
1521
+ let O = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -padding, k = 0;
1522
+ for (let T of e.children) {
1523
+ let E = e;
1524
+ if (!T.size) continue;
1525
+ let { width: A, height: j } = T.size, { px: M, py: N } = calculateBlockPosition(w, D);
1526
+ if (N != k && (k = N, O = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -padding, log.debug("New row in layout for block", e.id, " and child ", T.id, k)), log.debug(`abc89 layout blocks (child) id: ${T.id} Pos: ${D} (px, py) ${M},${N} (${E?.size?.x},${E?.size?.y}) parent: ${E.id} width: ${A}${padding}`), E.size) {
1527
+ let e = A / 2;
1528
+ T.size.x = O + padding + e, log.debug(`abc91 layout blocks (calc) px, pyid:${T.id} startingPos=X${O} new startingPosX${T.size.x} ${e} padding=${padding} width=${A} halfWidth=${e} => x:${T.size.x} y:${T.size.y} ${T.widthInColumns} (width * (child?.w || 1)) / 2 ${A * (T?.widthInColumns ?? 1) / 2}`), O = T.size.x + e, T.size.y = E.size.y - E.size.height / 2 + N * (j + padding) + j / 2 + padding, log.debug(`abc88 layout blocks (calc) px, pyid:${T.id}startingPosX${O}${padding}${e}=>x:${T.size.x}y:${T.size.y}${T.widthInColumns}(width * (child?.w || 1)) / 2${A * (T?.widthInColumns ?? 1) / 2}`);
1529
+ }
1530
+ T.children && layoutBlocks(T, C);
1531
+ let P = T?.widthInColumns ?? 1;
1532
+ w > 0 && (P = Math.min(P, w - D % w)), D += P, log.debug("abc88 columnsPos", T, D);
1533
+ }
1534
+ }
1535
+ log.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);
1536
+ }
1537
+ __name(layoutBlocks, "layoutBlocks");
1538
+ function findBounds(e, { minX: S, minY: C, maxX: w, maxY: T } = {
1539
+ minX: 0,
1540
+ minY: 0,
1541
+ maxX: 0,
1542
+ maxY: 0
1543
+ }) {
1544
+ if (e.size && e.id !== "root") {
1545
+ let { x: E, y: D, width: O, height: k } = e.size;
1546
+ E - O / 2 < S && (S = E - O / 2), D - k / 2 < C && (C = D - k / 2), E + O / 2 > w && (w = E + O / 2), D + k / 2 > T && (T = D + k / 2);
1547
+ }
1548
+ if (e.children) for (let E of e.children) ({minX: S, minY: C, maxX: w, maxY: T} = findBounds(E, {
1549
+ minX: S,
1550
+ minY: C,
1551
+ maxX: w,
1552
+ maxY: T
1553
+ }));
1554
+ return {
1555
+ minX: S,
1556
+ minY: C,
1557
+ maxX: w,
1558
+ maxY: T
1559
+ };
1560
+ }
1561
+ __name(findBounds, "findBounds");
1562
+ function layout(e) {
1563
+ let C = e.getBlock("root");
1564
+ if (!C) return;
1565
+ setBlockSizes(C, e, 0, 0), layoutBlocks(C, e), log.debug("getBlocks", JSON.stringify(C, null, 2));
1566
+ let { minX: w, minY: T, maxX: E, maxY: D } = findBounds(C), O = D - T;
1567
+ return {
1568
+ x: w,
1569
+ y: T,
1570
+ width: E - w,
1571
+ height: O
1572
+ };
1573
+ }
1574
+ __name(layout, "layout");
1575
+ function applyStyle(e, S) {
1576
+ S && e.attr("style", S);
1577
+ }
1578
+ __name(applyStyle, "applyStyle");
1579
+ function addHtmlLabel(e, S) {
1580
+ let C = select_default(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject")), w = C.append("xhtml:div"), T = e.label, E = e.isNode ? "nodeLabel" : "edgeLabel", D = w.append("span");
1581
+ return D.html(sanitizeText(T, S)), applyStyle(D, e.labelStyle), D.attr("class", E), applyStyle(w, e.labelStyle), w.style("display", "inline-block"), w.style("white-space", "nowrap"), w.attr("xmlns", "http://www.w3.org/1999/xhtml"), C.node();
1582
+ }
1583
+ __name(addHtmlLabel, "addHtmlLabel");
1584
+ var createLabel_default = /* @__PURE__ */ __name(async (e, C, w, T) => {
1585
+ let E = e || "";
1586
+ typeof E == "object" && (E = E[0]);
1587
+ let D = getConfig2();
1588
+ if (evaluate(D.flowchart.htmlLabels)) return E = E.replace(/\\n|\n/g, "<br />"), log.debug("vertexText" + E), addHtmlLabel({
1589
+ isNode: T,
1590
+ label: await replaceIconSubstring(decodeEntities(E)),
1591
+ labelStyle: C.replace("fill:", "color:")
1592
+ }, D);
1593
+ {
1594
+ let e = document.createElementNS("http://www.w3.org/2000/svg", "text");
1595
+ e.setAttribute("style", C.replace("color:", "fill:"));
1596
+ let S = [];
1597
+ S = typeof E == "string" ? E.split(/\\n|\n|<br\s*\/?>/gi) : Array.isArray(E) ? E : [];
1598
+ for (let C of S) {
1599
+ let S = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
1600
+ S.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), S.setAttribute("dy", "1em"), S.setAttribute("x", "0"), w ? S.setAttribute("class", "title-row") : S.setAttribute("class", "row"), S.textContent = C.trim(), e.appendChild(S);
1601
+ }
1602
+ return e;
1603
+ }
1604
+ }, "createLabel"), addEdgeMarkers = /* @__PURE__ */ __name((e, S, C, w, T) => {
1605
+ S.arrowTypeStart && addEdgeMarker(e, "start", S.arrowTypeStart, C, w, T), S.arrowTypeEnd && addEdgeMarker(e, "end", S.arrowTypeEnd, C, w, T);
1606
+ }, "addEdgeMarkers"), arrowTypesMap = {
1607
+ arrow_cross: "cross",
1608
+ arrow_point: "point",
1609
+ arrow_barb: "barb",
1610
+ arrow_circle: "circle",
1611
+ aggregation: "aggregation",
1612
+ extension: "extension",
1613
+ composition: "composition",
1614
+ dependency: "dependency",
1615
+ lollipop: "lollipop"
1616
+ }, addEdgeMarker = /* @__PURE__ */ __name((e, C, w, T, E, D) => {
1617
+ let O = arrowTypesMap[w];
1618
+ if (!O) {
1619
+ log.warn(`Unknown arrow type: ${w}`);
1620
+ return;
1621
+ }
1622
+ let k = C === "start" ? "Start" : "End";
1623
+ e.attr(`marker-${C}`, `url(${T}#${E}_${D}-${O}${k})`);
1624
+ }, "addEdgeMarker"), edgeLabels = {}, terminalLabels = {}, insertEdgeLabel = /* @__PURE__ */ __name(async (e, S) => {
1625
+ let C = getConfig2(), w = evaluate(C.flowchart.htmlLabels), T = S.labelType === "markdown" ? createText(e, S.label, {
1626
+ style: S.labelStyle,
1627
+ useHtmlLabels: w,
1628
+ addSvgBackground: !0
1629
+ }, C) : await createLabel_default(S.label, S.labelStyle), E = e.insert("g").attr("class", "edgeLabel"), D = E.insert("g").attr("class", "label");
1630
+ D.node().appendChild(T);
1631
+ let k = T.getBBox();
1632
+ if (w) {
1633
+ let e = T.children[0], S = select_default(T);
1634
+ k = e.getBoundingClientRect(), S.attr("width", k.width), S.attr("height", k.height);
1635
+ }
1636
+ D.attr("transform", "translate(" + -k.width / 2 + ", " + -k.height / 2 + ")"), edgeLabels[S.id] = E, S.width = k.width, S.height = k.height;
1637
+ let j;
1638
+ if (S.startLabelLeft) {
1639
+ let C = await createLabel_default(S.startLabelLeft, S.labelStyle), w = e.insert("g").attr("class", "edgeTerminals"), T = w.insert("g").attr("class", "inner");
1640
+ j = T.node().appendChild(C);
1641
+ let E = C.getBBox();
1642
+ T.attr("transform", "translate(" + -E.width / 2 + ", " + -E.height / 2 + ")"), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].startLeft = w, setTerminalWidth(j, S.startLabelLeft);
1643
+ }
1644
+ if (S.startLabelRight) {
1645
+ let C = await createLabel_default(S.startLabelRight, S.labelStyle), w = e.insert("g").attr("class", "edgeTerminals"), T = w.insert("g").attr("class", "inner");
1646
+ j = w.node().appendChild(C), T.node().appendChild(C);
1647
+ let E = C.getBBox();
1648
+ T.attr("transform", "translate(" + -E.width / 2 + ", " + -E.height / 2 + ")"), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].startRight = w, setTerminalWidth(j, S.startLabelRight);
1649
+ }
1650
+ if (S.endLabelLeft) {
1651
+ let C = await createLabel_default(S.endLabelLeft, S.labelStyle), w = e.insert("g").attr("class", "edgeTerminals"), T = w.insert("g").attr("class", "inner");
1652
+ j = T.node().appendChild(C);
1653
+ let E = C.getBBox();
1654
+ T.attr("transform", "translate(" + -E.width / 2 + ", " + -E.height / 2 + ")"), w.node().appendChild(C), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].endLeft = w, setTerminalWidth(j, S.endLabelLeft);
1655
+ }
1656
+ if (S.endLabelRight) {
1657
+ let C = await createLabel_default(S.endLabelRight, S.labelStyle), w = e.insert("g").attr("class", "edgeTerminals"), T = w.insert("g").attr("class", "inner");
1658
+ j = T.node().appendChild(C);
1659
+ let E = C.getBBox();
1660
+ T.attr("transform", "translate(" + -E.width / 2 + ", " + -E.height / 2 + ")"), w.node().appendChild(C), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].endRight = w, setTerminalWidth(j, S.endLabelRight);
1661
+ }
1662
+ return T;
1663
+ }, "insertEdgeLabel");
1664
+ function setTerminalWidth(e, S) {
1665
+ getConfig2().flowchart.htmlLabels && e && (e.style.width = S.length * 9 + "px", e.style.height = "12px");
1666
+ }
1667
+ __name(setTerminalWidth, "setTerminalWidth");
1668
+ var positionEdgeLabel = /* @__PURE__ */ __name((e, C) => {
1669
+ log.debug("Moving label abc88 ", e.id, e.label, edgeLabels[e.id], C);
1670
+ let w = C.updatedPath ? C.updatedPath : C.originalPath, { subGraphTitleTotalMargin: T } = getSubGraphTitleMargins(getConfig2());
1671
+ if (e.label) {
1672
+ let E = edgeLabels[e.id], D = e.x, O = e.y;
1673
+ if (w) {
1674
+ let T = utils_default.calcLabelPosition(w);
1675
+ log.debug("Moving label " + e.label + " from (", D, ",", O, ") to (", T.x, ",", T.y, ") abc88"), C.updatedPath && (D = T.x, O = T.y);
1676
+ }
1677
+ E.attr("transform", `translate(${D}, ${O + T / 2})`);
1678
+ }
1679
+ if (e.startLabelLeft) {
1680
+ let S = terminalLabels[e.id].startLeft, C = e.x, T = e.y;
1681
+ if (w) {
1682
+ let S = utils_default.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", w);
1683
+ C = S.x, T = S.y;
1684
+ }
1685
+ S.attr("transform", `translate(${C}, ${T})`);
1686
+ }
1687
+ if (e.startLabelRight) {
1688
+ let S = terminalLabels[e.id].startRight, C = e.x, T = e.y;
1689
+ if (w) {
1690
+ let S = utils_default.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", w);
1691
+ C = S.x, T = S.y;
1692
+ }
1693
+ S.attr("transform", `translate(${C}, ${T})`);
1694
+ }
1695
+ if (e.endLabelLeft) {
1696
+ let S = terminalLabels[e.id].endLeft, C = e.x, T = e.y;
1697
+ if (w) {
1698
+ let S = utils_default.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", w);
1699
+ C = S.x, T = S.y;
1700
+ }
1701
+ S.attr("transform", `translate(${C}, ${T})`);
1702
+ }
1703
+ if (e.endLabelRight) {
1704
+ let S = terminalLabels[e.id].endRight, C = e.x, T = e.y;
1705
+ if (w) {
1706
+ let S = utils_default.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", w);
1707
+ C = S.x, T = S.y;
1708
+ }
1709
+ S.attr("transform", `translate(${C}, ${T})`);
1710
+ }
1711
+ }, "positionEdgeLabel"), outsideNode = /* @__PURE__ */ __name((e, S) => {
1712
+ let C = e.x, w = e.y, T = Math.abs(S.x - C), E = Math.abs(S.y - w), D = e.width / 2, O = e.height / 2;
1713
+ return T >= D || E >= O;
1714
+ }, "outsideNode"), intersection = /* @__PURE__ */ __name((e, C, w) => {
1715
+ log.debug(`intersection calc abc89:
1716
+ outsidePoint: ${JSON.stringify(C)}
1717
+ insidePoint : ${JSON.stringify(w)}
1718
+ node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
1719
+ let T = e.x, E = e.y, D = Math.abs(T - w.x), O = e.width / 2, k = w.x < C.x ? O - D : O + D, A = e.height / 2, j = Math.abs(C.y - w.y), M = Math.abs(C.x - w.x);
1720
+ if (Math.abs(E - C.y) * O > Math.abs(T - C.x) * A) {
1721
+ let e = w.y < C.y ? C.y - A - E : E - A - C.y;
1722
+ k = M * e / j;
1723
+ let T = {
1724
+ x: w.x < C.x ? w.x + k : w.x - M + k,
1725
+ y: w.y < C.y ? w.y + j - e : w.y - j + e
1726
+ };
1727
+ return k === 0 && (T.x = C.x, T.y = C.y), M === 0 && (T.x = C.x), j === 0 && (T.y = C.y), log.debug(`abc89 topp/bott calc, Q ${j}, q ${e}, R ${M}, r ${k}`, T), T;
1728
+ } else {
1729
+ k = w.x < C.x ? C.x - O - T : T - O - C.x;
1730
+ let e = j * k / M, E = w.x < C.x ? w.x + M - k : w.x - M + k, D = w.y < C.y ? w.y + e : w.y - e;
1731
+ return log.debug(`sides calc abc89, Q ${j}, q ${e}, R ${M}, r ${k}`, {
1732
+ _x: E,
1733
+ _y: D
1734
+ }), k === 0 && (E = C.x, D = C.y), M === 0 && (E = C.x), j === 0 && (D = C.y), {
1735
+ x: E,
1736
+ y: D
1737
+ };
1738
+ }
1739
+ }, "intersection"), cutPathAtIntersect = /* @__PURE__ */ __name((e, C) => {
1740
+ log.debug("abc88 cutPathAtIntersect", e, C);
1741
+ let w = [], T = e[0], E = !1;
1742
+ return e.forEach((e) => {
1743
+ if (!outsideNode(C, e) && !E) {
1744
+ let S = intersection(C, T, e), D = !1;
1745
+ w.forEach((e) => {
1746
+ D ||= e.x === S.x && e.y === S.y;
1747
+ }), w.some((e) => e.x === S.x && e.y === S.y) || w.push(S), E = !0;
1748
+ } else T = e, E || w.push(e);
1749
+ }), w;
1750
+ }, "cutPathAtIntersect"), insertEdge = /* @__PURE__ */ __name(function(e, C, w, T, E, D, O) {
1751
+ let k = w.points;
1752
+ log.debug("abc88 InsertEdge: edge=", w, "e=", C);
1753
+ let M = !1, N = D.node(C.v);
1754
+ var L = D.node(C.w);
1755
+ L?.intersect && N?.intersect && (k = k.slice(1, w.points.length - 1), k.unshift(N.intersect(k[0])), k.push(L.intersect(k[k.length - 1]))), w.toCluster && (log.debug("to cluster abc88", T[w.toCluster]), k = cutPathAtIntersect(w.points, T[w.toCluster].node), M = !0), w.fromCluster && (log.debug("from cluster abc88", T[w.fromCluster]), k = cutPathAtIntersect(k.reverse(), T[w.fromCluster].node).reverse(), M = !0);
1756
+ let R = k.filter((e) => !Number.isNaN(e.y)), z = basis_default;
1757
+ w.curve && (E === "graph" || E === "flowchart") && (z = w.curve);
1758
+ let { x: B, y: V } = getLineFunctionsWithOffset(w), H = line_default().x(B).y(V).curve(z), U;
1759
+ switch (w.thickness) {
1760
+ case "normal":
1761
+ U = "edge-thickness-normal";
1762
+ break;
1763
+ case "thick":
1764
+ U = "edge-thickness-thick";
1765
+ break;
1766
+ case "invisible":
1767
+ U = "edge-thickness-thick";
1768
+ break;
1769
+ default: U = "";
1770
+ }
1771
+ switch (w.pattern) {
1772
+ case "solid":
1773
+ U += " edge-pattern-solid";
1774
+ break;
1775
+ case "dotted":
1776
+ U += " edge-pattern-dotted";
1777
+ break;
1778
+ case "dashed":
1779
+ U += " edge-pattern-dashed";
1780
+ break;
1781
+ }
1782
+ let W = e.append("path").attr("d", H(R)).attr("id", w.id).attr("class", " " + U + (w.classes ? " " + w.classes : "")).attr("style", w.style), G = "";
1783
+ (getConfig2().flowchart.arrowMarkerAbsolute || getConfig2().state.arrowMarkerAbsolute) && (G = getUrl(!0)), addEdgeMarkers(W, w, G, O, E);
1784
+ let K = {};
1785
+ return M && (K.updatedPath = k), K.originalPath = w.points, K;
1786
+ }, "insertEdge"), expandAndDeduplicateDirections = /* @__PURE__ */ __name((e) => {
1787
+ let S = /* @__PURE__ */ new Set();
1788
+ for (let C of e) switch (C) {
1789
+ case "x":
1790
+ S.add("right"), S.add("left");
1791
+ break;
1792
+ case "y":
1793
+ S.add("up"), S.add("down");
1794
+ break;
1795
+ default:
1796
+ S.add(C);
1797
+ break;
1798
+ }
1799
+ return S;
1800
+ }, "expandAndDeduplicateDirections"), getArrowPoints = /* @__PURE__ */ __name((e, S, C) => {
1801
+ let w = expandAndDeduplicateDirections(e), T = S.height + 2 * C.padding, E = T / 2, D = S.width + 2 * E + C.padding, O = C.padding / 2;
1802
+ return w.has("right") && w.has("left") && w.has("up") && w.has("down") ? [
1803
+ {
1804
+ x: 0,
1805
+ y: 0
1806
+ },
1807
+ {
1808
+ x: E,
1809
+ y: 0
1810
+ },
1811
+ {
1812
+ x: D / 2,
1813
+ y: 2 * O
1814
+ },
1815
+ {
1816
+ x: D - E,
1817
+ y: 0
1818
+ },
1819
+ {
1820
+ x: D,
1821
+ y: 0
1822
+ },
1823
+ {
1824
+ x: D,
1825
+ y: -T / 3
1826
+ },
1827
+ {
1828
+ x: D + 2 * O,
1829
+ y: -T / 2
1830
+ },
1831
+ {
1832
+ x: D,
1833
+ y: -2 * T / 3
1834
+ },
1835
+ {
1836
+ x: D,
1837
+ y: -T
1838
+ },
1839
+ {
1840
+ x: D - E,
1841
+ y: -T
1842
+ },
1843
+ {
1844
+ x: D / 2,
1845
+ y: -T - 2 * O
1846
+ },
1847
+ {
1848
+ x: E,
1849
+ y: -T
1850
+ },
1851
+ {
1852
+ x: 0,
1853
+ y: -T
1854
+ },
1855
+ {
1856
+ x: 0,
1857
+ y: -2 * T / 3
1858
+ },
1859
+ {
1860
+ x: -2 * O,
1861
+ y: -T / 2
1862
+ },
1863
+ {
1864
+ x: 0,
1865
+ y: -T / 3
1866
+ }
1867
+ ] : w.has("right") && w.has("left") && w.has("up") ? [
1868
+ {
1869
+ x: E,
1870
+ y: 0
1871
+ },
1872
+ {
1873
+ x: D - E,
1874
+ y: 0
1875
+ },
1876
+ {
1877
+ x: D,
1878
+ y: -T / 2
1879
+ },
1880
+ {
1881
+ x: D - E,
1882
+ y: -T
1883
+ },
1884
+ {
1885
+ x: E,
1886
+ y: -T
1887
+ },
1888
+ {
1889
+ x: 0,
1890
+ y: -T / 2
1891
+ }
1892
+ ] : w.has("right") && w.has("left") && w.has("down") ? [
1893
+ {
1894
+ x: 0,
1895
+ y: 0
1896
+ },
1897
+ {
1898
+ x: E,
1899
+ y: -T
1900
+ },
1901
+ {
1902
+ x: D - E,
1903
+ y: -T
1904
+ },
1905
+ {
1906
+ x: D,
1907
+ y: 0
1908
+ }
1909
+ ] : w.has("right") && w.has("up") && w.has("down") ? [
1910
+ {
1911
+ x: 0,
1912
+ y: 0
1913
+ },
1914
+ {
1915
+ x: D,
1916
+ y: -E
1917
+ },
1918
+ {
1919
+ x: D,
1920
+ y: -T + E
1921
+ },
1922
+ {
1923
+ x: 0,
1924
+ y: -T
1925
+ }
1926
+ ] : w.has("left") && w.has("up") && w.has("down") ? [
1927
+ {
1928
+ x: D,
1929
+ y: 0
1930
+ },
1931
+ {
1932
+ x: 0,
1933
+ y: -E
1934
+ },
1935
+ {
1936
+ x: 0,
1937
+ y: -T + E
1938
+ },
1939
+ {
1940
+ x: D,
1941
+ y: -T
1942
+ }
1943
+ ] : w.has("right") && w.has("left") ? [
1944
+ {
1945
+ x: E,
1946
+ y: 0
1947
+ },
1948
+ {
1949
+ x: E,
1950
+ y: -O
1951
+ },
1952
+ {
1953
+ x: D - E,
1954
+ y: -O
1955
+ },
1956
+ {
1957
+ x: D - E,
1958
+ y: 0
1959
+ },
1960
+ {
1961
+ x: D,
1962
+ y: -T / 2
1963
+ },
1964
+ {
1965
+ x: D - E,
1966
+ y: -T
1967
+ },
1968
+ {
1969
+ x: D - E,
1970
+ y: -T + O
1971
+ },
1972
+ {
1973
+ x: E,
1974
+ y: -T + O
1975
+ },
1976
+ {
1977
+ x: E,
1978
+ y: -T
1979
+ },
1980
+ {
1981
+ x: 0,
1982
+ y: -T / 2
1983
+ }
1984
+ ] : w.has("up") && w.has("down") ? [
1985
+ {
1986
+ x: D / 2,
1987
+ y: 0
1988
+ },
1989
+ {
1990
+ x: 0,
1991
+ y: -O
1992
+ },
1993
+ {
1994
+ x: E,
1995
+ y: -O
1996
+ },
1997
+ {
1998
+ x: E,
1999
+ y: -T + O
2000
+ },
2001
+ {
2002
+ x: 0,
2003
+ y: -T + O
2004
+ },
2005
+ {
2006
+ x: D / 2,
2007
+ y: -T
2008
+ },
2009
+ {
2010
+ x: D,
2011
+ y: -T + O
2012
+ },
2013
+ {
2014
+ x: D - E,
2015
+ y: -T + O
2016
+ },
2017
+ {
2018
+ x: D - E,
2019
+ y: -O
2020
+ },
2021
+ {
2022
+ x: D,
2023
+ y: -O
2024
+ }
2025
+ ] : w.has("right") && w.has("up") ? [
2026
+ {
2027
+ x: 0,
2028
+ y: 0
2029
+ },
2030
+ {
2031
+ x: D,
2032
+ y: -E
2033
+ },
2034
+ {
2035
+ x: 0,
2036
+ y: -T
2037
+ }
2038
+ ] : w.has("right") && w.has("down") ? [
2039
+ {
2040
+ x: 0,
2041
+ y: 0
2042
+ },
2043
+ {
2044
+ x: D,
2045
+ y: 0
2046
+ },
2047
+ {
2048
+ x: 0,
2049
+ y: -T
2050
+ }
2051
+ ] : w.has("left") && w.has("up") ? [
2052
+ {
2053
+ x: D,
2054
+ y: 0
2055
+ },
2056
+ {
2057
+ x: 0,
2058
+ y: -E
2059
+ },
2060
+ {
2061
+ x: D,
2062
+ y: -T
2063
+ }
2064
+ ] : w.has("left") && w.has("down") ? [
2065
+ {
2066
+ x: D,
2067
+ y: 0
2068
+ },
2069
+ {
2070
+ x: 0,
2071
+ y: 0
2072
+ },
2073
+ {
2074
+ x: D,
2075
+ y: -T
2076
+ }
2077
+ ] : w.has("right") ? [
2078
+ {
2079
+ x: E,
2080
+ y: -O
2081
+ },
2082
+ {
2083
+ x: E,
2084
+ y: -O
2085
+ },
2086
+ {
2087
+ x: D - E,
2088
+ y: -O
2089
+ },
2090
+ {
2091
+ x: D - E,
2092
+ y: 0
2093
+ },
2094
+ {
2095
+ x: D,
2096
+ y: -T / 2
2097
+ },
2098
+ {
2099
+ x: D - E,
2100
+ y: -T
2101
+ },
2102
+ {
2103
+ x: D - E,
2104
+ y: -T + O
2105
+ },
2106
+ {
2107
+ x: E,
2108
+ y: -T + O
2109
+ },
2110
+ {
2111
+ x: E,
2112
+ y: -T + O
2113
+ }
2114
+ ] : w.has("left") ? [
2115
+ {
2116
+ x: E,
2117
+ y: 0
2118
+ },
2119
+ {
2120
+ x: E,
2121
+ y: -O
2122
+ },
2123
+ {
2124
+ x: D - E,
2125
+ y: -O
2126
+ },
2127
+ {
2128
+ x: D - E,
2129
+ y: -T + O
2130
+ },
2131
+ {
2132
+ x: E,
2133
+ y: -T + O
2134
+ },
2135
+ {
2136
+ x: E,
2137
+ y: -T
2138
+ },
2139
+ {
2140
+ x: 0,
2141
+ y: -T / 2
2142
+ }
2143
+ ] : w.has("up") ? [
2144
+ {
2145
+ x: E,
2146
+ y: -O
2147
+ },
2148
+ {
2149
+ x: E,
2150
+ y: -T + O
2151
+ },
2152
+ {
2153
+ x: 0,
2154
+ y: -T + O
2155
+ },
2156
+ {
2157
+ x: D / 2,
2158
+ y: -T
2159
+ },
2160
+ {
2161
+ x: D,
2162
+ y: -T + O
2163
+ },
2164
+ {
2165
+ x: D - E,
2166
+ y: -T + O
2167
+ },
2168
+ {
2169
+ x: D - E,
2170
+ y: -O
2171
+ }
2172
+ ] : w.has("down") ? [
2173
+ {
2174
+ x: D / 2,
2175
+ y: 0
2176
+ },
2177
+ {
2178
+ x: 0,
2179
+ y: -O
2180
+ },
2181
+ {
2182
+ x: E,
2183
+ y: -O
2184
+ },
2185
+ {
2186
+ x: E,
2187
+ y: -T + O
2188
+ },
2189
+ {
2190
+ x: D - E,
2191
+ y: -T + O
2192
+ },
2193
+ {
2194
+ x: D - E,
2195
+ y: -O
2196
+ },
2197
+ {
2198
+ x: D,
2199
+ y: -O
2200
+ }
2201
+ ] : [{
2202
+ x: 0,
2203
+ y: 0
2204
+ }];
2205
+ }, "getArrowPoints");
2206
+ function intersectNode(e, S) {
2207
+ return e.intersect(S);
2208
+ }
2209
+ __name(intersectNode, "intersectNode");
2210
+ var intersect_node_default = intersectNode;
2211
+ function intersectEllipse(e, S, C, w) {
2212
+ var T = e.x, E = e.y, D = T - w.x, O = E - w.y, k = Math.sqrt(S * S * O * O + C * C * D * D), A = Math.abs(S * C * D / k);
2213
+ w.x < T && (A = -A);
2214
+ var j = Math.abs(S * C * O / k);
2215
+ return w.y < E && (j = -j), {
2216
+ x: T + A,
2217
+ y: E + j
2218
+ };
2219
+ }
2220
+ __name(intersectEllipse, "intersectEllipse");
2221
+ var intersect_ellipse_default = intersectEllipse;
2222
+ function intersectCircle(e, S, C) {
2223
+ return intersect_ellipse_default(e, S, S, C);
2224
+ }
2225
+ __name(intersectCircle, "intersectCircle");
2226
+ var intersect_circle_default = intersectCircle;
2227
+ function intersectLine(e, S, C, w) {
2228
+ var T = S.y - e.y, E, D = e.x - S.x, O, k = S.x * e.y - e.x * S.y, A, j, M, N = T * C.x + D * C.y + k, P = T * w.x + D * w.y + k, F, I, L, R, z;
2229
+ if (!(N !== 0 && P !== 0 && sameSign(N, P)) && (E = w.y - C.y, O = C.x - w.x, A = w.x * C.y - C.x * w.y, j = E * e.x + O * e.y + A, M = E * S.x + O * S.y + A, !(j !== 0 && M !== 0 && sameSign(j, M)) && (F = T * O - E * D, F !== 0))) return I = Math.abs(F / 2), L = D * A - O * k, R = L < 0 ? (L - I) / F : (L + I) / F, L = E * k - T * A, z = L < 0 ? (L - I) / F : (L + I) / F, {
2230
+ x: R,
2231
+ y: z
2232
+ };
2233
+ }
2234
+ __name(intersectLine, "intersectLine");
2235
+ function sameSign(e, S) {
2236
+ return e * S > 0;
2237
+ }
2238
+ __name(sameSign, "sameSign");
2239
+ var intersect_line_default = intersectLine, intersect_polygon_default = intersectPolygon;
2240
+ function intersectPolygon(e, S, C) {
2241
+ var w = e.x, T = e.y, E = [], D = Infinity, O = Infinity;
2242
+ typeof S.forEach == "function" ? S.forEach(function(e) {
2243
+ D = Math.min(D, e.x), O = Math.min(O, e.y);
2244
+ }) : (D = Math.min(D, S.x), O = Math.min(O, S.y));
2245
+ for (var k = w - e.width / 2 - D, A = T - e.height / 2 - O, j = 0; j < S.length; j++) {
2246
+ var M = S[j], N = S[j < S.length - 1 ? j + 1 : 0], P = intersect_line_default(e, C, {
2247
+ x: k + M.x,
2248
+ y: A + M.y
2249
+ }, {
2250
+ x: k + N.x,
2251
+ y: A + N.y
2252
+ });
2253
+ P && E.push(P);
2254
+ }
2255
+ return E.length ? (E.length > 1 && E.sort(function(e, S) {
2256
+ var w = e.x - C.x, T = e.y - C.y, E = Math.sqrt(w * w + T * T), D = S.x - C.x, O = S.y - C.y, k = Math.sqrt(D * D + O * O);
2257
+ return E < k ? -1 : E === k ? 0 : 1;
2258
+ }), E[0]) : e;
2259
+ }
2260
+ __name(intersectPolygon, "intersectPolygon");
2261
+ var intersect_default = {
2262
+ node: intersect_node_default,
2263
+ circle: intersect_circle_default,
2264
+ ellipse: intersect_ellipse_default,
2265
+ polygon: intersect_polygon_default,
2266
+ rect: /* @__PURE__ */ __name((e, S) => {
2267
+ var C = e.x, w = e.y, T = S.x - C, E = S.y - w, D = e.width / 2, O = e.height / 2, k, A;
2268
+ return Math.abs(E) * D > Math.abs(T) * O ? (E < 0 && (O = -O), k = E === 0 ? 0 : O * T / E, A = O) : (T < 0 && (D = -D), k = D, A = T === 0 ? 0 : D * E / T), {
2269
+ x: C + k,
2270
+ y: w + A
2271
+ };
2272
+ }, "intersectRect")
2273
+ }, labelHelper = /* @__PURE__ */ __name(async (S, C, w, T) => {
2274
+ let E = getConfig2(), D, k = C.useHtmlLabels || evaluate(E.flowchart.htmlLabels);
2275
+ D = w || "node default";
2276
+ let j = S.insert("g").attr("class", D).attr("id", C.domId || C.id), P = j.insert("g").attr("class", "label").attr("style", C.labelStyle), F;
2277
+ F = C.labelText === void 0 ? "" : typeof C.labelText == "string" ? C.labelText : C.labelText[0];
2278
+ let I = P.node(), L;
2279
+ L = C.labelType === "markdown" ? createText(P, sanitizeText(decodeEntities(F), E), {
2280
+ useHtmlLabels: k,
2281
+ width: C.width || E.flowchart.wrappingWidth,
2282
+ classes: "markdown-node-label"
2283
+ }, E) : I.appendChild(await createLabel_default(sanitizeText(decodeEntities(F), E), C.labelStyle, !1, T));
2284
+ let z = L.getBBox(), B = C.padding / 2;
2285
+ if (evaluate(E.flowchart.htmlLabels)) {
2286
+ let S = L.children[0], C = select_default(L), w = S.getElementsByTagName("img");
2287
+ if (w) {
2288
+ let S = F.replace(/<img[^>]*>/g, "").trim() === "";
2289
+ await Promise.all([...w].map((C) => new Promise((w) => {
2290
+ function T() {
2291
+ if (C.style.display = "flex", C.style.flexDirection = "column", S) {
2292
+ let e = E.fontSize ? E.fontSize : window.getComputedStyle(document.body).fontSize, S = parseInt(e, 10) * 5 + "px";
2293
+ C.style.minWidth = S, C.style.maxWidth = S;
2294
+ } else C.style.width = "100%";
2295
+ w(C);
2296
+ }
2297
+ __name(T, "setupImage"), setTimeout(() => {
2298
+ C.complete && T();
2299
+ }), C.addEventListener("error", T), C.addEventListener("load", T);
2300
+ })));
2301
+ }
2302
+ z = S.getBoundingClientRect(), C.attr("width", z.width), C.attr("height", z.height);
2303
+ }
2304
+ return k ? P.attr("transform", "translate(" + -z.width / 2 + ", " + -z.height / 2 + ")") : P.attr("transform", "translate(0, " + -z.height / 2 + ")"), C.centerLabel && P.attr("transform", "translate(" + -z.width / 2 + ", " + -z.height / 2 + ")"), P.insert("rect", ":first-child"), {
2305
+ shapeSvg: j,
2306
+ bbox: z,
2307
+ halfPadding: B,
2308
+ label: P
2309
+ };
2310
+ }, "labelHelper"), updateNodeBounds = /* @__PURE__ */ __name((e, S) => {
2311
+ let C = S.node().getBBox();
2312
+ e.width = C.width, e.height = C.height;
2313
+ }, "updateNodeBounds");
2314
+ function insertPolygonShape(e, S, C, w) {
2315
+ return e.insert("polygon", ":first-child").attr("points", w.map(function(e) {
2316
+ return e.x + "," + e.y;
2317
+ }).join(" ")).attr("class", "label-container").attr("transform", "translate(" + -S / 2 + "," + C / 2 + ")");
2318
+ }
2319
+ __name(insertPolygonShape, "insertPolygonShape");
2320
+ var note_default = /* @__PURE__ */ __name(async (e, C) => {
2321
+ C.useHtmlLabels || getConfig2().flowchart.htmlLabels || (C.centerLabel = !0);
2322
+ let { shapeSvg: w, bbox: T, halfPadding: E } = await labelHelper(e, C, "node " + C.classes, !0);
2323
+ log.info("Classes = ", C.classes);
2324
+ let D = w.insert("rect", ":first-child");
2325
+ return D.attr("rx", C.rx).attr("ry", C.ry).attr("x", -T.width / 2 - E).attr("y", -T.height / 2 - E).attr("width", T.width + C.padding).attr("height", T.height + C.padding), updateNodeBounds(C, D), C.intersect = function(e) {
2326
+ return intersect_default.rect(C, e);
2327
+ }, w;
2328
+ }, "note"), formatClass = /* @__PURE__ */ __name((e) => e ? " " + e : "", "formatClass"), getClassesFromNode = /* @__PURE__ */ __name((e, S) => `${S || "node default"}${formatClass(e.classes)} ${formatClass(e.class)}`, "getClassesFromNode"), question = /* @__PURE__ */ __name(async (e, C) => {
2329
+ let { shapeSvg: w, bbox: T } = await labelHelper(e, C, getClassesFromNode(C, void 0), !0), E = T.width + C.padding + (T.height + C.padding), D = [
2330
+ {
2331
+ x: E / 2,
2332
+ y: 0
2333
+ },
2334
+ {
2335
+ x: E,
2336
+ y: -E / 2
2337
+ },
2338
+ {
2339
+ x: E / 2,
2340
+ y: -E
2341
+ },
2342
+ {
2343
+ x: 0,
2344
+ y: -E / 2
2345
+ }
2346
+ ];
2347
+ log.info("Question main (Circle)");
2348
+ let O = insertPolygonShape(w, E, E, D);
2349
+ return O.attr("style", C.style), updateNodeBounds(C, O), C.intersect = function(e) {
2350
+ return log.warn("Intersect called"), intersect_default.polygon(C, D, e);
2351
+ }, w;
2352
+ }, "question"), choice = /* @__PURE__ */ __name((e, S) => {
2353
+ let C = e.insert("g").attr("class", "node default").attr("id", S.domId || S.id);
2354
+ return C.insert("polygon", ":first-child").attr("points", [
2355
+ {
2356
+ x: 0,
2357
+ y: 28 / 2
2358
+ },
2359
+ {
2360
+ x: 28 / 2,
2361
+ y: 0
2362
+ },
2363
+ {
2364
+ x: 0,
2365
+ y: -28 / 2
2366
+ },
2367
+ {
2368
+ x: -28 / 2,
2369
+ y: 0
2370
+ }
2371
+ ].map(function(e) {
2372
+ return e.x + "," + e.y;
2373
+ }).join(" ")).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), S.width = 28, S.height = 28, S.intersect = function(e) {
2374
+ return intersect_default.circle(S, 14, e);
2375
+ }, C;
2376
+ }, "choice"), hexagon = /* @__PURE__ */ __name(async (e, S) => {
2377
+ let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.height + S.padding, E = T / 4, D = w.width + 2 * E + S.padding, O = [
2378
+ {
2379
+ x: E,
2380
+ y: 0
2381
+ },
2382
+ {
2383
+ x: D - E,
2384
+ y: 0
2385
+ },
2386
+ {
2387
+ x: D,
2388
+ y: -T / 2
2389
+ },
2390
+ {
2391
+ x: D - E,
2392
+ y: -T
2393
+ },
2394
+ {
2395
+ x: E,
2396
+ y: -T
2397
+ },
2398
+ {
2399
+ x: 0,
2400
+ y: -T / 2
2401
+ }
2402
+ ], k = insertPolygonShape(C, D, T, O);
2403
+ return k.attr("style", S.style), updateNodeBounds(S, k), S.intersect = function(e) {
2404
+ return intersect_default.polygon(S, O, e);
2405
+ }, C;
2406
+ }, "hexagon"), block_arrow = /* @__PURE__ */ __name(async (e, S) => {
2407
+ let { shapeSvg: C, bbox: w } = await labelHelper(e, S, void 0, !0), T = w.height + 2 * S.padding, E = T / 2, D = w.width + 2 * E + S.padding, O = getArrowPoints(S.directions, w, S), k = insertPolygonShape(C, D, T, O);
2408
+ return k.attr("style", S.style), updateNodeBounds(S, k), S.intersect = function(e) {
2409
+ return intersect_default.polygon(S, O, e);
2410
+ }, C;
2411
+ }, "block_arrow"), rect_left_inv_arrow = /* @__PURE__ */ __name(async (e, S) => {
2412
+ let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.width + S.padding, E = w.height + S.padding, D = [
2413
+ {
2414
+ x: -E / 2,
2415
+ y: 0
2416
+ },
2417
+ {
2418
+ x: T,
2419
+ y: 0
2420
+ },
2421
+ {
2422
+ x: T,
2423
+ y: -E
2424
+ },
2425
+ {
2426
+ x: -E / 2,
2427
+ y: -E
2428
+ },
2429
+ {
2430
+ x: 0,
2431
+ y: -E / 2
2432
+ }
2433
+ ];
2434
+ return insertPolygonShape(C, T, E, D).attr("style", S.style), S.width = T + E, S.height = E, S.intersect = function(e) {
2435
+ return intersect_default.polygon(S, D, e);
2436
+ }, C;
2437
+ }, "rect_left_inv_arrow"), lean_right = /* @__PURE__ */ __name(async (e, S) => {
2438
+ let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S), !0), T = w.width + S.padding, E = w.height + S.padding, D = [
2439
+ {
2440
+ x: -2 * E / 6,
2441
+ y: 0
2442
+ },
2443
+ {
2444
+ x: T - E / 6,
2445
+ y: 0
2446
+ },
2447
+ {
2448
+ x: T + 2 * E / 6,
2449
+ y: -E
2450
+ },
2451
+ {
2452
+ x: E / 6,
2453
+ y: -E
2454
+ }
2455
+ ], O = insertPolygonShape(C, T, E, D);
2456
+ return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e) {
2457
+ return intersect_default.polygon(S, D, e);
2458
+ }, C;
2459
+ }, "lean_right"), lean_left = /* @__PURE__ */ __name(async (e, S) => {
2460
+ let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.width + S.padding, E = w.height + S.padding, D = [
2461
+ {
2462
+ x: 2 * E / 6,
2463
+ y: 0
2464
+ },
2465
+ {
2466
+ x: T + E / 6,
2467
+ y: 0
2468
+ },
2469
+ {
2470
+ x: T - 2 * E / 6,
2471
+ y: -E
2472
+ },
2473
+ {
2474
+ x: -E / 6,
2475
+ y: -E
2476
+ }
2477
+ ], O = insertPolygonShape(C, T, E, D);
2478
+ return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e) {
2479
+ return intersect_default.polygon(S, D, e);
2480
+ }, C;
2481
+ }, "lean_left"), trapezoid = /* @__PURE__ */ __name(async (e, S) => {
2482
+ let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.width + S.padding, E = w.height + S.padding, D = [
2483
+ {
2484
+ x: -2 * E / 6,
2485
+ y: 0
2486
+ },
2487
+ {
2488
+ x: T + 2 * E / 6,
2489
+ y: 0
2490
+ },
2491
+ {
2492
+ x: T - E / 6,
2493
+ y: -E
2494
+ },
2495
+ {
2496
+ x: E / 6,
2497
+ y: -E
2498
+ }
2499
+ ], O = insertPolygonShape(C, T, E, D);
2500
+ return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e) {
2501
+ return intersect_default.polygon(S, D, e);
2502
+ }, C;
2503
+ }, "trapezoid"), inv_trapezoid = /* @__PURE__ */ __name(async (e, S) => {
2504
+ let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.width + S.padding, E = w.height + S.padding, D = [
2505
+ {
2506
+ x: E / 6,
2507
+ y: 0
2508
+ },
2509
+ {
2510
+ x: T - E / 6,
2511
+ y: 0
2512
+ },
2513
+ {
2514
+ x: T + 2 * E / 6,
2515
+ y: -E
2516
+ },
2517
+ {
2518
+ x: -2 * E / 6,
2519
+ y: -E
2520
+ }
2521
+ ], O = insertPolygonShape(C, T, E, D);
2522
+ return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e) {
2523
+ return intersect_default.polygon(S, D, e);
2524
+ }, C;
2525
+ }, "inv_trapezoid"), rect_right_inv_arrow = /* @__PURE__ */ __name(async (e, S) => {
2526
+ let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.width + S.padding, E = w.height + S.padding, D = [
2527
+ {
2528
+ x: 0,
2529
+ y: 0
2530
+ },
2531
+ {
2532
+ x: T + E / 2,
2533
+ y: 0
2534
+ },
2535
+ {
2536
+ x: T,
2537
+ y: -E / 2
2538
+ },
2539
+ {
2540
+ x: T + E / 2,
2541
+ y: -E
2542
+ },
2543
+ {
2544
+ x: 0,
2545
+ y: -E
2546
+ }
2547
+ ], O = insertPolygonShape(C, T, E, D);
2548
+ return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e) {
2549
+ return intersect_default.polygon(S, D, e);
2550
+ }, C;
2551
+ }, "rect_right_inv_arrow"), cylinder = /* @__PURE__ */ __name(async (e, S) => {
2552
+ let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.width + S.padding, E = T / 2, D = E / (2.5 + T / 50), O = w.height + D + S.padding, k = "M 0," + D + " a " + E + "," + D + " 0,0,0 " + T + " 0 a " + E + "," + D + " 0,0,0 " + -T + " 0 l 0," + O + " a " + E + "," + D + " 0,0,0 " + T + " 0 l 0," + -O;
2553
+ return updateNodeBounds(S, C.attr("label-offset-y", D).insert("path", ":first-child").attr("style", S.style).attr("d", k).attr("transform", "translate(" + -T / 2 + "," + -(O / 2 + D) + ")")), S.intersect = function(e) {
2554
+ let C = intersect_default.rect(S, e), w = C.x - S.x;
2555
+ if (E != 0 && (Math.abs(w) < S.width / 2 || Math.abs(w) == S.width / 2 && Math.abs(C.y - S.y) > S.height / 2 - D)) {
2556
+ let T = D * D * (1 - w * w / (E * E));
2557
+ T != 0 && (T = Math.sqrt(T)), T = D - T, e.y - S.y > 0 && (T = -T), C.y += T;
2558
+ }
2559
+ return C;
2560
+ }, C;
2561
+ }, "cylinder"), rect = /* @__PURE__ */ __name(async (e, C) => {
2562
+ let { shapeSvg: w, bbox: T, halfPadding: E } = await labelHelper(e, C, "node " + C.classes + " " + C.class, !0), D = w.insert("rect", ":first-child"), O = C.positioned ? C.width : T.width + C.padding, k = C.positioned ? C.height : T.height + C.padding, A = C.positioned ? -O / 2 : -T.width / 2 - E, j = C.positioned ? -k / 2 : -T.height / 2 - E;
2563
+ if (D.attr("class", "basic label-container").attr("style", C.style).attr("rx", C.rx).attr("ry", C.ry).attr("x", A).attr("y", j).attr("width", O).attr("height", k), C.props) {
2564
+ let e = new Set(Object.keys(C.props));
2565
+ C.props.borders && (applyNodePropertyBorders(D, C.props.borders, O, k), e.delete("borders")), e.forEach((e) => {
2566
+ log.warn(`Unknown node property ${e}`);
2567
+ });
2568
+ }
2569
+ return updateNodeBounds(C, D), C.intersect = function(e) {
2570
+ return intersect_default.rect(C, e);
2571
+ }, w;
2572
+ }, "rect"), composite = /* @__PURE__ */ __name(async (e, C) => {
2573
+ let { shapeSvg: w, bbox: T, halfPadding: E } = await labelHelper(e, C, "node " + C.classes, !0), D = w.insert("rect", ":first-child"), O = C.positioned ? C.width : T.width + C.padding, k = C.positioned ? C.height : T.height + C.padding, A = C.positioned ? -O / 2 : -T.width / 2 - E, j = C.positioned ? -k / 2 : -T.height / 2 - E;
2574
+ if (D.attr("class", "basic cluster composite label-container").attr("style", C.style).attr("rx", C.rx).attr("ry", C.ry).attr("x", A).attr("y", j).attr("width", O).attr("height", k), C.props) {
2575
+ let e = new Set(Object.keys(C.props));
2576
+ C.props.borders && (applyNodePropertyBorders(D, C.props.borders, O, k), e.delete("borders")), e.forEach((e) => {
2577
+ log.warn(`Unknown node property ${e}`);
2578
+ });
2579
+ }
2580
+ return updateNodeBounds(C, D), C.intersect = function(e) {
2581
+ return intersect_default.rect(C, e);
2582
+ }, w;
2583
+ }, "composite"), labelRect = /* @__PURE__ */ __name(async (e, C) => {
2584
+ let { shapeSvg: w } = await labelHelper(e, C, "label", !0);
2585
+ log.trace("Classes = ", C.class);
2586
+ let T = w.insert("rect", ":first-child");
2587
+ if (T.attr("width", 0).attr("height", 0), w.attr("class", "label edgeLabel"), C.props) {
2588
+ let e = new Set(Object.keys(C.props));
2589
+ C.props.borders && (applyNodePropertyBorders(T, C.props.borders, 0, 0), e.delete("borders")), e.forEach((e) => {
2590
+ log.warn(`Unknown node property ${e}`);
2591
+ });
2592
+ }
2593
+ return updateNodeBounds(C, T), C.intersect = function(e) {
2594
+ return intersect_default.rect(C, e);
2595
+ }, w;
2596
+ }, "labelRect");
2597
+ function applyNodePropertyBorders(C, w, T, E) {
2598
+ let D = [], O = /* @__PURE__ */ __name((e) => {
2599
+ D.push(e, 0);
2600
+ }, "addBorder"), k = /* @__PURE__ */ __name((e) => {
2601
+ D.push(0, e);
2602
+ }, "skipBorder");
2603
+ w.includes("t") ? (log.debug("add top border"), O(T)) : k(T), w.includes("r") ? (log.debug("add right border"), O(E)) : k(E), w.includes("b") ? (log.debug("add bottom border"), O(T)) : k(T), w.includes("l") ? (log.debug("add left border"), O(E)) : k(E), C.attr("stroke-dasharray", D.join(" "));
2604
+ }
2605
+ __name(applyNodePropertyBorders, "applyNodePropertyBorders");
2606
+ var rectWithTitle = /* @__PURE__ */ __name(async (e, C) => {
2607
+ let w;
2608
+ w = C.classes ? "node " + C.classes : "node default";
2609
+ let T = e.insert("g").attr("class", w).attr("id", C.domId || C.id), E = T.insert("rect", ":first-child"), D = T.insert("line"), k = T.insert("g").attr("class", "label"), j = C.labelText.flat ? C.labelText.flat() : C.labelText, M = "";
2610
+ M = typeof j == "object" ? j[0] : j, log.info("Label text abc79", M, j, typeof j == "object");
2611
+ let P = k.node().appendChild(await createLabel_default(M, C.labelStyle, !0, !0)), F = {
2612
+ width: 0,
2613
+ height: 0
2614
+ };
2615
+ if (evaluate(getConfig2().flowchart.htmlLabels)) {
2616
+ let e = P.children[0], S = select_default(P);
2617
+ F = e.getBoundingClientRect(), S.attr("width", F.width), S.attr("height", F.height);
2618
+ }
2619
+ log.info("Text 2", j);
2620
+ let I = j.slice(1, j.length), L = P.getBBox(), R = k.node().appendChild(await createLabel_default(I.join ? I.join("<br/>") : I, C.labelStyle, !0, !0));
2621
+ if (evaluate(getConfig2().flowchart.htmlLabels)) {
2622
+ let e = R.children[0], S = select_default(R);
2623
+ F = e.getBoundingClientRect(), S.attr("width", F.width), S.attr("height", F.height);
2624
+ }
2625
+ let z = C.padding / 2;
2626
+ return select_default(R).attr("transform", "translate( " + (F.width > L.width ? 0 : (L.width - F.width) / 2) + ", " + (L.height + z + 5) + ")"), select_default(P).attr("transform", "translate( " + (F.width < L.width ? 0 : -(L.width - F.width) / 2) + ", 0)"), F = k.node().getBBox(), k.attr("transform", "translate(" + -F.width / 2 + ", " + (-F.height / 2 - z + 3) + ")"), E.attr("class", "outer title-state").attr("x", -F.width / 2 - z).attr("y", -F.height / 2 - z).attr("width", F.width + C.padding).attr("height", F.height + C.padding), D.attr("class", "divider").attr("x1", -F.width / 2 - z).attr("x2", F.width / 2 + z).attr("y1", -F.height / 2 - z + L.height + z).attr("y2", -F.height / 2 - z + L.height + z), updateNodeBounds(C, E), C.intersect = function(e) {
2627
+ return intersect_default.rect(C, e);
2628
+ }, T;
2629
+ }, "rectWithTitle"), stadium = /* @__PURE__ */ __name(async (e, S) => {
2630
+ let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.height + S.padding, E = w.width + T / 4 + S.padding;
2631
+ return updateNodeBounds(S, C.insert("rect", ":first-child").attr("style", S.style).attr("rx", T / 2).attr("ry", T / 2).attr("x", -E / 2).attr("y", -T / 2).attr("width", E).attr("height", T)), S.intersect = function(e) {
2632
+ return intersect_default.rect(S, e);
2633
+ }, C;
2634
+ }, "stadium"), circle2 = /* @__PURE__ */ __name(async (e, C) => {
2635
+ let { shapeSvg: w, bbox: T, halfPadding: E } = await labelHelper(e, C, getClassesFromNode(C, void 0), !0), D = w.insert("circle", ":first-child");
2636
+ return D.attr("style", C.style).attr("rx", C.rx).attr("ry", C.ry).attr("r", T.width / 2 + E).attr("width", T.width + C.padding).attr("height", T.height + C.padding), log.info("Circle main"), updateNodeBounds(C, D), C.intersect = function(e) {
2637
+ return log.info("Circle intersect", C, T.width / 2 + E, e), intersect_default.circle(C, T.width / 2 + E, e);
2638
+ }, w;
2639
+ }, "circle"), doublecircle = /* @__PURE__ */ __name(async (e, C) => {
2640
+ let { shapeSvg: w, bbox: T, halfPadding: E } = await labelHelper(e, C, getClassesFromNode(C, void 0), !0), D = w.insert("g", ":first-child"), O = D.insert("circle"), k = D.insert("circle");
2641
+ return D.attr("class", C.class), O.attr("style", C.style).attr("rx", C.rx).attr("ry", C.ry).attr("r", T.width / 2 + E + 5).attr("width", T.width + C.padding + 10).attr("height", T.height + C.padding + 10), k.attr("style", C.style).attr("rx", C.rx).attr("ry", C.ry).attr("r", T.width / 2 + E).attr("width", T.width + C.padding).attr("height", T.height + C.padding), log.info("DoubleCircle main"), updateNodeBounds(C, O), C.intersect = function(e) {
2642
+ return log.info("DoubleCircle intersect", C, T.width / 2 + E + 5, e), intersect_default.circle(C, T.width / 2 + E + 5, e);
2643
+ }, w;
2644
+ }, "doublecircle"), subroutine = /* @__PURE__ */ __name(async (e, S) => {
2645
+ let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.width + S.padding, E = w.height + S.padding, D = [
2646
+ {
2647
+ x: 0,
2648
+ y: 0
2649
+ },
2650
+ {
2651
+ x: T,
2652
+ y: 0
2653
+ },
2654
+ {
2655
+ x: T,
2656
+ y: -E
2657
+ },
2658
+ {
2659
+ x: 0,
2660
+ y: -E
2661
+ },
2662
+ {
2663
+ x: 0,
2664
+ y: 0
2665
+ },
2666
+ {
2667
+ x: -8,
2668
+ y: 0
2669
+ },
2670
+ {
2671
+ x: T + 8,
2672
+ y: 0
2673
+ },
2674
+ {
2675
+ x: T + 8,
2676
+ y: -E
2677
+ },
2678
+ {
2679
+ x: -8,
2680
+ y: -E
2681
+ },
2682
+ {
2683
+ x: -8,
2684
+ y: 0
2685
+ }
2686
+ ], O = insertPolygonShape(C, T, E, D);
2687
+ return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e) {
2688
+ return intersect_default.polygon(S, D, e);
2689
+ }, C;
2690
+ }, "subroutine"), start = /* @__PURE__ */ __name((e, S) => {
2691
+ let C = e.insert("g").attr("class", "node default").attr("id", S.domId || S.id), w = C.insert("circle", ":first-child");
2692
+ return w.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), updateNodeBounds(S, w), S.intersect = function(e) {
2693
+ return intersect_default.circle(S, 7, e);
2694
+ }, C;
2695
+ }, "start"), forkJoin = /* @__PURE__ */ __name((e, S, C) => {
2696
+ let w = e.insert("g").attr("class", "node default").attr("id", S.domId || S.id), T = 70, E = 10;
2697
+ return C === "LR" && (T = 10, E = 70), updateNodeBounds(S, w.append("rect").attr("x", -1 * T / 2).attr("y", -1 * E / 2).attr("width", T).attr("height", E).attr("class", "fork-join")), S.height += S.padding / 2, S.width += S.padding / 2, S.intersect = function(e) {
2698
+ return intersect_default.rect(S, e);
2699
+ }, w;
2700
+ }, "forkJoin"), shapes = {
2701
+ rhombus: question,
2702
+ composite,
2703
+ question,
2704
+ rect,
2705
+ labelRect,
2706
+ rectWithTitle,
2707
+ choice,
2708
+ circle: circle2,
2709
+ doublecircle,
2710
+ stadium,
2711
+ hexagon,
2712
+ block_arrow,
2713
+ rect_left_inv_arrow,
2714
+ lean_right,
2715
+ lean_left,
2716
+ trapezoid,
2717
+ inv_trapezoid,
2718
+ rect_right_inv_arrow,
2719
+ cylinder,
2720
+ start,
2721
+ end: /* @__PURE__ */ __name((e, S) => {
2722
+ let C = e.insert("g").attr("class", "node default").attr("id", S.domId || S.id), w = C.insert("circle", ":first-child"), T = C.insert("circle", ":first-child");
2723
+ return T.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), w.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), updateNodeBounds(S, T), S.intersect = function(e) {
2724
+ return intersect_default.circle(S, 7, e);
2725
+ }, C;
2726
+ }, "end"),
2727
+ note: note_default,
2728
+ subroutine,
2729
+ fork: forkJoin,
2730
+ join: forkJoin,
2731
+ class_box: /* @__PURE__ */ __name(async (e, S) => {
2732
+ let C = S.padding / 2, w;
2733
+ w = S.classes ? "node " + S.classes : "node default";
2734
+ let T = e.insert("g").attr("class", w).attr("id", S.domId || S.id), E = T.insert("rect", ":first-child"), D = T.insert("line"), k = T.insert("line"), j = 0, M = 4, P = T.insert("g").attr("class", "label"), F = 0, I = S.classData.annotations?.[0], L = S.classData.annotations[0] ? "«" + S.classData.annotations[0] + "»" : "", R = P.node().appendChild(await createLabel_default(L, S.labelStyle, !0, !0)), z = R.getBBox();
2735
+ if (evaluate(getConfig2().flowchart.htmlLabels)) {
2736
+ let e = R.children[0], S = select_default(R);
2737
+ z = e.getBoundingClientRect(), S.attr("width", z.width), S.attr("height", z.height);
2738
+ }
2739
+ S.classData.annotations[0] && (M += z.height + 4, j += z.width);
2740
+ let B = S.classData.label;
2741
+ S.classData.type !== void 0 && S.classData.type !== "" && (getConfig2().flowchart.htmlLabels ? B += "&lt;" + S.classData.type + "&gt;" : B += "<" + S.classData.type + ">");
2742
+ let V = P.node().appendChild(await createLabel_default(B, S.labelStyle, !0, !0));
2743
+ select_default(V).attr("class", "classTitle");
2744
+ let H = V.getBBox();
2745
+ if (evaluate(getConfig2().flowchart.htmlLabels)) {
2746
+ let e = V.children[0], S = select_default(V);
2747
+ H = e.getBoundingClientRect(), S.attr("width", H.width), S.attr("height", H.height);
2748
+ }
2749
+ M += H.height + 4, H.width > j && (j = H.width);
2750
+ let U = [];
2751
+ S.classData.members.forEach(async (e) => {
2752
+ let C = e.getDisplayDetails(), w = C.displayText;
2753
+ getConfig2().flowchart.htmlLabels && (w = w.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
2754
+ let T = P.node().appendChild(await createLabel_default(w, C.cssStyle ? C.cssStyle : S.labelStyle, !0, !0)), E = T.getBBox();
2755
+ if (evaluate(getConfig2().flowchart.htmlLabels)) {
2756
+ let e = T.children[0], S = select_default(T);
2757
+ E = e.getBoundingClientRect(), S.attr("width", E.width), S.attr("height", E.height);
2758
+ }
2759
+ E.width > j && (j = E.width), M += E.height + 4, U.push(T);
2760
+ }), M += 8;
2761
+ let W = [];
2762
+ if (S.classData.methods.forEach(async (e) => {
2763
+ let C = e.getDisplayDetails(), w = C.displayText;
2764
+ getConfig2().flowchart.htmlLabels && (w = w.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
2765
+ let T = P.node().appendChild(await createLabel_default(w, C.cssStyle ? C.cssStyle : S.labelStyle, !0, !0)), E = T.getBBox();
2766
+ if (evaluate(getConfig2().flowchart.htmlLabels)) {
2767
+ let e = T.children[0], S = select_default(T);
2768
+ E = e.getBoundingClientRect(), S.attr("width", E.width), S.attr("height", E.height);
2769
+ }
2770
+ E.width > j && (j = E.width), M += E.height + 4, W.push(T);
2771
+ }), M += 8, I) {
2772
+ let e = (j - z.width) / 2;
2773
+ select_default(R).attr("transform", "translate( " + (-1 * j / 2 + e) + ", " + -1 * M / 2 + ")"), F = z.height + 4;
2774
+ }
2775
+ let G = (j - H.width) / 2;
2776
+ return select_default(V).attr("transform", "translate( " + (-1 * j / 2 + G) + ", " + (-1 * M / 2 + F) + ")"), F += H.height + 4, D.attr("class", "divider").attr("x1", -j / 2 - C).attr("x2", j / 2 + C).attr("y1", -M / 2 - C + 8 + F).attr("y2", -M / 2 - C + 8 + F), F += 8, U.forEach((e) => {
2777
+ select_default(e).attr("transform", "translate( " + -j / 2 + ", " + (-1 * M / 2 + F + 8 / 2) + ")");
2778
+ let S = e?.getBBox();
2779
+ F += (S?.height ?? 0) + 4;
2780
+ }), F += 8, k.attr("class", "divider").attr("x1", -j / 2 - C).attr("x2", j / 2 + C).attr("y1", -M / 2 - C + 8 + F).attr("y2", -M / 2 - C + 8 + F), F += 8, W.forEach((e) => {
2781
+ select_default(e).attr("transform", "translate( " + -j / 2 + ", " + (-1 * M / 2 + F) + ")");
2782
+ let S = e?.getBBox();
2783
+ F += (S?.height ?? 0) + 4;
2784
+ }), E.attr("style", S.style).attr("class", "outer title-state").attr("x", -j / 2 - C).attr("y", -(M / 2) - C).attr("width", j + S.padding).attr("height", M + S.padding), updateNodeBounds(S, E), S.intersect = function(e) {
2785
+ return intersect_default.rect(S, e);
2786
+ }, T;
2787
+ }, "class_box")
2788
+ }, nodeElems = {}, insertNode = /* @__PURE__ */ __name(async (e, S, C) => {
2789
+ let w, T;
2790
+ if (S.link) {
2791
+ let E;
2792
+ getConfig2().securityLevel === "sandbox" ? E = "_top" : S.linkTarget && (E = S.linkTarget || "_blank"), w = e.insert("svg:a").attr("xlink:href", S.link).attr("target", E), T = await shapes[S.shape](w, S, C);
2793
+ } else T = await shapes[S.shape](e, S, C), w = T;
2794
+ return S.tooltip && T.attr("title", S.tooltip), S.class && T.attr("class", "node default " + S.class), nodeElems[S.id] = w, S.haveCallback && nodeElems[S.id].attr("class", nodeElems[S.id].attr("class") + " clickable"), w;
2795
+ }, "insertNode"), positionNode = /* @__PURE__ */ __name((e) => {
2796
+ let C = nodeElems[e.id];
2797
+ log.trace("Transforming node", e.diff, e, "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")");
2798
+ let w = e.diff || 0;
2799
+ return e.clusterNode ? C.attr("transform", "translate(" + (e.x + w - e.width / 2) + ", " + (e.y - e.height / 2 - 8) + ")") : C.attr("transform", "translate(" + e.x + ", " + e.y + ")"), w;
2800
+ }, "positionNode");
2801
+ function getNodeFromBlock(e, S, C = !1) {
2802
+ let w = e, T = "default";
2803
+ (w?.classes?.length || 0) > 0 && (T = (w?.classes ?? []).join(" ")), T += " flowchart-label";
2804
+ let E = 0, D = "", O;
2805
+ switch (w.type) {
2806
+ case "round":
2807
+ E = 5, D = "rect";
2808
+ break;
2809
+ case "composite":
2810
+ E = 0, D = "composite", O = 0;
2811
+ break;
2812
+ case "square":
2813
+ D = "rect";
2814
+ break;
2815
+ case "diamond":
2816
+ D = "question";
2817
+ break;
2818
+ case "hexagon":
2819
+ D = "hexagon";
2820
+ break;
2821
+ case "block_arrow":
2822
+ D = "block_arrow";
2823
+ break;
2824
+ case "odd":
2825
+ D = "rect_left_inv_arrow";
2826
+ break;
2827
+ case "lean_right":
2828
+ D = "lean_right";
2829
+ break;
2830
+ case "lean_left":
2831
+ D = "lean_left";
2832
+ break;
2833
+ case "trapezoid":
2834
+ D = "trapezoid";
2835
+ break;
2836
+ case "inv_trapezoid":
2837
+ D = "inv_trapezoid";
2838
+ break;
2839
+ case "rect_left_inv_arrow":
2840
+ D = "rect_left_inv_arrow";
2841
+ break;
2842
+ case "circle":
2843
+ D = "circle";
2844
+ break;
2845
+ case "ellipse":
2846
+ D = "ellipse";
2847
+ break;
2848
+ case "stadium":
2849
+ D = "stadium";
2850
+ break;
2851
+ case "subroutine":
2852
+ D = "subroutine";
2853
+ break;
2854
+ case "cylinder":
2855
+ D = "cylinder";
2856
+ break;
2857
+ case "group":
2858
+ D = "rect";
2859
+ break;
2860
+ case "doublecircle":
2861
+ D = "doublecircle";
2862
+ break;
2863
+ default: D = "rect";
2864
+ }
2865
+ let A = getStylesFromArray(w?.styles ?? []), j = w.label, M = w.size ?? {
2866
+ width: 0,
2867
+ height: 0,
2868
+ x: 0,
2869
+ y: 0
2870
+ };
2871
+ return {
2872
+ labelStyle: A.labelStyle,
2873
+ shape: D,
2874
+ labelText: j,
2875
+ rx: E,
2876
+ ry: E,
2877
+ class: T,
2878
+ style: A.style,
2879
+ id: w.id,
2880
+ directions: w.directions,
2881
+ width: M.width,
2882
+ height: M.height,
2883
+ x: M.x,
2884
+ y: M.y,
2885
+ positioned: C,
2886
+ intersect: void 0,
2887
+ type: w.type,
2888
+ padding: O ?? getConfig()?.block?.padding ?? 0
2889
+ };
2890
+ }
2891
+ __name(getNodeFromBlock, "getNodeFromBlock");
2892
+ async function calculateBlockSize(e, S, C) {
2893
+ let w = getNodeFromBlock(S, C, !1);
2894
+ if (w.type === "group") return;
2895
+ let T = await insertNode(e, w, { config: getConfig() }), E = T.node().getBBox(), D = C.getBlock(w.id);
2896
+ D.size = {
2897
+ width: E.width,
2898
+ height: E.height,
2899
+ x: 0,
2900
+ y: 0,
2901
+ node: T
2902
+ }, C.setBlock(D), T.remove();
2903
+ }
2904
+ __name(calculateBlockSize, "calculateBlockSize");
2905
+ async function insertBlockPositioned(e, S, C) {
2906
+ let w = getNodeFromBlock(S, C, !0);
2907
+ C.getBlock(w.id).type !== "space" && (await insertNode(e, w, { config: getConfig() }), S.intersect = w?.intersect, positionNode(w));
2908
+ }
2909
+ __name(insertBlockPositioned, "insertBlockPositioned");
2910
+ async function performOperations(e, S, C, w) {
2911
+ for (let T of S) await w(e, T, C), T.children && await performOperations(e, T.children, C, w);
2912
+ }
2913
+ __name(performOperations, "performOperations");
2914
+ async function calculateBlockSizes(e, S, C) {
2915
+ await performOperations(e, S, C, calculateBlockSize);
2916
+ }
2917
+ __name(calculateBlockSizes, "calculateBlockSizes");
2918
+ async function insertBlocks(e, S, C) {
2919
+ await performOperations(e, S, C, insertBlockPositioned);
2920
+ }
2921
+ __name(insertBlocks, "insertBlocks");
2922
+ async function insertEdges(e, S, C, w, T) {
2923
+ let E = new Graph({
2924
+ multigraph: !0,
2925
+ compound: !0
2926
+ });
2927
+ E.setGraph({
2928
+ rankdir: "TB",
2929
+ nodesep: 10,
2930
+ ranksep: 10,
2931
+ marginx: 8,
2932
+ marginy: 8
2933
+ });
2934
+ for (let e of C) e.size && E.setNode(e.id, {
2935
+ width: e.size.width,
2936
+ height: e.size.height,
2937
+ intersect: e.intersect
2938
+ });
2939
+ for (let C of S) if (C.start && C.end) {
2940
+ let S = w.getBlock(C.start), D = w.getBlock(C.end);
2941
+ if (S?.size && D?.size) {
2942
+ let w = S.size, O = D.size, k = [
2943
+ {
2944
+ x: w.x,
2945
+ y: w.y
2946
+ },
2947
+ {
2948
+ x: w.x + (O.x - w.x) / 2,
2949
+ y: w.y + (O.y - w.y) / 2
2950
+ },
2951
+ {
2952
+ x: O.x,
2953
+ y: O.y
2954
+ }
2955
+ ];
2956
+ insertEdge(e, {
2957
+ v: C.start,
2958
+ w: C.end,
2959
+ name: C.id
2960
+ }, {
2961
+ ...C,
2962
+ arrowTypeEnd: C.arrowTypeEnd,
2963
+ arrowTypeStart: C.arrowTypeStart,
2964
+ points: k,
2965
+ classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
2966
+ }, void 0, "block", E, T), C.label && (await insertEdgeLabel(e, {
2967
+ ...C,
2968
+ label: C.label,
2969
+ labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
2970
+ arrowTypeEnd: C.arrowTypeEnd,
2971
+ arrowTypeStart: C.arrowTypeStart,
2972
+ points: k,
2973
+ classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
2974
+ }), positionEdgeLabel({
2975
+ ...C,
2976
+ x: k[1].x,
2977
+ y: k[1].y
2978
+ }, { originalPath: k }));
2979
+ }
2980
+ }
2981
+ }
2982
+ __name(insertEdges, "insertEdges");
2983
+ var diagram = {
2984
+ parser: block_default,
2985
+ db: blockDB_default,
2986
+ renderer: {
2987
+ draw: /* @__PURE__ */ __name(async function(e, C, w, T) {
2988
+ let { securityLevel: E, block: O } = getConfig(), A = T.db, j;
2989
+ E === "sandbox" && (j = select_default("#i" + C));
2990
+ let M = select_default(E === "sandbox" ? j.nodes()[0].contentDocument.body : "body"), P = E === "sandbox" ? M.select(`[id="${C}"]`) : select_default(`[id="${C}"]`);
2991
+ markers_default(P, [
2992
+ "point",
2993
+ "circle",
2994
+ "cross"
2995
+ ], T.type, C);
2996
+ let F = A.getBlocks(), I = A.getBlocksFlat(), L = A.getEdges(), R = P.insert("g").attr("class", "block");
2997
+ await calculateBlockSizes(R, F, A);
2998
+ let z = layout(A);
2999
+ if (await insertBlocks(R, F, A), await insertEdges(R, L, I, A, C), z) {
3000
+ let e = z, C = Math.max(1, Math.round(.125 * (e.width / e.height))), w = e.height + C + 10, T = e.width + 10, { useMaxWidth: E } = O;
3001
+ configureSvgSize(P, w, T, !!E), log.debug("Here Bounds", z, e), P.attr("viewBox", `${e.x - 5} ${e.y - 5} ${e.width + 10} ${e.height + 10}`);
3002
+ }
3003
+ }, "draw"),
3004
+ getClasses: /* @__PURE__ */ __name(function(e, S) {
3005
+ return S.db.getClasses();
3006
+ }, "getClasses")
3007
+ },
3008
+ styles: styles_default
3009
+ };
3010
+ export { diagram };