@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,595 +1,594 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
let
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
n.angle = Math.atan2(n.x - e.x, n.y - e.y);
|
|
1
|
+
var SMALL$1 = 1e-10;
|
|
2
|
+
function intersectionArea(d, g) {
|
|
3
|
+
let _ = getIntersectionPoints(d), y = _.filter((e) => containedInCircles(e, d)), b = 0, x = 0, S = [];
|
|
4
|
+
if (y.length > 1) {
|
|
5
|
+
let e = getCenter(y);
|
|
6
|
+
for (let d = 0; d < y.length; ++d) {
|
|
7
|
+
let f = y[d];
|
|
8
|
+
f.angle = Math.atan2(f.x - e.x, f.y - e.y);
|
|
10
9
|
}
|
|
11
|
-
|
|
12
|
-
let
|
|
13
|
-
for (let e = 0; e <
|
|
14
|
-
let
|
|
15
|
-
|
|
16
|
-
let
|
|
17
|
-
x: (
|
|
18
|
-
y: (
|
|
19
|
-
},
|
|
20
|
-
for (let e = 0; e <
|
|
21
|
-
let
|
|
22
|
-
|
|
23
|
-
let
|
|
24
|
-
x:
|
|
25
|
-
y:
|
|
10
|
+
y.sort((e, d) => d.angle - e.angle);
|
|
11
|
+
let f = y[y.length - 1];
|
|
12
|
+
for (let e = 0; e < y.length; ++e) {
|
|
13
|
+
let p = y[e];
|
|
14
|
+
x += (f.x + p.x) * (p.y - f.y);
|
|
15
|
+
let g = {
|
|
16
|
+
x: (p.x + f.x) / 2,
|
|
17
|
+
y: (p.y + f.y) / 2
|
|
18
|
+
}, _ = null;
|
|
19
|
+
for (let e = 0; e < p.parentIndex.length; ++e) if (f.parentIndex.includes(p.parentIndex[e])) {
|
|
20
|
+
let m = d[p.parentIndex[e]], v = Math.atan2(p.x - m.x, p.y - m.y), y = Math.atan2(f.x - m.x, f.y - m.y), b = y - v;
|
|
21
|
+
b < 0 && (b += 2 * Math.PI);
|
|
22
|
+
let x = y - b / 2, S = distance(g, {
|
|
23
|
+
x: m.x + m.radius * Math.sin(x),
|
|
24
|
+
y: m.y + m.radius * Math.cos(x)
|
|
26
25
|
});
|
|
27
|
-
|
|
28
|
-
circle:
|
|
29
|
-
width:
|
|
30
|
-
p1:
|
|
31
|
-
p2:
|
|
32
|
-
large:
|
|
26
|
+
S > m.radius * 2 && (S = m.radius * 2), (_ == null || _.width > S) && (_ = {
|
|
27
|
+
circle: m,
|
|
28
|
+
width: S,
|
|
29
|
+
p1: p,
|
|
30
|
+
p2: f,
|
|
31
|
+
large: S > m.radius,
|
|
33
32
|
sweep: !0
|
|
34
33
|
});
|
|
35
34
|
}
|
|
36
|
-
|
|
35
|
+
_ != null && (S.push(_), b += circleArea(_.circle.radius, _.width), f = p);
|
|
37
36
|
}
|
|
38
37
|
} else {
|
|
39
|
-
let
|
|
40
|
-
for (let e = 1; e <
|
|
41
|
-
let
|
|
42
|
-
for (let e = 0; e <
|
|
43
|
-
|
|
38
|
+
let f = d[0];
|
|
39
|
+
for (let e = 1; e < d.length; ++e) d[e].radius < f.radius && (f = d[e]);
|
|
40
|
+
let p = !1;
|
|
41
|
+
for (let e = 0; e < d.length; ++e) if (distance(d[e], f) > Math.abs(f.radius - d[e].radius)) {
|
|
42
|
+
p = !0;
|
|
44
43
|
break;
|
|
45
44
|
}
|
|
46
|
-
|
|
47
|
-
circle:
|
|
45
|
+
p ? b = x = 0 : (b = f.radius * f.radius * Math.PI, S.push({
|
|
46
|
+
circle: f,
|
|
48
47
|
p1: {
|
|
49
|
-
x:
|
|
50
|
-
y:
|
|
48
|
+
x: f.x,
|
|
49
|
+
y: f.y + f.radius
|
|
51
50
|
},
|
|
52
51
|
p2: {
|
|
53
|
-
x:
|
|
54
|
-
y:
|
|
52
|
+
x: f.x - SMALL$1,
|
|
53
|
+
y: f.y + f.radius
|
|
55
54
|
},
|
|
56
|
-
width:
|
|
55
|
+
width: f.radius * 2,
|
|
57
56
|
large: !0,
|
|
58
57
|
sweep: !0
|
|
59
58
|
}));
|
|
60
59
|
}
|
|
61
|
-
return
|
|
60
|
+
return x /= 2, g && (g.area = b + x, g.arcArea = b, g.polygonArea = x, g.arcs = S, g.innerPoints = y, g.intersectionPoints = _), b + x;
|
|
62
61
|
}
|
|
63
|
-
function
|
|
64
|
-
return
|
|
62
|
+
function containedInCircles(d, f) {
|
|
63
|
+
return f.every((f) => distance(d, f) < f.radius + SMALL$1);
|
|
65
64
|
}
|
|
66
|
-
function
|
|
67
|
-
let
|
|
68
|
-
for (let
|
|
69
|
-
let
|
|
70
|
-
for (let e of
|
|
65
|
+
function getIntersectionPoints(e) {
|
|
66
|
+
let d = [];
|
|
67
|
+
for (let f = 0; f < e.length; ++f) for (let p = f + 1; p < e.length; ++p) {
|
|
68
|
+
let m = circleCircleIntersection(e[f], e[p]);
|
|
69
|
+
for (let e of m) e.parentIndex = [f, p], d.push(e);
|
|
71
70
|
}
|
|
72
|
-
return
|
|
71
|
+
return d;
|
|
73
72
|
}
|
|
74
|
-
function
|
|
75
|
-
return e * e * Math.acos(1 -
|
|
73
|
+
function circleArea(e, d) {
|
|
74
|
+
return e * e * Math.acos(1 - d / e) - (e - d) * Math.sqrt(d * (2 * e - d));
|
|
76
75
|
}
|
|
77
|
-
function
|
|
78
|
-
return Math.sqrt((e.x -
|
|
76
|
+
function distance(e, d) {
|
|
77
|
+
return Math.sqrt((e.x - d.x) * (e.x - d.x) + (e.y - d.y) * (e.y - d.y));
|
|
79
78
|
}
|
|
80
|
-
function
|
|
81
|
-
if (
|
|
82
|
-
if (
|
|
83
|
-
let
|
|
84
|
-
return
|
|
79
|
+
function circleOverlap(e, d, f) {
|
|
80
|
+
if (f >= e + d) return 0;
|
|
81
|
+
if (f <= Math.abs(e - d)) return Math.PI * Math.min(e, d) * Math.min(e, d);
|
|
82
|
+
let p = e - (f * f - d * d + e * e) / (2 * f), h = d - (f * f - e * e + d * d) / (2 * f);
|
|
83
|
+
return circleArea(e, p) + circleArea(d, h);
|
|
85
84
|
}
|
|
86
|
-
function
|
|
87
|
-
let
|
|
88
|
-
if (
|
|
89
|
-
let
|
|
85
|
+
function circleCircleIntersection(e, d) {
|
|
86
|
+
let f = distance(e, d), p = e.radius, m = d.radius;
|
|
87
|
+
if (f >= p + m || f <= Math.abs(p - m)) return [];
|
|
88
|
+
let g = (p * p - m * m + f * f) / (2 * f), _ = Math.sqrt(p * p - g * g), v = e.x + g * (d.x - e.x) / f, y = e.y + g * (d.y - e.y) / f, b = -(d.y - e.y) * (_ / f), x = -(d.x - e.x) * (_ / f);
|
|
90
89
|
return [{
|
|
91
|
-
x:
|
|
92
|
-
y:
|
|
90
|
+
x: v + b,
|
|
91
|
+
y: y - x
|
|
93
92
|
}, {
|
|
94
|
-
x:
|
|
95
|
-
y:
|
|
93
|
+
x: v - b,
|
|
94
|
+
y: y + x
|
|
96
95
|
}];
|
|
97
96
|
}
|
|
98
|
-
function
|
|
99
|
-
let
|
|
97
|
+
function getCenter(e) {
|
|
98
|
+
let d = {
|
|
100
99
|
x: 0,
|
|
101
100
|
y: 0
|
|
102
101
|
};
|
|
103
|
-
for (let
|
|
104
|
-
return
|
|
105
|
-
}
|
|
106
|
-
function
|
|
107
|
-
|
|
108
|
-
let
|
|
109
|
-
if (
|
|
110
|
-
if (
|
|
111
|
-
if (
|
|
112
|
-
for (let
|
|
113
|
-
|
|
114
|
-
let
|
|
115
|
-
if (
|
|
116
|
-
}
|
|
117
|
-
return
|
|
118
|
-
}
|
|
119
|
-
function
|
|
120
|
-
let
|
|
121
|
-
for (let
|
|
122
|
-
return
|
|
123
|
-
}
|
|
124
|
-
function
|
|
125
|
-
return
|
|
126
|
-
}
|
|
127
|
-
function
|
|
128
|
-
let
|
|
129
|
-
for (let
|
|
130
|
-
return
|
|
131
|
-
}
|
|
132
|
-
function
|
|
133
|
-
return Math.sqrt(
|
|
134
|
-
}
|
|
135
|
-
function
|
|
136
|
-
for (let
|
|
137
|
-
}
|
|
138
|
-
function
|
|
139
|
-
for (let
|
|
140
|
-
}
|
|
141
|
-
function
|
|
142
|
-
|
|
143
|
-
let
|
|
144
|
-
|
|
145
|
-
for (let
|
|
146
|
-
let
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
-
function
|
|
150
|
-
for (let
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
let
|
|
154
|
-
for (let
|
|
155
|
-
if (
|
|
156
|
-
let e =
|
|
157
|
-
let
|
|
158
|
-
return
|
|
102
|
+
for (let f of e) d.x += f.x, d.y += f.y;
|
|
103
|
+
return d.x /= e.length, d.y /= e.length, d;
|
|
104
|
+
}
|
|
105
|
+
function bisect(e, d, f, p) {
|
|
106
|
+
p ||= {};
|
|
107
|
+
let m = p.maxIterations || 100, h = p.tolerance || 1e-10, g = e(d), _ = e(f), v = f - d;
|
|
108
|
+
if (g * _ > 0) throw "Initial bisect points must have opposite signs";
|
|
109
|
+
if (g === 0) return d;
|
|
110
|
+
if (_ === 0) return f;
|
|
111
|
+
for (let f = 0; f < m; ++f) {
|
|
112
|
+
v /= 2;
|
|
113
|
+
let f = d + v, p = e(f);
|
|
114
|
+
if (p * g >= 0 && (d = f), Math.abs(v) < h || p === 0) return f;
|
|
115
|
+
}
|
|
116
|
+
return d + v;
|
|
117
|
+
}
|
|
118
|
+
function zeros(e) {
|
|
119
|
+
let d = Array(e);
|
|
120
|
+
for (let f = 0; f < e; ++f) d[f] = 0;
|
|
121
|
+
return d;
|
|
122
|
+
}
|
|
123
|
+
function zerosM(e, d) {
|
|
124
|
+
return zeros(e).map(() => zeros(d));
|
|
125
|
+
}
|
|
126
|
+
function dot(e, d) {
|
|
127
|
+
let f = 0;
|
|
128
|
+
for (let p = 0; p < e.length; ++p) f += e[p] * d[p];
|
|
129
|
+
return f;
|
|
130
|
+
}
|
|
131
|
+
function norm2(e) {
|
|
132
|
+
return Math.sqrt(dot(e, e));
|
|
133
|
+
}
|
|
134
|
+
function scale(e, d, f) {
|
|
135
|
+
for (let p = 0; p < d.length; ++p) e[p] = d[p] * f;
|
|
136
|
+
}
|
|
137
|
+
function weightedSum(e, d, f, p, m) {
|
|
138
|
+
for (let h = 0; h < e.length; ++h) e[h] = d * f[h] + p * m[h];
|
|
139
|
+
}
|
|
140
|
+
function nelderMead(e, d, f) {
|
|
141
|
+
f ||= {};
|
|
142
|
+
let p = f.maxIterations || d.length * 200, m = f.nonZeroDelta || 1.05, h = f.zeroDelta || .001, g = f.minErrorDelta || 1e-6, _ = f.minErrorDelta || 1e-5, v = f.rho === void 0 ? 1 : f.rho, y = f.chi === void 0 ? 2 : f.chi, b = f.psi === void 0 ? -.5 : f.psi, x = f.sigma === void 0 ? .5 : f.sigma, S, C = d.length, w = Array(C + 1);
|
|
143
|
+
w[0] = d, w[0].fx = e(d), w[0].id = 0;
|
|
144
|
+
for (let f = 0; f < C; ++f) {
|
|
145
|
+
let p = d.slice();
|
|
146
|
+
p[f] = p[f] ? p[f] * m : h, w[f + 1] = p, w[f + 1].fx = e(p), w[f + 1].id = f + 1;
|
|
147
|
+
}
|
|
148
|
+
function E(e) {
|
|
149
|
+
for (let d = 0; d < e.length; d++) w[C][d] = e[d];
|
|
150
|
+
w[C].fx = e.fx;
|
|
151
|
+
}
|
|
152
|
+
let D = (e, d) => e.fx - d.fx, O = d.slice(), k = d.slice(), A = d.slice(), j = d.slice();
|
|
153
|
+
for (let d = 0; d < p; ++d) {
|
|
154
|
+
if (w.sort(D), f.history) {
|
|
155
|
+
let e = w.map((e) => {
|
|
156
|
+
let d = e.slice();
|
|
157
|
+
return d.fx = e.fx, d.id = e.id, d;
|
|
159
158
|
});
|
|
160
|
-
e.sort((e,
|
|
161
|
-
x:
|
|
162
|
-
fx:
|
|
159
|
+
e.sort((e, d) => e.id - d.id), f.history.push({
|
|
160
|
+
x: w[0].slice(),
|
|
161
|
+
fx: w[0].fx,
|
|
163
162
|
simplex: e
|
|
164
163
|
});
|
|
165
164
|
}
|
|
166
|
-
|
|
167
|
-
for (let e = 0; e <
|
|
168
|
-
if (Math.abs(
|
|
169
|
-
for (let e = 0; e <
|
|
170
|
-
|
|
171
|
-
for (let
|
|
172
|
-
|
|
165
|
+
S = 0;
|
|
166
|
+
for (let e = 0; e < C; ++e) S = Math.max(S, Math.abs(w[0][e] - w[1][e]));
|
|
167
|
+
if (Math.abs(w[0].fx - w[C].fx) < g && S < _) break;
|
|
168
|
+
for (let e = 0; e < C; ++e) {
|
|
169
|
+
O[e] = 0;
|
|
170
|
+
for (let d = 0; d < C; ++d) O[e] += w[d][e];
|
|
171
|
+
O[e] /= C;
|
|
173
172
|
}
|
|
174
|
-
let
|
|
175
|
-
if (
|
|
176
|
-
else if (
|
|
177
|
-
let
|
|
178
|
-
if (
|
|
179
|
-
if (
|
|
180
|
-
for (let
|
|
173
|
+
let d = w[C];
|
|
174
|
+
if (weightedSum(k, 1 + v, O, -v, d), k.fx = e(k), k.fx < w[0].fx) weightedSum(j, 1 + y, O, -y, d), j.fx = e(j), j.fx < k.fx ? E(j) : E(k);
|
|
175
|
+
else if (k.fx >= w[C - 1].fx) {
|
|
176
|
+
let f = !1;
|
|
177
|
+
if (k.fx > d.fx ? (weightedSum(A, 1 + b, O, -b, d), A.fx = e(A), A.fx < d.fx ? E(A) : f = !0) : (weightedSum(A, 1 - b * v, O, b * v, d), A.fx = e(A), A.fx < k.fx ? E(A) : f = !0), f) {
|
|
178
|
+
if (x >= 1) break;
|
|
179
|
+
for (let d = 1; d < w.length; ++d) weightedSum(w[d], 1 - x, w[0], x, w[d]), w[d].fx = e(w[d]);
|
|
181
180
|
}
|
|
182
|
-
} else
|
|
181
|
+
} else E(k);
|
|
183
182
|
}
|
|
184
|
-
return
|
|
185
|
-
fx:
|
|
186
|
-
x:
|
|
183
|
+
return w.sort(D), {
|
|
184
|
+
fx: w[0].fx,
|
|
185
|
+
x: w[0]
|
|
187
186
|
};
|
|
188
187
|
}
|
|
189
|
-
function
|
|
190
|
-
let
|
|
191
|
-
|
|
192
|
-
function
|
|
193
|
-
for (let
|
|
188
|
+
function wolfeLineSearch(e, d, f, p, m, h, g) {
|
|
189
|
+
let _ = f.fx, v = dot(f.fxprime, d), y = _, b = _, x = v, C = 0;
|
|
190
|
+
m ||= 1, h ||= 1e-6, g ||= .1;
|
|
191
|
+
function w(b, C, w) {
|
|
192
|
+
for (let E = 0; E < 16; ++E) if (m = (b + C) / 2, weightedSum(p.x, 1, f.x, m, d), y = p.fx = e(p.x, p.fxprime), x = dot(p.fxprime, d), y > _ + h * m * v || y >= w) C = m;
|
|
194
193
|
else {
|
|
195
|
-
if (Math.abs(
|
|
196
|
-
|
|
194
|
+
if (Math.abs(x) <= -g * v) return m;
|
|
195
|
+
x * (C - b) >= 0 && (C = b), b = m, w = y;
|
|
197
196
|
}
|
|
198
197
|
return 0;
|
|
199
198
|
}
|
|
200
|
-
for (let
|
|
201
|
-
if (
|
|
202
|
-
if (Math.abs(
|
|
203
|
-
if (
|
|
204
|
-
|
|
199
|
+
for (let E = 0; E < 10; ++E) {
|
|
200
|
+
if (weightedSum(p.x, 1, f.x, m, d), y = p.fx = e(p.x, p.fxprime), x = dot(p.fxprime, d), y > _ + h * m * v || E && y >= b) return w(C, m, b);
|
|
201
|
+
if (Math.abs(x) <= -g * v) return m;
|
|
202
|
+
if (x >= 0) return w(m, C, y);
|
|
203
|
+
b = y, C = m, m *= 2;
|
|
205
204
|
}
|
|
206
|
-
return
|
|
205
|
+
return m;
|
|
207
206
|
}
|
|
208
|
-
function
|
|
209
|
-
let
|
|
210
|
-
x:
|
|
207
|
+
function conjugateGradient(e, d, f) {
|
|
208
|
+
let p = {
|
|
209
|
+
x: d.slice(),
|
|
211
210
|
fx: 0,
|
|
212
|
-
fxprime:
|
|
213
|
-
},
|
|
214
|
-
x:
|
|
211
|
+
fxprime: d.slice()
|
|
212
|
+
}, m = {
|
|
213
|
+
x: d.slice(),
|
|
215
214
|
fx: 0,
|
|
216
|
-
fxprime:
|
|
217
|
-
},
|
|
218
|
-
|
|
219
|
-
for (let
|
|
220
|
-
if (
|
|
221
|
-
x:
|
|
222
|
-
fx:
|
|
223
|
-
fxprime:
|
|
224
|
-
alpha:
|
|
225
|
-
}), !
|
|
215
|
+
fxprime: d.slice()
|
|
216
|
+
}, h = d.slice(), g, _, v = 1, y;
|
|
217
|
+
f ||= {}, y = f.maxIterations || d.length * 20, p.fx = e(p.x, p.fxprime), g = p.fxprime.slice(), scale(g, p.fxprime, -1);
|
|
218
|
+
for (let d = 0; d < y; ++d) {
|
|
219
|
+
if (v = wolfeLineSearch(e, g, p, m, v), f.history && f.history.push({
|
|
220
|
+
x: p.x.slice(),
|
|
221
|
+
fx: p.fx,
|
|
222
|
+
fxprime: p.fxprime.slice(),
|
|
223
|
+
alpha: v
|
|
224
|
+
}), !v) scale(g, p.fxprime, -1);
|
|
226
225
|
else {
|
|
227
|
-
h
|
|
228
|
-
let e =
|
|
229
|
-
|
|
226
|
+
weightedSum(h, 1, m.fxprime, -1, p.fxprime);
|
|
227
|
+
let e = dot(p.fxprime, p.fxprime), d = Math.max(0, dot(h, m.fxprime) / e);
|
|
228
|
+
weightedSum(g, d, g, -1, m.fxprime), _ = p, p = m, m = _;
|
|
230
229
|
}
|
|
231
|
-
if (p
|
|
232
|
-
}
|
|
233
|
-
return
|
|
234
|
-
x:
|
|
235
|
-
fx:
|
|
236
|
-
fxprime:
|
|
237
|
-
alpha:
|
|
238
|
-
}),
|
|
239
|
-
}
|
|
240
|
-
function
|
|
241
|
-
|
|
242
|
-
let
|
|
243
|
-
for (let e of
|
|
244
|
-
let
|
|
245
|
-
let
|
|
246
|
-
for (let
|
|
247
|
-
let
|
|
248
|
-
|
|
249
|
-
x: e[2 *
|
|
250
|
-
y: e[2 *
|
|
251
|
-
radius:
|
|
230
|
+
if (norm2(p.fxprime) <= 1e-5) break;
|
|
231
|
+
}
|
|
232
|
+
return f.history && f.history.push({
|
|
233
|
+
x: p.x.slice(),
|
|
234
|
+
fx: p.fx,
|
|
235
|
+
fxprime: p.fxprime.slice(),
|
|
236
|
+
alpha: v
|
|
237
|
+
}), p;
|
|
238
|
+
}
|
|
239
|
+
function venn(e, d = {}) {
|
|
240
|
+
d.maxIterations = d.maxIterations || 500;
|
|
241
|
+
let f = d.initialLayout || bestInitialLayout, p = d.lossFunction || lossFunction, m = addMissingAreas(e, d), h = f(m, d), g = Object.keys(h), _ = [];
|
|
242
|
+
for (let e of g) _.push(h[e].x), _.push(h[e].y);
|
|
243
|
+
let v = nelderMead((e) => {
|
|
244
|
+
let d = {};
|
|
245
|
+
for (let f = 0; f < g.length; ++f) {
|
|
246
|
+
let p = g[f];
|
|
247
|
+
d[p] = {
|
|
248
|
+
x: e[2 * f],
|
|
249
|
+
y: e[2 * f + 1],
|
|
250
|
+
radius: h[p].radius
|
|
252
251
|
};
|
|
253
252
|
}
|
|
254
|
-
return
|
|
255
|
-
},
|
|
256
|
-
for (let e = 0; e <
|
|
257
|
-
let
|
|
258
|
-
|
|
253
|
+
return p(d, m);
|
|
254
|
+
}, _, d).x;
|
|
255
|
+
for (let e = 0; e < g.length; ++e) {
|
|
256
|
+
let d = g[e];
|
|
257
|
+
h[d].x = v[2 * e], h[d].y = v[2 * e + 1];
|
|
259
258
|
}
|
|
260
|
-
return
|
|
259
|
+
return h;
|
|
261
260
|
}
|
|
262
|
-
var
|
|
263
|
-
function
|
|
264
|
-
return Math.min(e,
|
|
261
|
+
var SMALL = 1e-10;
|
|
262
|
+
function distanceFromIntersectArea(e, d, f) {
|
|
263
|
+
return Math.min(e, d) * Math.min(e, d) * Math.PI <= f + SMALL ? Math.abs(e - d) : bisect((p) => circleOverlap(e, d, p) - f, 0, e + d);
|
|
265
264
|
}
|
|
266
|
-
function
|
|
267
|
-
let
|
|
268
|
-
function
|
|
265
|
+
function addMissingAreas(e, d = {}) {
|
|
266
|
+
let f = d.distinct, p = e.map((e) => Object.assign({}, e));
|
|
267
|
+
function m(e) {
|
|
269
268
|
return e.join(";");
|
|
270
269
|
}
|
|
271
|
-
if (
|
|
270
|
+
if (f) {
|
|
272
271
|
let e = /* @__PURE__ */ new Map();
|
|
273
|
-
for (let
|
|
274
|
-
let
|
|
275
|
-
e.set(
|
|
276
|
-
for (let
|
|
277
|
-
let
|
|
278
|
-
e.set(
|
|
272
|
+
for (let d of p) for (let f = 0; f < d.sets.length; f++) {
|
|
273
|
+
let p = String(d.sets[f]);
|
|
274
|
+
e.set(p, d.size + (e.get(p) || 0));
|
|
275
|
+
for (let m = f + 1; m < d.sets.length; m++) {
|
|
276
|
+
let f = String(d.sets[m]), h = `${p};${f}`, g = `${f};${p}`;
|
|
277
|
+
e.set(h, d.size + (e.get(h) || 0)), e.set(g, d.size + (e.get(g) || 0));
|
|
279
278
|
}
|
|
280
279
|
}
|
|
281
|
-
for (let
|
|
280
|
+
for (let d of p) d.sets.length < 3 && (d.size = e.get(m(d.sets)));
|
|
282
281
|
}
|
|
283
|
-
let
|
|
284
|
-
for (let e of
|
|
282
|
+
let h = [], g = /* @__PURE__ */ new Set();
|
|
283
|
+
for (let e of p) if (e.sets.length === 1) h.push(e.sets[0]);
|
|
285
284
|
else if (e.sets.length === 2) {
|
|
286
|
-
let
|
|
287
|
-
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
for (let e = 0; e <
|
|
291
|
-
let
|
|
292
|
-
for (let
|
|
293
|
-
let e =
|
|
294
|
-
|
|
295
|
-
sets: [
|
|
285
|
+
let d = e.sets[0], f = e.sets[1];
|
|
286
|
+
g.add(m(e.sets)), g.add(m([f, d]));
|
|
287
|
+
}
|
|
288
|
+
h.sort((e, d) => e === d ? 0 : e < d ? -1 : 1);
|
|
289
|
+
for (let e = 0; e < h.length; ++e) {
|
|
290
|
+
let d = h[e];
|
|
291
|
+
for (let f = e + 1; f < h.length; ++f) {
|
|
292
|
+
let e = h[f];
|
|
293
|
+
g.has(m([d, e])) || p.push({
|
|
294
|
+
sets: [d, e],
|
|
296
295
|
size: 0
|
|
297
296
|
});
|
|
298
297
|
}
|
|
299
298
|
}
|
|
300
|
-
return
|
|
299
|
+
return p;
|
|
301
300
|
}
|
|
302
|
-
function
|
|
303
|
-
let
|
|
301
|
+
function getDistanceMatrices(e, d, f) {
|
|
302
|
+
let p = zerosM(d.length, d.length), m = zerosM(d.length, d.length);
|
|
304
303
|
return e.filter((e) => e.sets.length === 2).forEach((e) => {
|
|
305
|
-
let
|
|
306
|
-
|
|
307
|
-
let
|
|
308
|
-
e.size + 1e-10 >= Math.min(
|
|
304
|
+
let h = f[e.sets[0]], g = f[e.sets[1]], _ = distanceFromIntersectArea(Math.sqrt(d[h].size / Math.PI), Math.sqrt(d[g].size / Math.PI), e.size);
|
|
305
|
+
p[h][g] = p[g][h] = _;
|
|
306
|
+
let v = 0;
|
|
307
|
+
e.size + 1e-10 >= Math.min(d[h].size, d[g].size) ? v = 1 : e.size <= 1e-10 && (v = -1), m[h][g] = m[g][h] = v;
|
|
309
308
|
}), {
|
|
310
|
-
distances:
|
|
311
|
-
constraints:
|
|
309
|
+
distances: p,
|
|
310
|
+
constraints: m
|
|
312
311
|
};
|
|
313
312
|
}
|
|
314
|
-
function
|
|
315
|
-
for (let e = 0; e <
|
|
316
|
-
let
|
|
317
|
-
for (let
|
|
318
|
-
let
|
|
319
|
-
for (let
|
|
320
|
-
let
|
|
321
|
-
|
|
313
|
+
function constrainedMDSGradient(e, d, f, p) {
|
|
314
|
+
for (let e = 0; e < d.length; ++e) d[e] = 0;
|
|
315
|
+
let m = 0;
|
|
316
|
+
for (let h = 0; h < f.length; ++h) {
|
|
317
|
+
let g = e[2 * h], _ = e[2 * h + 1];
|
|
318
|
+
for (let v = h + 1; v < f.length; ++v) {
|
|
319
|
+
let y = e[2 * v], b = e[2 * v + 1], x = f[h][v], S = p[h][v], C = (y - g) * (y - g) + (b - _) * (b - _), w = Math.sqrt(C), T = C - x * x;
|
|
320
|
+
S > 0 && w <= x || S < 0 && w >= x || (m += 2 * T * T, d[2 * h] += 4 * T * (g - y), d[2 * h + 1] += 4 * T * (_ - b), d[2 * v] += 4 * T * (y - g), d[2 * v + 1] += 4 * T * (b - _));
|
|
322
321
|
}
|
|
323
322
|
}
|
|
324
|
-
return
|
|
323
|
+
return m;
|
|
325
324
|
}
|
|
326
|
-
function
|
|
327
|
-
let
|
|
325
|
+
function bestInitialLayout(e, d = {}) {
|
|
326
|
+
let f = greedyLayout(e, d), p = d.lossFunction || lossFunction;
|
|
328
327
|
if (e.length >= 8) {
|
|
329
|
-
let
|
|
330
|
-
|
|
331
|
-
}
|
|
332
|
-
return n;
|
|
333
|
-
}
|
|
334
|
-
function E(e, t = {}) {
|
|
335
|
-
let n = t.restarts || 10, r = [], i = {};
|
|
336
|
-
for (let t of e) t.sets.length === 1 && (i[t.sets[0]] = r.length, r.push(t));
|
|
337
|
-
let { distances: a, constraints: o } = C(e, r, i), s = p(a.map(p)) / a.length;
|
|
338
|
-
a = a.map((e) => e.map((e) => e / s));
|
|
339
|
-
let c = (e, t) => w(e, t, a, o), l = null;
|
|
340
|
-
for (let e = 0; e < n; ++e) {
|
|
341
|
-
let e = v(c, u(a.length * 2).map(Math.random), t);
|
|
342
|
-
(!l || e.fx < l.fx) && (l = e);
|
|
343
|
-
}
|
|
344
|
-
let d = l.x, f = {};
|
|
345
|
-
for (let e = 0; e < r.length; ++e) {
|
|
346
|
-
let t = r[e];
|
|
347
|
-
f[t.sets[0]] = {
|
|
348
|
-
x: d[2 * e] * s,
|
|
349
|
-
y: d[2 * e + 1] * s,
|
|
350
|
-
radius: Math.sqrt(t.size / Math.PI)
|
|
351
|
-
};
|
|
328
|
+
let m = constrainedMDSLayout(e, d), h = p(m, e), g = p(f, e);
|
|
329
|
+
h + 1e-8 < g && (f = m);
|
|
352
330
|
}
|
|
353
|
-
if (t.history) for (let e of t.history) m(e.x, s);
|
|
354
331
|
return f;
|
|
355
332
|
}
|
|
356
|
-
function
|
|
357
|
-
let
|
|
358
|
-
for (let
|
|
359
|
-
|
|
360
|
-
|
|
333
|
+
function constrainedMDSLayout(e, d = {}) {
|
|
334
|
+
let f = d.restarts || 10, p = [], m = {};
|
|
335
|
+
for (let d of e) d.sets.length === 1 && (m[d.sets[0]] = p.length, p.push(d));
|
|
336
|
+
let { distances: h, constraints: g } = getDistanceMatrices(e, p, m), _ = norm2(h.map(norm2)) / h.length;
|
|
337
|
+
h = h.map((e) => e.map((e) => e / _));
|
|
338
|
+
let v = (e, d) => constrainedMDSGradient(e, d, h, g), y = null;
|
|
339
|
+
for (let e = 0; e < f; ++e) {
|
|
340
|
+
let e = conjugateGradient(v, zeros(h.length * 2).map(Math.random), d);
|
|
341
|
+
(!y || e.fx < y.fx) && (y = e);
|
|
342
|
+
}
|
|
343
|
+
let x = y.x, S = {};
|
|
344
|
+
for (let e = 0; e < p.length; ++e) {
|
|
345
|
+
let d = p[e];
|
|
346
|
+
S[d.sets[0]] = {
|
|
347
|
+
x: x[2 * e] * _,
|
|
348
|
+
y: x[2 * e + 1] * _,
|
|
349
|
+
radius: Math.sqrt(d.size / Math.PI)
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
if (d.history) for (let e of d.history) scale(e.x, _);
|
|
353
|
+
return S;
|
|
354
|
+
}
|
|
355
|
+
function greedyLayout(e, d) {
|
|
356
|
+
let f = d && d.lossFunction ? d.lossFunction : lossFunction, p = {}, m = {};
|
|
357
|
+
for (let d of e) if (d.sets.length === 1) {
|
|
358
|
+
let e = d.sets[0];
|
|
359
|
+
p[e] = {
|
|
361
360
|
x: 1e10,
|
|
362
361
|
y: 1e10,
|
|
363
|
-
rowid:
|
|
364
|
-
size:
|
|
365
|
-
radius: Math.sqrt(
|
|
366
|
-
},
|
|
362
|
+
rowid: p.length,
|
|
363
|
+
size: d.size,
|
|
364
|
+
radius: Math.sqrt(d.size / Math.PI)
|
|
365
|
+
}, m[e] = [];
|
|
367
366
|
}
|
|
368
367
|
e = e.filter((e) => e.sets.length === 2);
|
|
369
|
-
for (let
|
|
370
|
-
let e =
|
|
371
|
-
|
|
372
|
-
set:
|
|
373
|
-
size:
|
|
368
|
+
for (let d of e) {
|
|
369
|
+
let e = d.weight == null ? 1 : d.weight, f = d.sets[0], h = d.sets[1];
|
|
370
|
+
d.size + SMALL >= Math.min(p[f].size, p[h].size) && (e = 0), m[f].push({
|
|
371
|
+
set: h,
|
|
372
|
+
size: d.size,
|
|
374
373
|
weight: e
|
|
375
|
-
}),
|
|
376
|
-
set:
|
|
377
|
-
size:
|
|
374
|
+
}), m[h].push({
|
|
375
|
+
set: f,
|
|
376
|
+
size: d.size,
|
|
378
377
|
weight: e
|
|
379
378
|
});
|
|
380
379
|
}
|
|
381
|
-
let
|
|
382
|
-
Object.keys(
|
|
383
|
-
let
|
|
384
|
-
for (let
|
|
385
|
-
|
|
380
|
+
let h = [];
|
|
381
|
+
Object.keys(m).forEach((e) => {
|
|
382
|
+
let d = 0;
|
|
383
|
+
for (let f = 0; f < m[e].length; ++f) d += m[e][f].size * m[e][f].weight;
|
|
384
|
+
h.push({
|
|
386
385
|
set: e,
|
|
387
|
-
size:
|
|
386
|
+
size: d
|
|
388
387
|
});
|
|
389
388
|
});
|
|
390
|
-
function
|
|
391
|
-
return
|
|
389
|
+
function g(e, d) {
|
|
390
|
+
return d.size - e.size;
|
|
392
391
|
}
|
|
393
|
-
|
|
394
|
-
let
|
|
395
|
-
function
|
|
396
|
-
return e.set in
|
|
392
|
+
h.sort(g);
|
|
393
|
+
let v = {};
|
|
394
|
+
function y(e) {
|
|
395
|
+
return e.set in v;
|
|
397
396
|
}
|
|
398
|
-
function
|
|
399
|
-
|
|
397
|
+
function b(e, d) {
|
|
398
|
+
p[d].x = e.x, p[d].y = e.y, v[d] = !0;
|
|
400
399
|
}
|
|
401
|
-
|
|
400
|
+
b({
|
|
402
401
|
x: 0,
|
|
403
402
|
y: 0
|
|
404
|
-
},
|
|
405
|
-
for (let
|
|
406
|
-
let
|
|
407
|
-
if (
|
|
408
|
-
let
|
|
409
|
-
for (var
|
|
410
|
-
let e =
|
|
411
|
-
|
|
412
|
-
x: e.x +
|
|
403
|
+
}, h[0].set);
|
|
404
|
+
for (let d = 1; d < h.length; ++d) {
|
|
405
|
+
let v = h[d].set, S = m[v].filter(y), C = p[v];
|
|
406
|
+
if (S.sort(g), S.length === 0) throw "ERROR: missing pairwise overlap information";
|
|
407
|
+
let w = [];
|
|
408
|
+
for (var x = 0; x < S.length; ++x) {
|
|
409
|
+
let e = p[S[x].set], d = distanceFromIntersectArea(C.radius, e.radius, S[x].size);
|
|
410
|
+
w.push({
|
|
411
|
+
x: e.x + d,
|
|
413
412
|
y: e.y
|
|
414
|
-
}),
|
|
415
|
-
x: e.x -
|
|
413
|
+
}), w.push({
|
|
414
|
+
x: e.x - d,
|
|
416
415
|
y: e.y
|
|
417
|
-
}),
|
|
418
|
-
y: e.y +
|
|
416
|
+
}), w.push({
|
|
417
|
+
y: e.y + d,
|
|
419
418
|
x: e.x
|
|
420
|
-
}),
|
|
421
|
-
y: e.y -
|
|
419
|
+
}), w.push({
|
|
420
|
+
y: e.y - d,
|
|
422
421
|
x: e.x
|
|
423
422
|
});
|
|
424
|
-
for (let
|
|
425
|
-
let
|
|
423
|
+
for (let f = x + 1; f < S.length; ++f) {
|
|
424
|
+
let m = p[S[f].set], h = distanceFromIntersectArea(C.radius, m.radius, S[f].size), g = circleCircleIntersection({
|
|
426
425
|
x: e.x,
|
|
427
426
|
y: e.y,
|
|
428
|
-
radius:
|
|
427
|
+
radius: d
|
|
429
428
|
}, {
|
|
430
|
-
x:
|
|
431
|
-
y:
|
|
432
|
-
radius:
|
|
429
|
+
x: m.x,
|
|
430
|
+
y: m.y,
|
|
431
|
+
radius: h
|
|
433
432
|
});
|
|
434
|
-
|
|
433
|
+
w.push(...g);
|
|
435
434
|
}
|
|
436
435
|
}
|
|
437
|
-
let
|
|
438
|
-
for (let
|
|
439
|
-
|
|
440
|
-
let
|
|
441
|
-
|
|
436
|
+
let T = 1e50, E = w[0];
|
|
437
|
+
for (let d of w) {
|
|
438
|
+
p[v].x = d.x, p[v].y = d.y;
|
|
439
|
+
let m = f(p, e);
|
|
440
|
+
m < T && (T = m, E = d);
|
|
442
441
|
}
|
|
443
|
-
|
|
444
|
-
}
|
|
445
|
-
return
|
|
446
|
-
}
|
|
447
|
-
function
|
|
448
|
-
let
|
|
449
|
-
for (let
|
|
450
|
-
if (
|
|
451
|
-
let
|
|
452
|
-
if (
|
|
453
|
-
let
|
|
454
|
-
|
|
455
|
-
} else
|
|
456
|
-
let
|
|
457
|
-
|
|
458
|
-
}
|
|
459
|
-
return
|
|
460
|
-
}
|
|
461
|
-
function
|
|
462
|
-
let
|
|
463
|
-
for (let
|
|
464
|
-
if (
|
|
465
|
-
let
|
|
466
|
-
if (
|
|
467
|
-
let
|
|
468
|
-
|
|
469
|
-
} else
|
|
470
|
-
let
|
|
471
|
-
|
|
472
|
-
}
|
|
473
|
-
return
|
|
474
|
-
}
|
|
475
|
-
function
|
|
476
|
-
if (
|
|
477
|
-
let
|
|
478
|
-
for (let
|
|
479
|
-
}
|
|
480
|
-
if (e.length === 2 &&
|
|
481
|
-
let
|
|
482
|
-
for (let
|
|
483
|
-
let e =
|
|
484
|
-
|
|
442
|
+
b(E, v);
|
|
443
|
+
}
|
|
444
|
+
return p;
|
|
445
|
+
}
|
|
446
|
+
function lossFunction(e, f) {
|
|
447
|
+
let p = 0;
|
|
448
|
+
for (let m of f) {
|
|
449
|
+
if (m.sets.length === 1) continue;
|
|
450
|
+
let f;
|
|
451
|
+
if (m.sets.length === 2) {
|
|
452
|
+
let d = e[m.sets[0]], p = e[m.sets[1]];
|
|
453
|
+
f = circleOverlap(d.radius, p.radius, distance(d, p));
|
|
454
|
+
} else f = intersectionArea(m.sets.map((d) => e[d]));
|
|
455
|
+
let _ = m.weight == null ? 1 : m.weight;
|
|
456
|
+
p += _ * (f - m.size) * (f - m.size);
|
|
457
|
+
}
|
|
458
|
+
return p;
|
|
459
|
+
}
|
|
460
|
+
function logRatioLossFunction(e, f) {
|
|
461
|
+
let p = 0;
|
|
462
|
+
for (let m of f) {
|
|
463
|
+
if (m.sets.length === 1) continue;
|
|
464
|
+
let f;
|
|
465
|
+
if (m.sets.length === 2) {
|
|
466
|
+
let d = e[m.sets[0]], p = e[m.sets[1]];
|
|
467
|
+
f = circleOverlap(d.radius, p.radius, distance(d, p));
|
|
468
|
+
} else f = intersectionArea(m.sets.map((d) => e[d]));
|
|
469
|
+
let _ = m.weight == null ? 1 : m.weight, v = Math.log((f + 1) / (m.size + 1));
|
|
470
|
+
p += _ * v * v;
|
|
471
|
+
}
|
|
472
|
+
return p;
|
|
473
|
+
}
|
|
474
|
+
function orientateCircles(e, d, f) {
|
|
475
|
+
if (f == null ? e.sort((e, d) => d.radius - e.radius) : e.sort(f), e.length > 0) {
|
|
476
|
+
let d = e[0].x, f = e[0].y;
|
|
477
|
+
for (let p of e) p.x -= d, p.y -= f;
|
|
478
|
+
}
|
|
479
|
+
if (e.length === 2 && distance(e[0], e[1]) < Math.abs(e[1].radius - e[0].radius) && (e[1].x = e[0].x + e[0].radius - e[1].radius - 1e-10, e[1].y = e[0].y), e.length > 1) {
|
|
480
|
+
let f = Math.atan2(e[1].x, e[1].y) - d, p = Math.cos(f), m = Math.sin(f);
|
|
481
|
+
for (let d of e) {
|
|
482
|
+
let e = d.x, f = d.y;
|
|
483
|
+
d.x = p * e - m * f, d.y = m * e + p * f;
|
|
485
484
|
}
|
|
486
485
|
}
|
|
487
486
|
if (e.length > 2) {
|
|
488
|
-
let
|
|
489
|
-
for (;
|
|
490
|
-
for (;
|
|
491
|
-
if (
|
|
492
|
-
let
|
|
493
|
-
for (let
|
|
494
|
-
var
|
|
495
|
-
|
|
487
|
+
let f = Math.atan2(e[2].x, e[2].y) - d;
|
|
488
|
+
for (; f < 0;) f += 2 * Math.PI;
|
|
489
|
+
for (; f > 2 * Math.PI;) f -= 2 * Math.PI;
|
|
490
|
+
if (f > Math.PI) {
|
|
491
|
+
let d = e[1].y / (1e-10 + e[1].x);
|
|
492
|
+
for (let f of e) {
|
|
493
|
+
var p = (f.x + d * f.y) / (1 + d * d);
|
|
494
|
+
f.x = 2 * p - f.x, f.y = 2 * p * d - f.y;
|
|
496
495
|
}
|
|
497
496
|
}
|
|
498
497
|
}
|
|
499
498
|
}
|
|
500
|
-
function
|
|
499
|
+
function disjointCluster(e) {
|
|
501
500
|
e.forEach((e) => {
|
|
502
501
|
e.parent = e;
|
|
503
502
|
});
|
|
504
|
-
function
|
|
505
|
-
return e.parent !== e && (e.parent =
|
|
503
|
+
function d(e) {
|
|
504
|
+
return e.parent !== e && (e.parent = d(e.parent)), e.parent;
|
|
506
505
|
}
|
|
507
|
-
function
|
|
508
|
-
let
|
|
509
|
-
|
|
506
|
+
function f(e, f) {
|
|
507
|
+
let p = d(e);
|
|
508
|
+
p.parent = d(f);
|
|
510
509
|
}
|
|
511
|
-
for (let
|
|
512
|
-
let
|
|
513
|
-
|
|
510
|
+
for (let d = 0; d < e.length; ++d) for (let p = d + 1; p < e.length; ++p) {
|
|
511
|
+
let m = e[d].radius + e[p].radius;
|
|
512
|
+
distance(e[d], e[p]) + 1e-10 < m && f(e[p], e[d]);
|
|
514
513
|
}
|
|
515
|
-
let
|
|
516
|
-
for (let
|
|
517
|
-
let
|
|
518
|
-
|
|
514
|
+
let p = /* @__PURE__ */ new Map();
|
|
515
|
+
for (let f = 0; f < e.length; ++f) {
|
|
516
|
+
let m = d(e[f]).parent.setid;
|
|
517
|
+
p.has(m) || p.set(m, []), p.get(m).push(e[f]);
|
|
519
518
|
}
|
|
520
519
|
return e.forEach((e) => {
|
|
521
520
|
delete e.parent;
|
|
522
|
-
}), Array.from(
|
|
521
|
+
}), Array.from(p.values());
|
|
523
522
|
}
|
|
524
|
-
function
|
|
525
|
-
let
|
|
526
|
-
max: e.reduce((e,
|
|
527
|
-
min: e.reduce((e,
|
|
523
|
+
function getBoundingBox(e) {
|
|
524
|
+
let d = (d) => ({
|
|
525
|
+
max: e.reduce((e, f) => Math.max(e, f[d] + f.radius), -Infinity),
|
|
526
|
+
min: e.reduce((e, f) => Math.min(e, f[d] - f.radius), Infinity)
|
|
528
527
|
});
|
|
529
528
|
return {
|
|
530
|
-
xRange:
|
|
531
|
-
yRange:
|
|
529
|
+
xRange: d("x"),
|
|
530
|
+
yRange: d("y")
|
|
532
531
|
};
|
|
533
532
|
}
|
|
534
|
-
function
|
|
535
|
-
|
|
536
|
-
let
|
|
537
|
-
for (let e of
|
|
538
|
-
|
|
539
|
-
let
|
|
540
|
-
e.size = (
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
let
|
|
544
|
-
function
|
|
533
|
+
function normalizeSolution(e, d, f) {
|
|
534
|
+
d ??= Math.PI / 2;
|
|
535
|
+
let p = fromObjectNotation(e).map((e) => Object.assign({}, e)), m = disjointCluster(p);
|
|
536
|
+
for (let e of m) {
|
|
537
|
+
orientateCircles(e, d, f);
|
|
538
|
+
let p = getBoundingBox(e);
|
|
539
|
+
e.size = (p.xRange.max - p.xRange.min) * (p.yRange.max - p.yRange.min), e.bounds = p;
|
|
540
|
+
}
|
|
541
|
+
m.sort((e, d) => d.size - e.size), p = m[0];
|
|
542
|
+
let h = p.bounds, g = (h.xRange.max - h.xRange.min) / 50;
|
|
543
|
+
function _(e, d, f) {
|
|
545
544
|
if (!e) return;
|
|
546
|
-
let
|
|
547
|
-
if (
|
|
545
|
+
let m = e.bounds, _, v;
|
|
546
|
+
if (d) _ = h.xRange.max - m.xRange.min + g;
|
|
548
547
|
else {
|
|
549
|
-
|
|
550
|
-
let e = (
|
|
551
|
-
e < 0 && (
|
|
548
|
+
_ = h.xRange.max - m.xRange.max;
|
|
549
|
+
let e = (m.xRange.max - m.xRange.min) / 2 - (h.xRange.max - h.xRange.min) / 2;
|
|
550
|
+
e < 0 && (_ += e);
|
|
552
551
|
}
|
|
553
|
-
if (
|
|
552
|
+
if (f) v = h.yRange.max - m.yRange.min + g;
|
|
554
553
|
else {
|
|
555
|
-
|
|
556
|
-
let e = (
|
|
557
|
-
e < 0 && (
|
|
554
|
+
v = h.yRange.max - m.yRange.max;
|
|
555
|
+
let e = (m.yRange.max - m.yRange.min) / 2 - (h.yRange.max - h.yRange.min) / 2;
|
|
556
|
+
e < 0 && (v += e);
|
|
558
557
|
}
|
|
559
|
-
for (let
|
|
560
|
-
}
|
|
561
|
-
let
|
|
562
|
-
for (;
|
|
563
|
-
return
|
|
564
|
-
}
|
|
565
|
-
function
|
|
566
|
-
let
|
|
567
|
-
|
|
568
|
-
let { xRange:
|
|
569
|
-
if (
|
|
570
|
-
let
|
|
571
|
-
if (
|
|
572
|
-
let e = Math.sqrt(
|
|
573
|
-
|
|
574
|
-
} else
|
|
575
|
-
let
|
|
576
|
-
return
|
|
577
|
-
radius:
|
|
578
|
-
x:
|
|
579
|
-
y:
|
|
558
|
+
for (let d of e) d.x += _, d.y += v, p.push(d);
|
|
559
|
+
}
|
|
560
|
+
let v = 1;
|
|
561
|
+
for (; v < m.length;) _(m[v], !0, !1), _(m[v + 1], !1, !0), _(m[v + 2], !0, !0), v += 3, h = getBoundingBox(p);
|
|
562
|
+
return toObjectNotation(p);
|
|
563
|
+
}
|
|
564
|
+
function scaleSolution(e, d, f, p, m) {
|
|
565
|
+
let h = fromObjectNotation(e);
|
|
566
|
+
d -= 2 * p, f -= 2 * p;
|
|
567
|
+
let { xRange: g, yRange: _ } = getBoundingBox(h);
|
|
568
|
+
if (g.max === g.min || _.max === _.min) return console.log("not scaling solution: zero size detected"), e;
|
|
569
|
+
let v, y;
|
|
570
|
+
if (m) {
|
|
571
|
+
let e = Math.sqrt(m / Math.PI) * 2;
|
|
572
|
+
v = d / e, y = f / e;
|
|
573
|
+
} else v = d / (g.max - g.min), y = f / (_.max - _.min);
|
|
574
|
+
let b = Math.min(y, v), x = (d - (g.max - g.min) * b) / 2, S = (f - (_.max - _.min) * b) / 2;
|
|
575
|
+
return toObjectNotation(h.map((e) => ({
|
|
576
|
+
radius: b * e.radius,
|
|
577
|
+
x: p + x + (e.x - g.min) * b,
|
|
578
|
+
y: p + S + (e.y - _.min) * b,
|
|
580
579
|
setid: e.setid
|
|
581
580
|
})));
|
|
582
581
|
}
|
|
583
|
-
function
|
|
584
|
-
let
|
|
585
|
-
for (let
|
|
586
|
-
return
|
|
582
|
+
function toObjectNotation(e) {
|
|
583
|
+
let d = {};
|
|
584
|
+
for (let f of e) d[f.setid] = f;
|
|
585
|
+
return d;
|
|
587
586
|
}
|
|
588
|
-
function
|
|
589
|
-
return Object.keys(e).map((
|
|
587
|
+
function fromObjectNotation(e) {
|
|
588
|
+
return Object.keys(e).map((d) => Object.assign(e[d], { setid: d }));
|
|
590
589
|
}
|
|
591
|
-
function
|
|
592
|
-
let
|
|
590
|
+
function VennDiagram(e = {}) {
|
|
591
|
+
let d = !1, f = 600, p = 350, m = 15, h = 1e3, g = Math.PI / 2, _ = !0, v = null, y = !0, b = !0, x = null, S = null, C = !1, w = null, T = e && e.symmetricalTextCentre ? e.symmetricalTextCentre : !1, E = {}, D = e && e.colourScheme ? e.colourScheme : e && e.colorScheme ? e.colorScheme : [
|
|
593
592
|
"#1f77b4",
|
|
594
593
|
"#ff7f0e",
|
|
595
594
|
"#2ca02c",
|
|
@@ -600,306 +599,305 @@ function L(e = {}) {
|
|
|
600
599
|
"#7f7f7f",
|
|
601
600
|
"#bcbd22",
|
|
602
601
|
"#17becf"
|
|
603
|
-
],
|
|
604
|
-
if (e in
|
|
605
|
-
var
|
|
606
|
-
return
|
|
607
|
-
},
|
|
608
|
-
function
|
|
609
|
-
let
|
|
610
|
-
|
|
611
|
-
e.size == 0 && e.sets.length == 1 &&
|
|
612
|
-
}),
|
|
613
|
-
let
|
|
614
|
-
if (
|
|
615
|
-
let e =
|
|
616
|
-
lossFunction:
|
|
617
|
-
distinct:
|
|
602
|
+
], O = 0, A = function(e) {
|
|
603
|
+
if (e in E) return E[e];
|
|
604
|
+
var d = E[e] = D[O];
|
|
605
|
+
return O += 1, O >= D.length && (O = 0), d;
|
|
606
|
+
}, j = venn, M = lossFunction;
|
|
607
|
+
function N(E) {
|
|
608
|
+
let D = E.datum(), O = /* @__PURE__ */ new Set();
|
|
609
|
+
D.forEach((e) => {
|
|
610
|
+
e.size == 0 && e.sets.length == 1 && O.add(e.sets[0]);
|
|
611
|
+
}), D = D.filter((e) => !e.sets.some((e) => O.has(e)));
|
|
612
|
+
let k = {}, N = {};
|
|
613
|
+
if (D.length > 0) {
|
|
614
|
+
let e = j(D, {
|
|
615
|
+
lossFunction: M,
|
|
616
|
+
distinct: C
|
|
618
617
|
});
|
|
619
|
-
|
|
618
|
+
_ && (e = normalizeSolution(e, g, S)), k = scaleSolution(e, f, p, m, v), N = computeTextCentres(k, D, T);
|
|
620
619
|
}
|
|
621
|
-
let
|
|
622
|
-
|
|
623
|
-
e.label && (
|
|
620
|
+
let P = {};
|
|
621
|
+
D.forEach((e) => {
|
|
622
|
+
e.label && (P[e.sets] = e.label);
|
|
624
623
|
});
|
|
625
|
-
function
|
|
626
|
-
if (e.sets in
|
|
624
|
+
function F(e) {
|
|
625
|
+
if (e.sets in P) return P[e.sets];
|
|
627
626
|
if (e.sets.length == 1) return "" + e.sets[0];
|
|
628
627
|
}
|
|
629
|
-
|
|
630
|
-
let
|
|
631
|
-
|
|
632
|
-
let
|
|
633
|
-
|
|
634
|
-
let
|
|
635
|
-
e.sets.length == 1 &&
|
|
628
|
+
E.selectAll("svg").data([k]).enter().append("svg");
|
|
629
|
+
let I = E.select("svg");
|
|
630
|
+
d ? I.attr("viewBox", `0 0 ${f} ${p}`) : I.attr("width", f).attr("height", p);
|
|
631
|
+
let L = {}, R = !1;
|
|
632
|
+
I.selectAll(".venn-area path").each(function(e) {
|
|
633
|
+
let d = this.getAttribute("d");
|
|
634
|
+
e.sets.length == 1 && d && !C && (R = !0, L[e.sets[0]] = circleFromPath(d));
|
|
636
635
|
});
|
|
637
|
-
function
|
|
638
|
-
return (
|
|
639
|
-
let
|
|
640
|
-
return
|
|
641
|
-
x:
|
|
642
|
-
y:
|
|
636
|
+
function z(e) {
|
|
637
|
+
return (d) => intersectionAreaPath(e.sets.map((e) => {
|
|
638
|
+
let m = L[e], h = k[e];
|
|
639
|
+
return m ||= {
|
|
640
|
+
x: f / 2,
|
|
641
|
+
y: p / 2,
|
|
643
642
|
radius: 1
|
|
644
|
-
},
|
|
645
|
-
x:
|
|
646
|
-
y:
|
|
643
|
+
}, h ||= {
|
|
644
|
+
x: f / 2,
|
|
645
|
+
y: p / 2,
|
|
647
646
|
radius: 1
|
|
648
647
|
}, {
|
|
649
|
-
x:
|
|
650
|
-
y:
|
|
651
|
-
radius:
|
|
648
|
+
x: m.x * (1 - d) + h.x * d,
|
|
649
|
+
y: m.y * (1 - d) + h.y * d,
|
|
650
|
+
radius: m.radius * (1 - d) + h.radius * d
|
|
652
651
|
};
|
|
653
|
-
}),
|
|
652
|
+
}), w);
|
|
654
653
|
}
|
|
655
|
-
let
|
|
656
|
-
|
|
657
|
-
function
|
|
658
|
-
return typeof e.transition == "function" ? e.transition("venn").duration(
|
|
654
|
+
let B = I.selectAll(".venn-area").data(D, (e) => e.sets), V = B.enter().append("g").attr("class", (e) => `venn-area venn-${e.sets.length == 1 ? "circle" : "intersection"}${e.colour || e.color ? " venn-coloured" : ""}`).attr("data-venn-sets", (e) => e.sets.join("_")), H = V.append("path"), U = V.append("text").attr("class", "label").text((e) => F(e)).attr("text-anchor", "middle").attr("dy", ".35em").attr("x", f / 2).attr("y", p / 2);
|
|
655
|
+
b && (H.style("fill-opacity", "0").filter((e) => e.sets.length == 1).style("fill", (e) => e.colour ? e.colour : e.color ? e.color : A(e.sets)).style("fill-opacity", ".25"), U.style("fill", (d) => d.colour || d.color ? "#FFF" : e.textFill ? e.textFill : d.sets.length == 1 ? A(d.sets) : "#444"));
|
|
656
|
+
function W(e) {
|
|
657
|
+
return typeof e.transition == "function" ? e.transition("venn").duration(h) : e;
|
|
659
658
|
}
|
|
660
|
-
let
|
|
661
|
-
|
|
662
|
-
let
|
|
663
|
-
|
|
664
|
-
let
|
|
665
|
-
typeof
|
|
666
|
-
let
|
|
667
|
-
return
|
|
668
|
-
circles:
|
|
669
|
-
textCentres:
|
|
670
|
-
nodes:
|
|
671
|
-
enter:
|
|
672
|
-
update:
|
|
673
|
-
exit:
|
|
659
|
+
let G = E;
|
|
660
|
+
R && typeof G.transition == "function" ? (G = W(E), G.selectAll("path").attrTween("d", z)) : G.selectAll("path").attr("d", (e) => intersectionAreaPath(e.sets.map((e) => k[e])), w);
|
|
661
|
+
let K = G.selectAll("text").filter((e) => e.sets in N).text((e) => F(e)).attr("x", (e) => Math.floor(N[e.sets].x)).attr("y", (e) => Math.floor(N[e.sets].y));
|
|
662
|
+
y && (R ? "on" in K ? K.on("end", wrapText(k, F)) : K.each("end", wrapText(k, F)) : K.each(wrapText(k, F)));
|
|
663
|
+
let q = W(B.exit()).remove();
|
|
664
|
+
typeof B.transition == "function" && q.selectAll("path").attrTween("d", z);
|
|
665
|
+
let J = q.selectAll("text").attr("x", f / 2).attr("y", p / 2);
|
|
666
|
+
return x !== null && (U.style("font-size", "0px"), K.style("font-size", x), J.style("font-size", "0px")), {
|
|
667
|
+
circles: k,
|
|
668
|
+
textCentres: N,
|
|
669
|
+
nodes: B,
|
|
670
|
+
enter: V,
|
|
671
|
+
update: G,
|
|
672
|
+
exit: q
|
|
674
673
|
};
|
|
675
674
|
}
|
|
676
|
-
return
|
|
677
|
-
return arguments.length ? (
|
|
678
|
-
},
|
|
679
|
-
return
|
|
680
|
-
},
|
|
681
|
-
return arguments.length ? (
|
|
682
|
-
},
|
|
683
|
-
return arguments.length ? (
|
|
684
|
-
},
|
|
685
|
-
return arguments.length ? (
|
|
686
|
-
},
|
|
687
|
-
return arguments.length ? (
|
|
688
|
-
},
|
|
689
|
-
return arguments.length ? (
|
|
690
|
-
},
|
|
691
|
-
return arguments.length ? (
|
|
692
|
-
},
|
|
693
|
-
return arguments.length ? (
|
|
694
|
-
},
|
|
695
|
-
return arguments.length ? (
|
|
696
|
-
},
|
|
697
|
-
return arguments.length ? (
|
|
698
|
-
},
|
|
699
|
-
return arguments.length ? (
|
|
700
|
-
},
|
|
701
|
-
return arguments.length ? (
|
|
702
|
-
},
|
|
703
|
-
return arguments.length ? (
|
|
704
|
-
},
|
|
705
|
-
return arguments.length ? (
|
|
706
|
-
},
|
|
707
|
-
return arguments.length ? (
|
|
708
|
-
},
|
|
709
|
-
return arguments.length ? (
|
|
710
|
-
},
|
|
711
|
-
return arguments.length ? (
|
|
712
|
-
},
|
|
713
|
-
}
|
|
714
|
-
function
|
|
715
|
-
return function(
|
|
716
|
-
let
|
|
717
|
-
|
|
718
|
-
let
|
|
719
|
-
function
|
|
720
|
-
let
|
|
721
|
-
return
|
|
675
|
+
return N.wrap = function(e) {
|
|
676
|
+
return arguments.length ? (y = e, N) : y;
|
|
677
|
+
}, N.useViewBox = function() {
|
|
678
|
+
return d = !0, N;
|
|
679
|
+
}, N.width = function(e) {
|
|
680
|
+
return arguments.length ? (f = e, N) : f;
|
|
681
|
+
}, N.height = function(e) {
|
|
682
|
+
return arguments.length ? (p = e, N) : p;
|
|
683
|
+
}, N.padding = function(e) {
|
|
684
|
+
return arguments.length ? (m = e, N) : m;
|
|
685
|
+
}, N.distinct = function(e) {
|
|
686
|
+
return arguments.length ? (C = e, N) : C;
|
|
687
|
+
}, N.colours = function(e) {
|
|
688
|
+
return arguments.length ? (A = e, N) : A;
|
|
689
|
+
}, N.colors = function(e) {
|
|
690
|
+
return arguments.length ? (A = e, N) : A;
|
|
691
|
+
}, N.fontSize = function(e) {
|
|
692
|
+
return arguments.length ? (x = e, N) : x;
|
|
693
|
+
}, N.round = function(e) {
|
|
694
|
+
return arguments.length ? (w = e, N) : w;
|
|
695
|
+
}, N.duration = function(e) {
|
|
696
|
+
return arguments.length ? (h = e, N) : h;
|
|
697
|
+
}, N.layoutFunction = function(e) {
|
|
698
|
+
return arguments.length ? (j = e, N) : j;
|
|
699
|
+
}, N.normalize = function(e) {
|
|
700
|
+
return arguments.length ? (_ = e, N) : _;
|
|
701
|
+
}, N.scaleToFit = function(e) {
|
|
702
|
+
return arguments.length ? (v = e, N) : v;
|
|
703
|
+
}, N.styled = function(e) {
|
|
704
|
+
return arguments.length ? (b = e, N) : b;
|
|
705
|
+
}, N.orientation = function(e) {
|
|
706
|
+
return arguments.length ? (g = e, N) : g;
|
|
707
|
+
}, N.orientationOrder = function(e) {
|
|
708
|
+
return arguments.length ? (S = e, N) : S;
|
|
709
|
+
}, N.lossFunction = function(e) {
|
|
710
|
+
return arguments.length ? (M = e === "default" ? lossFunction : e === "logRatio" ? logRatioLossFunction : e, N) : M;
|
|
711
|
+
}, N;
|
|
712
|
+
}
|
|
713
|
+
function wrapText(e, d) {
|
|
714
|
+
return function(f) {
|
|
715
|
+
let p = this, m = e[f.sets[0]].radius || 50, h = d(f) || "", g = h.split(/\s+/).reverse(), _ = (h.length + g.length) / 3, v = g.pop(), y = [v], b = 0, x = 1.1;
|
|
716
|
+
p.textContent = null;
|
|
717
|
+
let S = [];
|
|
718
|
+
function C(e) {
|
|
719
|
+
let d = p.ownerDocument.createElementNS(p.namespaceURI, "tspan");
|
|
720
|
+
return d.textContent = e, S.push(d), p.append(d), d;
|
|
722
721
|
}
|
|
723
|
-
let
|
|
724
|
-
for (;
|
|
725
|
-
|
|
726
|
-
let e =
|
|
727
|
-
|
|
722
|
+
let w = C(v);
|
|
723
|
+
for (; v = g.pop(), v;) {
|
|
724
|
+
y.push(v);
|
|
725
|
+
let e = y.join(" ");
|
|
726
|
+
w.textContent = e, e.length > _ && w.getComputedTextLength() > m && (y.pop(), w.textContent = y.join(" "), y = [v], w = C(v), b++);
|
|
728
727
|
}
|
|
729
|
-
let
|
|
730
|
-
|
|
731
|
-
e.setAttribute("x",
|
|
728
|
+
let T = .35 - b * x / 2, E = p.getAttribute("x"), D = p.getAttribute("y");
|
|
729
|
+
S.forEach((e, d) => {
|
|
730
|
+
e.setAttribute("x", E), e.setAttribute("y", D), e.setAttribute("dy", `${T + d * x}em`);
|
|
732
731
|
});
|
|
733
732
|
};
|
|
734
733
|
}
|
|
735
|
-
function
|
|
736
|
-
let
|
|
737
|
-
for (let
|
|
738
|
-
let
|
|
739
|
-
|
|
740
|
-
}
|
|
741
|
-
for (let
|
|
742
|
-
let
|
|
743
|
-
|
|
744
|
-
}
|
|
745
|
-
return
|
|
746
|
-
}
|
|
747
|
-
function
|
|
748
|
-
let
|
|
749
|
-
for (let
|
|
750
|
-
x:
|
|
751
|
-
y:
|
|
752
|
-
}),
|
|
753
|
-
x:
|
|
754
|
-
y:
|
|
755
|
-
}),
|
|
756
|
-
x:
|
|
757
|
-
y:
|
|
758
|
-
}),
|
|
759
|
-
x:
|
|
760
|
-
y:
|
|
761
|
-
}),
|
|
762
|
-
x:
|
|
763
|
-
y:
|
|
734
|
+
function circleMargin(e, d, f) {
|
|
735
|
+
let p = d[0].radius - distance(d[0], e);
|
|
736
|
+
for (let f = 1; f < d.length; ++f) {
|
|
737
|
+
let m = d[f].radius - distance(d[f], e);
|
|
738
|
+
m <= p && (p = m);
|
|
739
|
+
}
|
|
740
|
+
for (let d = 0; d < f.length; ++d) {
|
|
741
|
+
let m = distance(f[d], e) - f[d].radius;
|
|
742
|
+
m <= p && (p = m);
|
|
743
|
+
}
|
|
744
|
+
return p;
|
|
745
|
+
}
|
|
746
|
+
function computeTextCentre(e, f, p) {
|
|
747
|
+
let m = [];
|
|
748
|
+
for (let d of e) m.push({
|
|
749
|
+
x: d.x,
|
|
750
|
+
y: d.y
|
|
751
|
+
}), m.push({
|
|
752
|
+
x: d.x + d.radius / 2,
|
|
753
|
+
y: d.y
|
|
754
|
+
}), m.push({
|
|
755
|
+
x: d.x - d.radius / 2,
|
|
756
|
+
y: d.y
|
|
757
|
+
}), m.push({
|
|
758
|
+
x: d.x,
|
|
759
|
+
y: d.y + d.radius / 2
|
|
760
|
+
}), m.push({
|
|
761
|
+
x: d.x,
|
|
762
|
+
y: d.y - d.radius / 2
|
|
764
763
|
});
|
|
765
|
-
let
|
|
766
|
-
for (let
|
|
767
|
-
let
|
|
768
|
-
|
|
769
|
-
}
|
|
770
|
-
let
|
|
771
|
-
x:
|
|
772
|
-
y:
|
|
773
|
-
}, e,
|
|
764
|
+
let g = m[0], _ = circleMargin(m[0], e, f);
|
|
765
|
+
for (let d = 1; d < m.length; ++d) {
|
|
766
|
+
let p = circleMargin(m[d], e, f);
|
|
767
|
+
p >= _ && (g = m[d], _ = p);
|
|
768
|
+
}
|
|
769
|
+
let y = nelderMead((d) => -1 * circleMargin({
|
|
770
|
+
x: d[0],
|
|
771
|
+
y: d[1]
|
|
772
|
+
}, e, f), [g.x, g.y], {
|
|
774
773
|
maxIterations: 500,
|
|
775
774
|
minErrorDelta: 1e-10
|
|
776
|
-
}).x,
|
|
777
|
-
x:
|
|
778
|
-
y:
|
|
779
|
-
},
|
|
780
|
-
for (let
|
|
781
|
-
|
|
775
|
+
}).x, b = {
|
|
776
|
+
x: p ? 0 : y[0],
|
|
777
|
+
y: y[1]
|
|
778
|
+
}, x = !0;
|
|
779
|
+
for (let d of e) if (distance(b, d) > d.radius) {
|
|
780
|
+
x = !1;
|
|
782
781
|
break;
|
|
783
782
|
}
|
|
784
|
-
for (let e of
|
|
785
|
-
|
|
783
|
+
for (let e of f) if (distance(b, e) < e.radius) {
|
|
784
|
+
x = !1;
|
|
786
785
|
break;
|
|
787
786
|
}
|
|
788
|
-
if (
|
|
787
|
+
if (x) return b;
|
|
789
788
|
if (e.length == 1) return {
|
|
790
789
|
x: e[0].x,
|
|
791
790
|
y: e[0].y
|
|
792
791
|
};
|
|
793
|
-
let
|
|
794
|
-
return
|
|
792
|
+
let S = {};
|
|
793
|
+
return intersectionArea(e, S), S.arcs.length === 0 ? {
|
|
795
794
|
x: 0,
|
|
796
795
|
y: -1e3,
|
|
797
796
|
disjoint: !0
|
|
798
|
-
} :
|
|
799
|
-
x:
|
|
800
|
-
y:
|
|
801
|
-
} :
|
|
802
|
-
}
|
|
803
|
-
function
|
|
804
|
-
let
|
|
805
|
-
for (let e of
|
|
806
|
-
for (let
|
|
807
|
-
let
|
|
808
|
-
for (let
|
|
809
|
-
let
|
|
810
|
-
|
|
797
|
+
} : S.arcs.length == 1 ? {
|
|
798
|
+
x: S.arcs[0].circle.x,
|
|
799
|
+
y: S.arcs[0].circle.y
|
|
800
|
+
} : f.length ? computeTextCentre(e, []) : getCenter(S.arcs.map((e) => e.p1));
|
|
801
|
+
}
|
|
802
|
+
function getOverlappingCircles(e) {
|
|
803
|
+
let d = {}, f = Object.keys(e);
|
|
804
|
+
for (let e of f) d[e] = [];
|
|
805
|
+
for (let p = 0; p < f.length; p++) {
|
|
806
|
+
let m = f[p], g = e[m];
|
|
807
|
+
for (let _ = p + 1; _ < f.length; ++_) {
|
|
808
|
+
let p = f[_], v = e[p], y = distance(g, v);
|
|
809
|
+
y + v.radius <= g.radius + 1e-10 ? d[p].push(m) : y + g.radius <= v.radius + 1e-10 && d[m].push(p);
|
|
811
810
|
}
|
|
812
811
|
}
|
|
813
|
-
return
|
|
812
|
+
return d;
|
|
814
813
|
}
|
|
815
|
-
function
|
|
816
|
-
let
|
|
817
|
-
for (let
|
|
818
|
-
let
|
|
819
|
-
for (let e = 0; e <
|
|
820
|
-
|
|
821
|
-
let
|
|
822
|
-
for (let e = 0; e <
|
|
814
|
+
function computeTextCentres(e, d, f) {
|
|
815
|
+
let p = {}, m = getOverlappingCircles(e);
|
|
816
|
+
for (let h = 0; h < d.length; ++h) {
|
|
817
|
+
let g = d[h].sets, _ = {}, v = {};
|
|
818
|
+
for (let e = 0; e < g.length; ++e) {
|
|
819
|
+
_[g[e]] = !0;
|
|
820
|
+
let d = m[g[e]];
|
|
821
|
+
for (let e = 0; e < d.length; ++e) v[d[e]] = !0;
|
|
823
822
|
}
|
|
824
|
-
let
|
|
825
|
-
for (let
|
|
826
|
-
let
|
|
827
|
-
|
|
823
|
+
let y = [], b = [];
|
|
824
|
+
for (let d in e) d in _ ? y.push(e[d]) : d in v || b.push(e[d]);
|
|
825
|
+
let x = computeTextCentre(y, b, f);
|
|
826
|
+
p[g] = x, x.disjoint && d[h].size > 0 && console.log("WARNING: area " + g + " not represented on screen");
|
|
828
827
|
}
|
|
829
|
-
return
|
|
828
|
+
return p;
|
|
830
829
|
}
|
|
831
|
-
function
|
|
832
|
-
let
|
|
833
|
-
return
|
|
830
|
+
function circlePath(e, d, f) {
|
|
831
|
+
let p = [];
|
|
832
|
+
return p.push("\nM", e, d), p.push("\nm", -f, 0), p.push("\na", f, f, 0, 1, 0, f * 2, 0), p.push("\na", f, f, 0, 1, 0, -f * 2, 0), p.join(" ");
|
|
834
833
|
}
|
|
835
|
-
function
|
|
836
|
-
let
|
|
834
|
+
function circleFromPath(e) {
|
|
835
|
+
let d = e.split(" ");
|
|
837
836
|
return {
|
|
838
|
-
x: Number.parseFloat(
|
|
839
|
-
y: Number.parseFloat(
|
|
840
|
-
radius: -Number.parseFloat(
|
|
837
|
+
x: Number.parseFloat(d[1]),
|
|
838
|
+
y: Number.parseFloat(d[2]),
|
|
839
|
+
radius: -Number.parseFloat(d[4])
|
|
841
840
|
};
|
|
842
841
|
}
|
|
843
|
-
function
|
|
842
|
+
function intersectionAreaArcs(e) {
|
|
844
843
|
if (e.length === 0) return [];
|
|
845
|
-
let
|
|
846
|
-
return
|
|
844
|
+
let f = {};
|
|
845
|
+
return intersectionArea(e, f), f.arcs;
|
|
847
846
|
}
|
|
848
|
-
function
|
|
847
|
+
function arcsToPath(e, d) {
|
|
849
848
|
if (e.length === 0) return "M 0 0";
|
|
850
|
-
let
|
|
849
|
+
let f = 10 ** (d || 0), p = d == null ? (e) => e : (e) => Math.round(e * f) / f;
|
|
851
850
|
if (e.length == 1) {
|
|
852
|
-
let
|
|
853
|
-
return
|
|
851
|
+
let d = e[0].circle;
|
|
852
|
+
return circlePath(p(d.x), p(d.y), p(d.radius));
|
|
854
853
|
}
|
|
855
|
-
let
|
|
854
|
+
let m = [
|
|
856
855
|
"\nM",
|
|
857
|
-
|
|
858
|
-
|
|
856
|
+
p(e[0].p2.x),
|
|
857
|
+
p(e[0].p2.y)
|
|
859
858
|
];
|
|
860
|
-
for (let
|
|
861
|
-
let e =
|
|
862
|
-
|
|
859
|
+
for (let d of e) {
|
|
860
|
+
let e = p(d.circle.radius);
|
|
861
|
+
m.push("\nA", e, e, 0, d.large ? 1 : 0, d.sweep ? 1 : 0, p(d.p1.x), p(d.p1.y));
|
|
863
862
|
}
|
|
864
|
-
return
|
|
863
|
+
return m.join(" ");
|
|
865
864
|
}
|
|
866
|
-
function
|
|
867
|
-
return
|
|
865
|
+
function intersectionAreaPath(e, d) {
|
|
866
|
+
return arcsToPath(intersectionAreaArcs(e), d);
|
|
868
867
|
}
|
|
869
|
-
function
|
|
870
|
-
let { lossFunction:
|
|
871
|
-
lossFunction:
|
|
872
|
-
distinct:
|
|
868
|
+
function layout(e, d = {}) {
|
|
869
|
+
let { lossFunction: f, layoutFunction: p = venn, normalize: m = !0, orientation: h = Math.PI / 2, orientationOrder: g, width: _ = 600, height: v = 350, padding: y = 15, scaleToFit: b = !1, symmetricalTextCentre: x = !1, distinct: S, round: C = 2 } = d, w = p(e, {
|
|
870
|
+
lossFunction: f === "default" || !f ? lossFunction : f === "logRatio" ? logRatioLossFunction : f,
|
|
871
|
+
distinct: S
|
|
873
872
|
});
|
|
874
|
-
|
|
875
|
-
let
|
|
873
|
+
m && (w = normalizeSolution(w, h, g));
|
|
874
|
+
let T = scaleSolution(w, _, v, y, b), E = computeTextCentres(T, e, x), D = new Map(Object.keys(T).map((e) => [e, {
|
|
876
875
|
set: e,
|
|
877
|
-
x:
|
|
878
|
-
y:
|
|
879
|
-
radius:
|
|
880
|
-
}])),
|
|
881
|
-
let
|
|
876
|
+
x: T[e].x,
|
|
877
|
+
y: T[e].y,
|
|
878
|
+
radius: T[e].radius
|
|
879
|
+
}])), O = e.map((e) => {
|
|
880
|
+
let d = e.sets.map((e) => D.get(e)), f = intersectionAreaArcs(d);
|
|
882
881
|
return {
|
|
883
|
-
circles:
|
|
884
|
-
arcs:
|
|
885
|
-
path:
|
|
882
|
+
circles: d,
|
|
883
|
+
arcs: f,
|
|
884
|
+
path: arcsToPath(f, C),
|
|
886
885
|
area: e,
|
|
887
886
|
has: new Set(e.sets)
|
|
888
887
|
};
|
|
889
888
|
});
|
|
890
|
-
function
|
|
891
|
-
let
|
|
892
|
-
for (let
|
|
893
|
-
return
|
|
894
|
-
}
|
|
895
|
-
return
|
|
896
|
-
data:
|
|
897
|
-
text:
|
|
889
|
+
function A(e) {
|
|
890
|
+
let d = "";
|
|
891
|
+
for (let f of O) f.has.size > e.length && e.every((e) => f.has.has(e)) && (d += " " + f.path);
|
|
892
|
+
return d;
|
|
893
|
+
}
|
|
894
|
+
return O.map(({ circles: e, arcs: d, path: f, area: p }) => ({
|
|
895
|
+
data: p,
|
|
896
|
+
text: E[p.sets],
|
|
898
897
|
circles: e,
|
|
899
|
-
arcs:
|
|
900
|
-
path:
|
|
901
|
-
distinctPath:
|
|
898
|
+
arcs: d,
|
|
899
|
+
path: f,
|
|
900
|
+
distinctPath: f + A(p.sets)
|
|
902
901
|
}));
|
|
903
902
|
}
|
|
904
|
-
|
|
905
|
-
export { L as VennDiagram, J as layout };
|
|
903
|
+
export { VennDiagram, layout };
|