@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,252 +1,251 @@
|
|
|
1
|
-
import { ShikiError
|
|
2
|
-
import { FontStyle
|
|
3
|
-
import { applyColorReplacements
|
|
4
|
-
import { toHtml
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
let
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
character: t[t.length - 1].length
|
|
1
|
+
import { ShikiError } from "../../types/dist/index.js";
|
|
2
|
+
import { FontStyle } from "../../vscode-textmate/dist/index.js";
|
|
3
|
+
import { applyColorReplacements, codeToTokensBase, codeToTokensWithThemes, createShikiPrimitive, createShikiPrimitiveAsync, getLastGrammarState, getLastGrammarStateFromMap, isNoneTheme, isPlainLang, isSpecialLang, isSpecialTheme, normalizeGetter, normalizeTheme, resolveColorReplacements, setLastGrammarStateToMap, splitLines, toArray, tokenizeWithTheme } from "../../primitive/dist/index.js";
|
|
4
|
+
import { toHtml } from "../../../hast-util-to-html/lib/index.js";
|
|
5
|
+
function addClassToHast(a, P) {
|
|
6
|
+
if (!P) return a;
|
|
7
|
+
a.properties ||= {}, a.properties.class ||= [], typeof a.properties.class == "string" && (a.properties.class = a.properties.class.split(/\s+/g)), Array.isArray(a.properties.class) || (a.properties.class = []);
|
|
8
|
+
let F = Array.isArray(P) ? P : P.split(/\s+/g);
|
|
9
|
+
for (let P of F) P && !a.properties.class.includes(P) && a.properties.class.push(P);
|
|
10
|
+
return a;
|
|
11
|
+
}
|
|
12
|
+
function createPositionConverter(a) {
|
|
13
|
+
let P = splitLines(a, !0).map(([a]) => a);
|
|
14
|
+
function F(F) {
|
|
15
|
+
if (F === a.length) return {
|
|
16
|
+
line: P.length - 1,
|
|
17
|
+
character: P[P.length - 1].length
|
|
19
18
|
};
|
|
20
|
-
let
|
|
21
|
-
for (let
|
|
22
|
-
if (
|
|
23
|
-
|
|
19
|
+
let I = F, L = 0;
|
|
20
|
+
for (let a of P) {
|
|
21
|
+
if (I < a.length) break;
|
|
22
|
+
I -= a.length, L++;
|
|
24
23
|
}
|
|
25
24
|
return {
|
|
26
|
-
line:
|
|
27
|
-
character:
|
|
25
|
+
line: L,
|
|
26
|
+
character: I
|
|
28
27
|
};
|
|
29
28
|
}
|
|
30
|
-
function
|
|
31
|
-
let
|
|
32
|
-
for (let
|
|
33
|
-
return
|
|
29
|
+
function I(a, F) {
|
|
30
|
+
let I = 0;
|
|
31
|
+
for (let F = 0; F < a; F++) I += P[F].length;
|
|
32
|
+
return I += F, I;
|
|
34
33
|
}
|
|
35
34
|
return {
|
|
36
|
-
lines:
|
|
37
|
-
indexToPos:
|
|
38
|
-
posToIndex:
|
|
35
|
+
lines: P,
|
|
36
|
+
indexToPos: F,
|
|
37
|
+
posToIndex: I
|
|
39
38
|
};
|
|
40
39
|
}
|
|
41
|
-
function
|
|
42
|
-
let
|
|
43
|
-
for (let
|
|
44
|
-
let
|
|
45
|
-
|
|
40
|
+
function guessEmbeddedLanguages(a, P, F) {
|
|
41
|
+
let I = /* @__PURE__ */ new Set();
|
|
42
|
+
for (let P of a.matchAll(/:?lang=["']([^"']+)["']/g)) {
|
|
43
|
+
let a = P[1].toLowerCase().trim();
|
|
44
|
+
a && I.add(a);
|
|
46
45
|
}
|
|
47
|
-
for (let
|
|
48
|
-
let
|
|
49
|
-
|
|
46
|
+
for (let P of a.matchAll(/(?:```|~~~)([\w-]+)/g)) {
|
|
47
|
+
let a = P[1].toLowerCase().trim();
|
|
48
|
+
a && I.add(a);
|
|
50
49
|
}
|
|
51
|
-
for (let
|
|
52
|
-
let
|
|
53
|
-
|
|
50
|
+
for (let P of a.matchAll(/\\begin\{([\w-]+)\}/g)) {
|
|
51
|
+
let a = P[1].toLowerCase().trim();
|
|
52
|
+
a && I.add(a);
|
|
54
53
|
}
|
|
55
|
-
for (let
|
|
56
|
-
let
|
|
57
|
-
|
|
54
|
+
for (let P of a.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)) {
|
|
55
|
+
let a = P[1].toLowerCase().trim(), F = a.includes("/") ? a.split("/").pop() : a;
|
|
56
|
+
F && I.add(F);
|
|
58
57
|
}
|
|
59
|
-
if (!
|
|
60
|
-
let
|
|
61
|
-
return Array.from(
|
|
62
|
-
}
|
|
63
|
-
var
|
|
64
|
-
function
|
|
65
|
-
let
|
|
66
|
-
for (let
|
|
67
|
-
...
|
|
68
|
-
content:
|
|
69
|
-
offset:
|
|
70
|
-
}),
|
|
71
|
-
return
|
|
72
|
-
...
|
|
73
|
-
content:
|
|
74
|
-
offset:
|
|
75
|
-
}),
|
|
76
|
-
}
|
|
77
|
-
function
|
|
78
|
-
let
|
|
79
|
-
return
|
|
80
|
-
let
|
|
81
|
-
return
|
|
82
|
-
})) :
|
|
83
|
-
}
|
|
84
|
-
function
|
|
85
|
-
let
|
|
86
|
-
content:
|
|
87
|
-
explanation:
|
|
88
|
-
offset:
|
|
89
|
-
},
|
|
90
|
-
let
|
|
91
|
-
return
|
|
58
|
+
if (!F) return Array.from(I);
|
|
59
|
+
let L = F.getBundledLanguages();
|
|
60
|
+
return Array.from(I).filter((a) => a && L[a]);
|
|
61
|
+
}
|
|
62
|
+
var DEFAULT_COLOR_LIGHT_DARK = "light-dark()", COLOR_KEYS = ["color", "background-color"];
|
|
63
|
+
function splitToken(a, P) {
|
|
64
|
+
let F = 0, I = [];
|
|
65
|
+
for (let L of P) L > F && I.push({
|
|
66
|
+
...a,
|
|
67
|
+
content: a.content.slice(F, L),
|
|
68
|
+
offset: a.offset + F
|
|
69
|
+
}), F = L;
|
|
70
|
+
return F < a.content.length && I.push({
|
|
71
|
+
...a,
|
|
72
|
+
content: a.content.slice(F),
|
|
73
|
+
offset: a.offset + F
|
|
74
|
+
}), I;
|
|
75
|
+
}
|
|
76
|
+
function splitTokens(a, P) {
|
|
77
|
+
let F = Array.from(P instanceof Set ? P : new Set(P)).sort((a, P) => a - P);
|
|
78
|
+
return F.length ? a.map((a) => a.flatMap((a) => {
|
|
79
|
+
let P = F.filter((P) => a.offset < P && P < a.offset + a.content.length).map((P) => P - a.offset).sort((a, P) => a - P);
|
|
80
|
+
return P.length ? splitToken(a, P) : a;
|
|
81
|
+
})) : a;
|
|
82
|
+
}
|
|
83
|
+
function flatTokenVariants(P, F, I, L, R = "css-vars") {
|
|
84
|
+
let z = {
|
|
85
|
+
content: P.content,
|
|
86
|
+
explanation: P.explanation,
|
|
87
|
+
offset: P.offset
|
|
88
|
+
}, B = F.map((a) => getTokenStyleObject(P.variants[a])), V = new Set(B.flatMap((a) => Object.keys(a))), H = {}, U = (a, P) => {
|
|
89
|
+
let L = P === "color" ? "" : P === "background-color" ? "-bg" : `-${P}`;
|
|
90
|
+
return I + F[a] + (P === "color" ? "" : L);
|
|
92
91
|
};
|
|
93
|
-
return
|
|
94
|
-
for (let
|
|
95
|
-
let
|
|
96
|
-
if (
|
|
97
|
-
let
|
|
98
|
-
if (
|
|
99
|
-
|
|
100
|
-
} else
|
|
101
|
-
else
|
|
92
|
+
return B.forEach((P, I) => {
|
|
93
|
+
for (let z of V) {
|
|
94
|
+
let V = P[z] || "inherit";
|
|
95
|
+
if (I === 0 && L && COLOR_KEYS.includes(z)) if (L === DEFAULT_COLOR_LIGHT_DARK && B.length > 1) {
|
|
96
|
+
let P = F.findIndex((a) => a === "light"), L = F.findIndex((a) => a === "dark");
|
|
97
|
+
if (P === -1 || L === -1) throw new ShikiError("When using `defaultColor: \"light-dark()\"`, you must provide both `light` and `dark` themes");
|
|
98
|
+
H[z] = `light-dark(${B[P][z] || "inherit"}, ${B[L][z] || "inherit"})`, R === "css-vars" && (H[U(I, z)] = V);
|
|
99
|
+
} else H[z] = V;
|
|
100
|
+
else R === "css-vars" && (H[U(I, z)] = V);
|
|
102
101
|
}
|
|
103
|
-
}),
|
|
104
|
-
}
|
|
105
|
-
function
|
|
106
|
-
let
|
|
107
|
-
if (
|
|
108
|
-
|
|
109
|
-
let
|
|
110
|
-
|
|
102
|
+
}), z.htmlStyle = H, z;
|
|
103
|
+
}
|
|
104
|
+
function getTokenStyleObject(a) {
|
|
105
|
+
let F = {};
|
|
106
|
+
if (a.color && (F.color = a.color), a.bgColor && (F["background-color"] = a.bgColor), a.fontStyle) {
|
|
107
|
+
a.fontStyle & FontStyle.Italic && (F["font-style"] = "italic"), a.fontStyle & FontStyle.Bold && (F["font-weight"] = "bold");
|
|
108
|
+
let I = [];
|
|
109
|
+
a.fontStyle & FontStyle.Underline && I.push("underline"), a.fontStyle & FontStyle.Strikethrough && I.push("line-through"), I.length && (F["text-decoration"] = I.join(" "));
|
|
111
110
|
}
|
|
112
|
-
return
|
|
113
|
-
}
|
|
114
|
-
function
|
|
115
|
-
return typeof
|
|
116
|
-
}
|
|
117
|
-
function
|
|
118
|
-
let
|
|
119
|
-
function
|
|
120
|
-
if (!
|
|
121
|
-
let
|
|
122
|
-
function
|
|
123
|
-
if (typeof
|
|
124
|
-
if (
|
|
111
|
+
return F;
|
|
112
|
+
}
|
|
113
|
+
function stringifyTokenStyle(a) {
|
|
114
|
+
return typeof a == "string" ? a : Object.entries(a).map(([a, P]) => `${a}:${P}`).join(";");
|
|
115
|
+
}
|
|
116
|
+
function transformerDecorations() {
|
|
117
|
+
let P = /* @__PURE__ */ new WeakMap();
|
|
118
|
+
function F(F) {
|
|
119
|
+
if (!P.has(F.meta)) {
|
|
120
|
+
let I = createPositionConverter(F.source);
|
|
121
|
+
function L(P) {
|
|
122
|
+
if (typeof P == "number") {
|
|
123
|
+
if (P < 0 || P > F.source.length) throw new ShikiError(`Invalid decoration offset: ${P}. Code length: ${F.source.length}`);
|
|
125
124
|
return {
|
|
126
|
-
...
|
|
127
|
-
offset:
|
|
125
|
+
...I.indexToPos(P),
|
|
126
|
+
offset: P
|
|
128
127
|
};
|
|
129
128
|
} else {
|
|
130
|
-
let
|
|
131
|
-
if (
|
|
132
|
-
let
|
|
133
|
-
if (
|
|
129
|
+
let F = I.lines[P.line];
|
|
130
|
+
if (F === void 0) throw new ShikiError(`Invalid decoration position ${JSON.stringify(P)}. Lines length: ${I.lines.length}`);
|
|
131
|
+
let L = P.character;
|
|
132
|
+
if (L < 0 && (L = F.length + L), L < 0 || L > F.length) throw new ShikiError(`Invalid decoration position ${JSON.stringify(P)}. Line ${P.line} length: ${F.length}`);
|
|
134
133
|
return {
|
|
135
|
-
...
|
|
136
|
-
character:
|
|
137
|
-
offset:
|
|
134
|
+
...P,
|
|
135
|
+
character: L,
|
|
136
|
+
offset: I.posToIndex(P.line, L)
|
|
138
137
|
};
|
|
139
138
|
}
|
|
140
139
|
}
|
|
141
|
-
let
|
|
142
|
-
...
|
|
143
|
-
start:
|
|
144
|
-
end:
|
|
140
|
+
let R = (F.options.decorations || []).map((a) => ({
|
|
141
|
+
...a,
|
|
142
|
+
start: L(a.start),
|
|
143
|
+
end: L(a.end)
|
|
145
144
|
}));
|
|
146
|
-
|
|
147
|
-
decorations:
|
|
148
|
-
converter:
|
|
149
|
-
source:
|
|
145
|
+
verifyIntersections(R), P.set(F.meta, {
|
|
146
|
+
decorations: R,
|
|
147
|
+
converter: I,
|
|
148
|
+
source: F.source
|
|
150
149
|
});
|
|
151
150
|
}
|
|
152
|
-
return
|
|
151
|
+
return P.get(F.meta);
|
|
153
152
|
}
|
|
154
153
|
return {
|
|
155
154
|
name: "shiki:decorations",
|
|
156
|
-
tokens(
|
|
157
|
-
if (this.options.decorations?.length) return
|
|
155
|
+
tokens(a) {
|
|
156
|
+
if (this.options.decorations?.length) return splitTokens(a, F(this).decorations.flatMap((a) => [a.start.offset, a.end.offset]));
|
|
158
157
|
},
|
|
159
|
-
code(
|
|
158
|
+
code(P) {
|
|
160
159
|
if (!this.options.decorations?.length) return;
|
|
161
|
-
let
|
|
162
|
-
if (
|
|
163
|
-
function
|
|
164
|
-
let
|
|
165
|
-
if (
|
|
166
|
-
if (
|
|
167
|
-
if (
|
|
168
|
-
let
|
|
169
|
-
if (!
|
|
170
|
-
else if (!
|
|
160
|
+
let I = F(this), L = Array.from(P.children).filter((a) => a.type === "element" && a.tagName === "span");
|
|
161
|
+
if (L.length !== I.converter.lines.length) throw new ShikiError(`Number of lines in code element (${L.length}) does not match the number of lines in the source (${I.converter.lines.length}). Failed to apply decorations.`);
|
|
162
|
+
function R(P, F, I, R) {
|
|
163
|
+
let z = L[P], V = "", H = -1, U = -1;
|
|
164
|
+
if (F === 0 && (H = 0), I === 0 && (U = 0), I === Infinity && (U = z.children.length), H === -1 || U === -1) for (let a = 0; a < z.children.length; a++) V += stringify(z.children[a]), H === -1 && V.length === F && (H = a + 1), U === -1 && V.length === I && (U = a + 1);
|
|
165
|
+
if (H === -1) throw new ShikiError(`Failed to find start index for decoration ${JSON.stringify(R.start)}`);
|
|
166
|
+
if (U === -1) throw new ShikiError(`Failed to find end index for decoration ${JSON.stringify(R.end)}`);
|
|
167
|
+
let W = z.children.slice(H, U);
|
|
168
|
+
if (!R.alwaysWrap && W.length === z.children.length) B(z, R, "line");
|
|
169
|
+
else if (!R.alwaysWrap && W.length === 1 && W[0].type === "element") B(W[0], R, "token");
|
|
171
170
|
else {
|
|
172
|
-
let
|
|
171
|
+
let a = {
|
|
173
172
|
type: "element",
|
|
174
173
|
tagName: "span",
|
|
175
174
|
properties: {},
|
|
176
|
-
children:
|
|
175
|
+
children: W
|
|
177
176
|
};
|
|
178
|
-
|
|
177
|
+
B(a, R, "wrapper"), z.children.splice(H, W.length, a);
|
|
179
178
|
}
|
|
180
179
|
}
|
|
181
|
-
function
|
|
182
|
-
|
|
180
|
+
function z(a, P) {
|
|
181
|
+
L[a] = B(L[a], P, "line");
|
|
183
182
|
}
|
|
184
|
-
function
|
|
185
|
-
let
|
|
186
|
-
return
|
|
187
|
-
...
|
|
188
|
-
...
|
|
189
|
-
class:
|
|
190
|
-
},
|
|
183
|
+
function B(a, P, F) {
|
|
184
|
+
let I = P.properties || {}, L = P.transform || ((a) => a);
|
|
185
|
+
return a.tagName = P.tagName || "span", a.properties = {
|
|
186
|
+
...a.properties,
|
|
187
|
+
...I,
|
|
188
|
+
class: a.properties.class
|
|
189
|
+
}, P.properties?.class && addClassToHast(a, P.properties.class), a = L(a, F) || a, a;
|
|
191
190
|
}
|
|
192
|
-
let
|
|
193
|
-
for (let
|
|
194
|
-
let { start:
|
|
195
|
-
if (
|
|
196
|
-
else if (
|
|
197
|
-
|
|
198
|
-
for (let
|
|
199
|
-
|
|
191
|
+
let V = [], H = I.decorations.sort((a, P) => P.start.offset - a.start.offset || a.end.offset - P.end.offset);
|
|
192
|
+
for (let a of H) {
|
|
193
|
+
let { start: P, end: F } = a;
|
|
194
|
+
if (P.line === F.line) R(P.line, P.character, F.character, a);
|
|
195
|
+
else if (P.line < F.line) {
|
|
196
|
+
R(P.line, P.character, Infinity, a);
|
|
197
|
+
for (let I = P.line + 1; I < F.line; I++) V.unshift(() => z(I, a));
|
|
198
|
+
R(F.line, 0, F.character, a);
|
|
200
199
|
}
|
|
201
200
|
}
|
|
202
|
-
|
|
201
|
+
V.forEach((a) => a());
|
|
203
202
|
}
|
|
204
203
|
};
|
|
205
204
|
}
|
|
206
|
-
function
|
|
207
|
-
for (let
|
|
208
|
-
let
|
|
209
|
-
if (
|
|
210
|
-
for (let
|
|
211
|
-
let
|
|
212
|
-
if (
|
|
213
|
-
if (
|
|
214
|
-
throw new
|
|
205
|
+
function verifyIntersections(P) {
|
|
206
|
+
for (let F = 0; F < P.length; F++) {
|
|
207
|
+
let I = P[F];
|
|
208
|
+
if (I.start.offset > I.end.offset) throw new ShikiError(`Invalid decoration range: ${JSON.stringify(I.start)} - ${JSON.stringify(I.end)}`);
|
|
209
|
+
for (let L = F + 1; L < P.length; L++) {
|
|
210
|
+
let F = P[L], R = I.start.offset <= F.start.offset && F.start.offset < I.end.offset, z = I.start.offset < F.end.offset && F.end.offset <= I.end.offset, B = F.start.offset <= I.start.offset && I.start.offset < F.end.offset, V = F.start.offset < I.end.offset && I.end.offset <= F.end.offset;
|
|
211
|
+
if (R || z || B || V) {
|
|
212
|
+
if (R && z || B && V || B && I.start.offset === I.end.offset || z && F.start.offset === F.end.offset) continue;
|
|
213
|
+
throw new ShikiError(`Decorations ${JSON.stringify(I.start)} and ${JSON.stringify(F.start)} intersect.`);
|
|
215
214
|
}
|
|
216
215
|
}
|
|
217
216
|
}
|
|
218
217
|
}
|
|
219
|
-
function
|
|
220
|
-
return
|
|
218
|
+
function stringify(a) {
|
|
219
|
+
return a.type === "text" ? a.value : a.type === "element" ? a.children.map(stringify).join("") : "";
|
|
221
220
|
}
|
|
222
|
-
var
|
|
223
|
-
function
|
|
224
|
-
let
|
|
221
|
+
var builtInTransformers = [/* @__PURE__ */ transformerDecorations()];
|
|
222
|
+
function getTransformers(a) {
|
|
223
|
+
let P = sortTransformersByEnforcement(a.transformers || []);
|
|
225
224
|
return [
|
|
226
|
-
...
|
|
227
|
-
...
|
|
228
|
-
...
|
|
229
|
-
...
|
|
225
|
+
...P.pre,
|
|
226
|
+
...P.normal,
|
|
227
|
+
...P.post,
|
|
228
|
+
...builtInTransformers
|
|
230
229
|
];
|
|
231
230
|
}
|
|
232
|
-
function
|
|
233
|
-
let
|
|
234
|
-
for (let
|
|
231
|
+
function sortTransformersByEnforcement(a) {
|
|
232
|
+
let P = [], F = [], I = [];
|
|
233
|
+
for (let L of a) switch (L.enforce) {
|
|
235
234
|
case "pre":
|
|
236
|
-
|
|
235
|
+
P.push(L);
|
|
237
236
|
break;
|
|
238
237
|
case "post":
|
|
239
|
-
|
|
238
|
+
F.push(L);
|
|
240
239
|
break;
|
|
241
|
-
default:
|
|
240
|
+
default: I.push(L);
|
|
242
241
|
}
|
|
243
242
|
return {
|
|
244
|
-
pre:
|
|
245
|
-
post:
|
|
246
|
-
normal:
|
|
243
|
+
pre: P,
|
|
244
|
+
post: F,
|
|
245
|
+
normal: I
|
|
247
246
|
};
|
|
248
247
|
}
|
|
249
|
-
var
|
|
248
|
+
var namedColors = [
|
|
250
249
|
"black",
|
|
251
250
|
"red",
|
|
252
251
|
"green",
|
|
@@ -263,7 +262,7 @@ var M = [
|
|
|
263
262
|
"brightMagenta",
|
|
264
263
|
"brightCyan",
|
|
265
264
|
"brightWhite"
|
|
266
|
-
],
|
|
265
|
+
], decorations = {
|
|
267
266
|
1: "bold",
|
|
268
267
|
2: "dim",
|
|
269
268
|
3: "italic",
|
|
@@ -272,125 +271,125 @@ var M = [
|
|
|
272
271
|
8: "hidden",
|
|
273
272
|
9: "strikethrough"
|
|
274
273
|
};
|
|
275
|
-
function
|
|
276
|
-
let
|
|
277
|
-
if (
|
|
278
|
-
let
|
|
279
|
-
if (
|
|
280
|
-
sequence:
|
|
281
|
-
startPosition:
|
|
282
|
-
position:
|
|
274
|
+
function findSequence(a, P) {
|
|
275
|
+
let F = a.indexOf("\x1B", P);
|
|
276
|
+
if (F !== -1 && a[F + 1] === "[") {
|
|
277
|
+
let P = a.indexOf("m", F);
|
|
278
|
+
if (P !== -1) return {
|
|
279
|
+
sequence: a.substring(F + 2, P).split(";"),
|
|
280
|
+
startPosition: F,
|
|
281
|
+
position: P + 1
|
|
283
282
|
};
|
|
284
283
|
}
|
|
285
|
-
return { position:
|
|
284
|
+
return { position: a.length };
|
|
286
285
|
}
|
|
287
|
-
function
|
|
288
|
-
let
|
|
289
|
-
if (
|
|
290
|
-
let
|
|
291
|
-
return
|
|
286
|
+
function parseColor(a) {
|
|
287
|
+
let P = a.shift();
|
|
288
|
+
if (P === "2") {
|
|
289
|
+
let P = a.splice(0, 3).map((a) => Number.parseInt(a));
|
|
290
|
+
return P.length !== 3 || P.some((a) => Number.isNaN(a)) ? void 0 : {
|
|
292
291
|
type: "rgb",
|
|
293
|
-
rgb:
|
|
292
|
+
rgb: P
|
|
294
293
|
};
|
|
295
|
-
} else if (
|
|
296
|
-
let
|
|
297
|
-
if (
|
|
294
|
+
} else if (P === "5") {
|
|
295
|
+
let P = a.shift();
|
|
296
|
+
if (P) return {
|
|
298
297
|
type: "table",
|
|
299
|
-
index: Number(
|
|
298
|
+
index: Number(P)
|
|
300
299
|
};
|
|
301
300
|
}
|
|
302
301
|
}
|
|
303
|
-
function
|
|
304
|
-
let
|
|
305
|
-
for (;
|
|
306
|
-
let
|
|
307
|
-
if (!
|
|
308
|
-
let
|
|
309
|
-
if (!Number.isNaN(
|
|
310
|
-
else if (
|
|
302
|
+
function parseSequence(a) {
|
|
303
|
+
let P = [];
|
|
304
|
+
for (; a.length > 0;) {
|
|
305
|
+
let F = a.shift();
|
|
306
|
+
if (!F) continue;
|
|
307
|
+
let I = Number.parseInt(F);
|
|
308
|
+
if (!Number.isNaN(I)) if (I === 0) P.push({ type: "resetAll" });
|
|
309
|
+
else if (I <= 9) decorations[I] && P.push({
|
|
311
310
|
type: "setDecoration",
|
|
312
|
-
value:
|
|
311
|
+
value: decorations[I]
|
|
313
312
|
});
|
|
314
|
-
else if (
|
|
315
|
-
let
|
|
316
|
-
|
|
313
|
+
else if (I <= 29) {
|
|
314
|
+
let a = decorations[I - 20];
|
|
315
|
+
a && (P.push({
|
|
317
316
|
type: "resetDecoration",
|
|
318
|
-
value:
|
|
319
|
-
}),
|
|
317
|
+
value: a
|
|
318
|
+
}), a === "dim" && P.push({
|
|
320
319
|
type: "resetDecoration",
|
|
321
320
|
value: "bold"
|
|
322
321
|
}));
|
|
323
|
-
} else if (
|
|
322
|
+
} else if (I <= 37) P.push({
|
|
324
323
|
type: "setForegroundColor",
|
|
325
324
|
value: {
|
|
326
325
|
type: "named",
|
|
327
|
-
name:
|
|
326
|
+
name: namedColors[I - 30]
|
|
328
327
|
}
|
|
329
328
|
});
|
|
330
|
-
else if (
|
|
331
|
-
let
|
|
332
|
-
|
|
329
|
+
else if (I === 38) {
|
|
330
|
+
let F = parseColor(a);
|
|
331
|
+
F && P.push({
|
|
333
332
|
type: "setForegroundColor",
|
|
334
|
-
value:
|
|
333
|
+
value: F
|
|
335
334
|
});
|
|
336
|
-
} else if (
|
|
337
|
-
else if (
|
|
335
|
+
} else if (I === 39) P.push({ type: "resetForegroundColor" });
|
|
336
|
+
else if (I <= 47) P.push({
|
|
338
337
|
type: "setBackgroundColor",
|
|
339
338
|
value: {
|
|
340
339
|
type: "named",
|
|
341
|
-
name:
|
|
340
|
+
name: namedColors[I - 40]
|
|
342
341
|
}
|
|
343
342
|
});
|
|
344
|
-
else if (
|
|
345
|
-
let
|
|
346
|
-
|
|
343
|
+
else if (I === 48) {
|
|
344
|
+
let F = parseColor(a);
|
|
345
|
+
F && P.push({
|
|
347
346
|
type: "setBackgroundColor",
|
|
348
|
-
value:
|
|
347
|
+
value: F
|
|
349
348
|
});
|
|
350
|
-
} else
|
|
349
|
+
} else I === 49 ? P.push({ type: "resetBackgroundColor" }) : I === 53 ? P.push({
|
|
351
350
|
type: "setDecoration",
|
|
352
351
|
value: "overline"
|
|
353
|
-
}) :
|
|
352
|
+
}) : I === 55 ? P.push({
|
|
354
353
|
type: "resetDecoration",
|
|
355
354
|
value: "overline"
|
|
356
|
-
}) :
|
|
355
|
+
}) : I >= 90 && I <= 97 ? P.push({
|
|
357
356
|
type: "setForegroundColor",
|
|
358
357
|
value: {
|
|
359
358
|
type: "named",
|
|
360
|
-
name:
|
|
359
|
+
name: namedColors[I - 90 + 8]
|
|
361
360
|
}
|
|
362
|
-
}) :
|
|
361
|
+
}) : I >= 100 && I <= 107 && P.push({
|
|
363
362
|
type: "setBackgroundColor",
|
|
364
363
|
value: {
|
|
365
364
|
type: "named",
|
|
366
|
-
name:
|
|
365
|
+
name: namedColors[I - 100 + 8]
|
|
367
366
|
}
|
|
368
367
|
});
|
|
369
368
|
}
|
|
370
|
-
return
|
|
369
|
+
return P;
|
|
371
370
|
}
|
|
372
|
-
function
|
|
373
|
-
let
|
|
374
|
-
return { parse(
|
|
375
|
-
let
|
|
371
|
+
function createAnsiSequenceParser() {
|
|
372
|
+
let a = null, P = null, F = /* @__PURE__ */ new Set();
|
|
373
|
+
return { parse(I) {
|
|
374
|
+
let L = [], R = 0;
|
|
376
375
|
do {
|
|
377
|
-
let
|
|
378
|
-
if (
|
|
379
|
-
value:
|
|
380
|
-
foreground:
|
|
381
|
-
background:
|
|
382
|
-
decorations: new Set(
|
|
383
|
-
}),
|
|
384
|
-
let
|
|
385
|
-
for (let
|
|
386
|
-
for (let
|
|
376
|
+
let z = findSequence(I, R), B = z.sequence ? I.substring(R, z.startPosition) : I.substring(R);
|
|
377
|
+
if (B.length > 0 && L.push({
|
|
378
|
+
value: B,
|
|
379
|
+
foreground: a,
|
|
380
|
+
background: P,
|
|
381
|
+
decorations: new Set(F)
|
|
382
|
+
}), z.sequence) {
|
|
383
|
+
let I = parseSequence(z.sequence);
|
|
384
|
+
for (let L of I) L.type === "resetAll" ? (a = null, P = null, F.clear()) : L.type === "resetForegroundColor" ? a = null : L.type === "resetBackgroundColor" ? P = null : L.type === "resetDecoration" && F.delete(L.value);
|
|
385
|
+
for (let L of I) L.type === "setForegroundColor" ? a = L.value : L.type === "setBackgroundColor" ? P = L.value : L.type === "setDecoration" && F.add(L.value);
|
|
387
386
|
}
|
|
388
|
-
|
|
389
|
-
} while (
|
|
390
|
-
return
|
|
387
|
+
R = z.position;
|
|
388
|
+
} while (R < I.length);
|
|
389
|
+
return L;
|
|
391
390
|
} };
|
|
392
391
|
}
|
|
393
|
-
var
|
|
392
|
+
var defaultNamedColorsMap = {
|
|
394
393
|
black: "#000000",
|
|
395
394
|
red: "#bb0000",
|
|
396
395
|
green: "#00bb00",
|
|
@@ -408,19 +407,19 @@ var R = {
|
|
|
408
407
|
brightCyan: "#55ffff",
|
|
409
408
|
brightWhite: "#ffffff"
|
|
410
409
|
};
|
|
411
|
-
function
|
|
412
|
-
function
|
|
413
|
-
return
|
|
410
|
+
function createColorPalette(a = defaultNamedColorsMap) {
|
|
411
|
+
function P(P) {
|
|
412
|
+
return a[P];
|
|
414
413
|
}
|
|
415
|
-
function
|
|
416
|
-
return `#${
|
|
414
|
+
function F(a) {
|
|
415
|
+
return `#${a.map((a) => Math.max(0, Math.min(a, 255)).toString(16).padStart(2, "0")).join("")}`;
|
|
417
416
|
}
|
|
418
|
-
let
|
|
419
|
-
function
|
|
420
|
-
if (
|
|
421
|
-
|
|
422
|
-
for (let
|
|
423
|
-
let
|
|
417
|
+
let I;
|
|
418
|
+
function L() {
|
|
419
|
+
if (I) return I;
|
|
420
|
+
I = [];
|
|
421
|
+
for (let a = 0; a < namedColors.length; a++) I.push(P(namedColors[a]));
|
|
422
|
+
let a = [
|
|
424
423
|
0,
|
|
425
424
|
95,
|
|
426
425
|
135,
|
|
@@ -428,32 +427,32 @@ function z(e = R) {
|
|
|
428
427
|
215,
|
|
429
428
|
255
|
|
430
429
|
];
|
|
431
|
-
for (let
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
430
|
+
for (let P = 0; P < 6; P++) for (let L = 0; L < 6; L++) for (let R = 0; R < 6; R++) I.push(F([
|
|
431
|
+
a[P],
|
|
432
|
+
a[L],
|
|
433
|
+
a[R]
|
|
435
434
|
]));
|
|
436
|
-
let
|
|
437
|
-
for (let
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
435
|
+
let L = 8;
|
|
436
|
+
for (let a = 0; a < 24; a++, L += 10) I.push(F([
|
|
437
|
+
L,
|
|
438
|
+
L,
|
|
439
|
+
L
|
|
441
440
|
]));
|
|
442
|
-
return
|
|
441
|
+
return I;
|
|
443
442
|
}
|
|
444
|
-
function a
|
|
445
|
-
return
|
|
443
|
+
function R(a) {
|
|
444
|
+
return L()[a];
|
|
446
445
|
}
|
|
447
|
-
function
|
|
448
|
-
switch (
|
|
449
|
-
case "named": return
|
|
450
|
-
case "rgb": return
|
|
451
|
-
case "table": return a
|
|
446
|
+
function z(a) {
|
|
447
|
+
switch (a.type) {
|
|
448
|
+
case "named": return P(a.name);
|
|
449
|
+
case "rgb": return F(a.rgb);
|
|
450
|
+
case "table": return R(a.index);
|
|
452
451
|
}
|
|
453
452
|
}
|
|
454
|
-
return { value:
|
|
453
|
+
return { value: z };
|
|
455
454
|
}
|
|
456
|
-
var
|
|
455
|
+
var defaultAnsiColors = {
|
|
457
456
|
black: "#000000",
|
|
458
457
|
red: "#cd3131",
|
|
459
458
|
green: "#0DBC79",
|
|
@@ -471,414 +470,413 @@ var B = {
|
|
|
471
470
|
brightCyan: "#29B8DB",
|
|
472
471
|
brightWhite: "#FFFFFF"
|
|
473
472
|
};
|
|
474
|
-
function
|
|
475
|
-
let
|
|
476
|
-
let
|
|
477
|
-
return [
|
|
478
|
-
}))),
|
|
479
|
-
return
|
|
480
|
-
let
|
|
481
|
-
|
|
482
|
-
let
|
|
483
|
-
return
|
|
484
|
-
content:
|
|
485
|
-
offset:
|
|
486
|
-
color:
|
|
487
|
-
bgColor:
|
|
488
|
-
fontStyle:
|
|
473
|
+
function tokenizeAnsiWithTheme(a, I, L) {
|
|
474
|
+
let R = resolveColorReplacements(a, L), z = splitLines(I), B = createColorPalette(Object.fromEntries(namedColors.map((P) => {
|
|
475
|
+
let F = `terminal.ansi${P[0].toUpperCase()}${P.substring(1)}`;
|
|
476
|
+
return [P, a.colors?.[F] || defaultAnsiColors[P]];
|
|
477
|
+
}))), V = createAnsiSequenceParser();
|
|
478
|
+
return z.map((I) => V.parse(I[0]).map((L) => {
|
|
479
|
+
let z, V;
|
|
480
|
+
L.decorations.has("reverse") ? (z = L.background ? B.value(L.background) : a.bg, V = L.foreground ? B.value(L.foreground) : a.fg) : (z = L.foreground ? B.value(L.foreground) : a.fg, V = L.background ? B.value(L.background) : void 0), z = applyColorReplacements(z, R), V = applyColorReplacements(V, R), L.decorations.has("dim") && (z = dimColor(z));
|
|
481
|
+
let H = FontStyle.None;
|
|
482
|
+
return L.decorations.has("bold") && (H |= FontStyle.Bold), L.decorations.has("italic") && (H |= FontStyle.Italic), L.decorations.has("underline") && (H |= FontStyle.Underline), L.decorations.has("strikethrough") && (H |= FontStyle.Strikethrough), {
|
|
483
|
+
content: L.value,
|
|
484
|
+
offset: I[1],
|
|
485
|
+
color: z,
|
|
486
|
+
bgColor: V,
|
|
487
|
+
fontStyle: H
|
|
489
488
|
};
|
|
490
489
|
}));
|
|
491
490
|
}
|
|
492
|
-
function
|
|
493
|
-
let
|
|
494
|
-
if (
|
|
495
|
-
let
|
|
496
|
-
if (
|
|
497
|
-
let
|
|
498
|
-
return `#${
|
|
499
|
-
} else if (
|
|
500
|
-
else if (
|
|
501
|
-
let
|
|
502
|
-
return `#${
|
|
503
|
-
} else if (
|
|
504
|
-
let
|
|
505
|
-
return `#${
|
|
491
|
+
function dimColor(a) {
|
|
492
|
+
let P = a.match(/#([0-9a-f]{3,8})/i);
|
|
493
|
+
if (P) {
|
|
494
|
+
let a = P[1];
|
|
495
|
+
if (a.length === 8) {
|
|
496
|
+
let P = Math.round(Number.parseInt(a.slice(6, 8), 16) / 2).toString(16).padStart(2, "0");
|
|
497
|
+
return `#${a.slice(0, 6)}${P}`;
|
|
498
|
+
} else if (a.length === 6) return `#${a}80`;
|
|
499
|
+
else if (a.length === 4) {
|
|
500
|
+
let P = a[0], F = a[1], I = a[2], L = a[3];
|
|
501
|
+
return `#${P}${P}${F}${F}${I}${I}${Math.round(Number.parseInt(`${L}${L}`, 16) / 2).toString(16).padStart(2, "0")}`;
|
|
502
|
+
} else if (a.length === 3) {
|
|
503
|
+
let P = a[0], F = a[1], I = a[2];
|
|
504
|
+
return `#${P}${P}${F}${F}${I}${I}80`;
|
|
506
505
|
}
|
|
507
506
|
}
|
|
508
|
-
let
|
|
509
|
-
return
|
|
510
|
-
}
|
|
511
|
-
function
|
|
512
|
-
let
|
|
513
|
-
if (!
|
|
514
|
-
let { theme:
|
|
515
|
-
return
|
|
507
|
+
let F = a.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);
|
|
508
|
+
return F ? `var(${F[1]}-dim)` : a;
|
|
509
|
+
}
|
|
510
|
+
function codeToTokensBase$1(a, P, F = {}) {
|
|
511
|
+
let L = a.resolveLangAlias(F.lang || "text"), { theme: R = a.getLoadedThemes()[0] } = F;
|
|
512
|
+
if (!isPlainLang(L) && !isNoneTheme(R) && L === "ansi") {
|
|
513
|
+
let { theme: I } = a.setTheme(R);
|
|
514
|
+
return tokenizeAnsiWithTheme(I, P, F);
|
|
516
515
|
}
|
|
517
|
-
return
|
|
518
|
-
}
|
|
519
|
-
function
|
|
520
|
-
let
|
|
521
|
-
if ("themes" in
|
|
522
|
-
let { defaultColor:
|
|
523
|
-
color:
|
|
524
|
-
theme:
|
|
525
|
-
})).sort((
|
|
526
|
-
if (
|
|
527
|
-
let
|
|
528
|
-
if (
|
|
529
|
-
let
|
|
530
|
-
|
|
531
|
-
let
|
|
532
|
-
|
|
533
|
-
} else if ("theme" in
|
|
534
|
-
let
|
|
535
|
-
|
|
536
|
-
let
|
|
537
|
-
|
|
538
|
-
} else throw new
|
|
516
|
+
return codeToTokensBase(a, P, F);
|
|
517
|
+
}
|
|
518
|
+
function codeToTokens(P, I, R) {
|
|
519
|
+
let z, B, H, U, W, G;
|
|
520
|
+
if ("themes" in R) {
|
|
521
|
+
let { defaultColor: F = "light", cssVariablePrefix: K = "--shiki-", colorsRendering: q = "css-vars" } = R, Y = Object.entries(R.themes).filter((a) => a[1]).map((a) => ({
|
|
522
|
+
color: a[0],
|
|
523
|
+
theme: a[1]
|
|
524
|
+
})).sort((a, P) => a.color === F ? -1 : P.color === F ? 1 : 0);
|
|
525
|
+
if (Y.length === 0) throw new ShikiError("`themes` option must not be empty");
|
|
526
|
+
let X = codeToTokensWithThemes(P, I, R, codeToTokensBase$1);
|
|
527
|
+
if (G = getLastGrammarStateFromMap(X), F && DEFAULT_COLOR_LIGHT_DARK !== F && !Y.find((a) => a.color === F)) throw new ShikiError(`\`themes\` option must contain the defaultColor key \`${F}\``);
|
|
528
|
+
let Z = Y.map((a) => P.getTheme(a.theme)), Q = Y.map((a) => a.color);
|
|
529
|
+
H = X.map((a) => a.map((a) => flatTokenVariants(a, Q, K, F, q))), G && setLastGrammarStateToMap(H, G);
|
|
530
|
+
let $ = Y.map((a) => resolveColorReplacements(a.theme, R));
|
|
531
|
+
B = mapThemeColors(Y, Z, $, K, F, "fg", q), z = mapThemeColors(Y, Z, $, K, F, "bg", q), U = `shiki-themes ${Z.map((a) => a.name).join(" ")}`, W = F ? void 0 : [B, z].join(";");
|
|
532
|
+
} else if ("theme" in R) {
|
|
533
|
+
let a = resolveColorReplacements(R.theme, R);
|
|
534
|
+
H = codeToTokensBase$1(P, I, R);
|
|
535
|
+
let L = P.getTheme(R.theme);
|
|
536
|
+
z = applyColorReplacements(L.bg, a), B = applyColorReplacements(L.fg, a), U = L.name, G = getLastGrammarStateFromMap(H);
|
|
537
|
+
} else throw new ShikiError("Invalid options, either `theme` or `themes` must be provided");
|
|
539
538
|
return {
|
|
540
|
-
tokens:
|
|
541
|
-
fg:
|
|
542
|
-
bg:
|
|
543
|
-
themeName:
|
|
544
|
-
rootStyle:
|
|
545
|
-
grammarState:
|
|
539
|
+
tokens: H,
|
|
540
|
+
fg: B,
|
|
541
|
+
bg: z,
|
|
542
|
+
themeName: U,
|
|
543
|
+
rootStyle: W,
|
|
544
|
+
grammarState: G
|
|
546
545
|
};
|
|
547
546
|
}
|
|
548
|
-
function
|
|
549
|
-
return
|
|
550
|
-
let
|
|
551
|
-
if (
|
|
552
|
-
if (
|
|
553
|
-
let
|
|
554
|
-
if (
|
|
555
|
-
return `light-dark(${
|
|
547
|
+
function mapThemeColors(P, I, L, R, z, B, V) {
|
|
548
|
+
return P.map((H, U) => {
|
|
549
|
+
let W = applyColorReplacements(I[U][B], L[U]) || "inherit", G = `${R + H.color}${B === "bg" ? "-bg" : ""}:${W}`;
|
|
550
|
+
if (U === 0 && z) {
|
|
551
|
+
if (z === DEFAULT_COLOR_LIGHT_DARK && P.length > 1) {
|
|
552
|
+
let R = P.findIndex((a) => a.color === "light"), z = P.findIndex((a) => a.color === "dark");
|
|
553
|
+
if (R === -1 || z === -1) throw new ShikiError("When using `defaultColor: \"light-dark()\"`, you must provide both `light` and `dark` themes");
|
|
554
|
+
return `light-dark(${applyColorReplacements(I[R][B], L[R]) || "inherit"}, ${applyColorReplacements(I[z][B], L[z]) || "inherit"});${G}`;
|
|
556
555
|
}
|
|
557
|
-
return
|
|
556
|
+
return W;
|
|
558
557
|
}
|
|
559
|
-
return
|
|
560
|
-
}).filter((
|
|
558
|
+
return V === "css-vars" ? G : null;
|
|
559
|
+
}).filter((a) => !!a).join(";");
|
|
561
560
|
}
|
|
562
|
-
function
|
|
561
|
+
function codeToHast(a, P, F, I = {
|
|
563
562
|
meta: {},
|
|
564
|
-
options:
|
|
565
|
-
codeToHast: (
|
|
566
|
-
codeToTokens: (
|
|
563
|
+
options: F,
|
|
564
|
+
codeToHast: (P, F) => codeToHast(a, P, F),
|
|
565
|
+
codeToTokens: (P, F) => codeToTokens(a, P, F)
|
|
567
566
|
}) {
|
|
568
|
-
let
|
|
569
|
-
for (let
|
|
570
|
-
let { tokens:
|
|
571
|
-
|
|
572
|
-
let
|
|
573
|
-
...
|
|
567
|
+
let L = P;
|
|
568
|
+
for (let a of getTransformers(F)) L = a.preprocess?.call(I, L, F) || L;
|
|
569
|
+
let { tokens: R, fg: z, bg: B, themeName: V, rootStyle: H, grammarState: U } = codeToTokens(a, L, F), { mergeWhitespaces: W = !0, mergeSameStyleTokens: G = !1 } = F;
|
|
570
|
+
W === !0 ? R = mergeWhitespaceTokens(R) : W === "never" && (R = splitWhitespaceTokens(R)), G && (R = mergeAdjacentStyledTokens(R));
|
|
571
|
+
let K = {
|
|
572
|
+
...I,
|
|
574
573
|
get source() {
|
|
575
|
-
return
|
|
574
|
+
return L;
|
|
576
575
|
}
|
|
577
576
|
};
|
|
578
|
-
for (let
|
|
579
|
-
return
|
|
580
|
-
...
|
|
581
|
-
fg:
|
|
582
|
-
bg:
|
|
583
|
-
themeName:
|
|
584
|
-
rootStyle:
|
|
585
|
-
},
|
|
586
|
-
}
|
|
587
|
-
function
|
|
588
|
-
let
|
|
577
|
+
for (let a of getTransformers(F)) R = a.tokens?.call(K, R) || R;
|
|
578
|
+
return tokensToHast(R, {
|
|
579
|
+
...F,
|
|
580
|
+
fg: z,
|
|
581
|
+
bg: B,
|
|
582
|
+
themeName: V,
|
|
583
|
+
rootStyle: F.rootStyle === !1 ? !1 : F.rootStyle ?? H
|
|
584
|
+
}, K, U);
|
|
585
|
+
}
|
|
586
|
+
function tokensToHast(a, P, F, I = getLastGrammarStateFromMap(a)) {
|
|
587
|
+
let L = getTransformers(P), R = [], z = {
|
|
589
588
|
type: "root",
|
|
590
589
|
children: []
|
|
591
|
-
}, { structure:
|
|
592
|
-
|
|
593
|
-
for (let [
|
|
594
|
-
let
|
|
590
|
+
}, { structure: B = "classic", tabindex: H = "0" } = P, U = { class: `shiki ${P.themeName || ""}` };
|
|
591
|
+
P.rootStyle !== !1 && (P.rootStyle == null ? U.style = `background-color:${P.bg};color:${P.fg}` : U.style = P.rootStyle), H !== !1 && H != null && (U.tabindex = H.toString());
|
|
592
|
+
for (let [a, F] of Object.entries(P.meta || {})) a.startsWith("_") || (U[a] = F);
|
|
593
|
+
let W = {
|
|
595
594
|
type: "element",
|
|
596
595
|
tagName: "pre",
|
|
597
|
-
properties:
|
|
596
|
+
properties: U,
|
|
598
597
|
children: [],
|
|
599
|
-
data:
|
|
600
|
-
},
|
|
598
|
+
data: P.data
|
|
599
|
+
}, G = {
|
|
601
600
|
type: "element",
|
|
602
601
|
tagName: "code",
|
|
603
602
|
properties: {},
|
|
604
|
-
children:
|
|
605
|
-
},
|
|
606
|
-
...
|
|
607
|
-
structure:
|
|
608
|
-
addClassToHast
|
|
603
|
+
children: R
|
|
604
|
+
}, K = [], q = {
|
|
605
|
+
...F,
|
|
606
|
+
structure: B,
|
|
607
|
+
addClassToHast,
|
|
609
608
|
get source() {
|
|
610
|
-
return
|
|
609
|
+
return F.source;
|
|
611
610
|
},
|
|
612
611
|
get tokens() {
|
|
613
|
-
return
|
|
612
|
+
return a;
|
|
614
613
|
},
|
|
615
614
|
get options() {
|
|
616
|
-
return
|
|
615
|
+
return P;
|
|
617
616
|
},
|
|
618
617
|
get root() {
|
|
619
|
-
return
|
|
618
|
+
return z;
|
|
620
619
|
},
|
|
621
620
|
get pre() {
|
|
622
|
-
return
|
|
621
|
+
return W;
|
|
623
622
|
},
|
|
624
623
|
get code() {
|
|
625
|
-
return
|
|
624
|
+
return G;
|
|
626
625
|
},
|
|
627
626
|
get lines() {
|
|
628
|
-
return
|
|
627
|
+
return K;
|
|
629
628
|
}
|
|
630
629
|
};
|
|
631
|
-
if (
|
|
632
|
-
|
|
630
|
+
if (a.forEach((a, P) => {
|
|
631
|
+
P && (B === "inline" ? z.children.push({
|
|
633
632
|
type: "element",
|
|
634
633
|
tagName: "br",
|
|
635
634
|
properties: {},
|
|
636
635
|
children: []
|
|
637
|
-
}) :
|
|
636
|
+
}) : B === "classic" && R.push({
|
|
638
637
|
type: "text",
|
|
639
638
|
value: "\n"
|
|
640
639
|
}));
|
|
641
|
-
let
|
|
640
|
+
let F = {
|
|
642
641
|
type: "element",
|
|
643
642
|
tagName: "span",
|
|
644
643
|
properties: { class: "line" },
|
|
645
644
|
children: []
|
|
646
|
-
},
|
|
647
|
-
for (let
|
|
648
|
-
let
|
|
645
|
+
}, I = 0;
|
|
646
|
+
for (let R of a) {
|
|
647
|
+
let a = {
|
|
649
648
|
type: "element",
|
|
650
649
|
tagName: "span",
|
|
651
|
-
properties: { ...
|
|
650
|
+
properties: { ...R.htmlAttrs },
|
|
652
651
|
children: [{
|
|
653
652
|
type: "text",
|
|
654
|
-
value:
|
|
653
|
+
value: R.content
|
|
655
654
|
}]
|
|
656
|
-
},
|
|
657
|
-
|
|
658
|
-
for (let
|
|
659
|
-
|
|
655
|
+
}, V = stringifyTokenStyle(R.htmlStyle || getTokenStyleObject(R));
|
|
656
|
+
V && (a.properties.style = V);
|
|
657
|
+
for (let z of L) a = z?.span?.call(q, a, P + 1, I, F, R) || a;
|
|
658
|
+
B === "inline" ? z.children.push(a) : B === "classic" && F.children.push(a), I += R.content.length;
|
|
660
659
|
}
|
|
661
|
-
if (
|
|
662
|
-
for (let
|
|
663
|
-
|
|
664
|
-
} else
|
|
665
|
-
}),
|
|
666
|
-
for (let
|
|
667
|
-
|
|
668
|
-
for (let
|
|
669
|
-
|
|
670
|
-
} else if (
|
|
671
|
-
let
|
|
660
|
+
if (B === "classic") {
|
|
661
|
+
for (let a of L) F = a?.line?.call(q, F, P + 1) || F;
|
|
662
|
+
K.push(F), R.push(F);
|
|
663
|
+
} else B === "inline" && K.push(F);
|
|
664
|
+
}), B === "classic") {
|
|
665
|
+
for (let a of L) G = a?.code?.call(q, G) || G;
|
|
666
|
+
W.children.push(G);
|
|
667
|
+
for (let a of L) W = a?.pre?.call(q, W) || W;
|
|
668
|
+
z.children.push(W);
|
|
669
|
+
} else if (B === "inline") {
|
|
670
|
+
let a = [], P = {
|
|
672
671
|
type: "element",
|
|
673
672
|
tagName: "span",
|
|
674
673
|
properties: { class: "line" },
|
|
675
674
|
children: []
|
|
676
675
|
};
|
|
677
|
-
for (let
|
|
676
|
+
for (let F of z.children) F.type === "element" && F.tagName === "br" ? (a.push(P), P = {
|
|
678
677
|
type: "element",
|
|
679
678
|
tagName: "span",
|
|
680
679
|
properties: { class: "line" },
|
|
681
680
|
children: []
|
|
682
|
-
}) : (
|
|
683
|
-
|
|
684
|
-
let
|
|
681
|
+
}) : (F.type === "element" || F.type === "text") && P.children.push(F);
|
|
682
|
+
a.push(P);
|
|
683
|
+
let F = {
|
|
685
684
|
type: "element",
|
|
686
685
|
tagName: "code",
|
|
687
686
|
properties: {},
|
|
688
|
-
children:
|
|
687
|
+
children: a
|
|
689
688
|
};
|
|
690
|
-
for (let
|
|
691
|
-
|
|
692
|
-
for (let
|
|
693
|
-
|
|
689
|
+
for (let a of L) F = a?.code?.call(q, F) || F;
|
|
690
|
+
z.children = [];
|
|
691
|
+
for (let a = 0; a < F.children.length; a++) {
|
|
692
|
+
a > 0 && z.children.push({
|
|
694
693
|
type: "element",
|
|
695
694
|
tagName: "br",
|
|
696
695
|
properties: {},
|
|
697
696
|
children: []
|
|
698
697
|
});
|
|
699
|
-
let
|
|
700
|
-
|
|
698
|
+
let P = F.children[a];
|
|
699
|
+
P.type === "element" && z.children.push(...P.children);
|
|
701
700
|
}
|
|
702
701
|
}
|
|
703
|
-
let
|
|
704
|
-
for (let
|
|
705
|
-
return
|
|
706
|
-
}
|
|
707
|
-
function
|
|
708
|
-
return
|
|
709
|
-
let
|
|
710
|
-
return
|
|
711
|
-
let
|
|
712
|
-
|
|
713
|
-
...
|
|
714
|
-
offset:
|
|
715
|
-
content:
|
|
716
|
-
}) :
|
|
717
|
-
content:
|
|
718
|
-
offset:
|
|
719
|
-
},
|
|
720
|
-
}),
|
|
702
|
+
let J = z;
|
|
703
|
+
for (let a of L) J = a?.root?.call(q, J) || J;
|
|
704
|
+
return I && setLastGrammarStateToMap(J, I), J;
|
|
705
|
+
}
|
|
706
|
+
function mergeWhitespaceTokens(a) {
|
|
707
|
+
return a.map((a) => {
|
|
708
|
+
let F = [], I = "", L;
|
|
709
|
+
return a.forEach((R, z) => {
|
|
710
|
+
let B = !(R.fontStyle && (R.fontStyle & FontStyle.Underline || R.fontStyle & FontStyle.Strikethrough));
|
|
711
|
+
B && R.content.match(/^\s+$/) && a[z + 1] ? (L === void 0 && (L = R.offset), I += R.content) : I ? (B ? F.push({
|
|
712
|
+
...R,
|
|
713
|
+
offset: L,
|
|
714
|
+
content: I + R.content
|
|
715
|
+
}) : F.push({
|
|
716
|
+
content: I,
|
|
717
|
+
offset: L
|
|
718
|
+
}, R), L = void 0, I = "") : F.push(R);
|
|
719
|
+
}), F;
|
|
721
720
|
});
|
|
722
721
|
}
|
|
723
|
-
function
|
|
724
|
-
return
|
|
725
|
-
if (
|
|
726
|
-
let
|
|
727
|
-
if (!
|
|
728
|
-
let [,
|
|
729
|
-
if (!
|
|
730
|
-
let
|
|
731
|
-
...
|
|
732
|
-
offset:
|
|
733
|
-
content:
|
|
722
|
+
function splitWhitespaceTokens(a) {
|
|
723
|
+
return a.map((a) => a.flatMap((a) => {
|
|
724
|
+
if (a.content.match(/^\s+$/)) return a;
|
|
725
|
+
let P = a.content.match(/^(\s*)(.*?)(\s*)$/);
|
|
726
|
+
if (!P) return a;
|
|
727
|
+
let [, F, I, L] = P;
|
|
728
|
+
if (!F && !L) return a;
|
|
729
|
+
let R = [{
|
|
730
|
+
...a,
|
|
731
|
+
offset: a.offset + F.length,
|
|
732
|
+
content: I
|
|
734
733
|
}];
|
|
735
|
-
return
|
|
736
|
-
content:
|
|
737
|
-
offset:
|
|
738
|
-
}),
|
|
739
|
-
content:
|
|
740
|
-
offset:
|
|
741
|
-
}),
|
|
734
|
+
return F && R.unshift({
|
|
735
|
+
content: F,
|
|
736
|
+
offset: a.offset
|
|
737
|
+
}), L && R.push({
|
|
738
|
+
content: L,
|
|
739
|
+
offset: a.offset + F.length + I.length
|
|
740
|
+
}), R;
|
|
742
741
|
}));
|
|
743
742
|
}
|
|
744
|
-
function
|
|
745
|
-
return
|
|
746
|
-
let
|
|
747
|
-
for (let
|
|
748
|
-
if (
|
|
749
|
-
|
|
743
|
+
function mergeAdjacentStyledTokens(a) {
|
|
744
|
+
return a.map((a) => {
|
|
745
|
+
let F = [];
|
|
746
|
+
for (let I of a) {
|
|
747
|
+
if (F.length === 0) {
|
|
748
|
+
F.push({ ...I });
|
|
750
749
|
continue;
|
|
751
750
|
}
|
|
752
|
-
let
|
|
753
|
-
!
|
|
751
|
+
let a = F[F.length - 1], L = stringifyTokenStyle(a.htmlStyle || getTokenStyleObject(a)), R = stringifyTokenStyle(I.htmlStyle || getTokenStyleObject(I)), z = a.fontStyle && (a.fontStyle & FontStyle.Underline || a.fontStyle & FontStyle.Strikethrough), B = I.fontStyle && (I.fontStyle & FontStyle.Underline || I.fontStyle & FontStyle.Strikethrough);
|
|
752
|
+
!z && !B && L === R ? a.content += I.content : F.push({ ...I });
|
|
754
753
|
}
|
|
755
|
-
return
|
|
754
|
+
return F;
|
|
756
755
|
});
|
|
757
756
|
}
|
|
758
|
-
var
|
|
759
|
-
function
|
|
760
|
-
let
|
|
757
|
+
var hastToHtml = toHtml;
|
|
758
|
+
function codeToHtml(a, P, F) {
|
|
759
|
+
let I = {
|
|
761
760
|
meta: {},
|
|
762
|
-
options:
|
|
763
|
-
codeToHast: (
|
|
764
|
-
codeToTokens: (
|
|
765
|
-
},
|
|
766
|
-
for (let
|
|
767
|
-
return
|
|
768
|
-
}
|
|
769
|
-
async function
|
|
770
|
-
let
|
|
761
|
+
options: F,
|
|
762
|
+
codeToHast: (P, F) => codeToHast(a, P, F),
|
|
763
|
+
codeToTokens: (P, F) => codeToTokens(a, P, F)
|
|
764
|
+
}, L = hastToHtml(codeToHast(a, P, F, I));
|
|
765
|
+
for (let a of getTransformers(F)) L = a.postprocess?.call(I, L, F) || L;
|
|
766
|
+
return L;
|
|
767
|
+
}
|
|
768
|
+
async function createHighlighterCore(a) {
|
|
769
|
+
let P = await createShikiPrimitiveAsync(a);
|
|
771
770
|
return {
|
|
772
|
-
getLastGrammarState: (...
|
|
773
|
-
codeToTokensBase: (
|
|
774
|
-
codeToTokensWithThemes: (
|
|
775
|
-
codeToTokens: (
|
|
776
|
-
codeToHast: (
|
|
777
|
-
codeToHtml: (
|
|
771
|
+
getLastGrammarState: (...a) => getLastGrammarState(P, ...a),
|
|
772
|
+
codeToTokensBase: (a, F) => codeToTokensBase$1(P, a, F),
|
|
773
|
+
codeToTokensWithThemes: (a, F) => codeToTokensWithThemes(P, a, F),
|
|
774
|
+
codeToTokens: (a, F) => codeToTokens(P, a, F),
|
|
775
|
+
codeToHast: (a, F) => codeToHast(P, a, F),
|
|
776
|
+
codeToHtml: (a, F) => codeToHtml(P, a, F),
|
|
778
777
|
getBundledLanguages: () => ({}),
|
|
779
778
|
getBundledThemes: () => ({}),
|
|
780
|
-
...
|
|
781
|
-
getInternalContext: () =>
|
|
779
|
+
...P,
|
|
780
|
+
getInternalContext: () => P
|
|
782
781
|
};
|
|
783
782
|
}
|
|
784
|
-
function
|
|
785
|
-
let
|
|
786
|
-
async function
|
|
787
|
-
function
|
|
788
|
-
if (typeof
|
|
789
|
-
if (
|
|
790
|
-
let
|
|
791
|
-
if (!
|
|
792
|
-
return
|
|
783
|
+
function createBundledHighlighter(P) {
|
|
784
|
+
let F = P.langs, I = P.themes, L = P.engine;
|
|
785
|
+
async function R(P) {
|
|
786
|
+
function R(I) {
|
|
787
|
+
if (typeof I == "string") {
|
|
788
|
+
if (I = P.langAlias?.[I] || I, isSpecialLang(I)) return [];
|
|
789
|
+
let L = F[I];
|
|
790
|
+
if (!L) throw new ShikiError(`Language \`${I}\` is not included in this bundle. You may want to load it from external source.`);
|
|
791
|
+
return L;
|
|
793
792
|
}
|
|
794
|
-
return
|
|
793
|
+
return I;
|
|
795
794
|
}
|
|
796
|
-
function
|
|
797
|
-
if (
|
|
798
|
-
if (typeof
|
|
799
|
-
let
|
|
800
|
-
if (!
|
|
801
|
-
return
|
|
795
|
+
function z(P) {
|
|
796
|
+
if (isSpecialTheme(P)) return "none";
|
|
797
|
+
if (typeof P == "string") {
|
|
798
|
+
let F = I[P];
|
|
799
|
+
if (!F) throw new ShikiError(`Theme \`${P}\` is not included in this bundle. You may want to load it from external source.`);
|
|
800
|
+
return F;
|
|
802
801
|
}
|
|
803
|
-
return
|
|
802
|
+
return P;
|
|
804
803
|
}
|
|
805
|
-
let
|
|
806
|
-
engine:
|
|
807
|
-
...
|
|
808
|
-
themes:
|
|
809
|
-
langs:
|
|
804
|
+
let B = (P.themes ?? []).map((a) => z(a)), V = (P.langs ?? []).map((a) => R(a)), H = await createHighlighterCore({
|
|
805
|
+
engine: P.engine ?? L(),
|
|
806
|
+
...P,
|
|
807
|
+
themes: B,
|
|
808
|
+
langs: V
|
|
810
809
|
});
|
|
811
810
|
return {
|
|
812
|
-
...
|
|
813
|
-
loadLanguage(...
|
|
814
|
-
return
|
|
811
|
+
...H,
|
|
812
|
+
loadLanguage(...a) {
|
|
813
|
+
return H.loadLanguage(...a.map(R));
|
|
815
814
|
},
|
|
816
|
-
loadTheme(...
|
|
817
|
-
return
|
|
815
|
+
loadTheme(...a) {
|
|
816
|
+
return H.loadTheme(...a.map(z));
|
|
818
817
|
},
|
|
819
818
|
getBundledLanguages() {
|
|
820
|
-
return
|
|
819
|
+
return F;
|
|
821
820
|
},
|
|
822
821
|
getBundledThemes() {
|
|
823
|
-
return
|
|
822
|
+
return I;
|
|
824
823
|
}
|
|
825
824
|
};
|
|
826
825
|
}
|
|
827
|
-
return
|
|
828
|
-
}
|
|
829
|
-
function
|
|
830
|
-
let
|
|
831
|
-
async function
|
|
832
|
-
if (
|
|
833
|
-
let
|
|
834
|
-
return await Promise.all([
|
|
826
|
+
return R;
|
|
827
|
+
}
|
|
828
|
+
function makeSingletonHighlighter(a) {
|
|
829
|
+
let P;
|
|
830
|
+
async function F(F = {}) {
|
|
831
|
+
if (P) {
|
|
832
|
+
let a = await P;
|
|
833
|
+
return await Promise.all([a.loadTheme(...F.themes || []), a.loadLanguage(...F.langs || [])]), a;
|
|
835
834
|
} else {
|
|
836
|
-
|
|
837
|
-
...
|
|
835
|
+
P = a({
|
|
836
|
+
...F,
|
|
838
837
|
themes: [],
|
|
839
838
|
langs: []
|
|
840
839
|
});
|
|
841
|
-
let
|
|
842
|
-
return await Promise.all([
|
|
840
|
+
let I = await P;
|
|
841
|
+
return await Promise.all([I.loadTheme(...F.themes || []), I.loadLanguage(...F.langs || [])]), I;
|
|
843
842
|
}
|
|
844
843
|
}
|
|
845
|
-
return
|
|
846
|
-
}
|
|
847
|
-
function
|
|
848
|
-
let
|
|
849
|
-
async function
|
|
850
|
-
let
|
|
851
|
-
langs: [
|
|
852
|
-
themes: "theme" in
|
|
853
|
-
}),
|
|
854
|
-
return
|
|
844
|
+
return F;
|
|
845
|
+
}
|
|
846
|
+
function createSingletonShorthands(a, P) {
|
|
847
|
+
let F = makeSingletonHighlighter(a);
|
|
848
|
+
async function I(a, I) {
|
|
849
|
+
let L = await F({
|
|
850
|
+
langs: [I.lang],
|
|
851
|
+
themes: "theme" in I ? [I.theme] : Object.values(I.themes)
|
|
852
|
+
}), R = await P?.guessEmbeddedLanguages?.(a, I.lang, L);
|
|
853
|
+
return R && await L.loadLanguage(...R), L;
|
|
855
854
|
}
|
|
856
855
|
return {
|
|
857
|
-
getSingletonHighlighter(
|
|
858
|
-
return
|
|
856
|
+
getSingletonHighlighter(a) {
|
|
857
|
+
return F(a);
|
|
859
858
|
},
|
|
860
|
-
async codeToHtml(
|
|
861
|
-
return (await
|
|
859
|
+
async codeToHtml(a, P) {
|
|
860
|
+
return (await I(a, P)).codeToHtml(a, P);
|
|
862
861
|
},
|
|
863
|
-
async codeToHast(
|
|
864
|
-
return (await
|
|
862
|
+
async codeToHast(a, P) {
|
|
863
|
+
return (await I(a, P)).codeToHast(a, P);
|
|
865
864
|
},
|
|
866
|
-
async codeToTokens(
|
|
867
|
-
return (await
|
|
865
|
+
async codeToTokens(a, P) {
|
|
866
|
+
return (await I(a, P)).codeToTokens(a, P);
|
|
868
867
|
},
|
|
869
|
-
async codeToTokensBase(
|
|
870
|
-
return (await
|
|
868
|
+
async codeToTokensBase(a, P) {
|
|
869
|
+
return (await I(a, P)).codeToTokensBase(a, P);
|
|
871
870
|
},
|
|
872
|
-
async codeToTokensWithThemes(
|
|
873
|
-
return (await
|
|
871
|
+
async codeToTokensWithThemes(a, P) {
|
|
872
|
+
return (await I(a, P)).codeToTokensWithThemes(a, P);
|
|
874
873
|
},
|
|
875
|
-
async getLastGrammarState(
|
|
876
|
-
return (await
|
|
877
|
-
langs: [
|
|
878
|
-
themes: [
|
|
879
|
-
})).getLastGrammarState(
|
|
874
|
+
async getLastGrammarState(a, P) {
|
|
875
|
+
return (await F({
|
|
876
|
+
langs: [P.lang],
|
|
877
|
+
themes: [P.theme]
|
|
878
|
+
})).getLastGrammarState(a, P);
|
|
880
879
|
}
|
|
881
880
|
};
|
|
882
881
|
}
|
|
883
|
-
|
|
884
|
-
export { g as addClassToHast, te as createBundledHighlighter, Q as createHighlighterCore, _ as createPositionConverter, ne as createSingletonShorthands, C as flatTokenVariants, w as getTokenStyleObject, v as guessEmbeddedLanguages, Z as hastToHtml, $ as makeSingletonHighlighter, x as splitToken, S as splitTokens, T as stringifyTokenStyle, V as tokenizeAnsiWithTheme, q as tokensToHast, E as transformerDecorations };
|
|
882
|
+
export { addClassToHast, createBundledHighlighter, createHighlighterCore, createPositionConverter, createSingletonShorthands, flatTokenVariants, getTokenStyleObject, guessEmbeddedLanguages, hastToHtml, makeSingletonHighlighter, splitToken, splitTokens, stringifyTokenStyle, tokenizeAnsiWithTheme, tokensToHast, transformerDecorations };
|