@loopstack/loopstack-studio 0.25.0 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.js +20 -0
- package/dist/api/auth.js +4 -2
- package/dist/api/client.js +9 -7
- package/dist/api/config.js +4 -2
- package/dist/api/dashboard.js +4 -2
- package/dist/api/documents.js +4 -2
- package/dist/api/index.js +21 -19
- package/dist/api/processor.js +4 -2
- package/dist/api/secrets.js +4 -2
- package/dist/api/workflows.js +4 -2
- package/dist/api/workspaces.js +4 -2
- package/dist/app/EnvironmentEmbedRoot.js +24 -31
- package/dist/components/ai-elements/code-block.js +53 -71
- package/dist/components/ai-elements/message.js +41 -82
- package/dist/components/ai-elements/prompt-input.js +162 -253
- package/dist/components/ai-elements/reasoning.js +78 -116
- package/dist/components/ai-elements/shimmer.js +23 -35
- package/dist/components/ai-elements/sources.js +29 -58
- package/dist/components/data-table/ConfirmDialog.js +14 -30
- package/dist/components/data-table/DataList.js +138 -198
- package/dist/components/data-table/DataTable.js +168 -234
- package/dist/components/data-table/DataTableBatchAction.js +18 -27
- package/dist/components/data-table/DataTableFilters.js +53 -78
- package/dist/components/data-table/DataTablePagination.js +72 -104
- package/dist/components/data-table/DataTableToolbar.js +53 -65
- package/dist/components/dynamic-form/ArrayController.js +85 -103
- package/dist/components/dynamic-form/CodeContent.js +28 -36
- package/dist/components/dynamic-form/Form.js +43 -56
- package/dist/components/dynamic-form/FormBody.js +12 -10
- package/dist/components/dynamic-form/FormElement.js +31 -41
- package/dist/components/dynamic-form/FormElementHeader.js +12 -20
- package/dist/components/dynamic-form/InputController.js +36 -38
- package/dist/components/dynamic-form/MarkdownContent.js +53 -74
- package/dist/components/dynamic-form/MermaidDiagram.js +22 -24
- package/dist/components/dynamic-form/ObjectController.js +24 -32
- package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +35 -47
- package/dist/components/dynamic-form/fields/CheckboxField.js +39 -48
- package/dist/components/dynamic-form/fields/CodeViewField.js +42 -50
- package/dist/components/dynamic-form/fields/InputField.js +62 -90
- package/dist/components/dynamic-form/fields/MarkdownViewField.js +16 -19
- package/dist/components/dynamic-form/fields/RadioField.js +46 -62
- package/dist/components/dynamic-form/fields/SelectField.js +40 -58
- package/dist/components/dynamic-form/fields/SliderField.js +94 -100
- package/dist/components/dynamic-form/fields/SwitchField.js +42 -61
- package/dist/components/dynamic-form/fields/TextareaField.js +53 -72
- package/dist/components/dynamic-form/fields/utils/text-validation-utils.js +4 -2
- package/dist/components/dynamic-form/hooks/useArrayDefaultValue.js +6 -5
- package/dist/components/dynamic-form/hooks/useFieldConfig.js +19 -20
- package/dist/components/dynamic-form/hooks/useMergeParentKey.js +4 -2
- package/dist/components/dynamic-form/hooks/useSortPropertyNames.js +4 -2
- package/dist/components/feedback/ErrorAlert.js +11 -17
- package/dist/components/feedback/ErrorBoundary.js +16 -14
- package/dist/components/feedback/ErrorSnackbar.js +13 -30
- package/dist/components/feedback/LoadingCentered.js +15 -28
- package/dist/components/feedback/Snackbar.js +43 -44
- package/dist/components/feedback/index.js +5 -5
- package/dist/components/index.js +47 -47
- package/dist/components/layout/MainLayout.js +17 -25
- package/dist/components/layout/StudioSidebar.js +132 -202
- package/dist/components/lists/CustomListView.js +49 -74
- package/dist/components/lists/ListView.js +66 -102
- package/dist/components/loopstack-elements/link.js +65 -104
- package/dist/components/loopstack-elements/tool.js +70 -142
- package/dist/components/messages/CompletionMessagePaper.js +53 -85
- package/dist/components/page/PageBreadcrumbs.js +64 -83
- package/dist/components/ui/DiscordLogo.js +16 -22
- package/dist/components/ui/GoogleLogo.js +40 -44
- package/dist/components/ui/accordion.js +31 -52
- package/dist/components/ui/alert-dialog.js +59 -109
- package/dist/components/ui/alert.js +22 -36
- package/dist/components/ui/avatar.js +21 -35
- package/dist/components/ui/badge.js +13 -17
- package/dist/components/ui/breadcrumb.js +46 -82
- package/dist/components/ui/button-group.js +5 -5
- package/dist/components/ui/button.js +17 -21
- package/dist/components/ui/card.js +40 -74
- package/dist/components/ui/checkbox.js +17 -23
- package/dist/components/ui/collapsible.js +17 -25
- package/dist/components/ui/command.js +1 -2
- package/dist/components/ui/context-menu.js +32 -52
- package/dist/components/ui/dialog.js +62 -107
- package/dist/components/ui/drawer.js +54 -99
- package/dist/components/ui/dropdown-menu.js +91 -159
- package/dist/components/ui/hover-card.js +1 -2
- package/dist/components/ui/input-group.js +36 -56
- package/dist/components/ui/input.js +11 -15
- package/dist/components/ui/label.js +11 -15
- package/dist/components/ui/popover.js +25 -38
- package/dist/components/ui/radio-group.js +22 -33
- package/dist/components/ui/scroll-area.js +28 -43
- package/dist/components/ui/select.js +73 -134
- package/dist/components/ui/separator.js +13 -17
- package/dist/components/ui/sheet.js +60 -105
- package/dist/components/ui/sidebar.js +269 -451
- package/dist/components/ui/skeleton.js +10 -14
- package/dist/components/ui/slider.js +17 -15
- package/dist/components/ui/switch.js +15 -21
- package/dist/components/ui/table.js +46 -85
- package/dist/components/ui/tabs.js +26 -45
- package/dist/components/ui/textarea.js +10 -14
- package/dist/components/ui/tooltip.js +26 -41
- package/dist/components/ui-widgets/UiActions.js +30 -37
- package/dist/components/ui-widgets/UiWidget.js +34 -46
- package/dist/components/ui-widgets/widgets/AiPromptInput.js +28 -42
- package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +16 -21
- package/dist/components/ui-widgets/widgets/SandboxRun.js +19 -26
- package/dist/components/ui-widgets/widgets/SubmitButton.js +15 -20
- package/dist/events/api-client-events.js +4 -2
- package/dist/events/sse-client-events.js +4 -2
- package/dist/features/code-explorer/CodeExplorer.js +1 -2
- package/dist/features/code-explorer/components/CodeExplorerTree.js +2 -2
- package/dist/features/code-explorer/components/CodeExplorerTreeNode.js +31 -29
- package/dist/features/code-explorer/components/FileContentViewer.js +108 -148
- package/dist/features/code-explorer/components/FileTabsBar.js +1 -2
- package/dist/features/code-explorer/components/FileTabsBarBase.js +134 -169
- 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 +41 -39
- package/dist/features/dashboard/Dashboard.js +79 -121
- package/dist/features/dashboard/RunItem.js +50 -68
- package/dist/features/dashboard/RunList.js +17 -28
- package/dist/features/debug/components/ConfigFlowViewer.js +49 -67
- package/dist/features/debug/components/WorkflowDebugHeader.js +30 -46
- package/dist/features/debug/components/WorkflowDebugLegend.js +56 -68
- package/dist/features/debug/components/WorkflowFlowViewer.js +76 -96
- package/dist/features/debug/components/workflow-flow/StateNode.js +73 -102
- package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +35 -40
- package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +61 -94
- package/dist/features/debug/index.js +3 -3
- package/dist/features/debug/lib/edge-paths.js +33 -31
- package/dist/features/debug/lib/flow-utils.js +147 -145
- package/dist/features/documents/DocumentRenderer.js +73 -77
- package/dist/features/documents/components/DocumentItem.js +21 -24
- package/dist/features/documents/components/DocumentList.js +39 -45
- package/dist/features/documents/components/DocumentMetadataPills.js +44 -59
- package/dist/features/documents/document-details/DocumentDetails.js +298 -413
- package/dist/features/documents/document-details/PromptDetails.js +105 -142
- package/dist/features/documents/index.js +4 -4
- package/dist/features/documents/renderers/AiMessage.js +39 -48
- package/dist/features/documents/renderers/AiMessageContent.js +108 -164
- package/dist/features/documents/renderers/ChoicesRenderer.js +77 -89
- package/dist/features/documents/renderers/ClaudeMessage.js +74 -91
- package/dist/features/documents/renderers/ConfirmPromptRenderer.js +44 -53
- package/dist/features/documents/renderers/DocumentDebugRenderer.js +26 -30
- package/dist/features/documents/renderers/DocumentFormRenderer.js +69 -85
- package/dist/features/documents/renderers/DocumentMessageRenderer.js +10 -9
- package/dist/features/documents/renderers/ErrorMessageRenderer.js +11 -13
- package/dist/features/documents/renderers/LinkMessageRenderer.js +15 -14
- package/dist/features/documents/renderers/MarkdownMessageRenderer.js +8 -10
- package/dist/features/documents/renderers/PlainMessageRenderer.js +7 -9
- package/dist/features/documents/renderers/SecretInputRenderer.js +37 -35
- package/dist/features/documents/renderers/TextPromptRenderer.js +45 -54
- package/dist/features/documents/renderers/useDocumentTransition.js +9 -7
- package/dist/features/health/LocalHealthCheck.js +54 -53
- package/dist/features/health/index.js +1 -1
- package/dist/features/oauth/OAuthCallbackPage.js +2 -2
- package/dist/features/oauth/OAuthPromptRenderer.js +148 -197
- package/dist/features/oauth/index.js +2 -2
- package/dist/features/oauth/useOAuthPopup.js +52 -71
- package/dist/features/runs/Runs.js +145 -187
- package/dist/features/workbench/Workbench.js +72 -98
- package/dist/features/workbench/WorkflowItem.js +49 -68
- package/dist/features/workbench/WorkflowList.js +51 -66
- package/dist/features/workbench/components/NewRunDialog.js +212 -309
- package/dist/features/workbench/components/RemoteFileTabsBar.js +18 -17
- package/dist/features/workbench/components/RemoteFileTree.js +54 -85
- package/dist/features/workbench/components/WorkbenchFilesPanel.js +52 -63
- package/dist/features/workbench/components/WorkbenchFloatingPanel.js +34 -51
- package/dist/features/workbench/components/WorkbenchFlowPanel.js +35 -44
- package/dist/features/workbench/components/WorkbenchIconSidebar.js +50 -68
- package/dist/features/workbench/components/WorkbenchPreviewPanel.js +51 -49
- package/dist/features/workbench/components/WorkbenchSecretsPanel.js +143 -172
- package/dist/features/workbench/components/WorkbenchSettingsModal.js +49 -60
- package/dist/features/workbench/components/WorkflowForms.js +17 -23
- package/dist/features/workbench/components/WorkflowHistoryItem.js +96 -122
- package/dist/features/workbench/components/WorkflowHistoryList.js +31 -54
- package/dist/features/workbench/components/buttons/WorkflowButtons.js +70 -99
- package/dist/features/workbench/hooks/useAutoScrollBottom.js +21 -25
- package/dist/features/workbench/hooks/useScrollToListItem.js +20 -21
- package/dist/features/workbench/hooks/useWorkflowData.js +31 -44
- package/dist/features/workbench/hooks/useWorkflowListState.js +13 -12
- package/dist/features/workbench/index.js +7 -7
- package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +123 -138
- package/dist/features/workbench/providers/ScrollProvider.js +15 -19
- package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +76 -75
- package/dist/features/workspaces/Workspaces.js +161 -226
- package/dist/features/workspaces/components/CreateWorkspace.js +137 -194
- package/dist/features/workspaces/components/EnvironmentSlotSelector.js +27 -25
- package/dist/features/workspaces/components/ExecutionTimeline.js +143 -185
- package/dist/features/workspaces/components/NewWorkflowRunDialog.js +18 -26
- package/dist/features/workspaces/components/WorkflowRunForm.js +85 -133
- package/dist/features/workspaces/components/WorkspaceHomePage.js +59 -80
- package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +52 -69
- package/dist/features/workspaces/components/workflow-form/HeaderSection.js +27 -41
- package/dist/features/workspaces/components/workflow-form/SelectionView.js +64 -103
- package/dist/features/workspaces/index.js +3 -3
- package/dist/frontend/studio/node_modules/lodash/_Symbol.js +9 -0
- package/dist/frontend/studio/node_modules/lodash/_baseGetTag.js +15 -0
- package/dist/frontend/studio/node_modules/lodash/_baseTrim.js +13 -0
- package/dist/frontend/studio/node_modules/lodash/_freeGlobal.js +8 -0
- package/dist/frontend/studio/node_modules/lodash/_getRawTag.js +19 -0
- package/dist/frontend/studio/node_modules/lodash/_objectToString.js +12 -0
- package/dist/frontend/studio/node_modules/lodash/_root.js +10 -0
- package/dist/frontend/studio/node_modules/lodash/_trimmedEndIndex.js +13 -0
- package/dist/{node_modules → frontend/studio/node_modules}/lodash/debounce.js +10 -8
- package/dist/frontend/studio/node_modules/lodash/isObject.js +12 -0
- package/dist/frontend/studio/node_modules/lodash/isObjectLike.js +11 -0
- package/dist/frontend/studio/node_modules/lodash/isSymbol.js +14 -0
- package/dist/frontend/studio/node_modules/lodash/now.js +12 -0
- package/dist/frontend/studio/node_modules/lodash/toNumber.js +24 -0
- package/dist/hooks/index.js +6 -6
- package/dist/hooks/query-keys.js +33 -31
- package/dist/hooks/use-mobile.js +12 -11
- package/dist/hooks/useApi.js +16 -14
- package/dist/hooks/useAuth.js +38 -53
- package/dist/hooks/useConfig.js +26 -37
- package/dist/hooks/useDashboard.js +12 -15
- package/dist/hooks/useDebounce.js +12 -11
- package/dist/hooks/useDocuments.js +23 -35
- package/dist/hooks/useFiles.js +1 -2
- package/dist/hooks/useProcessor.js +14 -17
- package/dist/hooks/useSecrets.js +45 -64
- package/dist/hooks/useWorkflows.js +109 -161
- package/dist/hooks/useWorkspaces.js +83 -123
- package/dist/index.d.ts +0 -1304
- package/dist/index.js +80 -80
- package/dist/lib/requireParam.js +4 -2
- package/dist/lib/utils.js +7 -5
- package/dist/loopstack-studio.css +1 -1
- package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +6 -4
- package/dist/node_modules/@braintree/sanitize-url/dist/index.js +8 -6
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +19 -20
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +87 -88
- package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +16 -13
- 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 +4 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +36 -34
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +138 -110
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +13 -11
- package/dist/node_modules/@chevrotain/utils/lib/src/print.js +5 -3
- package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +4 -2
- package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +4 -2
- package/dist/node_modules/@dagrejs/dagre/dist/dagre.esm.js +1812 -1913
- package/dist/node_modules/@iconify/utils/lib/customisations/defaults.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/icon/defaults.js +10 -8
- package/dist/node_modules/@iconify/utils/lib/icon/merge.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/icon/name.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/icon/transformations.js +4 -2
- package/dist/node_modules/@iconify/utils/lib/icon-set/get-icon.js +12 -10
- package/dist/node_modules/@iconify/utils/lib/icon-set/tree.js +4 -2
- package/dist/node_modules/@iconify/utils/lib/svg/build.js +20 -18
- package/dist/node_modules/@iconify/utils/lib/svg/defs.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/svg/html.js +4 -2
- package/dist/node_modules/@iconify/utils/lib/svg/id.js +10 -8
- package/dist/node_modules/@iconify/utils/lib/svg/size.js +7 -5
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +38 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +33 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +1208 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +67 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +34 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +59 -45
- package/dist/node_modules/@shikijs/core/dist/index.js +583 -1119
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/index.js +163 -148
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.js +4 -2
- package/dist/node_modules/@shikijs/langs/dist/abap.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/actionscript-3.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ada.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/angular-expression.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/angular-html.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/angular-inline-style.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-inline-template.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/angular-let-declaration.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-template-blocks.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/angular-template.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-ts.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/apache.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/apex.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/apl.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/applescript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ara.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/asm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/astro.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/awk.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ballerina.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bat.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/beancount.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/berry.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bibtex.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bicep.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bird2.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/blade.js +19 -17
- package/dist/node_modules/@shikijs/langs/dist/bsl.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/c.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/c3.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cadence.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cairo.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/clarity.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/clojure.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cmake.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cobol.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/codeowners.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/codeql.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/coffee.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/common-lisp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/coq.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cpp-macro.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/cpp.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/crystal.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/csharp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/css.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/csv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cue.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cypher.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/d.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dart.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dax.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/desktop.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/diff.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/docker.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dotenv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dream-maker.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/edge.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/elixir.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/elm.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/emacs-lisp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/erb.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/erlang.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/es-tag-css.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/es-tag-glsl.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/es-tag-html.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/es-tag-sql.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/es-tag-xml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/fennel.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fish.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fluent.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fortran-fixed-form.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/fortran-free-form.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fsharp.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/gdresource.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/gdscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/gdshader.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/genie.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/gherkin.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/git-commit.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/git-rebase.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/gleam.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/glimmer-js.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/glimmer-ts.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/glsl.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/gn.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/gnuplot.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/go.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/graphql.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/groovy.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hack.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/haml.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/handlebars.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/haskell.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/haxe.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hcl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hjson.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hlsl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/html-derivative.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/html.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/http.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/hurl.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/hxml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/hy.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/imba.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ini.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/java.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/javascript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jinja-html.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/jinja.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/jison.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/json.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/json5.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsonc.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsonl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsonnet.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jssm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsx.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/julia.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/just.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/kdl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/kotlin.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/kusto.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/latex.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/lean.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/less.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/liquid.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/llvm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/log.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/logo.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/lua.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/luau.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/make.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/markdown-nix.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/markdown-vue.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/markdown.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/marko.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/matlab.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mdc.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/mdx.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mermaid.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mipsasm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mojo.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/moonbit.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/move.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/narrat.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/nextflow-groovy.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/nextflow.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/nginx.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/nim.js +19 -17
- package/dist/node_modules/@shikijs/langs/dist/nix.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/nushell.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/objective-c.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/objective-cpp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ocaml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/odin.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/openscad.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/pascal.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/perl.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/php.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/pkl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/plsql.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/po.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/polar.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/postcss.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/powerquery.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/powershell.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/prisma.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/prolog.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/proto.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/pug.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/puppet.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/purescript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/python.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/qml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/qmldir.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/qss.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/r.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/racket.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/raku.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/razor.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/reg.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/regexp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/rel.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/riscv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ron.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/rosmsg.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/rst.js +21 -19
- package/dist/node_modules/@shikijs/langs/dist/ruby.js +29 -27
- package/dist/node_modules/@shikijs/langs/dist/rust.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/sas.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/sass.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/scala.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/scheme.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/scss.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/sdbl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/shaderlab.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/shellscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/shellsession.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/smalltalk.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/solidity.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/soy.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/sparql.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/splunk.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/sql.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ssh-config.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/stata.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/stylus.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/surrealql.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/svelte.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/swift.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/system-verilog.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/systemd.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/talonscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tasl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tcl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/templ.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/terraform.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tex.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/toml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ts-tags.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/tsv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tsx.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/turtle.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/twig.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/typescript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/typespec.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/typst.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/v.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vala.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vb.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/verilog.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vhdl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/viml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vue-directives.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vue-html.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-interpolations.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/vue.js +25 -23
- package/dist/node_modules/@shikijs/langs/dist/vyper.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wasm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wenyan.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wgsl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wikitext.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wit.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wolfram.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/xml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/xsl.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/yaml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/zenscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/zig.js +3 -2
- package/dist/node_modules/@shikijs/primitive/dist/index.js +540 -0
- package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/aurora-x.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/ayu-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/ayu-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/ayu-mirage.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/dark-plus.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/dracula-soft.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/dracula.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/everforest-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/everforest-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark-default.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark-dimmed.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark-high-contrast.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-light-default.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-light-high-contrast.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/horizon-bright.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/horizon.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/houston.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-dragon.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-lotus.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-wave.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/laserwave.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/light-plus.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-darker.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-lighter.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-ocean.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-palenight.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/min-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/min-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/monokai.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/night-owl-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/night-owl.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/nord.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/one-dark-pro.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/one-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/plastic.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/poimandres.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/red.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/rose-pine-dawn.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/rose-pine-moon.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/rose-pine.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/slack-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/slack-ochin.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/snazzy-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/solarized-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/solarized-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/synthwave-84.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/tokyo-night.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vesper.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vitesse-black.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vitesse-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vitesse-light.js +4 -2
- package/dist/node_modules/@shikijs/types/dist/index.js +4 -2
- package/dist/node_modules/@shikijs/vscode-textmate/dist/index.js +949 -947
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +30 -30
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +6 -4
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +64 -64
- package/dist/node_modules/@upsetjs/venn.js/build/venn.esm.js +905 -0
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +904 -901
- package/dist/node_modules/@xyflow/system/dist/esm/index.js +1226 -1222
- package/dist/node_modules/bail/index.js +4 -2
- package/dist/node_modules/ccount/index.js +4 -2
- package/dist/node_modules/character-entities-html4/index.js +4 -2
- package/dist/node_modules/character-entities-legacy/index.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/api.js +10 -10
- package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +6 -4
- package/dist/node_modules/chevrotain/lib/src/parse/constants.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +11 -9
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +38 -45
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +35 -36
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +26 -25
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +204 -226
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +18 -18
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +20 -19
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +14 -13
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +195 -200
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +5 -4
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +28 -28
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +165 -170
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +17 -17
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +50 -50
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +76 -83
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +21 -21
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +117 -121
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +12 -6
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +51 -51
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +15 -14
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +81 -80
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +229 -217
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +87 -86
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +36 -44
- package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +287 -309
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +115 -126
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +73 -70
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +12 -10
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +45 -54
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +29 -30
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +242 -240
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +134 -133
- package/dist/node_modules/chevrotain-allstar/lib/dfa.js +11 -10
- package/dist/node_modules/chevrotain-allstar/lib/index.js +1 -1
- package/dist/node_modules/classcat/index.js +5 -3
- package/dist/node_modules/comma-separated-tokens/index.js +5 -3
- package/dist/node_modules/cose-base/cose-base.js +21 -21
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +7935 -7935
- package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +8 -6
- package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.js +8 -6
- 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 +6 -4
- package/dist/node_modules/d3/src/index.js +95 -95
- package/dist/node_modules/d3-array/src/ascending.js +4 -2
- package/dist/node_modules/d3-array/src/bisect.js +8 -8
- package/dist/node_modules/d3-array/src/bisector.js +8 -6
- package/dist/node_modules/d3-array/src/descending.js +4 -2
- package/dist/node_modules/d3-array/src/max.js +4 -2
- package/dist/node_modules/d3-array/src/min.js +4 -2
- package/dist/node_modules/d3-array/src/number.js +4 -2
- package/dist/node_modules/d3-array/src/range.js +4 -2
- package/dist/node_modules/d3-array/src/ticks.js +13 -11
- package/dist/node_modules/d3-axis/src/axis.js +48 -46
- package/dist/node_modules/d3-axis/src/identity.js +4 -2
- package/dist/node_modules/d3-brush/src/brush.js +6 -4
- package/dist/node_modules/d3-color/src/color.js +86 -84
- package/dist/node_modules/d3-color/src/define.js +5 -3
- package/dist/node_modules/d3-color/src/lab.js +45 -43
- package/dist/node_modules/d3-color/src/math.js +4 -2
- package/dist/node_modules/d3-dispatch/src/dispatch.js +18 -17
- package/dist/node_modules/d3-drag/src/constant.js +4 -2
- package/dist/node_modules/d3-drag/src/drag.js +77 -75
- package/dist/node_modules/d3-drag/src/event.js +5 -3
- package/dist/node_modules/d3-drag/src/nodrag.js +11 -9
- package/dist/node_modules/d3-drag/src/noevent.js +6 -4
- package/dist/node_modules/d3-ease/src/cubic.js +4 -2
- package/dist/node_modules/d3-format/src/defaultLocale.js +8 -6
- package/dist/node_modules/d3-format/src/exponent.js +6 -4
- package/dist/node_modules/d3-format/src/formatDecimal.js +5 -3
- package/dist/node_modules/d3-format/src/formatGroup.js +4 -2
- package/dist/node_modules/d3-format/src/formatNumerals.js +4 -2
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +10 -8
- package/dist/node_modules/d3-format/src/formatRounded.js +6 -4
- package/dist/node_modules/d3-format/src/formatSpecifier.js +10 -8
- package/dist/node_modules/d3-format/src/formatTrim.js +4 -2
- package/dist/node_modules/d3-format/src/formatTypes.js +15 -13
- package/dist/node_modules/d3-format/src/identity.js +4 -2
- package/dist/node_modules/d3-format/src/locale.js +33 -31
- package/dist/node_modules/d3-format/src/precisionFixed.js +6 -4
- package/dist/node_modules/d3-format/src/precisionPrefix.js +6 -4
- package/dist/node_modules/d3-format/src/precisionRound.js +6 -4
- package/dist/node_modules/d3-hierarchy/src/accessors.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/constant.js +5 -3
- package/dist/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/count.js +6 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/descendants.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/each.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/find.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/index.js +46 -44
- package/dist/node_modules/d3-hierarchy/src/hierarchy/iterator.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/leaves.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/links.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/path.js +6 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sort.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sum.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/dice.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/index.js +16 -14
- package/dist/node_modules/d3-hierarchy/src/treemap/round.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/slice.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/squarify.js +11 -9
- package/dist/node_modules/d3-interpolate/src/array.js +6 -4
- package/dist/node_modules/d3-interpolate/src/basis.js +6 -4
- package/dist/node_modules/d3-interpolate/src/basisClosed.js +6 -4
- package/dist/node_modules/d3-interpolate/src/color.js +19 -17
- package/dist/node_modules/d3-interpolate/src/constant.js +4 -2
- package/dist/node_modules/d3-interpolate/src/date.js +4 -2
- package/dist/node_modules/d3-interpolate/src/hcl.js +8 -6
- package/dist/node_modules/d3-interpolate/src/number.js +4 -2
- package/dist/node_modules/d3-interpolate/src/numberArray.js +5 -3
- package/dist/node_modules/d3-interpolate/src/object.js +6 -4
- package/dist/node_modules/d3-interpolate/src/rgb.js +11 -9
- package/dist/node_modules/d3-interpolate/src/round.js +4 -2
- package/dist/node_modules/d3-interpolate/src/string.js +16 -14
- package/dist/node_modules/d3-interpolate/src/transform/decompose.js +7 -5
- package/dist/node_modules/d3-interpolate/src/transform/index.js +13 -11
- package/dist/node_modules/d3-interpolate/src/transform/parse.js +10 -8
- package/dist/node_modules/d3-interpolate/src/value.js +14 -12
- package/dist/node_modules/d3-interpolate/src/zoom.js +13 -11
- package/dist/node_modules/d3-path/src/path.js +16 -14
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/max.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/min.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-path/src/path.js +13 -12
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +19 -17
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +5 -3
- package/dist/node_modules/d3-sankey/src/align.js +12 -10
- package/dist/node_modules/d3-sankey/src/constant.js +4 -2
- package/dist/node_modules/d3-sankey/src/sankey.js +170 -168
- package/dist/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +8 -6
- package/dist/node_modules/d3-scale/src/band.js +11 -9
- package/dist/node_modules/d3-scale/src/constant.js +4 -2
- package/dist/node_modules/d3-scale/src/continuous.js +49 -47
- package/dist/node_modules/d3-scale/src/init.js +4 -2
- package/dist/node_modules/d3-scale/src/linear.js +15 -13
- package/dist/node_modules/d3-scale/src/nice.js +4 -2
- package/dist/node_modules/d3-scale/src/number.js +4 -2
- package/dist/node_modules/d3-scale/src/ordinal.js +18 -16
- package/dist/node_modules/d3-scale/src/tickFormat.js +16 -14
- package/dist/node_modules/d3-scale/src/time.js +36 -34
- package/dist/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +5 -3
- package/dist/node_modules/d3-scale-chromatic/src/colors.js +4 -2
- package/dist/node_modules/d3-selection/src/array.js +4 -2
- package/dist/node_modules/d3-selection/src/constant.js +4 -2
- package/dist/node_modules/d3-selection/src/creator.js +12 -10
- package/dist/node_modules/d3-selection/src/matcher.js +5 -3
- package/dist/node_modules/d3-selection/src/namespace.js +7 -5
- package/dist/node_modules/d3-selection/src/namespaces.js +5 -3
- package/dist/node_modules/d3-selection/src/pointer.js +6 -4
- package/dist/node_modules/d3-selection/src/select.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/append.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/attr.js +19 -17
- package/dist/node_modules/d3-selection/src/selection/call.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/classed.js +25 -23
- package/dist/node_modules/d3-selection/src/selection/clone.js +7 -5
- package/dist/node_modules/d3-selection/src/selection/data.js +18 -16
- package/dist/node_modules/d3-selection/src/selection/datum.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/dispatch.js +12 -10
- package/dist/node_modules/d3-selection/src/selection/each.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/empty.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/enter.js +13 -11
- package/dist/node_modules/d3-selection/src/selection/exit.js +7 -5
- package/dist/node_modules/d3-selection/src/selection/filter.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/html.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/index.js +80 -79
- package/dist/node_modules/d3-selection/src/selection/insert.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/iterator.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/join.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/lower.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/merge.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/node.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/nodes.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/on.js +11 -9
- package/dist/node_modules/d3-selection/src/selection/order.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/property.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/raise.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/remove.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/select.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/selectAll.js +11 -9
- package/dist/node_modules/d3-selection/src/selection/selectChild.js +10 -8
- package/dist/node_modules/d3-selection/src/selection/selectChildren.js +10 -8
- package/dist/node_modules/d3-selection/src/selection/size.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/sort.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/sparse.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/style.js +14 -12
- package/dist/node_modules/d3-selection/src/selection/text.js +8 -6
- package/dist/node_modules/d3-selection/src/selector.js +6 -4
- package/dist/node_modules/d3-selection/src/selectorAll.js +6 -4
- package/dist/node_modules/d3-selection/src/sourceEvent.js +4 -2
- package/dist/node_modules/d3-selection/src/window.js +4 -2
- package/dist/node_modules/d3-shape/src/arc.js +38 -36
- package/dist/node_modules/d3-shape/src/array.js +3 -2
- package/dist/node_modules/d3-shape/src/constant.js +4 -2
- package/dist/node_modules/d3-shape/src/curve/basis.js +10 -8
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +18 -16
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/bump.js +15 -13
- package/dist/node_modules/d3-shape/src/curve/bundle.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/cardinal.js +10 -8
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +12 -10
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/catmullRom.js +19 -17
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +13 -11
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +10 -8
- package/dist/node_modules/d3-shape/src/curve/linear.js +7 -5
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +12 -10
- package/dist/node_modules/d3-shape/src/curve/monotone.js +23 -21
- package/dist/node_modules/d3-shape/src/curve/natural.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/step.js +19 -17
- package/dist/node_modules/d3-shape/src/descending.js +4 -2
- package/dist/node_modules/d3-shape/src/identity.js +4 -2
- package/dist/node_modules/d3-shape/src/line.js +19 -17
- package/dist/node_modules/d3-shape/src/math.js +8 -6
- package/dist/node_modules/d3-shape/src/noop.js +4 -2
- package/dist/node_modules/d3-shape/src/path.js +6 -4
- package/dist/node_modules/d3-shape/src/pie.js +15 -13
- package/dist/node_modules/d3-shape/src/point.js +5 -3
- package/dist/node_modules/d3-time/src/day.js +17 -15
- package/dist/node_modules/d3-time/src/duration.js +4 -2
- package/dist/node_modules/d3-time/src/hour.js +16 -14
- package/dist/node_modules/d3-time/src/interval.js +7 -5
- package/dist/node_modules/d3-time/src/millisecond.js +7 -5
- package/dist/node_modules/d3-time/src/minute.js +16 -14
- package/dist/node_modules/d3-time/src/month.js +14 -12
- package/dist/node_modules/d3-time/src/second.js +9 -7
- package/dist/node_modules/d3-time/src/ticks.js +66 -64
- package/dist/node_modules/d3-time/src/week.js +21 -19
- package/dist/node_modules/d3-time/src/year.js +10 -8
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +8 -6
- package/dist/node_modules/d3-time-format/src/locale.js +346 -344
- package/dist/node_modules/d3-timer/src/timeout.js +6 -4
- package/dist/node_modules/d3-timer/src/timer.js +33 -31
- package/dist/node_modules/d3-transition/src/index.js +2 -2
- package/dist/node_modules/d3-transition/src/interrupt.js +4 -3
- package/dist/node_modules/d3-transition/src/selection/index.js +5 -4
- package/dist/node_modules/d3-transition/src/selection/interrupt.js +6 -4
- package/dist/node_modules/d3-transition/src/selection/transition.js +16 -14
- package/dist/node_modules/d3-transition/src/transition/attr.js +28 -26
- package/dist/node_modules/d3-transition/src/transition/attrTween.js +13 -11
- package/dist/node_modules/d3-transition/src/transition/delay.js +11 -9
- package/dist/node_modules/d3-transition/src/transition/duration.js +11 -9
- package/dist/node_modules/d3-transition/src/transition/ease.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/easeVarying.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/end.js +6 -4
- package/dist/node_modules/d3-transition/src/transition/filter.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/index.js +63 -61
- package/dist/node_modules/d3-transition/src/transition/interpolate.js +9 -7
- package/dist/node_modules/d3-transition/src/transition/merge.js +6 -4
- package/dist/node_modules/d3-transition/src/transition/on.js +9 -7
- package/dist/node_modules/d3-transition/src/transition/remove.js +6 -4
- package/dist/node_modules/d3-transition/src/transition/schedule.js +20 -18
- package/dist/node_modules/d3-transition/src/transition/select.js +10 -8
- package/dist/node_modules/d3-transition/src/transition/selectAll.js +10 -8
- package/dist/node_modules/d3-transition/src/transition/selection.js +7 -5
- package/dist/node_modules/d3-transition/src/transition/style.js +21 -19
- package/dist/node_modules/d3-transition/src/transition/styleTween.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/text.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/textTween.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/transition.js +10 -8
- package/dist/node_modules/d3-transition/src/transition/tween.js +14 -12
- package/dist/node_modules/d3-zoom/src/constant.js +4 -2
- package/dist/node_modules/d3-zoom/src/event.js +4 -2
- package/dist/node_modules/d3-zoom/src/index.js +2 -2
- package/dist/node_modules/d3-zoom/src/noevent.js +5 -3
- package/dist/node_modules/d3-zoom/src/transform.js +12 -10
- package/dist/node_modules/d3-zoom/src/zoom.js +116 -114
- package/dist/node_modules/dagre-d3-es/src/dagre/acyclic.js +14 -12
- package/dist/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +11 -9
- package/dist/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +36 -34
- package/dist/node_modules/dagre-d3-es/src/dagre/data/list.js +9 -7
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +51 -49
- package/dist/node_modules/dagre-d3-es/src/dagre/index.js +2 -2
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +165 -163
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +45 -43
- package/dist/node_modules/dagre-d3-es/src/dagre/normalize.js +12 -10
- package/dist/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +6 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +8 -6
- package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +14 -12
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +22 -20
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +36 -34
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +16 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +32 -30
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +30 -28
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +20 -18
- package/dist/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +12 -10
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +150 -148
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +20 -18
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +19 -17
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/index.js +16 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +64 -63
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +15 -13
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +84 -82
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +15 -13
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.js +3 -2
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.js +3 -2
- 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 +6 -4
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +6 -4
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +13 -11
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +131 -129
- package/dist/node_modules/dagre-d3-es/src/graphlib/index.js +1 -1
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +23 -21
- package/dist/node_modules/dayjs/dayjs.min.js +6 -4
- package/dist/node_modules/dayjs/plugin/advancedFormat.js +6 -4
- package/dist/node_modules/dayjs/plugin/customParseFormat.js +6 -4
- package/dist/node_modules/dayjs/plugin/duration.js +6 -4
- package/dist/node_modules/dayjs/plugin/isoWeek.js +6 -4
- package/dist/node_modules/decode-named-character-reference/index.dom.js +7 -5
- package/dist/node_modules/devlop/lib/default.js +4 -2
- package/dist/node_modules/dompurify/dist/purify.es.js +203 -201
- package/dist/node_modules/entities/dist/esm/decode-codepoint.js +6 -4
- package/dist/node_modules/entities/dist/esm/decode.js +87 -85
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.js +4 -2
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +6 -4
- package/dist/node_modules/extend/index.js +9 -6
- package/dist/node_modules/hast-util-from-dom/lib/index.js +32 -30
- package/dist/node_modules/hast-util-from-html-isomorphic/lib/browser.js +10 -8
- package/dist/node_modules/hast-util-from-parse5/lib/index.js +82 -80
- package/dist/node_modules/hast-util-is-element/lib/index.js +17 -15
- package/dist/node_modules/hast-util-parse-selector/lib/index.js +7 -5
- package/dist/node_modules/hast-util-raw/lib/index.js +136 -134
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.js +23 -21
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.js +5 -3
- 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 +250 -249
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.js +6 -4
- 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 +17 -15
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.js +1497 -1495
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.js +148 -146
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.js +20 -19
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +800 -798
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.js +33 -31
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.js +10 -8
- package/dist/node_modules/hast-util-sanitize/lib/index.js +106 -104
- package/dist/node_modules/hast-util-sanitize/lib/schema.js +12 -11
- package/dist/node_modules/hast-util-to-html/lib/handle/comment.js +9 -7
- package/dist/node_modules/hast-util-to-html/lib/handle/doctype.js +4 -2
- package/dist/node_modules/hast-util-to-html/lib/handle/element.js +25 -23
- package/dist/node_modules/hast-util-to-html/lib/handle/index.js +22 -21
- package/dist/node_modules/hast-util-to-html/lib/handle/raw.js +6 -4
- package/dist/node_modules/hast-util-to-html/lib/handle/root.js +4 -2
- package/dist/node_modules/hast-util-to-html/lib/handle/text.js +7 -5
- package/dist/node_modules/hast-util-to-html/lib/index.js +38 -36
- package/dist/node_modules/hast-util-to-html/lib/omission/closing.js +70 -68
- package/dist/node_modules/hast-util-to-html/lib/omission/omission.js +6 -4
- package/dist/node_modules/hast-util-to-html/lib/omission/opening.js +32 -30
- package/dist/node_modules/hast-util-to-html/lib/omission/util/siblings.js +10 -9
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +192 -190
- package/dist/node_modules/hast-util-to-parse5/lib/index.js +71 -69
- package/dist/node_modules/hast-util-to-text/lib/index.js +61 -59
- package/dist/node_modules/hast-util-whitespace/lib/index.js +8 -6
- package/dist/node_modules/hastscript/lib/create-h.js +26 -24
- package/dist/node_modules/hastscript/lib/index.js +7 -5
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +4 -2
- package/dist/node_modules/html-url-attributes/lib/index.js +4 -2
- package/dist/node_modules/html-void-elements/index.js +4 -2
- package/dist/node_modules/inline-style-parser/cjs/index.js +6 -4
- package/dist/node_modules/internmap/src/index.js +22 -20
- package/dist/node_modules/katex/dist/katex.js +2914 -2873
- package/dist/node_modules/khroma/dist/channels/index.js +23 -21
- package/dist/node_modules/khroma/dist/channels/reusable.js +5 -3
- package/dist/node_modules/khroma/dist/channels/type.js +7 -5
- package/dist/node_modules/khroma/dist/color/hex.js +10 -8
- package/dist/node_modules/khroma/dist/color/hsl.js +19 -17
- package/dist/node_modules/khroma/dist/color/index.js +17 -15
- package/dist/node_modules/khroma/dist/color/keyword.js +10 -8
- package/dist/node_modules/khroma/dist/color/rgb.js +14 -12
- package/dist/node_modules/khroma/dist/constants.js +7 -5
- package/dist/node_modules/khroma/dist/methods/adjust.js +8 -6
- package/dist/node_modules/khroma/dist/methods/adjust_channel.js +8 -6
- package/dist/node_modules/khroma/dist/methods/change.js +9 -7
- package/dist/node_modules/khroma/dist/methods/channel.js +6 -4
- package/dist/node_modules/khroma/dist/methods/darken.js +5 -3
- package/dist/node_modules/khroma/dist/methods/invert.js +8 -6
- package/dist/node_modules/khroma/dist/methods/is_dark.js +5 -3
- package/dist/node_modules/khroma/dist/methods/is_light.js +5 -3
- package/dist/node_modules/khroma/dist/methods/lighten.js +5 -3
- package/dist/node_modules/khroma/dist/methods/luminance.js +8 -6
- package/dist/node_modules/khroma/dist/methods/mix.js +8 -6
- package/dist/node_modules/khroma/dist/methods/rgba.js +15 -13
- package/dist/node_modules/khroma/dist/methods/transparentize.js +5 -0
- package/dist/node_modules/khroma/dist/utils/channel.js +8 -6
- package/dist/node_modules/khroma/dist/utils/index.js +10 -8
- package/dist/node_modules/khroma/dist/utils/lang.js +4 -2
- package/dist/node_modules/khroma/dist/utils/unit.js +4 -2
- package/dist/node_modules/langium/lib/default-module.js +66 -64
- package/dist/node_modules/langium/lib/dependency-injection.js +37 -39
- package/dist/node_modules/langium/lib/documentation/comment-provider.js +7 -5
- package/dist/node_modules/langium/lib/documentation/documentation-provider.js +8 -6
- package/dist/node_modules/langium/lib/documentation/jsdoc.js +204 -202
- package/dist/node_modules/langium/lib/languages/generated/ast.js +343 -534
- package/dist/node_modules/langium/lib/languages/grammar-config.js +10 -8
- package/dist/node_modules/langium/lib/parser/async-parser.js +4 -76
- package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +8 -6
- package/dist/node_modules/langium/lib/parser/cst-node-builder.js +56 -54
- package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +9 -7
- package/dist/node_modules/langium/lib/parser/langium-parser.js +190 -188
- package/dist/node_modules/langium/lib/parser/lexer.js +25 -25
- package/dist/node_modules/langium/lib/parser/parser-builder-base.js +204 -203
- package/dist/node_modules/langium/lib/parser/token-builder.js +32 -30
- package/dist/node_modules/langium/lib/parser/value-converter.js +17 -15
- package/dist/node_modules/langium/lib/references/linker.js +104 -103
- package/dist/node_modules/langium/lib/references/name-provider.js +9 -7
- package/dist/node_modules/langium/lib/references/references.js +53 -51
- package/dist/node_modules/langium/lib/references/scope-computation.js +14 -12
- package/dist/node_modules/langium/lib/references/scope-provider.js +13 -11
- package/dist/node_modules/langium/lib/references/scope.js +27 -56
- package/dist/node_modules/langium/lib/serializer/hydrator.js +71 -69
- package/dist/node_modules/langium/lib/serializer/json-serializer.js +23 -21
- package/dist/node_modules/langium/lib/service-registry.js +7 -5
- package/dist/node_modules/langium/lib/syntax-tree.js +33 -31
- package/dist/node_modules/langium/lib/utils/ast-utils.js +77 -112
- package/dist/node_modules/langium/lib/utils/caching.js +33 -42
- package/dist/node_modules/langium/lib/utils/cancellation.js +7 -5
- package/dist/node_modules/langium/lib/utils/collections.js +35 -33
- package/dist/node_modules/langium/lib/utils/cst-utils.js +46 -161
- package/dist/node_modules/langium/lib/utils/disposable.js +5 -3
- package/dist/node_modules/langium/lib/utils/errors.js +8 -9
- package/dist/node_modules/langium/lib/utils/event.js +7 -5
- package/dist/node_modules/langium/lib/utils/grammar-loader.js +16 -14
- package/dist/node_modules/langium/lib/utils/grammar-utils.js +172 -249
- package/dist/node_modules/langium/lib/utils/promise-utils.js +18 -19
- package/dist/node_modules/langium/lib/utils/regexp-utils.js +53 -76
- package/dist/node_modules/langium/lib/utils/stream.js +155 -153
- package/dist/node_modules/langium/lib/utils/uri-utils.js +14 -12
- package/dist/node_modules/langium/lib/validation/document-validator.js +104 -103
- package/dist/node_modules/langium/lib/validation/validation-registry.js +15 -14
- package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +19 -17
- package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +4 -2
- package/dist/node_modules/langium/lib/workspace/configuration.js +7 -5
- package/dist/node_modules/langium/lib/workspace/document-builder.js +131 -134
- package/dist/node_modules/langium/lib/workspace/documents.js +85 -83
- package/dist/node_modules/langium/lib/workspace/file-system-provider.js +5 -4
- package/dist/node_modules/langium/lib/workspace/index-manager.js +16 -14
- package/dist/node_modules/langium/lib/workspace/workspace-lock.js +11 -9
- package/dist/node_modules/langium/lib/workspace/workspace-manager.js +35 -33
- package/dist/node_modules/layout-base/layout-base.js +6 -4
- package/dist/node_modules/lodash-es/_DataView.js +6 -4
- package/dist/node_modules/lodash-es/_Hash.js +14 -13
- package/dist/node_modules/lodash-es/_ListCache.js +14 -13
- package/dist/node_modules/lodash-es/_Map.js +6 -4
- package/dist/node_modules/lodash-es/_MapCache.js +14 -13
- package/dist/node_modules/lodash-es/_Promise.js +6 -4
- package/dist/node_modules/lodash-es/_Set.js +6 -4
- package/dist/node_modules/lodash-es/_SetCache.js +10 -9
- package/dist/node_modules/lodash-es/_Stack.js +12 -11
- package/dist/node_modules/lodash-es/_Symbol.js +5 -3
- package/dist/node_modules/lodash-es/_Uint8Array.js +5 -3
- package/dist/node_modules/lodash-es/_WeakMap.js +6 -4
- package/dist/node_modules/lodash-es/_apply.js +4 -3
- package/dist/node_modules/lodash-es/_arrayEach.js +4 -3
- package/dist/node_modules/lodash-es/_arrayFilter.js +4 -3
- package/dist/node_modules/lodash-es/_arrayIncludes.js +6 -5
- package/dist/node_modules/lodash-es/_arrayIncludesWith.js +4 -3
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +13 -12
- package/dist/node_modules/lodash-es/_arrayMap.js +4 -3
- package/dist/node_modules/lodash-es/_arrayPush.js +4 -3
- package/dist/node_modules/lodash-es/_arrayReduce.js +4 -3
- package/dist/node_modules/lodash-es/_arraySome.js +4 -3
- package/dist/node_modules/lodash-es/_asciiSize.js +5 -3
- package/dist/node_modules/lodash-es/_assignMergeValue.js +7 -6
- package/dist/node_modules/lodash-es/_assignValue.js +8 -7
- package/dist/node_modules/lodash-es/_assocIndexOf.js +6 -5
- package/dist/node_modules/lodash-es/_baseAssign.js +7 -6
- package/dist/node_modules/lodash-es/_baseAssignIn.js +7 -6
- package/dist/node_modules/lodash-es/_baseAssignValue.js +6 -5
- package/dist/node_modules/lodash-es/_baseClone.js +51 -50
- package/dist/node_modules/lodash-es/_baseCreate.js +7 -5
- package/dist/node_modules/lodash-es/_baseEach.js +6 -4
- package/dist/node_modules/lodash-es/_baseExtremum.js +6 -5
- package/dist/node_modules/lodash-es/_baseFilter.js +6 -5
- package/dist/node_modules/lodash-es/_baseFindIndex.js +4 -3
- package/dist/node_modules/lodash-es/_baseFlatten.js +8 -7
- package/dist/node_modules/lodash-es/_baseFor.js +5 -3
- package/dist/node_modules/lodash-es/_baseForOwn.js +7 -6
- package/dist/node_modules/lodash-es/_baseGet.js +8 -7
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +7 -6
- package/dist/node_modules/lodash-es/_baseGetTag.js +9 -8
- package/dist/node_modules/lodash-es/_baseGt.js +4 -3
- package/dist/node_modules/lodash-es/_baseHas.js +6 -5
- package/dist/node_modules/lodash-es/_baseHasIn.js +4 -3
- package/dist/node_modules/lodash-es/_baseIndexOf.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsArguments.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsEqual.js +7 -6
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +23 -22
- package/dist/node_modules/lodash-es/_baseIsMap.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsMatch.js +9 -8
- package/dist/node_modules/lodash-es/_baseIsNaN.js +4 -3
- package/dist/node_modules/lodash-es/_baseIsNative.js +10 -9
- package/dist/node_modules/lodash-es/_baseIsSet.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +10 -9
- package/dist/node_modules/lodash-es/_baseIteratee.js +10 -9
- package/dist/node_modules/lodash-es/_baseKeys.js +9 -8
- package/dist/node_modules/lodash-es/_baseKeysIn.js +11 -10
- package/dist/node_modules/lodash-es/_baseLt.js +4 -3
- package/dist/node_modules/lodash-es/_baseMap.js +8 -7
- package/dist/node_modules/lodash-es/_baseMatches.js +10 -9
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +15 -14
- package/dist/node_modules/lodash-es/_baseMerge.js +16 -15
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +24 -23
- package/dist/node_modules/lodash-es/_baseOrderBy.js +23 -22
- package/dist/node_modules/lodash-es/_basePick.js +8 -7
- package/dist/node_modules/lodash-es/_basePickBy.js +9 -8
- package/dist/node_modules/lodash-es/_baseProperty.js +4 -3
- package/dist/node_modules/lodash-es/_basePropertyDeep.js +6 -5
- package/dist/node_modules/lodash-es/_baseRange.js +6 -5
- package/dist/node_modules/lodash-es/_baseReduce.js +4 -3
- package/dist/node_modules/lodash-es/_baseRest.js +8 -7
- package/dist/node_modules/lodash-es/_baseSet.js +14 -13
- package/dist/node_modules/lodash-es/_baseSetToString.js +10 -8
- package/dist/node_modules/lodash-es/_baseSortBy.js +4 -3
- package/dist/node_modules/lodash-es/_baseTimes.js +4 -3
- package/dist/node_modules/lodash-es/_baseToString.js +13 -12
- package/dist/node_modules/lodash-es/_baseTrim.js +7 -6
- package/dist/node_modules/lodash-es/_baseUnary.js +4 -3
- package/dist/node_modules/lodash-es/_baseUniq.js +17 -16
- package/dist/node_modules/lodash-es/_baseValues.js +6 -5
- package/dist/node_modules/lodash-es/_baseZipObject.js +4 -3
- package/dist/node_modules/lodash-es/_cacheHas.js +4 -3
- package/dist/node_modules/lodash-es/_castFunction.js +6 -5
- package/dist/node_modules/lodash-es/_castPath.js +9 -8
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +6 -5
- package/dist/node_modules/lodash-es/_cloneBuffer.js +9 -8
- package/dist/node_modules/lodash-es/_cloneDataView.js +6 -5
- package/dist/node_modules/lodash-es/_cloneRegExp.js +6 -5
- package/dist/node_modules/lodash-es/_cloneSymbol.js +7 -6
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +6 -5
- package/dist/node_modules/lodash-es/_compareAscending.js +6 -5
- package/dist/node_modules/lodash-es/_compareMultiple.js +6 -5
- package/dist/node_modules/lodash-es/_copyArray.js +4 -3
- package/dist/node_modules/lodash-es/_copyObject.js +7 -6
- package/dist/node_modules/lodash-es/_copySymbols.js +7 -6
- package/dist/node_modules/lodash-es/_copySymbolsIn.js +7 -6
- package/dist/node_modules/lodash-es/_coreJsData.js +5 -3
- package/dist/node_modules/lodash-es/_createAssigner.js +8 -7
- package/dist/node_modules/lodash-es/_createBaseEach.js +6 -5
- package/dist/node_modules/lodash-es/_createBaseFor.js +4 -3
- package/dist/node_modules/lodash-es/_createFind.js +10 -9
- package/dist/node_modules/lodash-es/_createRange.js +8 -7
- package/dist/node_modules/lodash-es/_createSet.js +9 -7
- package/dist/node_modules/lodash-es/_defineProperty.js +6 -4
- package/dist/node_modules/lodash-es/_equalArrays.js +12 -11
- package/dist/node_modules/lodash-es/_equalByTag.js +29 -28
- package/dist/node_modules/lodash-es/_equalObjects.js +9 -8
- package/dist/node_modules/lodash-es/_flatRest.js +8 -7
- package/dist/node_modules/lodash-es/_freeGlobal.js +4 -2
- package/dist/node_modules/lodash-es/_getAllKeys.js +8 -7
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +8 -7
- package/dist/node_modules/lodash-es/_getMapData.js +6 -5
- package/dist/node_modules/lodash-es/_getMatchData.js +8 -7
- package/dist/node_modules/lodash-es/_getNative.js +8 -7
- package/dist/node_modules/lodash-es/_getPrototype.js +5 -3
- package/dist/node_modules/lodash-es/_getRawTag.js +10 -9
- package/dist/node_modules/lodash-es/_getSymbols.js +9 -7
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +10 -8
- package/dist/node_modules/lodash-es/_getTag.js +21 -19
- package/dist/node_modules/lodash-es/_getValue.js +4 -3
- package/dist/node_modules/lodash-es/_hasPath.js +13 -12
- package/dist/node_modules/lodash-es/_hasUnicode.js +6 -5
- package/dist/node_modules/lodash-es/_hashClear.js +6 -5
- package/dist/node_modules/lodash-es/_hashDelete.js +5 -4
- package/dist/node_modules/lodash-es/_hashGet.js +9 -8
- package/dist/node_modules/lodash-es/_hashHas.js +7 -6
- package/dist/node_modules/lodash-es/_hashSet.js +7 -6
- package/dist/node_modules/lodash-es/_initCloneArray.js +6 -5
- package/dist/node_modules/lodash-es/_initCloneByTag.js +29 -28
- package/dist/node_modules/lodash-es/_initCloneObject.js +8 -7
- package/dist/node_modules/lodash-es/_isFlattenable.js +9 -8
- package/dist/node_modules/lodash-es/_isIndex.js +6 -5
- package/dist/node_modules/lodash-es/_isIterateeCall.js +10 -9
- package/dist/node_modules/lodash-es/_isKey.js +9 -8
- package/dist/node_modules/lodash-es/_isKeyable.js +4 -3
- package/dist/node_modules/lodash-es/_isMasked.js +9 -8
- package/dist/node_modules/lodash-es/_isPrototype.js +6 -5
- package/dist/node_modules/lodash-es/_isStrictComparable.js +6 -5
- package/dist/node_modules/lodash-es/_listCacheClear.js +4 -3
- package/dist/node_modules/lodash-es/_listCacheDelete.js +8 -7
- package/dist/node_modules/lodash-es/_listCacheGet.js +6 -5
- package/dist/node_modules/lodash-es/_listCacheHas.js +6 -5
- package/dist/node_modules/lodash-es/_listCacheSet.js +6 -5
- package/dist/node_modules/lodash-es/_mapCacheClear.js +10 -9
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +7 -6
- package/dist/node_modules/lodash-es/_mapCacheGet.js +6 -5
- package/dist/node_modules/lodash-es/_mapCacheHas.js +6 -5
- package/dist/node_modules/lodash-es/_mapCacheSet.js +6 -5
- package/dist/node_modules/lodash-es/_mapToArray.js +4 -3
- package/dist/node_modules/lodash-es/_matchesStrictComparable.js +4 -3
- package/dist/node_modules/lodash-es/_memoizeCapped.js +8 -7
- package/dist/node_modules/lodash-es/_nativeCreate.js +5 -3
- package/dist/node_modules/lodash-es/_nativeKeys.js +5 -3
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +4 -3
- package/dist/node_modules/lodash-es/_nodeUtil.js +6 -4
- package/dist/node_modules/lodash-es/_objectToString.js +6 -5
- package/dist/node_modules/lodash-es/_overArg.js +4 -3
- package/dist/node_modules/lodash-es/_overRest.js +9 -8
- package/dist/node_modules/lodash-es/_root.js +5 -3
- package/dist/node_modules/lodash-es/_safeGet.js +4 -3
- package/dist/node_modules/lodash-es/_setCacheAdd.js +6 -5
- package/dist/node_modules/lodash-es/_setCacheHas.js +4 -3
- package/dist/node_modules/lodash-es/_setToArray.js +4 -3
- package/dist/node_modules/lodash-es/_setToString.js +6 -4
- package/dist/node_modules/lodash-es/_shortOut.js +7 -6
- package/dist/node_modules/lodash-es/_stackClear.js +6 -5
- package/dist/node_modules/lodash-es/_stackDelete.js +4 -3
- package/dist/node_modules/lodash-es/_stackGet.js +4 -3
- package/dist/node_modules/lodash-es/_stackHas.js +4 -3
- package/dist/node_modules/lodash-es/_stackSet.js +11 -10
- package/dist/node_modules/lodash-es/_strictIndexOf.js +4 -3
- package/dist/node_modules/lodash-es/_stringSize.js +8 -7
- package/dist/node_modules/lodash-es/_stringToPath.js +7 -5
- package/dist/node_modules/lodash-es/_toKey.js +8 -7
- package/dist/node_modules/lodash-es/_toSource.js +8 -7
- package/dist/node_modules/lodash-es/_trimmedEndIndex.js +6 -5
- package/dist/node_modules/lodash-es/_unicodeSize.js +17 -16
- package/dist/node_modules/lodash-es/clone.js +7 -6
- package/dist/node_modules/lodash-es/cloneDeep.js +7 -6
- package/dist/node_modules/lodash-es/constant.js +4 -3
- package/dist/node_modules/lodash-es/defaults.js +13 -11
- package/dist/node_modules/lodash-es/eq.js +4 -3
- package/dist/node_modules/lodash-es/filter.js +9 -8
- package/dist/node_modules/lodash-es/find.js +6 -4
- package/dist/node_modules/lodash-es/findIndex.js +10 -9
- package/dist/node_modules/lodash-es/flatMap.js +7 -6
- package/dist/node_modules/lodash-es/flatten.js +6 -5
- package/dist/node_modules/lodash-es/forEach.js +9 -8
- package/dist/node_modules/lodash-es/forIn.js +8 -7
- package/dist/node_modules/lodash-es/forOwn.js +7 -6
- package/dist/node_modules/lodash-es/get.js +6 -5
- package/dist/node_modules/lodash-es/has.js +7 -6
- package/dist/node_modules/lodash-es/hasIn.js +7 -6
- package/dist/node_modules/lodash-es/identity.js +4 -3
- package/dist/node_modules/lodash-es/isArguments.js +8 -6
- package/dist/node_modules/lodash-es/isArray.js +4 -2
- package/dist/node_modules/lodash-es/isArrayLike.js +7 -6
- package/dist/node_modules/lodash-es/isArrayLikeObject.js +7 -6
- package/dist/node_modules/lodash-es/isBuffer.js +6 -4
- package/dist/node_modules/lodash-es/isEmpty.js +18 -17
- package/dist/node_modules/lodash-es/isFunction.js +10 -9
- package/dist/node_modules/lodash-es/isLength.js +6 -5
- package/dist/node_modules/lodash-es/isMap.js +7 -5
- package/dist/node_modules/lodash-es/isObject.js +4 -3
- package/dist/node_modules/lodash-es/isObjectLike.js +4 -3
- package/dist/node_modules/lodash-es/isPlainObject.js +13 -12
- package/dist/node_modules/lodash-es/isSet.js +7 -5
- package/dist/node_modules/lodash-es/isString.js +9 -8
- package/dist/node_modules/lodash-es/isSymbol.js +8 -7
- package/dist/node_modules/lodash-es/isTypedArray.js +7 -5
- package/dist/node_modules/lodash-es/isUndefined.js +4 -3
- package/dist/node_modules/lodash-es/keys.js +8 -7
- package/dist/node_modules/lodash-es/keysIn.js +8 -7
- package/dist/node_modules/lodash-es/last.js +4 -3
- package/dist/node_modules/lodash-es/map.js +9 -8
- package/dist/node_modules/lodash-es/mapValues.js +9 -8
- package/dist/node_modules/lodash-es/max.js +8 -7
- package/dist/node_modules/lodash-es/memoize.js +9 -8
- package/dist/node_modules/lodash-es/merge.js +7 -5
- package/dist/node_modules/lodash-es/min.js +8 -7
- package/dist/node_modules/lodash-es/minBy.js +8 -7
- package/dist/node_modules/lodash-es/noop.js +4 -3
- package/dist/node_modules/lodash-es/now.js +6 -4
- package/dist/node_modules/lodash-es/pick.js +7 -5
- package/dist/node_modules/lodash-es/property.js +9 -8
- package/dist/node_modules/lodash-es/range.js +5 -3
- package/dist/node_modules/lodash-es/reduce.js +11 -10
- package/dist/node_modules/lodash-es/size.js +13 -12
- package/dist/node_modules/lodash-es/sortBy.js +9 -7
- package/dist/node_modules/lodash-es/stubArray.js +4 -3
- package/dist/node_modules/lodash-es/stubFalse.js +4 -3
- package/dist/node_modules/lodash-es/toFinite.js +7 -6
- package/dist/node_modules/lodash-es/toInteger.js +6 -5
- package/dist/node_modules/lodash-es/toNumber.js +14 -13
- package/dist/node_modules/lodash-es/toPlainObject.js +7 -6
- package/dist/node_modules/lodash-es/toString.js +6 -5
- package/dist/node_modules/lodash-es/union.js +9 -7
- package/dist/node_modules/lodash-es/uniqBy.js +7 -6
- package/dist/node_modules/lodash-es/uniqueId.js +8 -7
- package/dist/node_modules/lodash-es/values.js +7 -6
- package/dist/node_modules/lodash-es/zipObject.js +7 -6
- package/dist/node_modules/longest-streak/index.js +4 -2
- package/dist/node_modules/markdown-table/index.js +11 -9
- package/dist/node_modules/marked/lib/marked.esm.js +687 -685
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +14 -12
- package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +4 -2
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +182 -180
- package/dist/node_modules/mdast-util-gfm/lib/index.js +20 -18
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +69 -67
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +47 -45
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +15 -13
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +30 -28
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +16 -14
- package/dist/node_modules/mdast-util-math/lib/index.js +15 -13
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +5 -3
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +11 -9
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +8 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +55 -53
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +8 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +15 -13
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +8 -6
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +61 -59
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +18 -16
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +14 -12
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +8 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +8 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +43 -41
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +7 -5
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +11 -9
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +7 -5
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +12 -10
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +14 -12
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +7 -5
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +8 -7
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +6 -4
- package/dist/node_modules/mdast-util-to-string/lib/index.js +14 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-Q4EWVU46.js +695 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-DXYQGD6D.js +3038 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-YG6GDRKO.js → c4Diagram-AHTNJAMY.js} +581 -573
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-336JU56O.js +49 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-426QAEUC.js +11 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js +6 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-B4BG7PRW.js → chunk-4TB4RGXK.js} +590 -444
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +7 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js +3640 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +342 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +22 -20
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-BSJP7CBP.js +82 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EDXVE4YY.js +25 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js +570 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js +5 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js +2348 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OYMX7WX6.js +2014 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js +8 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.js +274 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-X2U36JSP.js +67 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XPW4576I.js +1146 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.js +62 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.js +32 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-6PBFFD2Q.js +29 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-HSJHXN6E.js +29 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +116 -114
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-KV5264BT.js +265 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.js +101 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-G4DWMVQ6.js +284 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.js +213 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-TYMM5635.js +133 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-Q2GNP2WA.js → erDiagram-SMLLAGMA.js} +549 -445
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-NV44I4VS.js → flowDiagram-DWJPFMVM.js} +1366 -1345
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-T4ZO3ILL.js +1720 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.js +730 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-42DDH7IO.js +19 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-UXIWVN3A.js +718 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-VCZTEJTY.js +885 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-3W4ZIXB7.js → kanban-definition-6JOO6SKY.js} +124 -118
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-VGOIOE7T.js → mindmap-definition-QFDTVHPH.js} +172 -122
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.js +119 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-AYHSOK5B.js → quadrantDiagram-34T5L4WZ.js} +279 -273
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-UZGBJVZJ.js → requirementDiagram-MS252O5E.js} +100 -66
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-XADWPNL6.js +529 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js +4159 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FHFEXIEX.js +222 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-QKLJ7IA2.js +27 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.js +1073 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-DHZGUBPP.js +961 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +578 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-5P7HB3ND.js +2000 -0
- package/dist/node_modules/mermaid/dist/mermaid.core.js +492 -445
- package/dist/node_modules/micromark/lib/constructs.js +80 -79
- package/dist/node_modules/micromark/lib/create-tokenizer.js +14 -12
- package/dist/node_modules/micromark/lib/initialize/content.js +9 -7
- package/dist/node_modules/micromark/lib/initialize/document.js +15 -14
- package/dist/node_modules/micromark/lib/initialize/flow.js +9 -7
- package/dist/node_modules/micromark/lib/initialize/text.js +8 -6
- package/dist/node_modules/micromark/lib/parse.js +20 -18
- package/dist/node_modules/micromark/lib/postprocess.js +6 -4
- package/dist/node_modules/micromark/lib/preprocess.js +6 -4
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +20 -18
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +17 -15
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +11 -9
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +15 -13
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +16 -14
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +22 -21
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +16 -15
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +13 -11
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +18 -17
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +30 -29
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +15 -13
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +68 -67
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +66 -64
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +112 -111
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +32 -31
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +12 -10
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +11 -9
- package/dist/node_modules/micromark-extension-gfm/index.js +16 -14
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +122 -120
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +33 -31
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +11 -9
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +6 -4
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +4 -2
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +36 -34
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +20 -18
- package/dist/node_modules/micromark-extension-math/lib/math-flow.js +21 -20
- package/dist/node_modules/micromark-extension-math/lib/math-text.js +11 -9
- package/dist/node_modules/micromark-extension-math/lib/syntax.js +8 -6
- package/dist/node_modules/micromark-factory-destination/index.js +10 -8
- package/dist/node_modules/micromark-factory-label/index.js +7 -5
- package/dist/node_modules/micromark-factory-space/index.js +7 -5
- package/dist/node_modules/micromark-factory-title/index.js +8 -6
- package/dist/node_modules/micromark-factory-whitespace/index.js +7 -5
- package/dist/node_modules/micromark-util-character/index.js +14 -12
- package/dist/node_modules/micromark-util-chunked/index.js +6 -4
- package/dist/node_modules/micromark-util-classify-character/index.js +7 -5
- package/dist/node_modules/micromark-util-combine-extensions/index.js +13 -11
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +4 -2
- package/dist/node_modules/micromark-util-decode-string/index.js +11 -9
- package/dist/node_modules/micromark-util-html-tag-name/index.js +4 -2
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +4 -2
- package/dist/node_modules/micromark-util-resolve-all/index.js +4 -2
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +6 -4
- package/dist/node_modules/micromark-util-subtokenize/index.js +10 -8
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +10 -8
- package/dist/node_modules/motion/dist/es/react.js +2 -2
- package/dist/node_modules/nanoid/index.browser.js +6 -4
- package/dist/node_modules/nanoid/url-alphabet/index.js +4 -2
- package/dist/node_modules/property-information/index.js +25 -23
- package/dist/node_modules/property-information/lib/aria.js +41 -39
- package/dist/node_modules/property-information/lib/find.js +18 -16
- package/dist/node_modules/property-information/lib/hast-to-react.js +4 -2
- package/dist/node_modules/property-information/lib/html.js +96 -94
- package/dist/node_modules/property-information/lib/normalize.js +4 -2
- package/dist/node_modules/property-information/lib/svg.js +79 -77
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +6 -4
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +4 -2
- package/dist/node_modules/property-information/lib/util/create.js +10 -8
- package/dist/node_modules/property-information/lib/util/defined-info.js +13 -11
- package/dist/node_modules/property-information/lib/util/info.js +5 -3
- package/dist/node_modules/property-information/lib/util/merge.js +6 -4
- package/dist/node_modules/property-information/lib/util/schema.js +5 -3
- package/dist/node_modules/property-information/lib/util/types.js +15 -14
- package/dist/node_modules/property-information/lib/xlink.js +5 -3
- package/dist/node_modules/property-information/lib/xml.js +5 -3
- package/dist/node_modules/property-information/lib/xmlns.js +7 -5
- package/dist/node_modules/rehype-harden/dist/index.js +47 -45
- package/dist/node_modules/rehype-katex/lib/index.js +25 -23
- package/dist/node_modules/rehype-raw/lib/index.js +6 -4
- package/dist/node_modules/rehype-sanitize/lib/index.js +6 -4
- package/dist/node_modules/remark-gfm/lib/index.js +9 -7
- package/dist/node_modules/remark-math/lib/index.js +9 -7
- package/dist/node_modules/remark-parse/lib/index.js +6 -4
- package/dist/node_modules/remark-rehype/lib/index.js +7 -5
- package/dist/node_modules/remend/dist/index.js +368 -297
- package/dist/node_modules/roughjs/bundled/rough.esm.js +877 -875
- package/dist/node_modules/shiki/dist/bundle-full.js +13 -11
- package/dist/node_modules/shiki/dist/chunk-CtajNgzt.js +17 -0
- package/dist/node_modules/shiki/dist/engine-oniguruma.js +7 -0
- package/dist/node_modules/shiki/dist/{langs.js → langs-bundle-full-DfKZStlK.js} +8 -6
- package/dist/node_modules/shiki/dist/themes.js +6 -4
- package/dist/node_modules/shiki/dist/wasm.js +2 -2
- package/dist/node_modules/space-separated-tokens/index.js +5 -3
- package/dist/node_modules/streamdown/dist/chunk-BO2N2NFS.js +2500 -0
- package/dist/node_modules/streamdown/dist/highlighted-body-OFNGDK62.js +37 -0
- package/dist/node_modules/streamdown/dist/index.js +1 -1
- package/dist/node_modules/streamdown/dist/mermaid-GHXKKRXX.js +3 -0
- package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +701 -699
- package/dist/node_modules/stringify-entities/lib/constant/dangerous.js +4 -2
- package/dist/node_modules/stringify-entities/lib/core.js +18 -16
- package/dist/node_modules/stringify-entities/lib/index.js +7 -5
- package/dist/node_modules/stringify-entities/lib/util/format-smart.js +10 -8
- package/dist/node_modules/stringify-entities/lib/util/to-decimal.js +6 -4
- package/dist/node_modules/stringify-entities/lib/util/to-hexadecimal.js +6 -4
- package/dist/node_modules/stringify-entities/lib/util/to-named.js +14 -12
- package/dist/node_modules/style-to-js/cjs/index.js +9 -7
- package/dist/node_modules/style-to-js/cjs/utilities.js +6 -4
- package/dist/node_modules/style-to-object/cjs/index.js +8 -6
- package/dist/node_modules/stylis/src/Enum.js +4 -2
- package/dist/node_modules/stylis/src/Parser.js +38 -36
- package/dist/node_modules/stylis/src/Serializer.js +17 -15
- package/dist/node_modules/stylis/src/Tokenizer.js +53 -51
- package/dist/node_modules/stylis/src/Utility.js +17 -15
- package/dist/node_modules/trim-lines/index.js +10 -8
- package/dist/node_modules/trough/lib/index.js +6 -4
- package/dist/node_modules/ts-dedent/esm/index.js +4 -2
- package/dist/node_modules/unified/lib/callable-instance.js +4 -2
- package/dist/node_modules/unified/lib/index.js +102 -101
- package/dist/node_modules/unified/node_modules/is-plain-obj/index.js +4 -2
- package/dist/node_modules/unist-util-find-after/lib/index.js +6 -4
- package/dist/node_modules/unist-util-is/lib/index.js +31 -29
- package/dist/node_modules/unist-util-position/lib/index.js +7 -5
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +10 -8
- package/dist/node_modules/unist-util-visit/lib/index.js +6 -4
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +4 -2
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +21 -20
- package/dist/node_modules/uuid/dist/esm-browser/native.js +3 -2
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +8 -6
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +7 -5
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +10 -9
- package/dist/node_modules/vaul/dist/index.js +276 -274
- package/dist/node_modules/vfile/lib/index.js +44 -42
- package/dist/node_modules/vfile/lib/minpath.browser.js +22 -20
- package/dist/node_modules/vfile/lib/minproc.browser.js +5 -3
- package/dist/node_modules/vfile/lib/minurl.browser.js +8 -6
- package/dist/node_modules/vfile/lib/minurl.shared.js +4 -2
- package/dist/node_modules/vfile-location/lib/index.js +7 -5
- package/dist/node_modules/vfile-message/lib/index.js +7 -5
- package/dist/node_modules/vscode-jsonrpc/browser.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +11 -9
- package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +28 -26
- package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +17 -15
- package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +13 -11
- package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +11 -9
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +31 -29
- package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +10 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +23 -21
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +14 -12
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +55 -53
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +10 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +12 -10
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +6 -4
- package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +21 -19
- package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +849 -847
- package/dist/node_modules/vscode-uri/lib/esm/index.js +6 -4
- package/dist/node_modules/web-namespaces/index.js +4 -2
- package/dist/node_modules/zwitch/index.js +7 -5
- package/dist/packages/contracts/dist/enums/index.js +14 -12
- package/dist/packages/contracts/dist/enums/registry.enum.js +6 -4
- package/dist/packages/contracts/dist/enums/sort-order.enum.js +6 -4
- package/dist/packages/contracts/dist/enums/user-type.enum.js +6 -4
- package/dist/packages/contracts/dist/enums/workflow-state.enum.js +6 -4
- package/dist/pages/DashboardPage.js +55 -99
- package/dist/pages/DebugPage.js +12 -17
- package/dist/pages/DebugWorkflowDetailsPage.js +91 -119
- package/dist/pages/DebugWorkflowsPage.js +39 -37
- package/dist/pages/EmbedWorkbenchPage.js +48 -62
- package/dist/pages/PreviewWorkbenchPage.js +243 -324
- package/dist/pages/RunsListPage.js +44 -61
- package/dist/pages/RunsPage.js +31 -48
- package/dist/pages/StudioLandingPage.js +97 -132
- package/dist/pages/WorkbenchPage.js +56 -86
- package/dist/pages/WorkflowDebugPage.js +74 -110
- package/dist/pages/WorkspacePage.js +72 -115
- package/dist/pages/WorkspaceRunsPage.js +43 -70
- package/dist/pages/WorkspacesPage.js +24 -35
- package/dist/providers/ComponentOverridesProvider.js +9 -12
- package/dist/providers/InvalidationEventsProvider.js +33 -35
- package/dist/providers/QueryProvider.js +14 -18
- package/dist/providers/SseProvider.js +28 -29
- package/dist/providers/StudioProvider.js +14 -19
- package/dist/routing/LocalRouter.js +6 -9
- package/dist/services/createApiClient.js +7 -5
- package/dist/services/eventEmitter.js +3 -2
- package/dist/services/index.js +2 -2
- package/dist/types/ai.types.js +7 -5
- package/package.json +33 -33
- package/dist/_virtual/rolldown_runtime.js +0 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7HQA4BMR.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4F5CHEZ2.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-B2363JML.js +0 -60
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FRFDVMJY.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PL6DKKU2.js +0 -28
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-SJTYNZTY.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TCCFYFTB.js +0 -787
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TQ3KTPDO.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UMXZTB3W.js +0 -30
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-G5XIXVHT.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-VBDWY6EO.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-DYOGHKS2.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-VRWISCQL.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-ZZBFDIW7.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-GDKQZRPO.js +0 -3
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +0 -2
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +0 -16
- package/dist/node_modules/langium/lib/index.js +0 -182
- package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
- package/dist/node_modules/langium/lib/utils/index.js +0 -53
- package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
- package/dist/node_modules/lodash/_Symbol.js +0 -7
- package/dist/node_modules/lodash/_baseGetTag.js +0 -13
- package/dist/node_modules/lodash/_baseTrim.js +0 -11
- package/dist/node_modules/lodash/_freeGlobal.js +0 -6
- package/dist/node_modules/lodash/_getRawTag.js +0 -17
- package/dist/node_modules/lodash/_objectToString.js +0 -10
- package/dist/node_modules/lodash/_root.js +0 -8
- package/dist/node_modules/lodash/_trimmedEndIndex.js +0 -11
- package/dist/node_modules/lodash/isObject.js +0 -10
- package/dist/node_modules/lodash/isObjectLike.js +0 -9
- package/dist/node_modules/lodash/isSymbol.js +0 -12
- package/dist/node_modules/lodash/now.js +0 -10
- package/dist/node_modules/lodash/toNumber.js +0 -22
- package/dist/node_modules/lodash-es/_arrayAggregator.js +0 -9
- package/dist/node_modules/lodash-es/_arrayEvery.js +0 -6
- package/dist/node_modules/lodash-es/_baseAggregator.js +0 -8
- package/dist/node_modules/lodash-es/_baseDifference.js +0 -22
- package/dist/node_modules/lodash-es/_baseEvery.js +0 -9
- package/dist/node_modules/lodash-es/_baseIsRegExp.js +0 -8
- package/dist/node_modules/lodash-es/_baseSlice.js +0 -8
- package/dist/node_modules/lodash-es/_baseSome.js +0 -9
- package/dist/node_modules/lodash-es/_createAggregator.js +0 -12
- package/dist/node_modules/lodash-es/assign.js +0 -14
- package/dist/node_modules/lodash-es/compact.js +0 -9
- package/dist/node_modules/lodash-es/difference.js +0 -8
- package/dist/node_modules/lodash-es/drop.js +0 -8
- package/dist/node_modules/lodash-es/dropRight.js +0 -8
- package/dist/node_modules/lodash-es/every.js +0 -11
- package/dist/node_modules/lodash-es/groupBy.js +0 -6
- package/dist/node_modules/lodash-es/head.js +0 -5
- package/dist/node_modules/lodash-es/includes.js +0 -13
- package/dist/node_modules/lodash-es/indexOf.js +0 -11
- package/dist/node_modules/lodash-es/isRegExp.js +0 -5
- package/dist/node_modules/lodash-es/negate.js +0 -16
- package/dist/node_modules/lodash-es/pickBy.js +0 -15
- package/dist/node_modules/lodash-es/reject.js +0 -10
- package/dist/node_modules/lodash-es/some.js +0 -11
- package/dist/node_modules/lodash-es/uniq.js +0 -6
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.js +0 -673
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VD42YOAC.js +0 -3010
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +0 -1547
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ATLVNIR6.js +0 -65
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.js +0 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DI55MBZ5.js +0 -1994
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DR5Q36YT.js +0 -135
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EXTU4WIE.js +0 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HN2XXSSU.js +0 -74
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.js +0 -247
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.js +0 -3516
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MI3HLSF2.js +0 -1140
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.js +0 -39
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QN33PNHL.js +0 -23
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.js +0 -497
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.js +0 -338
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.js +0 -55
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-2ON5EDUG.js +0 -26
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-WZHVMYZB.js +0 -26
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-6UL2VRFP.js +0 -263
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-PSM6KHXK.js +0 -283
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.js +0 -211
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-S2PKOQOG.js +0 -129
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-JELNMOA3.js +0 -1688
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-V2S2FVAM.js +0 -621
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-HS3SLOUP.js +0 -18
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-XKPGCS4Q.js +0 -883
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.js +0 -117
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-TZEHDZUN.js +0 -519
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.js +0 -3560
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FKZM4ZOC.js +0 -220
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-4FDKWEC3.js +0 -25
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.js +0 -833
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-PRI3JC2R.js +0 -1975
- package/dist/node_modules/streamdown/dist/chunk-RLXIAIE6.js +0 -2189
- package/dist/node_modules/streamdown/dist/highlighted-body-B3W2YXNL.js +0 -33
- package/dist/node_modules/streamdown/dist/mermaid-3ZIDBTTL.js +0 -3
|
@@ -0,0 +1,2500 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { SKIP as e, visitParents as t } from "../../unist-util-visit-parents/lib/index.js";
|
|
3
|
+
import { visit as n } from "../../unist-util-visit/lib/index.js";
|
|
4
|
+
import r from "../../remark-gfm/lib/index.js";
|
|
5
|
+
import { harden as i } from "../../rehype-harden/dist/index.js";
|
|
6
|
+
import a from "../../rehype-raw/lib/index.js";
|
|
7
|
+
import { defaultSchema as o } from "../../hast-util-sanitize/lib/schema.js";
|
|
8
|
+
import s from "../../rehype-sanitize/lib/index.js";
|
|
9
|
+
import { $e as c } from "../../remend/dist/index.js";
|
|
10
|
+
import { toJsxRuntime as l } from "../../hast-util-to-jsx-runtime/lib/index.js";
|
|
11
|
+
import { urlAttributes as u } from "../../html-url-attributes/lib/index.js";
|
|
12
|
+
import d from "../../remark-parse/lib/index.js";
|
|
13
|
+
import f from "../../remark-rehype/lib/index.js";
|
|
14
|
+
import { unified as p } from "../../unified/lib/index.js";
|
|
15
|
+
import { x as m } from "../node_modules/marked/lib/marked.esm.js";
|
|
16
|
+
import { Suspense as h, cloneElement as g, createContext as _, createElement as v, isValidElement as y, lazy as b, memo as x, useCallback as S, useContext as C, useEffect as w, useId as ee, useMemo as T, useRef as E, useState as D, useTransition as te } from "react";
|
|
17
|
+
import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
18
|
+
import { clsx as j } from "clsx";
|
|
19
|
+
import { twMerge as M } from "tailwind-merge";
|
|
20
|
+
import { createPortal as N } from "react-dom";
|
|
21
|
+
//#region ../../node_modules/streamdown/dist/chunk-BO2N2NFS.js
|
|
22
|
+
var P = 300, F = "300px", ne = 500;
|
|
23
|
+
function re(e = {}) {
|
|
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) => {
|
|
25
|
+
let t = Date.now();
|
|
26
|
+
return window.setTimeout(() => {
|
|
27
|
+
e({
|
|
28
|
+
didTimeout: !1,
|
|
29
|
+
timeRemaining: () => Math.max(0, 50 - (Date.now() - t))
|
|
30
|
+
});
|
|
31
|
+
}, 1);
|
|
32
|
+
}, []), d = T(() => typeof window < "u" && window.requestIdleCallback ? (e, t) => window.requestIdleCallback(e, t) : u, [u]), f = T(() => typeof window < "u" && window.cancelIdleCallback ? (e) => window.cancelIdleCallback(e) : (e) => {
|
|
33
|
+
clearTimeout(e);
|
|
34
|
+
}, []);
|
|
35
|
+
return w(() => {
|
|
36
|
+
if (t) {
|
|
37
|
+
o(!0);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
let e = s.current;
|
|
41
|
+
if (!e) return;
|
|
42
|
+
c.current &&= (clearTimeout(c.current), null), l.current &&= (f(l.current), null);
|
|
43
|
+
let a = () => {
|
|
44
|
+
c.current &&= (clearTimeout(c.current), null), l.current &&= (f(l.current), null);
|
|
45
|
+
}, u = (e) => {
|
|
46
|
+
l.current = d((t) => {
|
|
47
|
+
t.timeRemaining() > 0 || t.didTimeout ? (o(!0), e.disconnect()) : l.current = d(() => {
|
|
48
|
+
o(!0), e.disconnect();
|
|
49
|
+
}, { timeout: i / 2 });
|
|
50
|
+
}, { timeout: i });
|
|
51
|
+
}, p = (e) => {
|
|
52
|
+
a(), c.current = window.setTimeout(() => {
|
|
53
|
+
var t;
|
|
54
|
+
let n = e.takeRecords();
|
|
55
|
+
(n.length === 0 || (t = n.at(-1)?.isIntersecting) != null && t) && u(e);
|
|
56
|
+
}, n);
|
|
57
|
+
}, m = (e, t) => {
|
|
58
|
+
e.isIntersecting ? p(t) : a();
|
|
59
|
+
}, h = new IntersectionObserver((e) => {
|
|
60
|
+
for (let t of e) m(t, h);
|
|
61
|
+
}, {
|
|
62
|
+
rootMargin: r,
|
|
63
|
+
threshold: 0
|
|
64
|
+
});
|
|
65
|
+
return h.observe(e), () => {
|
|
66
|
+
c.current && clearTimeout(c.current), l.current && f(l.current), h.disconnect();
|
|
67
|
+
};
|
|
68
|
+
}, [
|
|
69
|
+
t,
|
|
70
|
+
n,
|
|
71
|
+
r,
|
|
72
|
+
i,
|
|
73
|
+
f,
|
|
74
|
+
d
|
|
75
|
+
]), {
|
|
76
|
+
shouldRender: a,
|
|
77
|
+
containerRef: s
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
var ie = /\s/, ae = /^\s+$/, oe = new Set([
|
|
81
|
+
"code",
|
|
82
|
+
"pre",
|
|
83
|
+
"svg",
|
|
84
|
+
"math",
|
|
85
|
+
"annotation"
|
|
86
|
+
]), I = (e) => typeof e == "object" && !!e && "type" in e && e.type === "element", se = (e) => e.some((e) => I(e) && oe.has(e.tagName)), L = (e) => {
|
|
87
|
+
let t = [], n = "", r = !1;
|
|
88
|
+
for (let i of e) {
|
|
89
|
+
let e = ie.test(i);
|
|
90
|
+
e !== r && n && (t.push(n), n = ""), n += i, r = e;
|
|
91
|
+
}
|
|
92
|
+
return n && t.push(n), t;
|
|
93
|
+
}, ce = (e) => {
|
|
94
|
+
let t = [], n = "";
|
|
95
|
+
for (let r of e) ie.test(r) ? n += r : (n &&= (t.push(n), ""), t.push(r));
|
|
96
|
+
return n && t.push(n), t;
|
|
97
|
+
}, R = (e, t, n, r, i, a) => {
|
|
98
|
+
let o = `--sd-animation:sd-${t};--sd-duration:${i ? 0 : n}ms;--sd-easing:${r}`;
|
|
99
|
+
return a && (o += `;--sd-delay:${a}ms`), {
|
|
100
|
+
type: "element",
|
|
101
|
+
tagName: "span",
|
|
102
|
+
properties: {
|
|
103
|
+
"data-sd-animate": !0,
|
|
104
|
+
style: o
|
|
105
|
+
},
|
|
106
|
+
children: [{
|
|
107
|
+
type: "text",
|
|
108
|
+
value: e
|
|
109
|
+
}]
|
|
110
|
+
};
|
|
111
|
+
}, z = (t, n, r, i, a) => {
|
|
112
|
+
let o = n.at(-1);
|
|
113
|
+
if (!(o && "children" in o)) return;
|
|
114
|
+
if (se(n)) return e;
|
|
115
|
+
let s = o, c = s.children.indexOf(t);
|
|
116
|
+
if (c === -1) return;
|
|
117
|
+
let l = t.value;
|
|
118
|
+
if (!l.trim()) {
|
|
119
|
+
a.count += l.length;
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
let u = r.sep === "char" ? ce(l) : L(l), d = i.prevContentLength, f = u.map((e) => {
|
|
123
|
+
let t = a.count;
|
|
124
|
+
if (a.count += e.length, ae.test(e)) return {
|
|
125
|
+
type: "text",
|
|
126
|
+
value: e
|
|
127
|
+
};
|
|
128
|
+
let n = d > 0 && t < d, i = n ? 0 : a.newIndex++ * r.stagger;
|
|
129
|
+
return R(e, r.animation, r.duration, r.easing, n, i);
|
|
130
|
+
});
|
|
131
|
+
return s.children.splice(c, 1, ...f), c + f.length;
|
|
132
|
+
}, B = 0;
|
|
133
|
+
function le(e) {
|
|
134
|
+
let n = {
|
|
135
|
+
animation: e?.animation ?? "fadeIn",
|
|
136
|
+
duration: e?.duration ?? 150,
|
|
137
|
+
easing: e?.easing ?? "ease",
|
|
138
|
+
sep: e?.sep ?? "word",
|
|
139
|
+
stagger: e?.stagger ?? 40
|
|
140
|
+
}, r = {
|
|
141
|
+
prevContentLength: 0,
|
|
142
|
+
lastRenderCharCount: 0
|
|
143
|
+
}, i = B++, a = () => (e) => {
|
|
144
|
+
let i = {
|
|
145
|
+
count: 0,
|
|
146
|
+
newIndex: 0
|
|
147
|
+
};
|
|
148
|
+
t(e, "text", (e, t) => z(e, t, n, r, i)), r.lastRenderCharCount = i.count, r.prevContentLength = 0;
|
|
149
|
+
};
|
|
150
|
+
return Object.defineProperty(a, "name", { value: `rehypeAnimate$${i}` }), {
|
|
151
|
+
name: "animate",
|
|
152
|
+
type: "animate",
|
|
153
|
+
rehypePlugin: a,
|
|
154
|
+
setPrevContentLength(e) {
|
|
155
|
+
r.prevContentLength = e;
|
|
156
|
+
},
|
|
157
|
+
getLastRenderCharCount() {
|
|
158
|
+
let e = r.lastRenderCharCount;
|
|
159
|
+
return r.lastRenderCharCount = 0, e;
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
le();
|
|
164
|
+
var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
|
|
165
|
+
if (!e || !t) return t;
|
|
166
|
+
let n = `${e}:`;
|
|
167
|
+
return t.split(/\s+/).filter(Boolean).map((t) => t.startsWith(n) ? t : `${e}:${t}`).join(" ");
|
|
168
|
+
}, pe = (e) => e ? (...t) => fe(e, M(j(t))) : V, H = (e, t, n) => {
|
|
169
|
+
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
|
+
o.href = a, o.download = e, document.body.appendChild(o), o.click(), document.body.removeChild(o), URL.revokeObjectURL(a);
|
|
171
|
+
}, me = _(V), U = () => C(me), W = V("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"), he = (e) => {
|
|
172
|
+
let t = {};
|
|
173
|
+
for (let n of e.split(";")) {
|
|
174
|
+
let e = n.indexOf(":");
|
|
175
|
+
if (e > 0) {
|
|
176
|
+
let r = n.slice(0, e).trim(), i = n.slice(e + 1).trim();
|
|
177
|
+
r && i && (t[r] = i);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
return t;
|
|
181
|
+
}, G = x(({ children: e, result: t, language: n, className: r, startLine: i, lineNumbers: a = !0, ...o }) => {
|
|
182
|
+
let s = U(), c = T(() => s(W), [s]), l = T(() => {
|
|
183
|
+
let e = {};
|
|
184
|
+
return t.bg && (e["--sdm-bg"] = t.bg), t.fg && (e["--sdm-fg"] = t.fg), t.rootStyle && Object.assign(e, he(t.rootStyle)), e;
|
|
185
|
+
}, [
|
|
186
|
+
t.bg,
|
|
187
|
+
t.fg,
|
|
188
|
+
t.rootStyle
|
|
189
|
+
]);
|
|
190
|
+
return k("div", {
|
|
191
|
+
className: s(r, "overflow-x-auto rounded-md border border-border bg-background p-4 text-sm"),
|
|
192
|
+
"data-language": n,
|
|
193
|
+
"data-streamdown": "code-block-body",
|
|
194
|
+
...o,
|
|
195
|
+
children: k("pre", {
|
|
196
|
+
className: s(r, "bg-[var(--sdm-bg,inherit]", "dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit)]"),
|
|
197
|
+
style: l,
|
|
198
|
+
children: k("code", {
|
|
199
|
+
className: a ? s("[counter-increment:line_0] [counter-reset:line]") : void 0,
|
|
200
|
+
style: a && i && i > 1 ? { counterReset: `line ${i - 1}` } : void 0,
|
|
201
|
+
children: t.tokens.map((e, t) => k("span", {
|
|
202
|
+
className: a ? c : void 0,
|
|
203
|
+
children: e.length === 0 || e.length === 1 && e[0].content === "" ? "\n" : e.map((e, t) => {
|
|
204
|
+
let n = {}, r = !!e.bgColor;
|
|
205
|
+
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 k("span", {
|
|
207
|
+
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
|
+
style: n,
|
|
209
|
+
...e.htmlAttrs,
|
|
210
|
+
children: e.content
|
|
211
|
+
}, t);
|
|
212
|
+
})
|
|
213
|
+
}, t))
|
|
214
|
+
})
|
|
215
|
+
})
|
|
216
|
+
});
|
|
217
|
+
}, (e, t) => e.result === t.result && e.language === t.language && e.className === t.className && e.startLine === t.startLine && e.lineNumbers === t.lineNumbers), K = ({ className: e, language: t, style: n, isIncomplete: r, ...i }) => k("div", {
|
|
218
|
+
className: U()("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", e),
|
|
219
|
+
"data-incomplete": r || void 0,
|
|
220
|
+
"data-language": t,
|
|
221
|
+
"data-streamdown": "code-block",
|
|
222
|
+
style: {
|
|
223
|
+
contentVisibility: "auto",
|
|
224
|
+
containIntrinsicSize: "auto 200px",
|
|
225
|
+
...n
|
|
226
|
+
},
|
|
227
|
+
...i
|
|
228
|
+
}), ge = _({ code: "" }), _e = () => C(ge), q = ({ language: e }) => {
|
|
229
|
+
let t = U();
|
|
230
|
+
return k("div", {
|
|
231
|
+
className: t("flex h-8 items-center text-muted-foreground text-xs"),
|
|
232
|
+
"data-language": e,
|
|
233
|
+
"data-streamdown": "code-block-header",
|
|
234
|
+
children: k("span", {
|
|
235
|
+
className: t("ml-1 font-mono lowercase"),
|
|
236
|
+
children: e
|
|
237
|
+
})
|
|
238
|
+
});
|
|
239
|
+
}, ve = (e) => {
|
|
240
|
+
let t = e.length;
|
|
241
|
+
for (; t > 0 && e[t - 1] === "\n";) t--;
|
|
242
|
+
return e.slice(0, t);
|
|
243
|
+
}, ye = b(() => import("./highlighted-body-OFNGDK62.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), be = ({ code: e, language: t, className: n, children: r, isIncomplete: i = !1, startLine: a, lineNumbers: o, ...s }) => {
|
|
244
|
+
let c = U(), l = T(() => ve(e), [e]), u = T(() => ({
|
|
245
|
+
bg: "transparent",
|
|
246
|
+
fg: "inherit",
|
|
247
|
+
tokens: l.split("\n").map((e) => [{
|
|
248
|
+
content: e,
|
|
249
|
+
color: "inherit",
|
|
250
|
+
bgColor: "transparent",
|
|
251
|
+
htmlStyle: {},
|
|
252
|
+
offset: 0
|
|
253
|
+
}])
|
|
254
|
+
}), [l]);
|
|
255
|
+
return k(ge.Provider, {
|
|
256
|
+
value: { code: e },
|
|
257
|
+
children: A(K, {
|
|
258
|
+
isIncomplete: i,
|
|
259
|
+
language: t,
|
|
260
|
+
children: [
|
|
261
|
+
k(q, { language: t }),
|
|
262
|
+
r ? k("div", {
|
|
263
|
+
className: c("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),
|
|
264
|
+
children: k("div", {
|
|
265
|
+
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
|
+
"data-streamdown": "code-block-actions",
|
|
267
|
+
children: r
|
|
268
|
+
})
|
|
269
|
+
}) : null,
|
|
270
|
+
k(h, {
|
|
271
|
+
fallback: k(G, {
|
|
272
|
+
className: n,
|
|
273
|
+
language: t,
|
|
274
|
+
lineNumbers: o,
|
|
275
|
+
result: u,
|
|
276
|
+
startLine: a,
|
|
277
|
+
...s
|
|
278
|
+
}),
|
|
279
|
+
children: k(ye, {
|
|
280
|
+
className: n,
|
|
281
|
+
code: l,
|
|
282
|
+
language: t,
|
|
283
|
+
lineNumbers: o,
|
|
284
|
+
raw: u,
|
|
285
|
+
startLine: a,
|
|
286
|
+
...s
|
|
287
|
+
})
|
|
288
|
+
})
|
|
289
|
+
]
|
|
290
|
+
})
|
|
291
|
+
});
|
|
292
|
+
}, J = {
|
|
293
|
+
CheckIcon: (e) => k("svg", {
|
|
294
|
+
color: "currentColor",
|
|
295
|
+
height: 16,
|
|
296
|
+
strokeLinejoin: "round",
|
|
297
|
+
viewBox: "0 0 16 16",
|
|
298
|
+
width: 16,
|
|
299
|
+
...e,
|
|
300
|
+
children: k("path", {
|
|
301
|
+
clipRule: "evenodd",
|
|
302
|
+
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
|
+
fill: "currentColor",
|
|
304
|
+
fillRule: "evenodd"
|
|
305
|
+
})
|
|
306
|
+
}),
|
|
307
|
+
CopyIcon: (e) => k("svg", {
|
|
308
|
+
color: "currentColor",
|
|
309
|
+
height: 16,
|
|
310
|
+
strokeLinejoin: "round",
|
|
311
|
+
viewBox: "0 0 16 16",
|
|
312
|
+
width: 16,
|
|
313
|
+
...e,
|
|
314
|
+
children: k("path", {
|
|
315
|
+
clipRule: "evenodd",
|
|
316
|
+
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
|
+
fill: "currentColor",
|
|
318
|
+
fillRule: "evenodd"
|
|
319
|
+
})
|
|
320
|
+
}),
|
|
321
|
+
DownloadIcon: (e) => k("svg", {
|
|
322
|
+
color: "currentColor",
|
|
323
|
+
height: 16,
|
|
324
|
+
strokeLinejoin: "round",
|
|
325
|
+
viewBox: "0 0 16 16",
|
|
326
|
+
width: 16,
|
|
327
|
+
...e,
|
|
328
|
+
children: k("path", {
|
|
329
|
+
clipRule: "evenodd",
|
|
330
|
+
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
|
+
fill: "currentColor",
|
|
332
|
+
fillRule: "evenodd"
|
|
333
|
+
})
|
|
334
|
+
}),
|
|
335
|
+
ExternalLinkIcon: (e) => k("svg", {
|
|
336
|
+
color: "currentColor",
|
|
337
|
+
height: 16,
|
|
338
|
+
strokeLinejoin: "round",
|
|
339
|
+
viewBox: "0 0 16 16",
|
|
340
|
+
width: 16,
|
|
341
|
+
...e,
|
|
342
|
+
children: k("path", {
|
|
343
|
+
clipRule: "evenodd",
|
|
344
|
+
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
|
+
fill: "currentColor",
|
|
346
|
+
fillRule: "evenodd"
|
|
347
|
+
})
|
|
348
|
+
}),
|
|
349
|
+
Loader2Icon: (e) => A("svg", {
|
|
350
|
+
color: "currentColor",
|
|
351
|
+
height: 16,
|
|
352
|
+
strokeLinejoin: "round",
|
|
353
|
+
viewBox: "0 0 16 16",
|
|
354
|
+
width: 16,
|
|
355
|
+
...e,
|
|
356
|
+
children: [
|
|
357
|
+
k("path", {
|
|
358
|
+
d: "M8 0V4",
|
|
359
|
+
stroke: "currentColor",
|
|
360
|
+
strokeWidth: "1.5"
|
|
361
|
+
}),
|
|
362
|
+
k("path", {
|
|
363
|
+
d: "M8 16V12",
|
|
364
|
+
opacity: "0.5",
|
|
365
|
+
stroke: "currentColor",
|
|
366
|
+
strokeWidth: "1.5"
|
|
367
|
+
}),
|
|
368
|
+
k("path", {
|
|
369
|
+
d: "M3.29773 1.52783L5.64887 4.7639",
|
|
370
|
+
opacity: "0.9",
|
|
371
|
+
stroke: "currentColor",
|
|
372
|
+
strokeWidth: "1.5"
|
|
373
|
+
}),
|
|
374
|
+
k("path", {
|
|
375
|
+
d: "M12.7023 1.52783L10.3511 4.7639",
|
|
376
|
+
opacity: "0.1",
|
|
377
|
+
stroke: "currentColor",
|
|
378
|
+
strokeWidth: "1.5"
|
|
379
|
+
}),
|
|
380
|
+
k("path", {
|
|
381
|
+
d: "M12.7023 14.472L10.3511 11.236",
|
|
382
|
+
opacity: "0.4",
|
|
383
|
+
stroke: "currentColor",
|
|
384
|
+
strokeWidth: "1.5"
|
|
385
|
+
}),
|
|
386
|
+
k("path", {
|
|
387
|
+
d: "M3.29773 14.472L5.64887 11.236",
|
|
388
|
+
opacity: "0.6",
|
|
389
|
+
stroke: "currentColor",
|
|
390
|
+
strokeWidth: "1.5"
|
|
391
|
+
}),
|
|
392
|
+
k("path", {
|
|
393
|
+
d: "M15.6085 5.52783L11.8043 6.7639",
|
|
394
|
+
opacity: "0.2",
|
|
395
|
+
stroke: "currentColor",
|
|
396
|
+
strokeWidth: "1.5"
|
|
397
|
+
}),
|
|
398
|
+
k("path", {
|
|
399
|
+
d: "M0.391602 10.472L4.19583 9.23598",
|
|
400
|
+
opacity: "0.7",
|
|
401
|
+
stroke: "currentColor",
|
|
402
|
+
strokeWidth: "1.5"
|
|
403
|
+
}),
|
|
404
|
+
k("path", {
|
|
405
|
+
d: "M15.6085 10.4722L11.8043 9.2361",
|
|
406
|
+
opacity: "0.3",
|
|
407
|
+
stroke: "currentColor",
|
|
408
|
+
strokeWidth: "1.5"
|
|
409
|
+
}),
|
|
410
|
+
k("path", {
|
|
411
|
+
d: "M0.391602 5.52783L4.19583 6.7639",
|
|
412
|
+
opacity: "0.8",
|
|
413
|
+
stroke: "currentColor",
|
|
414
|
+
strokeWidth: "1.5"
|
|
415
|
+
})
|
|
416
|
+
]
|
|
417
|
+
}),
|
|
418
|
+
Maximize2Icon: (e) => k("svg", {
|
|
419
|
+
color: "currentColor",
|
|
420
|
+
height: 16,
|
|
421
|
+
strokeLinejoin: "round",
|
|
422
|
+
viewBox: "0 0 16 16",
|
|
423
|
+
width: 16,
|
|
424
|
+
...e,
|
|
425
|
+
children: k("path", {
|
|
426
|
+
clipRule: "evenodd",
|
|
427
|
+
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
|
+
fill: "currentColor",
|
|
429
|
+
fillRule: "evenodd"
|
|
430
|
+
})
|
|
431
|
+
}),
|
|
432
|
+
RotateCcwIcon: (e) => k("svg", {
|
|
433
|
+
color: "currentColor",
|
|
434
|
+
height: 16,
|
|
435
|
+
strokeLinejoin: "round",
|
|
436
|
+
viewBox: "0 0 16 16",
|
|
437
|
+
width: 16,
|
|
438
|
+
...e,
|
|
439
|
+
children: k("path", {
|
|
440
|
+
clipRule: "evenodd",
|
|
441
|
+
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
|
+
fill: "currentColor",
|
|
443
|
+
fillRule: "evenodd"
|
|
444
|
+
})
|
|
445
|
+
}),
|
|
446
|
+
XIcon: (e) => k("svg", {
|
|
447
|
+
color: "currentColor",
|
|
448
|
+
height: 16,
|
|
449
|
+
strokeLinejoin: "round",
|
|
450
|
+
viewBox: "0 0 16 16",
|
|
451
|
+
width: 16,
|
|
452
|
+
...e,
|
|
453
|
+
children: k("path", {
|
|
454
|
+
clipRule: "evenodd",
|
|
455
|
+
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
|
+
fill: "currentColor",
|
|
457
|
+
fillRule: "evenodd"
|
|
458
|
+
})
|
|
459
|
+
}),
|
|
460
|
+
ZoomInIcon: (e) => k("svg", {
|
|
461
|
+
color: "currentColor",
|
|
462
|
+
height: 16,
|
|
463
|
+
strokeLinejoin: "round",
|
|
464
|
+
viewBox: "0 0 16 16",
|
|
465
|
+
width: 16,
|
|
466
|
+
...e,
|
|
467
|
+
children: k("path", {
|
|
468
|
+
clipRule: "evenodd",
|
|
469
|
+
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
|
+
fill: "currentColor",
|
|
471
|
+
fillRule: "evenodd"
|
|
472
|
+
})
|
|
473
|
+
}),
|
|
474
|
+
ZoomOutIcon: (e) => k("svg", {
|
|
475
|
+
color: "currentColor",
|
|
476
|
+
height: 16,
|
|
477
|
+
strokeLinejoin: "round",
|
|
478
|
+
viewBox: "0 0 16 16",
|
|
479
|
+
width: 16,
|
|
480
|
+
...e,
|
|
481
|
+
children: k("path", {
|
|
482
|
+
clipRule: "evenodd",
|
|
483
|
+
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
|
+
fill: "currentColor",
|
|
485
|
+
fillRule: "evenodd"
|
|
486
|
+
})
|
|
487
|
+
})
|
|
488
|
+
}, xe = _(J), Se = (e, t) => {
|
|
489
|
+
if (e === t) return !0;
|
|
490
|
+
if (!(e && t)) return e === t;
|
|
491
|
+
let n = Object.keys(e), r = Object.keys(t);
|
|
492
|
+
return n.length === r.length ? n.every((n) => e[n] === t[n]) : !1;
|
|
493
|
+
}, Ce = ({ icons: e, children: t }) => {
|
|
494
|
+
let n = E(e), r = E(e ? {
|
|
495
|
+
...J,
|
|
496
|
+
...e
|
|
497
|
+
} : J);
|
|
498
|
+
Se(n.current, e) || (n.current = e, r.current = e ? {
|
|
499
|
+
...J,
|
|
500
|
+
...e
|
|
501
|
+
} : J);
|
|
502
|
+
let i = r.current;
|
|
503
|
+
return k(xe.Provider, {
|
|
504
|
+
value: i,
|
|
505
|
+
children: t
|
|
506
|
+
});
|
|
507
|
+
}, Y = () => C(xe), we = {
|
|
508
|
+
copyCode: "Copy Code",
|
|
509
|
+
downloadFile: "Download file",
|
|
510
|
+
downloadDiagram: "Download diagram",
|
|
511
|
+
downloadDiagramAsSvg: "Download diagram as SVG",
|
|
512
|
+
downloadDiagramAsPng: "Download diagram as PNG",
|
|
513
|
+
downloadDiagramAsMmd: "Download diagram as MMD",
|
|
514
|
+
viewFullscreen: "View fullscreen",
|
|
515
|
+
exitFullscreen: "Exit fullscreen",
|
|
516
|
+
mermaidFormatSvg: "SVG",
|
|
517
|
+
mermaidFormatPng: "PNG",
|
|
518
|
+
mermaidFormatMmd: "MMD",
|
|
519
|
+
copyTable: "Copy table",
|
|
520
|
+
copyTableAsMarkdown: "Copy table as Markdown",
|
|
521
|
+
copyTableAsCsv: "Copy table as CSV",
|
|
522
|
+
copyTableAsTsv: "Copy table as TSV",
|
|
523
|
+
downloadTable: "Download table",
|
|
524
|
+
downloadTableAsCsv: "Download table as CSV",
|
|
525
|
+
downloadTableAsMarkdown: "Download table as Markdown",
|
|
526
|
+
tableFormatMarkdown: "Markdown",
|
|
527
|
+
tableFormatCsv: "CSV",
|
|
528
|
+
tableFormatTsv: "TSV",
|
|
529
|
+
imageNotAvailable: "Image not available",
|
|
530
|
+
downloadImage: "Download image",
|
|
531
|
+
openExternalLink: "Open external link?",
|
|
532
|
+
externalLinkWarning: "You're about to visit an external website.",
|
|
533
|
+
close: "Close",
|
|
534
|
+
copyLink: "Copy link",
|
|
535
|
+
copied: "Copied",
|
|
536
|
+
openLink: "Open link"
|
|
537
|
+
}, Te = _(we), X = () => C(Te), Ee = ({ onCopy: e, onError: t, timeout: n = 2e3, children: r, className: i, code: a, ...o }) => {
|
|
538
|
+
let s = U(), [c, l] = D(!1), u = E(0), { code: d } = _e(), { isAnimating: f } = C($), p = X(), m = a ?? d, h = async () => {
|
|
539
|
+
var r;
|
|
540
|
+
if (typeof window > "u" || !((r = navigator == null ? void 0 : navigator.clipboard) != null && r.writeText)) {
|
|
541
|
+
t?.(/* @__PURE__ */ Error("Clipboard API not available"));
|
|
542
|
+
return;
|
|
543
|
+
}
|
|
544
|
+
try {
|
|
545
|
+
c || (await navigator.clipboard.writeText(m), l(!0), e?.(), u.current = window.setTimeout(() => l(!1), n));
|
|
546
|
+
} catch (e) {
|
|
547
|
+
t?.(e);
|
|
548
|
+
}
|
|
549
|
+
};
|
|
550
|
+
w(() => () => {
|
|
551
|
+
window.clearTimeout(u.current);
|
|
552
|
+
}, []);
|
|
553
|
+
let g = Y(), _ = c ? g.CheckIcon : g.CopyIcon;
|
|
554
|
+
return k("button", {
|
|
555
|
+
className: s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", i),
|
|
556
|
+
"data-streamdown": "code-block-copy-button",
|
|
557
|
+
disabled: f,
|
|
558
|
+
onClick: h,
|
|
559
|
+
title: p.copyCode,
|
|
560
|
+
type: "button",
|
|
561
|
+
...o,
|
|
562
|
+
children: r ?? k(_, { size: 14 })
|
|
563
|
+
});
|
|
564
|
+
}, De = {
|
|
565
|
+
"1c": "1c",
|
|
566
|
+
"1c-query": "1cq",
|
|
567
|
+
abap: "abap",
|
|
568
|
+
"actionscript-3": "as",
|
|
569
|
+
ada: "ada",
|
|
570
|
+
adoc: "adoc",
|
|
571
|
+
"angular-html": "html",
|
|
572
|
+
"angular-ts": "ts",
|
|
573
|
+
apache: "conf",
|
|
574
|
+
apex: "cls",
|
|
575
|
+
apl: "apl",
|
|
576
|
+
applescript: "applescript",
|
|
577
|
+
ara: "ara",
|
|
578
|
+
asciidoc: "adoc",
|
|
579
|
+
asm: "asm",
|
|
580
|
+
astro: "astro",
|
|
581
|
+
awk: "awk",
|
|
582
|
+
ballerina: "bal",
|
|
583
|
+
bash: "sh",
|
|
584
|
+
bat: "bat",
|
|
585
|
+
batch: "bat",
|
|
586
|
+
be: "be",
|
|
587
|
+
beancount: "beancount",
|
|
588
|
+
berry: "berry",
|
|
589
|
+
bibtex: "bib",
|
|
590
|
+
bicep: "bicep",
|
|
591
|
+
blade: "blade.php",
|
|
592
|
+
bsl: "bsl",
|
|
593
|
+
c: "c",
|
|
594
|
+
"c#": "cs",
|
|
595
|
+
"c++": "cpp",
|
|
596
|
+
cadence: "cdc",
|
|
597
|
+
cairo: "cairo",
|
|
598
|
+
cdc: "cdc",
|
|
599
|
+
clarity: "clar",
|
|
600
|
+
clj: "clj",
|
|
601
|
+
clojure: "clj",
|
|
602
|
+
"closure-templates": "soy",
|
|
603
|
+
cmake: "cmake",
|
|
604
|
+
cmd: "cmd",
|
|
605
|
+
cobol: "cob",
|
|
606
|
+
codeowners: "CODEOWNERS",
|
|
607
|
+
codeql: "ql",
|
|
608
|
+
coffee: "coffee",
|
|
609
|
+
coffeescript: "coffee",
|
|
610
|
+
"common-lisp": "lisp",
|
|
611
|
+
console: "sh",
|
|
612
|
+
coq: "v",
|
|
613
|
+
cpp: "cpp",
|
|
614
|
+
cql: "cql",
|
|
615
|
+
crystal: "cr",
|
|
616
|
+
cs: "cs",
|
|
617
|
+
csharp: "cs",
|
|
618
|
+
css: "css",
|
|
619
|
+
csv: "csv",
|
|
620
|
+
cue: "cue",
|
|
621
|
+
cypher: "cql",
|
|
622
|
+
d: "d",
|
|
623
|
+
dart: "dart",
|
|
624
|
+
dax: "dax",
|
|
625
|
+
desktop: "desktop",
|
|
626
|
+
diff: "diff",
|
|
627
|
+
docker: "dockerfile",
|
|
628
|
+
dockerfile: "dockerfile",
|
|
629
|
+
dotenv: "env",
|
|
630
|
+
"dream-maker": "dm",
|
|
631
|
+
edge: "edge",
|
|
632
|
+
elisp: "el",
|
|
633
|
+
elixir: "ex",
|
|
634
|
+
elm: "elm",
|
|
635
|
+
"emacs-lisp": "el",
|
|
636
|
+
erb: "erb",
|
|
637
|
+
erl: "erl",
|
|
638
|
+
erlang: "erl",
|
|
639
|
+
f: "f",
|
|
640
|
+
"f#": "fs",
|
|
641
|
+
f03: "f03",
|
|
642
|
+
f08: "f08",
|
|
643
|
+
f18: "f18",
|
|
644
|
+
f77: "f77",
|
|
645
|
+
f90: "f90",
|
|
646
|
+
f95: "f95",
|
|
647
|
+
fennel: "fnl",
|
|
648
|
+
fish: "fish",
|
|
649
|
+
fluent: "ftl",
|
|
650
|
+
for: "for",
|
|
651
|
+
"fortran-fixed-form": "f",
|
|
652
|
+
"fortran-free-form": "f90",
|
|
653
|
+
fs: "fs",
|
|
654
|
+
fsharp: "fs",
|
|
655
|
+
fsl: "fsl",
|
|
656
|
+
ftl: "ftl",
|
|
657
|
+
gdresource: "tres",
|
|
658
|
+
gdscript: "gd",
|
|
659
|
+
gdshader: "gdshader",
|
|
660
|
+
genie: "gs",
|
|
661
|
+
gherkin: "feature",
|
|
662
|
+
"git-commit": "gitcommit",
|
|
663
|
+
"git-rebase": "gitrebase",
|
|
664
|
+
gjs: "js",
|
|
665
|
+
gleam: "gleam",
|
|
666
|
+
"glimmer-js": "js",
|
|
667
|
+
"glimmer-ts": "ts",
|
|
668
|
+
glsl: "glsl",
|
|
669
|
+
gnuplot: "plt",
|
|
670
|
+
go: "go",
|
|
671
|
+
gql: "gql",
|
|
672
|
+
graphql: "graphql",
|
|
673
|
+
groovy: "groovy",
|
|
674
|
+
gts: "gts",
|
|
675
|
+
hack: "hack",
|
|
676
|
+
haml: "haml",
|
|
677
|
+
handlebars: "hbs",
|
|
678
|
+
haskell: "hs",
|
|
679
|
+
haxe: "hx",
|
|
680
|
+
hbs: "hbs",
|
|
681
|
+
hcl: "hcl",
|
|
682
|
+
hjson: "hjson",
|
|
683
|
+
hlsl: "hlsl",
|
|
684
|
+
hs: "hs",
|
|
685
|
+
html: "html",
|
|
686
|
+
"html-derivative": "html",
|
|
687
|
+
http: "http",
|
|
688
|
+
hxml: "hxml",
|
|
689
|
+
hy: "hy",
|
|
690
|
+
imba: "imba",
|
|
691
|
+
ini: "ini",
|
|
692
|
+
jade: "jade",
|
|
693
|
+
java: "java",
|
|
694
|
+
javascript: "js",
|
|
695
|
+
jinja: "jinja",
|
|
696
|
+
jison: "jison",
|
|
697
|
+
jl: "jl",
|
|
698
|
+
js: "js",
|
|
699
|
+
json: "json",
|
|
700
|
+
json5: "json5",
|
|
701
|
+
jsonc: "jsonc",
|
|
702
|
+
jsonl: "jsonl",
|
|
703
|
+
jsonnet: "jsonnet",
|
|
704
|
+
jssm: "jssm",
|
|
705
|
+
jsx: "jsx",
|
|
706
|
+
julia: "jl",
|
|
707
|
+
kotlin: "kt",
|
|
708
|
+
kql: "kql",
|
|
709
|
+
kt: "kt",
|
|
710
|
+
kts: "kts",
|
|
711
|
+
kusto: "kql",
|
|
712
|
+
latex: "tex",
|
|
713
|
+
lean: "lean",
|
|
714
|
+
lean4: "lean",
|
|
715
|
+
less: "less",
|
|
716
|
+
liquid: "liquid",
|
|
717
|
+
lisp: "lisp",
|
|
718
|
+
lit: "lit",
|
|
719
|
+
llvm: "ll",
|
|
720
|
+
log: "log",
|
|
721
|
+
logo: "logo",
|
|
722
|
+
lua: "lua",
|
|
723
|
+
luau: "luau",
|
|
724
|
+
make: "mak",
|
|
725
|
+
makefile: "mak",
|
|
726
|
+
markdown: "md",
|
|
727
|
+
marko: "marko",
|
|
728
|
+
matlab: "m",
|
|
729
|
+
md: "md",
|
|
730
|
+
mdc: "mdc",
|
|
731
|
+
mdx: "mdx",
|
|
732
|
+
mediawiki: "wiki",
|
|
733
|
+
mermaid: "mmd",
|
|
734
|
+
mips: "s",
|
|
735
|
+
mipsasm: "s",
|
|
736
|
+
mmd: "mmd",
|
|
737
|
+
mojo: "mojo",
|
|
738
|
+
move: "move",
|
|
739
|
+
nar: "nar",
|
|
740
|
+
narrat: "narrat",
|
|
741
|
+
nextflow: "nf",
|
|
742
|
+
nf: "nf",
|
|
743
|
+
nginx: "conf",
|
|
744
|
+
nim: "nim",
|
|
745
|
+
nix: "nix",
|
|
746
|
+
nu: "nu",
|
|
747
|
+
nushell: "nu",
|
|
748
|
+
objc: "m",
|
|
749
|
+
"objective-c": "m",
|
|
750
|
+
"objective-cpp": "mm",
|
|
751
|
+
ocaml: "ml",
|
|
752
|
+
pascal: "pas",
|
|
753
|
+
perl: "pl",
|
|
754
|
+
perl6: "p6",
|
|
755
|
+
php: "php",
|
|
756
|
+
plsql: "pls",
|
|
757
|
+
po: "po",
|
|
758
|
+
polar: "polar",
|
|
759
|
+
postcss: "pcss",
|
|
760
|
+
pot: "pot",
|
|
761
|
+
potx: "potx",
|
|
762
|
+
powerquery: "pq",
|
|
763
|
+
powershell: "ps1",
|
|
764
|
+
prisma: "prisma",
|
|
765
|
+
prolog: "pl",
|
|
766
|
+
properties: "properties",
|
|
767
|
+
proto: "proto",
|
|
768
|
+
protobuf: "proto",
|
|
769
|
+
ps: "ps",
|
|
770
|
+
ps1: "ps1",
|
|
771
|
+
pug: "pug",
|
|
772
|
+
puppet: "pp",
|
|
773
|
+
purescript: "purs",
|
|
774
|
+
py: "py",
|
|
775
|
+
python: "py",
|
|
776
|
+
ql: "ql",
|
|
777
|
+
qml: "qml",
|
|
778
|
+
qmldir: "qmldir",
|
|
779
|
+
qss: "qss",
|
|
780
|
+
r: "r",
|
|
781
|
+
racket: "rkt",
|
|
782
|
+
raku: "raku",
|
|
783
|
+
razor: "cshtml",
|
|
784
|
+
rb: "rb",
|
|
785
|
+
reg: "reg",
|
|
786
|
+
regex: "regex",
|
|
787
|
+
regexp: "regexp",
|
|
788
|
+
rel: "rel",
|
|
789
|
+
riscv: "s",
|
|
790
|
+
rs: "rs",
|
|
791
|
+
rst: "rst",
|
|
792
|
+
ruby: "rb",
|
|
793
|
+
rust: "rs",
|
|
794
|
+
sas: "sas",
|
|
795
|
+
sass: "sass",
|
|
796
|
+
scala: "scala",
|
|
797
|
+
scheme: "scm",
|
|
798
|
+
scss: "scss",
|
|
799
|
+
sdbl: "sdbl",
|
|
800
|
+
sh: "sh",
|
|
801
|
+
shader: "shader",
|
|
802
|
+
shaderlab: "shader",
|
|
803
|
+
shell: "sh",
|
|
804
|
+
shellscript: "sh",
|
|
805
|
+
shellsession: "sh",
|
|
806
|
+
smalltalk: "st",
|
|
807
|
+
solidity: "sol",
|
|
808
|
+
soy: "soy",
|
|
809
|
+
sparql: "rq",
|
|
810
|
+
spl: "spl",
|
|
811
|
+
splunk: "spl",
|
|
812
|
+
sql: "sql",
|
|
813
|
+
"ssh-config": "config",
|
|
814
|
+
stata: "do",
|
|
815
|
+
styl: "styl",
|
|
816
|
+
stylus: "styl",
|
|
817
|
+
svelte: "svelte",
|
|
818
|
+
swift: "swift",
|
|
819
|
+
"system-verilog": "sv",
|
|
820
|
+
systemd: "service",
|
|
821
|
+
talon: "talon",
|
|
822
|
+
talonscript: "talon",
|
|
823
|
+
tasl: "tasl",
|
|
824
|
+
tcl: "tcl",
|
|
825
|
+
templ: "templ",
|
|
826
|
+
terraform: "tf",
|
|
827
|
+
tex: "tex",
|
|
828
|
+
tf: "tf",
|
|
829
|
+
tfvars: "tfvars",
|
|
830
|
+
toml: "toml",
|
|
831
|
+
ts: "ts",
|
|
832
|
+
"ts-tags": "ts",
|
|
833
|
+
tsp: "tsp",
|
|
834
|
+
tsv: "tsv",
|
|
835
|
+
tsx: "tsx",
|
|
836
|
+
turtle: "ttl",
|
|
837
|
+
twig: "twig",
|
|
838
|
+
typ: "typ",
|
|
839
|
+
typescript: "ts",
|
|
840
|
+
typespec: "tsp",
|
|
841
|
+
typst: "typ",
|
|
842
|
+
v: "v",
|
|
843
|
+
vala: "vala",
|
|
844
|
+
vb: "vb",
|
|
845
|
+
verilog: "v",
|
|
846
|
+
vhdl: "vhdl",
|
|
847
|
+
vim: "vim",
|
|
848
|
+
viml: "vim",
|
|
849
|
+
vimscript: "vim",
|
|
850
|
+
vue: "vue",
|
|
851
|
+
"vue-html": "html",
|
|
852
|
+
"vue-vine": "vine",
|
|
853
|
+
vy: "vy",
|
|
854
|
+
vyper: "vy",
|
|
855
|
+
wasm: "wasm",
|
|
856
|
+
wenyan: "wy",
|
|
857
|
+
wgsl: "wgsl",
|
|
858
|
+
wiki: "wiki",
|
|
859
|
+
wikitext: "wiki",
|
|
860
|
+
wit: "wit",
|
|
861
|
+
wl: "wl",
|
|
862
|
+
wolfram: "wl",
|
|
863
|
+
xml: "xml",
|
|
864
|
+
xsl: "xsl",
|
|
865
|
+
yaml: "yaml",
|
|
866
|
+
yml: "yml",
|
|
867
|
+
zenscript: "zs",
|
|
868
|
+
zig: "zig",
|
|
869
|
+
zsh: "zsh",
|
|
870
|
+
文言: "wy"
|
|
871
|
+
}, Oe = ({ onDownload: e, onError: t, language: n, children: r, className: i, code: a, ...o }) => {
|
|
872
|
+
let s = U(), { code: c } = _e(), { isAnimating: l } = C($), u = X(), d = Y(), f = a ?? c, p = `file.${n && n in De ? De[n] : "txt"}`;
|
|
873
|
+
return k("button", {
|
|
874
|
+
className: s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", i),
|
|
875
|
+
"data-streamdown": "code-block-download-button",
|
|
876
|
+
disabled: l,
|
|
877
|
+
onClick: () => {
|
|
878
|
+
try {
|
|
879
|
+
H(p, f, "text/plain"), e?.();
|
|
880
|
+
} catch (e) {
|
|
881
|
+
t?.(e);
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
title: u.downloadFile,
|
|
885
|
+
type: "button",
|
|
886
|
+
...o,
|
|
887
|
+
children: r ?? k(d.DownloadIcon, { size: 14 })
|
|
888
|
+
});
|
|
889
|
+
}, ke = () => {
|
|
890
|
+
let { Loader2Icon: e } = Y(), t = U();
|
|
891
|
+
return A("div", {
|
|
892
|
+
className: t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),
|
|
893
|
+
children: [k("div", { className: t("h-[46px] w-full bg-muted/80") }), k("div", {
|
|
894
|
+
className: t("flex w-full items-center justify-center p-4"),
|
|
895
|
+
children: k(e, { className: t("size-4 animate-spin") })
|
|
896
|
+
})]
|
|
897
|
+
});
|
|
898
|
+
}, Ae = /\.[^/.]+$/, je = ({ node: e, className: t, src: n, alt: r, onLoad: i, onError: a, ...o }) => {
|
|
899
|
+
let { DownloadIcon: s } = Y(), c = U(), l = E(null), [u, d] = D(!1), [f, p] = D(!1), m = X(), h = o.width != null || o.height != null, g = (u || h) && !f, _ = f && !h;
|
|
900
|
+
w(() => {
|
|
901
|
+
let e = l.current;
|
|
902
|
+
if (e != null && e.complete) {
|
|
903
|
+
let t = e.naturalWidth > 0;
|
|
904
|
+
d(t), p(!t);
|
|
905
|
+
}
|
|
906
|
+
}, []);
|
|
907
|
+
let v = S((e) => {
|
|
908
|
+
d(!0), p(!1), i?.(e);
|
|
909
|
+
}, [i]), y = S((e) => {
|
|
910
|
+
d(!1), p(!0), a?.(e);
|
|
911
|
+
}, [a]), b = async () => {
|
|
912
|
+
if (n) try {
|
|
913
|
+
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
|
+
if (a) o = t;
|
|
915
|
+
else {
|
|
916
|
+
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(Ae, "")}.${i}`;
|
|
918
|
+
}
|
|
919
|
+
H(o, e, e.type);
|
|
920
|
+
} catch {
|
|
921
|
+
window.open(n, "_blank");
|
|
922
|
+
}
|
|
923
|
+
};
|
|
924
|
+
return n ? A("div", {
|
|
925
|
+
className: c("group relative my-4 inline-block"),
|
|
926
|
+
"data-streamdown": "image-wrapper",
|
|
927
|
+
children: [
|
|
928
|
+
k("img", {
|
|
929
|
+
alt: r,
|
|
930
|
+
className: c("max-w-full rounded-lg", _ && "hidden", t),
|
|
931
|
+
"data-streamdown": "image",
|
|
932
|
+
onError: y,
|
|
933
|
+
onLoad: v,
|
|
934
|
+
ref: l,
|
|
935
|
+
src: n,
|
|
936
|
+
...o
|
|
937
|
+
}),
|
|
938
|
+
_ && k("span", {
|
|
939
|
+
className: c("text-muted-foreground text-xs italic"),
|
|
940
|
+
"data-streamdown": "image-fallback",
|
|
941
|
+
children: m.imageNotAvailable
|
|
942
|
+
}),
|
|
943
|
+
k("div", { className: c("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block") }),
|
|
944
|
+
g && k("button", {
|
|
945
|
+
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: b,
|
|
947
|
+
title: m.downloadImage,
|
|
948
|
+
type: "button",
|
|
949
|
+
children: k(s, { size: 14 })
|
|
950
|
+
})
|
|
951
|
+
]
|
|
952
|
+
}) : null;
|
|
953
|
+
}, Z = 0, Me = () => {
|
|
954
|
+
Z += 1, Z === 1 && (document.body.style.overflow = "hidden");
|
|
955
|
+
}, Ne = () => {
|
|
956
|
+
Z = Math.max(0, Z - 1), Z === 0 && (document.body.style.overflow = "");
|
|
957
|
+
}, Pe = ({ url: e, isOpen: t, onClose: n, onConfirm: r }) => {
|
|
958
|
+
let { CheckIcon: i, CopyIcon: a, ExternalLinkIcon: o, XIcon: s } = Y(), c = U(), [l, u] = D(!1), d = X(), f = S(async () => {
|
|
959
|
+
try {
|
|
960
|
+
await navigator.clipboard.writeText(e), u(!0), setTimeout(() => u(!1), 2e3);
|
|
961
|
+
} catch {}
|
|
962
|
+
}, [e]), p = S(() => {
|
|
963
|
+
r(), n();
|
|
964
|
+
}, [r, n]);
|
|
965
|
+
return w(() => {
|
|
966
|
+
if (t) {
|
|
967
|
+
Me();
|
|
968
|
+
let e = (e) => {
|
|
969
|
+
e.key === "Escape" && n();
|
|
970
|
+
};
|
|
971
|
+
return document.addEventListener("keydown", e), () => {
|
|
972
|
+
document.removeEventListener("keydown", e), Ne();
|
|
973
|
+
};
|
|
974
|
+
}
|
|
975
|
+
}, [t, n]), t ? k("div", {
|
|
976
|
+
className: c("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),
|
|
977
|
+
"data-streamdown": "link-safety-modal",
|
|
978
|
+
onClick: n,
|
|
979
|
+
onKeyDown: (e) => {
|
|
980
|
+
e.key === "Escape" && n();
|
|
981
|
+
},
|
|
982
|
+
role: "button",
|
|
983
|
+
tabIndex: 0,
|
|
984
|
+
children: A("div", {
|
|
985
|
+
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
|
+
onClick: (e) => e.stopPropagation(),
|
|
987
|
+
onKeyDown: (e) => e.stopPropagation(),
|
|
988
|
+
role: "presentation",
|
|
989
|
+
children: [
|
|
990
|
+
k("button", {
|
|
991
|
+
className: c("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),
|
|
992
|
+
onClick: n,
|
|
993
|
+
title: d.close,
|
|
994
|
+
type: "button",
|
|
995
|
+
children: k(s, { size: 16 })
|
|
996
|
+
}),
|
|
997
|
+
A("div", {
|
|
998
|
+
className: c("flex flex-col gap-2"),
|
|
999
|
+
children: [A("div", {
|
|
1000
|
+
className: c("flex items-center gap-2 font-semibold text-lg"),
|
|
1001
|
+
children: [k(o, { size: 20 }), k("span", { children: d.openExternalLink })]
|
|
1002
|
+
}), k("p", {
|
|
1003
|
+
className: c("text-muted-foreground text-sm"),
|
|
1004
|
+
children: d.externalLinkWarning
|
|
1005
|
+
})]
|
|
1006
|
+
}),
|
|
1007
|
+
k("div", {
|
|
1008
|
+
className: c("break-all rounded-md bg-muted p-3 font-mono text-sm", e.length > 100 && "max-h-32 overflow-y-auto"),
|
|
1009
|
+
children: e
|
|
1010
|
+
}),
|
|
1011
|
+
A("div", {
|
|
1012
|
+
className: c("flex gap-2"),
|
|
1013
|
+
children: [k("button", {
|
|
1014
|
+
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
|
+
onClick: f,
|
|
1016
|
+
type: "button",
|
|
1017
|
+
children: l ? A(O, { children: [k(i, { size: 14 }), k("span", { children: d.copied })] }) : A(O, { children: [k(a, { size: 14 }), k("span", { children: d.copyLink })] })
|
|
1018
|
+
}), A("button", {
|
|
1019
|
+
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
|
+
onClick: p,
|
|
1021
|
+
type: "button",
|
|
1022
|
+
children: [k(o, { size: 14 }), k("span", { children: d.openLink })]
|
|
1023
|
+
})]
|
|
1024
|
+
})
|
|
1025
|
+
]
|
|
1026
|
+
})
|
|
1027
|
+
}) : null;
|
|
1028
|
+
}, Fe = _(null), Ie = () => C(Fe), Le = () => Ie()?.code ?? null, Re = () => Ie()?.mermaid ?? null, ze = (e) => {
|
|
1029
|
+
var t;
|
|
1030
|
+
let n = Ie();
|
|
1031
|
+
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
|
+
}, Be = (e, t) => new Promise((t, n) => {
|
|
1033
|
+
let r = "data:image/svg+xml;base64," + btoa(unescape(encodeURIComponent(e))), i = new Image();
|
|
1034
|
+
i.crossOrigin = "anonymous", i.onload = () => {
|
|
1035
|
+
let e = document.createElement("canvas"), r = i.width * 5, a = i.height * 5;
|
|
1036
|
+
e.width = r, e.height = a;
|
|
1037
|
+
let o = e.getContext("2d");
|
|
1038
|
+
if (!o) {
|
|
1039
|
+
n(/* @__PURE__ */ Error("Failed to create 2D canvas context for PNG export"));
|
|
1040
|
+
return;
|
|
1041
|
+
}
|
|
1042
|
+
o.drawImage(i, 0, 0, r, a), e.toBlob((e) => {
|
|
1043
|
+
if (!e) {
|
|
1044
|
+
n(/* @__PURE__ */ Error("Failed to create PNG blob"));
|
|
1045
|
+
return;
|
|
1046
|
+
}
|
|
1047
|
+
t(e);
|
|
1048
|
+
}, "image/png");
|
|
1049
|
+
}, i.onerror = () => n(/* @__PURE__ */ Error("Failed to load SVG image")), i.src = r;
|
|
1050
|
+
}), Ve = ({ chart: e, children: t, className: n, onDownload: r, config: i, onError: a }) => {
|
|
1051
|
+
let o = U(), [s, c] = D(!1), l = E(null), { isAnimating: u } = C($), d = Y(), f = Re(), p = X(), m = async (t) => {
|
|
1052
|
+
try {
|
|
1053
|
+
if (t === "mmd") {
|
|
1054
|
+
H("diagram.mmd", e, "text/plain"), c(!1), r?.(t);
|
|
1055
|
+
return;
|
|
1056
|
+
}
|
|
1057
|
+
if (!f) {
|
|
1058
|
+
a?.(/* @__PURE__ */ Error("Mermaid plugin not available"));
|
|
1059
|
+
return;
|
|
1060
|
+
}
|
|
1061
|
+
let n = f.getMermaid(i), o = e.split("").reduce((e, t) => (e << 5) - e + t.charCodeAt(0) | 0, 0), s = `mermaid-${Math.abs(o)}-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`, { svg: l } = await n.render(s, e);
|
|
1062
|
+
if (!l) {
|
|
1063
|
+
a?.(/* @__PURE__ */ Error("SVG not found. Please wait for the diagram to render."));
|
|
1064
|
+
return;
|
|
1065
|
+
}
|
|
1066
|
+
if (t === "svg") {
|
|
1067
|
+
H("diagram.svg", l, "image/svg+xml"), c(!1), r?.(t);
|
|
1068
|
+
return;
|
|
1069
|
+
}
|
|
1070
|
+
if (t === "png") {
|
|
1071
|
+
H("diagram.png", await Be(l), "image/png"), r?.(t), c(!1);
|
|
1072
|
+
return;
|
|
1073
|
+
}
|
|
1074
|
+
} catch (e) {
|
|
1075
|
+
a?.(e);
|
|
1076
|
+
}
|
|
1077
|
+
};
|
|
1078
|
+
return w(() => {
|
|
1079
|
+
let e = (e) => {
|
|
1080
|
+
let t = e.composedPath();
|
|
1081
|
+
l.current && !t.includes(l.current) && c(!1);
|
|
1082
|
+
};
|
|
1083
|
+
return document.addEventListener("mousedown", e), () => {
|
|
1084
|
+
document.removeEventListener("mousedown", e);
|
|
1085
|
+
};
|
|
1086
|
+
}, []), A("div", {
|
|
1087
|
+
className: o("relative"),
|
|
1088
|
+
ref: l,
|
|
1089
|
+
children: [k("button", {
|
|
1090
|
+
className: o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", n),
|
|
1091
|
+
disabled: u,
|
|
1092
|
+
onClick: () => c(!s),
|
|
1093
|
+
title: p.downloadDiagram,
|
|
1094
|
+
type: "button",
|
|
1095
|
+
children: t ?? k(d.DownloadIcon, { size: 14 })
|
|
1096
|
+
}), s ? A("div", {
|
|
1097
|
+
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
|
+
children: [
|
|
1099
|
+
k("button", {
|
|
1100
|
+
className: o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
|
|
1101
|
+
onClick: () => m("svg"),
|
|
1102
|
+
title: p.downloadDiagramAsSvg,
|
|
1103
|
+
type: "button",
|
|
1104
|
+
children: p.mermaidFormatSvg
|
|
1105
|
+
}),
|
|
1106
|
+
k("button", {
|
|
1107
|
+
className: o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
|
|
1108
|
+
onClick: () => m("png"),
|
|
1109
|
+
title: p.downloadDiagramAsPng,
|
|
1110
|
+
type: "button",
|
|
1111
|
+
children: p.mermaidFormatPng
|
|
1112
|
+
}),
|
|
1113
|
+
k("button", {
|
|
1114
|
+
className: o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
|
|
1115
|
+
onClick: () => m("mmd"),
|
|
1116
|
+
title: p.downloadDiagramAsMmd,
|
|
1117
|
+
type: "button",
|
|
1118
|
+
children: p.mermaidFormatMmd
|
|
1119
|
+
})
|
|
1120
|
+
]
|
|
1121
|
+
}) : null]
|
|
1122
|
+
});
|
|
1123
|
+
}, He = ({ chart: e, config: t, onFullscreen: n, onExit: r, className: i, ...a }) => {
|
|
1124
|
+
let { Maximize2Icon: o, XIcon: s } = Y(), c = U(), [l, u] = D(!1), { isAnimating: d, controls: f } = C($), p = X(), m = (() => {
|
|
1125
|
+
if (typeof f == "boolean") return f;
|
|
1126
|
+
let e = f.mermaid;
|
|
1127
|
+
return e === !1 ? !1 : e === !0 || e === void 0 ? !0 : e.panZoom !== !1;
|
|
1128
|
+
})(), h = () => {
|
|
1129
|
+
u(!l);
|
|
1130
|
+
};
|
|
1131
|
+
return w(() => {
|
|
1132
|
+
if (l) {
|
|
1133
|
+
Me();
|
|
1134
|
+
let e = (e) => {
|
|
1135
|
+
e.key === "Escape" && u(!1);
|
|
1136
|
+
};
|
|
1137
|
+
return document.addEventListener("keydown", e), () => {
|
|
1138
|
+
document.removeEventListener("keydown", e), Ne();
|
|
1139
|
+
};
|
|
1140
|
+
}
|
|
1141
|
+
}, [l]), w(() => {
|
|
1142
|
+
l ? n?.() : r && r();
|
|
1143
|
+
}, [
|
|
1144
|
+
l,
|
|
1145
|
+
n,
|
|
1146
|
+
r
|
|
1147
|
+
]), A(O, { children: [k("button", {
|
|
1148
|
+
className: c("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", i),
|
|
1149
|
+
disabled: d,
|
|
1150
|
+
onClick: h,
|
|
1151
|
+
title: p.viewFullscreen,
|
|
1152
|
+
type: "button",
|
|
1153
|
+
...a,
|
|
1154
|
+
children: k(o, { size: 14 })
|
|
1155
|
+
}), l ? N(A("div", {
|
|
1156
|
+
className: c("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),
|
|
1157
|
+
onClick: h,
|
|
1158
|
+
onKeyDown: (e) => {
|
|
1159
|
+
e.key === "Escape" && h();
|
|
1160
|
+
},
|
|
1161
|
+
role: "button",
|
|
1162
|
+
tabIndex: 0,
|
|
1163
|
+
children: [k("button", {
|
|
1164
|
+
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
|
+
onClick: h,
|
|
1166
|
+
title: p.exitFullscreen,
|
|
1167
|
+
type: "button",
|
|
1168
|
+
children: k(s, { size: 20 })
|
|
1169
|
+
}), k("div", {
|
|
1170
|
+
className: c("flex size-full items-center justify-center p-4"),
|
|
1171
|
+
onClick: (e) => e.stopPropagation(),
|
|
1172
|
+
onKeyDown: (e) => e.stopPropagation(),
|
|
1173
|
+
role: "presentation",
|
|
1174
|
+
children: k(Pn, {
|
|
1175
|
+
chart: e,
|
|
1176
|
+
className: c("size-full [&_svg]:h-auto [&_svg]:w-auto"),
|
|
1177
|
+
config: t,
|
|
1178
|
+
fullscreen: !0,
|
|
1179
|
+
showControls: m
|
|
1180
|
+
})
|
|
1181
|
+
})]
|
|
1182
|
+
}), document.body) : null] });
|
|
1183
|
+
}, Ue = (e) => {
|
|
1184
|
+
let t = [], n = [], r = e.querySelectorAll("thead th");
|
|
1185
|
+
for (let e of r) t.push(e.textContent?.trim() || "");
|
|
1186
|
+
let i = e.querySelectorAll("tbody tr");
|
|
1187
|
+
for (let e of i) {
|
|
1188
|
+
let t = [], r = e.querySelectorAll("td");
|
|
1189
|
+
for (let e of r) t.push(e.textContent?.trim() || "");
|
|
1190
|
+
n.push(t);
|
|
1191
|
+
}
|
|
1192
|
+
return {
|
|
1193
|
+
headers: t,
|
|
1194
|
+
rows: n
|
|
1195
|
+
};
|
|
1196
|
+
}, We = (e) => {
|
|
1197
|
+
let { headers: t, rows: n } = e, r = (e) => {
|
|
1198
|
+
let t = !1, n = !1;
|
|
1199
|
+
for (let r of e) {
|
|
1200
|
+
if (r === "\"") {
|
|
1201
|
+
t = !0, n = !0;
|
|
1202
|
+
break;
|
|
1203
|
+
}
|
|
1204
|
+
(r === "," || r === "\n") && (t = !0);
|
|
1205
|
+
}
|
|
1206
|
+
return t ? n ? `"${e.replace(/"/g, "\"\"")}"` : `"${e}"` : e;
|
|
1207
|
+
}, i = t.length > 0 ? n.length + 1 : n.length, a = Array(i), o = 0;
|
|
1208
|
+
t.length > 0 && (a[o] = t.map(r).join(","), o += 1);
|
|
1209
|
+
for (let e of n) a[o] = e.map(r).join(","), o += 1;
|
|
1210
|
+
return a.join("\n");
|
|
1211
|
+
}, Ge = (e) => {
|
|
1212
|
+
let { headers: t, rows: n } = e, r = (e) => {
|
|
1213
|
+
let t = !1;
|
|
1214
|
+
for (let n of e) if (n === " " || n === "\n" || n === "\r") {
|
|
1215
|
+
t = !0;
|
|
1216
|
+
break;
|
|
1217
|
+
}
|
|
1218
|
+
if (!t) return e;
|
|
1219
|
+
let n = [];
|
|
1220
|
+
for (let t of e) t === " " ? n.push("\\t") : t === "\n" ? n.push("\\n") : t === "\r" ? n.push("\\r") : n.push(t);
|
|
1221
|
+
return n.join("");
|
|
1222
|
+
}, i = t.length > 0 ? n.length + 1 : n.length, a = Array(i), o = 0;
|
|
1223
|
+
t.length > 0 && (a[o] = t.map(r).join(" "), o += 1);
|
|
1224
|
+
for (let e of n) a[o] = e.map(r).join(" "), o += 1;
|
|
1225
|
+
return a.join("\n");
|
|
1226
|
+
}, Ke = (e) => {
|
|
1227
|
+
let t = !1;
|
|
1228
|
+
for (let n of e) if (n === "\\" || n === "|") {
|
|
1229
|
+
t = !0;
|
|
1230
|
+
break;
|
|
1231
|
+
}
|
|
1232
|
+
if (!t) return e;
|
|
1233
|
+
let n = [];
|
|
1234
|
+
for (let t of e) t === "\\" ? n.push("\\\\") : t === "|" ? n.push("\\|") : n.push(t);
|
|
1235
|
+
return n.join("");
|
|
1236
|
+
}, qe = (e) => {
|
|
1237
|
+
let { headers: t, rows: n } = e;
|
|
1238
|
+
if (t.length === 0) return "";
|
|
1239
|
+
let r = Array(n.length + 2), i = 0;
|
|
1240
|
+
r[i] = `| ${t.map((e) => Ke(e)).join(" | ")} |`, i += 1;
|
|
1241
|
+
let a = Array(t.length);
|
|
1242
|
+
for (let e = 0; e < t.length; e += 1) a[e] = "---";
|
|
1243
|
+
r[i] = `| ${a.join(" | ")} |`, i += 1;
|
|
1244
|
+
for (let e of n) if (e.length < t.length) {
|
|
1245
|
+
let n = Array(t.length);
|
|
1246
|
+
for (let r = 0; r < t.length; r += 1) n[r] = r < e.length ? Ke(e[r]) : "";
|
|
1247
|
+
r[i] = `| ${n.join(" | ")} |`, i += 1;
|
|
1248
|
+
} else r[i] = `| ${e.map((e) => Ke(e)).join(" | ")} |`, i += 1;
|
|
1249
|
+
return r.join("\n");
|
|
1250
|
+
}, Je = ({ children: e, className: t, onCopy: n, onError: r, timeout: i = 2e3 }) => {
|
|
1251
|
+
let a = U(), [o, s] = D(!1), [c, l] = D(!1), u = E(null), d = E(0), { isAnimating: f } = C($), p = X(), m = async (e) => {
|
|
1252
|
+
var t;
|
|
1253
|
+
if (typeof window > "u" || !((t = navigator == null ? void 0 : navigator.clipboard) != null && t.write)) {
|
|
1254
|
+
r?.(/* @__PURE__ */ Error("Clipboard API not available"));
|
|
1255
|
+
return;
|
|
1256
|
+
}
|
|
1257
|
+
try {
|
|
1258
|
+
let t = (u.current?.closest("[data-streamdown=\"table-wrapper\"]"))?.querySelector("table");
|
|
1259
|
+
if (!t) {
|
|
1260
|
+
r?.(/* @__PURE__ */ Error("Table not found"));
|
|
1261
|
+
return;
|
|
1262
|
+
}
|
|
1263
|
+
let a = Ue(t), o = ({
|
|
1264
|
+
csv: We,
|
|
1265
|
+
tsv: Ge,
|
|
1266
|
+
md: qe
|
|
1267
|
+
}[e] || qe)(a), c = new ClipboardItem({
|
|
1268
|
+
"text/plain": new Blob([o], { type: "text/plain" }),
|
|
1269
|
+
"text/html": new Blob([t.outerHTML], { type: "text/html" })
|
|
1270
|
+
});
|
|
1271
|
+
await navigator.clipboard.write([c]), l(!0), s(!1), n?.(e), d.current = window.setTimeout(() => l(!1), i);
|
|
1272
|
+
} catch (e) {
|
|
1273
|
+
r?.(e);
|
|
1274
|
+
}
|
|
1275
|
+
};
|
|
1276
|
+
w(() => {
|
|
1277
|
+
let e = (e) => {
|
|
1278
|
+
let t = e.composedPath();
|
|
1279
|
+
u.current && !t.includes(u.current) && s(!1);
|
|
1280
|
+
};
|
|
1281
|
+
return document.addEventListener("mousedown", e), () => {
|
|
1282
|
+
document.removeEventListener("mousedown", e), window.clearTimeout(d.current);
|
|
1283
|
+
};
|
|
1284
|
+
}, []);
|
|
1285
|
+
let h = Y(), g = c ? h.CheckIcon : h.CopyIcon;
|
|
1286
|
+
return A("div", {
|
|
1287
|
+
className: a("relative"),
|
|
1288
|
+
ref: u,
|
|
1289
|
+
children: [k("button", {
|
|
1290
|
+
className: a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", t),
|
|
1291
|
+
disabled: f,
|
|
1292
|
+
onClick: () => s(!o),
|
|
1293
|
+
title: p.copyTable,
|
|
1294
|
+
type: "button",
|
|
1295
|
+
children: e ?? k(g, {
|
|
1296
|
+
height: 14,
|
|
1297
|
+
width: 14
|
|
1298
|
+
})
|
|
1299
|
+
}), o ? A("div", {
|
|
1300
|
+
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
|
+
children: [
|
|
1302
|
+
k("button", {
|
|
1303
|
+
className: a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
|
|
1304
|
+
onClick: () => m("md"),
|
|
1305
|
+
title: p.copyTableAsMarkdown,
|
|
1306
|
+
type: "button",
|
|
1307
|
+
children: p.tableFormatMarkdown
|
|
1308
|
+
}),
|
|
1309
|
+
k("button", {
|
|
1310
|
+
className: a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
|
|
1311
|
+
onClick: () => m("csv"),
|
|
1312
|
+
title: p.copyTableAsCsv,
|
|
1313
|
+
type: "button",
|
|
1314
|
+
children: p.tableFormatCsv
|
|
1315
|
+
}),
|
|
1316
|
+
k("button", {
|
|
1317
|
+
className: a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
|
|
1318
|
+
onClick: () => m("tsv"),
|
|
1319
|
+
title: p.copyTableAsTsv,
|
|
1320
|
+
type: "button",
|
|
1321
|
+
children: p.tableFormatTsv
|
|
1322
|
+
})
|
|
1323
|
+
]
|
|
1324
|
+
}) : null]
|
|
1325
|
+
});
|
|
1326
|
+
}, Ye = ({ children: e, className: t, onDownload: n, onError: r }) => {
|
|
1327
|
+
let i = U(), [a, o] = D(!1), s = E(null), { isAnimating: c } = C($), l = X(), u = Y(), d = (e) => {
|
|
1328
|
+
try {
|
|
1329
|
+
let t = (s.current?.closest("[data-streamdown=\"table-wrapper\"]"))?.querySelector("table");
|
|
1330
|
+
if (!t) {
|
|
1331
|
+
r?.(/* @__PURE__ */ Error("Table not found"));
|
|
1332
|
+
return;
|
|
1333
|
+
}
|
|
1334
|
+
let i = Ue(t), a = e === "csv" ? We(i) : qe(i);
|
|
1335
|
+
H(`table.${e === "csv" ? "csv" : "md"}`, a, e === "csv" ? "text/csv" : "text/markdown"), o(!1), n?.(e);
|
|
1336
|
+
} catch (e) {
|
|
1337
|
+
r?.(e);
|
|
1338
|
+
}
|
|
1339
|
+
};
|
|
1340
|
+
return w(() => {
|
|
1341
|
+
let e = (e) => {
|
|
1342
|
+
let t = e.composedPath();
|
|
1343
|
+
s.current && !t.includes(s.current) && o(!1);
|
|
1344
|
+
};
|
|
1345
|
+
return document.addEventListener("mousedown", e), () => {
|
|
1346
|
+
document.removeEventListener("mousedown", e);
|
|
1347
|
+
};
|
|
1348
|
+
}, []), A("div", {
|
|
1349
|
+
className: i("relative"),
|
|
1350
|
+
ref: s,
|
|
1351
|
+
children: [k("button", {
|
|
1352
|
+
className: i("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", t),
|
|
1353
|
+
disabled: c,
|
|
1354
|
+
onClick: () => o(!a),
|
|
1355
|
+
title: l.downloadTable,
|
|
1356
|
+
type: "button",
|
|
1357
|
+
children: e ?? k(u.DownloadIcon, { size: 14 })
|
|
1358
|
+
}), a ? A("div", {
|
|
1359
|
+
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: [k("button", {
|
|
1361
|
+
className: i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
|
|
1362
|
+
onClick: () => d("csv"),
|
|
1363
|
+
title: l.downloadTableAsCsv,
|
|
1364
|
+
type: "button",
|
|
1365
|
+
children: l.tableFormatCsv
|
|
1366
|
+
}), k("button", {
|
|
1367
|
+
className: i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
|
|
1368
|
+
onClick: () => d("markdown"),
|
|
1369
|
+
title: l.downloadTableAsMarkdown,
|
|
1370
|
+
type: "button",
|
|
1371
|
+
children: l.tableFormatMarkdown
|
|
1372
|
+
})]
|
|
1373
|
+
}) : null]
|
|
1374
|
+
});
|
|
1375
|
+
}, Xe = ({ children: e, className: t, showCopy: n = !0, showDownload: r = !0 }) => {
|
|
1376
|
+
let { Maximize2Icon: i, XIcon: a } = Y(), o = U(), [s, c] = D(!1), { isAnimating: l } = C($), u = X(), d = () => {
|
|
1377
|
+
c(!0);
|
|
1378
|
+
}, f = () => {
|
|
1379
|
+
c(!1);
|
|
1380
|
+
};
|
|
1381
|
+
return w(() => {
|
|
1382
|
+
if (s) {
|
|
1383
|
+
Me();
|
|
1384
|
+
let e = (e) => {
|
|
1385
|
+
e.key === "Escape" && c(!1);
|
|
1386
|
+
};
|
|
1387
|
+
return document.addEventListener("keydown", e), () => {
|
|
1388
|
+
document.removeEventListener("keydown", e), Ne();
|
|
1389
|
+
};
|
|
1390
|
+
}
|
|
1391
|
+
}, [s]), A(O, { children: [k("button", {
|
|
1392
|
+
className: o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", t),
|
|
1393
|
+
disabled: l,
|
|
1394
|
+
onClick: d,
|
|
1395
|
+
title: u.viewFullscreen,
|
|
1396
|
+
type: "button",
|
|
1397
|
+
children: k(i, { size: 14 })
|
|
1398
|
+
}), s ? N(k("div", {
|
|
1399
|
+
"aria-label": u.viewFullscreen,
|
|
1400
|
+
"aria-modal": "true",
|
|
1401
|
+
className: o("fixed inset-0 z-50 flex flex-col bg-background"),
|
|
1402
|
+
"data-streamdown": "table-fullscreen",
|
|
1403
|
+
onClick: f,
|
|
1404
|
+
onKeyDown: (e) => {
|
|
1405
|
+
e.key === "Escape" && f();
|
|
1406
|
+
},
|
|
1407
|
+
role: "dialog",
|
|
1408
|
+
children: A("div", {
|
|
1409
|
+
className: o("flex h-full flex-col"),
|
|
1410
|
+
onClick: (e) => e.stopPropagation(),
|
|
1411
|
+
onKeyDown: (e) => e.stopPropagation(),
|
|
1412
|
+
role: "presentation",
|
|
1413
|
+
children: [A("div", {
|
|
1414
|
+
className: o("flex items-center justify-end gap-1 p-4"),
|
|
1415
|
+
children: [
|
|
1416
|
+
n ? k(Je, {}) : null,
|
|
1417
|
+
r ? k(Ye, {}) : null,
|
|
1418
|
+
k("button", {
|
|
1419
|
+
className: o("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),
|
|
1420
|
+
onClick: f,
|
|
1421
|
+
title: u.exitFullscreen,
|
|
1422
|
+
type: "button",
|
|
1423
|
+
children: k(a, { size: 20 })
|
|
1424
|
+
})
|
|
1425
|
+
]
|
|
1426
|
+
}), k("div", {
|
|
1427
|
+
className: o("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),
|
|
1428
|
+
children: k("table", {
|
|
1429
|
+
className: o("w-full border-collapse border border-border"),
|
|
1430
|
+
"data-streamdown": "table",
|
|
1431
|
+
children: e
|
|
1432
|
+
})
|
|
1433
|
+
})]
|
|
1434
|
+
})
|
|
1435
|
+
}), document.body) : null] });
|
|
1436
|
+
}, Ze = ({ children: e, className: t, showControls: n, showCopy: r = !0, showDownload: i = !0, showFullscreen: a = !0, ...o }) => {
|
|
1437
|
+
let s = U(), c = n && r, l = n && i, u = n && a, d = c || l || u;
|
|
1438
|
+
return A("div", {
|
|
1439
|
+
className: s("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),
|
|
1440
|
+
"data-streamdown": "table-wrapper",
|
|
1441
|
+
children: [d ? A("div", {
|
|
1442
|
+
className: s("flex items-center justify-end gap-1"),
|
|
1443
|
+
children: [
|
|
1444
|
+
c ? k(Je, {}) : null,
|
|
1445
|
+
l ? k(Ye, {}) : null,
|
|
1446
|
+
u ? k(Xe, {
|
|
1447
|
+
showCopy: c,
|
|
1448
|
+
showDownload: l,
|
|
1449
|
+
children: e
|
|
1450
|
+
}) : null
|
|
1451
|
+
]
|
|
1452
|
+
}) : null, k("div", {
|
|
1453
|
+
className: s("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),
|
|
1454
|
+
children: k("table", {
|
|
1455
|
+
className: s("w-full divide-y divide-border", t),
|
|
1456
|
+
"data-streamdown": "table",
|
|
1457
|
+
...o,
|
|
1458
|
+
children: e
|
|
1459
|
+
})
|
|
1460
|
+
})]
|
|
1461
|
+
});
|
|
1462
|
+
}, Qe = /startLine=(\d+)/, $e = /\bnoLineNumbers\b/, et = b(() => import("./mermaid-GHXKKRXX.js").then((e) => ({ default: e.Mermaid }))), tt = /language-([^\s]+)/;
|
|
1463
|
+
function nt(e, t) {
|
|
1464
|
+
if (!(e != null && e.position || t != null && t.position)) return !0;
|
|
1465
|
+
if (!(e != null && e.position && t != null && t.position)) return !1;
|
|
1466
|
+
let n = e.position.start, r = t.position.start, i = e.position.end, a = t.position.end;
|
|
1467
|
+
return n?.line === r?.line && n?.column === r?.column && i?.line === a?.line && i?.column === a?.column;
|
|
1468
|
+
}
|
|
1469
|
+
function Q(e, t) {
|
|
1470
|
+
return e.className === t.className && nt(e.node, t.node);
|
|
1471
|
+
}
|
|
1472
|
+
var rt = (e, t) => typeof e == "boolean" ? e : e[t] !== !1, it = (e, t) => {
|
|
1473
|
+
if (typeof e == "boolean") return e;
|
|
1474
|
+
let n = e.table;
|
|
1475
|
+
return n === !1 ? !1 : n === !0 || n === void 0 ? !0 : n[t] !== !1;
|
|
1476
|
+
}, at = (e, t) => {
|
|
1477
|
+
if (typeof e == "boolean") return e;
|
|
1478
|
+
let n = e.code;
|
|
1479
|
+
return n === !1 ? !1 : n === !0 || n === void 0 ? !0 : n[t] !== !1;
|
|
1480
|
+
}, ot = (e, t) => {
|
|
1481
|
+
if (typeof e == "boolean") return e;
|
|
1482
|
+
let n = e.mermaid;
|
|
1483
|
+
return n === !1 ? !1 : n === !0 || n === void 0 ? !0 : n[t] !== !1;
|
|
1484
|
+
}, st = x(({ children: e, className: t, node: n, ...r }) => k("ol", {
|
|
1485
|
+
className: U()("list-inside list-decimal whitespace-normal [li_&]:pl-6", t),
|
|
1486
|
+
"data-streamdown": "ordered-list",
|
|
1487
|
+
...r,
|
|
1488
|
+
children: e
|
|
1489
|
+
}), (e, t) => Q(e, t));
|
|
1490
|
+
st.displayName = "MarkdownOl";
|
|
1491
|
+
var ct = x(({ children: e, className: t, node: n, ...r }) => k("li", {
|
|
1492
|
+
className: U()("py-1 [&>p]:inline", t),
|
|
1493
|
+
"data-streamdown": "list-item",
|
|
1494
|
+
...r,
|
|
1495
|
+
children: e
|
|
1496
|
+
}), (e, t) => e.className === t.className && nt(e.node, t.node));
|
|
1497
|
+
ct.displayName = "MarkdownLi";
|
|
1498
|
+
var lt = x(({ children: e, className: t, node: n, ...r }) => k("ul", {
|
|
1499
|
+
className: U()("list-inside list-disc whitespace-normal [li_&]:pl-6", t),
|
|
1500
|
+
"data-streamdown": "unordered-list",
|
|
1501
|
+
...r,
|
|
1502
|
+
children: e
|
|
1503
|
+
}), (e, t) => Q(e, t));
|
|
1504
|
+
lt.displayName = "MarkdownUl";
|
|
1505
|
+
var ut = x(({ className: e, node: t, ...n }) => k("hr", {
|
|
1506
|
+
className: U()("my-6 border-border", e),
|
|
1507
|
+
"data-streamdown": "horizontal-rule",
|
|
1508
|
+
...n
|
|
1509
|
+
}), (e, t) => Q(e, t));
|
|
1510
|
+
ut.displayName = "MarkdownHr";
|
|
1511
|
+
var dt = x(({ children: e, className: t, node: n, ...r }) => k("span", {
|
|
1512
|
+
className: U()("font-semibold", t),
|
|
1513
|
+
"data-streamdown": "strong",
|
|
1514
|
+
...r,
|
|
1515
|
+
children: e
|
|
1516
|
+
}), (e, t) => Q(e, t));
|
|
1517
|
+
dt.displayName = "MarkdownStrong";
|
|
1518
|
+
var ft = x(({ children: e, className: t, href: n, node: r, ...i }) => {
|
|
1519
|
+
let a = U(), { linkSafety: o } = C($), [s, c] = D(!1), l = n === "streamdown:incomplete-link", u = S(async (e) => {
|
|
1520
|
+
if (!(!(o != null && o.enabled && n) || l)) {
|
|
1521
|
+
if (e.preventDefault(), o.onLinkCheck && await o.onLinkCheck(n)) {
|
|
1522
|
+
window.open(n, "_blank", "noreferrer");
|
|
1523
|
+
return;
|
|
1524
|
+
}
|
|
1525
|
+
c(!0);
|
|
1526
|
+
}
|
|
1527
|
+
}, [
|
|
1528
|
+
o,
|
|
1529
|
+
n,
|
|
1530
|
+
l
|
|
1531
|
+
]), d = S(() => {
|
|
1532
|
+
n && window.open(n, "_blank", "noreferrer");
|
|
1533
|
+
}, [n]), f = S(() => {
|
|
1534
|
+
c(!1);
|
|
1535
|
+
}, []), p = {
|
|
1536
|
+
url: n ?? "",
|
|
1537
|
+
isOpen: s,
|
|
1538
|
+
onClose: f,
|
|
1539
|
+
onConfirm: d
|
|
1540
|
+
};
|
|
1541
|
+
return o != null && o.enabled && n ? A(O, { children: [k("button", {
|
|
1542
|
+
className: a("wrap-anywhere appearance-none text-left font-medium text-primary underline", t),
|
|
1543
|
+
"data-incomplete": l,
|
|
1544
|
+
"data-streamdown": "link",
|
|
1545
|
+
onClick: u,
|
|
1546
|
+
type: "button",
|
|
1547
|
+
children: e
|
|
1548
|
+
}), o.renderModal ? o.renderModal(p) : k(Pe, { ...p })] }) : k("a", {
|
|
1549
|
+
className: a("wrap-anywhere font-medium text-primary underline", t),
|
|
1550
|
+
"data-incomplete": l,
|
|
1551
|
+
"data-streamdown": "link",
|
|
1552
|
+
href: n,
|
|
1553
|
+
rel: "noreferrer",
|
|
1554
|
+
target: "_blank",
|
|
1555
|
+
...i,
|
|
1556
|
+
children: e
|
|
1557
|
+
});
|
|
1558
|
+
}, (e, t) => Q(e, t) && e.href === t.href);
|
|
1559
|
+
ft.displayName = "MarkdownA";
|
|
1560
|
+
var pt = x(({ children: e, className: t, node: n, ...r }) => k("h1", {
|
|
1561
|
+
className: U()("mt-6 mb-2 font-semibold text-3xl", t),
|
|
1562
|
+
"data-streamdown": "heading-1",
|
|
1563
|
+
...r,
|
|
1564
|
+
children: e
|
|
1565
|
+
}), (e, t) => Q(e, t));
|
|
1566
|
+
pt.displayName = "MarkdownH1";
|
|
1567
|
+
var mt = x(({ children: e, className: t, node: n, ...r }) => k("h2", {
|
|
1568
|
+
className: U()("mt-6 mb-2 font-semibold text-2xl", t),
|
|
1569
|
+
"data-streamdown": "heading-2",
|
|
1570
|
+
...r,
|
|
1571
|
+
children: e
|
|
1572
|
+
}), (e, t) => Q(e, t));
|
|
1573
|
+
mt.displayName = "MarkdownH2";
|
|
1574
|
+
var ht = x(({ children: e, className: t, node: n, ...r }) => k("h3", {
|
|
1575
|
+
className: U()("mt-6 mb-2 font-semibold text-xl", t),
|
|
1576
|
+
"data-streamdown": "heading-3",
|
|
1577
|
+
...r,
|
|
1578
|
+
children: e
|
|
1579
|
+
}), (e, t) => Q(e, t));
|
|
1580
|
+
ht.displayName = "MarkdownH3";
|
|
1581
|
+
var gt = x(({ children: e, className: t, node: n, ...r }) => k("h4", {
|
|
1582
|
+
className: U()("mt-6 mb-2 font-semibold text-lg", t),
|
|
1583
|
+
"data-streamdown": "heading-4",
|
|
1584
|
+
...r,
|
|
1585
|
+
children: e
|
|
1586
|
+
}), (e, t) => Q(e, t));
|
|
1587
|
+
gt.displayName = "MarkdownH4";
|
|
1588
|
+
var _t = x(({ children: e, className: t, node: n, ...r }) => k("h5", {
|
|
1589
|
+
className: U()("mt-6 mb-2 font-semibold text-base", t),
|
|
1590
|
+
"data-streamdown": "heading-5",
|
|
1591
|
+
...r,
|
|
1592
|
+
children: e
|
|
1593
|
+
}), (e, t) => Q(e, t));
|
|
1594
|
+
_t.displayName = "MarkdownH5";
|
|
1595
|
+
var vt = x(({ children: e, className: t, node: n, ...r }) => k("h6", {
|
|
1596
|
+
className: U()("mt-6 mb-2 font-semibold text-sm", t),
|
|
1597
|
+
"data-streamdown": "heading-6",
|
|
1598
|
+
...r,
|
|
1599
|
+
children: e
|
|
1600
|
+
}), (e, t) => Q(e, t));
|
|
1601
|
+
vt.displayName = "MarkdownH6";
|
|
1602
|
+
var yt = x(({ children: e, className: t, node: n, ...r }) => {
|
|
1603
|
+
let { controls: i } = C($);
|
|
1604
|
+
return k(Ze, {
|
|
1605
|
+
className: t,
|
|
1606
|
+
showControls: rt(i, "table"),
|
|
1607
|
+
showCopy: it(i, "copy"),
|
|
1608
|
+
showDownload: it(i, "download"),
|
|
1609
|
+
showFullscreen: it(i, "fullscreen"),
|
|
1610
|
+
...r,
|
|
1611
|
+
children: e
|
|
1612
|
+
});
|
|
1613
|
+
}, (e, t) => Q(e, t));
|
|
1614
|
+
yt.displayName = "MarkdownTable";
|
|
1615
|
+
var bt = x(({ children: e, className: t, node: n, ...r }) => k("thead", {
|
|
1616
|
+
className: U()("bg-muted/80", t),
|
|
1617
|
+
"data-streamdown": "table-header",
|
|
1618
|
+
...r,
|
|
1619
|
+
children: e
|
|
1620
|
+
}), (e, t) => Q(e, t));
|
|
1621
|
+
bt.displayName = "MarkdownThead";
|
|
1622
|
+
var xt = x(({ children: e, className: t, node: n, ...r }) => k("tbody", {
|
|
1623
|
+
className: U()("divide-y divide-border", t),
|
|
1624
|
+
"data-streamdown": "table-body",
|
|
1625
|
+
...r,
|
|
1626
|
+
children: e
|
|
1627
|
+
}), (e, t) => Q(e, t));
|
|
1628
|
+
xt.displayName = "MarkdownTbody";
|
|
1629
|
+
var St = x(({ children: e, className: t, node: n, ...r }) => k("tr", {
|
|
1630
|
+
className: U()("border-border", t),
|
|
1631
|
+
"data-streamdown": "table-row",
|
|
1632
|
+
...r,
|
|
1633
|
+
children: e
|
|
1634
|
+
}), (e, t) => Q(e, t));
|
|
1635
|
+
St.displayName = "MarkdownTr";
|
|
1636
|
+
var Ct = x(({ children: e, className: t, node: n, ...r }) => k("th", {
|
|
1637
|
+
className: U()("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm", t),
|
|
1638
|
+
"data-streamdown": "table-header-cell",
|
|
1639
|
+
...r,
|
|
1640
|
+
children: e
|
|
1641
|
+
}), (e, t) => Q(e, t));
|
|
1642
|
+
Ct.displayName = "MarkdownTh";
|
|
1643
|
+
var wt = x(({ children: e, className: t, node: n, ...r }) => k("td", {
|
|
1644
|
+
className: U()("px-4 py-2 text-sm", t),
|
|
1645
|
+
"data-streamdown": "table-cell",
|
|
1646
|
+
...r,
|
|
1647
|
+
children: e
|
|
1648
|
+
}), (e, t) => Q(e, t));
|
|
1649
|
+
wt.displayName = "MarkdownTd";
|
|
1650
|
+
var Tt = x(({ children: e, className: t, node: n, ...r }) => k("blockquote", {
|
|
1651
|
+
className: U()("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic", t),
|
|
1652
|
+
"data-streamdown": "blockquote",
|
|
1653
|
+
...r,
|
|
1654
|
+
children: e
|
|
1655
|
+
}), (e, t) => Q(e, t));
|
|
1656
|
+
Tt.displayName = "MarkdownBlockquote";
|
|
1657
|
+
var Et = x(({ children: e, className: t, node: n, ...r }) => k("sup", {
|
|
1658
|
+
className: U()("text-sm", t),
|
|
1659
|
+
"data-streamdown": "superscript",
|
|
1660
|
+
...r,
|
|
1661
|
+
children: e
|
|
1662
|
+
}), (e, t) => Q(e, t));
|
|
1663
|
+
Et.displayName = "MarkdownSup";
|
|
1664
|
+
var Dt = x(({ children: e, className: t, node: n, ...r }) => k("sub", {
|
|
1665
|
+
className: U()("text-sm", t),
|
|
1666
|
+
"data-streamdown": "subscript",
|
|
1667
|
+
...r,
|
|
1668
|
+
children: e
|
|
1669
|
+
}), (e, t) => Q(e, t));
|
|
1670
|
+
Dt.displayName = "MarkdownSub";
|
|
1671
|
+
var Ot = x(({ children: e, className: t, node: n, ...r }) => {
|
|
1672
|
+
if ("data-footnotes" in r) {
|
|
1673
|
+
let n = (e) => {
|
|
1674
|
+
if (!y(e)) return !1;
|
|
1675
|
+
let t = Array.isArray(e.props.children) ? e.props.children : [e.props.children], n = !1, r = !1;
|
|
1676
|
+
for (let e of t) if (e) {
|
|
1677
|
+
if (typeof e == "string") e.trim() !== "" && (n = !0);
|
|
1678
|
+
else if (y(e)) if (e.props?.["data-footnote-backref"] !== void 0) r = !0;
|
|
1679
|
+
else {
|
|
1680
|
+
let t = Array.isArray(e.props.children) ? e.props.children : [e.props.children];
|
|
1681
|
+
for (let e of t) {
|
|
1682
|
+
if (typeof e == "string" && e.trim() !== "") {
|
|
1683
|
+
n = !0;
|
|
1684
|
+
break;
|
|
1685
|
+
}
|
|
1686
|
+
if (y(e) && e.props?.["data-footnote-backref"] === void 0) {
|
|
1687
|
+
n = !0;
|
|
1688
|
+
break;
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
return r && !n;
|
|
1694
|
+
}, i = Array.isArray(e) ? e.map((e) => {
|
|
1695
|
+
if (!y(e)) return e;
|
|
1696
|
+
if (e.type === st) {
|
|
1697
|
+
let t = (Array.isArray(e.props.children) ? e.props.children : [e.props.children]).filter((e) => !n(e));
|
|
1698
|
+
return t.length === 0 ? null : {
|
|
1699
|
+
...e,
|
|
1700
|
+
props: {
|
|
1701
|
+
...e.props,
|
|
1702
|
+
children: t
|
|
1703
|
+
}
|
|
1704
|
+
};
|
|
1705
|
+
}
|
|
1706
|
+
return e;
|
|
1707
|
+
}) : e;
|
|
1708
|
+
return (Array.isArray(i) ? i.some((e) => e !== null) : i !== null) ? k("section", {
|
|
1709
|
+
className: t,
|
|
1710
|
+
...r,
|
|
1711
|
+
children: i
|
|
1712
|
+
}) : null;
|
|
1713
|
+
}
|
|
1714
|
+
return k("section", {
|
|
1715
|
+
className: t,
|
|
1716
|
+
...r,
|
|
1717
|
+
children: e
|
|
1718
|
+
});
|
|
1719
|
+
}, (e, t) => Q(e, t));
|
|
1720
|
+
Ot.displayName = "MarkdownSection";
|
|
1721
|
+
var kt = x(({ node: e, className: t, children: n, ...r }) => {
|
|
1722
|
+
let i = U(), a = !("data-block" in r), { mermaid: o, controls: s, lineNumbers: c } = C($), l = Re(), u = de(), d = (t?.match(tt))?.at(1) ?? "", f = ze(d);
|
|
1723
|
+
if (a) return k("code", {
|
|
1724
|
+
className: i("rounded bg-muted px-1.5 py-0.5 font-mono text-sm", t),
|
|
1725
|
+
"data-streamdown": "inline-code",
|
|
1726
|
+
...r,
|
|
1727
|
+
children: n
|
|
1728
|
+
});
|
|
1729
|
+
let p = e?.properties?.metastring, m = p?.match(Qe), g = m ? Number.parseInt(m[1], 10) : void 0, _ = g !== void 0 && g >= 1 ? g : void 0, v = !(p && $e.test(p)) && c !== !1, b = "";
|
|
1730
|
+
if (y(n) && n.props && typeof n.props == "object" && "children" in n.props && typeof n.props.children == "string" ? b = n.props.children : typeof n == "string" && (b = n), f) {
|
|
1731
|
+
let e = f.component;
|
|
1732
|
+
return k(h, {
|
|
1733
|
+
fallback: k(ke, {}),
|
|
1734
|
+
children: k(e, {
|
|
1735
|
+
code: b,
|
|
1736
|
+
isIncomplete: u,
|
|
1737
|
+
language: d,
|
|
1738
|
+
meta: p
|
|
1739
|
+
})
|
|
1740
|
+
});
|
|
1741
|
+
}
|
|
1742
|
+
if (d === "mermaid" && l) {
|
|
1743
|
+
let e = rt(s, "mermaid"), n = ot(s, "download"), r = ot(s, "copy"), a = ot(s, "fullscreen"), c = ot(s, "panZoom"), l = e && (n || r || a);
|
|
1744
|
+
return k(h, {
|
|
1745
|
+
fallback: k(ke, {}),
|
|
1746
|
+
children: A("div", {
|
|
1747
|
+
className: i("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", t),
|
|
1748
|
+
"data-streamdown": "mermaid-block",
|
|
1749
|
+
children: [
|
|
1750
|
+
k("div", {
|
|
1751
|
+
className: i("flex h-8 items-center text-muted-foreground text-xs"),
|
|
1752
|
+
children: k("span", {
|
|
1753
|
+
className: i("ml-1 font-mono lowercase"),
|
|
1754
|
+
children: "mermaid"
|
|
1755
|
+
})
|
|
1756
|
+
}),
|
|
1757
|
+
l ? k("div", {
|
|
1758
|
+
className: i("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),
|
|
1759
|
+
children: A("div", {
|
|
1760
|
+
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
|
+
"data-streamdown": "mermaid-block-actions",
|
|
1762
|
+
children: [
|
|
1763
|
+
n ? k(Ve, {
|
|
1764
|
+
chart: b,
|
|
1765
|
+
config: o?.config
|
|
1766
|
+
}) : null,
|
|
1767
|
+
r ? k(Ee, { code: b }) : null,
|
|
1768
|
+
a ? k(He, {
|
|
1769
|
+
chart: b,
|
|
1770
|
+
config: o?.config
|
|
1771
|
+
}) : null
|
|
1772
|
+
]
|
|
1773
|
+
})
|
|
1774
|
+
}) : null,
|
|
1775
|
+
k("div", {
|
|
1776
|
+
className: i("rounded-md border border-border bg-background"),
|
|
1777
|
+
children: k(et, {
|
|
1778
|
+
chart: b,
|
|
1779
|
+
config: o?.config,
|
|
1780
|
+
showControls: c
|
|
1781
|
+
})
|
|
1782
|
+
})
|
|
1783
|
+
]
|
|
1784
|
+
})
|
|
1785
|
+
});
|
|
1786
|
+
}
|
|
1787
|
+
let x = rt(s, "code"), S = at(s, "download"), w = at(s, "copy");
|
|
1788
|
+
return k(be, {
|
|
1789
|
+
className: t,
|
|
1790
|
+
code: b,
|
|
1791
|
+
isIncomplete: u,
|
|
1792
|
+
language: d,
|
|
1793
|
+
lineNumbers: v,
|
|
1794
|
+
startLine: _,
|
|
1795
|
+
children: x ? A(O, { children: [S ? k(Oe, {
|
|
1796
|
+
code: b,
|
|
1797
|
+
language: d
|
|
1798
|
+
}) : null, w ? k(Ee, {}) : null] }) : null
|
|
1799
|
+
});
|
|
1800
|
+
}, (e, t) => e.className === t.className && nt(e.node, t.node));
|
|
1801
|
+
kt.displayName = "MarkdownCode";
|
|
1802
|
+
var At = x(je, (e, t) => e.className === t.className && nt(e.node, t.node));
|
|
1803
|
+
At.displayName = "MarkdownImg";
|
|
1804
|
+
var jt = x(({ children: e, node: t, ...n }) => {
|
|
1805
|
+
let r = (Array.isArray(e) ? e : [e]).filter((e) => e != null && e !== "");
|
|
1806
|
+
if (r.length === 1 && y(r[0])) {
|
|
1807
|
+
let t = r[0].props.node?.tagName;
|
|
1808
|
+
if (t === "img" || t === "code" && "data-block" in r[0].props) return k(O, { children: e });
|
|
1809
|
+
}
|
|
1810
|
+
return k("p", {
|
|
1811
|
+
...n,
|
|
1812
|
+
children: e
|
|
1813
|
+
});
|
|
1814
|
+
}, (e, t) => Q(e, t));
|
|
1815
|
+
jt.displayName = "MarkdownParagraph";
|
|
1816
|
+
var Mt = {
|
|
1817
|
+
ol: st,
|
|
1818
|
+
li: ct,
|
|
1819
|
+
ul: lt,
|
|
1820
|
+
hr: ut,
|
|
1821
|
+
strong: dt,
|
|
1822
|
+
a: ft,
|
|
1823
|
+
h1: pt,
|
|
1824
|
+
h2: mt,
|
|
1825
|
+
h3: ht,
|
|
1826
|
+
h4: gt,
|
|
1827
|
+
h5: _t,
|
|
1828
|
+
h6: vt,
|
|
1829
|
+
table: yt,
|
|
1830
|
+
thead: bt,
|
|
1831
|
+
tbody: xt,
|
|
1832
|
+
tr: St,
|
|
1833
|
+
th: Ct,
|
|
1834
|
+
td: wt,
|
|
1835
|
+
blockquote: Tt,
|
|
1836
|
+
code: kt,
|
|
1837
|
+
img: At,
|
|
1838
|
+
pre: ({ children: e }) => y(e) ? g(e, { "data-block": "true" }) : e,
|
|
1839
|
+
sup: Et,
|
|
1840
|
+
sub: Dt,
|
|
1841
|
+
p: jt,
|
|
1842
|
+
section: Ot
|
|
1843
|
+
}, Nt = /[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/, Pt = /\p{L}/u;
|
|
1844
|
+
function Ft(e) {
|
|
1845
|
+
let t = e.replace(/^#{1,6}\s+/gm, "").replace(/(\*{1,3}|_{1,3})/g, "").replace(/`[^`]*`/g, "").replace(/\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/^[\s>*\-+\d.]+/gm, "");
|
|
1846
|
+
for (let e of t) {
|
|
1847
|
+
if (Nt.test(e)) return "rtl";
|
|
1848
|
+
if (Pt.test(e)) return "ltr";
|
|
1849
|
+
}
|
|
1850
|
+
return "ltr";
|
|
1851
|
+
}
|
|
1852
|
+
var It = /^[ \t]{0,3}(`{3,}|~{3,})/, Lt = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/, Rt = (e) => {
|
|
1853
|
+
let t = e.split("\n"), n = null, r = 0;
|
|
1854
|
+
for (let e of t) {
|
|
1855
|
+
let t = It.exec(e);
|
|
1856
|
+
if (n === null) {
|
|
1857
|
+
if (t) {
|
|
1858
|
+
let e = t[1];
|
|
1859
|
+
n = e[0], r = e.length;
|
|
1860
|
+
}
|
|
1861
|
+
} else if (t) {
|
|
1862
|
+
let e = t[1], i = e[0], a = e.length;
|
|
1863
|
+
i === n && a >= r && (n = null, r = 0);
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
return n !== null;
|
|
1867
|
+
}, zt = (e) => {
|
|
1868
|
+
let t = e.split("\n");
|
|
1869
|
+
for (let e of t) {
|
|
1870
|
+
let t = e.trim();
|
|
1871
|
+
if (t.length > 0 && t.includes("|") && Lt.test(t)) return !0;
|
|
1872
|
+
}
|
|
1873
|
+
return !1;
|
|
1874
|
+
}, Bt = () => (e) => {
|
|
1875
|
+
n(e, "html", (e, t, n) => {
|
|
1876
|
+
!n || typeof t != "number" || (n.children[t] = {
|
|
1877
|
+
type: "text",
|
|
1878
|
+
value: e.value
|
|
1879
|
+
});
|
|
1880
|
+
});
|
|
1881
|
+
}, Vt = [], Ht = { allowDangerousHtml: !0 }, Ut = /* @__PURE__ */ new WeakMap(), Wt = new class {
|
|
1882
|
+
constructor() {
|
|
1883
|
+
this.cache = /* @__PURE__ */ new Map(), this.keyCache = /* @__PURE__ */ new WeakMap(), this.maxSize = 100;
|
|
1884
|
+
}
|
|
1885
|
+
generateCacheKey(e) {
|
|
1886
|
+
let t = this.keyCache.get(e);
|
|
1887
|
+
if (t) return t;
|
|
1888
|
+
let n = e.rehypePlugins, r = e.remarkPlugins, i = e.remarkRehypeOptions;
|
|
1889
|
+
if (!(n || r || i)) {
|
|
1890
|
+
let t = "default";
|
|
1891
|
+
return this.keyCache.set(e, t), t;
|
|
1892
|
+
}
|
|
1893
|
+
let a = (e) => {
|
|
1894
|
+
if (!e || e.length === 0) return "";
|
|
1895
|
+
let t = "";
|
|
1896
|
+
for (let n = 0; n < e.length; n += 1) {
|
|
1897
|
+
let r = e[n];
|
|
1898
|
+
if (n > 0 && (t += ","), Array.isArray(r)) {
|
|
1899
|
+
let [e, n] = r;
|
|
1900
|
+
if (typeof e == "function") {
|
|
1901
|
+
let n = Ut.get(e);
|
|
1902
|
+
n || (n = e.name, Ut.set(e, n)), t += n;
|
|
1903
|
+
} else t += String(e);
|
|
1904
|
+
t += ":", t += JSON.stringify(n);
|
|
1905
|
+
} else if (typeof r == "function") {
|
|
1906
|
+
let e = Ut.get(r);
|
|
1907
|
+
e || (e = r.name, Ut.set(r, e)), t += e;
|
|
1908
|
+
} else t += String(r);
|
|
1909
|
+
}
|
|
1910
|
+
return t;
|
|
1911
|
+
}, o = a(n), s = `${a(r)}::${o}::${i ? JSON.stringify(i) : ""}`;
|
|
1912
|
+
return this.keyCache.set(e, s), s;
|
|
1913
|
+
}
|
|
1914
|
+
get(e) {
|
|
1915
|
+
let t = this.generateCacheKey(e), n = this.cache.get(t);
|
|
1916
|
+
return n && (this.cache.delete(t), this.cache.set(t, n)), n;
|
|
1917
|
+
}
|
|
1918
|
+
set(e, t) {
|
|
1919
|
+
let n = this.generateCacheKey(e);
|
|
1920
|
+
if (this.cache.size >= this.maxSize) {
|
|
1921
|
+
let e = this.cache.keys().next().value;
|
|
1922
|
+
e && this.cache.delete(e);
|
|
1923
|
+
}
|
|
1924
|
+
this.cache.set(n, t);
|
|
1925
|
+
}
|
|
1926
|
+
clear() {
|
|
1927
|
+
this.cache.clear();
|
|
1928
|
+
}
|
|
1929
|
+
}(), Gt = (e) => {
|
|
1930
|
+
let t = Kt(e), n = e.children || "";
|
|
1931
|
+
return $t(t.runSync(t.parse(n), n), e);
|
|
1932
|
+
}, Kt = (e) => {
|
|
1933
|
+
let t = Wt.get(e);
|
|
1934
|
+
if (t) return t;
|
|
1935
|
+
let n = Jt(e);
|
|
1936
|
+
return Wt.set(e, n), n;
|
|
1937
|
+
}, qt = (e) => e.some((e) => Array.isArray(e) ? e[0] === a : e === a), Jt = (e) => {
|
|
1938
|
+
let t = e.rehypePlugins || Vt, n = e.remarkPlugins || Vt, r = qt(t) ? n : [...n, Bt], i = e.remarkRehypeOptions ? {
|
|
1939
|
+
...Ht,
|
|
1940
|
+
...e.remarkRehypeOptions
|
|
1941
|
+
} : Ht;
|
|
1942
|
+
return p().use(d).use(r).use(f, i).use(t);
|
|
1943
|
+
}, Yt = (e) => e, Xt = (e, t, n, r) => {
|
|
1944
|
+
n ? e.children.splice(t, 1) : e.children[t] = {
|
|
1945
|
+
type: "text",
|
|
1946
|
+
value: r
|
|
1947
|
+
};
|
|
1948
|
+
}, Zt = (e, t) => {
|
|
1949
|
+
for (let n in u) if (Object.hasOwn(u, n) && Object.hasOwn(e.properties, n)) {
|
|
1950
|
+
let r = e.properties[n], i = u[n];
|
|
1951
|
+
(i === null || i.includes(e.tagName)) && (e.properties[n] = t(String(r || ""), n, e) ?? void 0);
|
|
1952
|
+
}
|
|
1953
|
+
}, Qt = (e, t, n, r, i, a) => {
|
|
1954
|
+
let o = !1;
|
|
1955
|
+
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
|
+
}, $t = (e, t) => {
|
|
1957
|
+
let { allowElement: r, allowedElements: i, disallowedElements: a, skipHtml: o, unwrapDisallowed: s, urlTransform: c } = t;
|
|
1958
|
+
if (r || i || a || o || c) {
|
|
1959
|
+
let t = c || Yt;
|
|
1960
|
+
n(e, (e, n, c) => {
|
|
1961
|
+
if (e.type === "raw" && c && typeof n == "number") return Xt(c, n, o, e.value), n;
|
|
1962
|
+
if (e.type === "element" && (Zt(e, t), Qt(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
|
+
});
|
|
1964
|
+
}
|
|
1965
|
+
return l(e, {
|
|
1966
|
+
Fragment: O,
|
|
1967
|
+
components: t.components,
|
|
1968
|
+
ignoreInvalidStyle: !0,
|
|
1969
|
+
jsx: k,
|
|
1970
|
+
jsxs: A,
|
|
1971
|
+
passKeys: !0,
|
|
1972
|
+
passNode: !0
|
|
1973
|
+
});
|
|
1974
|
+
}, en = /\[\^[\w-]{1,200}\](?!:)/, tn = /\[\^[\w-]{1,200}\]:/, nn = /<(\w+)[\s>]/, rn = new Set([
|
|
1975
|
+
"area",
|
|
1976
|
+
"base",
|
|
1977
|
+
"br",
|
|
1978
|
+
"col",
|
|
1979
|
+
"embed",
|
|
1980
|
+
"hr",
|
|
1981
|
+
"img",
|
|
1982
|
+
"input",
|
|
1983
|
+
"link",
|
|
1984
|
+
"meta",
|
|
1985
|
+
"param",
|
|
1986
|
+
"source",
|
|
1987
|
+
"track",
|
|
1988
|
+
"wbr"
|
|
1989
|
+
]), an = /* @__PURE__ */ new Map(), on = /* @__PURE__ */ new Map(), sn = (e) => {
|
|
1990
|
+
let t = e.toLowerCase(), n = an.get(t);
|
|
1991
|
+
if (n) return n;
|
|
1992
|
+
let r = RegExp(`<${t}(?=[\\s>/])[^>]*>`, "gi");
|
|
1993
|
+
return an.set(t, r), r;
|
|
1994
|
+
}, cn = (e) => {
|
|
1995
|
+
let t = e.toLowerCase(), n = on.get(t);
|
|
1996
|
+
if (n) return n;
|
|
1997
|
+
let r = RegExp(`</${t}(?=[\\s>])[^>]*>`, "gi");
|
|
1998
|
+
return on.set(t, r), r;
|
|
1999
|
+
}, ln = (e, t) => {
|
|
2000
|
+
if (rn.has(t.toLowerCase())) return 0;
|
|
2001
|
+
let n = e.match(sn(t));
|
|
2002
|
+
if (!n) return 0;
|
|
2003
|
+
let r = 0;
|
|
2004
|
+
for (let e of n) e.trimEnd().endsWith("/>") || (r += 1);
|
|
2005
|
+
return r;
|
|
2006
|
+
}, un = (e, t) => {
|
|
2007
|
+
let n = e.match(cn(t));
|
|
2008
|
+
return n ? n.length : 0;
|
|
2009
|
+
}, dn = (e) => {
|
|
2010
|
+
let t = 0;
|
|
2011
|
+
for (let n = 0; n < e.length - 1; n += 1) e[n] === "$" && e[n + 1] === "$" && (t += 1, n += 1);
|
|
2012
|
+
return t;
|
|
2013
|
+
}, fn = (e) => {
|
|
2014
|
+
let t = en.test(e), n = tn.test(e);
|
|
2015
|
+
if (t || n) return [e];
|
|
2016
|
+
let r = m.lex(e, { gfm: !0 }), i = [], a = [], o = !1;
|
|
2017
|
+
for (let e of r) {
|
|
2018
|
+
let t = e.raw, n = i.length;
|
|
2019
|
+
if (a.length > 0) {
|
|
2020
|
+
i[n - 1] += t;
|
|
2021
|
+
let e = a.at(-1), r = ln(t, e), o = un(t, e);
|
|
2022
|
+
for (let t = 0; t < r; t += 1) a.push(e);
|
|
2023
|
+
for (let t = 0; t < o; t += 1) a.length > 0 && a.at(-1) === e && a.pop();
|
|
2024
|
+
continue;
|
|
2025
|
+
}
|
|
2026
|
+
if (e.type === "html" && e.block) {
|
|
2027
|
+
let e = t.match(nn);
|
|
2028
|
+
if (e) {
|
|
2029
|
+
let n = e[1];
|
|
2030
|
+
ln(t, n) > un(t, n) && a.push(n);
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
if (n > 0 && !o) {
|
|
2034
|
+
let e = i[n - 1];
|
|
2035
|
+
if (dn(e) % 2 == 1) {
|
|
2036
|
+
i[n - 1] = e + t;
|
|
2037
|
+
continue;
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2040
|
+
i.push(t), e.type !== "space" && (o = e.type === "code");
|
|
2041
|
+
}
|
|
2042
|
+
return i;
|
|
2043
|
+
}, pn = (e, t) => {
|
|
2044
|
+
if (!t.length) return e;
|
|
2045
|
+
let n = e;
|
|
2046
|
+
for (let e of t) {
|
|
2047
|
+
let t = RegExp(`(<${e}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${e}\\s*>)`, "gi");
|
|
2048
|
+
n = n.replace(t, (e, t, n, r) => {
|
|
2049
|
+
if (!n.includes("\n\n")) return t + n + r;
|
|
2050
|
+
let i = n.replace(/\n\n/g, "\n<!---->\n");
|
|
2051
|
+
return `${t}${(i.startsWith("\n") ? "" : "\n") + i + (i.endsWith("\n") ? "" : "\n")}${r}
|
|
2052
|
+
|
|
2053
|
+
`;
|
|
2054
|
+
});
|
|
2055
|
+
}
|
|
2056
|
+
return n;
|
|
2057
|
+
}, mn = /([\\`*_~[\]|])/g, hn = (e) => e.replace(mn, "\\$1"), gn = (e, t) => {
|
|
2058
|
+
if (!t.length) return e;
|
|
2059
|
+
let n = e;
|
|
2060
|
+
for (let e of t) {
|
|
2061
|
+
let t = RegExp(`(<${e}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${e}\\s*>)`, "gi");
|
|
2062
|
+
n = n.replace(t, (e, t, n, r) => t + hn(n).replace(/\n\n/g, " ") + r);
|
|
2063
|
+
}
|
|
2064
|
+
return n;
|
|
2065
|
+
}, _n = (e) => e.type === "text" ? e.value : "children" in e && Array.isArray(e.children) ? e.children.map(_n).join("") : "", vn = (e) => (t) => {
|
|
2066
|
+
if (!e || e.length === 0) return;
|
|
2067
|
+
let r = new Set(e.map((e) => e.toLowerCase()));
|
|
2068
|
+
n(t, "element", (e) => {
|
|
2069
|
+
if (r.has(e.tagName.toLowerCase())) {
|
|
2070
|
+
let t = _n(e);
|
|
2071
|
+
e.children = t ? [{
|
|
2072
|
+
type: "text",
|
|
2073
|
+
value: t
|
|
2074
|
+
}] : [];
|
|
2075
|
+
}
|
|
2076
|
+
});
|
|
2077
|
+
}, yn = () => (e) => {
|
|
2078
|
+
n(e, "code", (e) => {
|
|
2079
|
+
e.meta && (e.data = e.data ?? {}, e.data.hProperties = {
|
|
2080
|
+
...e.data.hProperties ?? {},
|
|
2081
|
+
metastring: e.meta
|
|
2082
|
+
});
|
|
2083
|
+
});
|
|
2084
|
+
}, bn = /^[ \t]*<[\w!/?-]/, xn = /(^|\n)[ \t]{4,}(?=<[\w!/?-])/g, Sn = (e) => typeof e != "string" || e.length === 0 || !bn.test(e) ? e : e.replace(xn, "$1"), Cn = {
|
|
2085
|
+
...o,
|
|
2086
|
+
protocols: {
|
|
2087
|
+
...o.protocols,
|
|
2088
|
+
href: [...o.protocols?.href ?? [], "tel"]
|
|
2089
|
+
},
|
|
2090
|
+
attributes: {
|
|
2091
|
+
...o.attributes,
|
|
2092
|
+
code: [...o.attributes?.code ?? [], "metastring"]
|
|
2093
|
+
}
|
|
2094
|
+
}, wn = {
|
|
2095
|
+
raw: a,
|
|
2096
|
+
sanitize: [s, Cn],
|
|
2097
|
+
harden: [i, {
|
|
2098
|
+
allowedImagePrefixes: ["*"],
|
|
2099
|
+
allowedLinkPrefixes: ["*"],
|
|
2100
|
+
allowedProtocols: ["*"],
|
|
2101
|
+
defaultOrigin: void 0,
|
|
2102
|
+
allowDataImages: !0
|
|
2103
|
+
}]
|
|
2104
|
+
}, Tn = {
|
|
2105
|
+
gfm: [r, {}],
|
|
2106
|
+
codeMeta: yn
|
|
2107
|
+
}, En = Object.values(wn), Dn = Object.values(Tn), On = {
|
|
2108
|
+
block: " ▋",
|
|
2109
|
+
circle: " ●"
|
|
2110
|
+
}, kn = ["github-light", "github-dark"], An = { enabled: !0 }, $ = _({
|
|
2111
|
+
shikiTheme: kn,
|
|
2112
|
+
controls: !0,
|
|
2113
|
+
isAnimating: !1,
|
|
2114
|
+
lineNumbers: !0,
|
|
2115
|
+
mode: "streaming",
|
|
2116
|
+
mermaid: void 0,
|
|
2117
|
+
linkSafety: An
|
|
2118
|
+
}), jn = x(({ content: e, shouldParseIncompleteMarkdown: t, shouldNormalizeHtmlIndentation: n, index: r, isIncomplete: i, dir: a, animatePlugin: o, ...s }) => {
|
|
2119
|
+
if (o) {
|
|
2120
|
+
let e = o.getLastRenderCharCount();
|
|
2121
|
+
o.setPrevContentLength(e);
|
|
2122
|
+
}
|
|
2123
|
+
let c = typeof e == "string" && n ? Sn(e) : e, l = k(Gt, {
|
|
2124
|
+
...s,
|
|
2125
|
+
children: c
|
|
2126
|
+
});
|
|
2127
|
+
return k(ue.Provider, {
|
|
2128
|
+
value: i,
|
|
2129
|
+
children: a ? k("div", {
|
|
2130
|
+
dir: a,
|
|
2131
|
+
style: { display: "contents" },
|
|
2132
|
+
children: l
|
|
2133
|
+
}) : l
|
|
2134
|
+
});
|
|
2135
|
+
}, (e, t) => {
|
|
2136
|
+
if (e.content !== t.content || e.shouldNormalizeHtmlIndentation !== t.shouldNormalizeHtmlIndentation || e.index !== t.index || e.isIncomplete !== t.isIncomplete || e.dir !== t.dir) return !1;
|
|
2137
|
+
if (e.components !== t.components) {
|
|
2138
|
+
let n = Object.keys(e.components || {}), r = Object.keys(t.components || {});
|
|
2139
|
+
if (n.length !== r.length || n.some((n) => e.components?.[n] !== t.components?.[n])) return !1;
|
|
2140
|
+
}
|
|
2141
|
+
return !(e.rehypePlugins !== t.rehypePlugins || e.remarkPlugins !== t.remarkPlugins);
|
|
2142
|
+
});
|
|
2143
|
+
jn.displayName = "Block";
|
|
2144
|
+
var Mn = x(({ children: e, mode: t = "streaming", dir: n, parseIncompleteMarkdown: r = !0, normalizeHtmlIndentation: i = !1, components: a, rehypePlugins: o = En, remarkPlugins: l = Dn, className: u, shikiTheme: d = kn, mermaid: f, controls: p = !0, isAnimating: m = !1, animated: h, BlockComponent: g = jn, parseMarkdownIntoBlocksFn: _ = fn, caret: y, plugins: b, remend: x, linkSafety: S = An, lineNumbers: C = !0, allowedTags: O, literalTagContent: j, translations: M, icons: N, prefix: P, onAnimationStart: F, onAnimationEnd: ne, ...re }) => {
|
|
2145
|
+
let ie = ee(), [ae, oe] = te(), I = T(() => pe(P), [P]), se = E(null), L = E(F), ce = E(ne);
|
|
2146
|
+
L.current = F, ce.current = ne, w(() => {
|
|
2147
|
+
var e, n, r;
|
|
2148
|
+
if (t === "static") return;
|
|
2149
|
+
let i = se.current;
|
|
2150
|
+
if (se.current = m, i === null) {
|
|
2151
|
+
m && ((e = L.current) == null || e.call(L));
|
|
2152
|
+
return;
|
|
2153
|
+
}
|
|
2154
|
+
m && !i ? (n = L.current) == null || n.call(L) : !m && i && ((r = ce.current) == null || r.call(ce));
|
|
2155
|
+
}, [m, t]);
|
|
2156
|
+
let R = T(() => O ? Object.keys(O) : [], [O]), z = T(() => {
|
|
2157
|
+
if (typeof e != "string") return "";
|
|
2158
|
+
let n = t === "streaming" && r ? c(e, x) : e;
|
|
2159
|
+
return j && j.length > 0 && (n = gn(n, j)), R.length > 0 && (n = pn(n, R)), n;
|
|
2160
|
+
}, [
|
|
2161
|
+
e,
|
|
2162
|
+
t,
|
|
2163
|
+
r,
|
|
2164
|
+
x,
|
|
2165
|
+
R,
|
|
2166
|
+
j
|
|
2167
|
+
]), B = T(() => _(z), [z, _]), [ue, de] = D(B);
|
|
2168
|
+
w(() => {
|
|
2169
|
+
t === "streaming" && !W ? oe(() => {
|
|
2170
|
+
de(B);
|
|
2171
|
+
}) : de(B);
|
|
2172
|
+
}, [B, t]);
|
|
2173
|
+
let V = t === "streaming" ? ue : B, fe = T(() => n === "auto" ? V.map(Ft) : void 0, [V, n]), H = T(() => V.map((e, t) => `${ie}-${t}`), [V.length, ie]), U = T(() => h === !0 ? "true" : h ? JSON.stringify(h) : "", [h]), W = T(() => U ? U === "true" ? le() : le(h) : null, [U]), he = T(() => ({
|
|
2174
|
+
shikiTheme: (b?.code)?.getThemes() ?? d,
|
|
2175
|
+
controls: p,
|
|
2176
|
+
isAnimating: m,
|
|
2177
|
+
lineNumbers: C,
|
|
2178
|
+
mode: t,
|
|
2179
|
+
mermaid: f,
|
|
2180
|
+
linkSafety: S
|
|
2181
|
+
}), [
|
|
2182
|
+
d,
|
|
2183
|
+
p,
|
|
2184
|
+
m,
|
|
2185
|
+
C,
|
|
2186
|
+
t,
|
|
2187
|
+
f,
|
|
2188
|
+
S,
|
|
2189
|
+
b?.code
|
|
2190
|
+
]), G = T(() => ({
|
|
2191
|
+
...we,
|
|
2192
|
+
...M
|
|
2193
|
+
}), [T(() => M ? JSON.stringify(M) : "", [M])]), K = T(() => {
|
|
2194
|
+
let { inlineCode: e, ...t } = a ?? {}, n = {
|
|
2195
|
+
...Mt,
|
|
2196
|
+
...t
|
|
2197
|
+
};
|
|
2198
|
+
if (e) {
|
|
2199
|
+
let t = n.code;
|
|
2200
|
+
n.code = (n) => "data-block" in n ? t ? v(t, n) : null : v(e, n);
|
|
2201
|
+
}
|
|
2202
|
+
return n;
|
|
2203
|
+
}, [a]), ge = T(() => {
|
|
2204
|
+
let e = [];
|
|
2205
|
+
return b != null && b.cjk && (e = [...e, ...b.cjk.remarkPluginsBefore]), e = [...e, ...l], b != null && b.cjk && (e = [...e, ...b.cjk.remarkPluginsAfter]), b != null && b.math && (e = [...e, b.math.remarkPlugin]), e;
|
|
2206
|
+
}, [
|
|
2207
|
+
l,
|
|
2208
|
+
b?.math,
|
|
2209
|
+
b?.cjk
|
|
2210
|
+
]), _e = T(() => {
|
|
2211
|
+
let e = o;
|
|
2212
|
+
if (O && Object.keys(O).length > 0 && o === En) {
|
|
2213
|
+
let t = {
|
|
2214
|
+
...Cn,
|
|
2215
|
+
tagNames: [...Cn.tagNames ?? [], ...Object.keys(O)],
|
|
2216
|
+
attributes: {
|
|
2217
|
+
...Cn.attributes,
|
|
2218
|
+
...O
|
|
2219
|
+
}
|
|
2220
|
+
};
|
|
2221
|
+
e = [
|
|
2222
|
+
wn.raw,
|
|
2223
|
+
[s, t],
|
|
2224
|
+
wn.harden
|
|
2225
|
+
];
|
|
2226
|
+
}
|
|
2227
|
+
return j && j.length > 0 && (e = [...e, [vn, j]]), b != null && b.math && (e = [...e, b.math.rehypePlugin]), W && m && (e = [...e, W.rehypePlugin]), e;
|
|
2228
|
+
}, [
|
|
2229
|
+
o,
|
|
2230
|
+
b?.math,
|
|
2231
|
+
W,
|
|
2232
|
+
m,
|
|
2233
|
+
O,
|
|
2234
|
+
j
|
|
2235
|
+
]), q = T(() => {
|
|
2236
|
+
if (!m || V.length === 0) return !1;
|
|
2237
|
+
let e = V.at(-1);
|
|
2238
|
+
return Rt(e) || zt(e);
|
|
2239
|
+
}, [m, V]), ve = T(() => y && m && !q ? { "--streamdown-caret": `"${On[y]}"` } : void 0, [
|
|
2240
|
+
y,
|
|
2241
|
+
m,
|
|
2242
|
+
q
|
|
2243
|
+
]);
|
|
2244
|
+
return t === "static" ? k(Te.Provider, {
|
|
2245
|
+
value: G,
|
|
2246
|
+
children: k(Fe.Provider, {
|
|
2247
|
+
value: b ?? null,
|
|
2248
|
+
children: k($.Provider, {
|
|
2249
|
+
value: he,
|
|
2250
|
+
children: k(Ce, {
|
|
2251
|
+
icons: N,
|
|
2252
|
+
children: k(me.Provider, {
|
|
2253
|
+
value: I,
|
|
2254
|
+
children: k("div", {
|
|
2255
|
+
className: I("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0", u),
|
|
2256
|
+
dir: n === "auto" ? Ft(z) : n,
|
|
2257
|
+
children: k(Gt, {
|
|
2258
|
+
components: K,
|
|
2259
|
+
rehypePlugins: _e,
|
|
2260
|
+
remarkPlugins: ge,
|
|
2261
|
+
...re,
|
|
2262
|
+
children: z
|
|
2263
|
+
})
|
|
2264
|
+
})
|
|
2265
|
+
})
|
|
2266
|
+
})
|
|
2267
|
+
})
|
|
2268
|
+
})
|
|
2269
|
+
}) : k(Te.Provider, {
|
|
2270
|
+
value: G,
|
|
2271
|
+
children: k(Fe.Provider, {
|
|
2272
|
+
value: b ?? null,
|
|
2273
|
+
children: k($.Provider, {
|
|
2274
|
+
value: he,
|
|
2275
|
+
children: k(Ce, {
|
|
2276
|
+
icons: N,
|
|
2277
|
+
children: k(me.Provider, {
|
|
2278
|
+
value: I,
|
|
2279
|
+
children: A("div", {
|
|
2280
|
+
className: I("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0", y && !q ? "[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]" : null, u),
|
|
2281
|
+
style: ve,
|
|
2282
|
+
children: [V.length === 0 && y && m && k("span", {}), V.map((e, t) => {
|
|
2283
|
+
let a = t === V.length - 1, o = m && a && Rt(e);
|
|
2284
|
+
return k(g, {
|
|
2285
|
+
animatePlugin: W,
|
|
2286
|
+
components: K,
|
|
2287
|
+
content: e,
|
|
2288
|
+
dir: fe?.[t] ?? (n === "auto" ? void 0 : n),
|
|
2289
|
+
index: t,
|
|
2290
|
+
isIncomplete: o,
|
|
2291
|
+
rehypePlugins: _e,
|
|
2292
|
+
remarkPlugins: ge,
|
|
2293
|
+
shouldNormalizeHtmlIndentation: i,
|
|
2294
|
+
shouldParseIncompleteMarkdown: r,
|
|
2295
|
+
...re
|
|
2296
|
+
}, H[t]);
|
|
2297
|
+
})]
|
|
2298
|
+
})
|
|
2299
|
+
})
|
|
2300
|
+
})
|
|
2301
|
+
})
|
|
2302
|
+
})
|
|
2303
|
+
});
|
|
2304
|
+
}, (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
|
+
Mn.displayName = "Streamdown";
|
|
2306
|
+
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 } = Y(), d = U(), f = E(null), p = E(null), [m, h] = D(o), [g, _] = D({
|
|
2308
|
+
x: 0,
|
|
2309
|
+
y: 0
|
|
2310
|
+
}), [v, y] = D(!1), [b, x] = D({
|
|
2311
|
+
x: 0,
|
|
2312
|
+
y: 0
|
|
2313
|
+
}), [C, ee] = D({
|
|
2314
|
+
x: 0,
|
|
2315
|
+
y: 0
|
|
2316
|
+
}), T = S((e) => {
|
|
2317
|
+
h((t) => Math.max(n, Math.min(r, t + e)));
|
|
2318
|
+
}, [n, r]), te = S(() => {
|
|
2319
|
+
T(i);
|
|
2320
|
+
}, [T, i]), O = S(() => {
|
|
2321
|
+
T(-i);
|
|
2322
|
+
}, [T, i]), j = S(() => {
|
|
2323
|
+
h(o), _({
|
|
2324
|
+
x: 0,
|
|
2325
|
+
y: 0
|
|
2326
|
+
});
|
|
2327
|
+
}, [o]), M = S((e) => {
|
|
2328
|
+
e.preventDefault(), T(e.deltaY > 0 ? -i : i);
|
|
2329
|
+
}, [T, i]), N = S((e) => {
|
|
2330
|
+
if (e.button !== 0 || e.isPrimary === !1) return;
|
|
2331
|
+
y(!0), x({
|
|
2332
|
+
x: e.clientX,
|
|
2333
|
+
y: e.clientY
|
|
2334
|
+
}), ee(g);
|
|
2335
|
+
let t = e.currentTarget;
|
|
2336
|
+
t instanceof HTMLElement && t.setPointerCapture(e.pointerId);
|
|
2337
|
+
}, [g]), P = S((e) => {
|
|
2338
|
+
if (!v) return;
|
|
2339
|
+
e.preventDefault();
|
|
2340
|
+
let t = e.clientX - b.x, n = e.clientY - b.y;
|
|
2341
|
+
_({
|
|
2342
|
+
x: C.x + t,
|
|
2343
|
+
y: C.y + n
|
|
2344
|
+
});
|
|
2345
|
+
}, [
|
|
2346
|
+
v,
|
|
2347
|
+
b,
|
|
2348
|
+
C
|
|
2349
|
+
]), F = S((e) => {
|
|
2350
|
+
y(!1);
|
|
2351
|
+
let t = e.currentTarget;
|
|
2352
|
+
t instanceof HTMLElement && t.releasePointerCapture(e.pointerId);
|
|
2353
|
+
}, []);
|
|
2354
|
+
return w(() => {
|
|
2355
|
+
let e = f.current;
|
|
2356
|
+
if (e) return e.addEventListener("wheel", M, { passive: !1 }), () => {
|
|
2357
|
+
e.removeEventListener("wheel", M);
|
|
2358
|
+
};
|
|
2359
|
+
}, [M]), w(() => {
|
|
2360
|
+
let e = p.current;
|
|
2361
|
+
if (e && v) return document.body.style.userSelect = "none", e.addEventListener("pointermove", P, { passive: !1 }), e.addEventListener("pointerup", F), e.addEventListener("pointercancel", F), () => {
|
|
2362
|
+
document.body.style.userSelect = "", e.removeEventListener("pointermove", P), e.removeEventListener("pointerup", F), e.removeEventListener("pointercancel", F);
|
|
2363
|
+
};
|
|
2364
|
+
}, [
|
|
2365
|
+
v,
|
|
2366
|
+
P,
|
|
2367
|
+
F
|
|
2368
|
+
]), A("div", {
|
|
2369
|
+
className: d("relative flex flex-col", s ? "h-full w-full" : "min-h-28 w-full", t),
|
|
2370
|
+
ref: f,
|
|
2371
|
+
style: { cursor: v ? "grabbing" : "grab" },
|
|
2372
|
+
children: [a ? A("div", {
|
|
2373
|
+
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
|
+
children: [
|
|
2375
|
+
k("button", {
|
|
2376
|
+
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
|
+
disabled: m >= r,
|
|
2378
|
+
onClick: te,
|
|
2379
|
+
title: "Zoom in",
|
|
2380
|
+
type: "button",
|
|
2381
|
+
children: k(l, { size: 16 })
|
|
2382
|
+
}),
|
|
2383
|
+
k("button", {
|
|
2384
|
+
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
|
+
disabled: m <= n,
|
|
2386
|
+
onClick: O,
|
|
2387
|
+
title: "Zoom out",
|
|
2388
|
+
type: "button",
|
|
2389
|
+
children: k(u, { size: 16 })
|
|
2390
|
+
}),
|
|
2391
|
+
k("button", {
|
|
2392
|
+
className: d("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),
|
|
2393
|
+
onClick: j,
|
|
2394
|
+
title: "Reset zoom and pan",
|
|
2395
|
+
type: "button",
|
|
2396
|
+
children: k(c, { size: 16 })
|
|
2397
|
+
})
|
|
2398
|
+
]
|
|
2399
|
+
}) : null, k("div", {
|
|
2400
|
+
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: N,
|
|
2402
|
+
ref: p,
|
|
2403
|
+
role: "application",
|
|
2404
|
+
style: {
|
|
2405
|
+
transform: `translate(${g.x}px, ${g.y}px) scale(${m})`,
|
|
2406
|
+
transformOrigin: "center center",
|
|
2407
|
+
touchAction: "none",
|
|
2408
|
+
willChange: "transform"
|
|
2409
|
+
},
|
|
2410
|
+
children: e
|
|
2411
|
+
})]
|
|
2412
|
+
});
|
|
2413
|
+
}, Pn = ({ chart: e, className: t, config: n, fullscreen: r = !1, showControls: i = !0 }) => {
|
|
2414
|
+
let a = U(), [o, s] = D(null), [c, l] = D(!1), [u, d] = D(""), [f, p] = D(""), [m, h] = D(0), { mermaid: g } = C($), _ = Re(), v = g?.errorComponent, { shouldRender: y, containerRef: b } = re({ immediate: r });
|
|
2415
|
+
if (w(() => {
|
|
2416
|
+
if (y) {
|
|
2417
|
+
if (!_) {
|
|
2418
|
+
s("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");
|
|
2419
|
+
return;
|
|
2420
|
+
}
|
|
2421
|
+
(async () => {
|
|
2422
|
+
try {
|
|
2423
|
+
s(null), l(!0);
|
|
2424
|
+
let t = _.getMermaid(n), r = e.split("").reduce((e, t) => (e << 5) - e + t.charCodeAt(0) | 0, 0), i = `mermaid-${Math.abs(r)}-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`, { svg: a } = await t.render(i, e);
|
|
2425
|
+
d(a), p(a);
|
|
2426
|
+
} catch (e) {
|
|
2427
|
+
f || u || s(e instanceof Error ? e.message : "Failed to render Mermaid chart");
|
|
2428
|
+
} finally {
|
|
2429
|
+
l(!1);
|
|
2430
|
+
}
|
|
2431
|
+
})();
|
|
2432
|
+
}
|
|
2433
|
+
}, [
|
|
2434
|
+
e,
|
|
2435
|
+
n,
|
|
2436
|
+
m,
|
|
2437
|
+
y,
|
|
2438
|
+
_
|
|
2439
|
+
]), !(y || u || f)) return k("div", {
|
|
2440
|
+
className: a("my-4 min-h-[200px]", t),
|
|
2441
|
+
ref: b
|
|
2442
|
+
});
|
|
2443
|
+
if (c && !u && !f) return k("div", {
|
|
2444
|
+
className: a("my-4 flex justify-center p-4", t),
|
|
2445
|
+
ref: b,
|
|
2446
|
+
children: A("div", {
|
|
2447
|
+
className: a("flex items-center space-x-2 text-muted-foreground"),
|
|
2448
|
+
children: [k("div", { className: a("h-4 w-4 animate-spin rounded-full border-current border-b-2") }), k("span", {
|
|
2449
|
+
className: a("text-sm"),
|
|
2450
|
+
children: "Loading diagram..."
|
|
2451
|
+
})]
|
|
2452
|
+
})
|
|
2453
|
+
});
|
|
2454
|
+
if (o && !u && !f) return v ? k("div", {
|
|
2455
|
+
ref: b,
|
|
2456
|
+
children: k(v, {
|
|
2457
|
+
chart: e,
|
|
2458
|
+
error: o,
|
|
2459
|
+
retry: () => h((e) => e + 1)
|
|
2460
|
+
})
|
|
2461
|
+
}) : A("div", {
|
|
2462
|
+
className: a("rounded-md bg-red-50 p-4", t),
|
|
2463
|
+
ref: b,
|
|
2464
|
+
children: [A("p", {
|
|
2465
|
+
className: a("font-mono text-red-700 text-sm"),
|
|
2466
|
+
children: ["Mermaid Error: ", o]
|
|
2467
|
+
}), A("details", {
|
|
2468
|
+
className: a("mt-2"),
|
|
2469
|
+
children: [k("summary", {
|
|
2470
|
+
className: a("cursor-pointer text-red-600 text-xs"),
|
|
2471
|
+
children: "Show Code"
|
|
2472
|
+
}), k("pre", {
|
|
2473
|
+
className: a("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),
|
|
2474
|
+
children: e
|
|
2475
|
+
})]
|
|
2476
|
+
})]
|
|
2477
|
+
});
|
|
2478
|
+
let x = u || f;
|
|
2479
|
+
return k("div", {
|
|
2480
|
+
className: a("size-full", t),
|
|
2481
|
+
"data-streamdown": "mermaid",
|
|
2482
|
+
ref: b,
|
|
2483
|
+
children: k(Nn, {
|
|
2484
|
+
className: a(r ? "size-full overflow-hidden" : "overflow-hidden", t),
|
|
2485
|
+
fullscreen: r,
|
|
2486
|
+
maxZoom: 3,
|
|
2487
|
+
minZoom: .5,
|
|
2488
|
+
showControls: i,
|
|
2489
|
+
zoomStep: .1,
|
|
2490
|
+
children: k("div", {
|
|
2491
|
+
"aria-label": "Mermaid chart",
|
|
2492
|
+
className: a("flex justify-center", r ? "size-full items-center" : null),
|
|
2493
|
+
dangerouslySetInnerHTML: { __html: x },
|
|
2494
|
+
role: "img"
|
|
2495
|
+
})
|
|
2496
|
+
})
|
|
2497
|
+
});
|
|
2498
|
+
};
|
|
2499
|
+
//#endregion
|
|
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 };
|