@loopstack/loopstack-studio 0.25.1 → 0.25.2
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/index.js +19 -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 +31 -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 +198 -138
- package/dist/components/data-table/DataTable.js +234 -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 +202 -132
- 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 +15 -17
- 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 +26 -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 +2 -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 +68 -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 +77 -73
- 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/SecretInputRenderer.js +35 -37
- package/dist/features/documents/renderers/TextPromptRenderer.js +54 -45
- package/dist/features/documents/renderers/useDocumentTransition.js +7 -9
- 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 +197 -148
- 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/workbench/Workbench.js +98 -72
- package/dist/features/workbench/WorkflowItem.js +68 -49
- package/dist/features/workbench/WorkflowList.js +66 -51
- package/dist/features/workbench/components/NewRunDialog.js +309 -212
- package/dist/features/workbench/components/RemoteFileTabsBar.js +17 -18
- package/dist/features/workbench/components/RemoteFileTree.js +85 -54
- package/dist/features/workbench/components/WorkbenchFilesPanel.js +63 -52
- package/dist/features/workbench/components/WorkbenchFloatingPanel.js +51 -34
- package/dist/features/workbench/components/WorkbenchFlowPanel.js +44 -35
- package/dist/features/workbench/components/WorkbenchIconSidebar.js +68 -50
- package/dist/features/workbench/components/WorkbenchPreviewPanel.js +49 -51
- package/dist/features/workbench/components/WorkbenchSecretsPanel.js +172 -143
- package/dist/features/workbench/components/WorkbenchSettingsModal.js +60 -49
- 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 +7 -7
- package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +138 -123
- package/dist/features/workbench/providers/ScrollProvider.js +19 -15
- package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +75 -76
- package/dist/features/workspaces/Workspaces.js +226 -161
- package/dist/features/workspaces/components/CreateWorkspace.js +194 -137
- package/dist/features/workspaces/components/EnvironmentSlotSelector.js +25 -27
- 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 +80 -59
- 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/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/useFiles.js +2 -1
- package/dist/hooks/useProcessor.js +17 -14
- package/dist/hooks/useSecrets.js +64 -45
- package/dist/hooks/useWorkflows.js +161 -109
- package/dist/hooks/useWorkspaces.js +123 -83
- package/dist/index.d.ts +1304 -0
- package/dist/index.js +80 -80
- package/dist/lib/requireParam.js +2 -4
- package/dist/lib/utils.js +5 -7
- 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/@dagrejs/dagre/dist/dagre.esm.js +1913 -1812
- 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 +1119 -583
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/index.js +148 -163
- 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/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 +11 -13
- package/dist/node_modules/shiki/dist/{langs-bundle-full-DfKZStlK.js → langs.js} +6 -8
- package/dist/node_modules/shiki/dist/themes.js +4 -6
- 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 +99 -55
- package/dist/pages/DebugPage.js +17 -12
- package/dist/pages/DebugWorkflowDetailsPage.js +119 -91
- package/dist/pages/DebugWorkflowsPage.js +37 -39
- package/dist/pages/EmbedWorkbenchPage.js +62 -48
- package/dist/pages/PreviewWorkbenchPage.js +324 -243
- package/dist/pages/RunsListPage.js +61 -44
- package/dist/pages/RunsPage.js +48 -31
- package/dist/pages/StudioLandingPage.js +132 -97
- package/dist/pages/WorkbenchPage.js +86 -56
- package/dist/pages/WorkflowDebugPage.js +110 -74
- package/dist/pages/WorkspacePage.js +115 -72
- package/dist/pages/WorkspaceRunsPage.js +70 -43
- package/dist/pages/WorkspacesPage.js +35 -24
- 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/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 +33 -33
- package/dist/_virtual/_rolldown/runtime.js +0 -20
- 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/@shikijs/primitive/dist/index.js +0 -540
- package/dist/node_modules/shiki/dist/chunk-CtajNgzt.js +0 -17
- package/dist/node_modules/shiki/dist/engine-oniguruma.js +0 -7
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { SKIP
|
|
3
|
-
import { visit
|
|
4
|
-
import
|
|
5
|
-
import { harden
|
|
6
|
-
import
|
|
7
|
-
import { defaultSchema
|
|
8
|
-
import
|
|
9
|
-
import { $e
|
|
10
|
-
import { toJsxRuntime
|
|
11
|
-
import { urlAttributes
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { unified
|
|
15
|
-
import { x
|
|
16
|
-
import { Suspense
|
|
17
|
-
import { Fragment as
|
|
18
|
-
import { clsx
|
|
19
|
-
import { twMerge
|
|
20
|
-
import { createPortal
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
let { immediate: t = !1, debounceDelay: n = P, rootMargin: r = F, idleTimeout: i = ne } = e, [a, o] = D(!1), s = E(null), c = E(null), l = E(null), u = T(() => (e) => {
|
|
2
|
+
import { SKIP, visitParents } from "../../unist-util-visit-parents/lib/index.js";
|
|
3
|
+
import { visit } from "../../unist-util-visit/lib/index.js";
|
|
4
|
+
import remarkGfm from "../../remark-gfm/lib/index.js";
|
|
5
|
+
import { harden } from "../../rehype-harden/dist/index.js";
|
|
6
|
+
import rehypeRaw from "../../rehype-raw/lib/index.js";
|
|
7
|
+
import { defaultSchema } from "../../hast-util-sanitize/lib/schema.js";
|
|
8
|
+
import rehypeSanitize from "../../rehype-sanitize/lib/index.js";
|
|
9
|
+
import { $e } from "../../remend/dist/index.js";
|
|
10
|
+
import { toJsxRuntime } from "../../hast-util-to-jsx-runtime/lib/index.js";
|
|
11
|
+
import { urlAttributes } from "../../html-url-attributes/lib/index.js";
|
|
12
|
+
import remarkParse from "../../remark-parse/lib/index.js";
|
|
13
|
+
import remarkRehype from "../../remark-rehype/lib/index.js";
|
|
14
|
+
import { unified } from "../../unified/lib/index.js";
|
|
15
|
+
import { x } from "../node_modules/marked/lib/marked.esm.js";
|
|
16
|
+
import { Suspense, cloneElement, createContext, createElement, isValidElement, lazy, memo, useCallback, useContext, useEffect, useId, useMemo, useRef, useState, useTransition } from "react";
|
|
17
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
+
import { clsx } from "clsx";
|
|
19
|
+
import { twMerge } from "tailwind-merge";
|
|
20
|
+
import { createPortal } from "react-dom";
|
|
21
|
+
var Bn = 300, An = "300px", On = 500;
|
|
22
|
+
function Rt(e = {}) {
|
|
23
|
+
let { immediate: t = !1, debounceDelay: n = Bn, rootMargin: r = An, idleTimeout: i = On } = e, [a, o] = useState(!1), s = useRef(null), c = useRef(null), l = useRef(null), u = useMemo(() => (e) => {
|
|
25
24
|
let t = Date.now();
|
|
26
25
|
return window.setTimeout(() => {
|
|
27
26
|
e({
|
|
@@ -29,10 +28,10 @@ function re(e = {}) {
|
|
|
29
28
|
timeRemaining: () => Math.max(0, 50 - (Date.now() - t))
|
|
30
29
|
});
|
|
31
30
|
}, 1);
|
|
32
|
-
}, []), d =
|
|
31
|
+
}, []), d = useMemo(() => typeof window < "u" && window.requestIdleCallback ? (e, t) => window.requestIdleCallback(e, t) : u, [u]), f = useMemo(() => typeof window < "u" && window.cancelIdleCallback ? (e) => window.cancelIdleCallback(e) : (e) => {
|
|
33
32
|
clearTimeout(e);
|
|
34
33
|
}, []);
|
|
35
|
-
return
|
|
34
|
+
return useEffect(() => {
|
|
36
35
|
if (t) {
|
|
37
36
|
o(!0);
|
|
38
37
|
return;
|
|
@@ -77,24 +76,24 @@ function re(e = {}) {
|
|
|
77
76
|
containerRef: s
|
|
78
77
|
};
|
|
79
78
|
}
|
|
80
|
-
var
|
|
79
|
+
var St = /\s/, Fn = /^\s+$/, zn = new Set([
|
|
81
80
|
"code",
|
|
82
81
|
"pre",
|
|
83
82
|
"svg",
|
|
84
83
|
"math",
|
|
85
84
|
"annotation"
|
|
86
|
-
]),
|
|
85
|
+
]), _n = (e) => typeof e == "object" && !!e && "type" in e && e.type === "element", qn = (e) => e.some((e) => _n(e) && zn.has(e.tagName)), $n = (e) => {
|
|
87
86
|
let t = [], n = "", r = !1;
|
|
88
87
|
for (let i of e) {
|
|
89
|
-
let e =
|
|
88
|
+
let e = St.test(i);
|
|
90
89
|
e !== r && n && (t.push(n), n = ""), n += i, r = e;
|
|
91
90
|
}
|
|
92
91
|
return n && t.push(n), t;
|
|
93
|
-
},
|
|
92
|
+
}, Wn = (e) => {
|
|
94
93
|
let t = [], n = "";
|
|
95
|
-
for (let r of e)
|
|
94
|
+
for (let r of e) St.test(r) ? n += r : (n &&= (t.push(n), ""), t.push(r));
|
|
96
95
|
return n && t.push(n), t;
|
|
97
|
-
},
|
|
96
|
+
}, Zn = (e, t, n, r, i, a) => {
|
|
98
97
|
let o = `--sd-animation:sd-${t};--sd-duration:${i ? 0 : n}ms;--sd-easing:${r}`;
|
|
99
98
|
return a && (o += `;--sd-delay:${a}ms`), {
|
|
100
99
|
type: "element",
|
|
@@ -108,10 +107,10 @@ var ie = /\s/, ae = /^\s+$/, oe = new Set([
|
|
|
108
107
|
value: e
|
|
109
108
|
}]
|
|
110
109
|
};
|
|
111
|
-
},
|
|
110
|
+
}, Xn = (t, n, r, i, a) => {
|
|
112
111
|
let o = n.at(-1);
|
|
113
112
|
if (!(o && "children" in o)) return;
|
|
114
|
-
if (
|
|
113
|
+
if (qn(n)) return SKIP;
|
|
115
114
|
let s = o, c = s.children.indexOf(t);
|
|
116
115
|
if (c === -1) return;
|
|
117
116
|
let l = t.value;
|
|
@@ -119,18 +118,18 @@ var ie = /\s/, ae = /^\s+$/, oe = new Set([
|
|
|
119
118
|
a.count += l.length;
|
|
120
119
|
return;
|
|
121
120
|
}
|
|
122
|
-
let u = r.sep === "char" ?
|
|
121
|
+
let u = r.sep === "char" ? Wn(l) : $n(l), d = i.prevContentLength, f = u.map((e) => {
|
|
123
122
|
let t = a.count;
|
|
124
|
-
if (a.count += e.length,
|
|
123
|
+
if (a.count += e.length, Fn.test(e)) return {
|
|
125
124
|
type: "text",
|
|
126
125
|
value: e
|
|
127
126
|
};
|
|
128
127
|
let n = d > 0 && t < d, i = n ? 0 : a.newIndex++ * r.stagger;
|
|
129
|
-
return
|
|
128
|
+
return Zn(e, r.animation, r.duration, r.easing, n, i);
|
|
130
129
|
});
|
|
131
130
|
return s.children.splice(c, 1, ...f), c + f.length;
|
|
132
|
-
},
|
|
133
|
-
function
|
|
131
|
+
}, Jn = 0;
|
|
132
|
+
function be(e) {
|
|
134
133
|
let n = {
|
|
135
134
|
animation: e?.animation ?? "fadeIn",
|
|
136
135
|
duration: e?.duration ?? 150,
|
|
@@ -140,12 +139,12 @@ function le(e) {
|
|
|
140
139
|
}, r = {
|
|
141
140
|
prevContentLength: 0,
|
|
142
141
|
lastRenderCharCount: 0
|
|
143
|
-
}, i =
|
|
142
|
+
}, i = Jn++, a = () => (e) => {
|
|
144
143
|
let i = {
|
|
145
144
|
count: 0,
|
|
146
145
|
newIndex: 0
|
|
147
146
|
};
|
|
148
|
-
|
|
147
|
+
visitParents(e, "text", (e, t) => Xn(e, t, n, r, i)), r.lastRenderCharCount = i.count, r.prevContentLength = 0;
|
|
149
148
|
};
|
|
150
149
|
return Object.defineProperty(a, "name", { value: `rehypeAnimate$${i}` }), {
|
|
151
150
|
name: "animate",
|
|
@@ -160,15 +159,15 @@ function le(e) {
|
|
|
160
159
|
}
|
|
161
160
|
};
|
|
162
161
|
}
|
|
163
|
-
|
|
164
|
-
var
|
|
162
|
+
be();
|
|
163
|
+
var et = createContext(!1), tt = () => useContext(et), he = (...e) => twMerge(clsx(e)), Gn = (e, t) => {
|
|
165
164
|
if (!e || !t) return t;
|
|
166
165
|
let n = `${e}:`;
|
|
167
166
|
return t.split(/\s+/).filter(Boolean).map((t) => t.startsWith(n) ? t : `${e}:${t}`).join(" ");
|
|
168
|
-
},
|
|
167
|
+
}, Dt = (e) => e ? (...t) => Gn(e, twMerge(clsx(t))) : he, W = (e, t, n) => {
|
|
169
168
|
let r = typeof t == "string" && n.startsWith("text/csv") ? "" : "", i = typeof t == "string" ? new Blob([r + t], { type: n }) : t, a = URL.createObjectURL(i), o = document.createElement("a");
|
|
170
169
|
o.href = a, o.download = e, document.body.appendChild(o), o.click(), document.body.removeChild(o), URL.revokeObjectURL(a);
|
|
171
|
-
},
|
|
170
|
+
}, Ee = createContext(he), y = () => useContext(Ee), tr = he("block", "before:content-[counter(line)]", "before:inline-block", "before:[counter-increment:line]", "before:w-6", "before:mr-4", "before:text-[13px]", "before:text-right", "before:text-muted-foreground/50", "before:font-mono", "before:select-none"), or = (e) => {
|
|
172
171
|
let t = {};
|
|
173
172
|
for (let n of e.split(";")) {
|
|
174
173
|
let e = n.indexOf(":");
|
|
@@ -178,32 +177,32 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
178
177
|
}
|
|
179
178
|
}
|
|
180
179
|
return t;
|
|
181
|
-
},
|
|
182
|
-
let s =
|
|
180
|
+
}, At = memo(({ children: e, result: t, language: n, className: r, startLine: i, lineNumbers: a = !0, ...o }) => {
|
|
181
|
+
let s = y(), c = useMemo(() => s(tr), [s]), l = useMemo(() => {
|
|
183
182
|
let e = {};
|
|
184
|
-
return t.bg && (e["--sdm-bg"] = t.bg), t.fg && (e["--sdm-fg"] = t.fg), t.rootStyle && Object.assign(e,
|
|
183
|
+
return t.bg && (e["--sdm-bg"] = t.bg), t.fg && (e["--sdm-fg"] = t.fg), t.rootStyle && Object.assign(e, or(t.rootStyle)), e;
|
|
185
184
|
}, [
|
|
186
185
|
t.bg,
|
|
187
186
|
t.fg,
|
|
188
187
|
t.rootStyle
|
|
189
188
|
]);
|
|
190
|
-
return
|
|
189
|
+
return jsx("div", {
|
|
191
190
|
className: s(r, "overflow-x-auto rounded-md border border-border bg-background p-4 text-sm"),
|
|
192
191
|
"data-language": n,
|
|
193
192
|
"data-streamdown": "code-block-body",
|
|
194
193
|
...o,
|
|
195
|
-
children:
|
|
194
|
+
children: jsx("pre", {
|
|
196
195
|
className: s(r, "bg-[var(--sdm-bg,inherit]", "dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit)]"),
|
|
197
196
|
style: l,
|
|
198
|
-
children:
|
|
197
|
+
children: jsx("code", {
|
|
199
198
|
className: a ? s("[counter-increment:line_0] [counter-reset:line]") : void 0,
|
|
200
199
|
style: a && i && i > 1 ? { counterReset: `line ${i - 1}` } : void 0,
|
|
201
|
-
children: t.tokens.map((e, t) =>
|
|
200
|
+
children: t.tokens.map((e, t) => jsx("span", {
|
|
202
201
|
className: a ? c : void 0,
|
|
203
202
|
children: e.length === 0 || e.length === 1 && e[0].content === "" ? "\n" : e.map((e, t) => {
|
|
204
203
|
let n = {}, r = !!e.bgColor;
|
|
205
204
|
if (e.color && (n["--sdm-c"] = e.color), e.bgColor && (n["--sdm-tbg"] = e.bgColor), e.htmlStyle) for (let [t, i] of Object.entries(e.htmlStyle)) t === "color" ? n["--sdm-c"] = i : t === "background-color" ? (n["--sdm-tbg"] = i, r = !0) : n[t] = i;
|
|
206
|
-
return
|
|
205
|
+
return jsx("span", {
|
|
207
206
|
className: s("text-[var(--sdm-c,inherit)]", "dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]", r && "bg-[var(--sdm-tbg)]", r && "dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),
|
|
208
207
|
style: n,
|
|
209
208
|
...e.htmlAttrs,
|
|
@@ -214,8 +213,8 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
214
213
|
})
|
|
215
214
|
})
|
|
216
215
|
});
|
|
217
|
-
}, (e, t) => e.result === t.result && e.language === t.language && e.className === t.className && e.startLine === t.startLine && e.lineNumbers === t.lineNumbers),
|
|
218
|
-
className:
|
|
216
|
+
}, (e, t) => e.result === t.result && e.language === t.language && e.className === t.className && e.startLine === t.startLine && e.lineNumbers === t.lineNumbers), ot = ({ className: e, language: t, style: n, isIncomplete: r, ...i }) => jsx("div", {
|
|
217
|
+
className: y()("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", e),
|
|
219
218
|
"data-incomplete": r || void 0,
|
|
220
219
|
"data-language": t,
|
|
221
220
|
"data-streamdown": "code-block",
|
|
@@ -225,23 +224,23 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
225
224
|
...n
|
|
226
225
|
},
|
|
227
226
|
...i
|
|
228
|
-
}),
|
|
229
|
-
let t =
|
|
230
|
-
return
|
|
227
|
+
}), nt = createContext({ code: "" }), He = () => useContext(nt), rt = ({ language: e }) => {
|
|
228
|
+
let t = y();
|
|
229
|
+
return jsx("div", {
|
|
231
230
|
className: t("flex h-8 items-center text-muted-foreground text-xs"),
|
|
232
231
|
"data-language": e,
|
|
233
232
|
"data-streamdown": "code-block-header",
|
|
234
|
-
children:
|
|
233
|
+
children: jsx("span", {
|
|
235
234
|
className: t("ml-1 font-mono lowercase"),
|
|
236
235
|
children: e
|
|
237
236
|
})
|
|
238
237
|
});
|
|
239
|
-
},
|
|
238
|
+
}, lr = (e) => {
|
|
240
239
|
let t = e.length;
|
|
241
240
|
for (; t > 0 && e[t - 1] === "\n";) t--;
|
|
242
241
|
return e.slice(0, t);
|
|
243
|
-
},
|
|
244
|
-
let c =
|
|
242
|
+
}, cr = lazy(() => import("./highlighted-body-OFNGDK62.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), st = ({ code: e, language: t, className: n, children: r, isIncomplete: i = !1, startLine: a, lineNumbers: o, ...s }) => {
|
|
243
|
+
let c = y(), l = useMemo(() => lr(e), [e]), u = useMemo(() => ({
|
|
245
244
|
bg: "transparent",
|
|
246
245
|
fg: "inherit",
|
|
247
246
|
tokens: l.split("\n").map((e) => [{
|
|
@@ -252,23 +251,23 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
252
251
|
offset: 0
|
|
253
252
|
}])
|
|
254
253
|
}), [l]);
|
|
255
|
-
return
|
|
254
|
+
return jsx(nt.Provider, {
|
|
256
255
|
value: { code: e },
|
|
257
|
-
children:
|
|
256
|
+
children: jsxs(ot, {
|
|
258
257
|
isIncomplete: i,
|
|
259
258
|
language: t,
|
|
260
259
|
children: [
|
|
261
|
-
|
|
262
|
-
r ?
|
|
260
|
+
jsx(rt, { language: t }),
|
|
261
|
+
r ? jsx("div", {
|
|
263
262
|
className: c("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),
|
|
264
|
-
children:
|
|
263
|
+
children: jsx("div", {
|
|
265
264
|
className: c("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),
|
|
266
265
|
"data-streamdown": "code-block-actions",
|
|
267
266
|
children: r
|
|
268
267
|
})
|
|
269
268
|
}) : null,
|
|
270
|
-
|
|
271
|
-
fallback:
|
|
269
|
+
jsx(Suspense, {
|
|
270
|
+
fallback: jsx(At, {
|
|
272
271
|
className: n,
|
|
273
272
|
language: t,
|
|
274
273
|
lineNumbers: o,
|
|
@@ -276,7 +275,7 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
276
275
|
startLine: a,
|
|
277
276
|
...s
|
|
278
277
|
}),
|
|
279
|
-
children:
|
|
278
|
+
children: jsx(cr, {
|
|
280
279
|
className: n,
|
|
281
280
|
code: l,
|
|
282
281
|
language: t,
|
|
@@ -289,64 +288,64 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
289
288
|
]
|
|
290
289
|
})
|
|
291
290
|
});
|
|
292
|
-
},
|
|
293
|
-
CheckIcon: (e) =>
|
|
291
|
+
}, we = {
|
|
292
|
+
CheckIcon: (e) => jsx("svg", {
|
|
294
293
|
color: "currentColor",
|
|
295
294
|
height: 16,
|
|
296
295
|
strokeLinejoin: "round",
|
|
297
296
|
viewBox: "0 0 16 16",
|
|
298
297
|
width: 16,
|
|
299
298
|
...e,
|
|
300
|
-
children:
|
|
299
|
+
children: jsx("path", {
|
|
301
300
|
clipRule: "evenodd",
|
|
302
301
|
d: "M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",
|
|
303
302
|
fill: "currentColor",
|
|
304
303
|
fillRule: "evenodd"
|
|
305
304
|
})
|
|
306
305
|
}),
|
|
307
|
-
CopyIcon: (e) =>
|
|
306
|
+
CopyIcon: (e) => jsx("svg", {
|
|
308
307
|
color: "currentColor",
|
|
309
308
|
height: 16,
|
|
310
309
|
strokeLinejoin: "round",
|
|
311
310
|
viewBox: "0 0 16 16",
|
|
312
311
|
width: 16,
|
|
313
312
|
...e,
|
|
314
|
-
children:
|
|
313
|
+
children: jsx("path", {
|
|
315
314
|
clipRule: "evenodd",
|
|
316
315
|
d: "M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",
|
|
317
316
|
fill: "currentColor",
|
|
318
317
|
fillRule: "evenodd"
|
|
319
318
|
})
|
|
320
319
|
}),
|
|
321
|
-
DownloadIcon: (e) =>
|
|
320
|
+
DownloadIcon: (e) => jsx("svg", {
|
|
322
321
|
color: "currentColor",
|
|
323
322
|
height: 16,
|
|
324
323
|
strokeLinejoin: "round",
|
|
325
324
|
viewBox: "0 0 16 16",
|
|
326
325
|
width: 16,
|
|
327
326
|
...e,
|
|
328
|
-
children:
|
|
327
|
+
children: jsx("path", {
|
|
329
328
|
clipRule: "evenodd",
|
|
330
329
|
d: "M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",
|
|
331
330
|
fill: "currentColor",
|
|
332
331
|
fillRule: "evenodd"
|
|
333
332
|
})
|
|
334
333
|
}),
|
|
335
|
-
ExternalLinkIcon: (e) =>
|
|
334
|
+
ExternalLinkIcon: (e) => jsx("svg", {
|
|
336
335
|
color: "currentColor",
|
|
337
336
|
height: 16,
|
|
338
337
|
strokeLinejoin: "round",
|
|
339
338
|
viewBox: "0 0 16 16",
|
|
340
339
|
width: 16,
|
|
341
340
|
...e,
|
|
342
|
-
children:
|
|
341
|
+
children: jsx("path", {
|
|
343
342
|
clipRule: "evenodd",
|
|
344
343
|
d: "M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",
|
|
345
344
|
fill: "currentColor",
|
|
346
345
|
fillRule: "evenodd"
|
|
347
346
|
})
|
|
348
347
|
}),
|
|
349
|
-
Loader2Icon: (e) =>
|
|
348
|
+
Loader2Icon: (e) => jsxs("svg", {
|
|
350
349
|
color: "currentColor",
|
|
351
350
|
height: 16,
|
|
352
351
|
strokeLinejoin: "round",
|
|
@@ -354,60 +353,60 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
354
353
|
width: 16,
|
|
355
354
|
...e,
|
|
356
355
|
children: [
|
|
357
|
-
|
|
356
|
+
jsx("path", {
|
|
358
357
|
d: "M8 0V4",
|
|
359
358
|
stroke: "currentColor",
|
|
360
359
|
strokeWidth: "1.5"
|
|
361
360
|
}),
|
|
362
|
-
|
|
361
|
+
jsx("path", {
|
|
363
362
|
d: "M8 16V12",
|
|
364
363
|
opacity: "0.5",
|
|
365
364
|
stroke: "currentColor",
|
|
366
365
|
strokeWidth: "1.5"
|
|
367
366
|
}),
|
|
368
|
-
|
|
367
|
+
jsx("path", {
|
|
369
368
|
d: "M3.29773 1.52783L5.64887 4.7639",
|
|
370
369
|
opacity: "0.9",
|
|
371
370
|
stroke: "currentColor",
|
|
372
371
|
strokeWidth: "1.5"
|
|
373
372
|
}),
|
|
374
|
-
|
|
373
|
+
jsx("path", {
|
|
375
374
|
d: "M12.7023 1.52783L10.3511 4.7639",
|
|
376
375
|
opacity: "0.1",
|
|
377
376
|
stroke: "currentColor",
|
|
378
377
|
strokeWidth: "1.5"
|
|
379
378
|
}),
|
|
380
|
-
|
|
379
|
+
jsx("path", {
|
|
381
380
|
d: "M12.7023 14.472L10.3511 11.236",
|
|
382
381
|
opacity: "0.4",
|
|
383
382
|
stroke: "currentColor",
|
|
384
383
|
strokeWidth: "1.5"
|
|
385
384
|
}),
|
|
386
|
-
|
|
385
|
+
jsx("path", {
|
|
387
386
|
d: "M3.29773 14.472L5.64887 11.236",
|
|
388
387
|
opacity: "0.6",
|
|
389
388
|
stroke: "currentColor",
|
|
390
389
|
strokeWidth: "1.5"
|
|
391
390
|
}),
|
|
392
|
-
|
|
391
|
+
jsx("path", {
|
|
393
392
|
d: "M15.6085 5.52783L11.8043 6.7639",
|
|
394
393
|
opacity: "0.2",
|
|
395
394
|
stroke: "currentColor",
|
|
396
395
|
strokeWidth: "1.5"
|
|
397
396
|
}),
|
|
398
|
-
|
|
397
|
+
jsx("path", {
|
|
399
398
|
d: "M0.391602 10.472L4.19583 9.23598",
|
|
400
399
|
opacity: "0.7",
|
|
401
400
|
stroke: "currentColor",
|
|
402
401
|
strokeWidth: "1.5"
|
|
403
402
|
}),
|
|
404
|
-
|
|
403
|
+
jsx("path", {
|
|
405
404
|
d: "M15.6085 10.4722L11.8043 9.2361",
|
|
406
405
|
opacity: "0.3",
|
|
407
406
|
stroke: "currentColor",
|
|
408
407
|
strokeWidth: "1.5"
|
|
409
408
|
}),
|
|
410
|
-
|
|
409
|
+
jsx("path", {
|
|
411
410
|
d: "M0.391602 5.52783L4.19583 6.7639",
|
|
412
411
|
opacity: "0.8",
|
|
413
412
|
stroke: "currentColor",
|
|
@@ -415,96 +414,96 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
415
414
|
})
|
|
416
415
|
]
|
|
417
416
|
}),
|
|
418
|
-
Maximize2Icon: (e) =>
|
|
417
|
+
Maximize2Icon: (e) => jsx("svg", {
|
|
419
418
|
color: "currentColor",
|
|
420
419
|
height: 16,
|
|
421
420
|
strokeLinejoin: "round",
|
|
422
421
|
viewBox: "0 0 16 16",
|
|
423
422
|
width: 16,
|
|
424
423
|
...e,
|
|
425
|
-
children:
|
|
424
|
+
children: jsx("path", {
|
|
426
425
|
clipRule: "evenodd",
|
|
427
426
|
d: "M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",
|
|
428
427
|
fill: "currentColor",
|
|
429
428
|
fillRule: "evenodd"
|
|
430
429
|
})
|
|
431
430
|
}),
|
|
432
|
-
RotateCcwIcon: (e) =>
|
|
431
|
+
RotateCcwIcon: (e) => jsx("svg", {
|
|
433
432
|
color: "currentColor",
|
|
434
433
|
height: 16,
|
|
435
434
|
strokeLinejoin: "round",
|
|
436
435
|
viewBox: "0 0 16 16",
|
|
437
436
|
width: 16,
|
|
438
437
|
...e,
|
|
439
|
-
children:
|
|
438
|
+
children: jsx("path", {
|
|
440
439
|
clipRule: "evenodd",
|
|
441
440
|
d: "M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",
|
|
442
441
|
fill: "currentColor",
|
|
443
442
|
fillRule: "evenodd"
|
|
444
443
|
})
|
|
445
444
|
}),
|
|
446
|
-
XIcon: (e) =>
|
|
445
|
+
XIcon: (e) => jsx("svg", {
|
|
447
446
|
color: "currentColor",
|
|
448
447
|
height: 16,
|
|
449
448
|
strokeLinejoin: "round",
|
|
450
449
|
viewBox: "0 0 16 16",
|
|
451
450
|
width: 16,
|
|
452
451
|
...e,
|
|
453
|
-
children:
|
|
452
|
+
children: jsx("path", {
|
|
454
453
|
clipRule: "evenodd",
|
|
455
454
|
d: "M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",
|
|
456
455
|
fill: "currentColor",
|
|
457
456
|
fillRule: "evenodd"
|
|
458
457
|
})
|
|
459
458
|
}),
|
|
460
|
-
ZoomInIcon: (e) =>
|
|
459
|
+
ZoomInIcon: (e) => jsx("svg", {
|
|
461
460
|
color: "currentColor",
|
|
462
461
|
height: 16,
|
|
463
462
|
strokeLinejoin: "round",
|
|
464
463
|
viewBox: "0 0 16 16",
|
|
465
464
|
width: 16,
|
|
466
465
|
...e,
|
|
467
|
-
children:
|
|
466
|
+
children: jsx("path", {
|
|
468
467
|
clipRule: "evenodd",
|
|
469
468
|
d: "M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",
|
|
470
469
|
fill: "currentColor",
|
|
471
470
|
fillRule: "evenodd"
|
|
472
471
|
})
|
|
473
472
|
}),
|
|
474
|
-
ZoomOutIcon: (e) =>
|
|
473
|
+
ZoomOutIcon: (e) => jsx("svg", {
|
|
475
474
|
color: "currentColor",
|
|
476
475
|
height: 16,
|
|
477
476
|
strokeLinejoin: "round",
|
|
478
477
|
viewBox: "0 0 16 16",
|
|
479
478
|
width: 16,
|
|
480
479
|
...e,
|
|
481
|
-
children:
|
|
480
|
+
children: jsx("path", {
|
|
482
481
|
clipRule: "evenodd",
|
|
483
482
|
d: "M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",
|
|
484
483
|
fill: "currentColor",
|
|
485
484
|
fillRule: "evenodd"
|
|
486
485
|
})
|
|
487
486
|
})
|
|
488
|
-
},
|
|
487
|
+
}, Ut = createContext(we), fr = (e, t) => {
|
|
489
488
|
if (e === t) return !0;
|
|
490
489
|
if (!(e && t)) return e === t;
|
|
491
490
|
let n = Object.keys(e), r = Object.keys(t);
|
|
492
491
|
return n.length === r.length ? n.every((n) => e[n] === t[n]) : !1;
|
|
493
|
-
},
|
|
494
|
-
let n =
|
|
495
|
-
...
|
|
492
|
+
}, at = ({ icons: e, children: t }) => {
|
|
493
|
+
let n = useRef(e), r = useRef(e ? {
|
|
494
|
+
...we,
|
|
496
495
|
...e
|
|
497
|
-
} :
|
|
498
|
-
|
|
499
|
-
...
|
|
496
|
+
} : we);
|
|
497
|
+
fr(n.current, e) || (n.current = e, r.current = e ? {
|
|
498
|
+
...we,
|
|
500
499
|
...e
|
|
501
|
-
} :
|
|
500
|
+
} : we);
|
|
502
501
|
let i = r.current;
|
|
503
|
-
return
|
|
502
|
+
return jsx(Ut.Provider, {
|
|
504
503
|
value: i,
|
|
505
504
|
children: t
|
|
506
505
|
});
|
|
507
|
-
},
|
|
506
|
+
}, L = () => useContext(Ut), De = {
|
|
508
507
|
copyCode: "Copy Code",
|
|
509
508
|
downloadFile: "Download file",
|
|
510
509
|
downloadDiagram: "Download diagram",
|
|
@@ -534,8 +533,8 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
534
533
|
copyLink: "Copy link",
|
|
535
534
|
copied: "Copied",
|
|
536
535
|
openLink: "Open link"
|
|
537
|
-
},
|
|
538
|
-
let s =
|
|
536
|
+
}, Be = createContext(De), D = () => useContext(Be), Ae = ({ onCopy: e, onError: t, timeout: n = 2e3, children: r, className: i, code: a, ...o }) => {
|
|
537
|
+
let s = y(), [c, l] = useState(!1), u = useRef(0), { code: d } = He(), { isAnimating: f } = useContext(R), p = D(), m = a ?? d, h = async () => {
|
|
539
538
|
var r;
|
|
540
539
|
if (typeof window > "u" || !((r = navigator == null ? void 0 : navigator.clipboard) != null && r.writeText)) {
|
|
541
540
|
t?.(/* @__PURE__ */ Error("Clipboard API not available"));
|
|
@@ -547,11 +546,11 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
547
546
|
t?.(e);
|
|
548
547
|
}
|
|
549
548
|
};
|
|
550
|
-
|
|
549
|
+
useEffect(() => () => {
|
|
551
550
|
window.clearTimeout(u.current);
|
|
552
551
|
}, []);
|
|
553
|
-
let g =
|
|
554
|
-
return
|
|
552
|
+
let g = L(), _ = c ? g.CheckIcon : g.CopyIcon;
|
|
553
|
+
return jsx("button", {
|
|
555
554
|
className: s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", i),
|
|
556
555
|
"data-streamdown": "code-block-copy-button",
|
|
557
556
|
disabled: f,
|
|
@@ -559,9 +558,9 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
559
558
|
title: p.copyCode,
|
|
560
559
|
type: "button",
|
|
561
560
|
...o,
|
|
562
|
-
children: r ??
|
|
561
|
+
children: r ?? jsx(_, { size: 14 })
|
|
563
562
|
});
|
|
564
|
-
},
|
|
563
|
+
}, Yt = {
|
|
565
564
|
"1c": "1c",
|
|
566
565
|
"1c-query": "1cq",
|
|
567
566
|
abap: "abap",
|
|
@@ -868,111 +867,111 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
868
867
|
zig: "zig",
|
|
869
868
|
zsh: "zsh",
|
|
870
869
|
文言: "wy"
|
|
871
|
-
},
|
|
872
|
-
let s =
|
|
873
|
-
|
|
870
|
+
}, it = ({ onDownload: e, onError: t, language: n, children: r, className: i, code: a, ...o }) => {
|
|
871
|
+
let s = y(), { code: c } = He(), { isAnimating: l } = useContext(R), u = D(), d = L(), f = a ?? c, p = `file.${n && n in Yt ? Yt[n] : "txt"}`, m = () => {
|
|
872
|
+
try {
|
|
873
|
+
W(p, f, "text/plain"), e?.();
|
|
874
|
+
} catch (e) {
|
|
875
|
+
t?.(e);
|
|
876
|
+
}
|
|
877
|
+
};
|
|
878
|
+
return jsx("button", {
|
|
874
879
|
className: s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", i),
|
|
875
880
|
"data-streamdown": "code-block-download-button",
|
|
876
881
|
disabled: l,
|
|
877
|
-
onClick:
|
|
878
|
-
try {
|
|
879
|
-
H(p, f, "text/plain"), e?.();
|
|
880
|
-
} catch (e) {
|
|
881
|
-
t?.(e);
|
|
882
|
-
}
|
|
883
|
-
},
|
|
882
|
+
onClick: m,
|
|
884
883
|
title: u.downloadFile,
|
|
885
884
|
type: "button",
|
|
886
885
|
...o,
|
|
887
|
-
children: r ??
|
|
886
|
+
children: r ?? jsx(d.DownloadIcon, { size: 14 })
|
|
888
887
|
});
|
|
889
|
-
},
|
|
890
|
-
let { Loader2Icon: e } =
|
|
891
|
-
return
|
|
888
|
+
}, Oe = () => {
|
|
889
|
+
let { Loader2Icon: e } = L(), t = y();
|
|
890
|
+
return jsxs("div", {
|
|
892
891
|
className: t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),
|
|
893
|
-
children: [
|
|
892
|
+
children: [jsx("div", { className: t("h-[46px] w-full bg-muted/80") }), jsx("div", {
|
|
894
893
|
className: t("flex w-full items-center justify-center p-4"),
|
|
895
|
-
children:
|
|
894
|
+
children: jsx(e, { className: t("size-4 animate-spin") })
|
|
896
895
|
})]
|
|
897
896
|
});
|
|
898
|
-
},
|
|
899
|
-
let { DownloadIcon: s } =
|
|
900
|
-
|
|
897
|
+
}, Mr = /\.[^/.]+$/, oo = ({ node: e, className: t, src: n, alt: r, onLoad: i, onError: a, ...o }) => {
|
|
898
|
+
let { DownloadIcon: s } = L(), c = y(), l = useRef(null), [u, d] = useState(!1), [f, p] = useState(!1), m = D(), h = o.width != null || o.height != null, g = (u || h) && !f, _ = f && !h;
|
|
899
|
+
useEffect(() => {
|
|
901
900
|
let e = l.current;
|
|
902
901
|
if (e != null && e.complete) {
|
|
903
902
|
let t = e.naturalWidth > 0;
|
|
904
903
|
d(t), p(!t);
|
|
905
904
|
}
|
|
906
905
|
}, []);
|
|
907
|
-
let v =
|
|
906
|
+
let v = useCallback((e) => {
|
|
908
907
|
d(!0), p(!1), i?.(e);
|
|
909
|
-
}, [i]),
|
|
908
|
+
}, [i]), b = useCallback((e) => {
|
|
910
909
|
d(!1), p(!0), a?.(e);
|
|
911
|
-
}, [a]),
|
|
910
|
+
}, [a]), S = async () => {
|
|
912
911
|
if (n) try {
|
|
913
912
|
let e = await (await fetch(n)).blob(), t = new URL(n, window.location.origin).pathname.split("/").pop() || "", i = t.split(".").pop(), a = t.includes(".") && i !== void 0 && i.length <= 4, o = "";
|
|
914
913
|
if (a) o = t;
|
|
915
914
|
else {
|
|
916
915
|
let n = e.type, i = "png";
|
|
917
|
-
n.includes("jpeg") || n.includes("jpg") ? i = "jpg" : n.includes("png") ? i = "png" : n.includes("svg") ? i = "svg" : n.includes("gif") ? i = "gif" : n.includes("webp") && (i = "webp"), o = `${(r || t || "image").replace(
|
|
916
|
+
n.includes("jpeg") || n.includes("jpg") ? i = "jpg" : n.includes("png") ? i = "png" : n.includes("svg") ? i = "svg" : n.includes("gif") ? i = "gif" : n.includes("webp") && (i = "webp"), o = `${(r || t || "image").replace(Mr, "")}.${i}`;
|
|
918
917
|
}
|
|
919
|
-
|
|
918
|
+
W(o, e, e.type);
|
|
920
919
|
} catch {
|
|
921
920
|
window.open(n, "_blank");
|
|
922
921
|
}
|
|
923
922
|
};
|
|
924
|
-
return n ?
|
|
923
|
+
return n ? jsxs("div", {
|
|
925
924
|
className: c("group relative my-4 inline-block"),
|
|
926
925
|
"data-streamdown": "image-wrapper",
|
|
927
926
|
children: [
|
|
928
|
-
|
|
927
|
+
jsx("img", {
|
|
929
928
|
alt: r,
|
|
930
929
|
className: c("max-w-full rounded-lg", _ && "hidden", t),
|
|
931
930
|
"data-streamdown": "image",
|
|
932
|
-
onError:
|
|
931
|
+
onError: b,
|
|
933
932
|
onLoad: v,
|
|
934
933
|
ref: l,
|
|
935
934
|
src: n,
|
|
936
935
|
...o
|
|
937
936
|
}),
|
|
938
|
-
_ &&
|
|
937
|
+
_ && jsx("span", {
|
|
939
938
|
className: c("text-muted-foreground text-xs italic"),
|
|
940
939
|
"data-streamdown": "image-fallback",
|
|
941
940
|
children: m.imageNotAvailable
|
|
942
941
|
}),
|
|
943
|
-
|
|
944
|
-
g &&
|
|
942
|
+
jsx("div", { className: c("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block") }),
|
|
943
|
+
g && jsx("button", {
|
|
945
944
|
className: c("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background", "opacity-0 group-hover:opacity-100"),
|
|
946
|
-
onClick:
|
|
945
|
+
onClick: S,
|
|
947
946
|
title: m.downloadImage,
|
|
948
947
|
type: "button",
|
|
949
|
-
children:
|
|
948
|
+
children: jsx(s, { size: 14 })
|
|
950
949
|
})
|
|
951
950
|
]
|
|
952
951
|
}) : null;
|
|
953
|
-
},
|
|
954
|
-
|
|
955
|
-
},
|
|
956
|
-
|
|
957
|
-
},
|
|
958
|
-
let { CheckIcon: i, CopyIcon: a, ExternalLinkIcon: o, XIcon: s } =
|
|
952
|
+
}, ke = 0, le = () => {
|
|
953
|
+
ke += 1, ke === 1 && (document.body.style.overflow = "hidden");
|
|
954
|
+
}, ce = () => {
|
|
955
|
+
ke = Math.max(0, ke - 1), ke === 0 && (document.body.style.overflow = "");
|
|
956
|
+
}, so = ({ url: e, isOpen: t, onClose: n, onConfirm: r }) => {
|
|
957
|
+
let { CheckIcon: i, CopyIcon: a, ExternalLinkIcon: o, XIcon: s } = L(), c = y(), [l, u] = useState(!1), d = D(), f = useCallback(async () => {
|
|
959
958
|
try {
|
|
960
959
|
await navigator.clipboard.writeText(e), u(!0), setTimeout(() => u(!1), 2e3);
|
|
961
960
|
} catch {}
|
|
962
|
-
}, [e]), p =
|
|
961
|
+
}, [e]), p = useCallback(() => {
|
|
963
962
|
r(), n();
|
|
964
963
|
}, [r, n]);
|
|
965
|
-
return
|
|
964
|
+
return useEffect(() => {
|
|
966
965
|
if (t) {
|
|
967
|
-
|
|
966
|
+
le();
|
|
968
967
|
let e = (e) => {
|
|
969
968
|
e.key === "Escape" && n();
|
|
970
969
|
};
|
|
971
970
|
return document.addEventListener("keydown", e), () => {
|
|
972
|
-
document.removeEventListener("keydown", e),
|
|
971
|
+
document.removeEventListener("keydown", e), ce();
|
|
973
972
|
};
|
|
974
973
|
}
|
|
975
|
-
}, [t, n]), t ?
|
|
974
|
+
}, [t, n]), t ? jsx("div", {
|
|
976
975
|
className: c("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),
|
|
977
976
|
"data-streamdown": "link-safety-modal",
|
|
978
977
|
onClick: n,
|
|
@@ -981,55 +980,55 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
981
980
|
},
|
|
982
981
|
role: "button",
|
|
983
982
|
tabIndex: 0,
|
|
984
|
-
children:
|
|
983
|
+
children: jsxs("div", {
|
|
985
984
|
className: c("relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg"),
|
|
986
985
|
onClick: (e) => e.stopPropagation(),
|
|
987
986
|
onKeyDown: (e) => e.stopPropagation(),
|
|
988
987
|
role: "presentation",
|
|
989
988
|
children: [
|
|
990
|
-
|
|
989
|
+
jsx("button", {
|
|
991
990
|
className: c("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),
|
|
992
991
|
onClick: n,
|
|
993
992
|
title: d.close,
|
|
994
993
|
type: "button",
|
|
995
|
-
children:
|
|
994
|
+
children: jsx(s, { size: 16 })
|
|
996
995
|
}),
|
|
997
|
-
|
|
996
|
+
jsxs("div", {
|
|
998
997
|
className: c("flex flex-col gap-2"),
|
|
999
|
-
children: [
|
|
998
|
+
children: [jsxs("div", {
|
|
1000
999
|
className: c("flex items-center gap-2 font-semibold text-lg"),
|
|
1001
|
-
children: [
|
|
1002
|
-
}),
|
|
1000
|
+
children: [jsx(o, { size: 20 }), jsx("span", { children: d.openExternalLink })]
|
|
1001
|
+
}), jsx("p", {
|
|
1003
1002
|
className: c("text-muted-foreground text-sm"),
|
|
1004
1003
|
children: d.externalLinkWarning
|
|
1005
1004
|
})]
|
|
1006
1005
|
}),
|
|
1007
|
-
|
|
1006
|
+
jsx("div", {
|
|
1008
1007
|
className: c("break-all rounded-md bg-muted p-3 font-mono text-sm", e.length > 100 && "max-h-32 overflow-y-auto"),
|
|
1009
1008
|
children: e
|
|
1010
1009
|
}),
|
|
1011
|
-
|
|
1010
|
+
jsxs("div", {
|
|
1012
1011
|
className: c("flex gap-2"),
|
|
1013
|
-
children: [
|
|
1012
|
+
children: [jsx("button", {
|
|
1014
1013
|
className: c("flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted"),
|
|
1015
1014
|
onClick: f,
|
|
1016
1015
|
type: "button",
|
|
1017
|
-
children: l ?
|
|
1018
|
-
}),
|
|
1016
|
+
children: l ? jsxs(Fragment$1, { children: [jsx(i, { size: 14 }), jsx("span", { children: d.copied })] }) : jsxs(Fragment$1, { children: [jsx(a, { size: 14 }), jsx("span", { children: d.copyLink })] })
|
|
1017
|
+
}), jsxs("button", {
|
|
1019
1018
|
className: c("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90"),
|
|
1020
1019
|
onClick: p,
|
|
1021
1020
|
type: "button",
|
|
1022
|
-
children: [
|
|
1021
|
+
children: [jsx(o, { size: 14 }), jsx("span", { children: d.openLink })]
|
|
1023
1022
|
})]
|
|
1024
1023
|
})
|
|
1025
1024
|
]
|
|
1026
1025
|
})
|
|
1027
1026
|
}) : null;
|
|
1028
|
-
},
|
|
1027
|
+
}, Ve = createContext(null), ct = () => useContext(Ve), Li = () => ct()?.code ?? null, de = () => ct()?.mermaid ?? null, ao = (e) => {
|
|
1029
1028
|
var t;
|
|
1030
|
-
let n =
|
|
1029
|
+
let n = ct();
|
|
1031
1030
|
return n != null && n.renderers && e && (t = n.renderers.find((t) => Array.isArray(t.language) ? t.language.includes(e) : t.language === e)) != null ? t : null;
|
|
1032
|
-
},
|
|
1031
|
+
}, io = (e, t) => new Promise((t, n) => {
|
|
1033
1032
|
let r = "data:image/svg+xml;base64," + btoa(unescape(encodeURIComponent(e))), i = new Image();
|
|
1034
1033
|
i.crossOrigin = "anonymous", i.onload = () => {
|
|
1035
1034
|
let e = document.createElement("canvas"), r = i.width * 5, a = i.height * 5;
|
|
@@ -1047,11 +1046,11 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
1047
1046
|
t(e);
|
|
1048
1047
|
}, "image/png");
|
|
1049
1048
|
}, i.onerror = () => n(/* @__PURE__ */ Error("Failed to load SVG image")), i.src = r;
|
|
1050
|
-
}),
|
|
1051
|
-
let o =
|
|
1049
|
+
}), co = ({ chart: e, children: t, className: n, onDownload: r, config: i, onError: a }) => {
|
|
1050
|
+
let o = y(), [s, c] = useState(!1), l = useRef(null), { isAnimating: u } = useContext(R), d = L(), f = de(), p = D(), m = async (t) => {
|
|
1052
1051
|
try {
|
|
1053
1052
|
if (t === "mmd") {
|
|
1054
|
-
|
|
1053
|
+
W("diagram.mmd", e, "text/plain"), c(!1), r?.(t);
|
|
1055
1054
|
return;
|
|
1056
1055
|
}
|
|
1057
1056
|
if (!f) {
|
|
@@ -1064,18 +1063,18 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
1064
1063
|
return;
|
|
1065
1064
|
}
|
|
1066
1065
|
if (t === "svg") {
|
|
1067
|
-
|
|
1066
|
+
W("diagram.svg", l, "image/svg+xml"), c(!1), r?.(t);
|
|
1068
1067
|
return;
|
|
1069
1068
|
}
|
|
1070
1069
|
if (t === "png") {
|
|
1071
|
-
|
|
1070
|
+
W("diagram.png", await io(l), "image/png"), r?.(t), c(!1);
|
|
1072
1071
|
return;
|
|
1073
1072
|
}
|
|
1074
1073
|
} catch (e) {
|
|
1075
1074
|
a?.(e);
|
|
1076
1075
|
}
|
|
1077
1076
|
};
|
|
1078
|
-
return
|
|
1077
|
+
return useEffect(() => {
|
|
1079
1078
|
let e = (e) => {
|
|
1080
1079
|
let t = e.composedPath();
|
|
1081
1080
|
l.current && !t.includes(l.current) && c(!1);
|
|
@@ -1083,34 +1082,34 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
1083
1082
|
return document.addEventListener("mousedown", e), () => {
|
|
1084
1083
|
document.removeEventListener("mousedown", e);
|
|
1085
1084
|
};
|
|
1086
|
-
}, []),
|
|
1085
|
+
}, []), jsxs("div", {
|
|
1087
1086
|
className: o("relative"),
|
|
1088
1087
|
ref: l,
|
|
1089
|
-
children: [
|
|
1088
|
+
children: [jsx("button", {
|
|
1090
1089
|
className: o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", n),
|
|
1091
1090
|
disabled: u,
|
|
1092
1091
|
onClick: () => c(!s),
|
|
1093
1092
|
title: p.downloadDiagram,
|
|
1094
1093
|
type: "button",
|
|
1095
|
-
children: t ??
|
|
1096
|
-
}), s ?
|
|
1094
|
+
children: t ?? jsx(d.DownloadIcon, { size: 14 })
|
|
1095
|
+
}), s ? jsxs("div", {
|
|
1097
1096
|
className: o("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),
|
|
1098
1097
|
children: [
|
|
1099
|
-
|
|
1098
|
+
jsx("button", {
|
|
1100
1099
|
className: o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
|
|
1101
1100
|
onClick: () => m("svg"),
|
|
1102
1101
|
title: p.downloadDiagramAsSvg,
|
|
1103
1102
|
type: "button",
|
|
1104
1103
|
children: p.mermaidFormatSvg
|
|
1105
1104
|
}),
|
|
1106
|
-
|
|
1105
|
+
jsx("button", {
|
|
1107
1106
|
className: o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
|
|
1108
1107
|
onClick: () => m("png"),
|
|
1109
1108
|
title: p.downloadDiagramAsPng,
|
|
1110
1109
|
type: "button",
|
|
1111
1110
|
children: p.mermaidFormatPng
|
|
1112
1111
|
}),
|
|
1113
|
-
|
|
1112
|
+
jsx("button", {
|
|
1114
1113
|
className: o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
|
|
1115
1114
|
onClick: () => m("mmd"),
|
|
1116
1115
|
title: p.downloadDiagramAsMmd,
|
|
@@ -1120,39 +1119,39 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
1120
1119
|
]
|
|
1121
1120
|
}) : null]
|
|
1122
1121
|
});
|
|
1123
|
-
},
|
|
1124
|
-
let { Maximize2Icon: o, XIcon: s } =
|
|
1122
|
+
}, fo = ({ chart: e, config: t, onFullscreen: n, onExit: r, className: i, ...a }) => {
|
|
1123
|
+
let { Maximize2Icon: o, XIcon: s } = L(), c = y(), [l, u] = useState(!1), { isAnimating: d, controls: f } = useContext(R), p = D(), m = (() => {
|
|
1125
1124
|
if (typeof f == "boolean") return f;
|
|
1126
1125
|
let e = f.mermaid;
|
|
1127
1126
|
return e === !1 ? !1 : e === !0 || e === void 0 ? !0 : e.panZoom !== !1;
|
|
1128
1127
|
})(), h = () => {
|
|
1129
1128
|
u(!l);
|
|
1130
1129
|
};
|
|
1131
|
-
return
|
|
1130
|
+
return useEffect(() => {
|
|
1132
1131
|
if (l) {
|
|
1133
|
-
|
|
1132
|
+
le();
|
|
1134
1133
|
let e = (e) => {
|
|
1135
1134
|
e.key === "Escape" && u(!1);
|
|
1136
1135
|
};
|
|
1137
1136
|
return document.addEventListener("keydown", e), () => {
|
|
1138
|
-
document.removeEventListener("keydown", e),
|
|
1137
|
+
document.removeEventListener("keydown", e), ce();
|
|
1139
1138
|
};
|
|
1140
1139
|
}
|
|
1141
|
-
}, [l]),
|
|
1140
|
+
}, [l]), useEffect(() => {
|
|
1142
1141
|
l ? n?.() : r && r();
|
|
1143
1142
|
}, [
|
|
1144
1143
|
l,
|
|
1145
1144
|
n,
|
|
1146
1145
|
r
|
|
1147
|
-
]),
|
|
1146
|
+
]), jsxs(Fragment$1, { children: [jsx("button", {
|
|
1148
1147
|
className: c("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", i),
|
|
1149
1148
|
disabled: d,
|
|
1150
1149
|
onClick: h,
|
|
1151
1150
|
title: p.viewFullscreen,
|
|
1152
1151
|
type: "button",
|
|
1153
1152
|
...a,
|
|
1154
|
-
children:
|
|
1155
|
-
}), l ?
|
|
1153
|
+
children: jsx(o, { size: 14 })
|
|
1154
|
+
}), l ? createPortal(jsxs("div", {
|
|
1156
1155
|
className: c("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),
|
|
1157
1156
|
onClick: h,
|
|
1158
1157
|
onKeyDown: (e) => {
|
|
@@ -1160,18 +1159,18 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
1160
1159
|
},
|
|
1161
1160
|
role: "button",
|
|
1162
1161
|
tabIndex: 0,
|
|
1163
|
-
children: [
|
|
1162
|
+
children: [jsx("button", {
|
|
1164
1163
|
className: c("absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),
|
|
1165
1164
|
onClick: h,
|
|
1166
1165
|
title: p.exitFullscreen,
|
|
1167
1166
|
type: "button",
|
|
1168
|
-
children:
|
|
1169
|
-
}),
|
|
1167
|
+
children: jsx(s, { size: 20 })
|
|
1168
|
+
}), jsx("div", {
|
|
1170
1169
|
className: c("flex size-full items-center justify-center p-4"),
|
|
1171
1170
|
onClick: (e) => e.stopPropagation(),
|
|
1172
1171
|
onKeyDown: (e) => e.stopPropagation(),
|
|
1173
1172
|
role: "presentation",
|
|
1174
|
-
children:
|
|
1173
|
+
children: jsx(po, {
|
|
1175
1174
|
chart: e,
|
|
1176
1175
|
className: c("size-full [&_svg]:h-auto [&_svg]:w-auto"),
|
|
1177
1176
|
config: t,
|
|
@@ -1180,7 +1179,7 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
1180
1179
|
})
|
|
1181
1180
|
})]
|
|
1182
1181
|
}), document.body) : null] });
|
|
1183
|
-
},
|
|
1182
|
+
}, ue = (e) => {
|
|
1184
1183
|
let t = [], n = [], r = e.querySelectorAll("thead th");
|
|
1185
1184
|
for (let e of r) t.push(e.textContent?.trim() || "");
|
|
1186
1185
|
let i = e.querySelectorAll("tbody tr");
|
|
@@ -1193,7 +1192,7 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
1193
1192
|
headers: t,
|
|
1194
1193
|
rows: n
|
|
1195
1194
|
};
|
|
1196
|
-
},
|
|
1195
|
+
}, ne = (e) => {
|
|
1197
1196
|
let { headers: t, rows: n } = e, r = (e) => {
|
|
1198
1197
|
let t = !1, n = !1;
|
|
1199
1198
|
for (let r of e) {
|
|
@@ -1208,7 +1207,7 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
1208
1207
|
t.length > 0 && (a[o] = t.map(r).join(","), o += 1);
|
|
1209
1208
|
for (let e of n) a[o] = e.map(r).join(","), o += 1;
|
|
1210
1209
|
return a.join("\n");
|
|
1211
|
-
},
|
|
1210
|
+
}, dt = (e) => {
|
|
1212
1211
|
let { headers: t, rows: n } = e, r = (e) => {
|
|
1213
1212
|
let t = !1;
|
|
1214
1213
|
for (let n of e) if (n === " " || n === "\n" || n === "\r") {
|
|
@@ -1223,7 +1222,7 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
1223
1222
|
t.length > 0 && (a[o] = t.map(r).join(" "), o += 1);
|
|
1224
1223
|
for (let e of n) a[o] = e.map(r).join(" "), o += 1;
|
|
1225
1224
|
return a.join("\n");
|
|
1226
|
-
},
|
|
1225
|
+
}, je = (e) => {
|
|
1227
1226
|
let t = !1;
|
|
1228
1227
|
for (let n of e) if (n === "\\" || n === "|") {
|
|
1229
1228
|
t = !0;
|
|
@@ -1233,22 +1232,22 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
1233
1232
|
let n = [];
|
|
1234
1233
|
for (let t of e) t === "\\" ? n.push("\\\\") : t === "|" ? n.push("\\|") : n.push(t);
|
|
1235
1234
|
return n.join("");
|
|
1236
|
-
},
|
|
1235
|
+
}, re = (e) => {
|
|
1237
1236
|
let { headers: t, rows: n } = e;
|
|
1238
1237
|
if (t.length === 0) return "";
|
|
1239
1238
|
let r = Array(n.length + 2), i = 0;
|
|
1240
|
-
r[i] = `| ${t.map((e) =>
|
|
1239
|
+
r[i] = `| ${t.map((e) => je(e)).join(" | ")} |`, i += 1;
|
|
1241
1240
|
let a = Array(t.length);
|
|
1242
1241
|
for (let e = 0; e < t.length; e += 1) a[e] = "---";
|
|
1243
1242
|
r[i] = `| ${a.join(" | ")} |`, i += 1;
|
|
1244
1243
|
for (let e of n) if (e.length < t.length) {
|
|
1245
1244
|
let n = Array(t.length);
|
|
1246
|
-
for (let r = 0; r < t.length; r += 1) n[r] = r < e.length ?
|
|
1245
|
+
for (let r = 0; r < t.length; r += 1) n[r] = r < e.length ? je(e[r]) : "";
|
|
1247
1246
|
r[i] = `| ${n.join(" | ")} |`, i += 1;
|
|
1248
|
-
} else r[i] = `| ${e.map((e) =>
|
|
1247
|
+
} else r[i] = `| ${e.map((e) => je(e)).join(" | ")} |`, i += 1;
|
|
1249
1248
|
return r.join("\n");
|
|
1250
|
-
},
|
|
1251
|
-
let a =
|
|
1249
|
+
}, Te = ({ children: e, className: t, onCopy: n, onError: r, timeout: i = 2e3 }) => {
|
|
1250
|
+
let a = y(), [o, s] = useState(!1), [c, l] = useState(!1), u = useRef(null), d = useRef(0), { isAnimating: f } = useContext(R), p = D(), m = async (e) => {
|
|
1252
1251
|
var t;
|
|
1253
1252
|
if (typeof window > "u" || !((t = navigator == null ? void 0 : navigator.clipboard) != null && t.write)) {
|
|
1254
1253
|
r?.(/* @__PURE__ */ Error("Clipboard API not available"));
|
|
@@ -1260,11 +1259,11 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
1260
1259
|
r?.(/* @__PURE__ */ Error("Table not found"));
|
|
1261
1260
|
return;
|
|
1262
1261
|
}
|
|
1263
|
-
let a =
|
|
1264
|
-
csv:
|
|
1265
|
-
tsv:
|
|
1266
|
-
md:
|
|
1267
|
-
}[e] ||
|
|
1262
|
+
let a = ue(t), o = ({
|
|
1263
|
+
csv: ne,
|
|
1264
|
+
tsv: dt,
|
|
1265
|
+
md: re
|
|
1266
|
+
}[e] || re)(a), c = new ClipboardItem({
|
|
1268
1267
|
"text/plain": new Blob([o], { type: "text/plain" }),
|
|
1269
1268
|
"text/html": new Blob([t.outerHTML], { type: "text/html" })
|
|
1270
1269
|
});
|
|
@@ -1273,7 +1272,7 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
1273
1272
|
r?.(e);
|
|
1274
1273
|
}
|
|
1275
1274
|
};
|
|
1276
|
-
|
|
1275
|
+
useEffect(() => {
|
|
1277
1276
|
let e = (e) => {
|
|
1278
1277
|
let t = e.composedPath();
|
|
1279
1278
|
u.current && !t.includes(u.current) && s(!1);
|
|
@@ -1282,38 +1281,38 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
1282
1281
|
document.removeEventListener("mousedown", e), window.clearTimeout(d.current);
|
|
1283
1282
|
};
|
|
1284
1283
|
}, []);
|
|
1285
|
-
let h =
|
|
1286
|
-
return
|
|
1284
|
+
let h = L(), g = c ? h.CheckIcon : h.CopyIcon;
|
|
1285
|
+
return jsxs("div", {
|
|
1287
1286
|
className: a("relative"),
|
|
1288
1287
|
ref: u,
|
|
1289
|
-
children: [
|
|
1288
|
+
children: [jsx("button", {
|
|
1290
1289
|
className: a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", t),
|
|
1291
1290
|
disabled: f,
|
|
1292
1291
|
onClick: () => s(!o),
|
|
1293
1292
|
title: p.copyTable,
|
|
1294
1293
|
type: "button",
|
|
1295
|
-
children: e ??
|
|
1294
|
+
children: e ?? jsx(g, {
|
|
1296
1295
|
height: 14,
|
|
1297
1296
|
width: 14
|
|
1298
1297
|
})
|
|
1299
|
-
}), o ?
|
|
1298
|
+
}), o ? jsxs("div", {
|
|
1300
1299
|
className: a("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),
|
|
1301
1300
|
children: [
|
|
1302
|
-
|
|
1301
|
+
jsx("button", {
|
|
1303
1302
|
className: a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
|
|
1304
1303
|
onClick: () => m("md"),
|
|
1305
1304
|
title: p.copyTableAsMarkdown,
|
|
1306
1305
|
type: "button",
|
|
1307
1306
|
children: p.tableFormatMarkdown
|
|
1308
1307
|
}),
|
|
1309
|
-
|
|
1308
|
+
jsx("button", {
|
|
1310
1309
|
className: a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
|
|
1311
1310
|
onClick: () => m("csv"),
|
|
1312
1311
|
title: p.copyTableAsCsv,
|
|
1313
1312
|
type: "button",
|
|
1314
1313
|
children: p.tableFormatCsv
|
|
1315
1314
|
}),
|
|
1316
|
-
|
|
1315
|
+
jsx("button", {
|
|
1317
1316
|
className: a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
|
|
1318
1317
|
onClick: () => m("tsv"),
|
|
1319
1318
|
title: p.copyTableAsTsv,
|
|
@@ -1323,21 +1322,21 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
1323
1322
|
]
|
|
1324
1323
|
}) : null]
|
|
1325
1324
|
});
|
|
1326
|
-
},
|
|
1327
|
-
let i =
|
|
1325
|
+
}, Pe = ({ children: e, className: t, onDownload: n, onError: r }) => {
|
|
1326
|
+
let i = y(), [a, o] = useState(!1), s = useRef(null), { isAnimating: c } = useContext(R), l = D(), u = L(), d = (e) => {
|
|
1328
1327
|
try {
|
|
1329
1328
|
let t = (s.current?.closest("[data-streamdown=\"table-wrapper\"]"))?.querySelector("table");
|
|
1330
1329
|
if (!t) {
|
|
1331
1330
|
r?.(/* @__PURE__ */ Error("Table not found"));
|
|
1332
1331
|
return;
|
|
1333
1332
|
}
|
|
1334
|
-
let i =
|
|
1335
|
-
|
|
1333
|
+
let i = ue(t), a = e === "csv" ? ne(i) : re(i);
|
|
1334
|
+
W(`table.${e === "csv" ? "csv" : "md"}`, a, e === "csv" ? "text/csv" : "text/markdown"), o(!1), n?.(e);
|
|
1336
1335
|
} catch (e) {
|
|
1337
1336
|
r?.(e);
|
|
1338
1337
|
}
|
|
1339
1338
|
};
|
|
1340
|
-
return
|
|
1339
|
+
return useEffect(() => {
|
|
1341
1340
|
let e = (e) => {
|
|
1342
1341
|
let t = e.composedPath();
|
|
1343
1342
|
s.current && !t.includes(s.current) && o(!1);
|
|
@@ -1345,25 +1344,25 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
1345
1344
|
return document.addEventListener("mousedown", e), () => {
|
|
1346
1345
|
document.removeEventListener("mousedown", e);
|
|
1347
1346
|
};
|
|
1348
|
-
}, []),
|
|
1347
|
+
}, []), jsxs("div", {
|
|
1349
1348
|
className: i("relative"),
|
|
1350
1349
|
ref: s,
|
|
1351
|
-
children: [
|
|
1350
|
+
children: [jsx("button", {
|
|
1352
1351
|
className: i("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", t),
|
|
1353
1352
|
disabled: c,
|
|
1354
1353
|
onClick: () => o(!a),
|
|
1355
1354
|
title: l.downloadTable,
|
|
1356
1355
|
type: "button",
|
|
1357
|
-
children: e ??
|
|
1358
|
-
}), a ?
|
|
1356
|
+
children: e ?? jsx(u.DownloadIcon, { size: 14 })
|
|
1357
|
+
}), a ? jsxs("div", {
|
|
1359
1358
|
className: i("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),
|
|
1360
|
-
children: [
|
|
1359
|
+
children: [jsx("button", {
|
|
1361
1360
|
className: i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
|
|
1362
1361
|
onClick: () => d("csv"),
|
|
1363
1362
|
title: l.downloadTableAsCsv,
|
|
1364
1363
|
type: "button",
|
|
1365
1364
|
children: l.tableFormatCsv
|
|
1366
|
-
}),
|
|
1365
|
+
}), jsx("button", {
|
|
1367
1366
|
className: i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
|
|
1368
1367
|
onClick: () => d("markdown"),
|
|
1369
1368
|
title: l.downloadTableAsMarkdown,
|
|
@@ -1372,30 +1371,30 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
1372
1371
|
})]
|
|
1373
1372
|
}) : null]
|
|
1374
1373
|
});
|
|
1375
|
-
},
|
|
1376
|
-
let { Maximize2Icon: i, XIcon: a } =
|
|
1374
|
+
}, Co = ({ children: e, className: t, showCopy: n = !0, showDownload: r = !0 }) => {
|
|
1375
|
+
let { Maximize2Icon: i, XIcon: a } = L(), o = y(), [s, c] = useState(!1), { isAnimating: l } = useContext(R), u = D(), d = () => {
|
|
1377
1376
|
c(!0);
|
|
1378
1377
|
}, f = () => {
|
|
1379
1378
|
c(!1);
|
|
1380
1379
|
};
|
|
1381
|
-
return
|
|
1380
|
+
return useEffect(() => {
|
|
1382
1381
|
if (s) {
|
|
1383
|
-
|
|
1382
|
+
le();
|
|
1384
1383
|
let e = (e) => {
|
|
1385
1384
|
e.key === "Escape" && c(!1);
|
|
1386
1385
|
};
|
|
1387
1386
|
return document.addEventListener("keydown", e), () => {
|
|
1388
|
-
document.removeEventListener("keydown", e),
|
|
1387
|
+
document.removeEventListener("keydown", e), ce();
|
|
1389
1388
|
};
|
|
1390
1389
|
}
|
|
1391
|
-
}, [s]),
|
|
1390
|
+
}, [s]), jsxs(Fragment$1, { children: [jsx("button", {
|
|
1392
1391
|
className: o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", t),
|
|
1393
1392
|
disabled: l,
|
|
1394
1393
|
onClick: d,
|
|
1395
1394
|
title: u.viewFullscreen,
|
|
1396
1395
|
type: "button",
|
|
1397
|
-
children:
|
|
1398
|
-
}), s ?
|
|
1396
|
+
children: jsx(i, { size: 14 })
|
|
1397
|
+
}), s ? createPortal(jsx("div", {
|
|
1399
1398
|
"aria-label": u.viewFullscreen,
|
|
1400
1399
|
"aria-modal": "true",
|
|
1401
1400
|
className: o("fixed inset-0 z-50 flex flex-col bg-background"),
|
|
@@ -1405,27 +1404,27 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
1405
1404
|
e.key === "Escape" && f();
|
|
1406
1405
|
},
|
|
1407
1406
|
role: "dialog",
|
|
1408
|
-
children:
|
|
1407
|
+
children: jsxs("div", {
|
|
1409
1408
|
className: o("flex h-full flex-col"),
|
|
1410
1409
|
onClick: (e) => e.stopPropagation(),
|
|
1411
1410
|
onKeyDown: (e) => e.stopPropagation(),
|
|
1412
1411
|
role: "presentation",
|
|
1413
|
-
children: [
|
|
1412
|
+
children: [jsxs("div", {
|
|
1414
1413
|
className: o("flex items-center justify-end gap-1 p-4"),
|
|
1415
1414
|
children: [
|
|
1416
|
-
n ?
|
|
1417
|
-
r ?
|
|
1418
|
-
|
|
1415
|
+
n ? jsx(Te, {}) : null,
|
|
1416
|
+
r ? jsx(Pe, {}) : null,
|
|
1417
|
+
jsx("button", {
|
|
1419
1418
|
className: o("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),
|
|
1420
1419
|
onClick: f,
|
|
1421
1420
|
title: u.exitFullscreen,
|
|
1422
1421
|
type: "button",
|
|
1423
|
-
children:
|
|
1422
|
+
children: jsx(a, { size: 20 })
|
|
1424
1423
|
})
|
|
1425
1424
|
]
|
|
1426
|
-
}),
|
|
1425
|
+
}), jsx("div", {
|
|
1427
1426
|
className: o("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),
|
|
1428
|
-
children:
|
|
1427
|
+
children: jsx("table", {
|
|
1429
1428
|
className: o("w-full border-collapse border border-border"),
|
|
1430
1429
|
"data-streamdown": "table",
|
|
1431
1430
|
children: e
|
|
@@ -1433,25 +1432,25 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
1433
1432
|
})]
|
|
1434
1433
|
})
|
|
1435
1434
|
}), document.body) : null] });
|
|
1436
|
-
},
|
|
1437
|
-
let s =
|
|
1438
|
-
return
|
|
1435
|
+
}, vo = ({ children: e, className: t, showControls: n, showCopy: r = !0, showDownload: i = !0, showFullscreen: a = !0, ...o }) => {
|
|
1436
|
+
let s = y(), c = n && r, l = n && i, u = n && a, d = c || l || u;
|
|
1437
|
+
return jsxs("div", {
|
|
1439
1438
|
className: s("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),
|
|
1440
1439
|
"data-streamdown": "table-wrapper",
|
|
1441
|
-
children: [d ?
|
|
1440
|
+
children: [d ? jsxs("div", {
|
|
1442
1441
|
className: s("flex items-center justify-end gap-1"),
|
|
1443
1442
|
children: [
|
|
1444
|
-
c ?
|
|
1445
|
-
l ?
|
|
1446
|
-
u ?
|
|
1443
|
+
c ? jsx(Te, {}) : null,
|
|
1444
|
+
l ? jsx(Pe, {}) : null,
|
|
1445
|
+
u ? jsx(Co, {
|
|
1447
1446
|
showCopy: c,
|
|
1448
1447
|
showDownload: l,
|
|
1449
1448
|
children: e
|
|
1450
1449
|
}) : null
|
|
1451
1450
|
]
|
|
1452
|
-
}) : null,
|
|
1451
|
+
}) : null, jsx("div", {
|
|
1453
1452
|
className: s("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),
|
|
1454
|
-
children:
|
|
1453
|
+
children: jsx("table", {
|
|
1455
1454
|
className: s("w-full divide-y divide-border", t),
|
|
1456
1455
|
"data-streamdown": "table",
|
|
1457
1456
|
...o,
|
|
@@ -1459,64 +1458,64 @@ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
|
1459
1458
|
})
|
|
1460
1459
|
})]
|
|
1461
1460
|
});
|
|
1462
|
-
},
|
|
1463
|
-
function
|
|
1461
|
+
}, es = /startLine=(\d+)/, ts = /\bnoLineNumbers\b/, os = lazy(() => import("./mermaid-GHXKKRXX.js").then((e) => ({ default: e.Mermaid }))), ns = /language-([^\s]+)/;
|
|
1462
|
+
function qe(e, t) {
|
|
1464
1463
|
if (!(e != null && e.position || t != null && t.position)) return !0;
|
|
1465
1464
|
if (!(e != null && e.position && t != null && t.position)) return !1;
|
|
1466
1465
|
let n = e.position.start, r = t.position.start, i = e.position.end, a = t.position.end;
|
|
1467
1466
|
return n?.line === r?.line && n?.column === r?.column && i?.line === a?.line && i?.column === a?.column;
|
|
1468
1467
|
}
|
|
1469
|
-
function
|
|
1470
|
-
return e.className === t.className &&
|
|
1468
|
+
function E(e, t) {
|
|
1469
|
+
return e.className === t.className && qe(e.node, t.node);
|
|
1471
1470
|
}
|
|
1472
|
-
var
|
|
1471
|
+
var ft = (e, t) => typeof e == "boolean" ? e : e[t] !== !1, pt = (e, t) => {
|
|
1473
1472
|
if (typeof e == "boolean") return e;
|
|
1474
1473
|
let n = e.table;
|
|
1475
1474
|
return n === !1 ? !1 : n === !0 || n === void 0 ? !0 : n[t] !== !1;
|
|
1476
|
-
},
|
|
1475
|
+
}, To = (e, t) => {
|
|
1477
1476
|
if (typeof e == "boolean") return e;
|
|
1478
1477
|
let n = e.code;
|
|
1479
1478
|
return n === !1 ? !1 : n === !0 || n === void 0 ? !0 : n[t] !== !1;
|
|
1480
|
-
},
|
|
1479
|
+
}, Fe = (e, t) => {
|
|
1481
1480
|
if (typeof e == "boolean") return e;
|
|
1482
1481
|
let n = e.mermaid;
|
|
1483
1482
|
return n === !1 ? !1 : n === !0 || n === void 0 ? !0 : n[t] !== !1;
|
|
1484
|
-
},
|
|
1485
|
-
className:
|
|
1483
|
+
}, bt = memo(({ children: e, className: t, node: n, ...r }) => jsx("ol", {
|
|
1484
|
+
className: y()("list-inside list-decimal whitespace-normal [li_&]:pl-6", t),
|
|
1486
1485
|
"data-streamdown": "ordered-list",
|
|
1487
1486
|
...r,
|
|
1488
1487
|
children: e
|
|
1489
|
-
}), (e, t) =>
|
|
1490
|
-
|
|
1491
|
-
var
|
|
1492
|
-
className:
|
|
1488
|
+
}), (e, t) => E(e, t));
|
|
1489
|
+
bt.displayName = "MarkdownOl";
|
|
1490
|
+
var Po = memo(({ children: e, className: t, node: n, ...r }) => jsx("li", {
|
|
1491
|
+
className: y()("py-1 [&>p]:inline", t),
|
|
1493
1492
|
"data-streamdown": "list-item",
|
|
1494
1493
|
...r,
|
|
1495
1494
|
children: e
|
|
1496
|
-
}), (e, t) => e.className === t.className &&
|
|
1497
|
-
|
|
1498
|
-
var
|
|
1499
|
-
className:
|
|
1495
|
+
}), (e, t) => e.className === t.className && qe(e.node, t.node));
|
|
1496
|
+
Po.displayName = "MarkdownLi";
|
|
1497
|
+
var Mo = memo(({ children: e, className: t, node: n, ...r }) => jsx("ul", {
|
|
1498
|
+
className: y()("list-inside list-disc whitespace-normal [li_&]:pl-6", t),
|
|
1500
1499
|
"data-streamdown": "unordered-list",
|
|
1501
1500
|
...r,
|
|
1502
1501
|
children: e
|
|
1503
|
-
}), (e, t) =>
|
|
1504
|
-
|
|
1505
|
-
var
|
|
1506
|
-
className:
|
|
1502
|
+
}), (e, t) => E(e, t));
|
|
1503
|
+
Mo.displayName = "MarkdownUl";
|
|
1504
|
+
var Io = memo(({ className: e, node: t, ...n }) => jsx("hr", {
|
|
1505
|
+
className: y()("my-6 border-border", e),
|
|
1507
1506
|
"data-streamdown": "horizontal-rule",
|
|
1508
1507
|
...n
|
|
1509
|
-
}), (e, t) =>
|
|
1510
|
-
|
|
1511
|
-
var
|
|
1512
|
-
className:
|
|
1508
|
+
}), (e, t) => E(e, t));
|
|
1509
|
+
Io.displayName = "MarkdownHr";
|
|
1510
|
+
var No = memo(({ children: e, className: t, node: n, ...r }) => jsx("span", {
|
|
1511
|
+
className: y()("font-semibold", t),
|
|
1513
1512
|
"data-streamdown": "strong",
|
|
1514
1513
|
...r,
|
|
1515
1514
|
children: e
|
|
1516
|
-
}), (e, t) =>
|
|
1517
|
-
|
|
1518
|
-
var
|
|
1519
|
-
let a =
|
|
1515
|
+
}), (e, t) => E(e, t));
|
|
1516
|
+
No.displayName = "MarkdownStrong";
|
|
1517
|
+
var Lo = memo(({ children: e, className: t, href: n, node: r, ...i }) => {
|
|
1518
|
+
let a = y(), { linkSafety: o } = useContext(R), [s, c] = useState(!1), l = n === "streamdown:incomplete-link", u = useCallback(async (e) => {
|
|
1520
1519
|
if (!(!(o != null && o.enabled && n) || l)) {
|
|
1521
1520
|
if (e.preventDefault(), o.onLinkCheck && await o.onLinkCheck(n)) {
|
|
1522
1521
|
window.open(n, "_blank", "noreferrer");
|
|
@@ -1528,9 +1527,9 @@ var ft = x(({ children: e, className: t, href: n, node: r, ...i }) => {
|
|
|
1528
1527
|
o,
|
|
1529
1528
|
n,
|
|
1530
1529
|
l
|
|
1531
|
-
]), d =
|
|
1530
|
+
]), d = useCallback(() => {
|
|
1532
1531
|
n && window.open(n, "_blank", "noreferrer");
|
|
1533
|
-
}, [n]), f =
|
|
1532
|
+
}, [n]), f = useCallback(() => {
|
|
1534
1533
|
c(!1);
|
|
1535
1534
|
}, []), p = {
|
|
1536
1535
|
url: n ?? "",
|
|
@@ -1538,14 +1537,14 @@ var ft = x(({ children: e, className: t, href: n, node: r, ...i }) => {
|
|
|
1538
1537
|
onClose: f,
|
|
1539
1538
|
onConfirm: d
|
|
1540
1539
|
};
|
|
1541
|
-
return o != null && o.enabled && n ?
|
|
1540
|
+
return o != null && o.enabled && n ? jsxs(Fragment$1, { children: [jsx("button", {
|
|
1542
1541
|
className: a("wrap-anywhere appearance-none text-left font-medium text-primary underline", t),
|
|
1543
1542
|
"data-incomplete": l,
|
|
1544
1543
|
"data-streamdown": "link",
|
|
1545
1544
|
onClick: u,
|
|
1546
1545
|
type: "button",
|
|
1547
1546
|
children: e
|
|
1548
|
-
}), o.renderModal ? o.renderModal(p) :
|
|
1547
|
+
}), o.renderModal ? o.renderModal(p) : jsx(so, { ...p })] }) : jsx("a", {
|
|
1549
1548
|
className: a("wrap-anywhere font-medium text-primary underline", t),
|
|
1550
1549
|
"data-incomplete": l,
|
|
1551
1550
|
"data-streamdown": "link",
|
|
@@ -1555,127 +1554,127 @@ var ft = x(({ children: e, className: t, href: n, node: r, ...i }) => {
|
|
|
1555
1554
|
...i,
|
|
1556
1555
|
children: e
|
|
1557
1556
|
});
|
|
1558
|
-
}, (e, t) =>
|
|
1559
|
-
|
|
1560
|
-
var
|
|
1561
|
-
className:
|
|
1557
|
+
}, (e, t) => E(e, t) && e.href === t.href);
|
|
1558
|
+
Lo.displayName = "MarkdownA";
|
|
1559
|
+
var Ro = memo(({ children: e, className: t, node: n, ...r }) => jsx("h1", {
|
|
1560
|
+
className: y()("mt-6 mb-2 font-semibold text-3xl", t),
|
|
1562
1561
|
"data-streamdown": "heading-1",
|
|
1563
1562
|
...r,
|
|
1564
1563
|
children: e
|
|
1565
|
-
}), (e, t) =>
|
|
1566
|
-
|
|
1567
|
-
var
|
|
1568
|
-
className:
|
|
1564
|
+
}), (e, t) => E(e, t));
|
|
1565
|
+
Ro.displayName = "MarkdownH1";
|
|
1566
|
+
var So = memo(({ children: e, className: t, node: n, ...r }) => jsx("h2", {
|
|
1567
|
+
className: y()("mt-6 mb-2 font-semibold text-2xl", t),
|
|
1569
1568
|
"data-streamdown": "heading-2",
|
|
1570
1569
|
...r,
|
|
1571
1570
|
children: e
|
|
1572
|
-
}), (e, t) =>
|
|
1573
|
-
|
|
1574
|
-
var
|
|
1575
|
-
className:
|
|
1571
|
+
}), (e, t) => E(e, t));
|
|
1572
|
+
So.displayName = "MarkdownH2";
|
|
1573
|
+
var Eo = memo(({ children: e, className: t, node: n, ...r }) => jsx("h3", {
|
|
1574
|
+
className: y()("mt-6 mb-2 font-semibold text-xl", t),
|
|
1576
1575
|
"data-streamdown": "heading-3",
|
|
1577
1576
|
...r,
|
|
1578
1577
|
children: e
|
|
1579
|
-
}), (e, t) =>
|
|
1580
|
-
|
|
1581
|
-
var
|
|
1582
|
-
className:
|
|
1578
|
+
}), (e, t) => E(e, t));
|
|
1579
|
+
Eo.displayName = "MarkdownH3";
|
|
1580
|
+
var Ho = memo(({ children: e, className: t, node: n, ...r }) => jsx("h4", {
|
|
1581
|
+
className: y()("mt-6 mb-2 font-semibold text-lg", t),
|
|
1583
1582
|
"data-streamdown": "heading-4",
|
|
1584
1583
|
...r,
|
|
1585
1584
|
children: e
|
|
1586
|
-
}), (e, t) =>
|
|
1587
|
-
|
|
1588
|
-
var
|
|
1589
|
-
className:
|
|
1585
|
+
}), (e, t) => E(e, t));
|
|
1586
|
+
Ho.displayName = "MarkdownH4";
|
|
1587
|
+
var Do = memo(({ children: e, className: t, node: n, ...r }) => jsx("h5", {
|
|
1588
|
+
className: y()("mt-6 mb-2 font-semibold text-base", t),
|
|
1590
1589
|
"data-streamdown": "heading-5",
|
|
1591
1590
|
...r,
|
|
1592
1591
|
children: e
|
|
1593
|
-
}), (e, t) =>
|
|
1594
|
-
|
|
1595
|
-
var
|
|
1596
|
-
className:
|
|
1592
|
+
}), (e, t) => E(e, t));
|
|
1593
|
+
Do.displayName = "MarkdownH5";
|
|
1594
|
+
var Bo = memo(({ children: e, className: t, node: n, ...r }) => jsx("h6", {
|
|
1595
|
+
className: y()("mt-6 mb-2 font-semibold text-sm", t),
|
|
1597
1596
|
"data-streamdown": "heading-6",
|
|
1598
1597
|
...r,
|
|
1599
1598
|
children: e
|
|
1600
|
-
}), (e, t) =>
|
|
1601
|
-
|
|
1602
|
-
var
|
|
1603
|
-
let { controls: i } =
|
|
1604
|
-
return
|
|
1599
|
+
}), (e, t) => E(e, t));
|
|
1600
|
+
Bo.displayName = "MarkdownH6";
|
|
1601
|
+
var Ao = memo(({ children: e, className: t, node: n, ...r }) => {
|
|
1602
|
+
let { controls: i } = useContext(R);
|
|
1603
|
+
return jsx(vo, {
|
|
1605
1604
|
className: t,
|
|
1606
|
-
showControls:
|
|
1607
|
-
showCopy:
|
|
1608
|
-
showDownload:
|
|
1609
|
-
showFullscreen:
|
|
1605
|
+
showControls: ft(i, "table"),
|
|
1606
|
+
showCopy: pt(i, "copy"),
|
|
1607
|
+
showDownload: pt(i, "download"),
|
|
1608
|
+
showFullscreen: pt(i, "fullscreen"),
|
|
1610
1609
|
...r,
|
|
1611
1610
|
children: e
|
|
1612
1611
|
});
|
|
1613
|
-
}, (e, t) =>
|
|
1614
|
-
|
|
1615
|
-
var
|
|
1616
|
-
className:
|
|
1612
|
+
}, (e, t) => E(e, t));
|
|
1613
|
+
Ao.displayName = "MarkdownTable";
|
|
1614
|
+
var Oo = memo(({ children: e, className: t, node: n, ...r }) => jsx("thead", {
|
|
1615
|
+
className: y()("bg-muted/80", t),
|
|
1617
1616
|
"data-streamdown": "table-header",
|
|
1618
1617
|
...r,
|
|
1619
1618
|
children: e
|
|
1620
|
-
}), (e, t) =>
|
|
1621
|
-
|
|
1622
|
-
var
|
|
1623
|
-
className:
|
|
1619
|
+
}), (e, t) => E(e, t));
|
|
1620
|
+
Oo.displayName = "MarkdownThead";
|
|
1621
|
+
var Vo = memo(({ children: e, className: t, node: n, ...r }) => jsx("tbody", {
|
|
1622
|
+
className: y()("divide-y divide-border", t),
|
|
1624
1623
|
"data-streamdown": "table-body",
|
|
1625
1624
|
...r,
|
|
1626
1625
|
children: e
|
|
1627
|
-
}), (e, t) =>
|
|
1628
|
-
|
|
1629
|
-
var
|
|
1630
|
-
className:
|
|
1626
|
+
}), (e, t) => E(e, t));
|
|
1627
|
+
Vo.displayName = "MarkdownTbody";
|
|
1628
|
+
var jo = memo(({ children: e, className: t, node: n, ...r }) => jsx("tr", {
|
|
1629
|
+
className: y()("border-border", t),
|
|
1631
1630
|
"data-streamdown": "table-row",
|
|
1632
1631
|
...r,
|
|
1633
1632
|
children: e
|
|
1634
|
-
}), (e, t) =>
|
|
1635
|
-
|
|
1636
|
-
var
|
|
1637
|
-
className:
|
|
1633
|
+
}), (e, t) => E(e, t));
|
|
1634
|
+
jo.displayName = "MarkdownTr";
|
|
1635
|
+
var Fo = memo(({ children: e, className: t, node: n, ...r }) => jsx("th", {
|
|
1636
|
+
className: y()("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm", t),
|
|
1638
1637
|
"data-streamdown": "table-header-cell",
|
|
1639
1638
|
...r,
|
|
1640
1639
|
children: e
|
|
1641
|
-
}), (e, t) =>
|
|
1642
|
-
|
|
1643
|
-
var
|
|
1644
|
-
className:
|
|
1640
|
+
}), (e, t) => E(e, t));
|
|
1641
|
+
Fo.displayName = "MarkdownTh";
|
|
1642
|
+
var zo = memo(({ children: e, className: t, node: n, ...r }) => jsx("td", {
|
|
1643
|
+
className: y()("px-4 py-2 text-sm", t),
|
|
1645
1644
|
"data-streamdown": "table-cell",
|
|
1646
1645
|
...r,
|
|
1647
1646
|
children: e
|
|
1648
|
-
}), (e, t) =>
|
|
1649
|
-
|
|
1650
|
-
var
|
|
1651
|
-
className:
|
|
1647
|
+
}), (e, t) => E(e, t));
|
|
1648
|
+
zo.displayName = "MarkdownTd";
|
|
1649
|
+
var _o = memo(({ children: e, className: t, node: n, ...r }) => jsx("blockquote", {
|
|
1650
|
+
className: y()("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic", t),
|
|
1652
1651
|
"data-streamdown": "blockquote",
|
|
1653
1652
|
...r,
|
|
1654
1653
|
children: e
|
|
1655
|
-
}), (e, t) =>
|
|
1656
|
-
|
|
1657
|
-
var
|
|
1658
|
-
className:
|
|
1654
|
+
}), (e, t) => E(e, t));
|
|
1655
|
+
_o.displayName = "MarkdownBlockquote";
|
|
1656
|
+
var qo = memo(({ children: e, className: t, node: n, ...r }) => jsx("sup", {
|
|
1657
|
+
className: y()("text-sm", t),
|
|
1659
1658
|
"data-streamdown": "superscript",
|
|
1660
1659
|
...r,
|
|
1661
1660
|
children: e
|
|
1662
|
-
}), (e, t) =>
|
|
1663
|
-
|
|
1664
|
-
var
|
|
1665
|
-
className:
|
|
1661
|
+
}), (e, t) => E(e, t));
|
|
1662
|
+
qo.displayName = "MarkdownSup";
|
|
1663
|
+
var $o = memo(({ children: e, className: t, node: n, ...r }) => jsx("sub", {
|
|
1664
|
+
className: y()("text-sm", t),
|
|
1666
1665
|
"data-streamdown": "subscript",
|
|
1667
1666
|
...r,
|
|
1668
1667
|
children: e
|
|
1669
|
-
}), (e, t) =>
|
|
1670
|
-
|
|
1671
|
-
var
|
|
1668
|
+
}), (e, t) => E(e, t));
|
|
1669
|
+
$o.displayName = "MarkdownSub";
|
|
1670
|
+
var Wo = memo(({ children: e, className: t, node: n, ...r }) => {
|
|
1672
1671
|
if ("data-footnotes" in r) {
|
|
1673
1672
|
let n = (e) => {
|
|
1674
|
-
if (!
|
|
1673
|
+
if (!isValidElement(e)) return !1;
|
|
1675
1674
|
let t = Array.isArray(e.props.children) ? e.props.children : [e.props.children], n = !1, r = !1;
|
|
1676
1675
|
for (let e of t) if (e) {
|
|
1677
1676
|
if (typeof e == "string") e.trim() !== "" && (n = !0);
|
|
1678
|
-
else if (
|
|
1677
|
+
else if (isValidElement(e)) if (e.props?.["data-footnote-backref"] !== void 0) r = !0;
|
|
1679
1678
|
else {
|
|
1680
1679
|
let t = Array.isArray(e.props.children) ? e.props.children : [e.props.children];
|
|
1681
1680
|
for (let e of t) {
|
|
@@ -1683,7 +1682,7 @@ var Ot = x(({ children: e, className: t, node: n, ...r }) => {
|
|
|
1683
1682
|
n = !0;
|
|
1684
1683
|
break;
|
|
1685
1684
|
}
|
|
1686
|
-
if (
|
|
1685
|
+
if (isValidElement(e) && e.props?.["data-footnote-backref"] === void 0) {
|
|
1687
1686
|
n = !0;
|
|
1688
1687
|
break;
|
|
1689
1688
|
}
|
|
@@ -1692,8 +1691,8 @@ var Ot = x(({ children: e, className: t, node: n, ...r }) => {
|
|
|
1692
1691
|
}
|
|
1693
1692
|
return r && !n;
|
|
1694
1693
|
}, i = Array.isArray(e) ? e.map((e) => {
|
|
1695
|
-
if (!
|
|
1696
|
-
if (e.type ===
|
|
1694
|
+
if (!isValidElement(e)) return e;
|
|
1695
|
+
if (e.type === bt) {
|
|
1697
1696
|
let t = (Array.isArray(e.props.children) ? e.props.children : [e.props.children]).filter((e) => !n(e));
|
|
1698
1697
|
return t.length === 0 ? null : {
|
|
1699
1698
|
...e,
|
|
@@ -1705,34 +1704,34 @@ var Ot = x(({ children: e, className: t, node: n, ...r }) => {
|
|
|
1705
1704
|
}
|
|
1706
1705
|
return e;
|
|
1707
1706
|
}) : e;
|
|
1708
|
-
return (Array.isArray(i) ? i.some((e) => e !== null) : i !== null) ?
|
|
1707
|
+
return (Array.isArray(i) ? i.some((e) => e !== null) : i !== null) ? jsx("section", {
|
|
1709
1708
|
className: t,
|
|
1710
1709
|
...r,
|
|
1711
1710
|
children: i
|
|
1712
1711
|
}) : null;
|
|
1713
1712
|
}
|
|
1714
|
-
return
|
|
1713
|
+
return jsx("section", {
|
|
1715
1714
|
className: t,
|
|
1716
1715
|
...r,
|
|
1717
1716
|
children: e
|
|
1718
1717
|
});
|
|
1719
|
-
}, (e, t) =>
|
|
1720
|
-
|
|
1721
|
-
var
|
|
1722
|
-
let i =
|
|
1723
|
-
if (a) return
|
|
1718
|
+
}, (e, t) => E(e, t));
|
|
1719
|
+
Wo.displayName = "MarkdownSection";
|
|
1720
|
+
var Zo = memo(({ node: e, className: t, children: n, ...r }) => {
|
|
1721
|
+
let i = y(), a = !("data-block" in r), { mermaid: o, controls: s, lineNumbers: c } = useContext(R), l = de(), u = tt(), d = (t?.match(ns))?.at(1) ?? "", f = ao(d);
|
|
1722
|
+
if (a) return jsx("code", {
|
|
1724
1723
|
className: i("rounded bg-muted px-1.5 py-0.5 font-mono text-sm", t),
|
|
1725
1724
|
"data-streamdown": "inline-code",
|
|
1726
1725
|
...r,
|
|
1727
1726
|
children: n
|
|
1728
1727
|
});
|
|
1729
|
-
let p = e?.properties?.metastring, m = p?.match(
|
|
1730
|
-
if (
|
|
1728
|
+
let p = e?.properties?.metastring, m = p?.match(es), g = m ? Number.parseInt(m[1], 10) : void 0, _ = g !== void 0 && g >= 1 ? g : void 0, v = !(p && ts.test(p)) && c !== !1, S = "";
|
|
1729
|
+
if (isValidElement(n) && n.props && typeof n.props == "object" && "children" in n.props && typeof n.props.children == "string" ? S = n.props.children : typeof n == "string" && (S = n), f) {
|
|
1731
1730
|
let e = f.component;
|
|
1732
|
-
return
|
|
1733
|
-
fallback:
|
|
1734
|
-
children:
|
|
1735
|
-
code:
|
|
1731
|
+
return jsx(Suspense, {
|
|
1732
|
+
fallback: jsx(Oe, {}),
|
|
1733
|
+
children: jsx(e, {
|
|
1734
|
+
code: S,
|
|
1736
1735
|
isIncomplete: u,
|
|
1737
1736
|
language: d,
|
|
1738
1737
|
meta: p
|
|
@@ -1740,42 +1739,42 @@ var kt = x(({ node: e, className: t, children: n, ...r }) => {
|
|
|
1740
1739
|
});
|
|
1741
1740
|
}
|
|
1742
1741
|
if (d === "mermaid" && l) {
|
|
1743
|
-
let e =
|
|
1744
|
-
return
|
|
1745
|
-
fallback:
|
|
1746
|
-
children:
|
|
1742
|
+
let e = ft(s, "mermaid"), n = Fe(s, "download"), r = Fe(s, "copy"), a = Fe(s, "fullscreen"), c = Fe(s, "panZoom"), l = e && (n || r || a);
|
|
1743
|
+
return jsx(Suspense, {
|
|
1744
|
+
fallback: jsx(Oe, {}),
|
|
1745
|
+
children: jsxs("div", {
|
|
1747
1746
|
className: i("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", t),
|
|
1748
1747
|
"data-streamdown": "mermaid-block",
|
|
1749
1748
|
children: [
|
|
1750
|
-
|
|
1749
|
+
jsx("div", {
|
|
1751
1750
|
className: i("flex h-8 items-center text-muted-foreground text-xs"),
|
|
1752
|
-
children:
|
|
1751
|
+
children: jsx("span", {
|
|
1753
1752
|
className: i("ml-1 font-mono lowercase"),
|
|
1754
1753
|
children: "mermaid"
|
|
1755
1754
|
})
|
|
1756
1755
|
}),
|
|
1757
|
-
l ?
|
|
1756
|
+
l ? jsx("div", {
|
|
1758
1757
|
className: i("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),
|
|
1759
|
-
children:
|
|
1758
|
+
children: jsxs("div", {
|
|
1760
1759
|
className: i("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),
|
|
1761
1760
|
"data-streamdown": "mermaid-block-actions",
|
|
1762
1761
|
children: [
|
|
1763
|
-
n ?
|
|
1764
|
-
chart:
|
|
1762
|
+
n ? jsx(co, {
|
|
1763
|
+
chart: S,
|
|
1765
1764
|
config: o?.config
|
|
1766
1765
|
}) : null,
|
|
1767
|
-
r ?
|
|
1768
|
-
a ?
|
|
1769
|
-
chart:
|
|
1766
|
+
r ? jsx(Ae, { code: S }) : null,
|
|
1767
|
+
a ? jsx(fo, {
|
|
1768
|
+
chart: S,
|
|
1770
1769
|
config: o?.config
|
|
1771
1770
|
}) : null
|
|
1772
1771
|
]
|
|
1773
1772
|
})
|
|
1774
1773
|
}) : null,
|
|
1775
|
-
|
|
1774
|
+
jsx("div", {
|
|
1776
1775
|
className: i("rounded-md border border-border bg-background"),
|
|
1777
|
-
children:
|
|
1778
|
-
chart:
|
|
1776
|
+
children: jsx(os, {
|
|
1777
|
+
chart: S,
|
|
1779
1778
|
config: o?.config,
|
|
1780
1779
|
showControls: c
|
|
1781
1780
|
})
|
|
@@ -1784,75 +1783,75 @@ var kt = x(({ node: e, className: t, children: n, ...r }) => {
|
|
|
1784
1783
|
})
|
|
1785
1784
|
});
|
|
1786
1785
|
}
|
|
1787
|
-
let
|
|
1788
|
-
return
|
|
1786
|
+
let C = ft(s, "code"), w = To(s, "download"), ai = To(s, "copy");
|
|
1787
|
+
return jsx(st, {
|
|
1789
1788
|
className: t,
|
|
1790
|
-
code:
|
|
1789
|
+
code: S,
|
|
1791
1790
|
isIncomplete: u,
|
|
1792
1791
|
language: d,
|
|
1793
1792
|
lineNumbers: v,
|
|
1794
1793
|
startLine: _,
|
|
1795
|
-
children:
|
|
1796
|
-
code:
|
|
1794
|
+
children: C ? jsxs(Fragment$1, { children: [w ? jsx(it, {
|
|
1795
|
+
code: S,
|
|
1797
1796
|
language: d
|
|
1798
|
-
}) : null,
|
|
1797
|
+
}) : null, ai ? jsx(Ae, {}) : null] }) : null
|
|
1799
1798
|
});
|
|
1800
|
-
}, (e, t) => e.className === t.className &&
|
|
1801
|
-
|
|
1802
|
-
var
|
|
1803
|
-
|
|
1804
|
-
var
|
|
1799
|
+
}, (e, t) => e.className === t.className && qe(e.node, t.node));
|
|
1800
|
+
Zo.displayName = "MarkdownCode";
|
|
1801
|
+
var Xo = memo(oo, (e, t) => e.className === t.className && qe(e.node, t.node));
|
|
1802
|
+
Xo.displayName = "MarkdownImg";
|
|
1803
|
+
var Jo = memo(({ children: e, node: t, ...n }) => {
|
|
1805
1804
|
let r = (Array.isArray(e) ? e : [e]).filter((e) => e != null && e !== "");
|
|
1806
|
-
if (r.length === 1 &&
|
|
1805
|
+
if (r.length === 1 && isValidElement(r[0])) {
|
|
1807
1806
|
let t = r[0].props.node?.tagName;
|
|
1808
|
-
if (t === "img" || t === "code" && "data-block" in r[0].props) return
|
|
1807
|
+
if (t === "img" || t === "code" && "data-block" in r[0].props) return jsx(Fragment$1, { children: e });
|
|
1809
1808
|
}
|
|
1810
|
-
return
|
|
1809
|
+
return jsx("p", {
|
|
1811
1810
|
...n,
|
|
1812
1811
|
children: e
|
|
1813
1812
|
});
|
|
1814
|
-
}, (e, t) =>
|
|
1815
|
-
|
|
1816
|
-
var
|
|
1817
|
-
ol:
|
|
1818
|
-
li:
|
|
1819
|
-
ul:
|
|
1820
|
-
hr:
|
|
1821
|
-
strong:
|
|
1822
|
-
a:
|
|
1823
|
-
h1:
|
|
1824
|
-
h2:
|
|
1825
|
-
h3:
|
|
1826
|
-
h4:
|
|
1827
|
-
h5:
|
|
1828
|
-
h6:
|
|
1829
|
-
table:
|
|
1830
|
-
thead:
|
|
1831
|
-
tbody:
|
|
1832
|
-
tr:
|
|
1833
|
-
th:
|
|
1834
|
-
td:
|
|
1835
|
-
blockquote:
|
|
1836
|
-
code:
|
|
1837
|
-
img:
|
|
1838
|
-
pre: ({ children: e }) =>
|
|
1839
|
-
sup:
|
|
1840
|
-
sub:
|
|
1841
|
-
p:
|
|
1842
|
-
section:
|
|
1843
|
-
},
|
|
1844
|
-
function
|
|
1813
|
+
}, (e, t) => E(e, t));
|
|
1814
|
+
Jo.displayName = "MarkdownParagraph";
|
|
1815
|
+
var Ko = {
|
|
1816
|
+
ol: bt,
|
|
1817
|
+
li: Po,
|
|
1818
|
+
ul: Mo,
|
|
1819
|
+
hr: Io,
|
|
1820
|
+
strong: No,
|
|
1821
|
+
a: Lo,
|
|
1822
|
+
h1: Ro,
|
|
1823
|
+
h2: So,
|
|
1824
|
+
h3: Eo,
|
|
1825
|
+
h4: Ho,
|
|
1826
|
+
h5: Do,
|
|
1827
|
+
h6: Bo,
|
|
1828
|
+
table: Ao,
|
|
1829
|
+
thead: Oo,
|
|
1830
|
+
tbody: Vo,
|
|
1831
|
+
tr: jo,
|
|
1832
|
+
th: Fo,
|
|
1833
|
+
td: zo,
|
|
1834
|
+
blockquote: _o,
|
|
1835
|
+
code: Zo,
|
|
1836
|
+
img: Xo,
|
|
1837
|
+
pre: ({ children: e }) => isValidElement(e) ? cloneElement(e, { "data-block": "true" }) : e,
|
|
1838
|
+
sup: qo,
|
|
1839
|
+
sub: $o,
|
|
1840
|
+
p: Jo,
|
|
1841
|
+
section: Wo
|
|
1842
|
+
}, as = /[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/, is = /\p{L}/u;
|
|
1843
|
+
function $e$1(e) {
|
|
1845
1844
|
let t = e.replace(/^#{1,6}\s+/gm, "").replace(/(\*{1,3}|_{1,3})/g, "").replace(/`[^`]*`/g, "").replace(/\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/^[\s>*\-+\d.]+/gm, "");
|
|
1846
1845
|
for (let e of t) {
|
|
1847
|
-
if (
|
|
1848
|
-
if (
|
|
1846
|
+
if (as.test(e)) return "rtl";
|
|
1847
|
+
if (is.test(e)) return "ltr";
|
|
1849
1848
|
}
|
|
1850
1849
|
return "ltr";
|
|
1851
1850
|
}
|
|
1852
|
-
var
|
|
1851
|
+
var ls = /^[ \t]{0,3}(`{3,}|~{3,})/, cs = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/, ht = (e) => {
|
|
1853
1852
|
let t = e.split("\n"), n = null, r = 0;
|
|
1854
1853
|
for (let e of t) {
|
|
1855
|
-
let t =
|
|
1854
|
+
let t = ls.exec(e);
|
|
1856
1855
|
if (n === null) {
|
|
1857
1856
|
if (t) {
|
|
1858
1857
|
let e = t[1];
|
|
@@ -1864,21 +1863,21 @@ var It = /^[ \t]{0,3}(`{3,}|~{3,})/, Lt = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-
|
|
|
1864
1863
|
}
|
|
1865
1864
|
}
|
|
1866
1865
|
return n !== null;
|
|
1867
|
-
},
|
|
1866
|
+
}, Uo = (e) => {
|
|
1868
1867
|
let t = e.split("\n");
|
|
1869
1868
|
for (let e of t) {
|
|
1870
1869
|
let t = e.trim();
|
|
1871
|
-
if (t.length > 0 && t.includes("|") &&
|
|
1870
|
+
if (t.length > 0 && t.includes("|") && cs.test(t)) return !0;
|
|
1872
1871
|
}
|
|
1873
1872
|
return !1;
|
|
1874
|
-
},
|
|
1875
|
-
|
|
1873
|
+
}, Go = () => (e) => {
|
|
1874
|
+
visit(e, "html", (e, t, n) => {
|
|
1876
1875
|
!n || typeof t != "number" || (n.children[t] = {
|
|
1877
1876
|
type: "text",
|
|
1878
1877
|
value: e.value
|
|
1879
1878
|
});
|
|
1880
1879
|
});
|
|
1881
|
-
},
|
|
1880
|
+
}, Qo = [], en = { allowDangerousHtml: !0 }, We = /* @__PURE__ */ new WeakMap(), tn = new class {
|
|
1882
1881
|
constructor() {
|
|
1883
1882
|
this.cache = /* @__PURE__ */ new Map(), this.keyCache = /* @__PURE__ */ new WeakMap(), this.maxSize = 100;
|
|
1884
1883
|
}
|
|
@@ -1898,13 +1897,13 @@ var It = /^[ \t]{0,3}(`{3,}|~{3,})/, Lt = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-
|
|
|
1898
1897
|
if (n > 0 && (t += ","), Array.isArray(r)) {
|
|
1899
1898
|
let [e, n] = r;
|
|
1900
1899
|
if (typeof e == "function") {
|
|
1901
|
-
let n =
|
|
1902
|
-
n || (n = e.name,
|
|
1900
|
+
let n = We.get(e);
|
|
1901
|
+
n || (n = e.name, We.set(e, n)), t += n;
|
|
1903
1902
|
} else t += String(e);
|
|
1904
1903
|
t += ":", t += JSON.stringify(n);
|
|
1905
1904
|
} else if (typeof r == "function") {
|
|
1906
|
-
let e =
|
|
1907
|
-
e || (e = r.name,
|
|
1905
|
+
let e = We.get(r);
|
|
1906
|
+
e || (e = r.name, We.set(r, e)), t += e;
|
|
1908
1907
|
} else t += String(r);
|
|
1909
1908
|
}
|
|
1910
1909
|
return t;
|
|
@@ -1926,52 +1925,52 @@ var It = /^[ \t]{0,3}(`{3,}|~{3,})/, Lt = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-
|
|
|
1926
1925
|
clear() {
|
|
1927
1926
|
this.cache.clear();
|
|
1928
1927
|
}
|
|
1929
|
-
}(),
|
|
1930
|
-
let t =
|
|
1931
|
-
return
|
|
1932
|
-
},
|
|
1933
|
-
let t =
|
|
1928
|
+
}(), Ct = (e) => {
|
|
1929
|
+
let t = ws(e), n = e.children || "";
|
|
1930
|
+
return Ps(t.runSync(t.parse(n), n), e);
|
|
1931
|
+
}, ws = (e) => {
|
|
1932
|
+
let t = tn.get(e);
|
|
1934
1933
|
if (t) return t;
|
|
1935
|
-
let n =
|
|
1936
|
-
return
|
|
1937
|
-
},
|
|
1938
|
-
let t = e.rehypePlugins ||
|
|
1939
|
-
...
|
|
1934
|
+
let n = ks(e);
|
|
1935
|
+
return tn.set(e, n), n;
|
|
1936
|
+
}, Cs = (e) => e.some((e) => Array.isArray(e) ? e[0] === rehypeRaw : e === rehypeRaw), ks = (e) => {
|
|
1937
|
+
let t = e.rehypePlugins || Qo, n = e.remarkPlugins || Qo, r = Cs(t) ? n : [...n, Go], i = e.remarkRehypeOptions ? {
|
|
1938
|
+
...en,
|
|
1940
1939
|
...e.remarkRehypeOptions
|
|
1941
|
-
} :
|
|
1942
|
-
return
|
|
1943
|
-
},
|
|
1940
|
+
} : en;
|
|
1941
|
+
return unified().use(remarkParse).use(r).use(remarkRehype, i).use(t);
|
|
1942
|
+
}, on = (e) => e, vs = (e, t, n, r) => {
|
|
1944
1943
|
n ? e.children.splice(t, 1) : e.children[t] = {
|
|
1945
1944
|
type: "text",
|
|
1946
1945
|
value: r
|
|
1947
1946
|
};
|
|
1948
|
-
},
|
|
1949
|
-
for (let n in
|
|
1950
|
-
let r = e.properties[n], i =
|
|
1947
|
+
}, xs = (e, t) => {
|
|
1948
|
+
for (let n in urlAttributes) if (Object.hasOwn(urlAttributes, n) && Object.hasOwn(e.properties, n)) {
|
|
1949
|
+
let r = e.properties[n], i = urlAttributes[n];
|
|
1951
1950
|
(i === null || i.includes(e.tagName)) && (e.properties[n] = t(String(r || ""), n, e) ?? void 0);
|
|
1952
1951
|
}
|
|
1953
|
-
},
|
|
1952
|
+
}, Ts = (e, t, n, r, i, a) => {
|
|
1954
1953
|
let o = !1;
|
|
1955
1954
|
return r ? o = !r.includes(e.tagName) : i && (o = i.includes(e.tagName)), !o && a && typeof t == "number" && (o = !a(e, t, n)), o;
|
|
1956
|
-
},
|
|
1955
|
+
}, Ps = (e, t) => {
|
|
1957
1956
|
let { allowElement: r, allowedElements: i, disallowedElements: a, skipHtml: o, unwrapDisallowed: s, urlTransform: c } = t;
|
|
1958
1957
|
if (r || i || a || o || c) {
|
|
1959
|
-
let t = c ||
|
|
1960
|
-
|
|
1961
|
-
if (e.type === "raw" && c && typeof n == "number") return
|
|
1962
|
-
if (e.type === "element" && (
|
|
1958
|
+
let t = c || on;
|
|
1959
|
+
visit(e, (e, n, c) => {
|
|
1960
|
+
if (e.type === "raw" && c && typeof n == "number") return vs(c, n, o, e.value), n;
|
|
1961
|
+
if (e.type === "element" && (xs(e, t), Ts(e, n, c, i, a, r) && c && typeof n == "number")) return s && e.children ? c.children.splice(n, 1, ...e.children) : c.children.splice(n, 1), n;
|
|
1963
1962
|
});
|
|
1964
1963
|
}
|
|
1965
|
-
return
|
|
1966
|
-
Fragment:
|
|
1964
|
+
return toJsxRuntime(e, {
|
|
1965
|
+
Fragment: Fragment$1,
|
|
1967
1966
|
components: t.components,
|
|
1968
1967
|
ignoreInvalidStyle: !0,
|
|
1969
|
-
jsx
|
|
1970
|
-
jsxs
|
|
1968
|
+
jsx,
|
|
1969
|
+
jsxs,
|
|
1971
1970
|
passKeys: !0,
|
|
1972
1971
|
passNode: !0
|
|
1973
1972
|
});
|
|
1974
|
-
},
|
|
1973
|
+
}, Is = /\[\^[\w-]{1,200}\](?!:)/, Ns = /\[\^[\w-]{1,200}\]:/, Ls = /<(\w+)[\s>]/, Rs = new Set([
|
|
1975
1974
|
"area",
|
|
1976
1975
|
"base",
|
|
1977
1976
|
"br",
|
|
@@ -1986,53 +1985,53 @@ var It = /^[ \t]{0,3}(`{3,}|~{3,})/, Lt = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-
|
|
|
1986
1985
|
"source",
|
|
1987
1986
|
"track",
|
|
1988
1987
|
"wbr"
|
|
1989
|
-
]),
|
|
1990
|
-
let t = e.toLowerCase(), n =
|
|
1988
|
+
]), nn = /* @__PURE__ */ new Map(), rn = /* @__PURE__ */ new Map(), Ss = (e) => {
|
|
1989
|
+
let t = e.toLowerCase(), n = nn.get(t);
|
|
1991
1990
|
if (n) return n;
|
|
1992
1991
|
let r = RegExp(`<${t}(?=[\\s>/])[^>]*>`, "gi");
|
|
1993
|
-
return
|
|
1994
|
-
},
|
|
1995
|
-
let t = e.toLowerCase(), n =
|
|
1992
|
+
return nn.set(t, r), r;
|
|
1993
|
+
}, Es = (e) => {
|
|
1994
|
+
let t = e.toLowerCase(), n = rn.get(t);
|
|
1996
1995
|
if (n) return n;
|
|
1997
1996
|
let r = RegExp(`</${t}(?=[\\s>])[^>]*>`, "gi");
|
|
1998
|
-
return
|
|
1999
|
-
},
|
|
2000
|
-
if (
|
|
2001
|
-
let n = e.match(
|
|
1997
|
+
return rn.set(t, r), r;
|
|
1998
|
+
}, sn = (e, t) => {
|
|
1999
|
+
if (Rs.has(t.toLowerCase())) return 0;
|
|
2000
|
+
let n = e.match(Ss(t));
|
|
2002
2001
|
if (!n) return 0;
|
|
2003
2002
|
let r = 0;
|
|
2004
2003
|
for (let e of n) e.trimEnd().endsWith("/>") || (r += 1);
|
|
2005
2004
|
return r;
|
|
2006
|
-
},
|
|
2007
|
-
let n = e.match(
|
|
2005
|
+
}, an = (e, t) => {
|
|
2006
|
+
let n = e.match(Es(t));
|
|
2008
2007
|
return n ? n.length : 0;
|
|
2009
|
-
},
|
|
2008
|
+
}, Hs = (e) => {
|
|
2010
2009
|
let t = 0;
|
|
2011
2010
|
for (let n = 0; n < e.length - 1; n += 1) e[n] === "$" && e[n + 1] === "$" && (t += 1, n += 1);
|
|
2012
2011
|
return t;
|
|
2013
|
-
},
|
|
2014
|
-
let t =
|
|
2012
|
+
}, kt = (e) => {
|
|
2013
|
+
let t = Is.test(e), n = Ns.test(e);
|
|
2015
2014
|
if (t || n) return [e];
|
|
2016
|
-
let r =
|
|
2015
|
+
let r = x.lex(e, { gfm: !0 }), i = [], a = [], o = !1;
|
|
2017
2016
|
for (let e of r) {
|
|
2018
2017
|
let t = e.raw, n = i.length;
|
|
2019
2018
|
if (a.length > 0) {
|
|
2020
2019
|
i[n - 1] += t;
|
|
2021
|
-
let e = a.at(-1), r =
|
|
2020
|
+
let e = a.at(-1), r = sn(t, e), o = an(t, e);
|
|
2022
2021
|
for (let t = 0; t < r; t += 1) a.push(e);
|
|
2023
2022
|
for (let t = 0; t < o; t += 1) a.length > 0 && a.at(-1) === e && a.pop();
|
|
2024
2023
|
continue;
|
|
2025
2024
|
}
|
|
2026
2025
|
if (e.type === "html" && e.block) {
|
|
2027
|
-
let e = t.match(
|
|
2026
|
+
let e = t.match(Ls);
|
|
2028
2027
|
if (e) {
|
|
2029
2028
|
let n = e[1];
|
|
2030
|
-
|
|
2029
|
+
sn(t, n) > an(t, n) && a.push(n);
|
|
2031
2030
|
}
|
|
2032
2031
|
}
|
|
2033
2032
|
if (n > 0 && !o) {
|
|
2034
2033
|
let e = i[n - 1];
|
|
2035
|
-
if (
|
|
2034
|
+
if (Hs(e) % 2 == 1) {
|
|
2036
2035
|
i[n - 1] = e + t;
|
|
2037
2036
|
continue;
|
|
2038
2037
|
}
|
|
@@ -2040,7 +2039,7 @@ var It = /^[ \t]{0,3}(`{3,}|~{3,})/, Lt = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-
|
|
|
2040
2039
|
i.push(t), e.type !== "space" && (o = e.type === "code");
|
|
2041
2040
|
}
|
|
2042
2041
|
return i;
|
|
2043
|
-
},
|
|
2042
|
+
}, ln = (e, t) => {
|
|
2044
2043
|
if (!t.length) return e;
|
|
2045
2044
|
let n = e;
|
|
2046
2045
|
for (let e of t) {
|
|
@@ -2054,79 +2053,79 @@ var It = /^[ \t]{0,3}(`{3,}|~{3,})/, Lt = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-
|
|
|
2054
2053
|
});
|
|
2055
2054
|
}
|
|
2056
2055
|
return n;
|
|
2057
|
-
},
|
|
2056
|
+
}, Ds = /([\\`*_~[\]|])/g, Bs = (e) => e.replace(Ds, "\\$1"), cn = (e, t) => {
|
|
2058
2057
|
if (!t.length) return e;
|
|
2059
2058
|
let n = e;
|
|
2060
2059
|
for (let e of t) {
|
|
2061
2060
|
let t = RegExp(`(<${e}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${e}\\s*>)`, "gi");
|
|
2062
|
-
n = n.replace(t, (e, t, n, r) => t +
|
|
2061
|
+
n = n.replace(t, (e, t, n, r) => t + Bs(n).replace(/\n\n/g, " ") + r);
|
|
2063
2062
|
}
|
|
2064
2063
|
return n;
|
|
2065
|
-
},
|
|
2064
|
+
}, dn = (e) => e.type === "text" ? e.value : "children" in e && Array.isArray(e.children) ? e.children.map(dn).join("") : "", mn = (e) => (t) => {
|
|
2066
2065
|
if (!e || e.length === 0) return;
|
|
2067
2066
|
let r = new Set(e.map((e) => e.toLowerCase()));
|
|
2068
|
-
|
|
2067
|
+
visit(t, "element", (e) => {
|
|
2069
2068
|
if (r.has(e.tagName.toLowerCase())) {
|
|
2070
|
-
let t =
|
|
2069
|
+
let t = dn(e);
|
|
2071
2070
|
e.children = t ? [{
|
|
2072
2071
|
type: "text",
|
|
2073
2072
|
value: t
|
|
2074
2073
|
}] : [];
|
|
2075
2074
|
}
|
|
2076
2075
|
});
|
|
2077
|
-
},
|
|
2078
|
-
|
|
2076
|
+
}, un = () => (e) => {
|
|
2077
|
+
visit(e, "code", (e) => {
|
|
2079
2078
|
e.meta && (e.data = e.data ?? {}, e.data.hProperties = {
|
|
2080
2079
|
...e.data.hProperties ?? {},
|
|
2081
2080
|
metastring: e.meta
|
|
2082
2081
|
});
|
|
2083
2082
|
});
|
|
2084
|
-
},
|
|
2085
|
-
...
|
|
2083
|
+
}, Zs = /^[ \t]*<[\w!/?-]/, Xs = /(^|\n)[ \t]{4,}(?=<[\w!/?-])/g, Js = (e) => typeof e != "string" || e.length === 0 || !Zs.test(e) ? e : e.replace(Xs, "$1"), Ze = {
|
|
2084
|
+
...defaultSchema,
|
|
2086
2085
|
protocols: {
|
|
2087
|
-
...
|
|
2088
|
-
href: [...
|
|
2086
|
+
...defaultSchema.protocols,
|
|
2087
|
+
href: [...defaultSchema.protocols?.href ?? [], "tel"]
|
|
2089
2088
|
},
|
|
2090
2089
|
attributes: {
|
|
2091
|
-
...
|
|
2092
|
-
code: [...
|
|
2090
|
+
...defaultSchema.attributes,
|
|
2091
|
+
code: [...defaultSchema.attributes?.code ?? [], "metastring"]
|
|
2093
2092
|
}
|
|
2094
|
-
},
|
|
2095
|
-
raw:
|
|
2096
|
-
sanitize: [
|
|
2097
|
-
harden: [
|
|
2093
|
+
}, xt = {
|
|
2094
|
+
raw: rehypeRaw,
|
|
2095
|
+
sanitize: [rehypeSanitize, Ze],
|
|
2096
|
+
harden: [harden, {
|
|
2098
2097
|
allowedImagePrefixes: ["*"],
|
|
2099
2098
|
allowedLinkPrefixes: ["*"],
|
|
2100
2099
|
allowedProtocols: ["*"],
|
|
2101
2100
|
defaultOrigin: void 0,
|
|
2102
2101
|
allowDataImages: !0
|
|
2103
2102
|
}]
|
|
2104
|
-
},
|
|
2105
|
-
gfm: [
|
|
2106
|
-
codeMeta:
|
|
2107
|
-
},
|
|
2103
|
+
}, Ks = {
|
|
2104
|
+
gfm: [remarkGfm, {}],
|
|
2105
|
+
codeMeta: un
|
|
2106
|
+
}, gn = Object.values(xt), Us = Object.values(Ks), Gs = {
|
|
2108
2107
|
block: " ▋",
|
|
2109
2108
|
circle: " ●"
|
|
2110
|
-
},
|
|
2111
|
-
shikiTheme:
|
|
2109
|
+
}, vn = ["github-light", "github-dark"], xn = { enabled: !0 }, R = createContext({
|
|
2110
|
+
shikiTheme: vn,
|
|
2112
2111
|
controls: !0,
|
|
2113
2112
|
isAnimating: !1,
|
|
2114
2113
|
lineNumbers: !0,
|
|
2115
2114
|
mode: "streaming",
|
|
2116
2115
|
mermaid: void 0,
|
|
2117
|
-
linkSafety:
|
|
2118
|
-
}),
|
|
2116
|
+
linkSafety: xn
|
|
2117
|
+
}), Tn = memo(({ content: e, shouldParseIncompleteMarkdown: t, shouldNormalizeHtmlIndentation: n, index: r, isIncomplete: i, dir: a, animatePlugin: o, ...s }) => {
|
|
2119
2118
|
if (o) {
|
|
2120
2119
|
let e = o.getLastRenderCharCount();
|
|
2121
2120
|
o.setPrevContentLength(e);
|
|
2122
2121
|
}
|
|
2123
|
-
let c = typeof e == "string" && n ?
|
|
2122
|
+
let c = typeof e == "string" && n ? Js(e) : e, l = jsx(Ct, {
|
|
2124
2123
|
...s,
|
|
2125
2124
|
children: c
|
|
2126
2125
|
});
|
|
2127
|
-
return
|
|
2126
|
+
return jsx(et.Provider, {
|
|
2128
2127
|
value: i,
|
|
2129
|
-
children: a ?
|
|
2128
|
+
children: a ? jsx("div", {
|
|
2130
2129
|
dir: a,
|
|
2131
2130
|
style: { display: "contents" },
|
|
2132
2131
|
children: l
|
|
@@ -2140,160 +2139,160 @@ var It = /^[ \t]{0,3}(`{3,}|~{3,})/, Lt = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-
|
|
|
2140
2139
|
}
|
|
2141
2140
|
return !(e.rehypePlugins !== t.rehypePlugins || e.remarkPlugins !== t.remarkPlugins);
|
|
2142
2141
|
});
|
|
2143
|
-
|
|
2144
|
-
var
|
|
2145
|
-
let
|
|
2146
|
-
|
|
2142
|
+
Tn.displayName = "Block";
|
|
2143
|
+
var Qs = memo(({ children: e, mode: t = "streaming", dir: n, parseIncompleteMarkdown: r = !0, normalizeHtmlIndentation: i = !1, components: a, rehypePlugins: o = gn, remarkPlugins: l = Us, className: u, shikiTheme: d = vn, mermaid: f, controls: p = !0, isAnimating: m = !1, animated: h, BlockComponent: g = Tn, parseMarkdownIntoBlocksFn: _ = kt, caret: b, plugins: S, remend: C, linkSafety: w = xn, lineNumbers: T = !0, allowedTags: k, literalTagContent: A, translations: j, icons: M, prefix: N, onAnimationStart: P, onAnimationEnd: F, ...I }) => {
|
|
2144
|
+
let z = useId(), [ci, li] = useTransition(), B = useMemo(() => Dt(N), [N]), V = useRef(null), H = useRef(P), U = useRef(F);
|
|
2145
|
+
H.current = P, U.current = F, useEffect(() => {
|
|
2147
2146
|
var e, n, r;
|
|
2148
2147
|
if (t === "static") return;
|
|
2149
|
-
let i =
|
|
2150
|
-
if (
|
|
2151
|
-
m && ((e =
|
|
2148
|
+
let i = V.current;
|
|
2149
|
+
if (V.current = m, i === null) {
|
|
2150
|
+
m && ((e = H.current) == null || e.call(H));
|
|
2152
2151
|
return;
|
|
2153
2152
|
}
|
|
2154
|
-
m && !i ? (n =
|
|
2153
|
+
m && !i ? (n = H.current) == null || n.call(H) : !m && i && ((r = U.current) == null || r.call(U));
|
|
2155
2154
|
}, [m, t]);
|
|
2156
|
-
let
|
|
2155
|
+
let G = useMemo(() => k ? Object.keys(k) : [], [k]), K = useMemo(() => {
|
|
2157
2156
|
if (typeof e != "string") return "";
|
|
2158
|
-
let n = t === "streaming" && r ?
|
|
2159
|
-
return
|
|
2157
|
+
let n = t === "streaming" && r ? $e(e, C) : e;
|
|
2158
|
+
return A && A.length > 0 && (n = cn(n, A)), G.length > 0 && (n = ln(n, G)), n;
|
|
2160
2159
|
}, [
|
|
2161
2160
|
e,
|
|
2162
2161
|
t,
|
|
2163
2162
|
r,
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
]),
|
|
2168
|
-
|
|
2169
|
-
t === "streaming" && !
|
|
2170
|
-
|
|
2171
|
-
}) :
|
|
2172
|
-
}, [
|
|
2173
|
-
let
|
|
2174
|
-
shikiTheme: (
|
|
2163
|
+
C,
|
|
2164
|
+
G,
|
|
2165
|
+
A
|
|
2166
|
+
]), q = useMemo(() => _(K), [K, _]), [ui, J] = useState(q);
|
|
2167
|
+
useEffect(() => {
|
|
2168
|
+
t === "streaming" && !Z ? li(() => {
|
|
2169
|
+
J(q);
|
|
2170
|
+
}) : J(q);
|
|
2171
|
+
}, [q, t]);
|
|
2172
|
+
let Y = t === "streaming" ? ui : q, di = useMemo(() => n === "auto" ? Y.map($e$1) : void 0, [Y, n]), fi = useMemo(() => Y.map((e, t) => `${z}-${t}`), [Y.length, z]), X = useMemo(() => h === !0 ? "true" : h ? JSON.stringify(h) : "", [h]), Z = useMemo(() => X ? X === "true" ? be() : be(h) : null, [X]), Q = useMemo(() => ({
|
|
2173
|
+
shikiTheme: (S?.code)?.getThemes() ?? d,
|
|
2175
2174
|
controls: p,
|
|
2176
2175
|
isAnimating: m,
|
|
2177
|
-
lineNumbers:
|
|
2176
|
+
lineNumbers: T,
|
|
2178
2177
|
mode: t,
|
|
2179
2178
|
mermaid: f,
|
|
2180
|
-
linkSafety:
|
|
2179
|
+
linkSafety: w
|
|
2181
2180
|
}), [
|
|
2182
2181
|
d,
|
|
2183
2182
|
p,
|
|
2184
2183
|
m,
|
|
2185
|
-
|
|
2184
|
+
T,
|
|
2186
2185
|
t,
|
|
2187
2186
|
f,
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
]),
|
|
2191
|
-
...
|
|
2192
|
-
...
|
|
2193
|
-
}), [
|
|
2187
|
+
w,
|
|
2188
|
+
S?.code
|
|
2189
|
+
]), pi = useMemo(() => ({
|
|
2190
|
+
...De,
|
|
2191
|
+
...j
|
|
2192
|
+
}), [useMemo(() => j ? JSON.stringify(j) : "", [j])]), mi = useMemo(() => {
|
|
2194
2193
|
let { inlineCode: e, ...t } = a ?? {}, n = {
|
|
2195
|
-
...
|
|
2194
|
+
...Ko,
|
|
2196
2195
|
...t
|
|
2197
2196
|
};
|
|
2198
2197
|
if (e) {
|
|
2199
2198
|
let t = n.code;
|
|
2200
|
-
n.code = (n) => "data-block" in n ? t ?
|
|
2199
|
+
n.code = (n) => "data-block" in n ? t ? createElement(t, n) : null : createElement(e, n);
|
|
2201
2200
|
}
|
|
2202
2201
|
return n;
|
|
2203
|
-
}, [a]),
|
|
2202
|
+
}, [a]), hi = useMemo(() => {
|
|
2204
2203
|
let e = [];
|
|
2205
|
-
return
|
|
2204
|
+
return S != null && S.cjk && (e = [...e, ...S.cjk.remarkPluginsBefore]), e = [...e, ...l], S != null && S.cjk && (e = [...e, ...S.cjk.remarkPluginsAfter]), S != null && S.math && (e = [...e, S.math.remarkPlugin]), e;
|
|
2206
2205
|
}, [
|
|
2207
2206
|
l,
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
]),
|
|
2207
|
+
S?.math,
|
|
2208
|
+
S?.cjk
|
|
2209
|
+
]), gi = useMemo(() => {
|
|
2211
2210
|
let e = o;
|
|
2212
|
-
if (
|
|
2211
|
+
if (k && Object.keys(k).length > 0 && o === gn) {
|
|
2213
2212
|
let t = {
|
|
2214
|
-
...
|
|
2215
|
-
tagNames: [...
|
|
2213
|
+
...Ze,
|
|
2214
|
+
tagNames: [...Ze.tagNames ?? [], ...Object.keys(k)],
|
|
2216
2215
|
attributes: {
|
|
2217
|
-
...
|
|
2218
|
-
...
|
|
2216
|
+
...Ze.attributes,
|
|
2217
|
+
...k
|
|
2219
2218
|
}
|
|
2220
2219
|
};
|
|
2221
2220
|
e = [
|
|
2222
|
-
|
|
2223
|
-
[
|
|
2224
|
-
|
|
2221
|
+
xt.raw,
|
|
2222
|
+
[rehypeSanitize, t],
|
|
2223
|
+
xt.harden
|
|
2225
2224
|
];
|
|
2226
2225
|
}
|
|
2227
|
-
return
|
|
2226
|
+
return A && A.length > 0 && (e = [...e, [mn, A]]), S != null && S.math && (e = [...e, S.math.rehypePlugin]), Z && m && (e = [...e, Z.rehypePlugin]), e;
|
|
2228
2227
|
}, [
|
|
2229
2228
|
o,
|
|
2230
|
-
|
|
2231
|
-
|
|
2229
|
+
S?.math,
|
|
2230
|
+
Z,
|
|
2232
2231
|
m,
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
]),
|
|
2236
|
-
if (!m ||
|
|
2237
|
-
let e =
|
|
2238
|
-
return
|
|
2239
|
-
}, [m,
|
|
2240
|
-
|
|
2232
|
+
k,
|
|
2233
|
+
A
|
|
2234
|
+
]), $ = useMemo(() => {
|
|
2235
|
+
if (!m || Y.length === 0) return !1;
|
|
2236
|
+
let e = Y.at(-1);
|
|
2237
|
+
return ht(e) || Uo(e);
|
|
2238
|
+
}, [m, Y]), _i = useMemo(() => b && m && !$ ? { "--streamdown-caret": `"${Gs[b]}"` } : void 0, [
|
|
2239
|
+
b,
|
|
2241
2240
|
m,
|
|
2242
|
-
|
|
2241
|
+
$
|
|
2243
2242
|
]);
|
|
2244
|
-
return t === "static" ?
|
|
2245
|
-
value:
|
|
2246
|
-
children:
|
|
2247
|
-
value:
|
|
2248
|
-
children:
|
|
2249
|
-
value:
|
|
2250
|
-
children:
|
|
2251
|
-
icons:
|
|
2252
|
-
children:
|
|
2253
|
-
value:
|
|
2254
|
-
children:
|
|
2255
|
-
className:
|
|
2256
|
-
dir: n === "auto" ?
|
|
2257
|
-
children:
|
|
2258
|
-
components:
|
|
2259
|
-
rehypePlugins:
|
|
2260
|
-
remarkPlugins:
|
|
2261
|
-
...
|
|
2262
|
-
children:
|
|
2243
|
+
return t === "static" ? jsx(Be.Provider, {
|
|
2244
|
+
value: pi,
|
|
2245
|
+
children: jsx(Ve.Provider, {
|
|
2246
|
+
value: S ?? null,
|
|
2247
|
+
children: jsx(R.Provider, {
|
|
2248
|
+
value: Q,
|
|
2249
|
+
children: jsx(at, {
|
|
2250
|
+
icons: M,
|
|
2251
|
+
children: jsx(Ee.Provider, {
|
|
2252
|
+
value: B,
|
|
2253
|
+
children: jsx("div", {
|
|
2254
|
+
className: B("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0", u),
|
|
2255
|
+
dir: n === "auto" ? $e$1(K) : n,
|
|
2256
|
+
children: jsx(Ct, {
|
|
2257
|
+
components: mi,
|
|
2258
|
+
rehypePlugins: gi,
|
|
2259
|
+
remarkPlugins: hi,
|
|
2260
|
+
...I,
|
|
2261
|
+
children: K
|
|
2263
2262
|
})
|
|
2264
2263
|
})
|
|
2265
2264
|
})
|
|
2266
2265
|
})
|
|
2267
2266
|
})
|
|
2268
2267
|
})
|
|
2269
|
-
}) :
|
|
2270
|
-
value:
|
|
2271
|
-
children:
|
|
2272
|
-
value:
|
|
2273
|
-
children:
|
|
2274
|
-
value:
|
|
2275
|
-
children:
|
|
2276
|
-
icons:
|
|
2277
|
-
children:
|
|
2278
|
-
value:
|
|
2279
|
-
children:
|
|
2280
|
-
className:
|
|
2281
|
-
style:
|
|
2282
|
-
children: [
|
|
2283
|
-
let a = t ===
|
|
2284
|
-
return
|
|
2285
|
-
animatePlugin:
|
|
2286
|
-
components:
|
|
2268
|
+
}) : jsx(Be.Provider, {
|
|
2269
|
+
value: pi,
|
|
2270
|
+
children: jsx(Ve.Provider, {
|
|
2271
|
+
value: S ?? null,
|
|
2272
|
+
children: jsx(R.Provider, {
|
|
2273
|
+
value: Q,
|
|
2274
|
+
children: jsx(at, {
|
|
2275
|
+
icons: M,
|
|
2276
|
+
children: jsx(Ee.Provider, {
|
|
2277
|
+
value: B,
|
|
2278
|
+
children: jsxs("div", {
|
|
2279
|
+
className: B("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0", b && !$ ? "[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]" : null, u),
|
|
2280
|
+
style: _i,
|
|
2281
|
+
children: [Y.length === 0 && b && m && jsx("span", {}), Y.map((e, t) => {
|
|
2282
|
+
let a = t === Y.length - 1, o = m && a && ht(e);
|
|
2283
|
+
return jsx(g, {
|
|
2284
|
+
animatePlugin: Z,
|
|
2285
|
+
components: mi,
|
|
2287
2286
|
content: e,
|
|
2288
|
-
dir:
|
|
2287
|
+
dir: di?.[t] ?? (n === "auto" ? void 0 : n),
|
|
2289
2288
|
index: t,
|
|
2290
2289
|
isIncomplete: o,
|
|
2291
|
-
rehypePlugins:
|
|
2292
|
-
remarkPlugins:
|
|
2290
|
+
rehypePlugins: gi,
|
|
2291
|
+
remarkPlugins: hi,
|
|
2293
2292
|
shouldNormalizeHtmlIndentation: i,
|
|
2294
2293
|
shouldParseIncompleteMarkdown: r,
|
|
2295
|
-
...
|
|
2296
|
-
},
|
|
2294
|
+
...I
|
|
2295
|
+
}, fi[t]);
|
|
2297
2296
|
})]
|
|
2298
2297
|
})
|
|
2299
2298
|
})
|
|
@@ -2302,103 +2301,103 @@ var Mn = x(({ children: e, mode: t = "streaming", dir: n, parseIncompleteMarkdow
|
|
|
2302
2301
|
})
|
|
2303
2302
|
});
|
|
2304
2303
|
}, (e, t) => e.children === t.children && e.shikiTheme === t.shikiTheme && e.isAnimating === t.isAnimating && e.animated === t.animated && e.mode === t.mode && e.plugins === t.plugins && e.className === t.className && e.linkSafety === t.linkSafety && e.lineNumbers === t.lineNumbers && e.normalizeHtmlIndentation === t.normalizeHtmlIndentation && e.literalTagContent === t.literalTagContent && JSON.stringify(e.translations) === JSON.stringify(t.translations) && e.prefix === t.prefix && e.dir === t.dir);
|
|
2305
|
-
|
|
2304
|
+
Qs.displayName = "Streamdown";
|
|
2306
2305
|
var Nn = ({ children: e, className: t, minZoom: n = .5, maxZoom: r = 3, zoomStep: i = .1, showControls: a = !0, initialZoom: o = 1, fullscreen: s = !1 }) => {
|
|
2307
|
-
let { RotateCcwIcon: c, ZoomInIcon: l, ZoomOutIcon: u } =
|
|
2306
|
+
let { RotateCcwIcon: c, ZoomInIcon: l, ZoomOutIcon: u } = L(), d = y(), f = useRef(null), p = useRef(null), [m, h] = useState(o), [g, _] = useState({
|
|
2308
2307
|
x: 0,
|
|
2309
2308
|
y: 0
|
|
2310
|
-
}), [v,
|
|
2309
|
+
}), [v, b] = useState(!1), [S, C] = useState({
|
|
2311
2310
|
x: 0,
|
|
2312
2311
|
y: 0
|
|
2313
|
-
}), [
|
|
2312
|
+
}), [T, oi] = useState({
|
|
2314
2313
|
x: 0,
|
|
2315
2314
|
y: 0
|
|
2316
|
-
}),
|
|
2315
|
+
}), O = useCallback((e) => {
|
|
2317
2316
|
h((t) => Math.max(n, Math.min(r, t + e)));
|
|
2318
|
-
}, [n, r]),
|
|
2319
|
-
|
|
2320
|
-
}, [
|
|
2321
|
-
|
|
2322
|
-
}, [
|
|
2317
|
+
}, [n, r]), si = useCallback(() => {
|
|
2318
|
+
O(i);
|
|
2319
|
+
}, [O, i]), k = useCallback(() => {
|
|
2320
|
+
O(-i);
|
|
2321
|
+
}, [O, i]), A = useCallback(() => {
|
|
2323
2322
|
h(o), _({
|
|
2324
2323
|
x: 0,
|
|
2325
2324
|
y: 0
|
|
2326
2325
|
});
|
|
2327
|
-
}, [o]),
|
|
2328
|
-
e.preventDefault(),
|
|
2329
|
-
}, [
|
|
2326
|
+
}, [o]), j = useCallback((e) => {
|
|
2327
|
+
e.preventDefault(), O(e.deltaY > 0 ? -i : i);
|
|
2328
|
+
}, [O, i]), M = useCallback((e) => {
|
|
2330
2329
|
if (e.button !== 0 || e.isPrimary === !1) return;
|
|
2331
|
-
|
|
2330
|
+
b(!0), C({
|
|
2332
2331
|
x: e.clientX,
|
|
2333
2332
|
y: e.clientY
|
|
2334
|
-
}),
|
|
2333
|
+
}), oi(g);
|
|
2335
2334
|
let t = e.currentTarget;
|
|
2336
2335
|
t instanceof HTMLElement && t.setPointerCapture(e.pointerId);
|
|
2337
|
-
}, [g]),
|
|
2336
|
+
}, [g]), N = useCallback((e) => {
|
|
2338
2337
|
if (!v) return;
|
|
2339
2338
|
e.preventDefault();
|
|
2340
|
-
let t = e.clientX -
|
|
2339
|
+
let t = e.clientX - S.x, n = e.clientY - S.y;
|
|
2341
2340
|
_({
|
|
2342
|
-
x:
|
|
2343
|
-
y:
|
|
2341
|
+
x: T.x + t,
|
|
2342
|
+
y: T.y + n
|
|
2344
2343
|
});
|
|
2345
2344
|
}, [
|
|
2346
2345
|
v,
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
]),
|
|
2350
|
-
|
|
2346
|
+
S,
|
|
2347
|
+
T
|
|
2348
|
+
]), P = useCallback((e) => {
|
|
2349
|
+
b(!1);
|
|
2351
2350
|
let t = e.currentTarget;
|
|
2352
2351
|
t instanceof HTMLElement && t.releasePointerCapture(e.pointerId);
|
|
2353
2352
|
}, []);
|
|
2354
|
-
return
|
|
2353
|
+
return useEffect(() => {
|
|
2355
2354
|
let e = f.current;
|
|
2356
|
-
if (e) return e.addEventListener("wheel",
|
|
2357
|
-
e.removeEventListener("wheel",
|
|
2355
|
+
if (e) return e.addEventListener("wheel", j, { passive: !1 }), () => {
|
|
2356
|
+
e.removeEventListener("wheel", j);
|
|
2358
2357
|
};
|
|
2359
|
-
}, [
|
|
2358
|
+
}, [j]), useEffect(() => {
|
|
2360
2359
|
let e = p.current;
|
|
2361
|
-
if (e && v) return document.body.style.userSelect = "none", e.addEventListener("pointermove",
|
|
2362
|
-
document.body.style.userSelect = "", e.removeEventListener("pointermove",
|
|
2360
|
+
if (e && v) return document.body.style.userSelect = "none", e.addEventListener("pointermove", N, { passive: !1 }), e.addEventListener("pointerup", P), e.addEventListener("pointercancel", P), () => {
|
|
2361
|
+
document.body.style.userSelect = "", e.removeEventListener("pointermove", N), e.removeEventListener("pointerup", P), e.removeEventListener("pointercancel", P);
|
|
2363
2362
|
};
|
|
2364
2363
|
}, [
|
|
2365
2364
|
v,
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
]),
|
|
2365
|
+
N,
|
|
2366
|
+
P
|
|
2367
|
+
]), jsxs("div", {
|
|
2369
2368
|
className: d("relative flex flex-col", s ? "h-full w-full" : "min-h-28 w-full", t),
|
|
2370
2369
|
ref: f,
|
|
2371
2370
|
style: { cursor: v ? "grabbing" : "grab" },
|
|
2372
|
-
children: [a ?
|
|
2371
|
+
children: [a ? jsxs("div", {
|
|
2373
2372
|
className: d("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm", s ? "bottom-4 left-4" : "bottom-2 left-2"),
|
|
2374
2373
|
children: [
|
|
2375
|
-
|
|
2374
|
+
jsx("button", {
|
|
2376
2375
|
className: d("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),
|
|
2377
2376
|
disabled: m >= r,
|
|
2378
|
-
onClick:
|
|
2377
|
+
onClick: si,
|
|
2379
2378
|
title: "Zoom in",
|
|
2380
2379
|
type: "button",
|
|
2381
|
-
children:
|
|
2380
|
+
children: jsx(l, { size: 16 })
|
|
2382
2381
|
}),
|
|
2383
|
-
|
|
2382
|
+
jsx("button", {
|
|
2384
2383
|
className: d("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),
|
|
2385
2384
|
disabled: m <= n,
|
|
2386
|
-
onClick:
|
|
2385
|
+
onClick: k,
|
|
2387
2386
|
title: "Zoom out",
|
|
2388
2387
|
type: "button",
|
|
2389
|
-
children:
|
|
2388
|
+
children: jsx(u, { size: 16 })
|
|
2390
2389
|
}),
|
|
2391
|
-
|
|
2390
|
+
jsx("button", {
|
|
2392
2391
|
className: d("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),
|
|
2393
|
-
onClick:
|
|
2392
|
+
onClick: A,
|
|
2394
2393
|
title: "Reset zoom and pan",
|
|
2395
2394
|
type: "button",
|
|
2396
|
-
children:
|
|
2395
|
+
children: jsx(c, { size: 16 })
|
|
2397
2396
|
})
|
|
2398
2397
|
]
|
|
2399
|
-
}) : null,
|
|
2398
|
+
}) : null, jsx("div", {
|
|
2400
2399
|
className: d("flex-1 origin-center transition-transform duration-150 ease-out", s ? "flex h-full w-full items-center justify-center" : "flex w-full items-center justify-center"),
|
|
2401
|
-
onPointerDown:
|
|
2400
|
+
onPointerDown: M,
|
|
2402
2401
|
ref: p,
|
|
2403
2402
|
role: "application",
|
|
2404
2403
|
style: {
|
|
@@ -2410,10 +2409,10 @@ var Nn = ({ children: e, className: t, minZoom: n = .5, maxZoom: r = 3, zoomStep
|
|
|
2410
2409
|
children: e
|
|
2411
2410
|
})]
|
|
2412
2411
|
});
|
|
2413
|
-
},
|
|
2414
|
-
let a =
|
|
2415
|
-
if (
|
|
2416
|
-
if (
|
|
2412
|
+
}, po = ({ chart: e, className: t, config: n, fullscreen: r = !1, showControls: i = !0 }) => {
|
|
2413
|
+
let a = y(), [o, s] = useState(null), [c, l] = useState(!1), [u, d] = useState(""), [f, p] = useState(""), [m, h] = useState(0), { mermaid: g } = useContext(R), _ = de(), v = g?.errorComponent, { shouldRender: b, containerRef: S } = Rt({ immediate: r });
|
|
2414
|
+
if (useEffect(() => {
|
|
2415
|
+
if (b) {
|
|
2417
2416
|
if (!_) {
|
|
2418
2417
|
s("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");
|
|
2419
2418
|
return;
|
|
@@ -2434,67 +2433,66 @@ var Nn = ({ children: e, className: t, minZoom: n = .5, maxZoom: r = 3, zoomStep
|
|
|
2434
2433
|
e,
|
|
2435
2434
|
n,
|
|
2436
2435
|
m,
|
|
2437
|
-
|
|
2436
|
+
b,
|
|
2438
2437
|
_
|
|
2439
|
-
]), !(
|
|
2438
|
+
]), !(b || u || f)) return jsx("div", {
|
|
2440
2439
|
className: a("my-4 min-h-[200px]", t),
|
|
2441
|
-
ref:
|
|
2440
|
+
ref: S
|
|
2442
2441
|
});
|
|
2443
|
-
if (c && !u && !f) return
|
|
2442
|
+
if (c && !u && !f) return jsx("div", {
|
|
2444
2443
|
className: a("my-4 flex justify-center p-4", t),
|
|
2445
|
-
ref:
|
|
2446
|
-
children:
|
|
2444
|
+
ref: S,
|
|
2445
|
+
children: jsxs("div", {
|
|
2447
2446
|
className: a("flex items-center space-x-2 text-muted-foreground"),
|
|
2448
|
-
children: [
|
|
2447
|
+
children: [jsx("div", { className: a("h-4 w-4 animate-spin rounded-full border-current border-b-2") }), jsx("span", {
|
|
2449
2448
|
className: a("text-sm"),
|
|
2450
2449
|
children: "Loading diagram..."
|
|
2451
2450
|
})]
|
|
2452
2451
|
})
|
|
2453
2452
|
});
|
|
2454
|
-
if (o && !u && !f) return v ?
|
|
2455
|
-
ref:
|
|
2456
|
-
children:
|
|
2453
|
+
if (o && !u && !f) return v ? jsx("div", {
|
|
2454
|
+
ref: S,
|
|
2455
|
+
children: jsx(v, {
|
|
2457
2456
|
chart: e,
|
|
2458
2457
|
error: o,
|
|
2459
2458
|
retry: () => h((e) => e + 1)
|
|
2460
2459
|
})
|
|
2461
|
-
}) :
|
|
2460
|
+
}) : jsxs("div", {
|
|
2462
2461
|
className: a("rounded-md bg-red-50 p-4", t),
|
|
2463
|
-
ref:
|
|
2464
|
-
children: [
|
|
2462
|
+
ref: S,
|
|
2463
|
+
children: [jsxs("p", {
|
|
2465
2464
|
className: a("font-mono text-red-700 text-sm"),
|
|
2466
2465
|
children: ["Mermaid Error: ", o]
|
|
2467
|
-
}),
|
|
2466
|
+
}), jsxs("details", {
|
|
2468
2467
|
className: a("mt-2"),
|
|
2469
|
-
children: [
|
|
2468
|
+
children: [jsx("summary", {
|
|
2470
2469
|
className: a("cursor-pointer text-red-600 text-xs"),
|
|
2471
2470
|
children: "Show Code"
|
|
2472
|
-
}),
|
|
2471
|
+
}), jsx("pre", {
|
|
2473
2472
|
className: a("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),
|
|
2474
2473
|
children: e
|
|
2475
2474
|
})]
|
|
2476
2475
|
})]
|
|
2477
2476
|
});
|
|
2478
|
-
let
|
|
2479
|
-
return
|
|
2477
|
+
let C = u || f;
|
|
2478
|
+
return jsx("div", {
|
|
2480
2479
|
className: a("size-full", t),
|
|
2481
2480
|
"data-streamdown": "mermaid",
|
|
2482
|
-
ref:
|
|
2483
|
-
children:
|
|
2481
|
+
ref: S,
|
|
2482
|
+
children: jsx(Nn, {
|
|
2484
2483
|
className: a(r ? "size-full overflow-hidden" : "overflow-hidden", t),
|
|
2485
2484
|
fullscreen: r,
|
|
2486
2485
|
maxZoom: 3,
|
|
2487
2486
|
minZoom: .5,
|
|
2488
2487
|
showControls: i,
|
|
2489
2488
|
zoomStep: .1,
|
|
2490
|
-
children:
|
|
2489
|
+
children: jsx("div", {
|
|
2491
2490
|
"aria-label": "Mermaid chart",
|
|
2492
2491
|
className: a("flex justify-center", r ? "size-full items-center" : null),
|
|
2493
|
-
dangerouslySetInnerHTML: { __html:
|
|
2492
|
+
dangerouslySetInnerHTML: { __html: C },
|
|
2494
2493
|
role: "img"
|
|
2495
2494
|
})
|
|
2496
2495
|
})
|
|
2497
2496
|
});
|
|
2498
2497
|
};
|
|
2499
|
-
|
|
2500
|
-
export { Ft as $e, Ee as Ae, G as At, we as De, Sn as Js, Tn as Ks, Le as Li, ke as Oe, Ye as Pe, Mn as Qs, $ as R, Je as Te, jn as Tn, le as be, Ge as dt, Oe as it, Ke as je, fn as kt, We as ne, Yt as on, K as ot, Pn as po, qe as re, q as rt, be as st, de as tt, Ue as ue, wn as xt };
|
|
2498
|
+
export { $e$1 as $e, Ae, At, De, Js, Ks, Li, Oe, Pe, Qs, R, Te, Tn, be, dt, it, je, kt, ne, on, ot, po, re, rt, st, tt, ue, xt };
|