@loopstack/loopstack-studio 0.24.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 +7 -5
- package/dist/api/dashboard.js +4 -2
- package/dist/api/documents.js +4 -2
- package/dist/api/index.js +21 -23
- package/dist/api/processor.js +5 -3
- package/dist/api/secrets.js +4 -2
- package/dist/api/workflows.js +11 -3
- 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 +71 -109
- package/dist/components/loopstack-elements/tool.js +99 -0
- 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 -31
- package/dist/components/ui-widgets/UiWidget.js +34 -55
- package/dist/components/ui-widgets/widgets/AiPromptInput.js +28 -42
- package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +16 -19
- package/dist/components/ui-widgets/widgets/SandboxRun.js +19 -26
- package/dist/components/ui-widgets/widgets/SubmitButton.js +15 -18
- 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 +120 -185
- 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 +32 -0
- package/dist/features/debug/components/WorkflowDebugLegend.js +56 -0
- package/dist/features/debug/components/WorkflowFlowViewer.js +90 -0
- package/dist/features/debug/components/workflow-flow/StateNode.js +82 -0
- package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +41 -0
- package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +64 -0
- 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 +156 -162
- package/dist/features/documents/DocumentRenderer.js +77 -45
- package/dist/features/documents/components/DocumentItem.js +21 -24
- package/dist/features/documents/components/DocumentList.js +39 -42
- 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 +80 -0
- package/dist/features/documents/renderers/ClaudeMessage.js +74 -91
- package/dist/features/documents/renderers/ConfirmPromptRenderer.js +47 -0
- package/dist/features/documents/renderers/DocumentDebugRenderer.js +26 -30
- package/dist/features/documents/renderers/DocumentFormRenderer.js +80 -72
- 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 -16
- 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 +89 -0
- package/dist/features/documents/renderers/TextPromptRenderer.js +48 -0
- package/dist/features/documents/renderers/useDocumentTransition.js +32 -0
- 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 +135 -184
- 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 -67
- package/dist/features/workbench/WorkflowList.js +50 -82
- package/dist/features/workbench/components/NewRunDialog.js +214 -311
- 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 -90
- package/dist/features/workbench/components/WorkbenchFlowPanel.js +35 -46
- package/dist/features/workbench/components/WorkbenchIconSidebar.js +50 -80
- package/dist/features/workbench/components/WorkbenchPreviewPanel.js +52 -50
- package/dist/features/workbench/components/WorkbenchSecretsPanel.js +143 -172
- package/dist/features/workbench/components/WorkbenchSettingsModal.js +50 -86
- package/dist/features/workbench/components/WorkflowForms.js +17 -22
- package/dist/features/workbench/components/WorkflowHistoryItem.js +96 -143
- package/dist/features/workbench/components/WorkflowHistoryList.js +33 -0
- package/dist/features/workbench/components/buttons/WorkflowButtons.js +70 -97
- 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 +32 -45
- package/dist/features/workbench/hooks/useWorkflowListState.js +13 -49
- package/dist/features/workbench/index.js +7 -8
- package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +123 -138
- package/dist/features/workbench/providers/ScrollProvider.js +16 -20
- 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 +144 -185
- package/dist/features/workspaces/components/NewWorkflowRunDialog.js +23 -0
- package/dist/features/workspaces/components/WorkflowRunForm.js +104 -0
- package/dist/features/workspaces/components/WorkspaceHomePage.js +60 -81
- package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +58 -0
- package/dist/features/workspaces/components/workflow-form/HeaderSection.js +29 -0
- package/dist/features/workspaces/components/workflow-form/SelectionView.js +66 -0
- 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 +39 -78
- 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 +113 -78
- package/dist/hooks/useWorkspaces.js +83 -123
- package/dist/index.d.ts +0 -1305
- 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 +21 -20
- 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 +7 -5
- 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 +44 -42
- package/dist/pages/EmbedWorkbenchPage.js +49 -73
- package/dist/pages/PreviewWorkbenchPage.js +242 -448
- 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 +78 -0
- package/dist/pages/WorkspacePage.js +72 -113
- 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 -30
- package/dist/providers/StudioProvider.js +14 -19
- package/dist/routing/LocalRouter.js +20 -26
- 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/api/namespaces.js +0 -7
- package/dist/api/pipelines.js +0 -13
- package/dist/components/ai-elements/tool.js +0 -158
- package/dist/components/ui-widgets/widgets/SecretInput.js +0 -42
- package/dist/features/debug/components/PipelineDebugHeader.js +0 -48
- package/dist/features/debug/components/PipelineDebugLegend.js +0 -68
- package/dist/features/debug/components/PipelineFlowViewer.js +0 -110
- package/dist/features/debug/components/pipeline-flow/StateNode.js +0 -111
- package/dist/features/debug/components/pipeline-flow/WorkflowGraph.js +0 -41
- package/dist/features/debug/components/pipeline-flow/WorkflowTransitionEdge.js +0 -97
- package/dist/features/workbench/NavigationItems.js +0 -52
- package/dist/features/workbench/WorkbenchNavigation.js +0 -38
- package/dist/features/workbench/components/NavigationItem.js +0 -68
- package/dist/features/workbench/components/PipelineHistoryList.js +0 -56
- package/dist/features/workbench/hooks/useIntersectionObserver.js +0 -44
- package/dist/features/workspaces/components/NewPipelineRunDialog.js +0 -31
- package/dist/features/workspaces/components/PipelineForm.js +0 -152
- package/dist/features/workspaces/components/pipeline-form/ArgumentsView.js +0 -75
- package/dist/features/workspaces/components/pipeline-form/HeaderSection.js +0 -43
- package/dist/features/workspaces/components/pipeline-form/SelectionView.js +0 -105
- package/dist/hooks/useNamespaceTree.js +0 -27
- package/dist/hooks/useNamespaces.js +0 -25
- package/dist/hooks/usePipelines.js +0 -161
- 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
- package/dist/packages/contracts/dist/enums/pipeline-state.js +0 -10
- package/dist/pages/PipelineDebugPage.js +0 -115
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
//#region ../../node_modules/marked/lib/marked.esm.js
|
|
2
|
+
function e() {
|
|
2
3
|
return {
|
|
3
4
|
async: !1,
|
|
4
5
|
breaks: !1,
|
|
@@ -12,28 +13,28 @@ function L() {
|
|
|
12
13
|
walkTokens: null
|
|
13
14
|
};
|
|
14
15
|
}
|
|
15
|
-
var
|
|
16
|
-
function
|
|
17
|
-
|
|
16
|
+
var t = e();
|
|
17
|
+
function n(e) {
|
|
18
|
+
t = e;
|
|
18
19
|
}
|
|
19
|
-
var
|
|
20
|
-
function
|
|
21
|
-
let
|
|
22
|
-
replace: (e,
|
|
23
|
-
let
|
|
24
|
-
return
|
|
20
|
+
var r = { exec: () => null };
|
|
21
|
+
function i(e, t = "") {
|
|
22
|
+
let n = typeof e == "string" ? e : e.source, r = {
|
|
23
|
+
replace: (e, t) => {
|
|
24
|
+
let i = typeof t == "string" ? t : t.source;
|
|
25
|
+
return i = i.replace(o.caret, "$1"), n = n.replace(e, i), r;
|
|
25
26
|
},
|
|
26
|
-
getRegex: () => new RegExp(
|
|
27
|
+
getRegex: () => new RegExp(n, t)
|
|
27
28
|
};
|
|
28
|
-
return
|
|
29
|
+
return r;
|
|
29
30
|
}
|
|
30
|
-
var
|
|
31
|
+
var a = (() => {
|
|
31
32
|
try {
|
|
32
33
|
return !0;
|
|
33
34
|
} catch {
|
|
34
35
|
return !1;
|
|
35
36
|
}
|
|
36
|
-
})(),
|
|
37
|
+
})(), o = {
|
|
37
38
|
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
38
39
|
outputLinkReplace: /\\([\[\]])/g,
|
|
39
40
|
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
@@ -84,526 +85,526 @@ var be = (() => {
|
|
|
84
85
|
spaceLine: /^ +$/gm,
|
|
85
86
|
notSpaceStart: /^\S*/,
|
|
86
87
|
endingNewline: /\n$/,
|
|
87
|
-
listItemRegex: (e) =>
|
|
88
|
-
nextBulletRegex: (e) =>
|
|
89
|
-
hrRegex: (e) =>
|
|
90
|
-
fencesBeginRegex: (e) =>
|
|
91
|
-
headingBeginRegex: (e) =>
|
|
88
|
+
listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
89
|
+
nextBulletRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
90
|
+
hrRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
|
|
91
|
+
fencesBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
|
|
92
|
+
headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
|
|
92
93
|
htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i")
|
|
93
|
-
},
|
|
94
|
-
blockquote:
|
|
95
|
-
code:
|
|
96
|
-
def:
|
|
97
|
-
fences:
|
|
98
|
-
heading:
|
|
99
|
-
hr:
|
|
100
|
-
html:
|
|
101
|
-
lheading:
|
|
102
|
-
list:
|
|
103
|
-
newline:
|
|
104
|
-
paragraph:
|
|
105
|
-
table:
|
|
106
|
-
text:
|
|
107
|
-
},
|
|
108
|
-
...
|
|
109
|
-
lheading:
|
|
110
|
-
table:
|
|
111
|
-
paragraph:
|
|
112
|
-
},
|
|
113
|
-
...
|
|
114
|
-
html:
|
|
94
|
+
}, s = /^(?:[ \t]*(?:\n|$))+/, c = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, l = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, u = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, d = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, f = /(?:[*+-]|\d{1,9}[.)])/, p = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, m = i(p).replace(/bull/g, f).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), h = i(p).replace(/bull/g, f).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), g = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ee = /^[^\n]+/, _ = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, te = i(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", _).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ne = i(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, f).getRegex(), v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", y = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, re = i("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", y).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), b = i(g).replace("hr", u).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), x = {
|
|
95
|
+
blockquote: i(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", b).getRegex(),
|
|
96
|
+
code: c,
|
|
97
|
+
def: te,
|
|
98
|
+
fences: l,
|
|
99
|
+
heading: d,
|
|
100
|
+
hr: u,
|
|
101
|
+
html: re,
|
|
102
|
+
lheading: m,
|
|
103
|
+
list: ne,
|
|
104
|
+
newline: s,
|
|
105
|
+
paragraph: b,
|
|
106
|
+
table: r,
|
|
107
|
+
text: ee
|
|
108
|
+
}, S = i("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", u).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), ie = {
|
|
109
|
+
...x,
|
|
110
|
+
lheading: h,
|
|
111
|
+
table: S,
|
|
112
|
+
paragraph: i(g).replace("hr", u).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", S).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex()
|
|
113
|
+
}, ae = {
|
|
114
|
+
...x,
|
|
115
|
+
html: i("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", y).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
115
116
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
116
117
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
117
|
-
fences:
|
|
118
|
+
fences: r,
|
|
118
119
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
119
|
-
paragraph:
|
|
120
|
-
},
|
|
121
|
-
_backpedal:
|
|
122
|
-
anyPunctuation:
|
|
123
|
-
autolink:
|
|
124
|
-
blockSkip:
|
|
125
|
-
br:
|
|
126
|
-
code:
|
|
127
|
-
del:
|
|
128
|
-
emStrongLDelim:
|
|
129
|
-
emStrongRDelimAst:
|
|
130
|
-
emStrongRDelimUnd:
|
|
131
|
-
escape:
|
|
132
|
-
link:
|
|
133
|
-
nolink:
|
|
134
|
-
punctuation:
|
|
135
|
-
reflink:
|
|
136
|
-
reflinkSearch:
|
|
137
|
-
tag:
|
|
138
|
-
text:
|
|
139
|
-
url:
|
|
140
|
-
},
|
|
141
|
-
...
|
|
142
|
-
link:
|
|
143
|
-
reflink:
|
|
144
|
-
},
|
|
145
|
-
...
|
|
146
|
-
emStrongRDelimAst:
|
|
147
|
-
emStrongLDelim:
|
|
148
|
-
url:
|
|
120
|
+
paragraph: i(g).replace("hr", u).replace("heading", " *#{1,6} *[^\n]").replace("lheading", m).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
121
|
+
}, oe = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, C = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, w = /^( {2,}|\\)\n(?!\s*$)/, se = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, T = /[\p{P}\p{S}]/u, E = /[\s\p{P}\p{S}]/u, D = /[^\s\p{P}\p{S}]/u, ce = i(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, E).getRegex(), O = /(?!~)[\p{P}\p{S}]/u, le = /(?!~)[\s\p{P}\p{S}]/u, ue = /(?:[^\s\p{P}\p{S}]|~)/u, de = i(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", a ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), k = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, fe = i(k, "u").replace(/punct/g, T).getRegex(), pe = i(k, "u").replace(/punct/g, O).getRegex(), A = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", me = i(A, "gu").replace(/notPunctSpace/g, D).replace(/punctSpace/g, E).replace(/punct/g, T).getRegex(), he = i(A, "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, le).replace(/punct/g, O).getRegex(), ge = i("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, D).replace(/punctSpace/g, E).replace(/punct/g, T).getRegex(), _e = i(/\\(punct)/, "gu").replace(/punct/g, T).getRegex(), ve = i(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), ye = i(y).replace("(?:-->|$)", "-->").getRegex(), be = i("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", ye).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), j = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, M = i(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", j).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), N = i(/^!?\[(label)\]\[(ref)\]/).replace("label", j).replace("ref", _).getRegex(), P = i(/^!?\[(ref)\](?:\[\])?/).replace("ref", _).getRegex(), xe = i("reflink|nolink(?!\\()", "g").replace("reflink", N).replace("nolink", P).getRegex(), F = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, I = {
|
|
122
|
+
_backpedal: r,
|
|
123
|
+
anyPunctuation: _e,
|
|
124
|
+
autolink: ve,
|
|
125
|
+
blockSkip: de,
|
|
126
|
+
br: w,
|
|
127
|
+
code: C,
|
|
128
|
+
del: r,
|
|
129
|
+
emStrongLDelim: fe,
|
|
130
|
+
emStrongRDelimAst: me,
|
|
131
|
+
emStrongRDelimUnd: ge,
|
|
132
|
+
escape: oe,
|
|
133
|
+
link: M,
|
|
134
|
+
nolink: P,
|
|
135
|
+
punctuation: ce,
|
|
136
|
+
reflink: N,
|
|
137
|
+
reflinkSearch: xe,
|
|
138
|
+
tag: be,
|
|
139
|
+
text: se,
|
|
140
|
+
url: r
|
|
141
|
+
}, Se = {
|
|
142
|
+
...I,
|
|
143
|
+
link: i(/^!?\[(label)\]\((.*?)\)/).replace("label", j).getRegex(),
|
|
144
|
+
reflink: i(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", j).getRegex()
|
|
145
|
+
}, L = {
|
|
146
|
+
...I,
|
|
147
|
+
emStrongRDelimAst: he,
|
|
148
|
+
emStrongLDelim: pe,
|
|
149
|
+
url: i(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", F).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
149
150
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
150
151
|
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
151
|
-
text:
|
|
152
|
-
},
|
|
153
|
-
...
|
|
154
|
-
br:
|
|
155
|
-
text:
|
|
156
|
-
},
|
|
157
|
-
normal:
|
|
158
|
-
gfm:
|
|
159
|
-
pedantic:
|
|
160
|
-
},
|
|
161
|
-
normal:
|
|
162
|
-
gfm:
|
|
163
|
-
breaks:
|
|
164
|
-
pedantic:
|
|
165
|
-
},
|
|
152
|
+
text: i(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", F).getRegex()
|
|
153
|
+
}, Ce = {
|
|
154
|
+
...L,
|
|
155
|
+
br: i(w).replace("{2,}", "*").getRegex(),
|
|
156
|
+
text: i(L.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
157
|
+
}, R = {
|
|
158
|
+
normal: x,
|
|
159
|
+
gfm: ie,
|
|
160
|
+
pedantic: ae
|
|
161
|
+
}, z = {
|
|
162
|
+
normal: I,
|
|
163
|
+
gfm: L,
|
|
164
|
+
breaks: Ce,
|
|
165
|
+
pedantic: Se
|
|
166
|
+
}, we = {
|
|
166
167
|
"&": "&",
|
|
167
168
|
"<": "<",
|
|
168
169
|
">": ">",
|
|
169
170
|
"\"": """,
|
|
170
171
|
"'": "'"
|
|
171
|
-
},
|
|
172
|
-
function
|
|
173
|
-
if (
|
|
174
|
-
if (
|
|
175
|
-
} else if (
|
|
172
|
+
}, B = (e) => we[e];
|
|
173
|
+
function V(e, t) {
|
|
174
|
+
if (t) {
|
|
175
|
+
if (o.escapeTest.test(e)) return e.replace(o.escapeReplace, B);
|
|
176
|
+
} else if (o.escapeTestNoEncode.test(e)) return e.replace(o.escapeReplaceNoEncode, B);
|
|
176
177
|
return e;
|
|
177
178
|
}
|
|
178
|
-
function
|
|
179
|
+
function H(e) {
|
|
179
180
|
try {
|
|
180
|
-
e = encodeURI(e).replace(
|
|
181
|
+
e = encodeURI(e).replace(o.percentDecode, "%");
|
|
181
182
|
} catch {
|
|
182
183
|
return null;
|
|
183
184
|
}
|
|
184
185
|
return e;
|
|
185
186
|
}
|
|
186
|
-
function
|
|
187
|
-
let
|
|
188
|
-
let
|
|
189
|
-
for (; --
|
|
190
|
-
return
|
|
191
|
-
}).split(
|
|
192
|
-
if (
|
|
193
|
-
else for (;
|
|
194
|
-
for (;
|
|
195
|
-
return
|
|
187
|
+
function U(e, t) {
|
|
188
|
+
let n = e.replace(o.findPipe, (e, t, n) => {
|
|
189
|
+
let r = !1, i = t;
|
|
190
|
+
for (; --i >= 0 && n[i] === "\\";) r = !r;
|
|
191
|
+
return r ? "|" : " |";
|
|
192
|
+
}).split(o.splitPipe), r = 0;
|
|
193
|
+
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
|
|
194
|
+
else for (; n.length < t;) n.push("");
|
|
195
|
+
for (; r < n.length; r++) n[r] = n[r].trim().replace(o.slashPipe, "|");
|
|
196
|
+
return n;
|
|
196
197
|
}
|
|
197
|
-
function
|
|
198
|
-
let
|
|
199
|
-
if (
|
|
200
|
-
let
|
|
201
|
-
for (;
|
|
202
|
-
let
|
|
203
|
-
if (
|
|
204
|
-
else if (
|
|
198
|
+
function W(e, t, n) {
|
|
199
|
+
let r = e.length;
|
|
200
|
+
if (r === 0) return "";
|
|
201
|
+
let i = 0;
|
|
202
|
+
for (; i < r;) {
|
|
203
|
+
let a = e.charAt(r - i - 1);
|
|
204
|
+
if (a === t && !n) i++;
|
|
205
|
+
else if (a !== t && n) i++;
|
|
205
206
|
else break;
|
|
206
207
|
}
|
|
207
|
-
return e.slice(0,
|
|
208
|
+
return e.slice(0, r - i);
|
|
208
209
|
}
|
|
209
|
-
function
|
|
210
|
-
if (e.indexOf(
|
|
211
|
-
let
|
|
212
|
-
for (let
|
|
213
|
-
else if (e[
|
|
214
|
-
else if (e[
|
|
215
|
-
return
|
|
210
|
+
function Te(e, t) {
|
|
211
|
+
if (e.indexOf(t[1]) === -1) return -1;
|
|
212
|
+
let n = 0;
|
|
213
|
+
for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
|
|
214
|
+
else if (e[r] === t[0]) n++;
|
|
215
|
+
else if (e[r] === t[1] && (n--, n < 0)) return r;
|
|
216
|
+
return n > 0 ? -2 : -1;
|
|
216
217
|
}
|
|
217
|
-
function
|
|
218
|
-
let
|
|
219
|
-
|
|
220
|
-
let
|
|
218
|
+
function G(e, t, n, r, i) {
|
|
219
|
+
let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
|
|
220
|
+
r.state.inLink = !0;
|
|
221
|
+
let c = {
|
|
221
222
|
type: e[0].charAt(0) === "!" ? "image" : "link",
|
|
222
|
-
raw:
|
|
223
|
-
href:
|
|
224
|
-
title:
|
|
225
|
-
text:
|
|
226
|
-
tokens:
|
|
223
|
+
raw: n,
|
|
224
|
+
href: a,
|
|
225
|
+
title: o,
|
|
226
|
+
text: s,
|
|
227
|
+
tokens: r.inlineTokens(s)
|
|
227
228
|
};
|
|
228
|
-
return
|
|
229
|
+
return r.state.inLink = !1, c;
|
|
229
230
|
}
|
|
230
|
-
function
|
|
231
|
-
let
|
|
232
|
-
if (
|
|
233
|
-
let
|
|
234
|
-
return
|
|
235
|
-
let
|
|
236
|
-
if (
|
|
237
|
-
let [
|
|
238
|
-
return
|
|
231
|
+
function Ee(e, t, n) {
|
|
232
|
+
let r = e.match(n.other.indentCodeCompensation);
|
|
233
|
+
if (r === null) return t;
|
|
234
|
+
let i = r[1];
|
|
235
|
+
return t.split("\n").map((e) => {
|
|
236
|
+
let t = e.match(n.other.beginningSpace);
|
|
237
|
+
if (t === null) return e;
|
|
238
|
+
let [r] = t;
|
|
239
|
+
return r.length >= i.length ? e.slice(i.length) : e;
|
|
239
240
|
}).join("\n");
|
|
240
241
|
}
|
|
241
|
-
var
|
|
242
|
+
var K = class {
|
|
242
243
|
options;
|
|
243
244
|
rules;
|
|
244
245
|
lexer;
|
|
245
246
|
constructor(e) {
|
|
246
|
-
this.options = e ||
|
|
247
|
+
this.options = e || t;
|
|
247
248
|
}
|
|
248
249
|
space(e) {
|
|
249
|
-
let
|
|
250
|
-
if (
|
|
250
|
+
let t = this.rules.block.newline.exec(e);
|
|
251
|
+
if (t && t[0].length > 0) return {
|
|
251
252
|
type: "space",
|
|
252
|
-
raw:
|
|
253
|
+
raw: t[0]
|
|
253
254
|
};
|
|
254
255
|
}
|
|
255
256
|
code(e) {
|
|
256
|
-
let
|
|
257
|
-
if (
|
|
258
|
-
let e =
|
|
257
|
+
let t = this.rules.block.code.exec(e);
|
|
258
|
+
if (t) {
|
|
259
|
+
let e = t[0].replace(this.rules.other.codeRemoveIndent, "");
|
|
259
260
|
return {
|
|
260
261
|
type: "code",
|
|
261
|
-
raw:
|
|
262
|
+
raw: t[0],
|
|
262
263
|
codeBlockStyle: "indented",
|
|
263
|
-
text: this.options.pedantic ? e :
|
|
264
|
+
text: this.options.pedantic ? e : W(e, "\n")
|
|
264
265
|
};
|
|
265
266
|
}
|
|
266
267
|
}
|
|
267
268
|
fences(e) {
|
|
268
|
-
let
|
|
269
|
-
if (
|
|
270
|
-
let e =
|
|
269
|
+
let t = this.rules.block.fences.exec(e);
|
|
270
|
+
if (t) {
|
|
271
|
+
let e = t[0], n = Ee(e, t[3] || "", this.rules);
|
|
271
272
|
return {
|
|
272
273
|
type: "code",
|
|
273
274
|
raw: e,
|
|
274
|
-
lang:
|
|
275
|
-
text:
|
|
275
|
+
lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2],
|
|
276
|
+
text: n
|
|
276
277
|
};
|
|
277
278
|
}
|
|
278
279
|
}
|
|
279
280
|
heading(e) {
|
|
280
|
-
let
|
|
281
|
-
if (
|
|
282
|
-
let e =
|
|
281
|
+
let t = this.rules.block.heading.exec(e);
|
|
282
|
+
if (t) {
|
|
283
|
+
let e = t[2].trim();
|
|
283
284
|
if (this.rules.other.endingHash.test(e)) {
|
|
284
|
-
let
|
|
285
|
-
(this.options.pedantic || !
|
|
285
|
+
let t = W(e, "#");
|
|
286
|
+
(this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
|
|
286
287
|
}
|
|
287
288
|
return {
|
|
288
289
|
type: "heading",
|
|
289
|
-
raw:
|
|
290
|
-
depth:
|
|
290
|
+
raw: t[0],
|
|
291
|
+
depth: t[1].length,
|
|
291
292
|
text: e,
|
|
292
293
|
tokens: this.lexer.inline(e)
|
|
293
294
|
};
|
|
294
295
|
}
|
|
295
296
|
}
|
|
296
297
|
hr(e) {
|
|
297
|
-
let
|
|
298
|
-
if (
|
|
298
|
+
let t = this.rules.block.hr.exec(e);
|
|
299
|
+
if (t) return {
|
|
299
300
|
type: "hr",
|
|
300
|
-
raw:
|
|
301
|
+
raw: W(t[0], "\n")
|
|
301
302
|
};
|
|
302
303
|
}
|
|
303
304
|
blockquote(e) {
|
|
304
|
-
let
|
|
305
|
-
if (
|
|
306
|
-
let e =
|
|
305
|
+
let t = this.rules.block.blockquote.exec(e);
|
|
306
|
+
if (t) {
|
|
307
|
+
let e = W(t[0], "\n").split("\n"), n = "", r = "", i = [];
|
|
307
308
|
for (; e.length > 0;) {
|
|
308
|
-
let
|
|
309
|
-
for (
|
|
310
|
-
else if (!
|
|
309
|
+
let t = !1, a = [], o;
|
|
310
|
+
for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
|
|
311
|
+
else if (!t) a.push(e[o]);
|
|
311
312
|
else break;
|
|
312
|
-
e = e.slice(
|
|
313
|
-
let
|
|
314
|
-
|
|
315
|
-
${
|
|
316
|
-
${
|
|
317
|
-
let
|
|
318
|
-
if (this.lexer.state.top = !0, this.lexer.blockTokens(
|
|
319
|
-
let
|
|
320
|
-
if (
|
|
321
|
-
if (
|
|
322
|
-
let
|
|
323
|
-
|
|
313
|
+
e = e.slice(o);
|
|
314
|
+
let s = a.join("\n"), c = s.replace(this.rules.other.blockquoteSetextReplace, "\n $1").replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
315
|
+
n = n ? `${n}
|
|
316
|
+
${s}` : s, r = r ? `${r}
|
|
317
|
+
${c}` : c;
|
|
318
|
+
let l = this.lexer.state.top;
|
|
319
|
+
if (this.lexer.state.top = !0, this.lexer.blockTokens(c, i, !0), this.lexer.state.top = l, e.length === 0) break;
|
|
320
|
+
let u = i.at(-1);
|
|
321
|
+
if (u?.type === "code") break;
|
|
322
|
+
if (u?.type === "blockquote") {
|
|
323
|
+
let t = u, a = t.raw + "\n" + e.join("\n"), o = this.blockquote(a);
|
|
324
|
+
i[i.length - 1] = o, n = n.substring(0, n.length - t.raw.length) + o.raw, r = r.substring(0, r.length - t.text.length) + o.text;
|
|
324
325
|
break;
|
|
325
|
-
} else if (
|
|
326
|
-
let
|
|
327
|
-
|
|
326
|
+
} else if (u?.type === "list") {
|
|
327
|
+
let t = u, a = t.raw + "\n" + e.join("\n"), o = this.list(a);
|
|
328
|
+
i[i.length - 1] = o, n = n.substring(0, n.length - u.raw.length) + o.raw, r = r.substring(0, r.length - t.raw.length) + o.raw, e = a.substring(i.at(-1).raw.length).split("\n");
|
|
328
329
|
continue;
|
|
329
330
|
}
|
|
330
331
|
}
|
|
331
332
|
return {
|
|
332
333
|
type: "blockquote",
|
|
333
|
-
raw:
|
|
334
|
-
tokens:
|
|
335
|
-
text:
|
|
334
|
+
raw: n,
|
|
335
|
+
tokens: i,
|
|
336
|
+
text: r
|
|
336
337
|
};
|
|
337
338
|
}
|
|
338
339
|
}
|
|
339
340
|
list(e) {
|
|
340
|
-
let
|
|
341
|
-
if (
|
|
342
|
-
let
|
|
341
|
+
let t = this.rules.block.list.exec(e);
|
|
342
|
+
if (t) {
|
|
343
|
+
let n = t[1].trim(), r = n.length > 1, i = {
|
|
343
344
|
type: "list",
|
|
344
345
|
raw: "",
|
|
345
|
-
ordered:
|
|
346
|
-
start:
|
|
346
|
+
ordered: r,
|
|
347
|
+
start: r ? +n.slice(0, -1) : "",
|
|
347
348
|
loose: !1,
|
|
348
349
|
items: []
|
|
349
350
|
};
|
|
350
|
-
|
|
351
|
-
let
|
|
351
|
+
n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
|
|
352
|
+
let a = this.rules.other.listItemRegex(n), o = !1;
|
|
352
353
|
for (; e;) {
|
|
353
|
-
let
|
|
354
|
-
if (!(
|
|
355
|
-
|
|
356
|
-
let
|
|
357
|
-
if (this.options.pedantic ? (
|
|
358
|
-
let
|
|
354
|
+
let n = !1, r = "", s = "";
|
|
355
|
+
if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
356
|
+
r = t[0], e = e.substring(r.length);
|
|
357
|
+
let c = t[2].split("\n", 1)[0].replace(this.rules.other.listReplaceTabs, (e) => " ".repeat(3 * e.length)), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
|
|
358
|
+
if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = t[2].search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
|
|
359
|
+
let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d);
|
|
359
360
|
for (; e;) {
|
|
360
|
-
let
|
|
361
|
-
if (
|
|
362
|
-
if (
|
|
361
|
+
let f = e.split("\n", 1)[0], p;
|
|
362
|
+
if (l = f, this.options.pedantic ? (l = l.replace(this.rules.other.listReplaceNesting, " "), p = l) : p = l.replace(this.rules.other.tabCharGlobal, " "), i.test(l) || a.test(l) || o.test(l) || t.test(l) || n.test(l)) break;
|
|
363
|
+
if (p.search(this.rules.other.nonSpaceChar) >= d || !l.trim()) s += "\n" + p.slice(d);
|
|
363
364
|
else {
|
|
364
|
-
if (
|
|
365
|
-
|
|
365
|
+
if (u || c.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || i.test(c) || a.test(c) || n.test(c)) break;
|
|
366
|
+
s += "\n" + l;
|
|
366
367
|
}
|
|
367
|
-
!
|
|
368
|
+
!u && !l.trim() && (u = !0), r += f + "\n", e = e.substring(f.length + 1), c = p.slice(d);
|
|
368
369
|
}
|
|
369
370
|
}
|
|
370
|
-
|
|
371
|
-
let
|
|
372
|
-
this.options.gfm && (
|
|
371
|
+
i.loose || (o ? i.loose = !0 : this.rules.other.doubleBlankLine.test(r) && (o = !0));
|
|
372
|
+
let f = null, p;
|
|
373
|
+
this.options.gfm && (f = this.rules.other.listIsTask.exec(s), f && (p = f[0] !== "[ ] ", s = s.replace(this.rules.other.listReplaceTask, ""))), i.items.push({
|
|
373
374
|
type: "list_item",
|
|
374
|
-
raw:
|
|
375
|
-
task: !!
|
|
376
|
-
checked:
|
|
375
|
+
raw: r,
|
|
376
|
+
task: !!f,
|
|
377
|
+
checked: p,
|
|
377
378
|
loose: !1,
|
|
378
|
-
text:
|
|
379
|
+
text: s,
|
|
379
380
|
tokens: []
|
|
380
|
-
}),
|
|
381
|
+
}), i.raw += r;
|
|
381
382
|
}
|
|
382
|
-
let
|
|
383
|
-
if (
|
|
383
|
+
let s = i.items.at(-1);
|
|
384
|
+
if (s) s.raw = s.raw.trimEnd(), s.text = s.text.trimEnd();
|
|
384
385
|
else return;
|
|
385
|
-
|
|
386
|
-
for (let e = 0; e <
|
|
387
|
-
let
|
|
388
|
-
|
|
386
|
+
i.raw = i.raw.trimEnd();
|
|
387
|
+
for (let e = 0; e < i.items.length; e++) if (this.lexer.state.top = !1, i.items[e].tokens = this.lexer.blockTokens(i.items[e].text, []), !i.loose) {
|
|
388
|
+
let t = i.items[e].tokens.filter((e) => e.type === "space");
|
|
389
|
+
i.loose = t.length > 0 && t.some((e) => this.rules.other.anyLine.test(e.raw));
|
|
389
390
|
}
|
|
390
|
-
if (
|
|
391
|
-
return
|
|
391
|
+
if (i.loose) for (let e = 0; e < i.items.length; e++) i.items[e].loose = !0;
|
|
392
|
+
return i;
|
|
392
393
|
}
|
|
393
394
|
}
|
|
394
395
|
html(e) {
|
|
395
|
-
let
|
|
396
|
-
if (
|
|
396
|
+
let t = this.rules.block.html.exec(e);
|
|
397
|
+
if (t) return {
|
|
397
398
|
type: "html",
|
|
398
399
|
block: !0,
|
|
399
|
-
raw:
|
|
400
|
-
pre:
|
|
401
|
-
text:
|
|
400
|
+
raw: t[0],
|
|
401
|
+
pre: t[1] === "pre" || t[1] === "script" || t[1] === "style",
|
|
402
|
+
text: t[0]
|
|
402
403
|
};
|
|
403
404
|
}
|
|
404
405
|
def(e) {
|
|
405
|
-
let
|
|
406
|
-
if (
|
|
407
|
-
let e =
|
|
406
|
+
let t = this.rules.block.def.exec(e);
|
|
407
|
+
if (t) {
|
|
408
|
+
let e = t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, " "), n = t[2] ? t[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", r = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3];
|
|
408
409
|
return {
|
|
409
410
|
type: "def",
|
|
410
411
|
tag: e,
|
|
411
|
-
raw:
|
|
412
|
-
href:
|
|
413
|
-
title:
|
|
412
|
+
raw: t[0],
|
|
413
|
+
href: n,
|
|
414
|
+
title: r
|
|
414
415
|
};
|
|
415
416
|
}
|
|
416
417
|
}
|
|
417
418
|
table(e) {
|
|
418
|
-
let
|
|
419
|
-
if (!
|
|
420
|
-
let
|
|
419
|
+
let t = this.rules.block.table.exec(e);
|
|
420
|
+
if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
|
|
421
|
+
let n = U(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
|
|
421
422
|
type: "table",
|
|
422
|
-
raw:
|
|
423
|
+
raw: t[0],
|
|
423
424
|
header: [],
|
|
424
425
|
align: [],
|
|
425
426
|
rows: []
|
|
426
427
|
};
|
|
427
|
-
if (
|
|
428
|
-
for (let e of
|
|
429
|
-
for (let e = 0; e <
|
|
430
|
-
text:
|
|
431
|
-
tokens: this.lexer.inline(
|
|
428
|
+
if (n.length === r.length) {
|
|
429
|
+
for (let e of r) this.rules.other.tableAlignRight.test(e) ? a.align.push("right") : this.rules.other.tableAlignCenter.test(e) ? a.align.push("center") : this.rules.other.tableAlignLeft.test(e) ? a.align.push("left") : a.align.push(null);
|
|
430
|
+
for (let e = 0; e < n.length; e++) a.header.push({
|
|
431
|
+
text: n[e],
|
|
432
|
+
tokens: this.lexer.inline(n[e]),
|
|
432
433
|
header: !0,
|
|
433
|
-
align:
|
|
434
|
+
align: a.align[e]
|
|
434
435
|
});
|
|
435
|
-
for (let e of
|
|
436
|
+
for (let e of i) a.rows.push(U(e, a.header.length).map((e, t) => ({
|
|
436
437
|
text: e,
|
|
437
438
|
tokens: this.lexer.inline(e),
|
|
438
439
|
header: !1,
|
|
439
|
-
align:
|
|
440
|
+
align: a.align[t]
|
|
440
441
|
})));
|
|
441
|
-
return
|
|
442
|
+
return a;
|
|
442
443
|
}
|
|
443
444
|
}
|
|
444
445
|
lheading(e) {
|
|
445
|
-
let
|
|
446
|
-
if (
|
|
446
|
+
let t = this.rules.block.lheading.exec(e);
|
|
447
|
+
if (t) return {
|
|
447
448
|
type: "heading",
|
|
448
|
-
raw:
|
|
449
|
-
depth:
|
|
450
|
-
text:
|
|
451
|
-
tokens: this.lexer.inline(
|
|
449
|
+
raw: t[0],
|
|
450
|
+
depth: t[2].charAt(0) === "=" ? 1 : 2,
|
|
451
|
+
text: t[1],
|
|
452
|
+
tokens: this.lexer.inline(t[1])
|
|
452
453
|
};
|
|
453
454
|
}
|
|
454
455
|
paragraph(e) {
|
|
455
|
-
let
|
|
456
|
-
if (
|
|
457
|
-
let e =
|
|
456
|
+
let t = this.rules.block.paragraph.exec(e);
|
|
457
|
+
if (t) {
|
|
458
|
+
let e = t[1].charAt(t[1].length - 1) === "\n" ? t[1].slice(0, -1) : t[1];
|
|
458
459
|
return {
|
|
459
460
|
type: "paragraph",
|
|
460
|
-
raw:
|
|
461
|
+
raw: t[0],
|
|
461
462
|
text: e,
|
|
462
463
|
tokens: this.lexer.inline(e)
|
|
463
464
|
};
|
|
464
465
|
}
|
|
465
466
|
}
|
|
466
467
|
text(e) {
|
|
467
|
-
let
|
|
468
|
-
if (
|
|
468
|
+
let t = this.rules.block.text.exec(e);
|
|
469
|
+
if (t) return {
|
|
469
470
|
type: "text",
|
|
470
|
-
raw:
|
|
471
|
-
text:
|
|
472
|
-
tokens: this.lexer.inline(
|
|
471
|
+
raw: t[0],
|
|
472
|
+
text: t[0],
|
|
473
|
+
tokens: this.lexer.inline(t[0])
|
|
473
474
|
};
|
|
474
475
|
}
|
|
475
476
|
escape(e) {
|
|
476
|
-
let
|
|
477
|
-
if (
|
|
477
|
+
let t = this.rules.inline.escape.exec(e);
|
|
478
|
+
if (t) return {
|
|
478
479
|
type: "escape",
|
|
479
|
-
raw:
|
|
480
|
-
text:
|
|
480
|
+
raw: t[0],
|
|
481
|
+
text: t[1]
|
|
481
482
|
};
|
|
482
483
|
}
|
|
483
484
|
tag(e) {
|
|
484
|
-
let
|
|
485
|
-
if (
|
|
485
|
+
let t = this.rules.inline.tag.exec(e);
|
|
486
|
+
if (t) return !this.lexer.state.inLink && this.rules.other.startATag.test(t[0]) ? this.lexer.state.inLink = !0 : this.lexer.state.inLink && this.rules.other.endATag.test(t[0]) && (this.lexer.state.inLink = !1), !this.lexer.state.inRawBlock && this.rules.other.startPreScriptTag.test(t[0]) ? this.lexer.state.inRawBlock = !0 : this.lexer.state.inRawBlock && this.rules.other.endPreScriptTag.test(t[0]) && (this.lexer.state.inRawBlock = !1), {
|
|
486
487
|
type: "html",
|
|
487
|
-
raw:
|
|
488
|
+
raw: t[0],
|
|
488
489
|
inLink: this.lexer.state.inLink,
|
|
489
490
|
inRawBlock: this.lexer.state.inRawBlock,
|
|
490
491
|
block: !1,
|
|
491
|
-
text:
|
|
492
|
+
text: t[0]
|
|
492
493
|
};
|
|
493
494
|
}
|
|
494
495
|
link(e) {
|
|
495
|
-
let
|
|
496
|
-
if (
|
|
497
|
-
let e =
|
|
496
|
+
let t = this.rules.inline.link.exec(e);
|
|
497
|
+
if (t) {
|
|
498
|
+
let e = t[2].trim();
|
|
498
499
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
|
|
499
500
|
if (!this.rules.other.endAngleBracket.test(e)) return;
|
|
500
|
-
let
|
|
501
|
-
if ((e.length -
|
|
501
|
+
let t = W(e.slice(0, -1), "\\");
|
|
502
|
+
if ((e.length - t.length) % 2 == 0) return;
|
|
502
503
|
} else {
|
|
503
|
-
let e =
|
|
504
|
+
let e = Te(t[2], "()");
|
|
504
505
|
if (e === -2) return;
|
|
505
506
|
if (e > -1) {
|
|
506
|
-
let
|
|
507
|
-
|
|
507
|
+
let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
|
|
508
|
+
t[2] = t[2].substring(0, e), t[0] = t[0].substring(0, n).trim(), t[3] = "";
|
|
508
509
|
}
|
|
509
510
|
}
|
|
510
|
-
let
|
|
511
|
+
let n = t[2], r = "";
|
|
511
512
|
if (this.options.pedantic) {
|
|
512
|
-
let e = this.rules.other.pedanticHrefTitle.exec(
|
|
513
|
-
e && (
|
|
514
|
-
} else
|
|
515
|
-
return
|
|
516
|
-
href:
|
|
517
|
-
title:
|
|
518
|
-
},
|
|
513
|
+
let e = this.rules.other.pedanticHrefTitle.exec(n);
|
|
514
|
+
e && (n = e[1], r = e[3]);
|
|
515
|
+
} else r = t[3] ? t[3].slice(1, -1) : "";
|
|
516
|
+
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), G(t, {
|
|
517
|
+
href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
518
|
+
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
|
519
|
+
}, t[0], this.lexer, this.rules);
|
|
519
520
|
}
|
|
520
521
|
}
|
|
521
|
-
reflink(e,
|
|
522
|
-
let
|
|
523
|
-
if ((
|
|
524
|
-
let e =
|
|
522
|
+
reflink(e, t) {
|
|
523
|
+
let n;
|
|
524
|
+
if ((n = this.rules.inline.reflink.exec(e)) || (n = this.rules.inline.nolink.exec(e))) {
|
|
525
|
+
let e = t[(n[2] || n[1]).replace(this.rules.other.multipleSpaceGlobal, " ").toLowerCase()];
|
|
525
526
|
if (!e) {
|
|
526
|
-
let e =
|
|
527
|
+
let e = n[0].charAt(0);
|
|
527
528
|
return {
|
|
528
529
|
type: "text",
|
|
529
530
|
raw: e,
|
|
530
531
|
text: e
|
|
531
532
|
};
|
|
532
533
|
}
|
|
533
|
-
return
|
|
534
|
+
return G(n, e, n[0], this.lexer, this.rules);
|
|
534
535
|
}
|
|
535
536
|
}
|
|
536
|
-
emStrong(e,
|
|
537
|
-
let
|
|
538
|
-
if (!(!
|
|
539
|
-
let
|
|
540
|
-
for (
|
|
541
|
-
if (
|
|
542
|
-
if (
|
|
543
|
-
|
|
537
|
+
emStrong(e, t, n = "") {
|
|
538
|
+
let r = this.rules.inline.emStrongLDelim.exec(e);
|
|
539
|
+
if (!(!r || r[3] && n.match(this.rules.other.unicodeAlphaNumeric)) && (!(r[1] || r[2]) || !n || this.rules.inline.punctuation.exec(n))) {
|
|
540
|
+
let n = [...r[0]].length - 1, i, a, o = n, s = 0, c = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
541
|
+
for (c.lastIndex = 0, t = t.slice(-1 * e.length + n); (r = c.exec(t)) != null;) {
|
|
542
|
+
if (i = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !i) continue;
|
|
543
|
+
if (a = [...i].length, r[3] || r[4]) {
|
|
544
|
+
o += a;
|
|
544
545
|
continue;
|
|
545
|
-
} else if ((
|
|
546
|
-
|
|
546
|
+
} else if ((r[5] || r[6]) && n % 3 && !((n + a) % 3)) {
|
|
547
|
+
s += a;
|
|
547
548
|
continue;
|
|
548
549
|
}
|
|
549
|
-
if (
|
|
550
|
-
|
|
551
|
-
let
|
|
552
|
-
if (Math.min(
|
|
553
|
-
let e =
|
|
550
|
+
if (o -= a, o > 0) continue;
|
|
551
|
+
a = Math.min(a, a + o + s);
|
|
552
|
+
let t = [...r[0]][0].length, c = e.slice(0, n + r.index + t + a);
|
|
553
|
+
if (Math.min(n, a) % 2) {
|
|
554
|
+
let e = c.slice(1, -1);
|
|
554
555
|
return {
|
|
555
556
|
type: "em",
|
|
556
|
-
raw:
|
|
557
|
+
raw: c,
|
|
557
558
|
text: e,
|
|
558
559
|
tokens: this.lexer.inlineTokens(e)
|
|
559
560
|
};
|
|
560
561
|
}
|
|
561
|
-
let
|
|
562
|
+
let l = c.slice(2, -2);
|
|
562
563
|
return {
|
|
563
564
|
type: "strong",
|
|
564
|
-
raw:
|
|
565
|
-
text:
|
|
566
|
-
tokens: this.lexer.inlineTokens(
|
|
565
|
+
raw: c,
|
|
566
|
+
text: l,
|
|
567
|
+
tokens: this.lexer.inlineTokens(l)
|
|
567
568
|
};
|
|
568
569
|
}
|
|
569
570
|
}
|
|
570
571
|
}
|
|
571
572
|
codespan(e) {
|
|
572
|
-
let
|
|
573
|
-
if (
|
|
574
|
-
let e =
|
|
575
|
-
return
|
|
573
|
+
let t = this.rules.inline.code.exec(e);
|
|
574
|
+
if (t) {
|
|
575
|
+
let e = t[2].replace(this.rules.other.newLineCharGlobal, " "), n = this.rules.other.nonSpaceChar.test(e), r = this.rules.other.startingSpaceChar.test(e) && this.rules.other.endingSpaceChar.test(e);
|
|
576
|
+
return n && r && (e = e.substring(1, e.length - 1)), {
|
|
576
577
|
type: "codespan",
|
|
577
|
-
raw:
|
|
578
|
+
raw: t[0],
|
|
578
579
|
text: e
|
|
579
580
|
};
|
|
580
581
|
}
|
|
581
582
|
}
|
|
582
583
|
br(e) {
|
|
583
|
-
let
|
|
584
|
-
if (
|
|
584
|
+
let t = this.rules.inline.br.exec(e);
|
|
585
|
+
if (t) return {
|
|
585
586
|
type: "br",
|
|
586
|
-
raw:
|
|
587
|
+
raw: t[0]
|
|
587
588
|
};
|
|
588
589
|
}
|
|
589
590
|
del(e) {
|
|
590
|
-
let
|
|
591
|
-
if (
|
|
591
|
+
let t = this.rules.inline.del.exec(e);
|
|
592
|
+
if (t) return {
|
|
592
593
|
type: "del",
|
|
593
|
-
raw:
|
|
594
|
-
text:
|
|
595
|
-
tokens: this.lexer.inlineTokens(
|
|
594
|
+
raw: t[0],
|
|
595
|
+
text: t[2],
|
|
596
|
+
tokens: this.lexer.inlineTokens(t[2])
|
|
596
597
|
};
|
|
597
598
|
}
|
|
598
599
|
autolink(e) {
|
|
599
|
-
let
|
|
600
|
-
if (
|
|
601
|
-
let e,
|
|
602
|
-
return
|
|
600
|
+
let t = this.rules.inline.autolink.exec(e);
|
|
601
|
+
if (t) {
|
|
602
|
+
let e, n;
|
|
603
|
+
return t[2] === "@" ? (e = t[1], n = "mailto:" + e) : (e = t[1], n = e), {
|
|
603
604
|
type: "link",
|
|
604
|
-
raw:
|
|
605
|
+
raw: t[0],
|
|
605
606
|
text: e,
|
|
606
|
-
href:
|
|
607
|
+
href: n,
|
|
607
608
|
tokens: [{
|
|
608
609
|
type: "text",
|
|
609
610
|
raw: e,
|
|
@@ -613,22 +614,22 @@ ${A}` : A;
|
|
|
613
614
|
}
|
|
614
615
|
}
|
|
615
616
|
url(e) {
|
|
616
|
-
let
|
|
617
|
-
if (
|
|
618
|
-
let e,
|
|
619
|
-
if (
|
|
617
|
+
let t;
|
|
618
|
+
if (t = this.rules.inline.url.exec(e)) {
|
|
619
|
+
let e, n;
|
|
620
|
+
if (t[2] === "@") e = t[0], n = "mailto:" + e;
|
|
620
621
|
else {
|
|
621
|
-
let
|
|
622
|
+
let r;
|
|
622
623
|
do
|
|
623
|
-
|
|
624
|
-
while (
|
|
625
|
-
e =
|
|
624
|
+
r = t[0], t[0] = this.rules.inline._backpedal.exec(t[0])?.[0] ?? "";
|
|
625
|
+
while (r !== t[0]);
|
|
626
|
+
e = t[0], n = t[1] === "www." ? "http://" + t[0] : t[0];
|
|
626
627
|
}
|
|
627
628
|
return {
|
|
628
629
|
type: "link",
|
|
629
|
-
raw:
|
|
630
|
+
raw: t[0],
|
|
630
631
|
text: e,
|
|
631
|
-
href:
|
|
632
|
+
href: n,
|
|
632
633
|
tokens: [{
|
|
633
634
|
type: "text",
|
|
634
635
|
raw: e,
|
|
@@ -638,239 +639,239 @@ ${A}` : A;
|
|
|
638
639
|
}
|
|
639
640
|
}
|
|
640
641
|
inlineText(e) {
|
|
641
|
-
let
|
|
642
|
-
if (
|
|
642
|
+
let t = this.rules.inline.text.exec(e);
|
|
643
|
+
if (t) {
|
|
643
644
|
let e = this.lexer.state.inRawBlock;
|
|
644
645
|
return {
|
|
645
646
|
type: "text",
|
|
646
|
-
raw:
|
|
647
|
-
text:
|
|
647
|
+
raw: t[0],
|
|
648
|
+
text: t[0],
|
|
648
649
|
escaped: e
|
|
649
650
|
};
|
|
650
651
|
}
|
|
651
652
|
}
|
|
652
|
-
},
|
|
653
|
+
}, q = class e {
|
|
653
654
|
tokens;
|
|
654
655
|
options;
|
|
655
656
|
state;
|
|
656
657
|
tokenizer;
|
|
657
658
|
inlineQueue;
|
|
658
659
|
constructor(e) {
|
|
659
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e ||
|
|
660
|
+
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || t, this.options.tokenizer = this.options.tokenizer || new K(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
660
661
|
inLink: !1,
|
|
661
662
|
inRawBlock: !1,
|
|
662
663
|
top: !0
|
|
663
664
|
};
|
|
664
|
-
let
|
|
665
|
-
other:
|
|
666
|
-
block:
|
|
667
|
-
inline:
|
|
665
|
+
let n = {
|
|
666
|
+
other: o,
|
|
667
|
+
block: R.normal,
|
|
668
|
+
inline: z.normal
|
|
668
669
|
};
|
|
669
|
-
this.options.pedantic ? (
|
|
670
|
+
this.options.pedantic ? (n.block = R.pedantic, n.inline = z.pedantic) : this.options.gfm && (n.block = R.gfm, this.options.breaks ? n.inline = z.breaks : n.inline = z.gfm), this.tokenizer.rules = n;
|
|
670
671
|
}
|
|
671
672
|
static get rules() {
|
|
672
673
|
return {
|
|
673
|
-
block:
|
|
674
|
-
inline:
|
|
674
|
+
block: R,
|
|
675
|
+
inline: z
|
|
675
676
|
};
|
|
676
677
|
}
|
|
677
|
-
static lex(
|
|
678
|
-
return new e(
|
|
678
|
+
static lex(t, n) {
|
|
679
|
+
return new e(n).lex(t);
|
|
679
680
|
}
|
|
680
|
-
static lexInline(
|
|
681
|
-
return new e(
|
|
681
|
+
static lexInline(t, n) {
|
|
682
|
+
return new e(n).inlineTokens(t);
|
|
682
683
|
}
|
|
683
684
|
lex(e) {
|
|
684
|
-
e = e.replace(
|
|
685
|
+
e = e.replace(o.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
|
|
685
686
|
for (let e = 0; e < this.inlineQueue.length; e++) {
|
|
686
|
-
let
|
|
687
|
-
this.inlineTokens(
|
|
687
|
+
let t = this.inlineQueue[e];
|
|
688
|
+
this.inlineTokens(t.src, t.tokens);
|
|
688
689
|
}
|
|
689
690
|
return this.inlineQueue = [], this.tokens;
|
|
690
691
|
}
|
|
691
|
-
blockTokens(e,
|
|
692
|
-
for (this.options.pedantic && (e = e.replace(
|
|
693
|
-
let
|
|
694
|
-
if (this.options.extensions?.block?.some((
|
|
695
|
-
if (
|
|
696
|
-
e = e.substring(
|
|
697
|
-
let
|
|
698
|
-
|
|
692
|
+
blockTokens(e, t = [], n = !1) {
|
|
693
|
+
for (this.options.pedantic && (e = e.replace(o.tabCharGlobal, " ").replace(o.spaceLine, "")); e;) {
|
|
694
|
+
let r;
|
|
695
|
+
if (this.options.extensions?.block?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
|
|
696
|
+
if (r = this.tokenizer.space(e)) {
|
|
697
|
+
e = e.substring(r.raw.length);
|
|
698
|
+
let n = t.at(-1);
|
|
699
|
+
r.raw.length === 1 && n !== void 0 ? n.raw += "\n" : t.push(r);
|
|
699
700
|
continue;
|
|
700
701
|
}
|
|
701
|
-
if (
|
|
702
|
-
e = e.substring(
|
|
703
|
-
let
|
|
704
|
-
|
|
702
|
+
if (r = this.tokenizer.code(e)) {
|
|
703
|
+
e = e.substring(r.raw.length);
|
|
704
|
+
let n = t.at(-1);
|
|
705
|
+
n?.type === "paragraph" || n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + r.raw, n.text += "\n" + r.text, this.inlineQueue.at(-1).src = n.text) : t.push(r);
|
|
705
706
|
continue;
|
|
706
707
|
}
|
|
707
|
-
if (
|
|
708
|
-
e = e.substring(
|
|
708
|
+
if (r = this.tokenizer.fences(e)) {
|
|
709
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
709
710
|
continue;
|
|
710
711
|
}
|
|
711
|
-
if (
|
|
712
|
-
e = e.substring(
|
|
712
|
+
if (r = this.tokenizer.heading(e)) {
|
|
713
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
713
714
|
continue;
|
|
714
715
|
}
|
|
715
|
-
if (
|
|
716
|
-
e = e.substring(
|
|
716
|
+
if (r = this.tokenizer.hr(e)) {
|
|
717
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
717
718
|
continue;
|
|
718
719
|
}
|
|
719
|
-
if (
|
|
720
|
-
e = e.substring(
|
|
720
|
+
if (r = this.tokenizer.blockquote(e)) {
|
|
721
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
721
722
|
continue;
|
|
722
723
|
}
|
|
723
|
-
if (
|
|
724
|
-
e = e.substring(
|
|
724
|
+
if (r = this.tokenizer.list(e)) {
|
|
725
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
725
726
|
continue;
|
|
726
727
|
}
|
|
727
|
-
if (
|
|
728
|
-
e = e.substring(
|
|
728
|
+
if (r = this.tokenizer.html(e)) {
|
|
729
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
729
730
|
continue;
|
|
730
731
|
}
|
|
731
|
-
if (
|
|
732
|
-
e = e.substring(
|
|
733
|
-
let
|
|
734
|
-
|
|
735
|
-
href:
|
|
736
|
-
title:
|
|
737
|
-
},
|
|
732
|
+
if (r = this.tokenizer.def(e)) {
|
|
733
|
+
e = e.substring(r.raw.length);
|
|
734
|
+
let n = t.at(-1);
|
|
735
|
+
n?.type === "paragraph" || n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + r.raw, n.text += "\n" + r.raw, this.inlineQueue.at(-1).src = n.text) : this.tokens.links[r.tag] || (this.tokens.links[r.tag] = {
|
|
736
|
+
href: r.href,
|
|
737
|
+
title: r.title
|
|
738
|
+
}, t.push(r));
|
|
738
739
|
continue;
|
|
739
740
|
}
|
|
740
|
-
if (
|
|
741
|
-
e = e.substring(
|
|
741
|
+
if (r = this.tokenizer.table(e)) {
|
|
742
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
742
743
|
continue;
|
|
743
744
|
}
|
|
744
|
-
if (
|
|
745
|
-
e = e.substring(
|
|
745
|
+
if (r = this.tokenizer.lheading(e)) {
|
|
746
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
746
747
|
continue;
|
|
747
748
|
}
|
|
748
|
-
let
|
|
749
|
+
let i = e;
|
|
749
750
|
if (this.options.extensions?.startBlock) {
|
|
750
|
-
let
|
|
751
|
+
let t = Infinity, n = e.slice(1), r;
|
|
751
752
|
this.options.extensions.startBlock.forEach((e) => {
|
|
752
|
-
|
|
753
|
-
}),
|
|
753
|
+
r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
|
|
754
|
+
}), t < Infinity && t >= 0 && (i = e.substring(0, t + 1));
|
|
754
755
|
}
|
|
755
|
-
if (this.state.top && (
|
|
756
|
-
let
|
|
757
|
-
|
|
756
|
+
if (this.state.top && (r = this.tokenizer.paragraph(i))) {
|
|
757
|
+
let a = t.at(-1);
|
|
758
|
+
n && a?.type === "paragraph" ? (a.raw += (a.raw.endsWith("\n") ? "" : "\n") + r.raw, a.text += "\n" + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = a.text) : t.push(r), n = i.length !== e.length, e = e.substring(r.raw.length);
|
|
758
759
|
continue;
|
|
759
760
|
}
|
|
760
|
-
if (
|
|
761
|
-
e = e.substring(
|
|
762
|
-
let
|
|
763
|
-
|
|
761
|
+
if (r = this.tokenizer.text(e)) {
|
|
762
|
+
e = e.substring(r.raw.length);
|
|
763
|
+
let n = t.at(-1);
|
|
764
|
+
n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + r.raw, n.text += "\n" + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = n.text) : t.push(r);
|
|
764
765
|
continue;
|
|
765
766
|
}
|
|
766
767
|
if (e) {
|
|
767
|
-
let
|
|
768
|
+
let t = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
768
769
|
if (this.options.silent) {
|
|
769
|
-
console.error(
|
|
770
|
+
console.error(t);
|
|
770
771
|
break;
|
|
771
|
-
} else throw Error(
|
|
772
|
+
} else throw Error(t);
|
|
772
773
|
}
|
|
773
774
|
}
|
|
774
|
-
return this.state.top = !0,
|
|
775
|
+
return this.state.top = !0, t;
|
|
775
776
|
}
|
|
776
|
-
inline(e,
|
|
777
|
+
inline(e, t = []) {
|
|
777
778
|
return this.inlineQueue.push({
|
|
778
779
|
src: e,
|
|
779
|
-
tokens:
|
|
780
|
-
}),
|
|
780
|
+
tokens: t
|
|
781
|
+
}), t;
|
|
781
782
|
}
|
|
782
|
-
inlineTokens(e,
|
|
783
|
-
let
|
|
783
|
+
inlineTokens(e, t = []) {
|
|
784
|
+
let n = e, r = null;
|
|
784
785
|
if (this.tokens.links) {
|
|
785
786
|
let e = Object.keys(this.tokens.links);
|
|
786
|
-
if (e.length > 0) for (; (
|
|
787
|
+
if (e.length > 0) for (; (r = this.tokenizer.rules.inline.reflinkSearch.exec(n)) != null;) e.includes(r[0].slice(r[0].lastIndexOf("[") + 1, -1)) && (n = n.slice(0, r.index) + "[" + "a".repeat(r[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
|
|
787
788
|
}
|
|
788
|
-
for (; (
|
|
789
|
-
let
|
|
790
|
-
for (; (
|
|
791
|
-
|
|
792
|
-
let
|
|
789
|
+
for (; (r = this.tokenizer.rules.inline.anyPunctuation.exec(n)) != null;) n = n.slice(0, r.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
|
|
790
|
+
let i;
|
|
791
|
+
for (; (r = this.tokenizer.rules.inline.blockSkip.exec(n)) != null;) i = r[2] ? r[2].length : 0, n = n.slice(0, r.index + i) + "[" + "a".repeat(r[0].length - i - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
|
792
|
+
n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
|
|
793
|
+
let a = !1, o = "";
|
|
793
794
|
for (; e;) {
|
|
794
|
-
|
|
795
|
-
let
|
|
796
|
-
if (this.options.extensions?.inline?.some((
|
|
797
|
-
if (
|
|
798
|
-
e = e.substring(
|
|
795
|
+
a || (o = ""), a = !1;
|
|
796
|
+
let r;
|
|
797
|
+
if (this.options.extensions?.inline?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
|
|
798
|
+
if (r = this.tokenizer.escape(e)) {
|
|
799
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
799
800
|
continue;
|
|
800
801
|
}
|
|
801
|
-
if (
|
|
802
|
-
e = e.substring(
|
|
802
|
+
if (r = this.tokenizer.tag(e)) {
|
|
803
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
803
804
|
continue;
|
|
804
805
|
}
|
|
805
|
-
if (
|
|
806
|
-
e = e.substring(
|
|
806
|
+
if (r = this.tokenizer.link(e)) {
|
|
807
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
807
808
|
continue;
|
|
808
809
|
}
|
|
809
|
-
if (
|
|
810
|
-
e = e.substring(
|
|
811
|
-
let
|
|
812
|
-
|
|
810
|
+
if (r = this.tokenizer.reflink(e, this.tokens.links)) {
|
|
811
|
+
e = e.substring(r.raw.length);
|
|
812
|
+
let n = t.at(-1);
|
|
813
|
+
r.type === "text" && n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
|
|
813
814
|
continue;
|
|
814
815
|
}
|
|
815
|
-
if (
|
|
816
|
-
e = e.substring(
|
|
816
|
+
if (r = this.tokenizer.emStrong(e, n, o)) {
|
|
817
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
817
818
|
continue;
|
|
818
819
|
}
|
|
819
|
-
if (
|
|
820
|
-
e = e.substring(
|
|
820
|
+
if (r = this.tokenizer.codespan(e)) {
|
|
821
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
821
822
|
continue;
|
|
822
823
|
}
|
|
823
|
-
if (
|
|
824
|
-
e = e.substring(
|
|
824
|
+
if (r = this.tokenizer.br(e)) {
|
|
825
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
825
826
|
continue;
|
|
826
827
|
}
|
|
827
|
-
if (
|
|
828
|
-
e = e.substring(
|
|
828
|
+
if (r = this.tokenizer.del(e)) {
|
|
829
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
829
830
|
continue;
|
|
830
831
|
}
|
|
831
|
-
if (
|
|
832
|
-
e = e.substring(
|
|
832
|
+
if (r = this.tokenizer.autolink(e)) {
|
|
833
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
833
834
|
continue;
|
|
834
835
|
}
|
|
835
|
-
if (!this.state.inLink && (
|
|
836
|
-
e = e.substring(
|
|
836
|
+
if (!this.state.inLink && (r = this.tokenizer.url(e))) {
|
|
837
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
837
838
|
continue;
|
|
838
839
|
}
|
|
839
|
-
let
|
|
840
|
+
let i = e;
|
|
840
841
|
if (this.options.extensions?.startInline) {
|
|
841
|
-
let
|
|
842
|
+
let t = Infinity, n = e.slice(1), r;
|
|
842
843
|
this.options.extensions.startInline.forEach((e) => {
|
|
843
|
-
|
|
844
|
-
}),
|
|
844
|
+
r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
|
|
845
|
+
}), t < Infinity && t >= 0 && (i = e.substring(0, t + 1));
|
|
845
846
|
}
|
|
846
|
-
if (
|
|
847
|
-
e = e.substring(
|
|
848
|
-
let
|
|
849
|
-
|
|
847
|
+
if (r = this.tokenizer.inlineText(i)) {
|
|
848
|
+
e = e.substring(r.raw.length), r.raw.slice(-1) !== "_" && (o = r.raw.slice(-1)), a = !0;
|
|
849
|
+
let n = t.at(-1);
|
|
850
|
+
n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
|
|
850
851
|
continue;
|
|
851
852
|
}
|
|
852
853
|
if (e) {
|
|
853
|
-
let
|
|
854
|
+
let t = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
854
855
|
if (this.options.silent) {
|
|
855
|
-
console.error(
|
|
856
|
+
console.error(t);
|
|
856
857
|
break;
|
|
857
|
-
} else throw Error(
|
|
858
|
+
} else throw Error(t);
|
|
858
859
|
}
|
|
859
860
|
}
|
|
860
|
-
return
|
|
861
|
+
return t;
|
|
861
862
|
}
|
|
862
|
-
},
|
|
863
|
+
}, J = class {
|
|
863
864
|
options;
|
|
864
865
|
parser;
|
|
865
866
|
constructor(e) {
|
|
866
|
-
this.options = e ||
|
|
867
|
+
this.options = e || t;
|
|
867
868
|
}
|
|
868
869
|
space(e) {
|
|
869
870
|
return "";
|
|
870
871
|
}
|
|
871
|
-
code({ text: e, lang:
|
|
872
|
-
let
|
|
873
|
-
return
|
|
872
|
+
code({ text: e, lang: t, escaped: n }) {
|
|
873
|
+
let r = (t || "").match(o.notSpaceStart)?.[0], i = e.replace(o.endingNewline, "") + "\n";
|
|
874
|
+
return r ? "<pre><code class=\"language-" + V(r) + "\">" + (n ? i : V(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : V(i, !0)) + "</code></pre>\n";
|
|
874
875
|
}
|
|
875
876
|
blockquote({ tokens: e }) {
|
|
876
877
|
return `<blockquote>
|
|
@@ -883,34 +884,34 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
883
884
|
def(e) {
|
|
884
885
|
return "";
|
|
885
886
|
}
|
|
886
|
-
heading({ tokens: e, depth:
|
|
887
|
-
return `<h${
|
|
887
|
+
heading({ tokens: e, depth: t }) {
|
|
888
|
+
return `<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
888
889
|
`;
|
|
889
890
|
}
|
|
890
891
|
hr(e) {
|
|
891
892
|
return "<hr>\n";
|
|
892
893
|
}
|
|
893
894
|
list(e) {
|
|
894
|
-
let
|
|
895
|
-
for (let
|
|
896
|
-
let
|
|
897
|
-
|
|
895
|
+
let t = e.ordered, n = e.start, r = "";
|
|
896
|
+
for (let t = 0; t < e.items.length; t++) {
|
|
897
|
+
let n = e.items[t];
|
|
898
|
+
r += this.listitem(n);
|
|
898
899
|
}
|
|
899
|
-
let
|
|
900
|
-
return "<" +
|
|
900
|
+
let i = t ? "ol" : "ul", a = t && n !== 1 ? " start=\"" + n + "\"" : "";
|
|
901
|
+
return "<" + i + a + ">\n" + r + "</" + i + ">\n";
|
|
901
902
|
}
|
|
902
903
|
listitem(e) {
|
|
903
|
-
let
|
|
904
|
+
let t = "";
|
|
904
905
|
if (e.task) {
|
|
905
|
-
let
|
|
906
|
-
e.loose ? e.tokens[0]?.type === "paragraph" ? (e.tokens[0].text =
|
|
906
|
+
let n = this.checkbox({ checked: !!e.checked });
|
|
907
|
+
e.loose ? e.tokens[0]?.type === "paragraph" ? (e.tokens[0].text = n + " " + e.tokens[0].text, e.tokens[0].tokens && e.tokens[0].tokens.length > 0 && e.tokens[0].tokens[0].type === "text" && (e.tokens[0].tokens[0].text = n + " " + V(e.tokens[0].tokens[0].text), e.tokens[0].tokens[0].escaped = !0)) : e.tokens.unshift({
|
|
907
908
|
type: "text",
|
|
908
|
-
raw:
|
|
909
|
-
text:
|
|
909
|
+
raw: n + " ",
|
|
910
|
+
text: n + " ",
|
|
910
911
|
escaped: !0
|
|
911
|
-
}) :
|
|
912
|
+
}) : t += n + " ";
|
|
912
913
|
}
|
|
913
|
-
return
|
|
914
|
+
return t += this.parser.parse(e.tokens, !!e.loose), `<li>${t}</li>
|
|
914
915
|
`;
|
|
915
916
|
}
|
|
916
917
|
checkbox({ checked: e }) {
|
|
@@ -921,17 +922,17 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
921
922
|
`;
|
|
922
923
|
}
|
|
923
924
|
table(e) {
|
|
924
|
-
let
|
|
925
|
-
for (let
|
|
926
|
-
|
|
927
|
-
let
|
|
928
|
-
for (let
|
|
929
|
-
let
|
|
930
|
-
|
|
931
|
-
for (let e = 0; e <
|
|
932
|
-
|
|
925
|
+
let t = "", n = "";
|
|
926
|
+
for (let t = 0; t < e.header.length; t++) n += this.tablecell(e.header[t]);
|
|
927
|
+
t += this.tablerow({ text: n });
|
|
928
|
+
let r = "";
|
|
929
|
+
for (let t = 0; t < e.rows.length; t++) {
|
|
930
|
+
let i = e.rows[t];
|
|
931
|
+
n = "";
|
|
932
|
+
for (let e = 0; e < i.length; e++) n += this.tablecell(i[e]);
|
|
933
|
+
r += this.tablerow({ text: n });
|
|
933
934
|
}
|
|
934
|
-
return
|
|
935
|
+
return r &&= `<tbody>${r}</tbody>`, "<table>\n<thead>\n" + t + "</thead>\n" + r + "</table>\n";
|
|
935
936
|
}
|
|
936
937
|
tablerow({ text: e }) {
|
|
937
938
|
return `<tr>
|
|
@@ -939,8 +940,8 @@ ${e}</tr>
|
|
|
939
940
|
`;
|
|
940
941
|
}
|
|
941
942
|
tablecell(e) {
|
|
942
|
-
let
|
|
943
|
-
return (e.align ? `<${
|
|
943
|
+
let t = this.parser.parseInline(e.tokens), n = e.header ? "th" : "td";
|
|
944
|
+
return (e.align ? `<${n} align="${e.align}">` : `<${n}>`) + t + `</${n}>
|
|
944
945
|
`;
|
|
945
946
|
}
|
|
946
947
|
strong({ tokens: e }) {
|
|
@@ -950,7 +951,7 @@ ${e}</tr>
|
|
|
950
951
|
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
951
952
|
}
|
|
952
953
|
codespan({ text: e }) {
|
|
953
|
-
return `<code>${
|
|
954
|
+
return `<code>${V(e, !0)}</code>`;
|
|
954
955
|
}
|
|
955
956
|
br(e) {
|
|
956
957
|
return "<br>";
|
|
@@ -958,25 +959,25 @@ ${e}</tr>
|
|
|
958
959
|
del({ tokens: e }) {
|
|
959
960
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
960
961
|
}
|
|
961
|
-
link({ href: e, title:
|
|
962
|
-
let
|
|
963
|
-
if (
|
|
964
|
-
e =
|
|
965
|
-
let
|
|
966
|
-
return
|
|
967
|
-
}
|
|
968
|
-
image({ href: e, title:
|
|
969
|
-
|
|
970
|
-
let
|
|
971
|
-
if (
|
|
972
|
-
e =
|
|
973
|
-
let
|
|
974
|
-
return
|
|
962
|
+
link({ href: e, title: t, tokens: n }) {
|
|
963
|
+
let r = this.parser.parseInline(n), i = H(e);
|
|
964
|
+
if (i === null) return r;
|
|
965
|
+
e = i;
|
|
966
|
+
let a = "<a href=\"" + e + "\"";
|
|
967
|
+
return t && (a += " title=\"" + V(t) + "\""), a += ">" + r + "</a>", a;
|
|
968
|
+
}
|
|
969
|
+
image({ href: e, title: t, text: n, tokens: r }) {
|
|
970
|
+
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
971
|
+
let i = H(e);
|
|
972
|
+
if (i === null) return V(n);
|
|
973
|
+
e = i;
|
|
974
|
+
let a = `<img src="${e}" alt="${n}"`;
|
|
975
|
+
return t && (a += ` title="${V(t)}"`), a += ">", a;
|
|
975
976
|
}
|
|
976
977
|
text(e) {
|
|
977
|
-
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text :
|
|
978
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : V(e.text);
|
|
978
979
|
}
|
|
979
|
-
},
|
|
980
|
+
}, Y = class {
|
|
980
981
|
strong({ text: e }) {
|
|
981
982
|
return e;
|
|
982
983
|
}
|
|
@@ -1004,26 +1005,26 @@ ${e}</tr>
|
|
|
1004
1005
|
br() {
|
|
1005
1006
|
return "";
|
|
1006
1007
|
}
|
|
1007
|
-
},
|
|
1008
|
+
}, X = class e {
|
|
1008
1009
|
options;
|
|
1009
1010
|
renderer;
|
|
1010
1011
|
textRenderer;
|
|
1011
1012
|
constructor(e) {
|
|
1012
|
-
this.options = e ||
|
|
1013
|
+
this.options = e || t, this.options.renderer = this.options.renderer || new J(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Y();
|
|
1013
1014
|
}
|
|
1014
|
-
static parse(
|
|
1015
|
-
return new e(
|
|
1015
|
+
static parse(t, n) {
|
|
1016
|
+
return new e(n).parse(t);
|
|
1016
1017
|
}
|
|
1017
|
-
static parseInline(
|
|
1018
|
-
return new e(
|
|
1018
|
+
static parseInline(t, n) {
|
|
1019
|
+
return new e(n).parseInline(t);
|
|
1019
1020
|
}
|
|
1020
|
-
parse(e,
|
|
1021
|
-
let
|
|
1022
|
-
for (let
|
|
1023
|
-
let
|
|
1024
|
-
if (this.options.extensions?.renderers?.[
|
|
1025
|
-
let e =
|
|
1026
|
-
if (
|
|
1021
|
+
parse(e, t = !0) {
|
|
1022
|
+
let n = "";
|
|
1023
|
+
for (let r = 0; r < e.length; r++) {
|
|
1024
|
+
let i = e[r];
|
|
1025
|
+
if (this.options.extensions?.renderers?.[i.type]) {
|
|
1026
|
+
let e = i, t = this.options.extensions.renderers[e.type].call({ parser: this }, e);
|
|
1027
|
+
if (t !== !1 || ![
|
|
1027
1028
|
"space",
|
|
1028
1029
|
"hr",
|
|
1029
1030
|
"heading",
|
|
@@ -1036,73 +1037,73 @@ ${e}</tr>
|
|
|
1036
1037
|
"paragraph",
|
|
1037
1038
|
"text"
|
|
1038
1039
|
].includes(e.type)) {
|
|
1039
|
-
|
|
1040
|
+
n += t || "";
|
|
1040
1041
|
continue;
|
|
1041
1042
|
}
|
|
1042
1043
|
}
|
|
1043
|
-
let
|
|
1044
|
-
switch (
|
|
1044
|
+
let a = i;
|
|
1045
|
+
switch (a.type) {
|
|
1045
1046
|
case "space":
|
|
1046
|
-
|
|
1047
|
+
n += this.renderer.space(a);
|
|
1047
1048
|
continue;
|
|
1048
1049
|
case "hr":
|
|
1049
|
-
|
|
1050
|
+
n += this.renderer.hr(a);
|
|
1050
1051
|
continue;
|
|
1051
1052
|
case "heading":
|
|
1052
|
-
|
|
1053
|
+
n += this.renderer.heading(a);
|
|
1053
1054
|
continue;
|
|
1054
1055
|
case "code":
|
|
1055
|
-
|
|
1056
|
+
n += this.renderer.code(a);
|
|
1056
1057
|
continue;
|
|
1057
1058
|
case "table":
|
|
1058
|
-
|
|
1059
|
+
n += this.renderer.table(a);
|
|
1059
1060
|
continue;
|
|
1060
1061
|
case "blockquote":
|
|
1061
|
-
|
|
1062
|
+
n += this.renderer.blockquote(a);
|
|
1062
1063
|
continue;
|
|
1063
1064
|
case "list":
|
|
1064
|
-
|
|
1065
|
+
n += this.renderer.list(a);
|
|
1065
1066
|
continue;
|
|
1066
1067
|
case "html":
|
|
1067
|
-
|
|
1068
|
+
n += this.renderer.html(a);
|
|
1068
1069
|
continue;
|
|
1069
1070
|
case "def":
|
|
1070
|
-
|
|
1071
|
+
n += this.renderer.def(a);
|
|
1071
1072
|
continue;
|
|
1072
1073
|
case "paragraph":
|
|
1073
|
-
|
|
1074
|
+
n += this.renderer.paragraph(a);
|
|
1074
1075
|
continue;
|
|
1075
1076
|
case "text": {
|
|
1076
|
-
let
|
|
1077
|
-
for (;
|
|
1078
|
-
|
|
1077
|
+
let i = a, o = this.renderer.text(i);
|
|
1078
|
+
for (; r + 1 < e.length && e[r + 1].type === "text";) i = e[++r], o += "\n" + this.renderer.text(i);
|
|
1079
|
+
t ? n += this.renderer.paragraph({
|
|
1079
1080
|
type: "paragraph",
|
|
1080
|
-
raw:
|
|
1081
|
-
text:
|
|
1081
|
+
raw: o,
|
|
1082
|
+
text: o,
|
|
1082
1083
|
tokens: [{
|
|
1083
1084
|
type: "text",
|
|
1084
|
-
raw:
|
|
1085
|
-
text:
|
|
1085
|
+
raw: o,
|
|
1086
|
+
text: o,
|
|
1086
1087
|
escaped: !0
|
|
1087
1088
|
}]
|
|
1088
|
-
}) :
|
|
1089
|
+
}) : n += o;
|
|
1089
1090
|
continue;
|
|
1090
1091
|
}
|
|
1091
1092
|
default: {
|
|
1092
|
-
let e = "Token with \"" +
|
|
1093
|
+
let e = "Token with \"" + a.type + "\" type was not found.";
|
|
1093
1094
|
if (this.options.silent) return console.error(e), "";
|
|
1094
1095
|
throw Error(e);
|
|
1095
1096
|
}
|
|
1096
1097
|
}
|
|
1097
1098
|
}
|
|
1098
|
-
return
|
|
1099
|
-
}
|
|
1100
|
-
parseInline(e,
|
|
1101
|
-
let
|
|
1102
|
-
for (let
|
|
1103
|
-
let
|
|
1104
|
-
if (this.options.extensions?.renderers?.[
|
|
1105
|
-
let e = this.options.extensions.renderers[
|
|
1099
|
+
return n;
|
|
1100
|
+
}
|
|
1101
|
+
parseInline(e, t = this.renderer) {
|
|
1102
|
+
let n = "";
|
|
1103
|
+
for (let r = 0; r < e.length; r++) {
|
|
1104
|
+
let i = e[r];
|
|
1105
|
+
if (this.options.extensions?.renderers?.[i.type]) {
|
|
1106
|
+
let e = this.options.extensions.renderers[i.type].call({ parser: this }, i);
|
|
1106
1107
|
if (e !== !1 || ![
|
|
1107
1108
|
"escape",
|
|
1108
1109
|
"html",
|
|
@@ -1114,57 +1115,57 @@ ${e}</tr>
|
|
|
1114
1115
|
"br",
|
|
1115
1116
|
"del",
|
|
1116
1117
|
"text"
|
|
1117
|
-
].includes(
|
|
1118
|
-
|
|
1118
|
+
].includes(i.type)) {
|
|
1119
|
+
n += e || "";
|
|
1119
1120
|
continue;
|
|
1120
1121
|
}
|
|
1121
1122
|
}
|
|
1122
|
-
let
|
|
1123
|
-
switch (
|
|
1123
|
+
let a = i;
|
|
1124
|
+
switch (a.type) {
|
|
1124
1125
|
case "escape":
|
|
1125
|
-
|
|
1126
|
+
n += t.text(a);
|
|
1126
1127
|
break;
|
|
1127
1128
|
case "html":
|
|
1128
|
-
|
|
1129
|
+
n += t.html(a);
|
|
1129
1130
|
break;
|
|
1130
1131
|
case "link":
|
|
1131
|
-
|
|
1132
|
+
n += t.link(a);
|
|
1132
1133
|
break;
|
|
1133
1134
|
case "image":
|
|
1134
|
-
|
|
1135
|
+
n += t.image(a);
|
|
1135
1136
|
break;
|
|
1136
1137
|
case "strong":
|
|
1137
|
-
|
|
1138
|
+
n += t.strong(a);
|
|
1138
1139
|
break;
|
|
1139
1140
|
case "em":
|
|
1140
|
-
|
|
1141
|
+
n += t.em(a);
|
|
1141
1142
|
break;
|
|
1142
1143
|
case "codespan":
|
|
1143
|
-
|
|
1144
|
+
n += t.codespan(a);
|
|
1144
1145
|
break;
|
|
1145
1146
|
case "br":
|
|
1146
|
-
|
|
1147
|
+
n += t.br(a);
|
|
1147
1148
|
break;
|
|
1148
1149
|
case "del":
|
|
1149
|
-
|
|
1150
|
+
n += t.del(a);
|
|
1150
1151
|
break;
|
|
1151
1152
|
case "text":
|
|
1152
|
-
|
|
1153
|
+
n += t.text(a);
|
|
1153
1154
|
break;
|
|
1154
1155
|
default: {
|
|
1155
|
-
let e = "Token with \"" +
|
|
1156
|
+
let e = "Token with \"" + a.type + "\" type was not found.";
|
|
1156
1157
|
if (this.options.silent) return console.error(e), "";
|
|
1157
1158
|
throw Error(e);
|
|
1158
1159
|
}
|
|
1159
1160
|
}
|
|
1160
1161
|
}
|
|
1161
|
-
return
|
|
1162
|
+
return n;
|
|
1162
1163
|
}
|
|
1163
|
-
},
|
|
1164
|
+
}, Z = class {
|
|
1164
1165
|
options;
|
|
1165
1166
|
block;
|
|
1166
1167
|
constructor(e) {
|
|
1167
|
-
this.options = e ||
|
|
1168
|
+
this.options = e || t;
|
|
1168
1169
|
}
|
|
1169
1170
|
static passThroughHooks = new Set([
|
|
1170
1171
|
"preprocess",
|
|
@@ -1190,135 +1191,135 @@ ${e}</tr>
|
|
|
1190
1191
|
return e;
|
|
1191
1192
|
}
|
|
1192
1193
|
provideLexer() {
|
|
1193
|
-
return this.block ?
|
|
1194
|
+
return this.block ? q.lex : q.lexInline;
|
|
1194
1195
|
}
|
|
1195
1196
|
provideParser() {
|
|
1196
|
-
return this.block ?
|
|
1197
|
+
return this.block ? X.parse : X.parseInline;
|
|
1197
1198
|
}
|
|
1198
|
-
},
|
|
1199
|
-
defaults =
|
|
1199
|
+
}, Q = new class {
|
|
1200
|
+
defaults = e();
|
|
1200
1201
|
options = this.setOptions;
|
|
1201
1202
|
parse = this.parseMarkdown(!0);
|
|
1202
1203
|
parseInline = this.parseMarkdown(!1);
|
|
1203
|
-
Parser =
|
|
1204
|
-
Renderer =
|
|
1205
|
-
TextRenderer =
|
|
1206
|
-
Lexer =
|
|
1207
|
-
Tokenizer =
|
|
1208
|
-
Hooks =
|
|
1204
|
+
Parser = X;
|
|
1205
|
+
Renderer = J;
|
|
1206
|
+
TextRenderer = Y;
|
|
1207
|
+
Lexer = q;
|
|
1208
|
+
Tokenizer = K;
|
|
1209
|
+
Hooks = Z;
|
|
1209
1210
|
constructor(...e) {
|
|
1210
1211
|
this.use(...e);
|
|
1211
1212
|
}
|
|
1212
|
-
walkTokens(e,
|
|
1213
|
-
let
|
|
1214
|
-
for (let
|
|
1213
|
+
walkTokens(e, t) {
|
|
1214
|
+
let n = [];
|
|
1215
|
+
for (let r of e) switch (n = n.concat(t.call(this, r)), r.type) {
|
|
1215
1216
|
case "table": {
|
|
1216
|
-
let e =
|
|
1217
|
-
for (let
|
|
1218
|
-
for (let
|
|
1217
|
+
let e = r;
|
|
1218
|
+
for (let r of e.header) n = n.concat(this.walkTokens(r.tokens, t));
|
|
1219
|
+
for (let r of e.rows) for (let e of r) n = n.concat(this.walkTokens(e.tokens, t));
|
|
1219
1220
|
break;
|
|
1220
1221
|
}
|
|
1221
1222
|
case "list": {
|
|
1222
|
-
let e =
|
|
1223
|
-
|
|
1223
|
+
let e = r;
|
|
1224
|
+
n = n.concat(this.walkTokens(e.items, t));
|
|
1224
1225
|
break;
|
|
1225
1226
|
}
|
|
1226
1227
|
default: {
|
|
1227
|
-
let e =
|
|
1228
|
-
this.defaults.extensions?.childTokens?.[e.type] ? this.defaults.extensions.childTokens[e.type].forEach((
|
|
1229
|
-
let
|
|
1230
|
-
|
|
1231
|
-
}) : e.tokens && (
|
|
1228
|
+
let e = r;
|
|
1229
|
+
this.defaults.extensions?.childTokens?.[e.type] ? this.defaults.extensions.childTokens[e.type].forEach((r) => {
|
|
1230
|
+
let i = e[r].flat(Infinity);
|
|
1231
|
+
n = n.concat(this.walkTokens(i, t));
|
|
1232
|
+
}) : e.tokens && (n = n.concat(this.walkTokens(e.tokens, t)));
|
|
1232
1233
|
}
|
|
1233
1234
|
}
|
|
1234
|
-
return
|
|
1235
|
+
return n;
|
|
1235
1236
|
}
|
|
1236
1237
|
use(...e) {
|
|
1237
|
-
let
|
|
1238
|
+
let t = this.defaults.extensions || {
|
|
1238
1239
|
renderers: {},
|
|
1239
1240
|
childTokens: {}
|
|
1240
1241
|
};
|
|
1241
1242
|
return e.forEach((e) => {
|
|
1242
|
-
let
|
|
1243
|
-
if (
|
|
1243
|
+
let n = { ...e };
|
|
1244
|
+
if (n.async = this.defaults.async || n.async || !1, e.extensions && (e.extensions.forEach((e) => {
|
|
1244
1245
|
if (!e.name) throw Error("extension name required");
|
|
1245
1246
|
if ("renderer" in e) {
|
|
1246
|
-
let
|
|
1247
|
-
|
|
1248
|
-
let
|
|
1249
|
-
return
|
|
1250
|
-
} :
|
|
1247
|
+
let n = t.renderers[e.name];
|
|
1248
|
+
n ? t.renderers[e.name] = function(...t) {
|
|
1249
|
+
let r = e.renderer.apply(this, t);
|
|
1250
|
+
return r === !1 && (r = n.apply(this, t)), r;
|
|
1251
|
+
} : t.renderers[e.name] = e.renderer;
|
|
1251
1252
|
}
|
|
1252
1253
|
if ("tokenizer" in e) {
|
|
1253
1254
|
if (!e.level || e.level !== "block" && e.level !== "inline") throw Error("extension level must be 'block' or 'inline'");
|
|
1254
|
-
let
|
|
1255
|
-
|
|
1255
|
+
let n = t[e.level];
|
|
1256
|
+
n ? n.unshift(e.tokenizer) : t[e.level] = [e.tokenizer], e.start && (e.level === "block" ? t.startBlock ? t.startBlock.push(e.start) : t.startBlock = [e.start] : e.level === "inline" && (t.startInline ? t.startInline.push(e.start) : t.startInline = [e.start]));
|
|
1256
1257
|
}
|
|
1257
|
-
"childTokens" in e && e.childTokens && (
|
|
1258
|
-
}),
|
|
1259
|
-
let
|
|
1260
|
-
for (let
|
|
1261
|
-
if (!(
|
|
1262
|
-
if (["options", "parser"].includes(
|
|
1263
|
-
let
|
|
1264
|
-
|
|
1265
|
-
let
|
|
1266
|
-
return
|
|
1258
|
+
"childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
|
|
1259
|
+
}), n.extensions = t), e.renderer) {
|
|
1260
|
+
let t = this.defaults.renderer || new J(this.defaults);
|
|
1261
|
+
for (let n in e.renderer) {
|
|
1262
|
+
if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
|
|
1263
|
+
if (["options", "parser"].includes(n)) continue;
|
|
1264
|
+
let r = n, i = e.renderer[r], a = t[r];
|
|
1265
|
+
t[r] = (...e) => {
|
|
1266
|
+
let n = i.apply(t, e);
|
|
1267
|
+
return n === !1 && (n = a.apply(t, e)), n || "";
|
|
1267
1268
|
};
|
|
1268
1269
|
}
|
|
1269
|
-
|
|
1270
|
+
n.renderer = t;
|
|
1270
1271
|
}
|
|
1271
1272
|
if (e.tokenizer) {
|
|
1272
|
-
let
|
|
1273
|
-
for (let
|
|
1274
|
-
if (!(
|
|
1273
|
+
let t = this.defaults.tokenizer || new K(this.defaults);
|
|
1274
|
+
for (let n in e.tokenizer) {
|
|
1275
|
+
if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
|
|
1275
1276
|
if ([
|
|
1276
1277
|
"options",
|
|
1277
1278
|
"rules",
|
|
1278
1279
|
"lexer"
|
|
1279
|
-
].includes(
|
|
1280
|
-
let
|
|
1281
|
-
|
|
1282
|
-
let
|
|
1283
|
-
return
|
|
1280
|
+
].includes(n)) continue;
|
|
1281
|
+
let r = n, i = e.tokenizer[r], a = t[r];
|
|
1282
|
+
t[r] = (...e) => {
|
|
1283
|
+
let n = i.apply(t, e);
|
|
1284
|
+
return n === !1 && (n = a.apply(t, e)), n;
|
|
1284
1285
|
};
|
|
1285
1286
|
}
|
|
1286
|
-
|
|
1287
|
+
n.tokenizer = t;
|
|
1287
1288
|
}
|
|
1288
1289
|
if (e.hooks) {
|
|
1289
|
-
let
|
|
1290
|
-
for (let
|
|
1291
|
-
if (!(
|
|
1292
|
-
if (["options", "block"].includes(
|
|
1293
|
-
let
|
|
1294
|
-
|
|
1295
|
-
if (this.defaults.async &&
|
|
1296
|
-
let
|
|
1297
|
-
return
|
|
1290
|
+
let t = this.defaults.hooks || new Z();
|
|
1291
|
+
for (let n in e.hooks) {
|
|
1292
|
+
if (!(n in t)) throw Error(`hook '${n}' does not exist`);
|
|
1293
|
+
if (["options", "block"].includes(n)) continue;
|
|
1294
|
+
let r = n, i = e.hooks[r], a = t[r];
|
|
1295
|
+
Z.passThroughHooks.has(n) ? t[r] = (e) => {
|
|
1296
|
+
if (this.defaults.async && Z.passThroughHooksRespectAsync.has(n)) return (async () => {
|
|
1297
|
+
let n = await i.call(t, e);
|
|
1298
|
+
return a.call(t, n);
|
|
1298
1299
|
})();
|
|
1299
|
-
let
|
|
1300
|
-
return
|
|
1301
|
-
} :
|
|
1300
|
+
let r = i.call(t, e);
|
|
1301
|
+
return a.call(t, r);
|
|
1302
|
+
} : t[r] = (...e) => {
|
|
1302
1303
|
if (this.defaults.async) return (async () => {
|
|
1303
|
-
let
|
|
1304
|
-
return
|
|
1304
|
+
let n = await i.apply(t, e);
|
|
1305
|
+
return n === !1 && (n = await a.apply(t, e)), n;
|
|
1305
1306
|
})();
|
|
1306
|
-
let
|
|
1307
|
-
return
|
|
1307
|
+
let n = i.apply(t, e);
|
|
1308
|
+
return n === !1 && (n = a.apply(t, e)), n;
|
|
1308
1309
|
};
|
|
1309
1310
|
}
|
|
1310
|
-
|
|
1311
|
+
n.hooks = t;
|
|
1311
1312
|
}
|
|
1312
1313
|
if (e.walkTokens) {
|
|
1313
|
-
let
|
|
1314
|
-
|
|
1315
|
-
let
|
|
1316
|
-
return
|
|
1314
|
+
let t = this.defaults.walkTokens, r = e.walkTokens;
|
|
1315
|
+
n.walkTokens = function(e) {
|
|
1316
|
+
let n = [];
|
|
1317
|
+
return n.push(r.call(this, e)), t && (n = n.concat(t.call(this, e))), n;
|
|
1317
1318
|
};
|
|
1318
1319
|
}
|
|
1319
1320
|
this.defaults = {
|
|
1320
1321
|
...this.defaults,
|
|
1321
|
-
...
|
|
1322
|
+
...n
|
|
1322
1323
|
};
|
|
1323
1324
|
}), this;
|
|
1324
1325
|
}
|
|
@@ -1328,57 +1329,58 @@ ${e}</tr>
|
|
|
1328
1329
|
...e
|
|
1329
1330
|
}, this;
|
|
1330
1331
|
}
|
|
1331
|
-
lexer(e,
|
|
1332
|
-
return
|
|
1332
|
+
lexer(e, t) {
|
|
1333
|
+
return q.lex(e, t ?? this.defaults);
|
|
1333
1334
|
}
|
|
1334
|
-
parser(e,
|
|
1335
|
-
return
|
|
1335
|
+
parser(e, t) {
|
|
1336
|
+
return X.parse(e, t ?? this.defaults);
|
|
1336
1337
|
}
|
|
1337
1338
|
parseMarkdown(e) {
|
|
1338
|
-
return (
|
|
1339
|
-
let
|
|
1339
|
+
return (t, n) => {
|
|
1340
|
+
let r = { ...n }, i = {
|
|
1340
1341
|
...this.defaults,
|
|
1341
|
-
...
|
|
1342
|
-
},
|
|
1343
|
-
if (this.defaults.async === !0 &&
|
|
1344
|
-
if (typeof
|
|
1345
|
-
if (typeof
|
|
1346
|
-
if (
|
|
1347
|
-
let
|
|
1348
|
-
|
|
1349
|
-
let
|
|
1350
|
-
return
|
|
1351
|
-
})().catch(
|
|
1342
|
+
...r
|
|
1343
|
+
}, a = this.onError(!!i.silent, !!i.async);
|
|
1344
|
+
if (this.defaults.async === !0 && r.async === !1) return a(/* @__PURE__ */ Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
|
|
1345
|
+
if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
|
|
1346
|
+
if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
|
|
1347
|
+
if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
|
|
1348
|
+
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer() : e ? q.lex : q.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
|
|
1349
|
+
i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
|
|
1350
|
+
let o = await (i.hooks ? await i.hooks.provideParser() : e ? X.parse : X.parseInline)(a, i);
|
|
1351
|
+
return i.hooks ? await i.hooks.postprocess(o) : o;
|
|
1352
|
+
})().catch(a);
|
|
1352
1353
|
try {
|
|
1353
|
-
|
|
1354
|
-
let
|
|
1355
|
-
|
|
1356
|
-
let
|
|
1357
|
-
return
|
|
1354
|
+
i.hooks && (t = i.hooks.preprocess(t));
|
|
1355
|
+
let n = (i.hooks ? i.hooks.provideLexer() : e ? q.lex : q.lexInline)(t, i);
|
|
1356
|
+
i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
|
|
1357
|
+
let r = (i.hooks ? i.hooks.provideParser() : e ? X.parse : X.parseInline)(n, i);
|
|
1358
|
+
return i.hooks && (r = i.hooks.postprocess(r)), r;
|
|
1358
1359
|
} catch (e) {
|
|
1359
|
-
return
|
|
1360
|
+
return a(e);
|
|
1360
1361
|
}
|
|
1361
1362
|
};
|
|
1362
1363
|
}
|
|
1363
|
-
onError(e,
|
|
1364
|
-
return (
|
|
1365
|
-
if (
|
|
1366
|
-
let e = "<p>An error occurred:</p><pre>" +
|
|
1367
|
-
return
|
|
1364
|
+
onError(e, t) {
|
|
1365
|
+
return (n) => {
|
|
1366
|
+
if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
|
|
1367
|
+
let e = "<p>An error occurred:</p><pre>" + V(n.message + "", !0) + "</pre>";
|
|
1368
|
+
return t ? Promise.resolve(e) : e;
|
|
1368
1369
|
}
|
|
1369
|
-
if (
|
|
1370
|
-
throw
|
|
1370
|
+
if (t) return Promise.reject(n);
|
|
1371
|
+
throw n;
|
|
1371
1372
|
};
|
|
1372
1373
|
}
|
|
1373
1374
|
}();
|
|
1374
|
-
function
|
|
1375
|
-
return
|
|
1375
|
+
function $(e, t) {
|
|
1376
|
+
return Q.parse(e, t);
|
|
1376
1377
|
}
|
|
1377
|
-
|
|
1378
|
-
return
|
|
1379
|
-
},
|
|
1380
|
-
return
|
|
1381
|
-
},
|
|
1382
|
-
return
|
|
1383
|
-
},
|
|
1384
|
-
|
|
1378
|
+
$.options = $.setOptions = function(e) {
|
|
1379
|
+
return Q.setOptions(e), $.defaults = Q.defaults, n($.defaults), $;
|
|
1380
|
+
}, $.getDefaults = e, $.defaults = t, $.use = function(...e) {
|
|
1381
|
+
return Q.use(...e), $.defaults = Q.defaults, n($.defaults), $;
|
|
1382
|
+
}, $.walkTokens = function(e, t) {
|
|
1383
|
+
return Q.walkTokens(e, t);
|
|
1384
|
+
}, $.parseInline = Q.parseInline, $.Parser = X, $.parser = X.parse, $.Renderer = J, $.TextRenderer = Y, $.Lexer = q, $.lexer = q.lex, $.Tokenizer = K, $.Hooks = Z, $.parse = $, $.options, $.setOptions, $.use, $.walkTokens, $.parseInline, X.parse, q.lex;
|
|
1385
|
+
//#endregion
|
|
1386
|
+
export { $ as k };
|