@loopstack/loopstack-studio 0.20.2 → 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,621 @@
1
+ import { __name, log } from "./chunk-AGHRB4JF.js";
2
+ import { clear, common_default, defaultConfig_default, getAccDescription, getAccTitle, getConfig, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle, setupGraphViewbox2 } from "./chunk-ABZYJK2D.js";
3
+ import select_default from "../../../../d3-selection/src/select.js";
4
+ import "../../../../d3/src/index.js";
5
+ import { cleanAndMerge, random, utils_default } from "./chunk-S3R3BYOJ.js";
6
+ import { populateCommonDb } from "./chunk-4BX2VUAB.js";
7
+ import { parse } from "../../../../@mermaid-js/parser/dist/mermaid-parser.core.js";
8
+ import { ImperativeState } from "./chunk-QZHKN3VN.js";
9
+ var commitType = {
10
+ NORMAL: 0,
11
+ REVERSE: 1,
12
+ HIGHLIGHT: 2,
13
+ MERGE: 3,
14
+ CHERRY_PICK: 4
15
+ }, DEFAULT_GITGRAPH_CONFIG = defaultConfig_default.gitGraph, getConfig3 = /* @__PURE__ */ __name(() => cleanAndMerge({
16
+ ...DEFAULT_GITGRAPH_CONFIG,
17
+ ...getConfig().gitGraph
18
+ }), "getConfig"), state = new ImperativeState(() => {
19
+ let f = getConfig3(), V = f.mainBranchName, H = f.mainBranchOrder;
20
+ return {
21
+ mainBranchName: V,
22
+ commits: /* @__PURE__ */ new Map(),
23
+ head: null,
24
+ branchConfig: /* @__PURE__ */ new Map([[V, {
25
+ name: V,
26
+ order: H
27
+ }]]),
28
+ branches: /* @__PURE__ */ new Map([[V, null]]),
29
+ currBranch: V,
30
+ direction: "LR",
31
+ seq: 0,
32
+ options: {}
33
+ };
34
+ });
35
+ function getID() {
36
+ return random({ length: 7 });
37
+ }
38
+ __name(getID, "getID");
39
+ function uniqBy(f, V) {
40
+ let H = /* @__PURE__ */ Object.create(null);
41
+ return f.reduce((f, U) => {
42
+ let W = V(U);
43
+ return H[W] || (H[W] = !0, f.push(U)), f;
44
+ }, []);
45
+ }
46
+ __name(uniqBy, "uniqBy");
47
+ var setDirection = /* @__PURE__ */ __name(function(f) {
48
+ state.records.direction = f;
49
+ }, "setDirection"), setOptions = /* @__PURE__ */ __name(function(f) {
50
+ log.debug("options str", f), f = f?.trim(), f ||= "{}";
51
+ try {
52
+ state.records.options = JSON.parse(f);
53
+ } catch (f) {
54
+ log.error("error while parsing gitGraph options", f.message);
55
+ }
56
+ }, "setOptions"), getOptions = /* @__PURE__ */ __name(function() {
57
+ return state.records.options;
58
+ }, "getOptions"), commit = /* @__PURE__ */ __name(function(f) {
59
+ let H = f.msg, W = f.id, G = f.type, K = f.tags;
60
+ log.info("commit", H, W, G, K), log.debug("Entering commit:", H, W, G, K);
61
+ let q = getConfig3();
62
+ W = common_default.sanitizeText(W, q), H = common_default.sanitizeText(H, q), K = K?.map((f) => common_default.sanitizeText(f, q));
63
+ let J = {
64
+ id: W || state.records.seq + "-" + getID(),
65
+ message: H,
66
+ seq: state.records.seq++,
67
+ type: G ?? commitType.NORMAL,
68
+ tags: K ?? [],
69
+ parents: state.records.head == null ? [] : [state.records.head.id],
70
+ branch: state.records.currBranch
71
+ };
72
+ state.records.head = J, log.info("main branch", q.mainBranchName), state.records.commits.has(J.id) && log.warn(`Commit ID ${J.id} already exists`), state.records.commits.set(J.id, J), state.records.branches.set(state.records.currBranch, J.id), log.debug("in pushCommit " + J.id);
73
+ }, "commit"), branch = /* @__PURE__ */ __name(function(f) {
74
+ let H = f.name, W = f.order;
75
+ if (H = common_default.sanitizeText(H, getConfig3()), state.records.branches.has(H)) throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${H}")`);
76
+ state.records.branches.set(H, state.records.head == null ? null : state.records.head.id), state.records.branchConfig.set(H, {
77
+ name: H,
78
+ order: W
79
+ }), checkout(H), log.debug("in createBranch");
80
+ }, "branch"), merge = /* @__PURE__ */ __name((f) => {
81
+ let H = f.branch, W = f.id, G = f.type, K = f.tags, q = getConfig3();
82
+ H = common_default.sanitizeText(H, q), W &&= common_default.sanitizeText(W, q);
83
+ let J = state.records.branches.get(state.records.currBranch), Y = state.records.branches.get(H), X = J ? state.records.commits.get(J) : void 0, Z = Y ? state.records.commits.get(Y) : void 0;
84
+ if (X && Z && X.branch === H) throw Error(`Cannot merge branch '${H}' into itself.`);
85
+ if (state.records.currBranch === H) {
86
+ let f = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Cannot merge a branch to itself");
87
+ throw f.hash = {
88
+ text: `merge ${H}`,
89
+ token: `merge ${H}`,
90
+ expected: ["branch abc"]
91
+ }, f;
92
+ }
93
+ if (X === void 0 || !X) {
94
+ let f = /* @__PURE__ */ Error(`Incorrect usage of "merge". Current branch (${state.records.currBranch})has no commits`);
95
+ throw f.hash = {
96
+ text: `merge ${H}`,
97
+ token: `merge ${H}`,
98
+ expected: ["commit"]
99
+ }, f;
100
+ }
101
+ if (!state.records.branches.has(H)) {
102
+ let f = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + H + ") does not exist");
103
+ throw f.hash = {
104
+ text: `merge ${H}`,
105
+ token: `merge ${H}`,
106
+ expected: [`branch ${H}`]
107
+ }, f;
108
+ }
109
+ if (Z === void 0 || !Z) {
110
+ let f = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + H + ") has no commits");
111
+ throw f.hash = {
112
+ text: `merge ${H}`,
113
+ token: `merge ${H}`,
114
+ expected: ["\"commit\""]
115
+ }, f;
116
+ }
117
+ if (X === Z) {
118
+ let f = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Both branches have same head");
119
+ throw f.hash = {
120
+ text: `merge ${H}`,
121
+ token: `merge ${H}`,
122
+ expected: ["branch abc"]
123
+ }, f;
124
+ }
125
+ if (W && state.records.commits.has(W)) {
126
+ let f = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Commit with id:" + W + " already exists, use different custom id");
127
+ throw f.hash = {
128
+ text: `merge ${H} ${W} ${G} ${K?.join(" ")}`,
129
+ token: `merge ${H} ${W} ${G} ${K?.join(" ")}`,
130
+ expected: [`merge ${H} ${W}_UNIQUE ${G} ${K?.join(" ")}`]
131
+ }, f;
132
+ }
133
+ let Q = Y || "", $ = {
134
+ id: W || `${state.records.seq}-${getID()}`,
135
+ message: `merged branch ${H} into ${state.records.currBranch}`,
136
+ seq: state.records.seq++,
137
+ parents: state.records.head == null ? [] : [state.records.head.id, Q],
138
+ branch: state.records.currBranch,
139
+ type: commitType.MERGE,
140
+ customType: G,
141
+ customId: !!W,
142
+ tags: K ?? []
143
+ };
144
+ state.records.head = $, state.records.commits.set($.id, $), state.records.branches.set(state.records.currBranch, $.id), log.debug(state.records.branches), log.debug("in mergeBranch");
145
+ }, "merge"), cherryPick = /* @__PURE__ */ __name(function(f) {
146
+ let H = f.id, W = f.targetId, G = f.tags, K = f.parent;
147
+ log.debug("Entering cherryPick:", H, W, G);
148
+ let q = getConfig3();
149
+ if (H = common_default.sanitizeText(H, q), W = common_default.sanitizeText(W, q), G = G?.map((f) => common_default.sanitizeText(f, q)), K = common_default.sanitizeText(K, q), !H || !state.records.commits.has(H)) {
150
+ let f = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
151
+ throw f.hash = {
152
+ text: `cherryPick ${H} ${W}`,
153
+ token: `cherryPick ${H} ${W}`,
154
+ expected: ["cherry-pick abc"]
155
+ }, f;
156
+ }
157
+ let J = state.records.commits.get(H);
158
+ if (J === void 0 || !J) throw Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
159
+ if (K && !(Array.isArray(J.parents) && J.parents.includes(K))) throw /* @__PURE__ */ Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");
160
+ let Y = J.branch;
161
+ if (J.type === commitType.MERGE && !K) throw /* @__PURE__ */ Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");
162
+ if (!W || !state.records.commits.has(W)) {
163
+ if (Y === state.records.currBranch) {
164
+ let f = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit is already on current branch");
165
+ throw f.hash = {
166
+ text: `cherryPick ${H} ${W}`,
167
+ token: `cherryPick ${H} ${W}`,
168
+ expected: ["cherry-pick abc"]
169
+ }, f;
170
+ }
171
+ let f = state.records.branches.get(state.records.currBranch);
172
+ if (f === void 0 || !f) {
173
+ let f = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${state.records.currBranch})has no commits`);
174
+ throw f.hash = {
175
+ text: `cherryPick ${H} ${W}`,
176
+ token: `cherryPick ${H} ${W}`,
177
+ expected: ["cherry-pick abc"]
178
+ }, f;
179
+ }
180
+ let U = state.records.commits.get(f);
181
+ if (U === void 0 || !U) {
182
+ let f = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${state.records.currBranch})has no commits`);
183
+ throw f.hash = {
184
+ text: `cherryPick ${H} ${W}`,
185
+ token: `cherryPick ${H} ${W}`,
186
+ expected: ["cherry-pick abc"]
187
+ }, f;
188
+ }
189
+ let q = {
190
+ id: state.records.seq + "-" + getID(),
191
+ message: `cherry-picked ${J?.message} into ${state.records.currBranch}`,
192
+ seq: state.records.seq++,
193
+ parents: state.records.head == null ? [] : [state.records.head.id, J.id],
194
+ branch: state.records.currBranch,
195
+ type: commitType.CHERRY_PICK,
196
+ tags: G ? G.filter(Boolean) : [`cherry-pick:${J.id}${J.type === commitType.MERGE ? `|parent:${K}` : ""}`]
197
+ };
198
+ state.records.head = q, state.records.commits.set(q.id, q), state.records.branches.set(state.records.currBranch, q.id), log.debug(state.records.branches), log.debug("in cherryPick");
199
+ }
200
+ }, "cherryPick"), checkout = /* @__PURE__ */ __name(function(f) {
201
+ if (f = common_default.sanitizeText(f, getConfig3()), state.records.branches.has(f)) {
202
+ state.records.currBranch = f;
203
+ let V = state.records.branches.get(state.records.currBranch);
204
+ V === void 0 || !V ? state.records.head = null : state.records.head = state.records.commits.get(V) ?? null;
205
+ } else {
206
+ let V = /* @__PURE__ */ Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${f}")`);
207
+ throw V.hash = {
208
+ text: `checkout ${f}`,
209
+ token: `checkout ${f}`,
210
+ expected: [`branch ${f}`]
211
+ }, V;
212
+ }
213
+ }, "checkout");
214
+ function upsert(f, V, H) {
215
+ let U = f.indexOf(V);
216
+ U === -1 ? f.push(H) : f.splice(U, 1, H);
217
+ }
218
+ __name(upsert, "upsert");
219
+ function prettyPrintCommitHistory(f) {
220
+ let H = f.reduce((f, V) => f.seq > V.seq ? f : V, f[0]), U = "";
221
+ f.forEach(function(f) {
222
+ f === H ? U += " *" : U += " |";
223
+ });
224
+ let W = [
225
+ U,
226
+ H.id,
227
+ H.seq
228
+ ];
229
+ for (let f in state.records.branches) state.records.branches.get(f) === H.id && W.push(f);
230
+ if (log.debug(W.join(" ")), H.parents && H.parents.length == 2 && H.parents[0] && H.parents[1]) {
231
+ let V = state.records.commits.get(H.parents[0]);
232
+ upsert(f, H, V), H.parents[1] && f.push(state.records.commits.get(H.parents[1]));
233
+ } else if (H.parents.length == 0) return;
234
+ else if (H.parents[0]) {
235
+ let V = state.records.commits.get(H.parents[0]);
236
+ upsert(f, H, V);
237
+ }
238
+ f = uniqBy(f, (f) => f.id), prettyPrintCommitHistory(f);
239
+ }
240
+ __name(prettyPrintCommitHistory, "prettyPrintCommitHistory");
241
+ var prettyPrint = /* @__PURE__ */ __name(function() {
242
+ log.debug(state.records.commits);
243
+ let f = getCommitsArray()[0];
244
+ prettyPrintCommitHistory([f]);
245
+ }, "prettyPrint"), clear2 = /* @__PURE__ */ __name(function() {
246
+ state.reset(), clear();
247
+ }, "clear"), getBranchesAsObjArray = /* @__PURE__ */ __name(function() {
248
+ return [...state.records.branchConfig.values()].map((f, V) => f.order !== null && f.order !== void 0 ? f : {
249
+ ...f,
250
+ order: parseFloat(`0.${V}`)
251
+ }).sort((f, V) => (f.order ?? 0) - (V.order ?? 0)).map(({ name: f }) => ({ name: f }));
252
+ }, "getBranchesAsObjArray"), getBranches = /* @__PURE__ */ __name(function() {
253
+ return state.records.branches;
254
+ }, "getBranches"), getCommits = /* @__PURE__ */ __name(function() {
255
+ return state.records.commits;
256
+ }, "getCommits"), getCommitsArray = /* @__PURE__ */ __name(function() {
257
+ let f = [...state.records.commits.values()];
258
+ return f.forEach(function(f) {
259
+ log.debug(f.id);
260
+ }), f.sort((f, V) => f.seq - V.seq), f;
261
+ }, "getCommitsArray"), db = {
262
+ commitType,
263
+ getConfig: getConfig3,
264
+ setDirection,
265
+ setOptions,
266
+ getOptions,
267
+ commit,
268
+ branch,
269
+ merge,
270
+ cherryPick,
271
+ checkout,
272
+ prettyPrint,
273
+ clear: clear2,
274
+ getBranchesAsObjArray,
275
+ getBranches,
276
+ getCommits,
277
+ getCommitsArray,
278
+ getCurrentBranch: /* @__PURE__ */ __name(function() {
279
+ return state.records.currBranch;
280
+ }, "getCurrentBranch"),
281
+ getDirection: /* @__PURE__ */ __name(function() {
282
+ return state.records.direction;
283
+ }, "getDirection"),
284
+ getHead: /* @__PURE__ */ __name(function() {
285
+ return state.records.head;
286
+ }, "getHead"),
287
+ setAccTitle,
288
+ getAccTitle,
289
+ getAccDescription,
290
+ setAccDescription,
291
+ setDiagramTitle,
292
+ getDiagramTitle
293
+ }, populate = /* @__PURE__ */ __name((f, V) => {
294
+ populateCommonDb(f, V), f.dir && V.setDirection(f.dir);
295
+ for (let H of f.statements) parseStatement(H, V);
296
+ }, "populate"), parseStatement = /* @__PURE__ */ __name((H, U) => {
297
+ let W = {
298
+ Commit: /* @__PURE__ */ __name((f) => U.commit(parseCommit(f)), "Commit"),
299
+ Branch: /* @__PURE__ */ __name((f) => U.branch(parseBranch(f)), "Branch"),
300
+ Merge: /* @__PURE__ */ __name((f) => U.merge(parseMerge(f)), "Merge"),
301
+ Checkout: /* @__PURE__ */ __name((f) => U.checkout(parseCheckout(f)), "Checkout"),
302
+ CherryPicking: /* @__PURE__ */ __name((f) => U.cherryPick(parseCherryPicking(f)), "CherryPicking")
303
+ }[H.$type];
304
+ W ? W(H) : log.error(`Unknown statement type: ${H.$type}`);
305
+ }, "parseStatement"), parseCommit = /* @__PURE__ */ __name((f) => ({
306
+ id: f.id,
307
+ msg: f.message ?? "",
308
+ type: f.type === void 0 ? commitType.NORMAL : commitType[f.type],
309
+ tags: f.tags ?? void 0
310
+ }), "parseCommit"), parseBranch = /* @__PURE__ */ __name((f) => ({
311
+ name: f.name,
312
+ order: f.order ?? 0
313
+ }), "parseBranch"), parseMerge = /* @__PURE__ */ __name((f) => ({
314
+ branch: f.branch,
315
+ id: f.id ?? "",
316
+ type: f.type === void 0 ? void 0 : commitType[f.type],
317
+ tags: f.tags ?? void 0
318
+ }), "parseMerge"), parseCheckout = /* @__PURE__ */ __name((f) => f.branch, "parseCheckout"), parseCherryPicking = /* @__PURE__ */ __name((f) => ({
319
+ id: f.id,
320
+ targetId: "",
321
+ tags: f.tags?.length === 0 ? void 0 : f.tags,
322
+ parent: f.parent
323
+ }), "parseCherryPicking"), parser = { parse: /* @__PURE__ */ __name(async (f) => {
324
+ let H = await parse("gitGraph", f);
325
+ log.debug(H), populate(H, db);
326
+ }, "parse") }, DEFAULT_GITGRAPH_CONFIG2 = getConfig2()?.gitGraph, LAYOUT_OFFSET = 10, COMMIT_STEP = 40, PX = 4, PY = 2, THEME_COLOR_LIMIT = 8, branchPos = /* @__PURE__ */ new Map(), commitPos = /* @__PURE__ */ new Map(), defaultPos = 30, allCommitsDict = /* @__PURE__ */ new Map(), lanes = [], maxPos = 0, dir = "LR", clear3 = /* @__PURE__ */ __name(() => {
327
+ branchPos.clear(), commitPos.clear(), allCommitsDict.clear(), maxPos = 0, lanes = [], dir = "LR";
328
+ }, "clear"), drawText = /* @__PURE__ */ __name((f) => {
329
+ let V = document.createElementNS("http://www.w3.org/2000/svg", "text");
330
+ return (typeof f == "string" ? f.split(/\\n|\n|<br\s*\/?>/gi) : f).forEach((f) => {
331
+ let H = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
332
+ H.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), H.setAttribute("dy", "1em"), H.setAttribute("x", "0"), H.setAttribute("class", "row"), H.textContent = f.trim(), V.appendChild(H);
333
+ }), V;
334
+ }, "drawText"), findClosestParent = /* @__PURE__ */ __name((V) => {
335
+ let H, U, W;
336
+ return dir === "BT" ? (U = /* @__PURE__ */ __name((f, V) => f <= V, "comparisonFunc"), W = Infinity) : (U = /* @__PURE__ */ __name((f, V) => f >= V, "comparisonFunc"), W = 0), V.forEach((f) => {
337
+ let V = dir === "TB" || dir == "BT" ? commitPos.get(f)?.y : commitPos.get(f)?.x;
338
+ V !== void 0 && U(V, W) && (H = f, W = V);
339
+ }), H;
340
+ }, "findClosestParent"), findClosestParentBT = /* @__PURE__ */ __name((f) => {
341
+ let V = "", H = Infinity;
342
+ return f.forEach((f) => {
343
+ let U = commitPos.get(f).y;
344
+ U <= H && (V = f, H = U);
345
+ }), V || void 0;
346
+ }, "findClosestParentBT"), setParallelBTPos = /* @__PURE__ */ __name((f, V, H) => {
347
+ let U = H, W = H, G = [];
348
+ f.forEach((f) => {
349
+ let H = V.get(f);
350
+ if (!H) throw Error(`Commit not found for key ${f}`);
351
+ H.parents.length ? (U = calculateCommitPosition(H), W = Math.max(U, W)) : G.push(H), setCommitPosition(H, U);
352
+ }), U = W, G.forEach((f) => {
353
+ setRootPosition(f, U, H);
354
+ }), f.forEach((f) => {
355
+ let H = V.get(f);
356
+ if (H?.parents.length) {
357
+ let f = findClosestParentBT(H.parents);
358
+ U = commitPos.get(f).y - COMMIT_STEP, U <= W && (W = U);
359
+ let V = branchPos.get(H.branch).pos, G = U - LAYOUT_OFFSET;
360
+ commitPos.set(H.id, {
361
+ x: V,
362
+ y: G
363
+ });
364
+ }
365
+ });
366
+ }, "setParallelBTPos"), findClosestParentPos = /* @__PURE__ */ __name((f) => {
367
+ let V = findClosestParent(f.parents.filter((f) => f !== null));
368
+ if (!V) throw Error(`Closest parent not found for commit ${f.id}`);
369
+ let H = commitPos.get(V)?.y;
370
+ if (H === void 0) throw Error(`Closest parent position not found for commit ${f.id}`);
371
+ return H;
372
+ }, "findClosestParentPos"), calculateCommitPosition = /* @__PURE__ */ __name((f) => findClosestParentPos(f) + COMMIT_STEP, "calculateCommitPosition"), setCommitPosition = /* @__PURE__ */ __name((f, V) => {
373
+ let H = branchPos.get(f.branch);
374
+ if (!H) throw Error(`Branch not found for commit ${f.id}`);
375
+ let U = H.pos, W = V + LAYOUT_OFFSET;
376
+ return commitPos.set(f.id, {
377
+ x: U,
378
+ y: W
379
+ }), {
380
+ x: U,
381
+ y: W
382
+ };
383
+ }, "setCommitPosition"), setRootPosition = /* @__PURE__ */ __name((f, V, H) => {
384
+ let U = branchPos.get(f.branch);
385
+ if (!U) throw Error(`Branch not found for commit ${f.id}`);
386
+ let W = V + H, G = U.pos;
387
+ commitPos.set(f.id, {
388
+ x: G,
389
+ y: W
390
+ });
391
+ }, "setRootPosition"), drawCommitBullet = /* @__PURE__ */ __name((f, V, H, U, W, G) => {
392
+ if (G === commitType.HIGHLIGHT) f.append("rect").attr("x", H.x - 10).attr("y", H.y - 10).attr("width", 20).attr("height", 20).attr("class", `commit ${V.id} commit-highlight${W % THEME_COLOR_LIMIT} ${U}-outer`), f.append("rect").attr("x", H.x - 6).attr("y", H.y - 6).attr("width", 12).attr("height", 12).attr("class", `commit ${V.id} commit${W % THEME_COLOR_LIMIT} ${U}-inner`);
393
+ else if (G === commitType.CHERRY_PICK) f.append("circle").attr("cx", H.x).attr("cy", H.y).attr("r", 10).attr("class", `commit ${V.id} ${U}`), f.append("circle").attr("cx", H.x - 3).attr("cy", H.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${V.id} ${U}`), f.append("circle").attr("cx", H.x + 3).attr("cy", H.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${V.id} ${U}`), f.append("line").attr("x1", H.x + 3).attr("y1", H.y + 1).attr("x2", H.x).attr("y2", H.y - 5).attr("stroke", "#fff").attr("class", `commit ${V.id} ${U}`), f.append("line").attr("x1", H.x - 3).attr("y1", H.y + 1).attr("x2", H.x).attr("y2", H.y - 5).attr("stroke", "#fff").attr("class", `commit ${V.id} ${U}`);
394
+ else {
395
+ let K = f.append("circle");
396
+ if (K.attr("cx", H.x), K.attr("cy", H.y), K.attr("r", V.type === commitType.MERGE ? 9 : 10), K.attr("class", `commit ${V.id} commit${W % THEME_COLOR_LIMIT}`), G === commitType.MERGE) {
397
+ let G = f.append("circle");
398
+ G.attr("cx", H.x), G.attr("cy", H.y), G.attr("r", 6), G.attr("class", `commit ${U} ${V.id} commit${W % THEME_COLOR_LIMIT}`);
399
+ }
400
+ G === commitType.REVERSE && f.append("path").attr("d", `M ${H.x - 5},${H.y - 5}L${H.x + 5},${H.y + 5}M${H.x - 5},${H.y + 5}L${H.x + 5},${H.y - 5}`).attr("class", `commit ${U} ${V.id} commit${W % THEME_COLOR_LIMIT}`);
401
+ }
402
+ }, "drawCommitBullet"), drawCommitLabel = /* @__PURE__ */ __name((f, V, H, U) => {
403
+ if (V.type !== commitType.CHERRY_PICK && (V.customId && V.type === commitType.MERGE || V.type !== commitType.MERGE) && DEFAULT_GITGRAPH_CONFIG2?.showCommitLabel) {
404
+ let W = f.append("g"), G = W.insert("rect").attr("class", "commit-label-bkg"), K = W.append("text").attr("x", U).attr("y", H.y + 25).attr("class", "commit-label").text(V.id), q = K.node()?.getBBox();
405
+ if (q && (G.attr("x", H.posWithOffset - q.width / 2 - PY).attr("y", H.y + 13.5).attr("width", q.width + 2 * PY).attr("height", q.height + 2 * PY), dir === "TB" || dir === "BT" ? (G.attr("x", H.x - (q.width + 4 * PX + 5)).attr("y", H.y - 12), K.attr("x", H.x - (q.width + 4 * PX)).attr("y", H.y + q.height - 12)) : K.attr("x", H.posWithOffset - q.width / 2), DEFAULT_GITGRAPH_CONFIG2.rotateCommitLabel)) if (dir === "TB" || dir === "BT") K.attr("transform", "rotate(-45, " + H.x + ", " + H.y + ")"), G.attr("transform", "rotate(-45, " + H.x + ", " + H.y + ")");
406
+ else {
407
+ let f = -7.5 - (q.width + 10) / 25 * 9.5, V = 10 + q.width / 25 * 8.5;
408
+ W.attr("transform", "translate(" + f + ", " + V + ") rotate(-45, " + U + ", " + H.y + ")");
409
+ }
410
+ }
411
+ }, "drawCommitLabel"), drawCommitTags = /* @__PURE__ */ __name((f, V, H, U) => {
412
+ if (V.tags.length > 0) {
413
+ let W = 0, G = 0, K = 0, q = [];
414
+ for (let U of V.tags.reverse()) {
415
+ let V = f.insert("polygon"), J = f.append("circle"), Y = f.append("text").attr("y", H.y - 16 - W).attr("class", "tag-label").text(U), X = Y.node()?.getBBox();
416
+ if (!X) throw Error("Tag bbox not found");
417
+ G = Math.max(G, X.width), K = Math.max(K, X.height), Y.attr("x", H.posWithOffset - X.width / 2), q.push({
418
+ tag: Y,
419
+ hole: J,
420
+ rect: V,
421
+ yOffset: W
422
+ }), W += 20;
423
+ }
424
+ for (let { tag: f, hole: V, rect: W, yOffset: J } of q) {
425
+ let q = K / 2, Y = H.y - 19.2 - J;
426
+ if (W.attr("class", "tag-label-bkg").attr("points", `
427
+ ${U - G / 2 - PX / 2},${Y + PY}
428
+ ${U - G / 2 - PX / 2},${Y - PY}
429
+ ${H.posWithOffset - G / 2 - PX},${Y - q - PY}
430
+ ${H.posWithOffset + G / 2 + PX},${Y - q - PY}
431
+ ${H.posWithOffset + G / 2 + PX},${Y + q + PY}
432
+ ${H.posWithOffset - G / 2 - PX},${Y + q + PY}`), V.attr("cy", Y).attr("cx", U - G / 2 + PX / 2).attr("r", 1.5).attr("class", "tag-hole"), dir === "TB" || dir === "BT") {
433
+ let K = U + J;
434
+ W.attr("class", "tag-label-bkg").attr("points", `
435
+ ${H.x},${K + 2}
436
+ ${H.x},${K - 2}
437
+ ${H.x + LAYOUT_OFFSET},${K - q - 2}
438
+ ${H.x + LAYOUT_OFFSET + G + 4},${K - q - 2}
439
+ ${H.x + LAYOUT_OFFSET + G + 4},${K + q + 2}
440
+ ${H.x + LAYOUT_OFFSET},${K + q + 2}`).attr("transform", "translate(12,12) rotate(45, " + H.x + "," + U + ")"), V.attr("cx", H.x + PX / 2).attr("cy", K).attr("transform", "translate(12,12) rotate(45, " + H.x + "," + U + ")"), f.attr("x", H.x + 5).attr("y", K + 3).attr("transform", "translate(14,14) rotate(45, " + H.x + "," + U + ")");
441
+ }
442
+ }
443
+ }
444
+ }, "drawCommitTags"), getCommitClassType = /* @__PURE__ */ __name((f) => {
445
+ switch (f.customType ?? f.type) {
446
+ case commitType.NORMAL: return "commit-normal";
447
+ case commitType.REVERSE: return "commit-reverse";
448
+ case commitType.HIGHLIGHT: return "commit-highlight";
449
+ case commitType.MERGE: return "commit-merge";
450
+ case commitType.CHERRY_PICK: return "commit-cherry-pick";
451
+ default: return "commit-normal";
452
+ }
453
+ }, "getCommitClassType"), calculatePosition = /* @__PURE__ */ __name((f, V, H, U) => {
454
+ let W = {
455
+ x: 0,
456
+ y: 0
457
+ };
458
+ if (f.parents.length > 0) {
459
+ let H = findClosestParent(f.parents);
460
+ if (H) {
461
+ let G = U.get(H) ?? W;
462
+ return V === "TB" ? G.y + COMMIT_STEP : V === "BT" ? (U.get(f.id) ?? W).y - COMMIT_STEP : G.x + COMMIT_STEP;
463
+ }
464
+ } else if (V === "TB") return defaultPos;
465
+ else if (V === "BT") return (U.get(f.id) ?? W).y - COMMIT_STEP;
466
+ else return 0;
467
+ return 0;
468
+ }, "calculatePosition"), getCommitPosition = /* @__PURE__ */ __name((f, V, H) => {
469
+ let U = dir === "BT" && H ? V : V + LAYOUT_OFFSET, W = dir === "TB" || dir === "BT" ? U : branchPos.get(f.branch)?.pos, G = dir === "TB" || dir === "BT" ? branchPos.get(f.branch)?.pos : U;
470
+ if (G === void 0 || W === void 0) throw Error(`Position were undefined for commit ${f.id}`);
471
+ return {
472
+ x: G,
473
+ y: W,
474
+ posWithOffset: U
475
+ };
476
+ }, "getCommitPosition"), drawCommits = /* @__PURE__ */ __name((V, H, U) => {
477
+ if (!DEFAULT_GITGRAPH_CONFIG2) throw Error("GitGraph config not found");
478
+ let W = V.append("g").attr("class", "commit-bullets"), G = V.append("g").attr("class", "commit-labels"), K = dir === "TB" || dir === "BT" ? defaultPos : 0, q = [...H.keys()], J = DEFAULT_GITGRAPH_CONFIG2?.parallelCommits ?? !1, Y = /* @__PURE__ */ __name((f, V) => {
479
+ let U = H.get(f)?.seq, W = H.get(V)?.seq;
480
+ return U !== void 0 && W !== void 0 ? U - W : 0;
481
+ }, "sortKeys"), X = q.sort(Y);
482
+ dir === "BT" && (J && setParallelBTPos(X, H, K), X = X.reverse()), X.forEach((f) => {
483
+ let V = H.get(f);
484
+ if (!V) throw Error(`Commit not found for key ${f}`);
485
+ J && (K = calculatePosition(V, dir, K, commitPos));
486
+ let q = getCommitPosition(V, K, J);
487
+ if (U) {
488
+ let f = getCommitClassType(V), H = V.customType ?? V.type;
489
+ drawCommitBullet(W, V, q, f, branchPos.get(V.branch)?.index ?? 0, H), drawCommitLabel(G, V, q, K), drawCommitTags(G, V, q, K);
490
+ }
491
+ dir === "TB" || dir === "BT" ? commitPos.set(V.id, {
492
+ x: q.x,
493
+ y: q.posWithOffset
494
+ }) : commitPos.set(V.id, {
495
+ x: q.posWithOffset,
496
+ y: q.y
497
+ }), K = dir === "BT" && J ? K + COMMIT_STEP : K + COMMIT_STEP + LAYOUT_OFFSET, K > maxPos && (maxPos = K);
498
+ });
499
+ }, "drawCommits"), shouldRerouteArrow = /* @__PURE__ */ __name((V, H, U, W, G) => {
500
+ let K = (dir === "TB" || dir === "BT" ? U.x < W.x : U.y < W.y) ? H.branch : V.branch, q = /* @__PURE__ */ __name((f) => f.branch === K, "isOnBranchToGetCurve"), J = /* @__PURE__ */ __name((f) => f.seq > V.seq && f.seq < H.seq, "isBetweenCommits");
501
+ return [...G.values()].some((f) => J(f) && q(f));
502
+ }, "shouldRerouteArrow"), findLane = /* @__PURE__ */ __name((f, V, H = 0) => {
503
+ let U = f + Math.abs(f - V) / 2;
504
+ return H > 5 ? U : lanes.every((f) => Math.abs(f - U) >= 10) ? (lanes.push(U), U) : findLane(f, V - Math.abs(f - V) / 5, H + 1);
505
+ }, "findLane"), drawArrow = /* @__PURE__ */ __name((f, V, H, U) => {
506
+ let W = commitPos.get(V.id), G = commitPos.get(H.id);
507
+ if (W === void 0 || G === void 0) throw Error(`Commit positions not found for commits ${V.id} and ${H.id}`);
508
+ let K = shouldRerouteArrow(V, H, W, G, U), q = "", J = "", Y = 0, X = 0, Z = branchPos.get(H.branch)?.index;
509
+ H.type === commitType.MERGE && V.id !== H.parents[0] && (Z = branchPos.get(V.branch)?.index);
510
+ let Q;
511
+ if (K) {
512
+ q = "A 10 10, 0, 0, 0,", J = "A 10 10, 0, 0, 1,", Y = 10, X = 10;
513
+ let f = W.y < G.y ? findLane(W.y, G.y) : findLane(G.y, W.y), H = W.x < G.x ? findLane(W.x, G.x) : findLane(G.x, W.x);
514
+ dir === "TB" ? W.x < G.x ? Q = `M ${W.x} ${W.y} L ${H - Y} ${W.y} ${J} ${H} ${W.y + X} L ${H} ${G.y - Y} ${q} ${H + X} ${G.y} L ${G.x} ${G.y}` : (Z = branchPos.get(V.branch)?.index, Q = `M ${W.x} ${W.y} L ${H + Y} ${W.y} ${q} ${H} ${W.y + X} L ${H} ${G.y - Y} ${J} ${H - X} ${G.y} L ${G.x} ${G.y}`) : dir === "BT" ? W.x < G.x ? Q = `M ${W.x} ${W.y} L ${H - Y} ${W.y} ${q} ${H} ${W.y - X} L ${H} ${G.y + Y} ${J} ${H + X} ${G.y} L ${G.x} ${G.y}` : (Z = branchPos.get(V.branch)?.index, Q = `M ${W.x} ${W.y} L ${H + Y} ${W.y} ${J} ${H} ${W.y - X} L ${H} ${G.y + Y} ${q} ${H - X} ${G.y} L ${G.x} ${G.y}`) : W.y < G.y ? Q = `M ${W.x} ${W.y} L ${W.x} ${f - Y} ${q} ${W.x + X} ${f} L ${G.x - Y} ${f} ${J} ${G.x} ${f + X} L ${G.x} ${G.y}` : (Z = branchPos.get(V.branch)?.index, Q = `M ${W.x} ${W.y} L ${W.x} ${f + Y} ${J} ${W.x + X} ${f} L ${G.x - Y} ${f} ${q} ${G.x} ${f - X} L ${G.x} ${G.y}`);
515
+ } else q = "A 20 20, 0, 0, 0,", J = "A 20 20, 0, 0, 1,", Y = 20, X = 20, dir === "TB" ? (W.x < G.x && (Q = H.type === commitType.MERGE && V.id !== H.parents[0] ? `M ${W.x} ${W.y} L ${W.x} ${G.y - Y} ${q} ${W.x + X} ${G.y} L ${G.x} ${G.y}` : `M ${W.x} ${W.y} L ${G.x - Y} ${W.y} ${J} ${G.x} ${W.y + X} L ${G.x} ${G.y}`), W.x > G.x && (q = "A 20 20, 0, 0, 0,", J = "A 20 20, 0, 0, 1,", Y = 20, X = 20, Q = H.type === commitType.MERGE && V.id !== H.parents[0] ? `M ${W.x} ${W.y} L ${W.x} ${G.y - Y} ${J} ${W.x - X} ${G.y} L ${G.x} ${G.y}` : `M ${W.x} ${W.y} L ${G.x + Y} ${W.y} ${q} ${G.x} ${W.y + X} L ${G.x} ${G.y}`), W.x === G.x && (Q = `M ${W.x} ${W.y} L ${G.x} ${G.y}`)) : dir === "BT" ? (W.x < G.x && (Q = H.type === commitType.MERGE && V.id !== H.parents[0] ? `M ${W.x} ${W.y} L ${W.x} ${G.y + Y} ${J} ${W.x + X} ${G.y} L ${G.x} ${G.y}` : `M ${W.x} ${W.y} L ${G.x - Y} ${W.y} ${q} ${G.x} ${W.y - X} L ${G.x} ${G.y}`), W.x > G.x && (q = "A 20 20, 0, 0, 0,", J = "A 20 20, 0, 0, 1,", Y = 20, X = 20, Q = H.type === commitType.MERGE && V.id !== H.parents[0] ? `M ${W.x} ${W.y} L ${W.x} ${G.y + Y} ${q} ${W.x - X} ${G.y} L ${G.x} ${G.y}` : `M ${W.x} ${W.y} L ${G.x - Y} ${W.y} ${q} ${G.x} ${W.y - X} L ${G.x} ${G.y}`), W.x === G.x && (Q = `M ${W.x} ${W.y} L ${G.x} ${G.y}`)) : (W.y < G.y && (Q = H.type === commitType.MERGE && V.id !== H.parents[0] ? `M ${W.x} ${W.y} L ${G.x - Y} ${W.y} ${J} ${G.x} ${W.y + X} L ${G.x} ${G.y}` : `M ${W.x} ${W.y} L ${W.x} ${G.y - Y} ${q} ${W.x + X} ${G.y} L ${G.x} ${G.y}`), W.y > G.y && (Q = H.type === commitType.MERGE && V.id !== H.parents[0] ? `M ${W.x} ${W.y} L ${G.x - Y} ${W.y} ${q} ${G.x} ${W.y - X} L ${G.x} ${G.y}` : `M ${W.x} ${W.y} L ${W.x} ${G.y + Y} ${J} ${W.x + X} ${G.y} L ${G.x} ${G.y}`), W.y === G.y && (Q = `M ${W.x} ${W.y} L ${G.x} ${G.y}`));
516
+ if (Q === void 0) throw Error("Line definition not found");
517
+ f.append("path").attr("d", Q).attr("class", "arrow arrow" + Z % THEME_COLOR_LIMIT);
518
+ }, "drawArrow"), drawArrows = /* @__PURE__ */ __name((f, V) => {
519
+ let H = f.append("g").attr("class", "commit-arrows");
520
+ [...V.keys()].forEach((f) => {
521
+ let U = V.get(f);
522
+ U.parents && U.parents.length > 0 && U.parents.forEach((f) => {
523
+ drawArrow(H, V.get(f), U, V);
524
+ });
525
+ });
526
+ }, "drawArrows"), drawBranches = /* @__PURE__ */ __name((f, V) => {
527
+ let H = f.append("g");
528
+ V.forEach((f, V) => {
529
+ let U = V % THEME_COLOR_LIMIT, W = branchPos.get(f.name)?.pos;
530
+ if (W === void 0) throw Error(`Position not found for branch ${f.name}`);
531
+ let G = H.append("line");
532
+ G.attr("x1", 0), G.attr("y1", W), G.attr("x2", maxPos), G.attr("y2", W), G.attr("class", "branch branch" + U), dir === "TB" ? (G.attr("y1", defaultPos), G.attr("x1", W), G.attr("y2", maxPos), G.attr("x2", W)) : dir === "BT" && (G.attr("y1", maxPos), G.attr("x1", W), G.attr("y2", defaultPos), G.attr("x2", W)), lanes.push(W);
533
+ let K = f.name, q = drawText(K), J = H.insert("rect"), Y = H.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + U);
534
+ Y.node().appendChild(q);
535
+ let X = q.getBBox();
536
+ J.attr("class", "branchLabelBkg label" + U).attr("rx", 4).attr("ry", 4).attr("x", -X.width - 4 - (DEFAULT_GITGRAPH_CONFIG2?.rotateCommitLabel === !0 ? 30 : 0)).attr("y", -X.height / 2 + 8).attr("width", X.width + 18).attr("height", X.height + 4), Y.attr("transform", "translate(" + (-X.width - 14 - (DEFAULT_GITGRAPH_CONFIG2?.rotateCommitLabel === !0 ? 30 : 0)) + ", " + (W - X.height / 2 - 1) + ")"), dir === "TB" ? (J.attr("x", W - X.width / 2 - 10).attr("y", 0), Y.attr("transform", "translate(" + (W - X.width / 2 - 5) + ", 0)")) : dir === "BT" ? (J.attr("x", W - X.width / 2 - 10).attr("y", maxPos), Y.attr("transform", "translate(" + (W - X.width / 2 - 5) + ", " + maxPos + ")")) : J.attr("transform", "translate(-19, " + (W - X.height / 2) + ")");
537
+ });
538
+ }, "drawBranches"), setBranchPosition = /* @__PURE__ */ __name(function(f, V, H, U, W) {
539
+ return branchPos.set(f, {
540
+ pos: V,
541
+ index: H
542
+ }), V += 50 + (W ? 40 : 0) + (dir === "TB" || dir === "BT" ? U.width / 2 : 0), V;
543
+ }, "setBranchPosition"), diagram = {
544
+ parser,
545
+ db,
546
+ renderer: { draw: /* @__PURE__ */ __name(function(f, H, U, W) {
547
+ if (clear3(), log.debug("in gitgraph renderer", f + "\n", "id:", H, U), !DEFAULT_GITGRAPH_CONFIG2) throw Error("GitGraph config not found");
548
+ let G = DEFAULT_GITGRAPH_CONFIG2.rotateCommitLabel ?? !1, K = W.db;
549
+ allCommitsDict = K.getCommits();
550
+ let q = K.getBranchesAsObjArray();
551
+ dir = K.getDirection();
552
+ let J = select_default(`[id="${H}"]`), Y = 0;
553
+ q.forEach((f, V) => {
554
+ let H = drawText(f.name), U = J.append("g"), W = U.insert("g").attr("class", "branchLabel"), K = W.insert("g").attr("class", "label branch-label");
555
+ K.node()?.appendChild(H);
556
+ let q = H.getBBox();
557
+ Y = setBranchPosition(f.name, Y, V, q, G), K.remove(), W.remove(), U.remove();
558
+ }), drawCommits(J, allCommitsDict, !1), DEFAULT_GITGRAPH_CONFIG2.showBranches && drawBranches(J, q), drawArrows(J, allCommitsDict), drawCommits(J, allCommitsDict, !0), utils_default.insertTitle(J, "gitTitleText", DEFAULT_GITGRAPH_CONFIG2.titleTopMargin ?? 0, K.getDiagramTitle()), setupGraphViewbox2(void 0, J, DEFAULT_GITGRAPH_CONFIG2.diagramPadding, DEFAULT_GITGRAPH_CONFIG2.useMaxWidth);
559
+ }, "draw") },
560
+ styles: /* @__PURE__ */ __name((f) => `
561
+ .commit-id,
562
+ .commit-msg,
563
+ .branch-label {
564
+ fill: lightgrey;
565
+ color: lightgrey;
566
+ font-family: 'trebuchet ms', verdana, arial, sans-serif;
567
+ font-family: var(--mermaid-font-family);
568
+ }
569
+ ${[
570
+ 0,
571
+ 1,
572
+ 2,
573
+ 3,
574
+ 4,
575
+ 5,
576
+ 6,
577
+ 7
578
+ ].map((V) => `
579
+ .branch-label${V} { fill: ${f["gitBranchLabel" + V]}; }
580
+ .commit${V} { stroke: ${f["git" + V]}; fill: ${f["git" + V]}; }
581
+ .commit-highlight${V} { stroke: ${f["gitInv" + V]}; fill: ${f["gitInv" + V]}; }
582
+ .label${V} { fill: ${f["git" + V]}; }
583
+ .arrow${V} { stroke: ${f["git" + V]}; }
584
+ `).join("\n")}
585
+
586
+ .branch {
587
+ stroke-width: 1;
588
+ stroke: ${f.lineColor};
589
+ stroke-dasharray: 2;
590
+ }
591
+ .commit-label { font-size: ${f.commitLabelFontSize}; fill: ${f.commitLabelColor};}
592
+ .commit-label-bkg { font-size: ${f.commitLabelFontSize}; fill: ${f.commitLabelBackground}; opacity: 0.5; }
593
+ .tag-label { font-size: ${f.tagLabelFontSize}; fill: ${f.tagLabelColor};}
594
+ .tag-label-bkg { fill: ${f.tagLabelBackground}; stroke: ${f.tagLabelBorder}; }
595
+ .tag-hole { fill: ${f.textColor}; }
596
+
597
+ .commit-merge {
598
+ stroke: ${f.primaryColor};
599
+ fill: ${f.primaryColor};
600
+ }
601
+ .commit-reverse {
602
+ stroke: ${f.primaryColor};
603
+ fill: ${f.primaryColor};
604
+ stroke-width: 3;
605
+ }
606
+ .commit-highlight-outer {
607
+ }
608
+ .commit-highlight-inner {
609
+ stroke: ${f.primaryColor};
610
+ fill: ${f.primaryColor};
611
+ }
612
+
613
+ .arrow { stroke-width: 8; stroke-linecap: round; fill: none}
614
+ .gitTitleText {
615
+ text-anchor: middle;
616
+ font-size: 18px;
617
+ fill: ${f.textColor};
618
+ }
619
+ `, "getStyles")
620
+ };
621
+ export { diagram };
@@ -0,0 +1,18 @@
1
+ import { package_default } from "./chunk-DR5Q36YT.js";
2
+ import { __name, log } from "./chunk-AGHRB4JF.js";
3
+ import { configureSvgSize } from "./chunk-ABZYJK2D.js";
4
+ import { selectSvgElement } from "./chunk-EXTU4WIE.js";
5
+ import { parse } from "../../../../@mermaid-js/parser/dist/mermaid-parser.core.js";
6
+ var parser = { parse: /* @__PURE__ */ __name(async (e) => {
7
+ let o = await parse("info", e);
8
+ log.debug(o);
9
+ }, "parse") }, DEFAULT_INFO_DB = { version: package_default.version + "" }, diagram = {
10
+ parser,
11
+ db: { getVersion: /* @__PURE__ */ __name(() => DEFAULT_INFO_DB.version, "getVersion") },
12
+ renderer: { draw: /* @__PURE__ */ __name((e, o, s) => {
13
+ log.debug("rendering info diagram\n" + e);
14
+ let c = selectSvgElement(o);
15
+ configureSvgSize(c, 100, 400, !0), c.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${s}`);
16
+ }, "draw") }
17
+ };
18
+ export { diagram };