@gsc-basic/components 1.1.6 → 1.1.8
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/README.md +8 -8
- package/dist/es/Button/index.js +9 -4
- package/dist/es/Button/src/Button.css +3 -3
- package/dist/es/Button/src/Button.vue.js +44 -4
- package/dist/es/Button/src/Button2.css +3 -3
- package/dist/es/CodeEditor/index.js +9 -4
- package/dist/es/CodeEditor/src/index.css +4 -4
- package/dist/es/CodeEditor/src/index.vue.js +148 -4
- package/dist/es/CodeEditor/src/index2.css +3 -3
- package/dist/es/CodeEditor/src/index3.css +4 -4
- package/dist/es/ConfigProvider/index.js +9 -4
- package/dist/es/ConfigProvider/src/configProvider.js +17 -4
- package/dist/es/ConfigProvider/src/configProviderProps.js +25 -4
- package/dist/es/ConfigProvider/src/constants.js +12 -4
- package/dist/es/ConfigProvider/src/useGlobalConfig.js +48 -4
- package/dist/es/CountTo/index.js +9 -4
- package/dist/es/CountTo/src/index.css +3 -3
- package/dist/es/CountTo/src/index.vue.js +126 -4
- package/dist/es/Ellipsis/index.js +9 -4
- package/dist/es/Ellipsis/src/components/JsEllipsis.css +3 -3
- package/dist/es/Ellipsis/src/components/JsEllipsis.vue.js +181 -4
- package/dist/es/Ellipsis/src/components/NativeEllipsis.css +3 -3
- package/dist/es/Ellipsis/src/components/NativeEllipsis.vue.js +44 -4
- package/dist/es/Ellipsis/src/components/NativeEllipsis2.css +3 -3
- package/dist/es/Ellipsis/src/index.css +3 -3
- package/dist/es/Ellipsis/src/index.vue.js +96 -4
- package/dist/es/Ellipsis/src/utils/utils.js +59 -4
- package/dist/es/Form/index.js +9 -4
- package/dist/es/Form/src/Form.css +3 -3
- package/dist/es/Form/src/Form.vue.js +377 -4
- package/dist/es/Form/src/Form2.css +3 -3
- package/dist/es/Form/src/styles/form.css +3 -3
- package/dist/es/Marquee/index.js +9 -4
- package/dist/es/Marquee/src/index.css +3 -3
- package/dist/es/Marquee/src/index.vue.js +191 -4
- package/dist/es/Marquee/src/index2.css +3 -3
- package/dist/es/Overlay/index.js +64 -4
- package/dist/es/Overlay/src/Message.css +3 -3
- package/dist/es/Overlay/src/Message.vue.js +39 -4
- package/dist/es/Overlay/src/Message2.css +3 -3
- package/dist/es/Overlay/src/Modal.css +3 -3
- package/dist/es/Overlay/src/Modal.vue.js +70 -4
- package/dist/es/Overlay/src/Modal2.css +3 -3
- package/dist/es/Overlay/src/Notice.css +3 -3
- package/dist/es/Overlay/src/Notice.vue.js +40 -4
- package/dist/es/Overlay/src/Notice2.css +3 -3
- package/dist/es/Overlay/src/Tooltip.css +3 -3
- package/dist/es/Overlay/src/Tooltip.vue.js +87 -4
- package/dist/es/Overlay/src/Tooltip2.css +3 -3
- package/dist/es/RichTextEditor/index.js +9 -4
- package/dist/es/RichTextEditor/src/ToolbarPanel.css +3 -3
- package/dist/es/RichTextEditor/src/ToolbarPanel.vue.js +162 -4
- package/dist/es/RichTextEditor/src/ToolbarPanel2.css +3 -3
- package/dist/es/RichTextEditor/src/components/BlockquoteButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/BlockquoteButton.vue.js +40 -4
- package/dist/es/RichTextEditor/src/components/CodeBlockButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/CodeBlockButton.vue.js +40 -4
- package/dist/es/RichTextEditor/src/components/ColorHighlightPopover.css +3 -3
- package/dist/es/RichTextEditor/src/components/ColorHighlightPopover.vue.js +40 -4
- package/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.css +3 -3
- package/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.vue.js +58 -4
- package/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.css +3 -3
- package/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.vue.js +69 -4
- package/dist/es/RichTextEditor/src/components/ImageUploadButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/ImageUploadButton.vue.js +74 -4
- package/dist/es/RichTextEditor/src/components/LinkPopover.css +4 -4
- package/dist/es/RichTextEditor/src/components/LinkPopover.vue.js +92 -4
- package/dist/es/RichTextEditor/src/components/LinkPopover2.css +4 -4
- package/dist/es/RichTextEditor/src/components/ListDropdownMenu.css +3 -3
- package/dist/es/RichTextEditor/src/components/ListDropdownMenu.vue.js +76 -4
- package/dist/es/RichTextEditor/src/components/MarkButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/MarkButton.vue.js +89 -4
- package/dist/es/RichTextEditor/src/components/TableButton.css +3 -3
- package/dist/es/RichTextEditor/src/components/TableButton.vue.js +165 -4
- package/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.css +3 -3
- package/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.vue.js +85 -4
- package/dist/es/RichTextEditor/src/components/TextColorPopover.css +3 -3
- package/dist/es/RichTextEditor/src/components/TextColorPopover.vue.js +40 -4
- package/dist/es/RichTextEditor/src/components/ToolbarGroup.css +3 -3
- package/dist/es/RichTextEditor/src/components/ToolbarGroup.vue.js +19 -4
- package/dist/es/RichTextEditor/src/components/ToolbarSeparator.css +3 -3
- package/dist/es/RichTextEditor/src/components/ToolbarSeparator.vue.js +17 -4
- package/dist/es/RichTextEditor/src/components/UndoRedoButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/UndoRedoButton.vue.js +54 -4
- package/dist/es/RichTextEditor/src/components/VideoUploadButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/VideoUploadButton.vue.js +74 -4
- package/dist/es/RichTextEditor/src/components/basic/ColorPicker.css +4 -4
- package/dist/es/RichTextEditor/src/components/basic/ColorPicker.vue.js +101 -4
- package/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.css +3 -3
- package/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.vue.js +364 -4
- package/dist/es/RichTextEditor/src/components/basic/MediaUploadModal2.css +3 -3
- package/dist/es/RichTextEditor/src/components/basic/SelectMenu.css +4 -4
- package/dist/es/RichTextEditor/src/components/basic/SelectMenu.vue.js +137 -4
- package/dist/es/RichTextEditor/src/components/basic/SelectMenu2.css +4 -4
- package/dist/es/RichTextEditor/src/constant/index.js +53 -4
- package/dist/es/RichTextEditor/src/extensions/video.js +68 -4
- package/dist/es/RichTextEditor/src/index.css +4 -4
- package/dist/es/RichTextEditor/src/index.vue.js +158 -4
- package/dist/es/RichTextEditor/src/index2.css +4 -4
- package/dist/es/RichTextEditor/src/props.js +24 -4
- package/dist/es/ScaleScreen/index.js +9 -4
- package/dist/es/ScaleScreen/src/index.css +3 -3
- package/dist/es/ScaleScreen/src/index.vue.js +118 -4
- package/dist/es/ScaleScreen/src/index2.css +3 -3
- package/dist/es/Transition/index.js +30 -4
- package/dist/es/Transition/src/CollapseTransition.css +3 -3
- package/dist/es/Transition/src/CollapseTransition.vue.js +44 -4
- package/dist/es/Transition/src/CollapseTransition2.css +3 -3
- package/dist/es/Transition/src/CreateTransition.js +75 -6
- package/dist/es/Transition/src/ExpandTransition.js +42 -4
- package/dist/es/Transition/src/style/index.css +3 -3
- package/dist/es/Transition/style.js +4 -4
- package/dist/es/VideoBackground/index.js +9 -4
- package/dist/es/VideoBackground/src/helper.js +32 -4
- package/dist/es/VideoBackground/src/index.css +3 -3
- package/dist/es/VideoBackground/src/index.vue.js +111 -4
- package/dist/es/VideoBackground/src/index2.css +3 -3
- package/dist/es/VideoBackground/src/index3.css +3 -3
- package/dist/es/VideoBackground/src/videoBackground.js +34 -4
- package/dist/es/VideoPlayer/index.js +9 -4
- package/dist/es/VideoPlayer/src/index.css +3 -3
- package/dist/es/VideoPlayer/src/index.vue.js +63 -4
- package/dist/es/VirtualScroll/index.js +9 -4
- package/dist/es/VirtualScroll/src/index.css +3 -3
- package/dist/es/VirtualScroll/src/index.vue.js +11 -4
- package/dist/es/VirtualScroll/src/index.vue2.js +107 -4
- package/dist/es/VirtualScroll/src/index2.css +3 -3
- package/dist/es/_virtual/_commonjsHelpers.js +9 -4
- package/dist/es/_virtual/_plugin-vue_export-helper.js +12 -4
- package/dist/es/_virtual/delegate.js +10 -4
- package/dist/es/_virtual/download.js +10 -4
- package/dist/es/_virtual/download2.js +7 -4
- package/dist/es/_virtual/index.js +5 -4
- package/dist/es/_virtual/index2.js +7 -4
- package/dist/es/_virtual/index3.js +21 -0
- package/dist/es/{Grid/src/components/CellEditor.css → _virtual/index4.js} +7 -4
- package/dist/es/hooks/useLocale.js +28 -4
- package/dist/es/hooks/useNamespace.js +11 -4
- package/dist/es/index.js +79 -4
- package/dist/es/locale/lang/en-US.js +167 -4
- package/dist/es/locale/lang/ja-JP.js +167 -4
- package/dist/es/locale/lang/zh-CN.js +167 -4
- package/dist/es/node_modules/@codemirror/autocomplete/dist/index.js +1379 -4
- package/dist/es/node_modules/@codemirror/commands/dist/index.js +847 -4
- package/dist/es/node_modules/@codemirror/lang-java/dist/index.js +41 -6
- package/dist/es/node_modules/@codemirror/lang-javascript/dist/index.js +315 -20
- package/dist/es/node_modules/@codemirror/lang-json/dist/index.js +51 -6
- package/dist/es/node_modules/@codemirror/lang-python/dist/index.js +402 -15
- package/dist/es/node_modules/@codemirror/lang-sql/dist/index.js +500 -7
- package/dist/es/node_modules/@codemirror/lang-xml/dist/index.js +219 -7
- package/dist/es/node_modules/@codemirror/lang-yaml/dist/index.js +54 -6
- package/dist/es/node_modules/@codemirror/language/dist/index.js +1304 -4
- package/dist/es/node_modules/@codemirror/lint/dist/index.js +660 -6
- package/dist/es/node_modules/@codemirror/search/dist/index.js +842 -5
- package/dist/es/node_modules/@codemirror/state/dist/index.js +2646 -4
- package/dist/es/node_modules/@codemirror/theme-one-dark/dist/index.js +135 -4
- package/dist/es/node_modules/@codemirror/view/dist/index.js +7492 -4
- package/dist/es/node_modules/@lezer/common/dist/index.js +1433 -5
- package/dist/es/node_modules/@lezer/highlight/dist/index.js +640 -4
- package/dist/es/node_modules/@lezer/java/dist/index.js +65 -4
- package/dist/es/node_modules/@lezer/javascript/dist/index.js +164 -4
- package/dist/es/node_modules/@lezer/json/dist/index.js +37 -4
- package/dist/es/node_modules/@lezer/lr/dist/index.js +1312 -4
- package/dist/es/node_modules/@lezer/python/dist/index.js +224 -4
- package/dist/es/node_modules/@lezer/xml/dist/index.js +103 -4
- package/dist/es/node_modules/@lezer/yaml/dist/index.js +277 -4
- package/dist/es/node_modules/@marijn/find-cluster-break/src/index.js +72 -4
- package/dist/es/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +181 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/EventClient.js +16 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +409 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/FormApi.js +792 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +58 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +112 -5
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +48 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/utils.js +216 -4
- package/dist/es/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +32 -4
- package/dist/es/node_modules/@tanstack/store/dist/esm/alien.js +221 -0
- package/dist/es/node_modules/@tanstack/store/dist/esm/atom.js +136 -0
- package/dist/es/node_modules/@tanstack/store/dist/esm/batch.js +25 -0
- package/dist/es/node_modules/@tanstack/store/dist/esm/store.js +47 -4
- package/dist/es/node_modules/@tanstack/vue-form/dist/esm/useField.js +41 -4
- package/dist/es/node_modules/@tanstack/vue-form/dist/esm/useForm.js +36 -4
- package/dist/es/node_modules/@tanstack/vue-store/dist/esm/index.js +51 -4
- package/dist/es/node_modules/@tiptap/core/dist/index.js +3984 -4
- package/dist/es/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +20 -4
- package/dist/es/node_modules/@tiptap/extension-blockquote/dist/index.js +60 -5
- package/dist/es/node_modules/@tiptap/extension-bold/dist/index.js +82 -5
- package/dist/es/node_modules/@tiptap/extension-character-count/dist/index.js +9 -4
- package/dist/es/node_modules/@tiptap/extension-code/dist/index.js +57 -4
- package/dist/es/node_modules/@tiptap/extension-code-block/dist/index.js +220 -4
- package/dist/es/node_modules/@tiptap/extension-document/dist/index.js +15 -4
- package/dist/es/node_modules/@tiptap/extension-hard-break/dist/index.js +62 -4
- package/dist/es/node_modules/@tiptap/extension-heading/dist/index.js +66 -4
- package/dist/es/node_modules/@tiptap/extension-highlight/dist/index.js +88 -4
- package/dist/es/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +59 -4
- package/dist/es/node_modules/@tiptap/extension-image/dist/index.js +133 -4
- package/dist/es/node_modules/@tiptap/extension-italic/dist/index.js +80 -4
- package/dist/es/node_modules/@tiptap/extension-link/dist/index.js +316 -4
- package/dist/es/node_modules/@tiptap/extension-list/dist/index.js +731 -4
- package/dist/es/node_modules/@tiptap/extension-paragraph/dist/index.js +47 -4
- package/dist/es/node_modules/@tiptap/extension-strike/dist/index.js +69 -4
- package/dist/es/node_modules/@tiptap/extension-subscript/dist/index.js +44 -4
- package/dist/es/node_modules/@tiptap/extension-superscript/dist/index.js +44 -4
- package/dist/es/node_modules/@tiptap/extension-table/dist/index.js +383 -4
- package/dist/es/node_modules/@tiptap/extension-task-item/dist/index.js +9 -4
- package/dist/es/node_modules/@tiptap/extension-task-list/dist/index.js +9 -4
- package/dist/es/node_modules/@tiptap/extension-text/dist/index.js +16 -4
- package/dist/es/node_modules/@tiptap/extension-text-align/dist/index.js +50 -4
- package/dist/es/node_modules/@tiptap/extension-text-style/dist/index.js +243 -4
- package/dist/es/node_modules/@tiptap/extension-underline/dist/index.js +68 -4
- package/dist/es/node_modules/@tiptap/extensions/dist/index.js +299 -4
- package/dist/es/node_modules/@tiptap/html/dist/index.js +28 -0
- package/dist/es/node_modules/@tiptap/starter-kit/dist/index.js +32 -4
- package/dist/es/node_modules/@tiptap/vue-3/dist/index.js +260 -4
- package/dist/es/node_modules/@vueuse/core/dist/index.js +354 -4
- package/dist/es/node_modules/@vueuse/shared/dist/index.js +139 -4
- package/dist/es/node_modules/codemirror/dist/index.js +43 -4
- package/dist/es/node_modules/crelt/index.js +30 -4
- package/dist/es/node_modules/delegate/src/closest.js +24 -4
- package/dist/es/node_modules/delegate/src/delegate.js +32 -4
- package/dist/es/node_modules/downloadjs/download.js +80 -4
- package/dist/es/node_modules/eventemitter3/index.js +114 -4
- package/dist/es/node_modules/linkifyjs/dist/linkify.js +710 -4
- package/dist/es/node_modules/lodash-es/_DataView.js +9 -4
- package/dist/es/node_modules/lodash-es/_Hash.js +23 -4
- package/dist/es/node_modules/lodash-es/_ListCache.js +23 -4
- package/dist/es/node_modules/lodash-es/_Map.js +9 -4
- package/dist/es/node_modules/lodash-es/_MapCache.js +23 -4
- package/dist/es/node_modules/lodash-es/_Promise.js +9 -4
- package/dist/es/node_modules/lodash-es/_Set.js +9 -4
- package/dist/es/node_modules/lodash-es/_SetCache.js +26 -0
- package/dist/es/node_modules/lodash-es/_Stack.js +21 -4
- package/dist/es/node_modules/lodash-es/_Symbol.js +8 -4
- package/dist/es/node_modules/lodash-es/_Uint8Array.js +8 -4
- package/dist/es/node_modules/lodash-es/_WeakMap.js +9 -4
- package/dist/es/node_modules/lodash-es/_apply.js +19 -4
- package/dist/es/node_modules/lodash-es/_arrayEach.js +11 -4
- package/dist/es/node_modules/lodash-es/_arrayFilter.js +13 -4
- package/dist/es/node_modules/lodash-es/_arrayIncludes.js +21 -0
- package/dist/es/node_modules/lodash-es/_arrayIncludesWith.js +22 -0
- package/dist/es/node_modules/lodash-es/_arrayLikeKeys.js +23 -4
- package/dist/es/node_modules/lodash-es/_arrayMap.js +11 -4
- package/dist/es/node_modules/lodash-es/_arrayPush.js +11 -4
- package/dist/es/node_modules/lodash-es/_arraySome.js +22 -0
- package/dist/es/node_modules/lodash-es/_asciiToArray.js +9 -4
- package/dist/es/node_modules/lodash-es/_assignMergeValue.js +21 -0
- package/dist/es/node_modules/lodash-es/_assignValue.js +13 -4
- package/dist/es/node_modules/lodash-es/_assocIndexOf.js +13 -4
- package/dist/es/node_modules/lodash-es/_baseAssignValue.js +15 -4
- package/dist/es/node_modules/lodash-es/_baseClone.js +57 -4
- package/dist/es/node_modules/lodash-es/_baseCreate.js +30 -0
- package/dist/es/node_modules/lodash-es/_baseFindIndex.js +22 -0
- package/dist/es/node_modules/lodash-es/_baseFlatten.js +16 -4
- package/dist/es/node_modules/lodash-es/_baseFor.js +18 -0
- package/dist/es/node_modules/lodash-es/_baseGet.js +14 -4
- package/dist/es/node_modules/lodash-es/_baseGetAllKeys.js +12 -4
- package/dist/es/node_modules/lodash-es/_baseGetTag.js +13 -4
- package/dist/es/node_modules/lodash-es/_baseIndexOf.js +22 -0
- package/dist/es/node_modules/lodash-es/_baseIntersection.js +42 -0
- package/dist/es/node_modules/lodash-es/_baseIsArguments.js +12 -4
- package/dist/es/node_modules/lodash-es/_baseIsEqual.js +21 -0
- package/dist/es/node_modules/lodash-es/_baseIsEqualDeep.js +45 -0
- package/dist/es/node_modules/lodash-es/_baseIsMap.js +12 -4
- package/dist/{lib/Grid/src/components/CellEditor.css → es/node_modules/lodash-es/_baseIsNaN.js} +9 -4
- package/dist/es/node_modules/lodash-es/_baseIsNative.js +19 -4
- package/dist/es/node_modules/lodash-es/_baseIsRegExp.js +12 -4
- package/dist/es/node_modules/lodash-es/_baseIsSet.js +12 -4
- package/dist/es/node_modules/lodash-es/_baseIsTypedArray.js +15 -4
- package/dist/es/node_modules/lodash-es/_baseKeys.js +27 -0
- package/dist/es/node_modules/lodash-es/_baseKeysIn.js +18 -4
- package/dist/es/node_modules/lodash-es/_baseMerge.js +33 -0
- package/dist/es/node_modules/lodash-es/_baseMergeDeep.js +44 -0
- package/dist/es/node_modules/lodash-es/_baseRest.js +22 -0
- package/dist/es/node_modules/lodash-es/_baseSetToString.js +17 -4
- package/dist/es/node_modules/lodash-es/_baseSlice.js +13 -4
- package/dist/es/node_modules/lodash-es/_baseTimes.js +11 -4
- package/dist/es/node_modules/lodash-es/_baseToString.js +21 -4
- package/dist/es/node_modules/lodash-es/_baseUnary.js +11 -4
- package/dist/es/node_modules/lodash-es/_baseUniq.js +46 -0
- package/dist/es/node_modules/lodash-es/_baseUnset.js +31 -4
- package/dist/es/node_modules/{@tanstack/store/dist/esm/types.js → lodash-es/_cacheHas.js} +9 -4
- package/dist/es/node_modules/lodash-es/_castArrayLikeObject.js +20 -0
- package/dist/es/node_modules/lodash-es/_castPath.js +13 -4
- package/dist/es/node_modules/lodash-es/_castSlice.js +11 -4
- package/dist/es/node_modules/lodash-es/_cloneArrayBuffer.js +11 -4
- package/dist/es/node_modules/lodash-es/_cloneBuffer.js +14 -4
- package/dist/es/node_modules/lodash-es/_cloneDataView.js +11 -4
- package/dist/es/node_modules/lodash-es/_cloneRegExp.js +11 -4
- package/dist/es/node_modules/lodash-es/_cloneSymbol.js +11 -4
- package/dist/es/node_modules/lodash-es/_cloneTypedArray.js +11 -4
- package/dist/es/node_modules/lodash-es/_copyArray.js +22 -0
- package/dist/es/node_modules/lodash-es/_copyObject.js +17 -4
- package/dist/es/node_modules/lodash-es/_coreJsData.js +8 -4
- package/dist/es/node_modules/lodash-es/_createAssigner.js +28 -0
- package/dist/es/node_modules/lodash-es/_createBaseFor.js +26 -0
- package/dist/es/node_modules/lodash-es/_createCaseFirst.js +17 -4
- package/dist/es/node_modules/lodash-es/_createSet.js +22 -0
- package/dist/es/node_modules/lodash-es/_customOmitClone.js +10 -4
- package/dist/es/node_modules/lodash-es/_defineProperty.js +14 -4
- package/dist/es/node_modules/lodash-es/_equalArrays.js +53 -0
- package/dist/es/node_modules/lodash-es/_equalByTag.js +58 -0
- package/dist/es/node_modules/lodash-es/_equalObjects.js +49 -0
- package/dist/es/node_modules/lodash-es/_flatRest.js +12 -4
- package/dist/es/node_modules/lodash-es/_freeGlobal.js +7 -4
- package/dist/es/node_modules/lodash-es/_getAllKeys.js +22 -0
- package/dist/es/node_modules/lodash-es/_getAllKeysIn.js +12 -4
- package/dist/es/node_modules/lodash-es/_getMapData.js +11 -4
- package/dist/es/node_modules/lodash-es/_getNative.js +12 -4
- package/dist/es/node_modules/lodash-es/_getPrototype.js +8 -4
- package/dist/es/node_modules/lodash-es/_getRawTag.js +18 -4
- package/dist/es/node_modules/lodash-es/_getSymbols.js +13 -4
- package/dist/es/node_modules/lodash-es/_getSymbolsIn.js +15 -4
- package/dist/es/node_modules/lodash-es/_getTag.js +31 -4
- package/dist/es/node_modules/lodash-es/_getValue.js +9 -4
- package/dist/es/node_modules/lodash-es/_hasUnicode.js +10 -4
- package/dist/es/node_modules/lodash-es/_hashClear.js +10 -4
- package/dist/es/node_modules/lodash-es/_hashDelete.js +10 -4
- package/dist/es/node_modules/lodash-es/_hashGet.js +16 -4
- package/dist/es/node_modules/lodash-es/_hashHas.js +12 -4
- package/dist/es/node_modules/lodash-es/_hashSet.js +12 -4
- package/dist/es/node_modules/lodash-es/_initCloneArray.js +11 -4
- package/dist/es/node_modules/lodash-es/_initCloneByTag.js +45 -4
- package/dist/es/node_modules/lodash-es/_initCloneObject.js +22 -0
- package/dist/es/node_modules/lodash-es/_isFlattenable.js +13 -4
- package/dist/es/node_modules/lodash-es/_isIndex.js +11 -4
- package/dist/es/node_modules/lodash-es/_isIterateeCall.js +26 -0
- package/dist/es/node_modules/lodash-es/_isKey.js +15 -4
- package/dist/es/node_modules/lodash-es/_isKeyable.js +10 -4
- package/dist/es/node_modules/lodash-es/_isMasked.js +14 -4
- package/dist/es/node_modules/lodash-es/_isPrototype.js +11 -4
- package/dist/es/node_modules/lodash-es/_listCacheClear.js +9 -4
- package/dist/es/node_modules/lodash-es/_listCacheDelete.js +15 -4
- package/dist/es/node_modules/lodash-es/_listCacheGet.js +11 -4
- package/dist/es/node_modules/lodash-es/_listCacheHas.js +10 -4
- package/dist/es/node_modules/lodash-es/_listCacheSet.js +11 -4
- package/dist/es/node_modules/lodash-es/_mapCacheClear.js +16 -4
- package/dist/es/node_modules/lodash-es/_mapCacheDelete.js +11 -4
- package/dist/es/node_modules/lodash-es/_mapCacheGet.js +10 -4
- package/dist/es/node_modules/lodash-es/_mapCacheHas.js +10 -4
- package/dist/es/node_modules/lodash-es/_mapCacheSet.js +11 -4
- package/dist/es/node_modules/lodash-es/_mapToArray.js +22 -0
- package/dist/es/node_modules/lodash-es/_memoizeCapped.js +14 -4
- package/dist/es/node_modules/lodash-es/_nativeCreate.js +8 -4
- package/dist/es/node_modules/lodash-es/_nativeKeys.js +18 -0
- package/dist/es/node_modules/lodash-es/_nativeKeysIn.js +13 -4
- package/dist/es/node_modules/lodash-es/_nodeUtil.js +14 -4
- package/dist/es/node_modules/lodash-es/_objectToString.js +10 -4
- package/dist/es/node_modules/lodash-es/_overArg.js +11 -4
- package/dist/es/node_modules/lodash-es/_overRest.js +18 -4
- package/dist/es/node_modules/lodash-es/_parent.js +11 -4
- package/dist/es/node_modules/lodash-es/_root.js +8 -4
- package/dist/es/node_modules/lodash-es/_safeGet.js +20 -0
- package/dist/es/node_modules/lodash-es/_setCacheAdd.js +20 -0
- package/dist/es/node_modules/lodash-es/_setCacheHas.js +19 -0
- package/dist/es/node_modules/lodash-es/_setToArray.js +22 -0
- package/dist/es/node_modules/lodash-es/_setToString.js +9 -4
- package/dist/es/node_modules/lodash-es/_shortOut.js +19 -4
- package/dist/es/node_modules/lodash-es/_stackClear.js +10 -4
- package/dist/es/node_modules/lodash-es/_stackDelete.js +10 -4
- package/dist/es/node_modules/lodash-es/_stackGet.js +9 -4
- package/dist/es/node_modules/lodash-es/_stackHas.js +9 -4
- package/dist/es/node_modules/lodash-es/_stackSet.js +20 -4
- package/dist/es/node_modules/lodash-es/_strictIndexOf.js +22 -0
- package/dist/es/node_modules/lodash-es/_stringToArray.js +12 -4
- package/dist/es/node_modules/lodash-es/_stringToPath.js +13 -4
- package/dist/es/node_modules/lodash-es/_toKey.js +13 -4
- package/dist/es/node_modules/lodash-es/_toSource.js +20 -4
- package/dist/es/node_modules/lodash-es/_unicodeToArray.js +10 -4
- package/dist/es/node_modules/lodash-es/constant.js +11 -4
- package/dist/es/node_modules/lodash-es/eq.js +9 -4
- package/dist/es/node_modules/lodash-es/flatten.js +11 -4
- package/dist/es/node_modules/lodash-es/get.js +11 -4
- package/dist/es/node_modules/lodash-es/identity.js +9 -4
- package/dist/es/node_modules/lodash-es/intersectionWith.js +25 -0
- package/dist/es/node_modules/lodash-es/isArguments.js +13 -4
- package/dist/es/node_modules/lodash-es/isArray.js +7 -4
- package/dist/es/node_modules/lodash-es/isArrayLike.js +11 -4
- package/dist/es/node_modules/lodash-es/isArrayLikeObject.js +21 -0
- package/dist/es/node_modules/lodash-es/isBuffer.js +9 -4
- package/dist/es/node_modules/lodash-es/isEqual.js +20 -0
- package/dist/es/node_modules/lodash-es/isFinite.js +11 -4
- package/dist/es/node_modules/lodash-es/isFunction.js +15 -4
- package/dist/es/node_modules/lodash-es/isLength.js +10 -4
- package/dist/es/node_modules/lodash-es/isMap.js +10 -4
- package/dist/es/node_modules/lodash-es/isNaN.js +10 -4
- package/dist/es/node_modules/lodash-es/isNil.js +9 -4
- package/dist/es/node_modules/lodash-es/isNumber.js +12 -4
- package/dist/es/node_modules/lodash-es/isObject.js +10 -4
- package/dist/es/node_modules/lodash-es/isObjectLike.js +9 -4
- package/dist/es/node_modules/lodash-es/isPlainObject.js +19 -4
- package/dist/es/node_modules/lodash-es/isRegExp.js +10 -4
- package/dist/es/node_modules/lodash-es/isSet.js +10 -4
- package/dist/es/node_modules/lodash-es/isString.js +13 -4
- package/dist/es/node_modules/lodash-es/isSymbol.js +12 -4
- package/dist/es/node_modules/lodash-es/isTypedArray.js +10 -4
- package/dist/es/node_modules/lodash-es/keys.js +22 -0
- package/dist/es/node_modules/lodash-es/keysIn.js +12 -4
- package/dist/es/node_modules/lodash-es/last.js +10 -4
- package/dist/es/node_modules/lodash-es/memoize.js +21 -4
- package/dist/es/node_modules/lodash-es/mergeWith.js +21 -0
- package/dist/es/node_modules/lodash-es/noop.js +18 -0
- package/dist/es/node_modules/lodash-es/omit.js +26 -4
- package/dist/es/node_modules/lodash-es/stubArray.js +9 -4
- package/dist/es/node_modules/lodash-es/stubFalse.js +9 -4
- package/dist/es/node_modules/lodash-es/toPlainObject.js +21 -0
- package/dist/es/node_modules/lodash-es/toString.js +10 -4
- package/dist/es/node_modules/lodash-es/unionWith.js +25 -0
- package/dist/es/node_modules/lodash-es/upperFirst.js +8 -4
- package/dist/es/node_modules/orderedmap/dist/index.js +106 -4
- package/dist/es/node_modules/path-to-regexp/dist/index.js +275 -0
- package/dist/es/node_modules/prosemirror-commands/dist/index.js +391 -4
- package/dist/es/node_modules/prosemirror-dropcursor/dist/index.js +89 -4
- package/dist/es/node_modules/prosemirror-gapcursor/dist/index.js +207 -4
- package/dist/es/node_modules/prosemirror-history/dist/index.js +251 -4
- package/dist/es/node_modules/prosemirror-keymap/dist/index.js +65 -4
- package/dist/es/node_modules/prosemirror-model/dist/index.js +2736 -4
- package/dist/es/node_modules/prosemirror-schema-list/dist/index.js +91 -4
- package/dist/es/node_modules/prosemirror-state/dist/index.js +825 -4
- package/dist/es/node_modules/prosemirror-tables/dist/index.js +1449 -4
- package/dist/es/node_modules/prosemirror-transform/dist/index.js +1539 -4
- package/dist/es/node_modules/prosemirror-view/dist/index.js +3797 -4
- package/dist/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +300 -0
- package/dist/es/node_modules/rope-sequence/dist/index.js +103 -4
- package/dist/es/node_modules/sortablejs/modular/sortable.esm.js +1283 -0
- package/dist/es/node_modules/style-mod/src/style-mod.js +112 -4
- package/dist/es/{Grid → node_modules/title-case/dist}/index.js +10 -4
- package/dist/es/node_modules/vue-codemirror/dist/vue-codemirror.esm.js +135 -4
- package/dist/es/node_modules/w3c-keyname/index.js +96 -4
- package/dist/es/node_modules/xgplayer/dist/index.min.css +3 -3
- package/dist/es/node_modules/xgplayer/es/_virtual/_rollupPluginBabelHelpers.js +200 -4
- package/dist/es/node_modules/xgplayer/es/constant.js +10 -4
- package/dist/es/node_modules/xgplayer/es/defaultConfig.js +90 -4
- package/dist/es/node_modules/xgplayer/es/error.js +67 -4
- package/dist/es/node_modules/xgplayer/es/events.js +70 -4
- package/dist/es/node_modules/xgplayer/es/index.umd.js +48 -4
- package/dist/es/node_modules/xgplayer/es/instManager.js +104 -4
- package/dist/es/node_modules/xgplayer/es/lang/en.js +82 -4
- package/dist/es/node_modules/xgplayer/es/lang/i18n.js +78 -4
- package/dist/es/node_modules/xgplayer/es/lang/jp.js +82 -4
- package/dist/es/node_modules/xgplayer/es/lang/zh-cn.js +82 -4
- package/dist/es/node_modules/xgplayer/es/mediaProxy.js +469 -4
- package/dist/es/node_modules/xgplayer/es/player.js +1243 -4
- package/dist/es/node_modules/xgplayer/es/plugin/basePlugin.js +210 -4
- package/dist/es/node_modules/xgplayer/es/plugin/hooksDescriptor.js +133 -4
- package/dist/es/node_modules/xgplayer/es/plugin/plugin.js +369 -4
- package/dist/es/node_modules/xgplayer/es/plugin/pluginsManager.js +207 -4
- package/dist/es/node_modules/xgplayer/es/plugin/preset.js +17 -4
- package/dist/es/node_modules/xgplayer/es/plugin/resizeObserver.js +84 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/back.js +13 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/download.js +23 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/exitCssFull.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/exitFull.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/loading.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/pause.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/pipIcon.js +13 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/pipIconExit.js +16 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/play.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/playNext.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/replay.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/requestCssFull.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/requestFull.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/rotate.js +20 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/seekicon.js +15 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/volumeLarge.js +13 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/volumeMuted.js +13 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/volumeSmall.js +13 -4
- package/dist/es/node_modules/xgplayer/es/plugins/common/iconPlugin.js +38 -4
- package/dist/es/node_modules/xgplayer/es/plugins/common/iconTools.js +15 -4
- package/dist/es/node_modules/xgplayer/es/plugins/common/optionList.js +82 -4
- package/dist/es/node_modules/xgplayer/es/plugins/common/optionsIcon.js +196 -4
- package/dist/es/node_modules/xgplayer/es/plugins/common/thumbnail.js +144 -4
- package/dist/es/node_modules/xgplayer/es/plugins/controls/index.js +174 -4
- package/dist/es/node_modules/xgplayer/es/plugins/cssFullScreen/index.js +108 -4
- package/dist/es/node_modules/xgplayer/es/plugins/definition/index.js +113 -4
- package/dist/es/node_modules/xgplayer/es/plugins/download/index.js +86 -4
- package/dist/es/node_modules/xgplayer/es/plugins/dynamicBg/index.js +235 -5
- package/dist/es/node_modules/xgplayer/es/plugins/enter/index.js +45 -4
- package/dist/es/node_modules/xgplayer/es/plugins/error/index.js +71 -4
- package/dist/es/node_modules/xgplayer/es/plugins/fpsDetect/index.js +119 -4
- package/dist/es/node_modules/xgplayer/es/plugins/fullscreen/backicon.js +71 -4
- package/dist/es/node_modules/xgplayer/es/plugins/fullscreen/index.js +153 -4
- package/dist/es/node_modules/xgplayer/es/plugins/gapJump/index.js +99 -4
- package/dist/es/node_modules/xgplayer/es/plugins/keyboard/index.js +302 -4
- package/dist/es/node_modules/xgplayer/es/plugins/loading/index.js +49 -4
- package/dist/es/node_modules/xgplayer/es/plugins/logger/index.js +174 -5
- package/dist/es/node_modules/xgplayer/es/plugins/miniScreen/index.js +172 -4
- package/dist/es/node_modules/xgplayer/es/plugins/miniScreen/miniScreenIcon.js +58 -4
- package/dist/es/node_modules/xgplayer/es/plugins/mobile/index.js +446 -4
- package/dist/es/node_modules/xgplayer/es/plugins/mobile/touch.js +141 -4
- package/dist/es/node_modules/xgplayer/es/plugins/pc/index.js +125 -4
- package/dist/es/node_modules/xgplayer/es/plugins/pip/index.js +219 -4
- package/dist/es/node_modules/xgplayer/es/plugins/play/index.js +105 -4
- package/dist/es/node_modules/xgplayer/es/plugins/playNext/index.js +81 -4
- package/dist/es/node_modules/xgplayer/es/plugins/playbackRate/index.js +103 -4
- package/dist/es/node_modules/xgplayer/es/plugins/poster/index.js +122 -4
- package/dist/es/node_modules/xgplayer/es/plugins/progress/index.js +434 -4
- package/dist/es/node_modules/xgplayer/es/plugins/progress/innerList.js +218 -4
- package/dist/es/node_modules/xgplayer/es/plugins/progress/miniProgress.js +96 -4
- package/dist/es/node_modules/xgplayer/es/plugins/progressPreview/dotsApi.js +178 -4
- package/dist/es/node_modules/xgplayer/es/plugins/progressPreview/index.js +295 -4
- package/dist/es/node_modules/xgplayer/es/plugins/prompt/index.js +89 -4
- package/dist/es/node_modules/xgplayer/es/plugins/replay/index.js +95 -4
- package/dist/es/node_modules/xgplayer/es/plugins/rotate/index.js +109 -4
- package/dist/es/node_modules/xgplayer/es/plugins/screenShot/index.js +137 -4
- package/dist/es/node_modules/xgplayer/es/plugins/start/index.js +225 -4
- package/dist/es/node_modules/xgplayer/es/plugins/stats/index.js +155 -4
- package/dist/es/node_modules/xgplayer/es/plugins/testspeed/index.js +137 -4
- package/dist/es/node_modules/xgplayer/es/plugins/time/index.js +167 -4
- package/dist/es/node_modules/xgplayer/es/plugins/time/timesegments.js +149 -4
- package/dist/es/node_modules/xgplayer/es/plugins/volume/index.js +209 -4
- package/dist/es/node_modules/xgplayer/es/plugins/waitingTimeoutJump/index.js +56 -4
- package/dist/es/node_modules/xgplayer/es/presets/default.js +64 -4
- package/dist/es/node_modules/xgplayer/es/state.js +16 -4
- package/dist/es/node_modules/xgplayer/es/stateClassMap.js +37 -4
- package/dist/es/node_modules/xgplayer/es/utils/database.js +86 -4
- package/dist/es/node_modules/xgplayer/es/utils/debug.js +37 -4
- package/dist/es/node_modules/xgplayer/es/utils/draggabilly.js +274 -4
- package/dist/es/node_modules/xgplayer/es/utils/sniffer.js +114 -4
- package/dist/es/node_modules/xgplayer/es/utils/util.js +520 -4
- package/dist/es/node_modules/xgplayer/es/utils/xgplayerTimeRange.js +28 -4
- package/dist/es/node_modules/xgplayer/es/version.js +7 -4
- package/dist/es/packages/components/index.js +88 -4
- package/dist/es/packages/hooks/dist/index.js +81 -0
- package/dist/es/packages/utils/dist/index.js +599 -0
- package/dist/es/styles/tokens.css +3 -3
- package/dist/lib/Button/index.js +4 -4
- package/dist/lib/Button/src/Button.css +3 -3
- package/dist/lib/Button/src/Button.vue.js +4 -4
- package/dist/lib/Button/src/Button2.css +3 -3
- package/dist/lib/CodeEditor/index.js +4 -4
- package/dist/lib/CodeEditor/src/index.css +4 -4
- package/dist/lib/CodeEditor/src/index.vue.js +4 -4
- package/dist/lib/CodeEditor/src/index2.css +3 -3
- package/dist/lib/CodeEditor/src/index3.css +4 -4
- package/dist/lib/ConfigProvider/index.js +4 -4
- package/dist/lib/ConfigProvider/src/configProvider.js +4 -4
- package/dist/lib/ConfigProvider/src/configProviderProps.js +4 -4
- package/dist/lib/ConfigProvider/src/constants.js +4 -4
- package/dist/lib/ConfigProvider/src/useGlobalConfig.js +4 -4
- package/dist/lib/CountTo/index.js +4 -4
- package/dist/lib/CountTo/src/index.css +3 -3
- package/dist/lib/CountTo/src/index.vue.js +4 -4
- package/dist/lib/Ellipsis/index.js +4 -4
- package/dist/lib/Ellipsis/src/components/JsEllipsis.css +3 -3
- package/dist/lib/Ellipsis/src/components/JsEllipsis.vue.js +4 -4
- package/dist/lib/Ellipsis/src/components/NativeEllipsis.css +3 -3
- package/dist/lib/Ellipsis/src/components/NativeEllipsis.vue.js +4 -4
- package/dist/lib/Ellipsis/src/components/NativeEllipsis2.css +3 -3
- package/dist/lib/Ellipsis/src/index.css +3 -3
- package/dist/lib/Ellipsis/src/index.vue.js +4 -4
- package/dist/lib/Ellipsis/src/utils/utils.js +4 -4
- package/dist/lib/Form/index.js +4 -4
- package/dist/lib/Form/src/Form.css +3 -3
- package/dist/lib/Form/src/Form.vue.js +4 -4
- package/dist/lib/Form/src/Form2.css +3 -3
- package/dist/lib/Form/src/styles/form.css +3 -3
- package/dist/lib/Marquee/index.js +4 -4
- package/dist/lib/Marquee/src/index.css +3 -3
- package/dist/lib/Marquee/src/index.vue.js +4 -4
- package/dist/lib/Marquee/src/index2.css +3 -3
- package/dist/lib/Overlay/index.js +4 -4
- package/dist/lib/Overlay/src/Message.css +3 -3
- package/dist/lib/Overlay/src/Message.vue.js +4 -4
- package/dist/lib/Overlay/src/Message2.css +3 -3
- package/dist/lib/Overlay/src/Modal.css +3 -3
- package/dist/lib/Overlay/src/Modal.vue.js +4 -4
- package/dist/lib/Overlay/src/Modal2.css +3 -3
- package/dist/lib/Overlay/src/Notice.css +3 -3
- package/dist/lib/Overlay/src/Notice.vue.js +4 -4
- package/dist/lib/Overlay/src/Notice2.css +3 -3
- package/dist/lib/Overlay/src/Tooltip.css +3 -3
- package/dist/lib/Overlay/src/Tooltip.vue.js +4 -4
- package/dist/lib/Overlay/src/Tooltip2.css +3 -3
- package/dist/lib/RichTextEditor/index.js +4 -4
- package/dist/lib/RichTextEditor/src/ToolbarPanel.css +3 -3
- package/dist/lib/RichTextEditor/src/ToolbarPanel.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/ToolbarPanel2.css +3 -3
- package/dist/lib/RichTextEditor/src/components/BlockquoteButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/BlockquoteButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/CodeBlockButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/CodeBlockButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/ColorHighlightPopover.css +3 -3
- package/dist/lib/RichTextEditor/src/components/ColorHighlightPopover.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/FontSizeDropdownMenu.css +3 -3
- package/dist/lib/RichTextEditor/src/components/FontSizeDropdownMenu.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/HeadingDropdownMenu.css +3 -3
- package/dist/lib/RichTextEditor/src/components/HeadingDropdownMenu.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/ImageUploadButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/ImageUploadButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/LinkPopover.css +4 -4
- package/dist/lib/RichTextEditor/src/components/LinkPopover.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/LinkPopover2.css +4 -4
- package/dist/lib/RichTextEditor/src/components/ListDropdownMenu.css +3 -3
- package/dist/lib/RichTextEditor/src/components/ListDropdownMenu.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/MarkButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/MarkButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/TableButton.css +3 -3
- package/dist/lib/RichTextEditor/src/components/TableButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/TextAlignDropdownMenu.css +3 -3
- package/dist/lib/RichTextEditor/src/components/TextAlignDropdownMenu.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/TextColorPopover.css +3 -3
- package/dist/lib/RichTextEditor/src/components/TextColorPopover.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/ToolbarGroup.css +3 -3
- package/dist/lib/RichTextEditor/src/components/ToolbarGroup.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/ToolbarSeparator.css +3 -3
- package/dist/lib/RichTextEditor/src/components/ToolbarSeparator.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/UndoRedoButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/UndoRedoButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/VideoUploadButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/VideoUploadButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/ColorPicker.css +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/ColorPicker.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/MediaUploadModal.css +3 -3
- package/dist/lib/RichTextEditor/src/components/basic/MediaUploadModal.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/MediaUploadModal2.css +3 -3
- package/dist/lib/RichTextEditor/src/components/basic/SelectMenu.css +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/SelectMenu.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/SelectMenu2.css +4 -4
- package/dist/lib/RichTextEditor/src/constant/index.js +4 -4
- package/dist/lib/RichTextEditor/src/extensions/video.js +4 -4
- package/dist/lib/RichTextEditor/src/index.css +4 -4
- package/dist/lib/RichTextEditor/src/index.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/index2.css +4 -4
- package/dist/lib/RichTextEditor/src/props.js +4 -4
- package/dist/lib/ScaleScreen/index.js +4 -4
- package/dist/lib/ScaleScreen/src/index.css +3 -3
- package/dist/lib/ScaleScreen/src/index.vue.js +4 -4
- package/dist/lib/ScaleScreen/src/index2.css +3 -3
- package/dist/lib/Transition/index.js +4 -4
- package/dist/lib/Transition/src/CollapseTransition.css +3 -3
- package/dist/lib/Transition/src/CollapseTransition.vue.js +4 -4
- package/dist/lib/Transition/src/CollapseTransition2.css +3 -3
- package/dist/lib/Transition/src/CreateTransition.js +4 -4
- package/dist/lib/Transition/src/ExpandTransition.js +4 -4
- package/dist/lib/Transition/src/style/index.css +3 -3
- package/dist/lib/Transition/style.js +4 -4
- package/dist/lib/VideoBackground/index.js +4 -4
- package/dist/lib/VideoBackground/src/helper.js +4 -4
- package/dist/lib/VideoBackground/src/index.css +3 -3
- package/dist/lib/VideoBackground/src/index.vue.js +4 -4
- package/dist/lib/VideoBackground/src/index2.css +3 -3
- package/dist/lib/VideoBackground/src/index3.css +3 -3
- package/dist/lib/VideoBackground/src/videoBackground.js +4 -4
- package/dist/lib/VideoPlayer/index.js +4 -4
- package/dist/lib/VideoPlayer/src/index.css +3 -3
- package/dist/lib/VideoPlayer/src/index.vue.js +4 -4
- package/dist/lib/VirtualScroll/index.js +4 -4
- package/dist/lib/VirtualScroll/src/index.css +3 -3
- package/dist/lib/VirtualScroll/src/index.vue.js +4 -4
- package/dist/lib/VirtualScroll/src/index.vue2.js +4 -4
- package/dist/lib/VirtualScroll/src/index2.css +3 -3
- package/dist/lib/_virtual/_commonjsHelpers.js +4 -4
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +4 -4
- package/dist/lib/_virtual/delegate.js +4 -4
- package/dist/lib/_virtual/download.js +4 -4
- package/dist/lib/_virtual/download2.js +4 -4
- package/dist/lib/_virtual/index.js +4 -4
- package/dist/lib/_virtual/index2.js +4 -4
- package/dist/lib/_virtual/index3.js +14 -0
- package/dist/lib/{node_modules/@tanstack/store/dist/esm/types.js → _virtual/index4.js} +4 -4
- package/dist/lib/hooks/useLocale.js +4 -4
- package/dist/lib/hooks/useNamespace.js +4 -4
- package/dist/lib/index.js +4 -4
- package/dist/lib/locale/lang/en-US.js +4 -4
- package/dist/lib/locale/lang/ja-JP.js +4 -4
- package/dist/lib/locale/lang/zh-CN.js +4 -4
- package/dist/lib/node_modules/@codemirror/autocomplete/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/commands/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/lang-java/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/lang-javascript/dist/index.js +16 -4
- package/dist/lib/node_modules/@codemirror/lang-json/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/lang-python/dist/index.js +6 -4
- package/dist/lib/node_modules/@codemirror/lang-sql/dist/index.js +5 -4
- package/dist/lib/node_modules/@codemirror/lang-xml/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/lang-yaml/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/language/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/lint/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/search/dist/index.js +5 -4
- package/dist/lib/node_modules/@codemirror/state/dist/index.js +8 -4
- package/dist/lib/node_modules/@codemirror/theme-one-dark/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/view/dist/index.js +8 -4
- package/dist/lib/node_modules/@lezer/common/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/highlight/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/java/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/javascript/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/json/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/lr/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/python/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/xml/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/yaml/dist/index.js +4 -4
- package/dist/lib/node_modules/@marijn/find-cluster-break/src/index.js +4 -4
- package/dist/lib/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/EventClient.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FormApi.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/utils.js +4 -4
- package/dist/lib/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +4 -4
- package/dist/lib/node_modules/@tanstack/store/dist/esm/alien.js +14 -0
- package/dist/lib/node_modules/@tanstack/store/dist/esm/atom.js +14 -0
- package/dist/lib/node_modules/@tanstack/store/dist/esm/batch.js +14 -0
- package/dist/lib/node_modules/@tanstack/store/dist/esm/store.js +4 -4
- package/dist/lib/node_modules/@tanstack/vue-form/dist/esm/useField.js +4 -4
- package/dist/lib/node_modules/@tanstack/vue-form/dist/esm/useForm.js +4 -4
- package/dist/lib/node_modules/@tanstack/vue-store/dist/esm/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/core/dist/index.js +94 -4
- package/dist/lib/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-blockquote/dist/index.js +8 -4
- package/dist/lib/node_modules/@tiptap/extension-bold/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-character-count/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-code/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-code-block/dist/index.js +21 -4
- package/dist/lib/node_modules/@tiptap/extension-document/dist/index.js +6 -4
- package/dist/lib/node_modules/@tiptap/extension-hard-break/dist/index.js +6 -4
- package/dist/lib/node_modules/@tiptap/extension-heading/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-highlight/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-image/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-italic/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-link/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-list/dist/index.js +15 -4
- package/dist/lib/node_modules/@tiptap/extension-paragraph/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-strike/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-subscript/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-superscript/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-table/dist/index.js +8 -4
- package/dist/lib/node_modules/@tiptap/extension-task-item/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-task-list/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-text/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-text-align/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-text-style/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-underline/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extensions/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/html/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/starter-kit/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/vue-3/dist/index.js +4 -4
- package/dist/lib/node_modules/@vueuse/core/dist/index.js +4 -4
- package/dist/lib/node_modules/@vueuse/shared/dist/index.js +4 -4
- package/dist/lib/node_modules/codemirror/dist/index.js +4 -4
- package/dist/lib/node_modules/crelt/index.js +4 -4
- package/dist/lib/node_modules/delegate/src/closest.js +4 -4
- package/dist/lib/node_modules/delegate/src/delegate.js +4 -4
- package/dist/lib/node_modules/downloadjs/download.js +6 -4
- package/dist/lib/node_modules/eventemitter3/index.js +4 -4
- package/dist/lib/node_modules/linkifyjs/dist/linkify.js +8 -4
- package/dist/lib/node_modules/lodash-es/_DataView.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Hash.js +4 -4
- package/dist/lib/node_modules/lodash-es/_ListCache.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Map.js +4 -4
- package/dist/lib/node_modules/lodash-es/_MapCache.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Promise.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Set.js +4 -4
- package/dist/lib/node_modules/lodash-es/_SetCache.js +14 -0
- package/dist/lib/node_modules/lodash-es/_Stack.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Symbol.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Uint8Array.js +4 -4
- package/dist/lib/node_modules/lodash-es/_WeakMap.js +4 -4
- package/dist/lib/node_modules/lodash-es/_apply.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arrayEach.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arrayFilter.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arrayIncludes.js +14 -0
- package/dist/lib/node_modules/lodash-es/_arrayIncludesWith.js +14 -0
- package/dist/lib/node_modules/lodash-es/_arrayLikeKeys.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arrayMap.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arrayPush.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arraySome.js +14 -0
- package/dist/lib/node_modules/lodash-es/_asciiToArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/_assignMergeValue.js +14 -0
- package/dist/lib/node_modules/lodash-es/_assignValue.js +4 -4
- package/dist/lib/node_modules/lodash-es/_assocIndexOf.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseAssignValue.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseClone.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseCreate.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseFindIndex.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseFlatten.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseFor.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseGet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseGetAllKeys.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseGetTag.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIndexOf.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIntersection.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIsArguments.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIsEqual.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIsEqualDeep.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIsMap.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIsNaN.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIsNative.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIsRegExp.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIsSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIsTypedArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseKeys.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseKeysIn.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseMerge.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseMergeDeep.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseRest.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseSetToString.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseSlice.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseTimes.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseToString.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseUnary.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseUniq.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseUnset.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cacheHas.js +14 -0
- package/dist/lib/node_modules/lodash-es/_castArrayLikeObject.js +14 -0
- package/dist/lib/node_modules/lodash-es/_castPath.js +4 -4
- package/dist/lib/node_modules/lodash-es/_castSlice.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneArrayBuffer.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneBuffer.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneDataView.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneRegExp.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneSymbol.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneTypedArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/_copyArray.js +14 -0
- package/dist/lib/node_modules/lodash-es/_copyObject.js +4 -4
- package/dist/lib/node_modules/lodash-es/_coreJsData.js +4 -4
- package/dist/lib/node_modules/lodash-es/_createAssigner.js +14 -0
- package/dist/lib/node_modules/lodash-es/_createBaseFor.js +14 -0
- package/dist/lib/node_modules/lodash-es/_createCaseFirst.js +4 -4
- package/dist/lib/node_modules/lodash-es/_createSet.js +14 -0
- package/dist/lib/node_modules/lodash-es/_customOmitClone.js +4 -4
- package/dist/lib/node_modules/lodash-es/_defineProperty.js +4 -4
- package/dist/lib/node_modules/lodash-es/_equalArrays.js +14 -0
- package/dist/lib/node_modules/lodash-es/_equalByTag.js +14 -0
- package/dist/lib/node_modules/lodash-es/_equalObjects.js +14 -0
- package/dist/lib/node_modules/lodash-es/_flatRest.js +4 -4
- package/dist/lib/node_modules/lodash-es/_freeGlobal.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getAllKeys.js +14 -0
- package/dist/lib/node_modules/lodash-es/_getAllKeysIn.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getMapData.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getNative.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getPrototype.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getRawTag.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getSymbols.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getSymbolsIn.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getTag.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getValue.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hasUnicode.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hashClear.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hashDelete.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hashGet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hashHas.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hashSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_initCloneArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/_initCloneByTag.js +4 -4
- package/dist/lib/node_modules/lodash-es/_initCloneObject.js +14 -0
- package/dist/lib/node_modules/lodash-es/_isFlattenable.js +4 -4
- package/dist/lib/node_modules/lodash-es/_isIndex.js +4 -4
- package/dist/lib/node_modules/lodash-es/_isIterateeCall.js +14 -0
- package/dist/lib/node_modules/lodash-es/_isKey.js +4 -4
- package/dist/lib/node_modules/lodash-es/_isKeyable.js +4 -4
- package/dist/lib/node_modules/lodash-es/_isMasked.js +4 -4
- package/dist/lib/node_modules/lodash-es/_isPrototype.js +4 -4
- package/dist/lib/node_modules/lodash-es/_listCacheClear.js +4 -4
- package/dist/lib/node_modules/lodash-es/_listCacheDelete.js +4 -4
- package/dist/lib/node_modules/lodash-es/_listCacheGet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_listCacheHas.js +4 -4
- package/dist/lib/node_modules/lodash-es/_listCacheSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapCacheClear.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapCacheDelete.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapCacheGet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapCacheHas.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapCacheSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapToArray.js +14 -0
- package/dist/lib/node_modules/lodash-es/_memoizeCapped.js +4 -4
- package/dist/lib/node_modules/lodash-es/_nativeCreate.js +4 -4
- package/dist/lib/node_modules/lodash-es/_nativeKeys.js +14 -0
- package/dist/lib/node_modules/lodash-es/_nativeKeysIn.js +4 -4
- package/dist/lib/node_modules/lodash-es/_nodeUtil.js +4 -4
- package/dist/lib/node_modules/lodash-es/_objectToString.js +4 -4
- package/dist/lib/node_modules/lodash-es/_overArg.js +4 -4
- package/dist/lib/node_modules/lodash-es/_overRest.js +4 -4
- package/dist/lib/node_modules/lodash-es/_parent.js +4 -4
- package/dist/lib/node_modules/lodash-es/_root.js +4 -4
- package/dist/lib/node_modules/lodash-es/_safeGet.js +14 -0
- package/dist/lib/node_modules/lodash-es/_setCacheAdd.js +14 -0
- package/dist/lib/node_modules/lodash-es/_setCacheHas.js +14 -0
- package/dist/lib/node_modules/lodash-es/_setToArray.js +14 -0
- package/dist/lib/node_modules/lodash-es/_setToString.js +4 -4
- package/dist/lib/node_modules/lodash-es/_shortOut.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stackClear.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stackDelete.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stackGet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stackHas.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stackSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_strictIndexOf.js +14 -0
- package/dist/lib/node_modules/lodash-es/_stringToArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stringToPath.js +4 -4
- package/dist/lib/node_modules/lodash-es/_toKey.js +4 -4
- package/dist/lib/node_modules/lodash-es/_toSource.js +4 -4
- package/dist/lib/node_modules/lodash-es/_unicodeToArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/constant.js +4 -4
- package/dist/lib/node_modules/lodash-es/eq.js +4 -4
- package/dist/lib/node_modules/lodash-es/flatten.js +4 -4
- package/dist/lib/node_modules/lodash-es/get.js +4 -4
- package/dist/lib/node_modules/lodash-es/identity.js +4 -4
- package/dist/lib/node_modules/lodash-es/intersectionWith.js +14 -0
- package/dist/lib/node_modules/lodash-es/isArguments.js +4 -4
- package/dist/lib/node_modules/lodash-es/isArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/isArrayLike.js +4 -4
- package/dist/lib/node_modules/lodash-es/isArrayLikeObject.js +14 -0
- package/dist/lib/node_modules/lodash-es/isBuffer.js +4 -4
- package/dist/lib/node_modules/lodash-es/isEqual.js +14 -0
- package/dist/lib/node_modules/lodash-es/isFinite.js +4 -4
- package/dist/lib/node_modules/lodash-es/isFunction.js +4 -4
- package/dist/lib/node_modules/lodash-es/isLength.js +4 -4
- package/dist/lib/node_modules/lodash-es/isMap.js +4 -4
- package/dist/lib/node_modules/lodash-es/isNaN.js +4 -4
- package/dist/lib/node_modules/lodash-es/isNil.js +4 -4
- package/dist/lib/node_modules/lodash-es/isNumber.js +4 -4
- package/dist/lib/node_modules/lodash-es/isObject.js +4 -4
- package/dist/lib/node_modules/lodash-es/isObjectLike.js +4 -4
- package/dist/lib/node_modules/lodash-es/isPlainObject.js +4 -4
- package/dist/lib/node_modules/lodash-es/isRegExp.js +4 -4
- package/dist/lib/node_modules/lodash-es/isSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/isString.js +4 -4
- package/dist/lib/node_modules/lodash-es/isSymbol.js +4 -4
- package/dist/lib/node_modules/lodash-es/isTypedArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/keys.js +14 -0
- package/dist/lib/node_modules/lodash-es/keysIn.js +4 -4
- package/dist/lib/node_modules/lodash-es/last.js +4 -4
- package/dist/lib/node_modules/lodash-es/memoize.js +4 -4
- package/dist/lib/node_modules/lodash-es/mergeWith.js +14 -0
- package/dist/lib/node_modules/lodash-es/noop.js +14 -0
- package/dist/lib/node_modules/lodash-es/omit.js +4 -4
- package/dist/lib/node_modules/lodash-es/stubArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/stubFalse.js +4 -4
- package/dist/lib/node_modules/lodash-es/toPlainObject.js +14 -0
- package/dist/lib/node_modules/lodash-es/toString.js +4 -4
- package/dist/lib/node_modules/lodash-es/unionWith.js +14 -0
- package/dist/lib/node_modules/lodash-es/upperFirst.js +4 -4
- package/dist/lib/node_modules/orderedmap/dist/index.js +4 -4
- package/dist/lib/node_modules/path-to-regexp/dist/index.js +14 -0
- package/dist/lib/node_modules/prosemirror-commands/dist/index.js +5 -4
- package/dist/lib/node_modules/prosemirror-dropcursor/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-gapcursor/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-history/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-keymap/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-model/dist/index.js +7 -4
- package/dist/lib/node_modules/prosemirror-schema-list/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-state/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-tables/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-transform/dist/index.js +5 -4
- package/dist/lib/node_modules/prosemirror-view/dist/index.js +8 -4
- package/dist/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +14 -0
- package/dist/lib/node_modules/rope-sequence/dist/index.js +4 -4
- package/dist/lib/node_modules/sortablejs/modular/sortable.esm.js +14 -0
- package/dist/lib/node_modules/style-mod/src/style-mod.js +6 -4
- package/dist/lib/{Grid → node_modules/title-case/dist}/index.js +4 -4
- package/dist/lib/node_modules/vue-codemirror/dist/vue-codemirror.esm.js +4 -4
- package/dist/lib/node_modules/w3c-keyname/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/dist/index.min.css +3 -3
- package/dist/lib/node_modules/xgplayer/es/_virtual/_rollupPluginBabelHelpers.js +5 -4
- package/dist/lib/node_modules/xgplayer/es/constant.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/defaultConfig.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/error.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/events.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/index.umd.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/instManager.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/lang/en.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/lang/i18n.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/lang/jp.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/lang/zh-cn.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/mediaProxy.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/player.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/basePlugin.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/hooksDescriptor.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/plugin.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/pluginsManager.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/preset.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/resizeObserver.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/back.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/download.js +18 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/exitCssFull.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/exitFull.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/loading.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/pause.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/pipIcon.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/pipIconExit.js +11 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/play.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/playNext.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/replay.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/requestCssFull.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/requestFull.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/rotate.js +15 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/seekicon.js +10 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/volumeLarge.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/volumeMuted.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/volumeSmall.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/common/iconPlugin.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/common/iconTools.js +6 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/common/optionList.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/common/optionsIcon.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/common/thumbnail.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/controls/index.js +12 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/cssFullScreen/index.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/definition/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/download/index.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/dynamicBg/index.js +5 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/enter/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/error/index.js +9 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/fpsDetect/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/fullscreen/backicon.js +5 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/fullscreen/index.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/gapJump/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/keyboard/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/loading/index.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/logger/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/miniScreen/index.js +16 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/miniScreen/miniScreenIcon.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/mobile/index.js +22 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/mobile/touch.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/pc/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/pip/index.js +11 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/play/index.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/playNext/index.js +10 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/playbackRate/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/poster/index.js +5 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/progress/index.js +10 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/progress/innerList.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/progress/miniProgress.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/progressPreview/dotsApi.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/progressPreview/index.js +14 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/prompt/index.js +6 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/replay/index.js +6 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/rotate/index.js +9 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/screenShot/index.js +9 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/start/index.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/stats/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/testspeed/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/time/index.js +9 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/time/timesegments.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/volume/index.js +14 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/waitingTimeoutJump/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/presets/default.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/state.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/stateClassMap.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/database.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/debug.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/draggabilly.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/sniffer.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/util.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/xgplayerTimeRange.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/version.js +4 -4
- package/dist/lib/packages/components/index.js +4 -4
- package/dist/lib/packages/hooks/dist/index.js +14 -0
- package/dist/lib/packages/utils/dist/index.js +14 -0
- package/dist/lib/styles/tokens.css +3 -3
- package/index.d.ts +227 -113
- package/package.json +26 -28
- package/dist/es/Grid/src/Grid.css +0 -14
- package/dist/es/Grid/src/Grid.vue.js +0 -14
- package/dist/es/Grid/src/components/ActionBar.css +0 -14
- package/dist/es/Grid/src/components/ActionBar.vue.js +0 -14
- package/dist/es/Grid/src/components/CellEditor.vue.js +0 -14
- package/dist/es/Grid/src/components/CellEditor2.css +0 -14
- package/dist/es/Grid/src/components/ColumnFilter.css +0 -14
- package/dist/es/Grid/src/components/ColumnFilter.vue.js +0 -14
- package/dist/es/Grid/src/components/ColumnSettings.css +0 -14
- package/dist/es/Grid/src/components/ColumnSettings.vue.js +0 -14
- package/dist/es/Grid/src/components/DataTable.css +0 -14
- package/dist/es/Grid/src/components/DataTable.vue.js +0 -14
- package/dist/es/Grid/src/components/Pager.css +0 -14
- package/dist/es/Grid/src/components/Pager.vue.js +0 -14
- package/dist/es/Grid/src/components/QueryBar.css +0 -14
- package/dist/es/Grid/src/components/QueryBar.vue.js +0 -14
- package/dist/es/Grid/src/composables/useCellEditor.js +0 -14
- package/dist/es/Grid/src/composables/useGridTable.js +0 -14
- package/dist/es/Grid/src/styles/table.css +0 -14
- package/dist/es/node_modules/@tanstack/store/dist/esm/derived.js +0 -14
- package/dist/es/node_modules/@tanstack/store/dist/esm/scheduler.js +0 -14
- package/dist/es/node_modules/@tanstack/table-core/build/lib/index.js +0 -14
- package/dist/es/node_modules/@tanstack/vue-table/build/lib/index.js +0 -14
- package/dist/lib/Grid/src/Grid.css +0 -14
- package/dist/lib/Grid/src/Grid.vue.js +0 -14
- package/dist/lib/Grid/src/components/ActionBar.css +0 -14
- package/dist/lib/Grid/src/components/ActionBar.vue.js +0 -14
- package/dist/lib/Grid/src/components/CellEditor.vue.js +0 -14
- package/dist/lib/Grid/src/components/CellEditor2.css +0 -14
- package/dist/lib/Grid/src/components/ColumnFilter.css +0 -14
- package/dist/lib/Grid/src/components/ColumnFilter.vue.js +0 -14
- package/dist/lib/Grid/src/components/ColumnSettings.css +0 -14
- package/dist/lib/Grid/src/components/ColumnSettings.vue.js +0 -14
- package/dist/lib/Grid/src/components/DataTable.css +0 -14
- package/dist/lib/Grid/src/components/DataTable.vue.js +0 -14
- package/dist/lib/Grid/src/components/Pager.css +0 -14
- package/dist/lib/Grid/src/components/Pager.vue.js +0 -14
- package/dist/lib/Grid/src/components/QueryBar.css +0 -14
- package/dist/lib/Grid/src/components/QueryBar.vue.js +0 -14
- package/dist/lib/Grid/src/composables/useCellEditor.js +0 -14
- package/dist/lib/Grid/src/composables/useGridTable.js +0 -14
- package/dist/lib/Grid/src/styles/table.css +0 -14
- package/dist/lib/node_modules/@tanstack/store/dist/esm/derived.js +0 -14
- package/dist/lib/node_modules/@tanstack/store/dist/esm/scheduler.js +0 -14
- package/dist/lib/node_modules/@tanstack/table-core/build/lib/index.js +0 -14
- package/dist/lib/node_modules/@tanstack/vue-table/build/lib/index.js +0 -14
|
@@ -7,8 +7,1308 @@ You shall not disclose such Confidential Information and shall use it only in
|
|
|
7
7
|
accordance with the terms of the license agreement.
|
|
8
8
|
|
|
9
9
|
--- Build Info ---
|
|
10
|
-
Version: 1.1.
|
|
11
|
-
Build Time: 2026/3/
|
|
12
|
-
Build Commit:
|
|
10
|
+
Version: 1.1.7
|
|
11
|
+
Build Time: 2026/3/13 18:25:06
|
|
12
|
+
Build Commit: 0b162dea954baa715e67b70f80401a571205058a
|
|
13
13
|
*/
|
|
14
|
-
import{NodeProp as t,Tree as e,IterMode as r,TreeFragment as n,Parser as o,NodeType as s}from"../../../@lezer/common/dist/index.js";import{Facet as i,Prec as l,EditorState as a,RangeSetBuilder as c,RangeSet as h,StateField as u,StateEffect as f,combineConfig as d,countColumn as p}from"../../state/dist/index.js";import{EditorView as m,ViewPlugin as g,Decoration as k,gutter as v,GutterMarker as w,logException as x,WidgetType as y,Direction as b}from"../../view/dist/index.js";import{tagHighlighter as A,highlightTree as S,tags as C,styleTags as T}from"../../../@lezer/highlight/dist/index.js";import{StyleModule as D}from"../../../style-mod/src/style-mod.js";var O;const B=/* @__PURE__ */new t;function P(t){return i.define({combine:t?e=>e.concat(t):void 0})}const N=/* @__PURE__ */new t;class I{constructor(t,e,r=[],n=""){this.data=t,this.name=n,a.prototype.hasOwnProperty("tree")||Object.defineProperty(a.prototype,"tree",{get(){return L(this)}}),this.parser=e,this.extension=[J.of(this),a.languageData.of((t,e,r)=>{let n=M(t,e,r),o=n.type.prop(B);if(!o)return[];let s=t.facet(o),i=n.type.prop(N);if(i){let o=n.resolve(e-n.from,r);for(let e of i)if(e.test(o,t)){let r=t.facet(e.facet);return"replace"==e.type?r:r.concat(s)}}return s})].concat(r)}isActiveAt(t,e,r=-1){return M(t,e,r).type.prop(B)==this.data}findRegions(r){let n=r.facet(J);if((null==n?void 0:n.data)==this.data)return[{from:0,to:r.doc.length}];if(!n||!n.allowsNesting)return[];let o=[],s=(r,n)=>{if(r.prop(B)==this.data)return void o.push({from:n,to:n+r.length});let i=r.prop(t.mounted);if(i){if(i.tree.prop(B)==this.data){if(i.overlay)for(let t of i.overlay)o.push({from:t.from+n,to:t.to+n});else o.push({from:n,to:n+r.length});return}if(i.overlay){let t=o.length;if(s(i.tree,i.overlay[0].from+n),o.length>t)return}}for(let t=0;t<r.children.length;t++){let o=r.children[t];o instanceof e&&s(o,r.positions[t]+n)}};return s(L(r),0),o}get allowsNesting(){return!0}}function M(t,e,n){let o=t.facet(J),s=L(t).topNode;if(!o||o.allowsNesting)for(let i=s;i;i=i.enter(e,n,r.ExcludeBuffers|r.EnterBracketed))i.type.isTop&&(s=i);return s}I.setState=/* @__PURE__ */f.define();class E extends I{constructor(t,e,r){super(t,e,[],r),this.parser=e}static define(t){let e=P(t.languageData);return new E(e,t.parser.configure({props:[B.add(t=>t.isTop?e:void 0)]}),t.name)}configure(t,e){return new E(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function L(t){let r=t.field(I.state,!1);return r?r.tree:e.empty}class j{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let r=this.cursorPos-this.string.length;return t<r||e>=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-r,e-r)}}let R=null;class W{constructor(t,e,r=[],n,o,s,i,l){this.parser=t,this.state=e,this.fragments=r,this.tree=n,this.treeLen=o,this.viewport=s,this.skipped=i,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,r,n){return new W(t,r,[],e.empty,0,n,[],null)}startParse(){return this.parser.startParse(new j(this.state.doc),this.fragments)}work(t,r){return null!=r&&r>=this.state.doc.length&&(r=void 0),this.tree!=e.empty&&this.isDone(null!=r?r:this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var e;if("number"==typeof t){let e=Date.now()+t;t=()=>Date.now()>e}for(this.parse||(this.parse=this.startParse()),null!=r&&(null==this.parse.stoppedAt||this.parse.stoppedAt>r)&&r<this.state.doc.length&&this.parse.stopAt(r);;){let o=this.parse.advance();if(o){if(this.fragments=this.withoutTempSkipped(n.addTree(o,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(e=this.parse.stoppedAt)&&void 0!==e?e:this.state.doc.length,this.tree=o,this.parse=null,!(this.treeLen<(null!=r?r:this.state.doc.length)))return!0;this.parse=this.startParse()}if(t())return!1}})}takeTree(){let t,e;this.parse&&(t=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(e=this.parse.advance()););}),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(n.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=R;R=this;try{return t()}finally{R=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=F(t,e.from,e.to);return t}changes(t,r){let{fragments:o,tree:s,treeLen:i,viewport:l,skipped:a}=this;if(this.takeTree(),!t.empty){let r=[];if(t.iterChangedRanges((t,e,n,o)=>r.push({fromA:t,toA:e,fromB:n,toB:o})),o=n.applyChanges(o,r),s=e.empty,i=0,l={from:t.mapPos(l.from,-1),to:t.mapPos(l.to,1)},this.skipped.length){a=[];for(let e of this.skipped){let r=t.mapPos(e.from,1),n=t.mapPos(e.to,-1);r<n&&a.push({from:r,to:n})}}}return new W(this.parser,r,o,s,i,l,a,this.scheduleOn)}updateViewport(t){if(this.viewport.from==t.from&&this.viewport.to==t.to)return!1;this.viewport=t;let e=this.skipped.length;for(let r=0;r<this.skipped.length;r++){let{from:e,to:n}=this.skipped[r];e<t.to&&n>t.from&&(this.fragments=F(this.fragments,e,n),this.skipped.splice(r--,1))}return!(this.skipped.length>=e)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends o{createParse(r,n,o){let i=o[0].from,l=o[o.length-1].to;return{parsedPos:i,advance(){let r=R;if(r){for(let t of o)r.tempSkipped.push(t);t&&(r.scheduleOn=r.scheduleOn?Promise.all([r.scheduleOn,t]):t)}return this.parsedPos=l,new e(s.none,[],[],l-i)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&0==e[0].from&&e[0].to>=t}static get(){return R}}function F(t,e,r){return n.applyChanges(t,[{fromA:e,toA:r,fromB:e,toB:r}])}class ${constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),r=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,r)||e.takeTree(),new $(e)}static init(t){let e=Math.min(3e3,t.doc.length),r=W.create(t.facet(J).parser,t,{from:0,to:e});return r.work(20,e)||r.takeTree(),new $(r)}}I.state=/* @__PURE__ */u.define({create:$.init,update(t,e){for(let r of e.effects)if(r.is(I.setState))return r.value;return e.startState.facet(J)!=e.state.facet(J)?$.init(e.state):t.apply(e)}});let U=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};"undefined"!=typeof requestIdleCallback&&(U=t=>{let e=-1,r=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(r):cancelIdleCallback(e)});const q="undefined"!=typeof navigator&&(null===(O=navigator.scheduling)||void 0===O?void 0:O.isInputPending)?()=>navigator.scheduling.isInputPending():null,z=/* @__PURE__ */g.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(I.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(I.state);e.tree==e.context.tree&&e.context.isDone(t.doc.length)||(this.working=U(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEnd<e&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=e+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:r,viewport:{to:n}}=this.view,o=r.field(I.state);if(o.tree==o.context.tree&&o.context.isDone(n+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,t&&!q?Math.max(25,t.timeRemaining()-5):1e9),i=o.context.treeLen<n&&r.doc.length>n+1e3,l=o.context.work(()=>q&&q()||Date.now()>s,n+(i?0:1e5));this.chunkBudget-=Date.now()-e,(l||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:I.setState.of(new $(o.context))})),this.chunkBudget>0&&(!l||i)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(t=>x(this.view.state,t)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),J=/* @__PURE__ */i.define({combine:t=>t.length?t[0]:null,enables:t=>[I.state,z,m.contentAttributes.compute([t],e=>{let r=e.facet(t);return r&&r.name?{"data-language":r.name}:{}})]});class H{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}const V=/* @__PURE__ */i.define(),G=/* @__PURE__ */i.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function _(t){let e=t.facet(G);return 9==e.charCodeAt(0)?t.tabSize*e.length:e.length}function K(t,e){let r="",n=t.tabSize,o=t.facet(G)[0];if("\t"==o){for(;e>=n;)r+="\t",e-=n;o=" "}for(let s=0;s<e;s++)r+=o;return r}function Q(t,e){t instanceof a&&(t=new X(t));for(let n of t.state.facet(V)){let r=n(t,e);if(void 0!==r)return r}let r=L(t.state);return r.length>=e?function(t,e,r){let n=e.resolveStack(r),o=e.resolveInner(r,-1).resolve(r,0).enterUnfinishedNodesBefore(r);if(o!=n.node){let t=[];for(let e=o;e&&!(e.from<n.node.from||e.to>n.node.to||e.from==n.node.from&&e.type==n.node.type);e=e.parent)t.push(e);for(let e=t.length-1;e>=0;e--)n={node:t[e],next:n}}return Z(n,t,r)}(t,r,e):null}class X{constructor(t,e={}){this.state=t,this.options=e,this.unit=_(t)}lineAt(t,e=1){let r=this.state.doc.lineAt(t),{simulateBreak:n,simulateDoubleBreak:o}=this.options;return null!=n&&n>=r.from&&n<=r.to?o&&n==t?{text:"",from:t}:(e<0?n<t:n<=t)?{text:r.text.slice(n-r.from),from:n}:{text:r.text.slice(0,n-r.from),from:r.from}:r}textAfterPos(t,e=1){if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";let{text:r,from:n}=this.lineAt(t,e);return r.slice(t-n,Math.min(r.length,t+100-n))}column(t,e=1){let{text:r,from:n}=this.lineAt(t,e),o=this.countColumn(r,t-n),s=this.options.overrideIndentation?this.options.overrideIndentation(n):-1;return s>-1&&(o+=s-this.countColumn(r,r.search(/\S|$/))),o}countColumn(t,e=t.length){return p(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:r,from:n}=this.lineAt(t,e),o=this.options.overrideIndentation;if(o){let t=o(n);if(t>-1)return t}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Y=/* @__PURE__ */new t;function Z(t,e,r){for(let n=t;n;n=n.next){let t=tt(n.node);if(t)return t(rt.create(e,r,n))}return 0}function tt(e){let r=e.type.prop(Y);if(r)return r;let n,o=e.firstChild;if(o&&(n=o.type.prop(t.closedBy))){let t=e.lastChild,r=t&&n.indexOf(t.name)>-1;return e=>st(e,!0,1,void 0,r&&!function(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?et:null}function et(){return 0}class rt extends X{constructor(t,e,r){super(t.state,t.options),this.base=t,this.pos=e,this.context=r}get node(){return this.context.node}static create(t,e,r){return new rt(t,e,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let e=this.state.doc.lineAt(t.from);for(;;){let r=t.resolve(e.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(nt(r,t))break;e=this.state.doc.lineAt(r.from)}return this.lineIndent(e.from)}continue(){return Z(this.context.next,this.base,this.pos)}}function nt(t,e){for(let r=e;r;r=r.parent)if(t==r)return!0;return!1}function ot({closing:t,align:e=!0,units:r=1}){return n=>st(n,e,r,t)}function st(t,e,r,n,o){let s=t.textAfter,i=s.match(/^\s*/)[0].length,l=n&&s.slice(i,i+n.length)==n||o==t.pos+i,a=e?function(t){let e=t.node,r=e.childAfter(e.from),n=e.lastChild;if(!r)return null;let o=t.options.simulateBreak,s=t.state.doc.lineAt(r.from),i=null==o||o<=s.from?s.to:Math.min(s.to,o);for(let l=r.to;;){let t=e.childAfter(l);if(!t||t==n)return null;if(!t.type.isSkipped){if(t.from>=i)return null;let e=/^ */.exec(s.text.slice(r.to-s.from))[0].length;return{from:r.from,to:r.to+e}}l=t.to}}(t):null;return a?l?t.column(a.from):t.column(a.to):t.baseIndent+(l?0:t.unit*r)}const it=t=>t.baseIndent;function lt({except:t,units:e=1}={}){return r=>{let n=t&&t.test(r.textAfter);return r.baseIndent+(n?0:e*r.unit)}}function at(){return a.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let r=t.newDoc,{head:n}=t.newSelection.main,o=r.lineAt(n);if(n>o.from+200)return t;let s=r.sliceString(o.from,n);if(!e.some(t=>t.test(s)))return t;let{state:i}=t,l=-1,a=[];for(let{head:c}of i.selection.ranges){let t=i.doc.lineAt(c);if(t.from==l)continue;l=t.from;let e=Q(i,t.from);if(null==e)continue;let r=/^\s*/.exec(t.text)[0],n=K(i,e);r!=n&&a.push({from:t.from,to:t.from+r.length,insert:n})}return a.length?[t,{changes:a,sequential:!0}]:t})}const ct=/* @__PURE__ */i.define(),ht=/* @__PURE__ */new t;function ut(t){let e=t.firstChild,r=t.lastChild;return e&&e.to<r.from?{from:e.to,to:r.type.isError?t.to:r.from}:null}function ft(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function dt(t,e,r){for(let n of t.facet(ct)){let o=n(t,e,r);if(o)return o}return function(t,e,r){let n=L(t);if(n.length<r)return null;let o=null;for(let s=n.resolveStack(r,1);s;s=s.next){let i=s.node;if(i.to<=r||i.from>r)continue;if(o&&i.from<e)break;let l=i.type.prop(ht);if(l&&(i.to<n.length-50||n.length==t.doc.length||!ft(i))){let n=l(i,t);n&&n.from<=r&&n.from>=e&&n.to>r&&(o=n)}}return o}(t,e,r)}function pt(t,e){let r=e.mapPos(t.from,1),n=e.mapPos(t.to,-1);return r>=n?void 0:{from:r,to:n}}const mt=/* @__PURE__ */f.define({map:pt}),gt=/* @__PURE__ */f.define({map:pt});function kt(t){let e=[];for(let{head:r}of t.state.selection.ranges)e.some(t=>t.from<=r&&t.to>=r)||e.push(t.lineBlockAt(r));return e}const vt=/* @__PURE__ */u.define({create:()=>k.none,update(t,e){e.isUserEvent("delete")&&e.changes.iterChangedRanges((e,r)=>t=wt(t,e,r)),t=t.map(e.changes);for(let r of e.effects)if(r.is(mt)&&!yt(t,r.value.from,r.value.to)){let{preparePlaceholder:n}=e.state.facet(Pt),o=n?k.replace({widget:new Et(n(e.state,r.value))}):Mt;t=t.update({add:[o.range(r.value.from,r.value.to)]})}else r.is(gt)&&(t=t.update({filter:(t,e)=>r.value.from!=t||r.value.to!=e,filterFrom:r.value.from,filterTo:r.value.to}));return e.selection&&(t=wt(t,e.selection.main.head)),t},provide:t=>m.decorations.from(t),toJSON(t,e){let r=[];return t.between(0,e.doc.length,(t,e)=>{r.push(t,e)}),r},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let r=0;r<t.length;){let n=t[r++],o=t[r++];if("number"!=typeof n||"number"!=typeof o)throw new RangeError("Invalid JSON for fold state");e.push(Mt.range(n,o))}return k.set(e,!0)}});function wt(t,e,r=e){let n=!1;return t.between(e,r,(t,o)=>{t<r&&o>e&&(n=!0)}),n?t.update({filterFrom:e,filterTo:r,filter:(t,n)=>t>=r||n<=e}):t}function xt(t,e,r){var n;let o=null;return null===(n=t.field(vt,!1))||void 0===n||n.between(e,r,(t,e)=>{(!o||o.from>t)&&(o={from:t,to:e})}),o}function yt(t,e,r){let n=!1;return t.between(e,e,(t,o)=>{t==e&&o==r&&(n=!0)}),n}function bt(t,e){return t.field(vt,!1)?e:e.concat(f.appendConfig.of(Nt()))}const At=t=>{for(let e of kt(t)){let r=dt(t.state,e.from,e.to);if(r)return t.dispatch({effects:bt(t.state,[mt.of(r),Ct(t,r)])}),!0}return!1},St=t=>{if(!t.state.field(vt,!1))return!1;let e=[];for(let r of kt(t)){let n=xt(t.state,r.from,r.to);n&&e.push(gt.of(n),Ct(t,n,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function Ct(t,e,r=!0){let n=t.state.doc.lineAt(e.from).number,o=t.state.doc.lineAt(e.to).number;return m.announce.of(`${t.state.phrase(r?"Folded lines":"Unfolded lines")} ${n} ${t.state.phrase("to")} ${o}.`)}const Tt=t=>{let{state:e}=t,r=[];for(let n=0;n<e.doc.length;){let o=t.lineBlockAt(n),s=dt(e,o.from,o.to);s&&r.push(mt.of(s)),n=(s?t.lineBlockAt(s.to):o).to+1}return r.length&&t.dispatch({effects:bt(t.state,r)}),!!r.length},Dt=t=>{let e=t.state.field(vt,!1);if(!e||!e.size)return!1;let r=[];return e.between(0,t.state.doc.length,(t,e)=>{r.push(gt.of({from:t,to:e}))}),t.dispatch({effects:r}),!0},Ot=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:At},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:St},{key:"Ctrl-Alt-[",run:Tt},{key:"Ctrl-Alt-]",run:Dt}],Bt={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Pt=/* @__PURE__ */i.define({combine:t=>d(t,Bt)});function Nt(t){return[vt,Wt]}function It(t,e){let{state:r}=t,n=r.facet(Pt),o=e=>{let r=t.lineBlockAt(t.posAtDOM(e.target)),n=xt(t.state,r.from,r.to);n&&t.dispatch({effects:gt.of(n)}),e.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(t,o,e);let s=document.createElement("span");return s.textContent=n.placeholderText,s.setAttribute("aria-label",r.phrase("folded code")),s.title=r.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=o,s}const Mt=/* @__PURE__ */k.replace({widget:/* @__PURE__ */new class extends y{toDOM(t){return It(t,null)}}});class Et extends y{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return It(t,this.value)}}const Lt={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class jt extends w{constructor(t,e){super(),this.config=t,this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");return e.textContent=this.open?this.config.openText:this.config.closedText,e.title=t.state.phrase(this.open?"Fold line":"Unfold line"),e}}function Rt(t={}){let e={...Lt,...t},r=new jt(e,!0),n=new jt(e,!1),o=g.fromClass(class{constructor(t){this.from=t.viewport.from,this.markers=this.buildMarkers(t)}update(t){(t.docChanged||t.viewportChanged||t.startState.facet(J)!=t.state.facet(J)||t.startState.field(vt,!1)!=t.state.field(vt,!1)||L(t.startState)!=L(t.state)||e.foldingChanged(t))&&(this.markers=this.buildMarkers(t.view))}buildMarkers(t){let e=new c;for(let o of t.viewportLineBlocks){let s=xt(t.state,o.from,o.to)?n:dt(t.state,o.from,o.to)?r:null;s&&e.add(o.from,o.from,s)}return e.finish()}}),{domEventHandlers:s}=e;return[o,v({class:"cm-foldGutter",markers(t){var e;return(null===(e=t.plugin(o))||void 0===e?void 0:e.markers)||h.empty},initialSpacer:()=>new jt(e,!1),domEventHandlers:{...s,click:(t,e,r)=>{if(s.click&&s.click(t,e,r))return!0;let n=xt(t.state,e.from,e.to);if(n)return t.dispatch({effects:gt.of(n)}),!0;let o=dt(t.state,e.from,e.to);return!!o&&(t.dispatch({effects:mt.of(o)}),!0)}}}),Nt()]}const Wt=/* @__PURE__ */m.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Ft{constructor(t,e){let r;function n(t){let e=D.newName();return(r||(r=/* @__PURE__ */Object.create(null)))["."+e]=t,e}this.specs=t;const o="string"==typeof e.all?e.all:e.all?n(e.all):void 0,s=e.scope;this.scope=s instanceof I?t=>t.prop(B)==s.data:s?t=>t==s:void 0,this.style=A(t.map(t=>({tag:t.tag,class:t.class||n(Object.assign({},t,{tag:null}))})),{all:o}).style,this.module=r?new D(r):null,this.themeType=e.themeType}static define(t,e){return new Ft(t,e||{})}}const $t=/* @__PURE__ */i.define(),Ut=/* @__PURE__ */i.define({combine:t=>t.length?[t[0]]:null});function qt(t){let e=t.facet($t);return e.length?e:t.facet(Ut)}function zt(t,e){let r,n=[Ht];return t instanceof Ft&&(t.module&&n.push(m.styleModule.of(t.module)),r=t.themeType),(null==e?void 0:e.fallback)?n.push(Ut.of(t)):r?n.push($t.computeN([m.darkTheme],e=>e.facet(m.darkTheme)==("dark"==r)?[t]:[])):n.push($t.of(t)),n}class Jt{constructor(t){this.markCache=/* @__PURE__ */Object.create(null),this.tree=L(t.state),this.decorations=this.buildDeco(t,qt(t.state)),this.decoratedTo=t.viewport.to}update(t){let e=L(t.state),r=qt(t.state),n=r!=qt(t.startState),{viewport:o}=t.view,s=t.changes.mapPos(this.decoratedTo,1);e.length<o.to&&!n&&e.type==this.tree.type&&s>=o.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=s):(e!=this.tree||t.viewportChanged||n)&&(this.tree=e,this.decorations=this.buildDeco(t.view,r),this.decoratedTo=o.to)}buildDeco(t,e){if(!e||!this.tree.length)return k.none;let r=new c;for(let{from:n,to:o}of t.visibleRanges)S(this.tree,e,(t,e,n)=>{r.add(t,e,this.markCache[n]||(this.markCache[n]=k.mark({class:n})))},n,o);return r.finish()}}const Ht=/* @__PURE__ */l.high(/* @__PURE__ */g.fromClass(Jt,{decorations:t=>t.decorations})),Vt=/* @__PURE__ */Ft.define([{tag:C.meta,color:"#404740"},{tag:C.link,textDecoration:"underline"},{tag:C.heading,textDecoration:"underline",fontWeight:"bold"},{tag:C.emphasis,fontStyle:"italic"},{tag:C.strong,fontWeight:"bold"},{tag:C.strikethrough,textDecoration:"line-through"},{tag:C.keyword,color:"#708"},{tag:[C.atom,C.bool,C.url,C.contentSeparator,C.labelName],color:"#219"},{tag:[C.literal,C.inserted],color:"#164"},{tag:[C.string,C.deleted],color:"#a11"},{tag:[C.regexp,C.escape,/* @__PURE__ */C.special(C.string)],color:"#e40"},{tag:/* @__PURE__ */C.definition(C.variableName),color:"#00f"},{tag:/* @__PURE__ */C.local(C.variableName),color:"#30a"},{tag:[C.typeName,C.namespace],color:"#085"},{tag:C.className,color:"#167"},{tag:[/* @__PURE__ */C.special(C.variableName),C.macroName],color:"#256"},{tag:/* @__PURE__ */C.definition(C.propertyName),color:"#00c"},{tag:C.comment,color:"#940"},{tag:C.invalid,color:"#f00"}]),Gt=/* @__PURE__ */m.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),_t="()[]{}",Kt=/* @__PURE__ */i.define({combine:t=>d(t,{afterCursor:!0,brackets:_t,maxScanDistance:1e4,renderMatch:Yt})}),Qt=/* @__PURE__ */k.mark({class:"cm-matchingBracket"}),Xt=/* @__PURE__ */k.mark({class:"cm-nonmatchingBracket"});function Yt(t){let e=[],r=t.matched?Qt:Xt;return e.push(r.range(t.start.from,t.start.to)),t.end&&e.push(r.range(t.end.from,t.end.to)),e}function Zt(t){let e=[],r=t.facet(Kt);for(let n of t.selection.ranges){if(!n.empty)continue;let o=se(t,n.head,-1,r)||n.head>0&&se(t,n.head-1,1,r)||r.afterCursor&&(se(t,n.head,1,r)||n.head<t.doc.length&&se(t,n.head+1,-1,r));o&&(e=e.concat(r.renderMatch(o,t)))}return k.set(e,!0)}const te=[/* @__PURE__ */g.fromClass(class{constructor(t){this.paused=!1,this.decorations=Zt(t.state)}update(t){(t.docChanged||t.selectionSet||this.paused)&&(t.view.composing?(this.decorations=this.decorations.map(t.changes),this.paused=!0):(this.decorations=Zt(t.state),this.paused=!1))}},{decorations:t=>t.decorations}),Gt];function ee(t={}){return[Kt.of(t),te]}const re=/* @__PURE__ */new t;function ne(e,r,n){let o=e.prop(r<0?t.openedBy:t.closedBy);if(o)return o;if(1==e.name.length){let t=n.indexOf(e.name);if(t>-1&&t%2==(r<0?1:0))return[n[t+r]]}return null}function oe(t){let e=t.type.prop(re);return e?e(t.node):t}function se(t,e,r,n={}){let o=n.maxScanDistance||1e4,s=n.brackets||_t,i=L(t),l=i.resolveInner(e,r);for(let a=l;a;a=a.parent){let n=ne(a.type,r,s);if(n&&a.from<a.to){let o=oe(a);if(o&&(r>0?e>=o.from&&e<o.to:e>o.from&&e<=o.to))return ie(t,e,r,a,o,n,s)}}return function(t,e,r,n,o,s,i){let l=r<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),a=i.indexOf(l);if(a<0||a%2==0!=r>0)return null;let c={from:r<0?e-1:e,to:r>0?e+1:e},h=t.doc.iterRange(e,r>0?t.doc.length:0),u=0;for(let f=0;!h.next().done&&f<=s;){let t=h.value;r<0&&(f+=t.length);let s=e+f*r;for(let e=r>0?0:t.length-1,l=r>0?t.length:-1;e!=l;e+=r){let l=i.indexOf(t[e]);if(!(l<0||n.resolveInner(s+e,1).type!=o))if(l%2==0==r>0)u++;else{if(1==u)return{start:c,end:{from:s+e,to:s+e+1},matched:l>>1==a>>1};u--}}r>0&&(f+=t.length)}return h.done?{start:c,matched:!1}:null}(t,e,r,i,l.type,o,s)}function ie(t,e,r,n,o,s,i){let l=n.parent,a={from:o.from,to:o.to},c=0,h=null==l?void 0:l.cursor();if(h&&(r<0?h.childBefore(n.from):h.childAfter(n.to)))do{if(r<0?h.to<=n.from:h.from>=n.to){if(0==c&&s.indexOf(h.type.name)>-1&&h.from<h.to){let t=oe(h);return{start:a,end:t?{from:t.from,to:t.to}:void 0,matched:!0}}if(ne(h.type,r,i))c++;else if(ne(h.type,-r,i)){if(0==c){let t=oe(h);return{start:a,end:t&&t.from<t.to?{from:t.from,to:t.to}:void 0,matched:!1}}c--}}}while(r<0?h.prevSibling():h.nextSibling());return{start:a,matched:!1}}const le=/* @__PURE__ */Object.create(null),ae=[s.none],ce=[],he=/* @__PURE__ */Object.create(null),ue=/* @__PURE__ */Object.create(null);for(let[pe,me]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])ue[pe]=/* @__PURE__ */de(le,me);function fe(t,e){ce.indexOf(t)>-1||(ce.push(t),console.warn(e))}function de(t,e){let r=[];for(let s of e.split(" ")){let e=[];for(let r of s.split(".")){let n=t[r]||C[r];n?"function"==typeof n?e.length?e=e.map(n):fe(r,`Modifier ${r} used at start of tag`):e.length?fe(r,`Tag ${r} used as modifier`):e=Array.isArray(n)?n:[n]:fe(r,`Unknown highlighting tag ${r}`)}for(let t of e)r.push(t)}if(!r.length)return 0;let n=e.replace(/ /g,"_"),o=n+" "+r.map(t=>t.id),i=he[o];if(i)return i.id;let l=he[o]=s.define({id:ae.length,name:n,props:[T({[n]:r})]});return ae.push(l),l.id}b.RTL,b.LTR;export{j as DocInput,Ft as HighlightStyle,X as IndentContext,E as LRLanguage,I as Language,H as LanguageSupport,W as ParseContext,rt as TreeIndentContext,ee as bracketMatching,re as bracketMatchingHandle,Nt as codeFolding,lt as continuedIndent,Vt as defaultHighlightStyle,P as defineLanguageFacet,ot as delimitedIndent,it as flatIndent,Tt as foldAll,At as foldCode,mt as foldEffect,Rt as foldGutter,ut as foldInside,Ot as foldKeymap,ht as foldNodeProp,ct as foldService,vt as foldState,dt as foldable,_ as getIndentUnit,Q as getIndentation,Y as indentNodeProp,at as indentOnInput,V as indentService,K as indentString,G as indentUnit,J as language,B as languageDataProp,se as matchBrackets,N as sublanguageProp,zt as syntaxHighlighting,L as syntaxTree,Dt as unfoldAll,St as unfoldCode,gt as unfoldEffect};
|
|
14
|
+
import { Tree as C, NodeProp as b, IterMode as Z, TreeFragment as M, Parser as Ie, NodeType as X } from "../../../@lezer/common/dist/index.js";
|
|
15
|
+
import { Facet as y, RangeSetBuilder as fe, EditorState as B, StateField as ce, Prec as Oe, combineConfig as ue, StateEffect as L, countColumn as Me, RangeSet as Ne } from "../../state/dist/index.js";
|
|
16
|
+
import { ViewPlugin as H, gutter as Ee, EditorView as w, GutterMarker as Fe, Decoration as g, logException as Le, WidgetType as he, Direction as _ } from "../../view/dist/index.js";
|
|
17
|
+
import { tagHighlighter as He, highlightTree as We, tags as u, styleTags as Re } from "../../../@lezer/highlight/dist/index.js";
|
|
18
|
+
import { StyleModule as ee } from "../../../style-mod/src/style-mod.js";
|
|
19
|
+
var $;
|
|
20
|
+
const A = /* @__PURE__ */ new b();
|
|
21
|
+
function Ue(n) {
|
|
22
|
+
return y.define({
|
|
23
|
+
combine: n ? (e) => e.concat(n) : void 0
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
const $e = /* @__PURE__ */ new b();
|
|
27
|
+
class m {
|
|
28
|
+
/**
|
|
29
|
+
Construct a language object. If you need to invoke this
|
|
30
|
+
directly, first define a data facet with
|
|
31
|
+
[`defineLanguageFacet`](https://codemirror.net/6/docs/ref/#language.defineLanguageFacet), and then
|
|
32
|
+
configure your parser to [attach](https://codemirror.net/6/docs/ref/#language.languageDataProp) it
|
|
33
|
+
to the language's outer syntax node.
|
|
34
|
+
*/
|
|
35
|
+
constructor(e, t, r = [], i = "") {
|
|
36
|
+
this.data = e, this.name = i, B.prototype.hasOwnProperty("tree") || Object.defineProperty(B.prototype, "tree", { get() {
|
|
37
|
+
return k(this);
|
|
38
|
+
} }), this.parser = t, this.extension = [
|
|
39
|
+
v.of(this),
|
|
40
|
+
B.languageData.of((o, s, a) => {
|
|
41
|
+
let l = te(o, s, a), f = l.type.prop(A);
|
|
42
|
+
if (!f)
|
|
43
|
+
return [];
|
|
44
|
+
let c = o.facet(f), h = l.type.prop($e);
|
|
45
|
+
if (h) {
|
|
46
|
+
let p = l.resolve(s - l.from, a);
|
|
47
|
+
for (let d of h)
|
|
48
|
+
if (d.test(p, o)) {
|
|
49
|
+
let S = o.facet(d.facet);
|
|
50
|
+
return d.type == "replace" ? S : S.concat(c);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return c;
|
|
54
|
+
})
|
|
55
|
+
].concat(r);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
Query whether this language is active at the given position.
|
|
59
|
+
*/
|
|
60
|
+
isActiveAt(e, t, r = -1) {
|
|
61
|
+
return te(e, t, r).type.prop(A) == this.data;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
Find the document regions that were parsed using this language.
|
|
65
|
+
The returned regions will _include_ any nested languages rooted
|
|
66
|
+
in this language, when those exist.
|
|
67
|
+
*/
|
|
68
|
+
findRegions(e) {
|
|
69
|
+
let t = e.facet(v);
|
|
70
|
+
if (t?.data == this.data)
|
|
71
|
+
return [{ from: 0, to: e.doc.length }];
|
|
72
|
+
if (!t || !t.allowsNesting)
|
|
73
|
+
return [];
|
|
74
|
+
let r = [], i = (o, s) => {
|
|
75
|
+
if (o.prop(A) == this.data) {
|
|
76
|
+
r.push({ from: s, to: s + o.length });
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
let a = o.prop(b.mounted);
|
|
80
|
+
if (a) {
|
|
81
|
+
if (a.tree.prop(A) == this.data) {
|
|
82
|
+
if (a.overlay)
|
|
83
|
+
for (let l of a.overlay)
|
|
84
|
+
r.push({ from: l.from + s, to: l.to + s });
|
|
85
|
+
else
|
|
86
|
+
r.push({ from: s, to: s + o.length });
|
|
87
|
+
return;
|
|
88
|
+
} else if (a.overlay) {
|
|
89
|
+
let l = r.length;
|
|
90
|
+
if (i(a.tree, a.overlay[0].from + s), r.length > l)
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
for (let l = 0; l < o.children.length; l++) {
|
|
95
|
+
let f = o.children[l];
|
|
96
|
+
f instanceof C && i(f, o.positions[l] + s);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
return i(k(e), 0), r;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
Indicates whether this language allows nested languages. The
|
|
103
|
+
default implementation returns true.
|
|
104
|
+
*/
|
|
105
|
+
get allowsNesting() {
|
|
106
|
+
return !0;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
m.setState = /* @__PURE__ */ L.define();
|
|
110
|
+
function te(n, e, t) {
|
|
111
|
+
let r = n.facet(v), i = k(n).topNode;
|
|
112
|
+
if (!r || r.allowsNesting)
|
|
113
|
+
for (let o = i; o; o = o.enter(e, t, Z.ExcludeBuffers | Z.EnterBracketed))
|
|
114
|
+
o.type.isTop && (i = o);
|
|
115
|
+
return i;
|
|
116
|
+
}
|
|
117
|
+
class J extends m {
|
|
118
|
+
constructor(e, t, r) {
|
|
119
|
+
super(e, t, [], r), this.parser = t;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
Define a language from a parser.
|
|
123
|
+
*/
|
|
124
|
+
static define(e) {
|
|
125
|
+
let t = Ue(e.languageData);
|
|
126
|
+
return new J(t, e.parser.configure({
|
|
127
|
+
props: [A.add((r) => r.isTop ? t : void 0)]
|
|
128
|
+
}), e.name);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
Create a new instance of this language with a reconfigured
|
|
132
|
+
version of its parser and optionally a new name.
|
|
133
|
+
*/
|
|
134
|
+
configure(e, t) {
|
|
135
|
+
return new J(this.data, this.parser.configure(e), t || this.name);
|
|
136
|
+
}
|
|
137
|
+
get allowsNesting() {
|
|
138
|
+
return this.parser.hasWrappers();
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
function k(n) {
|
|
142
|
+
let e = n.field(m.state, !1);
|
|
143
|
+
return e ? e.tree : C.empty;
|
|
144
|
+
}
|
|
145
|
+
class qe {
|
|
146
|
+
/**
|
|
147
|
+
Create an input object for the given document.
|
|
148
|
+
*/
|
|
149
|
+
constructor(e) {
|
|
150
|
+
this.doc = e, this.cursorPos = 0, this.string = "", this.cursor = e.iter();
|
|
151
|
+
}
|
|
152
|
+
get length() {
|
|
153
|
+
return this.doc.length;
|
|
154
|
+
}
|
|
155
|
+
syncTo(e) {
|
|
156
|
+
return this.string = this.cursor.next(e - this.cursorPos).value, this.cursorPos = e + this.string.length, this.cursorPos - this.string.length;
|
|
157
|
+
}
|
|
158
|
+
chunk(e) {
|
|
159
|
+
return this.syncTo(e), this.string;
|
|
160
|
+
}
|
|
161
|
+
get lineChunks() {
|
|
162
|
+
return !0;
|
|
163
|
+
}
|
|
164
|
+
read(e, t) {
|
|
165
|
+
let r = this.cursorPos - this.string.length;
|
|
166
|
+
return e < r || t >= this.cursorPos ? this.doc.sliceString(e, t) : this.string.slice(e - r, t - r);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
let P = null;
|
|
170
|
+
class N {
|
|
171
|
+
constructor(e, t, r = [], i, o, s, a, l) {
|
|
172
|
+
this.parser = e, this.state = t, this.fragments = r, this.tree = i, this.treeLen = o, this.viewport = s, this.skipped = a, this.scheduleOn = l, this.parse = null, this.tempSkipped = [];
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
@internal
|
|
176
|
+
*/
|
|
177
|
+
static create(e, t, r) {
|
|
178
|
+
return new N(e, t, [], C.empty, 0, r, [], null);
|
|
179
|
+
}
|
|
180
|
+
startParse() {
|
|
181
|
+
return this.parser.startParse(new qe(this.state.doc), this.fragments);
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
@internal
|
|
185
|
+
*/
|
|
186
|
+
work(e, t) {
|
|
187
|
+
return t != null && t >= this.state.doc.length && (t = void 0), this.tree != C.empty && this.isDone(t ?? this.state.doc.length) ? (this.takeTree(), !0) : this.withContext(() => {
|
|
188
|
+
var r;
|
|
189
|
+
if (typeof e == "number") {
|
|
190
|
+
let i = Date.now() + e;
|
|
191
|
+
e = () => Date.now() > i;
|
|
192
|
+
}
|
|
193
|
+
for (this.parse || (this.parse = this.startParse()), t != null && (this.parse.stoppedAt == null || this.parse.stoppedAt > t) && t < this.state.doc.length && this.parse.stopAt(t); ; ) {
|
|
194
|
+
let i = this.parse.advance();
|
|
195
|
+
if (i)
|
|
196
|
+
if (this.fragments = this.withoutTempSkipped(M.addTree(i, this.fragments, this.parse.stoppedAt != null)), this.treeLen = (r = this.parse.stoppedAt) !== null && r !== void 0 ? r : this.state.doc.length, this.tree = i, this.parse = null, this.treeLen < (t ?? this.state.doc.length))
|
|
197
|
+
this.parse = this.startParse();
|
|
198
|
+
else
|
|
199
|
+
return !0;
|
|
200
|
+
if (e())
|
|
201
|
+
return !1;
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
@internal
|
|
207
|
+
*/
|
|
208
|
+
takeTree() {
|
|
209
|
+
let e, t;
|
|
210
|
+
this.parse && (e = this.parse.parsedPos) >= this.treeLen && ((this.parse.stoppedAt == null || this.parse.stoppedAt > e) && this.parse.stopAt(e), this.withContext(() => {
|
|
211
|
+
for (; !(t = this.parse.advance()); )
|
|
212
|
+
;
|
|
213
|
+
}), this.treeLen = e, this.tree = t, this.fragments = this.withoutTempSkipped(M.addTree(this.tree, this.fragments, !0)), this.parse = null);
|
|
214
|
+
}
|
|
215
|
+
withContext(e) {
|
|
216
|
+
let t = P;
|
|
217
|
+
P = this;
|
|
218
|
+
try {
|
|
219
|
+
return e();
|
|
220
|
+
} finally {
|
|
221
|
+
P = t;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
withoutTempSkipped(e) {
|
|
225
|
+
for (let t; t = this.tempSkipped.pop(); )
|
|
226
|
+
e = ne(e, t.from, t.to);
|
|
227
|
+
return e;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
@internal
|
|
231
|
+
*/
|
|
232
|
+
changes(e, t) {
|
|
233
|
+
let { fragments: r, tree: i, treeLen: o, viewport: s, skipped: a } = this;
|
|
234
|
+
if (this.takeTree(), !e.empty) {
|
|
235
|
+
let l = [];
|
|
236
|
+
if (e.iterChangedRanges((f, c, h, p) => l.push({ fromA: f, toA: c, fromB: h, toB: p })), r = M.applyChanges(r, l), i = C.empty, o = 0, s = { from: e.mapPos(s.from, -1), to: e.mapPos(s.to, 1) }, this.skipped.length) {
|
|
237
|
+
a = [];
|
|
238
|
+
for (let f of this.skipped) {
|
|
239
|
+
let c = e.mapPos(f.from, 1), h = e.mapPos(f.to, -1);
|
|
240
|
+
c < h && a.push({ from: c, to: h });
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
return new N(this.parser, t, r, i, o, s, a, this.scheduleOn);
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
@internal
|
|
248
|
+
*/
|
|
249
|
+
updateViewport(e) {
|
|
250
|
+
if (this.viewport.from == e.from && this.viewport.to == e.to)
|
|
251
|
+
return !1;
|
|
252
|
+
this.viewport = e;
|
|
253
|
+
let t = this.skipped.length;
|
|
254
|
+
for (let r = 0; r < this.skipped.length; r++) {
|
|
255
|
+
let { from: i, to: o } = this.skipped[r];
|
|
256
|
+
i < e.to && o > e.from && (this.fragments = ne(this.fragments, i, o), this.skipped.splice(r--, 1));
|
|
257
|
+
}
|
|
258
|
+
return this.skipped.length >= t ? !1 : (this.reset(), !0);
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
@internal
|
|
262
|
+
*/
|
|
263
|
+
reset() {
|
|
264
|
+
this.parse && (this.takeTree(), this.parse = null);
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
Notify the parse scheduler that the given region was skipped
|
|
268
|
+
because it wasn't in view, and the parse should be restarted
|
|
269
|
+
when it comes into view.
|
|
270
|
+
*/
|
|
271
|
+
skipUntilInView(e, t) {
|
|
272
|
+
this.skipped.push({ from: e, to: t });
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
Returns a parser intended to be used as placeholder when
|
|
276
|
+
asynchronously loading a nested parser. It'll skip its input and
|
|
277
|
+
mark it as not-really-parsed, so that the next update will parse
|
|
278
|
+
it again.
|
|
279
|
+
|
|
280
|
+
When `until` is given, a reparse will be scheduled when that
|
|
281
|
+
promise resolves.
|
|
282
|
+
*/
|
|
283
|
+
static getSkippingParser(e) {
|
|
284
|
+
return new class extends Ie {
|
|
285
|
+
createParse(t, r, i) {
|
|
286
|
+
let o = i[0].from, s = i[i.length - 1].to;
|
|
287
|
+
return {
|
|
288
|
+
parsedPos: o,
|
|
289
|
+
advance() {
|
|
290
|
+
let l = P;
|
|
291
|
+
if (l) {
|
|
292
|
+
for (let f of i)
|
|
293
|
+
l.tempSkipped.push(f);
|
|
294
|
+
e && (l.scheduleOn = l.scheduleOn ? Promise.all([l.scheduleOn, e]) : e);
|
|
295
|
+
}
|
|
296
|
+
return this.parsedPos = s, new C(X.none, [], [], s - o);
|
|
297
|
+
},
|
|
298
|
+
stoppedAt: null,
|
|
299
|
+
stopAt() {
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
}();
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
@internal
|
|
307
|
+
*/
|
|
308
|
+
isDone(e) {
|
|
309
|
+
e = Math.min(e, this.state.doc.length);
|
|
310
|
+
let t = this.fragments;
|
|
311
|
+
return this.treeLen >= e && t.length && t[0].from == 0 && t[0].to >= e;
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
Get the context for the current parse, or `null` if no editor
|
|
315
|
+
parse is in progress.
|
|
316
|
+
*/
|
|
317
|
+
static get() {
|
|
318
|
+
return P;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
function ne(n, e, t) {
|
|
322
|
+
return M.applyChanges(n, [{ fromA: e, toA: t, fromB: e, toB: t }]);
|
|
323
|
+
}
|
|
324
|
+
class D {
|
|
325
|
+
constructor(e) {
|
|
326
|
+
this.context = e, this.tree = e.tree;
|
|
327
|
+
}
|
|
328
|
+
apply(e) {
|
|
329
|
+
if (!e.docChanged && this.tree == this.context.tree)
|
|
330
|
+
return this;
|
|
331
|
+
let t = this.context.changes(e.changes, e.state), r = this.context.treeLen == e.startState.doc.length ? void 0 : Math.max(e.changes.mapPos(this.context.treeLen), t.viewport.to);
|
|
332
|
+
return t.work(20, r) || t.takeTree(), new D(t);
|
|
333
|
+
}
|
|
334
|
+
static init(e) {
|
|
335
|
+
let t = Math.min(3e3, e.doc.length), r = N.create(e.facet(v).parser, e, { from: 0, to: t });
|
|
336
|
+
return r.work(20, t) || r.takeTree(), new D(r);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
m.state = /* @__PURE__ */ ce.define({
|
|
340
|
+
create: D.init,
|
|
341
|
+
update(n, e) {
|
|
342
|
+
for (let t of e.effects)
|
|
343
|
+
if (t.is(m.setState))
|
|
344
|
+
return t.value;
|
|
345
|
+
return e.startState.facet(v) != e.state.facet(v) ? D.init(e.state) : n.apply(e);
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
let de = (n) => {
|
|
349
|
+
let e = setTimeout(
|
|
350
|
+
() => n(),
|
|
351
|
+
500
|
|
352
|
+
/* Work.MaxPause */
|
|
353
|
+
);
|
|
354
|
+
return () => clearTimeout(e);
|
|
355
|
+
};
|
|
356
|
+
typeof requestIdleCallback < "u" && (de = (n) => {
|
|
357
|
+
let e = -1, t = setTimeout(
|
|
358
|
+
() => {
|
|
359
|
+
e = requestIdleCallback(n, {
|
|
360
|
+
timeout: 400
|
|
361
|
+
/* Work.MinPause */
|
|
362
|
+
});
|
|
363
|
+
},
|
|
364
|
+
100
|
|
365
|
+
/* Work.MinPause */
|
|
366
|
+
);
|
|
367
|
+
return () => e < 0 ? clearTimeout(t) : cancelIdleCallback(e);
|
|
368
|
+
});
|
|
369
|
+
const q = typeof navigator < "u" && (!(($ = navigator.scheduling) === null || $ === void 0) && $.isInputPending) ? () => navigator.scheduling.isInputPending() : null, je = /* @__PURE__ */ H.fromClass(class {
|
|
370
|
+
constructor(e) {
|
|
371
|
+
this.view = e, this.working = null, this.workScheduled = 0, this.chunkEnd = -1, this.chunkBudget = -1, this.work = this.work.bind(this), this.scheduleWork();
|
|
372
|
+
}
|
|
373
|
+
update(e) {
|
|
374
|
+
let t = this.view.state.field(m.state).context;
|
|
375
|
+
(t.updateViewport(e.view.viewport) || this.view.viewport.to > t.treeLen) && this.scheduleWork(), (e.docChanged || e.selectionSet) && (this.view.hasFocus && (this.chunkBudget += 50), this.scheduleWork()), this.checkAsyncSchedule(t);
|
|
376
|
+
}
|
|
377
|
+
scheduleWork() {
|
|
378
|
+
if (this.working)
|
|
379
|
+
return;
|
|
380
|
+
let { state: e } = this.view, t = e.field(m.state);
|
|
381
|
+
(t.tree != t.context.tree || !t.context.isDone(e.doc.length)) && (this.working = de(this.work));
|
|
382
|
+
}
|
|
383
|
+
work(e) {
|
|
384
|
+
this.working = null;
|
|
385
|
+
let t = Date.now();
|
|
386
|
+
if (this.chunkEnd < t && (this.chunkEnd < 0 || this.view.hasFocus) && (this.chunkEnd = t + 3e4, this.chunkBudget = 3e3), this.chunkBudget <= 0)
|
|
387
|
+
return;
|
|
388
|
+
let { state: r, viewport: { to: i } } = this.view, o = r.field(m.state);
|
|
389
|
+
if (o.tree == o.context.tree && o.context.isDone(
|
|
390
|
+
i + 1e5
|
|
391
|
+
/* Work.MaxParseAhead */
|
|
392
|
+
))
|
|
393
|
+
return;
|
|
394
|
+
let s = Date.now() + Math.min(this.chunkBudget, 100, e && !q ? Math.max(25, e.timeRemaining() - 5) : 1e9), a = o.context.treeLen < i && r.doc.length > i + 1e3, l = o.context.work(() => q && q() || Date.now() > s, i + (a ? 0 : 1e5));
|
|
395
|
+
this.chunkBudget -= Date.now() - t, (l || this.chunkBudget <= 0) && (o.context.takeTree(), this.view.dispatch({ effects: m.setState.of(new D(o.context)) })), this.chunkBudget > 0 && !(l && !a) && this.scheduleWork(), this.checkAsyncSchedule(o.context);
|
|
396
|
+
}
|
|
397
|
+
checkAsyncSchedule(e) {
|
|
398
|
+
e.scheduleOn && (this.workScheduled++, e.scheduleOn.then(() => this.scheduleWork()).catch((t) => Le(this.view.state, t)).then(() => this.workScheduled--), e.scheduleOn = null);
|
|
399
|
+
}
|
|
400
|
+
destroy() {
|
|
401
|
+
this.working && this.working();
|
|
402
|
+
}
|
|
403
|
+
isWorking() {
|
|
404
|
+
return !!(this.working || this.workScheduled > 0);
|
|
405
|
+
}
|
|
406
|
+
}, {
|
|
407
|
+
eventHandlers: { focus() {
|
|
408
|
+
this.scheduleWork();
|
|
409
|
+
} }
|
|
410
|
+
}), v = /* @__PURE__ */ y.define({
|
|
411
|
+
combine(n) {
|
|
412
|
+
return n.length ? n[0] : null;
|
|
413
|
+
},
|
|
414
|
+
enables: (n) => [
|
|
415
|
+
m.state,
|
|
416
|
+
je,
|
|
417
|
+
w.contentAttributes.compute([n], (e) => {
|
|
418
|
+
let t = e.facet(n);
|
|
419
|
+
return t && t.name ? { "data-language": t.name } : {};
|
|
420
|
+
})
|
|
421
|
+
]
|
|
422
|
+
});
|
|
423
|
+
class Ft {
|
|
424
|
+
/**
|
|
425
|
+
Create a language support object.
|
|
426
|
+
*/
|
|
427
|
+
constructor(e, t = []) {
|
|
428
|
+
this.language = e, this.support = t, this.extension = [e, t];
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
const ze = /* @__PURE__ */ y.define(), pe = /* @__PURE__ */ y.define({
|
|
432
|
+
combine: (n) => {
|
|
433
|
+
if (!n.length)
|
|
434
|
+
return " ";
|
|
435
|
+
let e = n[0];
|
|
436
|
+
if (!e || /\S/.test(e) || Array.from(e).some((t) => t != e[0]))
|
|
437
|
+
throw new Error("Invalid indent unit: " + JSON.stringify(n[0]));
|
|
438
|
+
return e;
|
|
439
|
+
}
|
|
440
|
+
});
|
|
441
|
+
function Ge(n) {
|
|
442
|
+
let e = n.facet(pe);
|
|
443
|
+
return e.charCodeAt(0) == 9 ? n.tabSize * e.length : e.length;
|
|
444
|
+
}
|
|
445
|
+
function Je(n, e) {
|
|
446
|
+
let t = "", r = n.tabSize, i = n.facet(pe)[0];
|
|
447
|
+
if (i == " ") {
|
|
448
|
+
for (; e >= r; )
|
|
449
|
+
t += " ", e -= r;
|
|
450
|
+
i = " ";
|
|
451
|
+
}
|
|
452
|
+
for (let o = 0; o < e; o++)
|
|
453
|
+
t += i;
|
|
454
|
+
return t;
|
|
455
|
+
}
|
|
456
|
+
function Ve(n, e) {
|
|
457
|
+
n instanceof B && (n = new me(n));
|
|
458
|
+
for (let r of n.state.facet(ze)) {
|
|
459
|
+
let i = r(n, e);
|
|
460
|
+
if (i !== void 0)
|
|
461
|
+
return i;
|
|
462
|
+
}
|
|
463
|
+
let t = k(n.state);
|
|
464
|
+
return t.length >= e ? Qe(n, t, e) : null;
|
|
465
|
+
}
|
|
466
|
+
class me {
|
|
467
|
+
/**
|
|
468
|
+
Create an indent context.
|
|
469
|
+
*/
|
|
470
|
+
constructor(e, t = {}) {
|
|
471
|
+
this.state = e, this.options = t, this.unit = Ge(e);
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
Get a description of the line at the given position, taking
|
|
475
|
+
[simulated line
|
|
476
|
+
breaks](https://codemirror.net/6/docs/ref/#language.IndentContext.constructor^options.simulateBreak)
|
|
477
|
+
into account. If there is such a break at `pos`, the `bias`
|
|
478
|
+
argument determines whether the part of the line line before or
|
|
479
|
+
after the break is used.
|
|
480
|
+
*/
|
|
481
|
+
lineAt(e, t = 1) {
|
|
482
|
+
let r = this.state.doc.lineAt(e), { simulateBreak: i, simulateDoubleBreak: o } = this.options;
|
|
483
|
+
return i != null && i >= r.from && i <= r.to ? o && i == e ? { text: "", from: e } : (t < 0 ? i < e : i <= e) ? { text: r.text.slice(i - r.from), from: i } : { text: r.text.slice(0, i - r.from), from: r.from } : r;
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
Get the text directly after `pos`, either the entire line
|
|
487
|
+
or the next 100 characters, whichever is shorter.
|
|
488
|
+
*/
|
|
489
|
+
textAfterPos(e, t = 1) {
|
|
490
|
+
if (this.options.simulateDoubleBreak && e == this.options.simulateBreak)
|
|
491
|
+
return "";
|
|
492
|
+
let { text: r, from: i } = this.lineAt(e, t);
|
|
493
|
+
return r.slice(e - i, Math.min(r.length, e + 100 - i));
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
Find the column for the given position.
|
|
497
|
+
*/
|
|
498
|
+
column(e, t = 1) {
|
|
499
|
+
let { text: r, from: i } = this.lineAt(e, t), o = this.countColumn(r, e - i), s = this.options.overrideIndentation ? this.options.overrideIndentation(i) : -1;
|
|
500
|
+
return s > -1 && (o += s - this.countColumn(r, r.search(/\S|$/))), o;
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
Find the column position (taking tabs into account) of the given
|
|
504
|
+
position in the given string.
|
|
505
|
+
*/
|
|
506
|
+
countColumn(e, t = e.length) {
|
|
507
|
+
return Me(e, this.state.tabSize, t);
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
Find the indentation column of the line at the given point.
|
|
511
|
+
*/
|
|
512
|
+
lineIndent(e, t = 1) {
|
|
513
|
+
let { text: r, from: i } = this.lineAt(e, t), o = this.options.overrideIndentation;
|
|
514
|
+
if (o) {
|
|
515
|
+
let s = o(i);
|
|
516
|
+
if (s > -1)
|
|
517
|
+
return s;
|
|
518
|
+
}
|
|
519
|
+
return this.countColumn(r, r.search(/\S|$/));
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
Returns the [simulated line
|
|
523
|
+
break](https://codemirror.net/6/docs/ref/#language.IndentContext.constructor^options.simulateBreak)
|
|
524
|
+
for this context, if any.
|
|
525
|
+
*/
|
|
526
|
+
get simulatedBreak() {
|
|
527
|
+
return this.options.simulateBreak || null;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
const Ke = /* @__PURE__ */ new b();
|
|
531
|
+
function Qe(n, e, t) {
|
|
532
|
+
let r = e.resolveStack(t), i = e.resolveInner(t, -1).resolve(t, 0).enterUnfinishedNodesBefore(t);
|
|
533
|
+
if (i != r.node) {
|
|
534
|
+
let o = [];
|
|
535
|
+
for (let s = i; s && !(s.from < r.node.from || s.to > r.node.to || s.from == r.node.from && s.type == r.node.type); s = s.parent)
|
|
536
|
+
o.push(s);
|
|
537
|
+
for (let s = o.length - 1; s >= 0; s--)
|
|
538
|
+
r = { node: o[s], next: r };
|
|
539
|
+
}
|
|
540
|
+
return ge(r, n, t);
|
|
541
|
+
}
|
|
542
|
+
function ge(n, e, t) {
|
|
543
|
+
for (let r = n; r; r = r.next) {
|
|
544
|
+
let i = Ye(r.node);
|
|
545
|
+
if (i)
|
|
546
|
+
return i(Y.create(e, t, r));
|
|
547
|
+
}
|
|
548
|
+
return 0;
|
|
549
|
+
}
|
|
550
|
+
function Xe(n) {
|
|
551
|
+
return n.pos == n.options.simulateBreak && n.options.simulateDoubleBreak;
|
|
552
|
+
}
|
|
553
|
+
function Ye(n) {
|
|
554
|
+
let e = n.type.prop(Ke);
|
|
555
|
+
if (e)
|
|
556
|
+
return e;
|
|
557
|
+
let t = n.firstChild, r;
|
|
558
|
+
if (t && (r = t.type.prop(b.closedBy))) {
|
|
559
|
+
let i = n.lastChild, o = i && r.indexOf(i.name) > -1;
|
|
560
|
+
return (s) => ke(s, !0, 1, void 0, o && !Xe(s) ? i.from : void 0);
|
|
561
|
+
}
|
|
562
|
+
return n.parent == null ? Ze : null;
|
|
563
|
+
}
|
|
564
|
+
function Ze() {
|
|
565
|
+
return 0;
|
|
566
|
+
}
|
|
567
|
+
class Y extends me {
|
|
568
|
+
constructor(e, t, r) {
|
|
569
|
+
super(e.state, e.options), this.base = e, this.pos = t, this.context = r;
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
The syntax tree node to which the indentation strategy
|
|
573
|
+
applies.
|
|
574
|
+
*/
|
|
575
|
+
get node() {
|
|
576
|
+
return this.context.node;
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
@internal
|
|
580
|
+
*/
|
|
581
|
+
static create(e, t, r) {
|
|
582
|
+
return new Y(e, t, r);
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
Get the text directly after `this.pos`, either the entire line
|
|
586
|
+
or the next 100 characters, whichever is shorter.
|
|
587
|
+
*/
|
|
588
|
+
get textAfter() {
|
|
589
|
+
return this.textAfterPos(this.pos);
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
Get the indentation at the reference line for `this.node`, which
|
|
593
|
+
is the line on which it starts, unless there is a node that is
|
|
594
|
+
_not_ a parent of this node covering the start of that line. If
|
|
595
|
+
so, the line at the start of that node is tried, again skipping
|
|
596
|
+
on if it is covered by another such node.
|
|
597
|
+
*/
|
|
598
|
+
get baseIndent() {
|
|
599
|
+
return this.baseIndentFor(this.node);
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
Get the indentation for the reference line of the given node
|
|
603
|
+
(see [`baseIndent`](https://codemirror.net/6/docs/ref/#language.TreeIndentContext.baseIndent)).
|
|
604
|
+
*/
|
|
605
|
+
baseIndentFor(e) {
|
|
606
|
+
let t = this.state.doc.lineAt(e.from);
|
|
607
|
+
for (; ; ) {
|
|
608
|
+
let r = e.resolve(t.from);
|
|
609
|
+
for (; r.parent && r.parent.from == r.from; )
|
|
610
|
+
r = r.parent;
|
|
611
|
+
if (_e(r, e))
|
|
612
|
+
break;
|
|
613
|
+
t = this.state.doc.lineAt(r.from);
|
|
614
|
+
}
|
|
615
|
+
return this.lineIndent(t.from);
|
|
616
|
+
}
|
|
617
|
+
/**
|
|
618
|
+
Continue looking for indentations in the node's parent nodes,
|
|
619
|
+
and return the result of that.
|
|
620
|
+
*/
|
|
621
|
+
continue() {
|
|
622
|
+
return ge(this.context.next, this.base, this.pos);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
function _e(n, e) {
|
|
626
|
+
for (let t = e; t; t = t.parent)
|
|
627
|
+
if (n == t)
|
|
628
|
+
return !0;
|
|
629
|
+
return !1;
|
|
630
|
+
}
|
|
631
|
+
function et(n) {
|
|
632
|
+
let e = n.node, t = e.childAfter(e.from), r = e.lastChild;
|
|
633
|
+
if (!t)
|
|
634
|
+
return null;
|
|
635
|
+
let i = n.options.simulateBreak, o = n.state.doc.lineAt(t.from), s = i == null || i <= o.from ? o.to : Math.min(o.to, i);
|
|
636
|
+
for (let a = t.to; ; ) {
|
|
637
|
+
let l = e.childAfter(a);
|
|
638
|
+
if (!l || l == r)
|
|
639
|
+
return null;
|
|
640
|
+
if (!l.type.isSkipped) {
|
|
641
|
+
if (l.from >= s)
|
|
642
|
+
return null;
|
|
643
|
+
let f = /^ */.exec(o.text.slice(t.to - o.from))[0].length;
|
|
644
|
+
return { from: t.from, to: t.to + f };
|
|
645
|
+
}
|
|
646
|
+
a = l.to;
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
function Lt({ closing: n, align: e = !0, units: t = 1 }) {
|
|
650
|
+
return (r) => ke(r, e, t, n);
|
|
651
|
+
}
|
|
652
|
+
function ke(n, e, t, r, i) {
|
|
653
|
+
let o = n.textAfter, s = o.match(/^\s*/)[0].length, a = r && o.slice(s, s + r.length) == r || i == n.pos + s, l = e ? et(n) : null;
|
|
654
|
+
return l ? a ? n.column(l.from) : n.column(l.to) : n.baseIndent + (a ? 0 : n.unit * t);
|
|
655
|
+
}
|
|
656
|
+
const Ht = (n) => n.baseIndent;
|
|
657
|
+
function Wt({ except: n, units: e = 1 } = {}) {
|
|
658
|
+
return (t) => {
|
|
659
|
+
let r = n && n.test(t.textAfter);
|
|
660
|
+
return t.baseIndent + (r ? 0 : e * t.unit);
|
|
661
|
+
};
|
|
662
|
+
}
|
|
663
|
+
const tt = 200;
|
|
664
|
+
function Rt() {
|
|
665
|
+
return B.transactionFilter.of((n) => {
|
|
666
|
+
if (!n.docChanged || !n.isUserEvent("input.type") && !n.isUserEvent("input.complete"))
|
|
667
|
+
return n;
|
|
668
|
+
let e = n.startState.languageDataAt("indentOnInput", n.startState.selection.main.head);
|
|
669
|
+
if (!e.length)
|
|
670
|
+
return n;
|
|
671
|
+
let t = n.newDoc, { head: r } = n.newSelection.main, i = t.lineAt(r);
|
|
672
|
+
if (r > i.from + tt)
|
|
673
|
+
return n;
|
|
674
|
+
let o = t.sliceString(i.from, r);
|
|
675
|
+
if (!e.some((f) => f.test(o)))
|
|
676
|
+
return n;
|
|
677
|
+
let { state: s } = n, a = -1, l = [];
|
|
678
|
+
for (let { head: f } of s.selection.ranges) {
|
|
679
|
+
let c = s.doc.lineAt(f);
|
|
680
|
+
if (c.from == a)
|
|
681
|
+
continue;
|
|
682
|
+
a = c.from;
|
|
683
|
+
let h = Ve(s, c.from);
|
|
684
|
+
if (h == null)
|
|
685
|
+
continue;
|
|
686
|
+
let p = /^\s*/.exec(c.text)[0], d = Je(s, h);
|
|
687
|
+
p != d && l.push({ from: c.from, to: c.from + p.length, insert: d });
|
|
688
|
+
}
|
|
689
|
+
return l.length ? [n, { changes: l, sequential: !0 }] : n;
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
const nt = /* @__PURE__ */ y.define(), rt = /* @__PURE__ */ new b();
|
|
693
|
+
function Ut(n) {
|
|
694
|
+
let e = n.firstChild, t = n.lastChild;
|
|
695
|
+
return e && e.to < t.from ? { from: e.to, to: t.type.isError ? n.to : t.from } : null;
|
|
696
|
+
}
|
|
697
|
+
function it(n, e, t) {
|
|
698
|
+
let r = k(n);
|
|
699
|
+
if (r.length < t)
|
|
700
|
+
return null;
|
|
701
|
+
let i = r.resolveStack(t, 1), o = null;
|
|
702
|
+
for (let s = i; s; s = s.next) {
|
|
703
|
+
let a = s.node;
|
|
704
|
+
if (a.to <= t || a.from > t)
|
|
705
|
+
continue;
|
|
706
|
+
if (o && a.from < e)
|
|
707
|
+
break;
|
|
708
|
+
let l = a.type.prop(rt);
|
|
709
|
+
if (l && (a.to < r.length - 50 || r.length == n.doc.length || !ot(a))) {
|
|
710
|
+
let f = l(a, n);
|
|
711
|
+
f && f.from <= t && f.from >= e && f.to > t && (o = f);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
return o;
|
|
715
|
+
}
|
|
716
|
+
function ot(n) {
|
|
717
|
+
let e = n.lastChild;
|
|
718
|
+
return e && e.to == n.to && e.type.isError;
|
|
719
|
+
}
|
|
720
|
+
function E(n, e, t) {
|
|
721
|
+
for (let r of n.facet(nt)) {
|
|
722
|
+
let i = r(n, e, t);
|
|
723
|
+
if (i)
|
|
724
|
+
return i;
|
|
725
|
+
}
|
|
726
|
+
return it(n, e, t);
|
|
727
|
+
}
|
|
728
|
+
function be(n, e) {
|
|
729
|
+
let t = e.mapPos(n.from, 1), r = e.mapPos(n.to, -1);
|
|
730
|
+
return t >= r ? void 0 : { from: t, to: r };
|
|
731
|
+
}
|
|
732
|
+
const W = /* @__PURE__ */ L.define({ map: be }), I = /* @__PURE__ */ L.define({ map: be });
|
|
733
|
+
function ye(n) {
|
|
734
|
+
let e = [];
|
|
735
|
+
for (let { head: t } of n.state.selection.ranges)
|
|
736
|
+
e.some((r) => r.from <= t && r.to >= t) || e.push(n.lineBlockAt(t));
|
|
737
|
+
return e;
|
|
738
|
+
}
|
|
739
|
+
const x = /* @__PURE__ */ ce.define({
|
|
740
|
+
create() {
|
|
741
|
+
return g.none;
|
|
742
|
+
},
|
|
743
|
+
update(n, e) {
|
|
744
|
+
e.isUserEvent("delete") && e.changes.iterChangedRanges((t, r) => n = re(n, t, r)), n = n.map(e.changes);
|
|
745
|
+
for (let t of e.effects)
|
|
746
|
+
if (t.is(W) && !st(n, t.value.from, t.value.to)) {
|
|
747
|
+
let { preparePlaceholder: r } = e.state.facet(xe), i = r ? g.replace({ widget: new ht(r(e.state, t.value)) }) : ie;
|
|
748
|
+
n = n.update({ add: [i.range(t.value.from, t.value.to)] });
|
|
749
|
+
} else t.is(I) && (n = n.update({
|
|
750
|
+
filter: (r, i) => t.value.from != r || t.value.to != i,
|
|
751
|
+
filterFrom: t.value.from,
|
|
752
|
+
filterTo: t.value.to
|
|
753
|
+
}));
|
|
754
|
+
return e.selection && (n = re(n, e.selection.main.head)), n;
|
|
755
|
+
},
|
|
756
|
+
provide: (n) => w.decorations.from(n),
|
|
757
|
+
toJSON(n, e) {
|
|
758
|
+
let t = [];
|
|
759
|
+
return n.between(0, e.doc.length, (r, i) => {
|
|
760
|
+
t.push(r, i);
|
|
761
|
+
}), t;
|
|
762
|
+
},
|
|
763
|
+
fromJSON(n) {
|
|
764
|
+
if (!Array.isArray(n) || n.length % 2)
|
|
765
|
+
throw new RangeError("Invalid JSON for fold state");
|
|
766
|
+
let e = [];
|
|
767
|
+
for (let t = 0; t < n.length; ) {
|
|
768
|
+
let r = n[t++], i = n[t++];
|
|
769
|
+
if (typeof r != "number" || typeof i != "number")
|
|
770
|
+
throw new RangeError("Invalid JSON for fold state");
|
|
771
|
+
e.push(ie.range(r, i));
|
|
772
|
+
}
|
|
773
|
+
return g.set(e, !0);
|
|
774
|
+
}
|
|
775
|
+
});
|
|
776
|
+
function re(n, e, t = e) {
|
|
777
|
+
let r = !1;
|
|
778
|
+
return n.between(e, t, (i, o) => {
|
|
779
|
+
i < t && o > e && (r = !0);
|
|
780
|
+
}), r ? n.update({
|
|
781
|
+
filterFrom: e,
|
|
782
|
+
filterTo: t,
|
|
783
|
+
filter: (i, o) => i >= t || o <= e
|
|
784
|
+
}) : n;
|
|
785
|
+
}
|
|
786
|
+
function F(n, e, t) {
|
|
787
|
+
var r;
|
|
788
|
+
let i = null;
|
|
789
|
+
return (r = n.field(x, !1)) === null || r === void 0 || r.between(e, t, (o, s) => {
|
|
790
|
+
(!i || i.from > o) && (i = { from: o, to: s });
|
|
791
|
+
}), i;
|
|
792
|
+
}
|
|
793
|
+
function st(n, e, t) {
|
|
794
|
+
let r = !1;
|
|
795
|
+
return n.between(e, e, (i, o) => {
|
|
796
|
+
i == e && o == t && (r = !0);
|
|
797
|
+
}), r;
|
|
798
|
+
}
|
|
799
|
+
function we(n, e) {
|
|
800
|
+
return n.field(x, !1) ? e : e.concat(L.appendConfig.of(Se()));
|
|
801
|
+
}
|
|
802
|
+
const lt = (n) => {
|
|
803
|
+
for (let e of ye(n)) {
|
|
804
|
+
let t = E(n.state, e.from, e.to);
|
|
805
|
+
if (t)
|
|
806
|
+
return n.dispatch({ effects: we(n.state, [W.of(t), ve(n, t)]) }), !0;
|
|
807
|
+
}
|
|
808
|
+
return !1;
|
|
809
|
+
}, at = (n) => {
|
|
810
|
+
if (!n.state.field(x, !1))
|
|
811
|
+
return !1;
|
|
812
|
+
let e = [];
|
|
813
|
+
for (let t of ye(n)) {
|
|
814
|
+
let r = F(n.state, t.from, t.to);
|
|
815
|
+
r && e.push(I.of(r), ve(n, r, !1));
|
|
816
|
+
}
|
|
817
|
+
return e.length && n.dispatch({ effects: e }), e.length > 0;
|
|
818
|
+
};
|
|
819
|
+
function ve(n, e, t = !0) {
|
|
820
|
+
let r = n.state.doc.lineAt(e.from).number, i = n.state.doc.lineAt(e.to).number;
|
|
821
|
+
return w.announce.of(`${n.state.phrase(t ? "Folded lines" : "Unfolded lines")} ${r} ${n.state.phrase("to")} ${i}.`);
|
|
822
|
+
}
|
|
823
|
+
const ft = (n) => {
|
|
824
|
+
let { state: e } = n, t = [];
|
|
825
|
+
for (let r = 0; r < e.doc.length; ) {
|
|
826
|
+
let i = n.lineBlockAt(r), o = E(e, i.from, i.to);
|
|
827
|
+
o && t.push(W.of(o)), r = (o ? n.lineBlockAt(o.to) : i).to + 1;
|
|
828
|
+
}
|
|
829
|
+
return t.length && n.dispatch({ effects: we(n.state, t) }), !!t.length;
|
|
830
|
+
}, ct = (n) => {
|
|
831
|
+
let e = n.state.field(x, !1);
|
|
832
|
+
if (!e || !e.size)
|
|
833
|
+
return !1;
|
|
834
|
+
let t = [];
|
|
835
|
+
return e.between(0, n.state.doc.length, (r, i) => {
|
|
836
|
+
t.push(I.of({ from: r, to: i }));
|
|
837
|
+
}), n.dispatch({ effects: t }), !0;
|
|
838
|
+
}, $t = [
|
|
839
|
+
{ key: "Ctrl-Shift-[", mac: "Cmd-Alt-[", run: lt },
|
|
840
|
+
{ key: "Ctrl-Shift-]", mac: "Cmd-Alt-]", run: at },
|
|
841
|
+
{ key: "Ctrl-Alt-[", run: ft },
|
|
842
|
+
{ key: "Ctrl-Alt-]", run: ct }
|
|
843
|
+
], ut = {
|
|
844
|
+
placeholderDOM: null,
|
|
845
|
+
preparePlaceholder: null,
|
|
846
|
+
placeholderText: "…"
|
|
847
|
+
}, xe = /* @__PURE__ */ y.define({
|
|
848
|
+
combine(n) {
|
|
849
|
+
return ue(n, ut);
|
|
850
|
+
}
|
|
851
|
+
});
|
|
852
|
+
function Se(n) {
|
|
853
|
+
return [x, pt];
|
|
854
|
+
}
|
|
855
|
+
function Te(n, e) {
|
|
856
|
+
let { state: t } = n, r = t.facet(xe), i = (s) => {
|
|
857
|
+
let a = n.lineBlockAt(n.posAtDOM(s.target)), l = F(n.state, a.from, a.to);
|
|
858
|
+
l && n.dispatch({ effects: I.of(l) }), s.preventDefault();
|
|
859
|
+
};
|
|
860
|
+
if (r.placeholderDOM)
|
|
861
|
+
return r.placeholderDOM(n, i, e);
|
|
862
|
+
let o = document.createElement("span");
|
|
863
|
+
return o.textContent = r.placeholderText, o.setAttribute("aria-label", t.phrase("folded code")), o.title = t.phrase("unfold"), o.className = "cm-foldPlaceholder", o.onclick = i, o;
|
|
864
|
+
}
|
|
865
|
+
const ie = /* @__PURE__ */ g.replace({ widget: /* @__PURE__ */ new class extends he {
|
|
866
|
+
toDOM(n) {
|
|
867
|
+
return Te(n, null);
|
|
868
|
+
}
|
|
869
|
+
}() });
|
|
870
|
+
class ht extends he {
|
|
871
|
+
constructor(e) {
|
|
872
|
+
super(), this.value = e;
|
|
873
|
+
}
|
|
874
|
+
eq(e) {
|
|
875
|
+
return this.value == e.value;
|
|
876
|
+
}
|
|
877
|
+
toDOM(e) {
|
|
878
|
+
return Te(e, this.value);
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
const dt = {
|
|
882
|
+
openText: "⌄",
|
|
883
|
+
closedText: "›",
|
|
884
|
+
markerDOM: null,
|
|
885
|
+
domEventHandlers: {},
|
|
886
|
+
foldingChanged: () => !1
|
|
887
|
+
};
|
|
888
|
+
class j extends Fe {
|
|
889
|
+
constructor(e, t) {
|
|
890
|
+
super(), this.config = e, this.open = t;
|
|
891
|
+
}
|
|
892
|
+
eq(e) {
|
|
893
|
+
return this.config == e.config && this.open == e.open;
|
|
894
|
+
}
|
|
895
|
+
toDOM(e) {
|
|
896
|
+
if (this.config.markerDOM)
|
|
897
|
+
return this.config.markerDOM(this.open);
|
|
898
|
+
let t = document.createElement("span");
|
|
899
|
+
return t.textContent = this.open ? this.config.openText : this.config.closedText, t.title = e.state.phrase(this.open ? "Fold line" : "Unfold line"), t;
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
function qt(n = {}) {
|
|
903
|
+
let e = { ...dt, ...n }, t = new j(e, !0), r = new j(e, !1), i = H.fromClass(class {
|
|
904
|
+
constructor(s) {
|
|
905
|
+
this.from = s.viewport.from, this.markers = this.buildMarkers(s);
|
|
906
|
+
}
|
|
907
|
+
update(s) {
|
|
908
|
+
(s.docChanged || s.viewportChanged || s.startState.facet(v) != s.state.facet(v) || s.startState.field(x, !1) != s.state.field(x, !1) || k(s.startState) != k(s.state) || e.foldingChanged(s)) && (this.markers = this.buildMarkers(s.view));
|
|
909
|
+
}
|
|
910
|
+
buildMarkers(s) {
|
|
911
|
+
let a = new fe();
|
|
912
|
+
for (let l of s.viewportLineBlocks) {
|
|
913
|
+
let f = F(s.state, l.from, l.to) ? r : E(s.state, l.from, l.to) ? t : null;
|
|
914
|
+
f && a.add(l.from, l.from, f);
|
|
915
|
+
}
|
|
916
|
+
return a.finish();
|
|
917
|
+
}
|
|
918
|
+
}), { domEventHandlers: o } = e;
|
|
919
|
+
return [
|
|
920
|
+
i,
|
|
921
|
+
Ee({
|
|
922
|
+
class: "cm-foldGutter",
|
|
923
|
+
markers(s) {
|
|
924
|
+
var a;
|
|
925
|
+
return ((a = s.plugin(i)) === null || a === void 0 ? void 0 : a.markers) || Ne.empty;
|
|
926
|
+
},
|
|
927
|
+
initialSpacer() {
|
|
928
|
+
return new j(e, !1);
|
|
929
|
+
},
|
|
930
|
+
domEventHandlers: {
|
|
931
|
+
...o,
|
|
932
|
+
click: (s, a, l) => {
|
|
933
|
+
if (o.click && o.click(s, a, l))
|
|
934
|
+
return !0;
|
|
935
|
+
let f = F(s.state, a.from, a.to);
|
|
936
|
+
if (f)
|
|
937
|
+
return s.dispatch({ effects: I.of(f) }), !0;
|
|
938
|
+
let c = E(s.state, a.from, a.to);
|
|
939
|
+
return c ? (s.dispatch({ effects: W.of(c) }), !0) : !1;
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
}),
|
|
943
|
+
Se()
|
|
944
|
+
];
|
|
945
|
+
}
|
|
946
|
+
const pt = /* @__PURE__ */ w.baseTheme({
|
|
947
|
+
".cm-foldPlaceholder": {
|
|
948
|
+
backgroundColor: "#eee",
|
|
949
|
+
border: "1px solid #ddd",
|
|
950
|
+
color: "#888",
|
|
951
|
+
borderRadius: ".2em",
|
|
952
|
+
margin: "0 1px",
|
|
953
|
+
padding: "0 1px",
|
|
954
|
+
cursor: "pointer"
|
|
955
|
+
},
|
|
956
|
+
".cm-foldGutter span": {
|
|
957
|
+
padding: "0 1px",
|
|
958
|
+
cursor: "pointer"
|
|
959
|
+
}
|
|
960
|
+
});
|
|
961
|
+
class R {
|
|
962
|
+
constructor(e, t) {
|
|
963
|
+
this.specs = e;
|
|
964
|
+
let r;
|
|
965
|
+
function i(a) {
|
|
966
|
+
let l = ee.newName();
|
|
967
|
+
return (r || (r = /* @__PURE__ */ Object.create(null)))["." + l] = a, l;
|
|
968
|
+
}
|
|
969
|
+
const o = typeof t.all == "string" ? t.all : t.all ? i(t.all) : void 0, s = t.scope;
|
|
970
|
+
this.scope = s instanceof m ? (a) => a.prop(A) == s.data : s ? (a) => a == s : void 0, this.style = He(e.map((a) => ({
|
|
971
|
+
tag: a.tag,
|
|
972
|
+
class: a.class || i(Object.assign({}, a, { tag: null }))
|
|
973
|
+
})), {
|
|
974
|
+
all: o
|
|
975
|
+
}).style, this.module = r ? new ee(r) : null, this.themeType = t.themeType;
|
|
976
|
+
}
|
|
977
|
+
/**
|
|
978
|
+
Create a highlighter style that associates the given styles to
|
|
979
|
+
the given tags. The specs must be objects that hold a style tag
|
|
980
|
+
or array of tags in their `tag` property, and either a single
|
|
981
|
+
`class` property providing a static CSS class (for highlighter
|
|
982
|
+
that rely on external styling), or a
|
|
983
|
+
[`style-mod`](https://github.com/marijnh/style-mod#documentation)-style
|
|
984
|
+
set of CSS properties (which define the styling for those tags).
|
|
985
|
+
|
|
986
|
+
The CSS rules created for a highlighter will be emitted in the
|
|
987
|
+
order of the spec's properties. That means that for elements that
|
|
988
|
+
have multiple tags associated with them, styles defined further
|
|
989
|
+
down in the list will have a higher CSS precedence than styles
|
|
990
|
+
defined earlier.
|
|
991
|
+
*/
|
|
992
|
+
static define(e, t) {
|
|
993
|
+
return new R(e, t || {});
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
const V = /* @__PURE__ */ y.define(), Ce = /* @__PURE__ */ y.define({
|
|
997
|
+
combine(n) {
|
|
998
|
+
return n.length ? [n[0]] : null;
|
|
999
|
+
}
|
|
1000
|
+
});
|
|
1001
|
+
function z(n) {
|
|
1002
|
+
let e = n.facet(V);
|
|
1003
|
+
return e.length ? e : n.facet(Ce);
|
|
1004
|
+
}
|
|
1005
|
+
function jt(n, e) {
|
|
1006
|
+
let t = [gt], r;
|
|
1007
|
+
return n instanceof R && (n.module && t.push(w.styleModule.of(n.module)), r = n.themeType), e?.fallback ? t.push(Ce.of(n)) : r ? t.push(V.computeN([w.darkTheme], (i) => i.facet(w.darkTheme) == (r == "dark") ? [n] : [])) : t.push(V.of(n)), t;
|
|
1008
|
+
}
|
|
1009
|
+
class mt {
|
|
1010
|
+
constructor(e) {
|
|
1011
|
+
this.markCache = /* @__PURE__ */ Object.create(null), this.tree = k(e.state), this.decorations = this.buildDeco(e, z(e.state)), this.decoratedTo = e.viewport.to;
|
|
1012
|
+
}
|
|
1013
|
+
update(e) {
|
|
1014
|
+
let t = k(e.state), r = z(e.state), i = r != z(e.startState), { viewport: o } = e.view, s = e.changes.mapPos(this.decoratedTo, 1);
|
|
1015
|
+
t.length < o.to && !i && t.type == this.tree.type && s >= o.to ? (this.decorations = this.decorations.map(e.changes), this.decoratedTo = s) : (t != this.tree || e.viewportChanged || i) && (this.tree = t, this.decorations = this.buildDeco(e.view, r), this.decoratedTo = o.to);
|
|
1016
|
+
}
|
|
1017
|
+
buildDeco(e, t) {
|
|
1018
|
+
if (!t || !this.tree.length)
|
|
1019
|
+
return g.none;
|
|
1020
|
+
let r = new fe();
|
|
1021
|
+
for (let { from: i, to: o } of e.visibleRanges)
|
|
1022
|
+
We(this.tree, t, (s, a, l) => {
|
|
1023
|
+
r.add(s, a, this.markCache[l] || (this.markCache[l] = g.mark({ class: l })));
|
|
1024
|
+
}, i, o);
|
|
1025
|
+
return r.finish();
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
const gt = /* @__PURE__ */ Oe.high(/* @__PURE__ */ H.fromClass(mt, {
|
|
1029
|
+
decorations: (n) => n.decorations
|
|
1030
|
+
})), zt = /* @__PURE__ */ R.define([
|
|
1031
|
+
{
|
|
1032
|
+
tag: u.meta,
|
|
1033
|
+
color: "#404740"
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
tag: u.link,
|
|
1037
|
+
textDecoration: "underline"
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
tag: u.heading,
|
|
1041
|
+
textDecoration: "underline",
|
|
1042
|
+
fontWeight: "bold"
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
tag: u.emphasis,
|
|
1046
|
+
fontStyle: "italic"
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
tag: u.strong,
|
|
1050
|
+
fontWeight: "bold"
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
tag: u.strikethrough,
|
|
1054
|
+
textDecoration: "line-through"
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
tag: u.keyword,
|
|
1058
|
+
color: "#708"
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
tag: [u.atom, u.bool, u.url, u.contentSeparator, u.labelName],
|
|
1062
|
+
color: "#219"
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
tag: [u.literal, u.inserted],
|
|
1066
|
+
color: "#164"
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
tag: [u.string, u.deleted],
|
|
1070
|
+
color: "#a11"
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
tag: [u.regexp, u.escape, /* @__PURE__ */ u.special(u.string)],
|
|
1074
|
+
color: "#e40"
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
tag: /* @__PURE__ */ u.definition(u.variableName),
|
|
1078
|
+
color: "#00f"
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
tag: /* @__PURE__ */ u.local(u.variableName),
|
|
1082
|
+
color: "#30a"
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
tag: [u.typeName, u.namespace],
|
|
1086
|
+
color: "#085"
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
tag: u.className,
|
|
1090
|
+
color: "#167"
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
tag: [/* @__PURE__ */ u.special(u.variableName), u.macroName],
|
|
1094
|
+
color: "#256"
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
tag: /* @__PURE__ */ u.definition(u.propertyName),
|
|
1098
|
+
color: "#00c"
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
tag: u.comment,
|
|
1102
|
+
color: "#940"
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
tag: u.invalid,
|
|
1106
|
+
color: "#f00"
|
|
1107
|
+
}
|
|
1108
|
+
]), kt = /* @__PURE__ */ w.baseTheme({
|
|
1109
|
+
"&.cm-focused .cm-matchingBracket": { backgroundColor: "#328c8252" },
|
|
1110
|
+
"&.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bb555544" }
|
|
1111
|
+
}), Ae = 1e4, De = "()[]{}", Pe = /* @__PURE__ */ y.define({
|
|
1112
|
+
combine(n) {
|
|
1113
|
+
return ue(n, {
|
|
1114
|
+
afterCursor: !0,
|
|
1115
|
+
brackets: De,
|
|
1116
|
+
maxScanDistance: Ae,
|
|
1117
|
+
renderMatch: wt
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1120
|
+
}), bt = /* @__PURE__ */ g.mark({ class: "cm-matchingBracket" }), yt = /* @__PURE__ */ g.mark({ class: "cm-nonmatchingBracket" });
|
|
1121
|
+
function wt(n) {
|
|
1122
|
+
let e = [], t = n.matched ? bt : yt;
|
|
1123
|
+
return e.push(t.range(n.start.from, n.start.to)), n.end && e.push(t.range(n.end.from, n.end.to)), e;
|
|
1124
|
+
}
|
|
1125
|
+
function oe(n) {
|
|
1126
|
+
let e = [], t = n.facet(Pe);
|
|
1127
|
+
for (let r of n.selection.ranges) {
|
|
1128
|
+
if (!r.empty)
|
|
1129
|
+
continue;
|
|
1130
|
+
let i = O(n, r.head, -1, t) || r.head > 0 && O(n, r.head - 1, 1, t) || t.afterCursor && (O(n, r.head, 1, t) || r.head < n.doc.length && O(n, r.head + 1, -1, t));
|
|
1131
|
+
i && (e = e.concat(t.renderMatch(i, n)));
|
|
1132
|
+
}
|
|
1133
|
+
return g.set(e, !0);
|
|
1134
|
+
}
|
|
1135
|
+
const vt = /* @__PURE__ */ H.fromClass(class {
|
|
1136
|
+
constructor(n) {
|
|
1137
|
+
this.paused = !1, this.decorations = oe(n.state);
|
|
1138
|
+
}
|
|
1139
|
+
update(n) {
|
|
1140
|
+
(n.docChanged || n.selectionSet || this.paused) && (n.view.composing ? (this.decorations = this.decorations.map(n.changes), this.paused = !0) : (this.decorations = oe(n.state), this.paused = !1));
|
|
1141
|
+
}
|
|
1142
|
+
}, {
|
|
1143
|
+
decorations: (n) => n.decorations
|
|
1144
|
+
}), xt = [
|
|
1145
|
+
vt,
|
|
1146
|
+
kt
|
|
1147
|
+
];
|
|
1148
|
+
function Gt(n = {}) {
|
|
1149
|
+
return [Pe.of(n), xt];
|
|
1150
|
+
}
|
|
1151
|
+
const St = /* @__PURE__ */ new b();
|
|
1152
|
+
function K(n, e, t) {
|
|
1153
|
+
let r = n.prop(e < 0 ? b.openedBy : b.closedBy);
|
|
1154
|
+
if (r)
|
|
1155
|
+
return r;
|
|
1156
|
+
if (n.name.length == 1) {
|
|
1157
|
+
let i = t.indexOf(n.name);
|
|
1158
|
+
if (i > -1 && i % 2 == (e < 0 ? 1 : 0))
|
|
1159
|
+
return [t[i + e]];
|
|
1160
|
+
}
|
|
1161
|
+
return null;
|
|
1162
|
+
}
|
|
1163
|
+
function Q(n) {
|
|
1164
|
+
let e = n.type.prop(St);
|
|
1165
|
+
return e ? e(n.node) : n;
|
|
1166
|
+
}
|
|
1167
|
+
function O(n, e, t, r = {}) {
|
|
1168
|
+
let i = r.maxScanDistance || Ae, o = r.brackets || De, s = k(n), a = s.resolveInner(e, t);
|
|
1169
|
+
for (let l = a; l; l = l.parent) {
|
|
1170
|
+
let f = K(l.type, t, o);
|
|
1171
|
+
if (f && l.from < l.to) {
|
|
1172
|
+
let c = Q(l);
|
|
1173
|
+
if (c && (t > 0 ? e >= c.from && e < c.to : e > c.from && e <= c.to))
|
|
1174
|
+
return Tt(n, e, t, l, c, f, o);
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
return Ct(n, e, t, s, a.type, i, o);
|
|
1178
|
+
}
|
|
1179
|
+
function Tt(n, e, t, r, i, o, s) {
|
|
1180
|
+
let a = r.parent, l = { from: i.from, to: i.to }, f = 0, c = a?.cursor();
|
|
1181
|
+
if (c && (t < 0 ? c.childBefore(r.from) : c.childAfter(r.to)))
|
|
1182
|
+
do
|
|
1183
|
+
if (t < 0 ? c.to <= r.from : c.from >= r.to) {
|
|
1184
|
+
if (f == 0 && o.indexOf(c.type.name) > -1 && c.from < c.to) {
|
|
1185
|
+
let h = Q(c);
|
|
1186
|
+
return { start: l, end: h ? { from: h.from, to: h.to } : void 0, matched: !0 };
|
|
1187
|
+
} else if (K(c.type, t, s))
|
|
1188
|
+
f++;
|
|
1189
|
+
else if (K(c.type, -t, s)) {
|
|
1190
|
+
if (f == 0) {
|
|
1191
|
+
let h = Q(c);
|
|
1192
|
+
return {
|
|
1193
|
+
start: l,
|
|
1194
|
+
end: h && h.from < h.to ? { from: h.from, to: h.to } : void 0,
|
|
1195
|
+
matched: !1
|
|
1196
|
+
};
|
|
1197
|
+
}
|
|
1198
|
+
f--;
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
while (t < 0 ? c.prevSibling() : c.nextSibling());
|
|
1202
|
+
return { start: l, matched: !1 };
|
|
1203
|
+
}
|
|
1204
|
+
function Ct(n, e, t, r, i, o, s) {
|
|
1205
|
+
let a = t < 0 ? n.sliceDoc(e - 1, e) : n.sliceDoc(e, e + 1), l = s.indexOf(a);
|
|
1206
|
+
if (l < 0 || l % 2 == 0 != t > 0)
|
|
1207
|
+
return null;
|
|
1208
|
+
let f = { from: t < 0 ? e - 1 : e, to: t > 0 ? e + 1 : e }, c = n.doc.iterRange(e, t > 0 ? n.doc.length : 0), h = 0;
|
|
1209
|
+
for (let p = 0; !c.next().done && p <= o; ) {
|
|
1210
|
+
let d = c.value;
|
|
1211
|
+
t < 0 && (p += d.length);
|
|
1212
|
+
let S = e + p * t;
|
|
1213
|
+
for (let T = t > 0 ? 0 : d.length - 1, Be = t > 0 ? d.length : -1; T != Be; T += t) {
|
|
1214
|
+
let U = s.indexOf(d[T]);
|
|
1215
|
+
if (!(U < 0 || r.resolveInner(S + T, 1).type != i))
|
|
1216
|
+
if (U % 2 == 0 == t > 0)
|
|
1217
|
+
h++;
|
|
1218
|
+
else {
|
|
1219
|
+
if (h == 1)
|
|
1220
|
+
return { start: f, end: { from: S + T, to: S + T + 1 }, matched: U >> 1 == l >> 1 };
|
|
1221
|
+
h--;
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
t > 0 && (p += d.length);
|
|
1225
|
+
}
|
|
1226
|
+
return c.done ? { start: f, matched: !1 } : null;
|
|
1227
|
+
}
|
|
1228
|
+
const At = /* @__PURE__ */ Object.create(null), se = [X.none], le = [], ae = /* @__PURE__ */ Object.create(null), Dt = /* @__PURE__ */ Object.create(null);
|
|
1229
|
+
for (let [n, e] of [
|
|
1230
|
+
["variable", "variableName"],
|
|
1231
|
+
["variable-2", "variableName.special"],
|
|
1232
|
+
["string-2", "string.special"],
|
|
1233
|
+
["def", "variableName.definition"],
|
|
1234
|
+
["tag", "tagName"],
|
|
1235
|
+
["attribute", "attributeName"],
|
|
1236
|
+
["type", "typeName"],
|
|
1237
|
+
["builtin", "variableName.standard"],
|
|
1238
|
+
["qualifier", "modifier"],
|
|
1239
|
+
["error", "invalid"],
|
|
1240
|
+
["header", "heading"],
|
|
1241
|
+
["property", "propertyName"]
|
|
1242
|
+
])
|
|
1243
|
+
Dt[n] = /* @__PURE__ */ Pt(At, e);
|
|
1244
|
+
function G(n, e) {
|
|
1245
|
+
le.indexOf(n) > -1 || (le.push(n), console.warn(e));
|
|
1246
|
+
}
|
|
1247
|
+
function Pt(n, e) {
|
|
1248
|
+
let t = [];
|
|
1249
|
+
for (let a of e.split(" ")) {
|
|
1250
|
+
let l = [];
|
|
1251
|
+
for (let f of a.split(".")) {
|
|
1252
|
+
let c = n[f] || u[f];
|
|
1253
|
+
c ? typeof c == "function" ? l.length ? l = l.map(c) : G(f, `Modifier ${f} used at start of tag`) : l.length ? G(f, `Tag ${f} used as modifier`) : l = Array.isArray(c) ? c : [c] : G(f, `Unknown highlighting tag ${f}`);
|
|
1254
|
+
}
|
|
1255
|
+
for (let f of l)
|
|
1256
|
+
t.push(f);
|
|
1257
|
+
}
|
|
1258
|
+
if (!t.length)
|
|
1259
|
+
return 0;
|
|
1260
|
+
let r = e.replace(/ /g, "_"), i = r + " " + t.map((a) => a.id), o = ae[i];
|
|
1261
|
+
if (o)
|
|
1262
|
+
return o.id;
|
|
1263
|
+
let s = ae[i] = X.define({
|
|
1264
|
+
id: se.length,
|
|
1265
|
+
name: r,
|
|
1266
|
+
props: [Re({ [r]: t })]
|
|
1267
|
+
});
|
|
1268
|
+
return se.push(s), s.id;
|
|
1269
|
+
}
|
|
1270
|
+
_.RTL, _.LTR;
|
|
1271
|
+
export {
|
|
1272
|
+
qe as DocInput,
|
|
1273
|
+
R as HighlightStyle,
|
|
1274
|
+
me as IndentContext,
|
|
1275
|
+
J as LRLanguage,
|
|
1276
|
+
m as Language,
|
|
1277
|
+
Ft as LanguageSupport,
|
|
1278
|
+
N as ParseContext,
|
|
1279
|
+
Y as TreeIndentContext,
|
|
1280
|
+
Gt as bracketMatching,
|
|
1281
|
+
St as bracketMatchingHandle,
|
|
1282
|
+
Se as codeFolding,
|
|
1283
|
+
Wt as continuedIndent,
|
|
1284
|
+
zt as defaultHighlightStyle,
|
|
1285
|
+
Ue as defineLanguageFacet,
|
|
1286
|
+
Lt as delimitedIndent,
|
|
1287
|
+
Ht as flatIndent,
|
|
1288
|
+
ft as foldAll,
|
|
1289
|
+
lt as foldCode,
|
|
1290
|
+
W as foldEffect,
|
|
1291
|
+
qt as foldGutter,
|
|
1292
|
+
Ut as foldInside,
|
|
1293
|
+
$t as foldKeymap,
|
|
1294
|
+
rt as foldNodeProp,
|
|
1295
|
+
nt as foldService,
|
|
1296
|
+
x as foldState,
|
|
1297
|
+
E as foldable,
|
|
1298
|
+
Ge as getIndentUnit,
|
|
1299
|
+
Ve as getIndentation,
|
|
1300
|
+
Ke as indentNodeProp,
|
|
1301
|
+
Rt as indentOnInput,
|
|
1302
|
+
ze as indentService,
|
|
1303
|
+
Je as indentString,
|
|
1304
|
+
pe as indentUnit,
|
|
1305
|
+
v as language,
|
|
1306
|
+
A as languageDataProp,
|
|
1307
|
+
O as matchBrackets,
|
|
1308
|
+
$e as sublanguageProp,
|
|
1309
|
+
jt as syntaxHighlighting,
|
|
1310
|
+
k as syntaxTree,
|
|
1311
|
+
ct as unfoldAll,
|
|
1312
|
+
at as unfoldCode,
|
|
1313
|
+
I as unfoldEffect
|
|
1314
|
+
};
|