@loopstack/loopstack-studio 0.24.0 → 0.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1771) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +20 -0
  2. package/dist/api/auth.js +4 -2
  3. package/dist/api/client.js +9 -7
  4. package/dist/api/config.js +7 -5
  5. package/dist/api/dashboard.js +4 -2
  6. package/dist/api/documents.js +4 -2
  7. package/dist/api/index.js +21 -23
  8. package/dist/api/processor.js +5 -3
  9. package/dist/api/secrets.js +4 -2
  10. package/dist/api/workflows.js +11 -3
  11. package/dist/api/workspaces.js +4 -2
  12. package/dist/app/EnvironmentEmbedRoot.js +24 -31
  13. package/dist/components/ai-elements/code-block.js +53 -71
  14. package/dist/components/ai-elements/message.js +41 -82
  15. package/dist/components/ai-elements/prompt-input.js +162 -253
  16. package/dist/components/ai-elements/reasoning.js +78 -116
  17. package/dist/components/ai-elements/shimmer.js +23 -35
  18. package/dist/components/ai-elements/sources.js +29 -58
  19. package/dist/components/data-table/ConfirmDialog.js +14 -30
  20. package/dist/components/data-table/DataList.js +138 -198
  21. package/dist/components/data-table/DataTable.js +168 -234
  22. package/dist/components/data-table/DataTableBatchAction.js +18 -27
  23. package/dist/components/data-table/DataTableFilters.js +53 -78
  24. package/dist/components/data-table/DataTablePagination.js +72 -104
  25. package/dist/components/data-table/DataTableToolbar.js +53 -65
  26. package/dist/components/dynamic-form/ArrayController.js +85 -103
  27. package/dist/components/dynamic-form/CodeContent.js +28 -36
  28. package/dist/components/dynamic-form/Form.js +43 -56
  29. package/dist/components/dynamic-form/FormBody.js +12 -10
  30. package/dist/components/dynamic-form/FormElement.js +31 -41
  31. package/dist/components/dynamic-form/FormElementHeader.js +12 -20
  32. package/dist/components/dynamic-form/InputController.js +36 -38
  33. package/dist/components/dynamic-form/MarkdownContent.js +53 -74
  34. package/dist/components/dynamic-form/MermaidDiagram.js +22 -24
  35. package/dist/components/dynamic-form/ObjectController.js +24 -32
  36. package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +35 -47
  37. package/dist/components/dynamic-form/fields/CheckboxField.js +39 -48
  38. package/dist/components/dynamic-form/fields/CodeViewField.js +42 -50
  39. package/dist/components/dynamic-form/fields/InputField.js +62 -90
  40. package/dist/components/dynamic-form/fields/MarkdownViewField.js +16 -19
  41. package/dist/components/dynamic-form/fields/RadioField.js +46 -62
  42. package/dist/components/dynamic-form/fields/SelectField.js +40 -58
  43. package/dist/components/dynamic-form/fields/SliderField.js +94 -100
  44. package/dist/components/dynamic-form/fields/SwitchField.js +42 -61
  45. package/dist/components/dynamic-form/fields/TextareaField.js +53 -72
  46. package/dist/components/dynamic-form/fields/utils/text-validation-utils.js +4 -2
  47. package/dist/components/dynamic-form/hooks/useArrayDefaultValue.js +6 -5
  48. package/dist/components/dynamic-form/hooks/useFieldConfig.js +19 -20
  49. package/dist/components/dynamic-form/hooks/useMergeParentKey.js +4 -2
  50. package/dist/components/dynamic-form/hooks/useSortPropertyNames.js +4 -2
  51. package/dist/components/feedback/ErrorAlert.js +11 -17
  52. package/dist/components/feedback/ErrorBoundary.js +16 -14
  53. package/dist/components/feedback/ErrorSnackbar.js +13 -30
  54. package/dist/components/feedback/LoadingCentered.js +15 -28
  55. package/dist/components/feedback/Snackbar.js +43 -44
  56. package/dist/components/feedback/index.js +5 -5
  57. package/dist/components/index.js +47 -47
  58. package/dist/components/layout/MainLayout.js +17 -25
  59. package/dist/components/layout/StudioSidebar.js +132 -202
  60. package/dist/components/lists/CustomListView.js +49 -74
  61. package/dist/components/lists/ListView.js +66 -102
  62. package/dist/components/loopstack-elements/link.js +71 -109
  63. package/dist/components/loopstack-elements/tool.js +99 -0
  64. package/dist/components/messages/CompletionMessagePaper.js +53 -85
  65. package/dist/components/page/PageBreadcrumbs.js +64 -83
  66. package/dist/components/ui/DiscordLogo.js +16 -22
  67. package/dist/components/ui/GoogleLogo.js +40 -44
  68. package/dist/components/ui/accordion.js +31 -52
  69. package/dist/components/ui/alert-dialog.js +59 -109
  70. package/dist/components/ui/alert.js +22 -36
  71. package/dist/components/ui/avatar.js +21 -35
  72. package/dist/components/ui/badge.js +13 -17
  73. package/dist/components/ui/breadcrumb.js +46 -82
  74. package/dist/components/ui/button-group.js +5 -5
  75. package/dist/components/ui/button.js +17 -21
  76. package/dist/components/ui/card.js +40 -74
  77. package/dist/components/ui/checkbox.js +17 -23
  78. package/dist/components/ui/collapsible.js +17 -25
  79. package/dist/components/ui/command.js +1 -2
  80. package/dist/components/ui/context-menu.js +32 -52
  81. package/dist/components/ui/dialog.js +62 -107
  82. package/dist/components/ui/drawer.js +54 -99
  83. package/dist/components/ui/dropdown-menu.js +91 -159
  84. package/dist/components/ui/hover-card.js +1 -2
  85. package/dist/components/ui/input-group.js +36 -56
  86. package/dist/components/ui/input.js +11 -15
  87. package/dist/components/ui/label.js +11 -15
  88. package/dist/components/ui/popover.js +25 -38
  89. package/dist/components/ui/radio-group.js +22 -33
  90. package/dist/components/ui/scroll-area.js +28 -43
  91. package/dist/components/ui/select.js +73 -134
  92. package/dist/components/ui/separator.js +13 -17
  93. package/dist/components/ui/sheet.js +60 -105
  94. package/dist/components/ui/sidebar.js +269 -451
  95. package/dist/components/ui/skeleton.js +10 -14
  96. package/dist/components/ui/slider.js +17 -15
  97. package/dist/components/ui/switch.js +15 -21
  98. package/dist/components/ui/table.js +46 -85
  99. package/dist/components/ui/tabs.js +26 -45
  100. package/dist/components/ui/textarea.js +10 -14
  101. package/dist/components/ui/tooltip.js +26 -41
  102. package/dist/components/ui-widgets/UiActions.js +30 -31
  103. package/dist/components/ui-widgets/UiWidget.js +34 -55
  104. package/dist/components/ui-widgets/widgets/AiPromptInput.js +28 -42
  105. package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +16 -19
  106. package/dist/components/ui-widgets/widgets/SandboxRun.js +19 -26
  107. package/dist/components/ui-widgets/widgets/SubmitButton.js +15 -18
  108. package/dist/events/api-client-events.js +4 -2
  109. package/dist/events/sse-client-events.js +4 -2
  110. package/dist/features/code-explorer/CodeExplorer.js +1 -2
  111. package/dist/features/code-explorer/components/CodeExplorerTree.js +2 -2
  112. package/dist/features/code-explorer/components/CodeExplorerTreeNode.js +31 -29
  113. package/dist/features/code-explorer/components/FileContentViewer.js +120 -185
  114. package/dist/features/code-explorer/components/FileTabsBar.js +1 -2
  115. package/dist/features/code-explorer/components/FileTabsBarBase.js +134 -169
  116. package/dist/features/code-explorer/index.js +1 -1
  117. package/dist/features/code-explorer/providers/CodeExplorerProvider.js +4 -4
  118. package/dist/features/code-explorer/utils/fileIcons.js +41 -39
  119. package/dist/features/dashboard/Dashboard.js +79 -121
  120. package/dist/features/dashboard/RunItem.js +50 -68
  121. package/dist/features/dashboard/RunList.js +17 -28
  122. package/dist/features/debug/components/ConfigFlowViewer.js +49 -67
  123. package/dist/features/debug/components/WorkflowDebugHeader.js +32 -0
  124. package/dist/features/debug/components/WorkflowDebugLegend.js +56 -0
  125. package/dist/features/debug/components/WorkflowFlowViewer.js +90 -0
  126. package/dist/features/debug/components/workflow-flow/StateNode.js +82 -0
  127. package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +41 -0
  128. package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +64 -0
  129. package/dist/features/debug/index.js +3 -3
  130. package/dist/features/debug/lib/edge-paths.js +33 -31
  131. package/dist/features/debug/lib/flow-utils.js +156 -162
  132. package/dist/features/documents/DocumentRenderer.js +77 -45
  133. package/dist/features/documents/components/DocumentItem.js +21 -24
  134. package/dist/features/documents/components/DocumentList.js +39 -42
  135. package/dist/features/documents/components/DocumentMetadataPills.js +44 -59
  136. package/dist/features/documents/document-details/DocumentDetails.js +298 -413
  137. package/dist/features/documents/document-details/PromptDetails.js +105 -142
  138. package/dist/features/documents/index.js +4 -4
  139. package/dist/features/documents/renderers/AiMessage.js +39 -48
  140. package/dist/features/documents/renderers/AiMessageContent.js +108 -164
  141. package/dist/features/documents/renderers/ChoicesRenderer.js +80 -0
  142. package/dist/features/documents/renderers/ClaudeMessage.js +74 -91
  143. package/dist/features/documents/renderers/ConfirmPromptRenderer.js +47 -0
  144. package/dist/features/documents/renderers/DocumentDebugRenderer.js +26 -30
  145. package/dist/features/documents/renderers/DocumentFormRenderer.js +80 -72
  146. package/dist/features/documents/renderers/DocumentMessageRenderer.js +10 -9
  147. package/dist/features/documents/renderers/ErrorMessageRenderer.js +11 -13
  148. package/dist/features/documents/renderers/LinkMessageRenderer.js +15 -16
  149. package/dist/features/documents/renderers/MarkdownMessageRenderer.js +8 -10
  150. package/dist/features/documents/renderers/PlainMessageRenderer.js +7 -9
  151. package/dist/features/documents/renderers/SecretInputRenderer.js +89 -0
  152. package/dist/features/documents/renderers/TextPromptRenderer.js +48 -0
  153. package/dist/features/documents/renderers/useDocumentTransition.js +32 -0
  154. package/dist/features/health/LocalHealthCheck.js +54 -53
  155. package/dist/features/health/index.js +1 -1
  156. package/dist/features/oauth/OAuthCallbackPage.js +2 -2
  157. package/dist/features/oauth/OAuthPromptRenderer.js +135 -184
  158. package/dist/features/oauth/index.js +2 -2
  159. package/dist/features/oauth/useOAuthPopup.js +52 -71
  160. package/dist/features/runs/Runs.js +145 -187
  161. package/dist/features/workbench/Workbench.js +72 -98
  162. package/dist/features/workbench/WorkflowItem.js +49 -67
  163. package/dist/features/workbench/WorkflowList.js +50 -82
  164. package/dist/features/workbench/components/NewRunDialog.js +214 -311
  165. package/dist/features/workbench/components/RemoteFileTabsBar.js +18 -17
  166. package/dist/features/workbench/components/RemoteFileTree.js +54 -85
  167. package/dist/features/workbench/components/WorkbenchFilesPanel.js +52 -63
  168. package/dist/features/workbench/components/WorkbenchFloatingPanel.js +34 -90
  169. package/dist/features/workbench/components/WorkbenchFlowPanel.js +35 -46
  170. package/dist/features/workbench/components/WorkbenchIconSidebar.js +50 -80
  171. package/dist/features/workbench/components/WorkbenchPreviewPanel.js +52 -50
  172. package/dist/features/workbench/components/WorkbenchSecretsPanel.js +143 -172
  173. package/dist/features/workbench/components/WorkbenchSettingsModal.js +50 -86
  174. package/dist/features/workbench/components/WorkflowForms.js +17 -22
  175. package/dist/features/workbench/components/WorkflowHistoryItem.js +96 -143
  176. package/dist/features/workbench/components/WorkflowHistoryList.js +33 -0
  177. package/dist/features/workbench/components/buttons/WorkflowButtons.js +70 -97
  178. package/dist/features/workbench/hooks/useAutoScrollBottom.js +21 -25
  179. package/dist/features/workbench/hooks/useScrollToListItem.js +20 -21
  180. package/dist/features/workbench/hooks/useWorkflowData.js +32 -45
  181. package/dist/features/workbench/hooks/useWorkflowListState.js +13 -49
  182. package/dist/features/workbench/index.js +7 -8
  183. package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +123 -138
  184. package/dist/features/workbench/providers/ScrollProvider.js +16 -20
  185. package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +76 -75
  186. package/dist/features/workspaces/Workspaces.js +161 -226
  187. package/dist/features/workspaces/components/CreateWorkspace.js +137 -194
  188. package/dist/features/workspaces/components/EnvironmentSlotSelector.js +27 -25
  189. package/dist/features/workspaces/components/ExecutionTimeline.js +144 -185
  190. package/dist/features/workspaces/components/NewWorkflowRunDialog.js +23 -0
  191. package/dist/features/workspaces/components/WorkflowRunForm.js +104 -0
  192. package/dist/features/workspaces/components/WorkspaceHomePage.js +60 -81
  193. package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +58 -0
  194. package/dist/features/workspaces/components/workflow-form/HeaderSection.js +29 -0
  195. package/dist/features/workspaces/components/workflow-form/SelectionView.js +66 -0
  196. package/dist/features/workspaces/index.js +3 -3
  197. package/dist/frontend/studio/node_modules/lodash/_Symbol.js +9 -0
  198. package/dist/frontend/studio/node_modules/lodash/_baseGetTag.js +15 -0
  199. package/dist/frontend/studio/node_modules/lodash/_baseTrim.js +13 -0
  200. package/dist/frontend/studio/node_modules/lodash/_freeGlobal.js +8 -0
  201. package/dist/frontend/studio/node_modules/lodash/_getRawTag.js +19 -0
  202. package/dist/frontend/studio/node_modules/lodash/_objectToString.js +12 -0
  203. package/dist/frontend/studio/node_modules/lodash/_root.js +10 -0
  204. package/dist/frontend/studio/node_modules/lodash/_trimmedEndIndex.js +13 -0
  205. package/dist/{node_modules → frontend/studio/node_modules}/lodash/debounce.js +10 -8
  206. package/dist/frontend/studio/node_modules/lodash/isObject.js +12 -0
  207. package/dist/frontend/studio/node_modules/lodash/isObjectLike.js +11 -0
  208. package/dist/frontend/studio/node_modules/lodash/isSymbol.js +14 -0
  209. package/dist/frontend/studio/node_modules/lodash/now.js +12 -0
  210. package/dist/frontend/studio/node_modules/lodash/toNumber.js +24 -0
  211. package/dist/hooks/index.js +6 -6
  212. package/dist/hooks/query-keys.js +39 -78
  213. package/dist/hooks/use-mobile.js +12 -11
  214. package/dist/hooks/useApi.js +16 -14
  215. package/dist/hooks/useAuth.js +38 -53
  216. package/dist/hooks/useConfig.js +26 -37
  217. package/dist/hooks/useDashboard.js +12 -15
  218. package/dist/hooks/useDebounce.js +12 -11
  219. package/dist/hooks/useDocuments.js +23 -35
  220. package/dist/hooks/useFiles.js +1 -2
  221. package/dist/hooks/useProcessor.js +14 -17
  222. package/dist/hooks/useSecrets.js +45 -64
  223. package/dist/hooks/useWorkflows.js +113 -78
  224. package/dist/hooks/useWorkspaces.js +83 -123
  225. package/dist/index.d.ts +0 -1305
  226. package/dist/index.js +80 -80
  227. package/dist/lib/requireParam.js +4 -2
  228. package/dist/lib/utils.js +7 -5
  229. package/dist/loopstack-studio.css +1 -1
  230. package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +6 -4
  231. package/dist/node_modules/@braintree/sanitize-url/dist/index.js +8 -6
  232. package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +19 -20
  233. package/dist/node_modules/@chevrotain/gast/lib/src/model.js +87 -88
  234. package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +16 -13
  235. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +2 -2
  236. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +4 -2
  237. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +36 -34
  238. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +138 -110
  239. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +13 -11
  240. package/dist/node_modules/@chevrotain/utils/lib/src/print.js +5 -3
  241. package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +4 -2
  242. package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +4 -2
  243. package/dist/node_modules/@dagrejs/dagre/dist/dagre.esm.js +1812 -1913
  244. package/dist/node_modules/@iconify/utils/lib/customisations/defaults.js +8 -6
  245. package/dist/node_modules/@iconify/utils/lib/icon/defaults.js +10 -8
  246. package/dist/node_modules/@iconify/utils/lib/icon/merge.js +8 -6
  247. package/dist/node_modules/@iconify/utils/lib/icon/name.js +8 -6
  248. package/dist/node_modules/@iconify/utils/lib/icon/transformations.js +4 -2
  249. package/dist/node_modules/@iconify/utils/lib/icon-set/get-icon.js +12 -10
  250. package/dist/node_modules/@iconify/utils/lib/icon-set/tree.js +4 -2
  251. package/dist/node_modules/@iconify/utils/lib/svg/build.js +20 -18
  252. package/dist/node_modules/@iconify/utils/lib/svg/defs.js +8 -6
  253. package/dist/node_modules/@iconify/utils/lib/svg/html.js +4 -2
  254. package/dist/node_modules/@iconify/utils/lib/svg/id.js +10 -8
  255. package/dist/node_modules/@iconify/utils/lib/svg/size.js +7 -5
  256. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +3 -0
  257. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +26 -0
  258. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +26 -0
  259. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +38 -0
  260. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +33 -0
  261. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +26 -0
  262. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +26 -0
  263. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +1208 -0
  264. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +26 -0
  265. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +67 -0
  266. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +34 -0
  267. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +3 -0
  268. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +3 -0
  269. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +3 -0
  270. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +3 -0
  271. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +3 -0
  272. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +3 -0
  273. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +3 -0
  274. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +3 -0
  275. package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +59 -45
  276. package/dist/node_modules/@shikijs/core/dist/index.js +583 -1119
  277. package/dist/node_modules/@shikijs/engine-oniguruma/dist/index.js +163 -148
  278. package/dist/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.js +4 -2
  279. package/dist/node_modules/@shikijs/langs/dist/abap.js +3 -2
  280. package/dist/node_modules/@shikijs/langs/dist/actionscript-3.js +3 -2
  281. package/dist/node_modules/@shikijs/langs/dist/ada.js +3 -2
  282. package/dist/node_modules/@shikijs/langs/dist/angular-expression.js +3 -2
  283. package/dist/node_modules/@shikijs/langs/dist/angular-html.js +15 -13
  284. package/dist/node_modules/@shikijs/langs/dist/angular-inline-style.js +5 -3
  285. package/dist/node_modules/@shikijs/langs/dist/angular-inline-template.js +9 -7
  286. package/dist/node_modules/@shikijs/langs/dist/angular-let-declaration.js +5 -3
  287. package/dist/node_modules/@shikijs/langs/dist/angular-template-blocks.js +9 -7
  288. package/dist/node_modules/@shikijs/langs/dist/angular-template.js +5 -3
  289. package/dist/node_modules/@shikijs/langs/dist/angular-ts.js +17 -15
  290. package/dist/node_modules/@shikijs/langs/dist/apache.js +3 -2
  291. package/dist/node_modules/@shikijs/langs/dist/apex.js +3 -2
  292. package/dist/node_modules/@shikijs/langs/dist/apl.js +15 -13
  293. package/dist/node_modules/@shikijs/langs/dist/applescript.js +3 -2
  294. package/dist/node_modules/@shikijs/langs/dist/ara.js +3 -2
  295. package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +3 -2
  296. package/dist/node_modules/@shikijs/langs/dist/asm.js +3 -2
  297. package/dist/node_modules/@shikijs/langs/dist/astro.js +17 -15
  298. package/dist/node_modules/@shikijs/langs/dist/awk.js +3 -2
  299. package/dist/node_modules/@shikijs/langs/dist/ballerina.js +3 -2
  300. package/dist/node_modules/@shikijs/langs/dist/bat.js +3 -2
  301. package/dist/node_modules/@shikijs/langs/dist/beancount.js +3 -2
  302. package/dist/node_modules/@shikijs/langs/dist/berry.js +3 -2
  303. package/dist/node_modules/@shikijs/langs/dist/bibtex.js +3 -2
  304. package/dist/node_modules/@shikijs/langs/dist/bicep.js +3 -2
  305. package/dist/node_modules/@shikijs/langs/dist/bird2.js +3 -2
  306. package/dist/node_modules/@shikijs/langs/dist/blade.js +19 -17
  307. package/dist/node_modules/@shikijs/langs/dist/bsl.js +5 -3
  308. package/dist/node_modules/@shikijs/langs/dist/c.js +3 -2
  309. package/dist/node_modules/@shikijs/langs/dist/c3.js +3 -2
  310. package/dist/node_modules/@shikijs/langs/dist/cadence.js +3 -2
  311. package/dist/node_modules/@shikijs/langs/dist/cairo.js +5 -3
  312. package/dist/node_modules/@shikijs/langs/dist/clarity.js +3 -2
  313. package/dist/node_modules/@shikijs/langs/dist/clojure.js +3 -2
  314. package/dist/node_modules/@shikijs/langs/dist/cmake.js +3 -2
  315. package/dist/node_modules/@shikijs/langs/dist/cobol.js +9 -7
  316. package/dist/node_modules/@shikijs/langs/dist/codeowners.js +3 -2
  317. package/dist/node_modules/@shikijs/langs/dist/codeql.js +3 -2
  318. package/dist/node_modules/@shikijs/langs/dist/coffee.js +5 -3
  319. package/dist/node_modules/@shikijs/langs/dist/common-lisp.js +3 -2
  320. package/dist/node_modules/@shikijs/langs/dist/coq.js +3 -2
  321. package/dist/node_modules/@shikijs/langs/dist/cpp-macro.js +11 -9
  322. package/dist/node_modules/@shikijs/langs/dist/cpp.js +13 -11
  323. package/dist/node_modules/@shikijs/langs/dist/crystal.js +17 -15
  324. package/dist/node_modules/@shikijs/langs/dist/csharp.js +3 -2
  325. package/dist/node_modules/@shikijs/langs/dist/css.js +3 -2
  326. package/dist/node_modules/@shikijs/langs/dist/csv.js +3 -2
  327. package/dist/node_modules/@shikijs/langs/dist/cue.js +3 -2
  328. package/dist/node_modules/@shikijs/langs/dist/cypher.js +3 -2
  329. package/dist/node_modules/@shikijs/langs/dist/d.js +3 -2
  330. package/dist/node_modules/@shikijs/langs/dist/dart.js +3 -2
  331. package/dist/node_modules/@shikijs/langs/dist/dax.js +3 -2
  332. package/dist/node_modules/@shikijs/langs/dist/desktop.js +3 -2
  333. package/dist/node_modules/@shikijs/langs/dist/diff.js +3 -2
  334. package/dist/node_modules/@shikijs/langs/dist/docker.js +3 -2
  335. package/dist/node_modules/@shikijs/langs/dist/dotenv.js +3 -2
  336. package/dist/node_modules/@shikijs/langs/dist/dream-maker.js +3 -2
  337. package/dist/node_modules/@shikijs/langs/dist/edge.js +11 -9
  338. package/dist/node_modules/@shikijs/langs/dist/elixir.js +5 -3
  339. package/dist/node_modules/@shikijs/langs/dist/elm.js +5 -3
  340. package/dist/node_modules/@shikijs/langs/dist/emacs-lisp.js +3 -2
  341. package/dist/node_modules/@shikijs/langs/dist/erb.js +9 -7
  342. package/dist/node_modules/@shikijs/langs/dist/erlang.js +5 -3
  343. package/dist/node_modules/@shikijs/langs/dist/es-tag-css.js +11 -9
  344. package/dist/node_modules/@shikijs/langs/dist/es-tag-glsl.js +11 -9
  345. package/dist/node_modules/@shikijs/langs/dist/es-tag-html.js +11 -9
  346. package/dist/node_modules/@shikijs/langs/dist/es-tag-sql.js +9 -7
  347. package/dist/node_modules/@shikijs/langs/dist/es-tag-xml.js +5 -3
  348. package/dist/node_modules/@shikijs/langs/dist/fennel.js +3 -2
  349. package/dist/node_modules/@shikijs/langs/dist/fish.js +3 -2
  350. package/dist/node_modules/@shikijs/langs/dist/fluent.js +3 -2
  351. package/dist/node_modules/@shikijs/langs/dist/fortran-fixed-form.js +5 -3
  352. package/dist/node_modules/@shikijs/langs/dist/fortran-free-form.js +3 -2
  353. package/dist/node_modules/@shikijs/langs/dist/fsharp.js +5 -3
  354. package/dist/node_modules/@shikijs/langs/dist/gdresource.js +9 -7
  355. package/dist/node_modules/@shikijs/langs/dist/gdscript.js +3 -2
  356. package/dist/node_modules/@shikijs/langs/dist/gdshader.js +3 -2
  357. package/dist/node_modules/@shikijs/langs/dist/genie.js +3 -2
  358. package/dist/node_modules/@shikijs/langs/dist/gherkin.js +3 -2
  359. package/dist/node_modules/@shikijs/langs/dist/git-commit.js +5 -3
  360. package/dist/node_modules/@shikijs/langs/dist/git-rebase.js +5 -3
  361. package/dist/node_modules/@shikijs/langs/dist/gleam.js +3 -2
  362. package/dist/node_modules/@shikijs/langs/dist/glimmer-js.js +13 -11
  363. package/dist/node_modules/@shikijs/langs/dist/glimmer-ts.js +13 -11
  364. package/dist/node_modules/@shikijs/langs/dist/glsl.js +5 -3
  365. package/dist/node_modules/@shikijs/langs/dist/gn.js +3 -2
  366. package/dist/node_modules/@shikijs/langs/dist/gnuplot.js +3 -2
  367. package/dist/node_modules/@shikijs/langs/dist/go.js +3 -2
  368. package/dist/node_modules/@shikijs/langs/dist/graphql.js +13 -11
  369. package/dist/node_modules/@shikijs/langs/dist/groovy.js +3 -2
  370. package/dist/node_modules/@shikijs/langs/dist/hack.js +9 -7
  371. package/dist/node_modules/@shikijs/langs/dist/haml.js +9 -7
  372. package/dist/node_modules/@shikijs/langs/dist/handlebars.js +13 -11
  373. package/dist/node_modules/@shikijs/langs/dist/haskell.js +3 -2
  374. package/dist/node_modules/@shikijs/langs/dist/haxe.js +3 -2
  375. package/dist/node_modules/@shikijs/langs/dist/hcl.js +3 -2
  376. package/dist/node_modules/@shikijs/langs/dist/hjson.js +3 -2
  377. package/dist/node_modules/@shikijs/langs/dist/hlsl.js +3 -2
  378. package/dist/node_modules/@shikijs/langs/dist/html-derivative.js +5 -3
  379. package/dist/node_modules/@shikijs/langs/dist/html.js +9 -7
  380. package/dist/node_modules/@shikijs/langs/dist/http.js +13 -11
  381. package/dist/node_modules/@shikijs/langs/dist/hurl.js +11 -9
  382. package/dist/node_modules/@shikijs/langs/dist/hxml.js +5 -3
  383. package/dist/node_modules/@shikijs/langs/dist/hy.js +3 -2
  384. package/dist/node_modules/@shikijs/langs/dist/imba.js +3 -2
  385. package/dist/node_modules/@shikijs/langs/dist/ini.js +3 -2
  386. package/dist/node_modules/@shikijs/langs/dist/java.js +3 -2
  387. package/dist/node_modules/@shikijs/langs/dist/javascript.js +3 -2
  388. package/dist/node_modules/@shikijs/langs/dist/jinja-html.js +5 -3
  389. package/dist/node_modules/@shikijs/langs/dist/jinja.js +5 -3
  390. package/dist/node_modules/@shikijs/langs/dist/jison.js +5 -3
  391. package/dist/node_modules/@shikijs/langs/dist/json.js +3 -2
  392. package/dist/node_modules/@shikijs/langs/dist/json5.js +3 -2
  393. package/dist/node_modules/@shikijs/langs/dist/jsonc.js +3 -2
  394. package/dist/node_modules/@shikijs/langs/dist/jsonl.js +3 -2
  395. package/dist/node_modules/@shikijs/langs/dist/jsonnet.js +3 -2
  396. package/dist/node_modules/@shikijs/langs/dist/jssm.js +3 -2
  397. package/dist/node_modules/@shikijs/langs/dist/jsx.js +3 -2
  398. package/dist/node_modules/@shikijs/langs/dist/julia.js +15 -13
  399. package/dist/node_modules/@shikijs/langs/dist/just.js +17 -15
  400. package/dist/node_modules/@shikijs/langs/dist/kdl.js +3 -2
  401. package/dist/node_modules/@shikijs/langs/dist/kotlin.js +3 -2
  402. package/dist/node_modules/@shikijs/langs/dist/kusto.js +3 -2
  403. package/dist/node_modules/@shikijs/langs/dist/latex.js +5 -3
  404. package/dist/node_modules/@shikijs/langs/dist/lean.js +3 -2
  405. package/dist/node_modules/@shikijs/langs/dist/less.js +3 -2
  406. package/dist/node_modules/@shikijs/langs/dist/liquid.js +13 -11
  407. package/dist/node_modules/@shikijs/langs/dist/llvm.js +3 -2
  408. package/dist/node_modules/@shikijs/langs/dist/log.js +3 -2
  409. package/dist/node_modules/@shikijs/langs/dist/logo.js +3 -2
  410. package/dist/node_modules/@shikijs/langs/dist/lua.js +5 -3
  411. package/dist/node_modules/@shikijs/langs/dist/luau.js +3 -2
  412. package/dist/node_modules/@shikijs/langs/dist/make.js +3 -2
  413. package/dist/node_modules/@shikijs/langs/dist/markdown-nix.js +3 -2
  414. package/dist/node_modules/@shikijs/langs/dist/markdown-vue.js +3 -2
  415. package/dist/node_modules/@shikijs/langs/dist/markdown.js +3 -2
  416. package/dist/node_modules/@shikijs/langs/dist/marko.js +13 -11
  417. package/dist/node_modules/@shikijs/langs/dist/matlab.js +3 -2
  418. package/dist/node_modules/@shikijs/langs/dist/mdc.js +11 -9
  419. package/dist/node_modules/@shikijs/langs/dist/mdx.js +3 -2
  420. package/dist/node_modules/@shikijs/langs/dist/mermaid.js +3 -2
  421. package/dist/node_modules/@shikijs/langs/dist/mipsasm.js +3 -2
  422. package/dist/node_modules/@shikijs/langs/dist/mojo.js +3 -2
  423. package/dist/node_modules/@shikijs/langs/dist/moonbit.js +3 -2
  424. package/dist/node_modules/@shikijs/langs/dist/move.js +3 -2
  425. package/dist/node_modules/@shikijs/langs/dist/narrat.js +3 -2
  426. package/dist/node_modules/@shikijs/langs/dist/nextflow-groovy.js +3 -2
  427. package/dist/node_modules/@shikijs/langs/dist/nextflow.js +5 -3
  428. package/dist/node_modules/@shikijs/langs/dist/nginx.js +5 -3
  429. package/dist/node_modules/@shikijs/langs/dist/nim.js +19 -17
  430. package/dist/node_modules/@shikijs/langs/dist/nix.js +5 -3
  431. package/dist/node_modules/@shikijs/langs/dist/nushell.js +3 -2
  432. package/dist/node_modules/@shikijs/langs/dist/objective-c.js +3 -2
  433. package/dist/node_modules/@shikijs/langs/dist/objective-cpp.js +3 -2
  434. package/dist/node_modules/@shikijs/langs/dist/ocaml.js +3 -2
  435. package/dist/node_modules/@shikijs/langs/dist/odin.js +3 -2
  436. package/dist/node_modules/@shikijs/langs/dist/openscad.js +3 -2
  437. package/dist/node_modules/@shikijs/langs/dist/pascal.js +3 -2
  438. package/dist/node_modules/@shikijs/langs/dist/perl.js +15 -13
  439. package/dist/node_modules/@shikijs/langs/dist/php.js +17 -15
  440. package/dist/node_modules/@shikijs/langs/dist/pkl.js +3 -2
  441. package/dist/node_modules/@shikijs/langs/dist/plsql.js +3 -2
  442. package/dist/node_modules/@shikijs/langs/dist/po.js +3 -2
  443. package/dist/node_modules/@shikijs/langs/dist/polar.js +3 -2
  444. package/dist/node_modules/@shikijs/langs/dist/postcss.js +3 -2
  445. package/dist/node_modules/@shikijs/langs/dist/powerquery.js +3 -2
  446. package/dist/node_modules/@shikijs/langs/dist/powershell.js +3 -2
  447. package/dist/node_modules/@shikijs/langs/dist/prisma.js +3 -2
  448. package/dist/node_modules/@shikijs/langs/dist/prolog.js +3 -2
  449. package/dist/node_modules/@shikijs/langs/dist/proto.js +3 -2
  450. package/dist/node_modules/@shikijs/langs/dist/pug.js +11 -9
  451. package/dist/node_modules/@shikijs/langs/dist/puppet.js +3 -2
  452. package/dist/node_modules/@shikijs/langs/dist/purescript.js +3 -2
  453. package/dist/node_modules/@shikijs/langs/dist/python.js +3 -2
  454. package/dist/node_modules/@shikijs/langs/dist/qml.js +5 -3
  455. package/dist/node_modules/@shikijs/langs/dist/qmldir.js +3 -2
  456. package/dist/node_modules/@shikijs/langs/dist/qss.js +3 -2
  457. package/dist/node_modules/@shikijs/langs/dist/r.js +3 -2
  458. package/dist/node_modules/@shikijs/langs/dist/racket.js +3 -2
  459. package/dist/node_modules/@shikijs/langs/dist/raku.js +3 -2
  460. package/dist/node_modules/@shikijs/langs/dist/razor.js +9 -7
  461. package/dist/node_modules/@shikijs/langs/dist/reg.js +3 -2
  462. package/dist/node_modules/@shikijs/langs/dist/regexp.js +3 -2
  463. package/dist/node_modules/@shikijs/langs/dist/rel.js +3 -2
  464. package/dist/node_modules/@shikijs/langs/dist/riscv.js +3 -2
  465. package/dist/node_modules/@shikijs/langs/dist/ron.js +3 -2
  466. package/dist/node_modules/@shikijs/langs/dist/rosmsg.js +3 -2
  467. package/dist/node_modules/@shikijs/langs/dist/rst.js +21 -19
  468. package/dist/node_modules/@shikijs/langs/dist/ruby.js +29 -27
  469. package/dist/node_modules/@shikijs/langs/dist/rust.js +3 -2
  470. package/dist/node_modules/@shikijs/langs/dist/sas.js +5 -3
  471. package/dist/node_modules/@shikijs/langs/dist/sass.js +3 -2
  472. package/dist/node_modules/@shikijs/langs/dist/scala.js +3 -2
  473. package/dist/node_modules/@shikijs/langs/dist/scheme.js +3 -2
  474. package/dist/node_modules/@shikijs/langs/dist/scss.js +5 -3
  475. package/dist/node_modules/@shikijs/langs/dist/sdbl.js +3 -2
  476. package/dist/node_modules/@shikijs/langs/dist/shaderlab.js +5 -3
  477. package/dist/node_modules/@shikijs/langs/dist/shellscript.js +3 -2
  478. package/dist/node_modules/@shikijs/langs/dist/shellsession.js +5 -3
  479. package/dist/node_modules/@shikijs/langs/dist/smalltalk.js +3 -2
  480. package/dist/node_modules/@shikijs/langs/dist/solidity.js +3 -2
  481. package/dist/node_modules/@shikijs/langs/dist/soy.js +5 -3
  482. package/dist/node_modules/@shikijs/langs/dist/sparql.js +5 -3
  483. package/dist/node_modules/@shikijs/langs/dist/splunk.js +3 -2
  484. package/dist/node_modules/@shikijs/langs/dist/sql.js +3 -2
  485. package/dist/node_modules/@shikijs/langs/dist/ssh-config.js +3 -2
  486. package/dist/node_modules/@shikijs/langs/dist/stata.js +5 -3
  487. package/dist/node_modules/@shikijs/langs/dist/stylus.js +3 -2
  488. package/dist/node_modules/@shikijs/langs/dist/surrealql.js +5 -3
  489. package/dist/node_modules/@shikijs/langs/dist/svelte.js +13 -11
  490. package/dist/node_modules/@shikijs/langs/dist/swift.js +3 -2
  491. package/dist/node_modules/@shikijs/langs/dist/system-verilog.js +3 -2
  492. package/dist/node_modules/@shikijs/langs/dist/systemd.js +3 -2
  493. package/dist/node_modules/@shikijs/langs/dist/talonscript.js +3 -2
  494. package/dist/node_modules/@shikijs/langs/dist/tasl.js +3 -2
  495. package/dist/node_modules/@shikijs/langs/dist/tcl.js +3 -2
  496. package/dist/node_modules/@shikijs/langs/dist/templ.js +11 -9
  497. package/dist/node_modules/@shikijs/langs/dist/terraform.js +3 -2
  498. package/dist/node_modules/@shikijs/langs/dist/tex.js +5 -3
  499. package/dist/node_modules/@shikijs/langs/dist/toml.js +3 -2
  500. package/dist/node_modules/@shikijs/langs/dist/ts-tags.js +17 -15
  501. package/dist/node_modules/@shikijs/langs/dist/tsv.js +3 -2
  502. package/dist/node_modules/@shikijs/langs/dist/tsx.js +3 -2
  503. package/dist/node_modules/@shikijs/langs/dist/turtle.js +3 -2
  504. package/dist/node_modules/@shikijs/langs/dist/twig.js +17 -15
  505. package/dist/node_modules/@shikijs/langs/dist/typescript.js +3 -2
  506. package/dist/node_modules/@shikijs/langs/dist/typespec.js +3 -2
  507. package/dist/node_modules/@shikijs/langs/dist/typst.js +3 -2
  508. package/dist/node_modules/@shikijs/langs/dist/v.js +3 -2
  509. package/dist/node_modules/@shikijs/langs/dist/vala.js +3 -2
  510. package/dist/node_modules/@shikijs/langs/dist/vb.js +3 -2
  511. package/dist/node_modules/@shikijs/langs/dist/verilog.js +3 -2
  512. package/dist/node_modules/@shikijs/langs/dist/vhdl.js +3 -2
  513. package/dist/node_modules/@shikijs/langs/dist/viml.js +3 -2
  514. package/dist/node_modules/@shikijs/langs/dist/vue-directives.js +3 -2
  515. package/dist/node_modules/@shikijs/langs/dist/vue-html.js +5 -3
  516. package/dist/node_modules/@shikijs/langs/dist/vue-interpolations.js +3 -2
  517. package/dist/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.js +5 -3
  518. package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +17 -15
  519. package/dist/node_modules/@shikijs/langs/dist/vue.js +25 -23
  520. package/dist/node_modules/@shikijs/langs/dist/vyper.js +3 -2
  521. package/dist/node_modules/@shikijs/langs/dist/wasm.js +3 -2
  522. package/dist/node_modules/@shikijs/langs/dist/wenyan.js +3 -2
  523. package/dist/node_modules/@shikijs/langs/dist/wgsl.js +3 -2
  524. package/dist/node_modules/@shikijs/langs/dist/wikitext.js +3 -2
  525. package/dist/node_modules/@shikijs/langs/dist/wit.js +3 -2
  526. package/dist/node_modules/@shikijs/langs/dist/wolfram.js +3 -2
  527. package/dist/node_modules/@shikijs/langs/dist/xml.js +5 -3
  528. package/dist/node_modules/@shikijs/langs/dist/xsl.js +5 -3
  529. package/dist/node_modules/@shikijs/langs/dist/yaml.js +3 -2
  530. package/dist/node_modules/@shikijs/langs/dist/zenscript.js +3 -2
  531. package/dist/node_modules/@shikijs/langs/dist/zig.js +3 -2
  532. package/dist/node_modules/@shikijs/primitive/dist/index.js +540 -0
  533. package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +4 -2
  534. package/dist/node_modules/@shikijs/themes/dist/aurora-x.js +4 -2
  535. package/dist/node_modules/@shikijs/themes/dist/ayu-dark.js +4 -2
  536. package/dist/node_modules/@shikijs/themes/dist/ayu-light.js +4 -2
  537. package/dist/node_modules/@shikijs/themes/dist/ayu-mirage.js +4 -2
  538. package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +4 -2
  539. package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +4 -2
  540. package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +4 -2
  541. package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +4 -2
  542. package/dist/node_modules/@shikijs/themes/dist/dark-plus.js +4 -2
  543. package/dist/node_modules/@shikijs/themes/dist/dracula-soft.js +4 -2
  544. package/dist/node_modules/@shikijs/themes/dist/dracula.js +4 -2
  545. package/dist/node_modules/@shikijs/themes/dist/everforest-dark.js +4 -2
  546. package/dist/node_modules/@shikijs/themes/dist/everforest-light.js +4 -2
  547. package/dist/node_modules/@shikijs/themes/dist/github-dark-default.js +4 -2
  548. package/dist/node_modules/@shikijs/themes/dist/github-dark-dimmed.js +4 -2
  549. package/dist/node_modules/@shikijs/themes/dist/github-dark-high-contrast.js +4 -2
  550. package/dist/node_modules/@shikijs/themes/dist/github-dark.js +4 -2
  551. package/dist/node_modules/@shikijs/themes/dist/github-light-default.js +4 -2
  552. package/dist/node_modules/@shikijs/themes/dist/github-light-high-contrast.js +4 -2
  553. package/dist/node_modules/@shikijs/themes/dist/github-light.js +4 -2
  554. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +4 -2
  555. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +4 -2
  556. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +4 -2
  557. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +4 -2
  558. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +4 -2
  559. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +4 -2
  560. package/dist/node_modules/@shikijs/themes/dist/horizon-bright.js +4 -2
  561. package/dist/node_modules/@shikijs/themes/dist/horizon.js +4 -2
  562. package/dist/node_modules/@shikijs/themes/dist/houston.js +4 -2
  563. package/dist/node_modules/@shikijs/themes/dist/kanagawa-dragon.js +4 -2
  564. package/dist/node_modules/@shikijs/themes/dist/kanagawa-lotus.js +4 -2
  565. package/dist/node_modules/@shikijs/themes/dist/kanagawa-wave.js +4 -2
  566. package/dist/node_modules/@shikijs/themes/dist/laserwave.js +4 -2
  567. package/dist/node_modules/@shikijs/themes/dist/light-plus.js +4 -2
  568. package/dist/node_modules/@shikijs/themes/dist/material-theme-darker.js +4 -2
  569. package/dist/node_modules/@shikijs/themes/dist/material-theme-lighter.js +4 -2
  570. package/dist/node_modules/@shikijs/themes/dist/material-theme-ocean.js +4 -2
  571. package/dist/node_modules/@shikijs/themes/dist/material-theme-palenight.js +4 -2
  572. package/dist/node_modules/@shikijs/themes/dist/material-theme.js +4 -2
  573. package/dist/node_modules/@shikijs/themes/dist/min-dark.js +4 -2
  574. package/dist/node_modules/@shikijs/themes/dist/min-light.js +4 -2
  575. package/dist/node_modules/@shikijs/themes/dist/monokai.js +4 -2
  576. package/dist/node_modules/@shikijs/themes/dist/night-owl-light.js +4 -2
  577. package/dist/node_modules/@shikijs/themes/dist/night-owl.js +4 -2
  578. package/dist/node_modules/@shikijs/themes/dist/nord.js +4 -2
  579. package/dist/node_modules/@shikijs/themes/dist/one-dark-pro.js +4 -2
  580. package/dist/node_modules/@shikijs/themes/dist/one-light.js +4 -2
  581. package/dist/node_modules/@shikijs/themes/dist/plastic.js +4 -2
  582. package/dist/node_modules/@shikijs/themes/dist/poimandres.js +4 -2
  583. package/dist/node_modules/@shikijs/themes/dist/red.js +4 -2
  584. package/dist/node_modules/@shikijs/themes/dist/rose-pine-dawn.js +4 -2
  585. package/dist/node_modules/@shikijs/themes/dist/rose-pine-moon.js +4 -2
  586. package/dist/node_modules/@shikijs/themes/dist/rose-pine.js +4 -2
  587. package/dist/node_modules/@shikijs/themes/dist/slack-dark.js +4 -2
  588. package/dist/node_modules/@shikijs/themes/dist/slack-ochin.js +4 -2
  589. package/dist/node_modules/@shikijs/themes/dist/snazzy-light.js +4 -2
  590. package/dist/node_modules/@shikijs/themes/dist/solarized-dark.js +4 -2
  591. package/dist/node_modules/@shikijs/themes/dist/solarized-light.js +4 -2
  592. package/dist/node_modules/@shikijs/themes/dist/synthwave-84.js +4 -2
  593. package/dist/node_modules/@shikijs/themes/dist/tokyo-night.js +4 -2
  594. package/dist/node_modules/@shikijs/themes/dist/vesper.js +4 -2
  595. package/dist/node_modules/@shikijs/themes/dist/vitesse-black.js +4 -2
  596. package/dist/node_modules/@shikijs/themes/dist/vitesse-dark.js +4 -2
  597. package/dist/node_modules/@shikijs/themes/dist/vitesse-light.js +4 -2
  598. package/dist/node_modules/@shikijs/types/dist/index.js +4 -2
  599. package/dist/node_modules/@shikijs/vscode-textmate/dist/index.js +949 -947
  600. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +30 -30
  601. package/dist/node_modules/@ungap/structured-clone/esm/index.js +6 -4
  602. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +64 -64
  603. package/dist/node_modules/@upsetjs/venn.js/build/venn.esm.js +905 -0
  604. package/dist/node_modules/@xyflow/react/dist/esm/index.js +904 -901
  605. package/dist/node_modules/@xyflow/system/dist/esm/index.js +1226 -1222
  606. package/dist/node_modules/bail/index.js +4 -2
  607. package/dist/node_modules/ccount/index.js +4 -2
  608. package/dist/node_modules/character-entities-html4/index.js +4 -2
  609. package/dist/node_modules/character-entities-legacy/index.js +4 -2
  610. package/dist/node_modules/chevrotain/lib/src/api.js +10 -10
  611. package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +6 -4
  612. package/dist/node_modules/chevrotain/lib/src/parse/constants.js +4 -2
  613. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +11 -9
  614. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +38 -45
  615. package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +35 -36
  616. package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +26 -25
  617. package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +204 -226
  618. package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +18 -18
  619. package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +20 -19
  620. package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +14 -13
  621. package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +195 -200
  622. package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +5 -4
  623. package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +28 -28
  624. package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +165 -170
  625. package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +17 -17
  626. package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +50 -50
  627. package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +76 -83
  628. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +21 -21
  629. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +117 -121
  630. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +12 -6
  631. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +51 -51
  632. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +15 -14
  633. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +81 -80
  634. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +229 -217
  635. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +87 -86
  636. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +36 -44
  637. package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +4 -2
  638. package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +287 -309
  639. package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +4 -2
  640. package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +115 -126
  641. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +73 -70
  642. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +12 -10
  643. package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +45 -54
  644. package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +29 -30
  645. package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +242 -240
  646. package/dist/node_modules/chevrotain-allstar/lib/atn.js +134 -133
  647. package/dist/node_modules/chevrotain-allstar/lib/dfa.js +11 -10
  648. package/dist/node_modules/chevrotain-allstar/lib/index.js +1 -1
  649. package/dist/node_modules/classcat/index.js +5 -3
  650. package/dist/node_modules/comma-separated-tokens/index.js +5 -3
  651. package/dist/node_modules/cose-base/cose-base.js +21 -21
  652. package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +7935 -7935
  653. package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +8 -6
  654. package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.js +8 -6
  655. package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.js +20 -20
  656. package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js +6 -4
  657. package/dist/node_modules/d3/src/index.js +95 -95
  658. package/dist/node_modules/d3-array/src/ascending.js +4 -2
  659. package/dist/node_modules/d3-array/src/bisect.js +8 -8
  660. package/dist/node_modules/d3-array/src/bisector.js +8 -6
  661. package/dist/node_modules/d3-array/src/descending.js +4 -2
  662. package/dist/node_modules/d3-array/src/max.js +4 -2
  663. package/dist/node_modules/d3-array/src/min.js +4 -2
  664. package/dist/node_modules/d3-array/src/number.js +4 -2
  665. package/dist/node_modules/d3-array/src/range.js +4 -2
  666. package/dist/node_modules/d3-array/src/ticks.js +13 -11
  667. package/dist/node_modules/d3-axis/src/axis.js +48 -46
  668. package/dist/node_modules/d3-axis/src/identity.js +4 -2
  669. package/dist/node_modules/d3-brush/src/brush.js +6 -4
  670. package/dist/node_modules/d3-color/src/color.js +86 -84
  671. package/dist/node_modules/d3-color/src/define.js +5 -3
  672. package/dist/node_modules/d3-color/src/lab.js +45 -43
  673. package/dist/node_modules/d3-color/src/math.js +4 -2
  674. package/dist/node_modules/d3-dispatch/src/dispatch.js +18 -17
  675. package/dist/node_modules/d3-drag/src/constant.js +4 -2
  676. package/dist/node_modules/d3-drag/src/drag.js +77 -75
  677. package/dist/node_modules/d3-drag/src/event.js +5 -3
  678. package/dist/node_modules/d3-drag/src/nodrag.js +11 -9
  679. package/dist/node_modules/d3-drag/src/noevent.js +6 -4
  680. package/dist/node_modules/d3-ease/src/cubic.js +4 -2
  681. package/dist/node_modules/d3-format/src/defaultLocale.js +8 -6
  682. package/dist/node_modules/d3-format/src/exponent.js +6 -4
  683. package/dist/node_modules/d3-format/src/formatDecimal.js +5 -3
  684. package/dist/node_modules/d3-format/src/formatGroup.js +4 -2
  685. package/dist/node_modules/d3-format/src/formatNumerals.js +4 -2
  686. package/dist/node_modules/d3-format/src/formatPrefixAuto.js +10 -8
  687. package/dist/node_modules/d3-format/src/formatRounded.js +6 -4
  688. package/dist/node_modules/d3-format/src/formatSpecifier.js +10 -8
  689. package/dist/node_modules/d3-format/src/formatTrim.js +4 -2
  690. package/dist/node_modules/d3-format/src/formatTypes.js +15 -13
  691. package/dist/node_modules/d3-format/src/identity.js +4 -2
  692. package/dist/node_modules/d3-format/src/locale.js +33 -31
  693. package/dist/node_modules/d3-format/src/precisionFixed.js +6 -4
  694. package/dist/node_modules/d3-format/src/precisionPrefix.js +6 -4
  695. package/dist/node_modules/d3-format/src/precisionRound.js +6 -4
  696. package/dist/node_modules/d3-hierarchy/src/accessors.js +4 -2
  697. package/dist/node_modules/d3-hierarchy/src/constant.js +5 -3
  698. package/dist/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +4 -2
  699. package/dist/node_modules/d3-hierarchy/src/hierarchy/count.js +6 -4
  700. package/dist/node_modules/d3-hierarchy/src/hierarchy/descendants.js +4 -2
  701. package/dist/node_modules/d3-hierarchy/src/hierarchy/each.js +4 -2
  702. package/dist/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +4 -2
  703. package/dist/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +4 -2
  704. package/dist/node_modules/d3-hierarchy/src/hierarchy/find.js +4 -2
  705. package/dist/node_modules/d3-hierarchy/src/hierarchy/index.js +46 -44
  706. package/dist/node_modules/d3-hierarchy/src/hierarchy/iterator.js +4 -2
  707. package/dist/node_modules/d3-hierarchy/src/hierarchy/leaves.js +4 -2
  708. package/dist/node_modules/d3-hierarchy/src/hierarchy/links.js +4 -2
  709. package/dist/node_modules/d3-hierarchy/src/hierarchy/path.js +6 -4
  710. package/dist/node_modules/d3-hierarchy/src/hierarchy/sort.js +4 -2
  711. package/dist/node_modules/d3-hierarchy/src/hierarchy/sum.js +4 -2
  712. package/dist/node_modules/d3-hierarchy/src/treemap/dice.js +4 -2
  713. package/dist/node_modules/d3-hierarchy/src/treemap/index.js +16 -14
  714. package/dist/node_modules/d3-hierarchy/src/treemap/round.js +4 -2
  715. package/dist/node_modules/d3-hierarchy/src/treemap/slice.js +4 -2
  716. package/dist/node_modules/d3-hierarchy/src/treemap/squarify.js +11 -9
  717. package/dist/node_modules/d3-interpolate/src/array.js +6 -4
  718. package/dist/node_modules/d3-interpolate/src/basis.js +6 -4
  719. package/dist/node_modules/d3-interpolate/src/basisClosed.js +6 -4
  720. package/dist/node_modules/d3-interpolate/src/color.js +19 -17
  721. package/dist/node_modules/d3-interpolate/src/constant.js +4 -2
  722. package/dist/node_modules/d3-interpolate/src/date.js +4 -2
  723. package/dist/node_modules/d3-interpolate/src/hcl.js +8 -6
  724. package/dist/node_modules/d3-interpolate/src/number.js +4 -2
  725. package/dist/node_modules/d3-interpolate/src/numberArray.js +5 -3
  726. package/dist/node_modules/d3-interpolate/src/object.js +6 -4
  727. package/dist/node_modules/d3-interpolate/src/rgb.js +11 -9
  728. package/dist/node_modules/d3-interpolate/src/round.js +4 -2
  729. package/dist/node_modules/d3-interpolate/src/string.js +16 -14
  730. package/dist/node_modules/d3-interpolate/src/transform/decompose.js +7 -5
  731. package/dist/node_modules/d3-interpolate/src/transform/index.js +13 -11
  732. package/dist/node_modules/d3-interpolate/src/transform/parse.js +10 -8
  733. package/dist/node_modules/d3-interpolate/src/value.js +14 -12
  734. package/dist/node_modules/d3-interpolate/src/zoom.js +13 -11
  735. package/dist/node_modules/d3-path/src/path.js +16 -14
  736. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/max.js +4 -2
  737. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/min.js +4 -2
  738. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +4 -2
  739. package/dist/node_modules/d3-sankey/node_modules/d3-path/src/path.js +13 -12
  740. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +4 -2
  741. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +4 -2
  742. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +19 -17
  743. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +5 -3
  744. package/dist/node_modules/d3-sankey/src/align.js +12 -10
  745. package/dist/node_modules/d3-sankey/src/constant.js +4 -2
  746. package/dist/node_modules/d3-sankey/src/sankey.js +170 -168
  747. package/dist/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +8 -6
  748. package/dist/node_modules/d3-scale/src/band.js +11 -9
  749. package/dist/node_modules/d3-scale/src/constant.js +4 -2
  750. package/dist/node_modules/d3-scale/src/continuous.js +49 -47
  751. package/dist/node_modules/d3-scale/src/init.js +4 -2
  752. package/dist/node_modules/d3-scale/src/linear.js +15 -13
  753. package/dist/node_modules/d3-scale/src/nice.js +4 -2
  754. package/dist/node_modules/d3-scale/src/number.js +4 -2
  755. package/dist/node_modules/d3-scale/src/ordinal.js +18 -16
  756. package/dist/node_modules/d3-scale/src/tickFormat.js +16 -14
  757. package/dist/node_modules/d3-scale/src/time.js +36 -34
  758. package/dist/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +5 -3
  759. package/dist/node_modules/d3-scale-chromatic/src/colors.js +4 -2
  760. package/dist/node_modules/d3-selection/src/array.js +4 -2
  761. package/dist/node_modules/d3-selection/src/constant.js +4 -2
  762. package/dist/node_modules/d3-selection/src/creator.js +12 -10
  763. package/dist/node_modules/d3-selection/src/matcher.js +5 -3
  764. package/dist/node_modules/d3-selection/src/namespace.js +7 -5
  765. package/dist/node_modules/d3-selection/src/namespaces.js +5 -3
  766. package/dist/node_modules/d3-selection/src/pointer.js +6 -4
  767. package/dist/node_modules/d3-selection/src/select.js +6 -4
  768. package/dist/node_modules/d3-selection/src/selection/append.js +6 -4
  769. package/dist/node_modules/d3-selection/src/selection/attr.js +19 -17
  770. package/dist/node_modules/d3-selection/src/selection/call.js +4 -2
  771. package/dist/node_modules/d3-selection/src/selection/classed.js +25 -23
  772. package/dist/node_modules/d3-selection/src/selection/clone.js +7 -5
  773. package/dist/node_modules/d3-selection/src/selection/data.js +18 -16
  774. package/dist/node_modules/d3-selection/src/selection/datum.js +4 -2
  775. package/dist/node_modules/d3-selection/src/selection/dispatch.js +12 -10
  776. package/dist/node_modules/d3-selection/src/selection/each.js +4 -2
  777. package/dist/node_modules/d3-selection/src/selection/empty.js +4 -2
  778. package/dist/node_modules/d3-selection/src/selection/enter.js +13 -11
  779. package/dist/node_modules/d3-selection/src/selection/exit.js +7 -5
  780. package/dist/node_modules/d3-selection/src/selection/filter.js +8 -6
  781. package/dist/node_modules/d3-selection/src/selection/html.js +8 -6
  782. package/dist/node_modules/d3-selection/src/selection/index.js +80 -79
  783. package/dist/node_modules/d3-selection/src/selection/insert.js +8 -6
  784. package/dist/node_modules/d3-selection/src/selection/iterator.js +4 -2
  785. package/dist/node_modules/d3-selection/src/selection/join.js +4 -2
  786. package/dist/node_modules/d3-selection/src/selection/lower.js +6 -4
  787. package/dist/node_modules/d3-selection/src/selection/merge.js +6 -4
  788. package/dist/node_modules/d3-selection/src/selection/node.js +4 -2
  789. package/dist/node_modules/d3-selection/src/selection/nodes.js +4 -2
  790. package/dist/node_modules/d3-selection/src/selection/on.js +11 -9
  791. package/dist/node_modules/d3-selection/src/selection/order.js +4 -2
  792. package/dist/node_modules/d3-selection/src/selection/property.js +8 -6
  793. package/dist/node_modules/d3-selection/src/selection/raise.js +6 -4
  794. package/dist/node_modules/d3-selection/src/selection/remove.js +6 -4
  795. package/dist/node_modules/d3-selection/src/selection/select.js +8 -6
  796. package/dist/node_modules/d3-selection/src/selection/selectAll.js +11 -9
  797. package/dist/node_modules/d3-selection/src/selection/selectChild.js +10 -8
  798. package/dist/node_modules/d3-selection/src/selection/selectChildren.js +10 -8
  799. package/dist/node_modules/d3-selection/src/selection/size.js +4 -2
  800. package/dist/node_modules/d3-selection/src/selection/sort.js +8 -6
  801. package/dist/node_modules/d3-selection/src/selection/sparse.js +4 -2
  802. package/dist/node_modules/d3-selection/src/selection/style.js +14 -12
  803. package/dist/node_modules/d3-selection/src/selection/text.js +8 -6
  804. package/dist/node_modules/d3-selection/src/selector.js +6 -4
  805. package/dist/node_modules/d3-selection/src/selectorAll.js +6 -4
  806. package/dist/node_modules/d3-selection/src/sourceEvent.js +4 -2
  807. package/dist/node_modules/d3-selection/src/window.js +4 -2
  808. package/dist/node_modules/d3-shape/src/arc.js +38 -36
  809. package/dist/node_modules/d3-shape/src/array.js +3 -2
  810. package/dist/node_modules/d3-shape/src/constant.js +4 -2
  811. package/dist/node_modules/d3-shape/src/curve/basis.js +10 -8
  812. package/dist/node_modules/d3-shape/src/curve/basisClosed.js +18 -16
  813. package/dist/node_modules/d3-shape/src/curve/basisOpen.js +9 -7
  814. package/dist/node_modules/d3-shape/src/curve/bump.js +15 -13
  815. package/dist/node_modules/d3-shape/src/curve/bundle.js +9 -7
  816. package/dist/node_modules/d3-shape/src/curve/cardinal.js +10 -8
  817. package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +12 -10
  818. package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +9 -7
  819. package/dist/node_modules/d3-shape/src/curve/catmullRom.js +19 -17
  820. package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +13 -11
  821. package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +10 -8
  822. package/dist/node_modules/d3-shape/src/curve/linear.js +7 -5
  823. package/dist/node_modules/d3-shape/src/curve/linearClosed.js +12 -10
  824. package/dist/node_modules/d3-shape/src/curve/monotone.js +23 -21
  825. package/dist/node_modules/d3-shape/src/curve/natural.js +9 -7
  826. package/dist/node_modules/d3-shape/src/curve/step.js +19 -17
  827. package/dist/node_modules/d3-shape/src/descending.js +4 -2
  828. package/dist/node_modules/d3-shape/src/identity.js +4 -2
  829. package/dist/node_modules/d3-shape/src/line.js +19 -17
  830. package/dist/node_modules/d3-shape/src/math.js +8 -6
  831. package/dist/node_modules/d3-shape/src/noop.js +4 -2
  832. package/dist/node_modules/d3-shape/src/path.js +6 -4
  833. package/dist/node_modules/d3-shape/src/pie.js +15 -13
  834. package/dist/node_modules/d3-shape/src/point.js +5 -3
  835. package/dist/node_modules/d3-time/src/day.js +17 -15
  836. package/dist/node_modules/d3-time/src/duration.js +4 -2
  837. package/dist/node_modules/d3-time/src/hour.js +16 -14
  838. package/dist/node_modules/d3-time/src/interval.js +7 -5
  839. package/dist/node_modules/d3-time/src/millisecond.js +7 -5
  840. package/dist/node_modules/d3-time/src/minute.js +16 -14
  841. package/dist/node_modules/d3-time/src/month.js +14 -12
  842. package/dist/node_modules/d3-time/src/second.js +9 -7
  843. package/dist/node_modules/d3-time/src/ticks.js +66 -64
  844. package/dist/node_modules/d3-time/src/week.js +21 -19
  845. package/dist/node_modules/d3-time/src/year.js +10 -8
  846. package/dist/node_modules/d3-time-format/src/defaultLocale.js +8 -6
  847. package/dist/node_modules/d3-time-format/src/locale.js +346 -344
  848. package/dist/node_modules/d3-timer/src/timeout.js +6 -4
  849. package/dist/node_modules/d3-timer/src/timer.js +33 -31
  850. package/dist/node_modules/d3-transition/src/index.js +2 -2
  851. package/dist/node_modules/d3-transition/src/interrupt.js +4 -3
  852. package/dist/node_modules/d3-transition/src/selection/index.js +5 -4
  853. package/dist/node_modules/d3-transition/src/selection/interrupt.js +6 -4
  854. package/dist/node_modules/d3-transition/src/selection/transition.js +16 -14
  855. package/dist/node_modules/d3-transition/src/transition/attr.js +28 -26
  856. package/dist/node_modules/d3-transition/src/transition/attrTween.js +13 -11
  857. package/dist/node_modules/d3-transition/src/transition/delay.js +11 -9
  858. package/dist/node_modules/d3-transition/src/transition/duration.js +11 -9
  859. package/dist/node_modules/d3-transition/src/transition/ease.js +8 -6
  860. package/dist/node_modules/d3-transition/src/transition/easeVarying.js +8 -6
  861. package/dist/node_modules/d3-transition/src/transition/end.js +6 -4
  862. package/dist/node_modules/d3-transition/src/transition/filter.js +8 -6
  863. package/dist/node_modules/d3-transition/src/transition/index.js +63 -61
  864. package/dist/node_modules/d3-transition/src/transition/interpolate.js +9 -7
  865. package/dist/node_modules/d3-transition/src/transition/merge.js +6 -4
  866. package/dist/node_modules/d3-transition/src/transition/on.js +9 -7
  867. package/dist/node_modules/d3-transition/src/transition/remove.js +6 -4
  868. package/dist/node_modules/d3-transition/src/transition/schedule.js +20 -18
  869. package/dist/node_modules/d3-transition/src/transition/select.js +10 -8
  870. package/dist/node_modules/d3-transition/src/transition/selectAll.js +10 -8
  871. package/dist/node_modules/d3-transition/src/transition/selection.js +7 -5
  872. package/dist/node_modules/d3-transition/src/transition/style.js +21 -19
  873. package/dist/node_modules/d3-transition/src/transition/styleTween.js +8 -6
  874. package/dist/node_modules/d3-transition/src/transition/text.js +8 -6
  875. package/dist/node_modules/d3-transition/src/transition/textTween.js +8 -6
  876. package/dist/node_modules/d3-transition/src/transition/transition.js +10 -8
  877. package/dist/node_modules/d3-transition/src/transition/tween.js +14 -12
  878. package/dist/node_modules/d3-zoom/src/constant.js +4 -2
  879. package/dist/node_modules/d3-zoom/src/event.js +4 -2
  880. package/dist/node_modules/d3-zoom/src/index.js +2 -2
  881. package/dist/node_modules/d3-zoom/src/noevent.js +5 -3
  882. package/dist/node_modules/d3-zoom/src/transform.js +12 -10
  883. package/dist/node_modules/d3-zoom/src/zoom.js +116 -114
  884. package/dist/node_modules/dagre-d3-es/src/dagre/acyclic.js +14 -12
  885. package/dist/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +11 -9
  886. package/dist/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +36 -34
  887. package/dist/node_modules/dagre-d3-es/src/dagre/data/list.js +9 -7
  888. package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +51 -49
  889. package/dist/node_modules/dagre-d3-es/src/dagre/index.js +2 -2
  890. package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +165 -163
  891. package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +45 -43
  892. package/dist/node_modules/dagre-d3-es/src/dagre/normalize.js +12 -10
  893. package/dist/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +6 -4
  894. package/dist/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +8 -6
  895. package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +14 -12
  896. package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +22 -20
  897. package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +36 -34
  898. package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +16 -14
  899. package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +32 -30
  900. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +30 -28
  901. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +20 -18
  902. package/dist/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +12 -10
  903. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +150 -148
  904. package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +20 -18
  905. package/dist/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +19 -17
  906. package/dist/node_modules/dagre-d3-es/src/dagre/rank/index.js +16 -14
  907. package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +64 -63
  908. package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +15 -13
  909. package/dist/node_modules/dagre-d3-es/src/dagre/util.js +84 -82
  910. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +15 -13
  911. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.js +3 -2
  912. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.js +3 -2
  913. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/index.js +3 -3
  914. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js +6 -4
  915. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +6 -4
  916. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +13 -11
  917. package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +131 -129
  918. package/dist/node_modules/dagre-d3-es/src/graphlib/index.js +1 -1
  919. package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +23 -21
  920. package/dist/node_modules/dayjs/dayjs.min.js +6 -4
  921. package/dist/node_modules/dayjs/plugin/advancedFormat.js +6 -4
  922. package/dist/node_modules/dayjs/plugin/customParseFormat.js +6 -4
  923. package/dist/node_modules/dayjs/plugin/duration.js +6 -4
  924. package/dist/node_modules/dayjs/plugin/isoWeek.js +6 -4
  925. package/dist/node_modules/decode-named-character-reference/index.dom.js +7 -5
  926. package/dist/node_modules/devlop/lib/default.js +4 -2
  927. package/dist/node_modules/dompurify/dist/purify.es.js +203 -201
  928. package/dist/node_modules/entities/dist/esm/decode-codepoint.js +6 -4
  929. package/dist/node_modules/entities/dist/esm/decode.js +87 -85
  930. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.js +4 -2
  931. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +6 -4
  932. package/dist/node_modules/extend/index.js +9 -6
  933. package/dist/node_modules/hast-util-from-dom/lib/index.js +32 -30
  934. package/dist/node_modules/hast-util-from-html-isomorphic/lib/browser.js +10 -8
  935. package/dist/node_modules/hast-util-from-parse5/lib/index.js +82 -80
  936. package/dist/node_modules/hast-util-is-element/lib/index.js +17 -15
  937. package/dist/node_modules/hast-util-parse-selector/lib/index.js +7 -5
  938. package/dist/node_modules/hast-util-raw/lib/index.js +136 -134
  939. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.js +23 -21
  940. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.js +5 -3
  941. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.js +89 -89
  942. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.js +250 -249
  943. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.js +6 -4
  944. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.js +14 -14
  945. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/index.js +4 -4
  946. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.js +17 -15
  947. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.js +1497 -1495
  948. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.js +148 -146
  949. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.js +20 -19
  950. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +800 -798
  951. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.js +33 -31
  952. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.js +10 -8
  953. package/dist/node_modules/hast-util-sanitize/lib/index.js +106 -104
  954. package/dist/node_modules/hast-util-sanitize/lib/schema.js +12 -11
  955. package/dist/node_modules/hast-util-to-html/lib/handle/comment.js +9 -7
  956. package/dist/node_modules/hast-util-to-html/lib/handle/doctype.js +4 -2
  957. package/dist/node_modules/hast-util-to-html/lib/handle/element.js +25 -23
  958. package/dist/node_modules/hast-util-to-html/lib/handle/index.js +22 -21
  959. package/dist/node_modules/hast-util-to-html/lib/handle/raw.js +6 -4
  960. package/dist/node_modules/hast-util-to-html/lib/handle/root.js +4 -2
  961. package/dist/node_modules/hast-util-to-html/lib/handle/text.js +7 -5
  962. package/dist/node_modules/hast-util-to-html/lib/index.js +38 -36
  963. package/dist/node_modules/hast-util-to-html/lib/omission/closing.js +70 -68
  964. package/dist/node_modules/hast-util-to-html/lib/omission/omission.js +6 -4
  965. package/dist/node_modules/hast-util-to-html/lib/omission/opening.js +32 -30
  966. package/dist/node_modules/hast-util-to-html/lib/omission/util/siblings.js +10 -9
  967. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +192 -190
  968. package/dist/node_modules/hast-util-to-parse5/lib/index.js +71 -69
  969. package/dist/node_modules/hast-util-to-text/lib/index.js +61 -59
  970. package/dist/node_modules/hast-util-whitespace/lib/index.js +8 -6
  971. package/dist/node_modules/hastscript/lib/create-h.js +26 -24
  972. package/dist/node_modules/hastscript/lib/index.js +7 -5
  973. package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +4 -2
  974. package/dist/node_modules/html-url-attributes/lib/index.js +4 -2
  975. package/dist/node_modules/html-void-elements/index.js +4 -2
  976. package/dist/node_modules/inline-style-parser/cjs/index.js +6 -4
  977. package/dist/node_modules/internmap/src/index.js +22 -20
  978. package/dist/node_modules/katex/dist/katex.js +2914 -2873
  979. package/dist/node_modules/khroma/dist/channels/index.js +23 -21
  980. package/dist/node_modules/khroma/dist/channels/reusable.js +5 -3
  981. package/dist/node_modules/khroma/dist/channels/type.js +7 -5
  982. package/dist/node_modules/khroma/dist/color/hex.js +10 -8
  983. package/dist/node_modules/khroma/dist/color/hsl.js +19 -17
  984. package/dist/node_modules/khroma/dist/color/index.js +17 -15
  985. package/dist/node_modules/khroma/dist/color/keyword.js +10 -8
  986. package/dist/node_modules/khroma/dist/color/rgb.js +14 -12
  987. package/dist/node_modules/khroma/dist/constants.js +7 -5
  988. package/dist/node_modules/khroma/dist/methods/adjust.js +8 -6
  989. package/dist/node_modules/khroma/dist/methods/adjust_channel.js +8 -6
  990. package/dist/node_modules/khroma/dist/methods/change.js +9 -7
  991. package/dist/node_modules/khroma/dist/methods/channel.js +6 -4
  992. package/dist/node_modules/khroma/dist/methods/darken.js +5 -3
  993. package/dist/node_modules/khroma/dist/methods/invert.js +8 -6
  994. package/dist/node_modules/khroma/dist/methods/is_dark.js +5 -3
  995. package/dist/node_modules/khroma/dist/methods/is_light.js +5 -3
  996. package/dist/node_modules/khroma/dist/methods/lighten.js +5 -3
  997. package/dist/node_modules/khroma/dist/methods/luminance.js +8 -6
  998. package/dist/node_modules/khroma/dist/methods/mix.js +8 -6
  999. package/dist/node_modules/khroma/dist/methods/rgba.js +15 -13
  1000. package/dist/node_modules/khroma/dist/methods/transparentize.js +5 -0
  1001. package/dist/node_modules/khroma/dist/utils/channel.js +8 -6
  1002. package/dist/node_modules/khroma/dist/utils/index.js +10 -8
  1003. package/dist/node_modules/khroma/dist/utils/lang.js +4 -2
  1004. package/dist/node_modules/khroma/dist/utils/unit.js +4 -2
  1005. package/dist/node_modules/langium/lib/default-module.js +66 -64
  1006. package/dist/node_modules/langium/lib/dependency-injection.js +37 -39
  1007. package/dist/node_modules/langium/lib/documentation/comment-provider.js +7 -5
  1008. package/dist/node_modules/langium/lib/documentation/documentation-provider.js +8 -6
  1009. package/dist/node_modules/langium/lib/documentation/jsdoc.js +204 -202
  1010. package/dist/node_modules/langium/lib/languages/generated/ast.js +343 -534
  1011. package/dist/node_modules/langium/lib/languages/grammar-config.js +10 -8
  1012. package/dist/node_modules/langium/lib/parser/async-parser.js +4 -76
  1013. package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +8 -6
  1014. package/dist/node_modules/langium/lib/parser/cst-node-builder.js +56 -54
  1015. package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +9 -7
  1016. package/dist/node_modules/langium/lib/parser/langium-parser.js +190 -188
  1017. package/dist/node_modules/langium/lib/parser/lexer.js +25 -25
  1018. package/dist/node_modules/langium/lib/parser/parser-builder-base.js +204 -203
  1019. package/dist/node_modules/langium/lib/parser/token-builder.js +32 -30
  1020. package/dist/node_modules/langium/lib/parser/value-converter.js +17 -15
  1021. package/dist/node_modules/langium/lib/references/linker.js +104 -103
  1022. package/dist/node_modules/langium/lib/references/name-provider.js +9 -7
  1023. package/dist/node_modules/langium/lib/references/references.js +53 -51
  1024. package/dist/node_modules/langium/lib/references/scope-computation.js +14 -12
  1025. package/dist/node_modules/langium/lib/references/scope-provider.js +13 -11
  1026. package/dist/node_modules/langium/lib/references/scope.js +27 -56
  1027. package/dist/node_modules/langium/lib/serializer/hydrator.js +71 -69
  1028. package/dist/node_modules/langium/lib/serializer/json-serializer.js +23 -21
  1029. package/dist/node_modules/langium/lib/service-registry.js +7 -5
  1030. package/dist/node_modules/langium/lib/syntax-tree.js +33 -31
  1031. package/dist/node_modules/langium/lib/utils/ast-utils.js +77 -112
  1032. package/dist/node_modules/langium/lib/utils/caching.js +33 -42
  1033. package/dist/node_modules/langium/lib/utils/cancellation.js +7 -5
  1034. package/dist/node_modules/langium/lib/utils/collections.js +35 -33
  1035. package/dist/node_modules/langium/lib/utils/cst-utils.js +46 -161
  1036. package/dist/node_modules/langium/lib/utils/disposable.js +5 -3
  1037. package/dist/node_modules/langium/lib/utils/errors.js +8 -9
  1038. package/dist/node_modules/langium/lib/utils/event.js +7 -5
  1039. package/dist/node_modules/langium/lib/utils/grammar-loader.js +16 -14
  1040. package/dist/node_modules/langium/lib/utils/grammar-utils.js +172 -249
  1041. package/dist/node_modules/langium/lib/utils/promise-utils.js +18 -19
  1042. package/dist/node_modules/langium/lib/utils/regexp-utils.js +53 -76
  1043. package/dist/node_modules/langium/lib/utils/stream.js +155 -153
  1044. package/dist/node_modules/langium/lib/utils/uri-utils.js +14 -12
  1045. package/dist/node_modules/langium/lib/validation/document-validator.js +104 -103
  1046. package/dist/node_modules/langium/lib/validation/validation-registry.js +15 -14
  1047. package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +19 -17
  1048. package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +4 -2
  1049. package/dist/node_modules/langium/lib/workspace/configuration.js +7 -5
  1050. package/dist/node_modules/langium/lib/workspace/document-builder.js +131 -134
  1051. package/dist/node_modules/langium/lib/workspace/documents.js +85 -83
  1052. package/dist/node_modules/langium/lib/workspace/file-system-provider.js +5 -4
  1053. package/dist/node_modules/langium/lib/workspace/index-manager.js +16 -14
  1054. package/dist/node_modules/langium/lib/workspace/workspace-lock.js +11 -9
  1055. package/dist/node_modules/langium/lib/workspace/workspace-manager.js +35 -33
  1056. package/dist/node_modules/layout-base/layout-base.js +6 -4
  1057. package/dist/node_modules/lodash-es/_DataView.js +6 -4
  1058. package/dist/node_modules/lodash-es/_Hash.js +14 -13
  1059. package/dist/node_modules/lodash-es/_ListCache.js +14 -13
  1060. package/dist/node_modules/lodash-es/_Map.js +6 -4
  1061. package/dist/node_modules/lodash-es/_MapCache.js +14 -13
  1062. package/dist/node_modules/lodash-es/_Promise.js +6 -4
  1063. package/dist/node_modules/lodash-es/_Set.js +6 -4
  1064. package/dist/node_modules/lodash-es/_SetCache.js +10 -9
  1065. package/dist/node_modules/lodash-es/_Stack.js +12 -11
  1066. package/dist/node_modules/lodash-es/_Symbol.js +5 -3
  1067. package/dist/node_modules/lodash-es/_Uint8Array.js +5 -3
  1068. package/dist/node_modules/lodash-es/_WeakMap.js +6 -4
  1069. package/dist/node_modules/lodash-es/_apply.js +4 -3
  1070. package/dist/node_modules/lodash-es/_arrayEach.js +4 -3
  1071. package/dist/node_modules/lodash-es/_arrayFilter.js +4 -3
  1072. package/dist/node_modules/lodash-es/_arrayIncludes.js +6 -5
  1073. package/dist/node_modules/lodash-es/_arrayIncludesWith.js +4 -3
  1074. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +13 -12
  1075. package/dist/node_modules/lodash-es/_arrayMap.js +4 -3
  1076. package/dist/node_modules/lodash-es/_arrayPush.js +4 -3
  1077. package/dist/node_modules/lodash-es/_arrayReduce.js +4 -3
  1078. package/dist/node_modules/lodash-es/_arraySome.js +4 -3
  1079. package/dist/node_modules/lodash-es/_asciiSize.js +5 -3
  1080. package/dist/node_modules/lodash-es/_assignMergeValue.js +7 -6
  1081. package/dist/node_modules/lodash-es/_assignValue.js +8 -7
  1082. package/dist/node_modules/lodash-es/_assocIndexOf.js +6 -5
  1083. package/dist/node_modules/lodash-es/_baseAssign.js +7 -6
  1084. package/dist/node_modules/lodash-es/_baseAssignIn.js +7 -6
  1085. package/dist/node_modules/lodash-es/_baseAssignValue.js +6 -5
  1086. package/dist/node_modules/lodash-es/_baseClone.js +51 -50
  1087. package/dist/node_modules/lodash-es/_baseCreate.js +7 -5
  1088. package/dist/node_modules/lodash-es/_baseEach.js +6 -4
  1089. package/dist/node_modules/lodash-es/_baseExtremum.js +6 -5
  1090. package/dist/node_modules/lodash-es/_baseFilter.js +6 -5
  1091. package/dist/node_modules/lodash-es/_baseFindIndex.js +4 -3
  1092. package/dist/node_modules/lodash-es/_baseFlatten.js +8 -7
  1093. package/dist/node_modules/lodash-es/_baseFor.js +5 -3
  1094. package/dist/node_modules/lodash-es/_baseForOwn.js +7 -6
  1095. package/dist/node_modules/lodash-es/_baseGet.js +8 -7
  1096. package/dist/node_modules/lodash-es/_baseGetAllKeys.js +7 -6
  1097. package/dist/node_modules/lodash-es/_baseGetTag.js +9 -8
  1098. package/dist/node_modules/lodash-es/_baseGt.js +4 -3
  1099. package/dist/node_modules/lodash-es/_baseHas.js +6 -5
  1100. package/dist/node_modules/lodash-es/_baseHasIn.js +4 -3
  1101. package/dist/node_modules/lodash-es/_baseIndexOf.js +8 -7
  1102. package/dist/node_modules/lodash-es/_baseIsArguments.js +8 -7
  1103. package/dist/node_modules/lodash-es/_baseIsEqual.js +7 -6
  1104. package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +23 -22
  1105. package/dist/node_modules/lodash-es/_baseIsMap.js +8 -7
  1106. package/dist/node_modules/lodash-es/_baseIsMatch.js +9 -8
  1107. package/dist/node_modules/lodash-es/_baseIsNaN.js +4 -3
  1108. package/dist/node_modules/lodash-es/_baseIsNative.js +10 -9
  1109. package/dist/node_modules/lodash-es/_baseIsSet.js +8 -7
  1110. package/dist/node_modules/lodash-es/_baseIsTypedArray.js +10 -9
  1111. package/dist/node_modules/lodash-es/_baseIteratee.js +10 -9
  1112. package/dist/node_modules/lodash-es/_baseKeys.js +9 -8
  1113. package/dist/node_modules/lodash-es/_baseKeysIn.js +11 -10
  1114. package/dist/node_modules/lodash-es/_baseLt.js +4 -3
  1115. package/dist/node_modules/lodash-es/_baseMap.js +8 -7
  1116. package/dist/node_modules/lodash-es/_baseMatches.js +10 -9
  1117. package/dist/node_modules/lodash-es/_baseMatchesProperty.js +15 -14
  1118. package/dist/node_modules/lodash-es/_baseMerge.js +16 -15
  1119. package/dist/node_modules/lodash-es/_baseMergeDeep.js +24 -23
  1120. package/dist/node_modules/lodash-es/_baseOrderBy.js +23 -22
  1121. package/dist/node_modules/lodash-es/_basePick.js +8 -7
  1122. package/dist/node_modules/lodash-es/_basePickBy.js +9 -8
  1123. package/dist/node_modules/lodash-es/_baseProperty.js +4 -3
  1124. package/dist/node_modules/lodash-es/_basePropertyDeep.js +6 -5
  1125. package/dist/node_modules/lodash-es/_baseRange.js +6 -5
  1126. package/dist/node_modules/lodash-es/_baseReduce.js +4 -3
  1127. package/dist/node_modules/lodash-es/_baseRest.js +8 -7
  1128. package/dist/node_modules/lodash-es/_baseSet.js +14 -13
  1129. package/dist/node_modules/lodash-es/_baseSetToString.js +10 -8
  1130. package/dist/node_modules/lodash-es/_baseSortBy.js +4 -3
  1131. package/dist/node_modules/lodash-es/_baseTimes.js +4 -3
  1132. package/dist/node_modules/lodash-es/_baseToString.js +13 -12
  1133. package/dist/node_modules/lodash-es/_baseTrim.js +7 -6
  1134. package/dist/node_modules/lodash-es/_baseUnary.js +4 -3
  1135. package/dist/node_modules/lodash-es/_baseUniq.js +17 -16
  1136. package/dist/node_modules/lodash-es/_baseValues.js +6 -5
  1137. package/dist/node_modules/lodash-es/_baseZipObject.js +4 -3
  1138. package/dist/node_modules/lodash-es/_cacheHas.js +4 -3
  1139. package/dist/node_modules/lodash-es/_castFunction.js +6 -5
  1140. package/dist/node_modules/lodash-es/_castPath.js +9 -8
  1141. package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +6 -5
  1142. package/dist/node_modules/lodash-es/_cloneBuffer.js +9 -8
  1143. package/dist/node_modules/lodash-es/_cloneDataView.js +6 -5
  1144. package/dist/node_modules/lodash-es/_cloneRegExp.js +6 -5
  1145. package/dist/node_modules/lodash-es/_cloneSymbol.js +7 -6
  1146. package/dist/node_modules/lodash-es/_cloneTypedArray.js +6 -5
  1147. package/dist/node_modules/lodash-es/_compareAscending.js +6 -5
  1148. package/dist/node_modules/lodash-es/_compareMultiple.js +6 -5
  1149. package/dist/node_modules/lodash-es/_copyArray.js +4 -3
  1150. package/dist/node_modules/lodash-es/_copyObject.js +7 -6
  1151. package/dist/node_modules/lodash-es/_copySymbols.js +7 -6
  1152. package/dist/node_modules/lodash-es/_copySymbolsIn.js +7 -6
  1153. package/dist/node_modules/lodash-es/_coreJsData.js +5 -3
  1154. package/dist/node_modules/lodash-es/_createAssigner.js +8 -7
  1155. package/dist/node_modules/lodash-es/_createBaseEach.js +6 -5
  1156. package/dist/node_modules/lodash-es/_createBaseFor.js +4 -3
  1157. package/dist/node_modules/lodash-es/_createFind.js +10 -9
  1158. package/dist/node_modules/lodash-es/_createRange.js +8 -7
  1159. package/dist/node_modules/lodash-es/_createSet.js +9 -7
  1160. package/dist/node_modules/lodash-es/_defineProperty.js +6 -4
  1161. package/dist/node_modules/lodash-es/_equalArrays.js +12 -11
  1162. package/dist/node_modules/lodash-es/_equalByTag.js +29 -28
  1163. package/dist/node_modules/lodash-es/_equalObjects.js +9 -8
  1164. package/dist/node_modules/lodash-es/_flatRest.js +8 -7
  1165. package/dist/node_modules/lodash-es/_freeGlobal.js +4 -2
  1166. package/dist/node_modules/lodash-es/_getAllKeys.js +8 -7
  1167. package/dist/node_modules/lodash-es/_getAllKeysIn.js +8 -7
  1168. package/dist/node_modules/lodash-es/_getMapData.js +6 -5
  1169. package/dist/node_modules/lodash-es/_getMatchData.js +8 -7
  1170. package/dist/node_modules/lodash-es/_getNative.js +8 -7
  1171. package/dist/node_modules/lodash-es/_getPrototype.js +5 -3
  1172. package/dist/node_modules/lodash-es/_getRawTag.js +10 -9
  1173. package/dist/node_modules/lodash-es/_getSymbols.js +9 -7
  1174. package/dist/node_modules/lodash-es/_getSymbolsIn.js +10 -8
  1175. package/dist/node_modules/lodash-es/_getTag.js +21 -19
  1176. package/dist/node_modules/lodash-es/_getValue.js +4 -3
  1177. package/dist/node_modules/lodash-es/_hasPath.js +13 -12
  1178. package/dist/node_modules/lodash-es/_hasUnicode.js +6 -5
  1179. package/dist/node_modules/lodash-es/_hashClear.js +6 -5
  1180. package/dist/node_modules/lodash-es/_hashDelete.js +5 -4
  1181. package/dist/node_modules/lodash-es/_hashGet.js +9 -8
  1182. package/dist/node_modules/lodash-es/_hashHas.js +7 -6
  1183. package/dist/node_modules/lodash-es/_hashSet.js +7 -6
  1184. package/dist/node_modules/lodash-es/_initCloneArray.js +6 -5
  1185. package/dist/node_modules/lodash-es/_initCloneByTag.js +29 -28
  1186. package/dist/node_modules/lodash-es/_initCloneObject.js +8 -7
  1187. package/dist/node_modules/lodash-es/_isFlattenable.js +9 -8
  1188. package/dist/node_modules/lodash-es/_isIndex.js +6 -5
  1189. package/dist/node_modules/lodash-es/_isIterateeCall.js +10 -9
  1190. package/dist/node_modules/lodash-es/_isKey.js +9 -8
  1191. package/dist/node_modules/lodash-es/_isKeyable.js +4 -3
  1192. package/dist/node_modules/lodash-es/_isMasked.js +9 -8
  1193. package/dist/node_modules/lodash-es/_isPrototype.js +6 -5
  1194. package/dist/node_modules/lodash-es/_isStrictComparable.js +6 -5
  1195. package/dist/node_modules/lodash-es/_listCacheClear.js +4 -3
  1196. package/dist/node_modules/lodash-es/_listCacheDelete.js +8 -7
  1197. package/dist/node_modules/lodash-es/_listCacheGet.js +6 -5
  1198. package/dist/node_modules/lodash-es/_listCacheHas.js +6 -5
  1199. package/dist/node_modules/lodash-es/_listCacheSet.js +6 -5
  1200. package/dist/node_modules/lodash-es/_mapCacheClear.js +10 -9
  1201. package/dist/node_modules/lodash-es/_mapCacheDelete.js +7 -6
  1202. package/dist/node_modules/lodash-es/_mapCacheGet.js +6 -5
  1203. package/dist/node_modules/lodash-es/_mapCacheHas.js +6 -5
  1204. package/dist/node_modules/lodash-es/_mapCacheSet.js +6 -5
  1205. package/dist/node_modules/lodash-es/_mapToArray.js +4 -3
  1206. package/dist/node_modules/lodash-es/_matchesStrictComparable.js +4 -3
  1207. package/dist/node_modules/lodash-es/_memoizeCapped.js +8 -7
  1208. package/dist/node_modules/lodash-es/_nativeCreate.js +5 -3
  1209. package/dist/node_modules/lodash-es/_nativeKeys.js +5 -3
  1210. package/dist/node_modules/lodash-es/_nativeKeysIn.js +4 -3
  1211. package/dist/node_modules/lodash-es/_nodeUtil.js +6 -4
  1212. package/dist/node_modules/lodash-es/_objectToString.js +6 -5
  1213. package/dist/node_modules/lodash-es/_overArg.js +4 -3
  1214. package/dist/node_modules/lodash-es/_overRest.js +9 -8
  1215. package/dist/node_modules/lodash-es/_root.js +5 -3
  1216. package/dist/node_modules/lodash-es/_safeGet.js +4 -3
  1217. package/dist/node_modules/lodash-es/_setCacheAdd.js +6 -5
  1218. package/dist/node_modules/lodash-es/_setCacheHas.js +4 -3
  1219. package/dist/node_modules/lodash-es/_setToArray.js +4 -3
  1220. package/dist/node_modules/lodash-es/_setToString.js +6 -4
  1221. package/dist/node_modules/lodash-es/_shortOut.js +7 -6
  1222. package/dist/node_modules/lodash-es/_stackClear.js +6 -5
  1223. package/dist/node_modules/lodash-es/_stackDelete.js +4 -3
  1224. package/dist/node_modules/lodash-es/_stackGet.js +4 -3
  1225. package/dist/node_modules/lodash-es/_stackHas.js +4 -3
  1226. package/dist/node_modules/lodash-es/_stackSet.js +11 -10
  1227. package/dist/node_modules/lodash-es/_strictIndexOf.js +4 -3
  1228. package/dist/node_modules/lodash-es/_stringSize.js +8 -7
  1229. package/dist/node_modules/lodash-es/_stringToPath.js +7 -5
  1230. package/dist/node_modules/lodash-es/_toKey.js +8 -7
  1231. package/dist/node_modules/lodash-es/_toSource.js +8 -7
  1232. package/dist/node_modules/lodash-es/_trimmedEndIndex.js +6 -5
  1233. package/dist/node_modules/lodash-es/_unicodeSize.js +17 -16
  1234. package/dist/node_modules/lodash-es/clone.js +7 -6
  1235. package/dist/node_modules/lodash-es/cloneDeep.js +7 -6
  1236. package/dist/node_modules/lodash-es/constant.js +4 -3
  1237. package/dist/node_modules/lodash-es/defaults.js +13 -11
  1238. package/dist/node_modules/lodash-es/eq.js +4 -3
  1239. package/dist/node_modules/lodash-es/filter.js +9 -8
  1240. package/dist/node_modules/lodash-es/find.js +6 -4
  1241. package/dist/node_modules/lodash-es/findIndex.js +10 -9
  1242. package/dist/node_modules/lodash-es/flatMap.js +7 -6
  1243. package/dist/node_modules/lodash-es/flatten.js +6 -5
  1244. package/dist/node_modules/lodash-es/forEach.js +9 -8
  1245. package/dist/node_modules/lodash-es/forIn.js +8 -7
  1246. package/dist/node_modules/lodash-es/forOwn.js +7 -6
  1247. package/dist/node_modules/lodash-es/get.js +6 -5
  1248. package/dist/node_modules/lodash-es/has.js +7 -6
  1249. package/dist/node_modules/lodash-es/hasIn.js +7 -6
  1250. package/dist/node_modules/lodash-es/identity.js +4 -3
  1251. package/dist/node_modules/lodash-es/isArguments.js +8 -6
  1252. package/dist/node_modules/lodash-es/isArray.js +4 -2
  1253. package/dist/node_modules/lodash-es/isArrayLike.js +7 -6
  1254. package/dist/node_modules/lodash-es/isArrayLikeObject.js +7 -6
  1255. package/dist/node_modules/lodash-es/isBuffer.js +6 -4
  1256. package/dist/node_modules/lodash-es/isEmpty.js +18 -17
  1257. package/dist/node_modules/lodash-es/isFunction.js +10 -9
  1258. package/dist/node_modules/lodash-es/isLength.js +6 -5
  1259. package/dist/node_modules/lodash-es/isMap.js +7 -5
  1260. package/dist/node_modules/lodash-es/isObject.js +4 -3
  1261. package/dist/node_modules/lodash-es/isObjectLike.js +4 -3
  1262. package/dist/node_modules/lodash-es/isPlainObject.js +13 -12
  1263. package/dist/node_modules/lodash-es/isSet.js +7 -5
  1264. package/dist/node_modules/lodash-es/isString.js +9 -8
  1265. package/dist/node_modules/lodash-es/isSymbol.js +8 -7
  1266. package/dist/node_modules/lodash-es/isTypedArray.js +7 -5
  1267. package/dist/node_modules/lodash-es/isUndefined.js +4 -3
  1268. package/dist/node_modules/lodash-es/keys.js +8 -7
  1269. package/dist/node_modules/lodash-es/keysIn.js +8 -7
  1270. package/dist/node_modules/lodash-es/last.js +4 -3
  1271. package/dist/node_modules/lodash-es/map.js +9 -8
  1272. package/dist/node_modules/lodash-es/mapValues.js +9 -8
  1273. package/dist/node_modules/lodash-es/max.js +8 -7
  1274. package/dist/node_modules/lodash-es/memoize.js +9 -8
  1275. package/dist/node_modules/lodash-es/merge.js +7 -5
  1276. package/dist/node_modules/lodash-es/min.js +8 -7
  1277. package/dist/node_modules/lodash-es/minBy.js +8 -7
  1278. package/dist/node_modules/lodash-es/noop.js +4 -3
  1279. package/dist/node_modules/lodash-es/now.js +6 -4
  1280. package/dist/node_modules/lodash-es/pick.js +7 -5
  1281. package/dist/node_modules/lodash-es/property.js +9 -8
  1282. package/dist/node_modules/lodash-es/range.js +5 -3
  1283. package/dist/node_modules/lodash-es/reduce.js +11 -10
  1284. package/dist/node_modules/lodash-es/size.js +13 -12
  1285. package/dist/node_modules/lodash-es/sortBy.js +9 -7
  1286. package/dist/node_modules/lodash-es/stubArray.js +4 -3
  1287. package/dist/node_modules/lodash-es/stubFalse.js +4 -3
  1288. package/dist/node_modules/lodash-es/toFinite.js +7 -6
  1289. package/dist/node_modules/lodash-es/toInteger.js +6 -5
  1290. package/dist/node_modules/lodash-es/toNumber.js +14 -13
  1291. package/dist/node_modules/lodash-es/toPlainObject.js +7 -6
  1292. package/dist/node_modules/lodash-es/toString.js +6 -5
  1293. package/dist/node_modules/lodash-es/union.js +9 -7
  1294. package/dist/node_modules/lodash-es/uniqBy.js +7 -6
  1295. package/dist/node_modules/lodash-es/uniqueId.js +8 -7
  1296. package/dist/node_modules/lodash-es/values.js +7 -6
  1297. package/dist/node_modules/lodash-es/zipObject.js +7 -6
  1298. package/dist/node_modules/longest-streak/index.js +4 -2
  1299. package/dist/node_modules/markdown-table/index.js +11 -9
  1300. package/dist/node_modules/marked/lib/marked.esm.js +687 -685
  1301. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +14 -12
  1302. package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +4 -2
  1303. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +182 -180
  1304. package/dist/node_modules/mdast-util-gfm/lib/index.js +20 -18
  1305. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +69 -67
  1306. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +47 -45
  1307. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +15 -13
  1308. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +30 -28
  1309. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +16 -14
  1310. package/dist/node_modules/mdast-util-math/lib/index.js +15 -13
  1311. package/dist/node_modules/mdast-util-phrasing/lib/index.js +5 -3
  1312. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +11 -9
  1313. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +4 -2
  1314. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +4 -2
  1315. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +4 -2
  1316. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +4 -2
  1317. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +4 -2
  1318. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +6 -4
  1319. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +4 -2
  1320. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +4 -2
  1321. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +8 -6
  1322. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +6 -4
  1323. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +55 -53
  1324. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +4 -2
  1325. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +8 -6
  1326. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +6 -4
  1327. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +15 -13
  1328. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +4 -2
  1329. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +4 -2
  1330. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +4 -2
  1331. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +4 -2
  1332. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +4 -2
  1333. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +4 -2
  1334. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +6 -4
  1335. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +6 -4
  1336. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +4 -2
  1337. package/dist/node_modules/mdast-util-to-hast/lib/index.js +8 -6
  1338. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +4 -2
  1339. package/dist/node_modules/mdast-util-to-hast/lib/state.js +61 -59
  1340. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +6 -4
  1341. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +6 -4
  1342. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +18 -16
  1343. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +6 -4
  1344. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +14 -12
  1345. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +8 -6
  1346. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +6 -4
  1347. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +6 -4
  1348. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +8 -6
  1349. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +43 -41
  1350. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +7 -5
  1351. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +6 -4
  1352. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +11 -9
  1353. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +7 -5
  1354. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +12 -10
  1355. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +4 -2
  1356. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +6 -4
  1357. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +14 -12
  1358. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +4 -2
  1359. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +7 -5
  1360. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +4 -2
  1361. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +6 -4
  1362. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +4 -2
  1363. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +4 -2
  1364. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +4 -2
  1365. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +4 -2
  1366. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +4 -2
  1367. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +4 -2
  1368. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +4 -2
  1369. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +4 -2
  1370. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +4 -2
  1371. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +6 -4
  1372. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +4 -2
  1373. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +8 -7
  1374. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +6 -4
  1375. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +6 -4
  1376. package/dist/node_modules/mdast-util-to-string/lib/index.js +14 -12
  1377. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-Q4EWVU46.js +695 -0
  1378. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-DXYQGD6D.js +3038 -0
  1379. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-YG6GDRKO.js → c4Diagram-AHTNJAMY.js} +581 -573
  1380. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-336JU56O.js +49 -0
  1381. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-426QAEUC.js +11 -0
  1382. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js +6 -4
  1383. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-B4BG7PRW.js → chunk-4TB4RGXK.js} +590 -444
  1384. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +7 -5
  1385. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js +3640 -0
  1386. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +342 -0
  1387. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +22 -20
  1388. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-BSJP7CBP.js +82 -0
  1389. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EDXVE4YY.js +25 -0
  1390. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js +570 -0
  1391. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js +5 -3
  1392. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js +2348 -0
  1393. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OYMX7WX6.js +2014 -0
  1394. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js +8 -4
  1395. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.js +274 -0
  1396. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-X2U36JSP.js +67 -0
  1397. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XPW4576I.js +1146 -0
  1398. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.js +62 -0
  1399. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.js +32 -0
  1400. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-6PBFFD2Q.js +29 -0
  1401. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-HSJHXN6E.js +29 -0
  1402. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +116 -114
  1403. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-KV5264BT.js +265 -0
  1404. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.js +101 -0
  1405. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-G4DWMVQ6.js +284 -0
  1406. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.js +213 -0
  1407. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-TYMM5635.js +133 -0
  1408. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-Q2GNP2WA.js → erDiagram-SMLLAGMA.js} +549 -445
  1409. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-NV44I4VS.js → flowDiagram-DWJPFMVM.js} +1366 -1345
  1410. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-T4ZO3ILL.js +1720 -0
  1411. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.js +730 -0
  1412. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-42DDH7IO.js +19 -0
  1413. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-UXIWVN3A.js +718 -0
  1414. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-VCZTEJTY.js +885 -0
  1415. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-3W4ZIXB7.js → kanban-definition-6JOO6SKY.js} +124 -118
  1416. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-VGOIOE7T.js → mindmap-definition-QFDTVHPH.js} +172 -122
  1417. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.js +119 -0
  1418. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-AYHSOK5B.js → quadrantDiagram-34T5L4WZ.js} +279 -273
  1419. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-UZGBJVZJ.js → requirementDiagram-MS252O5E.js} +100 -66
  1420. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-XADWPNL6.js +529 -0
  1421. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js +4159 -0
  1422. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FHFEXIEX.js +222 -0
  1423. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-QKLJ7IA2.js +27 -0
  1424. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.js +1073 -0
  1425. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-DHZGUBPP.js +961 -0
  1426. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +578 -0
  1427. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-5P7HB3ND.js +2000 -0
  1428. package/dist/node_modules/mermaid/dist/mermaid.core.js +492 -445
  1429. package/dist/node_modules/micromark/lib/constructs.js +80 -79
  1430. package/dist/node_modules/micromark/lib/create-tokenizer.js +14 -12
  1431. package/dist/node_modules/micromark/lib/initialize/content.js +9 -7
  1432. package/dist/node_modules/micromark/lib/initialize/document.js +15 -14
  1433. package/dist/node_modules/micromark/lib/initialize/flow.js +9 -7
  1434. package/dist/node_modules/micromark/lib/initialize/text.js +8 -6
  1435. package/dist/node_modules/micromark/lib/parse.js +20 -18
  1436. package/dist/node_modules/micromark/lib/postprocess.js +6 -4
  1437. package/dist/node_modules/micromark/lib/preprocess.js +6 -4
  1438. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +20 -18
  1439. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +17 -15
  1440. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +11 -9
  1441. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +15 -13
  1442. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +8 -6
  1443. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +16 -14
  1444. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +22 -21
  1445. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +16 -15
  1446. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +13 -11
  1447. package/dist/node_modules/micromark-core-commonmark/lib/content.js +18 -17
  1448. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +30 -29
  1449. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +8 -6
  1450. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +15 -13
  1451. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +68 -67
  1452. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +66 -64
  1453. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +112 -111
  1454. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +8 -6
  1455. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +8 -6
  1456. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +8 -6
  1457. package/dist/node_modules/micromark-core-commonmark/lib/list.js +32 -31
  1458. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +12 -10
  1459. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +11 -9
  1460. package/dist/node_modules/micromark-extension-gfm/index.js +16 -14
  1461. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +122 -120
  1462. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +33 -31
  1463. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +11 -9
  1464. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +6 -4
  1465. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +4 -2
  1466. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +36 -34
  1467. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +20 -18
  1468. package/dist/node_modules/micromark-extension-math/lib/math-flow.js +21 -20
  1469. package/dist/node_modules/micromark-extension-math/lib/math-text.js +11 -9
  1470. package/dist/node_modules/micromark-extension-math/lib/syntax.js +8 -6
  1471. package/dist/node_modules/micromark-factory-destination/index.js +10 -8
  1472. package/dist/node_modules/micromark-factory-label/index.js +7 -5
  1473. package/dist/node_modules/micromark-factory-space/index.js +7 -5
  1474. package/dist/node_modules/micromark-factory-title/index.js +8 -6
  1475. package/dist/node_modules/micromark-factory-whitespace/index.js +7 -5
  1476. package/dist/node_modules/micromark-util-character/index.js +14 -12
  1477. package/dist/node_modules/micromark-util-chunked/index.js +6 -4
  1478. package/dist/node_modules/micromark-util-classify-character/index.js +7 -5
  1479. package/dist/node_modules/micromark-util-combine-extensions/index.js +13 -11
  1480. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +4 -2
  1481. package/dist/node_modules/micromark-util-decode-string/index.js +11 -9
  1482. package/dist/node_modules/micromark-util-html-tag-name/index.js +4 -2
  1483. package/dist/node_modules/micromark-util-normalize-identifier/index.js +4 -2
  1484. package/dist/node_modules/micromark-util-resolve-all/index.js +4 -2
  1485. package/dist/node_modules/micromark-util-sanitize-uri/index.js +6 -4
  1486. package/dist/node_modules/micromark-util-subtokenize/index.js +10 -8
  1487. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +10 -8
  1488. package/dist/node_modules/motion/dist/es/react.js +2 -2
  1489. package/dist/node_modules/nanoid/index.browser.js +6 -4
  1490. package/dist/node_modules/nanoid/url-alphabet/index.js +4 -2
  1491. package/dist/node_modules/property-information/index.js +25 -23
  1492. package/dist/node_modules/property-information/lib/aria.js +41 -39
  1493. package/dist/node_modules/property-information/lib/find.js +18 -16
  1494. package/dist/node_modules/property-information/lib/hast-to-react.js +4 -2
  1495. package/dist/node_modules/property-information/lib/html.js +96 -94
  1496. package/dist/node_modules/property-information/lib/normalize.js +4 -2
  1497. package/dist/node_modules/property-information/lib/svg.js +79 -77
  1498. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +6 -4
  1499. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +4 -2
  1500. package/dist/node_modules/property-information/lib/util/create.js +10 -8
  1501. package/dist/node_modules/property-information/lib/util/defined-info.js +13 -11
  1502. package/dist/node_modules/property-information/lib/util/info.js +5 -3
  1503. package/dist/node_modules/property-information/lib/util/merge.js +6 -4
  1504. package/dist/node_modules/property-information/lib/util/schema.js +5 -3
  1505. package/dist/node_modules/property-information/lib/util/types.js +15 -14
  1506. package/dist/node_modules/property-information/lib/xlink.js +5 -3
  1507. package/dist/node_modules/property-information/lib/xml.js +5 -3
  1508. package/dist/node_modules/property-information/lib/xmlns.js +7 -5
  1509. package/dist/node_modules/rehype-harden/dist/index.js +47 -45
  1510. package/dist/node_modules/rehype-katex/lib/index.js +25 -23
  1511. package/dist/node_modules/rehype-raw/lib/index.js +6 -4
  1512. package/dist/node_modules/rehype-sanitize/lib/index.js +6 -4
  1513. package/dist/node_modules/remark-gfm/lib/index.js +9 -7
  1514. package/dist/node_modules/remark-math/lib/index.js +9 -7
  1515. package/dist/node_modules/remark-parse/lib/index.js +6 -4
  1516. package/dist/node_modules/remark-rehype/lib/index.js +7 -5
  1517. package/dist/node_modules/remend/dist/index.js +368 -297
  1518. package/dist/node_modules/roughjs/bundled/rough.esm.js +877 -875
  1519. package/dist/node_modules/shiki/dist/bundle-full.js +13 -11
  1520. package/dist/node_modules/shiki/dist/chunk-CtajNgzt.js +17 -0
  1521. package/dist/node_modules/shiki/dist/engine-oniguruma.js +7 -0
  1522. package/dist/node_modules/shiki/dist/{langs.js → langs-bundle-full-DfKZStlK.js} +8 -6
  1523. package/dist/node_modules/shiki/dist/themes.js +6 -4
  1524. package/dist/node_modules/shiki/dist/wasm.js +2 -2
  1525. package/dist/node_modules/space-separated-tokens/index.js +5 -3
  1526. package/dist/node_modules/streamdown/dist/chunk-BO2N2NFS.js +2500 -0
  1527. package/dist/node_modules/streamdown/dist/highlighted-body-OFNGDK62.js +37 -0
  1528. package/dist/node_modules/streamdown/dist/index.js +1 -1
  1529. package/dist/node_modules/streamdown/dist/mermaid-GHXKKRXX.js +3 -0
  1530. package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +701 -699
  1531. package/dist/node_modules/stringify-entities/lib/constant/dangerous.js +4 -2
  1532. package/dist/node_modules/stringify-entities/lib/core.js +18 -16
  1533. package/dist/node_modules/stringify-entities/lib/index.js +7 -5
  1534. package/dist/node_modules/stringify-entities/lib/util/format-smart.js +10 -8
  1535. package/dist/node_modules/stringify-entities/lib/util/to-decimal.js +6 -4
  1536. package/dist/node_modules/stringify-entities/lib/util/to-hexadecimal.js +6 -4
  1537. package/dist/node_modules/stringify-entities/lib/util/to-named.js +14 -12
  1538. package/dist/node_modules/style-to-js/cjs/index.js +9 -7
  1539. package/dist/node_modules/style-to-js/cjs/utilities.js +6 -4
  1540. package/dist/node_modules/style-to-object/cjs/index.js +8 -6
  1541. package/dist/node_modules/stylis/src/Enum.js +4 -2
  1542. package/dist/node_modules/stylis/src/Parser.js +38 -36
  1543. package/dist/node_modules/stylis/src/Serializer.js +17 -15
  1544. package/dist/node_modules/stylis/src/Tokenizer.js +53 -51
  1545. package/dist/node_modules/stylis/src/Utility.js +17 -15
  1546. package/dist/node_modules/trim-lines/index.js +10 -8
  1547. package/dist/node_modules/trough/lib/index.js +6 -4
  1548. package/dist/node_modules/ts-dedent/esm/index.js +4 -2
  1549. package/dist/node_modules/unified/lib/callable-instance.js +4 -2
  1550. package/dist/node_modules/unified/lib/index.js +102 -101
  1551. package/dist/node_modules/unified/node_modules/is-plain-obj/index.js +4 -2
  1552. package/dist/node_modules/unist-util-find-after/lib/index.js +6 -4
  1553. package/dist/node_modules/unist-util-is/lib/index.js +31 -29
  1554. package/dist/node_modules/unist-util-position/lib/index.js +7 -5
  1555. package/dist/node_modules/unist-util-stringify-position/lib/index.js +10 -8
  1556. package/dist/node_modules/unist-util-visit/lib/index.js +6 -4
  1557. package/dist/node_modules/unist-util-visit-parents/lib/color.js +4 -2
  1558. package/dist/node_modules/unist-util-visit-parents/lib/index.js +21 -20
  1559. package/dist/node_modules/uuid/dist/esm-browser/native.js +3 -2
  1560. package/dist/node_modules/uuid/dist/esm-browser/rng.js +8 -6
  1561. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +7 -5
  1562. package/dist/node_modules/uuid/dist/esm-browser/v4.js +10 -9
  1563. package/dist/node_modules/vaul/dist/index.js +276 -274
  1564. package/dist/node_modules/vfile/lib/index.js +44 -42
  1565. package/dist/node_modules/vfile/lib/minpath.browser.js +22 -20
  1566. package/dist/node_modules/vfile/lib/minproc.browser.js +5 -3
  1567. package/dist/node_modules/vfile/lib/minurl.browser.js +8 -6
  1568. package/dist/node_modules/vfile/lib/minurl.shared.js +4 -2
  1569. package/dist/node_modules/vfile-location/lib/index.js +7 -5
  1570. package/dist/node_modules/vfile-message/lib/index.js +7 -5
  1571. package/dist/node_modules/vscode-jsonrpc/browser.js +8 -6
  1572. package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +11 -9
  1573. package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +8 -6
  1574. package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +28 -26
  1575. package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +17 -15
  1576. package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +13 -11
  1577. package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +6 -4
  1578. package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +8 -6
  1579. package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +6 -4
  1580. package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +6 -4
  1581. package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +6 -4
  1582. package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +11 -9
  1583. package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +31 -29
  1584. package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +8 -6
  1585. package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +6 -4
  1586. package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +8 -6
  1587. package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +8 -6
  1588. package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +10 -8
  1589. package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +23 -21
  1590. package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +8 -6
  1591. package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +8 -6
  1592. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +8 -6
  1593. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +8 -6
  1594. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +8 -6
  1595. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +8 -6
  1596. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +14 -12
  1597. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +8 -6
  1598. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +8 -6
  1599. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +8 -6
  1600. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +8 -6
  1601. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +8 -6
  1602. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +8 -6
  1603. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +55 -53
  1604. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +8 -6
  1605. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +8 -6
  1606. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +10 -8
  1607. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +12 -10
  1608. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +8 -6
  1609. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +8 -6
  1610. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +8 -6
  1611. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +8 -6
  1612. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +8 -6
  1613. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +8 -6
  1614. package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +6 -4
  1615. package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +21 -19
  1616. package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +849 -847
  1617. package/dist/node_modules/vscode-uri/lib/esm/index.js +6 -4
  1618. package/dist/node_modules/web-namespaces/index.js +4 -2
  1619. package/dist/node_modules/zwitch/index.js +7 -5
  1620. package/dist/packages/contracts/dist/enums/index.js +21 -20
  1621. package/dist/packages/contracts/dist/enums/registry.enum.js +6 -4
  1622. package/dist/packages/contracts/dist/enums/sort-order.enum.js +6 -4
  1623. package/dist/packages/contracts/dist/enums/user-type.enum.js +6 -4
  1624. package/dist/packages/contracts/dist/enums/workflow-state.enum.js +7 -5
  1625. package/dist/pages/DashboardPage.js +55 -99
  1626. package/dist/pages/DebugPage.js +12 -17
  1627. package/dist/pages/DebugWorkflowDetailsPage.js +91 -119
  1628. package/dist/pages/DebugWorkflowsPage.js +44 -42
  1629. package/dist/pages/EmbedWorkbenchPage.js +49 -73
  1630. package/dist/pages/PreviewWorkbenchPage.js +242 -448
  1631. package/dist/pages/RunsListPage.js +44 -61
  1632. package/dist/pages/RunsPage.js +31 -48
  1633. package/dist/pages/StudioLandingPage.js +97 -132
  1634. package/dist/pages/WorkbenchPage.js +56 -86
  1635. package/dist/pages/WorkflowDebugPage.js +78 -0
  1636. package/dist/pages/WorkspacePage.js +72 -113
  1637. package/dist/pages/WorkspaceRunsPage.js +43 -70
  1638. package/dist/pages/WorkspacesPage.js +24 -35
  1639. package/dist/providers/ComponentOverridesProvider.js +9 -12
  1640. package/dist/providers/InvalidationEventsProvider.js +33 -35
  1641. package/dist/providers/QueryProvider.js +14 -18
  1642. package/dist/providers/SseProvider.js +28 -30
  1643. package/dist/providers/StudioProvider.js +14 -19
  1644. package/dist/routing/LocalRouter.js +20 -26
  1645. package/dist/services/createApiClient.js +7 -5
  1646. package/dist/services/eventEmitter.js +3 -2
  1647. package/dist/services/index.js +2 -2
  1648. package/dist/types/ai.types.js +7 -5
  1649. package/package.json +33 -33
  1650. package/dist/_virtual/rolldown_runtime.js +0 -20
  1651. package/dist/api/namespaces.js +0 -7
  1652. package/dist/api/pipelines.js +0 -13
  1653. package/dist/components/ai-elements/tool.js +0 -158
  1654. package/dist/components/ui-widgets/widgets/SecretInput.js +0 -42
  1655. package/dist/features/debug/components/PipelineDebugHeader.js +0 -48
  1656. package/dist/features/debug/components/PipelineDebugLegend.js +0 -68
  1657. package/dist/features/debug/components/PipelineFlowViewer.js +0 -110
  1658. package/dist/features/debug/components/pipeline-flow/StateNode.js +0 -111
  1659. package/dist/features/debug/components/pipeline-flow/WorkflowGraph.js +0 -41
  1660. package/dist/features/debug/components/pipeline-flow/WorkflowTransitionEdge.js +0 -97
  1661. package/dist/features/workbench/NavigationItems.js +0 -52
  1662. package/dist/features/workbench/WorkbenchNavigation.js +0 -38
  1663. package/dist/features/workbench/components/NavigationItem.js +0 -68
  1664. package/dist/features/workbench/components/PipelineHistoryList.js +0 -56
  1665. package/dist/features/workbench/hooks/useIntersectionObserver.js +0 -44
  1666. package/dist/features/workspaces/components/NewPipelineRunDialog.js +0 -31
  1667. package/dist/features/workspaces/components/PipelineForm.js +0 -152
  1668. package/dist/features/workspaces/components/pipeline-form/ArgumentsView.js +0 -75
  1669. package/dist/features/workspaces/components/pipeline-form/HeaderSection.js +0 -43
  1670. package/dist/features/workspaces/components/pipeline-form/SelectionView.js +0 -105
  1671. package/dist/hooks/useNamespaceTree.js +0 -27
  1672. package/dist/hooks/useNamespaces.js +0 -25
  1673. package/dist/hooks/usePipelines.js +0 -161
  1674. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7HQA4BMR.js +0 -3
  1675. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4F5CHEZ2.js +0 -23
  1676. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-B2363JML.js +0 -60
  1677. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FRFDVMJY.js +0 -23
  1678. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PL6DKKU2.js +0 -28
  1679. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-SJTYNZTY.js +0 -23
  1680. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TCCFYFTB.js +0 -787
  1681. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TQ3KTPDO.js +0 -23
  1682. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UMXZTB3W.js +0 -30
  1683. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-G5XIXVHT.js +0 -3
  1684. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-VBDWY6EO.js +0 -3
  1685. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-DYOGHKS2.js +0 -3
  1686. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-VRWISCQL.js +0 -3
  1687. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-ZZBFDIW7.js +0 -3
  1688. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-GDKQZRPO.js +0 -3
  1689. package/dist/node_modules/@ungap/structured-clone/esm/types.js +0 -2
  1690. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +0 -16
  1691. package/dist/node_modules/langium/lib/index.js +0 -182
  1692. package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
  1693. package/dist/node_modules/langium/lib/utils/index.js +0 -53
  1694. package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
  1695. package/dist/node_modules/lodash/_Symbol.js +0 -7
  1696. package/dist/node_modules/lodash/_baseGetTag.js +0 -13
  1697. package/dist/node_modules/lodash/_baseTrim.js +0 -11
  1698. package/dist/node_modules/lodash/_freeGlobal.js +0 -6
  1699. package/dist/node_modules/lodash/_getRawTag.js +0 -17
  1700. package/dist/node_modules/lodash/_objectToString.js +0 -10
  1701. package/dist/node_modules/lodash/_root.js +0 -8
  1702. package/dist/node_modules/lodash/_trimmedEndIndex.js +0 -11
  1703. package/dist/node_modules/lodash/isObject.js +0 -10
  1704. package/dist/node_modules/lodash/isObjectLike.js +0 -9
  1705. package/dist/node_modules/lodash/isSymbol.js +0 -12
  1706. package/dist/node_modules/lodash/now.js +0 -10
  1707. package/dist/node_modules/lodash/toNumber.js +0 -22
  1708. package/dist/node_modules/lodash-es/_arrayAggregator.js +0 -9
  1709. package/dist/node_modules/lodash-es/_arrayEvery.js +0 -6
  1710. package/dist/node_modules/lodash-es/_baseAggregator.js +0 -8
  1711. package/dist/node_modules/lodash-es/_baseDifference.js +0 -22
  1712. package/dist/node_modules/lodash-es/_baseEvery.js +0 -9
  1713. package/dist/node_modules/lodash-es/_baseIsRegExp.js +0 -8
  1714. package/dist/node_modules/lodash-es/_baseSlice.js +0 -8
  1715. package/dist/node_modules/lodash-es/_baseSome.js +0 -9
  1716. package/dist/node_modules/lodash-es/_createAggregator.js +0 -12
  1717. package/dist/node_modules/lodash-es/assign.js +0 -14
  1718. package/dist/node_modules/lodash-es/compact.js +0 -9
  1719. package/dist/node_modules/lodash-es/difference.js +0 -8
  1720. package/dist/node_modules/lodash-es/drop.js +0 -8
  1721. package/dist/node_modules/lodash-es/dropRight.js +0 -8
  1722. package/dist/node_modules/lodash-es/every.js +0 -11
  1723. package/dist/node_modules/lodash-es/groupBy.js +0 -6
  1724. package/dist/node_modules/lodash-es/head.js +0 -5
  1725. package/dist/node_modules/lodash-es/includes.js +0 -13
  1726. package/dist/node_modules/lodash-es/indexOf.js +0 -11
  1727. package/dist/node_modules/lodash-es/isRegExp.js +0 -5
  1728. package/dist/node_modules/lodash-es/negate.js +0 -16
  1729. package/dist/node_modules/lodash-es/pickBy.js +0 -15
  1730. package/dist/node_modules/lodash-es/reject.js +0 -10
  1731. package/dist/node_modules/lodash-es/some.js +0 -11
  1732. package/dist/node_modules/lodash-es/uniq.js +0 -6
  1733. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.js +0 -673
  1734. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VD42YOAC.js +0 -3010
  1735. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +0 -1547
  1736. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ATLVNIR6.js +0 -65
  1737. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.js +0 -10
  1738. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DI55MBZ5.js +0 -1994
  1739. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DR5Q36YT.js +0 -135
  1740. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EXTU4WIE.js +0 -9
  1741. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HN2XXSSU.js +0 -74
  1742. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.js +0 -247
  1743. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.js +0 -3516
  1744. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MI3HLSF2.js +0 -1140
  1745. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.js +0 -39
  1746. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QN33PNHL.js +0 -23
  1747. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.js +0 -497
  1748. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.js +0 -338
  1749. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.js +0 -55
  1750. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-2ON5EDUG.js +0 -26
  1751. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-WZHVMYZB.js +0 -26
  1752. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-6UL2VRFP.js +0 -263
  1753. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-PSM6KHXK.js +0 -283
  1754. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.js +0 -211
  1755. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-S2PKOQOG.js +0 -129
  1756. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-JELNMOA3.js +0 -1688
  1757. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-V2S2FVAM.js +0 -621
  1758. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-HS3SLOUP.js +0 -18
  1759. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-XKPGCS4Q.js +0 -883
  1760. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.js +0 -117
  1761. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-TZEHDZUN.js +0 -519
  1762. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.js +0 -3560
  1763. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FKZM4ZOC.js +0 -220
  1764. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-4FDKWEC3.js +0 -25
  1765. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.js +0 -833
  1766. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-PRI3JC2R.js +0 -1975
  1767. package/dist/node_modules/streamdown/dist/chunk-RLXIAIE6.js +0 -2189
  1768. package/dist/node_modules/streamdown/dist/highlighted-body-B3W2YXNL.js +0 -33
  1769. package/dist/node_modules/streamdown/dist/mermaid-3ZIDBTTL.js +0 -3
  1770. package/dist/packages/contracts/dist/enums/pipeline-state.js +0 -10
  1771. package/dist/pages/PipelineDebugPage.js +0 -115
@@ -1,27 +1,28 @@
1
1
  "use client";
2
- import cc from "../../../../classcat/index.js";
3
- import { ConnectionLineType, ConnectionMode, MarkerType, PanOnScrollMode, Position, ResizeControlVariant, SelectionMode, XYDrag, XYHandle, XYMinimap, XYPanZoom, XYResizer, addEdge, adoptUserNodes, areSetsEqual, calculateNodePosition, createMarkerIds, defaultAriaLabelConfig, devWarn, elementSelectionKeys, errorMessages, evaluateAbsolutePosition, fitViewport, getBezierEdgeCenter, getBezierPath, getBoundsOfRects, getConnectedEdges, getConnectionStatus, getDimensions, getEdgeCenter, getEdgePosition, getElementsToRemove, getElevatedEdgeZIndex, getEventPosition, getHandlePosition, getHostForElement, getInternalNodesBounds, getMarkerId, getNodeDimensions, getNodesBounds, getNodesInside, getOverlappingArea, getSmoothStepPath, getStraightPath, getViewportForBounds, handleExpandParent, infiniteExtent, initialConnection, isEdgeBase, isEdgeVisible, isInputDOMNode, isMacOs, isMouseEvent, isNodeBase, isNumeric, isRectObject, mergeAriaLabelConfig, nodeHasDimensions, nodeToRect, panBy, pointToRendererPoint, rendererPointToPoint, snapPosition, updateAbsolutePositions, updateConnectionLookup, updateNodeInternals, withResolvers } from "../../../system/dist/esm/index.js";
4
- import { createContext, forwardRef, memo, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
5
- import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
6
- import { createPortal } from "react-dom";
7
- import { createWithEqualityFn, useStoreWithEqualityFn } from "zustand/traditional";
8
- import { shallow } from "zustand/shallow";
9
- var StoreContext = createContext(null), Provider$1 = StoreContext.Provider, zustandErrorMessage = errorMessages.error001();
10
- function useStore(e, t) {
11
- let n = useContext(StoreContext);
12
- if (n === null) throw Error(zustandErrorMessage);
13
- return useStoreWithEqualityFn(n, e, t);
14
- }
15
- function useStoreApi() {
16
- let e = useContext(StoreContext);
17
- if (e === null) throw Error(zustandErrorMessage);
18
- return useMemo(() => ({
2
+ import e from "../../../../classcat/index.js";
3
+ import { ConnectionLineType as t, ConnectionMode as n, MarkerType as r, PanOnScrollMode as i, Position as a, ResizeControlVariant as o, SelectionMode as s, XYDrag as c, XYHandle as l, XYMinimap as u, XYPanZoom as d, XYResizer as f, addEdge as p, adoptUserNodes as m, areSetsEqual as h, calculateNodePosition as g, createMarkerIds as _, defaultAriaLabelConfig as v, devWarn as y, elementSelectionKeys as b, errorMessages as x, evaluateAbsolutePosition as S, fitViewport as C, getBezierEdgeCenter as w, getBezierPath as T, getBoundsOfRects as E, getConnectionStatus as D, getDimensions as O, getEdgePosition as k, getElementsToRemove as A, getElevatedEdgeZIndex as j, getEventPosition as M, getHandlePosition as N, getHostForElement as P, getInternalNodesBounds as F, getMarkerId as ee, getNodeDimensions as I, getNodesBounds as L, getNodesInside as R, getOverlappingArea as z, getSmoothStepPath as B, getStraightPath as V, getViewportForBounds as H, handleExpandParent as te, infiniteExtent as ne, initialConnection as re, isEdgeBase as ie, isEdgeVisible as ae, isInputDOMNode as oe, isMacOs as se, isMouseEvent as ce, isNodeBase as le, isNumeric as ue, isRectObject as de, mergeAriaLabelConfig as fe, nodeHasDimensions as pe, nodeToRect as me, panBy as he, pointToRendererPoint as ge, rendererPointToPoint as _e, snapPosition as ve, updateAbsolutePositions as ye, updateConnectionLookup as be, updateNodeInternals as xe, withResolvers as Se } from "../../../system/dist/esm/index.js";
4
+ import { createContext as Ce, forwardRef as we, memo as U, useCallback as W, useContext as Te, useEffect as G, useLayoutEffect as Ee, useMemo as K, useRef as q, useState as J } from "react";
5
+ import { Fragment as De, jsx as Y, jsxs as X } from "react/jsx-runtime";
6
+ import { createPortal as Oe } from "react-dom";
7
+ import { createWithEqualityFn as ke, useStoreWithEqualityFn as Ae } from "zustand/traditional";
8
+ import { shallow as Z } from "zustand/shallow";
9
+ //#region ../../node_modules/@xyflow/react/dist/esm/index.js
10
+ var je = Ce(null), Me = je.Provider, Ne = x.error001();
11
+ function Q(e, t) {
12
+ let n = Te(je);
13
+ if (n === null) throw Error(Ne);
14
+ return Ae(n, e, t);
15
+ }
16
+ function $() {
17
+ let e = Te(je);
18
+ if (e === null) throw Error(Ne);
19
+ return K(() => ({
19
20
  getState: e.getState,
20
21
  setState: e.setState,
21
22
  subscribe: e.subscribe
22
23
  }), [e]);
23
24
  }
24
- var style = { display: "none" }, ariaLiveStyle = {
25
+ var Pe = { display: "none" }, Fe = {
25
26
  position: "absolute",
26
27
  width: 1,
27
28
  height: 1,
@@ -31,35 +32,35 @@ var style = { display: "none" }, ariaLiveStyle = {
31
32
  overflow: "hidden",
32
33
  clip: "rect(0px, 0px, 0px, 0px)",
33
34
  clipPath: "inset(100%)"
34
- }, ARIA_NODE_DESC_KEY = "react-flow__node-desc", ARIA_EDGE_DESC_KEY = "react-flow__edge-desc", ARIA_LIVE_MESSAGE = "react-flow__aria-live", ariaLiveSelector = (e) => e.ariaLiveMessage, ariaLabelConfigSelector = (e) => e.ariaLabelConfig;
35
- function AriaLiveMessage({ rfId: e }) {
36
- let t = useStore(ariaLiveSelector);
37
- return jsx("div", {
38
- id: `${ARIA_LIVE_MESSAGE}-${e}`,
35
+ }, Ie = "react-flow__node-desc", Le = "react-flow__edge-desc", Re = "react-flow__aria-live", ze = (e) => e.ariaLiveMessage, Be = (e) => e.ariaLabelConfig;
36
+ function Ve({ rfId: e }) {
37
+ let t = Q(ze);
38
+ return Y("div", {
39
+ id: `${Re}-${e}`,
39
40
  "aria-live": "assertive",
40
41
  "aria-atomic": "true",
41
- style: ariaLiveStyle,
42
+ style: Fe,
42
43
  children: t
43
44
  });
44
45
  }
45
- function A11yDescriptions({ rfId: e, disableKeyboardA11y: t }) {
46
- let n = useStore(ariaLabelConfigSelector);
47
- return jsxs(Fragment$1, { children: [
48
- jsx("div", {
49
- id: `${ARIA_NODE_DESC_KEY}-${e}`,
50
- style,
46
+ function He({ rfId: e, disableKeyboardA11y: t }) {
47
+ let n = Q(Be);
48
+ return X(De, { children: [
49
+ Y("div", {
50
+ id: `${Ie}-${e}`,
51
+ style: Pe,
51
52
  children: t ? n["node.a11yDescription.default"] : n["node.a11yDescription.keyboardDisabled"]
52
53
  }),
53
- jsx("div", {
54
- id: `${ARIA_EDGE_DESC_KEY}-${e}`,
55
- style,
54
+ Y("div", {
55
+ id: `${Le}-${e}`,
56
+ style: Pe,
56
57
  children: n["edge.a11yDescription.default"]
57
58
  }),
58
- !t && jsx(AriaLiveMessage, { rfId: e })
59
+ !t && Y(Ve, { rfId: e })
59
60
  ] });
60
61
  }
61
- var Panel = forwardRef(({ position: t = "top-left", children: n, className: r, style: i, ...a }, o) => jsx("div", {
62
- className: cc([
62
+ var Ue = we(({ position: t = "top-left", children: n, className: r, style: i, ...a }, o) => Y("div", {
63
+ className: e([
63
64
  "react-flow__panel",
64
65
  r,
65
66
  ...`${t}`.split("-")
@@ -69,13 +70,13 @@ var Panel = forwardRef(({ position: t = "top-left", children: n, className: r, s
69
70
  ...a,
70
71
  children: n
71
72
  }));
72
- Panel.displayName = "Panel";
73
- function Attribution({ proOptions: e, position: t = "bottom-right" }) {
74
- return e?.hideAttribution ? null : jsx(Panel, {
73
+ Ue.displayName = "Panel";
74
+ function We({ proOptions: e, position: t = "bottom-right" }) {
75
+ return e?.hideAttribution ? null : Y(Ue, {
75
76
  position: t,
76
77
  className: "react-flow__attribution",
77
78
  "data-message": "Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",
78
- children: jsx("a", {
79
+ children: Y("a", {
79
80
  href: "https://reactflow.dev",
80
81
  target: "_blank",
81
82
  rel: "noopener noreferrer",
@@ -84,7 +85,7 @@ function Attribution({ proOptions: e, position: t = "bottom-right" }) {
84
85
  })
85
86
  });
86
87
  }
87
- var selector$m = (e) => {
88
+ var Ge = (e) => {
88
89
  let t = [], n = [];
89
90
  for (let [, n] of e.nodeLookup) n.selected && t.push(n.internals.userNode);
90
91
  for (let [, t] of e.edgeLookup) t.selected && n.push(t);
@@ -92,13 +93,13 @@ var selector$m = (e) => {
92
93
  selectedNodes: t,
93
94
  selectedEdges: n
94
95
  };
95
- }, selectId = (e) => e.id;
96
- function areEqual(e, t) {
97
- return shallow(e.selectedNodes.map(selectId), t.selectedNodes.map(selectId)) && shallow(e.selectedEdges.map(selectId), t.selectedEdges.map(selectId));
96
+ }, Ke = (e) => e.id;
97
+ function qe(e, t) {
98
+ return Z(e.selectedNodes.map(Ke), t.selectedNodes.map(Ke)) && Z(e.selectedEdges.map(Ke), t.selectedEdges.map(Ke));
98
99
  }
99
- function SelectionListenerInner({ onSelectionChange: e }) {
100
- let t = useStoreApi(), { selectedNodes: n, selectedEdges: r } = useStore(selector$m, areEqual);
101
- return useEffect(() => {
100
+ function Je({ onSelectionChange: e }) {
101
+ let t = $(), { selectedNodes: n, selectedEdges: r } = Q(Ge, qe);
102
+ return G(() => {
102
103
  let i = {
103
104
  nodes: n,
104
105
  edges: r
@@ -110,16 +111,16 @@ function SelectionListenerInner({ onSelectionChange: e }) {
110
111
  e
111
112
  ]), null;
112
113
  }
113
- var changeSelector = (e) => !!e.onSelectionChangeHandlers;
114
- function SelectionListener({ onSelectionChange: e }) {
115
- let t = useStore(changeSelector);
116
- return e || t ? jsx(SelectionListenerInner, { onSelectionChange: e }) : null;
114
+ var Ye = (e) => !!e.onSelectionChangeHandlers;
115
+ function Xe({ onSelectionChange: e }) {
116
+ let t = Q(Ye);
117
+ return e || t ? Y(Je, { onSelectionChange: e }) : null;
117
118
  }
118
- var defaultNodeOrigin = [0, 0], defaultViewport = {
119
+ var Ze = typeof window < "u" ? Ee : G, Qe = [0, 0], $e = {
119
120
  x: 0,
120
121
  y: 0,
121
122
  zoom: 1
122
- }, fieldsToTrack = [.../* @__PURE__ */ "nodes.edges.defaultNodes.defaultEdges.onConnect.onConnectStart.onConnectEnd.onClickConnectStart.onClickConnectEnd.nodesDraggable.autoPanOnNodeFocus.nodesConnectable.nodesFocusable.edgesFocusable.edgesReconnectable.elevateNodesOnSelect.elevateEdgesOnSelect.minZoom.maxZoom.nodeExtent.onNodesChange.onEdgesChange.elementsSelectable.connectionMode.snapGrid.snapToGrid.translateExtent.connectOnClick.defaultEdgeOptions.fitView.fitViewOptions.onNodesDelete.onEdgesDelete.onDelete.onNodeDrag.onNodeDragStart.onNodeDragStop.onSelectionDrag.onSelectionDragStart.onSelectionDragStop.onMoveStart.onMove.onMoveEnd.noPanClassName.nodeOrigin.autoPanOnConnect.autoPanOnNodeDrag.onError.connectionRadius.isValidConnection.selectNodesOnDrag.nodeDragThreshold.connectionDragThreshold.onBeforeDelete.debug.autoPanSpeed.ariaLabelConfig.zIndexMode".split("."), "rfId"], selector$l = (e) => ({
123
+ }, et = [.../* @__PURE__ */ "nodes.edges.defaultNodes.defaultEdges.onConnect.onConnectStart.onConnectEnd.onClickConnectStart.onClickConnectEnd.nodesDraggable.autoPanOnNodeFocus.nodesConnectable.nodesFocusable.edgesFocusable.edgesReconnectable.elevateNodesOnSelect.elevateEdgesOnSelect.minZoom.maxZoom.nodeExtent.onNodesChange.onEdgesChange.elementsSelectable.connectionMode.snapGrid.snapToGrid.translateExtent.connectOnClick.defaultEdgeOptions.fitView.fitViewOptions.onNodesDelete.onEdgesDelete.onDelete.onNodeDrag.onNodeDragStart.onNodeDragStop.onSelectionDrag.onSelectionDragStart.onSelectionDragStop.onMoveStart.onMove.onMoveEnd.noPanClassName.nodeOrigin.autoPanOnConnect.autoPanOnNodeDrag.onError.connectionRadius.isValidConnection.selectNodesOnDrag.nodeDragThreshold.connectionDragThreshold.onBeforeDelete.debug.autoPanSpeed.ariaLabelConfig.zIndexMode".split("."), "rfId"], tt = (e) => ({
123
124
  setNodes: e.setNodes,
124
125
  setEdges: e.setEdges,
125
126
  setMinZoom: e.setMinZoom,
@@ -128,70 +129,70 @@ var defaultNodeOrigin = [0, 0], defaultViewport = {
128
129
  setNodeExtent: e.setNodeExtent,
129
130
  reset: e.reset,
130
131
  setDefaultNodesAndEdges: e.setDefaultNodesAndEdges
131
- }), initPrevValues = {
132
- translateExtent: infiniteExtent,
133
- nodeOrigin: defaultNodeOrigin,
132
+ }), nt = {
133
+ translateExtent: ne,
134
+ nodeOrigin: Qe,
134
135
  minZoom: .5,
135
136
  maxZoom: 2,
136
137
  elementsSelectable: !0,
137
138
  noPanClassName: "nopan",
138
139
  rfId: "1"
139
140
  };
140
- function StoreUpdater(e) {
141
- let { setNodes: t, setEdges: n, setMinZoom: r, setMaxZoom: i, setTranslateExtent: a, setNodeExtent: o, reset: s, setDefaultNodesAndEdges: c } = useStore(selector$l, shallow), l = useStoreApi();
142
- useEffect(() => (c(e.defaultNodes, e.defaultEdges), () => {
143
- u.current = initPrevValues, s();
141
+ function rt(e) {
142
+ let { setNodes: t, setEdges: n, setMinZoom: r, setMaxZoom: i, setTranslateExtent: a, setNodeExtent: o, reset: s, setDefaultNodesAndEdges: c } = Q(tt, Z), l = $();
143
+ Ze(() => (c(e.defaultNodes, e.defaultEdges), () => {
144
+ u.current = nt, s();
144
145
  }), []);
145
- let u = useRef(initPrevValues);
146
- return useEffect(() => {
147
- for (let s of fieldsToTrack) {
146
+ let u = q(nt);
147
+ return Ze(() => {
148
+ for (let s of et) {
148
149
  let c = e[s];
149
- c !== u.current[s] && e[s] !== void 0 && (s === "nodes" ? t(c) : s === "edges" ? n(c) : s === "minZoom" ? r(c) : s === "maxZoom" ? i(c) : s === "translateExtent" ? a(c) : s === "nodeExtent" ? o(c) : s === "ariaLabelConfig" ? l.setState({ ariaLabelConfig: mergeAriaLabelConfig(c) }) : s === "fitView" ? l.setState({ fitViewQueued: c }) : s === "fitViewOptions" ? l.setState({ fitViewOptions: c }) : l.setState({ [s]: c }));
150
+ c !== u.current[s] && e[s] !== void 0 && (s === "nodes" ? t(c) : s === "edges" ? n(c) : s === "minZoom" ? r(c) : s === "maxZoom" ? i(c) : s === "translateExtent" ? a(c) : s === "nodeExtent" ? o(c) : s === "ariaLabelConfig" ? l.setState({ ariaLabelConfig: fe(c) }) : s === "fitView" ? l.setState({ fitViewQueued: c }) : s === "fitViewOptions" ? l.setState({ fitViewOptions: c }) : l.setState({ [s]: c }));
150
151
  }
151
152
  u.current = e;
152
- }, fieldsToTrack.map((t) => e[t])), null;
153
+ }, et.map((t) => e[t])), null;
153
154
  }
154
- function getMediaQuery() {
155
+ function it() {
155
156
  return typeof window > "u" || !window.matchMedia ? null : window.matchMedia("(prefers-color-scheme: dark)");
156
157
  }
157
- function useColorModeClass(e) {
158
- let [t, n] = useState(e === "system" ? null : e);
159
- return useEffect(() => {
158
+ function at(e) {
159
+ let [t, n] = J(e === "system" ? null : e);
160
+ return G(() => {
160
161
  if (e !== "system") {
161
162
  n(e);
162
163
  return;
163
164
  }
164
- let t = getMediaQuery(), r = () => n(t?.matches ? "dark" : "light");
165
+ let t = it(), r = () => n(t?.matches ? "dark" : "light");
165
166
  return r(), t?.addEventListener("change", r), () => {
166
167
  t?.removeEventListener("change", r);
167
168
  };
168
- }, [e]), t === null ? getMediaQuery()?.matches ? "dark" : "light" : t;
169
+ }, [e]), t === null ? it()?.matches ? "dark" : "light" : t;
169
170
  }
170
- var defaultDoc = typeof document < "u" ? document : null;
171
- function useKeyPress(e = null, t = {
172
- target: defaultDoc,
171
+ var ot = typeof document < "u" ? document : null;
172
+ function st(e = null, t = {
173
+ target: ot,
173
174
  actInsideInputWithModifier: !0
174
175
  }) {
175
- let [n, r] = useState(!1), i = useRef(!1), a = useRef(/* @__PURE__ */ new Set([])), [o, s] = useMemo(() => {
176
+ let [n, r] = J(!1), i = q(!1), a = q(/* @__PURE__ */ new Set([])), [o, s] = K(() => {
176
177
  if (e !== null) {
177
178
  let t = (Array.isArray(e) ? e : [e]).filter((e) => typeof e == "string").map((e) => e.replace("+", "\n").replace("\n\n", "\n+").split("\n"));
178
179
  return [t, t.reduce((e, t) => e.concat(...t), [])];
179
180
  }
180
181
  return [[], []];
181
182
  }, [e]);
182
- return useEffect(() => {
183
- let n = t?.target ?? defaultDoc, c = t?.actInsideInputWithModifier ?? !0;
183
+ return G(() => {
184
+ let n = t?.target ?? ot, c = t?.actInsideInputWithModifier ?? !0;
184
185
  if (e !== null) {
185
186
  let e = (e) => {
186
- if (i.current = e.ctrlKey || e.metaKey || e.shiftKey || e.altKey, (!i.current || i.current && !c) && isInputDOMNode(e)) return !1;
187
- let n = useKeyOrCode(e.code, s);
188
- if (a.current.add(e[n]), isMatchingKey(o, a.current, !1)) {
187
+ if (i.current = e.ctrlKey || e.metaKey || e.shiftKey || e.altKey, (!i.current || i.current && !c) && oe(e)) return !1;
188
+ let n = lt(e.code, s);
189
+ if (a.current.add(e[n]), ct(o, a.current, !1)) {
189
190
  let n = e.composedPath?.()?.[0] || e.target, a = n?.nodeName === "BUTTON" || n?.nodeName === "A";
190
191
  t.preventDefault !== !1 && (i.current || !a) && e.preventDefault(), r(!0);
191
192
  }
192
193
  }, l = (e) => {
193
- let t = useKeyOrCode(e.code, s);
194
- isMatchingKey(o, a.current, !0) ? (r(!1), a.current.clear()) : a.current.delete(e[t]), e.key === "Meta" && a.current.clear(), i.current = !1;
194
+ let t = lt(e.code, s);
195
+ ct(o, a.current, !0) ? (r(!1), a.current.clear()) : a.current.delete(e[t]), e.key === "Meta" && a.current.clear(), i.current = !1;
195
196
  }, u = () => {
196
197
  a.current.clear(), r(!1);
197
198
  };
@@ -201,26 +202,26 @@ function useKeyPress(e = null, t = {
201
202
  }
202
203
  }, [e, r]), n;
203
204
  }
204
- function isMatchingKey(e, t, n) {
205
+ function ct(e, t, n) {
205
206
  return e.filter((e) => n || e.length === t.size).some((e) => e.every((e) => t.has(e)));
206
207
  }
207
- function useKeyOrCode(e, t) {
208
+ function lt(e, t) {
208
209
  return t.includes(e) ? "code" : "key";
209
210
  }
210
- var useViewportHelper = () => {
211
- let e = useStoreApi();
212
- return useMemo(() => ({
211
+ var ut = () => {
212
+ let e = $();
213
+ return K(() => ({
213
214
  zoomIn: (t) => {
214
215
  let { panZoom: n } = e.getState();
215
- return n ? n.scaleBy(1.2, { duration: t?.duration }) : Promise.resolve(!1);
216
+ return n ? n.scaleBy(1.2, t) : Promise.resolve(!1);
216
217
  },
217
218
  zoomOut: (t) => {
218
219
  let { panZoom: n } = e.getState();
219
- return n ? n.scaleBy(1 / 1.2, { duration: t?.duration }) : Promise.resolve(!1);
220
+ return n ? n.scaleBy(1 / 1.2, t) : Promise.resolve(!1);
220
221
  },
221
222
  zoomTo: (t, n) => {
222
223
  let { panZoom: r } = e.getState();
223
- return r ? r.scaleTo(t, { duration: n?.duration }) : Promise.resolve(!1);
224
+ return r ? r.scaleTo(t, n) : Promise.resolve(!1);
224
225
  },
225
226
  getZoom: () => e.getState().transform[2],
226
227
  setViewport: async (t, n) => {
@@ -241,7 +242,7 @@ var useViewportHelper = () => {
241
242
  },
242
243
  setCenter: async (t, n, r) => e.getState().setCenter(t, n, r),
243
244
  fitBounds: async (t, n) => {
244
- let { width: r, height: i, minZoom: a, maxZoom: o, panZoom: s } = e.getState(), c = getViewportForBounds(t, r, i, a, o, n?.padding ?? .1);
245
+ let { width: r, height: i, minZoom: a, maxZoom: o, panZoom: s } = e.getState(), c = H(t, r, i, a, o, n?.padding ?? .1);
245
246
  return s ? (await s.setViewport(c, {
246
247
  duration: n?.duration,
247
248
  ease: n?.ease,
@@ -255,12 +256,12 @@ var useViewportHelper = () => {
255
256
  x: t.x - s,
256
257
  y: t.y - c
257
258
  }, u = n.snapGrid ?? i;
258
- return pointToRendererPoint(l, r, n.snapToGrid ?? a, u);
259
+ return ge(l, r, n.snapToGrid ?? a, u);
259
260
  },
260
261
  flowToScreenPosition: (t) => {
261
262
  let { transform: n, domNode: r } = e.getState();
262
263
  if (!r) return t;
263
- let { x: i, y: a } = r.getBoundingClientRect(), o = rendererPointToPoint(t, n);
264
+ let { x: i, y: a } = r.getBoundingClientRect(), o = _e(t, n);
264
265
  return {
265
266
  x: o.x + i,
266
267
  y: o.y + a
@@ -268,7 +269,7 @@ var useViewportHelper = () => {
268
269
  }
269
270
  }), []);
270
271
  };
271
- function applyChanges(e, t) {
272
+ function dt(e, t) {
272
273
  let n = [], r = /* @__PURE__ */ new Map(), i = [];
273
274
  for (let t of e) if (t.type === "add") {
274
275
  i.push(t);
@@ -290,14 +291,14 @@ function applyChanges(e, t) {
290
291
  continue;
291
292
  }
292
293
  let i = { ...e };
293
- for (let e of t) applyChange(e, i);
294
+ for (let e of t) ft(e, i);
294
295
  n.push(i);
295
296
  }
296
297
  return i.length && i.forEach((e) => {
297
298
  e.index === void 0 ? n.push({ ...e.item }) : n.splice(e.index, 0, { ...e.item });
298
299
  }), n;
299
300
  }
300
- function applyChange(e, t) {
301
+ function ft(e, t) {
301
302
  switch (e.type) {
302
303
  case "select":
303
304
  t.selected = e.selected;
@@ -310,28 +311,28 @@ function applyChange(e, t) {
310
311
  break;
311
312
  }
312
313
  }
313
- function applyNodeChanges(e, t) {
314
- return applyChanges(e, t);
314
+ function pt(e, t) {
315
+ return dt(e, t);
315
316
  }
316
- function applyEdgeChanges(e, t) {
317
- return applyChanges(e, t);
317
+ function mt(e, t) {
318
+ return dt(e, t);
318
319
  }
319
- function createSelectionChange(e, t) {
320
+ function ht(e, t) {
320
321
  return {
321
322
  id: e,
322
323
  type: "select",
323
324
  selected: t
324
325
  };
325
326
  }
326
- function getSelectionChanges(e, t = /* @__PURE__ */ new Set(), n = !1) {
327
+ function gt(e, t = /* @__PURE__ */ new Set(), n = !1) {
327
328
  let r = [];
328
329
  for (let [i, a] of e) {
329
330
  let e = t.has(i);
330
- !(a.selected === void 0 && !e) && a.selected !== e && (n && (a.selected = e), r.push(createSelectionChange(a.id, e)));
331
+ !(a.selected === void 0 && !e) && a.selected !== e && (n && (a.selected = e), r.push(ht(a.id, e)));
331
332
  }
332
333
  return r;
333
334
  }
334
- function getElementsDiffChanges({ items: e = [], lookup: t }) {
335
+ function _t({ items: e = [], lookup: t }) {
335
336
  let n = [], r = new Map(e.map((e) => [e.id, e]));
336
337
  for (let [r, i] of e.entries()) {
337
338
  let e = t.get(i.id), a = e?.internals?.userNode ?? e;
@@ -351,25 +352,24 @@ function getElementsDiffChanges({ items: e = [], lookup: t }) {
351
352
  });
352
353
  return n;
353
354
  }
354
- function elementToRemoveChange(e) {
355
+ function vt(e) {
355
356
  return {
356
357
  id: e.id,
357
358
  type: "remove"
358
359
  };
359
360
  }
360
- var isNode = (e) => isNodeBase(e), isEdge = (e) => isEdgeBase(e);
361
- function fixedForwardRef(e) {
362
- return forwardRef(e);
361
+ var yt = (e) => le(e), bt = (e) => ie(e);
362
+ function xt(e) {
363
+ return we(e);
363
364
  }
364
- var useIsomorphicLayoutEffect = typeof window < "u" ? useLayoutEffect : useEffect;
365
- function useQueue(e) {
366
- let [t, n] = useState(BigInt(0)), [r] = useState(() => createQueue(() => n((e) => e + BigInt(1))));
367
- return useIsomorphicLayoutEffect(() => {
365
+ function St(e) {
366
+ let [t, n] = J(BigInt(0)), [r] = J(() => Ct(() => n((e) => e + BigInt(1))));
367
+ return Ze(() => {
368
368
  let t = r.get();
369
369
  t.length && (e(t), r.reset());
370
370
  }, [t]), r;
371
371
  }
372
- function createQueue(e) {
372
+ function Ct(e) {
373
373
  let t = [];
374
374
  return {
375
375
  get: () => t,
@@ -381,12 +381,12 @@ function createQueue(e) {
381
381
  }
382
382
  };
383
383
  }
384
- var BatchContext = createContext(null);
385
- function BatchProvider({ children: e }) {
386
- let t = useStoreApi(), n = useQueue(useCallback((e) => {
384
+ var wt = Ce(null);
385
+ function Tt({ children: e }) {
386
+ let t = $(), n = St(W((e) => {
387
387
  let { nodes: n = [], setNodes: r, hasDefaultNodes: i, onNodesChange: a, nodeLookup: o, fitViewQueued: s, onNodesChangeMiddlewareMap: c } = t.getState(), l = n;
388
388
  for (let t of e) l = typeof t == "function" ? t(l) : t;
389
- let u = getElementsDiffChanges({
389
+ let u = _t({
390
390
  items: l,
391
391
  lookup: o
392
392
  });
@@ -395,37 +395,37 @@ function BatchProvider({ children: e }) {
395
395
  let { fitViewQueued: e, nodes: n, setNodes: r } = t.getState();
396
396
  e && r(n);
397
397
  });
398
- }, [])), r = useQueue(useCallback((e) => {
398
+ }, [])), r = St(W((e) => {
399
399
  let { edges: n = [], setEdges: r, hasDefaultEdges: i, onEdgesChange: a, edgeLookup: o } = t.getState(), s = n;
400
400
  for (let t of e) s = typeof t == "function" ? t(s) : t;
401
- i ? r(s) : a && a(getElementsDiffChanges({
401
+ i ? r(s) : a && a(_t({
402
402
  items: s,
403
403
  lookup: o
404
404
  }));
405
- }, [])), i = useMemo(() => ({
405
+ }, [])), i = K(() => ({
406
406
  nodeQueue: n,
407
407
  edgeQueue: r
408
408
  }), []);
409
- return jsx(BatchContext.Provider, {
409
+ return Y(wt.Provider, {
410
410
  value: i,
411
411
  children: e
412
412
  });
413
413
  }
414
- function useBatchContext() {
415
- let e = useContext(BatchContext);
414
+ function Et() {
415
+ let e = Te(wt);
416
416
  if (!e) throw Error("useBatchContext must be used within a BatchProvider");
417
417
  return e;
418
418
  }
419
- var selector$k = (e) => !!e.panZoom;
420
- function useReactFlow() {
421
- let e = useViewportHelper(), t = useStoreApi(), n = useBatchContext(), r = useStore(selector$k), i = useMemo(() => {
419
+ var Dt = (e) => !!e.panZoom;
420
+ function Ot() {
421
+ let e = ut(), t = $(), n = Et(), r = Q(Dt), i = K(() => {
422
422
  let e = (e) => t.getState().nodeLookup.get(e), r = (e) => {
423
423
  n.nodeQueue.push(e);
424
424
  }, i = (e) => {
425
425
  n.edgeQueue.push(e);
426
426
  }, a = (e) => {
427
- let { nodeLookup: n, nodeOrigin: r } = t.getState(), i = isNode(e) ? e : n.get(e.id), a = i.parentId ? evaluateAbsolutePosition(i.position, i.measured, i.parentId, n, r) : i.position;
428
- return nodeToRect({
427
+ let { nodeLookup: n, nodeOrigin: r } = t.getState(), i = yt(e) ? e : n.get(e.id), a = i.parentId ? S(i.position, i.measured, i.parentId, n, r) : i.position;
428
+ return me({
429
429
  ...i,
430
430
  position: a,
431
431
  width: i.measured?.width ?? i.width,
@@ -435,7 +435,7 @@ function useReactFlow() {
435
435
  r((r) => r.map((r) => {
436
436
  if (r.id === e) {
437
437
  let e = typeof t == "function" ? t(r) : t;
438
- return n.replace && isNode(e) ? e : {
438
+ return n.replace && yt(e) ? e : {
439
439
  ...r,
440
440
  ...e
441
441
  };
@@ -446,7 +446,7 @@ function useReactFlow() {
446
446
  i((r) => r.map((r) => {
447
447
  if (r.id === e) {
448
448
  let e = typeof t == "function" ? t(r) : t;
449
- return n.replace && isEdge(e) ? e : {
449
+ return n.replace && bt(e) ? e : {
450
450
  ...r,
451
451
  ...e
452
452
  };
@@ -486,7 +486,7 @@ function useReactFlow() {
486
486
  };
487
487
  },
488
488
  deleteElements: async ({ nodes: e = [], edges: n = [] }) => {
489
- let { nodes: r, edges: i, onNodesDelete: a, onEdgesDelete: o, triggerNodeChanges: s, triggerEdgeChanges: c, onDelete: l, onBeforeDelete: u } = t.getState(), { nodes: d, edges: f } = await getElementsToRemove({
489
+ let { nodes: r, edges: i, onNodesDelete: a, onEdgesDelete: o, triggerNodeChanges: s, triggerEdgeChanges: c, onDelete: l, onBeforeDelete: u } = t.getState(), { nodes: d, edges: f } = await A({
490
490
  nodesToRemove: e,
491
491
  edgesToRemove: n,
492
492
  nodes: r,
@@ -494,11 +494,11 @@ function useReactFlow() {
494
494
  onBeforeDelete: u
495
495
  }), p = f.length > 0, m = d.length > 0;
496
496
  if (p) {
497
- let e = f.map(elementToRemoveChange);
497
+ let e = f.map(vt);
498
498
  o?.(f), c(e);
499
499
  }
500
500
  if (m) {
501
- let e = d.map(elementToRemoveChange);
501
+ let e = d.map(vt);
502
502
  a?.(d), s(e);
503
503
  }
504
504
  return (m || p) && l?.({
@@ -510,18 +510,18 @@ function useReactFlow() {
510
510
  };
511
511
  },
512
512
  getIntersectingNodes: (e, n = !0, r) => {
513
- let i = isRectObject(e), o = i ? e : a(e), s = r !== void 0;
513
+ let i = de(e), o = i ? e : a(e), s = r !== void 0;
514
514
  return o ? (r || t.getState().nodes).filter((r) => {
515
515
  let a = t.getState().nodeLookup.get(r.id);
516
516
  if (a && !i && (r.id === e.id || !a.internals.positionAbsolute)) return !1;
517
- let c = nodeToRect(s ? r : a), l = getOverlappingArea(c, o);
517
+ let c = me(s ? r : a), l = z(c, o);
518
518
  return n && l > 0 || l >= c.width * c.height || l >= o.width * o.height;
519
519
  }) : [];
520
520
  },
521
521
  isNodeIntersecting: (e, t, n = !0) => {
522
- let r = isRectObject(e) ? e : a(e);
522
+ let r = de(e) ? e : a(e);
523
523
  if (!r) return !1;
524
- let i = getOverlappingArea(r, t);
524
+ let i = z(r, t);
525
525
  return n && i > 0 || i >= t.width * t.height || i >= r.width * r.height;
526
526
  },
527
527
  updateNode: o,
@@ -558,7 +558,7 @@ function useReactFlow() {
558
558
  },
559
559
  getNodesBounds: (e) => {
560
560
  let { nodeLookup: n, nodeOrigin: r } = t.getState();
561
- return getNodesBounds(e, {
561
+ return L(e, {
562
562
  nodeLookup: n,
563
563
  nodeOrigin: r
564
564
  });
@@ -566,7 +566,7 @@ function useReactFlow() {
566
566
  getHandleConnections: ({ type: e, id: n, nodeId: r }) => Array.from(t.getState().connectionLookup.get(`${r}-${e}${n ? `-${n}` : ""}`)?.values() ?? []),
567
567
  getNodeConnections: ({ type: e, handleId: n, nodeId: r }) => Array.from(t.getState().connectionLookup.get(`${r}${e ? n ? `-${e}-${n}` : `-${e}` : ""}`)?.values() ?? []),
568
568
  fitView: async (e) => {
569
- let r = t.getState().fitViewResolver ?? withResolvers();
569
+ let r = t.getState().fitViewResolver ?? Se();
570
570
  return t.setState({
571
571
  fitViewQueued: !0,
572
572
  fitViewOptions: e,
@@ -575,34 +575,34 @@ function useReactFlow() {
575
575
  }
576
576
  };
577
577
  }, []);
578
- return useMemo(() => ({
578
+ return K(() => ({
579
579
  ...i,
580
580
  ...e,
581
581
  viewportInitialized: r
582
582
  }), [r]);
583
583
  }
584
- var selected = (e) => e.selected, win$1 = typeof window < "u" ? window : void 0;
585
- function useGlobalKeyHandler({ deleteKeyCode: e, multiSelectionKeyCode: t }) {
586
- let n = useStoreApi(), { deleteElements: r } = useReactFlow(), i = useKeyPress(e, { actInsideInputWithModifier: !1 }), a = useKeyPress(t, { target: win$1 });
587
- useEffect(() => {
584
+ var kt = (e) => e.selected, At = typeof window < "u" ? window : void 0;
585
+ function jt({ deleteKeyCode: e, multiSelectionKeyCode: t }) {
586
+ let n = $(), { deleteElements: r } = Ot(), i = st(e, { actInsideInputWithModifier: !1 }), a = st(t, { target: At });
587
+ G(() => {
588
588
  if (i) {
589
589
  let { edges: e, nodes: t } = n.getState();
590
590
  r({
591
- nodes: t.filter(selected),
592
- edges: e.filter(selected)
591
+ nodes: t.filter(kt),
592
+ edges: e.filter(kt)
593
593
  }), n.setState({ nodesSelectionActive: !1 });
594
594
  }
595
- }, [i]), useEffect(() => {
595
+ }, [i]), G(() => {
596
596
  n.setState({ multiSelectionActive: a });
597
597
  }, [a]);
598
598
  }
599
- function useResizeHandler(e) {
600
- let t = useStoreApi();
601
- useEffect(() => {
599
+ function Mt(e) {
600
+ let t = $();
601
+ G(() => {
602
602
  let n = () => {
603
603
  if (!e.current || !(e.current.checkVisibility?.() ?? !0)) return !1;
604
- let n = getDimensions(e.current);
605
- (n.height === 0 || n.width === 0) && t.getState().onError?.("004", errorMessages.error004()), t.setState({
604
+ let n = O(e.current);
605
+ (n.height === 0 || n.width === 0) && t.getState().onError?.("004", x.error004()), t.setState({
606
606
  width: n.width || 500,
607
607
  height: n.height || 500
608
608
  });
@@ -616,30 +616,30 @@ function useResizeHandler(e) {
616
616
  }
617
617
  }, []);
618
618
  }
619
- var containerStyle = {
619
+ var Nt = {
620
620
  position: "absolute",
621
621
  width: "100%",
622
622
  height: "100%",
623
623
  top: 0,
624
624
  left: 0
625
- }, selector$j = (e) => ({
625
+ }, Pt = (e) => ({
626
626
  userSelectionActive: e.userSelectionActive,
627
627
  lib: e.lib,
628
628
  connectionInProgress: e.connection.inProgress
629
629
  });
630
- function ZoomPane({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, panOnScroll: r = !1, panOnScrollSpeed: a = .5, panOnScrollMode: o = PanOnScrollMode.Free, zoomOnDoubleClick: s = !0, panOnDrag: c = !0, defaultViewport: l, translateExtent: u, minZoom: f, maxZoom: p, zoomActivationKeyCode: m, preventScrolling: h = !0, children: g, noWheelClassName: _, noPanClassName: v, onViewportChange: y, isControlledViewport: b, paneClickDistance: x, selectionOnDrag: S }) {
631
- let C = useStoreApi(), w = useRef(null), { userSelectionActive: T, lib: E, connectionInProgress: D } = useStore(selector$j, shallow), O = useKeyPress(m), k = useRef();
632
- useResizeHandler(w);
633
- let A = useCallback((e) => {
630
+ function Ft({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, panOnScroll: r = !1, panOnScrollSpeed: a = .5, panOnScrollMode: o = i.Free, zoomOnDoubleClick: s = !0, panOnDrag: c = !0, defaultViewport: l, translateExtent: u, minZoom: f, maxZoom: p, zoomActivationKeyCode: m, preventScrolling: h = !0, children: g, noWheelClassName: _, noPanClassName: v, onViewportChange: y, isControlledViewport: b, paneClickDistance: x, selectionOnDrag: S }) {
631
+ let C = $(), w = q(null), { userSelectionActive: T, lib: E, connectionInProgress: D } = Q(Pt, Z), O = st(m), k = q();
632
+ Mt(w);
633
+ let A = W((e) => {
634
634
  y?.({
635
635
  x: e[0],
636
636
  y: e[1],
637
637
  zoom: e[2]
638
638
  }), b || C.setState({ transform: e });
639
639
  }, [y, b]);
640
- return useEffect(() => {
640
+ return G(() => {
641
641
  if (w.current) {
642
- k.current = XYPanZoom({
642
+ k.current = d({
643
643
  domNode: w.current,
644
644
  minZoom: f,
645
645
  maxZoom: p,
@@ -672,7 +672,7 @@ function ZoomPane({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n =
672
672
  k.current?.destroy();
673
673
  };
674
674
  }
675
- }, []), useEffect(() => {
675
+ }, []), G(() => {
676
676
  k.current?.update({
677
677
  onPaneContextMenu: e,
678
678
  zoomOnScroll: t,
@@ -712,20 +712,20 @@ function ZoomPane({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n =
712
712
  D,
713
713
  S,
714
714
  x
715
- ]), jsx("div", {
715
+ ]), Y("div", {
716
716
  className: "react-flow__renderer",
717
717
  ref: w,
718
- style: containerStyle,
718
+ style: Nt,
719
719
  children: g
720
720
  });
721
721
  }
722
- var selector$i = (e) => ({
722
+ var It = (e) => ({
723
723
  userSelectionActive: e.userSelectionActive,
724
724
  userSelectionRect: e.userSelectionRect
725
725
  });
726
- function UserSelection() {
727
- let { userSelectionActive: e, userSelectionRect: t } = useStore(selector$i, shallow);
728
- return e && t ? jsx("div", {
726
+ function Lt() {
727
+ let { userSelectionActive: e, userSelectionRect: t } = Q(It, Z);
728
+ return e && t ? Y("div", {
729
729
  className: "react-flow__selection react-flow__container",
730
730
  style: {
731
731
  width: t.width,
@@ -734,16 +734,16 @@ function UserSelection() {
734
734
  }
735
735
  }) : null;
736
736
  }
737
- var wrapHandler = (e, t) => (n) => {
737
+ var Rt = (e, t) => (n) => {
738
738
  n.target === t.current && e?.(n);
739
- }, selector$h = (e) => ({
739
+ }, zt = (e) => ({
740
740
  userSelectionActive: e.userSelectionActive,
741
741
  elementsSelectable: e.elementsSelectable,
742
742
  connectionInProgress: e.connection.inProgress,
743
743
  dragging: e.paneDragging
744
744
  });
745
- function Pane({ isSelecting: t, selectionKeyPressed: n, selectionMode: r = SelectionMode.Full, panOnDrag: i, paneClickDistance: a, selectionOnDrag: o, onSelectionStart: c, onSelectionEnd: l, onPaneClick: u, onPaneContextMenu: d, onPaneScroll: f, onPaneMouseEnter: p, onPaneMouseMove: m, onPaneMouseLeave: g, children: _ }) {
746
- let v = useStoreApi(), { userSelectionActive: y, elementsSelectable: b, dragging: x, connectionInProgress: S } = useStore(selector$h, shallow), C = b && (t || y), w = useRef(null), T = useRef(), E = useRef(/* @__PURE__ */ new Set()), D = useRef(/* @__PURE__ */ new Set()), O = useRef(!1), k = (e) => {
745
+ function Bt({ isSelecting: t, selectionKeyPressed: n, selectionMode: r = s.Full, panOnDrag: i, paneClickDistance: a, selectionOnDrag: o, onSelectionStart: c, onSelectionEnd: l, onPaneClick: u, onPaneContextMenu: d, onPaneScroll: f, onPaneMouseEnter: p, onPaneMouseMove: m, onPaneMouseLeave: g, children: _ }) {
746
+ let v = $(), { userSelectionActive: y, elementsSelectable: b, dragging: x, connectionInProgress: S } = Q(zt, Z), C = b && (t || y), w = q(null), T = q(), E = q(/* @__PURE__ */ new Set()), D = q(/* @__PURE__ */ new Set()), O = q(!1), k = (e) => {
747
747
  if (O.current || S) {
748
748
  O.current = !1;
749
749
  return;
@@ -756,20 +756,20 @@ function Pane({ isSelecting: t, selectionKeyPressed: n, selectionMode: r = Selec
756
756
  }
757
757
  d?.(e);
758
758
  }, j = f ? (e) => f(e) : void 0;
759
- return jsxs("div", {
760
- className: cc(["react-flow__pane", {
759
+ return X("div", {
760
+ className: e(["react-flow__pane", {
761
761
  draggable: i === !0 || Array.isArray(i) && i.includes(0),
762
762
  dragging: x,
763
763
  selection: t
764
764
  }]),
765
- onClick: C ? void 0 : wrapHandler(k, w),
766
- onContextMenu: wrapHandler(A, w),
767
- onWheel: wrapHandler(j, w),
765
+ onClick: C ? void 0 : Rt(k, w),
766
+ onContextMenu: Rt(A, w),
767
+ onWheel: Rt(j, w),
768
768
  onPointerEnter: C ? void 0 : p,
769
769
  onPointerMove: C ? (e) => {
770
770
  let { userSelectionRect: t, transform: i, nodeLookup: o, edgeLookup: l, connectionLookup: u, triggerNodeChanges: d, triggerEdgeChanges: f, defaultEdgeOptions: p, resetSelectedElements: m } = v.getState();
771
771
  if (!T.current || !t) return;
772
- let { x: g, y: _ } = getEventPosition(e.nativeEvent, T.current), { startX: y, startY: b } = t;
772
+ let { x: g, y: _ } = M(e.nativeEvent, T.current), { startX: y, startY: b } = t;
773
773
  if (!O.current) {
774
774
  let t = n ? 0 : a;
775
775
  if (Math.hypot(g - y, _ - b) <= t) return;
@@ -784,7 +784,7 @@ function Pane({ isSelecting: t, selectionKeyPressed: n, selectionMode: r = Selec
784
784
  width: Math.abs(g - y),
785
785
  height: Math.abs(_ - b)
786
786
  }, S = E.current, C = D.current;
787
- E.current = new Set(getNodesInside(o, x, i, r === SelectionMode.Partial, !0).map((e) => e.id)), D.current = /* @__PURE__ */ new Set();
787
+ E.current = new Set(R(o, x, i, r === s.Partial, !0).map((e) => e.id)), D.current = /* @__PURE__ */ new Set();
788
788
  let w = p?.selectable ?? !0;
789
789
  for (let e of E.current) {
790
790
  let t = u.get(e);
@@ -793,7 +793,7 @@ function Pane({ isSelecting: t, selectionKeyPressed: n, selectionMode: r = Selec
793
793
  t && (t.selectable ?? w) && D.current.add(e);
794
794
  }
795
795
  }
796
- areSetsEqual(S, E.current) || d(getSelectionChanges(o, E.current, !0)), areSetsEqual(C, D.current) || f(getSelectionChanges(l, D.current)), v.setState({
796
+ h(S, E.current) || d(gt(o, E.current, !0)), h(C, D.current) || f(gt(l, D.current)), v.setState({
797
797
  userSelectionRect: x,
798
798
  userSelectionActive: !0,
799
799
  nodesSelectionActive: !1
@@ -811,7 +811,7 @@ function Pane({ isSelecting: t, selectionKeyPressed: n, selectionMode: r = Selec
811
811
  let i = e.target === w.current;
812
812
  if (!i && e.target.closest(".nokey") || !t || !(o && i || n) || e.button !== 0 || !e.isPrimary) return;
813
813
  e.target?.setPointerCapture?.(e.pointerId), O.current = !1;
814
- let { x: a, y: s } = getEventPosition(e.nativeEvent, T.current);
814
+ let { x: a, y: s } = M(e.nativeEvent, T.current);
815
815
  v.setState({ userSelectionRect: {
816
816
  width: 0,
817
817
  height: 0,
@@ -826,14 +826,14 @@ function Pane({ isSelecting: t, selectionKeyPressed: n, selectionMode: r = Selec
826
826
  } : void 0,
827
827
  onPointerLeave: g,
828
828
  ref: w,
829
- style: containerStyle,
830
- children: [_, jsx(UserSelection, {})]
829
+ style: Nt,
830
+ children: [_, Y(Lt, {})]
831
831
  });
832
832
  }
833
- function handleNodeClick({ id: e, store: t, unselect: n = !1, nodeRef: r }) {
833
+ function Vt({ id: e, store: t, unselect: n = !1, nodeRef: r }) {
834
834
  let { addSelectedNodes: i, unselectNodesAndEdges: a, multiSelectionActive: o, nodeLookup: s, onError: c } = t.getState(), l = s.get(e);
835
835
  if (!l) {
836
- c?.("012", errorMessages.error012(e));
836
+ c?.("012", x.error012(e));
837
837
  return;
838
838
  }
839
839
  t.setState({ nodesSelectionActive: !1 }), l.selected ? (n || l.selected && o) && (a({
@@ -841,13 +841,13 @@ function handleNodeClick({ id: e, store: t, unselect: n = !1, nodeRef: r }) {
841
841
  edges: []
842
842
  }), requestAnimationFrame(() => r?.current?.blur())) : i([e]);
843
843
  }
844
- function useDrag({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector: r, nodeId: i, isSelectable: a, nodeClickDistance: o }) {
845
- let s = useStoreApi(), [l, u] = useState(!1), d = useRef();
846
- return useEffect(() => {
847
- d.current = XYDrag({
844
+ function Ht({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector: r, nodeId: i, isSelectable: a, nodeClickDistance: o }) {
845
+ let s = $(), [l, u] = J(!1), d = q();
846
+ return G(() => {
847
+ d.current = c({
848
848
  getStoreItems: () => s.getState(),
849
849
  onNodeMouseDown: (t) => {
850
- handleNodeClick({
850
+ Vt({
851
851
  id: t,
852
852
  store: s,
853
853
  nodeRef: e
@@ -860,7 +860,7 @@ function useDrag({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelec
860
860
  u(!1);
861
861
  }
862
862
  });
863
- }, []), useEffect(() => {
863
+ }, []), G(() => {
864
864
  if (!(t || !e.current || !d.current)) return d.current.update({
865
865
  noDragClassName: n,
866
866
  handleSelector: r,
@@ -881,19 +881,19 @@ function useDrag({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelec
881
881
  o
882
882
  ]), l;
883
883
  }
884
- var selectedAndDraggable = (e) => (t) => t.selected && (t.draggable || e && t.draggable === void 0);
885
- function useMoveSelectedNodes() {
886
- let e = useStoreApi();
887
- return useCallback((t) => {
888
- let { nodeExtent: n, snapToGrid: r, snapGrid: i, nodesDraggable: a, onError: o, updateNodePositions: s, nodeLookup: c, nodeOrigin: l } = e.getState(), u = /* @__PURE__ */ new Map(), d = selectedAndDraggable(a), f = r ? i[0] : 5, p = r ? i[1] : 5, m = t.direction.x * f * t.factor, h = t.direction.y * p * t.factor;
884
+ var Ut = (e) => (t) => t.selected && (t.draggable || e && t.draggable === void 0);
885
+ function Wt() {
886
+ let e = $();
887
+ return W((t) => {
888
+ let { nodeExtent: n, snapToGrid: r, snapGrid: i, nodesDraggable: a, onError: o, updateNodePositions: s, nodeLookup: c, nodeOrigin: l } = e.getState(), u = /* @__PURE__ */ new Map(), d = Ut(a), f = r ? i[0] : 5, p = r ? i[1] : 5, m = t.direction.x * f * t.factor, h = t.direction.y * p * t.factor;
889
889
  for (let [, e] of c) {
890
890
  if (!d(e)) continue;
891
891
  let t = {
892
892
  x: e.internals.positionAbsolute.x + m,
893
893
  y: e.internals.positionAbsolute.y + h
894
894
  };
895
- r && (t = snapPosition(t, i));
896
- let { position: a, positionAbsolute: s } = calculateNodePosition({
895
+ r && (t = ve(t, i));
896
+ let { position: a, positionAbsolute: s } = g({
897
897
  nodeId: e.id,
898
898
  nextPosition: t,
899
899
  nodeLookup: c,
@@ -906,27 +906,27 @@ function useMoveSelectedNodes() {
906
906
  s(u);
907
907
  }, []);
908
908
  }
909
- var NodeIdContext = createContext(null), Provider = NodeIdContext.Provider;
910
- NodeIdContext.Consumer;
911
- var useNodeId = () => useContext(NodeIdContext), selector$g = (e) => ({
909
+ var Gt = Ce(null), Kt = Gt.Provider;
910
+ Gt.Consumer;
911
+ var qt = () => Te(Gt), Jt = (e) => ({
912
912
  connectOnClick: e.connectOnClick,
913
913
  noPanClassName: e.noPanClassName,
914
914
  rfId: e.rfId
915
- }), connectingSelector = (e, t, r) => (i) => {
915
+ }), Yt = (e, t, r) => (i) => {
916
916
  let { connectionClickStartHandle: a, connectionMode: o, connection: s } = i, { fromHandle: c, toHandle: l, isValid: u } = s, d = l?.nodeId === e && l?.id === t && l?.type === r;
917
917
  return {
918
918
  connectingFrom: c?.nodeId === e && c?.id === t && c?.type === r,
919
919
  connectingTo: d,
920
920
  clickConnecting: a?.nodeId === e && a?.id === t && a?.type === r,
921
- isPossibleEndHandle: o === ConnectionMode.Strict ? c?.type !== r : e !== c?.nodeId || t !== c?.id,
921
+ isPossibleEndHandle: o === n.Strict ? c?.type !== r : e !== c?.nodeId || t !== c?.id,
922
922
  connectionInProcess: !!c,
923
923
  clickConnectionInProcess: !!a,
924
924
  valid: d && u
925
925
  };
926
926
  };
927
- function HandleComponent({ type: t = "source", position: n = Position.Top, isValidConnection: r, isConnectable: i = !0, isConnectableStart: o = !0, isConnectableEnd: s = !0, id: c, onConnect: u, children: d, className: f, onMouseDown: m, onTouchStart: h, ...g }, _) {
928
- let v = c || null, y = t === "target", b = useStoreApi(), S = useNodeId(), { connectOnClick: C, noPanClassName: w, rfId: T } = useStore(selector$g, shallow), { connectingFrom: E, connectingTo: D, clickConnecting: O, isPossibleEndHandle: k, connectionInProcess: A, clickConnectionInProcess: j, valid: M } = useStore(connectingSelector(S, v, t), shallow);
929
- S || b.getState().onError?.("010", errorMessages.error010());
927
+ function Xt({ type: t = "source", position: n = a.Top, isValidConnection: r, isConnectable: i = !0, isConnectableStart: o = !0, isConnectableEnd: s = !0, id: c, onConnect: u, children: d, className: f, onMouseDown: m, onTouchStart: h, ...g }, _) {
928
+ let v = c || null, y = t === "target", b = $(), S = qt(), { connectOnClick: C, noPanClassName: w, rfId: T } = Q(Jt, Z), { connectingFrom: E, connectingTo: D, clickConnecting: O, isPossibleEndHandle: k, connectionInProcess: A, clickConnectionInProcess: j, valid: M } = Q(Yt(S, v, t), Z);
929
+ S || b.getState().onError?.("010", x.error010());
930
930
  let N = (e) => {
931
931
  let { defaultEdgeOptions: t, onConnect: n, hasDefaultEdges: r } = b.getState(), i = {
932
932
  ...t,
@@ -934,15 +934,15 @@ function HandleComponent({ type: t = "source", position: n = Position.Top, isVal
934
934
  };
935
935
  if (r) {
936
936
  let { edges: e, setEdges: t } = b.getState();
937
- t(addEdge(i, e));
937
+ t(p(i, e));
938
938
  }
939
939
  n?.(i), u?.(i);
940
- }, P = (e) => {
940
+ }, F = (e) => {
941
941
  if (!S) return;
942
- let t = isMouseEvent(e.nativeEvent);
942
+ let t = ce(e.nativeEvent);
943
943
  if (o && (t && e.button === 0 || !t)) {
944
944
  let t = b.getState();
945
- XYHandle.onPointerDown(e.nativeEvent, {
945
+ l.onPointerDown(e.nativeEvent, {
946
946
  handleDomNode: e.currentTarget,
947
947
  autoPanOnConnect: t.autoPanOnConnect,
948
948
  connectionMode: t.connectionMode,
@@ -968,47 +968,13 @@ function HandleComponent({ type: t = "source", position: n = Position.Top, isVal
968
968
  });
969
969
  }
970
970
  t ? m?.(e) : h?.(e);
971
- }, F = (e) => {
972
- let { onClickConnectStart: n, onClickConnectEnd: i, connectionClickStartHandle: a, connectionMode: s, isValidConnection: c, lib: u, rfId: d, nodeLookup: f, connection: p } = b.getState();
973
- if (!S || !a && !o) return;
974
- if (!a) {
975
- n?.(e.nativeEvent, {
976
- nodeId: S,
977
- handleId: v,
978
- handleType: t
979
- }), b.setState({ connectionClickStartHandle: {
980
- nodeId: S,
981
- type: t,
982
- id: v
983
- } });
984
- return;
985
- }
986
- let m = getHostForElement(e.target), h = r || c, { connection: g, isValid: _ } = XYHandle.isValid(e.nativeEvent, {
987
- handle: {
988
- nodeId: S,
989
- id: v,
990
- type: t
991
- },
992
- connectionMode: s,
993
- fromNodeId: a.nodeId,
994
- fromHandleId: a.id || null,
995
- fromType: a.type,
996
- isValidConnection: h,
997
- flowId: d,
998
- doc: m,
999
- lib: u,
1000
- nodeLookup: f
1001
- });
1002
- _ && g && N(g);
1003
- let y = structuredClone(p);
1004
- delete y.inProgress, y.toPosition = y.toHandle ? y.toHandle.position : null, i?.(e, y), b.setState({ connectionClickStartHandle: null });
1005
971
  };
1006
- return jsx("div", {
972
+ return Y("div", {
1007
973
  "data-handleid": v,
1008
974
  "data-nodeid": S,
1009
975
  "data-handlepos": n,
1010
976
  "data-id": `${T}-${S}-${v}-${t}`,
1011
- className: cc([
977
+ className: e([
1012
978
  "react-flow__handle",
1013
979
  `react-flow__handle-${n}`,
1014
980
  "nodrag",
@@ -1027,48 +993,82 @@ function HandleComponent({ type: t = "source", position: n = Position.Top, isVal
1027
993
  connectionindicator: i && (!A || k) && (A || j ? s : o)
1028
994
  }
1029
995
  ]),
1030
- onMouseDown: P,
1031
- onTouchStart: P,
1032
- onClick: C ? F : void 0,
996
+ onMouseDown: F,
997
+ onTouchStart: F,
998
+ onClick: C ? (e) => {
999
+ let { onClickConnectStart: n, onClickConnectEnd: i, connectionClickStartHandle: a, connectionMode: s, isValidConnection: c, lib: u, rfId: d, nodeLookup: f, connection: p } = b.getState();
1000
+ if (!S || !a && !o) return;
1001
+ if (!a) {
1002
+ n?.(e.nativeEvent, {
1003
+ nodeId: S,
1004
+ handleId: v,
1005
+ handleType: t
1006
+ }), b.setState({ connectionClickStartHandle: {
1007
+ nodeId: S,
1008
+ type: t,
1009
+ id: v
1010
+ } });
1011
+ return;
1012
+ }
1013
+ let m = P(e.target), h = r || c, { connection: g, isValid: _ } = l.isValid(e.nativeEvent, {
1014
+ handle: {
1015
+ nodeId: S,
1016
+ id: v,
1017
+ type: t
1018
+ },
1019
+ connectionMode: s,
1020
+ fromNodeId: a.nodeId,
1021
+ fromHandleId: a.id || null,
1022
+ fromType: a.type,
1023
+ isValidConnection: h,
1024
+ flowId: d,
1025
+ doc: m,
1026
+ lib: u,
1027
+ nodeLookup: f
1028
+ });
1029
+ _ && g && N(g);
1030
+ let y = structuredClone(p);
1031
+ delete y.inProgress, y.toPosition = y.toHandle ? y.toHandle.position : null, i?.(e, y), b.setState({ connectionClickStartHandle: null });
1032
+ } : void 0,
1033
1033
  ref: _,
1034
1034
  ...g,
1035
1035
  children: d
1036
1036
  });
1037
1037
  }
1038
- var Handle = memo(fixedForwardRef(HandleComponent));
1039
- function InputNode({ data: e, isConnectable: t, sourcePosition: n = Position.Bottom }) {
1040
- return jsxs(Fragment$1, { children: [e?.label, jsx(Handle, {
1038
+ var Zt = U(xt(Xt));
1039
+ function Qt({ data: e, isConnectable: t, sourcePosition: n = a.Bottom }) {
1040
+ return X(De, { children: [e?.label, Y(Zt, {
1041
1041
  type: "source",
1042
1042
  position: n,
1043
1043
  isConnectable: t
1044
1044
  })] });
1045
1045
  }
1046
- function DefaultNode({ data: e, isConnectable: t, targetPosition: n = Position.Top, sourcePosition: r = Position.Bottom }) {
1047
- return jsxs(Fragment$1, { children: [
1048
- jsx(Handle, {
1046
+ function $t({ data: e, isConnectable: t, targetPosition: n = a.Top, sourcePosition: r = a.Bottom }) {
1047
+ return X(De, { children: [
1048
+ Y(Zt, {
1049
1049
  type: "target",
1050
1050
  position: n,
1051
1051
  isConnectable: t
1052
1052
  }),
1053
1053
  e?.label,
1054
- jsx(Handle, {
1054
+ Y(Zt, {
1055
1055
  type: "source",
1056
1056
  position: r,
1057
1057
  isConnectable: t
1058
1058
  })
1059
1059
  ] });
1060
1060
  }
1061
- function GroupNode() {
1061
+ function en() {
1062
1062
  return null;
1063
1063
  }
1064
- function OutputNode({ data: e, isConnectable: t, targetPosition: n = Position.Top }) {
1065
- return jsxs(Fragment$1, { children: [jsx(Handle, {
1064
+ function tn({ data: e, isConnectable: t, targetPosition: n = a.Top }) {
1065
+ return X(De, { children: [Y(Zt, {
1066
1066
  type: "target",
1067
1067
  position: n,
1068
1068
  isConnectable: t
1069
1069
  }), e?.label] });
1070
1070
  }
1071
- var arrowKeyDiffs = {
1071
+ var nn = {
1072
1072
  ArrowUp: {
1073
1073
  x: 0,
1074
1074
  y: -1
@@ -1085,13 +1085,13 @@ var arrowKeyDiffs = {
1085
1085
  x: 1,
1086
1086
  y: 0
1087
1087
  }
1088
- }, builtinNodeTypes = {
1089
- input: InputNode,
1090
- default: DefaultNode,
1091
- output: OutputNode,
1092
- group: GroupNode
1088
+ }, rn = {
1089
+ input: Qt,
1090
+ default: $t,
1091
+ output: tn,
1092
+ group: en
1093
1093
  };
1094
- function getNodeInlineStyleDimensions(e) {
1094
+ function an(e) {
1095
1095
  return e.internals.handleBounds === void 0 ? {
1096
1096
  width: e.width ?? e.initialWidth ?? e.style?.width,
1097
1097
  height: e.height ?? e.initialHeight ?? e.style?.height
@@ -1100,43 +1100,43 @@ function getNodeInlineStyleDimensions(e) {
1100
1100
  height: e.height ?? e.style?.height
1101
1101
  };
1102
1102
  }
1103
- var selector$f = (e) => {
1104
- let { width: t, height: n, x: r, y: i } = getInternalNodesBounds(e.nodeLookup, { filter: (e) => !!e.selected });
1103
+ var on = (e) => {
1104
+ let { width: t, height: n, x: r, y: i } = F(e.nodeLookup, { filter: (e) => !!e.selected });
1105
1105
  return {
1106
- width: isNumeric(t) ? t : null,
1107
- height: isNumeric(n) ? n : null,
1106
+ width: ue(t) ? t : null,
1107
+ height: ue(n) ? n : null,
1108
1108
  userSelectionActive: e.userSelectionActive,
1109
1109
  transformString: `translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${r}px,${i}px)`
1110
1110
  };
1111
1111
  };
1112
- function NodesSelection({ onSelectionContextMenu: t, noPanClassName: n, disableKeyboardA11y: r }) {
1113
- let i = useStoreApi(), { width: a, height: o, transformString: s, userSelectionActive: c } = useStore(selector$f, shallow), l = useMoveSelectedNodes(), u = useRef(null);
1114
- useEffect(() => {
1112
+ function sn({ onSelectionContextMenu: t, noPanClassName: n, disableKeyboardA11y: r }) {
1113
+ let i = $(), { width: a, height: o, transformString: s, userSelectionActive: c } = Q(on, Z), l = Wt(), u = q(null);
1114
+ G(() => {
1115
1115
  r || u.current?.focus({ preventScroll: !0 });
1116
1116
  }, [r]);
1117
1117
  let d = !c && a !== null && o !== null;
1118
- if (useDrag({
1118
+ if (Ht({
1119
1119
  nodeRef: u,
1120
1120
  disabled: !d
1121
1121
  }), !d) return null;
1122
1122
  let f = t ? (e) => {
1123
1123
  t(e, i.getState().nodes.filter((e) => e.selected));
1124
1124
  } : void 0;
1125
- return jsx("div", {
1126
- className: cc([
1125
+ return Y("div", {
1126
+ className: e([
1127
1127
  "react-flow__nodesselection",
1128
1128
  "react-flow__container",
1129
1129
  n
1130
1130
  ]),
1131
1131
  style: { transform: s },
1132
- children: jsx("div", {
1132
+ children: Y("div", {
1133
1133
  ref: u,
1134
1134
  className: "react-flow__nodesselection-rect",
1135
1135
  onContextMenu: f,
1136
1136
  tabIndex: r ? void 0 : -1,
1137
1137
  onKeyDown: r ? void 0 : (e) => {
1138
- Object.prototype.hasOwnProperty.call(arrowKeyDiffs, e.key) && (e.preventDefault(), l({
1139
- direction: arrowKeyDiffs[e.key],
1138
+ Object.prototype.hasOwnProperty.call(nn, e.key) && (e.preventDefault(), l({
1139
+ direction: nn[e.key],
1140
1140
  factor: e.shiftKey ? 4 : 1
1141
1141
  }));
1142
1142
  },
@@ -1147,25 +1147,25 @@ function NodesSelection({ onSelectionContextMenu: t, noPanClassName: n, disableK
1147
1147
  })
1148
1148
  });
1149
1149
  }
1150
- var win = typeof window < "u" ? window : void 0, selector$e = (e) => ({
1150
+ var cn = typeof window < "u" ? window : void 0, ln = (e) => ({
1151
1151
  nodesSelectionActive: e.nodesSelectionActive,
1152
1152
  userSelectionActive: e.userSelectionActive
1153
1153
  });
1154
- function FlowRendererComponent({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: i, onPaneContextMenu: a, onPaneScroll: o, paneClickDistance: s, deleteKeyCode: c, selectionKeyCode: l, selectionOnDrag: u, selectionMode: d, onSelectionStart: f, onSelectionEnd: p, multiSelectionKeyCode: m, panActivationKeyCode: h, zoomActivationKeyCode: g, elementsSelectable: _, zoomOnScroll: v, zoomOnPinch: y, panOnScroll: b, panOnScrollSpeed: x, panOnScrollMode: S, zoomOnDoubleClick: C, panOnDrag: w, defaultViewport: T, translateExtent: E, minZoom: D, maxZoom: O, preventScrolling: k, onSelectionContextMenu: A, noWheelClassName: j, noPanClassName: M, disableKeyboardA11y: N, onViewportChange: P, isControlledViewport: F }) {
1155
- let { nodesSelectionActive: I, userSelectionActive: L } = useStore(selector$e, shallow), R = useKeyPress(l, { target: win }), z = useKeyPress(h, { target: win }), B = z || w, V = z || b, H = u && B !== !0, U = R || L || H;
1156
- return useGlobalKeyHandler({
1154
+ function un({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: i, onPaneContextMenu: a, onPaneScroll: o, paneClickDistance: s, deleteKeyCode: c, selectionKeyCode: l, selectionOnDrag: u, selectionMode: d, onSelectionStart: f, onSelectionEnd: p, multiSelectionKeyCode: m, panActivationKeyCode: h, zoomActivationKeyCode: g, elementsSelectable: _, zoomOnScroll: v, zoomOnPinch: y, panOnScroll: b, panOnScrollSpeed: x, panOnScrollMode: S, zoomOnDoubleClick: C, panOnDrag: w, defaultViewport: T, translateExtent: E, minZoom: D, maxZoom: O, preventScrolling: k, onSelectionContextMenu: A, noWheelClassName: j, noPanClassName: M, disableKeyboardA11y: N, onViewportChange: P, isControlledViewport: F }) {
1155
+ let { nodesSelectionActive: ee, userSelectionActive: I } = Q(ln, Z), L = st(l, { target: cn }), R = st(h, { target: cn }), z = R || w, B = R || b, V = u && z !== !0, H = L || I || V;
1156
+ return jt({
1157
1157
  deleteKeyCode: c,
1158
1158
  multiSelectionKeyCode: m
1159
- }), jsx(ZoomPane, {
1159
+ }), Y(Ft, {
1160
1160
  onPaneContextMenu: a,
1161
1161
  elementsSelectable: _,
1162
1162
  zoomOnScroll: v,
1163
1163
  zoomOnPinch: y,
1164
- panOnScroll: V,
1164
+ panOnScroll: B,
1165
1165
  panOnScrollSpeed: x,
1166
1166
  panOnScrollMode: S,
1167
1167
  zoomOnDoubleClick: C,
1168
- panOnDrag: !R && B,
1168
+ panOnDrag: !L && z,
1169
1169
  defaultViewport: T,
1170
1170
  translateExtent: E,
1171
1171
  minZoom: D,
@@ -1177,8 +1177,8 @@ function FlowRendererComponent({ children: e, onPaneClick: t, onPaneMouseEnter:
1177
1177
  onViewportChange: P,
1178
1178
  isControlledViewport: F,
1179
1179
  paneClickDistance: s,
1180
- selectionOnDrag: H,
1181
- children: jsxs(Pane, {
1180
+ selectionOnDrag: V,
1181
+ children: X(Bt, {
1182
1182
  onSelectionStart: f,
1183
1183
  onSelectionEnd: p,
1184
1184
  onPaneClick: t,
@@ -1187,13 +1187,13 @@ function FlowRendererComponent({ children: e, onPaneClick: t, onPaneMouseEnter:
1187
1187
  onPaneMouseLeave: i,
1188
1188
  onPaneContextMenu: a,
1189
1189
  onPaneScroll: o,
1190
- panOnDrag: B,
1191
- isSelecting: !!U,
1190
+ panOnDrag: z,
1191
+ isSelecting: !!H,
1192
1192
  selectionMode: d,
1193
- selectionKeyPressed: R,
1193
+ selectionKeyPressed: L,
1194
1194
  paneClickDistance: s,
1195
- selectionOnDrag: H,
1196
- children: [e, I && jsx(NodesSelection, {
1195
+ selectionOnDrag: V,
1196
+ children: [e, ee && Y(sn, {
1197
1197
  onSelectionContextMenu: A,
1198
1198
  noPanClassName: M,
1199
1199
  disableKeyboardA11y: N
@@ -1201,19 +1201,19 @@ function FlowRendererComponent({ children: e, onPaneClick: t, onPaneMouseEnter:
1201
1201
  })
1202
1202
  });
1203
1203
  }
1204
- FlowRendererComponent.displayName = "FlowRenderer";
1205
- var FlowRenderer = memo(FlowRendererComponent), selector$d = (e) => (t) => e ? getNodesInside(t.nodeLookup, {
1204
+ un.displayName = "FlowRenderer";
1205
+ var dn = U(un), fn = (e) => (t) => e ? R(t.nodeLookup, {
1206
1206
  x: 0,
1207
1207
  y: 0,
1208
1208
  width: t.width,
1209
1209
  height: t.height
1210
1210
  }, t.transform, !0).map((e) => e.id) : Array.from(t.nodeLookup.keys());
1211
- function useVisibleNodeIds(e) {
1212
- return useStore(useCallback(selector$d(e), [e]), shallow);
1211
+ function pn(e) {
1212
+ return Q(W(fn(e), [e]), Z);
1213
1213
  }
1214
- var selector$c = (e) => e.updateNodeInternals;
1215
- function useResizeObserver() {
1216
- let e = useStore(selector$c), [t] = useState(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((t) => {
1214
+ var mn = (e) => e.updateNodeInternals;
1215
+ function hn() {
1216
+ let e = Q(mn), [t] = J(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((t) => {
1217
1217
  let n = /* @__PURE__ */ new Map();
1218
1218
  t.forEach((e) => {
1219
1219
  let t = e.target.getAttribute("data-id");
@@ -1224,17 +1224,17 @@ function useResizeObserver() {
1224
1224
  });
1225
1225
  }), e(n);
1226
1226
  }));
1227
- return useEffect(() => () => {
1227
+ return G(() => () => {
1228
1228
  t?.disconnect();
1229
1229
  }, [t]), t;
1230
1230
  }
1231
- function useNodeObserver({ node: e, nodeType: t, hasDimensions: n, resizeObserver: r }) {
1232
- let i = useStoreApi(), a = useRef(null), o = useRef(null), s = useRef(e.sourcePosition), c = useRef(e.targetPosition), l = useRef(t), u = n && !!e.internals.handleBounds;
1233
- return useEffect(() => {
1231
+ function gn({ node: e, nodeType: t, hasDimensions: n, resizeObserver: r }) {
1232
+ let i = $(), a = q(null), o = q(null), s = q(e.sourcePosition), c = q(e.targetPosition), l = q(t), u = n && !!e.internals.handleBounds;
1233
+ return G(() => {
1234
1234
  a.current && !e.hidden && (!u || o.current !== a.current) && (o.current && r?.unobserve(o.current), r?.observe(a.current), o.current = a.current);
1235
- }, [u, e.hidden]), useEffect(() => () => {
1235
+ }, [u, e.hidden]), G(() => () => {
1236
1236
  o.current &&= (r?.unobserve(o.current), null);
1237
- }, []), useEffect(() => {
1237
+ }, []), G(() => {
1238
1238
  if (a.current) {
1239
1239
  let n = l.current !== t, r = s.current !== e.sourcePosition, o = c.current !== e.targetPosition;
1240
1240
  (n || r || o) && (l.current = t, s.current = e.sourcePosition, c.current = e.targetPosition, i.getState().updateNodeInternals(new Map([[e.id, {
@@ -1250,22 +1250,22 @@ function useNodeObserver({ node: e, nodeType: t, hasDimensions: n, resizeObserve
1250
1250
  e.targetPosition
1251
1251
  ]), a;
1252
1252
  }
1253
- function NodeWrapper({ id: t, onClick: n, onMouseEnter: r, onMouseMove: i, onMouseLeave: a, onContextMenu: o, onDoubleClick: s, nodesDraggable: c, elementsSelectable: l, nodesConnectable: u, nodesFocusable: d, resizeObserver: f, noDragClassName: p, noPanClassName: m, disableKeyboardA11y: h, rfId: g, nodeTypes: _, nodeClickDistance: v, onError: y }) {
1254
- let { node: S, internals: C, isParent: w } = useStore((e) => {
1253
+ function _n({ id: t, onClick: n, onMouseEnter: r, onMouseMove: i, onMouseLeave: a, onContextMenu: o, onDoubleClick: s, nodesDraggable: c, elementsSelectable: l, nodesConnectable: u, nodesFocusable: d, resizeObserver: f, noDragClassName: p, noPanClassName: m, disableKeyboardA11y: h, rfId: g, nodeTypes: _, nodeClickDistance: v, onError: y }) {
1254
+ let { node: S, internals: C, isParent: w } = Q((e) => {
1255
1255
  let n = e.nodeLookup.get(t), r = e.parentLookup.has(t);
1256
1256
  return {
1257
1257
  node: n,
1258
1258
  internals: n.internals,
1259
1259
  isParent: r
1260
1260
  };
1261
- }, shallow), T = S.type || "default", E = _?.[T] || builtinNodeTypes[T];
1262
- E === void 0 && (y?.("003", errorMessages.error003(T)), T = "default", E = _?.default || builtinNodeTypes.default);
1263
- let D = !!(S.draggable || c && S.draggable === void 0), O = !!(S.selectable || l && S.selectable === void 0), k = !!(S.connectable || u && S.connectable === void 0), A = !!(S.focusable || d && S.focusable === void 0), j = useStoreApi(), M = nodeHasDimensions(S), N = useNodeObserver({
1261
+ }, Z), T = S.type || "default", E = _?.[T] || rn[T];
1262
+ E === void 0 && (y?.("003", x.error003(T)), T = "default", E = _?.default || rn.default);
1263
+ let D = !!(S.draggable || c && S.draggable === void 0), O = !!(S.selectable || l && S.selectable === void 0), k = !!(S.connectable || u && S.connectable === void 0), A = !!(S.focusable || d && S.focusable === void 0), j = $(), M = pe(S), N = gn({
1264
1264
  node: S,
1265
1265
  nodeType: T,
1266
1266
  hasDimensions: M,
1267
1267
  resizeObserver: f
1268
- }), P = useDrag({
1268
+ }), P = Ht({
1269
1269
  nodeRef: N,
1270
1270
  disabled: S.hidden || !D,
1271
1271
  noDragClassName: p,
@@ -1273,24 +1273,24 @@ function NodeWrapper({ id: t, onClick: n, onMouseEnter: r, onMouseMove: i, onMou
1273
1273
  nodeId: t,
1274
1274
  isSelectable: O,
1275
1275
  nodeClickDistance: v
1276
- }), F = useMoveSelectedNodes();
1276
+ }), F = Wt();
1277
1277
  if (S.hidden) return null;
1278
- let I = getNodeDimensions(S), L = getNodeInlineStyleDimensions(S), R = O || D || n || r || i || a, B = r ? (e) => r(e, { ...C.userNode }) : void 0, H = i ? (e) => i(e, { ...C.userNode }) : void 0, U = a ? (e) => a(e, { ...C.userNode }) : void 0, W = o ? (e) => o(e, { ...C.userNode }) : void 0, G = s ? (e) => s(e, { ...C.userNode }) : void 0, K = (e) => {
1278
+ let ee = I(S), L = an(S), z = O || D || n || r || i || a, B = r ? (e) => r(e, { ...C.userNode }) : void 0, V = i ? (e) => i(e, { ...C.userNode }) : void 0, H = a ? (e) => a(e, { ...C.userNode }) : void 0, te = o ? (e) => o(e, { ...C.userNode }) : void 0, ne = s ? (e) => s(e, { ...C.userNode }) : void 0, re = (e) => {
1279
1279
  let { selectNodesOnDrag: r, nodeDragThreshold: i } = j.getState();
1280
- O && (!r || !D || i > 0) && handleNodeClick({
1280
+ O && (!r || !D || i > 0) && Vt({
1281
1281
  id: t,
1282
1282
  store: j,
1283
1283
  nodeRef: N
1284
1284
  }), n && n(e, { ...C.userNode });
1285
- }, q = (e) => {
1286
- if (!(isInputDOMNode(e.nativeEvent) || h)) {
1287
- if (elementSelectionKeys.includes(e.key) && O) handleNodeClick({
1285
+ }, ie = (e) => {
1286
+ if (!(oe(e.nativeEvent) || h)) {
1287
+ if (b.includes(e.key) && O) Vt({
1288
1288
  id: t,
1289
1289
  store: j,
1290
1290
  unselect: e.key === "Escape",
1291
1291
  nodeRef: N
1292
1292
  });
1293
- else if (D && S.selected && Object.prototype.hasOwnProperty.call(arrowKeyDiffs, e.key)) {
1293
+ else if (D && S.selected && Object.prototype.hasOwnProperty.call(nn, e.key)) {
1294
1294
  e.preventDefault();
1295
1295
  let { ariaLabelConfig: t } = j.getState();
1296
1296
  j.setState({ ariaLiveMessage: t["node.a11yDescription.ariaLiveMessage"]({
@@ -1298,23 +1298,23 @@ function NodeWrapper({ id: t, onClick: n, onMouseEnter: r, onMouseMove: i, onMou
1298
1298
  x: ~~C.positionAbsolute.x,
1299
1299
  y: ~~C.positionAbsolute.y
1300
1300
  }) }), F({
1301
- direction: arrowKeyDiffs[e.key],
1301
+ direction: nn[e.key],
1302
1302
  factor: e.shiftKey ? 4 : 1
1303
1303
  });
1304
1304
  }
1305
1305
  }
1306
- }, J = () => {
1306
+ }, ae = () => {
1307
1307
  if (h || !N.current?.matches(":focus-visible")) return;
1308
1308
  let { transform: e, width: n, height: r, autoPanOnNodeFocus: i, setCenter: a } = j.getState();
1309
- i && (getNodesInside(new Map([[t, S]]), {
1309
+ i && (R(new Map([[t, S]]), {
1310
1310
  x: 0,
1311
1311
  y: 0,
1312
1312
  width: n,
1313
1313
  height: r
1314
- }, e, !0).length > 0 || a(S.position.x + I.width / 2, S.position.y + I.height / 2, { zoom: e[2] }));
1314
+ }, e, !0).length > 0 || a(S.position.x + ee.width / 2, S.position.y + ee.height / 2, { zoom: e[2] }));
1315
1315
  };
1316
- return jsx("div", {
1317
- className: cc([
1316
+ return Y("div", {
1317
+ className: e([
1318
1318
  "react-flow__node",
1319
1319
  `react-flow__node-${T}`,
1320
1320
  { [m]: D },
@@ -1331,7 +1331,7 @@ function NodeWrapper({ id: t, onClick: n, onMouseEnter: r, onMouseMove: i, onMou
1331
1331
  style: {
1332
1332
  zIndex: C.z,
1333
1333
  transform: `translate(${C.positionAbsolute.x}px,${C.positionAbsolute.y}px)`,
1334
- pointerEvents: R ? "all" : "none",
1334
+ pointerEvents: z ? "all" : "none",
1335
1335
  visibility: M ? "visible" : "hidden",
1336
1336
  ...S.style,
1337
1337
  ...L
@@ -1339,22 +1339,22 @@ function NodeWrapper({ id: t, onClick: n, onMouseEnter: r, onMouseMove: i, onMou
1339
1339
  "data-id": t,
1340
1340
  "data-testid": `rf__node-${t}`,
1341
1341
  onMouseEnter: B,
1342
- onMouseMove: H,
1343
- onMouseLeave: U,
1344
- onContextMenu: W,
1345
- onClick: K,
1346
- onDoubleClick: G,
1347
- onKeyDown: A ? q : void 0,
1342
+ onMouseMove: V,
1343
+ onMouseLeave: H,
1344
+ onContextMenu: te,
1345
+ onClick: re,
1346
+ onDoubleClick: ne,
1347
+ onKeyDown: A ? ie : void 0,
1348
1348
  tabIndex: A ? 0 : void 0,
1349
- onFocus: A ? J : void 0,
1349
+ onFocus: A ? ae : void 0,
1350
1350
  role: S.ariaRole ?? (A ? "group" : void 0),
1351
1351
  "aria-roledescription": "node",
1352
- "aria-describedby": h ? void 0 : `${ARIA_NODE_DESC_KEY}-${g}`,
1352
+ "aria-describedby": h ? void 0 : `${Ie}-${g}`,
1353
1353
  "aria-label": S.ariaLabel,
1354
1354
  ...S.domAttributes,
1355
- children: jsx(Provider, {
1355
+ children: Y(Kt, {
1356
1356
  value: t,
1357
- children: jsx(E, {
1357
+ children: Y(E, {
1358
1358
  id: t,
1359
1359
  data: S.data,
1360
1360
  type: T,
@@ -1371,24 +1371,24 @@ function NodeWrapper({ id: t, onClick: n, onMouseEnter: r, onMouseMove: i, onMou
1371
1371
  dragHandle: S.dragHandle,
1372
1372
  zIndex: C.z,
1373
1373
  parentId: S.parentId,
1374
- ...I
1374
+ ...ee
1375
1375
  })
1376
1376
  })
1377
1377
  });
1378
1378
  }
1379
- var NodeWrapper$1 = memo(NodeWrapper), selector$b = (e) => ({
1379
+ var vn = U(_n), yn = (e) => ({
1380
1380
  nodesDraggable: e.nodesDraggable,
1381
1381
  nodesConnectable: e.nodesConnectable,
1382
1382
  nodesFocusable: e.nodesFocusable,
1383
1383
  elementsSelectable: e.elementsSelectable,
1384
1384
  onError: e.onError
1385
1385
  });
1386
- function NodeRendererComponent(e) {
1387
- let { nodesDraggable: t, nodesConnectable: n, nodesFocusable: r, elementsSelectable: i, onError: a } = useStore(selector$b, shallow), o = useVisibleNodeIds(e.onlyRenderVisibleElements), s = useResizeObserver();
1388
- return jsx("div", {
1386
+ function bn(e) {
1387
+ let { nodesDraggable: t, nodesConnectable: n, nodesFocusable: r, elementsSelectable: i, onError: a } = Q(yn, Z), o = pn(e.onlyRenderVisibleElements), s = hn();
1388
+ return Y("div", {
1389
1389
  className: "react-flow__nodes",
1390
- style: containerStyle,
1391
- children: o.map((o) => jsx(NodeWrapper$1, {
1390
+ style: Nt,
1391
+ children: o.map((o) => Y(vn, {
1392
1392
  id: o,
1393
1393
  nodeTypes: e.nodeTypes,
1394
1394
  nodeExtent: e.nodeExtent,
@@ -1412,15 +1412,15 @@ function NodeRendererComponent(e) {
1412
1412
  }, o))
1413
1413
  });
1414
1414
  }
1415
- NodeRendererComponent.displayName = "NodeRenderer";
1416
- var NodeRenderer = memo(NodeRendererComponent);
1417
- function useVisibleEdgeIds(e) {
1418
- return useStore(useCallback((t) => {
1415
+ bn.displayName = "NodeRenderer";
1416
+ var xn = U(bn);
1417
+ function Sn(e) {
1418
+ return Q(W((t) => {
1419
1419
  if (!e) return t.edges.map((e) => e.id);
1420
1420
  let n = [];
1421
1421
  if (t.width && t.height) for (let e of t.edges) {
1422
1422
  let r = t.nodeLookup.get(e.source), i = t.nodeLookup.get(e.target);
1423
- r && i && isEdgeVisible({
1423
+ r && i && ae({
1424
1424
  sourceNode: r,
1425
1425
  targetNode: i,
1426
1426
  width: t.width,
@@ -1429,9 +1429,9 @@ function useVisibleEdgeIds(e) {
1429
1429
  }) && n.push(e.id);
1430
1430
  }
1431
1431
  return n;
1432
- }, [e]), shallow);
1432
+ }, [e]), Z);
1433
1433
  }
1434
- var ArrowSymbol = ({ color: e = "none", strokeWidth: t = 1 }) => jsx("polyline", {
1434
+ var Cn = ({ color: e = "none", strokeWidth: t = 1 }) => Y("polyline", {
1435
1435
  className: "arrow",
1436
1436
  style: {
1437
1437
  strokeWidth: t,
@@ -1441,7 +1441,7 @@ var ArrowSymbol = ({ color: e = "none", strokeWidth: t = 1 }) => jsx("polyline",
1441
1441
  fill: "none",
1442
1442
  strokeLinejoin: "round",
1443
1443
  points: "-5,-4 0,0 -5,4"
1444
- }), ArrowClosedSymbol = ({ color: e = "none", strokeWidth: t = 1 }) => jsx("polyline", {
1444
+ }), wn = ({ color: e = "none", strokeWidth: t = 1 }) => Y("polyline", {
1445
1445
  className: "arrowclosed",
1446
1446
  style: {
1447
1447
  strokeWidth: t,
@@ -1453,17 +1453,17 @@ var ArrowSymbol = ({ color: e = "none", strokeWidth: t = 1 }) => jsx("polyline",
1453
1453
  strokeLinecap: "round",
1454
1454
  strokeLinejoin: "round",
1455
1455
  points: "-5,-4 0,0 -5,4 -5,-4"
1456
- }), MarkerSymbols = {
1457
- [MarkerType.Arrow]: ArrowSymbol,
1458
- [MarkerType.ArrowClosed]: ArrowClosedSymbol
1456
+ }), Tn = {
1457
+ [r.Arrow]: Cn,
1458
+ [r.ArrowClosed]: wn
1459
1459
  };
1460
- function useMarkerSymbol(e) {
1461
- let t = useStoreApi();
1462
- return useMemo(() => Object.prototype.hasOwnProperty.call(MarkerSymbols, e) ? MarkerSymbols[e] : (t.getState().onError?.("009", errorMessages.error009(e)), null), [e]);
1460
+ function En(e) {
1461
+ let t = $();
1462
+ return K(() => Object.prototype.hasOwnProperty.call(Tn, e) ? Tn[e] : (t.getState().onError?.("009", x.error009(e)), null), [e]);
1463
1463
  }
1464
- var Marker = ({ id: e, type: t, color: n, width: r = 12.5, height: i = 12.5, markerUnits: a = "strokeWidth", strokeWidth: o, orient: s = "auto-start-reverse" }) => {
1465
- let c = useMarkerSymbol(t);
1466
- return c ? jsx("marker", {
1464
+ var Dn = ({ id: e, type: t, color: n, width: r = 12.5, height: i = 12.5, markerUnits: a = "strokeWidth", strokeWidth: o, orient: s = "auto-start-reverse" }) => {
1465
+ let c = En(t);
1466
+ return c ? Y("marker", {
1467
1467
  className: "react-flow__arrowhead",
1468
1468
  id: e,
1469
1469
  markerWidth: `${r}`,
@@ -1473,13 +1473,13 @@ var Marker = ({ id: e, type: t, color: n, width: r = 12.5, height: i = 12.5, mar
1473
1473
  orient: s,
1474
1474
  refX: "0",
1475
1475
  refY: "0",
1476
- children: jsx(c, {
1476
+ children: Y(c, {
1477
1477
  color: n,
1478
1478
  strokeWidth: o
1479
1479
  })
1480
1480
  }) : null;
1481
- }, MarkerDefinitions = ({ defaultColor: e, rfId: t }) => {
1482
- let n = useStore((e) => e.edges), r = useStore((e) => e.defaultEdgeOptions), i = useMemo(() => createMarkerIds(n, {
1481
+ }, On = ({ defaultColor: e, rfId: t }) => {
1482
+ let n = Q((e) => e.edges), r = Q((e) => e.defaultEdgeOptions), i = K(() => _(n, {
1483
1483
  id: t,
1484
1484
  defaultColor: e,
1485
1485
  defaultMarkerStart: r?.markerStart,
@@ -1490,10 +1490,10 @@ var Marker = ({ id: e, type: t, color: n, width: r = 12.5, height: i = 12.5, mar
1490
1490
  t,
1491
1491
  e
1492
1492
  ]);
1493
- return i.length ? jsx("svg", {
1493
+ return i.length ? Y("svg", {
1494
1494
  className: "react-flow__marker",
1495
1495
  "aria-hidden": "true",
1496
- children: jsx("defs", { children: i.map((e) => jsx(Marker, {
1496
+ children: Y("defs", { children: i.map((e) => Y(Dn, {
1497
1497
  id: e.id,
1498
1498
  type: e.type,
1499
1499
  color: e.color,
@@ -1505,16 +1505,16 @@ var Marker = ({ id: e, type: t, color: n, width: r = 12.5, height: i = 12.5, mar
1505
1505
  }, e.id)) })
1506
1506
  }) : null;
1507
1507
  };
1508
- MarkerDefinitions.displayName = "MarkerDefinitions";
1509
- var MarkerDefinitions$1 = memo(MarkerDefinitions);
1510
- function EdgeTextComponent({ x: t, y: n, label: r, labelStyle: i, labelShowBg: a = !0, labelBgStyle: o, labelBgPadding: s = [2, 4], labelBgBorderRadius: c = 2, children: l, className: u, ...d }) {
1511
- let [f, p] = useState({
1508
+ On.displayName = "MarkerDefinitions";
1509
+ var kn = U(On);
1510
+ function An({ x: t, y: n, label: r, labelStyle: i, labelShowBg: a = !0, labelBgStyle: o, labelBgPadding: s = [2, 4], labelBgBorderRadius: c = 2, children: l, className: u, ...d }) {
1511
+ let [f, p] = J({
1512
1512
  x: 1,
1513
1513
  y: 0,
1514
1514
  width: 0,
1515
1515
  height: 0
1516
- }), m = cc(["react-flow__edge-textwrapper", u]), h = useRef(null);
1517
- return useEffect(() => {
1516
+ }), m = e(["react-flow__edge-textwrapper", u]), h = q(null);
1517
+ return G(() => {
1518
1518
  if (h.current) {
1519
1519
  let e = h.current.getBBox();
1520
1520
  p({
@@ -1524,13 +1524,13 @@ function EdgeTextComponent({ x: t, y: n, label: r, labelStyle: i, labelShowBg: a
1524
1524
  height: e.height
1525
1525
  });
1526
1526
  }
1527
- }, [r]), r ? jsxs("g", {
1527
+ }, [r]), r ? X("g", {
1528
1528
  transform: `translate(${t - f.width / 2} ${n - f.height / 2})`,
1529
1529
  className: m,
1530
1530
  visibility: f.width ? "visible" : "hidden",
1531
1531
  ...d,
1532
1532
  children: [
1533
- a && jsx("rect", {
1533
+ a && Y("rect", {
1534
1534
  width: f.width + 2 * s[0],
1535
1535
  x: -s[0],
1536
1536
  y: -s[1],
@@ -1540,7 +1540,7 @@ function EdgeTextComponent({ x: t, y: n, label: r, labelStyle: i, labelShowBg: a
1540
1540
  rx: c,
1541
1541
  ry: c
1542
1542
  }),
1543
- jsx("text", {
1543
+ Y("text", {
1544
1544
  className: "react-flow__edge-text",
1545
1545
  y: f.height / 2,
1546
1546
  dy: "0.3em",
@@ -1552,24 +1552,24 @@ function EdgeTextComponent({ x: t, y: n, label: r, labelStyle: i, labelShowBg: a
1552
1552
  ]
1553
1553
  }) : null;
1554
1554
  }
1555
- EdgeTextComponent.displayName = "EdgeText";
1556
- var EdgeText = memo(EdgeTextComponent);
1557
- function BaseEdge({ path: t, labelX: n, labelY: r, label: i, labelStyle: a, labelShowBg: o, labelBgStyle: s, labelBgPadding: c, labelBgBorderRadius: l, interactionWidth: u = 20, ...d }) {
1558
- return jsxs(Fragment$1, { children: [
1559
- jsx("path", {
1555
+ An.displayName = "EdgeText";
1556
+ var jn = U(An);
1557
+ function Mn({ path: t, labelX: n, labelY: r, label: i, labelStyle: a, labelShowBg: o, labelBgStyle: s, labelBgPadding: c, labelBgBorderRadius: l, interactionWidth: u = 20, ...d }) {
1558
+ return X(De, { children: [
1559
+ Y("path", {
1560
1560
  ...d,
1561
1561
  d: t,
1562
1562
  fill: "none",
1563
- className: cc(["react-flow__edge-path", d.className])
1563
+ className: e(["react-flow__edge-path", d.className])
1564
1564
  }),
1565
- u ? jsx("path", {
1565
+ u ? Y("path", {
1566
1566
  d: t,
1567
1567
  fill: "none",
1568
1568
  strokeOpacity: 0,
1569
1569
  strokeWidth: u,
1570
1570
  className: "react-flow__edge-interaction"
1571
1571
  }) : null,
1572
- i && isNumeric(n) && isNumeric(r) ? jsx(EdgeText, {
1572
+ i && ue(n) && ue(r) ? Y(jn, {
1573
1573
  x: n,
1574
1574
  y: r,
1575
1575
  label: i,
@@ -1581,23 +1581,23 @@ function BaseEdge({ path: t, labelX: n, labelY: r, label: i, labelStyle: a, labe
1581
1581
  }) : null
1582
1582
  ] });
1583
1583
  }
1584
- function getControl({ pos: e, x1: t, y1: n, x2: r, y2: i }) {
1585
- return e === Position.Left || e === Position.Right ? [.5 * (t + r), n] : [t, .5 * (n + i)];
1584
+ function Nn({ pos: e, x1: t, y1: n, x2: r, y2: i }) {
1585
+ return e === a.Left || e === a.Right ? [.5 * (t + r), n] : [t, .5 * (n + i)];
1586
1586
  }
1587
- function getSimpleBezierPath({ sourceX: e, sourceY: t, sourcePosition: n = Position.Bottom, targetX: r, targetY: i, targetPosition: o = Position.Top }) {
1588
- let [s, c] = getControl({
1587
+ function Pn({ sourceX: e, sourceY: t, sourcePosition: n = a.Bottom, targetX: r, targetY: i, targetPosition: o = a.Top }) {
1588
+ let [s, c] = Nn({
1589
1589
  pos: n,
1590
1590
  x1: e,
1591
1591
  y1: t,
1592
1592
  x2: r,
1593
1593
  y2: i
1594
- }), [l, u] = getControl({
1594
+ }), [l, u] = Nn({
1595
1595
  pos: o,
1596
1596
  x1: r,
1597
1597
  y1: i,
1598
1598
  x2: e,
1599
1599
  y2: t
1600
- }), [d, f, p, m] = getBezierEdgeCenter({
1600
+ }), [d, f, p, m] = w({
1601
1601
  sourceX: e,
1602
1602
  sourceY: t,
1603
1603
  targetX: r,
@@ -1615,9 +1615,9 @@ function getSimpleBezierPath({ sourceX: e, sourceY: t, sourcePosition: n = Posit
1615
1615
  m
1616
1616
  ];
1617
1617
  }
1618
- function createSimpleBezierEdge(e) {
1619
- return memo(({ id: t, sourceX: n, sourceY: r, targetX: i, targetY: a, sourcePosition: o, targetPosition: s, label: c, labelStyle: l, labelShowBg: u, labelBgStyle: d, labelBgPadding: f, labelBgBorderRadius: p, style: m, markerEnd: h, markerStart: g, interactionWidth: _ }) => {
1620
- let [v, y, b] = getSimpleBezierPath({
1618
+ function Fn(e) {
1619
+ return U(({ id: t, sourceX: n, sourceY: r, targetX: i, targetY: a, sourcePosition: o, targetPosition: s, label: c, labelStyle: l, labelShowBg: u, labelBgStyle: d, labelBgPadding: f, labelBgBorderRadius: p, style: m, markerEnd: h, markerStart: g, interactionWidth: _ }) => {
1620
+ let [v, y, b] = Pn({
1621
1621
  sourceX: n,
1622
1622
  sourceY: r,
1623
1623
  sourcePosition: o,
@@ -1625,7 +1625,7 @@ function createSimpleBezierEdge(e) {
1625
1625
  targetY: a,
1626
1626
  targetPosition: s
1627
1627
  });
1628
- return jsx(BaseEdge, {
1628
+ return Y(Mn, {
1629
1629
  id: e.isInternal ? void 0 : t,
1630
1630
  path: v,
1631
1631
  labelX: y,
@@ -1643,11 +1643,11 @@ function createSimpleBezierEdge(e) {
1643
1643
  });
1644
1644
  });
1645
1645
  }
1646
- var SimpleBezierEdge = createSimpleBezierEdge({ isInternal: !1 }), SimpleBezierEdgeInternal = createSimpleBezierEdge({ isInternal: !0 });
1647
- SimpleBezierEdge.displayName = "SimpleBezierEdge", SimpleBezierEdgeInternal.displayName = "SimpleBezierEdgeInternal";
1648
- function createSmoothStepEdge(e) {
1649
- return memo(({ id: t, sourceX: n, sourceY: r, targetX: i, targetY: o, label: s, labelStyle: c, labelShowBg: l, labelBgStyle: u, labelBgPadding: d, labelBgBorderRadius: f, style: p, sourcePosition: m = Position.Bottom, targetPosition: h = Position.Top, markerEnd: g, markerStart: _, pathOptions: v, interactionWidth: y }) => {
1650
- let [b, x, S] = getSmoothStepPath({
1646
+ var In = Fn({ isInternal: !1 }), Ln = Fn({ isInternal: !0 });
1647
+ In.displayName = "SimpleBezierEdge", Ln.displayName = "SimpleBezierEdgeInternal";
1648
+ function Rn(e) {
1649
+ return U(({ id: t, sourceX: n, sourceY: r, targetX: i, targetY: o, label: s, labelStyle: c, labelShowBg: l, labelBgStyle: u, labelBgPadding: d, labelBgBorderRadius: f, style: p, sourcePosition: m = a.Bottom, targetPosition: h = a.Top, markerEnd: g, markerStart: _, pathOptions: v, interactionWidth: y }) => {
1650
+ let [b, x, S] = B({
1651
1651
  sourceX: n,
1652
1652
  sourceY: r,
1653
1653
  sourcePosition: m,
@@ -1658,7 +1658,7 @@ function createSmoothStepEdge(e) {
1658
1658
  offset: v?.offset,
1659
1659
  stepPosition: v?.stepPosition
1660
1660
  });
1661
- return jsx(BaseEdge, {
1661
+ return Y(Mn, {
1662
1662
  id: e.isInternal ? void 0 : t,
1663
1663
  path: b,
1664
1664
  labelX: x,
@@ -1676,32 +1676,32 @@ function createSmoothStepEdge(e) {
1676
1676
  });
1677
1677
  });
1678
1678
  }
1679
- var SmoothStepEdge = createSmoothStepEdge({ isInternal: !1 }), SmoothStepEdgeInternal = createSmoothStepEdge({ isInternal: !0 });
1680
- SmoothStepEdge.displayName = "SmoothStepEdge", SmoothStepEdgeInternal.displayName = "SmoothStepEdgeInternal";
1681
- function createStepEdge(e) {
1682
- return memo(({ id: t, ...n }) => {
1679
+ var zn = Rn({ isInternal: !1 }), Bn = Rn({ isInternal: !0 });
1680
+ zn.displayName = "SmoothStepEdge", Bn.displayName = "SmoothStepEdgeInternal";
1681
+ function Vn(e) {
1682
+ return U(({ id: t, ...n }) => {
1683
1683
  let r = e.isInternal ? void 0 : t;
1684
- return jsx(SmoothStepEdge, {
1684
+ return Y(zn, {
1685
1685
  ...n,
1686
1686
  id: r,
1687
- pathOptions: useMemo(() => ({
1687
+ pathOptions: K(() => ({
1688
1688
  borderRadius: 0,
1689
1689
  offset: n.pathOptions?.offset
1690
1690
  }), [n.pathOptions?.offset])
1691
1691
  });
1692
1692
  });
1693
1693
  }
1694
- var StepEdge = createStepEdge({ isInternal: !1 }), StepEdgeInternal = createStepEdge({ isInternal: !0 });
1695
- StepEdge.displayName = "StepEdge", StepEdgeInternal.displayName = "StepEdgeInternal";
1696
- function createStraightEdge(e) {
1697
- return memo(({ id: t, sourceX: n, sourceY: r, targetX: i, targetY: a, label: o, labelStyle: s, labelShowBg: c, labelBgStyle: l, labelBgPadding: u, labelBgBorderRadius: d, style: f, markerEnd: p, markerStart: m, interactionWidth: h }) => {
1698
- let [g, _, v] = getStraightPath({
1694
+ var Hn = Vn({ isInternal: !1 }), Un = Vn({ isInternal: !0 });
1695
+ Hn.displayName = "StepEdge", Un.displayName = "StepEdgeInternal";
1696
+ function Wn(e) {
1697
+ return U(({ id: t, sourceX: n, sourceY: r, targetX: i, targetY: a, label: o, labelStyle: s, labelShowBg: c, labelBgStyle: l, labelBgPadding: u, labelBgBorderRadius: d, style: f, markerEnd: p, markerStart: m, interactionWidth: h }) => {
1698
+ let [g, _, v] = V({
1699
1699
  sourceX: n,
1700
1700
  sourceY: r,
1701
1701
  targetX: i,
1702
1702
  targetY: a
1703
1703
  });
1704
- return jsx(BaseEdge, {
1704
+ return Y(Mn, {
1705
1705
  id: e.isInternal ? void 0 : t,
1706
1706
  path: g,
1707
1707
  labelX: _,
@@ -1719,11 +1719,11 @@ function createStraightEdge(e) {
1719
1719
  });
1720
1720
  });
1721
1721
  }
1722
- var StraightEdge = createStraightEdge({ isInternal: !1 }), StraightEdgeInternal = createStraightEdge({ isInternal: !0 });
1723
- StraightEdge.displayName = "StraightEdge", StraightEdgeInternal.displayName = "StraightEdgeInternal";
1724
- function createBezierEdge(e) {
1725
- return memo(({ id: t, sourceX: n, sourceY: r, targetX: i, targetY: o, sourcePosition: s = Position.Bottom, targetPosition: c = Position.Top, label: l, labelStyle: u, labelShowBg: d, labelBgStyle: f, labelBgPadding: p, labelBgBorderRadius: m, style: h, markerEnd: g, markerStart: _, pathOptions: v, interactionWidth: y }) => {
1726
- let [b, x, S] = getBezierPath({
1722
+ var Gn = Wn({ isInternal: !1 }), Kn = Wn({ isInternal: !0 });
1723
+ Gn.displayName = "StraightEdge", Kn.displayName = "StraightEdgeInternal";
1724
+ function qn(e) {
1725
+ return U(({ id: t, sourceX: n, sourceY: r, targetX: i, targetY: o, sourcePosition: s = a.Bottom, targetPosition: c = a.Top, label: l, labelStyle: u, labelShowBg: d, labelBgStyle: f, labelBgPadding: p, labelBgBorderRadius: m, style: h, markerEnd: g, markerStart: _, pathOptions: v, interactionWidth: y }) => {
1726
+ let [b, x, S] = T({
1727
1727
  sourceX: n,
1728
1728
  sourceY: r,
1729
1729
  sourcePosition: s,
@@ -1732,7 +1732,7 @@ function createBezierEdge(e) {
1732
1732
  targetPosition: c,
1733
1733
  curvature: v?.curvature
1734
1734
  });
1735
- return jsx(BaseEdge, {
1735
+ return Y(Mn, {
1736
1736
  id: e.isInternal ? void 0 : t,
1737
1737
  path: b,
1738
1738
  labelX: x,
@@ -1750,40 +1750,40 @@ function createBezierEdge(e) {
1750
1750
  });
1751
1751
  });
1752
1752
  }
1753
- var BezierEdge = createBezierEdge({ isInternal: !1 }), BezierEdgeInternal = createBezierEdge({ isInternal: !0 });
1754
- BezierEdge.displayName = "BezierEdge", BezierEdgeInternal.displayName = "BezierEdgeInternal";
1755
- var builtinEdgeTypes = {
1756
- default: BezierEdgeInternal,
1757
- straight: StraightEdgeInternal,
1758
- step: StepEdgeInternal,
1759
- smoothstep: SmoothStepEdgeInternal,
1760
- simplebezier: SimpleBezierEdgeInternal
1761
- }, nullPosition = {
1753
+ var Jn = qn({ isInternal: !1 }), Yn = qn({ isInternal: !0 });
1754
+ Jn.displayName = "BezierEdge", Yn.displayName = "BezierEdgeInternal";
1755
+ var Xn = {
1756
+ default: Yn,
1757
+ straight: Kn,
1758
+ step: Un,
1759
+ smoothstep: Bn,
1760
+ simplebezier: Ln
1761
+ }, Zn = {
1762
1762
  sourceX: null,
1763
1763
  sourceY: null,
1764
1764
  targetX: null,
1765
1765
  targetY: null,
1766
1766
  sourcePosition: null,
1767
1767
  targetPosition: null
1768
- }, shiftX = (e, t, n) => n === Position.Left ? e - t : n === Position.Right ? e + t : e, shiftY = (e, t, n) => n === Position.Top ? e - t : n === Position.Bottom ? e + t : e, EdgeUpdaterClassName = "react-flow__edgeupdater";
1769
- function EdgeAnchor({ position: t, centerX: n, centerY: r, radius: i = 10, onMouseDown: a, onMouseEnter: o, onMouseOut: s, type: c }) {
1770
- return jsx("circle", {
1768
+ }, Qn = (e, t, n) => n === a.Left ? e - t : n === a.Right ? e + t : e, $n = (e, t, n) => n === a.Top ? e - t : n === a.Bottom ? e + t : e, er = "react-flow__edgeupdater";
1769
+ function tr({ position: t, centerX: n, centerY: r, radius: i = 10, onMouseDown: a, onMouseEnter: o, onMouseOut: s, type: c }) {
1770
+ return Y("circle", {
1771
1771
  onMouseDown: a,
1772
1772
  onMouseEnter: o,
1773
1773
  onMouseOut: s,
1774
- className: cc([EdgeUpdaterClassName, `${EdgeUpdaterClassName}-${c}`]),
1775
- cx: shiftX(n, i, t),
1776
- cy: shiftY(r, i, t),
1774
+ className: e([er, `${er}-${c}`]),
1775
+ cx: Qn(n, i, t),
1776
+ cy: $n(r, i, t),
1777
1777
  r: i,
1778
1778
  stroke: "transparent",
1779
1779
  fill: "transparent"
1780
1780
  });
1781
1781
  }
1782
- function EdgeUpdateAnchors({ isReconnectable: e, reconnectRadius: t, edge: n, sourceX: r, sourceY: i, targetX: a, targetY: o, sourcePosition: s, targetPosition: c, onReconnect: u, onReconnectStart: d, onReconnectEnd: f, setReconnecting: p, setUpdateHover: m }) {
1783
- let h = useStoreApi(), g = (e, t) => {
1782
+ function nr({ isReconnectable: e, reconnectRadius: t, edge: n, sourceX: r, sourceY: i, targetX: a, targetY: o, sourcePosition: s, targetPosition: c, onReconnect: u, onReconnectStart: d, onReconnectEnd: f, setReconnecting: p, setUpdateHover: m }) {
1783
+ let h = $(), g = (e, t) => {
1784
1784
  if (e.button !== 0) return;
1785
1785
  let { autoPanOnConnect: r, domNode: i, connectionMode: a, connectionRadius: o, lib: s, onConnectStart: c, cancelConnection: m, nodeLookup: g, rfId: _, panBy: v, updateConnection: y } = h.getState(), b = t.type === "target";
1786
- XYHandle.onPointerDown(e.nativeEvent, {
1786
+ l.onPointerDown(e.nativeEvent, {
1787
1787
  autoPanOnConnect: r,
1788
1788
  connectionMode: a,
1789
1789
  connectionRadius: o,
@@ -1821,7 +1821,7 @@ function EdgeUpdateAnchors({ isReconnectable: e, reconnectRadius: t, edge: n, so
1821
1821
  id: n.sourceHandle ?? null,
1822
1822
  type: "source"
1823
1823
  }), y = () => m(!0), b = () => m(!1);
1824
- return jsxs(Fragment$1, { children: [(e === !0 || e === "source") && jsx(EdgeAnchor, {
1824
+ return X(De, { children: [(e === !0 || e === "source") && Y(tr, {
1825
1825
  position: s,
1826
1826
  centerX: r,
1827
1827
  centerY: i,
@@ -1830,7 +1830,7 @@ function EdgeUpdateAnchors({ isReconnectable: e, reconnectRadius: t, edge: n, so
1830
1830
  onMouseEnter: y,
1831
1831
  onMouseOut: b,
1832
1832
  type: "source"
1833
- }), (e === !0 || e === "target") && jsx(EdgeAnchor, {
1833
+ }), (e === !0 || e === "target") && Y(tr, {
1834
1834
  position: c,
1835
1835
  centerX: a,
1836
1836
  centerY: o,
@@ -1841,21 +1841,21 @@ function EdgeUpdateAnchors({ isReconnectable: e, reconnectRadius: t, edge: n, so
1841
1841
  type: "target"
1842
1842
  })] });
1843
1843
  }
1844
- function EdgeWrapper({ id: t, edgesFocusable: n, edgesReconnectable: r, elementsSelectable: i, onClick: a, onDoubleClick: o, onContextMenu: s, onMouseEnter: c, onMouseMove: l, onMouseLeave: u, reconnectRadius: d, onReconnect: f, onReconnectStart: p, onReconnectEnd: m, rfId: h, edgeTypes: g, noPanClassName: _, onError: v, disableKeyboardA11y: y }) {
1845
- let S = useStore((e) => e.edgeLookup.get(t)), C = useStore((e) => e.defaultEdgeOptions);
1844
+ function rr({ id: t, edgesFocusable: n, edgesReconnectable: r, elementsSelectable: i, onClick: a, onDoubleClick: o, onContextMenu: s, onMouseEnter: c, onMouseMove: l, onMouseLeave: u, reconnectRadius: d, onReconnect: f, onReconnectStart: p, onReconnectEnd: m, rfId: h, edgeTypes: g, noPanClassName: _, onError: v, disableKeyboardA11y: y }) {
1845
+ let S = Q((e) => e.edgeLookup.get(t)), C = Q((e) => e.defaultEdgeOptions);
1846
1846
  S = C ? {
1847
1847
  ...C,
1848
1848
  ...S
1849
1849
  } : S;
1850
- let w = S.type || "default", T = g?.[w] || builtinEdgeTypes[w];
1851
- T === void 0 && (v?.("011", errorMessages.error011(w)), w = "default", T = g?.default || builtinEdgeTypes.default);
1852
- let E = !!(S.focusable || n && S.focusable === void 0), D = f !== void 0 && (S.reconnectable || r && S.reconnectable === void 0), O = !!(S.selectable || i && S.selectable === void 0), k = useRef(null), [A, M] = useState(!1), [P, F] = useState(!1), I = useStoreApi(), { zIndex: L, sourceX: z, sourceY: B, targetX: V, targetY: H, sourcePosition: U, targetPosition: W } = useStore(useCallback((e) => {
1850
+ let w = S.type || "default", T = g?.[w] || Xn[w];
1851
+ T === void 0 && (v?.("011", x.error011(w)), w = "default", T = g?.default || Xn.default);
1852
+ let E = !!(S.focusable || n && S.focusable === void 0), D = f !== void 0 && (S.reconnectable || r && S.reconnectable === void 0), O = !!(S.selectable || i && S.selectable === void 0), A = q(null), [M, N] = J(!1), [P, F] = J(!1), I = $(), { zIndex: L, sourceX: R, sourceY: z, targetX: B, targetY: V, sourcePosition: H, targetPosition: te } = Q(W((e) => {
1853
1853
  let n = e.nodeLookup.get(S.source), r = e.nodeLookup.get(S.target);
1854
1854
  if (!n || !r) return {
1855
1855
  zIndex: S.zIndex,
1856
- ...nullPosition
1856
+ ...Zn
1857
1857
  };
1858
- let i = getEdgePosition({
1858
+ let i = k({
1859
1859
  id: t,
1860
1860
  sourceNode: n,
1861
1861
  targetNode: r,
@@ -1865,7 +1865,7 @@ function EdgeWrapper({ id: t, edgesFocusable: n, edgesReconnectable: r, elements
1865
1865
  onError: v
1866
1866
  });
1867
1867
  return {
1868
- zIndex: getElevatedEdgeZIndex({
1868
+ zIndex: j({
1869
1869
  selected: S.selected,
1870
1870
  zIndex: S.zIndex,
1871
1871
  sourceNode: n,
@@ -1873,7 +1873,7 @@ function EdgeWrapper({ id: t, edgesFocusable: n, edgesReconnectable: r, elements
1873
1873
  elevateOnSelect: e.elevateEdgesOnSelect,
1874
1874
  zIndexMode: e.zIndexMode
1875
1875
  }),
1876
- ...i || nullPosition
1876
+ ...i || Zn
1877
1877
  };
1878
1878
  }, [
1879
1879
  S.source,
@@ -1882,29 +1882,29 @@ function EdgeWrapper({ id: t, edgesFocusable: n, edgesReconnectable: r, elements
1882
1882
  S.targetHandle,
1883
1883
  S.selected,
1884
1884
  S.zIndex
1885
- ]), shallow), G = useMemo(() => S.markerStart ? `url('#${getMarkerId(S.markerStart, h)}')` : void 0, [S.markerStart, h]), K = useMemo(() => S.markerEnd ? `url('#${getMarkerId(S.markerEnd, h)}')` : void 0, [S.markerEnd, h]);
1886
- if (S.hidden || z === null || B === null || V === null || H === null) return null;
1887
- let q = (e) => {
1885
+ ]), Z), ne = K(() => S.markerStart ? `url('#${ee(S.markerStart, h)}')` : void 0, [S.markerStart, h]), re = K(() => S.markerEnd ? `url('#${ee(S.markerEnd, h)}')` : void 0, [S.markerEnd, h]);
1886
+ if (S.hidden || R === null || z === null || B === null || V === null) return null;
1887
+ let ie = (e) => {
1888
1888
  let { addSelectedEdges: n, unselectNodesAndEdges: r, multiSelectionActive: i } = I.getState();
1889
1889
  O && (I.setState({ nodesSelectionActive: !1 }), S.selected && i ? (r({
1890
1890
  nodes: [],
1891
1891
  edges: [S]
1892
- }), k.current?.blur()) : n([t])), a && a(e, S);
1893
- }, J = o ? (e) => {
1892
+ }), A.current?.blur()) : n([t])), a && a(e, S);
1893
+ }, ae = o ? (e) => {
1894
1894
  o(e, { ...S });
1895
- } : void 0, Y = s ? (e) => {
1895
+ } : void 0, oe = s ? (e) => {
1896
1896
  s(e, { ...S });
1897
- } : void 0, X = c ? (e) => {
1897
+ } : void 0, se = c ? (e) => {
1898
1898
  c(e, { ...S });
1899
- } : void 0, Z = l ? (e) => {
1899
+ } : void 0, ce = l ? (e) => {
1900
1900
  l(e, { ...S });
1901
- } : void 0, Vn = u ? (e) => {
1901
+ } : void 0, le = u ? (e) => {
1902
1902
  u(e, { ...S });
1903
1903
  } : void 0;
1904
- return jsx("svg", {
1904
+ return Y("svg", {
1905
1905
  style: { zIndex: L },
1906
- children: jsxs("g", {
1907
- className: cc([
1906
+ children: X("g", {
1907
+ className: e([
1908
1908
  "react-flow__edge",
1909
1909
  `react-flow__edge-${w}`,
1910
1910
  S.className,
@@ -1913,20 +1913,20 @@ function EdgeWrapper({ id: t, edgesFocusable: n, edgesReconnectable: r, elements
1913
1913
  selected: S.selected,
1914
1914
  animated: S.animated,
1915
1915
  inactive: !O && !a,
1916
- updating: A,
1916
+ updating: M,
1917
1917
  selectable: O
1918
1918
  }
1919
1919
  ]),
1920
- onClick: q,
1921
- onDoubleClick: J,
1922
- onContextMenu: Y,
1923
- onMouseEnter: X,
1924
- onMouseMove: Z,
1925
- onMouseLeave: Vn,
1920
+ onClick: ie,
1921
+ onDoubleClick: ae,
1922
+ onContextMenu: oe,
1923
+ onMouseEnter: se,
1924
+ onMouseMove: ce,
1925
+ onMouseLeave: le,
1926
1926
  onKeyDown: E ? (e) => {
1927
- if (!y && elementSelectionKeys.includes(e.key) && O) {
1927
+ if (!y && b.includes(e.key) && O) {
1928
1928
  let { unselectNodesAndEdges: n, addSelectedEdges: r } = I.getState();
1929
- e.key === "Escape" ? (k.current?.blur(), n({ edges: [S] })) : r([t]);
1929
+ e.key === "Escape" ? (A.current?.blur(), n({ edges: [S] })) : r([t]);
1930
1930
  }
1931
1931
  } : void 0,
1932
1932
  tabIndex: E ? 0 : void 0,
@@ -1935,10 +1935,10 @@ function EdgeWrapper({ id: t, edgesFocusable: n, edgesReconnectable: r, elements
1935
1935
  "data-id": t,
1936
1936
  "data-testid": `rf__edge-${t}`,
1937
1937
  "aria-label": S.ariaLabel === null ? void 0 : S.ariaLabel || `Edge from ${S.source} to ${S.target}`,
1938
- "aria-describedby": E ? `${ARIA_EDGE_DESC_KEY}-${h}` : void 0,
1939
- ref: k,
1938
+ "aria-describedby": E ? `${Le}-${h}` : void 0,
1939
+ ref: A,
1940
1940
  ...S.domAttributes,
1941
- children: [!P && jsx(T, {
1941
+ children: [!P && Y(T, {
1942
1942
  id: t,
1943
1943
  source: S.source,
1944
1944
  target: S.target,
@@ -1953,54 +1953,54 @@ function EdgeWrapper({ id: t, edgesFocusable: n, edgesReconnectable: r, elements
1953
1953
  labelBgStyle: S.labelBgStyle,
1954
1954
  labelBgPadding: S.labelBgPadding,
1955
1955
  labelBgBorderRadius: S.labelBgBorderRadius,
1956
- sourceX: z,
1957
- sourceY: B,
1958
- targetX: V,
1959
- targetY: H,
1960
- sourcePosition: U,
1961
- targetPosition: W,
1956
+ sourceX: R,
1957
+ sourceY: z,
1958
+ targetX: B,
1959
+ targetY: V,
1960
+ sourcePosition: H,
1961
+ targetPosition: te,
1962
1962
  data: S.data,
1963
1963
  style: S.style,
1964
1964
  sourceHandleId: S.sourceHandle,
1965
1965
  targetHandleId: S.targetHandle,
1966
- markerStart: G,
1967
- markerEnd: K,
1966
+ markerStart: ne,
1967
+ markerEnd: re,
1968
1968
  pathOptions: "pathOptions" in S ? S.pathOptions : void 0,
1969
1969
  interactionWidth: S.interactionWidth
1970
- }), D && jsx(EdgeUpdateAnchors, {
1970
+ }), D && Y(nr, {
1971
1971
  edge: S,
1972
1972
  isReconnectable: D,
1973
1973
  reconnectRadius: d,
1974
1974
  onReconnect: f,
1975
1975
  onReconnectStart: p,
1976
1976
  onReconnectEnd: m,
1977
- sourceX: z,
1978
- sourceY: B,
1979
- targetX: V,
1980
- targetY: H,
1981
- sourcePosition: U,
1982
- targetPosition: W,
1983
- setUpdateHover: M,
1977
+ sourceX: R,
1978
+ sourceY: z,
1979
+ targetX: B,
1980
+ targetY: V,
1981
+ sourcePosition: H,
1982
+ targetPosition: te,
1983
+ setUpdateHover: N,
1984
1984
  setReconnecting: F
1985
1985
  })]
1986
1986
  })
1987
1987
  });
1988
1988
  }
1989
- var EdgeWrapper$1 = memo(EdgeWrapper), selector$a = (e) => ({
1989
+ var ir = U(rr), ar = (e) => ({
1990
1990
  edgesFocusable: e.edgesFocusable,
1991
1991
  edgesReconnectable: e.edgesReconnectable,
1992
1992
  elementsSelectable: e.elementsSelectable,
1993
1993
  connectionMode: e.connectionMode,
1994
1994
  onError: e.onError
1995
1995
  });
1996
- function EdgeRendererComponent({ defaultMarkerColor: e, onlyRenderVisibleElements: t, rfId: n, edgeTypes: r, noPanClassName: i, onReconnect: a, onEdgeContextMenu: o, onEdgeMouseEnter: s, onEdgeMouseMove: c, onEdgeMouseLeave: l, onEdgeClick: u, reconnectRadius: d, onEdgeDoubleClick: f, onReconnectStart: p, onReconnectEnd: m, disableKeyboardA11y: h }) {
1997
- let { edgesFocusable: g, edgesReconnectable: _, elementsSelectable: v, onError: y } = useStore(selector$a, shallow), b = useVisibleEdgeIds(t);
1998
- return jsxs("div", {
1996
+ function or({ defaultMarkerColor: e, onlyRenderVisibleElements: t, rfId: n, edgeTypes: r, noPanClassName: i, onReconnect: a, onEdgeContextMenu: o, onEdgeMouseEnter: s, onEdgeMouseMove: c, onEdgeMouseLeave: l, onEdgeClick: u, reconnectRadius: d, onEdgeDoubleClick: f, onReconnectStart: p, onReconnectEnd: m, disableKeyboardA11y: h }) {
1997
+ let { edgesFocusable: g, edgesReconnectable: _, elementsSelectable: v, onError: y } = Q(ar, Z), b = Sn(t);
1998
+ return X("div", {
1999
1999
  className: "react-flow__edges",
2000
- children: [jsx(MarkerDefinitions$1, {
2000
+ children: [Y(kn, {
2001
2001
  defaultColor: e,
2002
2002
  rfId: n
2003
- }), b.map((e) => jsx(EdgeWrapper$1, {
2003
+ }), b.map((e) => Y(ir, {
2004
2004
  id: e,
2005
2005
  edgesFocusable: g,
2006
2006
  edgesReconnectable: _,
@@ -2023,25 +2023,25 @@ function EdgeRendererComponent({ defaultMarkerColor: e, onlyRenderVisibleElement
2023
2023
  }, e))]
2024
2024
  });
2025
2025
  }
2026
- EdgeRendererComponent.displayName = "EdgeRenderer";
2027
- var EdgeRenderer = memo(EdgeRendererComponent), selector$9 = (e) => `translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;
2028
- function Viewport({ children: e }) {
2029
- return jsx("div", {
2026
+ or.displayName = "EdgeRenderer";
2027
+ var sr = U(or), cr = (e) => `translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;
2028
+ function lr({ children: e }) {
2029
+ return Y("div", {
2030
2030
  className: "react-flow__viewport xyflow__viewport react-flow__container",
2031
- style: { transform: useStore(selector$9) },
2031
+ style: { transform: Q(cr) },
2032
2032
  children: e
2033
2033
  });
2034
2034
  }
2035
- function useOnInitHandler(e) {
2036
- let t = useReactFlow(), n = useRef(!1);
2037
- useEffect(() => {
2035
+ function ur(e) {
2036
+ let t = Ot(), n = q(!1);
2037
+ G(() => {
2038
2038
  !n.current && t.viewportInitialized && e && (setTimeout(() => e(t), 1), n.current = !0);
2039
2039
  }, [e, t.viewportInitialized]);
2040
2040
  }
2041
- var selector$8 = (e) => e.panZoom?.syncViewport;
2042
- function useViewportSync(e) {
2043
- let t = useStore(selector$8), n = useStoreApi();
2044
- return useEffect(() => {
2041
+ var dr = (e) => e.panZoom?.syncViewport;
2042
+ function fr(e) {
2043
+ let t = Q(dr), n = $();
2044
+ return G(() => {
2045
2045
  e && (t?.(e), n.setState({ transform: [
2046
2046
  e.x,
2047
2047
  e.y,
@@ -2049,35 +2049,35 @@ function useViewportSync(e) {
2049
2049
  ] }));
2050
2050
  }, [e, t]), null;
2051
2051
  }
2052
- function storeSelector$1(e) {
2052
+ function pr(e) {
2053
2053
  return e.connection.inProgress ? {
2054
2054
  ...e.connection,
2055
- to: pointToRendererPoint(e.connection.to, e.transform)
2055
+ to: ge(e.connection.to, e.transform)
2056
2056
  } : { ...e.connection };
2057
2057
  }
2058
- function getSelector(e) {
2059
- return e ? (t) => e(storeSelector$1(t)) : storeSelector$1;
2058
+ function mr(e) {
2059
+ return e ? (t) => e(pr(t)) : pr;
2060
2060
  }
2061
- function useConnection(e) {
2062
- return useStore(getSelector(e), shallow);
2061
+ function hr(e) {
2062
+ return Q(mr(e), Z);
2063
2063
  }
2064
- var selector$7 = (e) => ({
2064
+ var gr = (e) => ({
2065
2065
  nodesConnectable: e.nodesConnectable,
2066
2066
  isValid: e.connection.isValid,
2067
2067
  inProgress: e.connection.inProgress,
2068
2068
  width: e.width,
2069
2069
  height: e.height
2070
2070
  });
2071
- function ConnectionLineWrapper({ containerStyle: t, style: n, type: r, component: i }) {
2072
- let { nodesConnectable: a, width: o, height: s, isValid: c, inProgress: l } = useStore(selector$7, shallow);
2073
- return o && a && l ? jsx("svg", {
2071
+ function _r({ containerStyle: t, style: n, type: r, component: i }) {
2072
+ let { nodesConnectable: a, width: o, height: s, isValid: c, inProgress: l } = Q(gr, Z);
2073
+ return o && a && l ? Y("svg", {
2074
2074
  style: t,
2075
2075
  width: o,
2076
2076
  height: s,
2077
2077
  className: "react-flow__connectionline react-flow__container",
2078
- children: jsx("g", {
2079
- className: cc(["react-flow__connection", getConnectionStatus(c)]),
2080
- children: jsx(ConnectionLine, {
2078
+ children: Y("g", {
2079
+ className: e(["react-flow__connection", D(c)]),
2080
+ children: Y(vr, {
2081
2081
  style: n,
2082
2082
  type: r,
2083
2083
  CustomComponent: i,
@@ -2086,10 +2086,10 @@ function ConnectionLineWrapper({ containerStyle: t, style: n, type: r, component
2086
2086
  })
2087
2087
  }) : null;
2088
2088
  }
2089
- var ConnectionLine = ({ style: e, type: n = ConnectionLineType.Bezier, CustomComponent: r, isValid: i }) => {
2090
- let { inProgress: a, from: o, fromNode: s, fromHandle: c, fromPosition: l, to: u, toNode: d, toHandle: f, toPosition: p, pointer: m } = useConnection();
2089
+ var vr = ({ style: e, type: n = t.Bezier, CustomComponent: r, isValid: i }) => {
2090
+ let { inProgress: a, from: o, fromNode: s, fromHandle: c, fromPosition: l, to: u, toNode: d, toHandle: f, toPosition: p, pointer: m } = hr();
2091
2091
  if (!a) return;
2092
- if (r) return jsx(r, {
2092
+ if (r) return Y(r, {
2093
2093
  connectionLineType: n,
2094
2094
  connectionLineStyle: e,
2095
2095
  fromNode: s,
@@ -2100,7 +2100,7 @@ var ConnectionLine = ({ style: e, type: n = ConnectionLineType.Bezier, CustomCom
2100
2100
  toY: u.y,
2101
2101
  fromPosition: l,
2102
2102
  toPosition: p,
2103
- connectionStatus: getConnectionStatus(i),
2103
+ connectionStatus: D(i),
2104
2104
  toNode: d,
2105
2105
  toHandle: f,
2106
2106
  pointer: m
@@ -2114,63 +2114,63 @@ var ConnectionLine = ({ style: e, type: n = ConnectionLineType.Bezier, CustomCom
2114
2114
  targetPosition: p
2115
2115
  };
2116
2116
  switch (n) {
2117
- case ConnectionLineType.Bezier:
2118
- [h] = getBezierPath(g);
2117
+ case t.Bezier:
2118
+ [h] = T(g);
2119
2119
  break;
2120
- case ConnectionLineType.SimpleBezier:
2121
- [h] = getSimpleBezierPath(g);
2120
+ case t.SimpleBezier:
2121
+ [h] = Pn(g);
2122
2122
  break;
2123
- case ConnectionLineType.Step:
2124
- [h] = getSmoothStepPath({
2123
+ case t.Step:
2124
+ [h] = B({
2125
2125
  ...g,
2126
2126
  borderRadius: 0
2127
2127
  });
2128
2128
  break;
2129
- case ConnectionLineType.SmoothStep:
2130
- [h] = getSmoothStepPath(g);
2129
+ case t.SmoothStep:
2130
+ [h] = B(g);
2131
2131
  break;
2132
- default: [h] = getStraightPath(g);
2132
+ default: [h] = V(g);
2133
2133
  }
2134
- return jsx("path", {
2134
+ return Y("path", {
2135
2135
  d: h,
2136
2136
  fill: "none",
2137
2137
  className: "react-flow__connection-path",
2138
2138
  style: e
2139
2139
  });
2140
2140
  };
2141
- ConnectionLine.displayName = "ConnectionLine";
2142
- var emptyTypes = {};
2143
- function useNodeOrEdgeTypesWarning(e = emptyTypes) {
2144
- let t = useRef(e), n = useStoreApi();
2145
- useEffect(() => {
2141
+ vr.displayName = "ConnectionLine";
2142
+ var yr = {};
2143
+ function br(e = yr) {
2144
+ let t = q(e), n = $();
2145
+ G(() => {
2146
2146
  if (process.env.NODE_ENV === "development") {
2147
2147
  let r = new Set([...Object.keys(t.current), ...Object.keys(e)]);
2148
2148
  for (let i of r) if (t.current[i] !== e[i]) {
2149
- n.getState().onError?.("002", errorMessages.error002());
2149
+ n.getState().onError?.("002", x.error002());
2150
2150
  break;
2151
2151
  }
2152
2152
  t.current = e;
2153
2153
  }
2154
2154
  }, [e]);
2155
2155
  }
2156
- function useStylesLoadedWarning() {
2157
- let e = useStoreApi(), t = useRef(!1);
2158
- useEffect(() => {
2156
+ function xr() {
2157
+ let e = $(), t = q(!1);
2158
+ G(() => {
2159
2159
  if (process.env.NODE_ENV === "development" && !t.current) {
2160
2160
  let n = document.querySelector(".react-flow__pane");
2161
- n && window.getComputedStyle(n).zIndex !== "1" && e.getState().onError?.("013", errorMessages.error013("react")), t.current = !0;
2161
+ n && window.getComputedStyle(n).zIndex !== "1" && e.getState().onError?.("013", x.error013("react")), t.current = !0;
2162
2162
  }
2163
2163
  }, []);
2164
2164
  }
2165
- function GraphViewComponent({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: r, onEdgeClick: i, onNodeDoubleClick: a, onEdgeDoubleClick: o, onNodeMouseEnter: s, onNodeMouseMove: c, onNodeMouseLeave: l, onNodeContextMenu: u, onSelectionContextMenu: d, onSelectionStart: f, onSelectionEnd: p, connectionLineType: m, connectionLineStyle: h, connectionLineComponent: g, connectionLineContainerStyle: _, selectionKeyCode: v, selectionOnDrag: y, selectionMode: b, multiSelectionKeyCode: x, panActivationKeyCode: S, zoomActivationKeyCode: C, deleteKeyCode: w, onlyRenderVisibleElements: T, elementsSelectable: E, defaultViewport: D, translateExtent: O, minZoom: k, maxZoom: A, preventScrolling: j, defaultMarkerColor: M, zoomOnScroll: N, zoomOnPinch: P, panOnScroll: F, panOnScrollSpeed: I, panOnScrollMode: L, zoomOnDoubleClick: R, panOnDrag: z, onPaneClick: B, onPaneMouseEnter: V, onPaneMouseMove: H, onPaneMouseLeave: U, onPaneScroll: W, onPaneContextMenu: G, paneClickDistance: K, nodeClickDistance: q, onEdgeContextMenu: J, onEdgeMouseEnter: Y, onEdgeMouseMove: X, onEdgeMouseLeave: Z, reconnectRadius: Vn, onReconnect: Hn, onReconnectStart: Un, onReconnectEnd: Wn, noDragClassName: Gn, noWheelClassName: Kn, noPanClassName: Q, disableKeyboardA11y: $, nodeExtent: qn, rfId: Jn, viewport: Yn, onViewportChange: Xn }) {
2166
- return useNodeOrEdgeTypesWarning(e), useNodeOrEdgeTypesWarning(t), useStylesLoadedWarning(), useOnInitHandler(n), useViewportSync(Yn), jsx(FlowRenderer, {
2167
- onPaneClick: B,
2168
- onPaneMouseEnter: V,
2169
- onPaneMouseMove: H,
2170
- onPaneMouseLeave: U,
2171
- onPaneContextMenu: G,
2172
- onPaneScroll: W,
2173
- paneClickDistance: K,
2165
+ function Sr({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: r, onEdgeClick: i, onNodeDoubleClick: a, onEdgeDoubleClick: o, onNodeMouseEnter: s, onNodeMouseMove: c, onNodeMouseLeave: l, onNodeContextMenu: u, onSelectionContextMenu: d, onSelectionStart: f, onSelectionEnd: p, connectionLineType: m, connectionLineStyle: h, connectionLineComponent: g, connectionLineContainerStyle: _, selectionKeyCode: v, selectionOnDrag: y, selectionMode: b, multiSelectionKeyCode: x, panActivationKeyCode: S, zoomActivationKeyCode: C, deleteKeyCode: w, onlyRenderVisibleElements: T, elementsSelectable: E, defaultViewport: D, translateExtent: O, minZoom: k, maxZoom: A, preventScrolling: j, defaultMarkerColor: M, zoomOnScroll: N, zoomOnPinch: P, panOnScroll: F, panOnScrollSpeed: ee, panOnScrollMode: I, zoomOnDoubleClick: L, panOnDrag: R, onPaneClick: z, onPaneMouseEnter: B, onPaneMouseMove: V, onPaneMouseLeave: H, onPaneScroll: te, onPaneContextMenu: ne, paneClickDistance: re, nodeClickDistance: ie, onEdgeContextMenu: ae, onEdgeMouseEnter: oe, onEdgeMouseMove: se, onEdgeMouseLeave: ce, reconnectRadius: le, onReconnect: ue, onReconnectStart: de, onReconnectEnd: fe, noDragClassName: pe, noWheelClassName: me, noPanClassName: he, disableKeyboardA11y: ge, nodeExtent: _e, rfId: ve, viewport: ye, onViewportChange: be }) {
2166
+ return br(e), br(t), xr(), ur(n), fr(ye), Y(dn, {
2167
+ onPaneClick: z,
2168
+ onPaneMouseEnter: B,
2169
+ onPaneMouseMove: V,
2170
+ onPaneMouseLeave: H,
2171
+ onPaneContextMenu: ne,
2172
+ onPaneScroll: te,
2173
+ paneClickDistance: re,
2174
2174
  deleteKeyCode: w,
2175
2175
  selectionKeyCode: v,
2176
2176
  selectionOnDrag: y,
@@ -2183,50 +2183,50 @@ function GraphViewComponent({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick
2183
2183
  elementsSelectable: E,
2184
2184
  zoomOnScroll: N,
2185
2185
  zoomOnPinch: P,
2186
- zoomOnDoubleClick: R,
2186
+ zoomOnDoubleClick: L,
2187
2187
  panOnScroll: F,
2188
- panOnScrollSpeed: I,
2189
- panOnScrollMode: L,
2190
- panOnDrag: z,
2188
+ panOnScrollSpeed: ee,
2189
+ panOnScrollMode: I,
2190
+ panOnDrag: R,
2191
2191
  defaultViewport: D,
2192
2192
  translateExtent: O,
2193
2193
  minZoom: k,
2194
2194
  maxZoom: A,
2195
2195
  onSelectionContextMenu: d,
2196
2196
  preventScrolling: j,
2197
- noDragClassName: Gn,
2198
- noWheelClassName: Kn,
2199
- noPanClassName: Q,
2200
- disableKeyboardA11y: $,
2201
- onViewportChange: Xn,
2202
- isControlledViewport: !!Yn,
2203
- children: jsxs(Viewport, { children: [
2204
- jsx(EdgeRenderer, {
2197
+ noDragClassName: pe,
2198
+ noWheelClassName: me,
2199
+ noPanClassName: he,
2200
+ disableKeyboardA11y: ge,
2201
+ onViewportChange: be,
2202
+ isControlledViewport: !!ye,
2203
+ children: X(lr, { children: [
2204
+ Y(sr, {
2205
2205
  edgeTypes: t,
2206
2206
  onEdgeClick: i,
2207
2207
  onEdgeDoubleClick: o,
2208
- onReconnect: Hn,
2209
- onReconnectStart: Un,
2210
- onReconnectEnd: Wn,
2208
+ onReconnect: ue,
2209
+ onReconnectStart: de,
2210
+ onReconnectEnd: fe,
2211
2211
  onlyRenderVisibleElements: T,
2212
- onEdgeContextMenu: J,
2213
- onEdgeMouseEnter: Y,
2214
- onEdgeMouseMove: X,
2215
- onEdgeMouseLeave: Z,
2216
- reconnectRadius: Vn,
2212
+ onEdgeContextMenu: ae,
2213
+ onEdgeMouseEnter: oe,
2214
+ onEdgeMouseMove: se,
2215
+ onEdgeMouseLeave: ce,
2216
+ reconnectRadius: le,
2217
2217
  defaultMarkerColor: M,
2218
- noPanClassName: Q,
2219
- disableKeyboardA11y: $,
2220
- rfId: Jn
2218
+ noPanClassName: he,
2219
+ disableKeyboardA11y: ge,
2220
+ rfId: ve
2221
2221
  }),
2222
- jsx(ConnectionLineWrapper, {
2222
+ Y(_r, {
2223
2223
  style: h,
2224
2224
  type: m,
2225
2225
  component: g,
2226
2226
  containerStyle: _
2227
2227
  }),
2228
- jsx("div", { className: "react-flow__edgelabel-renderer" }),
2229
- jsx(NodeRenderer, {
2228
+ Y("div", { className: "react-flow__edgelabel-renderer" }),
2229
+ Y(xn, {
2230
2230
  nodeTypes: e,
2231
2231
  onNodeClick: r,
2232
2232
  onNodeDoubleClick: a,
@@ -2234,23 +2234,23 @@ function GraphViewComponent({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick
2234
2234
  onNodeMouseMove: c,
2235
2235
  onNodeMouseLeave: l,
2236
2236
  onNodeContextMenu: u,
2237
- nodeClickDistance: q,
2237
+ nodeClickDistance: ie,
2238
2238
  onlyRenderVisibleElements: T,
2239
- noPanClassName: Q,
2240
- noDragClassName: Gn,
2241
- disableKeyboardA11y: $,
2242
- nodeExtent: qn,
2243
- rfId: Jn
2239
+ noPanClassName: he,
2240
+ noDragClassName: pe,
2241
+ disableKeyboardA11y: ge,
2242
+ nodeExtent: _e,
2243
+ rfId: ve
2244
2244
  }),
2245
- jsx("div", { className: "react-flow__viewport-portal" })
2245
+ Y("div", { className: "react-flow__viewport-portal" })
2246
2246
  ] })
2247
2247
  });
2248
2248
  }
2249
- GraphViewComponent.displayName = "GraphView";
2250
- var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges: t, defaultNodes: r, defaultEdges: i, width: a, height: o, fitView: s, fitViewOptions: c, minZoom: l = .5, maxZoom: u = 2, nodeOrigin: d, nodeExtent: f, zIndexMode: p = "basic" } = {}) => {
2251
- let h = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), x = i ?? t ?? [], S = r ?? e ?? [], C = d ?? [0, 0], w = f ?? infiniteExtent;
2252
- updateConnectionLookup(_, b, x);
2253
- let T = adoptUserNodes(S, h, g, {
2249
+ Sr.displayName = "GraphView";
2250
+ var Cr = U(Sr), wr = ({ nodes: e, edges: t, defaultNodes: r, defaultEdges: i, width: a, height: o, fitView: s, fitViewOptions: c, minZoom: l = .5, maxZoom: u = 2, nodeOrigin: d, nodeExtent: f, zIndexMode: p = "basic" } = {}) => {
2251
+ let h = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), x = i ?? t ?? [], S = r ?? e ?? [], C = d ?? [0, 0], w = f ?? ne;
2252
+ be(_, b, x);
2253
+ let { nodesInitialized: T } = m(S, h, g, {
2254
2254
  nodeOrigin: C,
2255
2255
  nodeExtent: w,
2256
2256
  zIndexMode: p
@@ -2260,7 +2260,7 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
2260
2260
  1
2261
2261
  ];
2262
2262
  if (s && a && o) {
2263
- let { x: e, y: t, zoom: n } = getViewportForBounds(getInternalNodesBounds(h, { filter: (e) => !!((e.width || e.initialWidth) && (e.height || e.initialHeight)) }), a, o, l, u, c?.padding ?? .1);
2263
+ let { x: e, y: t, zoom: n } = H(F(h, { filter: (e) => !!((e.width || e.initialWidth) && (e.height || e.initialHeight)) }), a, o, l, u, c?.padding ?? .1);
2264
2264
  E = [
2265
2265
  e,
2266
2266
  t,
@@ -2286,12 +2286,12 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
2286
2286
  panZoom: null,
2287
2287
  minZoom: l,
2288
2288
  maxZoom: u,
2289
- translateExtent: infiniteExtent,
2289
+ translateExtent: ne,
2290
2290
  nodeExtent: w,
2291
2291
  nodesSelectionActive: !1,
2292
2292
  userSelectionActive: !1,
2293
2293
  userSelectionRect: null,
2294
- connectionMode: ConnectionMode.Strict,
2294
+ connectionMode: n.Strict,
2295
2295
  domNode: null,
2296
2296
  paneDragging: !1,
2297
2297
  noPanClassName: "nopan",
@@ -2313,7 +2313,7 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
2313
2313
  fitViewQueued: s ?? !1,
2314
2314
  fitViewOptions: c,
2315
2315
  fitViewResolver: null,
2316
- connection: { ...initialConnection },
2316
+ connection: { ...re },
2317
2317
  connectionClickStartHandle: null,
2318
2318
  connectOnClick: !0,
2319
2319
  ariaLiveMessage: "",
@@ -2322,20 +2322,20 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
2322
2322
  autoPanOnNodeFocus: !0,
2323
2323
  autoPanSpeed: 15,
2324
2324
  connectionRadius: 20,
2325
- onError: devWarn,
2325
+ onError: y,
2326
2326
  isValidConnection: void 0,
2327
2327
  onSelectionChangeHandlers: [],
2328
2328
  lib: "react",
2329
2329
  debug: !1,
2330
- ariaLabelConfig: defaultAriaLabelConfig,
2330
+ ariaLabelConfig: v,
2331
2331
  zIndexMode: p,
2332
2332
  onNodesChangeMiddlewareMap: /* @__PURE__ */ new Map(),
2333
2333
  onEdgesChangeMiddlewareMap: /* @__PURE__ */ new Map()
2334
2334
  };
2335
- }, createStore = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, width: i, height: o, fitView: s, fitViewOptions: c, minZoom: l, maxZoom: u, nodeOrigin: d, nodeExtent: f, zIndexMode: p }) => createWithEqualityFn((h, g) => {
2335
+ }, Tr = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, width: i, height: o, fitView: s, fitViewOptions: c, minZoom: l, maxZoom: u, nodeOrigin: d, nodeExtent: f, zIndexMode: p }) => ke((h, g) => {
2336
2336
  async function _() {
2337
2337
  let { nodeLookup: e, panZoom: t, fitViewOptions: n, fitViewResolver: r, width: i, height: a, minZoom: o, maxZoom: s } = g();
2338
- t && (await fitViewport({
2338
+ t && (await C({
2339
2339
  nodes: e,
2340
2340
  width: i,
2341
2341
  height: a,
@@ -2345,7 +2345,7 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
2345
2345
  }, n), r?.resolve(!0), h({ fitViewResolver: null }));
2346
2346
  }
2347
2347
  return {
2348
- ...getInitialState({
2348
+ ...wr({
2349
2349
  nodes: e,
2350
2350
  edges: t,
2351
2351
  width: i,
@@ -2361,26 +2361,28 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
2361
2361
  zIndexMode: p
2362
2362
  }),
2363
2363
  setNodes: (e) => {
2364
- let { nodeLookup: t, parentLookup: n, nodeOrigin: r, elevateNodesOnSelect: i, fitViewQueued: a, zIndexMode: o } = g(), s = adoptUserNodes(e, t, n, {
2364
+ let { nodeLookup: t, parentLookup: n, nodeOrigin: r, elevateNodesOnSelect: i, fitViewQueued: a, zIndexMode: o, nodesSelectionActive: s } = g(), { nodesInitialized: c, hasSelectedNodes: l } = m(e, t, n, {
2365
2365
  nodeOrigin: r,
2366
2366
  nodeExtent: f,
2367
2367
  elevateNodesOnSelect: i,
2368
2368
  checkEquality: !0,
2369
2369
  zIndexMode: o
2370
- });
2371
- a && s ? (_(), h({
2370
+ }), u = s && l;
2371
+ a && c ? (_(), h({
2372
2372
  nodes: e,
2373
- nodesInitialized: s,
2373
+ nodesInitialized: c,
2374
2374
  fitViewQueued: !1,
2375
- fitViewOptions: void 0
2375
+ fitViewOptions: void 0,
2376
+ nodesSelectionActive: u
2376
2377
  })) : h({
2377
2378
  nodes: e,
2378
- nodesInitialized: s
2379
+ nodesInitialized: c,
2380
+ nodesSelectionActive: u
2379
2381
  });
2380
2382
  },
2381
2383
  setEdges: (e) => {
2382
2384
  let { connectionLookup: t, edgeLookup: n } = g();
2383
- updateConnectionLookup(t, n, e), h({ edges: e });
2385
+ be(t, n, e), h({ edges: e });
2384
2386
  },
2385
2387
  setDefaultNodesAndEdges: (e, t) => {
2386
2388
  if (e) {
@@ -2393,8 +2395,8 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
2393
2395
  }
2394
2396
  },
2395
2397
  updateNodeInternals: (e) => {
2396
- let { triggerNodeChanges: t, nodeLookup: n, parentLookup: r, domNode: i, nodeOrigin: a, nodeExtent: o, debug: s, fitViewQueued: c, zIndexMode: l } = g(), { changes: u, updatedInternals: d } = updateNodeInternals(e, n, r, i, a, o, l);
2397
- d && (updateAbsolutePositions(n, r, {
2398
+ let { triggerNodeChanges: t, nodeLookup: n, parentLookup: r, domNode: i, nodeOrigin: a, nodeExtent: o, debug: s, fitViewQueued: c, zIndexMode: l } = g(), { changes: u, updatedInternals: d } = xe(e, n, r, i, a, o, l);
2399
+ d && (ye(n, r, {
2398
2400
  nodeOrigin: a,
2399
2401
  nodeExtent: o,
2400
2402
  zIndexMode: l
@@ -2416,7 +2418,7 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
2416
2418
  dragging: t
2417
2419
  };
2418
2420
  if (e && s.inProgress && s.fromNode.id === e.id) {
2419
- let t = getHandlePosition(e, s.fromHandle, Position.Left, !0);
2421
+ let t = N(e, s.fromHandle, a.Left, !0);
2420
2422
  c({
2421
2423
  ...s,
2422
2424
  from: t
@@ -2433,7 +2435,7 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
2433
2435
  }), r.push(d);
2434
2436
  }
2435
2437
  if (n.length > 0) {
2436
- let { parentLookup: e, nodeOrigin: t } = g(), a = handleExpandParent(n, i, e, t);
2438
+ let { parentLookup: e, nodeOrigin: t } = g(), a = te(n, i, e, t);
2437
2439
  r.push(...a);
2438
2440
  }
2439
2441
  for (let e of l.values()) r = e(r);
@@ -2441,37 +2443,37 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
2441
2443
  },
2442
2444
  triggerNodeChanges: (e) => {
2443
2445
  let { onNodesChange: t, setNodes: n, nodes: r, hasDefaultNodes: i, debug: a } = g();
2444
- e?.length && (i && n(applyNodeChanges(e, r)), a && console.log("React Flow: trigger node changes", e), t?.(e));
2446
+ e?.length && (i && n(pt(e, r)), a && console.log("React Flow: trigger node changes", e), t?.(e));
2445
2447
  },
2446
2448
  triggerEdgeChanges: (e) => {
2447
2449
  let { onEdgesChange: t, setEdges: n, edges: r, hasDefaultEdges: i, debug: a } = g();
2448
- e?.length && (i && n(applyEdgeChanges(e, r)), a && console.log("React Flow: trigger edge changes", e), t?.(e));
2450
+ e?.length && (i && n(mt(e, r)), a && console.log("React Flow: trigger edge changes", e), t?.(e));
2449
2451
  },
2450
2452
  addSelectedNodes: (e) => {
2451
2453
  let { multiSelectionActive: t, edgeLookup: n, nodeLookup: r, triggerNodeChanges: i, triggerEdgeChanges: a } = g();
2452
2454
  if (t) {
2453
- i(e.map((e) => createSelectionChange(e, !0)));
2455
+ i(e.map((e) => ht(e, !0)));
2454
2456
  return;
2455
2457
  }
2456
- i(getSelectionChanges(r, new Set([...e]), !0)), a(getSelectionChanges(n));
2458
+ i(gt(r, new Set([...e]), !0)), a(gt(n));
2457
2459
  },
2458
2460
  addSelectedEdges: (e) => {
2459
2461
  let { multiSelectionActive: t, edgeLookup: n, nodeLookup: r, triggerNodeChanges: i, triggerEdgeChanges: a } = g();
2460
2462
  if (t) {
2461
- a(e.map((e) => createSelectionChange(e, !0)));
2463
+ a(e.map((e) => ht(e, !0)));
2462
2464
  return;
2463
2465
  }
2464
- a(getSelectionChanges(n, new Set([...e]))), i(getSelectionChanges(r, /* @__PURE__ */ new Set(), !0));
2466
+ a(gt(n, new Set([...e]))), i(gt(r, /* @__PURE__ */ new Set(), !0));
2465
2467
  },
2466
2468
  unselectNodesAndEdges: ({ nodes: e, edges: t } = {}) => {
2467
2469
  let { edges: n, nodes: r, nodeLookup: i, triggerNodeChanges: a, triggerEdgeChanges: o } = g(), s = e || r, c = t || n, l = [];
2468
2470
  for (let e of s) {
2469
2471
  if (!e.selected) continue;
2470
2472
  let t = i.get(e.id);
2471
- t && (t.selected = !1), l.push(createSelectionChange(e.id, !1));
2473
+ t && (t.selected = !1), l.push(ht(e.id, !1));
2472
2474
  }
2473
2475
  let u = [];
2474
- for (let e of c) e.selected && u.push(createSelectionChange(e.id, !1));
2476
+ for (let e of c) e.selected && u.push(ht(e.id, !1));
2475
2477
  a(l), o(u);
2476
2478
  },
2477
2479
  setMinZoom: (e) => {
@@ -2488,12 +2490,12 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
2488
2490
  resetSelectedElements: () => {
2489
2491
  let { edges: e, nodes: t, triggerNodeChanges: n, triggerEdgeChanges: r, elementsSelectable: i } = g();
2490
2492
  if (!i) return;
2491
- let a = t.reduce((e, t) => t.selected ? [...e, createSelectionChange(t.id, !1)] : e, []), o = e.reduce((e, t) => t.selected ? [...e, createSelectionChange(t.id, !1)] : e, []);
2493
+ let a = t.reduce((e, t) => t.selected ? [...e, ht(t.id, !1)] : e, []), o = e.reduce((e, t) => t.selected ? [...e, ht(t.id, !1)] : e, []);
2492
2494
  n(a), r(o);
2493
2495
  },
2494
2496
  setNodeExtent: (e) => {
2495
2497
  let { nodes: t, nodeLookup: n, parentLookup: r, nodeOrigin: i, elevateNodesOnSelect: a, nodeExtent: o, zIndexMode: s } = g();
2496
- e[0][0] === o[0][0] && e[0][1] === o[0][1] && e[1][0] === o[1][0] && e[1][1] === o[1][1] || (adoptUserNodes(t, n, r, {
2498
+ e[0][0] === o[0][0] && e[0][1] === o[0][1] && e[1][0] === o[1][0] && e[1][1] === o[1][1] || (m(t, n, r, {
2497
2499
  nodeOrigin: i,
2498
2500
  nodeExtent: e,
2499
2501
  elevateNodesOnSelect: a,
@@ -2503,7 +2505,7 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
2503
2505
  },
2504
2506
  panBy: (e) => {
2505
2507
  let { transform: t, width: n, height: r, panZoom: i, translateExtent: a } = g();
2506
- return panBy({
2508
+ return he({
2507
2509
  delta: e,
2508
2510
  panZoom: i,
2509
2511
  transform: t,
@@ -2527,16 +2529,16 @@ var GraphView = memo(GraphViewComponent), getInitialState = ({ nodes: e, edges:
2527
2529
  }), Promise.resolve(!0);
2528
2530
  },
2529
2531
  cancelConnection: () => {
2530
- h({ connection: { ...initialConnection } });
2532
+ h({ connection: { ...re } });
2531
2533
  },
2532
2534
  updateConnection: (e) => {
2533
2535
  h({ connection: e });
2534
2536
  },
2535
- reset: () => h({ ...getInitialState() })
2537
+ reset: () => h({ ...wr() })
2536
2538
  };
2537
2539
  }, Object.is);
2538
- function ReactFlowProvider({ initialNodes: e, initialEdges: t, defaultNodes: n, defaultEdges: r, initialWidth: i, initialHeight: a, initialMinZoom: o, initialMaxZoom: s, initialFitViewOptions: c, fitView: l, nodeOrigin: u, nodeExtent: d, zIndexMode: f, children: p }) {
2539
- let [m] = useState(() => createStore({
2540
+ function Er({ initialNodes: e, initialEdges: t, defaultNodes: n, defaultEdges: r, initialWidth: i, initialHeight: a, initialMinZoom: o, initialMaxZoom: s, initialFitViewOptions: c, fitView: l, nodeOrigin: u, nodeExtent: d, zIndexMode: f, children: p }) {
2541
+ let [m] = J(() => Tr({
2540
2542
  nodes: e,
2541
2543
  edges: t,
2542
2544
  defaultNodes: n,
@@ -2551,13 +2553,13 @@ function ReactFlowProvider({ initialNodes: e, initialEdges: t, defaultNodes: n,
2551
2553
  nodeExtent: d,
2552
2554
  zIndexMode: f
2553
2555
  }));
2554
- return jsx(Provider$1, {
2556
+ return Y(Me, {
2555
2557
  value: m,
2556
- children: jsx(BatchProvider, { children: p })
2558
+ children: Y(Tt, { children: p })
2557
2559
  });
2558
2560
  }
2559
- function Wrapper({ children: e, nodes: t, edges: n, defaultNodes: r, defaultEdges: i, width: a, height: o, fitView: s, fitViewOptions: c, minZoom: l, maxZoom: u, nodeOrigin: d, nodeExtent: f, zIndexMode: p }) {
2560
- return useContext(StoreContext) ? jsx(Fragment$1, { children: e }) : jsx(ReactFlowProvider, {
2561
+ function Dr({ children: e, nodes: t, edges: n, defaultNodes: r, defaultEdges: i, width: a, height: o, fitView: s, fitViewOptions: c, minZoom: l, maxZoom: u, nodeOrigin: d, nodeExtent: f, zIndexMode: p }) {
2562
+ return Te(je) ? Y(De, { children: e }) : Y(Er, {
2561
2563
  initialNodes: t,
2562
2564
  initialEdges: n,
2563
2565
  defaultNodes: r,
@@ -2574,116 +2576,51 @@ function Wrapper({ children: e, nodes: t, edges: n, defaultNodes: r, defaultEdge
2574
2576
  children: e
2575
2577
  });
2576
2578
  }
2577
- var wrapperStyle = {
2579
+ var Or = {
2578
2580
  width: "100%",
2579
2581
  height: "100%",
2580
2582
  overflow: "hidden",
2581
2583
  position: "relative",
2582
2584
  zIndex: 0
2583
2585
  };
2584
- function ReactFlow({ nodes: n, edges: r, defaultNodes: a, defaultEdges: o, className: c, nodeTypes: l, edgeTypes: u, onNodeClick: d, onEdgeClick: f, onInit: p, onMove: m, onMoveStart: h, onMoveEnd: g, onConnect: _, onConnectStart: v, onConnectEnd: y, onClickConnectStart: b, onClickConnectEnd: x, onNodeMouseEnter: S, onNodeMouseMove: C, onNodeMouseLeave: w, onNodeContextMenu: T, onNodeDoubleClick: E, onNodeDragStart: D, onNodeDrag: O, onNodeDragStop: k, onNodesDelete: A, onEdgesDelete: j, onDelete: M, onSelectionChange: N, onSelectionDragStart: P, onSelectionDrag: F, onSelectionDragStop: I, onSelectionContextMenu: L, onSelectionStart: R, onSelectionEnd: z, onBeforeDelete: B, connectionMode: V, connectionLineType: H = ConnectionLineType.Bezier, connectionLineStyle: U, connectionLineComponent: W, connectionLineContainerStyle: G, deleteKeyCode: K = "Backspace", selectionKeyCode: J = "Shift", selectionOnDrag: Y = !1, selectionMode: X = SelectionMode.Full, panActivationKeyCode: Z = "Space", multiSelectionKeyCode: Hn = isMacOs() ? "Meta" : "Control", zoomActivationKeyCode: Un = isMacOs() ? "Meta" : "Control", snapToGrid: Wn, snapGrid: Gn, onlyRenderVisibleElements: Kn = !1, selectNodesOnDrag: Q, nodesDraggable: $, autoPanOnNodeFocus: qn, nodesConnectable: Jn, nodesFocusable: Yn, nodeOrigin: Xn = defaultNodeOrigin, edgesFocusable: Zn, edgesReconnectable: Qn, elementsSelectable: $n = !0, defaultViewport: er = defaultViewport, minZoom: tr = .5, maxZoom: nr = 2, translateExtent: rr = infiniteExtent, preventScrolling: ir = !0, nodeExtent: ar, defaultMarkerColor: or = "#b1b1b7", zoomOnScroll: sr = !0, zoomOnPinch: cr = !0, panOnScroll: lr = !1, panOnScrollSpeed: ur = .5, panOnScrollMode: dr = PanOnScrollMode.Free, zoomOnDoubleClick: fr = !0, panOnDrag: pr = !0, onPaneClick: mr, onPaneMouseEnter: hr, onPaneMouseMove: gr, onPaneMouseLeave: _r, onPaneScroll: vr, onPaneContextMenu: yr, paneClickDistance: br = 1, nodeClickDistance: xr = 0, children: Sr, onReconnect: Cr, onReconnectStart: wr, onReconnectEnd: Tr, onEdgeContextMenu: Er, onEdgeDoubleClick: Dr, onEdgeMouseEnter: Or, onEdgeMouseMove: kr, onEdgeMouseLeave: Ar, reconnectRadius: jr = 10, onNodesChange: Mr, onEdgesChange: Nr, noDragClassName: Pr = "nodrag", noWheelClassName: Fr = "nowheel", noPanClassName: Ir = "nopan", fitView: Lr, fitViewOptions: Rr, connectOnClick: zr, attributionPosition: Br, proOptions: Vr, defaultEdgeOptions: Hr, elevateNodesOnSelect: Ur = !0, elevateEdgesOnSelect: Wr = !1, disableKeyboardA11y: Gr = !1, autoPanOnConnect: Kr, autoPanOnNodeDrag: qr, autoPanSpeed: Jr, connectionRadius: Yr, isValidConnection: Xr, onError: Zr, style: Qr, id: $r, nodeDragThreshold: ei, connectionDragThreshold: ti, viewport: ni, onViewportChange: ri, width: ii, height: ai, colorMode: oi = "light", debug: si, onScroll: ci, ariaLabelConfig: li, zIndexMode: ui = "basic", ...di }, fi) {
2585
- let pi = $r || "1", mi = useColorModeClass(oi), hi = useCallback((e) => {
2586
+ function kr({ nodes: n, edges: r, defaultNodes: a, defaultEdges: o, className: c, nodeTypes: l, edgeTypes: u, onNodeClick: d, onEdgeClick: f, onInit: p, onMove: m, onMoveStart: h, onMoveEnd: g, onConnect: _, onConnectStart: v, onConnectEnd: y, onClickConnectStart: b, onClickConnectEnd: x, onNodeMouseEnter: S, onNodeMouseMove: C, onNodeMouseLeave: w, onNodeContextMenu: T, onNodeDoubleClick: E, onNodeDragStart: D, onNodeDrag: O, onNodeDragStop: k, onNodesDelete: A, onEdgesDelete: j, onDelete: M, onSelectionChange: N, onSelectionDragStart: P, onSelectionDrag: F, onSelectionDragStop: ee, onSelectionContextMenu: I, onSelectionStart: L, onSelectionEnd: R, onBeforeDelete: z, connectionMode: B, connectionLineType: V = t.Bezier, connectionLineStyle: H, connectionLineComponent: te, connectionLineContainerStyle: re, deleteKeyCode: ie = "Backspace", selectionKeyCode: ae = "Shift", selectionOnDrag: oe = !1, selectionMode: ce = s.Full, panActivationKeyCode: le = "Space", multiSelectionKeyCode: ue = se() ? "Meta" : "Control", zoomActivationKeyCode: de = se() ? "Meta" : "Control", snapToGrid: fe, snapGrid: pe, onlyRenderVisibleElements: me = !1, selectNodesOnDrag: he, nodesDraggable: ge, autoPanOnNodeFocus: _e, nodesConnectable: ve, nodesFocusable: ye, nodeOrigin: be = Qe, edgesFocusable: xe, edgesReconnectable: Se, elementsSelectable: Ce = !0, defaultViewport: we = $e, minZoom: U = .5, maxZoom: Te = 2, translateExtent: G = ne, preventScrolling: Ee = !0, nodeExtent: K, defaultMarkerColor: q = "#b1b1b7", zoomOnScroll: J = !0, zoomOnPinch: De = !0, panOnScroll: Oe = !1, panOnScrollSpeed: ke = .5, panOnScrollMode: Ae = i.Free, zoomOnDoubleClick: Z = !0, panOnDrag: je = !0, onPaneClick: Me, onPaneMouseEnter: Ne, onPaneMouseMove: Q, onPaneMouseLeave: $, onPaneScroll: Pe, onPaneContextMenu: Fe, paneClickDistance: Ie = 1, nodeClickDistance: Le = 0, children: Re, onReconnect: ze, onReconnectStart: Be, onReconnectEnd: Ve, onEdgeContextMenu: Ue, onEdgeDoubleClick: Ge, onEdgeMouseEnter: Ke, onEdgeMouseMove: qe, onEdgeMouseLeave: Je, reconnectRadius: Ye = 10, onNodesChange: Ze, onEdgesChange: et, noDragClassName: tt = "nodrag", noWheelClassName: nt = "nowheel", noPanClassName: it = "nopan", fitView: ot, fitViewOptions: st, connectOnClick: ct, attributionPosition: lt, proOptions: ut, defaultEdgeOptions: dt, elevateNodesOnSelect: ft = !0, elevateEdgesOnSelect: pt = !1, disableKeyboardA11y: mt = !1, autoPanOnConnect: ht, autoPanOnNodeDrag: gt, autoPanSpeed: _t, connectionRadius: vt, isValidConnection: yt, onError: bt, style: xt, id: St, nodeDragThreshold: Ct, connectionDragThreshold: wt, viewport: Tt, onViewportChange: Et, width: Dt, height: Ot, colorMode: kt = "light", debug: At, onScroll: jt, ariaLabelConfig: Mt, zIndexMode: Nt = "basic", ...Pt }, Ft) {
2587
+ let It = St || "1", Lt = at(kt), Rt = W((e) => {
2586
2588
  e.currentTarget.scrollTo({
2587
2589
  top: 0,
2588
2590
  left: 0,
2589
2591
  behavior: "instant"
2590
- }), ci?.(e);
2591
- }, [ci]);
2592
- return jsx("div", {
2592
+ }), jt?.(e);
2593
+ }, [jt]);
2594
+ return Y("div", {
2593
2595
  "data-testid": "rf__wrapper",
2594
- ...di,
2595
- onScroll: hi,
2596
+ ...Pt,
2597
+ onScroll: Rt,
2596
2598
  style: {
2597
- ...Qr,
2598
- ...wrapperStyle
2599
+ ...xt,
2600
+ ...Or
2599
2601
  },
2600
- ref: fi,
2601
- className: cc([
2602
+ ref: Ft,
2603
+ className: e([
2602
2604
  "react-flow",
2603
2605
  c,
2604
- mi
2606
+ Lt
2605
2607
  ]),
2606
- id: $r,
2608
+ id: St,
2607
2609
  role: "application",
2608
- children: jsxs(Wrapper, {
2610
+ children: X(Dr, {
2609
2611
  nodes: n,
2610
2612
  edges: r,
2611
- width: ii,
2612
- height: ai,
2613
- fitView: Lr,
2614
- fitViewOptions: Rr,
2615
- minZoom: tr,
2616
- maxZoom: nr,
2617
- nodeOrigin: Xn,
2618
- nodeExtent: ar,
2619
- zIndexMode: ui,
2613
+ width: Dt,
2614
+ height: Ot,
2615
+ fitView: ot,
2616
+ fitViewOptions: st,
2617
+ minZoom: U,
2618
+ maxZoom: Te,
2619
+ nodeOrigin: be,
2620
+ nodeExtent: K,
2621
+ zIndexMode: Nt,
2620
2622
  children: [
2621
- jsx(GraphView, {
2622
- onInit: p,
2623
- onNodeClick: d,
2624
- onEdgeClick: f,
2625
- onNodeMouseEnter: S,
2626
- onNodeMouseMove: C,
2627
- onNodeMouseLeave: w,
2628
- onNodeContextMenu: T,
2629
- onNodeDoubleClick: E,
2630
- nodeTypes: l,
2631
- edgeTypes: u,
2632
- connectionLineType: H,
2633
- connectionLineStyle: U,
2634
- connectionLineComponent: W,
2635
- connectionLineContainerStyle: G,
2636
- selectionKeyCode: J,
2637
- selectionOnDrag: Y,
2638
- selectionMode: X,
2639
- deleteKeyCode: K,
2640
- multiSelectionKeyCode: Hn,
2641
- panActivationKeyCode: Z,
2642
- zoomActivationKeyCode: Un,
2643
- onlyRenderVisibleElements: Kn,
2644
- defaultViewport: er,
2645
- translateExtent: rr,
2646
- minZoom: tr,
2647
- maxZoom: nr,
2648
- preventScrolling: ir,
2649
- zoomOnScroll: sr,
2650
- zoomOnPinch: cr,
2651
- zoomOnDoubleClick: fr,
2652
- panOnScroll: lr,
2653
- panOnScrollSpeed: ur,
2654
- panOnScrollMode: dr,
2655
- panOnDrag: pr,
2656
- onPaneClick: mr,
2657
- onPaneMouseEnter: hr,
2658
- onPaneMouseMove: gr,
2659
- onPaneMouseLeave: _r,
2660
- onPaneScroll: vr,
2661
- onPaneContextMenu: yr,
2662
- paneClickDistance: br,
2663
- nodeClickDistance: xr,
2664
- onSelectionContextMenu: L,
2665
- onSelectionStart: R,
2666
- onSelectionEnd: z,
2667
- onReconnect: Cr,
2668
- onReconnectStart: wr,
2669
- onReconnectEnd: Tr,
2670
- onEdgeContextMenu: Er,
2671
- onEdgeDoubleClick: Dr,
2672
- onEdgeMouseEnter: Or,
2673
- onEdgeMouseMove: kr,
2674
- onEdgeMouseLeave: Ar,
2675
- reconnectRadius: jr,
2676
- defaultMarkerColor: or,
2677
- noDragClassName: Pr,
2678
- noWheelClassName: Fr,
2679
- noPanClassName: Ir,
2680
- rfId: pi,
2681
- disableKeyboardA11y: Gr,
2682
- nodeExtent: ar,
2683
- viewport: ni,
2684
- onViewportChange: ri
2685
- }),
2686
- jsx(StoreUpdater, {
2623
+ Y(rt, {
2687
2624
  nodes: n,
2688
2625
  edges: r,
2689
2626
  defaultNodes: a,
@@ -2693,28 +2630,28 @@ function ReactFlow({ nodes: n, edges: r, defaultNodes: a, defaultEdges: o, class
2693
2630
  onConnectEnd: y,
2694
2631
  onClickConnectStart: b,
2695
2632
  onClickConnectEnd: x,
2696
- nodesDraggable: $,
2697
- autoPanOnNodeFocus: qn,
2698
- nodesConnectable: Jn,
2699
- nodesFocusable: Yn,
2700
- edgesFocusable: Zn,
2701
- edgesReconnectable: Qn,
2702
- elementsSelectable: $n,
2703
- elevateNodesOnSelect: Ur,
2704
- elevateEdgesOnSelect: Wr,
2705
- minZoom: tr,
2706
- maxZoom: nr,
2707
- nodeExtent: ar,
2708
- onNodesChange: Mr,
2709
- onEdgesChange: Nr,
2710
- snapToGrid: Wn,
2711
- snapGrid: Gn,
2712
- connectionMode: V,
2713
- translateExtent: rr,
2714
- connectOnClick: zr,
2715
- defaultEdgeOptions: Hr,
2716
- fitView: Lr,
2717
- fitViewOptions: Rr,
2633
+ nodesDraggable: ge,
2634
+ autoPanOnNodeFocus: _e,
2635
+ nodesConnectable: ve,
2636
+ nodesFocusable: ye,
2637
+ edgesFocusable: xe,
2638
+ edgesReconnectable: Se,
2639
+ elementsSelectable: Ce,
2640
+ elevateNodesOnSelect: ft,
2641
+ elevateEdgesOnSelect: pt,
2642
+ minZoom: U,
2643
+ maxZoom: Te,
2644
+ nodeExtent: K,
2645
+ onNodesChange: Ze,
2646
+ onEdgesChange: et,
2647
+ snapToGrid: fe,
2648
+ snapGrid: pe,
2649
+ connectionMode: B,
2650
+ translateExtent: G,
2651
+ connectOnClick: ct,
2652
+ defaultEdgeOptions: dt,
2653
+ fitView: ot,
2654
+ fitViewOptions: st,
2718
2655
  onNodesDelete: A,
2719
2656
  onEdgesDelete: j,
2720
2657
  onDelete: M,
@@ -2723,111 +2660,176 @@ function ReactFlow({ nodes: n, edges: r, defaultNodes: a, defaultEdges: o, class
2723
2660
  onNodeDragStop: k,
2724
2661
  onSelectionDrag: F,
2725
2662
  onSelectionDragStart: P,
2726
- onSelectionDragStop: I,
2663
+ onSelectionDragStop: ee,
2727
2664
  onMove: m,
2728
2665
  onMoveStart: h,
2729
2666
  onMoveEnd: g,
2730
- noPanClassName: Ir,
2731
- nodeOrigin: Xn,
2732
- rfId: pi,
2733
- autoPanOnConnect: Kr,
2734
- autoPanOnNodeDrag: qr,
2735
- autoPanSpeed: Jr,
2736
- onError: Zr,
2737
- connectionRadius: Yr,
2738
- isValidConnection: Xr,
2739
- selectNodesOnDrag: Q,
2740
- nodeDragThreshold: ei,
2741
- connectionDragThreshold: ti,
2742
- onBeforeDelete: B,
2743
- debug: si,
2744
- ariaLabelConfig: li,
2745
- zIndexMode: ui
2667
+ noPanClassName: it,
2668
+ nodeOrigin: be,
2669
+ rfId: It,
2670
+ autoPanOnConnect: ht,
2671
+ autoPanOnNodeDrag: gt,
2672
+ autoPanSpeed: _t,
2673
+ onError: bt,
2674
+ connectionRadius: vt,
2675
+ isValidConnection: yt,
2676
+ selectNodesOnDrag: he,
2677
+ nodeDragThreshold: Ct,
2678
+ connectionDragThreshold: wt,
2679
+ onBeforeDelete: z,
2680
+ debug: At,
2681
+ ariaLabelConfig: Mt,
2682
+ zIndexMode: Nt
2683
+ }),
2684
+ Y(Cr, {
2685
+ onInit: p,
2686
+ onNodeClick: d,
2687
+ onEdgeClick: f,
2688
+ onNodeMouseEnter: S,
2689
+ onNodeMouseMove: C,
2690
+ onNodeMouseLeave: w,
2691
+ onNodeContextMenu: T,
2692
+ onNodeDoubleClick: E,
2693
+ nodeTypes: l,
2694
+ edgeTypes: u,
2695
+ connectionLineType: V,
2696
+ connectionLineStyle: H,
2697
+ connectionLineComponent: te,
2698
+ connectionLineContainerStyle: re,
2699
+ selectionKeyCode: ae,
2700
+ selectionOnDrag: oe,
2701
+ selectionMode: ce,
2702
+ deleteKeyCode: ie,
2703
+ multiSelectionKeyCode: ue,
2704
+ panActivationKeyCode: le,
2705
+ zoomActivationKeyCode: de,
2706
+ onlyRenderVisibleElements: me,
2707
+ defaultViewport: we,
2708
+ translateExtent: G,
2709
+ minZoom: U,
2710
+ maxZoom: Te,
2711
+ preventScrolling: Ee,
2712
+ zoomOnScroll: J,
2713
+ zoomOnPinch: De,
2714
+ zoomOnDoubleClick: Z,
2715
+ panOnScroll: Oe,
2716
+ panOnScrollSpeed: ke,
2717
+ panOnScrollMode: Ae,
2718
+ panOnDrag: je,
2719
+ onPaneClick: Me,
2720
+ onPaneMouseEnter: Ne,
2721
+ onPaneMouseMove: Q,
2722
+ onPaneMouseLeave: $,
2723
+ onPaneScroll: Pe,
2724
+ onPaneContextMenu: Fe,
2725
+ paneClickDistance: Ie,
2726
+ nodeClickDistance: Le,
2727
+ onSelectionContextMenu: I,
2728
+ onSelectionStart: L,
2729
+ onSelectionEnd: R,
2730
+ onReconnect: ze,
2731
+ onReconnectStart: Be,
2732
+ onReconnectEnd: Ve,
2733
+ onEdgeContextMenu: Ue,
2734
+ onEdgeDoubleClick: Ge,
2735
+ onEdgeMouseEnter: Ke,
2736
+ onEdgeMouseMove: qe,
2737
+ onEdgeMouseLeave: Je,
2738
+ reconnectRadius: Ye,
2739
+ defaultMarkerColor: q,
2740
+ noDragClassName: tt,
2741
+ noWheelClassName: nt,
2742
+ noPanClassName: it,
2743
+ rfId: It,
2744
+ disableKeyboardA11y: mt,
2745
+ nodeExtent: K,
2746
+ viewport: Tt,
2747
+ onViewportChange: Et
2746
2748
  }),
2747
- jsx(SelectionListener, { onSelectionChange: N }),
2748
- Sr,
2749
- jsx(Attribution, {
2750
- proOptions: Vr,
2751
- position: Br
2749
+ Y(Xe, { onSelectionChange: N }),
2750
+ Re,
2751
+ Y(We, {
2752
+ proOptions: ut,
2753
+ position: lt
2752
2754
  }),
2753
- jsx(A11yDescriptions, {
2754
- rfId: pi,
2755
- disableKeyboardA11y: Gr
2755
+ Y(He, {
2756
+ rfId: It,
2757
+ disableKeyboardA11y: mt
2756
2758
  })
2757
2759
  ]
2758
2760
  })
2759
2761
  });
2760
2762
  }
2761
- var index = fixedForwardRef(ReactFlow), selector$6 = (e) => e.domNode?.querySelector(".react-flow__edgelabel-renderer");
2762
- function EdgeLabelRenderer({ children: e }) {
2763
- let t = useStore(selector$6);
2764
- return t ? createPortal(e, t) : null;
2763
+ var Ar = xt(kr), jr = (e) => e.domNode?.querySelector(".react-flow__edgelabel-renderer");
2764
+ function Mr({ children: e }) {
2765
+ let t = Q(jr);
2766
+ return t ? Oe(e, t) : null;
2765
2767
  }
2766
- function useNodesState(e) {
2767
- let [t, n] = useState(e);
2768
+ function Nr(e) {
2769
+ let [t, n] = J(e);
2768
2770
  return [
2769
2771
  t,
2770
2772
  n,
2771
- useCallback((e) => n((t) => applyNodeChanges(e, t)), [])
2773
+ W((e) => n((t) => pt(e, t)), [])
2772
2774
  ];
2773
2775
  }
2774
- function useEdgesState(e) {
2775
- let [t, n] = useState(e);
2776
+ function Pr(e) {
2777
+ let [t, n] = J(e);
2776
2778
  return [
2777
2779
  t,
2778
2780
  n,
2779
- useCallback((e) => n((t) => applyEdgeChanges(e, t)), [])
2781
+ W((e) => n((t) => mt(e, t)), [])
2780
2782
  ];
2781
2783
  }
2782
- errorMessages.error014();
2783
- function LinePattern({ dimensions: t, lineWidth: n, variant: r, className: i }) {
2784
- return jsx("path", {
2784
+ x.error014();
2785
+ function Fr({ dimensions: t, lineWidth: n, variant: r, className: i }) {
2786
+ return Y("path", {
2785
2787
  strokeWidth: n,
2786
2788
  d: `M${t[0] / 2} 0 V${t[1]} M0 ${t[1] / 2} H${t[0]}`,
2787
- className: cc([
2789
+ className: e([
2788
2790
  "react-flow__background-pattern",
2789
2791
  r,
2790
2792
  i
2791
2793
  ])
2792
2794
  });
2793
2795
  }
2794
- function DotPattern({ radius: t, className: n }) {
2795
- return jsx("circle", {
2796
+ function Ir({ radius: t, className: n }) {
2797
+ return Y("circle", {
2796
2798
  cx: t,
2797
2799
  cy: t,
2798
2800
  r: t,
2799
- className: cc([
2801
+ className: e([
2800
2802
  "react-flow__background-pattern",
2801
2803
  "dots",
2802
2804
  n
2803
2805
  ])
2804
2806
  });
2805
2807
  }
2806
- var BackgroundVariant;
2808
+ var Lr;
2807
2809
  (function(e) {
2808
2810
  e.Lines = "lines", e.Dots = "dots", e.Cross = "cross";
2809
- })(BackgroundVariant ||= {});
2810
- var defaultSize = {
2811
- [BackgroundVariant.Dots]: 1,
2812
- [BackgroundVariant.Lines]: 1,
2813
- [BackgroundVariant.Cross]: 6
2814
- }, selector$3 = (e) => ({
2811
+ })(Lr ||= {});
2812
+ var Rr = {
2813
+ [Lr.Dots]: 1,
2814
+ [Lr.Lines]: 1,
2815
+ [Lr.Cross]: 6
2816
+ }, zr = (e) => ({
2815
2817
  transform: e.transform,
2816
2818
  patternId: `pattern-${e.rfId}`
2817
2819
  });
2818
- function BackgroundComponent({ id: t, variant: n = BackgroundVariant.Dots, gap: r = 20, size: i, lineWidth: a = 1, offset: o = 0, color: s, bgColor: c, style: l, className: u, patternClassName: d }) {
2819
- let f = useRef(null), { transform: p, patternId: m } = useStore(selector$3, shallow), h = i || defaultSize[n], g = n === BackgroundVariant.Dots, _ = n === BackgroundVariant.Cross, v = Array.isArray(r) ? r : [r, r], y = [v[0] * p[2] || 1, v[1] * p[2] || 1], b = h * p[2], x = Array.isArray(o) ? o : [o, o], S = _ ? [b, b] : y, C = [x[0] * p[2] || 1 + S[0] / 2, x[1] * p[2] || 1 + S[1] / 2], w = `${m}${t || ""}`;
2820
- return jsxs("svg", {
2821
- className: cc(["react-flow__background", u]),
2820
+ function Br({ id: t, variant: n = Lr.Dots, gap: r = 20, size: i, lineWidth: a = 1, offset: o = 0, color: s, bgColor: c, style: l, className: u, patternClassName: d }) {
2821
+ let f = q(null), { transform: p, patternId: m } = Q(zr, Z), h = i || Rr[n], g = n === Lr.Dots, _ = n === Lr.Cross, v = Array.isArray(r) ? r : [r, r], y = [v[0] * p[2] || 1, v[1] * p[2] || 1], b = h * p[2], x = Array.isArray(o) ? o : [o, o], S = _ ? [b, b] : y, C = [x[0] * p[2] || 1 + S[0] / 2, x[1] * p[2] || 1 + S[1] / 2], w = `${m}${t || ""}`;
2822
+ return X("svg", {
2823
+ className: e(["react-flow__background", u]),
2822
2824
  style: {
2823
2825
  ...l,
2824
- ...containerStyle,
2826
+ ...Nt,
2825
2827
  "--xy-background-color-props": c,
2826
2828
  "--xy-background-pattern-color-props": s
2827
2829
  },
2828
2830
  ref: f,
2829
2831
  "data-testid": "rf__background",
2830
- children: [jsx("pattern", {
2832
+ children: [Y("pattern", {
2831
2833
  id: w,
2832
2834
  x: p[0] % y[0],
2833
2835
  y: p[1] % y[1],
@@ -2835,16 +2837,16 @@ function BackgroundComponent({ id: t, variant: n = BackgroundVariant.Dots, gap:
2835
2837
  height: y[1],
2836
2838
  patternUnits: "userSpaceOnUse",
2837
2839
  patternTransform: `translate(-${C[0]},-${C[1]})`,
2838
- children: g ? jsx(DotPattern, {
2840
+ children: g ? Y(Ir, {
2839
2841
  radius: b / 2,
2840
2842
  className: d
2841
- }) : jsx(LinePattern, {
2843
+ }) : Y(Fr, {
2842
2844
  dimensions: S,
2843
2845
  lineWidth: a,
2844
2846
  variant: n,
2845
2847
  className: d
2846
2848
  })
2847
- }), jsx("rect", {
2849
+ }), Y("rect", {
2848
2850
  x: "0",
2849
2851
  y: "0",
2850
2852
  width: "100%",
@@ -2853,73 +2855,61 @@ function BackgroundComponent({ id: t, variant: n = BackgroundVariant.Dots, gap:
2853
2855
  })]
2854
2856
  });
2855
2857
  }
2856
- BackgroundComponent.displayName = "Background";
2857
- var Background = memo(BackgroundComponent);
2858
- function PlusIcon() {
2859
- return jsx("svg", {
2858
+ Br.displayName = "Background";
2859
+ var Vr = U(Br);
2860
+ function Hr() {
2861
+ return Y("svg", {
2860
2862
  xmlns: "http://www.w3.org/2000/svg",
2861
2863
  viewBox: "0 0 32 32",
2862
- children: jsx("path", { d: "M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z" })
2864
+ children: Y("path", { d: "M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z" })
2863
2865
  });
2864
2866
  }
2865
- function MinusIcon() {
2866
- return jsx("svg", {
2867
+ function Ur() {
2868
+ return Y("svg", {
2867
2869
  xmlns: "http://www.w3.org/2000/svg",
2868
2870
  viewBox: "0 0 32 5",
2869
- children: jsx("path", { d: "M0 0h32v4.2H0z" })
2871
+ children: Y("path", { d: "M0 0h32v4.2H0z" })
2870
2872
  });
2871
2873
  }
2872
- function FitViewIcon() {
2873
- return jsx("svg", {
2874
+ function Wr() {
2875
+ return Y("svg", {
2874
2876
  xmlns: "http://www.w3.org/2000/svg",
2875
2877
  viewBox: "0 0 32 30",
2876
- children: jsx("path", { d: "M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z" })
2878
+ children: Y("path", { d: "M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z" })
2877
2879
  });
2878
2880
  }
2879
- function LockIcon() {
2880
- return jsx("svg", {
2881
+ function Gr() {
2882
+ return Y("svg", {
2881
2883
  xmlns: "http://www.w3.org/2000/svg",
2882
2884
  viewBox: "0 0 25 32",
2883
- children: jsx("path", { d: "M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z" })
2885
+ children: Y("path", { d: "M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z" })
2884
2886
  });
2885
2887
  }
2886
- function UnlockIcon() {
2887
- return jsx("svg", {
2888
+ function Kr() {
2889
+ return Y("svg", {
2888
2890
  xmlns: "http://www.w3.org/2000/svg",
2889
2891
  viewBox: "0 0 25 32",
2890
- children: jsx("path", { d: "M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z" })
2892
+ children: Y("path", { d: "M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z" })
2891
2893
  });
2892
2894
  }
2893
- function ControlButton({ children: t, className: n, ...r }) {
2894
- return jsx("button", {
2895
+ function qr({ children: t, className: n, ...r }) {
2896
+ return Y("button", {
2895
2897
  type: "button",
2896
- className: cc(["react-flow__controls-button", n]),
2898
+ className: e(["react-flow__controls-button", n]),
2897
2899
  ...r,
2898
2900
  children: t
2899
2901
  });
2900
2902
  }
2901
- var selector$2 = (e) => ({
2903
+ var Jr = (e) => ({
2902
2904
  isInteractive: e.nodesDraggable || e.nodesConnectable || e.elementsSelectable,
2903
2905
  minZoomReached: e.transform[2] <= e.minZoom,
2904
2906
  maxZoomReached: e.transform[2] >= e.maxZoom,
2905
2907
  ariaLabelConfig: e.ariaLabelConfig
2906
2908
  });
2907
- function ControlsComponent({ style: t, showZoom: n = !0, showFitView: r = !0, showInteractive: i = !0, fitViewOptions: a, onZoomIn: o, onZoomOut: s, onFitView: c, onInteractiveChange: l, className: u, children: d, position: f = "bottom-left", orientation: p = "vertical", "aria-label": m }) {
2908
- let h = useStoreApi(), { isInteractive: g, minZoomReached: _, maxZoomReached: v, ariaLabelConfig: y } = useStore(selector$2, shallow), { zoomIn: b, zoomOut: x, fitView: S } = useReactFlow(), C = () => {
2909
- b(), o?.();
2910
- }, w = () => {
2911
- x(), s?.();
2912
- }, T = () => {
2913
- S(a), c?.();
2914
- }, E = () => {
2915
- h.setState({
2916
- nodesDraggable: !g,
2917
- nodesConnectable: !g,
2918
- elementsSelectable: !g
2919
- }), l?.(!g);
2920
- };
2921
- return jsxs(Panel, {
2922
- className: cc([
2909
+ function Yr({ style: t, showZoom: n = !0, showFitView: r = !0, showInteractive: i = !0, fitViewOptions: a, onZoomIn: o, onZoomOut: s, onFitView: c, onInteractiveChange: l, className: u, children: d, position: f = "bottom-left", orientation: p = "vertical", "aria-label": m }) {
2910
+ let h = $(), { isInteractive: g, minZoomReached: _, maxZoomReached: v, ariaLabelConfig: y } = Q(Jr, Z), { zoomIn: b, zoomOut: x, fitView: S } = Ot();
2911
+ return X(Ue, {
2912
+ className: e([
2923
2913
  "react-flow__controls",
2924
2914
  p === "horizontal" ? "horizontal" : "vertical",
2925
2915
  u
@@ -2929,45 +2919,57 @@ function ControlsComponent({ style: t, showZoom: n = !0, showFitView: r = !0, sh
2929
2919
  "data-testid": "rf__controls",
2930
2920
  "aria-label": m ?? y["controls.ariaLabel"],
2931
2921
  children: [
2932
- n && jsxs(Fragment$1, { children: [jsx(ControlButton, {
2933
- onClick: C,
2922
+ n && X(De, { children: [Y(qr, {
2923
+ onClick: () => {
2924
+ b(), o?.();
2925
+ },
2934
2926
  className: "react-flow__controls-zoomin",
2935
2927
  title: y["controls.zoomIn.ariaLabel"],
2936
2928
  "aria-label": y["controls.zoomIn.ariaLabel"],
2937
2929
  disabled: v,
2938
- children: jsx(PlusIcon, {})
2939
- }), jsx(ControlButton, {
2940
- onClick: w,
2930
+ children: Y(Hr, {})
2931
+ }), Y(qr, {
2932
+ onClick: () => {
2933
+ x(), s?.();
2934
+ },
2941
2935
  className: "react-flow__controls-zoomout",
2942
2936
  title: y["controls.zoomOut.ariaLabel"],
2943
2937
  "aria-label": y["controls.zoomOut.ariaLabel"],
2944
2938
  disabled: _,
2945
- children: jsx(MinusIcon, {})
2939
+ children: Y(Ur, {})
2946
2940
  })] }),
2947
- r && jsx(ControlButton, {
2941
+ r && Y(qr, {
2948
2942
  className: "react-flow__controls-fitview",
2949
- onClick: T,
2943
+ onClick: () => {
2944
+ S(a), c?.();
2945
+ },
2950
2946
  title: y["controls.fitView.ariaLabel"],
2951
2947
  "aria-label": y["controls.fitView.ariaLabel"],
2952
- children: jsx(FitViewIcon, {})
2948
+ children: Y(Wr, {})
2953
2949
  }),
2954
- i && jsx(ControlButton, {
2950
+ i && Y(qr, {
2955
2951
  className: "react-flow__controls-interactive",
2956
- onClick: E,
2952
+ onClick: () => {
2953
+ h.setState({
2954
+ nodesDraggable: !g,
2955
+ nodesConnectable: !g,
2956
+ elementsSelectable: !g
2957
+ }), l?.(!g);
2958
+ },
2957
2959
  title: y["controls.interactive.ariaLabel"],
2958
2960
  "aria-label": y["controls.interactive.ariaLabel"],
2959
- children: jsx(g ? UnlockIcon : LockIcon, {})
2961
+ children: Y(g ? Kr : Gr, {})
2960
2962
  }),
2961
2963
  d
2962
2964
  ]
2963
2965
  });
2964
2966
  }
2965
- ControlsComponent.displayName = "Controls";
2966
- var Controls = memo(ControlsComponent);
2967
- function MiniMapNodeComponent({ id: t, x: n, y: r, width: i, height: a, style: o, color: s, strokeColor: c, strokeWidth: l, className: u, borderRadius: d, shapeRendering: f, selected: p, onClick: m }) {
2967
+ Yr.displayName = "Controls";
2968
+ var Xr = U(Yr);
2969
+ function Zr({ id: t, x: n, y: r, width: i, height: a, style: o, color: s, strokeColor: c, strokeWidth: l, className: u, borderRadius: d, shapeRendering: f, selected: p, onClick: m }) {
2968
2970
  let { background: h, backgroundColor: g } = o || {}, _ = s || h || g;
2969
- return jsx("rect", {
2970
- className: cc([
2971
+ return Y("rect", {
2972
+ className: e([
2971
2973
  "react-flow__minimap-node",
2972
2974
  { selected: p },
2973
2975
  u
@@ -2987,10 +2989,10 @@ function MiniMapNodeComponent({ id: t, x: n, y: r, width: i, height: a, style: o
2987
2989
  onClick: m ? (e) => m(e, t) : void 0
2988
2990
  });
2989
2991
  }
2990
- var MiniMapNode = memo(MiniMapNodeComponent), selectorNodeIds = (e) => e.nodes.map((e) => e.id), getAttrFunction = (e) => e instanceof Function ? e : () => e;
2991
- function MiniMapNodes({ nodeStrokeColor: e, nodeColor: t, nodeClassName: n = "", nodeBorderRadius: r = 5, nodeStrokeWidth: i, nodeComponent: a = MiniMapNode, onClick: o }) {
2992
- let s = useStore(selectorNodeIds, shallow), c = getAttrFunction(t), l = getAttrFunction(e), u = getAttrFunction(n), d = typeof window > "u" || window.chrome ? "crispEdges" : "geometricPrecision";
2993
- return jsx(Fragment$1, { children: s.map((e) => jsx(NodeComponentWrapper, {
2992
+ var Qr = U(Zr), $r = (e) => e.nodes.map((e) => e.id), ei = (e) => e instanceof Function ? e : () => e;
2993
+ function ti({ nodeStrokeColor: e, nodeColor: t, nodeClassName: n = "", nodeBorderRadius: r = 5, nodeStrokeWidth: i, nodeComponent: a = Qr, onClick: o }) {
2994
+ let s = Q($r, Z), c = ei(t), l = ei(e), u = ei(n), d = typeof window > "u" || window.chrome ? "crispEdges" : "geometricPrecision";
2995
+ return Y(De, { children: s.map((e) => Y(ri, {
2994
2996
  id: e,
2995
2997
  nodeColorFunc: c,
2996
2998
  nodeStrokeColorFunc: l,
@@ -3002,8 +3004,8 @@ function MiniMapNodes({ nodeStrokeColor: e, nodeColor: t, nodeClassName: n = "",
3002
3004
  shapeRendering: d
3003
3005
  }, e)) });
3004
3006
  }
3005
- function NodeComponentWrapperInner({ id: e, nodeColorFunc: t, nodeStrokeColorFunc: n, nodeClassNameFunc: r, nodeBorderRadius: i, nodeStrokeWidth: a, shapeRendering: o, NodeComponent: s, onClick: c }) {
3006
- let { node: l, x: u, y: d, width: f, height: p } = useStore((t) => {
3007
+ function ni({ id: e, nodeColorFunc: t, nodeStrokeColorFunc: n, nodeClassNameFunc: r, nodeBorderRadius: i, nodeStrokeWidth: a, shapeRendering: o, NodeComponent: s, onClick: c }) {
3008
+ let { node: l, x: u, y: d, width: f, height: p } = Q((t) => {
3007
3009
  let n = t.nodeLookup.get(e);
3008
3010
  if (!n) return {
3009
3011
  node: void 0,
@@ -3012,7 +3014,7 @@ function NodeComponentWrapperInner({ id: e, nodeColorFunc: t, nodeStrokeColorFun
3012
3014
  width: 0,
3013
3015
  height: 0
3014
3016
  };
3015
- let r = n.internals.userNode, { x: i, y: a } = n.internals.positionAbsolute, { width: o, height: s } = getNodeDimensions(r);
3017
+ let r = n.internals.userNode, { x: i, y: a } = n.internals.positionAbsolute, { width: o, height: s } = I(r);
3016
3018
  return {
3017
3019
  node: r,
3018
3020
  x: i,
@@ -3020,8 +3022,8 @@ function NodeComponentWrapperInner({ id: e, nodeColorFunc: t, nodeStrokeColorFun
3020
3022
  width: o,
3021
3023
  height: s
3022
3024
  };
3023
- }, shallow);
3024
- return !l || l.hidden || !nodeHasDimensions(l) ? null : jsx(s, {
3025
+ }, Z);
3026
+ return !l || l.hidden || !pe(l) ? null : Y(s, {
3025
3027
  x: u,
3026
3028
  y: d,
3027
3029
  width: f,
@@ -3038,7 +3040,7 @@ function NodeComponentWrapperInner({ id: e, nodeColorFunc: t, nodeStrokeColorFun
3038
3040
  id: l.id
3039
3041
  });
3040
3042
  }
3041
- var NodeComponentWrapper = memo(NodeComponentWrapperInner), MiniMapNodes$1 = memo(MiniMapNodes), defaultWidth = 200, defaultHeight = 150, filterHidden = (e) => !e.hidden, selector$1 = (e) => {
3043
+ var ri = U(ni), ii = U(ti), ai = 200, oi = 150, si = (e) => !e.hidden, ci = (e) => {
3042
3044
  let t = {
3043
3045
  x: -e.transform[0] / e.transform[2],
3044
3046
  y: -e.transform[1] / e.transform[2],
@@ -3047,7 +3049,7 @@ var NodeComponentWrapper = memo(NodeComponentWrapperInner), MiniMapNodes$1 = mem
3047
3049
  };
3048
3050
  return {
3049
3051
  viewBB: t,
3050
- boundingRect: e.nodeLookup.size > 0 ? getBoundsOfRects(getInternalNodesBounds(e.nodeLookup, { filter: filterHidden }), t) : t,
3052
+ boundingRect: e.nodeLookup.size > 0 ? E(F(e.nodeLookup, { filter: si }), t) : t,
3051
3053
  rfId: e.rfId,
3052
3054
  panZoom: e.panZoom,
3053
3055
  translateExtent: e.translateExtent,
@@ -3055,20 +3057,20 @@ var NodeComponentWrapper = memo(NodeComponentWrapperInner), MiniMapNodes$1 = mem
3055
3057
  flowHeight: e.height,
3056
3058
  ariaLabelConfig: e.ariaLabelConfig
3057
3059
  };
3058
- }, ARIA_LABEL_KEY = "react-flow__minimap-desc";
3059
- function MiniMapComponent({ style: t, className: n, nodeStrokeColor: r, nodeColor: i, nodeClassName: a = "", nodeBorderRadius: o = 5, nodeStrokeWidth: s, nodeComponent: c, bgColor: l, maskColor: d, maskStrokeColor: f, maskStrokeWidth: p, position: m = "bottom-right", onClick: h, onNodeClick: g, pannable: _ = !1, zoomable: v = !1, ariaLabel: y, inversePan: b, zoomStep: x = 1, offsetScale: S = 5 }) {
3060
- let C = useStoreApi(), w = useRef(null), { boundingRect: T, viewBB: E, rfId: D, panZoom: O, translateExtent: k, flowWidth: A, flowHeight: j, ariaLabelConfig: M } = useStore(selector$1, shallow), N = t?.width ?? defaultWidth, P = t?.height ?? defaultHeight, F = T.width / N, I = T.height / P, L = Math.max(F, I), R = L * N, z = L * P, B = S * L, V = T.x - (R - T.width) / 2 - B, H = T.y - (z - T.height) / 2 - B, U = R + B * 2, W = z + B * 2, G = `${ARIA_LABEL_KEY}-${D}`, K = useRef(0), q = useRef();
3061
- K.current = L, useEffect(() => {
3062
- if (w.current && O) return q.current = XYMinimap({
3060
+ }, li = "react-flow__minimap-desc";
3061
+ function ui({ style: t, className: n, nodeStrokeColor: r, nodeColor: i, nodeClassName: a = "", nodeBorderRadius: o = 5, nodeStrokeWidth: s, nodeComponent: c, bgColor: l, maskColor: d, maskStrokeColor: f, maskStrokeWidth: p, position: m = "bottom-right", onClick: h, onNodeClick: g, pannable: _ = !1, zoomable: v = !1, ariaLabel: y, inversePan: b, zoomStep: x = 1, offsetScale: S = 5 }) {
3062
+ let C = $(), w = q(null), { boundingRect: T, viewBB: E, rfId: D, panZoom: O, translateExtent: k, flowWidth: A, flowHeight: j, ariaLabelConfig: M } = Q(ci, Z), N = t?.width ?? ai, P = t?.height ?? oi, F = T.width / N, ee = T.height / P, I = Math.max(F, ee), L = I * N, R = I * P, z = S * I, B = T.x - (L - T.width) / 2 - z, V = T.y - (R - T.height) / 2 - z, H = L + z * 2, te = R + z * 2, ne = `${li}-${D}`, re = q(0), ie = q();
3063
+ re.current = I, G(() => {
3064
+ if (w.current && O) return ie.current = u({
3063
3065
  domNode: w.current,
3064
3066
  panZoom: O,
3065
3067
  getTransform: () => C.getState().transform,
3066
- getViewScale: () => K.current
3068
+ getViewScale: () => re.current
3067
3069
  }), () => {
3068
- q.current?.destroy();
3070
+ ie.current?.destroy();
3069
3071
  };
3070
- }, [O]), useEffect(() => {
3071
- q.current?.update({
3072
+ }, [O]), G(() => {
3073
+ ie.current?.update({
3072
3074
  translateExtent: k,
3073
3075
  width: A,
3074
3076
  height: j,
@@ -3086,46 +3088,46 @@ function MiniMapComponent({ style: t, className: n, nodeStrokeColor: r, nodeColo
3086
3088
  A,
3087
3089
  j
3088
3090
  ]);
3089
- let J = h ? (e) => {
3090
- let [t, n] = q.current?.pointer(e) || [0, 0];
3091
+ let ae = h ? (e) => {
3092
+ let [t, n] = ie.current?.pointer(e) || [0, 0];
3091
3093
  h(e, {
3092
3094
  x: t,
3093
3095
  y: n
3094
3096
  });
3095
- } : void 0, Y = g ? useCallback((e, t) => {
3097
+ } : void 0, oe = g ? W((e, t) => {
3096
3098
  let n = C.getState().nodeLookup.get(t).internals.userNode;
3097
3099
  g(e, n);
3098
- }, []) : void 0, X = y ?? M["minimap.ariaLabel"];
3099
- return jsx(Panel, {
3100
+ }, []) : void 0, se = y ?? M["minimap.ariaLabel"];
3101
+ return Y(Ue, {
3100
3102
  position: m,
3101
3103
  style: {
3102
3104
  ...t,
3103
3105
  "--xy-minimap-background-color-props": typeof l == "string" ? l : void 0,
3104
3106
  "--xy-minimap-mask-background-color-props": typeof d == "string" ? d : void 0,
3105
3107
  "--xy-minimap-mask-stroke-color-props": typeof f == "string" ? f : void 0,
3106
- "--xy-minimap-mask-stroke-width-props": typeof p == "number" ? p * L : void 0,
3108
+ "--xy-minimap-mask-stroke-width-props": typeof p == "number" ? p * I : void 0,
3107
3109
  "--xy-minimap-node-background-color-props": typeof i == "string" ? i : void 0,
3108
3110
  "--xy-minimap-node-stroke-color-props": typeof r == "string" ? r : void 0,
3109
3111
  "--xy-minimap-node-stroke-width-props": typeof s == "number" ? s : void 0
3110
3112
  },
3111
- className: cc(["react-flow__minimap", n]),
3113
+ className: e(["react-flow__minimap", n]),
3112
3114
  "data-testid": "rf__minimap",
3113
- children: jsxs("svg", {
3115
+ children: X("svg", {
3114
3116
  width: N,
3115
3117
  height: P,
3116
- viewBox: `${V} ${H} ${U} ${W}`,
3118
+ viewBox: `${B} ${V} ${H} ${te}`,
3117
3119
  className: "react-flow__minimap-svg",
3118
3120
  role: "img",
3119
- "aria-labelledby": G,
3121
+ "aria-labelledby": ne,
3120
3122
  ref: w,
3121
- onClick: J,
3123
+ onClick: ae,
3122
3124
  children: [
3123
- X && jsx("title", {
3124
- id: G,
3125
- children: X
3125
+ se && Y("title", {
3126
+ id: ne,
3127
+ children: se
3126
3128
  }),
3127
- jsx(MiniMapNodes$1, {
3128
- onClick: Y,
3129
+ Y(ii, {
3130
+ onClick: oe,
3129
3131
  nodeColor: i,
3130
3132
  nodeStrokeColor: r,
3131
3133
  nodeBorderRadius: o,
@@ -3133,9 +3135,9 @@ function MiniMapComponent({ style: t, className: n, nodeStrokeColor: r, nodeColo
3133
3135
  nodeStrokeWidth: s,
3134
3136
  nodeComponent: c
3135
3137
  }),
3136
- jsx("path", {
3138
+ Y("path", {
3137
3139
  className: "react-flow__minimap-mask",
3138
- d: `M${V - B},${H - B}h${U + B * 2}v${W + B * 2}h${-U - B * 2}z
3140
+ d: `M${B - z},${V - z}h${H + z * 2}v${te + z * 2}h${-H - z * 2}z
3139
3141
  M${E.x},${E.y}h${E.width}v${E.height}h${-E.width}z`,
3140
3142
  fillRule: "evenodd",
3141
3143
  pointerEvents: "none"
@@ -3144,15 +3146,15 @@ function MiniMapComponent({ style: t, className: n, nodeStrokeColor: r, nodeColo
3144
3146
  })
3145
3147
  });
3146
3148
  }
3147
- MiniMapComponent.displayName = "MiniMap", memo(MiniMapComponent);
3148
- var scaleSelector = (e) => (t) => e ? `${Math.max(1 / t.transform[2], 1)}` : void 0, defaultPositions = {
3149
- [ResizeControlVariant.Line]: "right",
3150
- [ResizeControlVariant.Handle]: "bottom-right"
3149
+ ui.displayName = "MiniMap", U(ui);
3150
+ var di = (e) => (t) => e ? `${Math.max(1 / t.transform[2], 1)}` : void 0, fi = {
3151
+ [o.Line]: "right",
3152
+ [o.Handle]: "bottom-right"
3151
3153
  };
3152
- function ResizeControl({ nodeId: t, position: n, variant: r = ResizeControlVariant.Handle, className: i, style: a = void 0, children: s, color: c, minWidth: l = 10, minHeight: u = 10, maxWidth: d = Number.MAX_VALUE, maxHeight: p = Number.MAX_VALUE, keepAspectRatio: m = !1, resizeDirection: h, autoScale: g = !0, shouldResize: _, onResizeStart: v, onResize: y, onResizeEnd: b }) {
3153
- let x = useNodeId(), C = typeof t == "string" ? t : x, w = useStoreApi(), T = useRef(null), E = r === ResizeControlVariant.Handle, D = useStore(useCallback(scaleSelector(E && g), [E, g]), shallow), O = useRef(null), k = n ?? defaultPositions[r];
3154
- return useEffect(() => {
3155
- if (!(!T.current || !C)) return O.current ||= XYResizer({
3154
+ function pi({ nodeId: t, position: n, variant: r = o.Handle, className: i, style: a = void 0, children: s, color: c, minWidth: l = 10, minHeight: u = 10, maxWidth: d = Number.MAX_VALUE, maxHeight: p = Number.MAX_VALUE, keepAspectRatio: m = !1, resizeDirection: h, autoScale: g = !0, shouldResize: _, onResizeStart: v, onResize: y, onResizeEnd: b }) {
3155
+ let x = qt(), C = typeof t == "string" ? t : x, w = $(), T = q(null), E = r === o.Handle, D = Q(W(di(E && g), [E, g]), Z), O = q(null), k = n ?? fi[r];
3156
+ return G(() => {
3157
+ if (!(!T.current || !C)) return O.current ||= f({
3156
3158
  domNode: T.current,
3157
3159
  nodeId: C,
3158
3160
  getStoreItems: () => {
@@ -3172,13 +3174,13 @@ function ResizeControl({ nodeId: t, position: n, variant: r = ResizeControlVaria
3172
3174
  y: e.y
3173
3175
  }, c = r.get(C);
3174
3176
  if (c && c.expandParent && c.parentId) {
3175
- let t = c.origin ?? a, n = e.width ?? c.measured.width ?? 0, l = e.height ?? c.measured.height ?? 0, u = handleExpandParent([{
3177
+ let t = c.origin ?? a, n = e.width ?? c.measured.width ?? 0, l = e.height ?? c.measured.height ?? 0, u = te([{
3176
3178
  id: c.id,
3177
3179
  parentId: c.parentId,
3178
3180
  rect: {
3179
3181
  width: n,
3180
3182
  height: l,
3181
- ...evaluateAbsolutePosition({
3183
+ ...S({
3182
3184
  x: e.x ?? c.position.x,
3183
3185
  y: e.y ?? c.position.y
3184
3186
  }, {
@@ -3259,8 +3261,8 @@ function ResizeControl({ nodeId: t, position: n, variant: r = ResizeControlVaria
3259
3261
  y,
3260
3262
  b,
3261
3263
  _
3262
- ]), jsx("div", {
3263
- className: cc([
3264
+ ]), Y("div", {
3265
+ className: e([
3264
3266
  "react-flow__resize-control",
3265
3267
  "nodrag",
3266
3268
  ...k.split("-"),
@@ -3276,5 +3278,6 @@ function ResizeControl({ nodeId: t, position: n, variant: r = ResizeControlVaria
3276
3278
  children: s
3277
3279
  });
3278
3280
  }
3279
- memo(ResizeControl);
3280
- export { Background, BackgroundVariant, BaseEdge, Controls, EdgeLabelRenderer, Handle, ReactFlowProvider, index, useEdgesState, useNodesState, useReactFlow };
3281
+ U(pi);
3282
+ //#endregion
3283
+ export { Vr as Background, Lr as BackgroundVariant, Mn as BaseEdge, Xr as Controls, Mr as EdgeLabelRenderer, Zt as Handle, Er as ReactFlowProvider, Ar as index, Pr as useEdgesState, Nr as useNodesState, Ot as useReactFlow };