@loopstack/loopstack-studio 0.25.1 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/rolldown_runtime.js +20 -0
- package/dist/api/auth.js +2 -4
- package/dist/api/client.js +7 -9
- package/dist/api/config.js +2 -4
- package/dist/api/dashboard.js +2 -4
- package/dist/api/documents.js +2 -4
- package/dist/api/environments.js +4 -0
- package/dist/api/index.js +23 -21
- package/dist/api/processor.js +2 -4
- package/dist/api/secrets.js +2 -4
- package/dist/api/workflows.js +2 -4
- package/dist/api/workspaces.js +2 -4
- package/dist/app/EnvironmentEmbedRoot.js +41 -24
- package/dist/components/ai-elements/code-block.js +71 -53
- package/dist/components/ai-elements/message.js +82 -41
- package/dist/components/ai-elements/prompt-input.js +253 -162
- package/dist/components/ai-elements/reasoning.js +116 -78
- package/dist/components/ai-elements/shimmer.js +35 -23
- package/dist/components/ai-elements/sources.js +58 -29
- package/dist/components/data-table/ConfirmDialog.js +30 -14
- package/dist/components/data-table/DataList.js +200 -138
- package/dist/components/data-table/DataTable.js +236 -168
- package/dist/components/data-table/DataTableBatchAction.js +27 -18
- package/dist/components/data-table/DataTableFilters.js +78 -53
- package/dist/components/data-table/DataTablePagination.js +104 -72
- package/dist/components/data-table/DataTableToolbar.js +65 -53
- package/dist/components/dynamic-form/ArrayController.js +103 -85
- package/dist/components/dynamic-form/CodeContent.js +36 -28
- package/dist/components/dynamic-form/Form.js +56 -43
- package/dist/components/dynamic-form/FormBody.js +10 -12
- package/dist/components/dynamic-form/FormElement.js +41 -31
- package/dist/components/dynamic-form/FormElementHeader.js +20 -12
- package/dist/components/dynamic-form/InputController.js +38 -36
- package/dist/components/dynamic-form/MarkdownContent.js +74 -53
- package/dist/components/dynamic-form/MermaidDiagram.js +24 -22
- package/dist/components/dynamic-form/ObjectController.js +32 -24
- package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +47 -35
- package/dist/components/dynamic-form/fields/CheckboxField.js +48 -39
- package/dist/components/dynamic-form/fields/CodeViewField.js +50 -42
- package/dist/components/dynamic-form/fields/InputField.js +90 -62
- package/dist/components/dynamic-form/fields/MarkdownViewField.js +19 -16
- package/dist/components/dynamic-form/fields/RadioField.js +62 -46
- package/dist/components/dynamic-form/fields/SelectField.js +58 -40
- package/dist/components/dynamic-form/fields/SliderField.js +100 -94
- package/dist/components/dynamic-form/fields/SwitchField.js +61 -42
- package/dist/components/dynamic-form/fields/TextareaField.js +72 -53
- package/dist/components/dynamic-form/fields/utils/text-validation-utils.js +2 -4
- package/dist/components/dynamic-form/hooks/useArrayDefaultValue.js +5 -6
- package/dist/components/dynamic-form/hooks/useFieldConfig.js +20 -19
- package/dist/components/dynamic-form/hooks/useMergeParentKey.js +2 -4
- package/dist/components/dynamic-form/hooks/useSortPropertyNames.js +2 -4
- package/dist/components/feedback/ErrorAlert.js +17 -11
- package/dist/components/feedback/ErrorBoundary.js +14 -16
- package/dist/components/feedback/ErrorSnackbar.js +30 -13
- package/dist/components/feedback/LoadingCentered.js +28 -15
- package/dist/components/feedback/Snackbar.js +44 -43
- package/dist/components/feedback/index.js +5 -5
- package/dist/components/index.js +47 -47
- package/dist/components/layout/MainLayout.js +25 -17
- package/dist/components/layout/StudioSidebar.js +203 -140
- package/dist/components/lists/CustomListView.js +74 -49
- package/dist/components/lists/ListView.js +102 -66
- package/dist/components/loopstack-elements/link.js +104 -65
- package/dist/components/loopstack-elements/tool.js +142 -70
- package/dist/components/messages/CompletionMessagePaper.js +85 -53
- package/dist/components/page/PageBreadcrumbs.js +83 -64
- package/dist/components/ui/DiscordLogo.js +22 -16
- package/dist/components/ui/GoogleLogo.js +44 -40
- package/dist/components/ui/accordion.js +52 -31
- package/dist/components/ui/alert-dialog.js +109 -59
- package/dist/components/ui/alert.js +36 -22
- package/dist/components/ui/avatar.js +35 -21
- package/dist/components/ui/badge.js +17 -13
- package/dist/components/ui/breadcrumb.js +82 -46
- package/dist/components/ui/button-group.js +5 -5
- package/dist/components/ui/button.js +21 -17
- package/dist/components/ui/card.js +74 -40
- package/dist/components/ui/checkbox.js +23 -17
- package/dist/components/ui/collapsible.js +25 -17
- package/dist/components/ui/command.js +2 -1
- package/dist/components/ui/context-menu.js +52 -32
- package/dist/components/ui/dialog.js +107 -62
- package/dist/components/ui/drawer.js +99 -54
- package/dist/components/ui/dropdown-menu.js +159 -91
- package/dist/components/ui/hover-card.js +2 -1
- package/dist/components/ui/input-group.js +56 -36
- package/dist/components/ui/input.js +15 -11
- package/dist/components/ui/label.js +15 -11
- package/dist/components/ui/popover.js +38 -25
- package/dist/components/ui/radio-group.js +33 -22
- package/dist/components/ui/scroll-area.js +43 -28
- package/dist/components/ui/select.js +134 -73
- package/dist/components/ui/separator.js +17 -13
- package/dist/components/ui/sheet.js +105 -60
- package/dist/components/ui/sidebar.js +451 -269
- package/dist/components/ui/skeleton.js +14 -10
- package/dist/components/ui/slider.js +41 -32
- package/dist/components/ui/switch.js +21 -15
- package/dist/components/ui/table.js +85 -46
- package/dist/components/ui/tabs.js +45 -26
- package/dist/components/ui/textarea.js +14 -10
- package/dist/components/ui/tooltip.js +41 -26
- package/dist/components/ui-widgets/UiActions.js +37 -30
- package/dist/components/ui-widgets/UiWidget.js +46 -34
- package/dist/components/ui-widgets/widgets/AiPromptInput.js +42 -28
- package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +21 -16
- package/dist/components/ui-widgets/widgets/SandboxRun.js +28 -19
- package/dist/components/ui-widgets/widgets/SubmitButton.js +20 -15
- package/dist/events/api-client-events.js +2 -4
- package/dist/events/sse-client-events.js +2 -4
- package/dist/features/code-explorer/CodeExplorer.js +2 -1
- package/dist/features/code-explorer/components/CodeExplorerTree.js +3 -2
- package/dist/features/code-explorer/components/CodeExplorerTreeNode.js +29 -31
- package/dist/features/code-explorer/components/FileContentViewer.js +148 -108
- package/dist/features/code-explorer/components/FileTabsBar.js +2 -1
- package/dist/features/code-explorer/components/FileTabsBarBase.js +169 -134
- package/dist/features/code-explorer/index.js +1 -1
- package/dist/features/code-explorer/providers/CodeExplorerProvider.js +4 -4
- package/dist/features/code-explorer/utils/fileIcons.js +39 -41
- package/dist/features/dashboard/Dashboard.js +121 -79
- package/dist/features/dashboard/RunItem.js +70 -50
- package/dist/features/dashboard/RunList.js +28 -17
- package/dist/features/debug/components/ConfigFlowViewer.js +67 -49
- package/dist/features/debug/components/WorkflowDebugHeader.js +46 -30
- package/dist/features/debug/components/WorkflowDebugLegend.js +68 -56
- package/dist/features/debug/components/WorkflowFlowViewer.js +96 -76
- package/dist/features/debug/components/workflow-flow/StateNode.js +102 -73
- package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +40 -35
- package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +94 -61
- package/dist/features/debug/index.js +3 -3
- package/dist/features/debug/lib/edge-paths.js +31 -33
- package/dist/features/debug/lib/flow-utils.js +145 -147
- package/dist/features/documents/DocumentRenderer.js +73 -68
- package/dist/features/documents/components/DocumentItem.js +24 -21
- package/dist/features/documents/components/DocumentList.js +45 -39
- package/dist/features/documents/components/DocumentMetadataPills.js +59 -44
- package/dist/features/documents/document-details/DocumentDetails.js +413 -298
- package/dist/features/documents/document-details/PromptDetails.js +142 -105
- package/dist/features/documents/index.js +4 -4
- package/dist/features/documents/renderers/AiMessage.js +48 -39
- package/dist/features/documents/renderers/AiMessageContent.js +164 -108
- package/dist/features/documents/renderers/ChoicesRenderer.js +89 -77
- package/dist/features/documents/renderers/ClaudeMessage.js +91 -74
- package/dist/features/documents/renderers/ConfirmPromptRenderer.js +53 -44
- package/dist/features/documents/renderers/DocumentDebugRenderer.js +30 -26
- package/dist/features/documents/renderers/DocumentFormRenderer.js +85 -69
- package/dist/features/documents/renderers/DocumentMessageRenderer.js +9 -10
- package/dist/features/documents/renderers/ErrorMessageRenderer.js +13 -11
- package/dist/features/documents/renderers/LinkMessageRenderer.js +14 -15
- package/dist/features/documents/renderers/MarkdownMessageRenderer.js +10 -8
- package/dist/features/documents/renderers/PlainMessageRenderer.js +9 -7
- package/dist/features/documents/renderers/TextPromptRenderer.js +54 -45
- package/dist/features/documents/renderers/useDocumentTransition.js +33 -30
- package/dist/features/feature-registry/FeatureRegistryProvider.js +17 -0
- package/dist/features/feature-registry/index.js +1 -0
- package/dist/features/file-explorer/api/files.js +7 -0
- package/dist/features/file-explorer/components/FileExplorerPanel.js +95 -0
- package/dist/features/file-explorer/components/FileTabsBar.js +18 -0
- package/dist/features/file-explorer/components/FileTree.js +90 -0
- package/dist/features/file-explorer/file-explorer-feature.js +12 -0
- package/dist/features/file-explorer/hooks/useFileExplorer.js +44 -0
- package/dist/features/file-explorer/index.js +2 -0
- package/dist/features/file-explorer/providers/FileExplorerProvider.js +112 -0
- package/dist/features/health/LocalHealthCheck.js +53 -54
- package/dist/features/health/index.js +1 -1
- package/dist/features/oauth/OAuthCallbackPage.js +2 -2
- package/dist/features/oauth/OAuthPromptRenderer.js +235 -156
- package/dist/features/oauth/index.js +2 -2
- package/dist/features/oauth/useOAuthPopup.js +71 -52
- package/dist/features/runs/Runs.js +187 -145
- package/dist/features/secrets/components/WorkbenchSecretsPanel.js +178 -0
- package/dist/features/secrets/index.js +1 -0
- package/dist/features/secrets/renderers/SecretInputRenderer.js +87 -0
- package/dist/features/secrets/secrets-feature.js +14 -0
- package/dist/features/workbench/Workbench.js +50 -74
- package/dist/features/workbench/WorkflowItem.js +68 -49
- package/dist/features/workbench/WorkflowList.js +127 -49
- package/dist/features/workbench/components/NewRunDialog.js +309 -212
- package/dist/features/workbench/components/SidebarPanel.js +155 -0
- package/dist/features/workbench/components/WorkbenchEnvironmentPanel.js +82 -0
- package/dist/features/workbench/components/WorkbenchIconSidebar.js +137 -51
- package/dist/features/workbench/components/WorkbenchPreviewPanel.js +134 -123
- package/dist/features/workbench/components/WorkbenchRunsPanel.js +32 -0
- package/dist/features/workbench/components/WorkbenchSettingsModal.js +60 -49
- package/dist/features/workbench/components/WorkbenchSidebarShell.js +80 -0
- package/dist/features/workbench/components/WorkflowForms.js +23 -17
- package/dist/features/workbench/components/WorkflowHistoryItem.js +122 -96
- package/dist/features/workbench/components/WorkflowHistoryList.js +54 -31
- package/dist/features/workbench/components/buttons/WorkflowButtons.js +99 -70
- package/dist/features/workbench/hooks/useAutoScrollBottom.js +25 -21
- package/dist/features/workbench/hooks/useScrollToListItem.js +21 -20
- package/dist/features/workbench/hooks/useWorkflowData.js +44 -31
- package/dist/features/workbench/hooks/useWorkflowListState.js +12 -13
- package/dist/features/workbench/index.js +8 -7
- package/dist/features/workbench/providers/ScrollProvider.js +19 -15
- package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +75 -78
- package/dist/features/workspaces/Workspaces.js +226 -161
- package/dist/features/workspaces/components/CreateWorkspace.js +194 -137
- package/dist/features/workspaces/components/EnvironmentSlotSelector.js +75 -60
- package/dist/features/workspaces/components/ExecutionTimeline.js +185 -143
- package/dist/features/workspaces/components/NewWorkflowRunDialog.js +26 -18
- package/dist/features/workspaces/components/WorkflowRunForm.js +133 -85
- package/dist/features/workspaces/components/WorkspaceHomePage.js +81 -60
- package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +69 -52
- package/dist/features/workspaces/components/workflow-form/HeaderSection.js +41 -27
- package/dist/features/workspaces/components/workflow-form/SelectionView.js +103 -64
- package/dist/features/workspaces/index.js +3 -3
- package/dist/frontend/studio/node_modules/@dagrejs/dagre/dist/dagre.esm.js +1968 -0
- package/dist/hooks/index.js +6 -6
- package/dist/hooks/query-keys.js +31 -33
- package/dist/hooks/use-mobile.js +11 -12
- package/dist/hooks/useApi.js +14 -16
- package/dist/hooks/useAuth.js +53 -38
- package/dist/hooks/useConfig.js +37 -26
- package/dist/hooks/useDashboard.js +15 -12
- package/dist/hooks/useDebounce.js +11 -12
- package/dist/hooks/useDocuments.js +35 -23
- package/dist/hooks/useEnvironmentPreviewUrl.js +13 -0
- package/dist/hooks/useEnvironments.js +8 -0
- package/dist/hooks/useFiles.js +2 -1
- package/dist/hooks/useProcessor.js +17 -14
- package/dist/hooks/useSecrets.js +64 -45
- package/dist/hooks/useWorkflows.js +163 -109
- package/dist/hooks/useWorkspaces.js +125 -83
- package/dist/index.d.ts +1395 -0
- package/dist/index.js +87 -80
- package/dist/lib/requireParam.js +2 -4
- package/dist/lib/utils.js +5 -7
- package/dist/loopstack-studio.css +1 -1
- package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +4 -6
- package/dist/node_modules/@braintree/sanitize-url/dist/index.js +6 -8
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +17 -19
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +71 -73
- package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +13 -16
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +2 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +2 -4
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +34 -36
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +110 -138
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +11 -13
- package/dist/node_modules/@chevrotain/utils/lib/src/print.js +3 -5
- package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +2 -4
- package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +2 -4
- package/dist/node_modules/@iconify/utils/lib/customisations/defaults.js +6 -8
- package/dist/node_modules/@iconify/utils/lib/icon/defaults.js +8 -10
- package/dist/node_modules/@iconify/utils/lib/icon/merge.js +6 -8
- package/dist/node_modules/@iconify/utils/lib/icon/name.js +6 -8
- package/dist/node_modules/@iconify/utils/lib/icon/transformations.js +2 -4
- package/dist/node_modules/@iconify/utils/lib/icon-set/get-icon.js +10 -12
- package/dist/node_modules/@iconify/utils/lib/icon-set/tree.js +2 -4
- package/dist/node_modules/@iconify/utils/lib/svg/build.js +18 -20
- package/dist/node_modules/@iconify/utils/lib/svg/defs.js +6 -8
- package/dist/node_modules/@iconify/utils/lib/svg/html.js +2 -4
- package/dist/node_modules/@iconify/utils/lib/svg/id.js +8 -10
- package/dist/node_modules/@iconify/utils/lib/svg/size.js +5 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +17 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +17 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +23 -28
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +21 -26
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +17 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +17 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +425 -436
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +17 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +38 -45
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +22 -27
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +52 -56
- package/dist/node_modules/@shikijs/core/dist/index.js +575 -577
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/index.js +157 -159
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.js +2 -4
- package/dist/node_modules/@shikijs/langs/dist/abap.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/actionscript-3.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ada.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-expression.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-html.js +13 -15
- package/dist/node_modules/@shikijs/langs/dist/angular-inline-style.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/angular-inline-template.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/angular-let-declaration.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/angular-template-blocks.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/angular-template.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/angular-ts.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/apache.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/apex.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/apl.js +13 -15
- package/dist/node_modules/@shikijs/langs/dist/applescript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ara.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/asm.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/astro.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/awk.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ballerina.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/bat.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/beancount.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/berry.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/bibtex.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/bicep.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/bird2.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/blade.js +17 -19
- package/dist/node_modules/@shikijs/langs/dist/bsl.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/c.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/c3.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cadence.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cairo.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/clarity.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/clojure.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cmake.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cobol.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/codeowners.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/codeql.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/coffee.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/common-lisp.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/coq.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cpp-macro.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/cpp.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/crystal.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/csharp.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/css.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/csv.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cue.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cypher.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/d.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/dart.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/dax.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/desktop.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/diff.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/docker.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/dotenv.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/dream-maker.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/edge.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/elixir.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/elm.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/emacs-lisp.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/erb.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/erlang.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/es-tag-css.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/es-tag-glsl.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/es-tag-html.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/es-tag-sql.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/es-tag-xml.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/fennel.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/fish.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/fluent.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/fortran-fixed-form.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/fortran-free-form.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/fsharp.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/gdresource.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/gdscript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/gdshader.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/genie.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/gherkin.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/git-commit.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/git-rebase.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/gleam.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/glimmer-js.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/glimmer-ts.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/glsl.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/gn.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/gnuplot.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/go.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/graphql.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/groovy.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/hack.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/haml.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/handlebars.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/haskell.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/haxe.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/hcl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/hjson.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/hlsl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/html-derivative.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/html.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/http.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/hurl.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/hxml.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/hy.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/imba.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ini.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/java.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/javascript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jinja-html.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/jinja.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/jison.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/json.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/json5.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jsonc.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jsonl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jsonnet.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jssm.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jsx.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/julia.js +13 -15
- package/dist/node_modules/@shikijs/langs/dist/just.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/kdl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/kotlin.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/kusto.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/latex.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/lean.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/less.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/liquid.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/llvm.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/log.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/logo.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/lua.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/luau.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/make.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/markdown-nix.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/markdown-vue.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/markdown.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/marko.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/matlab.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/mdc.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/mdx.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/mermaid.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/mipsasm.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/mojo.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/moonbit.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/move.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/narrat.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/nextflow-groovy.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/nextflow.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/nginx.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/nim.js +17 -19
- package/dist/node_modules/@shikijs/langs/dist/nix.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/nushell.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/objective-c.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/objective-cpp.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ocaml.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/odin.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/openscad.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/pascal.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/perl.js +13 -15
- package/dist/node_modules/@shikijs/langs/dist/php.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/pkl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/plsql.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/po.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/polar.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/postcss.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/powerquery.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/powershell.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/prisma.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/prolog.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/proto.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/pug.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/puppet.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/purescript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/python.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/qml.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/qmldir.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/qss.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/r.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/racket.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/raku.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/razor.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/reg.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/regexp.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/rel.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/riscv.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ron.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/rosmsg.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/rst.js +19 -21
- package/dist/node_modules/@shikijs/langs/dist/ruby.js +27 -29
- package/dist/node_modules/@shikijs/langs/dist/rust.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/sas.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/sass.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/scala.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/scheme.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/scss.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/sdbl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/shaderlab.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/shellscript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/shellsession.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/smalltalk.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/solidity.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/soy.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/sparql.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/splunk.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/sql.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ssh-config.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/stata.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/stylus.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/surrealql.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/svelte.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/swift.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/system-verilog.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/systemd.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/talonscript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/tasl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/tcl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/templ.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/terraform.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/tex.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/toml.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ts-tags.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/tsv.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/tsx.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/turtle.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/twig.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/typescript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/typespec.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/typst.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/v.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vala.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vb.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/verilog.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vhdl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/viml.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-directives.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-html.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/vue-interpolations.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/vue.js +23 -25
- package/dist/node_modules/@shikijs/langs/dist/vyper.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wasm.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wenyan.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wgsl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wikitext.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wit.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wolfram.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/xml.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/xsl.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/yaml.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/zenscript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/zig.js +2 -3
- package/dist/node_modules/@shikijs/primitive/dist/index.js +319 -321
- package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/aurora-x.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/ayu-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/ayu-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/ayu-mirage.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/dark-plus.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/dracula-soft.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/dracula.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/everforest-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/everforest-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-dark-default.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-dark-dimmed.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-dark-high-contrast.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-light-default.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-light-high-contrast.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/horizon-bright.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/horizon.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/houston.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-dragon.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-lotus.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-wave.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/laserwave.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/light-plus.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/material-theme-darker.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/material-theme-lighter.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/material-theme-ocean.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/material-theme-palenight.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/material-theme.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/min-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/min-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/monokai.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/night-owl-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/night-owl.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/nord.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/one-dark-pro.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/one-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/plastic.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/poimandres.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/red.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/rose-pine-dawn.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/rose-pine-moon.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/rose-pine.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/slack-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/slack-ochin.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/snazzy-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/solarized-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/solarized-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/synthwave-84.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/tokyo-night.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/vesper.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/vitesse-black.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/vitesse-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/vitesse-light.js +2 -4
- package/dist/node_modules/@shikijs/types/dist/index.js +2 -4
- package/dist/node_modules/@shikijs/vscode-textmate/dist/index.js +947 -949
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +30 -30
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +4 -6
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +64 -64
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +2 -0
- package/dist/node_modules/@upsetjs/venn.js/build/venn.esm.js +693 -695
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +881 -883
- package/dist/node_modules/@xyflow/system/dist/esm/index.js +1221 -1223
- package/dist/node_modules/bail/index.js +2 -4
- package/dist/node_modules/ccount/index.js +2 -4
- package/dist/node_modules/character-entities-html4/index.js +2 -4
- package/dist/node_modules/character-entities-legacy/index.js +2 -4
- package/dist/node_modules/chevrotain/lib/src/api.js +10 -10
- package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +4 -6
- package/dist/node_modules/chevrotain/lib/src/parse/constants.js +2 -4
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +9 -11
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +15 -17
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +17 -19
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +24 -26
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +201 -203
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +16 -18
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +17 -19
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +12 -14
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +140 -142
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +4 -5
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +25 -27
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +149 -151
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +14 -16
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +38 -40
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +64 -65
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +11 -13
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +101 -103
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +5 -7
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +45 -47
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +6 -8
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +73 -75
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +180 -182
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +23 -24
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +26 -28
- package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +2 -4
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +246 -246
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +2 -4
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +31 -33
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +64 -67
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +10 -12
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +35 -36
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +26 -28
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +240 -242
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +133 -134
- package/dist/node_modules/chevrotain-allstar/lib/dfa.js +10 -11
- package/dist/node_modules/chevrotain-allstar/lib/index.js +1 -1
- package/dist/node_modules/classcat/index.js +3 -5
- package/dist/node_modules/comma-separated-tokens/index.js +3 -5
- package/dist/node_modules/cose-base/cose-base.js +21 -21
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +7940 -7937
- package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +6 -8
- package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.js +6 -8
- package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.js +20 -20
- package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js +4 -6
- package/dist/node_modules/d3/src/index.js +95 -95
- package/dist/node_modules/d3-array/src/ascending.js +2 -4
- package/dist/node_modules/d3-array/src/bisect.js +8 -8
- package/dist/node_modules/d3-array/src/bisector.js +6 -8
- package/dist/node_modules/d3-array/src/descending.js +2 -4
- package/dist/node_modules/d3-array/src/max.js +2 -4
- package/dist/node_modules/d3-array/src/min.js +2 -4
- package/dist/node_modules/d3-array/src/number.js +2 -4
- package/dist/node_modules/d3-array/src/range.js +2 -4
- package/dist/node_modules/d3-array/src/ticks.js +11 -13
- package/dist/node_modules/d3-axis/src/axis.js +46 -48
- package/dist/node_modules/d3-axis/src/identity.js +2 -4
- package/dist/node_modules/d3-brush/src/brush.js +4 -6
- package/dist/node_modules/d3-color/src/color.js +84 -86
- package/dist/node_modules/d3-color/src/define.js +3 -5
- package/dist/node_modules/d3-color/src/lab.js +43 -45
- package/dist/node_modules/d3-color/src/math.js +2 -4
- package/dist/node_modules/d3-dispatch/src/dispatch.js +17 -18
- package/dist/node_modules/d3-drag/src/constant.js +2 -4
- package/dist/node_modules/d3-drag/src/drag.js +75 -77
- package/dist/node_modules/d3-drag/src/event.js +3 -5
- package/dist/node_modules/d3-drag/src/nodrag.js +9 -11
- package/dist/node_modules/d3-drag/src/noevent.js +4 -6
- package/dist/node_modules/d3-ease/src/cubic.js +2 -4
- package/dist/node_modules/d3-format/src/defaultLocale.js +6 -8
- package/dist/node_modules/d3-format/src/exponent.js +4 -6
- package/dist/node_modules/d3-format/src/formatDecimal.js +3 -5
- package/dist/node_modules/d3-format/src/formatGroup.js +2 -4
- package/dist/node_modules/d3-format/src/formatNumerals.js +2 -4
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +8 -10
- package/dist/node_modules/d3-format/src/formatRounded.js +4 -6
- package/dist/node_modules/d3-format/src/formatSpecifier.js +8 -10
- package/dist/node_modules/d3-format/src/formatTrim.js +2 -4
- package/dist/node_modules/d3-format/src/formatTypes.js +13 -15
- package/dist/node_modules/d3-format/src/identity.js +2 -4
- package/dist/node_modules/d3-format/src/locale.js +31 -33
- package/dist/node_modules/d3-format/src/precisionFixed.js +4 -6
- package/dist/node_modules/d3-format/src/precisionPrefix.js +4 -6
- package/dist/node_modules/d3-format/src/precisionRound.js +4 -6
- package/dist/node_modules/d3-hierarchy/src/accessors.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/constant.js +3 -5
- package/dist/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/count.js +4 -6
- package/dist/node_modules/d3-hierarchy/src/hierarchy/descendants.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/each.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/find.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/index.js +44 -46
- package/dist/node_modules/d3-hierarchy/src/hierarchy/iterator.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/leaves.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/links.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/path.js +4 -6
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sort.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sum.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/treemap/dice.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/treemap/index.js +14 -16
- package/dist/node_modules/d3-hierarchy/src/treemap/round.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/treemap/slice.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/treemap/squarify.js +9 -11
- package/dist/node_modules/d3-interpolate/src/array.js +4 -6
- package/dist/node_modules/d3-interpolate/src/basis.js +4 -6
- package/dist/node_modules/d3-interpolate/src/basisClosed.js +4 -6
- package/dist/node_modules/d3-interpolate/src/color.js +17 -19
- package/dist/node_modules/d3-interpolate/src/constant.js +2 -4
- package/dist/node_modules/d3-interpolate/src/date.js +2 -4
- package/dist/node_modules/d3-interpolate/src/hcl.js +6 -8
- package/dist/node_modules/d3-interpolate/src/number.js +2 -4
- package/dist/node_modules/d3-interpolate/src/numberArray.js +3 -5
- package/dist/node_modules/d3-interpolate/src/object.js +4 -6
- package/dist/node_modules/d3-interpolate/src/rgb.js +9 -11
- package/dist/node_modules/d3-interpolate/src/round.js +2 -4
- package/dist/node_modules/d3-interpolate/src/string.js +14 -16
- package/dist/node_modules/d3-interpolate/src/transform/decompose.js +5 -7
- package/dist/node_modules/d3-interpolate/src/transform/index.js +11 -13
- package/dist/node_modules/d3-interpolate/src/transform/parse.js +8 -10
- package/dist/node_modules/d3-interpolate/src/value.js +12 -14
- package/dist/node_modules/d3-interpolate/src/zoom.js +11 -13
- package/dist/node_modules/d3-path/src/path.js +14 -16
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/max.js +2 -4
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/min.js +2 -4
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +2 -4
- package/dist/node_modules/d3-sankey/node_modules/d3-path/src/path.js +12 -13
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +2 -4
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +2 -4
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +17 -19
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +3 -5
- package/dist/node_modules/d3-sankey/src/align.js +10 -12
- package/dist/node_modules/d3-sankey/src/constant.js +2 -4
- package/dist/node_modules/d3-sankey/src/sankey.js +168 -170
- package/dist/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +6 -8
- package/dist/node_modules/d3-scale/src/band.js +9 -11
- package/dist/node_modules/d3-scale/src/constant.js +2 -4
- package/dist/node_modules/d3-scale/src/continuous.js +47 -49
- package/dist/node_modules/d3-scale/src/init.js +2 -4
- package/dist/node_modules/d3-scale/src/linear.js +13 -15
- package/dist/node_modules/d3-scale/src/nice.js +2 -4
- package/dist/node_modules/d3-scale/src/number.js +2 -4
- package/dist/node_modules/d3-scale/src/ordinal.js +16 -18
- package/dist/node_modules/d3-scale/src/tickFormat.js +14 -16
- package/dist/node_modules/d3-scale/src/time.js +34 -36
- package/dist/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +3 -5
- package/dist/node_modules/d3-scale-chromatic/src/colors.js +2 -4
- package/dist/node_modules/d3-selection/src/array.js +2 -4
- package/dist/node_modules/d3-selection/src/constant.js +2 -4
- package/dist/node_modules/d3-selection/src/creator.js +10 -12
- package/dist/node_modules/d3-selection/src/matcher.js +3 -5
- package/dist/node_modules/d3-selection/src/namespace.js +5 -7
- package/dist/node_modules/d3-selection/src/namespaces.js +3 -5
- package/dist/node_modules/d3-selection/src/pointer.js +4 -6
- package/dist/node_modules/d3-selection/src/select.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/append.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/attr.js +17 -19
- package/dist/node_modules/d3-selection/src/selection/call.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/classed.js +23 -25
- package/dist/node_modules/d3-selection/src/selection/clone.js +5 -7
- package/dist/node_modules/d3-selection/src/selection/data.js +16 -18
- package/dist/node_modules/d3-selection/src/selection/datum.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/dispatch.js +10 -12
- package/dist/node_modules/d3-selection/src/selection/each.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/empty.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/enter.js +11 -13
- package/dist/node_modules/d3-selection/src/selection/exit.js +5 -7
- package/dist/node_modules/d3-selection/src/selection/filter.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/html.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/index.js +79 -80
- package/dist/node_modules/d3-selection/src/selection/insert.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/iterator.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/join.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/lower.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/merge.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/node.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/nodes.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/on.js +9 -11
- package/dist/node_modules/d3-selection/src/selection/order.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/property.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/raise.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/remove.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/select.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/selectAll.js +9 -11
- package/dist/node_modules/d3-selection/src/selection/selectChild.js +8 -10
- package/dist/node_modules/d3-selection/src/selection/selectChildren.js +8 -10
- package/dist/node_modules/d3-selection/src/selection/size.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/sort.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/sparse.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/style.js +12 -14
- package/dist/node_modules/d3-selection/src/selection/text.js +6 -8
- package/dist/node_modules/d3-selection/src/selector.js +4 -6
- package/dist/node_modules/d3-selection/src/selectorAll.js +4 -6
- package/dist/node_modules/d3-selection/src/sourceEvent.js +2 -4
- package/dist/node_modules/d3-selection/src/window.js +2 -4
- package/dist/node_modules/d3-shape/src/arc.js +36 -38
- package/dist/node_modules/d3-shape/src/array.js +2 -3
- package/dist/node_modules/d3-shape/src/constant.js +2 -4
- package/dist/node_modules/d3-shape/src/curve/basis.js +8 -10
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +16 -18
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +7 -9
- package/dist/node_modules/d3-shape/src/curve/bump.js +13 -15
- package/dist/node_modules/d3-shape/src/curve/bundle.js +7 -9
- package/dist/node_modules/d3-shape/src/curve/cardinal.js +8 -10
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +10 -12
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +7 -9
- package/dist/node_modules/d3-shape/src/curve/catmullRom.js +17 -19
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +11 -13
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +8 -10
- package/dist/node_modules/d3-shape/src/curve/linear.js +5 -7
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +10 -12
- package/dist/node_modules/d3-shape/src/curve/monotone.js +21 -23
- package/dist/node_modules/d3-shape/src/curve/natural.js +7 -9
- package/dist/node_modules/d3-shape/src/curve/step.js +17 -19
- package/dist/node_modules/d3-shape/src/descending.js +2 -4
- package/dist/node_modules/d3-shape/src/identity.js +2 -4
- package/dist/node_modules/d3-shape/src/line.js +17 -19
- package/dist/node_modules/d3-shape/src/math.js +6 -8
- package/dist/node_modules/d3-shape/src/noop.js +2 -4
- package/dist/node_modules/d3-shape/src/path.js +4 -6
- package/dist/node_modules/d3-shape/src/pie.js +13 -15
- package/dist/node_modules/d3-shape/src/point.js +3 -5
- package/dist/node_modules/d3-time/src/day.js +15 -17
- package/dist/node_modules/d3-time/src/duration.js +2 -4
- package/dist/node_modules/d3-time/src/hour.js +14 -16
- package/dist/node_modules/d3-time/src/interval.js +5 -7
- package/dist/node_modules/d3-time/src/millisecond.js +5 -7
- package/dist/node_modules/d3-time/src/minute.js +14 -16
- package/dist/node_modules/d3-time/src/month.js +12 -14
- package/dist/node_modules/d3-time/src/second.js +7 -9
- package/dist/node_modules/d3-time/src/ticks.js +64 -66
- package/dist/node_modules/d3-time/src/week.js +19 -21
- package/dist/node_modules/d3-time/src/year.js +8 -10
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +6 -8
- package/dist/node_modules/d3-time-format/src/locale.js +344 -346
- package/dist/node_modules/d3-timer/src/timeout.js +4 -6
- package/dist/node_modules/d3-timer/src/timer.js +31 -33
- package/dist/node_modules/d3-transition/src/index.js +2 -2
- package/dist/node_modules/d3-transition/src/interrupt.js +3 -4
- package/dist/node_modules/d3-transition/src/selection/index.js +4 -5
- package/dist/node_modules/d3-transition/src/selection/interrupt.js +4 -6
- package/dist/node_modules/d3-transition/src/selection/transition.js +14 -16
- package/dist/node_modules/d3-transition/src/transition/attr.js +26 -28
- package/dist/node_modules/d3-transition/src/transition/attrTween.js +11 -13
- package/dist/node_modules/d3-transition/src/transition/delay.js +9 -11
- package/dist/node_modules/d3-transition/src/transition/duration.js +9 -11
- package/dist/node_modules/d3-transition/src/transition/ease.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/easeVarying.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/end.js +4 -6
- package/dist/node_modules/d3-transition/src/transition/filter.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/index.js +61 -63
- package/dist/node_modules/d3-transition/src/transition/interpolate.js +7 -9
- package/dist/node_modules/d3-transition/src/transition/merge.js +4 -6
- package/dist/node_modules/d3-transition/src/transition/on.js +7 -9
- package/dist/node_modules/d3-transition/src/transition/remove.js +4 -6
- package/dist/node_modules/d3-transition/src/transition/schedule.js +18 -20
- package/dist/node_modules/d3-transition/src/transition/select.js +8 -10
- package/dist/node_modules/d3-transition/src/transition/selectAll.js +8 -10
- package/dist/node_modules/d3-transition/src/transition/selection.js +5 -7
- package/dist/node_modules/d3-transition/src/transition/style.js +19 -21
- package/dist/node_modules/d3-transition/src/transition/styleTween.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/text.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/textTween.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/transition.js +8 -10
- package/dist/node_modules/d3-transition/src/transition/tween.js +12 -14
- package/dist/node_modules/d3-zoom/src/constant.js +2 -4
- package/dist/node_modules/d3-zoom/src/event.js +2 -4
- package/dist/node_modules/d3-zoom/src/index.js +2 -2
- package/dist/node_modules/d3-zoom/src/noevent.js +3 -5
- package/dist/node_modules/d3-zoom/src/transform.js +10 -12
- package/dist/node_modules/d3-zoom/src/zoom.js +114 -116
- package/dist/node_modules/dagre-d3-es/src/dagre/acyclic.js +12 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +9 -11
- package/dist/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +34 -36
- package/dist/node_modules/dagre-d3-es/src/dagre/data/list.js +7 -9
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +49 -51
- package/dist/node_modules/dagre-d3-es/src/dagre/index.js +2 -2
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +163 -165
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +43 -45
- package/dist/node_modules/dagre-d3-es/src/dagre/normalize.js +10 -12
- package/dist/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +4 -6
- package/dist/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +6 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +12 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +20 -22
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +34 -36
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +13 -15
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +30 -32
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +28 -30
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +18 -20
- package/dist/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +10 -12
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +148 -150
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +18 -20
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +17 -19
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/index.js +14 -16
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +63 -64
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -10
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +82 -84
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +13 -15
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.js +2 -3
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.js +2 -3
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/index.js +3 -3
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js +4 -6
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +4 -6
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +11 -13
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +129 -131
- package/dist/node_modules/dagre-d3-es/src/graphlib/index.js +1 -1
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +16 -18
- package/dist/node_modules/dayjs/dayjs.min.js +4 -6
- package/dist/node_modules/dayjs/plugin/advancedFormat.js +4 -6
- package/dist/node_modules/dayjs/plugin/customParseFormat.js +4 -6
- package/dist/node_modules/dayjs/plugin/duration.js +4 -6
- package/dist/node_modules/dayjs/plugin/isoWeek.js +4 -6
- package/dist/node_modules/decode-named-character-reference/index.dom.js +5 -7
- package/dist/node_modules/devlop/lib/default.js +2 -4
- package/dist/node_modules/dompurify/dist/purify.es.js +180 -182
- package/dist/node_modules/entities/dist/esm/decode-codepoint.js +4 -6
- package/dist/node_modules/entities/dist/esm/decode.js +85 -87
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.js +2 -4
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +4 -6
- package/dist/node_modules/extend/index.js +6 -9
- package/dist/node_modules/hast-util-from-dom/lib/index.js +30 -32
- package/dist/node_modules/hast-util-from-html-isomorphic/lib/browser.js +8 -10
- package/dist/node_modules/hast-util-from-parse5/lib/index.js +80 -82
- package/dist/node_modules/hast-util-is-element/lib/index.js +15 -17
- package/dist/node_modules/hast-util-parse-selector/lib/index.js +5 -7
- package/dist/node_modules/hast-util-raw/lib/index.js +134 -136
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.js +21 -23
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.js +3 -5
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.js +89 -89
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.js +249 -250
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.js +4 -6
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.js +14 -14
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/index.js +4 -4
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.js +15 -17
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.js +1495 -1497
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.js +146 -148
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.js +19 -20
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +798 -800
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.js +31 -33
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.js +8 -10
- package/dist/node_modules/hast-util-sanitize/lib/index.js +104 -106
- package/dist/node_modules/hast-util-sanitize/lib/schema.js +11 -12
- package/dist/node_modules/hast-util-to-html/lib/handle/comment.js +7 -9
- package/dist/node_modules/hast-util-to-html/lib/handle/doctype.js +2 -4
- package/dist/node_modules/hast-util-to-html/lib/handle/element.js +23 -25
- package/dist/node_modules/hast-util-to-html/lib/handle/index.js +21 -22
- package/dist/node_modules/hast-util-to-html/lib/handle/raw.js +4 -6
- package/dist/node_modules/hast-util-to-html/lib/handle/root.js +2 -4
- package/dist/node_modules/hast-util-to-html/lib/handle/text.js +5 -7
- package/dist/node_modules/hast-util-to-html/lib/index.js +36 -38
- package/dist/node_modules/hast-util-to-html/lib/omission/closing.js +68 -70
- package/dist/node_modules/hast-util-to-html/lib/omission/omission.js +4 -6
- package/dist/node_modules/hast-util-to-html/lib/omission/opening.js +30 -32
- package/dist/node_modules/hast-util-to-html/lib/omission/util/siblings.js +9 -10
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +190 -192
- package/dist/node_modules/hast-util-to-parse5/lib/index.js +69 -71
- package/dist/node_modules/hast-util-to-text/lib/index.js +59 -61
- package/dist/node_modules/hast-util-whitespace/lib/index.js +6 -8
- package/dist/node_modules/hastscript/lib/create-h.js +24 -26
- package/dist/node_modules/hastscript/lib/index.js +5 -7
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +2 -4
- package/dist/node_modules/html-url-attributes/lib/index.js +2 -4
- package/dist/node_modules/html-void-elements/index.js +2 -4
- package/dist/node_modules/inline-style-parser/cjs/index.js +4 -6
- package/dist/node_modules/internmap/src/index.js +20 -22
- package/dist/node_modules/katex/dist/katex.js +2307 -2301
- package/dist/node_modules/khroma/dist/channels/index.js +21 -23
- package/dist/node_modules/khroma/dist/channels/reusable.js +3 -5
- package/dist/node_modules/khroma/dist/channels/type.js +5 -7
- package/dist/node_modules/khroma/dist/color/hex.js +8 -10
- package/dist/node_modules/khroma/dist/color/hsl.js +17 -19
- package/dist/node_modules/khroma/dist/color/index.js +15 -17
- package/dist/node_modules/khroma/dist/color/keyword.js +8 -10
- package/dist/node_modules/khroma/dist/color/rgb.js +12 -14
- package/dist/node_modules/khroma/dist/constants.js +5 -7
- package/dist/node_modules/khroma/dist/methods/adjust.js +6 -8
- package/dist/node_modules/khroma/dist/methods/adjust_channel.js +6 -8
- package/dist/node_modules/khroma/dist/methods/change.js +7 -9
- package/dist/node_modules/khroma/dist/methods/channel.js +4 -6
- package/dist/node_modules/khroma/dist/methods/darken.js +3 -5
- package/dist/node_modules/khroma/dist/methods/invert.js +6 -8
- package/dist/node_modules/khroma/dist/methods/is_dark.js +3 -5
- package/dist/node_modules/khroma/dist/methods/is_light.js +3 -5
- package/dist/node_modules/khroma/dist/methods/lighten.js +3 -5
- package/dist/node_modules/khroma/dist/methods/luminance.js +6 -8
- package/dist/node_modules/khroma/dist/methods/mix.js +6 -8
- package/dist/node_modules/khroma/dist/methods/rgba.js +13 -15
- package/dist/node_modules/khroma/dist/methods/transparentize.js +3 -5
- package/dist/node_modules/khroma/dist/utils/channel.js +6 -8
- package/dist/node_modules/khroma/dist/utils/index.js +8 -10
- package/dist/node_modules/khroma/dist/utils/lang.js +2 -4
- package/dist/node_modules/khroma/dist/utils/unit.js +2 -4
- package/dist/node_modules/langium/lib/default-module.js +64 -66
- package/dist/node_modules/langium/lib/dependency-injection.js +39 -37
- package/dist/node_modules/langium/lib/documentation/comment-provider.js +5 -7
- package/dist/node_modules/langium/lib/documentation/documentation-provider.js +6 -8
- package/dist/node_modules/langium/lib/documentation/jsdoc.js +202 -204
- package/dist/node_modules/langium/lib/index.js +182 -0
- package/dist/node_modules/langium/lib/languages/generated/ast.js +534 -343
- package/dist/node_modules/langium/lib/languages/grammar-config.js +8 -10
- package/dist/node_modules/langium/lib/parser/async-parser.js +76 -4
- package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +6 -8
- package/dist/node_modules/langium/lib/parser/cst-node-builder.js +54 -56
- package/dist/node_modules/langium/lib/parser/indentation-aware.js +141 -0
- package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +7 -9
- package/dist/node_modules/langium/lib/parser/langium-parser.js +188 -190
- package/dist/node_modules/langium/lib/parser/lexer.js +25 -25
- package/dist/node_modules/langium/lib/parser/parser-builder-base.js +203 -204
- package/dist/node_modules/langium/lib/parser/token-builder.js +30 -32
- package/dist/node_modules/langium/lib/parser/value-converter.js +15 -17
- package/dist/node_modules/langium/lib/references/linker.js +103 -104
- package/dist/node_modules/langium/lib/references/name-provider.js +7 -9
- package/dist/node_modules/langium/lib/references/references.js +51 -53
- package/dist/node_modules/langium/lib/references/scope-computation.js +12 -14
- package/dist/node_modules/langium/lib/references/scope-provider.js +11 -13
- package/dist/node_modules/langium/lib/references/scope.js +56 -27
- package/dist/node_modules/langium/lib/serializer/hydrator.js +69 -71
- package/dist/node_modules/langium/lib/serializer/json-serializer.js +21 -23
- package/dist/node_modules/langium/lib/service-registry.js +5 -7
- package/dist/node_modules/langium/lib/syntax-tree.js +31 -33
- package/dist/node_modules/langium/lib/utils/ast-utils.js +112 -77
- package/dist/node_modules/langium/lib/utils/caching.js +42 -33
- package/dist/node_modules/langium/lib/utils/cancellation.js +5 -7
- package/dist/node_modules/langium/lib/utils/collections.js +33 -35
- package/dist/node_modules/langium/lib/utils/cst-utils.js +161 -46
- package/dist/node_modules/langium/lib/utils/disposable.js +3 -5
- package/dist/node_modules/langium/lib/utils/errors.js +9 -8
- package/dist/node_modules/langium/lib/utils/event.js +5 -7
- package/dist/node_modules/langium/lib/utils/grammar-loader.js +14 -16
- package/dist/node_modules/langium/lib/utils/grammar-utils.js +249 -172
- package/dist/node_modules/langium/lib/utils/index.js +53 -0
- package/dist/node_modules/langium/lib/utils/promise-utils.js +19 -18
- package/dist/node_modules/langium/lib/utils/regexp-utils.js +76 -53
- package/dist/node_modules/langium/lib/utils/stream.js +153 -155
- package/dist/node_modules/langium/lib/utils/uri-utils.js +12 -14
- package/dist/node_modules/langium/lib/validation/document-validator.js +103 -104
- package/dist/node_modules/langium/lib/validation/validation-registry.js +14 -15
- package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +17 -19
- package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +2 -4
- package/dist/node_modules/langium/lib/workspace/configuration.js +5 -7
- package/dist/node_modules/langium/lib/workspace/document-builder.js +134 -131
- package/dist/node_modules/langium/lib/workspace/documents.js +83 -85
- package/dist/node_modules/langium/lib/workspace/file-system-provider.js +4 -5
- package/dist/node_modules/langium/lib/workspace/index-manager.js +14 -16
- package/dist/node_modules/langium/lib/workspace/profiler.js +89 -0
- package/dist/node_modules/langium/lib/workspace/workspace-lock.js +9 -11
- package/dist/node_modules/langium/lib/workspace/workspace-manager.js +33 -35
- package/dist/node_modules/layout-base/layout-base.js +4 -6
- package/dist/node_modules/lodash/_Symbol.js +7 -0
- package/dist/node_modules/lodash/_baseGetTag.js +13 -0
- package/dist/node_modules/lodash/_baseTrim.js +11 -0
- package/dist/node_modules/lodash/_freeGlobal.js +6 -0
- package/dist/node_modules/lodash/_getRawTag.js +17 -0
- package/dist/node_modules/lodash/_objectToString.js +10 -0
- package/dist/node_modules/lodash/_root.js +8 -0
- package/dist/node_modules/lodash/_trimmedEndIndex.js +11 -0
- package/dist/{frontend/studio/node_modules → node_modules}/lodash/debounce.js +8 -10
- package/dist/node_modules/lodash/isObject.js +10 -0
- package/dist/node_modules/lodash/isObjectLike.js +9 -0
- package/dist/node_modules/lodash/isSymbol.js +12 -0
- package/dist/node_modules/lodash/now.js +10 -0
- package/dist/node_modules/lodash/toNumber.js +22 -0
- package/dist/node_modules/lodash-es/_DataView.js +4 -6
- package/dist/node_modules/lodash-es/_Hash.js +13 -14
- package/dist/node_modules/lodash-es/_ListCache.js +13 -14
- package/dist/node_modules/lodash-es/_Map.js +4 -6
- package/dist/node_modules/lodash-es/_MapCache.js +13 -14
- package/dist/node_modules/lodash-es/_Promise.js +4 -6
- package/dist/node_modules/lodash-es/_Set.js +4 -6
- package/dist/node_modules/lodash-es/_SetCache.js +9 -10
- package/dist/node_modules/lodash-es/_Stack.js +11 -12
- package/dist/node_modules/lodash-es/_Symbol.js +3 -5
- package/dist/node_modules/lodash-es/_Uint8Array.js +3 -5
- package/dist/node_modules/lodash-es/_WeakMap.js +4 -6
- package/dist/node_modules/lodash-es/_apply.js +3 -4
- package/dist/node_modules/lodash-es/_arrayEach.js +3 -4
- package/dist/node_modules/lodash-es/_arrayFilter.js +3 -4
- package/dist/node_modules/lodash-es/_arrayIncludes.js +5 -6
- package/dist/node_modules/lodash-es/_arrayIncludesWith.js +3 -4
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +12 -13
- package/dist/node_modules/lodash-es/_arrayMap.js +3 -4
- package/dist/node_modules/lodash-es/_arrayPush.js +3 -4
- package/dist/node_modules/lodash-es/_arrayReduce.js +3 -4
- package/dist/node_modules/lodash-es/_arraySome.js +3 -4
- package/dist/node_modules/lodash-es/_asciiSize.js +3 -5
- package/dist/node_modules/lodash-es/_assignMergeValue.js +6 -7
- package/dist/node_modules/lodash-es/_assignValue.js +7 -8
- package/dist/node_modules/lodash-es/_assocIndexOf.js +5 -6
- package/dist/node_modules/lodash-es/_baseAssign.js +6 -7
- package/dist/node_modules/lodash-es/_baseAssignIn.js +6 -7
- package/dist/node_modules/lodash-es/_baseAssignValue.js +5 -6
- package/dist/node_modules/lodash-es/_baseClone.js +50 -51
- package/dist/node_modules/lodash-es/_baseCreate.js +5 -7
- package/dist/node_modules/lodash-es/_baseEach.js +4 -6
- package/dist/node_modules/lodash-es/_baseExtremum.js +5 -6
- package/dist/node_modules/lodash-es/_baseFilter.js +5 -6
- package/dist/node_modules/lodash-es/_baseFindIndex.js +3 -4
- package/dist/node_modules/lodash-es/_baseFlatten.js +7 -8
- package/dist/node_modules/lodash-es/_baseFor.js +3 -5
- package/dist/node_modules/lodash-es/_baseForOwn.js +6 -7
- package/dist/node_modules/lodash-es/_baseGet.js +7 -8
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +6 -7
- package/dist/node_modules/lodash-es/_baseGetTag.js +8 -9
- package/dist/node_modules/lodash-es/_baseGt.js +3 -4
- package/dist/node_modules/lodash-es/_baseHas.js +5 -6
- package/dist/node_modules/lodash-es/_baseHasIn.js +3 -4
- package/dist/node_modules/lodash-es/_baseIndexOf.js +7 -8
- package/dist/node_modules/lodash-es/_baseIsArguments.js +7 -8
- package/dist/node_modules/lodash-es/_baseIsEqual.js +6 -7
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +22 -23
- package/dist/node_modules/lodash-es/_baseIsMap.js +7 -8
- package/dist/node_modules/lodash-es/_baseIsMatch.js +8 -9
- package/dist/node_modules/lodash-es/_baseIsNaN.js +3 -4
- package/dist/node_modules/lodash-es/_baseIsNative.js +9 -10
- package/dist/node_modules/lodash-es/_baseIsSet.js +7 -8
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +9 -10
- package/dist/node_modules/lodash-es/_baseIteratee.js +9 -10
- package/dist/node_modules/lodash-es/_baseKeys.js +8 -9
- package/dist/node_modules/lodash-es/_baseKeysIn.js +10 -11
- package/dist/node_modules/lodash-es/_baseLt.js +3 -4
- package/dist/node_modules/lodash-es/_baseMap.js +7 -8
- package/dist/node_modules/lodash-es/_baseMatches.js +9 -10
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +14 -15
- package/dist/node_modules/lodash-es/_baseMerge.js +15 -16
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +23 -24
- package/dist/node_modules/lodash-es/_baseOrderBy.js +22 -23
- package/dist/node_modules/lodash-es/_basePick.js +7 -8
- package/dist/node_modules/lodash-es/_basePickBy.js +8 -9
- package/dist/node_modules/lodash-es/_baseProperty.js +3 -4
- package/dist/node_modules/lodash-es/_basePropertyDeep.js +5 -6
- package/dist/node_modules/lodash-es/_baseRange.js +5 -6
- package/dist/node_modules/lodash-es/_baseReduce.js +3 -4
- package/dist/node_modules/lodash-es/_baseRest.js +7 -8
- package/dist/node_modules/lodash-es/_baseSet.js +13 -14
- package/dist/node_modules/lodash-es/_baseSetToString.js +8 -10
- package/dist/node_modules/lodash-es/_baseSortBy.js +3 -4
- package/dist/node_modules/lodash-es/_baseTimes.js +3 -4
- package/dist/node_modules/lodash-es/_baseToString.js +12 -13
- package/dist/node_modules/lodash-es/_baseTrim.js +6 -7
- package/dist/node_modules/lodash-es/_baseUnary.js +3 -4
- package/dist/node_modules/lodash-es/_baseUniq.js +16 -17
- package/dist/node_modules/lodash-es/_baseValues.js +5 -6
- package/dist/node_modules/lodash-es/_baseZipObject.js +3 -4
- package/dist/node_modules/lodash-es/_cacheHas.js +3 -4
- package/dist/node_modules/lodash-es/_castFunction.js +5 -6
- package/dist/node_modules/lodash-es/_castPath.js +8 -9
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +5 -6
- package/dist/node_modules/lodash-es/_cloneBuffer.js +8 -9
- package/dist/node_modules/lodash-es/_cloneDataView.js +5 -6
- package/dist/node_modules/lodash-es/_cloneRegExp.js +5 -6
- package/dist/node_modules/lodash-es/_cloneSymbol.js +6 -7
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +5 -6
- package/dist/node_modules/lodash-es/_compareAscending.js +5 -6
- package/dist/node_modules/lodash-es/_compareMultiple.js +5 -6
- package/dist/node_modules/lodash-es/_copyArray.js +3 -4
- package/dist/node_modules/lodash-es/_copyObject.js +6 -7
- package/dist/node_modules/lodash-es/_copySymbols.js +6 -7
- package/dist/node_modules/lodash-es/_copySymbolsIn.js +6 -7
- package/dist/node_modules/lodash-es/_coreJsData.js +3 -5
- package/dist/node_modules/lodash-es/_createAssigner.js +7 -8
- package/dist/node_modules/lodash-es/_createBaseEach.js +5 -6
- package/dist/node_modules/lodash-es/_createBaseFor.js +3 -4
- package/dist/node_modules/lodash-es/_createFind.js +9 -10
- package/dist/node_modules/lodash-es/_createRange.js +7 -8
- package/dist/node_modules/lodash-es/_createSet.js +7 -9
- package/dist/node_modules/lodash-es/_defineProperty.js +4 -6
- package/dist/node_modules/lodash-es/_equalArrays.js +11 -12
- package/dist/node_modules/lodash-es/_equalByTag.js +28 -29
- package/dist/node_modules/lodash-es/_equalObjects.js +8 -9
- package/dist/node_modules/lodash-es/_flatRest.js +7 -8
- package/dist/node_modules/lodash-es/_freeGlobal.js +2 -4
- package/dist/node_modules/lodash-es/_getAllKeys.js +7 -8
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +7 -8
- package/dist/node_modules/lodash-es/_getMapData.js +5 -6
- package/dist/node_modules/lodash-es/_getMatchData.js +7 -8
- package/dist/node_modules/lodash-es/_getNative.js +7 -8
- package/dist/node_modules/lodash-es/_getPrototype.js +3 -5
- package/dist/node_modules/lodash-es/_getRawTag.js +9 -10
- package/dist/node_modules/lodash-es/_getSymbols.js +7 -9
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +8 -10
- package/dist/node_modules/lodash-es/_getTag.js +19 -21
- package/dist/node_modules/lodash-es/_getValue.js +3 -4
- package/dist/node_modules/lodash-es/_hasPath.js +12 -13
- package/dist/node_modules/lodash-es/_hasUnicode.js +5 -6
- package/dist/node_modules/lodash-es/_hashClear.js +5 -6
- package/dist/node_modules/lodash-es/_hashDelete.js +4 -5
- package/dist/node_modules/lodash-es/_hashGet.js +8 -9
- package/dist/node_modules/lodash-es/_hashHas.js +6 -7
- package/dist/node_modules/lodash-es/_hashSet.js +6 -7
- package/dist/node_modules/lodash-es/_initCloneArray.js +5 -6
- package/dist/node_modules/lodash-es/_initCloneByTag.js +28 -29
- package/dist/node_modules/lodash-es/_initCloneObject.js +7 -8
- package/dist/node_modules/lodash-es/_isFlattenable.js +8 -9
- package/dist/node_modules/lodash-es/_isIndex.js +5 -6
- package/dist/node_modules/lodash-es/_isIterateeCall.js +9 -10
- package/dist/node_modules/lodash-es/_isKey.js +8 -9
- package/dist/node_modules/lodash-es/_isKeyable.js +3 -4
- package/dist/node_modules/lodash-es/_isMasked.js +8 -9
- package/dist/node_modules/lodash-es/_isPrototype.js +5 -6
- package/dist/node_modules/lodash-es/_isStrictComparable.js +5 -6
- package/dist/node_modules/lodash-es/_listCacheClear.js +3 -4
- package/dist/node_modules/lodash-es/_listCacheDelete.js +7 -8
- package/dist/node_modules/lodash-es/_listCacheGet.js +5 -6
- package/dist/node_modules/lodash-es/_listCacheHas.js +5 -6
- package/dist/node_modules/lodash-es/_listCacheSet.js +5 -6
- package/dist/node_modules/lodash-es/_mapCacheClear.js +9 -10
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +6 -7
- package/dist/node_modules/lodash-es/_mapCacheGet.js +5 -6
- package/dist/node_modules/lodash-es/_mapCacheHas.js +5 -6
- package/dist/node_modules/lodash-es/_mapCacheSet.js +5 -6
- package/dist/node_modules/lodash-es/_mapToArray.js +3 -4
- package/dist/node_modules/lodash-es/_matchesStrictComparable.js +3 -4
- package/dist/node_modules/lodash-es/_memoizeCapped.js +7 -8
- package/dist/node_modules/lodash-es/_nativeCreate.js +3 -5
- package/dist/node_modules/lodash-es/_nativeKeys.js +3 -5
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +3 -4
- package/dist/node_modules/lodash-es/_nodeUtil.js +4 -6
- package/dist/node_modules/lodash-es/_objectToString.js +5 -6
- package/dist/node_modules/lodash-es/_overArg.js +3 -4
- package/dist/node_modules/lodash-es/_overRest.js +8 -9
- package/dist/node_modules/lodash-es/_root.js +3 -5
- package/dist/node_modules/lodash-es/_safeGet.js +3 -4
- package/dist/node_modules/lodash-es/_setCacheAdd.js +5 -6
- package/dist/node_modules/lodash-es/_setCacheHas.js +3 -4
- package/dist/node_modules/lodash-es/_setToArray.js +3 -4
- package/dist/node_modules/lodash-es/_setToString.js +4 -6
- package/dist/node_modules/lodash-es/_shortOut.js +6 -7
- package/dist/node_modules/lodash-es/_stackClear.js +5 -6
- package/dist/node_modules/lodash-es/_stackDelete.js +3 -4
- package/dist/node_modules/lodash-es/_stackGet.js +3 -4
- package/dist/node_modules/lodash-es/_stackHas.js +3 -4
- package/dist/node_modules/lodash-es/_stackSet.js +10 -11
- package/dist/node_modules/lodash-es/_strictIndexOf.js +3 -4
- package/dist/node_modules/lodash-es/_stringSize.js +7 -8
- package/dist/node_modules/lodash-es/_stringToPath.js +5 -7
- package/dist/node_modules/lodash-es/_toKey.js +7 -8
- package/dist/node_modules/lodash-es/_toSource.js +7 -8
- package/dist/node_modules/lodash-es/_trimmedEndIndex.js +5 -6
- package/dist/node_modules/lodash-es/_unicodeSize.js +16 -17
- package/dist/node_modules/lodash-es/clone.js +6 -7
- package/dist/node_modules/lodash-es/cloneDeep.js +6 -7
- package/dist/node_modules/lodash-es/constant.js +3 -4
- package/dist/node_modules/lodash-es/defaults.js +11 -13
- package/dist/node_modules/lodash-es/eq.js +3 -4
- package/dist/node_modules/lodash-es/filter.js +8 -9
- package/dist/node_modules/lodash-es/find.js +4 -6
- package/dist/node_modules/lodash-es/findIndex.js +9 -10
- package/dist/node_modules/lodash-es/flatMap.js +6 -7
- package/dist/node_modules/lodash-es/flatten.js +5 -6
- package/dist/node_modules/lodash-es/forEach.js +8 -9
- package/dist/node_modules/lodash-es/forIn.js +7 -8
- package/dist/node_modules/lodash-es/forOwn.js +6 -7
- package/dist/node_modules/lodash-es/get.js +5 -6
- package/dist/node_modules/lodash-es/has.js +6 -7
- package/dist/node_modules/lodash-es/hasIn.js +6 -7
- package/dist/node_modules/lodash-es/identity.js +3 -4
- package/dist/node_modules/lodash-es/isArguments.js +6 -8
- package/dist/node_modules/lodash-es/isArray.js +2 -4
- package/dist/node_modules/lodash-es/isArrayLike.js +6 -7
- package/dist/node_modules/lodash-es/isArrayLikeObject.js +6 -7
- package/dist/node_modules/lodash-es/isBuffer.js +4 -6
- package/dist/node_modules/lodash-es/isEmpty.js +17 -18
- package/dist/node_modules/lodash-es/isFunction.js +9 -10
- package/dist/node_modules/lodash-es/isLength.js +5 -6
- package/dist/node_modules/lodash-es/isMap.js +5 -7
- package/dist/node_modules/lodash-es/isObject.js +3 -4
- package/dist/node_modules/lodash-es/isObjectLike.js +3 -4
- package/dist/node_modules/lodash-es/isPlainObject.js +12 -13
- package/dist/node_modules/lodash-es/isSet.js +5 -7
- package/dist/node_modules/lodash-es/isString.js +8 -9
- package/dist/node_modules/lodash-es/isSymbol.js +7 -8
- package/dist/node_modules/lodash-es/isTypedArray.js +5 -7
- package/dist/node_modules/lodash-es/isUndefined.js +3 -4
- package/dist/node_modules/lodash-es/keys.js +7 -8
- package/dist/node_modules/lodash-es/keysIn.js +7 -8
- package/dist/node_modules/lodash-es/last.js +3 -4
- package/dist/node_modules/lodash-es/map.js +8 -9
- package/dist/node_modules/lodash-es/mapValues.js +8 -9
- package/dist/node_modules/lodash-es/max.js +7 -8
- package/dist/node_modules/lodash-es/memoize.js +8 -9
- package/dist/node_modules/lodash-es/merge.js +5 -7
- package/dist/node_modules/lodash-es/min.js +7 -8
- package/dist/node_modules/lodash-es/minBy.js +7 -8
- package/dist/node_modules/lodash-es/noop.js +3 -4
- package/dist/node_modules/lodash-es/now.js +4 -6
- package/dist/node_modules/lodash-es/pick.js +5 -7
- package/dist/node_modules/lodash-es/property.js +8 -9
- package/dist/node_modules/lodash-es/range.js +3 -5
- package/dist/node_modules/lodash-es/reduce.js +10 -11
- package/dist/node_modules/lodash-es/size.js +12 -13
- package/dist/node_modules/lodash-es/sortBy.js +7 -9
- package/dist/node_modules/lodash-es/stubArray.js +3 -4
- package/dist/node_modules/lodash-es/stubFalse.js +3 -4
- package/dist/node_modules/lodash-es/toFinite.js +6 -7
- package/dist/node_modules/lodash-es/toInteger.js +5 -6
- package/dist/node_modules/lodash-es/toNumber.js +13 -14
- package/dist/node_modules/lodash-es/toPlainObject.js +6 -7
- package/dist/node_modules/lodash-es/toString.js +5 -6
- package/dist/node_modules/lodash-es/union.js +7 -9
- package/dist/node_modules/lodash-es/uniqBy.js +6 -7
- package/dist/node_modules/lodash-es/uniqueId.js +7 -8
- package/dist/node_modules/lodash-es/values.js +6 -7
- package/dist/node_modules/lodash-es/zipObject.js +6 -7
- package/dist/node_modules/longest-streak/index.js +2 -4
- package/dist/node_modules/markdown-table/index.js +9 -11
- package/dist/node_modules/marked/lib/marked.esm.js +685 -687
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +12 -14
- package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +2 -4
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +180 -182
- package/dist/node_modules/mdast-util-gfm/lib/index.js +18 -20
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +67 -69
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +45 -47
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +13 -15
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +28 -30
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +14 -16
- package/dist/node_modules/mdast-util-math/lib/index.js +13 -15
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +3 -5
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +9 -11
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +4 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +6 -8
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +4 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +53 -55
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +6 -8
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +4 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +13 -15
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +4 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +4 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +6 -8
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +59 -61
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +16 -18
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +12 -14
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +6 -8
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +6 -8
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +41 -43
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +5 -7
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +9 -11
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +5 -7
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +10 -12
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +12 -14
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +5 -7
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +7 -8
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +4 -6
- package/dist/node_modules/mdast-util-to-string/lib/index.js +12 -14
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-Q4EWVU46.js +374 -378
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-DXYQGD6D.js +1347 -1349
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AHTNJAMY.js +549 -555
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-336JU56O.js +38 -40
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-426QAEUC.js +7 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js +4 -6
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4TB4RGXK.js +198 -204
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +5 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js +2345 -2347
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +253 -257
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +20 -22
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-BSJP7CBP.js +35 -37
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EDXVE4YY.js +15 -17
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js +344 -346
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js +3 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js +718 -746
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OYMX7WX6.js +588 -594
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js +4 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.js +204 -206
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-X2U36JSP.js +37 -39
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XPW4576I.js +891 -893
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.js +37 -39
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.js +13 -15
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-6PBFFD2Q.js +9 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-HSJHXN6E.js +9 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +114 -116
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-KV5264BT.js +188 -190
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.js +70 -72
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-G4DWMVQ6.js +185 -189
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.js +154 -156
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-TYMM5635.js +72 -76
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-SMLLAGMA.js +75 -79
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-DWJPFMVM.js +896 -900
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-T4ZO3ILL.js +685 -687
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.js +569 -571
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-42DDH7IO.js +15 -17
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-UXIWVN3A.js +304 -308
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-VCZTEJTY.js +377 -379
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-6JOO6SKY.js +114 -116
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-QFDTVHPH.js +87 -91
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.js +94 -96
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-34T5L4WZ.js +273 -279
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-MS252O5E.js +59 -63
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-XADWPNL6.js +202 -212
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js +564 -568
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FHFEXIEX.js +155 -157
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-QKLJ7IA2.js +9 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.js +559 -561
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-DHZGUBPP.js +370 -372
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +450 -454
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-5P7HB3ND.js +658 -680
- package/dist/node_modules/mermaid/dist/mermaid.core.js +430 -434
- package/dist/node_modules/micromark/lib/constructs.js +79 -80
- package/dist/node_modules/micromark/lib/create-tokenizer.js +12 -14
- package/dist/node_modules/micromark/lib/initialize/content.js +7 -9
- package/dist/node_modules/micromark/lib/initialize/document.js +14 -15
- package/dist/node_modules/micromark/lib/initialize/flow.js +7 -9
- package/dist/node_modules/micromark/lib/initialize/text.js +6 -8
- package/dist/node_modules/micromark/lib/parse.js +18 -20
- package/dist/node_modules/micromark/lib/postprocess.js +4 -6
- package/dist/node_modules/micromark/lib/preprocess.js +4 -6
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +18 -20
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +15 -17
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +9 -11
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +13 -15
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +6 -8
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +14 -16
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +21 -22
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +15 -16
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +11 -13
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +17 -18
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +29 -30
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +6 -8
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +13 -15
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +67 -68
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +64 -66
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +111 -112
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +6 -8
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +6 -8
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +6 -8
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +31 -32
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +10 -12
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +9 -11
- package/dist/node_modules/micromark-extension-gfm/index.js +14 -16
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +120 -122
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +31 -33
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +9 -11
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +4 -6
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +2 -4
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +34 -36
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +18 -20
- package/dist/node_modules/micromark-extension-math/lib/math-flow.js +20 -21
- package/dist/node_modules/micromark-extension-math/lib/math-text.js +9 -11
- package/dist/node_modules/micromark-extension-math/lib/syntax.js +6 -8
- package/dist/node_modules/micromark-factory-destination/index.js +8 -10
- package/dist/node_modules/micromark-factory-label/index.js +5 -7
- package/dist/node_modules/micromark-factory-space/index.js +5 -7
- package/dist/node_modules/micromark-factory-title/index.js +6 -8
- package/dist/node_modules/micromark-factory-whitespace/index.js +5 -7
- package/dist/node_modules/micromark-util-character/index.js +12 -14
- package/dist/node_modules/micromark-util-chunked/index.js +4 -6
- package/dist/node_modules/micromark-util-classify-character/index.js +5 -7
- package/dist/node_modules/micromark-util-combine-extensions/index.js +11 -13
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +2 -4
- package/dist/node_modules/micromark-util-decode-string/index.js +9 -11
- package/dist/node_modules/micromark-util-html-tag-name/index.js +2 -4
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +2 -4
- package/dist/node_modules/micromark-util-resolve-all/index.js +2 -4
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +4 -6
- package/dist/node_modules/micromark-util-subtokenize/index.js +8 -10
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +8 -10
- package/dist/node_modules/motion/dist/es/react.js +2 -2
- package/dist/node_modules/nanoid/index.browser.js +4 -6
- package/dist/node_modules/nanoid/url-alphabet/index.js +2 -4
- package/dist/node_modules/property-information/index.js +23 -25
- package/dist/node_modules/property-information/lib/aria.js +39 -41
- package/dist/node_modules/property-information/lib/find.js +16 -18
- package/dist/node_modules/property-information/lib/hast-to-react.js +2 -4
- package/dist/node_modules/property-information/lib/html.js +94 -96
- package/dist/node_modules/property-information/lib/normalize.js +2 -4
- package/dist/node_modules/property-information/lib/svg.js +77 -79
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +4 -6
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +2 -4
- package/dist/node_modules/property-information/lib/util/create.js +8 -10
- package/dist/node_modules/property-information/lib/util/defined-info.js +11 -13
- package/dist/node_modules/property-information/lib/util/info.js +3 -5
- package/dist/node_modules/property-information/lib/util/merge.js +4 -6
- package/dist/node_modules/property-information/lib/util/schema.js +3 -5
- package/dist/node_modules/property-information/lib/util/types.js +14 -15
- package/dist/node_modules/property-information/lib/xlink.js +3 -5
- package/dist/node_modules/property-information/lib/xml.js +3 -5
- package/dist/node_modules/property-information/lib/xmlns.js +5 -7
- package/dist/node_modules/rehype-harden/dist/index.js +45 -47
- package/dist/node_modules/rehype-katex/lib/index.js +23 -25
- package/dist/node_modules/rehype-raw/lib/index.js +4 -6
- package/dist/node_modules/rehype-sanitize/lib/index.js +4 -6
- package/dist/node_modules/remark-gfm/lib/index.js +7 -9
- package/dist/node_modules/remark-math/lib/index.js +7 -9
- package/dist/node_modules/remark-parse/lib/index.js +4 -6
- package/dist/node_modules/remark-rehype/lib/index.js +5 -7
- package/dist/node_modules/remend/dist/index.js +324 -326
- package/dist/node_modules/roughjs/bundled/rough.esm.js +875 -877
- package/dist/node_modules/shiki/dist/bundle-full.js +12 -13
- package/dist/node_modules/shiki/dist/chunk-CtajNgzt.js +8 -10
- package/dist/node_modules/shiki/dist/engine-oniguruma.js +5 -7
- package/dist/node_modules/shiki/dist/langs-bundle-full-DfKZStlK.js +5 -7
- package/dist/node_modules/shiki/dist/themes.js +3 -5
- package/dist/node_modules/shiki/dist/wasm.js +2 -2
- package/dist/node_modules/space-separated-tokens/index.js +3 -5
- package/dist/node_modules/streamdown/dist/chunk-BO2N2NFS.js +699 -701
- package/dist/node_modules/streamdown/dist/highlighted-body-OFNGDK62.js +8 -10
- package/dist/node_modules/streamdown/dist/index.js +1 -1
- package/dist/node_modules/streamdown/dist/mermaid-GHXKKRXX.js +2 -2
- package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +712 -709
- package/dist/node_modules/stringify-entities/lib/constant/dangerous.js +2 -4
- package/dist/node_modules/stringify-entities/lib/core.js +16 -18
- package/dist/node_modules/stringify-entities/lib/index.js +5 -7
- package/dist/node_modules/stringify-entities/lib/util/format-smart.js +8 -10
- package/dist/node_modules/stringify-entities/lib/util/to-decimal.js +4 -6
- package/dist/node_modules/stringify-entities/lib/util/to-hexadecimal.js +4 -6
- package/dist/node_modules/stringify-entities/lib/util/to-named.js +12 -14
- package/dist/node_modules/style-to-js/cjs/index.js +7 -9
- package/dist/node_modules/style-to-js/cjs/utilities.js +4 -6
- package/dist/node_modules/style-to-object/cjs/index.js +6 -8
- package/dist/node_modules/stylis/src/Enum.js +2 -4
- package/dist/node_modules/stylis/src/Parser.js +36 -38
- package/dist/node_modules/stylis/src/Serializer.js +15 -17
- package/dist/node_modules/stylis/src/Tokenizer.js +51 -53
- package/dist/node_modules/stylis/src/Utility.js +15 -17
- package/dist/node_modules/trim-lines/index.js +8 -10
- package/dist/node_modules/trough/lib/index.js +4 -6
- package/dist/node_modules/ts-dedent/esm/index.js +2 -4
- package/dist/node_modules/unified/lib/callable-instance.js +2 -4
- package/dist/node_modules/unified/lib/index.js +101 -102
- package/dist/node_modules/unified/node_modules/is-plain-obj/index.js +2 -4
- package/dist/node_modules/unist-util-find-after/lib/index.js +4 -6
- package/dist/node_modules/unist-util-is/lib/index.js +29 -31
- package/dist/node_modules/unist-util-position/lib/index.js +5 -7
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +8 -10
- package/dist/node_modules/unist-util-visit/lib/index.js +4 -6
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +2 -4
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +20 -21
- package/dist/node_modules/uuid/dist/esm-browser/native.js +2 -3
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +6 -8
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +5 -7
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +9 -10
- package/dist/node_modules/vaul/dist/index.js +274 -276
- package/dist/node_modules/vfile/lib/index.js +42 -44
- package/dist/node_modules/vfile/lib/minpath.browser.js +20 -22
- package/dist/node_modules/vfile/lib/minproc.browser.js +3 -5
- package/dist/node_modules/vfile/lib/minurl.browser.js +6 -8
- package/dist/node_modules/vfile/lib/minurl.shared.js +2 -4
- package/dist/node_modules/vfile-location/lib/index.js +5 -7
- package/dist/node_modules/vfile-message/lib/index.js +5 -7
- package/dist/node_modules/vscode-jsonrpc/browser.js +6 -8
- package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +9 -11
- package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +6 -8
- package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +26 -28
- package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +15 -17
- package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +11 -13
- package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +4 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +6 -8
- package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +4 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +4 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +4 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +9 -11
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +29 -31
- package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +6 -8
- package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +4 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +6 -8
- package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +8 -10
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +21 -23
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +12 -14
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +53 -55
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +8 -10
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +10 -12
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +4 -6
- package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +19 -21
- package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +847 -849
- package/dist/node_modules/vscode-uri/lib/esm/index.js +4 -6
- package/dist/node_modules/web-namespaces/index.js +2 -4
- package/dist/node_modules/zwitch/index.js +5 -7
- package/dist/packages/contracts/dist/enums/index.js +12 -14
- package/dist/packages/contracts/dist/enums/registry.enum.js +4 -6
- package/dist/packages/contracts/dist/enums/sort-order.enum.js +4 -6
- package/dist/packages/contracts/dist/enums/user-type.enum.js +4 -6
- package/dist/packages/contracts/dist/enums/workflow-state.enum.js +4 -6
- package/dist/pages/DashboardPage.js +78 -59
- package/dist/pages/DebugPage.js +17 -12
- package/dist/pages/DebugWorkflowDetailsPage.js +105 -91
- package/dist/pages/DebugWorkflowsPage.js +162 -125
- package/dist/pages/EmbedWorkbenchPage.js +63 -48
- package/dist/pages/PreviewWorkbenchPage.js +370 -271
- package/dist/pages/RunsListPage.js +46 -43
- package/dist/pages/RunsPage.js +33 -31
- package/dist/pages/StudioLandingPage.js +132 -97
- package/dist/pages/WorkbenchPage.js +65 -57
- package/dist/pages/WorkflowDebugPage.js +96 -74
- package/dist/pages/WorkspacePage.js +88 -72
- package/dist/pages/WorkspaceRunsPage.js +75 -43
- package/dist/pages/WorkspacesPage.js +17 -22
- package/dist/providers/ComponentOverridesProvider.js +12 -9
- package/dist/providers/InvalidationEventsProvider.js +35 -33
- package/dist/providers/QueryProvider.js +18 -14
- package/dist/providers/SseProvider.js +29 -28
- package/dist/providers/StudioPreferencesProvider.js +54 -0
- package/dist/providers/StudioProvider.js +19 -14
- package/dist/routing/LocalRouter.js +9 -6
- package/dist/services/createApiClient.js +5 -7
- package/dist/services/eventEmitter.js +2 -3
- package/dist/services/index.js +2 -2
- package/dist/types/ai.types.js +5 -7
- package/package.json +8 -8
- package/dist/_virtual/_rolldown/runtime.js +0 -20
- package/dist/features/documents/renderers/SecretInputRenderer.js +0 -89
- package/dist/features/workbench/components/RemoteFileTabsBar.js +0 -19
- package/dist/features/workbench/components/RemoteFileTree.js +0 -59
- package/dist/features/workbench/components/WorkbenchFilesPanel.js +0 -56
- package/dist/features/workbench/components/WorkbenchFloatingPanel.js +0 -40
- package/dist/features/workbench/components/WorkbenchFlowPanel.js +0 -38
- package/dist/features/workbench/components/WorkbenchSecretsPanel.js +0 -153
- package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +0 -145
- package/dist/frontend/studio/node_modules/lodash/_Symbol.js +0 -9
- package/dist/frontend/studio/node_modules/lodash/_baseGetTag.js +0 -15
- package/dist/frontend/studio/node_modules/lodash/_baseTrim.js +0 -13
- package/dist/frontend/studio/node_modules/lodash/_freeGlobal.js +0 -8
- package/dist/frontend/studio/node_modules/lodash/_getRawTag.js +0 -19
- package/dist/frontend/studio/node_modules/lodash/_objectToString.js +0 -12
- package/dist/frontend/studio/node_modules/lodash/_root.js +0 -10
- package/dist/frontend/studio/node_modules/lodash/_trimmedEndIndex.js +0 -13
- package/dist/frontend/studio/node_modules/lodash/isObject.js +0 -12
- package/dist/frontend/studio/node_modules/lodash/isObjectLike.js +0 -11
- package/dist/frontend/studio/node_modules/lodash/isSymbol.js +0 -14
- package/dist/frontend/studio/node_modules/lodash/now.js +0 -12
- package/dist/frontend/studio/node_modules/lodash/toNumber.js +0 -24
- package/dist/node_modules/@dagrejs/dagre/dist/dagre.esm.js +0 -1867
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { __name
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { clear
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import { __name, log } from "./chunk-AGHRB4JF.js";
|
|
2
|
+
import rgba_default from "../../../../khroma/dist/methods/rgba.js";
|
|
3
|
+
import channel_default from "../../../../khroma/dist/methods/channel.js";
|
|
4
|
+
import { clear, common_default, configureSvgSize, getConfig, getConfig2, getEffectiveHtmlLabels, getUrl, sanitizeText } from "./chunk-ICPOFSXX.js";
|
|
5
|
+
import select_default from "../../../../d3-selection/src/select.js";
|
|
6
|
+
import line_default from "../../../../d3-shape/src/line.js";
|
|
7
|
+
import basis_default from "../../../../d3-shape/src/curve/basis.js";
|
|
8
8
|
import "../../../../d3/src/index.js";
|
|
9
|
-
import { computeLabelTransform
|
|
10
|
-
import { decodeEntities
|
|
11
|
-
import { configureLabelImages
|
|
12
|
-
import { createText
|
|
13
|
-
import { getIconStyles
|
|
14
|
-
import
|
|
15
|
-
import { Graph
|
|
9
|
+
import { computeLabelTransform, getLineFunctionsWithOffset } from "./chunk-BSJP7CBP.js";
|
|
10
|
+
import { decodeEntities, getStylesFromArray, utils_default } from "./chunk-5PVQY5BW.js";
|
|
11
|
+
import { configureLabelImages, getSubGraphTitleMargins } from "./chunk-ZZ45TVLE.js";
|
|
12
|
+
import { createText } from "./chunk-U2HBQHQK.js";
|
|
13
|
+
import { getIconStyles } from "./chunk-FMBD7UC4.js";
|
|
14
|
+
import clone_default from "../../../../lodash-es/clone.js";
|
|
15
|
+
import { Graph } from "../../../../dagre-d3-es/src/graphlib/graph.js";
|
|
16
16
|
import "../../../../dagre-d3-es/src/graphlib/index.js";
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}, "o"), n = [1, 15], r = [1, 7], i = [1, 13], a = [1, 14], o = [1, 19], s = [1, 16], c = [1, 17], l = [1, 18], u = [8, 30], d = [
|
|
17
|
+
var parser = (function() {
|
|
18
|
+
var S = /* @__PURE__ */ __name(function(e, S, C, w) {
|
|
19
|
+
for (C ||= {}, w = e.length; w--; C[e[w]] = S);
|
|
20
|
+
return C;
|
|
21
|
+
}, "o"), C = [1, 15], w = [1, 7], T = [1, 13], E = [1, 14], D = [1, 19], O = [1, 16], k = [1, 17], A = [1, 18], j = [8, 30], M = [
|
|
23
22
|
8,
|
|
24
23
|
10,
|
|
25
24
|
21,
|
|
@@ -30,7 +29,7 @@ var E = (function() {
|
|
|
30
29
|
39,
|
|
31
30
|
43,
|
|
32
31
|
46
|
|
33
|
-
],
|
|
32
|
+
], N = [1, 23], P = [1, 24], F = [
|
|
34
33
|
8,
|
|
35
34
|
10,
|
|
36
35
|
15,
|
|
@@ -43,7 +42,7 @@ var E = (function() {
|
|
|
43
42
|
39,
|
|
44
43
|
43,
|
|
45
44
|
46
|
|
46
|
-
],
|
|
45
|
+
], I = [
|
|
47
46
|
8,
|
|
48
47
|
10,
|
|
49
48
|
15,
|
|
@@ -57,8 +56,8 @@ var E = (function() {
|
|
|
57
56
|
39,
|
|
58
57
|
43,
|
|
59
58
|
46
|
|
60
|
-
],
|
|
61
|
-
trace: /* @__PURE__ */
|
|
59
|
+
], L = [1, 49], R = {
|
|
60
|
+
trace: /* @__PURE__ */ __name(function() {}, "trace"),
|
|
62
61
|
yy: {},
|
|
63
62
|
symbols_: {
|
|
64
63
|
error: 2,
|
|
@@ -185,178 +184,178 @@ var E = (function() {
|
|
|
185
184
|
[24, 3],
|
|
186
185
|
[25, 3]
|
|
187
186
|
],
|
|
188
|
-
performAction: /* @__PURE__ */
|
|
189
|
-
var
|
|
190
|
-
switch (
|
|
187
|
+
performAction: /* @__PURE__ */ __name(function(e, S, C, w, T, E, D) {
|
|
188
|
+
var O = E.length - 1;
|
|
189
|
+
switch (T) {
|
|
191
190
|
case 4:
|
|
192
|
-
|
|
191
|
+
w.getLogger().debug("Rule: separator (NL) ");
|
|
193
192
|
break;
|
|
194
193
|
case 5:
|
|
195
|
-
|
|
194
|
+
w.getLogger().debug("Rule: separator (Space) ");
|
|
196
195
|
break;
|
|
197
196
|
case 6:
|
|
198
|
-
|
|
197
|
+
w.getLogger().debug("Rule: separator (EOF) ");
|
|
199
198
|
break;
|
|
200
199
|
case 7:
|
|
201
|
-
|
|
200
|
+
w.getLogger().debug("Rule: hierarchy: ", E[O - 1]), w.setHierarchy(E[O - 1]);
|
|
202
201
|
break;
|
|
203
202
|
case 8:
|
|
204
|
-
|
|
203
|
+
w.getLogger().debug("Stop NL ");
|
|
205
204
|
break;
|
|
206
205
|
case 9:
|
|
207
|
-
|
|
206
|
+
w.getLogger().debug("Stop EOF ");
|
|
208
207
|
break;
|
|
209
208
|
case 10:
|
|
210
|
-
|
|
209
|
+
w.getLogger().debug("Stop NL2 ");
|
|
211
210
|
break;
|
|
212
211
|
case 11:
|
|
213
|
-
|
|
212
|
+
w.getLogger().debug("Stop EOF2 ");
|
|
214
213
|
break;
|
|
215
214
|
case 12:
|
|
216
|
-
|
|
215
|
+
w.getLogger().debug("Rule: statement: ", E[O]), typeof E[O].length == "number" ? this.$ = E[O] : this.$ = [E[O]];
|
|
217
216
|
break;
|
|
218
217
|
case 13:
|
|
219
|
-
|
|
218
|
+
w.getLogger().debug("Rule: statement #2: ", E[O - 1]), this.$ = [E[O - 1]].concat(E[O]);
|
|
220
219
|
break;
|
|
221
220
|
case 14:
|
|
222
|
-
|
|
223
|
-
edgeTypeStr:
|
|
221
|
+
w.getLogger().debug("Rule: link: ", E[O], e), this.$ = {
|
|
222
|
+
edgeTypeStr: E[O],
|
|
224
223
|
label: ""
|
|
225
224
|
};
|
|
226
225
|
break;
|
|
227
226
|
case 15:
|
|
228
|
-
|
|
229
|
-
edgeTypeStr:
|
|
230
|
-
label:
|
|
227
|
+
w.getLogger().debug("Rule: LABEL link: ", E[O - 3], E[O - 1], E[O]), this.$ = {
|
|
228
|
+
edgeTypeStr: E[O],
|
|
229
|
+
label: E[O - 1]
|
|
231
230
|
};
|
|
232
231
|
break;
|
|
233
232
|
case 18:
|
|
234
|
-
let
|
|
233
|
+
let S = parseInt(E[O]);
|
|
235
234
|
this.$ = {
|
|
236
|
-
id:
|
|
235
|
+
id: w.generateId(),
|
|
237
236
|
type: "space",
|
|
238
237
|
label: "",
|
|
239
|
-
width:
|
|
238
|
+
width: S,
|
|
240
239
|
children: []
|
|
241
240
|
};
|
|
242
241
|
break;
|
|
243
242
|
case 23:
|
|
244
|
-
|
|
245
|
-
let
|
|
243
|
+
w.getLogger().debug("Rule: (nodeStatement link node) ", E[O - 2], E[O - 1], E[O], " typestr: ", E[O - 1].edgeTypeStr);
|
|
244
|
+
let C = w.edgeStrToEdgeData(E[O - 1].edgeTypeStr);
|
|
246
245
|
this.$ = [
|
|
247
246
|
{
|
|
248
|
-
id:
|
|
249
|
-
label:
|
|
250
|
-
type:
|
|
251
|
-
directions:
|
|
247
|
+
id: E[O - 2].id,
|
|
248
|
+
label: E[O - 2].label,
|
|
249
|
+
type: E[O - 2].type,
|
|
250
|
+
directions: E[O - 2].directions
|
|
252
251
|
},
|
|
253
252
|
{
|
|
254
|
-
id:
|
|
255
|
-
start:
|
|
256
|
-
end:
|
|
257
|
-
label:
|
|
253
|
+
id: E[O - 2].id + "-" + E[O].id,
|
|
254
|
+
start: E[O - 2].id,
|
|
255
|
+
end: E[O].id,
|
|
256
|
+
label: E[O - 1].label,
|
|
258
257
|
type: "edge",
|
|
259
|
-
directions:
|
|
260
|
-
arrowTypeEnd:
|
|
258
|
+
directions: E[O].directions,
|
|
259
|
+
arrowTypeEnd: C,
|
|
261
260
|
arrowTypeStart: "arrow_open"
|
|
262
261
|
},
|
|
263
262
|
{
|
|
264
|
-
id:
|
|
265
|
-
label:
|
|
266
|
-
type:
|
|
267
|
-
directions:
|
|
263
|
+
id: E[O].id,
|
|
264
|
+
label: E[O].label,
|
|
265
|
+
type: w.typeStr2Type(E[O].typeStr),
|
|
266
|
+
directions: E[O].directions
|
|
268
267
|
}
|
|
269
268
|
];
|
|
270
269
|
break;
|
|
271
270
|
case 24:
|
|
272
|
-
|
|
273
|
-
id:
|
|
274
|
-
label:
|
|
275
|
-
type:
|
|
276
|
-
directions:
|
|
277
|
-
widthInColumns: parseInt(
|
|
271
|
+
w.getLogger().debug("Rule: nodeStatement (abc88 node size) ", E[O - 1], E[O]), this.$ = {
|
|
272
|
+
id: E[O - 1].id,
|
|
273
|
+
label: E[O - 1].label,
|
|
274
|
+
type: w.typeStr2Type(E[O - 1].typeStr),
|
|
275
|
+
directions: E[O - 1].directions,
|
|
276
|
+
widthInColumns: parseInt(E[O], 10)
|
|
278
277
|
};
|
|
279
278
|
break;
|
|
280
279
|
case 25:
|
|
281
|
-
|
|
282
|
-
id:
|
|
283
|
-
label:
|
|
284
|
-
type:
|
|
285
|
-
directions:
|
|
280
|
+
w.getLogger().debug("Rule: nodeStatement (node) ", E[O]), this.$ = {
|
|
281
|
+
id: E[O].id,
|
|
282
|
+
label: E[O].label,
|
|
283
|
+
type: w.typeStr2Type(E[O].typeStr),
|
|
284
|
+
directions: E[O].directions,
|
|
286
285
|
widthInColumns: 1
|
|
287
286
|
};
|
|
288
287
|
break;
|
|
289
288
|
case 26:
|
|
290
|
-
|
|
289
|
+
w.getLogger().debug("APA123", this ? this : "na"), w.getLogger().debug("COLUMNS: ", E[O]), this.$ = {
|
|
291
290
|
type: "column-setting",
|
|
292
|
-
columns:
|
|
291
|
+
columns: E[O] === "auto" ? -1 : parseInt(E[O])
|
|
293
292
|
};
|
|
294
293
|
break;
|
|
295
294
|
case 27:
|
|
296
|
-
|
|
297
|
-
...
|
|
295
|
+
w.getLogger().debug("Rule: id-block statement : ", E[O - 2], E[O - 1]), w.generateId(), this.$ = {
|
|
296
|
+
...E[O - 2],
|
|
298
297
|
type: "composite",
|
|
299
|
-
children:
|
|
298
|
+
children: E[O - 1]
|
|
300
299
|
};
|
|
301
300
|
break;
|
|
302
301
|
case 28:
|
|
303
|
-
|
|
304
|
-
id:
|
|
302
|
+
w.getLogger().debug("Rule: blockStatement : ", E[O - 2], E[O - 1], E[O]), this.$ = {
|
|
303
|
+
id: w.generateId(),
|
|
305
304
|
type: "composite",
|
|
306
305
|
label: "",
|
|
307
|
-
children:
|
|
306
|
+
children: E[O - 1]
|
|
308
307
|
};
|
|
309
308
|
break;
|
|
310
309
|
case 29:
|
|
311
|
-
|
|
310
|
+
w.getLogger().debug("Rule: node (NODE_ID separator): ", E[O]), this.$ = { id: E[O] };
|
|
312
311
|
break;
|
|
313
312
|
case 30:
|
|
314
|
-
|
|
315
|
-
id:
|
|
316
|
-
label:
|
|
317
|
-
typeStr:
|
|
318
|
-
directions:
|
|
313
|
+
w.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", E[O - 1], E[O]), this.$ = {
|
|
314
|
+
id: E[O - 1],
|
|
315
|
+
label: E[O].label,
|
|
316
|
+
typeStr: E[O].typeStr,
|
|
317
|
+
directions: E[O].directions
|
|
319
318
|
};
|
|
320
319
|
break;
|
|
321
320
|
case 31:
|
|
322
|
-
|
|
321
|
+
w.getLogger().debug("Rule: dirList: ", E[O]), this.$ = [E[O]];
|
|
323
322
|
break;
|
|
324
323
|
case 32:
|
|
325
|
-
|
|
324
|
+
w.getLogger().debug("Rule: dirList: ", E[O - 1], E[O]), this.$ = [E[O - 1]].concat(E[O]);
|
|
326
325
|
break;
|
|
327
326
|
case 33:
|
|
328
|
-
|
|
329
|
-
typeStr:
|
|
330
|
-
label:
|
|
327
|
+
w.getLogger().debug("Rule: nodeShapeNLabel: ", E[O - 2], E[O - 1], E[O]), this.$ = {
|
|
328
|
+
typeStr: E[O - 2] + E[O],
|
|
329
|
+
label: E[O - 1]
|
|
331
330
|
};
|
|
332
331
|
break;
|
|
333
332
|
case 34:
|
|
334
|
-
|
|
335
|
-
typeStr:
|
|
336
|
-
label:
|
|
337
|
-
directions:
|
|
333
|
+
w.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", E[O - 3], E[O - 2], " #3:", E[O - 1], E[O]), this.$ = {
|
|
334
|
+
typeStr: E[O - 3] + E[O],
|
|
335
|
+
label: E[O - 2],
|
|
336
|
+
directions: E[O - 1]
|
|
338
337
|
};
|
|
339
338
|
break;
|
|
340
339
|
case 35:
|
|
341
340
|
case 36:
|
|
342
341
|
this.$ = {
|
|
343
342
|
type: "classDef",
|
|
344
|
-
id:
|
|
345
|
-
css:
|
|
343
|
+
id: E[O - 1].trim(),
|
|
344
|
+
css: E[O].trim()
|
|
346
345
|
};
|
|
347
346
|
break;
|
|
348
347
|
case 37:
|
|
349
348
|
this.$ = {
|
|
350
349
|
type: "applyClass",
|
|
351
|
-
id:
|
|
352
|
-
styleClass:
|
|
350
|
+
id: E[O - 1].trim(),
|
|
351
|
+
styleClass: E[O].trim()
|
|
353
352
|
};
|
|
354
353
|
break;
|
|
355
354
|
case 38:
|
|
356
355
|
this.$ = {
|
|
357
356
|
type: "applyStyles",
|
|
358
|
-
id:
|
|
359
|
-
stylesStr:
|
|
357
|
+
id: E[O - 1].trim(),
|
|
358
|
+
stylesStr: E[O].trim()
|
|
360
359
|
};
|
|
361
360
|
break;
|
|
362
361
|
}
|
|
@@ -368,26 +367,26 @@ var E = (function() {
|
|
|
368
367
|
},
|
|
369
368
|
{ 1: [3] },
|
|
370
369
|
{
|
|
371
|
-
10:
|
|
370
|
+
10: C,
|
|
372
371
|
11: 3,
|
|
373
372
|
13: 4,
|
|
374
373
|
19: 5,
|
|
375
374
|
20: 6,
|
|
376
|
-
21:
|
|
375
|
+
21: w,
|
|
377
376
|
22: 8,
|
|
378
377
|
23: 9,
|
|
379
378
|
24: 10,
|
|
380
379
|
25: 11,
|
|
381
380
|
26: 12,
|
|
382
|
-
28:
|
|
383
|
-
29:
|
|
384
|
-
31:
|
|
385
|
-
39:
|
|
386
|
-
43:
|
|
387
|
-
46:
|
|
381
|
+
28: T,
|
|
382
|
+
29: E,
|
|
383
|
+
31: D,
|
|
384
|
+
39: O,
|
|
385
|
+
43: k,
|
|
386
|
+
46: A
|
|
388
387
|
},
|
|
389
388
|
{ 8: [1, 20] },
|
|
390
|
-
|
|
389
|
+
S(j, [2, 12], {
|
|
391
390
|
13: 4,
|
|
392
391
|
19: 5,
|
|
393
392
|
20: 6,
|
|
@@ -397,51 +396,51 @@ var E = (function() {
|
|
|
397
396
|
25: 11,
|
|
398
397
|
26: 12,
|
|
399
398
|
11: 21,
|
|
400
|
-
10:
|
|
401
|
-
21:
|
|
402
|
-
28:
|
|
403
|
-
29:
|
|
404
|
-
31:
|
|
405
|
-
39:
|
|
406
|
-
43:
|
|
407
|
-
46:
|
|
399
|
+
10: C,
|
|
400
|
+
21: w,
|
|
401
|
+
28: T,
|
|
402
|
+
29: E,
|
|
403
|
+
31: D,
|
|
404
|
+
39: O,
|
|
405
|
+
43: k,
|
|
406
|
+
46: A
|
|
408
407
|
}),
|
|
409
|
-
|
|
408
|
+
S(M, [2, 16], {
|
|
410
409
|
14: 22,
|
|
411
|
-
15:
|
|
412
|
-
16:
|
|
410
|
+
15: N,
|
|
411
|
+
16: P
|
|
413
412
|
}),
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
413
|
+
S(M, [2, 17]),
|
|
414
|
+
S(M, [2, 18]),
|
|
415
|
+
S(M, [2, 19]),
|
|
416
|
+
S(M, [2, 20]),
|
|
417
|
+
S(M, [2, 21]),
|
|
418
|
+
S(M, [2, 22]),
|
|
419
|
+
S(F, [2, 25], { 27: [1, 25] }),
|
|
420
|
+
S(M, [2, 26]),
|
|
422
421
|
{
|
|
423
422
|
19: 26,
|
|
424
423
|
26: 12,
|
|
425
|
-
31:
|
|
424
|
+
31: D
|
|
426
425
|
},
|
|
427
426
|
{
|
|
428
|
-
10:
|
|
427
|
+
10: C,
|
|
429
428
|
11: 27,
|
|
430
429
|
13: 4,
|
|
431
430
|
19: 5,
|
|
432
431
|
20: 6,
|
|
433
|
-
21:
|
|
432
|
+
21: w,
|
|
434
433
|
22: 8,
|
|
435
434
|
23: 9,
|
|
436
435
|
24: 10,
|
|
437
436
|
25: 11,
|
|
438
437
|
26: 12,
|
|
439
|
-
28:
|
|
440
|
-
29:
|
|
441
|
-
31:
|
|
442
|
-
39:
|
|
443
|
-
43:
|
|
444
|
-
46:
|
|
438
|
+
28: T,
|
|
439
|
+
29: E,
|
|
440
|
+
31: D,
|
|
441
|
+
39: O,
|
|
442
|
+
43: k,
|
|
443
|
+
46: A
|
|
445
444
|
},
|
|
446
445
|
{
|
|
447
446
|
40: [1, 28],
|
|
@@ -449,74 +448,74 @@ var E = (function() {
|
|
|
449
448
|
},
|
|
450
449
|
{ 44: [1, 30] },
|
|
451
450
|
{ 47: [1, 31] },
|
|
452
|
-
|
|
451
|
+
S(I, [2, 29], {
|
|
453
452
|
32: 32,
|
|
454
453
|
35: [1, 33],
|
|
455
454
|
37: [1, 34]
|
|
456
455
|
}),
|
|
457
456
|
{ 1: [2, 7] },
|
|
458
|
-
|
|
457
|
+
S(j, [2, 13]),
|
|
459
458
|
{
|
|
460
459
|
26: 35,
|
|
461
|
-
31:
|
|
460
|
+
31: D
|
|
462
461
|
},
|
|
463
462
|
{ 31: [2, 14] },
|
|
464
463
|
{ 17: [1, 36] },
|
|
465
|
-
|
|
464
|
+
S(F, [2, 24]),
|
|
466
465
|
{
|
|
467
|
-
10:
|
|
466
|
+
10: C,
|
|
468
467
|
11: 37,
|
|
469
468
|
13: 4,
|
|
470
469
|
14: 22,
|
|
471
|
-
15:
|
|
472
|
-
16:
|
|
470
|
+
15: N,
|
|
471
|
+
16: P,
|
|
473
472
|
19: 5,
|
|
474
473
|
20: 6,
|
|
475
|
-
21:
|
|
474
|
+
21: w,
|
|
476
475
|
22: 8,
|
|
477
476
|
23: 9,
|
|
478
477
|
24: 10,
|
|
479
478
|
25: 11,
|
|
480
479
|
26: 12,
|
|
481
|
-
28:
|
|
482
|
-
29:
|
|
483
|
-
31:
|
|
484
|
-
39:
|
|
485
|
-
43:
|
|
486
|
-
46:
|
|
480
|
+
28: T,
|
|
481
|
+
29: E,
|
|
482
|
+
31: D,
|
|
483
|
+
39: O,
|
|
484
|
+
43: k,
|
|
485
|
+
46: A
|
|
487
486
|
},
|
|
488
487
|
{ 30: [1, 38] },
|
|
489
488
|
{ 41: [1, 39] },
|
|
490
489
|
{ 41: [1, 40] },
|
|
491
490
|
{ 45: [1, 41] },
|
|
492
491
|
{ 48: [1, 42] },
|
|
493
|
-
|
|
492
|
+
S(I, [2, 30]),
|
|
494
493
|
{ 18: [1, 43] },
|
|
495
494
|
{ 18: [1, 44] },
|
|
496
|
-
|
|
495
|
+
S(F, [2, 23]),
|
|
497
496
|
{ 18: [1, 45] },
|
|
498
497
|
{ 30: [1, 46] },
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
498
|
+
S(M, [2, 28]),
|
|
499
|
+
S(M, [2, 35]),
|
|
500
|
+
S(M, [2, 36]),
|
|
501
|
+
S(M, [2, 37]),
|
|
502
|
+
S(M, [2, 38]),
|
|
504
503
|
{ 36: [1, 47] },
|
|
505
504
|
{
|
|
506
505
|
33: 48,
|
|
507
|
-
34:
|
|
506
|
+
34: L
|
|
508
507
|
},
|
|
509
508
|
{ 15: [1, 50] },
|
|
510
|
-
|
|
511
|
-
|
|
509
|
+
S(M, [2, 27]),
|
|
510
|
+
S(I, [2, 33]),
|
|
512
511
|
{ 38: [1, 51] },
|
|
513
512
|
{
|
|
514
513
|
33: 52,
|
|
515
|
-
34:
|
|
514
|
+
34: L,
|
|
516
515
|
38: [2, 31]
|
|
517
516
|
},
|
|
518
517
|
{ 31: [2, 15] },
|
|
519
|
-
|
|
518
|
+
S(I, [2, 34]),
|
|
520
519
|
{ 38: [2, 32] }
|
|
521
520
|
],
|
|
522
521
|
defaultActions: {
|
|
@@ -525,63 +524,63 @@ var E = (function() {
|
|
|
525
524
|
50: [2, 15],
|
|
526
525
|
52: [2, 32]
|
|
527
526
|
},
|
|
528
|
-
parseError: /* @__PURE__ */
|
|
529
|
-
if (
|
|
527
|
+
parseError: /* @__PURE__ */ __name(function(e, S) {
|
|
528
|
+
if (S.recoverable) this.trace(e);
|
|
530
529
|
else {
|
|
531
|
-
var
|
|
532
|
-
throw
|
|
530
|
+
var C = Error(e);
|
|
531
|
+
throw C.hash = S, C;
|
|
533
532
|
}
|
|
534
533
|
}, "parseError"),
|
|
535
|
-
parse: /* @__PURE__ */
|
|
536
|
-
var
|
|
537
|
-
for (var
|
|
538
|
-
|
|
539
|
-
var
|
|
540
|
-
|
|
541
|
-
var
|
|
542
|
-
typeof
|
|
543
|
-
function
|
|
544
|
-
|
|
534
|
+
parse: /* @__PURE__ */ __name(function(S) {
|
|
535
|
+
var C = this, w = [0], T = [], E = [null], D = [], O = this.table, k = "", A = 0, j = 0, M = 0, N = 2, P = 1, F = D.slice.call(arguments, 1), I = Object.create(this.lexer), L = { yy: {} };
|
|
536
|
+
for (var R in this.yy) Object.prototype.hasOwnProperty.call(this.yy, R) && (L.yy[R] = this.yy[R]);
|
|
537
|
+
I.setInput(S, L.yy), L.yy.lexer = I, L.yy.parser = this, I.yylloc === void 0 && (I.yylloc = {});
|
|
538
|
+
var z = I.yylloc;
|
|
539
|
+
D.push(z);
|
|
540
|
+
var B = I.options && I.options.ranges;
|
|
541
|
+
typeof L.yy.parseError == "function" ? this.parseError = L.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
542
|
+
function V(e) {
|
|
543
|
+
w.length -= 2 * e, E.length -= e, D.length -= e;
|
|
545
544
|
}
|
|
546
|
-
|
|
547
|
-
function
|
|
548
|
-
var e =
|
|
549
|
-
return typeof e != "number" && (e instanceof Array && (
|
|
545
|
+
__name(V, "popStack");
|
|
546
|
+
function H() {
|
|
547
|
+
var e = T.pop() || I.lex() || P;
|
|
548
|
+
return typeof e != "number" && (e instanceof Array && (T = e, e = T.pop()), e = C.symbols_[e] || e), e;
|
|
550
549
|
}
|
|
551
|
-
|
|
552
|
-
for (var
|
|
553
|
-
if (
|
|
554
|
-
var
|
|
555
|
-
for (
|
|
556
|
-
|
|
557
|
-
text:
|
|
558
|
-
token: this.terminals_[
|
|
559
|
-
line:
|
|
560
|
-
loc:
|
|
561
|
-
expected:
|
|
550
|
+
__name(H, "lex");
|
|
551
|
+
for (var U, W, G, K, q, J = {}, Y, X, Z, Q;;) {
|
|
552
|
+
if (G = w[w.length - 1], this.defaultActions[G] ? K = this.defaultActions[G] : (U ??= H(), K = O[G] && O[G][U]), K === void 0 || !K.length || !K[0]) {
|
|
553
|
+
var $ = "";
|
|
554
|
+
for (Y in Q = [], O[G]) this.terminals_[Y] && Y > N && Q.push("'" + this.terminals_[Y] + "'");
|
|
555
|
+
$ = I.showPosition ? "Parse error on line " + (A + 1) + ":\n" + I.showPosition() + "\nExpecting " + Q.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : "Parse error on line " + (A + 1) + ": Unexpected " + (U == P ? "end of input" : "'" + (this.terminals_[U] || U) + "'"), this.parseError($, {
|
|
556
|
+
text: I.match,
|
|
557
|
+
token: this.terminals_[U] || U,
|
|
558
|
+
line: I.yylineno,
|
|
559
|
+
loc: z,
|
|
560
|
+
expected: Q
|
|
562
561
|
});
|
|
563
562
|
}
|
|
564
|
-
if (
|
|
565
|
-
switch (
|
|
563
|
+
if (K[0] instanceof Array && K.length > 1) throw Error("Parse Error: multiple actions possible at state: " + G + ", token: " + U);
|
|
564
|
+
switch (K[0]) {
|
|
566
565
|
case 1:
|
|
567
|
-
|
|
566
|
+
w.push(U), E.push(I.yytext), D.push(I.yylloc), w.push(K[1]), U = null, W ? (U = W, W = null) : (j = I.yyleng, k = I.yytext, A = I.yylineno, z = I.yylloc, M > 0 && M--);
|
|
568
567
|
break;
|
|
569
568
|
case 2:
|
|
570
|
-
if (
|
|
571
|
-
first_line:
|
|
572
|
-
last_line:
|
|
573
|
-
first_column:
|
|
574
|
-
last_column:
|
|
575
|
-
},
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
].concat(
|
|
584
|
-
|
|
569
|
+
if (X = this.productions_[K[1]][1], J.$ = E[E.length - X], J._$ = {
|
|
570
|
+
first_line: D[D.length - (X || 1)].first_line,
|
|
571
|
+
last_line: D[D.length - 1].last_line,
|
|
572
|
+
first_column: D[D.length - (X || 1)].first_column,
|
|
573
|
+
last_column: D[D.length - 1].last_column
|
|
574
|
+
}, B && (J._$.range = [D[D.length - (X || 1)].range[0], D[D.length - 1].range[1]]), q = this.performAction.apply(J, [
|
|
575
|
+
k,
|
|
576
|
+
j,
|
|
577
|
+
A,
|
|
578
|
+
L.yy,
|
|
579
|
+
K[1],
|
|
580
|
+
E,
|
|
581
|
+
D
|
|
582
|
+
].concat(F)), q !== void 0) return q;
|
|
583
|
+
X && (w = w.slice(0, -1 * X * 2), E = E.slice(0, -1 * X), D = D.slice(0, -1 * X)), w.push(this.productions_[K[1]][0]), E.push(J.$), D.push(J._$), Z = O[w[w.length - 2]][w[w.length - 1]], w.push(Z);
|
|
585
584
|
break;
|
|
586
585
|
case 3: return !0;
|
|
587
586
|
}
|
|
@@ -589,42 +588,42 @@ var E = (function() {
|
|
|
589
588
|
return !0;
|
|
590
589
|
}, "parse")
|
|
591
590
|
};
|
|
592
|
-
|
|
591
|
+
R.lexer = /* @__PURE__ */ (function() {
|
|
593
592
|
return {
|
|
594
593
|
EOF: 1,
|
|
595
|
-
parseError: /* @__PURE__ */
|
|
596
|
-
if (this.yy.parser) this.yy.parser.parseError(e,
|
|
594
|
+
parseError: /* @__PURE__ */ __name(function(e, S) {
|
|
595
|
+
if (this.yy.parser) this.yy.parser.parseError(e, S);
|
|
597
596
|
else throw Error(e);
|
|
598
597
|
}, "parseError"),
|
|
599
|
-
setInput: /* @__PURE__ */
|
|
600
|
-
return this.yy =
|
|
598
|
+
setInput: /* @__PURE__ */ __name(function(e, S) {
|
|
599
|
+
return this.yy = S || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
601
600
|
first_line: 1,
|
|
602
601
|
first_column: 0,
|
|
603
602
|
last_line: 1,
|
|
604
603
|
last_column: 0
|
|
605
604
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
606
605
|
}, "setInput"),
|
|
607
|
-
input: /* @__PURE__ */
|
|
606
|
+
input: /* @__PURE__ */ __name(function() {
|
|
608
607
|
var e = this._input[0];
|
|
609
608
|
return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
|
|
610
609
|
}, "input"),
|
|
611
|
-
unput: /* @__PURE__ */
|
|
612
|
-
var
|
|
613
|
-
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length -
|
|
614
|
-
var
|
|
615
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
616
|
-
var
|
|
610
|
+
unput: /* @__PURE__ */ __name(function(e) {
|
|
611
|
+
var S = e.length, C = e.split(/(?:\r\n?|\n)/g);
|
|
612
|
+
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - S), this.offset -= S;
|
|
613
|
+
var w = this.match.split(/(?:\r\n?|\n)/g);
|
|
614
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), C.length - 1 && (this.yylineno -= C.length - 1);
|
|
615
|
+
var T = this.yylloc.range;
|
|
617
616
|
return this.yylloc = {
|
|
618
617
|
first_line: this.yylloc.first_line,
|
|
619
618
|
last_line: this.yylineno + 1,
|
|
620
619
|
first_column: this.yylloc.first_column,
|
|
621
|
-
last_column:
|
|
622
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
620
|
+
last_column: C ? (C.length === w.length ? this.yylloc.first_column : 0) + w[w.length - C.length].length - C[0].length : this.yylloc.first_column - S
|
|
621
|
+
}, this.options.ranges && (this.yylloc.range = [T[0], T[0] + this.yyleng - S]), this.yyleng = this.yytext.length, this;
|
|
623
622
|
}, "unput"),
|
|
624
|
-
more: /* @__PURE__ */
|
|
623
|
+
more: /* @__PURE__ */ __name(function() {
|
|
625
624
|
return this._more = !0, this;
|
|
626
625
|
}, "more"),
|
|
627
|
-
reject: /* @__PURE__ */
|
|
626
|
+
reject: /* @__PURE__ */ __name(function() {
|
|
628
627
|
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
629
628
|
else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
|
|
630
629
|
text: "",
|
|
@@ -633,24 +632,24 @@ var E = (function() {
|
|
|
633
632
|
});
|
|
634
633
|
return this;
|
|
635
634
|
}, "reject"),
|
|
636
|
-
less: /* @__PURE__ */
|
|
635
|
+
less: /* @__PURE__ */ __name(function(e) {
|
|
637
636
|
this.unput(this.match.slice(e));
|
|
638
637
|
}, "less"),
|
|
639
|
-
pastInput: /* @__PURE__ */
|
|
638
|
+
pastInput: /* @__PURE__ */ __name(function() {
|
|
640
639
|
var e = this.matched.substr(0, this.matched.length - this.match.length);
|
|
641
640
|
return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
|
|
642
641
|
}, "pastInput"),
|
|
643
|
-
upcomingInput: /* @__PURE__ */
|
|
642
|
+
upcomingInput: /* @__PURE__ */ __name(function() {
|
|
644
643
|
var e = this.match;
|
|
645
644
|
return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
646
645
|
}, "upcomingInput"),
|
|
647
|
-
showPosition: /* @__PURE__ */
|
|
648
|
-
var e = this.pastInput(),
|
|
649
|
-
return e + this.upcomingInput() + "\n" +
|
|
646
|
+
showPosition: /* @__PURE__ */ __name(function() {
|
|
647
|
+
var e = this.pastInput(), S = Array(e.length + 1).join("-");
|
|
648
|
+
return e + this.upcomingInput() + "\n" + S + "^";
|
|
650
649
|
}, "showPosition"),
|
|
651
|
-
test_match: /* @__PURE__ */
|
|
652
|
-
var
|
|
653
|
-
if (this.options.backtrack_lexer && (
|
|
650
|
+
test_match: /* @__PURE__ */ __name(function(e, S) {
|
|
651
|
+
var C, w, T;
|
|
652
|
+
if (this.options.backtrack_lexer && (T = {
|
|
654
653
|
yylineno: this.yylineno,
|
|
655
654
|
yylloc: {
|
|
656
655
|
first_line: this.yylloc.first_line,
|
|
@@ -669,74 +668,74 @@ var E = (function() {
|
|
|
669
668
|
yy: this.yy,
|
|
670
669
|
conditionStack: this.conditionStack.slice(0),
|
|
671
670
|
done: this.done
|
|
672
|
-
}, this.options.ranges && (
|
|
671
|
+
}, this.options.ranges && (T.yylloc.range = this.yylloc.range.slice(0))), w = e[0].match(/(?:\r\n?|\n).*/g), w && (this.yylineno += w.length), this.yylloc = {
|
|
673
672
|
first_line: this.yylloc.last_line,
|
|
674
673
|
last_line: this.yylineno + 1,
|
|
675
674
|
first_column: this.yylloc.last_column,
|
|
676
|
-
last_column:
|
|
677
|
-
}, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0],
|
|
675
|
+
last_column: w ? w[w.length - 1].length - w[w.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
|
|
676
|
+
}, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], C = this.performAction.call(this, this.yy, this, S, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), C) return C;
|
|
678
677
|
if (this._backtrack) {
|
|
679
|
-
for (var
|
|
678
|
+
for (var E in T) this[E] = T[E];
|
|
680
679
|
return !1;
|
|
681
680
|
}
|
|
682
681
|
return !1;
|
|
683
682
|
}, "test_match"),
|
|
684
|
-
next: /* @__PURE__ */
|
|
683
|
+
next: /* @__PURE__ */ __name(function() {
|
|
685
684
|
if (this.done) return this.EOF;
|
|
686
685
|
this._input || (this.done = !0);
|
|
687
|
-
var e,
|
|
686
|
+
var e, S, C, w;
|
|
688
687
|
this._more || (this.yytext = "", this.match = "");
|
|
689
|
-
for (var
|
|
690
|
-
if (
|
|
691
|
-
if (e = this.test_match(
|
|
688
|
+
for (var T = this._currentRules(), E = 0; E < T.length; E++) if (C = this._input.match(this.rules[T[E]]), C && (!S || C[0].length > S[0].length)) {
|
|
689
|
+
if (S = C, w = E, this.options.backtrack_lexer) {
|
|
690
|
+
if (e = this.test_match(C, T[E]), e !== !1) return e;
|
|
692
691
|
if (this._backtrack) {
|
|
693
|
-
|
|
692
|
+
S = !1;
|
|
694
693
|
continue;
|
|
695
694
|
} else return !1;
|
|
696
695
|
} else if (!this.options.flex) break;
|
|
697
696
|
}
|
|
698
|
-
return
|
|
697
|
+
return S ? (e = this.test_match(S, T[w]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
699
698
|
text: "",
|
|
700
699
|
token: null,
|
|
701
700
|
line: this.yylineno
|
|
702
701
|
});
|
|
703
702
|
}, "next"),
|
|
704
|
-
lex: /* @__PURE__ */
|
|
703
|
+
lex: /* @__PURE__ */ __name(function() {
|
|
705
704
|
return this.next() || this.lex();
|
|
706
705
|
}, "lex"),
|
|
707
|
-
begin: /* @__PURE__ */
|
|
706
|
+
begin: /* @__PURE__ */ __name(function(e) {
|
|
708
707
|
this.conditionStack.push(e);
|
|
709
708
|
}, "begin"),
|
|
710
|
-
popState: /* @__PURE__ */
|
|
709
|
+
popState: /* @__PURE__ */ __name(function() {
|
|
711
710
|
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
712
711
|
}, "popState"),
|
|
713
|
-
_currentRules: /* @__PURE__ */
|
|
712
|
+
_currentRules: /* @__PURE__ */ __name(function() {
|
|
714
713
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
715
714
|
}, "_currentRules"),
|
|
716
|
-
topState: /* @__PURE__ */
|
|
715
|
+
topState: /* @__PURE__ */ __name(function(e) {
|
|
717
716
|
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
718
717
|
}, "topState"),
|
|
719
|
-
pushState: /* @__PURE__ */
|
|
718
|
+
pushState: /* @__PURE__ */ __name(function(e) {
|
|
720
719
|
this.begin(e);
|
|
721
720
|
}, "pushState"),
|
|
722
|
-
stateStackSize: /* @__PURE__ */
|
|
721
|
+
stateStackSize: /* @__PURE__ */ __name(function() {
|
|
723
722
|
return this.conditionStack.length;
|
|
724
723
|
}, "stateStackSize"),
|
|
725
724
|
options: {},
|
|
726
|
-
performAction: /* @__PURE__ */
|
|
727
|
-
switch (
|
|
725
|
+
performAction: /* @__PURE__ */ __name(function(e, S, C, w) {
|
|
726
|
+
switch (C) {
|
|
728
727
|
case 0: return e.getLogger().debug("Found block-beta"), 10;
|
|
729
728
|
case 1: return e.getLogger().debug("Found id-block"), 29;
|
|
730
729
|
case 2: return e.getLogger().debug("Found block"), 10;
|
|
731
730
|
case 3:
|
|
732
|
-
e.getLogger().debug(".",
|
|
731
|
+
e.getLogger().debug(".", S.yytext);
|
|
733
732
|
break;
|
|
734
733
|
case 4:
|
|
735
|
-
e.getLogger().debug("_",
|
|
734
|
+
e.getLogger().debug("_", S.yytext);
|
|
736
735
|
break;
|
|
737
736
|
case 5: return 5;
|
|
738
|
-
case 6: return
|
|
739
|
-
case 7: return
|
|
737
|
+
case 6: return S.yytext = -1, 28;
|
|
738
|
+
case 7: return S.yytext = S.yytext.replace(/columns\s+/, ""), e.getLogger().debug("COLUMNS (LEX)", S.yytext), 28;
|
|
740
739
|
case 8:
|
|
741
740
|
this.pushState("md_string");
|
|
742
741
|
break;
|
|
@@ -748,11 +747,11 @@ var E = (function() {
|
|
|
748
747
|
this.pushState("string");
|
|
749
748
|
break;
|
|
750
749
|
case 12:
|
|
751
|
-
e.getLogger().debug("LEX: POPPING STR:",
|
|
750
|
+
e.getLogger().debug("LEX: POPPING STR:", S.yytext), this.popState();
|
|
752
751
|
break;
|
|
753
|
-
case 13: return e.getLogger().debug("LEX: STR end:",
|
|
754
|
-
case 14: return
|
|
755
|
-
case 15: return
|
|
752
|
+
case 13: return e.getLogger().debug("LEX: STR end:", S.yytext), "STR";
|
|
753
|
+
case 14: return S.yytext = S.yytext.replace(/space\:/, ""), e.getLogger().debug("SPACE NUM (LEX)", S.yytext), 21;
|
|
754
|
+
case 15: return S.yytext = "1", e.getLogger().debug("COLUMNS (LEX)", S.yytext), 21;
|
|
756
755
|
case 16: return 42;
|
|
757
756
|
case 17: return "LINKSTYLE";
|
|
758
757
|
case 18: return "INTERPOLATE";
|
|
@@ -815,8 +814,8 @@ var E = (function() {
|
|
|
815
814
|
case 71: return this.pushState("NODE"), 35;
|
|
816
815
|
case 72: return e.getLogger().debug("Lexa: ["), this.pushState("NODE"), 35;
|
|
817
816
|
case 73: return this.pushState("BLOCK_ARROW"), e.getLogger().debug("LEX ARR START"), 37;
|
|
818
|
-
case 74: return e.getLogger().debug("Lex: NODE_ID",
|
|
819
|
-
case 75: return e.getLogger().debug("Lex: EOF",
|
|
817
|
+
case 74: return e.getLogger().debug("Lex: NODE_ID", S.yytext), 31;
|
|
818
|
+
case 75: return e.getLogger().debug("Lex: EOF", S.yytext), 8;
|
|
820
819
|
case 76:
|
|
821
820
|
this.pushState("md_string");
|
|
822
821
|
break;
|
|
@@ -833,35 +832,35 @@ var E = (function() {
|
|
|
833
832
|
case 81:
|
|
834
833
|
e.getLogger().debug("LEX ARR: Starting string"), this.pushState("string");
|
|
835
834
|
break;
|
|
836
|
-
case 82: return e.getLogger().debug("LEX: NODE_DESCR:",
|
|
835
|
+
case 82: return e.getLogger().debug("LEX: NODE_DESCR:", S.yytext), "NODE_DESCR";
|
|
837
836
|
case 83:
|
|
838
837
|
e.getLogger().debug("LEX POPPING"), this.popState();
|
|
839
838
|
break;
|
|
840
839
|
case 84:
|
|
841
840
|
e.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR");
|
|
842
841
|
break;
|
|
843
|
-
case 85: return
|
|
844
|
-
case 86: return
|
|
845
|
-
case 87: return
|
|
846
|
-
case 88: return
|
|
847
|
-
case 89: return
|
|
848
|
-
case 90: return
|
|
849
|
-
case 91: return
|
|
850
|
-
case 92: return e.getLogger().debug("Lex: LINK", "#" +
|
|
851
|
-
case 93: return e.getLogger().debug("Lex: LINK",
|
|
852
|
-
case 94: return e.getLogger().debug("Lex: LINK",
|
|
853
|
-
case 95: return e.getLogger().debug("Lex: LINK",
|
|
854
|
-
case 96: return e.getLogger().debug("Lex: START_LINK",
|
|
855
|
-
case 97: return e.getLogger().debug("Lex: START_LINK",
|
|
856
|
-
case 98: return e.getLogger().debug("Lex: START_LINK",
|
|
842
|
+
case 85: return S.yytext = S.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (right): dir:", S.yytext), "DIR";
|
|
843
|
+
case 86: return S.yytext = S.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (left):", S.yytext), "DIR";
|
|
844
|
+
case 87: return S.yytext = S.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (x):", S.yytext), "DIR";
|
|
845
|
+
case 88: return S.yytext = S.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (y):", S.yytext), "DIR";
|
|
846
|
+
case 89: return S.yytext = S.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (up):", S.yytext), "DIR";
|
|
847
|
+
case 90: return S.yytext = S.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (down):", S.yytext), "DIR";
|
|
848
|
+
case 91: return S.yytext = "]>", e.getLogger().debug("Lex (ARROW_DIR end):", S.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END";
|
|
849
|
+
case 92: return e.getLogger().debug("Lex: LINK", "#" + S.yytext + "#"), 15;
|
|
850
|
+
case 93: return e.getLogger().debug("Lex: LINK", S.yytext), 15;
|
|
851
|
+
case 94: return e.getLogger().debug("Lex: LINK", S.yytext), 15;
|
|
852
|
+
case 95: return e.getLogger().debug("Lex: LINK", S.yytext), 15;
|
|
853
|
+
case 96: return e.getLogger().debug("Lex: START_LINK", S.yytext), this.pushState("LLABEL"), 16;
|
|
854
|
+
case 97: return e.getLogger().debug("Lex: START_LINK", S.yytext), this.pushState("LLABEL"), 16;
|
|
855
|
+
case 98: return e.getLogger().debug("Lex: START_LINK", S.yytext), this.pushState("LLABEL"), 16;
|
|
857
856
|
case 99:
|
|
858
857
|
this.pushState("md_string");
|
|
859
858
|
break;
|
|
860
859
|
case 100: return e.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL";
|
|
861
|
-
case 101: return this.popState(), e.getLogger().debug("Lex: LINK", "#" +
|
|
862
|
-
case 102: return this.popState(), e.getLogger().debug("Lex: LINK",
|
|
863
|
-
case 103: return this.popState(), e.getLogger().debug("Lex: LINK",
|
|
864
|
-
case 104: return e.getLogger().debug("Lex: COLON",
|
|
860
|
+
case 101: return this.popState(), e.getLogger().debug("Lex: LINK", "#" + S.yytext + "#"), 15;
|
|
861
|
+
case 102: return this.popState(), e.getLogger().debug("Lex: LINK", S.yytext), 15;
|
|
862
|
+
case 103: return this.popState(), e.getLogger().debug("Lex: LINK", S.yytext), 15;
|
|
863
|
+
case 104: return e.getLogger().debug("Lex: COLON", S.yytext), S.yytext = S.yytext.slice(1), 27;
|
|
865
864
|
}
|
|
866
865
|
}, "anonymous"),
|
|
867
866
|
rules: [
|
|
@@ -1144,91 +1143,91 @@ var E = (function() {
|
|
|
1144
1143
|
}
|
|
1145
1144
|
};
|
|
1146
1145
|
})();
|
|
1147
|
-
function
|
|
1146
|
+
function z() {
|
|
1148
1147
|
this.yy = {};
|
|
1149
1148
|
}
|
|
1150
|
-
return
|
|
1149
|
+
return __name(z, "Parser"), z.prototype = R, R.Parser = z, new z();
|
|
1151
1150
|
})();
|
|
1152
|
-
|
|
1153
|
-
var
|
|
1154
|
-
let
|
|
1155
|
-
|
|
1151
|
+
parser.parser = parser;
|
|
1152
|
+
var block_default = parser, blockDatabase = /* @__PURE__ */ new Map(), edgeList = [], edgeCount = /* @__PURE__ */ new Map(), COLOR_KEYWORD = "color", FILL_KEYWORD = "fill", BG_FILL = "bgFill", STYLECLASS_SEP = ",", config = getConfig2(), classes = /* @__PURE__ */ new Map(), diagramId = "", sanitizeText2 = /* @__PURE__ */ __name((e) => common_default.sanitizeText(e, config), "sanitizeText"), addStyleClass = /* @__PURE__ */ __name(function(e, S = "") {
|
|
1153
|
+
let C = classes.get(e);
|
|
1154
|
+
C || (C = {
|
|
1156
1155
|
id: e,
|
|
1157
1156
|
styles: [],
|
|
1158
1157
|
textStyles: []
|
|
1159
|
-
},
|
|
1160
|
-
let
|
|
1161
|
-
if (RegExp(
|
|
1162
|
-
let e =
|
|
1163
|
-
|
|
1158
|
+
}, classes.set(e, C)), S?.split(STYLECLASS_SEP).forEach((e) => {
|
|
1159
|
+
let S = e.replace(/([^;]*);/, "$1").trim();
|
|
1160
|
+
if (RegExp(COLOR_KEYWORD).exec(e)) {
|
|
1161
|
+
let e = S.replace(FILL_KEYWORD, BG_FILL).replace(COLOR_KEYWORD, FILL_KEYWORD);
|
|
1162
|
+
C.textStyles.push(e);
|
|
1164
1163
|
}
|
|
1165
|
-
|
|
1164
|
+
C.styles.push(S);
|
|
1166
1165
|
});
|
|
1167
|
-
}, "addStyleClass"),
|
|
1168
|
-
let
|
|
1169
|
-
|
|
1170
|
-
}, "addStyle2Node"),
|
|
1166
|
+
}, "addStyleClass"), addStyle2Node = /* @__PURE__ */ __name(function(e, S = "") {
|
|
1167
|
+
let C = blockDatabase.get(e);
|
|
1168
|
+
S != null && (C.styles = S.split(STYLECLASS_SEP));
|
|
1169
|
+
}, "addStyle2Node"), setCssClass = /* @__PURE__ */ __name(function(e, S) {
|
|
1171
1170
|
e.split(",").forEach(function(e) {
|
|
1172
|
-
let
|
|
1173
|
-
if (
|
|
1174
|
-
let
|
|
1175
|
-
|
|
1176
|
-
id:
|
|
1171
|
+
let C = blockDatabase.get(e);
|
|
1172
|
+
if (C === void 0) {
|
|
1173
|
+
let S = e.trim();
|
|
1174
|
+
C = {
|
|
1175
|
+
id: S,
|
|
1177
1176
|
type: "na",
|
|
1178
1177
|
children: []
|
|
1179
|
-
},
|
|
1178
|
+
}, blockDatabase.set(S, C);
|
|
1180
1179
|
}
|
|
1181
|
-
|
|
1180
|
+
C.classes ||= [], C.classes.push(S);
|
|
1182
1181
|
});
|
|
1183
|
-
}, "setCssClass"),
|
|
1184
|
-
let
|
|
1185
|
-
for (let e of
|
|
1186
|
-
if (typeof
|
|
1187
|
-
|
|
1182
|
+
}, "setCssClass"), populateBlockDatabase = /* @__PURE__ */ __name((e, C) => {
|
|
1183
|
+
let w = e.flat(), T = [], E = w.find((e) => e?.type === "column-setting")?.columns ?? -1;
|
|
1184
|
+
for (let e of w) {
|
|
1185
|
+
if (typeof E == "number" && E > 0 && e.type !== "column-setting" && typeof e.widthInColumns == "number" && e.widthInColumns > E && log.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${E}`), e.label &&= sanitizeText2(e.label), e.type === "classDef") {
|
|
1186
|
+
addStyleClass(e.id, e.css);
|
|
1188
1187
|
continue;
|
|
1189
1188
|
}
|
|
1190
1189
|
if (e.type === "applyClass") {
|
|
1191
|
-
|
|
1190
|
+
setCssClass(e.id, e?.styleClass ?? "");
|
|
1192
1191
|
continue;
|
|
1193
1192
|
}
|
|
1194
1193
|
if (e.type === "applyStyles") {
|
|
1195
|
-
e?.stylesStr &&
|
|
1194
|
+
e?.stylesStr && addStyle2Node(e.id, e?.stylesStr);
|
|
1196
1195
|
continue;
|
|
1197
1196
|
}
|
|
1198
|
-
if (e.type === "column-setting")
|
|
1197
|
+
if (e.type === "column-setting") C.columns = e.columns ?? -1;
|
|
1199
1198
|
else if (e.type === "edge") {
|
|
1200
|
-
let
|
|
1201
|
-
|
|
1199
|
+
let S = (edgeCount.get(e.id) ?? 0) + 1;
|
|
1200
|
+
edgeCount.set(e.id, S), e.id = S + "-" + e.id, edgeList.push(e);
|
|
1202
1201
|
} else {
|
|
1203
1202
|
e.label || (e.type === "composite" ? e.label = "" : e.label = e.id);
|
|
1204
|
-
let
|
|
1205
|
-
if (
|
|
1206
|
-
let
|
|
1207
|
-
for (let
|
|
1208
|
-
let
|
|
1209
|
-
|
|
1203
|
+
let S = blockDatabase.get(e.id);
|
|
1204
|
+
if (S === void 0 ? blockDatabase.set(e.id, e) : (e.type !== "na" && (S.type = e.type), e.label !== e.id && (S.label = e.label)), e.children && populateBlockDatabase(e.children, e), e.type === "space") {
|
|
1205
|
+
let S = e.width ?? 1;
|
|
1206
|
+
for (let C = 0; C < S; C++) {
|
|
1207
|
+
let S = clone_default(e);
|
|
1208
|
+
S.id = S.id + "-" + C, blockDatabase.set(S.id, S), T.push(S);
|
|
1210
1209
|
}
|
|
1211
|
-
} else
|
|
1210
|
+
} else S === void 0 && T.push(e);
|
|
1212
1211
|
}
|
|
1213
1212
|
}
|
|
1214
|
-
|
|
1215
|
-
}, "populateBlockDatabase"),
|
|
1213
|
+
C.children = T;
|
|
1214
|
+
}, "populateBlockDatabase"), blocks = [], rootBlock = {
|
|
1216
1215
|
id: "root",
|
|
1217
1216
|
type: "composite",
|
|
1218
1217
|
children: [],
|
|
1219
1218
|
columns: -1
|
|
1220
|
-
},
|
|
1221
|
-
|
|
1219
|
+
}, clear2 = /* @__PURE__ */ __name(() => {
|
|
1220
|
+
log.debug("Clear called"), clear(), rootBlock = {
|
|
1222
1221
|
id: "root",
|
|
1223
1222
|
type: "composite",
|
|
1224
1223
|
children: [],
|
|
1225
1224
|
columns: -1
|
|
1226
|
-
},
|
|
1225
|
+
}, blockDatabase = /* @__PURE__ */ new Map([["root", rootBlock]]), blocks = [], classes = /* @__PURE__ */ new Map(), edgeList = [], edgeCount = /* @__PURE__ */ new Map(), diagramId = "";
|
|
1227
1226
|
}, "clear");
|
|
1228
|
-
function
|
|
1229
|
-
switch (
|
|
1227
|
+
function typeStr2Type(e) {
|
|
1228
|
+
switch (log.debug("typeStr2Type", e), e) {
|
|
1230
1229
|
case "[]": return "square";
|
|
1231
|
-
case "()": return
|
|
1230
|
+
case "()": return log.debug("we have a round"), "round";
|
|
1232
1231
|
case "(())": return "circle";
|
|
1233
1232
|
case ">]": return "rect_left_inv_arrow";
|
|
1234
1233
|
case "{}": return "diamond";
|
|
@@ -1245,15 +1244,15 @@ function de(e) {
|
|
|
1245
1244
|
default: return "na";
|
|
1246
1245
|
}
|
|
1247
1246
|
}
|
|
1248
|
-
|
|
1249
|
-
function
|
|
1250
|
-
switch (
|
|
1247
|
+
__name(typeStr2Type, "typeStr2Type");
|
|
1248
|
+
function edgeTypeStr2Type(e) {
|
|
1249
|
+
switch (log.debug("typeStr2Type", e), e) {
|
|
1251
1250
|
case "==": return "thick";
|
|
1252
1251
|
default: return "normal";
|
|
1253
1252
|
}
|
|
1254
1253
|
}
|
|
1255
|
-
|
|
1256
|
-
function
|
|
1254
|
+
__name(edgeTypeStr2Type, "edgeTypeStr2Type");
|
|
1255
|
+
function edgeStrToEdgeData(e) {
|
|
1257
1256
|
switch (e.replace(/^[\s-]+|[\s-]+$/g, "")) {
|
|
1258
1257
|
case "x": return "arrow_cross";
|
|
1259
1258
|
case "o": return "arrow_circle";
|
|
@@ -1261,40 +1260,40 @@ function pe(e) {
|
|
|
1261
1260
|
default: return "";
|
|
1262
1261
|
}
|
|
1263
1262
|
}
|
|
1264
|
-
|
|
1265
|
-
var
|
|
1266
|
-
getConfig: /* @__PURE__ */
|
|
1267
|
-
typeStr2Type
|
|
1268
|
-
edgeTypeStr2Type
|
|
1269
|
-
edgeStrToEdgeData
|
|
1270
|
-
getLogger: /* @__PURE__ */
|
|
1271
|
-
getBlocksFlat: /* @__PURE__ */
|
|
1272
|
-
getBlocks: /* @__PURE__ */
|
|
1273
|
-
getEdges: /* @__PURE__ */
|
|
1274
|
-
setHierarchy: /* @__PURE__ */
|
|
1275
|
-
|
|
1263
|
+
__name(edgeStrToEdgeData, "edgeStrToEdgeData");
|
|
1264
|
+
var cnt = 0, blockDB_default = {
|
|
1265
|
+
getConfig: /* @__PURE__ */ __name(() => getConfig().block, "getConfig"),
|
|
1266
|
+
typeStr2Type,
|
|
1267
|
+
edgeTypeStr2Type,
|
|
1268
|
+
edgeStrToEdgeData,
|
|
1269
|
+
getLogger: /* @__PURE__ */ __name(() => log, "getLogger"),
|
|
1270
|
+
getBlocksFlat: /* @__PURE__ */ __name(() => [...blockDatabase.values()], "getBlocksFlat"),
|
|
1271
|
+
getBlocks: /* @__PURE__ */ __name(() => blocks || [], "getBlocks"),
|
|
1272
|
+
getEdges: /* @__PURE__ */ __name(() => edgeList, "getEdges"),
|
|
1273
|
+
setHierarchy: /* @__PURE__ */ __name((e) => {
|
|
1274
|
+
rootBlock.children = e, populateBlockDatabase(e, rootBlock), blocks = rootBlock.children;
|
|
1276
1275
|
}, "setHierarchy"),
|
|
1277
|
-
getBlock: /* @__PURE__ */
|
|
1278
|
-
setBlock: /* @__PURE__ */
|
|
1279
|
-
|
|
1276
|
+
getBlock: /* @__PURE__ */ __name((e) => blockDatabase.get(e), "getBlock"),
|
|
1277
|
+
setBlock: /* @__PURE__ */ __name((e) => {
|
|
1278
|
+
blockDatabase.set(e.id, e);
|
|
1280
1279
|
}, "setBlock"),
|
|
1281
|
-
getColumns: /* @__PURE__ */
|
|
1282
|
-
let
|
|
1283
|
-
return
|
|
1280
|
+
getColumns: /* @__PURE__ */ __name((e) => {
|
|
1281
|
+
let S = blockDatabase.get(e);
|
|
1282
|
+
return S ? S.columns ? S.columns : S.children ? S.children.length : -1 : -1;
|
|
1284
1283
|
}, "getColumns"),
|
|
1285
|
-
getClasses: /* @__PURE__ */
|
|
1286
|
-
return
|
|
1284
|
+
getClasses: /* @__PURE__ */ __name(function() {
|
|
1285
|
+
return classes;
|
|
1287
1286
|
}, "getClasses"),
|
|
1288
|
-
clear:
|
|
1289
|
-
generateId: /* @__PURE__ */
|
|
1290
|
-
setDiagramId: /* @__PURE__ */
|
|
1291
|
-
|
|
1287
|
+
clear: clear2,
|
|
1288
|
+
generateId: /* @__PURE__ */ __name(() => (cnt++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + cnt), "generateId"),
|
|
1289
|
+
setDiagramId: /* @__PURE__ */ __name((e) => {
|
|
1290
|
+
diagramId = e;
|
|
1292
1291
|
}, "setDiagramId"),
|
|
1293
|
-
getDiagramId: /* @__PURE__ */
|
|
1294
|
-
},
|
|
1295
|
-
let
|
|
1296
|
-
return
|
|
1297
|
-
}, "fade"),
|
|
1292
|
+
getDiagramId: /* @__PURE__ */ __name(() => diagramId, "getDiagramId")
|
|
1293
|
+
}, fade = /* @__PURE__ */ __name((e, S) => {
|
|
1294
|
+
let T = channel_default;
|
|
1295
|
+
return rgba_default(T(e, "r"), T(e, "g"), T(e, "b"), S);
|
|
1296
|
+
}, "fade"), styles_default = /* @__PURE__ */ __name((e) => `.label {
|
|
1298
1297
|
font-family: ${e.fontFamily};
|
|
1299
1298
|
color: ${e.nodeTextColor || e.textColor};
|
|
1300
1299
|
}
|
|
@@ -1379,9 +1378,9 @@ var me = 0, he = {
|
|
|
1379
1378
|
}
|
|
1380
1379
|
|
|
1381
1380
|
.node .cluster {
|
|
1382
|
-
// fill: ${
|
|
1383
|
-
fill: ${
|
|
1384
|
-
stroke: ${
|
|
1381
|
+
// fill: ${fade(e.mainBkg, .5)};
|
|
1382
|
+
fill: ${fade(e.clusterBkg, .5)};
|
|
1383
|
+
stroke: ${fade(e.clusterBorder, .2)};
|
|
1385
1384
|
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
1386
1385
|
stroke-width: 1px;
|
|
1387
1386
|
}
|
|
@@ -1416,210 +1415,210 @@ var me = 0, he = {
|
|
|
1416
1415
|
font-size: 18px;
|
|
1417
1416
|
fill: ${e.textColor};
|
|
1418
1417
|
}
|
|
1419
|
-
${
|
|
1420
|
-
`, "getStyles"),
|
|
1421
|
-
|
|
1422
|
-
|
|
1418
|
+
${getIconStyles()}
|
|
1419
|
+
`, "getStyles"), insertMarkers = /* @__PURE__ */ __name((e, S, C, w) => {
|
|
1420
|
+
S.forEach((S) => {
|
|
1421
|
+
markers[S](e, C, w);
|
|
1423
1422
|
});
|
|
1424
|
-
}, "insertMarkers"),
|
|
1425
|
-
extension: /* @__PURE__ */
|
|
1426
|
-
|
|
1423
|
+
}, "insertMarkers"), markers = {
|
|
1424
|
+
extension: /* @__PURE__ */ __name((e, C, w) => {
|
|
1425
|
+
log.trace("Making markers for ", w), e.append("defs").append("marker").attr("id", w + "_" + C + "-extensionStart").attr("class", "marker extension " + C).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", w + "_" + C + "-extensionEnd").attr("class", "marker extension " + C).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
|
|
1427
1426
|
}, "extension"),
|
|
1428
|
-
composition: /* @__PURE__ */
|
|
1429
|
-
e.append("defs").append("marker").attr("id",
|
|
1427
|
+
composition: /* @__PURE__ */ __name((e, S, C) => {
|
|
1428
|
+
e.append("defs").append("marker").attr("id", C + "_" + S + "-compositionStart").attr("class", "marker composition " + S).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", C + "_" + S + "-compositionEnd").attr("class", "marker composition " + S).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
1430
1429
|
}, "composition"),
|
|
1431
|
-
aggregation: /* @__PURE__ */
|
|
1432
|
-
e.append("defs").append("marker").attr("id",
|
|
1430
|
+
aggregation: /* @__PURE__ */ __name((e, S, C) => {
|
|
1431
|
+
e.append("defs").append("marker").attr("id", C + "_" + S + "-aggregationStart").attr("class", "marker aggregation " + S).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", C + "_" + S + "-aggregationEnd").attr("class", "marker aggregation " + S).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
1433
1432
|
}, "aggregation"),
|
|
1434
|
-
dependency: /* @__PURE__ */
|
|
1435
|
-
e.append("defs").append("marker").attr("id",
|
|
1433
|
+
dependency: /* @__PURE__ */ __name((e, S, C) => {
|
|
1434
|
+
e.append("defs").append("marker").attr("id", C + "_" + S + "-dependencyStart").attr("class", "marker dependency " + S).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", C + "_" + S + "-dependencyEnd").attr("class", "marker dependency " + S).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
|
|
1436
1435
|
}, "dependency"),
|
|
1437
|
-
lollipop: /* @__PURE__ */
|
|
1438
|
-
e.append("defs").append("marker").attr("id",
|
|
1436
|
+
lollipop: /* @__PURE__ */ __name((e, S, C) => {
|
|
1437
|
+
e.append("defs").append("marker").attr("id", C + "_" + S + "-lollipopStart").attr("class", "marker lollipop " + S).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", C + "_" + S + "-lollipopEnd").attr("class", "marker lollipop " + S).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
|
|
1439
1438
|
}, "lollipop"),
|
|
1440
|
-
point: /* @__PURE__ */
|
|
1441
|
-
e.append("marker").attr("id",
|
|
1439
|
+
point: /* @__PURE__ */ __name((e, S, C) => {
|
|
1440
|
+
e.append("marker").attr("id", C + "_" + S + "-pointEnd").attr("class", "marker " + S).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", C + "_" + S + "-pointStart").attr("class", "marker " + S).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
|
|
1442
1441
|
}, "point"),
|
|
1443
|
-
circle: /* @__PURE__ */
|
|
1444
|
-
e.append("marker").attr("id",
|
|
1442
|
+
circle: /* @__PURE__ */ __name((e, S, C) => {
|
|
1443
|
+
e.append("marker").attr("id", C + "_" + S + "-circleEnd").attr("class", "marker " + S).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", C + "_" + S + "-circleStart").attr("class", "marker " + S).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
|
|
1445
1444
|
}, "circle"),
|
|
1446
|
-
cross: /* @__PURE__ */
|
|
1447
|
-
e.append("marker").attr("id",
|
|
1445
|
+
cross: /* @__PURE__ */ __name((e, S, C) => {
|
|
1446
|
+
e.append("marker").attr("id", C + "_" + S + "-crossEnd").attr("class", "marker cross " + S).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", C + "_" + S + "-crossStart").attr("class", "marker cross " + S).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
|
|
1448
1447
|
}, "cross"),
|
|
1449
|
-
barb: /* @__PURE__ */
|
|
1450
|
-
e.append("defs").append("marker").attr("id",
|
|
1448
|
+
barb: /* @__PURE__ */ __name((e, S, C) => {
|
|
1449
|
+
e.append("defs").append("marker").attr("id", C + "_" + S + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
|
|
1451
1450
|
}, "barb")
|
|
1452
|
-
},
|
|
1453
|
-
function
|
|
1451
|
+
}, markers_default = insertMarkers, padding = getConfig2()?.block?.padding ?? 8;
|
|
1452
|
+
function calculateBlockPosition(e, S) {
|
|
1454
1453
|
if (e === 0 || !Number.isInteger(e)) throw Error("Columns must be an integer !== 0.");
|
|
1455
|
-
if (
|
|
1454
|
+
if (S < 0 || !Number.isInteger(S)) throw Error("Position must be a non-negative integer." + S);
|
|
1456
1455
|
return e < 0 ? {
|
|
1457
|
-
px:
|
|
1456
|
+
px: S,
|
|
1458
1457
|
py: 0
|
|
1459
1458
|
} : e === 1 ? {
|
|
1460
1459
|
px: 0,
|
|
1461
|
-
py:
|
|
1460
|
+
py: S
|
|
1462
1461
|
} : {
|
|
1463
|
-
px:
|
|
1464
|
-
py: Math.floor(
|
|
1462
|
+
px: S % e,
|
|
1463
|
+
py: Math.floor(S / e)
|
|
1465
1464
|
};
|
|
1466
1465
|
}
|
|
1467
|
-
|
|
1468
|
-
var
|
|
1469
|
-
let
|
|
1470
|
-
for (let
|
|
1471
|
-
let { width: e, height:
|
|
1466
|
+
__name(calculateBlockPosition, "calculateBlockPosition");
|
|
1467
|
+
var getMaxChildSize = /* @__PURE__ */ __name((e) => {
|
|
1468
|
+
let C = 0, w = 0;
|
|
1469
|
+
for (let T of e.children) {
|
|
1470
|
+
let { width: e, height: E, x: D, y: O } = T.size ?? {
|
|
1472
1471
|
width: 0,
|
|
1473
1472
|
height: 0,
|
|
1474
1473
|
x: 0,
|
|
1475
1474
|
y: 0
|
|
1476
1475
|
};
|
|
1477
|
-
|
|
1476
|
+
log.debug("getMaxChildSize abc95 child:", T.id, "width:", e, "height:", E, "x:", D, "y:", O, T.type), T.type !== "space" && (e > C && (C = e / (T.widthInColumns ?? 1)), E > w && (w = E));
|
|
1478
1477
|
}
|
|
1479
1478
|
return {
|
|
1480
|
-
width:
|
|
1481
|
-
height:
|
|
1479
|
+
width: C,
|
|
1480
|
+
height: w
|
|
1482
1481
|
};
|
|
1483
1482
|
}, "getMaxChildSize");
|
|
1484
|
-
function
|
|
1485
|
-
|
|
1486
|
-
width:
|
|
1487
|
-
height:
|
|
1483
|
+
function setBlockSizes(e, C, w = 0, T = 0) {
|
|
1484
|
+
log.debug("setBlockSizes abc95 (start)", e.id, e?.size?.x, "block width =", e?.size, "siblingWidth", w), e?.size?.width || (e.size = {
|
|
1485
|
+
width: w,
|
|
1486
|
+
height: T,
|
|
1488
1487
|
x: 0,
|
|
1489
1488
|
y: 0
|
|
1490
1489
|
});
|
|
1491
|
-
let
|
|
1490
|
+
let E = 0, D = 0;
|
|
1492
1491
|
if (e.children?.length > 0) {
|
|
1493
|
-
for (let
|
|
1494
|
-
let
|
|
1495
|
-
|
|
1496
|
-
for (let
|
|
1497
|
-
for (let
|
|
1498
|
-
let
|
|
1499
|
-
for (let
|
|
1500
|
-
let
|
|
1501
|
-
|
|
1502
|
-
let
|
|
1503
|
-
if (
|
|
1504
|
-
|
|
1505
|
-
let
|
|
1506
|
-
|
|
1507
|
-
for (let
|
|
1492
|
+
for (let S of e.children) setBlockSizes(S, C);
|
|
1493
|
+
let O = getMaxChildSize(e);
|
|
1494
|
+
E = O.width, D = O.height, log.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", E, D);
|
|
1495
|
+
for (let C of e.children) C.size && (log.debug(`abc95 Setting size of children of ${e.id} id=${C.id} ${E} ${D} ${JSON.stringify(C.size)}`), C.size.width = E * (C.widthInColumns ?? 1) + padding * ((C.widthInColumns ?? 1) - 1), C.size.height = D, C.size.x = 0, C.size.y = 0, log.debug(`abc95 updating size of ${e.id} children child:${C.id} maxWidth:${E} maxHeight:${D}`));
|
|
1496
|
+
for (let S of e.children) setBlockSizes(S, C, E, D);
|
|
1497
|
+
let k = e.columns ?? -1, A = 0;
|
|
1498
|
+
for (let S of e.children) A += S.widthInColumns ?? 1;
|
|
1499
|
+
let j = e.children.length;
|
|
1500
|
+
k > 0 && k < A && (j = k);
|
|
1501
|
+
let M = Math.ceil(A / j), N = j * (E + padding) + padding, P = M * (D + padding) + padding;
|
|
1502
|
+
if (N < w) {
|
|
1503
|
+
log.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${w} siblingHeight ${T} width ${N}`), N = w, P = T;
|
|
1504
|
+
let C = (w - j * padding - padding) / j, O = (T - M * padding - padding) / M;
|
|
1505
|
+
log.debug("Size indata abc88", e.id, "childWidth", C, "maxWidth", E), log.debug("Size indata abc88", e.id, "childHeight", O, "maxHeight", D), log.debug("Size indata abc88 xSize", j, "padding", padding);
|
|
1506
|
+
for (let S of e.children) S.size && (S.size.width = C, S.size.height = O, S.size.x = 0, S.size.y = 0);
|
|
1508
1507
|
}
|
|
1509
|
-
if (
|
|
1510
|
-
|
|
1511
|
-
let
|
|
1512
|
-
if (
|
|
1513
|
-
let
|
|
1514
|
-
|
|
1515
|
-
for (let
|
|
1508
|
+
if (log.debug(`abc95 (finale calc) ${e.id} xSize ${j} ySize ${M} columns ${k}${e.children.length} width=${Math.max(N, e.size?.width || 0)}`), N < (e?.size?.width || 0)) {
|
|
1509
|
+
N = e?.size?.width || 0;
|
|
1510
|
+
let C = k > 0 ? Math.min(e.children.length, k) : e.children.length;
|
|
1511
|
+
if (C > 0) {
|
|
1512
|
+
let w = (N - C * padding - padding) / C;
|
|
1513
|
+
log.debug("abc95 (growing to fit) width", e.id, N, e.size?.width, w);
|
|
1514
|
+
for (let S of e.children) S.size && (S.size.width = w);
|
|
1516
1515
|
}
|
|
1517
1516
|
}
|
|
1518
1517
|
e.size = {
|
|
1519
|
-
width:
|
|
1520
|
-
height:
|
|
1518
|
+
width: N,
|
|
1519
|
+
height: P,
|
|
1521
1520
|
x: 0,
|
|
1522
1521
|
y: 0
|
|
1523
1522
|
};
|
|
1524
1523
|
}
|
|
1525
|
-
|
|
1524
|
+
log.debug("setBlockSizes abc94 (done)", e.id, e?.size?.x, e?.size?.width, e?.size?.y, e?.size?.height);
|
|
1526
1525
|
}
|
|
1527
|
-
|
|
1528
|
-
function
|
|
1529
|
-
|
|
1530
|
-
let
|
|
1531
|
-
if (
|
|
1532
|
-
let
|
|
1533
|
-
|
|
1534
|
-
let
|
|
1535
|
-
{
|
|
1536
|
-
let
|
|
1537
|
-
for (let
|
|
1538
|
-
if (!
|
|
1539
|
-
let { py: e } =
|
|
1540
|
-
|
|
1541
|
-
let
|
|
1542
|
-
|
|
1526
|
+
__name(setBlockSizes, "setBlockSizes");
|
|
1527
|
+
function layoutBlocks(e, C) {
|
|
1528
|
+
log.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);
|
|
1529
|
+
let w = e.columns ?? -1;
|
|
1530
|
+
if (log.debug("layoutBlocks columns abc95", e.id, "=>", w, e), e.children && e.children.length > 0) {
|
|
1531
|
+
let T = e?.children[0]?.size?.width ?? 0, E = e.children.length * T + (e.children.length - 1) * padding;
|
|
1532
|
+
log.debug("widthOfChildren 88", E, "posX");
|
|
1533
|
+
let D = /* @__PURE__ */ new Map();
|
|
1534
|
+
{
|
|
1535
|
+
let S = 0;
|
|
1536
|
+
for (let C of e.children) {
|
|
1537
|
+
if (!C.size) continue;
|
|
1538
|
+
let { py: e } = calculateBlockPosition(w, S), T = D.get(e) ?? 0;
|
|
1539
|
+
C.size.height > T && D.set(e, C.size.height);
|
|
1540
|
+
let E = C?.widthInColumns ?? 1;
|
|
1541
|
+
w > 0 && (E = Math.min(E, w - S % w)), S += E;
|
|
1543
1542
|
}
|
|
1544
1543
|
}
|
|
1545
|
-
let
|
|
1544
|
+
let O = /* @__PURE__ */ new Map();
|
|
1546
1545
|
{
|
|
1547
|
-
let e = 0,
|
|
1548
|
-
for (let
|
|
1546
|
+
let e = 0, S = [...D.keys()].sort((e, S) => e - S);
|
|
1547
|
+
for (let C of S) O.set(C, e), e += (D.get(C) ?? 0) + padding;
|
|
1549
1548
|
}
|
|
1550
|
-
let
|
|
1551
|
-
|
|
1552
|
-
let
|
|
1553
|
-
for (let
|
|
1554
|
-
let
|
|
1555
|
-
if (!
|
|
1556
|
-
let { width:
|
|
1557
|
-
if (
|
|
1558
|
-
let e =
|
|
1559
|
-
|
|
1560
|
-
let
|
|
1561
|
-
|
|
1549
|
+
let k = 0;
|
|
1550
|
+
log.debug("abc91 block?.size?.x", e.id, e?.size?.x);
|
|
1551
|
+
let A = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -padding, j = 0;
|
|
1552
|
+
for (let T of e.children) {
|
|
1553
|
+
let E = e;
|
|
1554
|
+
if (!T.size) continue;
|
|
1555
|
+
let { width: M, height: N } = T.size, { px: P, py: F } = calculateBlockPosition(w, k);
|
|
1556
|
+
if (F != j && (j = F, A = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -padding, log.debug("New row in layout for block", e.id, " and child ", T.id, j)), log.debug(`abc89 layout blocks (child) id: ${T.id} Pos: ${k} (px, py) ${P},${F} (${E?.size?.x},${E?.size?.y}) parent: ${E.id} width: ${M}${padding}`), E.size) {
|
|
1557
|
+
let e = M / 2;
|
|
1558
|
+
T.size.x = A + padding + e, log.debug(`abc91 layout blocks (calc) px, pyid:${T.id} startingPos=X${A} new startingPosX${T.size.x} ${e} padding=${padding} width=${M} halfWidth=${e} => x:${T.size.x} y:${T.size.y} ${T.widthInColumns} (width * (child?.w || 1)) / 2 ${M * (T?.widthInColumns ?? 1) / 2}`), A = T.size.x + e;
|
|
1559
|
+
let C = O.get(F) ?? 0, w = D.get(F) ?? N;
|
|
1560
|
+
T.size.y = E.size.y - E.size.height / 2 + C + w / 2 + padding, log.debug(`abc88 layout blocks (calc) px, pyid:${T.id}startingPosX${A}${padding}${e}=>x:${T.size.x}y:${T.size.y}${T.widthInColumns}(width * (child?.w || 1)) / 2${M * (T?.widthInColumns ?? 1) / 2}`);
|
|
1562
1561
|
}
|
|
1563
|
-
|
|
1564
|
-
let
|
|
1565
|
-
|
|
1562
|
+
T.children && layoutBlocks(T, C);
|
|
1563
|
+
let I = T?.widthInColumns ?? 1;
|
|
1564
|
+
w > 0 && (I = Math.min(I, w - k % w)), k += I, log.debug("abc88 columnsPos", T, k);
|
|
1566
1565
|
}
|
|
1567
1566
|
}
|
|
1568
|
-
|
|
1567
|
+
log.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);
|
|
1569
1568
|
}
|
|
1570
|
-
|
|
1571
|
-
function
|
|
1569
|
+
__name(layoutBlocks, "layoutBlocks");
|
|
1570
|
+
function findBounds(e, { minX: S, minY: C, maxX: w, maxY: T } = {
|
|
1572
1571
|
minX: 0,
|
|
1573
1572
|
minY: 0,
|
|
1574
1573
|
maxX: 0,
|
|
1575
1574
|
maxY: 0
|
|
1576
1575
|
}) {
|
|
1577
1576
|
if (e.size && e.id !== "root") {
|
|
1578
|
-
let { x:
|
|
1579
|
-
|
|
1577
|
+
let { x: E, y: D, width: O, height: k } = e.size;
|
|
1578
|
+
E - O / 2 < S && (S = E - O / 2), D - k / 2 < C && (C = D - k / 2), E + O / 2 > w && (w = E + O / 2), D + k / 2 > T && (T = D + k / 2);
|
|
1580
1579
|
}
|
|
1581
|
-
if (e.children) for (let
|
|
1582
|
-
minX:
|
|
1583
|
-
minY:
|
|
1584
|
-
maxX:
|
|
1585
|
-
maxY:
|
|
1580
|
+
if (e.children) for (let E of e.children) ({minX: S, minY: C, maxX: w, maxY: T} = findBounds(E, {
|
|
1581
|
+
minX: S,
|
|
1582
|
+
minY: C,
|
|
1583
|
+
maxX: w,
|
|
1584
|
+
maxY: T
|
|
1586
1585
|
}));
|
|
1587
1586
|
return {
|
|
1588
|
-
minX:
|
|
1589
|
-
minY:
|
|
1590
|
-
maxX:
|
|
1591
|
-
maxY:
|
|
1587
|
+
minX: S,
|
|
1588
|
+
minY: C,
|
|
1589
|
+
maxX: w,
|
|
1590
|
+
maxY: T
|
|
1592
1591
|
};
|
|
1593
1592
|
}
|
|
1594
|
-
|
|
1595
|
-
function
|
|
1596
|
-
let
|
|
1597
|
-
if (!
|
|
1598
|
-
|
|
1599
|
-
let { minX:
|
|
1593
|
+
__name(findBounds, "findBounds");
|
|
1594
|
+
function layout(e) {
|
|
1595
|
+
let C = e.getBlock("root");
|
|
1596
|
+
if (!C) return;
|
|
1597
|
+
setBlockSizes(C, e, 0, 0), layoutBlocks(C, e), log.debug("getBlocks", JSON.stringify(C, null, 2));
|
|
1598
|
+
let { minX: w, minY: T, maxX: E, maxY: D } = findBounds(C), O = D - T;
|
|
1600
1599
|
return {
|
|
1601
|
-
x:
|
|
1602
|
-
y:
|
|
1603
|
-
width:
|
|
1604
|
-
height:
|
|
1600
|
+
x: w,
|
|
1601
|
+
y: T,
|
|
1602
|
+
width: E - w,
|
|
1603
|
+
height: O
|
|
1605
1604
|
};
|
|
1606
1605
|
}
|
|
1607
|
-
|
|
1608
|
-
var
|
|
1609
|
-
let
|
|
1610
|
-
typeof
|
|
1611
|
-
let
|
|
1612
|
-
return await
|
|
1613
|
-
style:
|
|
1614
|
-
isTitle:
|
|
1615
|
-
useHtmlLabels:
|
|
1606
|
+
__name(layout, "layout");
|
|
1607
|
+
var createLabel_default = /* @__PURE__ */ __name(async (e, S, C, w = !1, T = !1) => {
|
|
1608
|
+
let E = S || "";
|
|
1609
|
+
typeof E == "object" && (E = E[0]);
|
|
1610
|
+
let D = getConfig2(), O = getEffectiveHtmlLabels(D);
|
|
1611
|
+
return await createText(e, E, {
|
|
1612
|
+
style: C,
|
|
1613
|
+
isTitle: w,
|
|
1614
|
+
useHtmlLabels: O,
|
|
1616
1615
|
markdown: !1,
|
|
1617
|
-
isNode:
|
|
1616
|
+
isNode: T,
|
|
1618
1617
|
width: Infinity
|
|
1619
|
-
},
|
|
1620
|
-
}, "createLabel"),
|
|
1621
|
-
|
|
1622
|
-
}, "addEdgeMarkers"),
|
|
1618
|
+
}, D);
|
|
1619
|
+
}, "createLabel"), addEdgeMarkers = /* @__PURE__ */ __name((e, S, C, w, T) => {
|
|
1620
|
+
S.arrowTypeStart && addEdgeMarker(e, "start", S.arrowTypeStart, C, w, T), S.arrowTypeEnd && addEdgeMarker(e, "end", S.arrowTypeEnd, C, w, T);
|
|
1621
|
+
}, "addEdgeMarkers"), arrowTypesMap = {
|
|
1623
1622
|
arrow_cross: "cross",
|
|
1624
1623
|
arrow_point: "point",
|
|
1625
1624
|
arrow_barb: "barb",
|
|
@@ -1629,479 +1628,479 @@ var V = /* @__PURE__ */ e(async (e, t, n, r = !1, i = !1) => {
|
|
|
1629
1628
|
composition: "composition",
|
|
1630
1629
|
dependency: "dependency",
|
|
1631
1630
|
lollipop: "lollipop"
|
|
1632
|
-
},
|
|
1633
|
-
let
|
|
1634
|
-
if (!
|
|
1635
|
-
|
|
1631
|
+
}, addEdgeMarker = /* @__PURE__ */ __name((e, C, w, T, E, D) => {
|
|
1632
|
+
let O = arrowTypesMap[w];
|
|
1633
|
+
if (!O) {
|
|
1634
|
+
log.warn(`Unknown arrow type: ${w}`);
|
|
1636
1635
|
return;
|
|
1637
1636
|
}
|
|
1638
|
-
let
|
|
1639
|
-
e.attr(`marker-${
|
|
1640
|
-
}, "addEdgeMarker"),
|
|
1641
|
-
let
|
|
1642
|
-
style:
|
|
1643
|
-
useHtmlLabels:
|
|
1644
|
-
addSvgBackground:
|
|
1637
|
+
let k = C === "start" ? "Start" : "End";
|
|
1638
|
+
e.attr(`marker-${C}`, `url(${T}#${E}_${D}-${O}${k})`);
|
|
1639
|
+
}, "addEdgeMarker"), edgeLabels = {}, terminalLabels = {}, insertEdgeLabel = /* @__PURE__ */ __name(async (e, S) => {
|
|
1640
|
+
let C = getConfig2(), w = getEffectiveHtmlLabels(C), T = e.insert("g").attr("class", "edgeLabel"), E = T.insert("g").attr("class", "label"), D = S.labelType === "markdown", O = await createText(e, S.label, {
|
|
1641
|
+
style: S.labelStyle,
|
|
1642
|
+
useHtmlLabels: w,
|
|
1643
|
+
addSvgBackground: D,
|
|
1645
1644
|
isNode: !1,
|
|
1646
|
-
markdown:
|
|
1647
|
-
width:
|
|
1648
|
-
},
|
|
1649
|
-
|
|
1650
|
-
let
|
|
1651
|
-
if (
|
|
1652
|
-
let e =
|
|
1653
|
-
|
|
1645
|
+
markdown: D,
|
|
1646
|
+
width: D ? void 0 : Infinity
|
|
1647
|
+
}, C);
|
|
1648
|
+
E.node().appendChild(O);
|
|
1649
|
+
let j = O.getBBox(), M = j;
|
|
1650
|
+
if (w) {
|
|
1651
|
+
let e = O.children[0], S = select_default(O);
|
|
1652
|
+
j = e.getBoundingClientRect(), M = j, S.attr("width", j.width), S.attr("height", j.height);
|
|
1654
1653
|
} else {
|
|
1655
|
-
let e =
|
|
1656
|
-
e && typeof e.getBBox == "function" && (
|
|
1654
|
+
let e = select_default(O).select("text").node();
|
|
1655
|
+
e && typeof e.getBBox == "function" && (M = e.getBBox());
|
|
1657
1656
|
}
|
|
1658
|
-
|
|
1659
|
-
let
|
|
1660
|
-
if (
|
|
1661
|
-
let
|
|
1662
|
-
|
|
1663
|
-
let
|
|
1664
|
-
if (
|
|
1665
|
-
let e =
|
|
1666
|
-
|
|
1657
|
+
E.attr("transform", computeLabelTransform(M, w)), edgeLabels[S.id] = T, S.width = j.width, S.height = j.height;
|
|
1658
|
+
let P;
|
|
1659
|
+
if (S.startLabelLeft) {
|
|
1660
|
+
let C = e.insert("g").attr("class", "edgeTerminals"), T = C.insert("g").attr("class", "inner"), E = await createLabel_default(T, S.startLabelLeft, S.labelStyle);
|
|
1661
|
+
P = E;
|
|
1662
|
+
let D = E.getBBox();
|
|
1663
|
+
if (w) {
|
|
1664
|
+
let e = E.children[0], S = select_default(E);
|
|
1665
|
+
D = e.getBoundingClientRect(), S.attr("width", D.width), S.attr("height", D.height);
|
|
1667
1666
|
}
|
|
1668
|
-
|
|
1667
|
+
T.attr("transform", computeLabelTransform(D, w)), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].startLeft = C, setTerminalWidth(P, S.startLabelLeft);
|
|
1669
1668
|
}
|
|
1670
|
-
if (
|
|
1671
|
-
let
|
|
1672
|
-
|
|
1673
|
-
let
|
|
1674
|
-
if (
|
|
1675
|
-
let e =
|
|
1676
|
-
|
|
1669
|
+
if (S.startLabelRight) {
|
|
1670
|
+
let C = e.insert("g").attr("class", "edgeTerminals"), T = C.insert("g").attr("class", "inner"), E = await createLabel_default(C, S.startLabelRight, S.labelStyle);
|
|
1671
|
+
P = E, T.node().appendChild(E);
|
|
1672
|
+
let D = E.getBBox();
|
|
1673
|
+
if (w) {
|
|
1674
|
+
let e = E.children[0], S = select_default(E);
|
|
1675
|
+
D = e.getBoundingClientRect(), S.attr("width", D.width), S.attr("height", D.height);
|
|
1677
1676
|
}
|
|
1678
|
-
|
|
1677
|
+
T.attr("transform", computeLabelTransform(D, w)), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].startRight = C, setTerminalWidth(P, S.startLabelRight);
|
|
1679
1678
|
}
|
|
1680
|
-
if (
|
|
1681
|
-
let
|
|
1682
|
-
|
|
1683
|
-
let
|
|
1684
|
-
if (
|
|
1685
|
-
let e =
|
|
1686
|
-
|
|
1679
|
+
if (S.endLabelLeft) {
|
|
1680
|
+
let C = e.insert("g").attr("class", "edgeTerminals"), T = C.insert("g").attr("class", "inner"), E = await createLabel_default(T, S.endLabelLeft, S.labelStyle);
|
|
1681
|
+
P = E;
|
|
1682
|
+
let D = E.getBBox();
|
|
1683
|
+
if (w) {
|
|
1684
|
+
let e = E.children[0], S = select_default(E);
|
|
1685
|
+
D = e.getBoundingClientRect(), S.attr("width", D.width), S.attr("height", D.height);
|
|
1687
1686
|
}
|
|
1688
|
-
|
|
1687
|
+
T.attr("transform", computeLabelTransform(D, w)), C.node().appendChild(E), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].endLeft = C, setTerminalWidth(P, S.endLabelLeft);
|
|
1689
1688
|
}
|
|
1690
|
-
if (
|
|
1691
|
-
let
|
|
1692
|
-
|
|
1693
|
-
let
|
|
1694
|
-
if (
|
|
1695
|
-
let e =
|
|
1696
|
-
|
|
1689
|
+
if (S.endLabelRight) {
|
|
1690
|
+
let C = e.insert("g").attr("class", "edgeTerminals"), T = C.insert("g").attr("class", "inner"), E = await createLabel_default(T, S.endLabelRight, S.labelStyle);
|
|
1691
|
+
P = E;
|
|
1692
|
+
let D = E.getBBox();
|
|
1693
|
+
if (w) {
|
|
1694
|
+
let e = E.children[0], S = select_default(E);
|
|
1695
|
+
D = e.getBoundingClientRect(), S.attr("width", D.width), S.attr("height", D.height);
|
|
1697
1696
|
}
|
|
1698
|
-
|
|
1697
|
+
T.attr("transform", computeLabelTransform(D, w)), C.node().appendChild(E), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].endRight = C, setTerminalWidth(P, S.endLabelRight);
|
|
1699
1698
|
}
|
|
1700
|
-
return
|
|
1699
|
+
return O;
|
|
1701
1700
|
}, "insertEdgeLabel");
|
|
1702
|
-
function
|
|
1703
|
-
|
|
1701
|
+
function setTerminalWidth(e, S) {
|
|
1702
|
+
getEffectiveHtmlLabels(getConfig2()) && e && (e.style.width = S.length * 9 + "px", e.style.height = "12px");
|
|
1704
1703
|
}
|
|
1705
|
-
|
|
1706
|
-
var
|
|
1707
|
-
|
|
1708
|
-
let
|
|
1704
|
+
__name(setTerminalWidth, "setTerminalWidth");
|
|
1705
|
+
var positionEdgeLabel = /* @__PURE__ */ __name((e, C) => {
|
|
1706
|
+
log.debug("Moving label abc88 ", e.id, e.label, edgeLabels[e.id], C);
|
|
1707
|
+
let w = C.updatedPath ? C.updatedPath : C.originalPath, { subGraphTitleTotalMargin: T } = getSubGraphTitleMargins(getConfig2());
|
|
1709
1708
|
if (e.label) {
|
|
1710
|
-
let
|
|
1711
|
-
if (
|
|
1712
|
-
let
|
|
1713
|
-
|
|
1709
|
+
let E = edgeLabels[e.id], D = e.x, O = e.y;
|
|
1710
|
+
if (w) {
|
|
1711
|
+
let T = utils_default.calcLabelPosition(w);
|
|
1712
|
+
log.debug("Moving label " + e.label + " from (", D, ",", O, ") to (", T.x, ",", T.y, ") abc88"), C.updatedPath && (D = T.x, O = T.y);
|
|
1714
1713
|
}
|
|
1715
|
-
|
|
1714
|
+
E.attr("transform", `translate(${D}, ${O + T / 2})`);
|
|
1716
1715
|
}
|
|
1717
1716
|
if (e.startLabelLeft) {
|
|
1718
|
-
let
|
|
1719
|
-
if (
|
|
1720
|
-
let
|
|
1721
|
-
|
|
1717
|
+
let S = terminalLabels[e.id].startLeft, C = e.x, T = e.y;
|
|
1718
|
+
if (w) {
|
|
1719
|
+
let S = utils_default.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", w);
|
|
1720
|
+
C = S.x, T = S.y;
|
|
1722
1721
|
}
|
|
1723
|
-
|
|
1722
|
+
S.attr("transform", `translate(${C}, ${T})`);
|
|
1724
1723
|
}
|
|
1725
1724
|
if (e.startLabelRight) {
|
|
1726
|
-
let
|
|
1727
|
-
if (
|
|
1728
|
-
let
|
|
1729
|
-
|
|
1725
|
+
let S = terminalLabels[e.id].startRight, C = e.x, T = e.y;
|
|
1726
|
+
if (w) {
|
|
1727
|
+
let S = utils_default.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", w);
|
|
1728
|
+
C = S.x, T = S.y;
|
|
1730
1729
|
}
|
|
1731
|
-
|
|
1730
|
+
S.attr("transform", `translate(${C}, ${T})`);
|
|
1732
1731
|
}
|
|
1733
1732
|
if (e.endLabelLeft) {
|
|
1734
|
-
let
|
|
1735
|
-
if (
|
|
1736
|
-
let
|
|
1737
|
-
|
|
1733
|
+
let S = terminalLabels[e.id].endLeft, C = e.x, T = e.y;
|
|
1734
|
+
if (w) {
|
|
1735
|
+
let S = utils_default.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", w);
|
|
1736
|
+
C = S.x, T = S.y;
|
|
1738
1737
|
}
|
|
1739
|
-
|
|
1738
|
+
S.attr("transform", `translate(${C}, ${T})`);
|
|
1740
1739
|
}
|
|
1741
1740
|
if (e.endLabelRight) {
|
|
1742
|
-
let
|
|
1743
|
-
if (
|
|
1744
|
-
let
|
|
1745
|
-
|
|
1741
|
+
let S = terminalLabels[e.id].endRight, C = e.x, T = e.y;
|
|
1742
|
+
if (w) {
|
|
1743
|
+
let S = utils_default.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", w);
|
|
1744
|
+
C = S.x, T = S.y;
|
|
1746
1745
|
}
|
|
1747
|
-
|
|
1746
|
+
S.attr("transform", `translate(${C}, ${T})`);
|
|
1748
1747
|
}
|
|
1749
|
-
}, "positionEdgeLabel"),
|
|
1750
|
-
let
|
|
1751
|
-
return
|
|
1752
|
-
}, "outsideNode"),
|
|
1753
|
-
|
|
1754
|
-
outsidePoint: ${JSON.stringify(
|
|
1755
|
-
insidePoint : ${JSON.stringify(
|
|
1748
|
+
}, "positionEdgeLabel"), outsideNode = /* @__PURE__ */ __name((e, S) => {
|
|
1749
|
+
let C = e.x, w = e.y, T = Math.abs(S.x - C), E = Math.abs(S.y - w), D = e.width / 2, O = e.height / 2;
|
|
1750
|
+
return T >= D || E >= O;
|
|
1751
|
+
}, "outsideNode"), intersection = /* @__PURE__ */ __name((e, C, w) => {
|
|
1752
|
+
log.debug(`intersection calc abc89:
|
|
1753
|
+
outsidePoint: ${JSON.stringify(C)}
|
|
1754
|
+
insidePoint : ${JSON.stringify(w)}
|
|
1756
1755
|
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
|
|
1757
|
-
let
|
|
1758
|
-
if (Math.abs(
|
|
1759
|
-
let e =
|
|
1760
|
-
|
|
1761
|
-
let
|
|
1762
|
-
x:
|
|
1763
|
-
y:
|
|
1756
|
+
let T = e.x, E = e.y, D = Math.abs(T - w.x), O = e.width / 2, k = w.x < C.x ? O - D : O + D, A = e.height / 2, j = Math.abs(C.y - w.y), M = Math.abs(C.x - w.x);
|
|
1757
|
+
if (Math.abs(E - C.y) * O > Math.abs(T - C.x) * A) {
|
|
1758
|
+
let e = w.y < C.y ? C.y - A - E : E - A - C.y;
|
|
1759
|
+
k = M * e / j;
|
|
1760
|
+
let T = {
|
|
1761
|
+
x: w.x < C.x ? w.x + k : w.x - M + k,
|
|
1762
|
+
y: w.y < C.y ? w.y + j - e : w.y - j + e
|
|
1764
1763
|
};
|
|
1765
|
-
return
|
|
1764
|
+
return k === 0 && (T.x = C.x, T.y = C.y), M === 0 && (T.x = C.x), j === 0 && (T.y = C.y), log.debug(`abc89 topp/bott calc, Q ${j}, q ${e}, R ${M}, r ${k}`, T), T;
|
|
1766
1765
|
} else {
|
|
1767
|
-
|
|
1768
|
-
let e =
|
|
1769
|
-
return
|
|
1770
|
-
_x:
|
|
1771
|
-
_y:
|
|
1772
|
-
}),
|
|
1773
|
-
x:
|
|
1774
|
-
y:
|
|
1766
|
+
k = w.x < C.x ? C.x - O - T : T - O - C.x;
|
|
1767
|
+
let e = j * k / M, E = w.x < C.x ? w.x + M - k : w.x - M + k, D = w.y < C.y ? w.y + e : w.y - e;
|
|
1768
|
+
return log.debug(`sides calc abc89, Q ${j}, q ${e}, R ${M}, r ${k}`, {
|
|
1769
|
+
_x: E,
|
|
1770
|
+
_y: D
|
|
1771
|
+
}), k === 0 && (E = C.x, D = C.y), M === 0 && (E = C.x), j === 0 && (D = C.y), {
|
|
1772
|
+
x: E,
|
|
1773
|
+
y: D
|
|
1775
1774
|
};
|
|
1776
1775
|
}
|
|
1777
|
-
}, "intersection"),
|
|
1778
|
-
|
|
1779
|
-
let
|
|
1776
|
+
}, "intersection"), cutPathAtIntersect = /* @__PURE__ */ __name((e, C) => {
|
|
1777
|
+
log.debug("abc88 cutPathAtIntersect", e, C);
|
|
1778
|
+
let w = [], T = e[0], E = !1;
|
|
1780
1779
|
return e.forEach((e) => {
|
|
1781
|
-
if (!
|
|
1782
|
-
let
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
}),
|
|
1786
|
-
} else
|
|
1787
|
-
}),
|
|
1788
|
-
}, "cutPathAtIntersect"),
|
|
1789
|
-
let
|
|
1790
|
-
|
|
1791
|
-
let
|
|
1792
|
-
var
|
|
1793
|
-
|
|
1794
|
-
let
|
|
1795
|
-
|
|
1796
|
-
let { x:
|
|
1797
|
-
switch (
|
|
1780
|
+
if (!outsideNode(C, e) && !E) {
|
|
1781
|
+
let S = intersection(C, T, e), D = !1;
|
|
1782
|
+
w.forEach((e) => {
|
|
1783
|
+
D ||= e.x === S.x && e.y === S.y;
|
|
1784
|
+
}), w.some((e) => e.x === S.x && e.y === S.y) || w.push(S), E = !0;
|
|
1785
|
+
} else T = e, E || w.push(e);
|
|
1786
|
+
}), w;
|
|
1787
|
+
}, "cutPathAtIntersect"), insertEdge = /* @__PURE__ */ __name(function(e, C, w, T, E, D, O) {
|
|
1788
|
+
let A = w.points;
|
|
1789
|
+
log.debug("abc88 InsertEdge: edge=", w, "e=", C);
|
|
1790
|
+
let M = !1, N = D.node(C.v);
|
|
1791
|
+
var I = D.node(C.w);
|
|
1792
|
+
I?.intersect && N?.intersect && (A = A.slice(1, w.points.length - 1), A.unshift(N.intersect(A[0])), A.push(I.intersect(A[A.length - 1]))), w.toCluster && (log.debug("to cluster abc88", T[w.toCluster]), A = cutPathAtIntersect(w.points, T[w.toCluster].node), M = !0), w.fromCluster && (log.debug("from cluster abc88", T[w.fromCluster]), A = cutPathAtIntersect(A.reverse(), T[w.fromCluster].node).reverse(), M = !0);
|
|
1793
|
+
let R = A.filter((e) => !Number.isNaN(e.y)), z = basis_default;
|
|
1794
|
+
w.curve && (E === "graph" || E === "flowchart") && (z = w.curve);
|
|
1795
|
+
let { x: B, y: V } = getLineFunctionsWithOffset(w), H = line_default().x(B).y(V).curve(z), U;
|
|
1796
|
+
switch (w.thickness) {
|
|
1798
1797
|
case "normal":
|
|
1799
|
-
|
|
1798
|
+
U = "edge-thickness-normal";
|
|
1800
1799
|
break;
|
|
1801
1800
|
case "thick":
|
|
1802
|
-
|
|
1801
|
+
U = "edge-thickness-thick";
|
|
1803
1802
|
break;
|
|
1804
1803
|
case "invisible":
|
|
1805
|
-
|
|
1804
|
+
U = "edge-thickness-thick";
|
|
1806
1805
|
break;
|
|
1807
|
-
default:
|
|
1806
|
+
default: U = "";
|
|
1808
1807
|
}
|
|
1809
|
-
switch (
|
|
1808
|
+
switch (w.pattern) {
|
|
1810
1809
|
case "solid":
|
|
1811
|
-
|
|
1810
|
+
U += " edge-pattern-solid";
|
|
1812
1811
|
break;
|
|
1813
1812
|
case "dotted":
|
|
1814
|
-
|
|
1813
|
+
U += " edge-pattern-dotted";
|
|
1815
1814
|
break;
|
|
1816
1815
|
case "dashed":
|
|
1817
|
-
|
|
1816
|
+
U += " edge-pattern-dashed";
|
|
1818
1817
|
break;
|
|
1819
1818
|
}
|
|
1820
|
-
let
|
|
1821
|
-
(
|
|
1822
|
-
let
|
|
1823
|
-
return
|
|
1824
|
-
}, "insertEdge"),
|
|
1825
|
-
let
|
|
1826
|
-
for (let
|
|
1819
|
+
let W = e.append("path").attr("d", H(R)).attr("id", w.id).attr("class", " " + U + (w.classes ? " " + w.classes : "")).attr("style", w.style), G = "";
|
|
1820
|
+
(getConfig2().flowchart.arrowMarkerAbsolute || getConfig2().state.arrowMarkerAbsolute) && (G = getUrl(!0)), addEdgeMarkers(W, w, G, O, E);
|
|
1821
|
+
let K = {};
|
|
1822
|
+
return M && (K.updatedPath = A), K.originalPath = w.points, K;
|
|
1823
|
+
}, "insertEdge"), expandAndDeduplicateDirections = /* @__PURE__ */ __name((e) => {
|
|
1824
|
+
let S = /* @__PURE__ */ new Set();
|
|
1825
|
+
for (let C of e) switch (C) {
|
|
1827
1826
|
case "x":
|
|
1828
|
-
|
|
1827
|
+
S.add("right"), S.add("left");
|
|
1829
1828
|
break;
|
|
1830
1829
|
case "y":
|
|
1831
|
-
|
|
1830
|
+
S.add("up"), S.add("down");
|
|
1832
1831
|
break;
|
|
1833
1832
|
default:
|
|
1834
|
-
|
|
1833
|
+
S.add(C);
|
|
1835
1834
|
break;
|
|
1836
1835
|
}
|
|
1837
|
-
return
|
|
1838
|
-
}, "expandAndDeduplicateDirections"),
|
|
1839
|
-
let
|
|
1840
|
-
return
|
|
1836
|
+
return S;
|
|
1837
|
+
}, "expandAndDeduplicateDirections"), getArrowPoints = /* @__PURE__ */ __name((e, S, C) => {
|
|
1838
|
+
let w = expandAndDeduplicateDirections(e), T = S.height + 2 * C.padding, E = T / 2, D = S.width + 2 * E + C.padding, O = C.padding / 2;
|
|
1839
|
+
return w.has("right") && w.has("left") && w.has("up") && w.has("down") ? [
|
|
1841
1840
|
{
|
|
1842
1841
|
x: 0,
|
|
1843
1842
|
y: 0
|
|
1844
1843
|
},
|
|
1845
1844
|
{
|
|
1846
|
-
x:
|
|
1845
|
+
x: E,
|
|
1847
1846
|
y: 0
|
|
1848
1847
|
},
|
|
1849
1848
|
{
|
|
1850
|
-
x:
|
|
1851
|
-
y: 2 *
|
|
1849
|
+
x: D / 2,
|
|
1850
|
+
y: 2 * O
|
|
1852
1851
|
},
|
|
1853
1852
|
{
|
|
1854
|
-
x:
|
|
1853
|
+
x: D - E,
|
|
1855
1854
|
y: 0
|
|
1856
1855
|
},
|
|
1857
1856
|
{
|
|
1858
|
-
x:
|
|
1857
|
+
x: D,
|
|
1859
1858
|
y: 0
|
|
1860
1859
|
},
|
|
1861
1860
|
{
|
|
1862
|
-
x:
|
|
1863
|
-
y: -
|
|
1861
|
+
x: D,
|
|
1862
|
+
y: -T / 3
|
|
1864
1863
|
},
|
|
1865
1864
|
{
|
|
1866
|
-
x:
|
|
1867
|
-
y: -
|
|
1865
|
+
x: D + 2 * O,
|
|
1866
|
+
y: -T / 2
|
|
1868
1867
|
},
|
|
1869
1868
|
{
|
|
1870
|
-
x:
|
|
1871
|
-
y: -2 *
|
|
1869
|
+
x: D,
|
|
1870
|
+
y: -2 * T / 3
|
|
1872
1871
|
},
|
|
1873
1872
|
{
|
|
1874
|
-
x:
|
|
1875
|
-
y: -
|
|
1873
|
+
x: D,
|
|
1874
|
+
y: -T
|
|
1876
1875
|
},
|
|
1877
1876
|
{
|
|
1878
|
-
x:
|
|
1879
|
-
y: -
|
|
1877
|
+
x: D - E,
|
|
1878
|
+
y: -T
|
|
1880
1879
|
},
|
|
1881
1880
|
{
|
|
1882
|
-
x:
|
|
1883
|
-
y: -
|
|
1881
|
+
x: D / 2,
|
|
1882
|
+
y: -T - 2 * O
|
|
1884
1883
|
},
|
|
1885
1884
|
{
|
|
1886
|
-
x:
|
|
1887
|
-
y: -
|
|
1885
|
+
x: E,
|
|
1886
|
+
y: -T
|
|
1888
1887
|
},
|
|
1889
1888
|
{
|
|
1890
1889
|
x: 0,
|
|
1891
|
-
y: -
|
|
1890
|
+
y: -T
|
|
1892
1891
|
},
|
|
1893
1892
|
{
|
|
1894
1893
|
x: 0,
|
|
1895
|
-
y: -2 *
|
|
1894
|
+
y: -2 * T / 3
|
|
1896
1895
|
},
|
|
1897
1896
|
{
|
|
1898
|
-
x: -2 *
|
|
1899
|
-
y: -
|
|
1897
|
+
x: -2 * O,
|
|
1898
|
+
y: -T / 2
|
|
1900
1899
|
},
|
|
1901
1900
|
{
|
|
1902
1901
|
x: 0,
|
|
1903
|
-
y: -
|
|
1902
|
+
y: -T / 3
|
|
1904
1903
|
}
|
|
1905
|
-
] :
|
|
1904
|
+
] : w.has("right") && w.has("left") && w.has("up") ? [
|
|
1906
1905
|
{
|
|
1907
|
-
x:
|
|
1906
|
+
x: E,
|
|
1908
1907
|
y: 0
|
|
1909
1908
|
},
|
|
1910
1909
|
{
|
|
1911
|
-
x:
|
|
1910
|
+
x: D - E,
|
|
1912
1911
|
y: 0
|
|
1913
1912
|
},
|
|
1914
1913
|
{
|
|
1915
|
-
x:
|
|
1916
|
-
y: -
|
|
1914
|
+
x: D,
|
|
1915
|
+
y: -T / 2
|
|
1917
1916
|
},
|
|
1918
1917
|
{
|
|
1919
|
-
x:
|
|
1920
|
-
y: -
|
|
1918
|
+
x: D - E,
|
|
1919
|
+
y: -T
|
|
1921
1920
|
},
|
|
1922
1921
|
{
|
|
1923
|
-
x:
|
|
1924
|
-
y: -
|
|
1922
|
+
x: E,
|
|
1923
|
+
y: -T
|
|
1925
1924
|
},
|
|
1926
1925
|
{
|
|
1927
1926
|
x: 0,
|
|
1928
|
-
y: -
|
|
1927
|
+
y: -T / 2
|
|
1929
1928
|
}
|
|
1930
|
-
] :
|
|
1929
|
+
] : w.has("right") && w.has("left") && w.has("down") ? [
|
|
1931
1930
|
{
|
|
1932
1931
|
x: 0,
|
|
1933
1932
|
y: 0
|
|
1934
1933
|
},
|
|
1935
1934
|
{
|
|
1936
|
-
x:
|
|
1937
|
-
y: -
|
|
1935
|
+
x: E,
|
|
1936
|
+
y: -T
|
|
1938
1937
|
},
|
|
1939
1938
|
{
|
|
1940
|
-
x:
|
|
1941
|
-
y: -
|
|
1939
|
+
x: D - E,
|
|
1940
|
+
y: -T
|
|
1942
1941
|
},
|
|
1943
1942
|
{
|
|
1944
|
-
x:
|
|
1943
|
+
x: D,
|
|
1945
1944
|
y: 0
|
|
1946
1945
|
}
|
|
1947
|
-
] :
|
|
1946
|
+
] : w.has("right") && w.has("up") && w.has("down") ? [
|
|
1948
1947
|
{
|
|
1949
1948
|
x: 0,
|
|
1950
1949
|
y: 0
|
|
1951
1950
|
},
|
|
1952
1951
|
{
|
|
1953
|
-
x:
|
|
1954
|
-
y: -
|
|
1952
|
+
x: D,
|
|
1953
|
+
y: -E
|
|
1955
1954
|
},
|
|
1956
1955
|
{
|
|
1957
|
-
x:
|
|
1958
|
-
y: -
|
|
1956
|
+
x: D,
|
|
1957
|
+
y: -T + E
|
|
1959
1958
|
},
|
|
1960
1959
|
{
|
|
1961
1960
|
x: 0,
|
|
1962
|
-
y: -
|
|
1961
|
+
y: -T
|
|
1963
1962
|
}
|
|
1964
|
-
] :
|
|
1963
|
+
] : w.has("left") && w.has("up") && w.has("down") ? [
|
|
1965
1964
|
{
|
|
1966
|
-
x:
|
|
1965
|
+
x: D,
|
|
1967
1966
|
y: 0
|
|
1968
1967
|
},
|
|
1969
1968
|
{
|
|
1970
1969
|
x: 0,
|
|
1971
|
-
y: -
|
|
1970
|
+
y: -E
|
|
1972
1971
|
},
|
|
1973
1972
|
{
|
|
1974
1973
|
x: 0,
|
|
1975
|
-
y: -
|
|
1974
|
+
y: -T + E
|
|
1976
1975
|
},
|
|
1977
1976
|
{
|
|
1978
|
-
x:
|
|
1979
|
-
y: -
|
|
1977
|
+
x: D,
|
|
1978
|
+
y: -T
|
|
1980
1979
|
}
|
|
1981
|
-
] :
|
|
1980
|
+
] : w.has("right") && w.has("left") ? [
|
|
1982
1981
|
{
|
|
1983
|
-
x:
|
|
1982
|
+
x: E,
|
|
1984
1983
|
y: 0
|
|
1985
1984
|
},
|
|
1986
1985
|
{
|
|
1987
|
-
x:
|
|
1988
|
-
y: -
|
|
1986
|
+
x: E,
|
|
1987
|
+
y: -O
|
|
1989
1988
|
},
|
|
1990
1989
|
{
|
|
1991
|
-
x:
|
|
1992
|
-
y: -
|
|
1990
|
+
x: D - E,
|
|
1991
|
+
y: -O
|
|
1993
1992
|
},
|
|
1994
1993
|
{
|
|
1995
|
-
x:
|
|
1994
|
+
x: D - E,
|
|
1996
1995
|
y: 0
|
|
1997
1996
|
},
|
|
1998
1997
|
{
|
|
1999
|
-
x:
|
|
2000
|
-
y: -
|
|
1998
|
+
x: D,
|
|
1999
|
+
y: -T / 2
|
|
2001
2000
|
},
|
|
2002
2001
|
{
|
|
2003
|
-
x:
|
|
2004
|
-
y: -
|
|
2002
|
+
x: D - E,
|
|
2003
|
+
y: -T
|
|
2005
2004
|
},
|
|
2006
2005
|
{
|
|
2007
|
-
x:
|
|
2008
|
-
y: -
|
|
2006
|
+
x: D - E,
|
|
2007
|
+
y: -T + O
|
|
2009
2008
|
},
|
|
2010
2009
|
{
|
|
2011
|
-
x:
|
|
2012
|
-
y: -
|
|
2010
|
+
x: E,
|
|
2011
|
+
y: -T + O
|
|
2013
2012
|
},
|
|
2014
2013
|
{
|
|
2015
|
-
x:
|
|
2016
|
-
y: -
|
|
2014
|
+
x: E,
|
|
2015
|
+
y: -T
|
|
2017
2016
|
},
|
|
2018
2017
|
{
|
|
2019
2018
|
x: 0,
|
|
2020
|
-
y: -
|
|
2019
|
+
y: -T / 2
|
|
2021
2020
|
}
|
|
2022
|
-
] :
|
|
2021
|
+
] : w.has("up") && w.has("down") ? [
|
|
2023
2022
|
{
|
|
2024
|
-
x:
|
|
2023
|
+
x: D / 2,
|
|
2025
2024
|
y: 0
|
|
2026
2025
|
},
|
|
2027
2026
|
{
|
|
2028
2027
|
x: 0,
|
|
2029
|
-
y: -
|
|
2028
|
+
y: -O
|
|
2030
2029
|
},
|
|
2031
2030
|
{
|
|
2032
|
-
x:
|
|
2033
|
-
y: -
|
|
2031
|
+
x: E,
|
|
2032
|
+
y: -O
|
|
2034
2033
|
},
|
|
2035
2034
|
{
|
|
2036
|
-
x:
|
|
2037
|
-
y: -
|
|
2035
|
+
x: E,
|
|
2036
|
+
y: -T + O
|
|
2038
2037
|
},
|
|
2039
2038
|
{
|
|
2040
2039
|
x: 0,
|
|
2041
|
-
y: -
|
|
2040
|
+
y: -T + O
|
|
2042
2041
|
},
|
|
2043
2042
|
{
|
|
2044
|
-
x:
|
|
2045
|
-
y: -
|
|
2043
|
+
x: D / 2,
|
|
2044
|
+
y: -T
|
|
2046
2045
|
},
|
|
2047
2046
|
{
|
|
2048
|
-
x:
|
|
2049
|
-
y: -
|
|
2047
|
+
x: D,
|
|
2048
|
+
y: -T + O
|
|
2050
2049
|
},
|
|
2051
2050
|
{
|
|
2052
|
-
x:
|
|
2053
|
-
y: -
|
|
2051
|
+
x: D - E,
|
|
2052
|
+
y: -T + O
|
|
2054
2053
|
},
|
|
2055
2054
|
{
|
|
2056
|
-
x:
|
|
2057
|
-
y: -
|
|
2055
|
+
x: D - E,
|
|
2056
|
+
y: -O
|
|
2058
2057
|
},
|
|
2059
2058
|
{
|
|
2060
|
-
x:
|
|
2061
|
-
y: -
|
|
2059
|
+
x: D,
|
|
2060
|
+
y: -O
|
|
2062
2061
|
}
|
|
2063
|
-
] :
|
|
2062
|
+
] : w.has("right") && w.has("up") ? [
|
|
2064
2063
|
{
|
|
2065
2064
|
x: 0,
|
|
2066
2065
|
y: 0
|
|
2067
2066
|
},
|
|
2068
2067
|
{
|
|
2069
|
-
x:
|
|
2070
|
-
y: -
|
|
2068
|
+
x: D,
|
|
2069
|
+
y: -E
|
|
2071
2070
|
},
|
|
2072
2071
|
{
|
|
2073
2072
|
x: 0,
|
|
2074
|
-
y: -
|
|
2073
|
+
y: -T
|
|
2075
2074
|
}
|
|
2076
|
-
] :
|
|
2075
|
+
] : w.has("right") && w.has("down") ? [
|
|
2077
2076
|
{
|
|
2078
2077
|
x: 0,
|
|
2079
2078
|
y: 0
|
|
2080
2079
|
},
|
|
2081
2080
|
{
|
|
2082
|
-
x:
|
|
2081
|
+
x: D,
|
|
2083
2082
|
y: 0
|
|
2084
2083
|
},
|
|
2085
2084
|
{
|
|
2086
2085
|
x: 0,
|
|
2087
|
-
y: -
|
|
2086
|
+
y: -T
|
|
2088
2087
|
}
|
|
2089
|
-
] :
|
|
2088
|
+
] : w.has("left") && w.has("up") ? [
|
|
2090
2089
|
{
|
|
2091
|
-
x:
|
|
2090
|
+
x: D,
|
|
2092
2091
|
y: 0
|
|
2093
2092
|
},
|
|
2094
2093
|
{
|
|
2095
2094
|
x: 0,
|
|
2096
|
-
y: -
|
|
2095
|
+
y: -E
|
|
2097
2096
|
},
|
|
2098
2097
|
{
|
|
2099
|
-
x:
|
|
2100
|
-
y: -
|
|
2098
|
+
x: D,
|
|
2099
|
+
y: -T
|
|
2101
2100
|
}
|
|
2102
|
-
] :
|
|
2101
|
+
] : w.has("left") && w.has("down") ? [
|
|
2103
2102
|
{
|
|
2104
|
-
x:
|
|
2103
|
+
x: D,
|
|
2105
2104
|
y: 0
|
|
2106
2105
|
},
|
|
2107
2106
|
{
|
|
@@ -2109,272 +2108,272 @@ var Ee = /* @__PURE__ */ e((e, n) => {
|
|
|
2109
2108
|
y: 0
|
|
2110
2109
|
},
|
|
2111
2110
|
{
|
|
2112
|
-
x:
|
|
2113
|
-
y: -
|
|
2111
|
+
x: D,
|
|
2112
|
+
y: -T
|
|
2114
2113
|
}
|
|
2115
|
-
] :
|
|
2114
|
+
] : w.has("right") ? [
|
|
2116
2115
|
{
|
|
2117
|
-
x:
|
|
2118
|
-
y: -
|
|
2116
|
+
x: E,
|
|
2117
|
+
y: -O
|
|
2119
2118
|
},
|
|
2120
2119
|
{
|
|
2121
|
-
x:
|
|
2122
|
-
y: -
|
|
2120
|
+
x: E,
|
|
2121
|
+
y: -O
|
|
2123
2122
|
},
|
|
2124
2123
|
{
|
|
2125
|
-
x:
|
|
2126
|
-
y: -
|
|
2124
|
+
x: D - E,
|
|
2125
|
+
y: -O
|
|
2127
2126
|
},
|
|
2128
2127
|
{
|
|
2129
|
-
x:
|
|
2128
|
+
x: D - E,
|
|
2130
2129
|
y: 0
|
|
2131
2130
|
},
|
|
2132
2131
|
{
|
|
2133
|
-
x:
|
|
2134
|
-
y: -
|
|
2132
|
+
x: D,
|
|
2133
|
+
y: -T / 2
|
|
2135
2134
|
},
|
|
2136
2135
|
{
|
|
2137
|
-
x:
|
|
2138
|
-
y: -
|
|
2136
|
+
x: D - E,
|
|
2137
|
+
y: -T
|
|
2139
2138
|
},
|
|
2140
2139
|
{
|
|
2141
|
-
x:
|
|
2142
|
-
y: -
|
|
2140
|
+
x: D - E,
|
|
2141
|
+
y: -T + O
|
|
2143
2142
|
},
|
|
2144
2143
|
{
|
|
2145
|
-
x:
|
|
2146
|
-
y: -
|
|
2144
|
+
x: E,
|
|
2145
|
+
y: -T + O
|
|
2147
2146
|
},
|
|
2148
2147
|
{
|
|
2149
|
-
x:
|
|
2150
|
-
y: -
|
|
2148
|
+
x: E,
|
|
2149
|
+
y: -T + O
|
|
2151
2150
|
}
|
|
2152
|
-
] :
|
|
2151
|
+
] : w.has("left") ? [
|
|
2153
2152
|
{
|
|
2154
|
-
x:
|
|
2153
|
+
x: E,
|
|
2155
2154
|
y: 0
|
|
2156
2155
|
},
|
|
2157
2156
|
{
|
|
2158
|
-
x:
|
|
2159
|
-
y: -
|
|
2157
|
+
x: E,
|
|
2158
|
+
y: -O
|
|
2160
2159
|
},
|
|
2161
2160
|
{
|
|
2162
|
-
x:
|
|
2163
|
-
y: -
|
|
2161
|
+
x: D - E,
|
|
2162
|
+
y: -O
|
|
2164
2163
|
},
|
|
2165
2164
|
{
|
|
2166
|
-
x:
|
|
2167
|
-
y: -
|
|
2165
|
+
x: D - E,
|
|
2166
|
+
y: -T + O
|
|
2168
2167
|
},
|
|
2169
2168
|
{
|
|
2170
|
-
x:
|
|
2171
|
-
y: -
|
|
2169
|
+
x: E,
|
|
2170
|
+
y: -T + O
|
|
2172
2171
|
},
|
|
2173
2172
|
{
|
|
2174
|
-
x:
|
|
2175
|
-
y: -
|
|
2173
|
+
x: E,
|
|
2174
|
+
y: -T
|
|
2176
2175
|
},
|
|
2177
2176
|
{
|
|
2178
2177
|
x: 0,
|
|
2179
|
-
y: -
|
|
2178
|
+
y: -T / 2
|
|
2180
2179
|
}
|
|
2181
|
-
] :
|
|
2180
|
+
] : w.has("up") ? [
|
|
2182
2181
|
{
|
|
2183
|
-
x:
|
|
2184
|
-
y: -
|
|
2182
|
+
x: E,
|
|
2183
|
+
y: -O
|
|
2185
2184
|
},
|
|
2186
2185
|
{
|
|
2187
|
-
x:
|
|
2188
|
-
y: -
|
|
2186
|
+
x: E,
|
|
2187
|
+
y: -T + O
|
|
2189
2188
|
},
|
|
2190
2189
|
{
|
|
2191
2190
|
x: 0,
|
|
2192
|
-
y: -
|
|
2191
|
+
y: -T + O
|
|
2193
2192
|
},
|
|
2194
2193
|
{
|
|
2195
|
-
x:
|
|
2196
|
-
y: -
|
|
2194
|
+
x: D / 2,
|
|
2195
|
+
y: -T
|
|
2197
2196
|
},
|
|
2198
2197
|
{
|
|
2199
|
-
x:
|
|
2200
|
-
y: -
|
|
2198
|
+
x: D,
|
|
2199
|
+
y: -T + O
|
|
2201
2200
|
},
|
|
2202
2201
|
{
|
|
2203
|
-
x:
|
|
2204
|
-
y: -
|
|
2202
|
+
x: D - E,
|
|
2203
|
+
y: -T + O
|
|
2205
2204
|
},
|
|
2206
2205
|
{
|
|
2207
|
-
x:
|
|
2208
|
-
y: -
|
|
2206
|
+
x: D - E,
|
|
2207
|
+
y: -O
|
|
2209
2208
|
}
|
|
2210
|
-
] :
|
|
2209
|
+
] : w.has("down") ? [
|
|
2211
2210
|
{
|
|
2212
|
-
x:
|
|
2211
|
+
x: D / 2,
|
|
2213
2212
|
y: 0
|
|
2214
2213
|
},
|
|
2215
2214
|
{
|
|
2216
2215
|
x: 0,
|
|
2217
|
-
y: -
|
|
2216
|
+
y: -O
|
|
2218
2217
|
},
|
|
2219
2218
|
{
|
|
2220
|
-
x:
|
|
2221
|
-
y: -
|
|
2219
|
+
x: E,
|
|
2220
|
+
y: -O
|
|
2222
2221
|
},
|
|
2223
2222
|
{
|
|
2224
|
-
x:
|
|
2225
|
-
y: -
|
|
2223
|
+
x: E,
|
|
2224
|
+
y: -T + O
|
|
2226
2225
|
},
|
|
2227
2226
|
{
|
|
2228
|
-
x:
|
|
2229
|
-
y: -
|
|
2227
|
+
x: D - E,
|
|
2228
|
+
y: -T + O
|
|
2230
2229
|
},
|
|
2231
2230
|
{
|
|
2232
|
-
x:
|
|
2233
|
-
y: -
|
|
2231
|
+
x: D - E,
|
|
2232
|
+
y: -O
|
|
2234
2233
|
},
|
|
2235
2234
|
{
|
|
2236
|
-
x:
|
|
2237
|
-
y: -
|
|
2235
|
+
x: D,
|
|
2236
|
+
y: -O
|
|
2238
2237
|
}
|
|
2239
2238
|
] : [{
|
|
2240
2239
|
x: 0,
|
|
2241
2240
|
y: 0
|
|
2242
2241
|
}];
|
|
2243
2242
|
}, "getArrowPoints");
|
|
2244
|
-
function
|
|
2245
|
-
return e.intersect(
|
|
2243
|
+
function intersectNode(e, S) {
|
|
2244
|
+
return e.intersect(S);
|
|
2246
2245
|
}
|
|
2247
|
-
|
|
2248
|
-
var
|
|
2249
|
-
function
|
|
2250
|
-
var
|
|
2251
|
-
|
|
2252
|
-
var
|
|
2253
|
-
return
|
|
2254
|
-
x:
|
|
2255
|
-
y:
|
|
2246
|
+
__name(intersectNode, "intersectNode");
|
|
2247
|
+
var intersect_node_default = intersectNode;
|
|
2248
|
+
function intersectEllipse(e, S, C, w) {
|
|
2249
|
+
var T = e.x, E = e.y, D = T - w.x, O = E - w.y, k = Math.sqrt(S * S * O * O + C * C * D * D), A = Math.abs(S * C * D / k);
|
|
2250
|
+
w.x < T && (A = -A);
|
|
2251
|
+
var j = Math.abs(S * C * O / k);
|
|
2252
|
+
return w.y < E && (j = -j), {
|
|
2253
|
+
x: T + A,
|
|
2254
|
+
y: E + j
|
|
2256
2255
|
};
|
|
2257
2256
|
}
|
|
2258
|
-
|
|
2259
|
-
var
|
|
2260
|
-
function
|
|
2261
|
-
return
|
|
2257
|
+
__name(intersectEllipse, "intersectEllipse");
|
|
2258
|
+
var intersect_ellipse_default = intersectEllipse;
|
|
2259
|
+
function intersectCircle(e, S, C) {
|
|
2260
|
+
return intersect_ellipse_default(e, S, S, C);
|
|
2262
2261
|
}
|
|
2263
|
-
|
|
2264
|
-
var
|
|
2265
|
-
function
|
|
2266
|
-
var
|
|
2267
|
-
if (!(
|
|
2268
|
-
x:
|
|
2269
|
-
y:
|
|
2262
|
+
__name(intersectCircle, "intersectCircle");
|
|
2263
|
+
var intersect_circle_default = intersectCircle;
|
|
2264
|
+
function intersectLine(e, S, C, w) {
|
|
2265
|
+
var T = S.y - e.y, E, D = e.x - S.x, O, k = S.x * e.y - e.x * S.y, A, j, M, N = T * C.x + D * C.y + k, P = T * w.x + D * w.y + k, F, I, L, R, z;
|
|
2266
|
+
if (!(N !== 0 && P !== 0 && sameSign(N, P)) && (E = w.y - C.y, O = C.x - w.x, A = w.x * C.y - C.x * w.y, j = E * e.x + O * e.y + A, M = E * S.x + O * S.y + A, !(j !== 0 && M !== 0 && sameSign(j, M)) && (F = T * O - E * D, F !== 0))) return I = Math.abs(F / 2), L = D * A - O * k, R = L < 0 ? (L - I) / F : (L + I) / F, L = E * k - T * A, z = L < 0 ? (L - I) / F : (L + I) / F, {
|
|
2267
|
+
x: R,
|
|
2268
|
+
y: z
|
|
2270
2269
|
};
|
|
2271
2270
|
}
|
|
2272
|
-
|
|
2273
|
-
function
|
|
2274
|
-
return e *
|
|
2271
|
+
__name(intersectLine, "intersectLine");
|
|
2272
|
+
function sameSign(e, S) {
|
|
2273
|
+
return e * S > 0;
|
|
2275
2274
|
}
|
|
2276
|
-
|
|
2277
|
-
var
|
|
2278
|
-
function
|
|
2279
|
-
var
|
|
2280
|
-
typeof
|
|
2281
|
-
|
|
2282
|
-
}) : (
|
|
2283
|
-
for (var
|
|
2284
|
-
var
|
|
2285
|
-
x:
|
|
2286
|
-
y:
|
|
2275
|
+
__name(sameSign, "sameSign");
|
|
2276
|
+
var intersect_line_default = intersectLine, intersect_polygon_default = intersectPolygon;
|
|
2277
|
+
function intersectPolygon(e, S, C) {
|
|
2278
|
+
var w = e.x, T = e.y, E = [], D = Infinity, O = Infinity;
|
|
2279
|
+
typeof S.forEach == "function" ? S.forEach(function(e) {
|
|
2280
|
+
D = Math.min(D, e.x), O = Math.min(O, e.y);
|
|
2281
|
+
}) : (D = Math.min(D, S.x), O = Math.min(O, S.y));
|
|
2282
|
+
for (var k = w - e.width / 2 - D, A = T - e.height / 2 - O, j = 0; j < S.length; j++) {
|
|
2283
|
+
var M = S[j], N = S[j < S.length - 1 ? j + 1 : 0], P = intersect_line_default(e, C, {
|
|
2284
|
+
x: k + M.x,
|
|
2285
|
+
y: A + M.y
|
|
2287
2286
|
}, {
|
|
2288
|
-
x:
|
|
2289
|
-
y:
|
|
2287
|
+
x: k + N.x,
|
|
2288
|
+
y: A + N.y
|
|
2290
2289
|
});
|
|
2291
|
-
|
|
2290
|
+
P && E.push(P);
|
|
2292
2291
|
}
|
|
2293
|
-
return
|
|
2294
|
-
var
|
|
2295
|
-
return
|
|
2296
|
-
}),
|
|
2292
|
+
return E.length ? (E.length > 1 && E.sort(function(e, S) {
|
|
2293
|
+
var w = e.x - C.x, T = e.y - C.y, E = Math.sqrt(w * w + T * T), D = S.x - C.x, O = S.y - C.y, k = Math.sqrt(D * D + O * O);
|
|
2294
|
+
return E < k ? -1 : E === k ? 0 : 1;
|
|
2295
|
+
}), E[0]) : e;
|
|
2297
2296
|
}
|
|
2298
|
-
|
|
2299
|
-
var
|
|
2300
|
-
node:
|
|
2301
|
-
circle:
|
|
2302
|
-
ellipse:
|
|
2303
|
-
polygon:
|
|
2304
|
-
rect: /* @__PURE__ */
|
|
2305
|
-
var
|
|
2306
|
-
return Math.abs(
|
|
2307
|
-
x:
|
|
2308
|
-
y:
|
|
2297
|
+
__name(intersectPolygon, "intersectPolygon");
|
|
2298
|
+
var intersect_default = {
|
|
2299
|
+
node: intersect_node_default,
|
|
2300
|
+
circle: intersect_circle_default,
|
|
2301
|
+
ellipse: intersect_ellipse_default,
|
|
2302
|
+
polygon: intersect_polygon_default,
|
|
2303
|
+
rect: /* @__PURE__ */ __name((e, S) => {
|
|
2304
|
+
var C = e.x, w = e.y, T = S.x - C, E = S.y - w, D = e.width / 2, O = e.height / 2, k, A;
|
|
2305
|
+
return Math.abs(E) * D > Math.abs(T) * O ? (E < 0 && (O = -O), k = E === 0 ? 0 : O * T / E, A = O) : (T < 0 && (D = -D), k = D, A = T === 0 ? 0 : D * E / T), {
|
|
2306
|
+
x: C + k,
|
|
2307
|
+
y: w + A
|
|
2309
2308
|
};
|
|
2310
2309
|
}, "intersectRect")
|
|
2311
|
-
},
|
|
2312
|
-
let
|
|
2313
|
-
|
|
2314
|
-
let
|
|
2315
|
-
|
|
2316
|
-
let
|
|
2317
|
-
|
|
2318
|
-
useHtmlLabels:
|
|
2319
|
-
width:
|
|
2310
|
+
}, labelHelper = /* @__PURE__ */ __name(async (e, S, C, w) => {
|
|
2311
|
+
let T = getConfig2(), E, D = S.useHtmlLabels || getEffectiveHtmlLabels(T);
|
|
2312
|
+
E = C || "node default";
|
|
2313
|
+
let O = e.insert("g").attr("class", E).attr("id", S.domId || S.id), j = O.insert("g").attr("class", "label").attr("style", S.labelStyle), P;
|
|
2314
|
+
P = S.labelText === void 0 ? "" : typeof S.labelText == "string" ? S.labelText : S.labelText[0];
|
|
2315
|
+
let F;
|
|
2316
|
+
F = S.labelType === "markdown" ? createText(j, sanitizeText(decodeEntities(P), T), {
|
|
2317
|
+
useHtmlLabels: D,
|
|
2318
|
+
width: S.width || T.flowchart.wrappingWidth,
|
|
2320
2319
|
classes: "markdown-node-label"
|
|
2321
|
-
},
|
|
2322
|
-
let
|
|
2323
|
-
if (
|
|
2324
|
-
let e =
|
|
2325
|
-
await
|
|
2320
|
+
}, T) : await createLabel_default(j, sanitizeText(decodeEntities(P), T), S.labelStyle, !1, w);
|
|
2321
|
+
let I = F.getBBox(), L = S.padding / 2;
|
|
2322
|
+
if (getEffectiveHtmlLabels(T)) {
|
|
2323
|
+
let e = F.children[0], S = select_default(F);
|
|
2324
|
+
await configureLabelImages(e, P), I = e.getBoundingClientRect(), S.attr("width", I.width), S.attr("height", I.height);
|
|
2326
2325
|
}
|
|
2327
|
-
return
|
|
2328
|
-
shapeSvg:
|
|
2329
|
-
bbox:
|
|
2330
|
-
halfPadding:
|
|
2331
|
-
label:
|
|
2326
|
+
return D ? j.attr("transform", "translate(" + -I.width / 2 + ", " + -I.height / 2 + ")") : j.attr("transform", "translate(0, " + -I.height / 2 + ")"), S.centerLabel && j.attr("transform", "translate(" + -I.width / 2 + ", " + -I.height / 2 + ")"), j.insert("rect", ":first-child"), {
|
|
2327
|
+
shapeSvg: O,
|
|
2328
|
+
bbox: I,
|
|
2329
|
+
halfPadding: L,
|
|
2330
|
+
label: j
|
|
2332
2331
|
};
|
|
2333
|
-
}, "labelHelper"),
|
|
2334
|
-
let
|
|
2335
|
-
e.width =
|
|
2332
|
+
}, "labelHelper"), updateNodeBounds = /* @__PURE__ */ __name((e, S) => {
|
|
2333
|
+
let C = S.node().getBBox();
|
|
2334
|
+
e.width = C.width, e.height = C.height;
|
|
2336
2335
|
}, "updateNodeBounds");
|
|
2337
|
-
function
|
|
2338
|
-
return e.insert("polygon", ":first-child").attr("points",
|
|
2336
|
+
function insertPolygonShape(e, S, C, w) {
|
|
2337
|
+
return e.insert("polygon", ":first-child").attr("points", w.map(function(e) {
|
|
2339
2338
|
return e.x + "," + e.y;
|
|
2340
|
-
}).join(" ")).attr("class", "label-container").attr("transform", "translate(" + -
|
|
2339
|
+
}).join(" ")).attr("class", "label-container").attr("transform", "translate(" + -S / 2 + "," + C / 2 + ")");
|
|
2341
2340
|
}
|
|
2342
|
-
|
|
2343
|
-
var
|
|
2344
|
-
|
|
2345
|
-
let { shapeSvg:
|
|
2346
|
-
|
|
2347
|
-
let
|
|
2348
|
-
return
|
|
2349
|
-
return
|
|
2350
|
-
},
|
|
2351
|
-
}, "note"),
|
|
2352
|
-
let { shapeSvg:
|
|
2353
|
-
{
|
|
2354
|
-
x:
|
|
2341
|
+
__name(insertPolygonShape, "insertPolygonShape");
|
|
2342
|
+
var note_default = /* @__PURE__ */ __name(async (e, C) => {
|
|
2343
|
+
C.useHtmlLabels || getEffectiveHtmlLabels(getConfig2()) || (C.centerLabel = !0);
|
|
2344
|
+
let { shapeSvg: w, bbox: T, halfPadding: E } = await labelHelper(e, C, "node " + C.classes, !0);
|
|
2345
|
+
log.info("Classes = ", C.classes);
|
|
2346
|
+
let D = w.insert("rect", ":first-child");
|
|
2347
|
+
return D.attr("rx", C.rx).attr("ry", C.ry).attr("x", -T.width / 2 - E).attr("y", -T.height / 2 - E).attr("width", T.width + C.padding).attr("height", T.height + C.padding), updateNodeBounds(C, D), C.intersect = function(e) {
|
|
2348
|
+
return intersect_default.rect(C, e);
|
|
2349
|
+
}, w;
|
|
2350
|
+
}, "note"), formatClass = /* @__PURE__ */ __name((e) => e ? " " + e : "", "formatClass"), getClassesFromNode = /* @__PURE__ */ __name((e, S) => `${S || "node default"}${formatClass(e.classes)} ${formatClass(e.class)}`, "getClassesFromNode"), question = /* @__PURE__ */ __name(async (e, C) => {
|
|
2351
|
+
let { shapeSvg: w, bbox: T } = await labelHelper(e, C, getClassesFromNode(C, void 0), !0), E = T.width + C.padding + (T.height + C.padding), D = [
|
|
2352
|
+
{
|
|
2353
|
+
x: E / 2,
|
|
2355
2354
|
y: 0
|
|
2356
2355
|
},
|
|
2357
2356
|
{
|
|
2358
|
-
x:
|
|
2359
|
-
y: -
|
|
2357
|
+
x: E,
|
|
2358
|
+
y: -E / 2
|
|
2360
2359
|
},
|
|
2361
2360
|
{
|
|
2362
|
-
x:
|
|
2363
|
-
y: -
|
|
2361
|
+
x: E / 2,
|
|
2362
|
+
y: -E
|
|
2364
2363
|
},
|
|
2365
2364
|
{
|
|
2366
2365
|
x: 0,
|
|
2367
|
-
y: -
|
|
2366
|
+
y: -E / 2
|
|
2368
2367
|
}
|
|
2369
2368
|
];
|
|
2370
|
-
|
|
2371
|
-
let
|
|
2372
|
-
return
|
|
2373
|
-
return
|
|
2374
|
-
},
|
|
2375
|
-
}, "question"),
|
|
2376
|
-
let
|
|
2377
|
-
return
|
|
2369
|
+
log.info("Question main (Circle)");
|
|
2370
|
+
let O = insertPolygonShape(w, E, E, D);
|
|
2371
|
+
return O.attr("style", C.style), updateNodeBounds(C, O), C.intersect = function(e) {
|
|
2372
|
+
return log.warn("Intersect called"), intersect_default.polygon(C, D, e);
|
|
2373
|
+
}, w;
|
|
2374
|
+
}, "question"), choice = /* @__PURE__ */ __name((e, S) => {
|
|
2375
|
+
let C = e.insert("g").attr("class", "node default").attr("id", S.domId || S.id);
|
|
2376
|
+
return C.insert("polygon", ":first-child").attr("points", [
|
|
2378
2377
|
{
|
|
2379
2378
|
x: 0,
|
|
2380
2379
|
y: 28 / 2
|
|
@@ -2393,294 +2392,294 @@ var Ue = /* @__PURE__ */ e(async (e, n) => {
|
|
|
2393
2392
|
}
|
|
2394
2393
|
].map(function(e) {
|
|
2395
2394
|
return e.x + "," + e.y;
|
|
2396
|
-
}).join(" ")).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28),
|
|
2397
|
-
return
|
|
2398
|
-
},
|
|
2399
|
-
}, "choice"),
|
|
2400
|
-
let { shapeSvg:
|
|
2395
|
+
}).join(" ")).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), S.width = 28, S.height = 28, S.intersect = function(e) {
|
|
2396
|
+
return intersect_default.circle(S, 14, e);
|
|
2397
|
+
}, C;
|
|
2398
|
+
}, "choice"), hexagon = /* @__PURE__ */ __name(async (e, S) => {
|
|
2399
|
+
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.height + S.padding, E = T / 4, D = w.width + 2 * E + S.padding, O = [
|
|
2401
2400
|
{
|
|
2402
|
-
x:
|
|
2401
|
+
x: E,
|
|
2403
2402
|
y: 0
|
|
2404
2403
|
},
|
|
2405
2404
|
{
|
|
2406
|
-
x:
|
|
2405
|
+
x: D - E,
|
|
2407
2406
|
y: 0
|
|
2408
2407
|
},
|
|
2409
2408
|
{
|
|
2410
|
-
x:
|
|
2411
|
-
y: -
|
|
2409
|
+
x: D,
|
|
2410
|
+
y: -T / 2
|
|
2412
2411
|
},
|
|
2413
2412
|
{
|
|
2414
|
-
x:
|
|
2415
|
-
y: -
|
|
2413
|
+
x: D - E,
|
|
2414
|
+
y: -T
|
|
2416
2415
|
},
|
|
2417
2416
|
{
|
|
2418
|
-
x:
|
|
2419
|
-
y: -
|
|
2417
|
+
x: E,
|
|
2418
|
+
y: -T
|
|
2420
2419
|
},
|
|
2421
2420
|
{
|
|
2422
2421
|
x: 0,
|
|
2423
|
-
y: -
|
|
2422
|
+
y: -T / 2
|
|
2424
2423
|
}
|
|
2425
|
-
],
|
|
2426
|
-
return
|
|
2427
|
-
return
|
|
2428
|
-
},
|
|
2429
|
-
}, "hexagon"),
|
|
2430
|
-
let { shapeSvg:
|
|
2431
|
-
return
|
|
2432
|
-
return
|
|
2433
|
-
},
|
|
2434
|
-
}, "block_arrow"),
|
|
2435
|
-
let { shapeSvg:
|
|
2436
|
-
{
|
|
2437
|
-
x: -
|
|
2424
|
+
], k = insertPolygonShape(C, D, T, O);
|
|
2425
|
+
return k.attr("style", S.style), updateNodeBounds(S, k), S.intersect = function(e) {
|
|
2426
|
+
return intersect_default.polygon(S, O, e);
|
|
2427
|
+
}, C;
|
|
2428
|
+
}, "hexagon"), block_arrow = /* @__PURE__ */ __name(async (e, S) => {
|
|
2429
|
+
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, void 0, !0), T = w.height + 2 * S.padding, E = T / 2, D = w.width + 2 * E + S.padding, O = getArrowPoints(S.directions, w, S), k = insertPolygonShape(C, D, T, O);
|
|
2430
|
+
return k.attr("style", S.style), updateNodeBounds(S, k), S.intersect = function(e) {
|
|
2431
|
+
return intersect_default.polygon(S, O, e);
|
|
2432
|
+
}, C;
|
|
2433
|
+
}, "block_arrow"), rect_left_inv_arrow = /* @__PURE__ */ __name(async (e, S) => {
|
|
2434
|
+
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.width + S.padding, E = w.height + S.padding, D = [
|
|
2435
|
+
{
|
|
2436
|
+
x: -E / 2,
|
|
2438
2437
|
y: 0
|
|
2439
2438
|
},
|
|
2440
2439
|
{
|
|
2441
|
-
x:
|
|
2440
|
+
x: T,
|
|
2442
2441
|
y: 0
|
|
2443
2442
|
},
|
|
2444
2443
|
{
|
|
2445
|
-
x:
|
|
2446
|
-
y: -
|
|
2444
|
+
x: T,
|
|
2445
|
+
y: -E
|
|
2447
2446
|
},
|
|
2448
2447
|
{
|
|
2449
|
-
x: -
|
|
2450
|
-
y: -
|
|
2448
|
+
x: -E / 2,
|
|
2449
|
+
y: -E
|
|
2451
2450
|
},
|
|
2452
2451
|
{
|
|
2453
2452
|
x: 0,
|
|
2454
|
-
y: -
|
|
2453
|
+
y: -E / 2
|
|
2455
2454
|
}
|
|
2456
2455
|
];
|
|
2457
|
-
return
|
|
2458
|
-
return
|
|
2459
|
-
},
|
|
2460
|
-
}, "rect_left_inv_arrow"),
|
|
2461
|
-
let { shapeSvg:
|
|
2456
|
+
return insertPolygonShape(C, T, E, D).attr("style", S.style), S.width = T + E, S.height = E, S.intersect = function(e) {
|
|
2457
|
+
return intersect_default.polygon(S, D, e);
|
|
2458
|
+
}, C;
|
|
2459
|
+
}, "rect_left_inv_arrow"), lean_right = /* @__PURE__ */ __name(async (e, S) => {
|
|
2460
|
+
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S), !0), T = w.width + S.padding, E = w.height + S.padding, D = [
|
|
2462
2461
|
{
|
|
2463
|
-
x: -2 *
|
|
2462
|
+
x: -2 * E / 6,
|
|
2464
2463
|
y: 0
|
|
2465
2464
|
},
|
|
2466
2465
|
{
|
|
2467
|
-
x:
|
|
2466
|
+
x: T - E / 6,
|
|
2468
2467
|
y: 0
|
|
2469
2468
|
},
|
|
2470
2469
|
{
|
|
2471
|
-
x:
|
|
2472
|
-
y: -
|
|
2470
|
+
x: T + 2 * E / 6,
|
|
2471
|
+
y: -E
|
|
2473
2472
|
},
|
|
2474
2473
|
{
|
|
2475
|
-
x:
|
|
2476
|
-
y: -
|
|
2474
|
+
x: E / 6,
|
|
2475
|
+
y: -E
|
|
2477
2476
|
}
|
|
2478
|
-
],
|
|
2479
|
-
return
|
|
2480
|
-
return
|
|
2481
|
-
},
|
|
2482
|
-
}, "lean_right"),
|
|
2483
|
-
let { shapeSvg:
|
|
2484
|
-
{
|
|
2485
|
-
x: 2 *
|
|
2477
|
+
], O = insertPolygonShape(C, T, E, D);
|
|
2478
|
+
return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e) {
|
|
2479
|
+
return intersect_default.polygon(S, D, e);
|
|
2480
|
+
}, C;
|
|
2481
|
+
}, "lean_right"), lean_left = /* @__PURE__ */ __name(async (e, S) => {
|
|
2482
|
+
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.width + S.padding, E = w.height + S.padding, D = [
|
|
2483
|
+
{
|
|
2484
|
+
x: 2 * E / 6,
|
|
2486
2485
|
y: 0
|
|
2487
2486
|
},
|
|
2488
2487
|
{
|
|
2489
|
-
x:
|
|
2488
|
+
x: T + E / 6,
|
|
2490
2489
|
y: 0
|
|
2491
2490
|
},
|
|
2492
2491
|
{
|
|
2493
|
-
x:
|
|
2494
|
-
y: -
|
|
2492
|
+
x: T - 2 * E / 6,
|
|
2493
|
+
y: -E
|
|
2495
2494
|
},
|
|
2496
2495
|
{
|
|
2497
|
-
x: -
|
|
2498
|
-
y: -
|
|
2496
|
+
x: -E / 6,
|
|
2497
|
+
y: -E
|
|
2499
2498
|
}
|
|
2500
|
-
],
|
|
2501
|
-
return
|
|
2502
|
-
return
|
|
2503
|
-
},
|
|
2504
|
-
}, "lean_left"),
|
|
2505
|
-
let { shapeSvg:
|
|
2506
|
-
{
|
|
2507
|
-
x: -2 *
|
|
2499
|
+
], O = insertPolygonShape(C, T, E, D);
|
|
2500
|
+
return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e) {
|
|
2501
|
+
return intersect_default.polygon(S, D, e);
|
|
2502
|
+
}, C;
|
|
2503
|
+
}, "lean_left"), trapezoid = /* @__PURE__ */ __name(async (e, S) => {
|
|
2504
|
+
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.width + S.padding, E = w.height + S.padding, D = [
|
|
2505
|
+
{
|
|
2506
|
+
x: -2 * E / 6,
|
|
2508
2507
|
y: 0
|
|
2509
2508
|
},
|
|
2510
2509
|
{
|
|
2511
|
-
x:
|
|
2510
|
+
x: T + 2 * E / 6,
|
|
2512
2511
|
y: 0
|
|
2513
2512
|
},
|
|
2514
2513
|
{
|
|
2515
|
-
x:
|
|
2516
|
-
y: -
|
|
2514
|
+
x: T - E / 6,
|
|
2515
|
+
y: -E
|
|
2517
2516
|
},
|
|
2518
2517
|
{
|
|
2519
|
-
x:
|
|
2520
|
-
y: -
|
|
2518
|
+
x: E / 6,
|
|
2519
|
+
y: -E
|
|
2521
2520
|
}
|
|
2522
|
-
],
|
|
2523
|
-
return
|
|
2524
|
-
return
|
|
2525
|
-
},
|
|
2526
|
-
}, "trapezoid"),
|
|
2527
|
-
let { shapeSvg:
|
|
2528
|
-
{
|
|
2529
|
-
x:
|
|
2521
|
+
], O = insertPolygonShape(C, T, E, D);
|
|
2522
|
+
return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e) {
|
|
2523
|
+
return intersect_default.polygon(S, D, e);
|
|
2524
|
+
}, C;
|
|
2525
|
+
}, "trapezoid"), inv_trapezoid = /* @__PURE__ */ __name(async (e, S) => {
|
|
2526
|
+
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.width + S.padding, E = w.height + S.padding, D = [
|
|
2527
|
+
{
|
|
2528
|
+
x: E / 6,
|
|
2530
2529
|
y: 0
|
|
2531
2530
|
},
|
|
2532
2531
|
{
|
|
2533
|
-
x:
|
|
2532
|
+
x: T - E / 6,
|
|
2534
2533
|
y: 0
|
|
2535
2534
|
},
|
|
2536
2535
|
{
|
|
2537
|
-
x:
|
|
2538
|
-
y: -
|
|
2536
|
+
x: T + 2 * E / 6,
|
|
2537
|
+
y: -E
|
|
2539
2538
|
},
|
|
2540
2539
|
{
|
|
2541
|
-
x: -2 *
|
|
2542
|
-
y: -
|
|
2540
|
+
x: -2 * E / 6,
|
|
2541
|
+
y: -E
|
|
2543
2542
|
}
|
|
2544
|
-
],
|
|
2545
|
-
return
|
|
2546
|
-
return
|
|
2547
|
-
},
|
|
2548
|
-
}, "inv_trapezoid"),
|
|
2549
|
-
let { shapeSvg:
|
|
2543
|
+
], O = insertPolygonShape(C, T, E, D);
|
|
2544
|
+
return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e) {
|
|
2545
|
+
return intersect_default.polygon(S, D, e);
|
|
2546
|
+
}, C;
|
|
2547
|
+
}, "inv_trapezoid"), rect_right_inv_arrow = /* @__PURE__ */ __name(async (e, S) => {
|
|
2548
|
+
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.width + S.padding, E = w.height + S.padding, D = [
|
|
2550
2549
|
{
|
|
2551
2550
|
x: 0,
|
|
2552
2551
|
y: 0
|
|
2553
2552
|
},
|
|
2554
2553
|
{
|
|
2555
|
-
x:
|
|
2554
|
+
x: T + E / 2,
|
|
2556
2555
|
y: 0
|
|
2557
2556
|
},
|
|
2558
2557
|
{
|
|
2559
|
-
x:
|
|
2560
|
-
y: -
|
|
2558
|
+
x: T,
|
|
2559
|
+
y: -E / 2
|
|
2561
2560
|
},
|
|
2562
2561
|
{
|
|
2563
|
-
x:
|
|
2564
|
-
y: -
|
|
2562
|
+
x: T + E / 2,
|
|
2563
|
+
y: -E
|
|
2565
2564
|
},
|
|
2566
2565
|
{
|
|
2567
2566
|
x: 0,
|
|
2568
|
-
y: -
|
|
2567
|
+
y: -E
|
|
2569
2568
|
}
|
|
2570
|
-
],
|
|
2571
|
-
return
|
|
2572
|
-
return
|
|
2573
|
-
},
|
|
2574
|
-
}, "rect_right_inv_arrow"),
|
|
2575
|
-
let { shapeSvg:
|
|
2576
|
-
return
|
|
2577
|
-
let
|
|
2578
|
-
if (
|
|
2579
|
-
let
|
|
2580
|
-
|
|
2569
|
+
], O = insertPolygonShape(C, T, E, D);
|
|
2570
|
+
return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e) {
|
|
2571
|
+
return intersect_default.polygon(S, D, e);
|
|
2572
|
+
}, C;
|
|
2573
|
+
}, "rect_right_inv_arrow"), cylinder = /* @__PURE__ */ __name(async (e, S) => {
|
|
2574
|
+
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.width + S.padding, E = T / 2, D = E / (2.5 + T / 50), O = w.height + D + S.padding, k = "M 0," + D + " a " + E + "," + D + " 0,0,0 " + T + " 0 a " + E + "," + D + " 0,0,0 " + -T + " 0 l 0," + O + " a " + E + "," + D + " 0,0,0 " + T + " 0 l 0," + -O;
|
|
2575
|
+
return updateNodeBounds(S, C.attr("label-offset-y", D).insert("path", ":first-child").attr("style", S.style).attr("d", k).attr("transform", "translate(" + -T / 2 + "," + -(O / 2 + D) + ")")), S.intersect = function(e) {
|
|
2576
|
+
let C = intersect_default.rect(S, e), w = C.x - S.x;
|
|
2577
|
+
if (E != 0 && (Math.abs(w) < S.width / 2 || Math.abs(w) == S.width / 2 && Math.abs(C.y - S.y) > S.height / 2 - D)) {
|
|
2578
|
+
let T = D * D * (1 - w * w / (E * E));
|
|
2579
|
+
T != 0 && (T = Math.sqrt(T)), T = D - T, e.y - S.y > 0 && (T = -T), C.y += T;
|
|
2581
2580
|
}
|
|
2582
|
-
return
|
|
2583
|
-
},
|
|
2584
|
-
}, "cylinder"),
|
|
2585
|
-
let { shapeSvg:
|
|
2586
|
-
if (
|
|
2587
|
-
let e = new Set(Object.keys(
|
|
2588
|
-
|
|
2589
|
-
|
|
2581
|
+
return C;
|
|
2582
|
+
}, C;
|
|
2583
|
+
}, "cylinder"), rect = /* @__PURE__ */ __name(async (e, C) => {
|
|
2584
|
+
let { shapeSvg: w, bbox: T, halfPadding: E } = await labelHelper(e, C, "node " + C.classes + " " + C.class, !0), D = w.insert("rect", ":first-child"), O = C.positioned ? C.width : T.width + C.padding, k = C.positioned ? C.height : T.height + C.padding, A = C.positioned ? -O / 2 : -T.width / 2 - E, j = C.positioned ? -k / 2 : -T.height / 2 - E;
|
|
2585
|
+
if (D.attr("class", "basic label-container").attr("style", C.style).attr("rx", C.rx).attr("ry", C.ry).attr("x", A).attr("y", j).attr("width", O).attr("height", k), C.props) {
|
|
2586
|
+
let e = new Set(Object.keys(C.props));
|
|
2587
|
+
C.props.borders && (applyNodePropertyBorders(D, C.props.borders, O, k), e.delete("borders")), e.forEach((e) => {
|
|
2588
|
+
log.warn(`Unknown node property ${e}`);
|
|
2590
2589
|
});
|
|
2591
2590
|
}
|
|
2592
|
-
return
|
|
2593
|
-
return
|
|
2594
|
-
},
|
|
2595
|
-
}, "rect"),
|
|
2596
|
-
let { shapeSvg:
|
|
2597
|
-
if (
|
|
2598
|
-
let e = new Set(Object.keys(
|
|
2599
|
-
|
|
2600
|
-
|
|
2591
|
+
return updateNodeBounds(C, D), C.intersect = function(e) {
|
|
2592
|
+
return intersect_default.rect(C, e);
|
|
2593
|
+
}, w;
|
|
2594
|
+
}, "rect"), composite = /* @__PURE__ */ __name(async (e, C) => {
|
|
2595
|
+
let { shapeSvg: w, bbox: T, halfPadding: E } = await labelHelper(e, C, "node " + C.classes, !0), D = w.insert("rect", ":first-child"), O = C.positioned ? C.width : T.width + C.padding, k = C.positioned ? C.height : T.height + C.padding, A = C.positioned ? -O / 2 : -T.width / 2 - E, j = C.positioned ? -k / 2 : -T.height / 2 - E;
|
|
2596
|
+
if (D.attr("class", "basic cluster composite label-container").attr("style", C.style).attr("rx", C.rx).attr("ry", C.ry).attr("x", A).attr("y", j).attr("width", O).attr("height", k), C.props) {
|
|
2597
|
+
let e = new Set(Object.keys(C.props));
|
|
2598
|
+
C.props.borders && (applyNodePropertyBorders(D, C.props.borders, O, k), e.delete("borders")), e.forEach((e) => {
|
|
2599
|
+
log.warn(`Unknown node property ${e}`);
|
|
2601
2600
|
});
|
|
2602
2601
|
}
|
|
2603
|
-
return
|
|
2604
|
-
return
|
|
2605
|
-
},
|
|
2606
|
-
}, "composite"),
|
|
2607
|
-
let { shapeSvg:
|
|
2608
|
-
|
|
2609
|
-
let
|
|
2610
|
-
if (
|
|
2611
|
-
let e = new Set(Object.keys(
|
|
2612
|
-
|
|
2613
|
-
|
|
2602
|
+
return updateNodeBounds(C, D), C.intersect = function(e) {
|
|
2603
|
+
return intersect_default.rect(C, e);
|
|
2604
|
+
}, w;
|
|
2605
|
+
}, "composite"), labelRect = /* @__PURE__ */ __name(async (e, C) => {
|
|
2606
|
+
let { shapeSvg: w } = await labelHelper(e, C, "label", !0);
|
|
2607
|
+
log.trace("Classes = ", C.class);
|
|
2608
|
+
let T = w.insert("rect", ":first-child");
|
|
2609
|
+
if (T.attr("width", 0).attr("height", 0), w.attr("class", "label edgeLabel"), C.props) {
|
|
2610
|
+
let e = new Set(Object.keys(C.props));
|
|
2611
|
+
C.props.borders && (applyNodePropertyBorders(T, C.props.borders, 0, 0), e.delete("borders")), e.forEach((e) => {
|
|
2612
|
+
log.warn(`Unknown node property ${e}`);
|
|
2614
2613
|
});
|
|
2615
2614
|
}
|
|
2616
|
-
return
|
|
2617
|
-
return
|
|
2618
|
-
},
|
|
2615
|
+
return updateNodeBounds(C, T), C.intersect = function(e) {
|
|
2616
|
+
return intersect_default.rect(C, e);
|
|
2617
|
+
}, w;
|
|
2619
2618
|
}, "labelRect");
|
|
2620
|
-
function
|
|
2621
|
-
let
|
|
2622
|
-
|
|
2623
|
-
}, "addBorder"),
|
|
2624
|
-
|
|
2619
|
+
function applyNodePropertyBorders(C, w, T, E) {
|
|
2620
|
+
let D = [], O = /* @__PURE__ */ __name((e) => {
|
|
2621
|
+
D.push(e, 0);
|
|
2622
|
+
}, "addBorder"), k = /* @__PURE__ */ __name((e) => {
|
|
2623
|
+
D.push(0, e);
|
|
2625
2624
|
}, "skipBorder");
|
|
2626
|
-
|
|
2625
|
+
w.includes("t") ? (log.debug("add top border"), O(T)) : k(T), w.includes("r") ? (log.debug("add right border"), O(E)) : k(E), w.includes("b") ? (log.debug("add bottom border"), O(T)) : k(T), w.includes("l") ? (log.debug("add left border"), O(E)) : k(E), C.attr("stroke-dasharray", D.join(" "));
|
|
2627
2626
|
}
|
|
2628
|
-
|
|
2629
|
-
var
|
|
2630
|
-
let
|
|
2631
|
-
|
|
2632
|
-
let
|
|
2633
|
-
|
|
2634
|
-
let
|
|
2627
|
+
__name(applyNodePropertyBorders, "applyNodePropertyBorders");
|
|
2628
|
+
var rectWithTitle = /* @__PURE__ */ __name(async (e, C) => {
|
|
2629
|
+
let w;
|
|
2630
|
+
w = C.classes ? "node " + C.classes : "node default";
|
|
2631
|
+
let T = e.insert("g").attr("class", w).attr("id", C.domId || C.id), E = T.insert("rect", ":first-child"), D = T.insert("line"), O = T.insert("g").attr("class", "label"), j = C.labelText.flat ? C.labelText.flat() : C.labelText, M = "";
|
|
2632
|
+
M = typeof j == "object" ? j[0] : j, log.info("Label text abc79", M, j, typeof j == "object");
|
|
2633
|
+
let P = await createLabel_default(O, M, C.labelStyle, !0, !0), F = {
|
|
2635
2634
|
width: 0,
|
|
2636
2635
|
height: 0
|
|
2637
2636
|
};
|
|
2638
|
-
if (
|
|
2639
|
-
let e =
|
|
2640
|
-
|
|
2637
|
+
if (getEffectiveHtmlLabels(getConfig2())) {
|
|
2638
|
+
let e = P.children[0], S = select_default(P);
|
|
2639
|
+
F = e.getBoundingClientRect(), S.attr("width", F.width), S.attr("height", F.height);
|
|
2641
2640
|
}
|
|
2642
|
-
|
|
2643
|
-
let
|
|
2644
|
-
if (
|
|
2645
|
-
let e =
|
|
2646
|
-
|
|
2641
|
+
log.info("Text 2", j);
|
|
2642
|
+
let I = j.slice(1, j.length), L = P.getBBox(), R = await createLabel_default(O, I.join ? I.join("<br/>") : I, C.labelStyle, !0, !0);
|
|
2643
|
+
if (getEffectiveHtmlLabels(getConfig2())) {
|
|
2644
|
+
let e = R.children[0], S = select_default(R);
|
|
2645
|
+
F = e.getBoundingClientRect(), S.attr("width", F.width), S.attr("height", F.height);
|
|
2647
2646
|
}
|
|
2648
|
-
let
|
|
2649
|
-
return
|
|
2650
|
-
return
|
|
2651
|
-
},
|
|
2652
|
-
}, "rectWithTitle"),
|
|
2653
|
-
let { shapeSvg:
|
|
2654
|
-
return
|
|
2655
|
-
return
|
|
2656
|
-
},
|
|
2657
|
-
}, "stadium"),
|
|
2658
|
-
let { shapeSvg:
|
|
2659
|
-
return
|
|
2660
|
-
return
|
|
2661
|
-
},
|
|
2662
|
-
}, "circle"),
|
|
2663
|
-
let { shapeSvg:
|
|
2664
|
-
return
|
|
2665
|
-
return
|
|
2666
|
-
},
|
|
2667
|
-
}, "doublecircle"),
|
|
2668
|
-
let { shapeSvg:
|
|
2647
|
+
let z = C.padding / 2;
|
|
2648
|
+
return select_default(R).attr("transform", "translate( " + (F.width > L.width ? 0 : (L.width - F.width) / 2) + ", " + (L.height + z + 5) + ")"), select_default(P).attr("transform", "translate( " + (F.width < L.width ? 0 : -(L.width - F.width) / 2) + ", 0)"), F = O.node().getBBox(), O.attr("transform", "translate(" + -F.width / 2 + ", " + (-F.height / 2 - z + 3) + ")"), E.attr("class", "outer title-state").attr("x", -F.width / 2 - z).attr("y", -F.height / 2 - z).attr("width", F.width + C.padding).attr("height", F.height + C.padding), D.attr("class", "divider").attr("x1", -F.width / 2 - z).attr("x2", F.width / 2 + z).attr("y1", -F.height / 2 - z + L.height + z).attr("y2", -F.height / 2 - z + L.height + z), updateNodeBounds(C, E), C.intersect = function(e) {
|
|
2649
|
+
return intersect_default.rect(C, e);
|
|
2650
|
+
}, T;
|
|
2651
|
+
}, "rectWithTitle"), stadium = /* @__PURE__ */ __name(async (e, S) => {
|
|
2652
|
+
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.height + S.padding, E = w.width + T / 4 + S.padding;
|
|
2653
|
+
return updateNodeBounds(S, C.insert("rect", ":first-child").attr("style", S.style).attr("rx", T / 2).attr("ry", T / 2).attr("x", -E / 2).attr("y", -T / 2).attr("width", E).attr("height", T)), S.intersect = function(e) {
|
|
2654
|
+
return intersect_default.rect(S, e);
|
|
2655
|
+
}, C;
|
|
2656
|
+
}, "stadium"), circle2 = /* @__PURE__ */ __name(async (e, C) => {
|
|
2657
|
+
let { shapeSvg: w, bbox: T, halfPadding: E } = await labelHelper(e, C, getClassesFromNode(C, void 0), !0), D = w.insert("circle", ":first-child");
|
|
2658
|
+
return D.attr("style", C.style).attr("rx", C.rx).attr("ry", C.ry).attr("r", T.width / 2 + E).attr("width", T.width + C.padding).attr("height", T.height + C.padding), log.info("Circle main"), updateNodeBounds(C, D), C.intersect = function(e) {
|
|
2659
|
+
return log.info("Circle intersect", C, T.width / 2 + E, e), intersect_default.circle(C, T.width / 2 + E, e);
|
|
2660
|
+
}, w;
|
|
2661
|
+
}, "circle"), doublecircle = /* @__PURE__ */ __name(async (e, C) => {
|
|
2662
|
+
let { shapeSvg: w, bbox: T, halfPadding: E } = await labelHelper(e, C, getClassesFromNode(C, void 0), !0), D = w.insert("g", ":first-child"), O = D.insert("circle"), k = D.insert("circle");
|
|
2663
|
+
return D.attr("class", C.class), O.attr("style", C.style).attr("rx", C.rx).attr("ry", C.ry).attr("r", T.width / 2 + E + 5).attr("width", T.width + C.padding + 10).attr("height", T.height + C.padding + 10), k.attr("style", C.style).attr("rx", C.rx).attr("ry", C.ry).attr("r", T.width / 2 + E).attr("width", T.width + C.padding).attr("height", T.height + C.padding), log.info("DoubleCircle main"), updateNodeBounds(C, O), C.intersect = function(e) {
|
|
2664
|
+
return log.info("DoubleCircle intersect", C, T.width / 2 + E + 5, e), intersect_default.circle(C, T.width / 2 + E + 5, e);
|
|
2665
|
+
}, w;
|
|
2666
|
+
}, "doublecircle"), subroutine = /* @__PURE__ */ __name(async (e, S) => {
|
|
2667
|
+
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.width + S.padding, E = w.height + S.padding, D = [
|
|
2669
2668
|
{
|
|
2670
2669
|
x: 0,
|
|
2671
2670
|
y: 0
|
|
2672
2671
|
},
|
|
2673
2672
|
{
|
|
2674
|
-
x:
|
|
2673
|
+
x: T,
|
|
2675
2674
|
y: 0
|
|
2676
2675
|
},
|
|
2677
2676
|
{
|
|
2678
|
-
x:
|
|
2679
|
-
y: -
|
|
2677
|
+
x: T,
|
|
2678
|
+
y: -E
|
|
2680
2679
|
},
|
|
2681
2680
|
{
|
|
2682
2681
|
x: 0,
|
|
2683
|
-
y: -
|
|
2682
|
+
y: -E
|
|
2684
2683
|
},
|
|
2685
2684
|
{
|
|
2686
2685
|
x: 0,
|
|
@@ -2691,348 +2690,347 @@ var at = /* @__PURE__ */ e(async (e, n) => {
|
|
|
2691
2690
|
y: 0
|
|
2692
2691
|
},
|
|
2693
2692
|
{
|
|
2694
|
-
x:
|
|
2693
|
+
x: T + 8,
|
|
2695
2694
|
y: 0
|
|
2696
2695
|
},
|
|
2697
2696
|
{
|
|
2698
|
-
x:
|
|
2699
|
-
y: -
|
|
2697
|
+
x: T + 8,
|
|
2698
|
+
y: -E
|
|
2700
2699
|
},
|
|
2701
2700
|
{
|
|
2702
2701
|
x: -8,
|
|
2703
|
-
y: -
|
|
2702
|
+
y: -E
|
|
2704
2703
|
},
|
|
2705
2704
|
{
|
|
2706
2705
|
x: -8,
|
|
2707
2706
|
y: 0
|
|
2708
2707
|
}
|
|
2709
|
-
],
|
|
2710
|
-
return
|
|
2711
|
-
return
|
|
2712
|
-
},
|
|
2713
|
-
}, "subroutine"),
|
|
2714
|
-
let
|
|
2715
|
-
return
|
|
2716
|
-
return
|
|
2717
|
-
},
|
|
2718
|
-
}, "start"),
|
|
2719
|
-
let
|
|
2720
|
-
return
|
|
2721
|
-
return
|
|
2722
|
-
},
|
|
2723
|
-
}, "forkJoin"),
|
|
2724
|
-
rhombus:
|
|
2725
|
-
composite
|
|
2726
|
-
question
|
|
2727
|
-
rect
|
|
2728
|
-
labelRect
|
|
2729
|
-
rectWithTitle
|
|
2730
|
-
choice
|
|
2731
|
-
circle:
|
|
2732
|
-
doublecircle
|
|
2733
|
-
stadium
|
|
2734
|
-
hexagon
|
|
2735
|
-
block_arrow
|
|
2736
|
-
rect_left_inv_arrow
|
|
2737
|
-
lean_right
|
|
2738
|
-
lean_left
|
|
2739
|
-
trapezoid
|
|
2740
|
-
inv_trapezoid
|
|
2741
|
-
rect_right_inv_arrow
|
|
2742
|
-
cylinder
|
|
2743
|
-
start
|
|
2744
|
-
end: /* @__PURE__ */
|
|
2745
|
-
let
|
|
2746
|
-
return
|
|
2747
|
-
return
|
|
2748
|
-
},
|
|
2708
|
+
], O = insertPolygonShape(C, T, E, D);
|
|
2709
|
+
return O.attr("style", S.style), updateNodeBounds(S, O), S.intersect = function(e) {
|
|
2710
|
+
return intersect_default.polygon(S, D, e);
|
|
2711
|
+
}, C;
|
|
2712
|
+
}, "subroutine"), start = /* @__PURE__ */ __name((e, S) => {
|
|
2713
|
+
let C = e.insert("g").attr("class", "node default").attr("id", S.domId || S.id), w = C.insert("circle", ":first-child");
|
|
2714
|
+
return w.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), updateNodeBounds(S, w), S.intersect = function(e) {
|
|
2715
|
+
return intersect_default.circle(S, 7, e);
|
|
2716
|
+
}, C;
|
|
2717
|
+
}, "start"), forkJoin = /* @__PURE__ */ __name((e, S, C) => {
|
|
2718
|
+
let w = e.insert("g").attr("class", "node default").attr("id", S.domId || S.id), T = 70, E = 10;
|
|
2719
|
+
return C === "LR" && (T = 10, E = 70), updateNodeBounds(S, w.append("rect").attr("x", -1 * T / 2).attr("y", -1 * E / 2).attr("width", T).attr("height", E).attr("class", "fork-join")), S.height += S.padding / 2, S.width += S.padding / 2, S.intersect = function(e) {
|
|
2720
|
+
return intersect_default.rect(S, e);
|
|
2721
|
+
}, w;
|
|
2722
|
+
}, "forkJoin"), shapes = {
|
|
2723
|
+
rhombus: question,
|
|
2724
|
+
composite,
|
|
2725
|
+
question,
|
|
2726
|
+
rect,
|
|
2727
|
+
labelRect,
|
|
2728
|
+
rectWithTitle,
|
|
2729
|
+
choice,
|
|
2730
|
+
circle: circle2,
|
|
2731
|
+
doublecircle,
|
|
2732
|
+
stadium,
|
|
2733
|
+
hexagon,
|
|
2734
|
+
block_arrow,
|
|
2735
|
+
rect_left_inv_arrow,
|
|
2736
|
+
lean_right,
|
|
2737
|
+
lean_left,
|
|
2738
|
+
trapezoid,
|
|
2739
|
+
inv_trapezoid,
|
|
2740
|
+
rect_right_inv_arrow,
|
|
2741
|
+
cylinder,
|
|
2742
|
+
start,
|
|
2743
|
+
end: /* @__PURE__ */ __name((e, S) => {
|
|
2744
|
+
let C = e.insert("g").attr("class", "node default").attr("id", S.domId || S.id), w = C.insert("circle", ":first-child"), T = C.insert("circle", ":first-child");
|
|
2745
|
+
return T.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), w.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), updateNodeBounds(S, T), S.intersect = function(e) {
|
|
2746
|
+
return intersect_default.circle(S, 7, e);
|
|
2747
|
+
}, C;
|
|
2749
2748
|
}, "end"),
|
|
2750
|
-
note:
|
|
2751
|
-
subroutine
|
|
2752
|
-
fork:
|
|
2753
|
-
join:
|
|
2754
|
-
class_box: /* @__PURE__ */
|
|
2755
|
-
let
|
|
2756
|
-
|
|
2757
|
-
let
|
|
2758
|
-
if (
|
|
2759
|
-
let e =
|
|
2760
|
-
|
|
2749
|
+
note: note_default,
|
|
2750
|
+
subroutine,
|
|
2751
|
+
fork: forkJoin,
|
|
2752
|
+
join: forkJoin,
|
|
2753
|
+
class_box: /* @__PURE__ */ __name(async (e, S) => {
|
|
2754
|
+
let C = S.padding / 2, w;
|
|
2755
|
+
w = S.classes ? "node " + S.classes : "node default";
|
|
2756
|
+
let T = e.insert("g").attr("class", w).attr("id", S.domId || S.id), E = T.insert("rect", ":first-child"), D = T.insert("line"), O = T.insert("line"), j = 0, M = 4, P = T.insert("g").attr("class", "label"), F = 0, I = S.classData.annotations?.[0], L = await createLabel_default(P, S.classData.annotations[0] ? "«" + S.classData.annotations[0] + "»" : "", S.labelStyle, !0, !0), R = L.getBBox();
|
|
2757
|
+
if (getEffectiveHtmlLabels(getConfig2())) {
|
|
2758
|
+
let e = L.children[0], S = select_default(L);
|
|
2759
|
+
R = e.getBoundingClientRect(), S.attr("width", R.width), S.attr("height", R.height);
|
|
2761
2760
|
}
|
|
2762
|
-
|
|
2763
|
-
let
|
|
2764
|
-
|
|
2765
|
-
let
|
|
2766
|
-
|
|
2767
|
-
let
|
|
2768
|
-
if (
|
|
2769
|
-
let e =
|
|
2770
|
-
|
|
2761
|
+
S.classData.annotations[0] && (M += R.height + 4, j += R.width);
|
|
2762
|
+
let z = S.classData.label;
|
|
2763
|
+
S.classData.type !== void 0 && S.classData.type !== "" && (getEffectiveHtmlLabels(getConfig2()) ? z += "<" + S.classData.type + ">" : z += "<" + S.classData.type + ">");
|
|
2764
|
+
let B = await createLabel_default(P, z, S.labelStyle, !0, !0);
|
|
2765
|
+
select_default(B).attr("class", "classTitle");
|
|
2766
|
+
let V = B.getBBox();
|
|
2767
|
+
if (getEffectiveHtmlLabels(getConfig2())) {
|
|
2768
|
+
let e = B.children[0], S = select_default(B);
|
|
2769
|
+
V = e.getBoundingClientRect(), S.attr("width", V.width), S.attr("height", V.height);
|
|
2771
2770
|
}
|
|
2772
|
-
|
|
2773
|
-
let
|
|
2774
|
-
|
|
2775
|
-
let
|
|
2776
|
-
|
|
2777
|
-
let
|
|
2778
|
-
if (
|
|
2779
|
-
let e =
|
|
2780
|
-
|
|
2771
|
+
M += V.height + 4, V.width > j && (j = V.width);
|
|
2772
|
+
let H = [];
|
|
2773
|
+
S.classData.members.forEach(async (e) => {
|
|
2774
|
+
let C = e.getDisplayDetails(), w = C.displayText;
|
|
2775
|
+
getEffectiveHtmlLabels(getConfig2()) && (w = w.replace(/</g, "<").replace(/>/g, ">"));
|
|
2776
|
+
let T = await createLabel_default(P, w, C.cssStyle ? C.cssStyle : S.labelStyle, !0, !0), E = T.getBBox();
|
|
2777
|
+
if (getEffectiveHtmlLabels(getConfig2())) {
|
|
2778
|
+
let e = T.children[0], S = select_default(T);
|
|
2779
|
+
E = e.getBoundingClientRect(), S.attr("width", E.width), S.attr("height", E.height);
|
|
2781
2780
|
}
|
|
2782
|
-
|
|
2783
|
-
}),
|
|
2784
|
-
let
|
|
2785
|
-
if (
|
|
2786
|
-
let
|
|
2787
|
-
|
|
2788
|
-
let
|
|
2789
|
-
if (
|
|
2790
|
-
let e =
|
|
2791
|
-
|
|
2781
|
+
E.width > j && (j = E.width), M += E.height + 4, H.push(T);
|
|
2782
|
+
}), M += 8;
|
|
2783
|
+
let U = [];
|
|
2784
|
+
if (S.classData.methods.forEach(async (e) => {
|
|
2785
|
+
let C = e.getDisplayDetails(), w = C.displayText;
|
|
2786
|
+
getEffectiveHtmlLabels(getConfig2()) && (w = w.replace(/</g, "<").replace(/>/g, ">"));
|
|
2787
|
+
let T = await createLabel_default(P, w, C.cssStyle ? C.cssStyle : S.labelStyle, !0, !0), E = T.getBBox();
|
|
2788
|
+
if (getEffectiveHtmlLabels(getConfig2())) {
|
|
2789
|
+
let e = T.children[0], S = select_default(T);
|
|
2790
|
+
E = e.getBoundingClientRect(), S.attr("width", E.width), S.attr("height", E.height);
|
|
2792
2791
|
}
|
|
2793
|
-
|
|
2794
|
-
}),
|
|
2795
|
-
let e = (
|
|
2796
|
-
|
|
2792
|
+
E.width > j && (j = E.width), M += E.height + 4, U.push(T);
|
|
2793
|
+
}), M += 8, I) {
|
|
2794
|
+
let e = (j - R.width) / 2;
|
|
2795
|
+
select_default(L).attr("transform", "translate( " + (-1 * j / 2 + e) + ", " + -1 * M / 2 + ")"), F = R.height + 4;
|
|
2797
2796
|
}
|
|
2798
|
-
let
|
|
2799
|
-
return
|
|
2800
|
-
|
|
2801
|
-
let
|
|
2802
|
-
|
|
2803
|
-
}),
|
|
2804
|
-
|
|
2805
|
-
let
|
|
2806
|
-
|
|
2807
|
-
}),
|
|
2808
|
-
return
|
|
2809
|
-
},
|
|
2797
|
+
let W = (j - V.width) / 2;
|
|
2798
|
+
return select_default(B).attr("transform", "translate( " + (-1 * j / 2 + W) + ", " + (-1 * M / 2 + F) + ")"), F += V.height + 4, D.attr("class", "divider").attr("x1", -j / 2 - C).attr("x2", j / 2 + C).attr("y1", -M / 2 - C + 8 + F).attr("y2", -M / 2 - C + 8 + F), F += 8, H.forEach((e) => {
|
|
2799
|
+
select_default(e).attr("transform", "translate( " + -j / 2 + ", " + (-1 * M / 2 + F + 8 / 2) + ")");
|
|
2800
|
+
let S = e?.getBBox();
|
|
2801
|
+
F += (S?.height ?? 0) + 4;
|
|
2802
|
+
}), F += 8, O.attr("class", "divider").attr("x1", -j / 2 - C).attr("x2", j / 2 + C).attr("y1", -M / 2 - C + 8 + F).attr("y2", -M / 2 - C + 8 + F), F += 8, U.forEach((e) => {
|
|
2803
|
+
select_default(e).attr("transform", "translate( " + -j / 2 + ", " + (-1 * M / 2 + F) + ")");
|
|
2804
|
+
let S = e?.getBBox();
|
|
2805
|
+
F += (S?.height ?? 0) + 4;
|
|
2806
|
+
}), E.attr("style", S.style).attr("class", "outer title-state").attr("x", -j / 2 - C).attr("y", -(M / 2) - C).attr("width", j + S.padding).attr("height", M + S.padding), updateNodeBounds(S, E), S.intersect = function(e) {
|
|
2807
|
+
return intersect_default.rect(S, e);
|
|
2808
|
+
}, T;
|
|
2810
2809
|
}, "class_box")
|
|
2811
|
-
},
|
|
2812
|
-
let
|
|
2813
|
-
if (
|
|
2814
|
-
let
|
|
2815
|
-
|
|
2816
|
-
} else
|
|
2817
|
-
return
|
|
2818
|
-
}, "insertNode"),
|
|
2819
|
-
let
|
|
2820
|
-
|
|
2821
|
-
let
|
|
2822
|
-
return e.clusterNode ?
|
|
2810
|
+
}, nodeElems = {}, insertNode = /* @__PURE__ */ __name(async (e, S, C) => {
|
|
2811
|
+
let w, T;
|
|
2812
|
+
if (S.link) {
|
|
2813
|
+
let E;
|
|
2814
|
+
getConfig2().securityLevel === "sandbox" ? E = "_top" : S.linkTarget && (E = S.linkTarget || "_blank"), w = e.insert("svg:a").attr("xlink:href", S.link).attr("target", E), T = await shapes[S.shape](w, S, C);
|
|
2815
|
+
} else T = await shapes[S.shape](e, S, C), w = T;
|
|
2816
|
+
return S.tooltip && T.attr("title", S.tooltip), S.class && T.attr("class", "node default " + S.class), nodeElems[S.id] = w, S.haveCallback && nodeElems[S.id].attr("class", nodeElems[S.id].attr("class") + " clickable"), w;
|
|
2817
|
+
}, "insertNode"), positionNode = /* @__PURE__ */ __name((e) => {
|
|
2818
|
+
let C = nodeElems[e.id];
|
|
2819
|
+
log.trace("Transforming node", e.diff, e, "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")");
|
|
2820
|
+
let w = e.diff || 0;
|
|
2821
|
+
return e.clusterNode ? C.attr("transform", "translate(" + (e.x + w - e.width / 2) + ", " + (e.y - e.height / 2 - 8) + ")") : C.attr("transform", "translate(" + e.x + ", " + e.y + ")"), w;
|
|
2823
2822
|
}, "positionNode");
|
|
2824
|
-
function
|
|
2825
|
-
let
|
|
2826
|
-
(
|
|
2827
|
-
let
|
|
2828
|
-
switch (
|
|
2823
|
+
function getNodeFromBlock(e, S, C = !1) {
|
|
2824
|
+
let w = e, T = "default";
|
|
2825
|
+
(w?.classes?.length || 0) > 0 && (T = (w?.classes ?? []).join(" ")), T += " flowchart-label";
|
|
2826
|
+
let E = 0, D = "", k;
|
|
2827
|
+
switch (w.type) {
|
|
2829
2828
|
case "round":
|
|
2830
|
-
|
|
2829
|
+
E = 5, D = "rect";
|
|
2831
2830
|
break;
|
|
2832
2831
|
case "composite":
|
|
2833
|
-
|
|
2832
|
+
E = 0, D = "composite", k = 0;
|
|
2834
2833
|
break;
|
|
2835
2834
|
case "square":
|
|
2836
|
-
|
|
2835
|
+
D = "rect";
|
|
2837
2836
|
break;
|
|
2838
2837
|
case "diamond":
|
|
2839
|
-
|
|
2838
|
+
D = "question";
|
|
2840
2839
|
break;
|
|
2841
2840
|
case "hexagon":
|
|
2842
|
-
|
|
2841
|
+
D = "hexagon";
|
|
2843
2842
|
break;
|
|
2844
2843
|
case "block_arrow":
|
|
2845
|
-
|
|
2844
|
+
D = "block_arrow";
|
|
2846
2845
|
break;
|
|
2847
2846
|
case "odd":
|
|
2848
|
-
|
|
2847
|
+
D = "rect_left_inv_arrow";
|
|
2849
2848
|
break;
|
|
2850
2849
|
case "lean_right":
|
|
2851
|
-
|
|
2850
|
+
D = "lean_right";
|
|
2852
2851
|
break;
|
|
2853
2852
|
case "lean_left":
|
|
2854
|
-
|
|
2853
|
+
D = "lean_left";
|
|
2855
2854
|
break;
|
|
2856
2855
|
case "trapezoid":
|
|
2857
|
-
|
|
2856
|
+
D = "trapezoid";
|
|
2858
2857
|
break;
|
|
2859
2858
|
case "inv_trapezoid":
|
|
2860
|
-
|
|
2859
|
+
D = "inv_trapezoid";
|
|
2861
2860
|
break;
|
|
2862
2861
|
case "rect_left_inv_arrow":
|
|
2863
|
-
|
|
2862
|
+
D = "rect_left_inv_arrow";
|
|
2864
2863
|
break;
|
|
2865
2864
|
case "circle":
|
|
2866
|
-
|
|
2865
|
+
D = "circle";
|
|
2867
2866
|
break;
|
|
2868
2867
|
case "ellipse":
|
|
2869
|
-
|
|
2868
|
+
D = "ellipse";
|
|
2870
2869
|
break;
|
|
2871
2870
|
case "stadium":
|
|
2872
|
-
|
|
2871
|
+
D = "stadium";
|
|
2873
2872
|
break;
|
|
2874
2873
|
case "subroutine":
|
|
2875
|
-
|
|
2874
|
+
D = "subroutine";
|
|
2876
2875
|
break;
|
|
2877
2876
|
case "cylinder":
|
|
2878
|
-
|
|
2877
|
+
D = "cylinder";
|
|
2879
2878
|
break;
|
|
2880
2879
|
case "group":
|
|
2881
|
-
|
|
2880
|
+
D = "rect";
|
|
2882
2881
|
break;
|
|
2883
2882
|
case "doublecircle":
|
|
2884
|
-
|
|
2883
|
+
D = "doublecircle";
|
|
2885
2884
|
break;
|
|
2886
|
-
default:
|
|
2885
|
+
default: D = "rect";
|
|
2887
2886
|
}
|
|
2888
|
-
let
|
|
2887
|
+
let A = getStylesFromArray(w?.styles ?? []), j = w.label, M = w.size ?? {
|
|
2889
2888
|
width: 0,
|
|
2890
2889
|
height: 0,
|
|
2891
2890
|
x: 0,
|
|
2892
2891
|
y: 0
|
|
2893
|
-
},
|
|
2892
|
+
}, N = S.getDiagramId();
|
|
2894
2893
|
return {
|
|
2895
|
-
labelStyle:
|
|
2896
|
-
shape:
|
|
2897
|
-
labelText:
|
|
2898
|
-
rx:
|
|
2899
|
-
ry:
|
|
2900
|
-
class:
|
|
2901
|
-
style:
|
|
2902
|
-
id:
|
|
2903
|
-
domId:
|
|
2904
|
-
directions:
|
|
2905
|
-
width:
|
|
2906
|
-
height:
|
|
2907
|
-
x:
|
|
2908
|
-
y:
|
|
2909
|
-
positioned:
|
|
2894
|
+
labelStyle: A.labelStyle,
|
|
2895
|
+
shape: D,
|
|
2896
|
+
labelText: j,
|
|
2897
|
+
rx: E,
|
|
2898
|
+
ry: E,
|
|
2899
|
+
class: T,
|
|
2900
|
+
style: A.style,
|
|
2901
|
+
id: w.id,
|
|
2902
|
+
domId: N ? `${N}-${w.id}` : w.id,
|
|
2903
|
+
directions: w.directions,
|
|
2904
|
+
width: M.width,
|
|
2905
|
+
height: M.height,
|
|
2906
|
+
x: M.x,
|
|
2907
|
+
y: M.y,
|
|
2908
|
+
positioned: C,
|
|
2910
2909
|
intersect: void 0,
|
|
2911
|
-
type:
|
|
2912
|
-
padding:
|
|
2910
|
+
type: w.type,
|
|
2911
|
+
padding: k ?? getConfig()?.block?.padding ?? 0
|
|
2913
2912
|
};
|
|
2914
2913
|
}
|
|
2915
|
-
|
|
2916
|
-
async function
|
|
2917
|
-
let
|
|
2918
|
-
if (
|
|
2919
|
-
let
|
|
2920
|
-
|
|
2921
|
-
width:
|
|
2922
|
-
height:
|
|
2914
|
+
__name(getNodeFromBlock, "getNodeFromBlock");
|
|
2915
|
+
async function calculateBlockSize(e, S, C) {
|
|
2916
|
+
let w = getNodeFromBlock(S, C, !1);
|
|
2917
|
+
if (w.type === "group") return;
|
|
2918
|
+
let T = await insertNode(e, w, { config: getConfig() }), E = T.node().getBBox(), D = C.getBlock(w.id);
|
|
2919
|
+
D.size = {
|
|
2920
|
+
width: E.width,
|
|
2921
|
+
height: E.height,
|
|
2923
2922
|
x: 0,
|
|
2924
2923
|
y: 0,
|
|
2925
|
-
node:
|
|
2926
|
-
},
|
|
2924
|
+
node: T
|
|
2925
|
+
}, C.setBlock(D), T.remove();
|
|
2927
2926
|
}
|
|
2928
|
-
|
|
2929
|
-
async function
|
|
2930
|
-
let
|
|
2931
|
-
|
|
2927
|
+
__name(calculateBlockSize, "calculateBlockSize");
|
|
2928
|
+
async function insertBlockPositioned(e, S, C) {
|
|
2929
|
+
let w = getNodeFromBlock(S, C, !0);
|
|
2930
|
+
C.getBlock(w.id).type !== "space" && (await insertNode(e, w, { config: getConfig() }), S.intersect = w?.intersect, positionNode(w));
|
|
2932
2931
|
}
|
|
2933
|
-
|
|
2934
|
-
async function
|
|
2935
|
-
for (let
|
|
2932
|
+
__name(insertBlockPositioned, "insertBlockPositioned");
|
|
2933
|
+
async function performOperations(e, S, C, w) {
|
|
2934
|
+
for (let T of S) await w(e, T, C), T.children && await performOperations(e, T.children, C, w);
|
|
2936
2935
|
}
|
|
2937
|
-
|
|
2938
|
-
async function
|
|
2939
|
-
await
|
|
2936
|
+
__name(performOperations, "performOperations");
|
|
2937
|
+
async function calculateBlockSizes(e, S, C) {
|
|
2938
|
+
await performOperations(e, S, C, calculateBlockSize);
|
|
2940
2939
|
}
|
|
2941
|
-
|
|
2942
|
-
async function
|
|
2943
|
-
await
|
|
2940
|
+
__name(calculateBlockSizes, "calculateBlockSizes");
|
|
2941
|
+
async function insertBlocks(e, S, C) {
|
|
2942
|
+
await performOperations(e, S, C, insertBlockPositioned);
|
|
2944
2943
|
}
|
|
2945
|
-
|
|
2946
|
-
async function
|
|
2947
|
-
let
|
|
2944
|
+
__name(insertBlocks, "insertBlocks");
|
|
2945
|
+
async function insertEdges(e, S, C, w, T) {
|
|
2946
|
+
let E = new Graph({
|
|
2948
2947
|
multigraph: !0,
|
|
2949
2948
|
compound: !0
|
|
2950
2949
|
});
|
|
2951
|
-
|
|
2950
|
+
E.setGraph({
|
|
2952
2951
|
rankdir: "TB",
|
|
2953
2952
|
nodesep: 10,
|
|
2954
2953
|
ranksep: 10,
|
|
2955
2954
|
marginx: 8,
|
|
2956
2955
|
marginy: 8
|
|
2957
2956
|
});
|
|
2958
|
-
for (let e of
|
|
2957
|
+
for (let e of C) e.size && E.setNode(e.id, {
|
|
2959
2958
|
width: e.size.width,
|
|
2960
2959
|
height: e.size.height,
|
|
2961
2960
|
intersect: e.intersect
|
|
2962
2961
|
});
|
|
2963
|
-
for (let
|
|
2964
|
-
let
|
|
2965
|
-
if (
|
|
2966
|
-
let
|
|
2962
|
+
for (let C of S) if (C.start && C.end) {
|
|
2963
|
+
let S = w.getBlock(C.start), D = w.getBlock(C.end);
|
|
2964
|
+
if (S?.size && D?.size) {
|
|
2965
|
+
let w = S.size, O = D.size, k = [
|
|
2967
2966
|
{
|
|
2968
|
-
x:
|
|
2969
|
-
y:
|
|
2967
|
+
x: w.x,
|
|
2968
|
+
y: w.y
|
|
2970
2969
|
},
|
|
2971
2970
|
{
|
|
2972
|
-
x:
|
|
2973
|
-
y:
|
|
2971
|
+
x: w.x + (O.x - w.x) / 2,
|
|
2972
|
+
y: w.y + (O.y - w.y) / 2
|
|
2974
2973
|
},
|
|
2975
2974
|
{
|
|
2976
|
-
x:
|
|
2977
|
-
y:
|
|
2975
|
+
x: O.x,
|
|
2976
|
+
y: O.y
|
|
2978
2977
|
}
|
|
2979
|
-
],
|
|
2980
|
-
|
|
2981
|
-
v:
|
|
2982
|
-
w:
|
|
2983
|
-
name:
|
|
2978
|
+
], A = T ? `${T}-${C.id}` : C.id;
|
|
2979
|
+
insertEdge(e, {
|
|
2980
|
+
v: C.start,
|
|
2981
|
+
w: C.end,
|
|
2982
|
+
name: A
|
|
2984
2983
|
}, {
|
|
2985
|
-
...
|
|
2986
|
-
id:
|
|
2987
|
-
arrowTypeEnd:
|
|
2988
|
-
arrowTypeStart:
|
|
2989
|
-
points:
|
|
2984
|
+
...C,
|
|
2985
|
+
id: A,
|
|
2986
|
+
arrowTypeEnd: C.arrowTypeEnd,
|
|
2987
|
+
arrowTypeStart: C.arrowTypeStart,
|
|
2988
|
+
points: k,
|
|
2990
2989
|
classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
|
|
2991
|
-
}, void 0, "block",
|
|
2992
|
-
...
|
|
2993
|
-
label:
|
|
2990
|
+
}, void 0, "block", E, T), C.label && (await insertEdgeLabel(e, {
|
|
2991
|
+
...C,
|
|
2992
|
+
label: C.label,
|
|
2994
2993
|
labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
|
|
2995
|
-
arrowTypeEnd:
|
|
2996
|
-
arrowTypeStart:
|
|
2997
|
-
points:
|
|
2994
|
+
arrowTypeEnd: C.arrowTypeEnd,
|
|
2995
|
+
arrowTypeStart: C.arrowTypeStart,
|
|
2996
|
+
points: k,
|
|
2998
2997
|
classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
|
|
2999
|
-
}),
|
|
3000
|
-
...
|
|
3001
|
-
x:
|
|
3002
|
-
y:
|
|
3003
|
-
}, { originalPath:
|
|
2998
|
+
}), positionEdgeLabel({
|
|
2999
|
+
...C,
|
|
3000
|
+
x: k[1].x,
|
|
3001
|
+
y: k[1].y
|
|
3002
|
+
}, { originalPath: k }));
|
|
3004
3003
|
}
|
|
3005
3004
|
}
|
|
3006
3005
|
}
|
|
3007
|
-
|
|
3008
|
-
var
|
|
3009
|
-
parser:
|
|
3010
|
-
db:
|
|
3006
|
+
__name(insertEdges, "insertEdges");
|
|
3007
|
+
var diagram = {
|
|
3008
|
+
parser: block_default,
|
|
3009
|
+
db: blockDB_default,
|
|
3011
3010
|
renderer: {
|
|
3012
|
-
draw: /* @__PURE__ */
|
|
3013
|
-
let { securityLevel:
|
|
3014
|
-
|
|
3015
|
-
let
|
|
3016
|
-
|
|
3017
|
-
let
|
|
3018
|
-
|
|
3011
|
+
draw: /* @__PURE__ */ __name(async function(e, C, w, T) {
|
|
3012
|
+
let { securityLevel: E, block: k } = getConfig(), A = T.db;
|
|
3013
|
+
A.setDiagramId(C);
|
|
3014
|
+
let j;
|
|
3015
|
+
E === "sandbox" && (j = select_default("#i" + C));
|
|
3016
|
+
let M = select_default(E === "sandbox" ? j.nodes()[0].contentDocument.body : "body"), P = E === "sandbox" ? M.select(`[id="${C}"]`) : select_default(`[id="${C}"]`);
|
|
3017
|
+
markers_default(P, [
|
|
3019
3018
|
"point",
|
|
3020
3019
|
"circle",
|
|
3021
3020
|
"cross"
|
|
3022
|
-
],
|
|
3023
|
-
let
|
|
3024
|
-
await
|
|
3025
|
-
let
|
|
3026
|
-
if (await
|
|
3027
|
-
let e =
|
|
3028
|
-
|
|
3021
|
+
], T.type, C);
|
|
3022
|
+
let F = A.getBlocks(), I = A.getBlocksFlat(), L = A.getEdges(), R = P.insert("g").attr("class", "block");
|
|
3023
|
+
await calculateBlockSizes(R, F, A);
|
|
3024
|
+
let z = layout(A);
|
|
3025
|
+
if (await insertBlocks(R, F, A), await insertEdges(R, L, I, A, C), z) {
|
|
3026
|
+
let e = z, C = Math.max(1, Math.round(.125 * (e.width / e.height))), w = e.height + C + 10, T = e.width + 10, { useMaxWidth: E } = k;
|
|
3027
|
+
configureSvgSize(P, w, T, !!E), log.debug("Here Bounds", z, e), P.attr("viewBox", `${e.x - 5} ${e.y - 5} ${e.width + 10} ${e.height + 10}`);
|
|
3029
3028
|
}
|
|
3030
3029
|
}, "draw"),
|
|
3031
|
-
getClasses: /* @__PURE__ */
|
|
3032
|
-
return
|
|
3030
|
+
getClasses: /* @__PURE__ */ __name(function(e, S) {
|
|
3031
|
+
return S.db.getClasses();
|
|
3033
3032
|
}, "getClasses")
|
|
3034
3033
|
},
|
|
3035
|
-
styles:
|
|
3034
|
+
styles: styles_default
|
|
3036
3035
|
};
|
|
3037
|
-
|
|
3038
|
-
export { xt as diagram };
|
|
3036
|
+
export { diagram };
|